Skip to content

Commit

Permalink
add codestral-2501
Browse files Browse the repository at this point in the history
  • Loading branch information
andre15silva committed Jan 17, 2025
1 parent d5c0fd4 commit a88cb1e
Show file tree
Hide file tree
Showing 6,892 changed files with 413,108 additions and 0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
484 changes: 484 additions & 0 deletions results/codestral-2501/defects4j/bugs_with_candidates.txt

Large diffs are not rendered by default.

484 changes: 484 additions & 0 deletions results/codestral-2501/defects4j/bugs_with_prompt.txt

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"prompt_cost": 0.13802489999999998,
"completion_cost": 1.8111222000000016,
"total_cost": 1.9491471000000016,
"provider": "mistral"
}

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions results/codestral-2501/defects4j/patches/Chart-1/ast_match/0.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
diff --git a/tmp/178b394f-78cf-4fe8-9a87-1d389c06435b_buggy.java b/tmp/6f54de88-cd92-41d7-8a34-a260bc8ed8a0_fixed.java
index 114ff20..f8ed25f 100644
--- a/tmp/178b394f-78cf-4fe8-9a87-1d389c06435b_buggy.java
+++ b/tmp/6f54de88-cd92-41d7-8a34-a260bc8ed8a0_fixed.java
@@ -1,41 +1,32 @@
- /**
- * 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 {
+ } 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 results/codestral-2501/defects4j/patches/Chart-1/ast_match/1.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
diff --git a/tmp/1a3f2980-74c3-4c71-a86c-b6b44dc99660_buggy.java b/tmp/03c8fbea-a001-4de8-baca-2493a4c01519_fixed.java
index 114ff20..f8ed25f 100644
--- a/tmp/1a3f2980-74c3-4c71-a86c-b6b44dc99660_buggy.java
+++ b/tmp/03c8fbea-a001-4de8-baca-2493a4c01519_fixed.java
@@ -1,41 +1,32 @@
- /**
- * 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 {
+ } 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 results/codestral-2501/defects4j/patches/Chart-1/ast_match/2.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
diff --git a/tmp/10928a99-2f1d-4981-a79c-b0ca4cc25808_buggy.java b/tmp/d73e1aed-b931-4380-ba6a-f0076507125b_fixed.java
index 114ff20..f8ed25f 100644
--- a/tmp/10928a99-2f1d-4981-a79c-b0ca4cc25808_buggy.java
+++ b/tmp/d73e1aed-b931-4380-ba6a-f0076507125b_fixed.java
@@ -1,41 +1,32 @@
- /**
- * 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 {
+ } 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 results/codestral-2501/defects4j/patches/Chart-1/ast_match/3.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
diff --git a/tmp/8b5e5a84-7bfa-4ac4-aca8-3387ff9f2cf2_buggy.java b/tmp/3dd0fe3d-e592-4bc3-8a44-8c6ad387adb9_fixed.java
index 114ff20..f8ed25f 100644
--- a/tmp/8b5e5a84-7bfa-4ac4-aca8-3387ff9f2cf2_buggy.java
+++ b/tmp/3dd0fe3d-e592-4bc3-8a44-8c6ad387adb9_fixed.java
@@ -1,41 +1,32 @@
- /**
- * 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 {
+ } 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 results/codestral-2501/defects4j/patches/Chart-1/ast_match/4.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
diff --git a/tmp/78dabd27-8f7a-4a70-88a5-e9e968c55c3f_buggy.java b/tmp/fce6dbe0-ceee-40f2-85be-0554929b60c0_fixed.java
index 114ff20..ce5dafa 100644
--- a/tmp/78dabd27-8f7a-4a70-88a5-e9e968c55c3f_buggy.java
+++ b/tmp/fce6dbe0-ceee-40f2-85be-0554929b60c0_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)) {
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 results/codestral-2501/defects4j/patches/Chart-1/ast_match/5.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
diff --git a/tmp/bae32538-c46e-4e74-8900-58fb8cd8577f_buggy.java b/tmp/954df163-1d11-4716-81c2-17bd5838cdaf_fixed.java
index 114ff20..f8ed25f 100644
--- a/tmp/bae32538-c46e-4e74-8900-58fb8cd8577f_buggy.java
+++ b/tmp/954df163-1d11-4716-81c2-17bd5838cdaf_fixed.java
@@ -1,41 +1,32 @@
- /**
- * 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 {
+ } 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 results/codestral-2501/defects4j/patches/Chart-1/ast_match/6.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
diff --git a/tmp/269ad0eb-c0e8-4727-9e7d-647204a51161_buggy.java b/tmp/994c4178-a6ae-42f7-b4d8-cc878b3a8419_fixed.java
index 114ff20..f8ed25f 100644
--- a/tmp/269ad0eb-c0e8-4727-9e7d-647204a51161_buggy.java
+++ b/tmp/994c4178-a6ae-42f7-b4d8-cc878b3a8419_fixed.java
@@ -1,41 +1,32 @@
- /**
- * 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 {
+ } 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
Loading

0 comments on commit a88cb1e

Please sign in to comment.