Skip to content

Commit

Permalink
add preliminary qwq results
Browse files Browse the repository at this point in the history
  • Loading branch information
andre15silva committed Dec 19, 2024
1 parent 24489a4 commit 29706d4
Show file tree
Hide file tree
Showing 6,577 changed files with 501,342 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/qwq-32b-preview/defects4j/bugs_with_candidates.txt

Large diffs are not rendered by default.

484 changes: 484 additions & 0 deletions results/qwq-32b-preview/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.6616181999999915,
"completion_cost": 4.751972999999989,
"total_cost": 5.41359119999998,
"provider": "openrouter"
}

Large diffs are not rendered by default.

49 changes: 49 additions & 0 deletions results/qwq-32b-preview/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/a3721251-9d65-49f8-9f19-e1ca524beaed_buggy.java b/tmp/9c7146f2-677c-468b-a5da-dc2a74016881_fixed.java
index 114ff20..f8ed25f 100644
--- a/tmp/a3721251-9d65-49f8-9f19-e1ca524beaed_buggy.java
+++ b/tmp/9c7146f2-677c-468b-a5da-dc2a74016881_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/qwq-32b-preview/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/947a6cce-3cca-4074-8b88-eaeb72984701_buggy.java b/tmp/0a117482-5d50-48b1-b686-60289f08b233_fixed.java
index 114ff20..f8ed25f 100644
--- a/tmp/947a6cce-3cca-4074-8b88-eaeb72984701_buggy.java
+++ b/tmp/0a117482-5d50-48b1-b686-60289f08b233_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
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/eb52cbdc-8786-40e2-b938-05af38daf2b7_buggy.java b/tmp/713328f1-707c-46b8-ab3f-96111d2d11f1_fixed.java
index 114ff20..65da1bd 100644
--- a/tmp/eb52cbdc-8786-40e2-b938-05af38daf2b7_buggy.java
+++ b/tmp/713328f1-707c-46b8-ab3f-96111d2d11f1_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) {
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
diff --git a/tmp/4ec75345-c3af-49e4-906b-07368857a5c7_buggy.java b/tmp/8799d1b3-348b-4849-9ebd-d507be2a7b49_fixed.java
index 114ff20..d9d01bf 100644
--- a/tmp/4ec75345-c3af-49e4-906b-07368857a5c7_buggy.java
+++ b/tmp/8799d1b3-348b-4849-9ebd-d507be2a7b49_fixed.java
@@ -1,41 +1,3 @@
- /**
- * 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;
}
\ No newline at end of file
- 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;
- }
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
diff --git a/tmp/316ef063-6814-4fdb-9c4d-610e7f542ffe_buggy.java b/tmp/b0869028-26ab-4071-b21e-9777cfe48cba_fixed.java
index 114ff20..978332c 100644
--- a/tmp/316ef063-6814-4fdb-9c4d-610e7f542ffe_buggy.java
+++ b/tmp/b0869028-26ab-4071-b21e-9777cfe48cba_fixed.java
@@ -1,41 +1,9 @@
- /**
- * 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;
}
\ No newline at end of file
- 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;
- }
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
diff --git a/tmp/6a82df82-a088-4310-8bcb-5a1eb065b531_buggy.java b/tmp/03951ea1-e362-45ce-9f64-5afe14f2a201_fixed.java
index 114ff20..ed5b9ec 100644
--- a/tmp/6a82df82-a088-4310-8bcb-5a1eb065b531_buggy.java
+++ b/tmp/03951ea1-e362-45ce-9f64-5afe14f2a201_fixed.java
@@ -1,41 +1,4 @@
- /**
- * 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;
}
int seriesCount = dataset.getRowCount();
\ No newline at end of file
- 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;
- }
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
diff --git a/tmp/6fa581e4-ace2-4a6d-b9f0-6bac935c9faa_buggy.java b/tmp/bb84ab33-0a7d-4878-9284-debb10f5b76e_fixed.java
index 114ff20..ed5b9ec 100644
--- a/tmp/6fa581e4-ace2-4a6d-b9f0-6bac935c9faa_buggy.java
+++ b/tmp/bb84ab33-0a7d-4878-9284-debb10f5b76e_fixed.java
@@ -1,41 +1,4 @@
- /**
- * 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;
}
int seriesCount = dataset.getRowCount();
\ No newline at end of file
- 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;
- }
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
diff --git a/tmp/c891c9bc-ee3c-47d4-b8b9-edf2fafad962_buggy.java b/tmp/3544574f-6798-4f52-97b9-6524174ed02c_fixed.java
index 114ff20..326fc82 100644
--- a/tmp/c891c9bc-ee3c-47d4-b8b9-edf2fafad962_buggy.java
+++ b/tmp/3544574f-6798-4f52-97b9-6524174ed02c_fixed.java
@@ -1,41 +1,8 @@
- /**
- * 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;
+
}
+
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;
- }
Loading

0 comments on commit 29706d4

Please sign in to comment.