Skip to content

Commit

Permalink
add llama-3.3-70b-instruct
Browse files Browse the repository at this point in the history
  • Loading branch information
andre15silva committed Dec 11, 2024
1 parent 59cfe2b commit e2340ff
Show file tree
Hide file tree
Showing 6,842 changed files with 504,056 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/llama-3.3-70b-instruct/defects4j/bugs_with_candidates.txt

Large diffs are not rendered by default.

484 changes: 484 additions & 0 deletions results/llama-3.3-70b-instruct/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.5613870600000028,
"completion_cost": 0.8341400000000005,
"total_cost": 1.3955270600000034,
"provider": "openrouter"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/05d075dc-3d5c-4685-867a-12d3c8cf429d_buggy.java b/tmp/0c20786a-1a4c-4fc1-b778-1e121c7b872d_fixed.java
index 114ff20..cf5a585 100644
--- a/tmp/05d075dc-3d5c-4685-867a-12d3c8cf429d_buggy.java
+++ b/tmp/0c20786a-1a4c-4fc1-b778-1e121c7b872d_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) { // Changed from '!=' to '=='
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/81a39e5f-ba6d-49a0-9a0f-4ecacd1fba15_buggy.java b/tmp/2fd007d6-b5ba-4139-9f5f-365d03f6a7ab_fixed.java
index 114ff20..43a91f1 100644
--- a/tmp/81a39e5f-ba6d-49a0-9a0f-4ecacd1fba15_buggy.java
+++ b/tmp/2fd007d6-b5ba-4139-9f5f-365d03f6a7ab_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
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/7ac4491d-20eb-4374-99e8-37cdb670c71c_buggy.java b/tmp/83515a02-fa9e-405d-b74a-24bd2f04364b_fixed.java
index 114ff20..fe20951 100644
--- a/tmp/7ac4491d-20eb-4374-99e8-37cdb670c71c_buggy.java
+++ b/tmp/83515a02-fa9e-405d-b74a-24bd2f04364b_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) { // changed from!= to ==
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/41e82696-2dc6-47b7-8b3c-435918c38dd0_buggy.java b/tmp/72e9374a-a5e8-4e54-8641-bad70a3aee10_fixed.java
index 114ff20..43a91f1 100644
--- a/tmp/41e82696-2dc6-47b7-8b3c-435918c38dd0_buggy.java
+++ b/tmp/72e9374a-a5e8-4e54-8641-bad70a3aee10_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
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
diff --git a/tmp/dbf77c7b-9060-418a-9b80-61c08d991a95_buggy.java b/tmp/07da0dd6-6609-4a20-891c-7f0619f5168e_fixed.java
index 114ff20..43a91f1 100644
--- a/tmp/dbf77c7b-9060-418a-9b80-61c08d991a95_buggy.java
+++ b/tmp/07da0dd6-6609-4a20-891c-7f0619f5168e_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
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
diff --git a/tmp/d8064ae8-d903-46cd-af4b-61c261fc3250_buggy.java b/tmp/d3beafed-0b5b-4fd6-9bf4-cc1ce70f67cc_fixed.java
index 114ff20..91d6635 100644
--- a/tmp/d8064ae8-d903-46cd-af4b-61c261fc3250_buggy.java
+++ b/tmp/d3beafed-0b5b-4fd6-9bf4-cc1ce70f67cc_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) {
- return result;
+ if (dataset == null) {
+ return result; // return here if 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 {
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/8c2572da-1390-4f9b-9ad8-06703976818c_buggy.java b/tmp/e5641e6e-6f16-4a06-a3b3-145eed8684ae_fixed.java
index 114ff20..90507dc 100644
--- a/tmp/8c2572da-1390-4f9b-9ad8-06703976818c_buggy.java
+++ b/tmp/e5641e6e-6f16-4a06-a3b3-145eed8684ae_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) { // Changed from dataset!= null to 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 e2340ff

Please sign in to comment.