From 1de9754569e0d2ebcab541bda19db38fee0df504 Mon Sep 17 00:00:00 2001 From: seahi Date: Tue, 10 Dec 2024 10:39:01 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E7=BB=83=E4=B9=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/chapter7/config/helper_3.c | 1 + resources/chapter7/config/interface_4.c | 1 + resources/chapter7/config/service_5.c | 1 + resources/chapter7/config/test_2/docs_3/data_2.java | 1 + resources/chapter7/config/test_2/docs_3/product_3.java | 1 + resources/chapter7/config/test_2/docs_3/user_1.java | 1 + resources/chapter7/config/utils_1.java | 1 + resources/chapter7/create.sh | 1 + resources/chapter7/fill.sh | 1 + resources/chapter7/models/config_2/config_3/service_1.txt | 1 + resources/chapter7/models/config_2/config_3/user_2.java | 1 + resources/chapter7/models/source_2/services_3/config_1.java | 1 + resources/chapter7/models/source_2/services_3/controller_3.c | 1 + resources/chapter7/models/source_2/services_3/data_4.c | 1 + resources/chapter7/models/source_2/services_3/product_5.txt | 1 + resources/chapter7/models/source_2/services_3/user_2.c | 1 + resources/chapter7/resources_2/resources_3/config_2.c | 1 + resources/chapter7/resources_2/resources_3/interface_1.txt | 1 + resources/chapter7/resources_2/resources_3/interface_4.txt | 1 + resources/chapter7/resources_2/resources_3/user_3.c | 1 + resources/chapter7/service_2.c | 1 + src/chapter7/Example05.java | 4 ++++ src/chapter7/Example06.java | 4 ++++ src/chapter7/Example07.java | 4 ++++ 24 files changed, 33 insertions(+) create mode 100644 resources/chapter7/config/helper_3.c create mode 100644 resources/chapter7/config/interface_4.c create mode 100644 resources/chapter7/config/service_5.c create mode 100644 resources/chapter7/config/test_2/docs_3/data_2.java create mode 100644 resources/chapter7/config/test_2/docs_3/product_3.java create mode 100644 resources/chapter7/config/test_2/docs_3/user_1.java create mode 100644 resources/chapter7/config/utils_1.java create mode 100644 resources/chapter7/create.sh create mode 100644 resources/chapter7/fill.sh create mode 100644 resources/chapter7/models/config_2/config_3/service_1.txt create mode 100644 resources/chapter7/models/config_2/config_3/user_2.java create mode 100644 resources/chapter7/models/source_2/services_3/config_1.java create mode 100644 resources/chapter7/models/source_2/services_3/controller_3.c create mode 100644 resources/chapter7/models/source_2/services_3/data_4.c create mode 100644 resources/chapter7/models/source_2/services_3/product_5.txt create mode 100644 resources/chapter7/models/source_2/services_3/user_2.c create mode 100644 resources/chapter7/resources_2/resources_3/config_2.c create mode 100644 resources/chapter7/resources_2/resources_3/interface_1.txt create mode 100644 resources/chapter7/resources_2/resources_3/interface_4.txt create mode 100644 resources/chapter7/resources_2/resources_3/user_3.c create mode 100644 resources/chapter7/service_2.c create mode 100644 src/chapter7/Example05.java create mode 100644 src/chapter7/Example06.java create mode 100644 src/chapter7/Example07.java diff --git a/resources/chapter7/config/helper_3.c b/resources/chapter7/config/helper_3.c new file mode 100644 index 0000000..abbe055 --- /dev/null +++ b/resources/chapter7/config/helper_3.c @@ -0,0 +1 @@ +#include \n#include \n#include \n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\n diff --git a/resources/chapter7/config/interface_4.c b/resources/chapter7/config/interface_4.c new file mode 100644 index 0000000..982975f --- /dev/null +++ b/resources/chapter7/config/interface_4.c @@ -0,0 +1 @@ +#include \n#include \n#include \n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\n diff --git a/resources/chapter7/config/service_5.c b/resources/chapter7/config/service_5.c new file mode 100644 index 0000000..43fba5a --- /dev/null +++ b/resources/chapter7/config/service_5.c @@ -0,0 +1 @@ +#include \n#include \n#include \n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\n diff --git a/resources/chapter7/config/test_2/docs_3/data_2.java b/resources/chapter7/config/test_2/docs_3/data_2.java new file mode 100644 index 0000000..a881708 --- /dev/null +++ b/resources/chapter7/config/test_2/docs_3/data_2.java @@ -0,0 +1 @@ +public class GeneratedClass {\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\n}\n diff --git a/resources/chapter7/config/test_2/docs_3/product_3.java b/resources/chapter7/config/test_2/docs_3/product_3.java new file mode 100644 index 0000000..ba9f95d --- /dev/null +++ b/resources/chapter7/config/test_2/docs_3/product_3.java @@ -0,0 +1 @@ +public class GeneratedClass {\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\n}\n diff --git a/resources/chapter7/config/test_2/docs_3/user_1.java b/resources/chapter7/config/test_2/docs_3/user_1.java new file mode 100644 index 0000000..4a650e5 --- /dev/null +++ b/resources/chapter7/config/test_2/docs_3/user_1.java @@ -0,0 +1 @@ +public class GeneratedClass {\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\n}\n diff --git a/resources/chapter7/config/utils_1.java b/resources/chapter7/config/utils_1.java new file mode 100644 index 0000000..fedcd31 --- /dev/null +++ b/resources/chapter7/config/utils_1.java @@ -0,0 +1 @@ +public class GeneratedClass {\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\n}\n diff --git a/resources/chapter7/create.sh b/resources/chapter7/create.sh new file mode 100644 index 0000000..6bc5b8d --- /dev/null +++ b/resources/chapter7/create.sh @@ -0,0 +1 @@ +Hello World! This is a random content. Always write clean and maintainable code. Documentation is very important for any project. Always write clean and maintainable code. Software development is both an art and science. The C programming language is powerful and efficient. Testing is an essential part of development. This file was automatically generated. Always write clean and maintainable code. Hello World! This is a random content. Remember to add proper comments in your code. Documentation is very important for any project. Hello World! This is a random content. The C programming language is powerful and efficient. Software development is both an art and science. Documentation is very important for any project. Always write clean and maintainable code. Documentation is very important for any project. Testing is an essential part of development. Documentation is very important for any project. Documentation is very important for any project. Java is a popular programming language. This is a sample text for testing purposes. The C programming language is powerful and efficient. The C programming language is powerful and efficient. Testing is an essential part of development. Hello World! This is a random content. This is a sample text for testing purposes. Testing is an essential part of development. The C programming language is powerful and efficient. Testing is an essential part of development. Testing is an essential part of development. Hello World! This is a random content. Always write clean and maintainable code. This is a sample text for testing purposes. Software development is both an art and science. Hello World! This is a random content. Testing is an essential part of development. Java is a popular programming language. Remember to add proper comments in your code. Testing is an essential part of development. Always write clean and maintainable code. Software development is both an art and science. This file was automatically generated. Testing is an essential part of development. Always write clean and maintainable code. Remember to add proper comments in your code. Java is a popular programming language. Java is a popular programming language. Documentation is very important for any project. Always write clean and maintainable code. Testing is an essential part of development. This is a sample text for testing purposes. The C programming language is powerful and efficient. This file was automatically generated. Hello World! This is a random content. Java is a popular programming language. Always write clean and maintainable code. This file was automatically generated. The C programming language is powerful and efficient. Testing is an essential part of development. This is a sample text for testing purposes. Hello World! This is a random content. Testing is an essential part of development. Always write clean and maintainable code. Java is a popular programming language. This is a sample text for testing purposes. Hello World! This is a random content. Documentation is very important for any project. Documentation is very important for any project. This is a sample text for testing purposes. The C programming language is powerful and efficient. This is a sample text for testing purposes. Always write clean and maintainable code. The C programming language is powerful and efficient. Always write clean and maintainable code. This is a sample text for testing purposes. This is a sample text for testing purposes. Software development is both an art and science. Hello World! This is a random content. Remember to add proper comments in your code. Software development is both an art and science. Documentation is very important for any project. Testing is an essential part of development. This is a sample text for testing purposes. Testing is an essential part of development. Documentation is very important for any project. Java is a popular programming language. This file was automatically generated. Documentation is very important for any project. This file was automatically generated. Documentation is very important for any project. The C programming language is powerful and efficient. This is a sample text for testing purposes. This is a sample text for testing purposes. Documentation is very important for any project. Documentation is very important for any project. This is a sample text for testing purposes. Remember to add proper comments in your code. Documentation is very important for any project. Software development is both an art and science. This file was automatically generated. diff --git a/resources/chapter7/fill.sh b/resources/chapter7/fill.sh new file mode 100644 index 0000000..ae8f903 --- /dev/null +++ b/resources/chapter7/fill.sh @@ -0,0 +1 @@ +The C programming language is powerful and efficient. This is a sample text for testing purposes. This is a sample text for testing purposes. Software development is both an art and science. This is a sample text for testing purposes. Hello World! This is a random content. Documentation is very important for any project. The C programming language is powerful and efficient. The C programming language is powerful and efficient. Software development is both an art and science. Hello World! This is a random content. This file was automatically generated. This is a sample text for testing purposes. Always write clean and maintainable code. Software development is both an art and science. This is a sample text for testing purposes. Documentation is very important for any project. Java is a popular programming language. Software development is both an art and science. Software development is both an art and science. Java is a popular programming language. Always write clean and maintainable code. Hello World! This is a random content. Testing is an essential part of development. The C programming language is powerful and efficient. This file was automatically generated. Java is a popular programming language. This file was automatically generated. Testing is an essential part of development. Hello World! This is a random content. Hello World! This is a random content. Remember to add proper comments in your code. Testing is an essential part of development. The C programming language is powerful and efficient. Documentation is very important for any project. Documentation is very important for any project. The C programming language is powerful and efficient. This is a sample text for testing purposes. Documentation is very important for any project. Remember to add proper comments in your code. Java is a popular programming language. The C programming language is powerful and efficient. Always write clean and maintainable code. This is a sample text for testing purposes. This file was automatically generated. Documentation is very important for any project. Remember to add proper comments in your code. Remember to add proper comments in your code. Remember to add proper comments in your code. Documentation is very important for any project. Remember to add proper comments in your code. Remember to add proper comments in your code. Always write clean and maintainable code. Java is a popular programming language. This file was automatically generated. This is a sample text for testing purposes. Software development is both an art and science. Hello World! This is a random content. Java is a popular programming language. Remember to add proper comments in your code. Documentation is very important for any project. Documentation is very important for any project. Always write clean and maintainable code. This is a sample text for testing purposes. Documentation is very important for any project. Documentation is very important for any project. Remember to add proper comments in your code. Testing is an essential part of development. The C programming language is powerful and efficient. diff --git a/resources/chapter7/models/config_2/config_3/service_1.txt b/resources/chapter7/models/config_2/config_3/service_1.txt new file mode 100644 index 0000000..141d731 --- /dev/null +++ b/resources/chapter7/models/config_2/config_3/service_1.txt @@ -0,0 +1 @@ +Remember to add proper comments in your code. Documentation is very important for any project. Hello World! This is a random content. Java is a popular programming language. Always write clean and maintainable code. Java is a popular programming language. This file was automatically generated. Software development is both an art and science. Always write clean and maintainable code. Remember to add proper comments in your code. The C programming language is powerful and efficient. Hello World! This is a random content. Documentation is very important for any project. This is a sample text for testing purposes. The C programming language is powerful and efficient. Java is a popular programming language. The C programming language is powerful and efficient. Software development is both an art and science. Software development is both an art and science. Remember to add proper comments in your code. Remember to add proper comments in your code. Testing is an essential part of development. Documentation is very important for any project. Java is a popular programming language. This file was automatically generated. This is a sample text for testing purposes. Always write clean and maintainable code. Testing is an essential part of development. This is a sample text for testing purposes. This file was automatically generated. This file was automatically generated. Always write clean and maintainable code. Software development is both an art and science. Always write clean and maintainable code. Hello World! This is a random content. The C programming language is powerful and efficient. Testing is an essential part of development. The C programming language is powerful and efficient. Hello World! This is a random content. Remember to add proper comments in your code. Java is a popular programming language. Hello World! This is a random content. Testing is an essential part of development. Java is a popular programming language. Software development is both an art and science. Always write clean and maintainable code. Hello World! This is a random content. Always write clean and maintainable code. Software development is both an art and science. Always write clean and maintainable code. Always write clean and maintainable code. This is a sample text for testing purposes. Documentation is very important for any project. Documentation is very important for any project. Remember to add proper comments in your code. Always write clean and maintainable code. Always write clean and maintainable code. This is a sample text for testing purposes. Always write clean and maintainable code. This file was automatically generated. Always write clean and maintainable code. Always write clean and maintainable code. Documentation is very important for any project. Testing is an essential part of development. Hello World! This is a random content. This file was automatically generated. Java is a popular programming language. Always write clean and maintainable code. Documentation is very important for any project. Java is a popular programming language. The C programming language is powerful and efficient. Hello World! This is a random content. Software development is both an art and science. Java is a popular programming language. Java is a popular programming language. This is a sample text for testing purposes. Software development is both an art and science. The C programming language is powerful and efficient. The C programming language is powerful and efficient. Testing is an essential part of development. Hello World! This is a random content. This is a sample text for testing purposes. Testing is an essential part of development. Documentation is very important for any project. Hello World! This is a random content. Documentation is very important for any project. Always write clean and maintainable code. Hello World! This is a random content. The C programming language is powerful and efficient. This is a sample text for testing purposes. This is a sample text for testing purposes. Always write clean and maintainable code. Always write clean and maintainable code. Java is a popular programming language. Testing is an essential part of development. The C programming language is powerful and efficient. This is a sample text for testing purposes. The C programming language is powerful and efficient. Hello World! This is a random content. This is a sample text for testing purposes. Documentation is very important for any project. Software development is both an art and science. The C programming language is powerful and efficient. This file was automatically generated. Java is a popular programming language. Documentation is very important for any project. Remember to add proper comments in your code. This is a sample text for testing purposes. Testing is an essential part of development. Testing is an essential part of development. diff --git a/resources/chapter7/models/config_2/config_3/user_2.java b/resources/chapter7/models/config_2/config_3/user_2.java new file mode 100644 index 0000000..a960c1f --- /dev/null +++ b/resources/chapter7/models/config_2/config_3/user_2.java @@ -0,0 +1 @@ +public class GeneratedClass {\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\n}\n diff --git a/resources/chapter7/models/source_2/services_3/config_1.java b/resources/chapter7/models/source_2/services_3/config_1.java new file mode 100644 index 0000000..435034c --- /dev/null +++ b/resources/chapter7/models/source_2/services_3/config_1.java @@ -0,0 +1 @@ +public class GeneratedClass {\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\n}\n diff --git a/resources/chapter7/models/source_2/services_3/controller_3.c b/resources/chapter7/models/source_2/services_3/controller_3.c new file mode 100644 index 0000000..01b39ea --- /dev/null +++ b/resources/chapter7/models/source_2/services_3/controller_3.c @@ -0,0 +1 @@ +#include \n#include \n#include \n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\n diff --git a/resources/chapter7/models/source_2/services_3/data_4.c b/resources/chapter7/models/source_2/services_3/data_4.c new file mode 100644 index 0000000..22c26a8 --- /dev/null +++ b/resources/chapter7/models/source_2/services_3/data_4.c @@ -0,0 +1 @@ +#include \n#include \n#include \n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\n diff --git a/resources/chapter7/models/source_2/services_3/product_5.txt b/resources/chapter7/models/source_2/services_3/product_5.txt new file mode 100644 index 0000000..2fc99c8 --- /dev/null +++ b/resources/chapter7/models/source_2/services_3/product_5.txt @@ -0,0 +1 @@ +This file was automatically generated. This file was automatically generated. Remember to add proper comments in your code. Software development is both an art and science. The C programming language is powerful and efficient. Testing is an essential part of development. Java is a popular programming language. Hello World! This is a random content. Software development is both an art and science. Software development is both an art and science. Remember to add proper comments in your code. Testing is an essential part of development. This is a sample text for testing purposes. Documentation is very important for any project. Documentation is very important for any project. Testing is an essential part of development. Java is a popular programming language. This file was automatically generated. Software development is both an art and science. Always write clean and maintainable code. Always write clean and maintainable code. The C programming language is powerful and efficient. Hello World! This is a random content. Documentation is very important for any project. Documentation is very important for any project. This file was automatically generated. This file was automatically generated. Java is a popular programming language. Always write clean and maintainable code. Testing is an essential part of development. The C programming language is powerful and efficient. Java is a popular programming language. Always write clean and maintainable code. Testing is an essential part of development. Documentation is very important for any project. Software development is both an art and science. This is a sample text for testing purposes. This file was automatically generated. The C programming language is powerful and efficient. Remember to add proper comments in your code. The C programming language is powerful and efficient. Java is a popular programming language. Remember to add proper comments in your code. diff --git a/resources/chapter7/models/source_2/services_3/user_2.c b/resources/chapter7/models/source_2/services_3/user_2.c new file mode 100644 index 0000000..31b709b --- /dev/null +++ b/resources/chapter7/models/source_2/services_3/user_2.c @@ -0,0 +1 @@ +#include \n#include \n#include \n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\n diff --git a/resources/chapter7/resources_2/resources_3/config_2.c b/resources/chapter7/resources_2/resources_3/config_2.c new file mode 100644 index 0000000..14173c8 --- /dev/null +++ b/resources/chapter7/resources_2/resources_3/config_2.c @@ -0,0 +1 @@ +#include \n#include \n#include \n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\n diff --git a/resources/chapter7/resources_2/resources_3/interface_1.txt b/resources/chapter7/resources_2/resources_3/interface_1.txt new file mode 100644 index 0000000..20089d7 --- /dev/null +++ b/resources/chapter7/resources_2/resources_3/interface_1.txt @@ -0,0 +1 @@ +This file was automatically generated. This is a sample text for testing purposes. Remember to add proper comments in your code. This is a sample text for testing purposes. Always write clean and maintainable code. This is a sample text for testing purposes. Software development is both an art and science. This file was automatically generated. Testing is an essential part of development. Java is a popular programming language. This file was automatically generated. Remember to add proper comments in your code. The C programming language is powerful and efficient. Java is a popular programming language. Always write clean and maintainable code. This file was automatically generated. Documentation is very important for any project. The C programming language is powerful and efficient. Testing is an essential part of development. Always write clean and maintainable code. The C programming language is powerful and efficient. Always write clean and maintainable code. This is a sample text for testing purposes. Always write clean and maintainable code. Java is a popular programming language. Remember to add proper comments in your code. Remember to add proper comments in your code. Software development is both an art and science. This file was automatically generated. Documentation is very important for any project. The C programming language is powerful and efficient. Hello World! This is a random content. Software development is both an art and science. Documentation is very important for any project. Always write clean and maintainable code. Remember to add proper comments in your code. Hello World! This is a random content. Hello World! This is a random content. Testing is an essential part of development. Java is a popular programming language. Remember to add proper comments in your code. The C programming language is powerful and efficient. Testing is an essential part of development. This is a sample text for testing purposes. Testing is an essential part of development. Hello World! This is a random content. Documentation is very important for any project. Documentation is very important for any project. The C programming language is powerful and efficient. The C programming language is powerful and efficient. This file was automatically generated. Hello World! This is a random content. Documentation is very important for any project. Software development is both an art and science. Remember to add proper comments in your code. Software development is both an art and science. This is a sample text for testing purposes. Remember to add proper comments in your code. Always write clean and maintainable code. Software development is both an art and science. Java is a popular programming language. Remember to add proper comments in your code. Remember to add proper comments in your code. This file was automatically generated. Java is a popular programming language. This is a sample text for testing purposes. Testing is an essential part of development. This file was automatically generated. Hello World! This is a random content. Remember to add proper comments in your code. Hello World! This is a random content. Hello World! This is a random content. This file was automatically generated. This is a sample text for testing purposes. Always write clean and maintainable code. This file was automatically generated. This file was automatically generated. Hello World! This is a random content. Testing is an essential part of development. Software development is both an art and science. Always write clean and maintainable code. Remember to add proper comments in your code. Hello World! This is a random content. Hello World! This is a random content. Software development is both an art and science. Hello World! This is a random content. Testing is an essential part of development. This is a sample text for testing purposes. Software development is both an art and science. Software development is both an art and science. Remember to add proper comments in your code. Hello World! This is a random content. Always write clean and maintainable code. Testing is an essential part of development. Java is a popular programming language. The C programming language is powerful and efficient. Documentation is very important for any project. Hello World! This is a random content. This file was automatically generated. Software development is both an art and science. Always write clean and maintainable code. The C programming language is powerful and efficient. The C programming language is powerful and efficient. Testing is an essential part of development. Hello World! This is a random content. Java is a popular programming language. Software development is both an art and science. Testing is an essential part of development. Remember to add proper comments in your code. The C programming language is powerful and efficient. Java is a popular programming language. Testing is an essential part of development. diff --git a/resources/chapter7/resources_2/resources_3/interface_4.txt b/resources/chapter7/resources_2/resources_3/interface_4.txt new file mode 100644 index 0000000..16ce7f4 --- /dev/null +++ b/resources/chapter7/resources_2/resources_3/interface_4.txt @@ -0,0 +1 @@ +This file was automatically generated. Remember to add proper comments in your code. Hello World! This is a random content. Remember to add proper comments in your code. Remember to add proper comments in your code. This is a sample text for testing purposes. Hello World! This is a random content. Testing is an essential part of development. Always write clean and maintainable code. Testing is an essential part of development. Java is a popular programming language. This is a sample text for testing purposes. This file was automatically generated. The C programming language is powerful and efficient. Software development is both an art and science. This is a sample text for testing purposes. This is a sample text for testing purposes. Always write clean and maintainable code. Testing is an essential part of development. This is a sample text for testing purposes. Always write clean and maintainable code. The C programming language is powerful and efficient. Remember to add proper comments in your code. Java is a popular programming language. Hello World! This is a random content. This file was automatically generated. Always write clean and maintainable code. Always write clean and maintainable code. Documentation is very important for any project. This file was automatically generated. The C programming language is powerful and efficient. Software development is both an art and science. Testing is an essential part of development. Always write clean and maintainable code. Hello World! This is a random content. The C programming language is powerful and efficient. Always write clean and maintainable code. Software development is both an art and science. Remember to add proper comments in your code. Remember to add proper comments in your code. Hello World! This is a random content. Testing is an essential part of development. Documentation is very important for any project. Testing is an essential part of development. Always write clean and maintainable code. This is a sample text for testing purposes. This is a sample text for testing purposes. Software development is both an art and science. Documentation is very important for any project. Software development is both an art and science. Java is a popular programming language. Always write clean and maintainable code. The C programming language is powerful and efficient. This is a sample text for testing purposes. diff --git a/resources/chapter7/resources_2/resources_3/user_3.c b/resources/chapter7/resources_2/resources_3/user_3.c new file mode 100644 index 0000000..0494efb --- /dev/null +++ b/resources/chapter7/resources_2/resources_3/user_3.c @@ -0,0 +1 @@ +#include \n#include \n#include \n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\n diff --git a/resources/chapter7/service_2.c b/resources/chapter7/service_2.c new file mode 100644 index 0000000..61fda01 --- /dev/null +++ b/resources/chapter7/service_2.c @@ -0,0 +1 @@ +#include \n#include \n#include \n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\nvoid processData(int[] data) {\n for(int i = 0; i < data.length; i++) {\n data[i] = transform(data[i]);\n }\n}\n\npublic interface DataProcessor {\n void process(Data data);\n Result getResult();\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\nprivate static void logger(String message) {\n System.out.println("[LOG] " + message);\n}\n\npublic class Example {\n private String value;\n\n public Example(String value) {\n this.value = value;\n }\n\n public String getValue() {\n return value;\n }\n}\n\n diff --git a/src/chapter7/Example05.java b/src/chapter7/Example05.java new file mode 100644 index 0000000..3c84592 --- /dev/null +++ b/src/chapter7/Example05.java @@ -0,0 +1,4 @@ +package chapter7; + +public class Example05 { +} diff --git a/src/chapter7/Example06.java b/src/chapter7/Example06.java new file mode 100644 index 0000000..961663b --- /dev/null +++ b/src/chapter7/Example06.java @@ -0,0 +1,4 @@ +package chapter7; + +public class Example06 { +} diff --git a/src/chapter7/Example07.java b/src/chapter7/Example07.java new file mode 100644 index 0000000..539d959 --- /dev/null +++ b/src/chapter7/Example07.java @@ -0,0 +1,4 @@ +package chapter7; + +public class Example07 { +}