Datasets:
id int64 0 10.2k | text_id stringlengths 17 67 | repo_owner stringclasses 232
values | repo_name stringclasses 295
values | issue_url stringlengths 39 89 | pull_url stringlengths 37 87 | comment_url stringlengths 37 94 | links_count int64 1 2 | link_keyword stringclasses 12
values | issue_title stringlengths 7 197 | issue_body stringlengths 45 21.3k | base_sha stringlengths 40 40 | head_sha stringlengths 40 40 | diff_url stringlengths 120 170 | diff stringlengths 478 132k | changed_files stringlengths 47 2.6k | changed_files_exts stringclasses 22
values | changed_files_count int64 1 22 | java_changed_files_count int64 1 22 | kt_changed_files_count int64 0 0 | py_changed_files_count int64 0 0 | code_changed_files_count int64 1 22 | repo_symbols_count int64 32.6k 242M | repo_tokens_count int64 6.59k 49.2M | repo_lines_count int64 992 6.2M | repo_files_without_tests_count int64 12 28.1k | changed_symbols_count int64 0 36.1k | changed_tokens_count int64 0 6.5k | changed_lines_count int64 0 561 | changed_files_without_tests_count int64 1 17 | issue_symbols_count int64 45 21.3k | issue_words_count int64 2 1.39k | issue_tokens_count int64 13 4.47k | issue_lines_count int64 1 325 | issue_links_count int64 0 19 | issue_code_blocks_count int64 0 31 | pull_create_at timestamp[s] | repo_stars int64 10 44.3k | repo_language stringclasses 8
values | repo_languages stringclasses 296
values | repo_license stringclasses 2
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
162 | square/okhttp/1085/1034 | square | okhttp | https://github.com/square/okhttp/issues/1034 | https://github.com/square/okhttp/pull/1085 | https://github.com/square/okhttp/pull/1085 | 1 | closes | SpdyConnection.pushExecutor has zero keep-alive time | https://github.com/square/okhttp/blob/master/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java#L158
Because of the 0ms keep-alive time, the pushExecutor creates (and destroys) a new thread on every callback. This seems unnecessarily expensive, compared to reusing the thread, particularly in s... | 9aa1268899524f0f750ab35fa363f2ed3cec29cf | 712e56de25c8c212d8c85c6b316faeb8789d731c | https://github.com/square/okhttp/compare/9aa1268899524f0f750ab35fa363f2ed3cec29cf...712e56de25c8c212d8c85c6b316faeb8789d731c | diff --git a/okhttp/src/main/java/com/squareup/okhttp/Connection.java b/okhttp/src/main/java/com/squareup/okhttp/Connection.java
index 11bf1f217..0806c7954 100644
--- a/okhttp/src/main/java/com/squareup/okhttp/Connection.java
+++ b/okhttp/src/main/java/com/squareup/okhttp/Connection.java
@@ -85,7 +85,7 @@ public final ... | ['okhttp/src/main/java/com/squareup/okhttp/Connection.java', 'okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java'] | {'.java': 2} | 2 | 2 | 0 | 0 | 2 | 736,645 | 166,586 | 21,524 | 114 | 297 | 93 | 5 | 2 | 475 | 53 | 105 | 6 | 1 | 0 | 1970-01-01T00:23:33 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
161 | square/okhttp/1106/938 | square | okhttp | https://github.com/square/okhttp/issues/938 | https://github.com/square/okhttp/pull/1106 | https://github.com/square/okhttp/pull/1106 | 1 | closes | SpdyConnection synchronization problem in goAway | We call SpdyStream.receiveRstStream (synchronizes on the stream) while holding the lock on SpdyConnection.this. We should release the SpdyConnection lock before acquiring the SpdyStream lock.
| 125df557fbeb9c77eb17872acac2eb156428d2ed | 8f1bc30cd1e821b8b3745502a0f442f54cdebce8 | https://github.com/square/okhttp/compare/125df557fbeb9c77eb17872acac2eb156428d2ed...8f1bc30cd1e821b8b3745502a0f442f54cdebce8 | diff --git a/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java b/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java
index 0b6fa2d5f..d3ebee2e3 100644
--- a/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java
+++ b/okhttp/src/main/java/com/squareup/... | ['okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java'] | {'.java': 1} | 1 | 1 | 0 | 0 | 1 | 755,423 | 170,699 | 21,981 | 117 | 1,054 | 232 | 20 | 1 | 192 | 24 | 43 | 2 | 0 | 0 | 1970-01-01T00:23:34 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
170 | square/okhttp/518/184 | square | okhttp | https://github.com/square/okhttp/issues/184 | https://github.com/square/okhttp/pull/518 | https://github.com/square/okhttp/pull/518 | 1 | closes | OkHttp changes the global SSL context, breaks other HTTP clients | We're enabling SPDY for the shared SSL context, and other HTTP clients like HttpURLConnection don't anticipate this, causing them to freak out and crash the app.
@skyisle's original report...
Here is backtrace.
DEBUG I backtrace:
DEBUG I #00 pc 00022430 /system/lib/libssl.so (SSL_select_next_proto+25)
DEBU... | de6d505c03419a53e0387802a6cc2196572dd99e | 5d7fdbaf30a411c56666462bd032d86e8eb4ddf7 | https://github.com/square/okhttp/compare/de6d505c03419a53e0387802a6cc2196572dd99e...5d7fdbaf30a411c56666462bd032d86e8eb4ddf7 | diff --git a/okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java b/okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java
index 68e1cfadb..b76b5cd45 100644
--- a/okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java
+++ b/okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java
@@ -15,8 +15,8 @@
*/
... | ['okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java'] | {'.java': 1} | 1 | 1 | 0 | 0 | 1 | 688,744 | 159,125 | 20,229 | 100 | 1,840 | 403 | 37 | 1 | 1,769 | 183 | 605 | 27 | 0 | 0 | 1970-01-01T00:23:11 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
169 | square/okhttp/628/627 | square | okhttp | https://github.com/square/okhttp/issues/627 | https://github.com/square/okhttp/pull/628 | https://github.com/square/okhttp/pull/628 | 1 | fix | SpdyConnection clears the old settings without merging with the new server settings causing the window size always set as -1 | When debugging an issue with client requests hanging on SpdyStream.waitUntilWritable(), we found that the window size is set as -1 in SpdyStream.java at line:
this.bytesLeftInWriteWindow = connection.peerSettings.getInitialWindowSize();
After tracing down the issue, the problem turned out to be line 662 of https://g... | 945619c3f451bba092f772adbd62cd0a6fd7ec3b | 12ba9103d825b776d6cf4f74704332f4118ec1be | https://github.com/square/okhttp/compare/945619c3f451bba092f772adbd62cd0a6fd7ec3b...12ba9103d825b776d6cf4f74704332f4118ec1be | diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/SettingsTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/SettingsTest.java
index 44459b8c9..294684f1b 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/SettingsTest.java
+++ b/okhttp-tests/src/test/... | ['okhttp/src/main/java/com/squareup/okhttp/internal/spdy/Settings.java', 'okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/SettingsTest.java', 'okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java', 'okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/SpdyConnectionTest.java',... | {'.java': 5} | 5 | 5 | 0 | 0 | 5 | 735,611 | 170,055 | 21,803 | 106 | 2,646 | 547 | 49 | 3 | 687 | 84 | 152 | 6 | 1 | 0 | 1970-01-01T00:23:14 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
168 | square/okhttp/631/627 | square | okhttp | https://github.com/square/okhttp/issues/627 | https://github.com/square/okhttp/pull/631 | https://github.com/square/okhttp/pull/631 | 1 | fix | SpdyConnection clears the old settings without merging with the new server settings causing the window size always set as -1 | When debugging an issue with client requests hanging on SpdyStream.waitUntilWritable(), we found that the window size is set as -1 in SpdyStream.java at line:
this.bytesLeftInWriteWindow = connection.peerSettings.getInitialWindowSize();
After tracing down the issue, the problem turned out to be line 662 of https://g... | 0d774185b616c7d471822f22f57f947412ef593d | 83156632582465e93f462f311c0e6b340393c896 | https://github.com/square/okhttp/compare/0d774185b616c7d471822f22f57f947412ef593d...83156632582465e93f462f311c0e6b340393c896 | diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/SettingsTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/SettingsTest.java
index 44459b8c9..294684f1b 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/SettingsTest.java
+++ b/okhttp-tests/src/test/... | ['okhttp/src/main/java/com/squareup/okhttp/internal/spdy/Settings.java', 'okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/SettingsTest.java', 'okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java', 'okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/SpdyConnectionTest.java',... | {'.java': 5} | 5 | 5 | 0 | 0 | 5 | 707,538 | 163,749 | 20,895 | 102 | 2,646 | 547 | 49 | 3 | 687 | 84 | 152 | 6 | 1 | 0 | 1970-01-01T00:23:14 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
167 | square/okhttp/737/215 | square | okhttp | https://github.com/square/okhttp/issues/215 | https://github.com/square/okhttp/pull/737 | https://github.com/square/okhttp/pull/737 | 1 | closes | Creating HttpResponseCache causes StrictMode violation | When cache is created I'm having this violation:
06-18 11:19:42.607: E/StrictMode(4300): A resource was acquired at attached stack trace but never released. See java.io.Closeable for information on avoiding resource leaks.
06-18 11:19:42.607: E/StrictMode(4300): java.lang.Throwable: Explicit termination method 'close'... | 6486179b9d9c888a818c85384eed88fa0a8768a6 | c51382a430a2adb8a29cb59976af76b2cb48e386 | https://github.com/square/okhttp/compare/6486179b9d9c888a818c85384eed88fa0a8768a6...c51382a430a2adb8a29cb59976af76b2cb48e386 | diff --git a/okhttp/src/main/java/com/squareup/okhttp/HttpResponseCache.java b/okhttp/src/main/java/com/squareup/okhttp/HttpResponseCache.java
index e299d5721..2b701c335 100644
--- a/okhttp/src/main/java/com/squareup/okhttp/HttpResponseCache.java
+++ b/okhttp/src/main/java/com/squareup/okhttp/HttpResponseCache.java
@@ ... | ['okhttp/src/main/java/com/squareup/okhttp/HttpResponseCache.java'] | {'.java': 1} | 1 | 1 | 0 | 0 | 1 | 663,416 | 150,136 | 19,555 | 92 | 240 | 46 | 8 | 1 | 772 | 60 | 237 | 9 | 0 | 0 | 1970-01-01T00:23:17 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
166 | square/okhttp/769/745 | square | okhttp | https://github.com/square/okhttp/issues/745 | https://github.com/square/okhttp/pull/769 | https://github.com/square/okhttp/pull/769 | 1 | fixes | Can't execute DELETE without body. | I'm trying to create Request just as:
```
Request.Builder builder = new Request.Builder().url("URL");
builder.method("DELETE", null);
```
(because there are no `.delete()` method)
When I'm trying to execute such request it crashes, with error message:
`java.lang.IllegalStateException: Cannot stream a request body wi... | 04aee71eb5007c87d857c4c2690689e89722f092 | 520d9fc2bc6b251a998b58794070f8bebee9d682 | https://github.com/square/okhttp/compare/04aee71eb5007c87d857c4c2690689e89722f092...520d9fc2bc6b251a998b58794070f8bebee9d682 | diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
index d5851488f..c44f386b8 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
+++ b/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
@@ -65,6 +65,14... | ['okhttp-tests/src/test/java/com/squareup/okhttp/internal/huc/JavaApiConverterTest.java', 'okhttp/src/main/java/com/squareup/okhttp/internal/http/HttpEngine.java', 'okhttp/src/main/java/com/squareup/okhttp/Call.java', 'okhttp/src/main/java/com/squareup/okhttp/Request.java', 'okhttp/src/main/java/com/squareup/okhttp/int... | {'.java': 8} | 8 | 8 | 0 | 0 | 8 | 665,782 | 150,731 | 19,663 | 94 | 1,266 | 272 | 31 | 5 | 761 | 109 | 172 | 18 | 0 | 1 | 1970-01-01T00:23:18 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
165 | square/okhttp/939/933 | square | okhttp | https://github.com/square/okhttp/issues/933 | https://github.com/square/okhttp/pull/939 | https://github.com/square/okhttp/pull/939 | 1 | closes | Certain SPDY requests always timeout | This simple request to fetch a .mp3 always timeouts. Some requests to the same domain work though. Other clients (Browsers, curl, etc) have no problem.
``` java
String url = "https://s.auspiel.de/sounds/effects/mischen-1.mp3";
OkHttpClient httpClient = new OkHttpClient();
httpClient.setReadTimeout(10, TimeUnit.SECONDS... | 7213e9b6b9e1508c349ccd6b13b894bd5d8bf96d | 6171f554512ce314d5b7008fc660a1697887581c | https://github.com/square/okhttp/compare/7213e9b6b9e1508c349ccd6b13b894bd5d8bf96d...6171f554512ce314d5b7008fc660a1697887581c | diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/Http2ConnectionTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/Http2ConnectionTest.java
index 5bcb09e38..e700dd6c6 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/Http2ConnectionTest.java
+++ b/o... | ['okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/Http2ConnectionTest.java', 'okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/Spdy3ConnectionTest.java', 'okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyStream.java', 'okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnect... | {'.java': 4} | 4 | 4 | 0 | 0 | 4 | 723,492 | 163,303 | 21,251 | 113 | 883 | 192 | 11 | 2 | 2,973 | 166 | 700 | 55 | 4 | 2 | 1970-01-01T00:23:23 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
164 | square/okhttp/948/947 | square | okhttp | https://github.com/square/okhttp/issues/947 | https://github.com/square/okhttp/pull/948 | https://github.com/square/okhttp/pull/948 | 1 | closes | Caching broken by transparent gzip header mismatch | Following the technique described in the Cache javadoc (http://square.github.io/okhttp/javadoc/com/squareup/okhttp/Cache.html) we added the Cache-Control max-stale header to ensure we get a cached response when offline. We're doing this through Retrofit's RequestInterceptor, like so:
```
requestFacade.addHeader("Cach... | eb40f47753ce1a7d45bb3fbcf7eb28ac6e7e2479 | 94f9a1719cc420be061b16e2da03258552c5060b | https://github.com/square/okhttp/compare/eb40f47753ce1a7d45bb3fbcf7eb28ac6e7e2479...94f9a1719cc420be061b16e2da03258552c5060b | diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/CacheTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/CacheTest.java
index 93163450b..b78a68e92 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/CacheTest.java
+++ b/okhttp-tests/src/test/java/com/squareup/okhttp/CacheTest.java
@@ -920,6 +... | ['okhttp/src/main/java/com/squareup/okhttp/internal/http/OkHeaders.java', 'okhttp-tests/src/test/java/com/squareup/okhttp/CacheTest.java'] | {'.java': 2} | 2 | 2 | 0 | 0 | 2 | 724,213 | 163,458 | 21,264 | 113 | 328 | 66 | 6 | 1 | 1,178 | 150 | 280 | 16 | 2 | 2 | 1970-01-01T00:23:23 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
155 | square/okhttp/1065/1036 | square | okhttp | https://github.com/square/okhttp/issues/1036 | https://github.com/square/okhttp/pull/1065 | https://github.com/square/okhttp/pull/1065#issuecomment-57098303 | 1 | fixes | okhttp 2.0.0 OkHttpClient.cancel(tag) doesn't work | The Recipes [Canceling a Call](https://github.com/square/okhttp/wiki/Recipes#canceling-a-call) worked, but after I used `OkHttpClient.cancel(tag)` instead, it didn't work.
My code:
``` java
import java.io.IOException;
import java.util.concurrent.*;
import com.squareup.okhttp.*;
public class Test {
private final ... | 4cdf0a90b3643d198014a56bf619dd9587820fca | 38d57953ee7a22a6f87d97ed15e69f17abb2c16f | https://github.com/square/okhttp/compare/4cdf0a90b3643d198014a56bf619dd9587820fca...38d57953ee7a22a6f87d97ed15e69f17abb2c16f | diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
index 40519c61d..cefb681be 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
+++ b/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
@@ -1172,6 +117... | ['okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java', 'okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java', 'okhttp/src/main/java/com/squareup/okhttp/Dispatcher.java', 'okhttp/src/main/java/com/squareup/okhttp/Call.java'] | {'.java': 4} | 4 | 4 | 0 | 0 | 4 | 725,400 | 163,726 | 21,246 | 114 | 1,504 | 317 | 41 | 3 | 2,017 | 201 | 485 | 57 | 3 | 2 | 1970-01-01T00:23:31 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
156 | square/okhttp/1259/1043 | square | okhttp | https://github.com/square/okhttp/issues/1043 | https://github.com/square/okhttp/pull/1259 | https://github.com/square/okhttp/pull/1259 | 1 | closes | Don't recover if a non-GET request fails | Currently it can silently retry requests, but now it's forbidden:
http://tools.ietf.org/html/rfc7230
A user agent MUST NOT automatically retry a request with a non-
idempotent method unless it has some means to know that the request
semantics are actually idempotent, regardless of the method, or some
means t... | 24750b59c4a06e77635cec6ce6999c3db86ff7e4 | 786e3b3048b84721c73a046b02a9edcbb6927686 | https://github.com/square/okhttp/compare/24750b59c4a06e77635cec6ce6999c3db86ff7e4...786e3b3048b84721c73a046b02a9edcbb6927686 | diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
index 25eb85f95..2255dd8f6 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
+++ b/okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java
@@ -704,6 +704,... | ['okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java', 'okhttp-tests/src/test/java/com/squareup/okhttp/CallTest.java', 'okhttp/src/main/java/com/squareup/okhttp/internal/http/HttpEngine.java'] | {'.java': 3} | 3 | 3 | 0 | 0 | 3 | 876,114 | 202,976 | 24,677 | 132 | 1,578 | 336 | 33 | 2 | 430 | 58 | 96 | 11 | 2 | 0 | 1970-01-01T00:23:39 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
157 | square/okhttp/1254/1158 | square | okhttp | https://github.com/square/okhttp/issues/1158 | https://github.com/square/okhttp/pull/1254 | https://github.com/square/okhttp/pull/1254 | 1 | closes | Should okhttp be caching HTTP 307 (or 302) responses according to the w3 document? | I am using retrofit and okhttp in my Android app to download documents, images and music files. The files are hosted on Amazon through a CDN so the URLs change often. My backend server will try to use redirects to decrease the need to have to constantly update my content on my mobile app every time the CDN url changes.... | 64f2af812bef505b6cbc1693aa8b504d9dbbb42e | 1d6f0e75d599e2cb02f0fe182f7dbf966cd5cb2b | https://github.com/square/okhttp/compare/64f2af812bef505b6cbc1693aa8b504d9dbbb42e...1d6f0e75d599e2cb02f0fe182f7dbf966cd5cb2b | diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/CacheTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/CacheTest.java
index 9fba4601c..0fd174648 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/CacheTest.java
+++ b/okhttp-tests/src/test/java/com/squareup/okhttp/CacheTest.java
@@ -121,9 +... | ['okhttp/src/main/java/com/squareup/okhttp/internal/http/CacheStrategy.java', 'okhttp-urlconnection/src/test/java/com/squareup/okhttp/UrlConnectionCacheTest.java', 'okhttp-tests/src/test/java/com/squareup/okhttp/CacheTest.java'] | {'.java': 3} | 3 | 3 | 0 | 0 | 3 | 875,001 | 202,735 | 24,643 | 132 | 1,919 | 416 | 44 | 1 | 3,541 | 539 | 802 | 69 | 2 | 0 | 1970-01-01T00:23:39 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
160 | square/okhttp/1122/1119 | square | okhttp | https://github.com/square/okhttp/issues/1119 | https://github.com/square/okhttp/pull/1122 | https://github.com/square/okhttp/pull/1122 | 1 | fixes | ConcurrentModificationException | I wouldn't deem this high priority but it did crash a device.
Android 4.4.2
OkHttp 2.0.0
``` bash
java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(HashMap.java:806)
at java.util.HashMap$ValueIterator.next(HashMap.java:838)
at com.squareup.okhttp.internal.spdy.... | 912d09e7da8830b831ee8f3461e0c66161fc82c8 | 3820b5c3355a0d5e48691c43481c6201a033a62c | https://github.com/square/okhttp/compare/912d09e7da8830b831ee8f3461e0c66161fc82c8...3820b5c3355a0d5e48691c43481c6201a033a62c | diff --git a/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java b/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java
index d3ebee2e3..458fb6db2 100644
--- a/okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java
+++ b/okhttp/src/main/java/com/squareup/... | ['okhttp/src/main/java/com/squareup/okhttp/internal/spdy/SpdyConnection.java'] | {'.java': 1} | 1 | 1 | 0 | 0 | 1 | 756,101 | 170,838 | 21,993 | 117 | 106 | 25 | 2 | 1 | 821 | 38 | 212 | 19 | 1 | 1 | 1970-01-01T00:23:35 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
159 | square/okhttp/1235/1191 | square | okhttp | https://github.com/square/okhttp/issues/1191 | https://github.com/square/okhttp/pull/1235 | https://github.com/square/okhttp/pull/1235 | 1 | closes | Crash with Facebook SDK | When I set `URL.setURLStreamHandlerFactory(new OkUrlFactory(client));` accordingly to https://github.com/square/picasso/issues/749, my app crashes because of the Facebook SDK :
```
Caused by: java.lang.NullPointerException: Attempt to invoke virtual method 'void com.squareup.okhttp.internal.spdy.SpdyStream.close(co... | e536bca6d7b2eb64054ee9845ca43dab19b020a7 | 0e199f608909793892b7883614c0d20a94c27916 | https://github.com/square/okhttp/compare/e536bca6d7b2eb64054ee9845ca43dab19b020a7...0e199f608909793892b7883614c0d20a94c27916 | diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/HttpOverSpdyTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/HttpOverSpdyTest.java
index 2c275e028..670361c60 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/HttpOverSpdyTest.java
+++ b/okhttp-tes... | ['okhttp/src/main/java/com/squareup/okhttp/internal/http/SpdyTransport.java', 'okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/HttpOverSpdyTest.java'] | {'.java': 2} | 2 | 2 | 0 | 0 | 2 | 869,272 | 201,747 | 24,498 | 132 | 93 | 22 | 2 | 1 | 2,325 | 92 | 485 | 30 | 1 | 1 | 1970-01-01T00:23:39 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
158 | square/okhttp/1249/1239 | square | okhttp | https://github.com/square/okhttp/issues/1239 | https://github.com/square/okhttp/pull/1249 | https://github.com/square/okhttp/pull/1249 | 1 | closes | ConnectionPool is broken with MAX_CONNECTIONS_TO_CLEANUP | After merging @nfuller's recent leak fix, I noticed we have a new problem. Previously we were pretty eager to trim the idle connections down to the promised limits. An application that quickly created 100 connections would just as quickly see 95 of those connections evicted!
With the new fix, it looks like we won't ev... | f1a27df8f9a895f6ef7c1e718e09c65726161a26 | 98c74ace40b089f2769afb3e56c59a64eef327cb | https://github.com/square/okhttp/compare/f1a27df8f9a895f6ef7c1e718e09c65726161a26...98c74ace40b089f2769afb3e56c59a64eef327cb | diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/ConnectionPoolTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/ConnectionPoolTest.java
index 075153ddf..0bdc9f58a 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/ConnectionPoolTest.java
+++ b/okhttp-tests/src/test/java/com/squareup/okhttp... | ['okhttp-tests/src/test/java/com/squareup/okhttp/ConnectionPoolTest.java', 'okhttp/src/main/java/com/squareup/okhttp/Connection.java', 'okhttp/src/main/java/com/squareup/okhttp/ConnectionPool.java'] | {'.java': 3} | 3 | 3 | 0 | 0 | 3 | 869,670 | 201,598 | 24,507 | 132 | 6,200 | 1,313 | 141 | 2 | 662 | 106 | 142 | 6 | 0 | 0 | 1970-01-01T00:23:39 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
163 | square/okhttp/980/979 | square | okhttp | https://github.com/square/okhttp/issues/979 | https://github.com/square/okhttp/pull/980 | https://github.com/square/okhttp/pull/980 | 1 | fixes | SpdyTransport sets the wrong protocol | SpdyTransport sets the response protocol according to the status line.
https://github.com/square/okhttp/blob/master/okhttp/src/main/java/com/squareup/okhttp/internal/http/StatusLine.java#L41
It seems to me that it should be clarified with the transport protocol, here, right?
https://github.com/square/okhttp/blob/mas... | 0766369844b26f64fc2e8d551ee8b5b00aa3fd87 | 9a35caf73356aa9a0142f5c5a0c50fde60d6ae02 | https://github.com/square/okhttp/compare/0766369844b26f64fc2e8d551ee8b5b00aa3fd87...9a35caf73356aa9a0142f5c5a0c50fde60d6ae02 | diff --git a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/HeadersTest.java b/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/HeadersTest.java
index 9947da037..144ec78f4 100644
--- a/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/HeadersTest.java
+++ b/okhttp-tests/src/test/jav... | ['okhttp/src/main/java/com/squareup/okhttp/internal/http/SpdyTransport.java', 'okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/HeadersTest.java'] | {'.java': 2} | 2 | 2 | 0 | 0 | 2 | 724,212 | 163,340 | 21,260 | 113 | 68 | 12 | 2 | 1 | 403 | 27 | 100 | 8 | 2 | 0 | 1970-01-01T00:23:24 | 44,252 | Kotlin | {'Kotlin': 3059143, 'Java': 744989, 'Shell': 2995} | Apache License 2.0 |
685 | dbeaver/dbeaver/12953/12943 | dbeaver | dbeaver | https://github.com/dbeaver/dbeaver/issues/12943 | https://github.com/dbeaver/dbeaver/pull/12953 | https://github.com/dbeaver/dbeaver/pull/12953 | 1 | fix | Database Navigator "Show Connected Only", "Show All" toggle no longer works | #### System information:
- Operating system (distribution) and version Windows 10 Enterprise version 1909
- DBeaver version Community 21.1.1.202106210824
- Java version
- Additional extensions
#### Connection specification:
- Database name and version postgres 13.*
- Driver name
- Do you use tunnels or p... | 7176cb483b61f6c3db2668dbb13df49876a4c1f0 | cb54f75baa3c1c7c1b1ba18d41e97ca82313fe53 | https://github.com/dbeaver/dbeaver/compare/7176cb483b61f6c3db2668dbb13df49876a4c1f0...cb54f75baa3c1c7c1b1ba18d41e97ca82313fe53 | diff --git a/plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/DatabaseNavigatorTree.java b/plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/DatabaseNavigatorTree.java
index 749c8113a7..a6c2863f9a 100644
--- a/plugins/org.jkiss.dbeaver.ui.navigator/src/... | ['plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/TextMatcherExt.java', 'plugins/org.jkiss.dbeaver.ui.navigator/src/org/jkiss/dbeaver/ui/navigator/database/DatabaseNavigatorTree.java'] | {'.java': 2} | 2 | 2 | 0 | 0 | 2 | 21,355,988 | 4,380,492 | 582,549 | 4,173 | 240 | 42 | 8 | 2 | 770 | 107 | 173 | 17 | 0 | 0 | 1970-01-01T00:27:04 | 33,177 | Java | {'Java': 26145871, 'JavaScript': 139972, 'C++': 63113, 'ANTLR': 29768, 'CSS': 20674, 'HTML': 12246, 'XSLT': 8047, 'Batchfile': 2891, 'Shell': 202} | Apache License 2.0 |
686 | dbeaver/dbeaver/12939/12070 | dbeaver | dbeaver | https://github.com/dbeaver/dbeaver/issues/12070 | https://github.com/dbeaver/dbeaver/pull/12939 | https://github.com/dbeaver/dbeaver/pull/12939 | 1 | fix | [mysql] incorrect handling of stored procedure and function with the same name | - Operating system (distribution) and version: Debian 10
- DBeaver version: 21.0.2
- Database name and version: mysql 8.0.23
- Driver name: MySQL
If there are one stored procedure and one function with the same name, you could loose function while editing the procedure.
1) create "test" PROCEDURE
```
DELIM... | 9825b1f323d73718b7e685dea501fdbd7387410d | 9c46c6f8bd6d6b5a5db4aea769a63663699c912f | https://github.com/dbeaver/dbeaver/compare/9825b1f323d73718b7e685dea501fdbd7387410d...9c46c6f8bd6d6b5a5db4aea769a63663699c912f | diff --git a/plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/model/MySQLCatalog.java b/plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/model/MySQLCatalog.java
index 3b2caa3e88..c6ad2fa070 100644
--- a/plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/model/MySQL... | ['plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/model/MySQLCatalog.java', 'plugins/org.jkiss.dbeaver.ext.mysql/src/org/jkiss/dbeaver/ext/mysql/model/MySQLProcedure.java'] | {'.java': 2} | 2 | 2 | 0 | 0 | 2 | 21,350,073 | 4,379,299 | 582,409 | 4,172 | 1,068 | 234 | 21 | 2 | 1,144 | 163 | 306 | 59 | 0 | 3 | 1970-01-01T00:27:04 | 33,177 | Java | {'Java': 26145871, 'JavaScript': 139972, 'C++': 63113, 'ANTLR': 29768, 'CSS': 20674, 'HTML': 12246, 'XSLT': 8047, 'Batchfile': 2891, 'Shell': 202} | Apache License 2.0 |
688 | dbeaver/dbeaver/12766/12765 | dbeaver | dbeaver | https://github.com/dbeaver/dbeaver/issues/12765 | https://github.com/dbeaver/dbeaver/pull/12766 | https://github.com/dbeaver/dbeaver/pull/12766 | 1 | fix | SqlServer FK between two schemas doesn't show on UI | <!--
Thank you for reporting an issue.
*IMPORTANT* - *before* creating a new issue please look around:
- DBeaver documentation: https://github.com/dbeaver/dbeaver/wiki
and
- open issues in Github tracker: https://github.com/dbeaver/dbeaver/issues
If you cannot find a similar problem, then create a new i... | 63aee4269a199deb69359f4913055615619a7666 | 0e820df3b91ff92f3c37db90335d30703afde0fd | https://github.com/dbeaver/dbeaver/compare/63aee4269a199deb69359f4913055615619a7666...0e820df3b91ff92f3c37db90335d30703afde0fd | diff --git a/plugins/org.jkiss.dbeaver.ext.mssql/src/org/jkiss/dbeaver/ext/mssql/model/SQLServerSchema.java b/plugins/org.jkiss.dbeaver.ext.mssql/src/org/jkiss/dbeaver/ext/mssql/model/SQLServerSchema.java
index dac1924bb9..e41e19e4ef 100644
--- a/plugins/org.jkiss.dbeaver.ext.mssql/src/org/jkiss/dbeaver/ext/mssql/model... | ['plugins/org.jkiss.dbeaver.ext.mssql/src/org/jkiss/dbeaver/ext/mssql/model/SQLServerSchema.java'] | {'.java': 1} | 1 | 1 | 0 | 0 | 1 | 21,252,088 | 4,358,670 | 579,957 | 4,152 | 1,158 | 240 | 25 | 1 | 2,113 | 299 | 550 | 39 | 3 | 0 | 1970-01-01T00:27:03 | 33,177 | Java | {'Java': 26145871, 'JavaScript': 139972, 'C++': 63113, 'ANTLR': 29768, 'CSS': 20674, 'HTML': 12246, 'XSLT': 8047, 'Batchfile': 2891, 'Shell': 202} | Apache License 2.0 |
689 | dbeaver/dbeaver/12577/12576 | dbeaver | dbeaver | https://github.com/dbeaver/dbeaver/issues/12576 | https://github.com/dbeaver/dbeaver/pull/12577 | https://github.com/dbeaver/dbeaver/pull/12577 | 1 | fix | Inconsistent behavior of some checkboxes on the PostgreSQL connection configuration page | On the aforementioned page, we have 3 checkboxes: a) Show all databases; b) Show template databases; c) Show databases not available for connection. If the first one is not set, the latter two are not applicable. However, if we check one of them, e.g. the second one, and then we uncheck the first one, checkbox b is sti... | a4afc250c8dc2566f43c7352e4aba539db7b8e23 | 4ae933837845b1c564859b676464fe7c83b18f9a | https://github.com/dbeaver/dbeaver/compare/a4afc250c8dc2566f43c7352e4aba539db7b8e23...4ae933837845b1c564859b676464fe7c83b18f9a | diff --git a/plugins/org.jkiss.dbeaver.ext.postgresql.ui/src/org/jkiss/dbeaver/ext/postgresql/ui/PostgreConnectionPageAdvanced.java b/plugins/org.jkiss.dbeaver.ext.postgresql.ui/src/org/jkiss/dbeaver/ext/postgresql/ui/PostgreConnectionPageAdvanced.java
index 3d86556b1b..4529685533 100644
--- a/plugins/org.jkiss.dbeaver... | ['plugins/org.jkiss.dbeaver.ext.postgresql.ui/src/org/jkiss/dbeaver/ext/postgresql/ui/PostgreConnectionPageAdvanced.java', 'plugins/org.jkiss.dbeaver.ext.postgresql.ui/src/org/jkiss/dbeaver/ext/postgresql/ui/PrefPagePostgreSQL.java'] | {'.java': 2} | 2 | 2 | 0 | 0 | 2 | 21,216,761 | 4,351,606 | 579,212 | 4,150 | 1,256 | 182 | 30 | 2 | 474 | 85 | 108 | 1 | 0 | 0 | 1970-01-01T00:27:01 | 33,177 | Java | {'Java': 26145871, 'JavaScript': 139972, 'C++': 63113, 'ANTLR': 29768, 'CSS': 20674, 'HTML': 12246, 'XSLT': 8047, 'Batchfile': 2891, 'Shell': 202} | Apache License 2.0 |
690 | dbeaver/dbeaver/12571/12569 | dbeaver | dbeaver | https://github.com/dbeaver/dbeaver/issues/12569 | https://github.com/dbeaver/dbeaver/pull/12571 | https://github.com/dbeaver/dbeaver/pull/12571 | 1 | fix | Probable regression, Postgresql sequence DDL uses Cache 0 and this is not a valid value | #### System information:
- Ubuntu 18.04
- DBeaver CE 21.0.5
- Additional extensions: Non AFAIK
#### Connection specification:
- Database name and version: PostgreSQL 9.6
- Driver name: PostgreSQL JDBC Driver
- Do you use tunnels or proxies (SSH, SOCKS, etc)? No
#### Describe the problem you're observing:
... | 67d9e76022d6a32ac090e12f2e25d82ec1726fe3 | c170fae1c16ce0ef9287d3419de48541385eb1f1 | https://github.com/dbeaver/dbeaver/compare/67d9e76022d6a32ac090e12f2e25d82ec1726fe3...c170fae1c16ce0ef9287d3419de48541385eb1f1 | diff --git a/plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreSequence.java b/plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreSequence.java
index dd58352562..57c44bda18 100644
--- a/plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkis... | ['plugins/org.jkiss.dbeaver.ext.postgresql/src/org/jkiss/dbeaver/ext/postgresql/model/PostgreSequence.java'] | {'.java': 1} | 1 | 1 | 0 | 0 | 1 | 21,193,424 | 4,346,619 | 578,586 | 4,146 | 1,449 | 331 | 30 | 1 | 782 | 120 | 186 | 20 | 1 | 0 | 1970-01-01T00:27:01 | 33,177 | Java | {'Java': 26145871, 'JavaScript': 139972, 'C++': 63113, 'ANTLR': 29768, 'CSS': 20674, 'HTML': 12246, 'XSLT': 8047, 'Batchfile': 2891, 'Shell': 202} | Apache License 2.0 |
684 | dbeaver/dbeaver/13321/11973 | dbeaver | dbeaver | https://github.com/dbeaver/dbeaver/issues/11973 | https://github.com/dbeaver/dbeaver/pull/13321 | https://github.com/dbeaver/dbeaver/pull/13321 | 1 | fix | Filters don't work for enum types | PostgreSQL 12, DBeaver EE 21.0.0, macOS 11.2.3.
Suppose we have a enum type and a table:
```sql
CREATE TYPE "mood" AS ENUM (
'sad',
'ok',
'happy'
);
CREATE TABLE mood_data (
id int4 NOT NULL GENERATED ALWAYS AS IDENTITY,
"time" timestamp NULL,
"mood" "mood" NULL,
CONSTRAIN... | 86adfaeec2af0cf11b43114cfb25f316830489fd | 01ddb8e9c02c212e4179295aa37381a9944d6621 | https://github.com/dbeaver/dbeaver/compare/86adfaeec2af0cf11b43114cfb25f316830489fd...01ddb8e9c02c212e4179295aa37381a9944d6621 | diff --git a/plugins/org.jkiss.dbeaver.ui.editors.data/src/org/jkiss/dbeaver/ui/controls/resultset/valuefilter/GenericFilterValueEdit.java b/plugins/org.jkiss.dbeaver.ui.editors.data/src/org/jkiss/dbeaver/ui/controls/resultset/valuefilter/GenericFilterValueEdit.java
index 9fede8aa6a..3558b73b3c 100644
--- a/plugins/org... | ['plugins/org.jkiss.dbeaver.ui.editors.data/src/org/jkiss/dbeaver/ui/controls/resultset/valuefilter/GenericFilterValueEdit.java'] | {'.java': 1} | 1 | 1 | 0 | 0 | 1 | 21,570,516 | 4,422,651 | 587,715 | 4,199 | 663 | 123 | 15 | 1 | 582 | 91 | 157 | 20 | 0 | 1 | 1970-01-01T00:27:07 | 33,177 | Java | {'Java': 26145871, 'JavaScript': 139972, 'C++': 63113, 'ANTLR': 29768, 'CSS': 20674, 'HTML': 12246, 'XSLT': 8047, 'Batchfile': 2891, 'Shell': 202} | Apache License 2.0 |
683 | dbeaver/dbeaver/14078/10955 | dbeaver | dbeaver | https://github.com/dbeaver/dbeaver/issues/10955 | https://github.com/dbeaver/dbeaver/pull/14078 | https://github.com/dbeaver/dbeaver/pull/14078 | 1 | fix | Auto-complete offers objects from the current schema only | #### System information:
- Operating system (distribution) and version Win10
- DBeaver version 7.3.3 EA
#### Steps to reproduce, if exist:
1. Open SQL Editor for MySQL sakila
2. Type `select * from a`
**Actual result**: the list for auto-complete appears with objects from the current schema only
**Expected*... | 19a37d839f97bb022c19ddc6fff588b230f92786 | e5219c457984fa0ef078968c11b7c835a3526142 | https://github.com/dbeaver/dbeaver/compare/19a37d839f97bb022c19ddc6fff588b230f92786...e5219c457984fa0ef078968c11b7c835a3526142 | diff --git a/plugins/org.jkiss.dbeaver.ext.mssql/src/org/jkiss/dbeaver/ext/mssql/model/SQLServerStructureAssistant.java b/plugins/org.jkiss.dbeaver.ext.mssql/src/org/jkiss/dbeaver/ext/mssql/model/SQLServerStructureAssistant.java
index 68edb2d22e..9be288abeb 100644
--- a/plugins/org.jkiss.dbeaver.ext.mssql/src/org/jkiss... | ['plugins/org.jkiss.dbeaver.ext.mssql/src/org/jkiss/dbeaver/ext/mssql/model/SQLServerStructureAssistant.java'] | {'.java': 1} | 1 | 1 | 0 | 0 | 1 | 22,041,779 | 4,518,554 | 599,248 | 4,274 | 172 | 31 | 2 | 1 | 508 | 77 | 114 | 12 | 0 | 0 | 1970-01-01T00:27:13 | 33,177 | Java | {'Java': 26145871, 'JavaScript': 139972, 'C++': 63113, 'ANTLR': 29768, 'CSS': 20674, 'HTML': 12246, 'XSLT': 8047, 'Batchfile': 2891, 'Shell': 202} | Apache License 2.0 |
ποΈ Long Code Arena (Bug localization)
This is the benchmark for the Bug localization task as part of the ποΈ Long Code Arena benchmark.
The bug localization problem can be formulated as follows: given an issue with a bug description and a repository snapshot in a state where the bug is reproducible, identify the files within the repository that need to be modified to address the reported bug.
The dataset provides all the required components for evaluation of bug localization approaches in real project-level large-scale data collected from GitHub, including:
- Bug issue description;
- Repositories, from which the content can be extracted at the state of the commit SHA where the bug is reproducible;
- List of files that should be changed in order to solve the bug;
- Other additional data and metrics that can be useful in developing new approaches.
All the repositories are published under permissive licenses (MIT, Apache-2.0, BSD-3-Clause, and BSD-2-Clause). The datapoints can be removed upon request.
The collected dataset was carefully filtered, enhanced with useful metrics and, what's more, manually labeled, which assures the data quality and provides a golden subset of good examples for evaluation.
Moreover, the dataset was split into several categories, namely:
| Category | Description | Number of data points |
|---|---|---|
py |
Only .py files in changes |
4,339 |
java |
Only .java files in changes |
2,522 |
kt |
Only .kt files in changes |
618 |
...and splits, namely:
| Split | Description |
|---|---|
dev |
All collected datapoints |
test |
Manually verified datapoints |
train |
Rest of the datapoint from dev without test |
The results of evaluation of various bug localization approaches can be found in the Long Code Arena π leaderboard.
The following sections describe the utilities around the dataset, as well as dataset content.
How-to
Load the data via
load_dataset:from datasets import load_dataset # Select a configuration from ["py", "java", "kt"] configuration = "py" # Select a split from ["dev", "train", "test"] split = "dev" # Load data dataset = load_dataset("JetBrains-Research/lca-bug-localization", configuration, split=split)Load repos via
hf_hub_download:from huggingface_hub import hf_hub_download from datasets import load_dataset import zipfile import os # Load json with list of repos' .tar.gz file paths paths_json = load_dataset("JetBrains-Research/lca-bug-localization", data_files="repos.json") # Load each repo in .tar.gz format, unzip, delete archive repos = paths_json[configuration][0] repos_path = "path/to/repos" for i, repo_zip_path in enumerate(repos): repo_name = os.path.basename(repo_zip_path).split('.')[0] repo_path = os.path.join(repos_path, repo_name) # Load repo zip local_repo_zip_path = hf_hub_download( "JetBrains-Research/lca-bug-localization", filename=repo_zip_path, repo_type="dataset", local_dir="path/to/zips" ) # Unzip repo with zipfile.ZipFile(local_repo_zip_path, 'r') as zip_ref: zip_ref.extractall(repo_path) os.remove(local_repo_zip_path)Data streaming via HFDataSource. Besides data loading,
HFDataSourcereturns a datapoint for running the baseline along with the content of the repository at the state where the bug is reproducible (akabase_shacommit of the pull request that resloves the bug issue).
All source code for working with the Git history of repositories (commits, diffs, etc.) is available ingit_utils.py, as is an example of baselines, utilizing this dataset.
Bug localization data
Each datapoint contains the main fields, as well as additional metrics calculated on them.
The main fields are:
| Field | Description |
|---|---|
repo_owner |
Owner of the repository with the bug issue. |
repo_name |
Name of the repository with the bug issue. |
issue_url |
GitHub link to the issue https://github.com/{repo_owner}/{repo_name}/issues/{issue_id}. |
pull_url |
GitHub link to the pull request https://github.com/{repo_owner}/{repo_name}/pull/{pull_id}. |
comment_url |
GitHub link to the comment with a reference from pull request to issue https://github.com/{repo_owner}/{repo_name}/pull/{pull_id}#issuecomment-{comment_id}. |
issue_title |
Issue title. |
issue_body |
Issue body. |
base_sha |
Base SHA of the pull request. |
head_sha |
Head SHA of the pull request. |
diff_url |
Link to the diff between the base and the head SHA https://github.com/{repo_owner}/{repo_name}/compare/{base_sha}...{head_sha}. |
diff |
Content of the diff. |
pull_create_at |
Date of pull request creation in the yyyy-mm-ddThh:mm:ssZ format. |
repo_stars |
Number of stars of the repo. |
changed_files* |
List of the changed files parsed from diff. |
repo_language |
Main programming language used in the repository. |
repo_languages |
All programming languages used in the repository. |
repo_license |
License assigned to the repository. |
* Excluding test files that do not contain bug causes, rather changed in order to add tests for proving that the bug is gone.
The metrics-related fields are:
| Field | Description |
|---|---|
changed_files_exts |
Dictionary from the extension of changed files to their count. |
changed_files_count |
Number of changed files. |
java_changed_files_count |
Number of changed .java files. |
kt_changed_files_count |
Number of changed .kt files. |
py_changed_files_count |
Number of changed .py files. |
code_changed_files_count |
Number of changed .java, .kt, or .py files. |
repo_symbols_count* |
Number of symbols in the repository. |
repo_tokens_count* |
Number of tokens** in the files of the repository. |
repo_lines_count* |
Number of lines in the files of the repository. |
repo_files_without_tests_count* |
Number of files in the repository. |
changed_symbols_count* |
Number of symbols in the changed lines in diff. |
changed_tokens_count* |
Number of tokens** in the changed lines in diff. |
changed_lines_count* |
Number of changed lines in diff (including added and deleted). |
changed_files_without_tests_count* |
Number of files in diff. |
issue_symbols_count* |
Number of symbols in the issue body. |
issue_words_count* |
Number of words in the issue body (separated by space symbols). |
issue_tokens_count* |
Number of tokens** in the issue body. |
issue_lines_count* |
Number of text lines in the issue body (separated by \\n). |
issue_links_count |
Number of links ([...](...)) present in the issue body. |
issue_code_blocks_count |
Number of code blocks (```...```) present in the issue body. |
* Excluding test files that do not contain bug causes, rather changed in order to add tests for proving that the bug is gone.
** Using GPT-4 tokenizer via ticktoken.
Repositories data
The compressed repositories are provided in the repos section, separately from datapoints, to provide access to the various stages of repositories, saving their initial structure, as well as to reuse their content for different datapoints connected to the same repository.
To extract the required information from repositories, each zip file should be unarchived. Afterwords, we recommend to use GitPython or PyDriller Python libraries to navigate through the repository history and extract its content on the required commit or calculate diff.
Most of the required utility methods are provided in our repository in the git_utils.py file, so you may reuse them to access the required repository data.
Citing
@article{bogomolov2024long,
title={Long Code Arena: a Set of Benchmarks for Long-Context Code Models},
author={Bogomolov, Egor and Eliseeva, Aleksandra and Galimzyanov, Timur and Glukhov, Evgeniy and Shapkin, Anton and Tigina, Maria and Golubev, Yaroslav and Kovrigin, Alexander and van Deursen, Arie and Izadi, Maliheh and Bryksin, Timofey},
journal={arXiv preprint arXiv:2406.11612},
year={2024}
}
You can find the paper here.
- Downloads last month
- 2,103