-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(java): commons-lang D-classes (#135)
- Loading branch information
1 parent
97bbe70
commit a3861e6
Showing
68 changed files
with
28,964 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ghcr.io/kupl/starlab-benchmarks/java-base:commons-lang | ||
|
||
ENV TZ=Asia/Seoul | ||
|
||
COPY ./metadata.json . | ||
COPY ./npe.json . | ||
COPY ./buggy.java /tmp/buggy.java | ||
RUN export BUGGY_PATH=$(cat metadata.json | jq -r ".npe.filepath") \ | ||
&& export BUGGY_LINE=$(cat metadata.json | jq -r ".npe.line") \ | ||
&& export BUGGY_MTHD=$(cat metadata.json | jq -r ".npe.npe_method") \ | ||
&& mv /tmp/buggy.java $BUGGY_PATH \ | ||
&& echo "[{\"filepath\": \"$BUGGY_PATH\", \"line\": $BUGGY_LINE, \"method_name\": \"$BUGGY_MTHD\"}]" | jq . > traces.json | ||
|
||
RUN git init . && git add -A | ||
|
||
RUN $(cat metadata.json | jq -r ".buildCommand") | ||
|
||
RUN $(cat metadata.json | jq -r ".testCommand"); if [ $? -eq 0 ]; then exit 1; fi |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
{ | ||
"language": "java", | ||
"id": "commons-lang-DateUtils_1133", | ||
"buggyPath": ".", | ||
"referencePath": null, | ||
"buildCommand": "mvn package -V -B -Denforcer.skip=true -Dcheckstyle.skip=true -Dcobertura.skip=true -Drat.skip=true -Dlicense.skip=true -Dfindbugs.skip=true -Dgpg.skip=true -Dskip.npm=true -Dskip.gulp=true -Dskip.bower=true -Drat.numUnapprovedLicenses=100 -DskipTests=true -DskipITs=true -Dtest=None -DfailIfNoTests=false", | ||
"testCommand": "mvn test -V -B -Denforcer.skip=true -Dcheckstyle.skip=true -Dcobertura.skip=true -Drat.skip=true -Dlicense.skip=true -Dfindbugs.skip=true -Dgpg.skip=true -Dskip.npm=true -Dskip.gulp=true -Dskip.bower=true -Drat.numUnapprovedLicenses=100", | ||
"categories": [ | ||
"safety", | ||
"npe" | ||
], | ||
"npe": { | ||
"filepath": "src/main/java/org/apache/commons/lang3/time/DateUtils.java", | ||
"line": 1165, | ||
"npe_method": "iterator", | ||
"deref_field": "focus", | ||
"npe_class": "DateUtils", | ||
"repo": "commons-lang", | ||
"bug_id": "DateUtils_1133" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"filepath": "src/main/java/org/apache/commons/lang3/time/DateUtils.java", | ||
"line": 1165, | ||
"npe_method": "iterator", | ||
"deref_field": "focus", | ||
"npe_class": "DateUtils" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
FROM ghcr.io/kupl/starlab-benchmarks/java-base:commons-lang | ||
|
||
ENV TZ=Asia/Seoul | ||
|
||
COPY ./metadata.json . | ||
COPY ./npe.json . | ||
COPY ./buggy.java /tmp/buggy.java | ||
RUN export BUGGY_PATH=$(cat metadata.json | jq -r ".npe.filepath") \ | ||
&& export BUGGY_LINE=$(cat metadata.json | jq -r ".npe.line") \ | ||
&& export BUGGY_MTHD=$(cat metadata.json | jq -r ".npe.npe_method") \ | ||
&& mv /tmp/buggy.java $BUGGY_PATH \ | ||
&& echo "[{\"filepath\": \"$BUGGY_PATH\", \"line\": $BUGGY_LINE, \"method_name\": \"$BUGGY_MTHD\"}]" | jq . > traces.json | ||
|
||
RUN git init . && git add -A | ||
|
||
RUN $(cat metadata.json | jq -r ".buildCommand") | ||
|
||
RUN $(cat metadata.json | jq -r ".testCommand"); if [ $? -eq 0 ]; then exit 1; fi |
Oops, something went wrong.