Skip to content

Commit 60d375c

Browse files
committed
updated sample
1 parent 18a6358 commit 60d375c

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

sample.sh

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ set -ex
22

33
SOURCE="./"
44
BASE_URL="http://myServerAddress:8080"
5+
FILENAME_PATTERN=".*\\.kt"
6+
PROMPT="We want to opensource the following file. Check for any references to people or any other personal references. Check for identifiers, file paths and URLs in literal strings that might reveal user names and other personal information. Also check for bad language or embarrassing content. Check within comments as well. Don't check the logic of the code itself. Are there any such red flags or is it all green? At the end of your answer, emit a single line with Red or Green."
7+
KEYWORD="Red"
8+
KEY_OPTIONAL=""
59

6-
java -jar out/artifacts/treeChecker_jar/treeChecker.jar \
10+
java -jar treeChecker.jar \
711
"$SOURCE" \
812
"$BASE_URL/v1/chat/completions" \
9-
"KEY_OPTIONAL" \
10-
"We want to opensource the following file. Check for any references to people or any other personal references. Check for identifiers, file paths and URLs in literal strings that might reveal user names and other personal information. Also check for bad language or embarrassing content. Don't check the logic of the code itself. Are there any such red flags or is it all green? At the end of your answer, emit a single line with Red or Green." \
11-
"Red" \
12-
".*\\.kt"
13+
"$KEY_OPTIONAL" \
14+
"$PROMPT" \
15+
"$KEYWORD" \
16+
"$FILENAME_PATTERN"

0 commit comments

Comments
 (0)