Datasets:

Modalities:
Tabular
Text
Formats:
csv
Size:
< 1K
ArXiv:
Libraries:
Datasets
pandas
License:
Dataset Viewer
Auto-converted to Parquet Duplicate
repo
stringclasses
20 values
pull_number
float64
116
189k
instance_id
stringlengths
17
34
issue_numbers
stringlengths
7
27
base_commit
stringlengths
40
40
patch
stringlengths
294
136k
test_patch
stringlengths
405
47.1k
problem_statement
stringlengths
148
24k
hints_text
stringlengths
1
33.2k
created_at
stringdate
2016-08-20 07:52:07
2024-07-18 05:28:29
language
stringclasses
4 values
Dockerfile
stringlengths
486
3.42k
P2P
stringlengths
2
224k
F2P
stringlengths
14
9.06k
F2F
stringclasses
23 values
test_command
stringlengths
27
951
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
26
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"]
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...
apache/rocketmq
7,563
apache__rocketmq-7563
['7562']
4791d9a1f1a7c39e005da15f228473c04eafd007
diff --git a/broker/src/main/java/org/apache/rocketmq/broker/metrics/ConsumerLagCalculator.java b/broker/src/main/java/org/apache/rocketmq/broker/metrics/ConsumerLagCalculator.java --- a/broker/src/main/java/org/apache/rocketmq/broker/metrics/ConsumerLagCalculator.java +++ b/broker/src/main/java/org/apache/rocketmq/bro...
diff --git a/proxy/src/test/java/org/apache/rocketmq/proxy/common/utils/FilterUtilTest.java b/proxy/src/test/java/org/apache/rocketmq/proxy/common/utils/FilterUtilTest.java --- a/proxy/src/test/java/org/apache/rocketmq/proxy/common/utils/FilterUtilTest.java +++ b/proxy/src/test/java/org/apache/rocketmq/proxy/common/uti...
[Bug] Can not get the correct accumulation for consumer group. ### Before Creating the Bug Report - [X] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions). - [X] I have searched the [GitHub Issues](https://github.com/apache/rocket...
null
2023-11-15 13:05:23+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/ && sed -i 's/^.*\*\*\/IT\*\.java.*$/<exclude>**\/IT*.java<\/exclude><exclude>%regex[.*MixCommitlogTest.*]<\/exclude>/' pom.xml && up...
[]
['org.apache.rocketmq.proxy.common.utils.FilterUtilTest.testTagMatched', 'org.apache.rocketmq.proxy.common.utils.FilterUtilTest.testTagNotMatchedNull', 'org.apache.rocketmq.proxy.common.utils.FilterUtilTest.testBuildSubscriptionData', 'org.apache.rocketmq.proxy.common.utils.FilterUtilTest.testTagMatchedStar', 'org.apac...
[]
find /testbed -path "*/target/surefire-reports/TEST-*.xml" -delete; export JAVA_HOME=/usr/lib/jvm/java-1.8.0-amazon-corretto.x86_64/ && sed -i 's/^.*\*\*\/IT\*\.java.*$/<exclude>**\/IT*.java<\/exclude><exclude>%regex[.*MixCommitlogTest.*]<\/exclude>/' pom.xml && update-alternatives --set java /usr/lib/jvm/java-1.8.0-am...
Bug Fix
false
false
false
true
2
1
3
false
false
["broker/src/main/java/org/apache/rocketmq/broker/metrics/ConsumerLagCalculator.java->program->class_declaration:ConsumerLagCalculator->method_declaration:calculateMessageCount", "remoting/src/main/java/org/apache/rocketmq/remoting/protocol/filter/FilterAPI.java->program->class_declaration:FilterAPI->method_declaration...
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...
apache/dubbo
3,317
apache__dubbo-3317
['2423', '2423']
d27fb1f5aa46706a52f63b336932dc24ab95b82f
diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java --- a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java +++ b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/NetUtils.java @@ -22,9 ...
diff --git a/dubbo-registry/dubbo-registry-multicast/src/test/java/org/apache/dubbo/registry/multicast/MulticastRegistryTest.java b/dubbo-registry/dubbo-registry-multicast/src/test/java/org/apache/dubbo/registry/multicast/MulticastRegistryTest.java --- a/dubbo-registry/dubbo-registry-multicast/src/test/java/org/apache/...
Multicast demo fails with message "Can't assign requested address" - [x] I have searched the [issues](https://github.com/apache/incubator-dubbo/issues) of this repository and believe that this is not a duplicate. - [x] I have checked the [FAQ](https://github.com/apache/incubator-dubbo/blob/master/FAQ.md) of this reposi...
This is because there are multiple network interfaces in my macOS, both for ipv4 and ipv6: ``` en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500 ether e0:ac:cb:7f:75:20 inet6 fe80::cfb:9054:967d:13be%en0 prefixlen 64 secured scopeid 0x5 inet 192.168.31.235 netmask 0xffffff0...
2019-01-23 08:52:33+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.registry.multicast.MulticastRegistryTest.testSubscribe', 'org.apache.dubbo.registry.multicast.MulticastRegistryTest.testDefaultPort', 'org.apache.dubbo.registry.multicast.MulticastRegistryTest.testUnsubscribe', 'org.apache.dubbo.registry.multicast.MulticastRegistryTest.testGetCustomPort', 'org.apache...
[]
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=MulticastRegistryTest -DfailIfNoTests=false -f...
Bug Fix
false
false
false
true
5
2
7
false
false
["dubbo-registry/dubbo-registry-multicast/src/main/java/org/apache/dubbo/registry/multicast/MulticastRegistry.java->program->class_declaration:MulticastRegistry->method_declaration:doUnsubscribe", "dubbo-registry/dubbo-registry-multicast/src/main/java/org/apache/dubbo/registry/multicast/MulticastRegistry.java->program-...
apolloconfig/apollo
4,568
apolloconfig__apollo-4568
['4565']
526a93506ee380a009dc20a9ab870a37367f983f
diff --git a/CHANGES.md b/CHANGES.md --- a/CHANGES.md +++ b/CHANGES.md @@ -31,6 +31,7 @@ Apollo 2.1.0 * [add an option to custom oidc userDisplayName](https://github.com/apolloconfig/apollo/pull/4507) * [fix openapi item with url illegalKey 400 error](https://github.com/apolloconfig/apollo/pull/4549) * [fix the exce...
diff --git a/apollo-common/src/test/java/com/ctrip/framework/apollo/common/utils/InputValidatorTest.java b/apollo-common/src/test/java/com/ctrip/framework/apollo/common/utils/InputValidatorTest.java --- a/apollo-common/src/test/java/com/ctrip/framework/apollo/common/utils/InputValidatorTest.java +++ b/apollo-common/src...
create namespace with single dot 500 error <!-- The content in here will not be show。To forbid duplication,easier search in the feature,before you create an issue,please check the following. If your question is a newer/beginner's,recommand to https://github.com/ctripcorp/apollo/discussions to ask it. --> - [x] I have ...
I think the reason is that quering namepace is in path value, while path contains single dot would return status 200, but response is HTML rather json, which can't be parse in front. maybe we could replace old regex ( [0-9a-zA-Z._-]+ ) with new regex ( "[0-9a-zA-Z_-]+[0-9a-zA-Z._-]*" ) This is not a normal case, but ...
2022-09-14 08:16: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...
['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/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=InputValidatorTest -DfailIfNoTests=false -fae ...
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->class_declaration:InputValidator"]
apolloconfig/apollo
4,207
apolloconfig__apollo-4207
['4018']
96ee53a2c98da763ef0e7557af33c03a8d2ae297
diff --git a/CHANGES.md b/CHANGES.md --- a/CHANGES.md +++ b/CHANGES.md @@ -36,6 +36,7 @@ Apollo 2.0.0 * [Add unit tests for Utils](https://github.com/apolloconfig/apollo/pull/4193) * [Change Copy Right year to 2022](https://github.com/apolloconfig/apollo/pull/4202) * [Allow disable apollo client cache](https://githu...
diff --git a/apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/util/AuthUserPasswordCheckerTest.java b/apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/util/AuthUserPasswordCheckerTest.java --- a/apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/util/AuthUserPasswordCheckerTest.java...
feature: `isCommonlyUsed` password check not hardcoded **Is your feature request related to a problem? Please describe.** Fragments of passwords that seem insecure may change from time to time and may be wanted to change. For example a company password policy might change and won't allow a certain pattern in their pass...
I think it makes sense to make `LIST_OF_CODE_FRAGMENT` configurable, @WillardHu what do you think? Okay, I'll fix it. Can I insert a row of data store configuration in the `serverconfig` table? @nobodyiam @WillardHu I think it's ok to have the default configurations hardcoded in the program, what needs to be done is t...
2022-01-13 07:54:11+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...
[]
['com.ctrip.framework.apollo.portal.util.AuthUserPasswordCheckerTest.testIsWeakPassword2', 'com.ctrip.framework.apollo.portal.util.AuthUserPasswordCheckerTest.testIsWeakPassword', 'com.ctrip.framework.apollo.portal.util.AuthUserPasswordCheckerTest.testRegexMatch', 'com.ctrip.framework.apollo.portal.util.AuthUserPasswor...
[]
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=AuthUserPasswordCheckerTest -DfailIfNoTests=fa...
Feature
false
false
false
true
3
3
6
false
false
["apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/util/checker/AuthUserPasswordChecker.java->program->class_declaration:AuthUserPasswordChecker", "apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/component/config/PortalConfig.java->program->class_declaration:PortalConfig", "apollo-portal/src/...
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)
google/gson
2,134
google__gson-2134
['2133']
96ab171eb48dcea94fd9b8f425f65c531e6c3aad
"diff --git a/gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java b/gson/src/mai(...TRUNCATED)
"diff --git a/gson/src/test/java/com/google/gson/internal/bind/util/ISO8601UtilsTest.java b/gson/src(...TRUNCATED)
"ISO8061Utils.parse() accepts non-existent dates\n# Gson version\n2.9.0\n\n# Java / Android version\(...TRUNCATED)
null
2022-06-12 20:12:27+00:00
Java
"From polybench_java_base\nWORKDIR /testbed\nCOPY . .\nRUN find /testbed -path \"*/target/surefire-r(...TRUNCATED)
"['com.google.gson.internal.bind.util.ISO8601UtilsTest.testDateParseInvalidTime', 'com.google.gson.i(...TRUNCATED)
"['com.google.gson.internal.bind.util.ISO8601UtilsTest.testDateParseInvalidMonth', 'com.google.gson.(...TRUNCATED)
[]
"find /testbed -path \"*/target/surefire-reports/TEST-*.xml\" -delete; export JAVA_HOME=/usr/lib/jvm(...TRUNCATED)
Bug Fix
false
true
false
false
1
0
1
true
false
"[\"gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java->program->class_declarat(...TRUNCATED)
google/gson
2,475
google__gson-2475
['2407']
7b5629bcfca156051253db7d6f6510db5862a967
"diff --git a/gson/src/main/java/com/google/gson/stream/JsonWriter.java b/gson/src/main/java/com/goo(...TRUNCATED)
"diff --git a/gson/src/test/java/com/google/gson/stream/JsonWriterTest.java b/gson/src/test/java/com(...TRUNCATED)
"`JsonWriter.name` does not throw exception when not inside JSON object\n# Gson version\n2.10.1\n\n#(...TRUNCATED)
"Seems like we should fix this. You _will_ get an exception if you write pretty much anything else a(...TRUNCATED)
2023-08-21 17:22:00+00:00
Java
"From polybench_java_base\nWORKDIR /testbed\nCOPY . .\nRUN find /testbed -path \"*/target/surefire-r(...TRUNCATED)
"['com.google.gson.stream.JsonWriterTest.testDoubles', 'com.google.gson.stream.JsonWriterTest.testNo(...TRUNCATED)
"['com.google.gson.stream.JsonWriterTest.closeAllObjectsAndTryToAddElements', 'com.google.gson.strea(...TRUNCATED)
[]
"find /testbed -path \"*/target/surefire-reports/TEST-*.xml\" -delete; export JAVA_HOME=/usr/lib/jvm(...TRUNCATED)
Bug Fix
false
true
false
false
1
0
1
true
false
"[\"gson/src/main/java/com/google/gson/stream/JsonWriter.java->program->class_declaration:JsonWriter(...TRUNCATED)
End of preview. Expand in Data Studio

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 the verified split is:

Javascript: 100

Typescript: 100

Python: 113

Java: 69

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
6,015

Collection including AmazonScience/SWE-PolyBench_Verified

Paper for AmazonScience/SWE-PolyBench_Verified