anon-iclr-submission/benchname-bug-localization huggingface dataset:
Repository: clickhouse/clickhouse-java
Issue: Incorrect value returned from getAutoCommit

Since transactions are implicitly enabled for new connections (they are not supported at all), the `getAutoCommit` should return true.

Changed files:
clickhouse-jdbc/src/main/java/ru/yandex/clickhouse/ClickHouseConnectionImpl.java

diff --git a/clickhouse-jdbc/src/main/java/ru/yandex/clickhouse/ClickHouseConnectionImpl.java b/clickhouse-jdbc/src/main/java/ru/yandex/clickhouse/ClickHouseConnectionImpl.java
index 6ec960ca..0b498c6a 100644
--- a/clickhouse-jdbc/src/main/java/ru/yandex/clickhouse/ClickHouseConnectionImpl.java
+++ b/clickhouse-jdbc/src/main/java/ru/yandex/clickhouse/ClickHouseConnectionImpl.java
@@ -214,7 +214,7 @@ public class ClickHouseConnectionImpl implements ClickHouseConnection {
 
     @Override
     public boolean getAutoCommit() throws SQLException {
-        return false;
+        return true;
     }
 
     @Override
Repository: gradle/gradle-profiler
Issue: Using `--profile yourkit` in Windows build failed with java.lang.NullPointerException

### Environment
gradle-profiler version: 0.19.0
YourKit version: 2022.9

**Crash log**
```
java.lang.NullPointerException
        at org.gradle.profiler.yourkit.YourKitJvmArgsCalculator.calculateJvmArgs(YourKitJvmArgsCalculator.java:33)
        at org.gradle.profiler.GradleScenarioInvoker.run(GradleScenarioInvoker.java:87)
        at org.gradle.profiler.GradleScenarioInvoker.run(GradleScenarioInvoker.java:22)
        at org.gradle.profiler.Main.invoke(Main.java:126)
        at org.gradle.profiler.Main.run(Main.java:86)
        at org.gradle.profiler.Main.main(Main.java:25)
```

### Root cause
In YourKit HOME dir
yjpagent.dll exist in `bin/windows-x86-64/`

but in gradle-profiler, the path still was `bin/win64/`
https://github.com/gradle/gradle-profiler/blob/master/src/main/java/org/gradle/profiler/yourkit/YourKit.java#L41

So the `findJniLib()` result will be null

### Temporary solution
copy `bin/windows-x86-64` and rename to `bin/win64`

Changed files:
src/main/java/org/gradle/profiler/yourkit/YourKit.java

diff --git a/src/main/java/org/gradle/profiler/yourkit/YourKit.java b/src/main/java/org/gradle/profiler/yourkit/YourKit.java
index d1f5cf55..e6cb56d6 100644
--- a/src/main/java/org/gradle/profiler/yourkit/YourKit.java
+++ b/src/main/java/org/gradle/profiler/yourkit/YourKit.java
@@ -38,7 +38,7 @@ public static File findControllerJar() {
     public static File findJniLib() {
         File yourKitHome = findYourKitHome();
         if (OperatingSystem.isWindows()) {
-            return tryLocations(yourKitHome, "bin/win64/yjpagent.dll");
+            return tryLocations(yourKitHome, "bin/win64/yjpagent.dll", "bin/windows-x86-64/yjpagent.dll");
         }
         String macLibLocationPrefix = "Contents/Resources/bin/mac/libyjpagent.";
         return tryLocations(yourKitHome, macLibLocationPrefix + "jnilib", macLibLocationPrefix + "dylib", "bin/linux-x86-64/libyjpagent.so");
Repository: google/conscrypt
Issue: SSLEngine.beginHandshake() should throw SSLException after it was closed

During testing conscrypt in the netty testsuite we encountered that Conscrypt does not correct implement SSLEngine.beginHandshake().

See https://github.com/netty/netty/pull/10211/files#diff-08da41869dfc1d842df441440b1c605bR2084

If you call `beginHandshake()` after the engine was closed it must throw an `SSLException`. At the moment it throws an `IllegalStateException`.

See also https://docs.oracle.com/javase/7/docs/api/javax/net/ssl/SSLEngine.html#beginHandshake()


Changed files:
common/src/main/java/org/conscrypt/ConscryptEngine.java

diff --git a/common/src/main/java/org/conscrypt/ConscryptEngine.java b/common/src/main/java/org/conscrypt/ConscryptEngine.java
index f1eedcc7..8df11b5b 100644
--- a/common/src/main/java/org/conscrypt/ConscryptEngine.java
+++ b/common/src/main/java/org/conscrypt/ConscryptEngine.java
@@ -413,7 +413,7 @@ final class ConscryptEngine extends AbstractConscryptEngine implements NativeCry
             case STATE_CLOSED_INBOUND:
             case STATE_CLOSED_OUTBOUND:
             case STATE_CLOSED:
-                throw new IllegalStateException("Engine has already been closed");
+                throw new SSLHandshakeException("Engine has already been closed");
             default:
                 // We've already started the handshake, just return
                 return;
Repository: google/conscrypt
Issue: resource stream leak on android

see log below from conscrypt 2.2.1 (2.3.0 is not yet available for android?)

(tested on android 4.4)

E/StrictMode: A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
    java.lang.Throwable: Explicit termination method 'end' not called
        at dalvik.system.CloseGuard.open(CloseGuard.java:184)
        at java.util.zip.Inflater.<init>(Inflater.java:82)
        at java.util.zip.ZipFile.getInputStream(ZipFile.java:310)
        at java.util.jar.JarFile.getInputStream(JarFile.java:409)
        at libcore.net.url.JarURLConnectionImpl.getInputStream(JarURLConnectionImpl.java:222)
        at java.net.URL.openStream(URL.java:470)
        at java.lang.ClassLoader.getResourceAsStream(ClassLoader.java:432)
        at java.lang.Class.getResourceAsStream(Class.java:1037)
        at org.conscrypt.Conscrypt.<clinit>(Conscrypt.java:80)

Changed files:
common/src/main/java/org/conscrypt/Conscrypt.java

diff --git a/common/src/main/java/org/conscrypt/Conscrypt.java b/common/src/main/java/org/conscrypt/Conscrypt.java
index c562a69b..42440fdd 100644
--- a/common/src/main/java/org/conscrypt/Conscrypt.java
+++ b/common/src/main/java/org/conscrypt/Conscrypt.java
@@ -34,6 +34,7 @@ import javax.net.ssl.SSLSocket;
 import javax.net.ssl.SSLSocketFactory;
 import javax.net.ssl.TrustManager;
 import javax.net.ssl.X509TrustManager;
+import org.conscrypt.io.IoUtils;
 
 /**
  * Core API for creating and configuring all Conscrypt types.
@@ -76,8 +77,9 @@ public final class Conscrypt {
         int major = -1;
         int minor = -1;
         int patch = -1;
+        InputStream stream = null;
         try {
-            InputStream stream = Conscrypt.class.getResourceAsStream("conscrypt.properties");
+            stream = Conscrypt.class.getResourceAsStream("conscrypt.properties");
             if (stream != null) {
                 Properties props = new Properties();
                 props.load(stream);
@@ -86,6 +88,8 @@ public final class Conscrypt {
                 patch = Integer.parseInt(props.getProperty("org.conscrypt.version.patch", "-1"));
             }
         } catch (IOException e) {
+        } finally {
+            IoUtils.closeQuietly(stream);
         }
         if ((major >= 0) && (minor >= 0) && (patch >= 0)) {
             VERSION = new Version(major, minor, patch);