Skip to content

Commit 1f4c666

Browse files
Deleted unremoved occurrences of internship in BUILD files
1 parent 282ff15 commit 1f4c666

File tree

14 files changed

+30
-33
lines changed

14 files changed

+30
-33
lines changed

java/com/engflow/binaryinput/BUILD

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,9 @@ NUM_FILES = 1
88
[genrule(
99
name = "Hello" + str(x),
1010
outs = ["Hello" + str(x) + ".java"],
11-
cmd_bash = "echo 'package com.engflow.internship.binaryinput;" + "\n" +
11+
cmd_bash = "echo 'package com.engflow.binaryinput;" + "\n" +
1212
"public class Hello" + str(x) +
1313
" { public static void greetNum() { System.out.println(\"Hello " + str(x) + "\"); } }' > $@",
14-
#cmd_ps = "echo 'package com.engflow.internship.binaryinput;" + "\n" +
15-
# "public class Hello" + str(x) +
16-
# " { public static void greetNum() { System.out.println(\"Hello " + str(x) + "\"); } }' > $($outputFile.FullName)",
1714
) for x in range(1,NUM_FILES+1)]
1815

1916
#Generates a java library that contains all the generated java files

java/com/engflow/binaryinput/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public static void main(String[] args) {
1010

1111
// Load and run the greetNum method from each class
1212
for(int i = 1; i <= numFiles; i++){
13-
Class<?> clazz = Class.forName("com.engflow.internship.binaryinput.Hello" + i);
13+
Class<?> clazz = Class.forName("com.engflow.binaryinput.Hello" + i);
1414
clazz.getMethod("greetNum").invoke(null);
1515
}
1616

java/com/engflow/binaryinput/README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,19 @@ The goal of this example project is to test the performance of Engflow's remote
66

77
## Project Structure
88

9-
- `java/com/engflow/internship/binaryinput/Main.java`: Main class that dynamically loads and invokes methods from generated classes.
10-
- `java/com/engflow/internship/binaryinput/BUILD`: Bazel build file for the `main` java binary and the `genbinary` library.
9+
- `java/com/engflow/binaryinput/Main.java`: Main class that dynamically loads and invokes methods from generated classes.
10+
- `java/com/engflow/binaryinput/BUILD`: Bazel build file for the `main` java binary and the `genbinary` library.
1111

1212
## Usage
1313

1414
To generate the test files, build the `genbinary` library using the `genrule`:
1515
```sh
16-
bazel build //java/com/engflow/internship/binaryinput:genbinary
16+
bazel build //java/com/engflow/binaryinput:genbinary
1717
```
1818

1919
Then, the program can be run with the following command:
2020
```sh
21-
bazel run //java/com/engflow/internship/binaryinput:main
21+
bazel run //java/com/engflow/binaryinput:main
2222
```
2323

2424
## How It Works
@@ -39,14 +39,14 @@ The number of generated files is controlled by the `NUM_FILES` variable in the `
3939

4040
To generate and run the program with 10 input binary files:
4141

42-
1. Set `NUM_FILES` to 10 in `java/com/engflow/internship/binaryinput/BUILD`.
42+
1. Set `NUM_FILES` to 10 in `java/com/engflow/binaryinput/BUILD`.
4343
2. Build the `genbinary` library:
4444
```sh
45-
bazel build //java/com/engflow/internship/binaryinput:genbinary
45+
bazel build //java/com/engflow/binaryinput:genbinary
4646
```
4747
3. Run the `main` binary:
4848
```sh
49-
bazel run //java/com/engflow/internship/binaryinput:main
49+
bazel run //java/com/engflow/binaryinput:main
5050
```
5151

5252
This will generate 10 Java classes, build the `genbinary` library, and run the `main` binary, which will print messages from each generated class.

java/com/engflow/cycleexample/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,4 @@ The program takes a text input file and recursively prints each word with each c
3333
To run the tests and gather performance data, use the following Bazel command:
3434

3535
```sh
36-
bazel test //java/com/engflow/internship/cycleexample/class_a:class_a_test
36+
bazel test //java/com/engflow/cycleexample/class_a:class_a_test

java/com/engflow/cycleexample/class_a/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ java_library(
1212
java_test(
1313
name = "class_a_test",
1414
srcs = ["ClassATest.java"],
15-
test_class = "com.engflow.internship.cycleexample.class_a.ClassATest",
15+
test_class = "com.engflow.cycleexample.class_a.ClassATest",
1616
deps = [
1717
":class_a",
1818
"//java/com/engflow/cycleexample/class_b:class_b",

java/com/engflow/cycleexample/class_b/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ java_library(
1212
java_test(
1313
name = "class_b_test",
1414
srcs = ["ClassBTest.java"],
15-
test_class = "com.engflow.internship.cycleexample.class_b.ClassBTest",
15+
test_class = "com.engflow.cycleexample.class_b.ClassBTest",
1616
deps = [
1717
":class_b",
1818
"//java/com/engflow/cycleexample/class_c:class_c",

java/com/engflow/cycleexample/class_c/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ java_library(
1212
java_test(
1313
name = "class_c_test",
1414
srcs = ["ClassCTest.java"],
15-
test_class = "com.engflow.internship.cycleexample.class_c.ClassCTest",
15+
test_class = "com.engflow.cycleexample.class_c.ClassCTest",
1616
deps = [
1717
":class_c",
1818
"//java/com/engflow/cycleexample/class_a:class_a",

java/com/engflow/cycleexample/main/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@ java_binary(
1111
data = [
1212
"//java/com/engflow/cycleexample/input:input",
1313
],
14-
main_class = "com.engflow.internship.cycleexample.main.Main",
14+
main_class = "com.engflow.cycleexample.main.Main",
1515
)

java/com/engflow/setinput/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@ The goal of this example project is to test the performance of Engflow's remote
66

77
## Project Structure
88

9-
- `java/com/engflow/internship/setinput/genfile`: Directory where the `.txt` files generated by the genrule are stored.
10-
- `java/com/engflow/internship/varyinginputs/main`: Contains the `Main` class which orchestrates the reading process.
11-
- `java/com/engflow/internship/varyinginputs/reader`: Contains the `Reader` class responsible for reading the files.
9+
- `java/com/engflow/setinput/genfile`: Directory where the `.txt` files generated by the genrule are stored.
10+
- `java/com/engflow/varyinginputs/main`: Contains the `Main` class which orchestrates the reading process.
11+
- `java/com/engflow/varyinginputs/reader`: Contains the `Reader` class responsible for reading the files.
1212

1313
## Usage
1414

1515
To generate the test files, build the filegroup target:
1616
```sh
17-
bazel build //java/com/engflow/internship/setinput/genfile
17+
bazel build //java/com/engflow/setinput/genfile
1818
```
1919

2020
Then, the program can be run with the following command:
2121

2222
```sh
23-
bazel run //java/com/engflow/internship/varyinginputs/main
23+
bazel run //java/com/engflow/varyinginputs/main
2424
```
2525

2626
To modify the amount of files generated, change the value of the `NUM_FILES` in the `BUILD` file inside the `genfile` directory.

java/com/engflow/setinput/main/BUILD

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ java_binary(
66
deps = [
77
"//java/com/engflow/setinput/genreader:genreader",
88
],
9-
data = glob(["java/com/engflow/internship/setinput/genfile/*.txt"]),
10-
main_class = "com.engflow.internship.setinput.main.Main",
9+
data = glob(["java/com/engflow/setinput/genfile/*.txt"]),
10+
main_class = "com.engflow.setinput.main.Main",
1111
)

java/com/engflow/varyinginputs/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ The goal of this example project is to test the performance of Engflow's remote
66

77
## Project Structure
88

9-
- `java/com/engflow/internship/varyinginputs/input`: Directory where the generated `.txt` files are saved.
10-
- `java/com/engflow/internship/varyinginputs/main`: Contains the `Main` class which orchestrates the file creation and reading process.
11-
- `java/com/engflow/internship/varyinginputs/reader`: Contains the `Reader` class responsible for reading the files.
12-
- `java/com/engflow/internship/varyinginputs/writer`: Contains the `Writer` class responsible for writing the files.
9+
- `java/com/engflow/varyinginputs/input`: Directory where the generated `.txt` files are saved.
10+
- `java/com/engflow/varyinginputs/main`: Contains the `Main` class which orchestrates the file creation and reading process.
11+
- `java/com/engflow/varyinginputs/reader`: Contains the `Reader` class responsible for reading the files.
12+
- `java/com/engflow/varyinginputs/writer`: Contains the `Writer` class responsible for writing the files.
1313

1414
## Usage
1515

1616
To run the project and specify the number of files to be created, use the following command:
1717

1818
```sh
19-
bazel run //java/com/engflow/internship/varyinginputs/main -- <num_files>
19+
bazel run //java/com/engflow/varyinginputs/main -- <num_files>
2020
```
2121

2222
Replace `<num_files>` with the desired number of files to be created.
@@ -26,7 +26,7 @@ Replace `<num_files>` with the desired number of files to be created.
2626
To create and read 10 files, you would run:
2727

2828
```sh
29-
bazel run //java/com/engflow/internship/varyinginputs/main -- 10
29+
bazel run //java/com/engflow/varyinginputs/main -- 10
3030
```
3131

3232
This command will:

java/com/engflow/varyinginputs/main/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ java_binary(
1010
data = [
1111
"//java/com/engflow/varyinginputs/input:input",
1212
],
13-
main_class = "com.engflow.internship.varyinginputs.main.Main",
13+
main_class = "com.engflow.varyinginputs.main.Main",
1414
)

java/com/engflow/varyinginputs/reader/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ java_library(
77
java_test(
88
name = "reader_test",
99
srcs = ["ReaderTest.java"],
10-
test_class = "com.engflow.internship.varyinginputs.reader.ReaderTest",
10+
test_class = "com.engflow.varyinginputs.reader.ReaderTest",
1111
deps = [
1212
":reader",
1313
],

java/com/engflow/varyinginputs/writer/BUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ java_library(
77
java_test(
88
name = "writer_test",
99
srcs = ["WriterTest.java"],
10-
test_class = "com.engflow.internship.varyinginputs.writer.WriterTest",
10+
test_class = "com.engflow.varyinginputs.writer.WriterTest",
1111
deps = [
1212
":writer",
1313
],

0 commit comments

Comments
 (0)