Skip to content

Commit aaa90b4

Browse files
authored
Merge pull request #194 from pwgit-create/fix_existing_code_issue
Fix existing code issue
2 parents 203fd06 + d7336be commit aaa90b4

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

AppWish/AppWish/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
<id>Peter</id>
1919
<email>snow_900@outlook.com</email>
2020
<roles>
21-
<role>Security Champion</role>
2221
<role>CCT Scheme Committee (2023-2026)</role>
2322
<role>Open Source Developer</role>
2423
</roles>

cg/CodeGenerator/CodeGenerator/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@
1818
<id>Peter</id>
1919
<email>snow_900@outlook.com</email>
2020
<roles>
21-
<role>CCT Scheme Committee (2023-2026)</role>
22-
<role>Open Source Developer</role>
21+
<role>CCT Scheme Committee (2023-2026)</role>
22+
<role>Open Source Developer</role>
2323
</roles>
2424
<timezone>Central European Time</timezone>
2525
</developer>

cg/CodeGenerator/CodeGenerator/src/main/java/pn/cg/datastorage/constant/QuestionConstants.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public record QuestionConstants() {
116116

117117
public final static String NOTE_TO_KEEP_AS_MUCH_ORIGINAL_STRUCTURE_AS_POSSIBLE="Make sure that your generated code keep the current functionality and only add functionality to the existing code";
118118

119-
public final static String NO_EXISTING_CODE_COMMENTS="I need the actual code without any comments or placeholders referencing existing code";
119+
public final static String NO_EXISTING_CODE_COMMENTS="I need the actual code without any comments and without any placeholders referencing existing code";
120120

121121
public final static String THREAD_PACKAGE="If your code requires the Java Thread package use import java.lang.Thread";
122122

@@ -249,5 +249,7 @@ public record QuestionConstants() {
249249
*/
250250
public final static String DO_NOT_ASSUME_PACKAGE_NAMES="The application won't run if you import non-existent packages, so don't assume package names";
251251

252+
public final static String NEVER_ADD_EXISTING_CODE_REFERENCE_COMMENTS="You will never ever write a comment that references existing code but must instead include that code along with the new code";
253+
252254
/// ***** ///
253255
}

cg/CodeGenerator/CodeGenerator/src/main/java/pn/cg/ollama_ai_remote/request/RequestHandlerImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ public String sendQuestionToOllamaInstance(String question, String pathToJavaFil
103103
.addLine(question)
104104
.addLine(QuestionConstants.NOTE_TO_KEEP_AS_MUCH_ORIGINAL_STRUCTURE_AS_POSSIBLE)
105105
.addLine(QuestionConstants.NO_EXISTING_CODE_COMMENTS)
106+
.add(QuestionConstants.NEVER_ADD_EXISTING_CODE_REFERENCE_COMMENTS)
106107
.addLine(QuestionConstants.AND_CORRECT_IMPORTS)
107108
.addLine(QuestionConstants.MARK_START_CHAR_DELIMITER)
108109
.addLine(QuestionConstants.MARK_THE_END_CHAR_DELIMITER)

0 commit comments

Comments
 (0)