Skip to content

Commit

Permalink
add grok-2-1212
Browse files Browse the repository at this point in the history
  • Loading branch information
andre15silva committed Dec 18, 2024
1 parent e2340ff commit 45cbc60
Show file tree
Hide file tree
Showing 6,880 changed files with 548,117 additions and 1 deletion.
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/grok-2-1212/defects4j/bugs_with_candidates.txt

Large diffs are not rendered by default.

484 changes: 484 additions & 0 deletions results/grok-2-1212/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": 8.827141999999958,
"completion_cost": 28.553110000000068,
"total_cost": 37.38025200000003,
"provider": "openrouter"
}

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions results/grok-2-1212/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/d2d11004-49db-4ba5-8b4f-062695305a9f_buggy.java b/tmp/a2f5bbe1-b4c9-4a6f-8c6f-31f81cb77261_fixed.java
index 114ff20..ce5dafa 100644
--- a/tmp/d2d11004-49db-4ba5-8b4f-062695305a9f_buggy.java
+++ b/tmp/a2f5bbe1-b4c9-4a6f-8c6f-31f81cb77261_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
48 changes: 48 additions & 0 deletions results/grok-2-1212/defects4j/patches/Chart-1/exact_match/0.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/549b0559-9eab-42b7-80ba-5647524c958c_buggy.java b/tmp/ae8d17f9-5247-4929-a885-00e0f5ae7e7e_fixed.java
index 114ff20..4732cd1 100644
--- a/tmp/549b0559-9eab-42b7-80ba-5647524c958c_buggy.java
+++ b/tmp/ae8d17f9-5247-4929-a885-00e0f5ae7e7e_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 results/grok-2-1212/defects4j/patches/Chart-1/exact_match/1.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/e650ba87-acad-4daf-a696-bfdd318a0b13_buggy.java b/tmp/91493905-1cd3-4d19-8130-a6eebfb3eb62_fixed.java
index 114ff20..e8e9d2b 100644
--- a/tmp/e650ba87-acad-4daf-a696-bfdd318a0b13_buggy.java
+++ b/tmp/91493905-1cd3-4d19-8130-a6eebfb3eb62_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 results/grok-2-1212/defects4j/patches/Chart-1/exact_match/2.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/9f5388e7-aaa5-490c-8ae0-4fd988bbc90f_buggy.java b/tmp/4710c567-e27f-486a-8d50-2e6a548a6060_fixed.java
index 114ff20..4732cd1 100644
--- a/tmp/9f5388e7-aaa5-490c-8ae0-4fd988bbc90f_buggy.java
+++ b/tmp/4710c567-e27f-486a-8d50-2e6a548a6060_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 results/grok-2-1212/defects4j/patches/Chart-1/exact_match/3.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/2e121770-9d3b-41c2-b896-b476cd2858c8_buggy.java b/tmp/1eafcc3b-8dcf-4962-b20e-8e954d075b93_fixed.java
index 114ff20..4732cd1 100644
--- a/tmp/2e121770-9d3b-41c2-b896-b476cd2858c8_buggy.java
+++ b/tmp/1eafcc3b-8dcf-4962-b20e-8e954d075b93_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 results/grok-2-1212/defects4j/patches/Chart-1/exact_match/5.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/8b9ead51-8440-4ce9-b5e1-719d330392aa_buggy.java b/tmp/a5d93ee0-5a9e-4018-b9de-c4e4637d804a_fixed.java
index 114ff20..e8e9d2b 100644
--- a/tmp/8b9ead51-8440-4ce9-b5e1-719d330392aa_buggy.java
+++ b/tmp/a5d93ee0-5a9e-4018-b9de-c4e4637d804a_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 results/grok-2-1212/defects4j/patches/Chart-1/exact_match/6.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/e72f4d43-e7c3-4436-af4d-974a7e16942b_buggy.java b/tmp/94c2aaec-04b5-462a-bfd8-49592c214608_fixed.java
index 114ff20..4732cd1 100644
--- a/tmp/e72f4d43-e7c3-4436-af4d-974a7e16942b_buggy.java
+++ b/tmp/94c2aaec-04b5-462a-bfd8-49592c214608_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
Loading

0 comments on commit 45cbc60

Please sign in to comment.