-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11a4ade
commit 50810c5
Showing
6,830 changed files
with
537,162 additions
and
10 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
484 changes: 484 additions & 0 deletions
484
results/gpt-4o-2024-11-20/defects4j/bugs_with_candidates.txt
Large diffs are not rendered by default.
Oops, something went wrong.
484 changes: 484 additions & 0 deletions
484
results/gpt-4o-2024-11-20/defects4j/bugs_with_prompt.txt
Large diffs are not rendered by default.
Oops, something went wrong.
835 changes: 835 additions & 0 deletions
835
...uct_openai-chatcompletion_model_name=gpt-4o-2024-11-20_temperature=1.0_n_samples=10.jsonl
Large diffs are not rendered by default.
Oops, something went wrong.
6 changes: 6 additions & 0 deletions
6
results/gpt-4o-2024-11-20/defects4j/costs_defects4j_instruct_openai-chatcompletion.json
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,6 @@ | ||
{ | ||
"prompt_cost": 1.094802500000001, | ||
"completion_cost": 19.311750000000007, | ||
"total_cost": 20.406552500000007, | ||
"provider": "openai-chatcompletion" | ||
} |
835 changes: 835 additions & 0 deletions
835
...lts/gpt-4o-2024-11-20/defects4j/evaluation_defects4j_instruct_openai-chatcompletion.jsonl
Large diffs are not rendered by default.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
results/gpt-4o-2024-11-20/defects4j/patches/Chart-1/ast_match/6.diff
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,50 @@ | ||
diff --git a/tmp/9d6446d3-76e6-4a2b-a53b-a46bd0509a46_buggy.java b/tmp/637fe55b-13a2-4e49-b79c-5af73b3f5edb_fixed.java | ||
index 114ff20..9b4cfc2 100644 | ||
--- a/tmp/9d6446d3-76e6-4a2b-a53b-a46bd0509a46_buggy.java | ||
+++ b/tmp/637fe55b-13a2-4e49-b79c-5af73b3f5edb_fixed.java | ||
@@ -1,41 +1,40 @@ | ||
/** | ||
* Returns a (possibly empty) collection of legend items for the series | ||
* that this renderer is responsible for drawing. | ||
* | ||
* @return The legend item collection (never <code>null</code>). | ||
* | ||
* @see #getLegendItem(int, int) | ||
*/ | ||
public LegendItemCollection getLegendItems() { | ||
LegendItemCollection result = new LegendItemCollection(); | ||
if (this.plot == null) { | ||
return result; | ||
} | ||
int index = this.plot.getIndexOf(this); | ||
CategoryDataset dataset = this.plot.getDataset(index); | ||
- if (dataset != null) { | ||
- return result; | ||
+ if (dataset == null) { // Changed check from `!= null` to `== null` | ||
+ return result; // Return an empty collection if the dataset is null | ||
} | ||
int seriesCount = dataset.getRowCount(); | ||
if (plot.getRowRenderingOrder().equals(SortOrder.ASCENDING)) { | ||
for (int i = 0; i < seriesCount; i++) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
- } | ||
- else { | ||
+ } else { | ||
for (int i = seriesCount - 1; i >= 0; i--) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
} | ||
return result; | ||
} | ||
\ No newline at end of file |
49 changes: 49 additions & 0 deletions
49
results/gpt-4o-2024-11-20/defects4j/patches/Chart-1/ast_match/8.diff
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,49 @@ | ||
diff --git a/tmp/8b5e7dc5-5005-4245-9b4b-3a0293fd8aa8_buggy.java b/tmp/c6edbd90-8b94-43e3-b6c9-b156805f1374_fixed.java | ||
index 114ff20..6500bcd 100644 | ||
--- a/tmp/8b5e7dc5-5005-4245-9b4b-3a0293fd8aa8_buggy.java | ||
+++ b/tmp/c6edbd90-8b94-43e3-b6c9-b156805f1374_fixed.java | ||
@@ -1,41 +1,40 @@ | ||
/** | ||
* Returns a (possibly empty) collection of legend items for the series | ||
* that this renderer is responsible for drawing. | ||
* | ||
* @return The legend item collection (never <code>null</code>). | ||
* | ||
* @see #getLegendItem(int, int) | ||
*/ | ||
public LegendItemCollection getLegendItems() { | ||
LegendItemCollection result = new LegendItemCollection(); | ||
if (this.plot == null) { | ||
return result; | ||
} | ||
int index = this.plot.getIndexOf(this); | ||
CategoryDataset dataset = this.plot.getDataset(index); | ||
- if (dataset != null) { | ||
+ if (dataset == null) { // Fixed this null check condition (was incorrect in the original code) | ||
return result; | ||
} | ||
int seriesCount = dataset.getRowCount(); | ||
if (plot.getRowRenderingOrder().equals(SortOrder.ASCENDING)) { | ||
for (int i = 0; i < seriesCount; i++) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
- } | ||
- else { | ||
+ } else { | ||
for (int i = seriesCount - 1; i >= 0; i--) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
} | ||
return result; | ||
} | ||
\ No newline at end of file |
48 changes: 48 additions & 0 deletions
48
results/gpt-4o-2024-11-20/defects4j/patches/Chart-1/exact_match/0.diff
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,48 @@ | ||
diff --git a/tmp/e93d64f5-dc1f-4610-b37c-0899fd461369_buggy.java b/tmp/597f4d5d-207e-47a6-b304-b368e659d7fc_fixed.java | ||
index 114ff20..4732cd1 100644 | ||
--- a/tmp/e93d64f5-dc1f-4610-b37c-0899fd461369_buggy.java | ||
+++ b/tmp/597f4d5d-207e-47a6-b304-b368e659d7fc_fixed.java | ||
@@ -1,41 +1,41 @@ | ||
/** | ||
* Returns a (possibly empty) collection of legend items for the series | ||
* that this renderer is responsible for drawing. | ||
* | ||
* @return The legend item collection (never <code>null</code>). | ||
* | ||
* @see #getLegendItem(int, int) | ||
*/ | ||
public LegendItemCollection getLegendItems() { | ||
LegendItemCollection result = new LegendItemCollection(); | ||
if (this.plot == null) { | ||
return result; | ||
} | ||
int index = this.plot.getIndexOf(this); | ||
CategoryDataset dataset = this.plot.getDataset(index); | ||
- if (dataset != null) { | ||
+ if (dataset == null) { | ||
return result; | ||
} | ||
int seriesCount = dataset.getRowCount(); | ||
if (plot.getRowRenderingOrder().equals(SortOrder.ASCENDING)) { | ||
for (int i = 0; i < seriesCount; i++) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
} | ||
else { | ||
for (int i = seriesCount - 1; i >= 0; i--) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
} | ||
return result; | ||
} | ||
\ No newline at end of file |
48 changes: 48 additions & 0 deletions
48
results/gpt-4o-2024-11-20/defects4j/patches/Chart-1/exact_match/4.diff
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,48 @@ | ||
diff --git a/tmp/d1a3d5bd-e52b-48b4-a6d8-222cbb9f6c73_buggy.java b/tmp/05d94e23-3651-4a91-8e58-7caa955567cb_fixed.java | ||
index 114ff20..86a2074 100644 | ||
--- a/tmp/d1a3d5bd-e52b-48b4-a6d8-222cbb9f6c73_buggy.java | ||
+++ b/tmp/05d94e23-3651-4a91-8e58-7caa955567cb_fixed.java | ||
@@ -1,41 +1,41 @@ | ||
/** | ||
* Returns a (possibly empty) collection of legend items for the series | ||
* that this renderer is responsible for drawing. | ||
* | ||
* @return The legend item collection (never <code>null</code>). | ||
* | ||
* @see #getLegendItem(int, int) | ||
*/ | ||
public LegendItemCollection getLegendItems() { | ||
LegendItemCollection result = new LegendItemCollection(); | ||
if (this.plot == null) { | ||
return result; | ||
} | ||
int index = this.plot.getIndexOf(this); | ||
CategoryDataset dataset = this.plot.getDataset(index); | ||
- if (dataset != null) { | ||
+ if (dataset == null) { // Fix: Corrected the condition to check if dataset is null | ||
return result; | ||
} | ||
int seriesCount = dataset.getRowCount(); | ||
if (plot.getRowRenderingOrder().equals(SortOrder.ASCENDING)) { | ||
for (int i = 0; i < seriesCount; i++) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
} | ||
else { | ||
for (int i = seriesCount - 1; i >= 0; i--) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
} | ||
return result; | ||
} | ||
\ No newline at end of file |
48 changes: 48 additions & 0 deletions
48
results/gpt-4o-2024-11-20/defects4j/patches/Chart-1/exact_match/9.diff
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,48 @@ | ||
diff --git a/tmp/34996be7-cfb8-4e12-8fba-09ad0df1f394_buggy.java b/tmp/651e6f45-c016-4da2-ad01-e4e55b114779_fixed.java | ||
index 114ff20..ad2e3f9 100644 | ||
--- a/tmp/34996be7-cfb8-4e12-8fba-09ad0df1f394_buggy.java | ||
+++ b/tmp/651e6f45-c016-4da2-ad01-e4e55b114779_fixed.java | ||
@@ -1,41 +1,41 @@ | ||
/** | ||
* Returns a (possibly empty) collection of legend items for the series | ||
* that this renderer is responsible for drawing. | ||
* | ||
* @return The legend item collection (never <code>null</code>). | ||
* | ||
* @see #getLegendItem(int, int) | ||
*/ | ||
public LegendItemCollection getLegendItems() { | ||
LegendItemCollection result = new LegendItemCollection(); | ||
if (this.plot == null) { | ||
return result; | ||
} | ||
int index = this.plot.getIndexOf(this); | ||
CategoryDataset dataset = this.plot.getDataset(index); | ||
- if (dataset != null) { | ||
+ if (dataset == null) { // Fix: Properly handle the scenario where dataset is null | ||
return result; | ||
} | ||
int seriesCount = dataset.getRowCount(); | ||
if (plot.getRowRenderingOrder().equals(SortOrder.ASCENDING)) { | ||
for (int i = 0; i < seriesCount; i++) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
} | ||
else { | ||
for (int i = seriesCount - 1; i >= 0; i--) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
} | ||
return result; | ||
} | ||
\ No newline at end of file |
52 changes: 52 additions & 0 deletions
52
results/gpt-4o-2024-11-20/defects4j/patches/Chart-1/plausible/1.diff
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,52 @@ | ||
diff --git a/tmp/a2beb385-214c-458b-8d2b-abb5f214eb2e_buggy.java b/tmp/03529a7d-e7c3-490a-bed7-a0a91c3e7097_fixed.java | ||
index 114ff20..5a7f9c3 100644 | ||
--- a/tmp/a2beb385-214c-458b-8d2b-abb5f214eb2e_buggy.java | ||
+++ b/tmp/03529a7d-e7c3-490a-bed7-a0a91c3e7097_fixed.java | ||
@@ -1,41 +1,43 @@ | ||
/** | ||
* Returns a (possibly empty) collection of legend items for the series | ||
* that this renderer is responsible for drawing. | ||
* | ||
* @return The legend item collection (never <code>null</code>). | ||
* | ||
* @see #getLegendItem(int, int) | ||
*/ | ||
public LegendItemCollection getLegendItems() { | ||
LegendItemCollection result = new LegendItemCollection(); | ||
if (this.plot == null) { | ||
return result; | ||
} | ||
int index = this.plot.getIndexOf(this); | ||
+ if (index < 0) { | ||
+ return result; | ||
+ } | ||
CategoryDataset dataset = this.plot.getDataset(index); | ||
- if (dataset != null) { | ||
+ if (dataset == null) { | ||
return result; | ||
} | ||
int seriesCount = dataset.getRowCount(); | ||
if (plot.getRowRenderingOrder().equals(SortOrder.ASCENDING)) { | ||
for (int i = 0; i < seriesCount; i++) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
- } | ||
- else { | ||
+ } else { | ||
for (int i = seriesCount - 1; i >= 0; i--) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
} | ||
return result; | ||
} | ||
\ No newline at end of file |
50 changes: 50 additions & 0 deletions
50
results/gpt-4o-2024-11-20/defects4j/patches/Chart-1/plausible/2.diff
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,50 @@ | ||
diff --git a/tmp/32917124-5e21-4986-ba74-895dba66b4fb_buggy.java b/tmp/1e62e2d8-fc6d-4588-b4cb-3ff32a422007_fixed.java | ||
index 114ff20..addc785 100644 | ||
--- a/tmp/32917124-5e21-4986-ba74-895dba66b4fb_buggy.java | ||
+++ b/tmp/1e62e2d8-fc6d-4588-b4cb-3ff32a422007_fixed.java | ||
@@ -1,41 +1,40 @@ | ||
/** | ||
* Returns a (possibly empty) collection of legend items for the series | ||
* that this renderer is responsible for drawing. | ||
* | ||
* @return The legend item collection (never <code>null</code>). | ||
* | ||
* @see #getLegendItem(int, int) | ||
*/ | ||
public LegendItemCollection getLegendItems() { | ||
LegendItemCollection result = new LegendItemCollection(); | ||
if (this.plot == null) { | ||
return result; | ||
} | ||
int index = this.plot.getIndexOf(this); | ||
CategoryDataset dataset = this.plot.getDataset(index); | ||
- if (dataset != null) { | ||
+ if (dataset == null) { | ||
return result; | ||
} | ||
int seriesCount = dataset.getRowCount(); | ||
- if (plot.getRowRenderingOrder().equals(SortOrder.ASCENDING)) { | ||
+ if (this.plot.getRowRenderingOrder().equals(SortOrder.ASCENDING)) { | ||
for (int i = 0; i < seriesCount; i++) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
- } | ||
- else { | ||
+ } else { | ||
for (int i = seriesCount - 1; i >= 0; i--) { | ||
if (isSeriesVisibleInLegend(i)) { | ||
LegendItem item = getLegendItem(index, i); | ||
if (item != null) { | ||
result.add(item); | ||
} | ||
} | ||
} | ||
} | ||
return result; | ||
} | ||
\ No newline at end of file |
Oops, something went wrong.