repo stringclasses 21
values | pull_number float64 88 192k | instance_id stringlengths 16 34 | issue_numbers stringlengths 6 20 | base_commit stringlengths 40 40 | patch stringlengths 266 270k | test_patch stringlengths 350 165k | problem_statement stringlengths 38 24k | hints_text stringlengths 1 33.2k ⌀ | created_at stringdate 2016-01-11 17:37:29 2024-10-18 14:52:41 | language stringclasses 4
values | Dockerfile stringlengths 100 3.03k | P2P stringlengths 2 216k | F2P stringlengths 11 10.5k | F2F stringclasses 26
values | test_command stringlengths 27 5.49k | task_category stringclasses 3
values | is_no_nodes bool 2
classes | is_func_only bool 2
classes | is_class_only bool 2
classes | is_mixed bool 2
classes | num_func_changes int64 0 238 | num_class_changes int64 0 70 | num_nodes int64 0 264 | is_single_func bool 2
classes | is_single_class bool 2
classes | modified_nodes stringlengths 2 42.2k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
google/gson | 2,337 | google__gson-2337 | ['2334', '2334'] | 0adcdc80d5ef3a40086a8abd6e2f55164a7c2597 | diff --git a/gson/src/main/java/com/google/gson/stream/JsonReader.java b/gson/src/main/java/com/google/gson/stream/JsonReader.java
--- a/gson/src/main/java/com/google/gson/stream/JsonReader.java
+++ b/gson/src/main/java/com/google/gson/stream/JsonReader.java
@@ -1587,7 +1587,7 @@ public String getPath() {
* been re... | diff --git a/gson/src/test/java/com/google/gson/stream/JsonReaderTest.java b/gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
--- a/gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
+++ b/gson/src/test/java/com/google/gson/stream/JsonReaderTest.java
@@ -355,7 +355,7 @@ public void testUnescapin... | Malformed Unicode escape sequence causes `NumberFormatException` instead of `MalformedJsonException`
# Gson version
2.10.1
# Description
`JsonReader` throws a `NumberFormatException` instead of a `MalformedJsonException` when it encounters a malformed Unicode escape sequence in the JSON data.
This actually works as de... | I agree. It's weird to throw `NumberFormatException` here yet `MalformedJsonException` when for example there are fewer than 4 characters after the `\u`. I also agree that this is unlikely to affect anyone in practice, other than tests that might have been expecting the current exception.
I agree. It's weird to throw `... | 2023-03-06 15:40:50+00:00 | Java | From polybench_java_base
WORKDIR /testbed
COPY . .
RUN find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java && mvn clean verify -am -Dtest=JsonReaderTest -D... | [] | ['com.google.gson.stream.JsonReaderTest.testFailWithPositionOverCStyleComment', 'com.google.gson.stream.JsonReaderTest.testTopLevelValueTypes', 'com.google.gson.stream.JsonReaderTest.testReadArray', 'com.google.gson.stream.JsonReaderTest.testStrictSingleQuotedStrings', 'com.google.gson.stream.JsonReaderTest.testHelloWo... | [] | find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java && mvn clean verify -am -Dtest=JsonReaderTest -DfailIfNoTests=false -fae surefire-report:report -Dsuref... | Bug Fix | false | false | false | true | 1 | 1 | 2 | false | false | ["gson/src/main/java/com/google/gson/stream/JsonReader.java->program->class_declaration:JsonReader", "gson/src/main/java/com/google/gson/stream/JsonReader.java->program->class_declaration:JsonReader->method_declaration:readEscapeCharacter"] |
apache/dubbo | 3,479 | apache__dubbo-3479 | ['3478'] | bf3b423dc5635511000fbd2dcae1b955fbd87d67 | diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/URL.java b/dubbo-common/src/main/java/org/apache/dubbo/common/URL.java
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/URL.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/URL.java
@@ -1297,7 +1297,7 @@ public InetSocketAddress toInet... | diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/URLTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/URLTest.java
--- a/dubbo-common/src/test/java/org/apache/dubbo/common/URLTest.java
+++ b/dubbo-common/src/test/java/org/apache/dubbo/common/URLTest.java
@@ -687,4 +687,22 @@ public void test... | Keep interface key in the URL in simplify mode when it's different from path.
1. non-simplify mode:
```
dubbo://120.0.0.1:20880/org.apache.dubbo.demo.DemoService?key=value
```
the store path of ZK will be: `/dubbo/porg.apache.dubbo.demo.DemoService/url`
2. simplify mode:
```
dubbo://120.0.0.1:20880/org.apache.dubbo.de... | null | 2019-02-14 10:09:51+00:00 | Java | From polybench_java_base
WORKDIR /testbed
COPY . .
RUN find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/bin/java && if [ -e mvnw ]; then ./mvnw test -a... | [] | ['org.apache.dubbo.common.URLTest.testIpV6AddressWithScopeId', 'org.apache.dubbo.common.URLTest.test_javaNetUrl', 'org.apache.dubbo.config.ServiceConfigTest.testExport', 'org.apache.dubbo.common.URLTest.test_Anyhost', 'org.apache.dubbo.config.builders.ServiceBuilderTest.Mock1', 'org.apache.dubbo.common.URLTest.test_val... | [] | find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/jre/bin/java && if [ -e mvnw ]; then ./mvnw test -am -Dtest=RestProtocolTest,URLTest,ServiceBuilderTest,Se... | Bug Fix | false | false | false | true | 14 | 4 | 18 | false | false | ["dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java->program->class_declaration:ServiceConfig", "dubbo-common/src/main/java/org/apache/dubbo/common/URL.java->program->class_declaration:URL->method_declaration:String_buildKey", "dubbo-common/src/main/java/org/apache/dubbo/common/URL.... |
google/gson | 2,498 | google__gson-2498 | ['1510'] | 2032818ecb1a5d0932d4702ff36a8cc5b3bc20aa | diff --git a/gson/src/main/java/com/google/gson/internal/Excluder.java b/gson/src/main/java/com/google/gson/internal/Excluder.java
--- a/gson/src/main/java/com/google/gson/internal/Excluder.java
+++ b/gson/src/main/java/com/google/gson/internal/Excluder.java
@@ -24,6 +24,7 @@
import com.google.gson.annotations.Expose;... | diff --git a/gson/src/test/java/com/google/gson/ExposeAnnotationExclusionStrategyTest.java b/gson/src/test/java/com/google/gson/ExposeAnnotationExclusionStrategyTest.java
--- a/gson/src/test/java/com/google/gson/ExposeAnnotationExclusionStrategyTest.java
+++ b/gson/src/test/java/com/google/gson/ExposeAnnotationExclusio... | Allow serialization of anonymous classes
**Describe the feature**
Gson should allow *serialization* of anonymous classes, the reason is that the user shouldn't care about the implementation of the code that generates the objects they are using.
For example, this code that only uses Guava and Gson looks fine and users ... | Very early versions of Gson actually supported inner classes.
What do you expect to happen to the outer class reference? Ignore it silently or serialize it as well?
Note that the topic of this issue is not inner classes but anonymous classes.
Anyway, ignoring the references to the outer class seems fine (imagine a ci... | 2023-09-23 20:14:37+00:00 | Java | From polybench_java_base
WORKDIR /testbed
COPY . .
RUN find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java && mvn clean verify -am -Dtest=ObjectTest,InnerC... | ['com.google.gson.functional.ObjectTest.testStaticFieldSerialization', 'com.google.gson.InnerClassExclusionStrategyTest.testExcludeInnerClassField', 'com.google.gson.InnerClassExclusionStrategyTest.testIncludeStaticNestedClassField', 'com.google.gson.functional.EnumTest.testCollectionOfEnumsDeserialization', 'com.googl... | ['com.google.gson.functional.ObjectTest.testAnonymousLocalClassesCustomSerialization'] | [] | find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java && mvn clean verify -am -Dtest=ObjectTest,InnerClassExclusionStrategyTest,VersionExclusionStrategyTest,... | Feature | false | false | false | true | 16 | 2 | 18 | false | false | ["gson/src/main/java/com/google/gson/internal/Excluder.java->program->class_declaration:Excluder->method_declaration:create->method_declaration:delegate", "gson/src/main/java/com/google/gson/internal/reflect/ReflectionHelper.java->program->class_declaration:ReflectionHelper->method_declaration:isAnonymousOrNonStaticLoc... |
google/gson | 2,476 | google__gson-2476 | ['2407'] | ddc76ea4cc7dc8ccb0930ddfee668e2f53a4426c | diff --git a/gson/src/main/java/com/google/gson/internal/bind/JsonTreeWriter.java b/gson/src/main/java/com/google/gson/internal/bind/JsonTreeWriter.java
--- a/gson/src/main/java/com/google/gson/internal/bind/JsonTreeWriter.java
+++ b/gson/src/main/java/com/google/gson/internal/bind/JsonTreeWriter.java
@@ -139,14 +139,1... | diff --git a/gson/src/test/java/com/google/gson/internal/bind/JsonTreeWriterTest.java b/gson/src/test/java/com/google/gson/internal/bind/JsonTreeWriterTest.java
--- a/gson/src/test/java/com/google/gson/internal/bind/JsonTreeWriterTest.java
+++ b/gson/src/test/java/com/google/gson/internal/bind/JsonTreeWriterTest.java
@... | `JsonWriter.name` does not throw exception when not inside JSON object
# Gson version
2.10.1
# Java / Android version
Java 17
# Description
Calling `JsonWriter.name` (and maybe also `JsonTreeWriter.name`) when not inside a JSON object does not fail.
## Expected behavior
An `IllegalStateException` should be thrown
#... | Seems like we should fix this. You _will_ get an exception if you write pretty much anything else after the `.name`, but it would be better to get it exactly at the point where the mistake was made.
Hi, just wanted to ask, if anyone not working on this, would like to contribute on this issue
@shivam-sehgal, thanks for ... | 2023-08-22 20:14:56+00:00 | Java | From polybench_java_base
WORKDIR /testbed
COPY . .
RUN find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java && mvn clean verify -am -Dtest=JsonWriterTest,Js... | ['com.google.gson.stream.JsonWriterTest.testDoubles', 'com.google.gson.stream.JsonWriterTest.testNonFiniteDoublesWhenLenient', 'com.google.gson.stream.JsonWriterTest.testMalformedNumbers', 'com.google.gson.stream.JsonWriterTest.testClosedWriterThrowsOnFlush', 'com.google.gson.stream.JsonWriterTest.testNullName', 'com.g... | ['com.google.gson.internal.bind.JsonTreeWriterTest.testTwoNames', 'com.google.gson.internal.bind.JsonTreeWriterTest.testNameInArray', 'com.google.gson.stream.JsonWriterTest.testNameInArray', 'com.google.gson.internal.bind.JsonTreeWriterTest.testNameAsTopLevelValue', 'com.google.gson.stream.JsonWriterTest.testNameAsTopL... | [] | find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java && mvn clean verify -am -Dtest=JsonWriterTest,JsonTreeWriterTest -DfailIfNoTests=false -fae surefire-re... | Bug Fix | false | true | false | false | 2 | 0 | 2 | false | false | ["gson/src/main/java/com/google/gson/stream/JsonWriter.java->program->class_declaration:JsonWriter->method_declaration:JsonWriter_name", "gson/src/main/java/com/google/gson/internal/bind/JsonTreeWriter.java->program->class_declaration:JsonTreeWriter->method_declaration:JsonWriter_name"] |
google/gson | 2,178 | google__gson-2178 | ['1908'] | 18b9ba407d3f33e84d613a695ccd6d0e7360a21e | diff --git a/gson/src/main/java/com/google/gson/JsonArray.java b/gson/src/main/java/com/google/gson/JsonArray.java
--- a/gson/src/main/java/com/google/gson/JsonArray.java
+++ b/gson/src/main/java/com/google/gson/JsonArray.java
@@ -55,7 +55,8 @@ public JsonArray(int capacity) {
}
/**
- * Creates a deep copy of... | diff --git a/gson/src/test/java/com/google/gson/JsonArrayTest.java b/gson/src/test/java/com/google/gson/JsonArrayTest.java
--- a/gson/src/test/java/com/google/gson/JsonArrayTest.java
+++ b/gson/src/test/java/com/google/gson/JsonArrayTest.java
@@ -105,7 +105,7 @@ public void testDeepCopy() {
assertEquals(1, origina... | JavaDoc bug in JsonArray and JsonElement classes
The JavaDoc description of `getAsDouble` method in `JsonArray` and `JsonElement` classes states that the method throws “_ClassCastException if the element is of not a JsonPrimitive and is not a valid double value_.” However, it actually throws an `UnsupportedOperationExc... | null | 2022-08-20 13:48:43+00:00 | Java | From polybench_java_base
WORKDIR /testbed
COPY . .
RUN find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java && mvn clean verify -am -Dtest=JsonPrimitiveTest... | ['com.google.gson.functional.JsonArrayTest.testCharPrimitiveAddition', 'com.google.gson.JsonPrimitiveTest.testEqualsDoesNotEquateStringAndNonStringTypes', 'com.google.gson.JsonPrimitiveTest.testFloatEqualsDouble', 'com.google.gson.JsonPrimitiveTest.testEquals', 'com.google.gson.JsonPrimitiveTest.testEqualsIntegerAndBig... | ['com.google.gson.JsonPrimitiveTest.testAsNumber_Boolean', 'com.google.gson.JsonPrimitiveTest.testStringsAndChar', 'com.google.gson.JsonArrayTest.testGetAs_WrongArraySize'] | [] | find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java && mvn clean verify -am -Dtest=JsonPrimitiveTest,JsonArrayTest -DfailIfNoTests=false -fae surefire-repo... | Bug Fix | false | false | false | true | 18 | 3 | 21 | false | false | ["gson/src/main/java/com/google/gson/JsonArray.java->program->class_declaration:JsonArray", "gson/src/main/java/com/google/gson/JsonPrimitive.java->program->class_declaration:JsonPrimitive->method_declaration:Number_getAsNumber", "gson/src/main/java/com/google/gson/JsonArray.java->program->class_declaration:JsonArray->... |
google/gson | 2,376 | google__gson-2376 | ['1219'] | 77b566ced0127baf8d9ebf071b50c0f36e296538 | diff --git a/Troubleshooting.md b/Troubleshooting.md
--- a/Troubleshooting.md
+++ b/Troubleshooting.md
@@ -17,7 +17,7 @@ This guide describes how to troubleshoot common issues when using Gson.
See the [user guide](UserGuide.md#collections-examples) for more information.
- When using `TypeToken` prefer the `Gson.fro... | diff --git a/gson/src/test/java/com/google/gson/reflect/TypeTokenTest.java b/gson/src/test/java/com/google/gson/reflect/TypeTokenTest.java
--- a/gson/src/test/java/com/google/gson/reflect/TypeTokenTest.java
+++ b/gson/src/test/java/com/google/gson/reflect/TypeTokenTest.java
@@ -20,8 +20,10 @@
import static org.junit.A... | Don't silently ignore missing type information from `TypeTokens`.
I'm active on Stack Overflow, and often see questions with code more or less like this:
```
public class Main {
public static void main(String[] args) {
// should work right?
MyClass mc = new Gson().fromJson("{}", Main.<MyClass>type... | @eamonnmcmanus, can this please be revisited (maybe using the original code from #2072) in one of the next major versions? The author of this issue is right, people keep running into this issue somewhat frequently, and as pointed out in https://github.com/google/gson/pull/2072#discussion_r807417151 this can also cause ... | 2023-04-16 13:48:42+00:00 | Java | From polybench_java_base
WORKDIR /testbed
COPY . .
RUN find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java && mvn clean verify -am -Dtest=TypeTokenTest -Df... | ['com.google.gson.reflect.TypeTokenTest.testTypeTokenRaw', 'com.google.gson.reflect.TypeTokenTest.testArrayFactory', 'com.google.gson.reflect.TypeTokenTest.testParameterizedFactory', 'com.google.gson.reflect.TypeTokenTest.testTypeTokenSubSubClass', 'com.google.gson.reflect.TypeTokenTest.testIsAssignableFromWithBasicWil... | ['com.google.gson.reflect.TypeTokenTest.testTypeTokenTypeVariable'] | [] | find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/ && update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java && mvn clean verify -am -Dtest=TypeTokenTest -DfailIfNoTests=false -fae surefire-report:report -Dsurefi... | Bug Fix | false | false | false | true | 4 | 1 | 5 | false | false | ["shrinker-test/src/main/java/com/example/ClassWithJsonAdapterAnnotation.java->program->class_declaration:ClassWithJsonAdapterAnnotation->class_declaration:Factory->method_declaration:create", "gson/src/main/java/com/google/gson/reflect/TypeToken.java->program->class_declaration:TypeToken->method_declaration:Type_getTy... |
apolloconfig/apollo | 4,568 | apolloconfig__apollo-4568 | ['4565'] | 526a93506ee380a009dc20a9ab870a37367f983f | "diff --git a/CHANGES.md b/CHANGES.md\n--- a/CHANGES.md\n+++ b/CHANGES.md\n@@ -31,6 +31,7 @@ Apollo (...TRUNCATED) | "diff --git a/apollo-common/src/test/java/com/ctrip/framework/apollo/common/utils/InputValidatorTest(...TRUNCATED) | "create namespace with single dot 500 error\n<!-- The content in here will not be show。To forbid d(...TRUNCATED) | "I think the reason is that quering namepace is in path value, while path contains single dot would(...TRUNCATED) | 2022-09-14 08:16:51+00:00 | Java | "From polybench_java_base\nWORKDIR /testbed\nCOPY . .\nRUN find /testbed -path \"*/target/surefire-r(...TRUNCATED) | ['com.ctrip.framework.apollo.common.utils.InputValidatorTest.testValidAppNamespaceName'] | ['com.ctrip.framework.apollo.common.utils.InputValidatorTest.testValidClusterName'] | [] | "find /testbed -path \"*/target/surefire-reports/TEST-*.xml\" -delete; export JAVA_HOME=/usr/lib/jvm(...TRUNCATED) | Bug Fix | false | false | true | false | 0 | 1 | 1 | false | true | "[\"apollo-common/src/main/java/com/ctrip/framework/apollo/common/utils/InputValidator.java->program(...TRUNCATED) |
google/gson | 2,004 | google__gson-2004 | ['1965'] | ba96d53bad35f7466073f14cb3d89d09383e1a2d | "diff --git a/gson/src/main/java/com/google/gson/FieldNamingPolicy.java b/gson/src/main/java/com/goo(...TRUNCATED) | "diff --git a/gson/src/test/java/com/google/gson/FieldNamingPolicyTest.java b/gson/src/test/java/com(...TRUNCATED) | "`FieldNamingPolicy.upperCaseFirstLetter` uppercases trailing non-letters\nThe internal method `Fiel(...TRUNCATED) | "As you say, this is unlikely to matter in practice. But if you want to send a PR to fix it, we'd be(...TRUNCATED) | 2021-10-29 15:49:11+00:00 | Java | "From polybench_java_base\nWORKDIR /testbed\nCOPY . .\nRUN find /testbed -path \"*/target/surefire-r(...TRUNCATED) | [] | "['com.google.gson.FieldNamingPolicyTest.testSeparateCamelCase', 'com.google.gson.FieldNamingPolicyT(...TRUNCATED) | [] | "find /testbed -path \"*/target/surefire-reports/TEST-*.xml\" -delete; export JAVA_HOME=/usr/lib/jvm(...TRUNCATED) | Bug Fix | true | false | false | false | 0 | 0 | 0 | false | false | "[\"gson/src/main/java/com/google/gson/FieldNamingPolicy.java->program->method_declaration:String_up(...TRUNCATED) |
apolloconfig/apollo | 4,207 | apolloconfig__apollo-4207 | ['4018'] | 96ee53a2c98da763ef0e7557af33c03a8d2ae297 | "diff --git a/CHANGES.md b/CHANGES.md\n--- a/CHANGES.md\n+++ b/CHANGES.md\n@@ -36,6 +36,7 @@ Apollo (...TRUNCATED) | "diff --git a/apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/util/AuthUserPasswordChe(...TRUNCATED) | "feature: `isCommonlyUsed` password check not hardcoded\n**Is your feature request related to a prob(...TRUNCATED) | "I think it makes sense to make `LIST_OF_CODE_FRAGMENT` configurable, @WillardHu what do you think?\(...TRUNCATED) | 2022-01-13 07:54:11+00:00 | Java | "From polybench_java_base\nWORKDIR /testbed\nCOPY . .\nRUN find /testbed -path \"*/target/surefire-r(...TRUNCATED) | [] | "['com.ctrip.framework.apollo.portal.util.AuthUserPasswordCheckerTest.testIsWeakPassword2', 'com.ctr(...TRUNCATED) | [] | "find /testbed -path \"*/target/surefire-reports/TEST-*.xml\" -delete; export JAVA_HOME=/usr/lib/jvm(...TRUNCATED) | Feature | false | false | false | true | 3 | 3 | 6 | false | false | "[\"apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/util/checker/AuthUserPasswordCheck(...TRUNCATED) |
google/gson | 2,410 | google__gson-2410 | ['2405'] | cf50a5aaf152a34b3fb8bfd34ed12a07f1b8ed2d | "diff --git a/CHANGELOG.md b/CHANGELOG.md\n--- a/CHANGELOG.md\n+++ b/CHANGELOG.md\n@@ -188,7 +188,7 (...TRUNCATED) | "diff --git a/gson/src/test/java/com/google/gson/ToNumberPolicyTest.java b/gson/src/test/java/com/go(...TRUNCATED) | "Rename `master` branch to `main`\nIn keeping with [recent practice](https://github.com/github/renam(...TRUNCATED) | null | 2023-06-05 20:16:48+00:00 | Java | "From polybench_java_base\nWORKDIR /testbed\nCOPY . .\n\nENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-c(...TRUNCATED) | "['com.google.gson.functional.DefaultTypeAdaptersTest.testUuidDeserialization', 'com.google.gson.fun(...TRUNCATED) | "['com.google.gson.ToNumberPolicyTest.testLongOrDouble', 'com.google.gson.stream.JsonReaderTest.test(...TRUNCATED) | [] | "find /testbed -path \"*/target/surefire-reports/TEST-*.xml\" -delete; export JAVA_HOME=/usr/lib/jvm(...TRUNCATED) | Refactoring | false | true | false | false | 1 | 0 | 1 | true | false | "[\"gson/src/main/java/com/google/gson/internal/TroubleshootingGuide.java->program->class_declaratio(...TRUNCATED) |
SWE-PolyBench
SWE-PolyBench is a multi language repo level software engineering benchmark. Currently it includes 4 languages: Python, Java, Javascript, and Typescript. The number of instances in each language is:
Javascript: 1017
Typescript: 729
Python: 199
Java: 165
Datasets
There are total three datasets available under SWE-PolyBench. AmazonScience/SWE-PolyBench is the full dataset, AmazonScience/SWE-PolyBench_500 is the stratified sampled dataset with 500 instances and AmazonScience/SWE-PolyBench_Verified is our verified dataset with 394 instances.
Leaderboard
We evaluated several open source coding agents/models on this dataset and report them in our leaderboard.
Submit
To submit your predictions on this dataset, please follow this README
Languages
The text of the dataset is primarily English.
Dataset Structure
An example row from the dataset includes the following columns:
instance_id: (str) - A formatted instance identifier, usually as repo_owner__repo_name-PR-number.
patch: (str) - The gold patch, the patch generated by the PR (minus test-related code), that resolved the issue.
repo: (str) - The repository owner/name identifier from GitHub.
base_commit: (str) - The commit hash of the repository representing the HEAD of the repository before the solution PR is applied.
hints_text: (str) - Comments made on the issue prior to the creation of the solution PR’s first commit creation date.
created_at: (str) - The creation date of the pull request.
test_patch: (str) - A test-file patch that was contributed by the solution PR.
problem_statement: (str) - The issue title and body.
F2P: (str) - A json list of strings that represent the set of tests resolved by the PR and tied to the issue resolution.
P2P: (str) - A json list of strings that represent tests that should pass before and after the PR application.
language: (str) - The programming language
Dockerfile: (str) - The instance level dockerfile
test_command: (str) - The test command used to get F2P and P2P
task_category: (str) - The problem classification (Bug Fix, Refactoring, Feature)
is_no_nodes: (bool) - Helpful info for evaluating retrieval metrics
is_func_only: (bool) - Helpful info for evaluating retrieval metrics
is_class_only: (bool) - Helpful info for evaluating retrieval metrics
is_mixed: (bool) - Helpful info for evaluating retrieval metrics
num_func_changes: (int) - Helpful info for evaluating retrieval metrics
num_class_changes: (int) - Helpful info for evaluating retrieval metrics
num_nodes: (int) - Helpful info for evaluating retrieval metrics
is_single_func: (bool) - Helpful info for evaluating retrieval metrics
is_single_class: (bool) - Helpful info for evaluating retrieval metrics
modified_nodes: (bool) - Helpful info for evaluating retrieval metrics
Citation
If you find our work useful please cite:
@misc{rashid2025swepolybenchmultilanguagebenchmarkrepository,
title={SWE-PolyBench: A multi-language benchmark for repository level evaluation of coding agents},
author={Muhammad Shihab Rashid and Christian Bock and Yuan Zhuang and Alexander Buchholz and Tim Esler and Simon Valentin and Luca Franceschi and Martin Wistuba and Prabhu Teja Sivaprasad and Woo Jung Kim and Anoop Deoras and Giovanni Zappella and Laurent Callot},
year={2025},
eprint={2504.08703},
archivePrefix={arXiv},
primaryClass={cs.SE},
url={https://arxiv.org/abs/2504.08703},
}
- Downloads last month
- 90