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
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -188,7 +188,7 @@ _2015-10-04_
* New: APIs to add primitives directly to `JsonArray` instances.
* New: ISO 8601 date type adapter. Find this in _extras_.
* Fix: `FieldNamingPolicy` now works properly when running on a device with a T... | diff --git a/gson/src/test/java/com/google/gson/ToNumberPolicyTest.java b/gson/src/test/java/com/google/gson/ToNumberPolicyTest.java
--- a/gson/src/test/java/com/google/gson/ToNumberPolicyTest.java
+++ b/gson/src/test/java/com/google/gson/ToNumberPolicyTest.java
@@ -39,7 +39,7 @@ public void testDouble() throws IOExcep... | Rename `master` branch to `main`
In keeping with [recent practice](https://github.com/github/renaming), we should rename the `master` branch on GitHub to `main`. This change is well-supported on GitHub.
One notable effect is that we can change the [links](https://github.com/google/gson/blob/2d7cc2e9f4e12163d4405a601fa... | null | 2023-06-05 20:16:48+00:00 | Java | From polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD);... | ['com.google.gson.functional.DefaultTypeAdaptersTest.testUuidDeserialization', 'com.google.gson.functional.DefaultTypeAdaptersTest.testJsonElementTypeMismatch', 'com.google.gson.functional.ObjectTest.testStaticFieldSerialization', 'com.google.gson.functional.DefaultTypeAdaptersTest.testLocaleDeserializationWithLanguage... | ['com.google.gson.ToNumberPolicyTest.testLongOrDouble', 'com.google.gson.stream.JsonReaderTest.testPeekingUnquotedStringsPrefixedWithBooleans', 'com.google.gson.stream.JsonReaderTest.testFailWithPositionOverCStyleComment', 'com.google.gson.functional.NamingPolicyTest.testGsonDuplicateNameDueToBadNamingPolicy', 'com.goo... | [] | 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,NamingPolicyTest,TypeTokenTest,ShrinkingIT,StreamingTypeAdapt... | Refactoring | false | true | false | false | 1 | 0 | 1 | true | false | ["gson/src/main/java/com/google/gson/internal/TroubleshootingGuide.java->program->class_declaration:TroubleshootingGuide->method_declaration:String_createUrl"] |
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/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java
--- a/gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java
+++ b/gson/src/main/java/com/google/gson/internal/bind/util/ISO8601Utils.java
@@ -2... | diff --git a/gson/src/test/java/com/google/gson/internal/bind/util/ISO8601UtilsTest.java b/gson/src/test/java/com/google/gson/internal/bind/util/ISO8601UtilsTest.java
--- a/gson/src/test/java/com/google/gson/internal/bind/util/ISO8601UtilsTest.java
+++ b/gson/src/test/java/com/google/gson/internal/bind/util/ISO8601Util... | ISO8061Utils.parse() accepts non-existent dates
# Gson version
2.9.0
# Java / Android version
```
java 16 2021-03-16
Java(TM) SE Runtime Environment (build 16+36-2231)
Java HotSpot(TM) 64-Bit Server VM (build 16+36-2231, mixed mode, sharing)
```
# Description
Apparently `ISO8061Utils.parse()` works in a very lenient... | null | 2022-06-12 20:12:27+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=ISO8601UtilsTest ... | ['com.google.gson.internal.bind.util.ISO8601UtilsTest.testDateParseInvalidTime', 'com.google.gson.internal.bind.util.ISO8601UtilsTest.testDateFormatWithTimezone', 'com.google.gson.internal.bind.util.ISO8601UtilsTest.testDateFormatString', 'com.google.gson.internal.bind.util.ISO8601UtilsTest.testDateFormatWithMillisecon... | ['com.google.gson.internal.bind.util.ISO8601UtilsTest.testDateParseInvalidMonth', 'com.google.gson.internal.bind.util.ISO8601UtilsTest.testDateParseInvalidDay'] | [] | 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=ISO8601UtilsTest -DfailIfNoTests=false -fae surefire-report:report -Dsur... | 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_declaration:ISO8601Utils->method_declaration:Date_parse"] |
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/google/gson/stream/JsonWriter.java
--- a/gson/src/main/java/com/google/gson/stream/JsonWriter.java
+++ b/gson/src/main/java/com/google/gson/stream/JsonWriter.java
@@ -498,6 +498,9 @@ public JsonWriter name(String name) throw... | diff --git a/gson/src/test/java/com/google/gson/stream/JsonWriterTest.java b/gson/src/test/java/com/google/gson/stream/JsonWriterTest.java
--- a/gson/src/test/java/com/google/gson/stream/JsonWriterTest.java
+++ b/gson/src/test/java/com/google/gson/stream/JsonWriterTest.java
@@ -28,6 +28,8 @@
import java.math.BigDecima... | `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-21 17:22:00+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 -D... | ['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.stream.JsonWriterTest.closeAllObjectsAndTryToAddElements', 'com.google.gson.stream.JsonWriterTest.testInvalidTopLevelTypes'] | [] | 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 -DfailIfNoTests=false -fae surefire-report:report -Dsuref... | 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->method_declaration:JsonWriter_name"] |
apache/dubbo | 3,855 | apache__dubbo-3855 | ['3848'] | b7bd6ada884f49be2676fdf044741ddee2af8443 | diff --git a/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/RpcUtils.java b/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/RpcUtils.java
--- a/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/RpcUtils.java
+++ b/dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/d... | diff --git a/dubbo-rpc/dubbo-rpc-api/src/test/java/org/apache/dubbo/rpc/support/RpcUtilsTest.java b/dubbo-rpc/dubbo-rpc-api/src/test/java/org/apache/dubbo/rpc/support/RpcUtilsTest.java
--- a/dubbo-rpc/dubbo-rpc-api/src/test/java/org/apache/dubbo/rpc/support/RpcUtilsTest.java
+++ b/dubbo-rpc/dubbo-rpc-api/src/test/java/... | A question about configuring priority judgment, such as isAsync, isOneway
在dubbo的设计原则中, 配置优先级, 方法级优先,接口级次之,全局配置再次之, Java代码中的配置优先级大于初始化时的配置
In the design principles of dubbo, configuration priority, method first, interface second, global configuration at last, and configuration priority in Java code is higher than that... | null | 2019-04-11 09:42:41+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.rpc.support.RpcUtilsTest.testGetMethodName{String}[3]', 'org.apache.dubbo.rpc.support.RpcUtilsTest.testAttachInvocationIdIfAsync_normal', 'org.apache.dubbo.rpc.support.RpcUtilsTest.testGet_$invoke_MethodName{String}[1]', 'org.apache.dubbo.rpc.support.RpcUtilsTest.testGet_$invoke_MethodName{String}[3]... | ['org.apache.dubbo.rpc.support.RpcUtilsTest.testIsOneway', 'org.apache.dubbo.rpc.support.RpcUtilsTest.testIsAsync'] | [] | 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=RpcUtilsTest -DfailIfNoTests=false -fae surefi... | Refactoring | false | true | false | false | 2 | 0 | 2 | false | false | ["dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/RpcUtils.java->program->class_declaration:RpcUtils->method_declaration:isAsync", "dubbo-rpc/dubbo-rpc-api/src/main/java/org/apache/dubbo/rpc/support/RpcUtils.java->program->class_declaration:RpcUtils->method_declaration:isOneway"] |
google/gson | 1,904 | google__gson-1904 | ['445'] | 97938283a77707cdf231a7ebdcbee937f289ad31 | diff --git a/extras/src/main/java/com/google/gson/graph/GraphAdapterBuilder.java b/extras/src/main/java/com/google/gson/graph/GraphAdapterBuilder.java
--- a/extras/src/main/java/com/google/gson/graph/GraphAdapterBuilder.java
+++ b/extras/src/main/java/com/google/gson/graph/GraphAdapterBuilder.java
@@ -47,11 +47,12 @@ p... | diff --git a/gson/src/test/java/com/google/gson/GsonBuilderTest.java b/gson/src/test/java/com/google/gson/GsonBuilderTest.java
--- a/gson/src/test/java/com/google/gson/GsonBuilderTest.java
+++ b/gson/src/test/java/com/google/gson/GsonBuilderTest.java
@@ -84,4 +84,27 @@ public void testTransientFieldExclusion() {
sta... | GsonBuilder.disableUnsafe
```
While it is nice to know that Unsafe is only used when no-arg ctors or instance
creators are not present, it would be better to have a means to enforce it
cannot be used. Particularly in google app engine, I'd like to know that the
code I use offline is safe inside GAE, rather than a d... | ```
I think this is a good idea. I personally don't like the unpredictability that
UnsafeAllocator brings either.
```
Original comment by `inder123` on 30 May 2012 at 4:17
+1
I was bitten by this too. I use kotlin with it's null-safety.
When I forget to add a default-value for a constructor, gson uses it's unsafe ... | 2021-06-04 14:56:02+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=GsonTest,GsonBuil... | [] | ['com.google.gson.GsonBuilderTest.testDisableJdkUnsafe', 'com.google.gson.GsonTest.testOverridesDefaultExcluder', 'com.google.gson.GsonTest.testNewJsonWriter_Default', 'com.google.gson.GsonTest.testNewJsonWriter_Custom', 'com.google.gson.GsonBuilderTest.testTransientFieldExclusion', 'com.google.gson.GsonTest.testNewJso... | [] | 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=GsonTest,GsonBuilderTest -DfailIfNoTests=false -fae surefire-report:repo... | Feature | false | false | false | true | 10 | 7 | 17 | false | false | ["extras/src/main/java/com/google/gson/graph/GraphAdapterBuilder.java->program->class_declaration:GraphAdapterBuilder->class_declaration:Factory->method_declaration:Object_createInstance", "gson/src/main/java/com/google/gson/GsonBuilder.java->program->class_declaration:GsonBuilder->constructor_declaration:GsonBuilder",... |
google/gson | 2,071 | google__gson-2071 | ['2067'] | e2e851c9bc692cec68ba7b0cbb002f82b4a229e4 | diff --git a/gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java b/gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
--- a/gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
+++ b/gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java
@@ -2... | diff --git a/gson/src/test/java/com/google/gson/functional/EnumTest.java b/gson/src/test/java/com/google/gson/functional/EnumTest.java
--- a/gson/src/test/java/com/google/gson/functional/EnumTest.java
+++ b/gson/src/test/java/com/google/gson/functional/EnumTest.java
@@ -31,7 +31,10 @@
import java.lang.reflect.Type;
i... | `EnumMap` deserialization fails with `ClassCastException`
# Gson version
e2e851c9bc692cec68ba7b0cbb002f82b4a229e4
# Java / Android version
openjdk version "11.0.13" 2021-10-19
OpenJDK Runtime Environment Temurin-11.0.13+8 (build 11.0.13+8)
OpenJDK 64-Bit Server VM Temurin-11.0.13+8 (build 11.0.13+8, mixed mode)
# Des... | null | 2022-02-03 23:01: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=EnumTest -DfailIf... | ['com.google.gson.functional.EnumTest.testTopLevelEnumSerialization', 'com.google.gson.functional.EnumTest.testEnumSubclass', 'com.google.gson.functional.EnumTest.testTopLevelEnumDeserialization', 'com.google.gson.functional.EnumTest.testCollectionOfEnumsSerialization', 'com.google.gson.functional.EnumTest.testEnumSubc... | ['com.google.gson.functional.EnumTest.testEnumMap'] | [] | 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=EnumTest -DfailIfNoTests=false -fae surefire-report:report -Dsurefire.fa... | Bug Fix | false | true | false | false | 2 | 0 | 2 | false | false | ["gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java->program->class_declaration:ConstructorConstructor->method_declaration:newDefaultImplementationConstructor", "gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java->program->class_declaration:ConstructorConstructor->method_decla... |
google/gson | 2,435 | google__gson-2435 | ['1028'] | 1e7625b963d2e4447a4aa46a2fadc6d0e3a3aba7 | diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java
--- a/gson/src/main/java/com/google/gson/Gson.java
+++ b/gson/src/main/java/com/google/gson/Gson.java
@@ -16,6 +16,7 @@
package com.google.gson;
+import com.google.gson.annotations.JsonAdapter;
import com.goog... | diff --git a/gson/src/test/java/com/google/gson/GsonTest.java b/gson/src/test/java/com/google/gson/GsonTest.java
--- a/gson/src/test/java/com/google/gson/GsonTest.java
+++ b/gson/src/test/java/com/google/gson/GsonTest.java
@@ -272,6 +272,90 @@ public void run() {
assertThat(otherThreadAdapter.get().toJson(null)).i... | getDelegateAdapter() does not work properly in TypeAdapterFactory used from JsonAdapter annotation
GSON's getDelegateAdapter method does not appear to work properly inside of a TypeAdapterFactory that is used through the \@JsonAdapter annotation. This was found using GSON 2.8.0 and Java 7.
For example, given a class ... | Thanks for the detailed bug.
Can you submit a Pull Request that reproduces the problem?
If you can include a fix too, even better. Thanks.
I was wondering if this bug will be solved soon, since im in an similar spot as @zman0900
Kind regards
Thomas
Very interested in a resolution. Thank you.
A workaround to overcom... | 2023-07-15 14:12:14+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=JsonAdapterAnnota... | ['com.google.gson.GsonTest.testStrictnessDefault', 'com.google.gson.GsonTest.testOverridesDefaultExcluder', 'com.google.gson.functional.JsonAdapterAnnotationOnClassesTest.testRegisteredAdapterOverridesJsonAdapter', 'com.google.gson.functional.JsonAdapterAnnotationOnFieldsTest.testClassAnnotationAdapterTakesPrecedenceOv... | ['com.google.gson.functional.JsonAdapterAnnotationOnClassesTest.testDelegating_SameFactoryClass_OnClassAndField', 'com.google.gson.functional.JsonAdapterAnnotationOnFieldsTest.testDelegatingAdapterFactory_Delayed', 'com.google.gson.functional.JsonAdapterAnnotationOnFieldsTest.testJsonSerializer', 'com.google.gson.funct... | [] | 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=JsonAdapterAnnotationOnFieldsTest,JsonAdapterAnnotationOnClassesTest,Gso... | Bug Fix | false | false | false | true | 10 | 6 | 16 | false | false | ["gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java->program->class_declaration:JsonAdapterAnnotationTypeAdapterFactory->class_declaration:DummyTypeAdapterFactory", "gson/src/main/java/com/google/gson/internal/bind/JsonAdapterAnnotationTypeAdapterFactory.java->program->class_... |
google/gson | 1,703 | google__gson-1703 | ['1702'] | 6d2557d5d1a8ac498f2bcee20e5053c93b33ecce | diff --git a/gson/src/main/java/com/google/gson/internal/Streams.java b/gson/src/main/java/com/google/gson/internal/Streams.java
--- a/gson/src/main/java/com/google/gson/internal/Streams.java
+++ b/gson/src/main/java/com/google/gson/internal/Streams.java
@@ -89,7 +89,7 @@ private static final class AppendableWriter ext... | diff --git a/gson/src/test/java/com/google/gson/functional/ReadersWritersTest.java b/gson/src/test/java/com/google/gson/functional/ReadersWritersTest.java
--- a/gson/src/test/java/com/google/gson/functional/ReadersWritersTest.java
+++ b/gson/src/test/java/com/google/gson/functional/ReadersWritersTest.java
@@ -20,11 +20... | Gson.toJson: CharSequence passed to Appendable does not implement toString()
When calling `Gson.toJson(..., Appendable)` and `Appendable` is not an instance of `Writer`, then `Gson` creates a `CharSequence` which does not fulfill the `toString()` requirements:
> Returns a string containing the characters in this sequen... | null | 2020-05-21 21:19:41+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=ReadersWritersTes... | ['com.google.gson.functional.ReadersWritersTest.testTypeMismatchThrowsJsonSyntaxExceptionForReaders', 'com.google.gson.functional.ReadersWritersTest.testTopLevelNullObjectSerializationWithWriterAndSerializeNulls', 'com.google.gson.functional.ReadersWritersTest.testTopLevelNullObjectDeserializationWithReaderAndSerialize... | ['com.google.gson.functional.ReadersWritersTest.testToJsonAppendable'] | [] | 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=ReadersWritersTest -DfailIfNoTests=false -fae surefire-report:report -Ds... | Bug Fix | false | false | false | true | 3 | 2 | 5 | false | false | ["gson/src/main/java/com/google/gson/internal/Streams.java->program->class_declaration:Streams->class_declaration:AppendableWriter->method_declaration:write", "gson/src/main/java/com/google/gson/internal/Streams.java->program->class_declaration:Streams->class_declaration:AppendableWriter->class_declaration:CurrentWrite... |
google/gson | 2,345 | google__gson-2345 | ['2344'] | d3e17587fe8dbf1c6afd1acbad4878f19ff64c02 | diff --git a/gson/src/main/java/com/google/gson/FormattingStyle.java b/gson/src/main/java/com/google/gson/FormattingStyle.java
--- a/gson/src/main/java/com/google/gson/FormattingStyle.java
+++ b/gson/src/main/java/com/google/gson/FormattingStyle.java
@@ -22,10 +22,15 @@
/**
* A class used to control what the seriali... | diff --git a/gson/src/test/java/com/google/gson/GsonTest.java b/gson/src/test/java/com/google/gson/GsonTest.java
--- a/gson/src/test/java/com/google/gson/GsonTest.java
+++ b/gson/src/test/java/com/google/gson/GsonTest.java
@@ -63,7 +63,7 @@ public final class GsonTest {
public void testOverridesDefaultExcluder() {
... | Support single line pretty-printed JSON output
# Problem solved by the feature
When users know in advance that the JSON data to write is rather small, but they still want increased readability, they might not want line breaks but a space after `,` and `:`. For example:
```json
{"a": [1, 2, 3], "b": true}
```
Even with... | null | 2023-03-18 22:46:32+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,Gs... | [] | ['com.google.gson.GsonTest.testOverridesDefaultExcluder', 'com.google.gson.stream.JsonWriterTest.testDoubles', 'com.google.gson.stream.JsonWriterTest.testNonFiniteDoublesWhenLenient', 'com.google.gson.stream.JsonWriterTest.testMalformedNumbers', 'com.google.gson.stream.JsonWriterTest.testClosedWriterThrowsOnFlush', 'co... | [] | 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,GsonTest,FormattingStyleTest -DfailIfNoTests=false -fae s... | Feature | false | false | false | true | 11 | 6 | 17 | false | false | ["gson/src/main/java/com/google/gson/GsonBuilder.java->program->class_declaration:GsonBuilder->method_declaration:GsonBuilder_setPrettyPrinting", "gson/src/main/java/com/google/gson/GsonBuilder.java->program->class_declaration:GsonBuilder->method_declaration:GsonBuilder_setFormattingStyle", "gson/src/main/java/com/goog... |
google/gson | 2,060 | google__gson-2060 | ['847'] | 8e01b54682612471a9ab40c73911dfbf6b5be036 | diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java
--- a/gson/src/main/java/com/google/gson/Gson.java
+++ b/gson/src/main/java/com/google/gson/Gson.java
@@ -38,6 +38,7 @@
import com.google.gson.internal.ConstructorConstructor;
import com.google.gson.internal.Exclu... | diff --git a/gson/src/test/java/com/google/gson/functional/PrimitiveTest.java b/gson/src/test/java/com/google/gson/functional/PrimitiveTest.java
--- a/gson/src/test/java/com/google/gson/functional/PrimitiveTest.java
+++ b/gson/src/test/java/com/google/gson/functional/PrimitiveTest.java
@@ -23,6 +23,7 @@
import com.goo... | LazilyParsedNumber being serialised as JsonObject
When I deserialise a JSON object into a map and back into JSON it seems to serialise the `LazilyParsedNumber` as an object.
JSON being parsed:
``` js
{
"class": "Setting",
"event": 4,
"severity": 2,
"notify": true,
"sound": false,
"feeds": [
... | null | 2022-01-23 00:40: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-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,Pr... | ['com.google.gson.functional.PrimitiveTest.testPrimitiveIntegerAutoboxedDeserialization', 'com.google.gson.stream.JsonWriterTest.testDoubles', 'com.google.gson.functional.PrimitiveTest.testDeserializeJsonArrayAsFloatWrapper', 'com.google.gson.stream.JsonWriterTest.testClosedWriterThrowsOnFlush', 'com.google.gson.functi... | ['com.google.gson.functional.PrimitiveTest.testLazilyParsedNumberDeserialization', 'com.google.gson.functional.PrimitiveTest.testLazilyParsedNumberSerialization', 'com.google.gson.stream.JsonWriterTest.testMalformedNumbers'] | [] | 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,PrimitiveTest,JsonReaderTest -DfailIfNoTests=false -fae s... | Bug Fix | true | false | false | false | 0 | 0 | 0 | false | false | ["gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java->program->class_declaration:TypeAdapters->method_declaration:write", "gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java->program->class_declaration:TypeAdapters", "gson/src/main/java/com/google/gson/stream/JsonWriter.java->program->cl... |
google/gson | 2,479 | google__gson-2479 | ['2436'] | 4dfae77af3d543bea2782f85a154cc070290f086 | diff --git a/UserGuide.md b/UserGuide.md
--- a/UserGuide.md
+++ b/UserGuide.md
@@ -405,7 +405,9 @@ gson.registerTypeAdapter(MyType.class, new MyDeserializer());
gson.registerTypeAdapter(MyType.class, new MyInstanceCreator());
```
-`registerTypeAdapter` call checks if the type adapter implements more than one of the... | diff --git a/gson/src/test/java/com/google/gson/GsonBuilderTest.java b/gson/src/test/java/com/google/gson/GsonBuilderTest.java
--- a/gson/src/test/java/com/google/gson/GsonBuilderTest.java
+++ b/gson/src/test/java/com/google/gson/GsonBuilderTest.java
@@ -17,6 +17,7 @@
package com.google.gson;
import static com.goog... | `GsonBuilder` should throw exception when trying to register adapter for `Object` or `JsonElement`
# Problem solved by the feature
`GsonBuilder` does not support overwriting the built-in adapters for `Object` and for `JsonElement` (and subclasses). This might not be obvious to users (see #1177).
https://github.com/goog... | @Marcono1234
I started looking into the solution options. In my opinion, both should throw exception in these cases as overwriting the built-in adapters might open some unexpected behaviors (including the one mentioned in #1177).
What exception is more appropriate in this case:
1. UnsupportedOperationException
2. Ill... | 2023-08-25 19:28:05+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=GsonTest,GsonBuil... | ['com.google.gson.GsonTest.testStrictnessDefault', 'com.google.gson.GsonTest.testOverridesDefaultExcluder', 'com.google.gson.GsonBuilderTest.testSetLenient', 'com.google.gson.GsonTest.testNewJsonReader_Default', 'com.google.gson.GsonBuilderTest.testDefaultStrictness', 'com.google.gson.GsonTest.testGetAdapter_FutureAdap... | ['com.google.gson.GsonBuilderTest.testRegisterTypeHierarchyAdapterJsonElements', 'com.google.gson.GsonBuilderTest.testRegisterTypeAdapterForObjectAndJsonElements'] | [] | 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=GsonTest,GsonBuilderTest -DfailIfNoTests=false -fae surefire-report:repo... | Feature | false | false | false | true | 3 | 1 | 4 | false | false | ["gson/src/main/java/com/google/gson/GsonBuilder.java->program->class_declaration:GsonBuilder->method_declaration:isTypeObjectOrJsonElement", "gson/src/main/java/com/google/gson/GsonBuilder.java->program->class_declaration:GsonBuilder->method_declaration:GsonBuilder_registerTypeHierarchyAdapter", "gson/src/main/java/co... |
apache/dubbo | 3,093 | apache__dubbo-3093 | ['3069'] | 95fc75a05fbbdc23319e49dc9fd54084def3bb92 | diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/Constants.java b/dubbo-common/src/main/java/org/apache/dubbo/common/Constants.java
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/Constants.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/Constants.java
@@ -97,7 +97,10 @@ public cla... | diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/utils/ClassHelperTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/utils/ClassHelperTest.java
--- a/dubbo-common/src/test/java/org/apache/dubbo/common/utils/ClassHelperTest.java
+++ b/dubbo-common/src/test/java/org/apache/dubbo/common/utils/Cl... | java.lang.NumberFormatException: For input string: ""
- [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 repository and beli... | null | 2018-12-29 03:46: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/ && 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.utils.StringUtilsTest.testJoinCollectionString', 'org.apache.dubbo.common.utils.StringUtilsTest.testJoin', 'org.apache.dubbo.common.utils.StringUtilsTest.testToArgumentString', 'org.apache.dubbo.common.utils.ClassHelperTest.testForName3', 'org.apache.dubbo.common.utils.StringUtilsTest.testPars... | [] | 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=StringUtilsTest,ClassHelperTest -DfailIfNoTest... | Bug Fix | false | false | false | true | 6 | 3 | 9 | false | false | ["dubbo-common/src/main/java/org/apache/dubbo/common/utils/ClassHelper.java->program->class_declaration:ClassHelper->method_declaration:ClassLoader_getClassLoader", "dubbo-common/src/main/java/org/apache/dubbo/common/utils/ClassHelper.java->program->class_declaration:ClassHelper->method_declaration:Object_convertPrimit... |
google/guava | 3,971 | google__guava-3971 | ['1315'] | 02811634236ccef4b38d319007cffdf96ea5b7c0 | diff --git a/android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java b/android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java
--- a/android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java
+++ b/android/guava/src/com/google/common/util/concurrent/Uninterruptibles.ja... | diff --git a/android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java b/android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
--- a/android/guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
+++ b/android/guava-tests/test/com/google/co... | Add awaitTerminationUninterruptibly(..) for ExecutorService
_[Original issue](https://code.google.com/p/guava-libraries/issues/detail?id=1315) created by **chriss.dev** on 2013-03-02 at 12:05 PM_
---
The interface ExecutorService provides the method awaitTermination(long,TimeUnit), it would be nice to have "uninterru... | _[Original comment](https://code.google.com/p/guava-libraries/issues/detail?id=1315#c1) posted by **wasserman.louis** on 2013-11-29 at 05:08 PM_
---
_Issue #1595 has been merged into this issue._
I would also like this. Let's add votes to this as more people want it.
Hey,
I would like to work on this.. So based on t... | 2020-07-22 16:03:19+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/^.*regex.*PackageSanityTests.*$/<exclude>%regex[.*PackageSanityTests.*.class]<\/exclude><exclude>%regex[.*InetAddresses... | [] | ['com.google.common.util.concurrent.UninterruptiblesTest.testSleepMultiInterrupt', 'com.google.common.util.concurrent.UninterruptiblesTest.testPutSingleInterrupt', 'com.google.common.util.concurrent.UninterruptiblesTest.testTryAcquireTimeoutNoInterruptNotExpired', 'com.google.common.util.concurrent.UninterruptiblesTest... | [] | 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/^.*regex.*PackageSanityTests.*$/<exclude>%regex[.*PackageSanityTests.*.class]<\/exclude><exclude>%regex[.*InetAddressesTest.*]<\/exclude><exclude>%regex[.*MoreFilesTest.*]<\/... | Feature | false | false | false | true | 2 | 2 | 4 | false | false | ["guava/src/com/google/common/util/concurrent/Uninterruptibles.java->program->class_declaration:Uninterruptibles->method_declaration:awaitTerminationUninterruptibly", "android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java->program->class_declaration:Uninterruptibles", "android/guava/src/com/google/c... |
apache/dubbo | 3,622 | apache__dubbo-3622 | ['3570'] | 42646d7f36dd0394a10b77e0175be430067f943f | diff --git a/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Invoker.java b/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Invoker.java
--- a/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Invoker.java
+++ b/dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Invoker.java
@@ -17,18 +17,25 @@
packag... | diff --git a/dubbo-compatible/src/test/java/org/apache/dubbo/filter/FilterTest.java b/dubbo-compatible/src/test/java/org/apache/dubbo/filter/FilterTest.java
--- a/dubbo-compatible/src/test/java/org/apache/dubbo/filter/FilterTest.java
+++ b/dubbo-compatible/src/test/java/org/apache/dubbo/filter/FilterTest.java
@@ -17,13... | NoSuchMethodError are thrown when add custom Filter using dubbo2.6.5 and JDK1.6 and upgrade to dubbo2.7.0
### Environment
* Dubbo version: 2.6.0 2.7.0
* Operating System version: win7 win10
* Java version: JDK1.6 JDK1.8
### Steps to reproduce this issue
1. Add a module using dubbo 2.6.0, JDK1.6
add a custorm XxxFilt... | I think change the compatible as showed below may work:
```java
@Deprecated
public interface Invoker<T> extends org.apache.dubbo.rpc.Invoker<T> {
Result invoke(Invocation invocation) throws RpcException;
URL getUrl();
default org.apache.dubbo.rpc.Invoker<T> getOriginal() {
return null;
}
... | 2019-03-08 07:30:49+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.filter.FilterTest.testInvokeException', 'org.apache.dubbo.filter.FilterTest.testDefault'] | [] | 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=FilterTest,LegacyInvocation,MyInvoker -DfailIf... | Bug Fix | false | true | false | false | 5 | 0 | 5 | false | false | ["dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Invoker.java->program->method_declaration:Result_invoke", "dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Invoker.java->program->method_declaration:URL_getUrl", "dubbo-compatible/src/main/java/com/alibaba/dubbo/rpc/Invoker.java->program->method_declaration:in... |
google/gson | 2,167 | google__gson-2167 | ['1771'] | a1d2ebc8b51a3a0df8b15c98f47d5ac95cf7f7b0 | diff --git a/gson/src/main/java/com/google/gson/JsonObject.java b/gson/src/main/java/com/google/gson/JsonObject.java
--- a/gson/src/main/java/com/google/gson/JsonObject.java
+++ b/gson/src/main/java/com/google/gson/JsonObject.java
@@ -17,7 +17,6 @@
package com.google.gson;
import com.google.gson.internal.LinkedTree... | diff --git a/gson/src/test/java/com/google/gson/JsonObjectTest.java b/gson/src/test/java/com/google/gson/JsonObjectTest.java
--- a/gson/src/test/java/com/google/gson/JsonObjectTest.java
+++ b/gson/src/test/java/com/google/gson/JsonObjectTest.java
@@ -17,7 +17,16 @@
package com.google.gson;
import com.google.gson.co... | JsonObject.entrySet() Entry.setValue(...) does not prevent null values
The Map.Entry objects in the Set returned by `JsonObject.entrySet()` do not validate the value passed to their `Entry.setValue(...)` method, allowing Java `null`s. This can cause runtime exceptions when the user of the JsonObject later expects that ... | null | 2022-08-03 23:01:35+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=LinkedTreeMapTest... | [] | ['com.google.gson.JsonObjectTest.testEntrySet', 'com.google.gson.JsonObjectTest.testPropertyWithQuotes', 'com.google.gson.internal.LinkedTreeMapTest.testEqualsAndHashCode', 'com.google.gson.JsonObjectTest.testAddingStringProperties', 'com.google.gson.internal.LinkedTreeMapTest.testContainsNonComparableKeyReturnsFalse',... | [] | 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=LinkedTreeMapTest,JsonObjectTest -DfailIfNoTests=false -fae surefire-rep... | Bug Fix | false | false | false | true | 3 | 5 | 8 | false | false | ["gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java->program->class_declaration:LinkedTreeMap->constructor_declaration:LinkedTreeMap", "gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java->program->class_declaration:LinkedTreeMap", "gson/src/main/java/com/google/gson/internal/LinkedTreeMap.java-... |
google/gson | 2,701 | google__gson-2701 | ['2700'] | 99cc4cb11f73a6d672aa6381013d651b7921e00f | diff --git a/proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java b/proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java
--- a/proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java
+++ b/proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java
@@ -89,6 +89,7 @@ public ... | diff --git a/proto/src/test/java/com/google/gson/protobuf/functional/ProtosWithAnnotationsAndJsonNamesTest.java b/proto/src/test/java/com/google/gson/protobuf/functional/ProtosWithAnnotationsAndJsonNamesTest.java
new file mode 100644
--- /dev/null
+++ b/proto/src/test/java/com/google/gson/protobuf/functional/ProtosWith... | Read `json_name` from protobuf field annotations for serialization and deserialization
# Background
We would like to have custom names for keys in JSON strings that do not match the names of the proto fields. Such a feature was added to the GSON library in 2015 via #710, which allowed developers to register custom fie... | null | 2024-06-14 03:44:02+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=ProtosWithAnnotat... | [] | ['com.google.gson.protobuf.functional.ProtosWithAnnotationsAndJsonNamesTest.testProtoWithAnnotationsAndJsonNames_fieldWithCustomSerializedName', 'com.google.gson.protobuf.functional.ProtosWithAnnotationsAndJsonNamesTest.testProtoWithAnnotationsAndJsonNames_unannotatedField', 'com.google.gson.protobuf.functional.ProtosW... | [] | 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=ProtosWithAnnotationsAndJsonNamesTest,bag.proto -DfailIfNoTests=false -f... | Feature | false | false | false | true | 5 | 4 | 9 | false | false | ["proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java->program->class_declaration:ProtoTypeAdapter->method_declaration:JsonElement_serialize", "proto/src/main/java/com/google/gson/protobuf/ProtoTypeAdapter.java->program->class_declaration:ProtoTypeAdapter->method_declaration:Message_deserialize", "proto/... |
apolloconfig/apollo | 1,894 | apolloconfig__apollo-1894 | ['1893'] | b794f38a8f80df4448e8354da915ff0911e89ed1 | diff --git a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java b/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java
--- a/apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java
+++ b/apollo-p... | diff --git a/apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/AppNamespaceServiceTest.java b/apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/AppNamespaceServiceTest.java
--- a/apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/service/AppNamespaceServiceTest.java
++... | Seems like to be a bug of OPS - Namespace?
1. At first, I created a NS for my project, this NS extends from global NS `dubbo`

2. Then I created a private NS also named `dubbo` in this project. The old one was o... | You are right, it's a bug...will fix it soon | 2019-01-18 15:33:58+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.service.AppNamespaceServiceTest.testCreatePublicAppNamespaceNotExistedWithNoAppendnamespacePrefix', 'com.ctrip.framework.apollo.portal.service.AppNamespaceServiceTest.testCreatePublicAppNamespaceExistedAsPrivateAppNamespace', 'com.ctrip.framework.apollo.portal.service.AppNamespaceSer... | ['com.ctrip.framework.apollo.portal.service.AppNamespaceServiceTest.testCreatePrivateAppNamespaceExistedInAnotherAppIdAsPublic'] | [] | 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=init-appnamespace.sql,AppNamespaceServiceTest ... | Bug Fix | false | false | false | true | 3 | 1 | 4 | false | false | ["apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java->program->class_declaration:AppNamespaceService->method_declaration:checkPublicAppNamespaceGlobalUniqueness", "apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/service/AppNamespaceService.java->program->class_d... |
apache/rocketmq | 7,532 | apache__rocketmq-7532 | ['7531'] | 46962c262c37554ff09afe9e02c7baf66a5ecc73 | diff --git a/broker/src/main/java/org/apache/rocketmq/broker/processor/SendMessageProcessor.java b/broker/src/main/java/org/apache/rocketmq/broker/processor/SendMessageProcessor.java
--- a/broker/src/main/java/org/apache/rocketmq/broker/processor/SendMessageProcessor.java
+++ b/broker/src/main/java/org/apache/rocketmq/... | diff --git a/test/src/test/java/org/apache/rocketmq/test/client/consumer/pop/PopMessageAndForwardingIT.java b/test/src/test/java/org/apache/rocketmq/test/client/consumer/pop/PopMessageAndForwardingIT.java
new file mode 100644
--- /dev/null
+++ b/test/src/test/java/org/apache/rocketmq/test/client/consumer/pop/PopMessage... | [Bug] The PopCk is incorrect after forwarding messages to another broker
### 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/apa... | null | 2023-11-03 08:08:09+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.test.client.consumer.pop.PopMessageAndForwardingIT.test'] | [] | 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 | 4 | 2 | 6 | false | false | ["common/src/main/java/org/apache/rocketmq/common/utils/MessageUtils.java->program->class_declaration:MessageUtils->method_declaration:String_deleteProperty", "common/src/main/java/org/apache/rocketmq/common/message/MessageExtBrokerInner.java->program->class_declaration:MessageExtBrokerInner->method_declaration:deleteP... |
google/gson | 2,158 | google__gson-2158 | ['2156'] | 924c496b95deceadab0a01ea28b7023a096dc2ec | diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java
--- a/gson/src/main/java/com/google/gson/Gson.java
+++ b/gson/src/main/java/com/google/gson/Gson.java
@@ -398,7 +398,7 @@ private TypeAdapter<Number> doubleAdapter(boolean serializeSpecialFloatingPointV
}
... | diff --git a/gson/src/test/java/com/google/gson/functional/PrimitiveTest.java b/gson/src/test/java/com/google/gson/functional/PrimitiveTest.java
--- a/gson/src/test/java/com/google/gson/functional/PrimitiveTest.java
+++ b/gson/src/test/java/com/google/gson/functional/PrimitiveTest.java
@@ -64,6 +64,11 @@ public void te... | Primitive type adapters don't perform numeric conversion during serialization
# Gson version
2.9.0
# Java / Android version
Java 17
# Description
The built-in adapters for primitive types don't perform numeric conversion for serialization. This is most obvious when using Gson's non-typesafe method `Gson.toJson(Object... | null | 2022-07-26 15:20:13+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=PrimitiveTest -Df... | ['com.google.gson.functional.PrimitiveTest.testPrimitiveIntegerAutoboxedDeserialization', 'com.google.gson.functional.PrimitiveTest.testDeserializeJsonArrayAsFloatWrapper', 'com.google.gson.functional.PrimitiveTest.testNegativeInfinityFloatDeserialization', 'com.google.gson.functional.PrimitiveTest.testFloatNaNSerializ... | ['com.google.gson.functional.PrimitiveTest.testShortSerialization', 'com.google.gson.functional.PrimitiveTest.testLongSerialization', 'com.google.gson.functional.PrimitiveTest.testDoubleSerialization', 'com.google.gson.functional.PrimitiveTest.testIntSerialization', 'com.google.gson.functional.PrimitiveTest.testFloatSe... | [] | 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=PrimitiveTest -DfailIfNoTests=false -fae surefire-report:report -Dsurefi... | Bug Fix | false | true | false | false | 3 | 0 | 3 | false | false | ["gson/src/main/java/com/google/gson/internal/bind/TypeAdapters.java->program->class_declaration:TypeAdapters->method_declaration:write", "gson/src/main/java/com/google/gson/Gson.java->program->class_declaration:Gson->method_declaration:doubleAdapter->method_declaration:write", "gson/src/main/java/com/google/gson/Gson.... |
google/guava | 5,696 | google__guava-5696 | ['5692'] | d2c202add26837e05a931bb281a65e9ea1f29f56 | diff --git a/android/guava/src/com/google/common/collect/TopKSelector.java b/android/guava/src/com/google/common/collect/TopKSelector.java
--- a/android/guava/src/com/google/common/collect/TopKSelector.java
+++ b/android/guava/src/com/google/common/collect/TopKSelector.java
@@ -185,7 +185,7 @@ private void trim() {
... | diff --git a/android/guava-tests/test/com/google/common/collect/TopKSelectorTest.java b/android/guava-tests/test/com/google/common/collect/TopKSelectorTest.java
--- a/android/guava-tests/test/com/google/common/collect/TopKSelectorTest.java
+++ b/android/guava-tests/test/com/google/common/collect/TopKSelectorTest.java
@... | TopKSelector is unstable when quicksort fallback to Arrays.sort.
Related PR : #5691
The result of `TopKSelector` may be wrong when `trim()` is invoked and quiksort fallback to `Arrasys.sort()`. Because `Arrasys.sort()` is been used by mistake there.
Following test case can trigger this bug.
```
{
int n = 10000;
... | Hi ! @Liulietong ,
I am a new open source contributor and I would love to fix the issue, could you please provide some more reference to help me understand better? Is this issue open for contribution ?
@shreelakshmijoshi I have submit the PR #5691 to fix the issue
oh okay | 2021-08-26 16:53:41+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/^.*regex.*PackageSanityTests.*$/<exclude>%regex[.*PackageSanityTests.*.class]<\/exclude><exclude>%regex[.*InetAddresses... | ['com.google.common.collect.TopKSelectorTest.testWorstCase', 'com.google.common.collect.TopKSelectorTest.testNegativeK', 'com.google.common.collect.TopKSelectorTest.testNoElementsOffered', 'com.google.common.collect.TopKSelectorTest.testZeroK', 'com.google.common.collect.TopKSelectorTest.testOfferedThreeK', 'com.google... | ['com.google.common.collect.TopKSelectorTest.testExceedMaxIteration'] | [] | 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/^.*regex.*PackageSanityTests.*$/<exclude>%regex[.*PackageSanityTests.*.class]<\/exclude><exclude>%regex[.*InetAddressesTest.*]<\/exclude><exclude>%regex[.*MoreFilesTest.*]<\/... | Bug Fix | false | true | false | false | 2 | 0 | 2 | false | false | ["guava/src/com/google/common/collect/TopKSelector.java->program->class_declaration:TopKSelector->method_declaration:trim", "android/guava/src/com/google/common/collect/TopKSelector.java->program->class_declaration:TopKSelector->method_declaration:trim"] |
apache/dubbo | 8,623 | apache__dubbo-8623 | ['8516'] | f62ca3f71a6db624cd4e3b23a58ed7dacf736d91 | diff --git a/dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/support/MockInvoker.java b/dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/support/MockInvoker.java
--- a/dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/support/MockInvoker.java
+++ b/dubbo-rpc/dubbo-rpc-api/src/main/java/... | diff --git a/dubbo-rpc/dubbo-rpc-api/src/test/java/com/alibaba/dubbo/rpc/support/DemoServiceA.java b/dubbo-rpc/dubbo-rpc-api/src/test/java/com/alibaba/dubbo/rpc/support/DemoServiceA.java
new file mode 100644
--- /dev/null
+++ b/dubbo-rpc/dubbo-rpc-api/src/test/java/com/alibaba/dubbo/rpc/support/DemoServiceA.java
@@ -0,... | mock use default/true only load the first interface.
- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that this is not ... | have been submitted into master and 3.0 branch, I will check it in 2.6.x and 2.5.x branch. | 2021-08-27 09:37:29+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.alibaba.dubbo.rpc.support.MockInvokerTest.testParseMockValue', 'com.alibaba.dubbo.rpc.support.MockInvokerTest.testNormalizeMock', 'com.alibaba.dubbo.rpc.support.MockInvokerTest.testInvoke'] | ['com.alibaba.dubbo.rpc.support.MockInvokerTest.testGetDefaultObject'] | [] | 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=MockInvokerTest,DemoServiceA,DemoServiceBMock,... | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["dubbo-rpc/dubbo-rpc-api/src/main/java/com/alibaba/dubbo/rpc/support/MockInvoker.java->program->class_declaration:MockInvoker->method_declaration:getInvoker"] |
google/gson | 2,549 | google__gson-2549 | ['2547'] | 5471932375be4bb0c27a8a1d38f9f4566d6da7db | diff --git a/gson/src/main/java/com/google/gson/internal/bind/DefaultDateTypeAdapter.java b/gson/src/main/java/com/google/gson/internal/bind/DefaultDateTypeAdapter.java
--- a/gson/src/main/java/com/google/gson/internal/bind/DefaultDateTypeAdapter.java
+++ b/gson/src/main/java/com/google/gson/internal/bind/DefaultDateTy... | diff --git a/gson/src/test/java/com/google/gson/internal/bind/DefaultDateTypeAdapterTest.java b/gson/src/test/java/com/google/gson/internal/bind/DefaultDateTypeAdapterTest.java
--- a/gson/src/test/java/com/google/gson/internal/bind/DefaultDateTypeAdapterTest.java
+++ b/gson/src/test/java/com/google/gson/internal/bind/D... | `DateFormat` time zone is not restored after parsing, affecting subsequent serialization
# Gson version
2.10.1
# Java / Android version
Java 17
# Description
When deserializing a `java.util.Date` (and probably any of its subtypes) using a pattern with time zone, subsequent serialization using the same pattern is affe... | null | 2023-11-20 13:00:10+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=DefaultDateTypeAd... | ['com.google.gson.internal.bind.DefaultDateTypeAdapterTest.testDateDeserializationISO8601', 'com.google.gson.internal.bind.DefaultDateTypeAdapterTest.testInvalidDatePattern', 'com.google.gson.internal.bind.DefaultDateTypeAdapterTest.testFormatUsesDefaultTimezone', 'com.google.gson.internal.bind.DefaultDateTypeAdapterTe... | ['com.google.gson.internal.bind.DefaultDateTypeAdapterTest.testGsonDateFormat'] | [] | 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=DefaultDateTypeAdapterTest -DfailIfNoTests=false -fae surefire-report:re... | Bug Fix | false | true | false | false | 3 | 0 | 3 | false | false | ["gson/src/main/java/com/google/gson/internal/sql/SqlDateTypeAdapter.java->program->class_declaration:SqlDateTypeAdapter->method_declaration:read", "gson/src/main/java/com/google/gson/internal/bind/DefaultDateTypeAdapter.java->program->class_declaration:DefaultDateTypeAdapter->method_declaration:Date_deserializeToDate"... |
google/gson | 1,989 | google__gson-1989 | ['1452'] | fe30b85224316cabf19f5dd3223843437c297802 | diff --git a/gson/src/main/java/com/google/gson/Gson.java b/gson/src/main/java/com/google/gson/Gson.java
--- a/gson/src/main/java/com/google/gson/Gson.java
+++ b/gson/src/main/java/com/google/gson/Gson.java
@@ -756,6 +756,15 @@ public void toJson(JsonElement jsonElement, Appendable writer) throws JsonIOExce
/**
... | diff --git a/gson/src/test/java/com/google/gson/GsonTest.java b/gson/src/test/java/com/google/gson/GsonTest.java
--- a/gson/src/test/java/com/google/gson/GsonTest.java
+++ b/gson/src/test/java/com/google/gson/GsonTest.java
@@ -19,7 +19,10 @@
import com.google.gson.internal.Excluder;
import com.google.gson.stream.Json... | newJsonWriter not return a new JSON writer configured for the settings on this Gson instance!
Hi,
while working on my project with Retrofit, I found an issue with `newJsonWriter` method in Gson class.
I used `GsonConverterFactory` which is a wrapper class of Gson in Retrofit.
Gson enables to escape HTML characters a... | This problem takes me a whole afternoon to find out where make it authorization error.
This should really be fixed, but I have to admit that it worries me how many repercussions it might have for all projects currently using retrofit with GsonConverterFactory.create() to have an update at some point suddenly start esca... | 2021-10-11 13:33:25+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=GsonTest -DfailIf... | ['com.google.gson.GsonTest.testOverridesDefaultExcluder', 'com.google.gson.GsonTest.testClonedTypeAdapterFactoryListsAreIndependent', 'com.google.gson.GsonTest.testNewJsonReader_Custom', 'com.google.gson.GsonTest.testNewJsonReader_Default'] | ['com.google.gson.GsonTest.testNewJsonWriter_Default', 'com.google.gson.GsonTest.testNewJsonWriter_Custom'] | [] | 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=GsonTest -DfailIfNoTests=false -fae surefire-report:report -Dsurefire.fa... | Bug Fix | false | false | false | true | 1 | 1 | 2 | false | false | ["gson/src/main/java/com/google/gson/Gson.java->program->class_declaration:Gson->method_declaration:JsonWriter_newJsonWriter", "gson/src/main/java/com/google/gson/Gson.java->program->class_declaration:Gson"] |
apolloconfig/apollo | 4,464 | apolloconfig__apollo-4464 | ['4294'] | 63c16c117a869426f2cbbfdaa099de449789fd18 | diff --git a/CHANGES.md b/CHANGES.md
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -17,6 +17,7 @@ Apollo 2.1.0
* [Allow users to associate multiple public namespaces at a time](https://github.com/apolloconfig/apollo/pull/4437)
* [Move apollo-demo, scripts/docker-quick-start and scripts/apollo-on-kubernetes out of main reposit... | diff --git a/apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/controller/UserInfoControllerTest.java b/apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/controller/UserInfoControllerTest.java
--- a/apollo-portal/src/test/java/com/ctrip/framework/apollo/portal/controller/UserInfoControllerTest.j... | A user-friendly user management page for apollo portal
**Is your feature request related to a problem? Please describe.**
Currently, we have a simple user management page for apollo portal(as shown below). However, it's not user-friendly, e.g. there is no way to know how many users are currently in the system and wheth... | 好
assigned to student `张重阳`, see https://summer-ospp.ac.cn/#/org/orgdetail/c4cc2271-6627-4965-a5ec-37d5ac3c0ad8/ | 2022-07-14 11:19:13+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.controller.UserInfoControllerTest.testCreateOrUpdateUser', 'com.ctrip.framework.apollo.portal.controller.UserInfoControllerTest.testCreateOrUpdateUserFailed'] | [] | 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=UserInfoControllerTest -DfailIfNoTests=false -... | Feature | false | false | false | true | 25 | 3 | 28 | false | false | ["apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/springsecurity/SpringSecurityUserService.java->program->class_declaration:SpringSecurityUserService->method_declaration:findUsers", "apollo-portal/src/main/java/com/ctrip/framework/apollo/portal/spi/oidc/OidcLocalUserServiceImpl.java->program->class_de... |
apache/rocketmq | 7,655 | apache__rocketmq-7655 | ['7543'] | a376fbcdb82e818cfa239da677669f1118e4c40f | diff --git a/common/src/main/java/org/apache/rocketmq/common/KeyBuilder.java b/common/src/main/java/org/apache/rocketmq/common/KeyBuilder.java
--- a/common/src/main/java/org/apache/rocketmq/common/KeyBuilder.java
+++ b/common/src/main/java/org/apache/rocketmq/common/KeyBuilder.java
@@ -18,8 +18,9 @@
public class Key... | diff --git a/common/src/test/java/org/apache/rocketmq/common/KeyBuilderTest.java b/common/src/test/java/org/apache/rocketmq/common/KeyBuilderTest.java
--- a/common/src/test/java/org/apache/rocketmq/common/KeyBuilderTest.java
+++ b/common/src/test/java/org/apache/rocketmq/common/KeyBuilderTest.java
@@ -26,37 +26,35 @@ p... | [Enhancement] Pop retry topic v2
### Before Creating the Enhancement Request
- [X] I have confirmed that this should be classified as an enhancement rather than a bug/feature.
### Summary
目前在pop机制中使用的retry topic的格式是形如 "%RETRY%group_topic",其中分隔符"_"是一个合法字符,可以被使用在topic或者group中,因此会导致两个问题。
1. pop retry topic重复,比如由group... | null | 2023-12-13 09:44: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/ && sed -i 's/^.*\*\*\/IT\*\.java.*$/<exclude>**\/IT*.java<\/exclude><exclude>%regex[.*MixCommitlogTest.*]<\/exclude>/' pom.xml && up... | ['org.apache.rocketmq.common.KeyBuilderTest.testParseNormalTopic'] | ['org.apache.rocketmq.common.KeyBuilderTest.testBuildPopRetryTopic'] | [] | 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... | Feature | true | false | false | false | 0 | 0 | 0 | false | false | ["common/src/main/java/org/apache/rocketmq/common/KeyBuilder.java->program->class_declaration:KeyBuilder->method_declaration:isPopRetryTopicV2", "common/src/main/java/org/apache/rocketmq/common/KeyBuilder.java->program->class_declaration:KeyBuilder", "common/src/main/java/org/apache/rocketmq/common/KeyBuilder.java->pro... |
google/gson | 2,420 | google__gson-2420 | ['2401'] | a589ef20087b4b0f1ec3048d3ceaef1eedccd09d | diff --git a/Troubleshooting.md b/Troubleshooting.md
--- a/Troubleshooting.md
+++ b/Troubleshooting.md
@@ -313,6 +313,8 @@ Note: For newer Gson versions these rules might be applied automatically; make s
**Symptom:** A `JsonIOException` with the message 'Abstract classes can't be instantiated!' is thrown; the class ... | diff --git a/gson/src/test/java/com/google/gson/functional/Java17RecordTest.java b/gson/src/test/java/com/google/gson/functional/Java17RecordTest.java
--- a/gson/src/test/java/com/google/gson/functional/Java17RecordTest.java
+++ b/gson/src/test/java/com/google/gson/functional/Java17RecordTest.java
@@ -89,7 +89,7 @@ pub... | Improve default ProGuard / R8 rules and Troubleshooting Guide
# Problem solved by the feature
Improve the default ProGuard / R8 rules in `META-INF/proguard/gson.pro` added by #2397, and the Troubleshooting Guide.
# Feature description
I was testing the new default rules with an Android app and Kotlin classes, and ther... | null | 2023-06-17 14:44:03+00:00 | Java | From polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD);... | ['com.google.gson.internal.ConstructorConstructorTest.testGet_Interface'] | ['com.google.gson.internal.ConstructorConstructorTest.testGet_AbstractClassNoArgConstructor'] | [] | 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=Java17RecordTest,ConstructorConstructorTest,ShrinkingIT -DfailIfNoTests=... | Feature | false | false | false | true | 2 | 6 | 8 | false | false | ["shrinker-test/src/main/java/com/example/DefaultConstructorMain.java->program->class_declaration:DefaultConstructorMain", "gson/src/main/java/com/google/gson/internal/ConstructorConstructor.java->program->class_declaration:ConstructorConstructor->method_declaration:String_checkInstantiable", "shrinker-test/src/main/ja... |
apache/dubbo | 5,783 | apache__dubbo-5783 | ['4697'] | cca798c08611e0cfe00295dfe26c89eee395103b | diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/CompatibleTypeUtils.java b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/CompatibleTypeUtils.java
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/CompatibleTypeUtils.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/com... | diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/utils/CompatibleTypeUtilsTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/utils/CompatibleTypeUtilsTest.java
--- a/dubbo-common/src/test/java/org/apache/dubbo/common/utils/CompatibleTypeUtilsTest.java
+++ b/dubbo-common/src/test/java/org/apac... | PojoUtils realize type convert not support localdatetime,localdate,localtime
- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and ... | sounds like an issue that generic invocation doesn't support new type in Java8.
Yeah, Java8's new time type is not supported.Thanks for added this feature of milestone.
looking forward this feature too 🙏
这个有了吗对java8中的LocalDateTime的支持?
@complone Could you help to fix this issue ? | 2020-02-24 09:39:20+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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 clean install -am -Dtest=CompatibleTypeUtilsTest -DfailIfNoTests=false -f... | [] | ['org.apache.dubbo.common.utils.CompatibleTypeUtilsTest.testCompatibleTypeConvert'] | [] | 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=CompatibleTypeUtilsTest -DfailIfNoTests=false ... | Bug Fix | true | false | false | false | 0 | 0 | 0 | false | false | ["dubbo-common/src/main/java/org/apache/dubbo/common/utils/CompatibleTypeUtils.java->program->class_declaration:CompatibleTypeUtils->method_declaration:Object_compatibleTypeConvert"] |
apache/dubbo | 4,515 | apache__dubbo-4515 | ['4514'] | 519df676329c87af23e285a448a94dc734b6094c | diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java b/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java
@@ -730,8 +730,12 @@ public stati... | diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/io/BytesTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/io/BytesTest.java
--- a/dubbo-common/src/test/java/org/apache/dubbo/common/io/BytesTest.java
+++ b/dubbo-common/src/test/java/org/apache/dubbo/common/io/BytesTest.java
@@ -90,6 +90,14 @... | Calling base642bytes(String, char[]) can throw an unexpected IndexOutOfBoundsException
- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repos... | null | 2019-07-09 13:24:41+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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 clean install -am -Dtest=BytesTest -DfailIfNoTests=false -fae -DskipTests... | ['org.apache.dubbo.common.io.BytesTest.testMain', 'org.apache.dubbo.common.io.BytesTest.testMD5ForFile', 'org.apache.dubbo.common.io.BytesTest.testWrongBase64Code', 'org.apache.dubbo.common.io.BytesTest.testHex', 'org.apache.dubbo.common.io.BytesTest.testBytes2HexWithWrongLength', 'org.apache.dubbo.common.io.BytesTest.... | ['org.apache.dubbo.common.io.BytesTest.testBase642bCharArrCall'] | [] | 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=BytesTest -DfailIfNoTests=false -fae surefire-... | Bug Fix | true | false | false | false | 0 | 0 | 0 | false | false | ["dubbo-common/src/main/java/org/apache/dubbo/common/io/Bytes.java->program->class_declaration:Bytes->method_declaration:base642bytes"] |
apache/rocketmq | 7,346 | apache__rocketmq-7346 | ['7345'] | 57f04c95d3a2ba6b91583058a6e4eda209f72d6e | diff --git a/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/file/TieredFlatFile.java b/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/file/TieredFlatFile.java
--- a/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/file/TieredFlatFile.java
+++ b/tieredstore/src/main/java/org/apache/rocketm... | diff --git a/tieredstore/src/test/java/org/apache/rocketmq/tieredstore/file/TieredFlatFileTest.java b/tieredstore/src/test/java/org/apache/rocketmq/tieredstore/file/TieredFlatFileTest.java
--- a/tieredstore/src/test/java/org/apache/rocketmq/tieredstore/file/TieredFlatFileTest.java
+++ b/tieredstore/src/test/java/org/ap... | [Bug] wrong result of searchOffset in tiered storage
### 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/rocketmq/iss... | null | 2023-09-11 15:05:07+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | [] | ['org.apache.rocketmq.tieredstore.file.TieredFlatFileTest.testGetFileByTime'] | [] | 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 && mvn verify -am -Dtest=TieredFlatFileTest -DfailIfNoTests=false -fae surefire-report:report... | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["tieredstore/src/main/java/org/apache/rocketmq/tieredstore/file/TieredFlatFile.java->program->class_declaration:TieredFlatFile->method_declaration:TieredFileSegment_getFileByTime"] |
apache/dubbo | 5,356 | apache__dubbo-5356 | ['5355'] | 0438ee72bdfb7cc0fd9d97bf3f8283783d865bb8 | diff --git a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/script/ScriptRouter.java b/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/script/ScriptRouter.java
--- a/dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/router/script/ScriptRouter.java
+++ b/dubbo-cluster/src/main/jav... | diff --git a/dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/server/handler/TelnetProcessHandlerTest.java b/dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/server/handler/TelnetProcessHandlerTest.java
--- a/dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/server/handler/TelnetProcessHandler... | optimize : constant names should be all uppercase, separated by underscores
- [X] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [X] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and b... | null | 2019-11-19 07:06:29+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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 clean install -am -Dtest=TelnetProcessHandlerTest -DfailIfNoTests=false -... | [] | ['org.apache.dubbo.qos.server.handler.TelnetProcessHandlerTest.testGreeting', 'org.apache.dubbo.qos.server.handler.TelnetProcessHandlerTest.testPrompt', 'org.apache.dubbo.qos.server.handler.TelnetProcessHandlerTest.testUnknownCommand', 'org.apache.dubbo.qos.server.handler.TelnetProcessHandlerTest.testBye'] | [] | 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=TelnetProcessHandlerTest -DfailIfNoTests=false... | Refactoring | false | false | false | true | 30 | 22 | 52 | false | false | ["dubbo-remoting/dubbo-remoting-http/src/main/java/org/apache/dubbo/remoting/http/servlet/DispatcherServlet.java->program->class_declaration:DispatcherServlet->method_declaration:addHttpHandler", "dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ServiceConfig.java->program->class_declaration:ServiceC... |
apache/dubbo | 8,126 | apache__dubbo-8126 | ['8124'] | a39fffebe56291ce154c3011faf572e1678d6841 | diff --git a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/Connection.java b/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/Connection.java
--- a/dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/Connection.java
+++ b/dubbo-remot... | diff --git a/dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/api/ConnectionTest.java b/dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/api/ConnectionTest.java
--- a/dubbo-remoting/dubbo-remoting-api/src/test/java/org/apache/dubbo/remoting/api/ConnectionTest.java
+++ b... | Fix the problem that in the Triple protocol, an error will be reported immediately when the service is exposed
- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/mast... | null | 2021-06-23 14:46:54+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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 clean install -am -Dtest=ConnectionTest -DfailIfNoTests=false -fae -Dskip... | ['org.apache.dubbo.remoting.api.ConnectionTest.testRefCnt2', 'org.apache.dubbo.remoting.api.ConnectionTest.testRefCnt1', 'org.apache.dubbo.remoting.api.ConnectionTest.testRefCnt0'] | ['org.apache.dubbo.remoting.api.ConnectionTest.connectSyncTest'] | [] | 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=ConnectionTest -DfailIfNoTests=false -fae sure... | Bug Fix | false | false | false | true | 7 | 1 | 8 | false | false | ["dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/Connection.java->program->class_declaration:Connection->method_declaration:String_toString", "dubbo-remoting/dubbo-remoting-api/src/main/java/org/apache/dubbo/remoting/api/Connection.java->program->class_declaration:Connection->method_decla... |
apache/rocketmq | 5,841 | apache__rocketmq-5841 | ['5839'] | 98ebcef71c09e0157b6ae0b9f245b3de855c134d | diff --git a/proxy/src/main/java/org/apache/rocketmq/proxy/grpc/v2/consumer/ReceiveMessageActivity.java b/proxy/src/main/java/org/apache/rocketmq/proxy/grpc/v2/consumer/ReceiveMessageActivity.java
--- a/proxy/src/main/java/org/apache/rocketmq/proxy/grpc/v2/consumer/ReceiveMessageActivity.java
+++ b/proxy/src/main/java/... | diff --git a/proxy/src/test/java/org/apache/rocketmq/proxy/grpc/v2/consumer/ReceiveMessageActivityTest.java b/proxy/src/test/java/org/apache/rocketmq/proxy/grpc/v2/consumer/ReceiveMessageActivityTest.java
--- a/proxy/src/test/java/org/apache/rocketmq/proxy/grpc/v2/consumer/ReceiveMessageActivityTest.java
+++ b/proxy/sr... | Code.ILLEGAL_POLLING_TIME is not compatible with gRPC Client <=5.0.2
`Code.ILLEGAL_PILLING_TIME` is introduced in `rocketmq-proto` 2.0.1, which is integrated by [gRPC client 5.0.3](https://github.com/apache/rocketmq-clients/releases/tag/java-5.0.3), so it is not compatible with the older client.
| null | 2023-01-09 04:08:30+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | ['org.apache.rocketmq.proxy.grpc.v2.consumer.ReceiveMessageActivityTest.testReceiveMessageIllegalFilter', 'org.apache.rocketmq.proxy.grpc.v2.consumer.ReceiveMessageActivityTest.testReceiveMessageQueueSelector'] | ['org.apache.rocketmq.proxy.grpc.v2.consumer.ReceiveMessageActivityTest.testReceiveMessageWithIllegalPollingTime'] | [] | 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 && mvn verify -am -Dtest=ReceiveMessageActivityTest -DfailIfNoTests=false -fae surefire-repor... | Bug Fix | false | false | false | true | 1 | 1 | 2 | false | false | ["proxy/src/main/java/org/apache/rocketmq/proxy/grpc/v2/consumer/ReceiveMessageActivity.java->program->class_declaration:ReceiveMessageActivity->method_declaration:receiveMessage", "proxy/src/main/java/org/apache/rocketmq/proxy/grpc/v2/consumer/ReceiveMessageActivity.java->program->class_declaration:ReceiveMessageActiv... |
apache/rocketmq | 7,964 | apache__rocketmq-7964 | ['7963'] | b6efbb11ca599cdf0c0899479d1221d9cc65eeea | diff --git a/broker/src/main/java/org/apache/rocketmq/broker/processor/ConsumerManageProcessor.java b/broker/src/main/java/org/apache/rocketmq/broker/processor/ConsumerManageProcessor.java
--- a/broker/src/main/java/org/apache/rocketmq/broker/processor/ConsumerManageProcessor.java
+++ b/broker/src/main/java/org/apache/... | diff --git a/broker/src/test/java/org/apache/rocketmq/broker/processor/ConsumerManageProcessorTest.java b/broker/src/test/java/org/apache/rocketmq/broker/processor/ConsumerManageProcessorTest.java
--- a/broker/src/test/java/org/apache/rocketmq/broker/processor/ConsumerManageProcessorTest.java
+++ b/broker/src/test/java... | [Enhancement] Check the existence of consumer group in updateConsumerOffset to prevent dirty consumer offsets
### Before Creating the Enhancement Request
- [X] I have confirmed that this should be classified as an enhancement rather than a bug/feature.
### Summary
Check the existence of consumer group in com... | null | 2024-03-25 12:03:30+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | [] | ['org.apache.rocketmq.broker.processor.ConsumerManageProcessorTest.testUpdateConsumerOffset_GroupNotExist'] | [] | 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 && mvn verify -am -Dtest=ConsumerManageProcessorTest -DfailIfNoTests=false -fae surefire-repo... | Feature | false | true | false | false | 1 | 0 | 1 | true | false | ["broker/src/main/java/org/apache/rocketmq/broker/processor/ConsumerManageProcessor.java->program->class_declaration:ConsumerManageProcessor->method_declaration:RemotingCommand_updateConsumerOffset"] |
apache/rocketmq | 7,426 | apache__rocketmq-7426 | ['7429'] | b9ffe0f9576f68b8a37cf3e2f68051658ae5a9a2 | diff --git a/proxy/src/main/java/org/apache/rocketmq/proxy/service/sysmessage/HeartbeatSyncer.java b/proxy/src/main/java/org/apache/rocketmq/proxy/service/sysmessage/HeartbeatSyncer.java
--- a/proxy/src/main/java/org/apache/rocketmq/proxy/service/sysmessage/HeartbeatSyncer.java
+++ b/proxy/src/main/java/org/apache/rock... | diff --git a/proxy/src/test/java/org/apache/rocketmq/proxy/service/sysmessage/HeartbeatSyncerTest.java b/proxy/src/test/java/org/apache/rocketmq/proxy/service/sysmessage/HeartbeatSyncerTest.java
--- a/proxy/src/test/java/org/apache/rocketmq/proxy/service/sysmessage/HeartbeatSyncerTest.java
+++ b/proxy/src/test/java/org... | [Bug] The channel map was not cleared properly in proxy
### 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/rocketmq/issu... | null | 2023-10-09 03:28:36+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | [] | ['org.apache.rocketmq.proxy.service.sysmessage.HeartbeatSyncerTest.testSyncGrpcV2Channel', 'org.apache.rocketmq.proxy.service.sysmessage.HeartbeatSyncerTest.testSyncRemotingChannel', 'org.apache.rocketmq.proxy.service.sysmessage.HeartbeatSyncerTest.testProcessConsumerGroupEventForGrpcV2', 'org.apache.rocketmq.proxy.ser... | [] | 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 && mvn verify -am -Dtest=HeartbeatSyncerTest -DfailIfNoTests=false -fae surefire-report:repor... | Bug Fix | false | false | false | true | 4 | 1 | 5 | false | false | ["proxy/src/main/java/org/apache/rocketmq/proxy/service/sysmessage/HeartbeatSyncer.java->program->class_declaration:HeartbeatSyncer->method_declaration:ConsumeConcurrentlyStatus_consumeMessage", "proxy/src/main/java/org/apache/rocketmq/proxy/service/sysmessage/HeartbeatSyncer.java->program->class_declaration:HeartbeatS... |
apache/dubbo | 8,414 | apache__dubbo-8414 | ['8378'] | 63baa5c0432ad3f51ea7e583f0b0af4863804238 | diff --git a/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessor.java b/dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessor.java
--- a/dubbo-config/dubbo-co... | diff --git a/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ParameterConvertTest.java b/dubbo-config/dubbo-config-spring/src/test/java/org/apache/dubbo/config/spring/beans/factory/annotation/ParameterConvertTest.java
new file mode 100644
--- /dev/null
+++ b/dubbo-... | bug: mock parameters doesn't work when it contain ':' or '='
- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [x] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this repository and believe that th... | null | 2021-08-04 10:34:06+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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 clean install -am -Dtest=ParameterConvertTest -DfailIfNoTests=false -fae ... | [] | ['org.apache.dubbo.config.spring.beans.factory.annotation.ParameterConvertTest.test'] | [] | 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=ParameterConvertTest -DfailIfNoTests=false -fa... | Bug Fix | false | false | false | true | 9 | 3 | 12 | false | false | ["dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/beans/factory/annotation/ServiceAnnotationPostProcessor.java->program->class_declaration:ServiceAnnotationPostProcessor", "dubbo-config/dubbo-config-spring/src/main/java/org/apache/dubbo/config/spring/reference/ReferenceCreator.java->progra... |
apache/rocketmq | 7,823 | apache__rocketmq-7823 | ['7822'] | f525a34f6151b8ea9a91db49d3f55db636e070f8 | diff --git a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java b/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java
--- a/remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java
+++ b/remoting/src/main/java/org/apache/rocketmq/r... | diff --git a/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingClientTest.java b/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingClientTest.java
--- a/remoting/src/test/java/org/apache/rocketmq/remoting/netty/NettyRemotingClientTest.java
+++ b/remoting/src/test/java/org/apach... | [Bug] NettyRemotingClient can't connect to IPv6 address.
### 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/rocketmq/iss... | null | 2024-02-05 14:01:58+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | ['org.apache.rocketmq.remoting.netty.NettyRemotingClientTest.testInvokeOnewayException', 'org.apache.rocketmq.remoting.netty.NettyRemotingClientTest.testInvokeAsync', 'org.apache.rocketmq.remoting.netty.NettyRemotingClientTest.testRemotingException', 'org.apache.rocketmq.remoting.netty.NettyRemotingClientTest.testSetCa... | ['org.apache.rocketmq.remoting.netty.NettyRemotingClientTest.testIsAddressReachableFail'] | [] | 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 && mvn verify -am -Dtest=NettyRemotingClientTest -DfailIfNoTests=false -fae surefire-report:r... | Bug Fix | false | false | false | true | 1 | 1 | 2 | false | false | ["remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java->program->class_declaration:NettyRemotingClient", "remoting/src/main/java/org/apache/rocketmq/remoting/netty/NettyRemotingClient.java->program->class_declaration:NettyRemotingClient->method_declaration:getHostAndPort"] |
apache/rocketmq | 5,633 | apache__rocketmq-5633 | ['5631'] | e5fadc7db7c4a5c098e5f912a19fd71cba3dde3d | diff --git a/controller/src/main/java/org/apache/rocketmq/controller/impl/DLedgerController.java b/controller/src/main/java/org/apache/rocketmq/controller/impl/DLedgerController.java
--- a/controller/src/main/java/org/apache/rocketmq/controller/impl/DLedgerController.java
+++ b/controller/src/main/java/org/apache/rocke... | diff --git a/controller/src/test/java/org/apache/rocketmq/controller/impl/controller/impl/manager/ReplicasInfoManagerTest.java b/controller/src/test/java/org/apache/rocketmq/controller/impl/controller/impl/manager/ReplicasInfoManagerTest.java
--- a/controller/src/test/java/org/apache/rocketmq/controller/impl/controller... | ReplicasInfoManager#registerBroker not check master is alive
The issue tracker is used for bug reporting purposes **ONLY** whereas feature request needs to follow the [RIP process](https://github.com/apache/rocketmq/wiki/RocketMQ-Improvement-Proposal). To avoid unnecessary duplication, please check whether there is a p... | null | 2022-12-01 15:50:29+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | [] | ['org.apache.rocketmq.controller.impl.controller.impl.manager.ReplicasInfoManagerTest.testElectMasterPreferHigherEpoch', 'org.apache.rocketmq.controller.impl.controller.impl.manager.ReplicasInfoManagerTest.testElectMasterOldMasterStillAlive', 'org.apache.rocketmq.controller.impl.controller.impl.manager.ReplicasInfoMana... | [] | 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 && mvn verify -am -Dtest=ReplicasInfoManagerTest -DfailIfNoTests=false -fae surefire-report:r... | Bug Fix | false | true | false | false | 2 | 0 | 2 | false | false | ["controller/src/main/java/org/apache/rocketmq/controller/impl/manager/ReplicasInfoManager.java->program->class_declaration:ReplicasInfoManager->method_declaration:registerBroker", "controller/src/main/java/org/apache/rocketmq/controller/impl/DLedgerController.java->program->class_declaration:DLedgerController->method_... |
apache/dubbo | 6,498 | apache__dubbo-6498 | ['6497'] | fb5761683729f63c715e39c78a8b7b75278050c9 | diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/constants/CommonConstants.java b/dubbo-common/src/main/java/org/apache/dubbo/common/constants/CommonConstants.java
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/constants/CommonConstants.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/com... | diff --git a/dubbo-rpc/dubbo-rpc-webservice/src/test/java/org/apache/dubbo/rpc/protocol/webservice/WebserviceProtocolTest.java b/dubbo-rpc/dubbo-rpc-webservice/src/test/java/org/apache/dubbo/rpc/protocol/webservice/WebserviceProtocolTest.java
--- a/dubbo-rpc/dubbo-rpc-webservice/src/test/java/org/apache/dubbo/rpc/proto... | [Bug]Webservice consumer cannot invoke webservice provider when provider container has contextPath and servlet has url pattern
- [ ] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache... | null | 2020-07-18 17:42:20+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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 clean install -am -Dtest=WebserviceProtocolTest -DfailIfNoTests=false -fa... | [] | ['org.apache.dubbo.rpc.protocol.webservice.WebserviceProtocolTest.testWebserviceJetty', 'org.apache.dubbo.rpc.protocol.webservice.WebserviceProtocolTest.testWebserviceServlet', 'org.apache.dubbo.rpc.protocol.webservice.WebserviceProtocolTest.testWebserviceProtocol', 'org.apache.dubbo.rpc.protocol.webservice.WebserviceP... | [] | 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=WebserviceProtocolTest -DfailIfNoTests=false -... | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["dubbo-rpc/dubbo-rpc-webservice/src/main/java/org/apache/dubbo/rpc/protocol/webservice/WebServiceProtocol.java->program->class_declaration:WebServiceProtocol->method_declaration:T_doRefer"] |
apache/rocketmq | 5,062 | apache__rocketmq-5062 | ['5012'] | 613d483a18bddcea26783d1e80752360821afce9 | diff --git a/broker/src/main/java/org/apache/rocketmq/broker/failover/EscapeBridge.java b/broker/src/main/java/org/apache/rocketmq/broker/failover/EscapeBridge.java
--- a/broker/src/main/java/org/apache/rocketmq/broker/failover/EscapeBridge.java
+++ b/broker/src/main/java/org/apache/rocketmq/broker/failover/EscapeBridg... | diff --git a/broker/src/test/java/org/apache/rocketmq/broker/transaction/queue/TransactionalMessageServiceImplTest.java b/broker/src/test/java/org/apache/rocketmq/broker/transaction/queue/TransactionalMessageServiceImplTest.java
--- a/broker/src/test/java/org/apache/rocketmq/broker/transaction/queue/TransactionalMessag... | Support escaping transactional messages in slave-acting-master mode
**FEATURE REQUEST**
In [RIP-32](https://github.com/apache/rocketmq/wiki/RIP-32-Slave-Acting-Master-Mode), Slave Acting Master Mode is supported and the escape of the transactional messages need to be supported.
Below is a simple implementation o... | null | 2022-09-13 13:29:17+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | [] | ['org.apache.rocketmq.broker.transaction.queue.TransactionalMessageServiceImplTest.testCheck_withCheck', 'org.apache.rocketmq.broker.transaction.queue.TransactionalMessageUtilTest.testBuildTransactionalMessageFromHalfMessage', 'org.apache.rocketmq.broker.transaction.queue.TransactionalMessageServiceImplTest.testOpen', ... | [] | 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 && mvn verify -am -Dtest=TransactionalMessageServiceImplTest,TransactionListenerImpl,Transact... | Feature | false | false | false | true | 4 | 2 | 6 | false | false | ["broker/src/main/java/org/apache/rocketmq/broker/transaction/queue/TransactionalMessageBridge.java->program->class_declaration:TransactionalMessageBridge->method_declaration:escapeMessage", "broker/src/main/java/org/apache/rocketmq/broker/transaction/queue/TransactionalMessageServiceImpl.java->program->class_declarati... |
apache/rocketmq | 7,420 | apache__rocketmq-7420 | ['7313'] | 4f1b42a7c5557bcadd6b9982a0c9bd876622c69e | diff --git a/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/provider/TieredStoreTopicBlackListFilter.java b/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/provider/TieredStoreTopicBlackListFilter.java
--- a/tieredstore/src/main/java/org/apache/rocketmq/tieredstore/provider/TieredStoreTopicBlackLis... | diff --git a/tieredstore/src/test/java/org/apache/rocketmq/tieredstore/provider/TieredStoreTopicBlackListFilterTest.java b/tieredstore/src/test/java/org/apache/rocketmq/tieredstore/provider/TieredStoreTopicBlackListFilterTest.java
--- a/tieredstore/src/test/java/org/apache/rocketmq/tieredstore/provider/TieredStoreTopic... | [Enhancement] Optimization Method Name
### Before Creating the Enhancement Request
- [X] I have confirmed that this should be classified as an enhancement rather than a bug/feature.
### Summary
**path:** org.apache.rocketmq.tieredstore.provider.TieredStoreTopicBlackListFilter
The method addTopicToWhiteList... | Hii
I want to work on this.
This is my first issue working on, I wanna give a try.
| 2023-10-01 10:41:09+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | [] | ['org.apache.rocketmq.tieredstore.provider.TieredStoreTopicBlackListFilterTest.filterTopicTest'] | [] | 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 && mvn verify -am -Dtest=TieredStoreTopicBlackListFilterTest -DfailIfNoTests=false -fae suref... | Refactoring | false | true | false | false | 4 | 0 | 4 | false | false | ["tieredstore/src/main/java/org/apache/rocketmq/tieredstore/provider/TieredStoreTopicBlackListFilter.java->program->class_declaration:TieredStoreTopicBlackListFilter->method_declaration:addTopicToBlackList", "tieredstore/src/main/java/org/apache/rocketmq/tieredstore/provider/TieredStoreTopicFilter.java->program->method... |
apache/rocketmq | 7,745 | apache__rocketmq-7745 | ['7740'] | a79b52991a49c3179aaadc34effd50f16cff6671 | diff --git a/client/src/main/java/org/apache/rocketmq/client/consumer/store/LocalFileOffsetStore.java b/client/src/main/java/org/apache/rocketmq/client/consumer/store/LocalFileOffsetStore.java
--- a/client/src/main/java/org/apache/rocketmq/client/consumer/store/LocalFileOffsetStore.java
+++ b/client/src/main/java/org/a... | diff --git a/client/src/test/java/org/apache/rocketmq/client/consumer/store/LocalFileOffsetStoreTest.java b/client/src/test/java/org/apache/rocketmq/client/consumer/store/LocalFileOffsetStoreTest.java
--- a/client/src/test/java/org/apache/rocketmq/client/consumer/store/LocalFileOffsetStoreTest.java
+++ b/client/src/tes... | [Bug] BROADCASTING DefaultMQPushConsumer can't fix illegal pull offset
### 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/apach... | 之前我也遇到过这个问题,可以提个 patch 修复下 | 2024-01-12 10:22:19+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | [] | ['org.apache.rocketmq.client.consumer.store.LocalFileOffsetStoreTest.testPersist'] | [] | 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 && mvn verify -am -Dtest=LocalFileOffsetStoreTest -DfailIfNoTests=false -fae surefire-report:... | Bug Fix | false | true | false | false | 3 | 0 | 3 | false | false | ["client/src/main/java/org/apache/rocketmq/client/consumer/store/LocalFileOffsetStore.java->program->class_declaration:LocalFileOffsetStore->method_declaration:persistAll", "client/src/main/java/org/apache/rocketmq/client/consumer/store/LocalFileOffsetStore.java->program->class_declaration:LocalFileOffsetStore->method_... |
apache/rocketmq | 516 | apache__rocketmq-516 | ['515'] | 42ddf3df06394064eabad376fa98e86b51e3bea6 | diff --git a/common/src/main/java/org/apache/rocketmq/common/stats/MomentStatsItemSet.java b/common/src/main/java/org/apache/rocketmq/common/stats/MomentStatsItemSet.java
--- a/common/src/main/java/org/apache/rocketmq/common/stats/MomentStatsItemSet.java
+++ b/common/src/main/java/org/apache/rocketmq/common/stats/Momen... | diff --git a/common/src/test/java/org/apache/rocketmq/common/stats/StatsItemSetTest.java b/common/src/test/java/org/apache/rocketmq/common/stats/StatsItemSetTest.java
new file mode 100644
--- /dev/null
+++ b/common/src/test/java/org/apache/rocketmq/common/stats/StatsItemSetTest.java
@@ -0,0 +1,97 @@
+/*
+ * Licensed to... | org.apache.rocketmq.common.stats.StatsItemSet#getAndCreateStatsItem has multi-thread problem
The code below
```
public StatsItem getAndCreateStatsItem(final String statsKey) {
StatsItem statsItem = this.statsItemTable.get(statsKey);
if (null == statsItem) {
statsItem = new StatsItem... | Use putIfAbsent will solve this problem.
```
public StatsItem getAndCreateStatsItem(final String statsKey) {
StatsItem statsItem = this.statsItemTable.get(statsKey);
if (null == statsItem) {
statsItem = new StatsItem(this.statsName, statsKey, this.scheduledExecutorService, this.log);
Sta... | 2018-11-01 15:30:26+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | ['org.apache.rocketmq.common.stats.StatsItemSetTest.test_getAndCreateMomentStatsItem_multiThread'] | ['org.apache.rocketmq.common.stats.StatsItemSetTest.test_getAndCreateStatsItem_multiThread'] | [] | 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 && mvn verify -am -Dtest=StatsItemSetTest -DfailIfNoTests=false -fae surefire-report:report -... | Bug Fix | false | true | false | false | 2 | 0 | 2 | false | false | ["common/src/main/java/org/apache/rocketmq/common/stats/StatsItemSet.java->program->class_declaration:StatsItemSet->method_declaration:StatsItem_getAndCreateStatsItem", "common/src/main/java/org/apache/rocketmq/common/stats/MomentStatsItemSet.java->program->class_declaration:MomentStatsItemSet->method_declaration:Momen... |
apache/rocketmq | 4,122 | apache__rocketmq-4122 | ['3914'] | ead6274b3e8016ee2fa75cf0dc201b5581ee7a34 | diff --git a/store/src/main/java/org/apache/rocketmq/store/config/MessageStoreConfig.java b/store/src/main/java/org/apache/rocketmq/store/config/MessageStoreConfig.java
--- a/store/src/main/java/org/apache/rocketmq/store/config/MessageStoreConfig.java
+++ b/store/src/main/java/org/apache/rocketmq/store/config/MessageSt... | diff --git a/store/src/test/java/org/apache/rocketmq/store/dledger/DLedgerMultiPathTest.java b/store/src/test/java/org/apache/rocketmq/store/dledger/DLedgerMultiPathTest.java
new file mode 100644
--- /dev/null
+++ b/store/src/test/java/org/apache/rocketmq/store/dledger/DLedgerMultiPathTest.java
@@ -0,0 +1,104 @@
+/*
+ ... | [RIP-7] Support multi-directory storage in DLedger.
**FEATURE REQUEST**
1. Please describe the feature you are requesting.
Multi-directory storage has been supported in 4.9.2, but it only supports master-slave deployment mode. We should also support this feature in DLedger deployment mode.
2. Provide any additio... | null | 2022-04-06 08:28:47+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | [] | ['org.apache.rocketmq.store.dledger.DLedgerMultiPathTest.multiDirsStorageTest'] | [] | 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 && mvn verify -am -Dtest=DLedgerMultiPathTest -DfailIfNoTests=false -fae surefire-report:repo... | Feature | false | false | false | true | 2 | 3 | 5 | false | false | ["store/src/main/java/org/apache/rocketmq/store/dledger/DLedgerCommitLog.java->program->class_declaration:DLedgerCommitLog->constructor_declaration:DLedgerCommitLog", "store/src/main/java/org/apache/rocketmq/store/config/MessageStoreConfig.java->program->class_declaration:MessageStoreConfig->method_declaration:String_g... |
apache/rocketmq | 7,712 | apache__rocketmq-7712 | ['7710'] | 9e4fd0e68a1ea6ab1b1f3344ac9ae79af29a32c2 | diff --git a/common/src/main/java/org/apache/rocketmq/common/UtilAll.java b/common/src/main/java/org/apache/rocketmq/common/UtilAll.java
--- a/common/src/main/java/org/apache/rocketmq/common/UtilAll.java
+++ b/common/src/main/java/org/apache/rocketmq/common/UtilAll.java
@@ -43,6 +43,7 @@
import java.util.zip.CRC32;
i... | diff --git a/common/src/test/java/org/apache/rocketmq/common/UtilAllTest.java b/common/src/test/java/org/apache/rocketmq/common/UtilAllTest.java
--- a/common/src/test/java/org/apache/rocketmq/common/UtilAllTest.java
+++ b/common/src/test/java/org/apache/rocketmq/common/UtilAllTest.java
@@ -142,6 +142,15 @@ public void ... | [Bug] Deleting the last item problem of the ACL topic/group perms or the global white list caused by the UtilAll#split func flaw
### 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 ... | @RongtongJin @fuyou001 | 2024-01-02 01:57:39+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | ['org.apache.rocketmq.common.UtilAllTest.testCleanBuffer'] | ['org.apache.rocketmq.common.UtilAllTest.testSplit'] | [] | 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 && mvn verify -am -Dtest=UtilAllTest -DfailIfNoTests=false -fae surefire-report:report -Dsure... | Bug Fix | true | false | false | false | 0 | 0 | 0 | false | false | ["common/src/main/java/org/apache/rocketmq/common/UtilAll.java->program->class_declaration:UtilAll->method_declaration:split"] |
apache/dubbo | 4,567 | apache__dubbo-4567 | ['4551'] | c304bf356c2ed9b228d017b289475aa7f7940eba | diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/Version.java b/dubbo-common/src/main/java/org/apache/dubbo/common/Version.java
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/Version.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/Version.java
@@ -100,7 +100,7 @@ public static boo... | diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/version/VersionTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/version/VersionTest.java
--- a/dubbo-common/src/test/java/org/apache/dubbo/common/version/VersionTest.java
+++ b/dubbo-common/src/test/java/org/apache/dubbo/common/version/Versio... | Optimize Version#isRelease263OrHigher check
### Environment
* Dubbo version: 2.7.2
* Operating System version: MacOS
* Java version: 1.8
### Steps to reproduce this issue
We have internal dubbo version 2.6.2.1 which bases dubbo-2.6.2。
1. Consumer side dubbo version is 2.6.2.1
2. Provider side dubbo version i... | null | 2019-07-15 00:50:09+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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 clean install -am -Dtest=VersionTest -DfailIfNoTests=false -fae -DskipTes... | ['org.apache.dubbo.common.version.VersionTest.testSupportResponseAttachment', 'org.apache.dubbo.common.version.VersionTest.testIsFramework270OrHigher', 'org.apache.dubbo.common.version.VersionTest.testGetIntVersion', 'org.apache.dubbo.common.version.VersionTest.testGetProtocolVersion'] | ['org.apache.dubbo.common.version.VersionTest.testIsFramework263OrHigher'] | [] | 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=VersionTest -DfailIfNoTests=false -fae surefir... | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["dubbo-common/src/main/java/org/apache/dubbo/common/Version.java->program->class_declaration:Version->method_declaration:isSupportResponseAttachment"] |
apache/rocketmq | 1,636 | apache__rocketmq-1636 | ['1110'] | 44569e4df6620fff61e43d782815f93a97e748ea | diff --git a/client/src/main/java/org/apache/rocketmq/client/Validators.java b/client/src/main/java/org/apache/rocketmq/client/Validators.java
--- a/client/src/main/java/org/apache/rocketmq/client/Validators.java
+++ b/client/src/main/java/org/apache/rocketmq/client/Validators.java
@@ -33,6 +33,7 @@ public class Valida... | diff --git a/client/src/test/java/org/apache/rocketmq/client/ValidatorsTest.java b/client/src/test/java/org/apache/rocketmq/client/ValidatorsTest.java
--- a/client/src/test/java/org/apache/rocketmq/client/ValidatorsTest.java
+++ b/client/src/test/java/org/apache/rocketmq/client/ValidatorsTest.java
@@ -71,13 +71,13 @@ p... | topic length between 128 and 255
1. describe : Why are these Two checks different? Whether there are errors when the length of the topic is between 128 and 255
2. What did you see instead?
2.1. send message
org.apache.rocketmq.client.Validators#checkTopic
` if (topic.length() > CHARACTER_MAX_LENGTH) { //255
... | null | 2019-12-04 10:03:47+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | [] | ['org.apache.rocketmq.client.ValidatorsTest.testCheckTopic_TooLongTopic', 'org.apache.rocketmq.client.ValidatorsTest.testCheckTopic_HasIllegalCharacters', 'org.apache.rocketmq.client.ValidatorsTest.testCheckTopic_Success', 'org.apache.rocketmq.client.ValidatorsTest.testCheckTopic_BlankTopic', 'org.apache.rocketmq.clien... | [] | 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 && mvn verify -am -Dtest=ValidatorsTest -DfailIfNoTests=false -fae surefire-report:report -Ds... | Bug Fix | false | false | false | true | 1 | 1 | 2 | false | false | ["client/src/main/java/org/apache/rocketmq/client/Validators.java->program->class_declaration:Validators", "client/src/main/java/org/apache/rocketmq/client/Validators.java->program->class_declaration:Validators->method_declaration:checkTopic"] |
apache/rocketmq | 5,008 | apache__rocketmq-5008 | ['4999'] | a5d07e106af81eb1e36d750e1f0d0832a8ea8b3d | diff --git a/srvutil/src/main/java/org/apache/rocketmq/srvutil/ConcurrentHashMapUtil.java b/common/src/main/java/org/apache/rocketmq/common/utils/ConcurrentHashMapUtils.java
similarity index 77%
rename from srvutil/src/main/java/org/apache/rocketmq/srvutil/ConcurrentHashMapUtil.java
rename to common/src/main/java/org/a... | diff --git a/common/src/test/java/org/apache/rocketmq/common/utils/ConcurrentHashMapUtilsTest.java b/common/src/test/java/org/apache/rocketmq/common/utils/ConcurrentHashMapUtilsTest.java
new file mode 100644
--- /dev/null
+++ b/common/src/test/java/org/apache/rocketmq/common/utils/ConcurrentHashMapUtilsTest.java
@@ -0,... | ConcurrentHashMap#computeIfAbsent have performance problem in jdk1.8 QueueOffsetAssigner#assignQueueOffset use it.

[openjdk bug report](https://bugs.openjdk.org/browse/JDK-8161372) .
use JMH to test it:
`... | Good catch. Do you have the plan to fix it?
> Good catch. Do you have the plan to fix it?
I will submit a PR to fix it | 2022-09-06 15:28:16+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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-amazon-corret... | [] | ['org.apache.rocketmq.common.utils.ConcurrentHashMapUtilsTest.computeIfAbsent'] | [] | 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 && mvn verify -am -Dtest=ConcurrentHashMapUtilsTest -DfailIfNoTests=false -fae surefire-repor... | Bug Fix | true | false | false | false | 0 | 0 | 0 | false | false | ["proxy/src/main/java/org/apache/rocketmq/proxy/processor/ReceiptHandleProcessor.java->program->class_declaration:ReceiptHandleProcessor->method_declaration:addReceiptHandle", "proxy/src/main/java/org/apache/rocketmq/proxy/service/channel/ChannelManager.java->program->class_declaration:ChannelManager->method_declaratio... |
apache/dubbo | 4,678 | apache__dubbo-4678 | ['4248'] | f2af6fdbf671fb8fa472f44f841f40e369f84857 | diff --git a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/MethodUtils.java b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/MethodUtils.java
--- a/dubbo-common/src/main/java/org/apache/dubbo/common/utils/MethodUtils.java
+++ b/dubbo-common/src/main/java/org/apache/dubbo/common/utils/MethodUtils.ja... | diff --git a/dubbo-common/src/test/java/org/apache/dubbo/common/utils/MethodUtilsTest.java b/dubbo-common/src/test/java/org/apache/dubbo/common/utils/MethodUtilsTest.java
--- a/dubbo-common/src/test/java/org/apache/dubbo/common/utils/MethodUtilsTest.java
+++ b/dubbo-common/src/test/java/org/apache/dubbo/common/utils/Me... | dubbo2.7.1-AbstractConfig.java-getMetaData set default depend on getmethod sequence
- [x] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [ ] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this reposito... | add the code
if(parameter.excluded())
continue;
centos update the jdk version to oracle jdk java version "1.8.0_211" it is same to openjdk。
maybe different platform compile is different,methods sequence different.
it is ok run with dubbo-2.6.2 | 2019-07-27 04:20:27+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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 clean install -am -Dtest=AbstractReferenceConfigTest,MethodUtilsTest -Dfa... | [] | ['org.apache.dubbo.common.utils.MethodUtilsTest.testIsDeprecated', 'org.apache.dubbo.config.AbstractReferenceConfigTest.testGroup', 'org.apache.dubbo.config.AbstractReferenceConfigTest.testGeneric', 'org.apache.dubbo.config.AbstractReferenceConfigTest.testListener', 'org.apache.dubbo.config.AbstractReferenceConfigTest.... | [] | 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=AbstractReferenceConfigTest,MethodUtilsTest -D... | Bug Fix | false | false | false | true | 6 | 1 | 7 | false | false | ["dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/ReferenceConfig.java->program->class_declaration:ReferenceConfig->method_declaration:init", "dubbo-config/dubbo-config-api/src/main/java/org/apache/dubbo/config/AbstractReferenceConfig.java->program->class_declaration:AbstractReferenceConfig->method_... |
apache/dubbo | 5,708 | apache__dubbo-5708 | ['5707'] | c0d62ed7a83347fa469c2b2a7d75287a5feb799b | diff --git a/dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/legacy/SelectTelnetHandler.java b/dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/legacy/SelectTelnetHandler.java
--- a/dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/legacy/SelectTelnetHandler.java
+++ b/dubbo-plugin/dubbo-qos/... | diff --git a/dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/legacy/InvokerTelnetHandlerTest.java b/dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/legacy/InvokerTelnetHandlerTest.java
--- a/dubbo-plugin/dubbo-qos/src/test/java/org/apache/dubbo/qos/legacy/InvokerTelnetHandlerTest.java
+++ b/dubbo-pl... | SelectTelnetHandler will select error method,sometime will throw IndexOutOfBoundsException
- [X] I have searched the [issues](https://github.com/apache/dubbo/issues) of this repository and believe that this is not a duplicate.
- [X] I have checked the [FAQ](https://github.com/apache/dubbo/blob/master/FAQ.md) of this... | null | 2020-02-04 09:36:45+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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 clean install -am -Dtest=InvokerTelnetHandlerTest -DfailIfNoTests=false -... | ['org.apache.dubbo.qos.legacy.InvokerTelnetHandlerTest.testInvokeDefaultService', 'org.apache.dubbo.qos.legacy.InvokerTelnetHandlerTest.testInvokeMultiJsonParamMethod', 'org.apache.dubbo.qos.legacy.InvokerTelnetHandlerTest.testInvokeByPassingEnumValue', 'org.apache.dubbo.qos.legacy.InvokerTelnetHandlerTest.testInvokeWi... | ['org.apache.dubbo.qos.legacy.InvokerTelnetHandlerTest.testInvokeOverriddenMethodBySelect'] | [] | 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=InvokerTelnetHandlerTest -DfailIfNoTests=false... | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["dubbo-plugin/dubbo-qos/src/main/java/org/apache/dubbo/qos/legacy/SelectTelnetHandler.java->program->class_declaration:SelectTelnetHandler->method_declaration:String_telnet"] |
apache/rocketmq | 5,037 | apache__rocketmq-5037 | ['5036'] | f8bf7bd38b11ca025c5795a8e4a03bd577f47273 | diff --git a/common/src/main/java/org/apache/rocketmq/common/protocol/ResponseCode.java b/common/src/main/java/org/apache/rocketmq/common/protocol/ResponseCode.java
--- a/common/src/main/java/org/apache/rocketmq/common/protocol/ResponseCode.java
+++ b/common/src/main/java/org/apache/rocketmq/common/protocol/ResponseCod... | diff --git a/controller/src/test/java/org/apache/rocketmq/controller/impl/controller/impl/manager/ReplicasInfoManagerTest.java b/controller/src/test/java/org/apache/rocketmq/controller/impl/controller/impl/manager/ReplicasInfoManagerTest.java
--- a/controller/src/test/java/org/apache/rocketmq/controller/impl/controller... | Optimize controller module Response code
In Controller module process Request, if handle failure most return **CONTROLLER_INVALID_REQUEST** code. Optimize return code, Make its semantics clearer.
ReplicasInfoManager#alterSyncStateSet, as following picture:
;
Object[] parameters = new Object[parameterTypes.length];
for (int i = 0; i < parameterTypes.length; i++) {
if (paramet... | 2019-05-10 17:28:53+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
RUN 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 clean install -am -Dtest=User,PojoUtilsTest -DfailIfNoTests=false -fae -D... | ['org.apache.dubbo.common.utils.PojoUtilsTest.testGeneralizePersons', 'org.apache.dubbo.common.utils.PojoUtilsTest.test_PojoInList', 'org.apache.dubbo.common.utils.PojoUtilsTest.test_simpleCollection', 'org.apache.dubbo.common.utils.PojoUtilsTest.test_PrimitiveArray', 'org.apache.dubbo.common.utils.PojoUtilsTest.testPo... | ['org.apache.dubbo.common.utils.PojoUtilsTest.test_has_no_nullary_constructor_pojo'] | [] | 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=User,PojoUtilsTest -DfailIfNoTests=false -fae ... | Bug Fix | false | false | false | true | 2 | 1 | 3 | false | false | ["dubbo-common/src/main/java/org/apache/dubbo/common/utils/PojoUtils.java->program->class_declaration:PojoUtils->method_declaration:Object_getDefaultValue", "dubbo-common/src/main/java/org/apache/dubbo/common/utils/PojoUtils.java->program->class_declaration:PojoUtils->method_declaration:Object_newInstance", "dubbo-comm... |
trinodb/trino | 2,707 | trinodb__trino-2707 | ['1983'] | 2dd60c71da052d299ead42f4e3f1bb7ce9664086 | diff --git a/presto-docs/src/main/sphinx/develop/functions.rst b/presto-docs/src/main/sphinx/develop/functions.rst
index a69c6d24671b..a77bde48fcfa 100644
--- a/presto-docs/src/main/sphinx/develop/functions.rst
+++ b/presto-docs/src/main/sphinx/develop/functions.rst
@@ -157,7 +157,7 @@ The ``lowercaser`` function takes... | diff --git a/presto-main/src/main/java/io/prestosql/operator/scalar/Greatest.java b/presto-main/src/main/java/io/prestosql/operator/scalar/Greatest.java
index 39d4e393d8bf..8639f7736afb 100644
--- a/presto-main/src/main/java/io/prestosql/operator/scalar/Greatest.java
+++ b/presto-main/src/main/java/io/prestosql/operato... | Fix format for @Description value
Currently, the format of function description is varied as below (The first character uppercase/lowercase and the following period)
- `word_stem`: returns the stem of a word in the given language
- `zip`: Merges the given arrays, element-wise, into a single array of rows.
| Let's settle on sentence case (uppercase first letter). | 2020-02-02 01:12:09+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD... | ['io.prestosql.operator.scalar.TestStringFunctions.testCharLength', 'io.prestosql.operator.scalar.TestStringFunctions.testSubstring', 'io.prestosql.operator.scalar.TestStringFunctions.testCharSubstring', 'io.prestosql.operator.scalar.TestStringFunctions.testNormalize', 'io.prestosql.operator.scalar.TestStringFunctions.... | ['io.prestosql.sql.query.TestShowQueries.testShowFunctionsLikeWithEscape', 'io.prestosql.sql.query.TestShowQueries.testShowFunctionLike'] | [] | 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 && sed -i '/<properties>/a \ <air.check.skip-all>true</air.check.skip-all>\n <checkstyle.skip>tru... | Refactoring | false | false | false | true | 238 | 26 | 264 | false | false | ["presto-main/src/main/java/io/prestosql/operator/scalar/VarbinaryFunctions.java->program->class_declaration:VarbinaryFunctions->method_declaration:Slice_sha1", "presto-main/src/main/java/io/prestosql/operator/scalar/ArrayFilterFunction.java->program->class_declaration:ArrayFilterFunction", "presto-main/src/main/java/i... |
trinodb/trino | 4,393 | trinodb__trino-4393 | ['4378'] | 50b0646ba869ff59568daed9dae5f3dd57933671 | diff --git a/presto-hive/src/main/java/io/prestosql/plugin/hive/BackgroundHiveSplitLoader.java b/presto-hive/src/main/java/io/prestosql/plugin/hive/BackgroundHiveSplitLoader.java
index 5e770f27a523..99d8f1bf7a69 100644
--- a/presto-hive/src/main/java/io/prestosql/plugin/hive/BackgroundHiveSplitLoader.java
+++ b/presto-... | diff --git a/presto-hive/src/test/java/io/prestosql/plugin/hive/TestBackgroundHiveSplitLoader.java b/presto-hive/src/test/java/io/prestosql/plugin/hive/TestBackgroundHiveSplitLoader.java
index db31af897bdb..628460e62ed4 100644
--- a/presto-hive/src/test/java/io/prestosql/plugin/hive/TestBackgroundHiveSplitLoader.java
+... | Hive connector silently ignores extra buckets
`BackgroundHiveSplitLoader.getBucketedSplits()` should verify that every bucket number is less than `partitionBucketNumber`. For example, create a table with a bucket count of `4` and then create these files:
```
0000_0
0001_0
0003_0
0004_0
0009_0
```
The files for ... | So basically we should catch this case - the highest bucket number that detected from data file should be less than `(table bucket number)` and then fail the query? But would it impact the data correctness in current implementation as anyway we skip those 2 invalid buckets? | 2020-07-09 01:16:53+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD... | [] | ['io.prestosql.plugin.hive.TestBackgroundHiveSplitLoader.testNoHangIfPartitionIsOffline', 'io.prestosql.plugin.hive.TestBackgroundHiveSplitLoader.testPathFilterOneBucketMatchPartitionedTable', 'io.prestosql.plugin.hive.TestBackgroundHiveSplitLoader.testPathFilterBucketedPartitionedTable', 'io.prestosql.plugin.hive.Test... | [] | 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 && sed -i '/<properties>/a \ <air.check.skip-all>true</air.check.skip-all>\n <checkstyle.skip>tru... | Bug Fix | false | false | false | true | 2 | 1 | 3 | false | false | ["presto-hive/src/main/java/io/prestosql/plugin/hive/BackgroundHiveSplitLoader.java->program->class_declaration:BackgroundHiveSplitLoader", "presto-hive/src/main/java/io/prestosql/plugin/hive/BackgroundHiveSplitLoader.java->program->class_declaration:BackgroundHiveSplitLoader->method_declaration:getBucketedSplits", "pr... |
trinodb/trino | 3,208 | trinodb__trino-3208 | ['3195'] | b66262b87ded75cf00a9628956339b8e34f9b934 | diff --git a/presto-memory/src/main/java/io/prestosql/plugin/memory/MemoryMetadata.java b/presto-memory/src/main/java/io/prestosql/plugin/memory/MemoryMetadata.java
index fc8bf1517c1a..9257aa62485d 100644
--- a/presto-memory/src/main/java/io/prestosql/plugin/memory/MemoryMetadata.java
+++ b/presto-memory/src/main/java/... | diff --git a/presto-memory/src/test/java/io/prestosql/plugin/memory/TestMemoryMetadata.java b/presto-memory/src/test/java/io/prestosql/plugin/memory/TestMemoryMetadata.java
index 50f1f16062a4..e5fbff8e3d02 100644
--- a/presto-memory/src/test/java/io/prestosql/plugin/memory/TestMemoryMetadata.java
+++ b/presto-memory/sr... | Presto view in memory connector isn't listed in system.jdbc.tables
Steps to reproduce:
```sql
presto> create view memory.default.view1 as select 1 as c1;
CREATE VIEW
presto> select * from system.jdbc.tables where table_cat = 'memory' and table_schem = 'default';
table_cat | table_schem | table_name | table_type... | null | 2020-03-23 11:17:09+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD... | ['io.prestosql.plugin.memory.TestMemoryMetadata.testCreateSchema', 'io.prestosql.plugin.memory.TestMemoryMetadata.testViews', 'io.prestosql.plugin.memory.TestMemoryMetadata.testActiveTableIds', 'io.prestosql.plugin.memory.TestMemoryMetadata.tableAlreadyExists', 'io.prestosql.plugin.memory.TestMemoryMetadata.testCreateV... | ['io.prestosql.plugin.memory.TestMemoryMetadata.testCreatedViewShouldBeListedAsTable'] | [] | 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 && sed -i '/<properties>/a \ <air.check.skip-all>true</air.check.skip-all>\n <checkstyle.skip>tru... | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["presto-memory/src/main/java/io/prestosql/plugin/memory/MemoryMetadata.java->program->class_declaration:MemoryMetadata->method_declaration:listTables"] |
trinodb/trino | 2,081 | trinodb__trino-2081 | ['1998'] | 14a301a6f79d8ad6eebf5a59856d7e7739624b46 | diff --git a/presto-main/src/main/java/io/prestosql/sql/gen/BytecodeUtils.java b/presto-main/src/main/java/io/prestosql/sql/gen/BytecodeUtils.java
index 95c6fec9db21..b71d6a895ec4 100644
--- a/presto-main/src/main/java/io/prestosql/sql/gen/BytecodeUtils.java
+++ b/presto-main/src/main/java/io/prestosql/sql/gen/Bytecode... | diff --git a/presto-main/src/test/java/io/prestosql/operator/scalar/CustomFunctions.java b/presto-main/src/test/java/io/prestosql/operator/scalar/CustomFunctions.java
index 63a71b6b589d..9ffb1cee2ad4 100644
--- a/presto-main/src/test/java/io/prestosql/operator/scalar/CustomFunctions.java
+++ b/presto-main/src/test/java... | Using dot in ScalarFunctions name value cause failures
We are wring a custom functions like `@ScalarFunction(value = "pretradedate", alias = "default.pretradedate")`. When select on `default.pretradedate`, it throws error
```
io.prestosql.spi.PrestoException: line 1:1: Function default.pretradedate not registered
... | @findepi @martint @Praveen2112 | 2019-11-22 07:35:04+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD... | ['io.prestosql.operator.scalar.TestCustomFunctions.testCustomAdd', 'io.prestosql.operator.scalar.TestCustomFunctions.testSliceIsNull', 'io.prestosql.operator.scalar.TestCustomFunctions.testLongIsNull'] | ['io.prestosql.operator.scalar.TestCustomFunctions.testIdentityFunction'] | [] | 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 && sed -i '/<properties>/a \ <air.check.skip-all>true</air.check.skip-all>\n <checkstyle.skip>tru... | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["presto-main/src/main/java/io/prestosql/sql/gen/BytecodeUtils.java->program->class_declaration:BytecodeUtils->method_declaration:BytecodeExpression_invoke"] |
trinodb/trino | 3,603 | trinodb__trino-3603 | ['3550'] | 19abcb7ddeacaf1ca7bad52f998b524dc83b6904 | diff --git a/presto-main/src/main/java/io/prestosql/sql/planner/optimizations/AddLocalExchanges.java b/presto-main/src/main/java/io/prestosql/sql/planner/optimizations/AddLocalExchanges.java
index 25c568303bfa..fdf64e3e337f 100644
--- a/presto-main/src/main/java/io/prestosql/sql/planner/optimizations/AddLocalExchanges.... | diff --git a/presto-main/src/test/java/io/prestosql/sql/planner/assertions/RowNumberMatcher.java b/presto-main/src/test/java/io/prestosql/sql/planner/assertions/RowNumberMatcher.java
index f6876120e427..f3daad68bf6a 100644
--- a/presto-main/src/test/java/io/prestosql/sql/planner/assertions/RowNumberMatcher.java
+++ b/p... | Avoid local exchanges around trivial projection
When a projection is below "scrambling" and sorting operations, it's currently surrounded with local exchanges.
For a trivial projection (e.g. pruning), those exchanges are redundant.
```
presto> EXPLAIN SELECT name, row_number() OVER (ORDER BY name) FROM (SELECT * F... | In this particular case this is caused by the fact TopN unconditionally outputs sort symbols (cannot prune).
This causes hiccups in some other places too. I propose that we have a rule that every Node can be pruning.
This seems like a limitation in AddLocalExchanges. For trivial projections (not just those that prun... | 2020-05-03 12:25:16+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD... | ['io.prestosql.sql.planner.optimizations.TestAddExchangesPlans.testNonSpillableBroadcastJoinAboveTableScan', 'io.prestosql.sql.planner.optimizations.TestAddExchangesPlans.testForcePartitioningMarkDistinctInput', 'io.prestosql.sql.planner.optimizations.TestAddExchangesPlans.testImplementOffsetWithUnorderedSource', 'io.p... | ['io.prestosql.sql.planner.optimizations.TestAddExchangesPlans.testExchangesAroundTrivialProjection'] | [] | 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 && sed -i '/<properties>/a \ <air.check.skip-all>true</air.check.skip-all>\n <checkstyle.skip>tru... | Refactoring | false | false | false | true | 1 | 1 | 2 | false | false | ["presto-main/src/main/java/io/prestosql/sql/planner/optimizations/AddLocalExchanges.java->program->class_declaration:AddLocalExchanges->class_declaration:Rewriter->method_declaration:PlanWithProperties_visitProject", "presto-main/src/main/java/io/prestosql/sql/planner/optimizations/AddLocalExchanges.java->program->cla... |
trinodb/trino | 3,859 | trinodb__trino-3859 | ['3829'] | 2f902bd6b092fe214a87ded5ca2b2500eff3a7d9 | diff --git a/presto-main/src/main/java/io/prestosql/sql/analyzer/AggregationAnalyzer.java b/presto-main/src/main/java/io/prestosql/sql/analyzer/AggregationAnalyzer.java
index 81ed6bc40779..d216c50e2e31 100644
--- a/presto-main/src/main/java/io/prestosql/sql/analyzer/AggregationAnalyzer.java
+++ b/presto-main/src/main/j... | diff --git a/presto-main/src/test/java/io/prestosql/sql/query/TestFormat.java b/presto-main/src/test/java/io/prestosql/sql/query/TestFormat.java
new file mode 100644
index 000000000000..f6e3e1446414
--- /dev/null
+++ b/presto-main/src/test/java/io/prestosql/sql/query/TestFormat.java
@@ -0,0 +1,53 @@
+package io.prestos... | "Compiler failed" when aggregation is used as an argument to format()
`format` function was added in `315` but it doesn't support aggregations in the expression (and the doc doesn't mention aggregation is not supported, maybe we should consider adding this to the doc for now).
```
select format('%.6f', sum(fees / 1... | ```
presto> select format('%s', sum(nationkey)) from tpch.tiny.nation;
Query 20200522_175544_00011_kci5a failed: Compiler failed
io.prestosql.spi.PrestoException: Compiler failed
at io.prestosql.sql.planner.LocalExecutionPlanner$Visitor.visitScanFilterAndProject(LocalExecutionPlanner.java:1306)
at io.prestosql.s... | 2020-05-26 22:38:57+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD... | [] | ['io.prestosql.sql.query.TestFormat.testAggregationInFormat'] | [] | 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 && sed -i '/<properties>/a \ <air.check.skip-all>true</air.check.skip-all>\n <checkstyle.skip>tru... | Bug Fix | false | false | false | true | 2 | 2 | 4 | false | false | ["presto-main/src/main/java/io/prestosql/sql/analyzer/AggregationAnalyzer.java->program->class_declaration:AggregationAnalyzer->class_declaration:Visitor->method_declaration:Boolean_visitFormat", "presto-main/src/main/java/io/prestosql/sql/analyzer/AggregationAnalyzer.java->program->class_declaration:AggregationAnalyze... |
trinodb/trino | 1,512 | trinodb__trino-1512 | ['1510'] | 0637de3ef0b5873b285a62a72ddb82505c707bb3 | diff --git a/presto-main/src/main/java/io/prestosql/sql/planner/optimizations/HashGenerationOptimizer.java b/presto-main/src/main/java/io/prestosql/sql/planner/optimizations/HashGenerationOptimizer.java
index c541a6b76c5b..0152699f6ee3 100644
--- a/presto-main/src/main/java/io/prestosql/sql/planner/optimizations/HashGe... | diff --git a/presto-main/src/test/java/io/prestosql/sql/planner/TestLogicalPlanner.java b/presto-main/src/test/java/io/prestosql/sql/planner/TestLogicalPlanner.java
index 35fac9f0b56e..093ad8a97ab8 100644
--- a/presto-main/src/test/java/io/prestosql/sql/planner/TestLogicalPlanner.java
+++ b/presto-main/src/test/java/io... | Multiple entries failure in HashGenerationOptimizer
# Problem
From 318, the following error happens when we use aggregation with the union and distinct.
```
Multiple entries with same key: HashComputation{fields=[expr_62]}=HashComputation{fields=[expr_47]} and HashComputation{fields=[expr_62]}=HashComputation{fi... | In that case can we go for a `MultiMap` for handing this so duplicate entries can be handled
@Praveen2112 Thank you for the response.
Yes, but how can we look up the computed hash when using `MultiMap`? There are multiple possible hashes returned by `lookup`. Sorry, I do not fully understand the background of the ... | 2019-09-13 06:44:28+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD... | ['io.prestosql.sql.planner.TestLogicalPlanner.testAggregation', 'io.prestosql.sql.planner.TestLogicalPlanner.testRemoveUnreferencedScalarInputApplyNodes', 'io.prestosql.sql.planner.TestLogicalPlanner.testRemoveSingleRowSort', 'io.prestosql.sql.planner.TestLogicalPlanner.testRemoveAggregationInSemiJoin', 'io.prestosql.s... | ['io.prestosql.sql.query.TestPrecomputedHashes.testUnionAllAndDistinctLimit', 'io.prestosql.sql.planner.TestLogicalPlanner.testRedundantHashRemovalForUnionAllAndMarkDistinct'] | [] | 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 && sed -i '/<properties>/a \ <air.check.skip-all>true</air.check.skip-all>\n <checkstyle.skip>tru... | Bug Fix | false | false | false | true | 4 | 2 | 6 | false | false | ["presto-main/src/main/java/io/prestosql/sql/planner/optimizations/HashGenerationOptimizer.java->program->class_declaration:HashGenerationOptimizer->class_declaration:HashComputationSet->method_declaration:HashComputationSet_pruneSymbols", "presto-main/src/main/java/io/prestosql/sql/planner/optimizations/HashGeneration... |
trinodb/trino | 2,768 | trinodb__trino-2768 | ['2767'] | b749331afcdaf917bbf2530c03f8a6a1d39b80fa | diff --git a/presto-main/src/main/java/io/prestosql/execution/CreateRoleTask.java b/presto-main/src/main/java/io/prestosql/execution/CreateRoleTask.java
index f37eca3d2334..40e0292dc289 100644
--- a/presto-main/src/main/java/io/prestosql/execution/CreateRoleTask.java
+++ b/presto-main/src/main/java/io/prestosql/executi... | diff --git a/presto-main/src/test/java/io/prestosql/execution/TestSetRoleTask.java b/presto-main/src/test/java/io/prestosql/execution/TestSetRoleTask.java
index 7bfb9f25cbaa..f17703475d0f 100644
--- a/presto-main/src/test/java/io/prestosql/execution/TestSetRoleTask.java
+++ b/presto-main/src/test/java/io/prestosql/exec... | USE fails when in an invalid catalog when a role for that catalog is set
```
$ presto --debug --catalog test
presto> set role admin;
SET ROLE
presto> use tpch.tiny;
Query 20200208_184255_00004_a53s9 failed: Catalog does not exist: test
io.prestosql.spi.PrestoException: Catalog does not exist: test
at io.... | null | 2020-02-08 18:56:05+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD... | ['io.prestosql.execution.TestSetRoleTask.testSetRole'] | ['io.prestosql.execution.TestSetRoleTask.testSetRoleInvalidCatalog'] | [] | 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 && sed -i '/<properties>/a \ <air.check.skip-all>true</air.check.skip-all>\n <checkstyle.skip>tru... | Bug Fix | false | true | false | false | 7 | 0 | 7 | false | false | ["presto-main/src/main/java/io/prestosql/metadata/MetadataUtil.java->program->class_declaration:MetadataUtil->method_declaration:String_createCatalogName", "presto-main/src/main/java/io/prestosql/execution/GrantRolesTask.java->program->class_declaration:GrantRolesTask->method_declaration:execute", "presto-main/src/main... |
trinodb/trino | 3,392 | trinodb__trino-3392 | ['3394'] | 840d589dbb3c389abfea8d08bdb0d496431cf97f | diff --git a/presto-docs/src/main/sphinx/functions/list.rst b/presto-docs/src/main/sphinx/functions/list.rst
index 8fa185d0c5be..5295e7f381bd 100644
--- a/presto-docs/src/main/sphinx/functions/list.rst
+++ b/presto-docs/src/main/sphinx/functions/list.rst
@@ -390,6 +390,7 @@ S
- :func:`ST_Y`
- :func:`ST_YMax`
- :func... | diff --git a/presto-main/src/test/java/io/prestosql/operator/scalar/TestStringFunctions.java b/presto-main/src/test/java/io/prestosql/operator/scalar/TestStringFunctions.java
index 850df620e364..38b636ef1763 100644
--- a/presto-main/src/test/java/io/prestosql/operator/scalar/TestStringFunctions.java
+++ b/presto-main/s... | Add the starts_with function to determine whether a string starts with a pattern
In our use case, we mainly use `position()` function to determine whether a string starts with a pattern.
However, `position()` function is a little inefficient to determine it.
As far as I investigate, regardless of the length of 1s... | null | 2020-04-09 11:45:50+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD... | ['io.prestosql.operator.scalar.TestStringFunctions.testCharLength', 'io.prestosql.operator.scalar.TestStringFunctions.testSubstring', 'io.prestosql.operator.scalar.TestStringFunctions.testCharSubstring', 'io.prestosql.operator.scalar.TestStringFunctions.testNormalize', 'io.prestosql.operator.scalar.TestStringFunctions.... | ['io.prestosql.operator.scalar.TestStringFunctions.testStringPosition'] | [] | 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 && sed -i '/<properties>/a \ <air.check.skip-all>true</air.check.skip-all>\n <checkstyle.skip>tru... | Feature | false | false | false | true | 1 | 1 | 2 | false | false | ["presto-main/src/main/java/io/prestosql/operator/scalar/StringFunctions.java->program->class_declaration:StringFunctions->method_declaration:startsWith", "presto-main/src/main/java/io/prestosql/operator/scalar/StringFunctions.java->program->class_declaration:StringFunctions"] |
trinodb/trino | 2,575 | trinodb__trino-2575 | ['2523'] | d5cb276cd8ac6c8eb321c0d32c018d90537e1eff | diff --git a/presto-main/src/main/java/io/prestosql/connector/informationschema/InformationSchemaMetadata.java b/presto-main/src/main/java/io/prestosql/connector/informationschema/InformationSchemaMetadata.java
index 1981e3092f90..88829b4f480a 100644
--- a/presto-main/src/main/java/io/prestosql/connector/informationsch... | diff --git a/presto-main/src/test/java/io/prestosql/metadata/TestInformationSchemaMetadata.java b/presto-main/src/test/java/io/prestosql/metadata/TestInformationSchemaMetadata.java
index 38a4bd7445ee..5f256f3da796 100644
--- a/presto-main/src/test/java/io/prestosql/metadata/TestInformationSchemaMetadata.java
+++ b/pres... | Error when querying information schema with empty table_name predicate
```
select * from "hive"."information_schema"."tables" WHERE table_schema='tpch' AND table_name=''
```
Is causing:
```
java.lang.IllegalArgumentException: tableName is empty
at io.prestosql.spi.connector.SchemaUtil.checkNotEmpty(SchemaUtil.... | I think this kind of query should evaluate to empty relation during the planning. | 2020-01-22 06:35:19+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD... | ['io.prestosql.metadata.TestInformationSchemaMetadata.testInformationSchemaPredicatePushdownOnCatalogWiseTables', 'io.prestosql.metadata.TestInformationSchemaMetadata.testInformationSchemaPredicatePushdownWithoutTablePredicate', 'io.prestosql.metadata.TestInformationSchemaMetadata.testInformationSchemaPredicatePushdown... | ['io.prestosql.metadata.TestInformationSchemaMetadata.testInformationSchemaPredicatePushdownForEmptyNames'] | [] | 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 && sed -i '/<properties>/a \ <air.check.skip-all>true</air.check.skip-all>\n <checkstyle.skip>tru... | Bug Fix | false | false | false | true | 4 | 1 | 5 | false | false | ["presto-main/src/main/java/io/prestosql/connector/informationschema/InformationSchemaMetadata.java->program->class_declaration:InformationSchemaMetadata->method_declaration:calculatePrefixesWithSchemaName", "presto-main/src/main/java/io/prestosql/connector/informationschema/InformationSchemaMetadata.java->program->cla... |
trinodb/trino | 3,599 | trinodb__trino-3599 | ['3456'] | ca8922eaeb0ad9da60c0856827ff747589775ae5 | diff --git a/presto-main/src/main/java/io/prestosql/operator/scalar/StringFunctions.java b/presto-main/src/main/java/io/prestosql/operator/scalar/StringFunctions.java
index 2fb86d047f8a..983b1418839d 100644
--- a/presto-main/src/main/java/io/prestosql/operator/scalar/StringFunctions.java
+++ b/presto-main/src/main/java... | diff --git a/presto-main/src/test/java/io/prestosql/operator/scalar/TestStringFunctions.java b/presto-main/src/test/java/io/prestosql/operator/scalar/TestStringFunctions.java
index da44808cdd97..fcf6407cb9b9 100644
--- a/presto-main/src/test/java/io/prestosql/operator/scalar/TestStringFunctions.java
+++ b/presto-main/s... | Substr to a CHAR(n) column returns padded string
## Problem
When I do substr to a fixed length CHAR(n) column, it returns white-space-padded string. But I think it should return a truncated string without padding.
I've done the same thing in MySQL and it returned a truncated string which I expected for.
## How t... | I need to take another look at the SQL specification, but this seems like the correct and expected behavior.
CHAR(n) is a fixed-length type (as opposed to VARCHAR(n). The result of applying substr to a CHAR(n) is, by necessity, of the same type — the type system is not powerful enough to derive a new type based on the... | 2020-05-02 09:51:55+00:00 | Java | FROM polybench_java_base
WORKDIR /testbed
COPY . .
ENV JAVA_HOME=/usr/lib/jvm/java-11-amazon-corretto.x86_64/
RUN update-alternatives --set java /usr/lib/jvm/java-11-amazon-corretto.x86_64/bin/java
# Clean up git history
RUN git remote | xargs -r -n1 git remote remove
RUN cur=$(git symbolic-ref --quiet --short HEAD... | ['io.prestosql.operator.scalar.TestStringFunctions.testCharLength', 'io.prestosql.operator.scalar.TestStringFunctions.testSubstring', 'io.prestosql.operator.scalar.TestStringFunctions.testNormalize', 'io.prestosql.operator.scalar.TestStringFunctions.testTrimParametrized', 'io.prestosql.operator.scalar.TestStringFunctio... | ['io.prestosql.operator.scalar.TestStringFunctions.testCharSubstring'] | [] | 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 && sed -i '/<properties>/a \ <air.check.skip-all>true</air.check.skip-all>\n <checkstyle.skip>tru... | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["presto-main/src/main/java/io/prestosql/operator/scalar/StringFunctions.java->program->class_declaration:StringFunctions->method_declaration:Slice_charSubstr"] |
mrdoob/three.js | 14,836 | mrdoob__three.js-14836 | ['14834'] | c570b9bd95cf94829715b2cd3a8b128e37768a9c | diff --git a/src/math/Box3.js b/src/math/Box3.js
--- a/src/math/Box3.js
+++ b/src/math/Box3.js
@@ -384,7 +384,7 @@ Object.assign( Box3.prototype, {
}
- return ( min <= plane.constant && max >= plane.constant );
+ return ( min <= - plane.constant && max >= - plane.constant );
},
| diff --git a/test/unit/src/math/Box3.tests.js b/test/unit/src/math/Box3.tests.js
--- a/test/unit/src/math/Box3.tests.js
+++ b/test/unit/src/math/Box3.tests.js
@@ -409,10 +409,22 @@ export default QUnit.module( 'Maths', () => {
var b = new Plane( new Vector3( 0, 1, 0 ), 1 );
var c = new Plane( new Vector3( 0, 1,... | box3.intersectsPlane bug
In the following example, the plane obviously intersects with the box, but the function intersectsPlane returns false.
[example](https://jsfiddle.net/rn6jzdub/4/)
I find that adding two negative sign before both of the plane.constant can fix the bug.
https://github.com/mrdoob/three.js/blob/c... | Good find! Would you like to do a PR with the fix? It would be great if you also adjust the wrong [unit test](https://github.com/mrdoob/three.js/blob/dev/test/unit/src/math/Box3.tests.js#L406).
> Also, I think the definition of the constant of the plane is not distinct, which cause the bug
`three.js` uses [Hessia... | 2018-09-03 10:34:13+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && rm -rf node_modules && if [ -f yarn.lock ]; then yarn install; else npm install --force; fi && sed -i 's/failonlyreporter/tap/g' package.json
RUN . $NVM_DIR/nvm.sh && nvm al... | ['1431 Source > Maths > Vector3 > length/lengthSq', '1266 Source > Maths > Sphere > equals', '631 Source > Geometries > PlaneGeometry > Standard geometry tests', '1040 Source > Maths > Color > setStyleRGBAPercentWithSpaces', '553 Source > Extras > Curves > SplineCurve > getTangent', '1238 Source > Maths > Ray > distanc... | ['988 Source > Maths > Box3 > intersectsPlane'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test --exit | Bug Fix | true | false | false | false | 0 | 0 | 0 | false | false | [] |
mrdoob/three.js | 18,648 | mrdoob__three.js-18648 | ['18590'] | cceffcbec987ba640b98285503e1267336626f22 | diff --git a/docs/api/en/core/Raycaster.html b/docs/api/en/core/Raycaster.html
--- a/docs/api/en/core/Raycaster.html
+++ b/docs/api/en/core/Raycaster.html
@@ -93,11 +93,6 @@ <h3>[property:float far]</h3>
This value shouldn't be negative and should be larger than the near property.
</p>
- <h3>[property:float li... | diff --git a/test/unit/src/core/Raycaster.tests.js b/test/unit/src/core/Raycaster.tests.js
--- a/test/unit/src/core/Raycaster.tests.js
+++ b/test/unit/src/core/Raycaster.tests.js
@@ -7,6 +7,9 @@ import { Raycaster } from '../../../../src/core/Raycaster';
import { Vector3 } from '../../../../src/math/Vector3';
import ... | Inconsistent raycast precision API
##### Description of the problem
Both `Points` and `Line` implement a `raycast()` function/method. They both use a threshold/precision:
https://github.com/mrdoob/three.js/blob/138d25dbd138f9feedbb20ade26f104155a50d8f/src/objects/Points.js#L37-L59
https://github.com/mrdoob/thr... | Related #5366.
Just to be clear, I am not suggesting changing the units of the raycaster precision. I think world units are just fine. :blush:
Agreed, a common approach for `Points` and `Lines` is desirable. I think I vote for enhancing `Raycaster.params`, too. And deprecating `Raycaster.linePrecision`.
So will the con... | 2020-02-17 00:53:10+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && rm -rf node_modules && if [ -f yarn.lock ]; then yarn install; else npm install --force; fi && sed -i 's/failonlyreporter/tap/g' package.json
RUN . $NVM_DIR/nvm.sh && nvm al... | ['1111 Source > Maths > Plane > clone', '1355 Source > Maths > Vector3 > multiply/divide', '1133 Source > Maths > Quaternion > clone', '1280 Source > Maths > Vector2 > multiply/divide', '357 Source > Core > Object3D > applyQuaternion', '969 Source > Maths > Color > setStyleHSLRed', '1272 Source > Maths > Vector2 > mult... | ['394 Source > Core > Raycaster > Line intersection threshold'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test --exit | Refactoring | false | false | false | true | 1 | 1 | 2 | false | false | ["src/core/Raycaster.js->program->function_declaration:Raycaster", "src/core/Raycaster.d.ts->program->class_declaration:Raycaster"] |
mrdoob/three.js | 20,991 | mrdoob__three.js-20991 | ['20921'] | 4ccb9d223786a7f1e58eb563dfc4bfd672b737db | diff --git a/docs/api/en/math/Matrix3.html b/docs/api/en/math/Matrix3.html
--- a/docs/api/en/math/Matrix3.html
+++ b/docs/api/en/math/Matrix3.html
@@ -159,7 +159,7 @@ <h3>[method:this premultiply]( [param:Matrix3 m] )</h3>
<p>Pre-multiplies this matrix by [page:Matrix3 m].</p>
<h3>[method:this setFromMatrix4]( ... | diff --git a/test/unit/src/math/Matrix4.tests.js b/test/unit/src/math/Matrix4.tests.js
--- a/test/unit/src/math/Matrix4.tests.js
+++ b/test/unit/src/math/Matrix4.tests.js
@@ -1,5 +1,6 @@
/* global QUnit */
+import { Matrix3 } from '../../../../src/math/Matrix3';
import { Matrix4 } from '../../../../src/math/Matrix4... | Be able to use rotation matrix of 3x3 : THREE.Quaternion().setFromRotationMatrix(matrix3)
Currently `THREE.Quaternion().setFromRotationMatrix(matrix4)` uses a `THREE.Matrix4`
As a rotation can be stored in a `Matrix3`, it could be great to be able to use also directly a `THREE.Matrix3`
Currently I convert myself th... | > Also, this not clear, why currently the expected matrix4 is transposed.
This is outlined in [Matrix3 docs](https://threejs.org/docs/#api/en/math/Matrix3) in the "A Note on Row-Major and Column-Major Ordering" section (And on the Matrix4 docs page, too).
A Matrix4.setFromMatrix3 equivalent for [Matrix3.setFromMa... | 2021-01-02 18:27:49+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && rm -rf node_modules && if [ -f yarn.lock ]; then yarn install; else npm install --force; fi && npm i --prefix test && sed -i 's/failonlyreporter/tap/g' package.json test/pac... | ['1127 Source > Maths > Quaternion > slerpFlat', '1266 Source > Maths > Vector2 > setLength', '969 Source > Maths > Color > setStyleHSLRed', '235 Source > Core > BufferGeometry > setIndex/getIndex', '553 Source > Extras > Curves > SplineCurve > getTangent', '534 Source > Extras > Curves > QuadraticBezierCurve > getSpac... | ['1078 Source > Maths > Matrix4 > setFromMatrix4'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test --exit | Feature | false | false | false | true | 1 | 1 | 2 | false | false | ["src/math/Matrix4.js->program->class_declaration:Matrix4->method_definition:setFromMatrix3", "src/math/Matrix4.js->program->class_declaration:Matrix4"] |
mrdoob/three.js | 24,461 | mrdoob__three.js-24461 | ['24441'] | 9e5512f067e3a0de8d4069217d20903c1725edf7 | diff --git a/src/math/Color.js b/src/math/Color.js
--- a/src/math/Color.js
+++ b/src/math/Color.js
@@ -222,12 +222,12 @@ class Color {
case 'hsl':
case 'hsla':
- if ( color = /^\s*(\d*\.?\d+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(?:,\s*(\d*\.?\d+)\s*)?$/.exec( components ) ) {
+ if ( color = /^\s*(\d*\.?\d... | diff --git a/test/unit/src/math/Color.tests.js b/test/unit/src/math/Color.tests.js
--- a/test/unit/src/math/Color.tests.js
+++ b/test/unit/src/math/Color.tests.js
@@ -611,6 +611,30 @@ export default QUnit.module( 'Maths', () => {
} );
+ QUnit.test( 'setStyleHSLRedWithDecimals', ( assert ) => {
+
+ var c = new... | Color: Support HSL percentage values with decimals.
**Describe the bug**
Using decimal values for `saturation` or `lightness` in an HSL colors lead to `Unknown color` warning
**To Reproduce**
see live example
***Code***
```js
new THREE.Color('hsl(209, 95.0%, 90.1%)')
```
***Live example***
https:... | I have always thought percentage values for saturation and lightness are integers. If this is not exactly defined in the CSS spec, I vote to not change the current implementation.
If I’m reading the spec correctly, `percent` contains `number` which supports decimal values: https://www.w3.org/TR/css-values-4/#number-val... | 2022-08-07 08:05:56+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && rm -rf node_modules && if [ -f yarn.lock ]; then yarn install; else npm install --force; fi && npm i --prefix test && sed -i 's/failonlyreporter/tap/g' package.json test/pac... | ['1026 Maths > Matrix4 > identity', '483 Extras > Curves > LineCurve3 > computeFrenetFrames', '957 Maths > Frustum > clone', '823 Maths > Box2 > copy', '81 Animation > KeyframeTrack > optimize', '1491 Renderers > WebGL > WebGLExtensions > has', '233 Core > BufferGeometry > setIndex/getIndex', '1159 Maths > Triangle > I... | ['923 Maths > Color > setStyleHSLRedWithDecimals', '924 Maths > Color > setStyleHSLARedWithDecimals'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/math/Color.js->program->class_declaration:Color->method_definition:setStyle"] |
sveltejs/svelte | 464 | sveltejs__svelte-464 | ['451'] | 79c456333c255a8ae23acf02ed714b624cd1cca9 | diff --git a/src/generators/Generator.js b/src/generators/Generator.js
--- a/src/generators/Generator.js
+++ b/src/generators/Generator.js
@@ -39,7 +39,7 @@ export default class Generator {
// Svelte's builtin `import { get, ... } from 'svelte/shared.js'`;
this.importedNames = new Set();
this._aliases = new Ma... | diff --git a/test/validator/index.js b/test/validator/index.js
--- a/test/validator/index.js
+++ b/test/validator/index.js
@@ -69,4 +69,19 @@ describe( 'validate', () => {
});
}, /options\.name must be a valid identifier/ );
});
+
+ it( 'warns if options.name is not capitalised', () => {
+ const warnings = []... | <:Self> breaks for components whose name starts with a lowercase letter
Reproduction at https://github.com/TehShrike/svelte-self-repro
Component looks like:
```
<h1>{{heading}}</h1>
{{#if subheading}}
<:Self heading="{{subheading}}" />
{{/if}}
```
When the first letter of the component base name passed to... | Interesting. When using a component normally that begins with a lowercase letter, the component instance is correctly deconflicted from the class name. Maybe we need to add the component name passed through the `name` option to the compiler to the global list of names to avoid? And probably also that "Component names s... | 2017-04-10 22:44:05+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['parse binding', 'validate import-root', 'ssr component', 'formats cjs generates a CommonJS module', 'ssr each-block-else', 'validate ondestroy-arrow-no-this', 'runtime inline helpers if-block-elseif-text', 'runtime inline helpers helpers', 'sourcemaps basic', 'ssr svg', 'runtime shared helpers names-deconflicted', 'r... | ['validate warns if options.name is not capitalised'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 3 | 0 | 3 | false | false | ["src/validate/js/propValidators/components.js->program->function_declaration:components", "src/validate/index.js->program->function_declaration:validate", "src/generators/Generator.js->program->class_declaration:Generator->method_definition:constructor"] |
sveltejs/svelte | 477 | sveltejs__svelte-477 | ['475'] | ec543cf9b6e234b1f7e77011fa7e62056e8d1dda | diff --git a/src/generators/Generator.js b/src/generators/Generator.js
--- a/src/generators/Generator.js
+++ b/src/generators/Generator.js
@@ -148,7 +148,9 @@ export default class Generator {
});
dependencies.forEach( name => {
- this.expectedProperties.add( name );
+ if ( !globalWhitelist.has( name ) ) {
+... | diff --git a/test/runtime/samples/dev-warning-missing-data-binding/_config.js b/test/runtime/samples/dev-warning-missing-data-binding/_config.js
--- a/test/runtime/samples/dev-warning-missing-data-binding/_config.js
+++ b/test/runtime/samples/dev-warning-missing-data-binding/_config.js
@@ -1,7 +1,7 @@
export default {... | Change missing property errors to warnings?
After upgrading to the latest version of Svelte I was met with a bunch of `Component was created without expected data property 'whatever'` errors that broke my application.
It is not a huge amount of work to set default values for the properties using the `data()` method,... | Yep — I think it makes sense for this to be a warning
If you have a lot of components where you don't initially declare a data property, you'll lose out in terms of performance since the shape of the state object changes after it's initially created.
On a somewhat related note, I just noticed this:
```javascript
if... | 2017-04-12 22:58:12+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['parse binding', 'validate import-root', 'runtime shared helpers event-handler-each-deconflicted', 'ssr component', 'formats cjs generates a CommonJS module', 'ssr each-block-else', 'validate ondestroy-arrow-no-this', 'runtime inline helpers if-block-elseif-text', 'runtime inline helpers helpers', 'sourcemaps basic', ... | ['runtime shared helpers dev-warning-missing-data-binding', 'runtime inline helpers dev-warning-missing-data', 'runtime inline helpers dev-warning-missing-data-binding', 'runtime shared helpers dev-warning-missing-data'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Feature | false | true | false | false | 2 | 0 | 2 | false | false | ["src/generators/dom/index.js->program->function_declaration:dom", "src/generators/Generator.js->program->class_declaration:Generator->method_definition:contextualise"] |
sveltejs/svelte | 510 | sveltejs__svelte-510 | ['509'] | 4012414fa733628bb029be39195a278301da46be | diff --git a/src/generators/dom/visitors/EachBlock.js b/src/generators/dom/visitors/EachBlock.js
--- a/src/generators/dom/visitors/EachBlock.js
+++ b/src/generators/dom/visitors/EachBlock.js
@@ -66,12 +66,16 @@ export default function visitEachBlock ( generator, block, state, node ) {
${each_block_else}.mount( ${... | diff --git a/test/runtime/samples/each-block-dynamic-else-static/_config.js b/test/runtime/samples/each-block-dynamic-else-static/_config.js
--- a/test/runtime/samples/each-block-dynamic-else-static/_config.js
+++ b/test/runtime/samples/each-block-dynamic-else-static/_config.js
@@ -23,5 +23,10 @@ export default {
as... | Static else block references should be nulled out
[REPL](https://svelte.technology/repl?version=1.17.0&gist=2d001621f22badcc9d6f596b4163f559) — the reference to the removed else block needs to be nulled out:
```diff
if ( each_block_value.length ) {
- if ( each_block_else ) each_block_else.destroy( true );
+ if ... | null | 2017-04-19 14:40:11+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime shared helpers select-bind-array', 'parse binding', 'validate import-root', 'runtime shared helpers event-handler-each-deconflicted', 'ssr component', 'formats cjs generates a CommonJS module', 'ssr each-block-else', 'validate ondestroy-arrow-no-this', 'runtime inline helpers if-block-elseif-text', 'runtime i... | ['runtime shared helpers each-block-dynamic-else-static', 'runtime inline helpers each-block-dynamic-else-static'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/generators/dom/visitors/EachBlock.js->program->function_declaration:visitEachBlock"] |
sveltejs/svelte | 630 | sveltejs__svelte-630 | ['620'] | 728594b1c2b24f7b32d0abd10f27ec3cc1773d45 | diff --git a/src/generators/dom/visitors/Element/Attribute.ts b/src/generators/dom/visitors/Element/Attribute.ts
--- a/src/generators/dom/visitors/Element/Attribute.ts
+++ b/src/generators/dom/visitors/Element/Attribute.ts
@@ -22,8 +22,7 @@ export default function visitAttribute(
const isIndirectlyBoundValue =
nam... | diff --git a/test/runtime/samples/attribute-dynamic-type/_config.js b/test/runtime/samples/attribute-dynamic-type/_config.js
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/attribute-dynamic-type/_config.js
@@ -0,0 +1,19 @@
+export default {
+ 'skip-ssr': true,
+
+ data: {
+ inputType: 'text',
+ inputVa... | Can't set type for input tag.
I am tring to generate input tag:
```html
<input type="{{cond.field_type}}" placeholder="constant"
value="{{cond.const}}" on:change="setCondConst(index, this)">
```
but svelte plugin output:
```
'svelte' plugin: 'type must be a static attribute
```
| `type` needs to be static because in some cases fairly different code is generated depending on the input's type. Allowing `type` to vary would result in all that logic being pushed to the generated code. In addition to making the runtime code more complicated, it would also make the compiler code more complicated. The... | 2017-06-11 20:54:46+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['validate missing-component', 'validate transition-duplicate-transition-in', 'parse binding', 'parse error-binding-rvalue', 'validate helper-purity-check-no-this', 'validate ondestroy-arrow-no-this', 'validate window-binding-invalid-innerwidth', 'parse yield', 'parse attribute-unquoted', 'validate transition-duplicate... | ['validate binding-input-static-type'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 4 | 0 | 4 | false | false | ["src/validate/html/validateElement.ts->program->function_declaration:getType", "src/generators/dom/visitors/Element/Attribute.ts->program->function_declaration:visitAttribute", "src/validate/html/validateElement.ts->program->function_declaration:validateElement", "src/validate/html/validateElement.ts->program->functio... |
sveltejs/svelte | 728 | sveltejs__svelte-728 | ['721', '721'] | 5c4905a595ece6885dfed8c44b26be544130b6a6 | diff --git a/src/generators/dom/visitors/Component/Component.ts b/src/generators/dom/visitors/Component/Component.ts
--- a/src/generators/dom/visitors/Component/Component.ts
+++ b/src/generators/dom/visitors/Component/Component.ts
@@ -212,7 +212,7 @@ export default function visitComponent(
${updates.join('\n')}
... | diff --git a/test/runtime/samples/component-binding-blowback-c/Nested.html b/test/runtime/samples/component-binding-blowback-c/Nested.html
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/component-binding-blowback-c/Nested.html
@@ -0,0 +1,18 @@
+<li>
+ {{yield}}
+</li>
+
+<script>
+ const initialValues = ... | Some combination of keyed blocks and binding breaks array looping
Reproduction: https://svelte.technology/repl?version=1.26.0&gist=59c36b2a892a2e3be0d6b1441f5971f5
When the number is increased, on every other change, only the first two (after the reverse) elements are displayed.
Like the note in the repl says, if... | Beyond that, here's the case I was actually trying to work towards, where the index/position in the array is passed in to the child component: https://svelte.technology/repl?version=1.26.0&gist=8e6a7f22a5813d146e2fa04d21285fd6
With the added `this.observe('position')` in the child, It produces actual console errors ... | 2017-07-29 16:22:07+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime each-block-keyed-dynamic (inline helpers)', 'runtime transition-js-events (inline helpers)', 'parse binding', 'parse error-binding-rvalue', 'runtime component-binding-deep (shared helpers)', 'runtime default-data-function (shared helpers)', 'runtime svg-child-component-declared-namespace-shorthand (inline hel... | ['runtime component-binding-blowback-c (shared helpers)', 'runtime component-binding-blowback-c (inline helpers)'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/generators/dom/visitors/Component/Component.ts->program->function_declaration:visitComponent"] |
sveltejs/svelte | 738 | sveltejs__svelte-738 | ['693'] | ae060cfa3b228ff2d1646e60700e77aace1e4780 | diff --git a/src/css/Selector.ts b/src/css/Selector.ts
--- a/src/css/Selector.ts
+++ b/src/css/Selector.ts
@@ -51,7 +51,7 @@ export default class Selector {
});
}
- transform(code: MagicString, attr: string) {
+ transform(code: MagicString, attr: string, id: string) {
function encapsulateBlock(block: Block) {... | diff --git a/test/css/index.js b/test/css/index.js
--- a/test/css/index.js
+++ b/test/css/index.js
@@ -81,19 +81,19 @@ describe("css", () => {
new Component({ target, data: config.data });
const html = target.innerHTML;
- fs.writeFileSync(`test/css/samples/${dir}/_actual.html`, html);
+ // dom
+ ... | using refs in css
When I use a ref, I most often also want to get a handle to it with css, which leads to slightly annoying, duplicative markup.
```html
<style>
.container {
color: red
}
</style>
<div class="container" ref:container></div>
```
The only solutions I can think of to mitigate this are... | What about this?
```html
<style>
ref:container {
color: red
}
</style>
<div ref:container></div>
```
It's valid CSS so shouldn't present any problems with parsing/syntax highlighting etc (csstree [thinks](http://astexplorer.net/#/gist/0199b0325c803086699502567d8070ce/7d27503f0bd8d4020718b86c9a1e255... | 2017-07-30 18:33:28+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime each-block-keyed-dynamic (inline helpers)', 'runtime transition-js-events (inline helpers)', 'parse binding', 'parse error-binding-rvalue', 'runtime component-binding-deep (shared helpers)', 'runtime default-data-function (shared helpers)', 'runtime svg-child-component-declared-namespace-shorthand (inline hel... | ['css refs', 'parse css-ref-selector', 'css refs-qualified'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Feature | false | true | false | false | 7 | 0 | 7 | false | false | ["src/css/Selector.ts->program->class_declaration:Selector->method_definition:transform->function_declaration:encapsulateBlock", "src/css/Selector.ts->program->function_declaration:selectorAppliesTo", "src/parse/read/style.ts->program->function_declaration:readStyle", "src/css/Selector.ts->program->class_declaration:Se... |
sveltejs/svelte | 906 | sveltejs__svelte-906 | ['905'] | 1dad8f1936c5ac974854930b32814db907528f56 | diff --git a/src/css/Selector.ts b/src/css/Selector.ts
--- a/src/css/Selector.ts
+++ b/src/css/Selector.ts
@@ -224,6 +224,7 @@ function attributeMatches(node: Node, name: string, expectedValue: string, opera
if (!attr) return false;
if (attr.value === true) return operator === null;
if (attr.value.length > 1) ret... | diff --git a/test/css/samples/attribute-selector-only-name/_config.js b/test/css/samples/attribute-selector-only-name/_config.js
new file mode 100644
--- /dev/null
+++ b/test/css/samples/attribute-selector-only-name/_config.js
@@ -0,0 +1,3 @@
+export default {
+ cascade: false
+};
\ No newline at end of file
diff --git... | Attribute name only (no value) CSS selector throws if html attribute has a value.
This is fine:
```html
<button foo></button>
<style>
button[foo] {}
</style>
```
But this throws `TypeError: operators[operator] is not a function`:
```html
<button foo="bar"></button>
<style>
button[foo] {}
</style>
... | null | 2017-10-25 04:21:05+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['ssr component-slot-default', 'runtime each-block-keyed-dynamic (inline helpers)', 'runtime transition-js-events (inline helpers)', 'parse binding', 'parse error-binding-rvalue', 'validate a11y-no-autofocus', 'runtime raw-anchor-previous-sibling (inline helpers)', 'runtime component-binding-deep (shared helpers)', 'ru... | ['css attribute-selector-only-name'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/css/Selector.ts->program->function_declaration:attributeMatches"] |
sveltejs/svelte | 907 | sveltejs__svelte-907 | ['904'] | 1dad8f1936c5ac974854930b32814db907528f56 | diff --git a/src/generators/Generator.ts b/src/generators/Generator.ts
--- a/src/generators/Generator.ts
+++ b/src/generators/Generator.ts
@@ -509,7 +509,8 @@ export default class Generator {
});
const addArrowFunctionExpression = (name: string, node: Node) => {
- const { body, params } = node;
+ co... | diff --git a/test/runtime/samples/oncreate-async-arrow-block/_config.js b/test/runtime/samples/oncreate-async-arrow-block/_config.js
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/oncreate-async-arrow-block/_config.js
@@ -0,0 +1 @@
+export default {};
diff --git a/test/runtime/samples/oncreate-async-arro... | async keyword is removed
[REPL](https://svelte.technology/repl?version=1.41.1&gist=7710173c36cc27e97038ee10a4fe62ab). The `async` keyword is removed from the `oncreate` function:
```js
export default {
async oncreate() {
const data = await fetch('foo.json').then(r => r.json());
console.log(data);
}
... | PR coming in a few minutes. | 2017-10-25 15:35:58+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['ssr component-slot-default', 'runtime each-block-keyed-dynamic (inline helpers)', 'runtime transition-js-events (inline helpers)', 'parse binding', 'parse error-binding-rvalue', 'validate a11y-no-autofocus', 'runtime raw-anchor-previous-sibling (inline helpers)', 'runtime component-binding-deep (shared helpers)', 'ru... | ['runtime oncreate-async-arrow-block (shared helpers)', 'runtime oncreate-async (shared helpers)', 'runtime oncreate-async-arrow (inline helpers)', 'runtime oncreate-async-arrow (shared helpers)', 'runtime oncreate-async-arrow-block (inline helpers)', 'runtime oncreate-async (inline helpers)'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/generators/Generator.ts->program->class_declaration:Generator->method_definition:parseJs"] |
sveltejs/svelte | 1,049 | sveltejs__svelte-1049 | ['1032'] | 831cc411a1be0e56339ea76975831f35e785f461 | diff --git a/src/generators/dom/Block.ts b/src/generators/dom/Block.ts
--- a/src/generators/dom/Block.ts
+++ b/src/generators/dom/Block.ts
@@ -14,6 +14,7 @@ export interface BlockOptions {
comment?: string;
key?: string;
contexts?: Map<string, string>;
+ contextTypes?: Map<string, string>;
indexes?: Map<string,... | diff --git a/test/runtime/samples/await-then-catch-event/_config.js b/test/runtime/samples/await-then-catch-event/_config.js
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/await-then-catch-event/_config.js
@@ -0,0 +1,45 @@
+let fulfil;
+let thePromise = new Promise(f => {
+ fulfil = f;
+});
+
+export def... | Methods in await block aren't bound to data
```
VM637:126 Uncaught TypeError: Cannot read property 'undefined' of undefined
at HTMLParagraphElement.click_handler (eval at n.createComponent (Viewer.html:241), <anonymous>:126:95)
click_handler @ VM637:126
```
Example here
https://svelte.technology/repl?vers... | null | 2017-12-24 17:46:43+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime each-block-random-permute (shared helpers , hydration)', 'runtime default-data-function (shared helpers)', 'runtime svg-child-component-declared-namespace-shorthand (inline helpers)', 'ssr each-block-else', 'runtime refs-unset (shared helpers , hydration)', 'validate ondestroy-arrow-no-this', 'ssr binding-inp... | ['runtime await-then-catch-event (inline helpers)', 'runtime await-then-catch-event (shared helpers , hydration)', 'runtime await-then-catch-event (shared helpers)'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | false | false | true | 4 | 1 | 5 | false | false | ["src/generators/nodes/AwaitBlock.ts->program->class_declaration:AwaitBlock->method_definition:init", "src/generators/dom/Block.ts->program->class_declaration:Block", "src/generators/dom/Block.ts->program->class_declaration:Block->method_definition:constructor", "src/generators/nodes/Element.ts->program->class_declarat... |
sveltejs/svelte | 1,095 | sveltejs__svelte-1095 | ['1062'] | 9cfa1747036607debd8502018681fa5697f1d5bf | diff --git a/src/generators/nodes/Attribute.ts b/src/generators/nodes/Attribute.ts
--- a/src/generators/nodes/Attribute.ts
+++ b/src/generators/nodes/Attribute.ts
@@ -43,7 +43,7 @@ export default class Attribute {
render(block: Block) {
const node = this.parent;
- const name = this.name;
+ const name = fixCasi... | diff --git a/test/runtime/samples/attribute-casing/_config.js b/test/runtime/samples/attribute-casing/_config.js
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/attribute-casing/_config.js
@@ -0,0 +1,17 @@
+export default {
+ html: `
+ <div class='SHOUTY'>YELL</div>
+
+ <svg viewBox='0 0 100 100'>
+ <... | case-sensitivity of SVG viewBox likely to cause silent errors
In most 'try online' tools, the SVG `viewBox` attribute is handled the same whether properly camel-cased or not (`viewbox`). Svelte only recognizes `viewBox`. This can make it difficult for developers new to SVG - especially when they are starting with rando... | I take it from what's been said on the closed PR #1077 that what we'd want to do is lowercase all of the attribute names in HTML, and to lowercase SVG ones, apart from those with mixed case [here](https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute) and to instead make those conform to the case in that list? | 2018-01-11 03:34:18+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime each-block-random-permute (shared helpers , hydration)', 'runtime default-data-function (shared helpers)', 'runtime svg-child-component-declared-namespace-shorthand (inline helpers)', 'ssr each-block-else', 'runtime refs-unset (shared helpers , hydration)', 'validate ondestroy-arrow-no-this', 'ssr binding-inp... | ['runtime attribute-casing (inline helpers)', 'runtime attribute-casing (shared helpers , hydration)', 'runtime attribute-casing (shared helpers)'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 3 | 0 | 3 | false | false | ["src/generators/nodes/Attribute.ts->program->function_declaration:fixCasing", "src/generators/nodes/Attribute.ts->program->class_declaration:Attribute->method_definition:render", "src/generators/nodes/Attribute.ts->program->function_declaration:isDynamic"] |
sveltejs/svelte | 1,116 | sveltejs__svelte-1116 | ['1107'] | 8057884cb64f6c2cdf837411bc3962daf69e2bb5 | diff --git a/src/generators/server-side-rendering/index.ts b/src/generators/server-side-rendering/index.ts
--- a/src/generators/server-side-rendering/index.ts
+++ b/src/generators/server-side-rendering/index.ts
@@ -114,7 +114,6 @@ export default function ssr(
}
var result = { head: '', addComponent };
- ${t... | diff --git a/test/runtime/samples/store-nested/Nested.html b/test/runtime/samples/store-nested/Nested.html
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/store-nested/Nested.html
@@ -0,0 +1,13 @@
+<h1>Hello, {{$name}}!</h1>
+
+<script>
+ import { Store } from '../../../../store.js';
+
+ export defau... | can't supply store to nested components server side
Hey, I'm trying to pass a store to a nested component which works well ordinarily, but it fails when server rendering it.
E.g. I have a manage account page like so:
```html
<div class="page">
<h1>Manage Account</h1>
<div>
<h3>Two Factor Auth<... | Sorry I'm not answering your question in full, but just a quick pointer, generally speaking using the underlying internals (anything starting with `_` such as `_init`) is frowned upon. The suggested approach is to use the official API. If you think there's something missing from the API to make the above possible, brin... | 2018-01-17 18:16:34+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime each-block-random-permute (shared helpers , hydration)', 'runtime default-data-function (shared helpers)', 'runtime svg-child-component-declared-namespace-shorthand (inline helpers)', 'ssr each-block-else', 'runtime refs-unset (shared helpers , hydration)', 'validate ondestroy-arrow-no-this', 'ssr binding-inp... | ['ssr store-nested'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/generators/server-side-rendering/index.ts->program->function_declaration:ssr"] |
sveltejs/svelte | 1,137 | sveltejs__svelte-1137 | ['1135'] | 86a07652d8d0c2f2895a7fea4610cf7beb43609b | diff --git a/src/generators/dom/index.ts b/src/generators/dom/index.ts
--- a/src/generators/dom/index.ts
+++ b/src/generators/dom/index.ts
@@ -245,20 +245,20 @@ export default function dom(
${(templateProperties.oncreate || generator.hasComponents || generator.hasComplexBindings || generator.hasIntroTransitions) &... | diff --git a/test/js/samples/collapses-text-around-comments/expected-bundle.js b/test/js/samples/collapses-text-around-comments/expected-bundle.js
--- a/test/js/samples/collapses-text-around-comments/expected-bundle.js
+++ b/test/js/samples/collapses-text-around-comments/expected-bundle.js
@@ -167,7 +167,7 @@ function ... | oncreate order should reflect component order
No REPL, pending https://github.com/sveltejs/svelte.technology/issues/205, but if you have a situation like this...
```html
<!-- App.html -->
<Nested name='foo'/>
<Nested name='bar'/>
<script>
import Nested from './Nested.html';
export default {
compon... | null | 2018-01-26 18:35:46+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime each-block-random-permute (shared helpers , hydration)', 'runtime default-data-function (shared helpers)', 'runtime svg-child-component-declared-namespace-shorthand (inline helpers)', 'ssr each-block-else', 'runtime refs-unset (shared helpers , hydration)', 'validate ondestroy-arrow-no-this', 'ssr binding-inp... | ['js window-binding-scroll', 'js inline-style-optimized-multiple', 'js event-handlers-custom', 'runtime component-binding-conditional (inline helpers)', 'js inline-style-optimized-url', 'js setup-method', 'js legacy-input-type', 'js css-media-query', 'js title', 'js use-elements-as-anchors', 'js collapses-text-around-c... | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 2 | 0 | 2 | false | false | ["src/shared/index.js->program->function_declaration:callAll", "src/generators/dom/index.ts->program->function_declaration:dom"] |
sveltejs/svelte | 1,190 | sveltejs__svelte-1190 | ['1118', '1118'] | 0c3e44ac05c651c12c94e047bf712cb86278d345 | diff --git a/src/css/Stylesheet.ts b/src/css/Stylesheet.ts
--- a/src/css/Stylesheet.ts
+++ b/src/css/Stylesheet.ts
@@ -69,7 +69,7 @@ class Rule {
transform(code: MagicString, id: string, keyframes: Map<string, string>, cascade: boolean) {
if (this.parent && this.parent.node.type === 'Atrule' && this.parent.node.na... | diff --git a/test/css/index.js b/test/css/index.js
--- a/test/css/index.js
+++ b/test/css/index.js
@@ -95,7 +95,7 @@ describe('css', () => {
css: read(`test/css/samples/${dir}/expected.css`)
};
- assert.equal(dom.css.replace(/svelte-\d+/g, 'svelte-xyz'), expected.css);
+ assert.equal(dom.css.replace(/sve... | Use classes instead of attributes for scoping
Classes are always faster than attributes. We should consider using them:
```html
<!-- this... -->
<div class='svelte-xyz123'>...</div>
<div class='svelte-xyz123 foo'>...</div>
<!-- ...instead of this: -->
<div svelte-xyz123>...</div>
<div svelte-xyz123 class='fo... | Attributes are main reason why I don't use scoped styles in Svelte. Classes really should be used for this.
If we did something like #890 and deprecated passing a string (maybe allowing passing an array?) we could in a non-backwards compatibility way have no issue with making this change.
Attributes are main reason why... | 2018-02-24 23:41:49+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime each-block-random-permute (shared helpers , hydration)', 'runtime default-data-function (shared helpers)', 'runtime svg-child-component-declared-namespace-shorthand (inline helpers)', 'ssr each-block-else', 'runtime refs-unset (shared helpers , hydration)', 'validate ondestroy-arrow-no-this', 'ssr binding-inp... | ['css cascade-false', 'css omit-scoping-attribute-attribute-selector-equals-case-insensitive', 'css combinator-child', 'ssr styles-nested', 'css cascade-false-keyframes-from-to', 'css cascade-false-universal-selector', 'css supports-query', 'css omit-scoping-attribute-descendant-global-inner-class', 'css omit-scoping-a... | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Refactoring | false | true | false | false | 7 | 0 | 7 | false | false | ["src/generators/nodes/Attribute.ts->program->class_declaration:Attribute->method_definition:render", "src/generators/server-side-rendering/visitors/Element.ts->program->function_declaration:visitElement", "src/utils/hash.ts->program->function_declaration:hash", "src/generators/nodes/Element.ts->program->class_declarat... |
sveltejs/svelte | 1,227 | sveltejs__svelte-1227 | ['1223'] | dc4fdcf77e6156da9579c03d83668f86b5a54c1a | diff --git a/src/generators/nodes/Element.ts b/src/generators/nodes/Element.ts
--- a/src/generators/nodes/Element.ts
+++ b/src/generators/nodes/Element.ts
@@ -438,8 +438,8 @@ export default class Element extends Node {
}
node.attributes.forEach((attr: Node) => {
- const value = node._needsCssAttribute && a... | diff --git a/test/css/samples/cascade-false-nested/_config.js b/test/css/samples/cascade-false-nested/_config.js
new file mode 100644
--- /dev/null
+++ b/test/css/samples/cascade-false-nested/_config.js
@@ -0,0 +1,7 @@
+export default {
+ cascade: false,
+
+ data: {
+ dynamic: 'x'
+ }
+};
\ No newline at end of file
d... | CSS - Class not applied to child elements
> Linux Mint 18.3 Cinnamon
> Google Chrome Version 65.0.3325.146 (Official Build) (64-bit)
> Firefox Quantum 58.0.2 (64-bit)
> svelte: ^1.57.1
[Svelte REPL gist](https://svelte.technology/repl?version=1.57.1&gist=64afb258047bba01ced7946648335bd5)
```html
<!-- DevTools I... | null | 2018-03-12 15:26:30+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime each-block-random-permute (shared helpers , hydration)', 'runtime default-data-function (shared helpers)', 'runtime svg-child-component-declared-namespace-shorthand (inline helpers)', 'ssr each-block-else', 'runtime refs-unset (shared helpers , hydration)', 'validate ondestroy-arrow-no-this', 'ssr binding-inp... | ['css cascade-false-nested'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/generators/nodes/Element.ts->program->class_declaration:Element->method_definition:build->function_declaration:toHTML"] |
sveltejs/svelte | 1,231 | sveltejs__svelte-1231 | ['1229'] | 0ac77019d0bbde3c626f5da36a8637cffa7788f9 | diff --git a/src/generators/dom/Block.ts b/src/generators/dom/Block.ts
--- a/src/generators/dom/Block.ts
+++ b/src/generators/dom/Block.ts
@@ -44,6 +44,7 @@ export default class Block {
listNames: Map<string, string>;
indexName: string;
listName: string;
+ listAlias: string;
builders: {
init: CodeBuilder;
... | diff --git a/test/js/samples/deconflict-builtins/expected-bundle.js b/test/js/samples/deconflict-builtins/expected-bundle.js
new file mode 100644
--- /dev/null
+++ b/test/js/samples/deconflict-builtins/expected-bundle.js
@@ -0,0 +1,324 @@
+function noop() {}
+
+function assign(target) {
+ var k,
+ source,
+ i = 1,
+ ... | Context variable overrides shared helper when `hydratable: true`
It seems having keys with the same name as shared helpers can cause problems in v1.57 SSR.
eg. This runs fine on the repl, but will error when SSRing because `claim` will try to call `children`:
https://svelte.technology/repl?version=1.57.0&gist=9a2... | null | 2018-03-13 16:34:56+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime each-block-random-permute (shared helpers , hydration)', 'runtime default-data-function (shared helpers)', 'runtime svg-child-component-declared-namespace-shorthand (inline helpers)', 'ssr each-block-else', 'runtime refs-unset (shared helpers , hydration)', 'validate ondestroy-arrow-no-this', 'ssr binding-inp... | ['js deconflict-builtins'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | false | false | true | 3 | 1 | 4 | false | false | ["src/generators/dom/Block.ts->program->class_declaration:Block", "src/generators/nodes/EachBlock.ts->program->class_declaration:EachBlock->method_definition:build", "src/generators/dom/Block.ts->program->class_declaration:Block->method_definition:constructor", "src/generators/nodes/EachBlock.ts->program->class_declara... |
sveltejs/svelte | 1,310 | sveltejs__svelte-1310 | ['1300'] | b4ade9d4b2e32657bbc95b4cdbfcd2322a8bdbef | diff --git a/src/css/Selector.ts b/src/css/Selector.ts
--- a/src/css/Selector.ts
+++ b/src/css/Selector.ts
@@ -223,6 +223,9 @@ const operators = {
};
function attributeMatches(node: Node, name: string, expectedValue: string, operator: string, caseInsensitive: boolean) {
+ const spread = node.attributes.find(attr =>... | diff --git a/test/css/samples/spread/_config.js b/test/css/samples/spread/_config.js
new file mode 100644
--- /dev/null
+++ b/test/css/samples/spread/_config.js
@@ -0,0 +1,3 @@
+export default {
+ cascade: false
+};
\ No newline at end of file
diff --git a/test/css/samples/spread/expected.css b/test/css/samples/spread/... | Spread properties cause CSS to be DCE'd incorrectly
[REPL](https://svelte.technology/repl?version=1.60.0&gist=678853cb781d28931abbc159c22d2d7f)
```html
<div {{...props}} >
Big red Comic Sans
</div>
<style>
.foo {
color: red;
font-size: 2em;
font-family: 'Comic Sans MS';
}
</style>
```
`.foo`... | null | 2018-04-04 10:47:16+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime each-block-random-permute (shared helpers , hydration)', 'runtime default-data-function (shared helpers)', 'runtime svg-child-component-declared-namespace-shorthand (inline helpers)', 'ssr each-block-else', 'runtime refs-unset (shared helpers , hydration)', 'validate ondestroy-arrow-no-this', 'ssr binding-inp... | ['css spread'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/css/Selector.ts->program->function_declaration:attributeMatches"] |
sveltejs/svelte | 1,376 | sveltejs__svelte-1376 | ['1297'] | ed605bfa790f5989bca5241adddcb30367a8c70b | diff --git a/src/compile/nodes/EventHandler.ts b/src/compile/nodes/EventHandler.ts
--- a/src/compile/nodes/EventHandler.ts
+++ b/src/compile/nodes/EventHandler.ts
@@ -80,5 +80,13 @@ export default class EventHandler extends Node {
this.args.forEach(arg => {
arg.overwriteThis(this.parent.var);
});
+
+ if (thi... | diff --git a/test/runtime/samples/event-handler-custom-this/_config.js b/test/runtime/samples/event-handler-custom-this/_config.js
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/event-handler-custom-this/_config.js
@@ -0,0 +1,22 @@
+export default {
+ html: `<input>`,
+
+ test(assert, component, target, ... | `this` has wrong meaning in custom event handler
In this situation ([REPL](https://svelte.technology/repl?version=1.59.0&gist=08ce28e21758796e9651169507eb6af3))...
```html
<p>Select the input, hit 'enter', check the console</p>
<input on:enter='this.blur()'>
<script>
export default {
events: {
en... | I have a couple things to point out.
1. Would fixing this break BC
2. Will fixing this mean we cannot access the component context anymore from inside the handlers
3. The new `actions` have a similar signature, would they benefit from being called in the context of the node
Good news all round:
1. No, because a... | 2018-04-29 02:53:52+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime default-data-function (shared helpers)', 'runtime svg-child-component-declared-namespace-shorthand (inline helpers)', 'ssr each-block-else', 'validate ondestroy-arrow-no-this', 'runtime component-yield-multiple-in-each (shared helpers, hydration)', 'ssr binding-input-checkbox-group-outside-each', 'ssr compone... | ['runtime event-handler-custom-this (shared helpers, hydration)', 'runtime event-handler-custom-this (shared helpers)', 'runtime event-handler-custom-this (inline helpers)'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 4 | 0 | 4 | false | false | ["src/compile/nodes/shared/Expression.ts->program->class_declaration:Expression->method_definition:constructor->method_definition:enter->method_definition:enter", "src/compile/nodes/EventHandler.ts->program->class_declaration:EventHandler->method_definition:render", "src/utils/flattenReference.ts->program->function_dec... |
sveltejs/svelte | 1,923 | sveltejs__svelte-1923 | ['1919'] | ff2a21e63ad243c6e19a7ac84e69021d3a788a9e | diff --git a/src/compile/render-dom/wrappers/Element/index.ts b/src/compile/render-dom/wrappers/Element/index.ts
--- a/src/compile/render-dom/wrappers/Element/index.ts
+++ b/src/compile/render-dom/wrappers/Element/index.ts
@@ -410,7 +410,7 @@ export default class ElementWrapper extends Wrapper {
.filter(group => gr... | diff --git a/test/runtime/samples/binding-input-text-contextual-deconflicted/_config.js b/test/runtime/samples/binding-input-text-contextual-deconflicted/_config.js
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/binding-input-text-contextual-deconflicted/_config.js
@@ -0,0 +1,37 @@
+export default {
+ pr... | Event handlers not deconflicted when one is binding inside each loop and one outside
```html
<input bind:value={foo}>
{#each [] as bar}
<input bind:value={bar}>
{/each}
```
results in code that look like
```javascript
function input_input_handler() {
foo = this.value;
$$invalidate('foo', foo);
}... | null | 2018-12-29 02:06:02+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime if-block-else ', 'runtime immutable-nested ', 'ssr each-block-else', 'runtime whitespace-normal (with hydration)', 'runtime transition-js-each-block-outro (with hydration)', 'runtime attribute-dynamic-quotemarks ', 'ssr class-shortcut-with-class', 'ssr binding-input-checkbox-group-outside-each', 'runtime hash... | ['runtime binding-input-text-contextual-deconflicted ', 'runtime binding-input-text-contextual-deconflicted (with hydration)'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/compile/render-dom/wrappers/Element/index.ts->program->class_declaration:ElementWrapper->method_definition:addBindings"] |
sveltejs/svelte | 1,932 | sveltejs__svelte-1932 | ['1931'] | fc0ef221aff4789c7c579932e70c5f8243e97f32 | diff --git a/src/compile/Component.ts b/src/compile/Component.ts
--- a/src/compile/Component.ts
+++ b/src/compile/Component.ts
@@ -537,7 +537,6 @@ export default class Component {
});
this.extract_imports_and_exports(script.content, this.imports, this.props);
- this.rewrite_props();
this.hoist_instance_decl... | diff --git a/test/runtime/samples/prop-without-semicolon/_config.js b/test/runtime/samples/prop-without-semicolon/_config.js
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/prop-without-semicolon/_config.js
@@ -0,0 +1,3 @@
+export default {
+ html: `<h1>Hello world!</h1>`
+};
\ No newline at end of file
d... | missing semi-colon after `export` generates invalid code
## Description
A component with an `export` statement that doesn't end in a semi-colon will compile successfully, but the generated code is invalid. Rollup throws a confusing error like ` Unexpected token (Note that you need plugins to import files that are no... | null | 2018-12-29 19:00:31+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime if-block-else ', 'runtime immutable-nested ', 'ssr each-block-else', 'runtime whitespace-normal (with hydration)', 'runtime transition-js-each-block-outro (with hydration)', 'runtime attribute-dynamic-quotemarks ', 'ssr class-shortcut-with-class', 'ssr binding-input-checkbox-group-outside-each', 'runtime hash... | ['runtime prop-without-semicolon (with hydration)', 'runtime prop-without-semicolon ', 'ssr prop-without-semicolon'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 4 | 0 | 4 | false | false | ["src/compile/Component.ts->program->class_declaration:Component->method_definition:walk_instance_js", "src/compile/Component.ts->program->class_declaration:Component->method_definition:rewrite_props", "src/compile/render-ssr/index.ts->program->function_declaration:ssr", "src/compile/render-dom/index.ts->program->funct... |
sveltejs/svelte | 2,185 | sveltejs__svelte-2185 | ['2184'] | ea88317f84adb780075b8a689cf664249b09b42c | diff --git a/src/compile/render-dom/index.ts b/src/compile/render-dom/index.ts
--- a/src/compile/render-dom/index.ts
+++ b/src/compile/render-dom/index.ts
@@ -165,9 +165,14 @@ export default function dom(
}
if (node.type === 'AssignmentExpression') {
- const names = node.left.type === 'MemberExpression'... | diff --git a/test/js/samples/dont-invalidate-this/expected.js b/test/js/samples/dont-invalidate-this/expected.js
new file mode 100644
--- /dev/null
+++ b/test/js/samples/dont-invalidate-this/expected.js
@@ -0,0 +1,42 @@
+/* generated by Svelte vX.Y.Z */
+import { SvelteComponent as SvelteComponent_1, addListener, creat... | Assigning to a property of `this` in a function triggers invalidation of “undefined”
[Minimal example:](https://v3.svelte.technology/repl?version=3.0.0-beta.11&gist=1ad69afee5b85aa775178b32e033494a)
```html
<script>
function make_uppercase() {
this.value = this.value.toUpperCase();
}
</script>
<input on:inpu... | null | 2019-03-09 16:23:03+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime prop-without-semicolon ', 'runtime if-block-else ', 'validate prop-slot', 'runtime immutable-nested ', 'ssr each-block-else', 'runtime transition-js-each-block-outro (with hydration)', 'runtime whitespace-normal (with hydration)', 'runtime attribute-dynamic-quotemarks ', 'ssr class-shortcut-with-class', 'ssr ... | ['js dont-invalidate-this'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/compile/render-dom/index.ts->program->function_declaration:dom->method_definition:leave"] |
sveltejs/svelte | 3,151 | sveltejs__svelte-3151 | ['2906'] | f341befacb92d821424889dfefbdccedc881bfe5 | diff --git a/src/compiler/compile/nodes/shared/Expression.ts b/src/compiler/compile/nodes/shared/Expression.ts
--- a/src/compiler/compile/nodes/shared/Expression.ts
+++ b/src/compiler/compile/nodes/shared/Expression.ts
@@ -442,6 +442,10 @@ export default class Expression {
`);
}
+ if (parent && paren... | diff --git a/test/runtime/samples/shorthand-method-in-template/Foo.svelte b/test/runtime/samples/shorthand-method-in-template/Foo.svelte
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/shorthand-method-in-template/Foo.svelte
@@ -0,0 +1,5 @@
+<script>
+ export let bar;
+</script>
+
+{bar.answer()}
\ No new... | Shorthand methods in object literals disappear
This works fine:
```html
<script>
import Greeter from './Greeter.svelte';
const object = {
getName() {
return 'foo';
}
};
</script>
<Greeter thing={object} />
```
This breaks:
```html
<script>
import Greeter from './Greeter.svelte';
</scrip... | "Unexpected token (Note that you need plugins to import files that are not JavaScript)" is an error from Rollup actually, which generally indicates that the Svelte compiler is outputting invalid js, in this case `{ getNamectx.func }`. | 2019-07-02 02:42:00+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime prop-without-semicolon ', 'runtime if-block-else ', 'validate prop-slot', 'runtime immutable-nested ', 'ssr each-block-else', 'runtime transition-js-each-block-outro (with hydration)', 'runtime whitespace-normal (with hydration)', 'runtime attribute-dynamic-quotemarks ', 'ssr class-shortcut-with-class', 'ssr ... | ['runtime shorthand-method-in-template (with hydration)', 'runtime shorthand-method-in-template '] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/compiler/compile/nodes/shared/Expression.ts->program->class_declaration:Expression->method_definition:render->method_definition:leave"] |
sveltejs/svelte | 3,305 | sveltejs__svelte-3305 | ['3226'] | b99ee7d5d177f4fb42b5821d63993248833ee48a | diff --git a/src/compiler/compile/render_dom/wrappers/Element/index.ts b/src/compiler/compile/render_dom/wrappers/Element/index.ts
--- a/src/compiler/compile/render_dom/wrappers/Element/index.ts
+++ b/src/compiler/compile/render_dom/wrappers/Element/index.ts
@@ -26,7 +26,7 @@ const events = [
event_names: ['input'],... | diff --git a/test/js/samples/input-files/expected.js b/test/js/samples/input-files/expected.js
--- a/test/js/samples/input-files/expected.js
+++ b/test/js/samples/input-files/expected.js
@@ -19,7 +19,7 @@ function create_fragment(ctx) {
input = element("input");
attr(input, "type", "file");
input.multiple =... | bind:files doesn't work on safari. But works in chrome
<!--
Thanks for raising an issue! (For *questions*, we recommend instead using https://stackoverflow.com and adding the 'svelte' tag.)
To help us help you, if you've found a bug please consider the following:
* If you can demonstrate the bug using https://sv... | can confirm. receiving events in chrome and firefox.
You can use change event.
https://svelte.dev/repl/f4e2ed04dfda4b2f82ee870fafcd997e?version=3.6.7
```
<script>
let name = 'world';
let files = []
$: {
console.log(files)
}
const changed = (event)=>{
console.log('changed', event)
files = ... | 2019-07-28 17:16:31+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime prop-without-semicolon ', 'runtime if-block-else ', 'validate prop-slot', 'runtime immutable-nested ', 'ssr each-block-else', 'runtime transition-js-each-block-outro (with hydration)', 'runtime whitespace-normal (with hydration)', 'runtime attribute-dynamic-quotemarks ', 'ssr class-shortcut-with-class', 'ssr ... | ['js input-files'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | true | false | false | false | 0 | 0 | 0 | false | false | [] |
sveltejs/svelte | 3,314 | sveltejs__svelte-3314 | ['3312'] | dbf503b9e1ed2f4cdebb134b8f2125f67d3d8b86 | diff --git a/src/compiler/compile/render_ssr/handlers/InlineComponent.ts b/src/compiler/compile/render_ssr/handlers/InlineComponent.ts
--- a/src/compiler/compile/render_ssr/handlers/InlineComponent.ts
+++ b/src/compiler/compile/render_ssr/handlers/InlineComponent.ts
@@ -58,7 +58,7 @@ export default function(node: Inlin... | diff --git a/test/runtime/samples/prop-quoted/Nested.svelte b/test/runtime/samples/prop-quoted/Nested.svelte
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/prop-quoted/Nested.svelte
@@ -0,0 +1 @@
+{$$props['x-y-z']}
\ No newline at end of file
diff --git a/test/runtime/samples/prop-quoted/_config.js b/te... | Illegal property names aren't quoted for SSR
**Describe the bug**
A component can have a property like `<Foo x-y-z={42}/>`, and it will ordinarily be quoted by the compiler:
```js
var foo = new Foo({ props: { "x-y-z": 42 } });
```
In SSR mode, we get this instead:
```js
return `${validate_component(Foo, ... | null | 2019-07-30 18:33:55+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime prop-without-semicolon ', 'runtime if-block-else ', 'validate prop-slot', 'runtime immutable-nested ', 'ssr each-block-else', 'runtime transition-js-each-block-outro (with hydration)', 'runtime whitespace-normal (with hydration)', 'runtime attribute-dynamic-quotemarks ', 'ssr class-shortcut-with-class', 'ssr ... | ['ssr prop-quoted'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | true | false | false | false | 0 | 0 | 0 | false | false | [] |
sveltejs/svelte | 3,394 | sveltejs__svelte-3394 | ['2290'] | bb9a9efec275084983117adee52718b5a35376b6 | diff --git a/src/compiler/compile/render_dom/wrappers/shared/Tag.ts b/src/compiler/compile/render_dom/wrappers/shared/Tag.ts
--- a/src/compiler/compile/render_dom/wrappers/shared/Tag.ts
+++ b/src/compiler/compile/render_dom/wrappers/shared/Tag.ts
@@ -24,7 +24,7 @@ export default class Tag extends Wrapper {
const val... | diff --git a/test/js/samples/debug-foo-bar-baz-things/expected.js b/test/js/samples/debug-foo-bar-baz-things/expected.js
--- a/test/js/samples/debug-foo-bar-baz-things/expected.js
+++ b/test/js/samples/debug-foo-bar-baz-things/expected.js
@@ -25,7 +25,7 @@ function get_each_context(ctx, list, i) {
// (8:0) {#each th... | View is not updated after change Array inside Object
(version: 3.0.0-beta.20)
This is not update the view:
```
obj.arr = obj.arr.sort();
obj.arr[0]++
obj.arr[0] += 1
obj.arr[0] = 2
obj.arr2[0][0]++
obj.arr2[0][0] = 3
```
[See repl](https://svelte.dev/repl/221d07d61d1b5ffedd6c7374b4735e14?version=3.0.0-beta.... | I think this is related to #2243.
If there's an actual assignment, this should work. It looks like the compiler is inserting the correct calls to `$$invalidate`. I'm not sure what's going on here but I do think there is a bug.
Yep, the `$$invalidate` calls are correct. But the template is not updated because of these g... | 2019-08-11 18:15:56+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime prop-without-semicolon ', 'runtime if-block-else ', 'validate prop-slot', 'runtime immutable-nested ', 'ssr each-block-else', 'runtime transition-js-each-block-outro (with hydration)', 'runtime whitespace-normal (with hydration)', 'runtime attribute-dynamic-quotemarks ', 'ssr class-shortcut-with-class', 'ssr ... | ['js debug-foo-bar-baz-things', 'runtime reactive-value-coerce (with hydration)', 'js instrumentation-script-x-equals-x', 'js hoisted-const', 'js instrumentation-template-x-equals-x', 'runtime reactive-value-coerce ', 'js each-block-keyed', 'js each-block-keyed-animated', 'js deconflict-builtins', 'js each-block-change... | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/compiler/compile/render_dom/wrappers/shared/Tag.ts->program->class_declaration:Tag->method_definition:rename_this_method"] |
sveltejs/svelte | 3,403 | sveltejs__svelte-3403 | ['3321', '3321'] | 4f26363fe0af69b85b84d3c2d9e5d4fe5dc249d6 | diff --git a/src/compiler/compile/nodes/Element.ts b/src/compiler/compile/nodes/Element.ts
--- a/src/compiler/compile/nodes/Element.ts
+++ b/src/compiler/compile/nodes/Element.ts
@@ -84,7 +84,7 @@ function get_namespace(parent: Element, element: Element, explicit_namespace: st
: null);
}
- if (element.name.toLo... | diff --git a/test/runtime/samples/svg-slot-namespace/Widget.svelte b/test/runtime/samples/svg-slot-namespace/Widget.svelte
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/svg-slot-namespace/Widget.svelte
@@ -0,0 +1,3 @@
+<svg>
+ <slot />
+</svg>
diff --git a/test/runtime/samples/svg-slot-namespace/_config... | SVG elements in <slot> not rendered as SVG elements
**Describe the bug**
I have a component that is basically an `<svg>` with a `<slot>` the idea being that it's easy to pass some svg tags to the component and have them all rendered the same. This works fine as long as the SVG is passed as an HTML string. `{@html '<re... | I am experiencing similar behavior. I think it may simply be a case of including all the other svg elements in [this check here](https://github.com/sveltejs/svelte/blob/4f26363fe0af69b85b84d3c2d9e5d4fe5dc249d6/src/compiler/compile/nodes/Element.ts#L87). At least, quickly changing it seemed to work for me.
I try to repr... | 2019-08-13 16:51:03+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime prop-without-semicolon ', 'runtime if-block-else ', 'validate prop-slot', 'runtime immutable-nested ', 'ssr each-block-else', 'runtime transition-js-each-block-outro (with hydration)', 'runtime whitespace-normal (with hydration)', 'runtime attribute-dynamic-quotemarks ', 'ssr class-shortcut-with-class', 'ssr ... | ['runtime svg-slot-namespace ', 'runtime svg-slot-namespace (with hydration)'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/compiler/compile/nodes/Element.ts->program->function_declaration:get_namespace"] |
sveltejs/svelte | 3,435 | sveltejs__svelte-3435 | ['1834', '1834'] | 63a7a37bb7c6820bda0a1716f52ec7eeb9b3711e | diff --git a/src/compiler/compile/render_dom/wrappers/Element/StyleAttribute.ts b/src/compiler/compile/render_dom/wrappers/Element/StyleAttribute.ts
--- a/src/compiler/compile/render_dom/wrappers/Element/StyleAttribute.ts
+++ b/src/compiler/compile/render_dom/wrappers/Element/StyleAttribute.ts
@@ -10,6 +10,7 @@ import ... | diff --git a/test/runtime/samples/inline-style-important/_config.js b/test/runtime/samples/inline-style-important/_config.js
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/inline-style-important/_config.js
@@ -0,0 +1,18 @@
+export default {
+ html: `
+ <p class="svelte-y94hdy" style="color: red !importa... | inline !important styles don't get added
I'm using svelte 2.15.0
if my template has inline !important styles like
`<div style="margin:10px !important"></div>`
the compiler will create `setStyle(node, 'margin', '10px !important')`
which in the end executes `node.style.setProperty('margin', '10px !important')... | Inline styles don't need `!important`, since they already override every other css definition for that specific element 🤔
True, apart from if you were trying to use `!important` to override `!important`. Probably a sign something's amiss though of you're doing that.
Inline styles don't need `!important`, since they al... | 2019-08-20 12:25:36+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime prop-without-semicolon ', 'runtime if-block-else ', 'validate prop-slot', 'runtime immutable-nested ', 'ssr each-block-else', 'runtime transition-js-each-block-outro (with hydration)', 'runtime whitespace-normal (with hydration)', 'runtime attribute-dynamic-quotemarks ', 'ssr class-shortcut-with-class', 'ssr ... | ['runtime inline-style-important (with hydration)', 'runtime inline-style-important '] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 4 | 0 | 4 | false | false | ["src/runtime/internal/dom.ts->program->function_declaration:set_style", "src/compiler/compile/render_dom/wrappers/Element/StyleAttribute.ts->program->function_declaration:get_style_value", "src/compiler/compile/render_dom/wrappers/Element/StyleAttribute.ts->program->class_declaration:StyleAttributeWrapper->method_defi... |
sveltejs/svelte | 3,451 | sveltejs__svelte-3451 | ['2731'] | 64c56eddcd76d2f88bb2c42488f4b5d8df48a54d | diff --git a/src/compiler/compile/Component.ts b/src/compiler/compile/Component.ts
--- a/src/compiler/compile/Component.ts
+++ b/src/compiler/compile/Component.ts
@@ -1069,9 +1069,12 @@ export default class Component {
} else if (name[0] === '$' && !owner) {
hoistable = false;
} else if (owner ===... | diff --git a/test/runtime/samples/reactive-value-function/_config.js b/test/runtime/samples/reactive-value-function/_config.js
new file mode 100644
--- /dev/null
+++ b/test/runtime/samples/reactive-value-function/_config.js
@@ -0,0 +1,9 @@
+export default {
+ html: `1-2`,
+
+ async test({ assert, component, target }) {... | Function identifiers declared in function statements don't participate in reactive blocks.
Function declaration statements don't declare `const` identifiers in Javascript.
Svelte should treat these as variables and watch for reassignments so that `$:` reactive labels work as expected.
https://svelte.dev/repl/70ef... | In the generated code, we do have an `$$invalidate` call where the function statement is reassigned, but the reactive code block that uses it doesn't check whether it's been marked as dirty.
Early on, we decided that exported function statements should not correspond to writable props, even though the function would... | 2019-08-22 20:31:32+00:00 | JavaScript | FROM polybench_javascript_base
WORKDIR /testbed
COPY . .
RUN . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && rm -rf node_modules && npm pkg set scripts.lint="echo noop" && npm install
RUN . $NVM_DIR/nvm.sh && nvm alias default 16.20.2 && nvm use default
# Clean up git history
RUN git remote | xargs -r -n1 git remote re... | ['runtime prop-without-semicolon ', 'runtime if-block-else ', 'validate prop-slot', 'runtime immutable-nested ', 'ssr each-block-else', 'runtime transition-js-each-block-outro (with hydration)', 'runtime whitespace-normal (with hydration)', 'runtime attribute-dynamic-quotemarks ', 'ssr class-shortcut-with-class', 'ssr ... | ['runtime reactive-value-function ', 'runtime reactive-value-function (with hydration)'] | null | . /usr/local/nvm/nvm.sh && nvm use 16.20.2 && npm pkg set scripts.lint="echo noop" && npm run test -- --reporter json --exit | Bug Fix | false | true | false | false | 1 | 0 | 1 | true | false | ["src/compiler/compile/Component.ts->program->class_declaration:Component->method_definition:hoist_instance_declarations->method_definition:enter"] |
Subsets and Splits
Unique Repositories in Test
Lists unique repository names from the dataset, providing a basic overview of the repositories present.
Filtered RocketMQ Offset Issues
The query filters specific entries based on multiple criteria, providing a basic overview of relevant issues but without deeper analysis or insights.
Filtered Test Cases for Gson 2.10
The query filters specific entries based on detailed conditions, providing limited insight but useful for finding exact matches in the dataset.