base_commit stringlengths 40 40 | created_at stringdate 2016-03-23 09:47:19 2025-09-30 03:25:30 | image_name stringlengths 44 83 | instance_id stringlengths 14 53 | interface stringlengths 33 7.63k | language stringclasses 9
values | license stringclasses 6
values | patch stringlengths 333 20.5k | pr_description stringlengths 0 4.59k | problem_statement stringlengths 126 19.9k | repo stringlengths 7 48 | test_patch stringlengths 259 15.7k | FAIL_TO_PASS listlengths 1 367 | PASS_TO_PASS listlengths 0 10.5k | install_config dict | meta dict |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
226a7e0e58b231d8ae47080a4459172b9a29b708 | 2024-01-22 17:53:48 | docker.io/swerebenchv2/adamchainz-flake8-comprehensions:553-226a7e0 | adamchainz__flake8-comprehensions-553 | No new interfaces are introduced. | python | MIT | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 25b7c11..da54167 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,10 @@
Changelog
=========
+* Add rule C420 to check for dict comprehensions with constant values, encouraging replacement with ``dict.fromkeys()``.
+
+ Thanks to Tom Kuson in `PR #553 <https:... | Add rule for dict comprehensions with constant values
Adds `C420` that checks for dictionary comprehensions that use constant values.
Changed the fixture for `test_C418_pass` as it was failing (`dict({x: 1 for x in range(1)}, a=1)` triggers the new rule).
Closes #552. | Feature Request: Detect dictionary comprehensions with constant values
### Description
Hi! Thanks for this helpful tool.
I'm working with code that has a lot of
```python
{elt: None for elt in foo}
```
which is slower and (IMO) harder to read than
```python
dict.fromkeys(foo)
```
Would there be int... | adamchainz/flake8-comprehensions | diff --git a/tests/test_flake8_comprehensions.py b/tests/test_flake8_comprehensions.py
index 454cc31..3843b6e 100644
--- a/tests/test_flake8_comprehensions.py
+++ b/tests/test_flake8_comprehensions.py
@@ -886,7 +886,7 @@ def test_C417_fail(code, failures, flake8_path):
"code",
[
"dict({}, a=1)",
- ... | [
"tests/test_flake8_comprehensions.py::test_C420_fail[{elt:"
] | [
"tests/test_flake8_comprehensions.py::test_C401_fail[foo",
"tests/test_flake8_comprehensions.py::test_C408_pass[[]]",
"tests/test_flake8_comprehensions.py::test_C402_pass[foo",
"tests/test_flake8_comprehensions.py::test_C414_fail[set(tuple(a))-failures6]",
"tests/test_flake8_comprehensions.py::test_C400_pas... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/astral-sh/ruff/issues/9592"
],
... |
31d363823d1096b29772c9703d742be83373d6ce | 2025-05-22 21:45:34 | docker.io/swerebenchv2/aio-libs-aiohttp:10951-31d3638 | aio-libs__aiohttp-10951 | Function: AsyncResolver.__init__(self, *, loop: Optional[asyncio.AbstractEventLoop] = None, **kwargs)
Location: aiohttp/resolver.py
Inputs:
- **loop** – an optional asyncio event‑loop that the resolver should operate on. If omitted, the currently running loop (via asyncio.get_running_loop()) is used.
- **kwargs** – an... | python | custom-check-github | diff --git a/CHANGES/10951.bugfix.rst b/CHANGES/10951.bugfix.rst
new file mode 100644
index 000000000..d539fc1a5
--- /dev/null
+++ b/CHANGES/10951.bugfix.rst
@@ -0,0 +1,1 @@
+Fixed :py:class:`~aiohttp.resolver.AsyncResolver` not using the ``loop`` argument in versions 3.x where it should still be supported -- by :user:... | [3.12] Fix AsyncResolver not using the loop argument
This PR is to 3.12 since we have dropped the loop argument on master
The loop argument was being ignored in AsyncResolver in 3.12/3.11 where it should still be supported
fixes #10787 | AsyncResolver does not use the passed `loop` argument on 3.11 and 3.12 branches due to bad cherry-pick merge
### Describe the bug
There seems to be a backport issue in the `3.11` and `3.12` branches. The `loop` argument is not passed to `aiodns.DNSResolver` despite this being the case on the `master` branch, leading t... | aio-libs/aiohttp | diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py
index 5e1a4d2dd..ff9a33bda 100644
--- a/tests/test_client_functional.py
+++ b/tests/test_client_functional.py
@@ -4311,3 +4311,128 @@ async def test_post_connection_cleanup_with_file(
response.raise_for_status()
asser... | [
"tests/test_resolver.py::test_async_resolver_uses_provided_loop"
] | [
"tests/test_client_functional.py::test_params_and_query_string[pyloop]",
"tests/test_client_functional.py::test_skip_default_auto_headers_user_agent[pyloop]",
"tests/test_client_functional.py::test_empty_params_and_query_string[pyloop-params3]",
"tests/test_client_functional.py::test_keepalive_after_empty_bod... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/aio-libs/aiohttp/blob/master/aiohttp/... |
7f691674ba44ff87308e6bf8e52c3c55c6ae43ab | 2025-05-28 14:55:25 | docker.io/swerebenchv2/aio-libs-aiohttp:11054-7f69167 | aio-libs__aiohttp-11054 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGES/11052.bugfix.rst b/CHANGES/11052.bugfix.rst
new file mode 100644
index 000000000..73e4ea216
--- /dev/null
+++ b/CHANGES/11052.bugfix.rst
@@ -0,0 +1,2 @@
+Fixed memory leak in :py:meth:`~aiohttp.CookieJar.filter_cookies` that caused unbounded memory growth
+when making requests to different URL path... | Fix CookieJar memory leak in filter_cookies()
## Summary
This PR fixes a memory leak in `CookieJar.filter_cookies()` that was causing unbounded memory growth when making requests to different URL paths. The issue was introduced in version 3.10.0 and could cause memory usage to grow from ~100MB to ~5GB over weeks of ... | Possible memory leak in the CookieJar
### Describe the bug
Memory usage increases indefinitely when making requests with aiohttp>=3.10.0 ClientSession to a server that often sets cookies.
### To Reproduce
```python
import asyncio
async def do_test():
from aiohttp import ClientSession
from pprint import ppr... | aio-libs/aiohttp | diff --git a/tests/test_cookiejar.py b/tests/test_cookiejar.py
index 1f78c5abb..364b8a701 100644
--- a/tests/test_cookiejar.py
+++ b/tests/test_cookiejar.py
@@ -1151,3 +1151,57 @@ async def test_treat_as_secure_origin() -> None:
assert len(jar) == 1
filtered_cookies = jar.filter_cookies(request_url=endpoint)
... | [
"tests/test_cookiejar.py::test_filter_cookies_does_not_leak_memory"
] | [
"tests/test_cookiejar.py::TestCookieJarSafe::test_path_filter_different_folder",
"tests/test_cookiejar.py::TestCookieJarSafe::test_invalid_values",
"tests/test_cookiejar.py::test_quotes_correctly_based_on_input[pyloop-no",
"tests/test_cookiejar.py::test_date_parsing",
"tests/test_cookiejar.py::test_save_loa... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/aio-libs/aiohttp/issues/11052"
],... |
31d0834e34d7c122918a1061ed9222963e1135be | 2023-11-26 14:38:24 | docker.io/swerebenchv2/aio-libs-aiohttp:7907-31d0834 | aio-libs__aiohttp-7907 | Method: ClientResponse.connection(self)
Location: aiohttp/client_reqrep.py
Inputs: None (implicit `self` of type ClientResponse)
Outputs: Returns the underlying Connection object (or None if no connection is attached). The property is used to inspect whether the HTTP response is still linked to a live transport afte... | python | custom-check-github | diff --git a/CHANGES/7879.bugfix b/CHANGES/7879.bugfix
new file mode 100644
index 000000000..08baf85be
--- /dev/null
+++ b/CHANGES/7879.bugfix
@@ -0,0 +1,1 @@
+Fixed a regression where connection may get closed during upgrade. -- by :user:`Dreamsorcerer`
diff --git a/aiohttp/client_reqrep.py b/aiohttp/client_reqrep.py
... | Fix regression with connection upgrade (#7879)
Fixes #7867.
(cherry picked from commit 48b15583305e692ce997ec6f5a6a2f88f23ace71) | Response connection is None on 3.9.0
### Describe the bug
Sorry for the not easily reproducible bug, but since 3.9.0 connection upgrading doesn't work
### To Reproduce
I experienced the bug using aiodocker exec, so forgive me for indirect reproduce of the bug:
* get a running docker container in aiodocker
... | aio-libs/aiohttp | diff --git a/tests/test_client_functional.py b/tests/test_client_functional.py
index 6698ac6ef..8a9a4e184 100644
--- a/tests/test_client_functional.py
+++ b/tests/test_client_functional.py
@@ -173,6 +173,25 @@ async def test_keepalive_response_released(aiohttp_client: Any) -> None:
assert 1 == len(client._session.... | [
"tests/test_client_functional.py::test_upgrade_connection_not_released_after_read[pyloop]"
] | [
"tests/test_client_functional.py::test_keepalive_two_requests_success[pyloop]",
"tests/test_client_functional.py::test_keepalive_after_head_requests_success[pyloop]",
"tests/test_client_functional.py::test_keepalive_after_empty_body_status[pyloop-101]",
"tests/test_client_functional.py::test_keepalive_after_e... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/aio-libs/aiodocker/issues/832"
... |
ed98a5eb2db664ec010ce2cbe75d1b59270503de | 2024-01-12 15:55:06 | docker.io/swerebenchv2/aio-libs-aiohttp:8026-ed98a5e | aio-libs__aiohttp-8026 | Method: ClientSession.__init__(self, *, timeout: ClientTimeout | None = None, **kwargs)
Location: aiohttp/client.py
Inputs:
- **timeout** – must be either a `ClientTimeout` instance, `None`, or omitted (sentinel). Any other type (e.g., `int`, `str`) triggers a `ValueError`.
- Additional keyword arguments are unchanged... | python | custom-check-github | diff --git a/CHANGES/8021.bugfix b/CHANGES/8021.bugfix
new file mode 100644
index 000000000..f43843a58
--- /dev/null
+++ b/CHANGES/8021.bugfix
@@ -0,0 +1,1 @@
+Add runtime type check for ``ClientSession`` ``timeout`` parameter.
diff --git a/CONTRIBUTORS.txt b/CONTRIBUTORS.txt
index 931d5c5b9..e94381dcf 100644
--- a/CON... | Backport to 3.10: Add runtime type check for `ClientSession` `timeout` param (#8022)
# Backport to 3.10
## What do these changes do?
Add runtime type check for `ClientSession` `timeout` param when creating a client.
## Are there changes in behavior for the user?
A `ValueError` is raised when using someth... | ClientSession timeout AttributeError
### Describe the bug
When you create a client with `client.ClientSession(timeout=500)` does not raise or warn that timeout must be implemented as `ClientTimeout` but fails when sending a get request
Code lets you implement a client as `client.ClientSession(timeout='bad_arg')`
... | aio-libs/aiohttp | diff --git a/tests/test_client_session.py b/tests/test_client_session.py
index 2823fc462..a0654ed8c 100644
--- a/tests/test_client_session.py
+++ b/tests/test_client_session.py
@@ -814,12 +814,6 @@ async def test_client_session_timeout_default_args(loop) -> None:
await session1.close()
-async def test_client_s... | [
"tests/test_client_session.py::test_client_session_timeout_zero",
"tests/test_client_session.py::test_client_session_timeout_bad_argument",
"tests/test_client_session.py::test_requote_redirect_url_default"
] | [
"tests/test_client_session.py::test_close_coro[pyloop]",
"tests/test_client_session.py::test_init_headers_simple_dict[pyloop]",
"tests/test_client_session.py::test_init_headers_list_of_tuples[pyloop]",
"tests/test_client_session.py::test_init_headers_MultiDict[pyloop]",
"tests/test_client_session.py::test_i... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/aio-libs/aiohttp"
],
"inten... |
ea84f22423bccb022f088deec2fe081f1f1fa29a | 2024-08-16 16:59:34 | docker.io/swerebenchv2/aio-libs-aiohttp:8720-ea84f22 | aio-libs__aiohttp-8720 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGES/8720.bugfix.rst b/CHANGES/8720.bugfix.rst
new file mode 100644
index 000000000..9941be275
--- /dev/null
+++ b/CHANGES/8720.bugfix.rst
@@ -0,0 +1,1 @@
+Fixed an edge case in the Python parser when chunk separators happen to align with network chunks -- by :user:`Dreamsorcerer`.
diff --git a/aiohttp/... | Fix Python parser when chunk separators align
Fixes #3904. | "ClientPayloadError: Response payload is not completed" with https://www.тв-програма.bg
```python
import aiohttp
import pytest
async def fetch():
async with aiohttp.ClientSession() as session:
remote_resp = await session.request("GET", "https://www.тв-програма.bg")
print(remote_resp)
... | aio-libs/aiohttp | diff --git a/tests/test_http_parser.py b/tests/test_http_parser.py
index 3dc650d38..17352ba6e 100644
--- a/tests/test_http_parser.py
+++ b/tests/test_http_parser.py
@@ -1461,6 +1461,29 @@ def test_parse_chunked_payload_empty_body_than_another_chunked(
assert b"second" == b"".join(d for d in payload._buffer)
+a... | [
"tests/test_http_parser.py::test_parse_chunked_payload_split_chunks[py-parser-pyloop]"
] | [
"tests/test_http_parser.py::test_parse_headers[py-parser-pyloop]",
"tests/test_http_parser.py::test_reject_obsolete_line_folding[py-parser-pyloop]",
"tests/test_http_parser.py::test_cve_2023_37276[py-parser-pyloop]",
"tests/test_http_parser.py::test_bad_header_name[py-parser-pyloop-\"]",
"tests/test_http_pa... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.тв-програма.bg"
],
"intent_complet... |
8ccdebfc0dafd4ce93069965b8a75fce1d002b16 | 2017-03-23 08:44:06 | docker.io/swerebenchv2/allegro-marathon-consul:212-8ccdebf | allegro__marathon-consul-212 | Method: Marathon.get(url string) ([]byte, error)
Location: marathon/marathon.go – method on the `Marathon` type.
Inputs:
- `url` – full request URL (string). The `Marathon` instance may hold optional `username` and `password` fields for Basic‑Auth.
Outputs:
- `[]byte` – response body on success, otherwise `nil`.
- ... | go | Apache-2.0 | diff --git a/marathon/marathon.go b/marathon/marathon.go
index 8121ab0..6cab932 100644
--- a/marathon/marathon.go
+++ b/marathon/marathon.go
@@ -31,7 +31,8 @@ type Marathon struct {
Location string
Protocol string
MyLeader string
- Auth *url.Userinfo
+ username string
+ password string
client *http.Client... | Fixes #209 | Sanitize http logs
Put HTTP authentication in Header instead of URL. This will prevent leaking credentials in logs when error is logged with authentication information. | Santize logs
Currenlty logs can contain passwords to Marathon.
```bash
Get http://***:***@localhost:8080/v2/leader: dial tcp 127.0.0.1:8080: getsockopt: connection refused
```
We should not log it and best keep it in header. | allegro/marathon-consul | diff --git a/marathon/marathon_test.go b/marathon/marathon_test.go
index 0e29b40..fc9b3a4 100644
--- a/marathon/marathon_test.go
+++ b/marathon/marathon_test.go
@@ -268,14 +268,14 @@ func TestUrl_WithoutAuth(t *testing.T) {
assert.Equal(t, "http://localhost:8080/v2/apps", m.url("/v2/apps"))
}
-func TestUrl_WithAut... | [
"TestUrl_AuthURLShouldBeWithoutCreds"
] | [
"TestRegistrationIntentsNumber",
"TestRegistrationIntentsNumber/Not_a_consul_app",
"TestRegistrationIntentsNumber/Multiple_port_definitions",
"TestRegistrationIntentsNumber/Single_port_definition",
"TestRegistrationIntentsNumber/No_port_definitions",
"TestParseApps",
"TestId_AppIdForInvalid",
"TestId_... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
5ac90a788d92769243f3003852b60d2a9ac33591 | 2022-10-28 22:02:10 | docker.io/swerebenchv2/alteryx-woodwork:1557-5ac90a7 | alteryx__woodwork-1557 | Method: WoodworkColumnAccessor.init(self, logical_type=None, semantic_tags=None, description=None, origin=None, nullable=None, **kwargs)
Location: woodwork/column_accessor.py
Inputs:
- self: WoodworkColumnAccessor instance bound to a pandas Series.
- logical_type (optional): LogicalType class or string indicating the d... | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index 23edbb9..817d693 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -10,6 +10,7 @@ Future Release
* Fixes
* Fixed bug relating to ``dependence`` calculations to ensure columns exist in dataframe... | Fix TypeValidationError message in `column_accessor.py`
- fixes #1556 | Incorrect Error Message When Woodwork-initializing Series
I ran into this error:
```
>>> x = pd.Series([pd.NA, 5, 4, 3, 2])
>>> x.ww.init()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Users/shripad.badithe/woodwork/woodwork/column_accessor.py", line 112, in init
raise Ty... | alteryx/woodwork | diff --git a/woodwork/tests/accessor/test_column_accessor.py b/woodwork/tests/accessor/test_column_accessor.py
index 5b114af..ae58579 100644
--- a/woodwork/tests/accessor/test_column_accessor.py
+++ b/woodwork/tests/accessor/test_column_accessor.py
@@ -168,7 +168,7 @@ def test_accessor_init_with_invalid_logical_type(sa... | [
"woodwork/tests/accessor/test_column_accessor.py::test_accessor_init_with_invalid_logical_type[sample_series_pandas]"
] | [
"woodwork/tests/accessor/test_column_accessor.py::test_accessor_init[sample_series_pandas]",
"woodwork/tests/accessor/test_column_accessor.py::test_accessor_init_with_schema[sample_series_pandas]",
"woodwork/tests/accessor/test_column_accessor.py::test_accessor_init_with_schema_errors[sample_series_pandas]",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
7bde24e9c9b5c5a0e228b4c62c094fced9901c3b | 2021-02-26 19:59:55 | docker.io/swerebenchv2/alteryx-woodwork:640-7bde24e | alteryx__woodwork-640 | Method: WoodworkTableAccessor.drop(self, columns)
Location: woodwork/table_accessor.py (around line 457)
Inputs:
- **columns** (str or list‑like of str): name or collection of column names to remove. Must exist in the DataFrame; otherwise a `ValueError` is raised listing the missing columns.
Outputs:
- Returns a **pand... | python | BSD-3-Clause | diff --git a/docs/source/api_reference.rst b/docs/source/api_reference.rst
index d5b9119..dea1466 100644
--- a/docs/source/api_reference.rst
+++ b/docs/source/api_reference.rst
@@ -12,6 +12,7 @@ WoodworkTableAccessor
WoodworkTableAccessor
WoodworkTableAccessor.describe
WoodworkTableAccessor.describe_dict... | Add drop to WoodworkTableAccessor
- Allows for `df.ww.drop`, returning a new dataframe with Woodwork initialized
- Closes #615
| Add WoodworkTableAccessor.drop
- Creates a new DataFrame without the specified columns that has Woodwork initialized using the typing information from the original DataFrame
| alteryx/woodwork | diff --git a/woodwork/tests/accessor/test_table_accessor.py b/woodwork/tests/accessor/test_table_accessor.py
index 7948061..f3b1df0 100644
--- a/woodwork/tests/accessor/test_table_accessor.py
+++ b/woodwork/tests/accessor/test_table_accessor.py
@@ -721,13 +721,6 @@ def test_underlying_index(sample_df):
assert sche... | [
"woodwork/tests/accessor/test_table_accessor.py::test_accessor_drop[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_accessor_drop_indices[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_accessor_drop_errors[sample_df_pandas]"
] | [
"woodwork/tests/accessor/test_table_accessor.py::test_check_index_errors[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_check_logical_types_errors[sample_df_pandas]",
"woodwork/tests/accessor/test_table_accessor.py::test_check_time_index_errors[sample_df_pandas]",
"woodwork/tests/ac... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
0706885e1eeb0b185853d0e2d0f2bf4fc73238bd | 2022-05-29 20:36:11 | docker.io/swerebenchv2/analysis-dev-diktat:1328-0706885 | analysis-dev__diktat-1328 | Method: RulesConfig.<init>(name: String, enabled: Boolean = true, configuration: Map<String, String> = emptyMap(), ignoreAnnotated: Set<String> = emptySet())
Location: dikat-common/src/main/kotlin/org/cqfn/diktat/common/config/rules/RulesConfigReader.kt
Inputs:
- name – the identifier of the rule (must match a warning... | kotlin | MIT | diff --git a/README.md b/README.md
index e2c35703fe..c5dc41b7a4 100644
--- a/README.md
+++ b/README.md
@@ -374,7 +374,8 @@ Also see [the list of all rules supported by diKTat](info/available-rules.md).
<details>
<summary>Suppress warnings on individual code blocks</summary>
-In addition to enabling/disabling warnin... | ### What's done:
- `ignoreAnnotated` logic that helps to suppress inspections that could have triggered on the block of code annotated with some specific annotations (useful for Jetpack)
- adding suppressing for ALL rules for the code block | Implement ignoreAnnotated suppressor like detekt
There are a lot of false positive findings regarding **Jetpack Compose**. _Detekt_ handles this gently with a `ignoreAnnotated` suppressor. It's a List of Strings. Code that is annotated with an annotation of this list is ignored.
This would come really handy for foll... | analysis-dev/diktat | diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/util/SuppressingTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/util/SuppressingTest.kt
new file mode 100644
index 0000000000..c1d5bc4ab1
--- /dev/null
+++ b/diktat-rules/src/test/kotlin/org/cqfn/diktat/util/SuppressingTest.kt
@@ -0,0 +1,87 @@
+package or... | [
"org.cqfn.diktat.plugin.gradle.DiktatJavaExecTaskTest check system property with multiproject build with custom config()",
"org.cqfn.diktat.plugin.gradle.DiktatJavaExecTaskTest check command line in debug mode()",
"org.cqfn.diktat.plugin.gradle.DiktatJavaExecTaskTest check command line in githubActions mode()",... | [] | {
"base_image_name": "kotlin-jdk-11",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
7f38701fc391656b99f4f88a29e9c814ea056b55 | 2022-06-16 13:45:05 | docker.io/swerebenchv2/analysis-dev-diktat:1369-7f38701 | analysis-dev__diktat-1369 | No new interfaces are introduced. | kotlin | MIT | diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/BooleanExpressionsRule.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/BooleanExpressionsRule.kt
index dd69de36fe..35ae0d2ccb 100644
--- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/Boolean... | ### What's done:
- implemented DistributiveLaw extends com.bpodgursky.jbool_expressions.rules.Rule.Rule
This pull request closes #1299 | BooleanExpressionRule: refactor a logic of the distributive law as a rule for jbool library
Now BooleanExpressionRule applies the `distributive law` manipulating with a String and tokens directly.
The jbool library allows to write a custom rule (`com.bpodgursky.jbool_expressions.rules.Rule`).
Suggestion to refactor a... | analysis-dev/diktat | diff --git a/diktat-rules/src/test/resources/test/paragraph3/boolean_expressions/DistributiveLawExpected.kt b/diktat-rules/src/test/resources/test/paragraph3/boolean_expressions/DistributiveLawExpected.kt
index 37244e76d6..297a8d8d58 100644
--- a/diktat-rules/src/test/resources/test/paragraph3/boolean_expressions/Distr... | [
"org.cqfn.diktat.plugin.gradle.DiktatJavaExecTaskTest check system property with multiproject build with custom config()",
"org.cqfn.diktat.plugin.gradle.DiktatJavaExecTaskTest check command line in debug mode()",
"org.cqfn.diktat.plugin.gradle.DiktatJavaExecTaskTest check command line in githubActions mode()",... | [] | {
"base_image_name": "kotlin-jdk-11",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
b0b405540e91c71b28aaa29876a1ae1de532e504 | 2021-06-18 11:47:33 | docker.io/swerebenchv2/analysis-dev-diktat:933-b0b4055 | analysis-dev__diktat-933 | No new interfaces are introduced. | kotlin | MIT | diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt
index 0981c113bf..5430a362b5 100644
--- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter3/LineLength.kt
+++ b/diktat-rule... | ### What's done:
* [x] Changed logic of the fix long comment
* [x] Updated test
* [x] Closes #923 | Move inline comments in long lines before the calling code
Consider following line
```kotlin
val accessors = node.findAllDescendantsWithSpecificType(PROPERTY_ACCESSOR).filter { it.hasChildOfType(BLOCK) } // exclude get with expression body
```
In short lines usage of inline comments quite often is convenient, so w... | analysis-dev/diktat | diff --git a/diktat-rules/src/test/resources/test/paragraph3/long_line/LongLineCommentExpected.kt b/diktat-rules/src/test/resources/test/paragraph3/long_line/LongLineCommentExpected.kt
index bd48fd85a6..4afc22439d 100644
--- a/diktat-rules/src/test/resources/test/paragraph3/long_line/LongLineCommentExpected.kt
+++ b/di... | [
"org.cqfn.diktat.plugin.gradle.DiktatJavaExecTaskTest check system property with multiproject build with custom config()",
"org.cqfn.diktat.plugin.gradle.DiktatJavaExecTaskTest check command line in debug mode()",
"org.cqfn.diktat.plugin.gradle.DiktatJavaExecTaskTest check command line has reporter type without... | [] | {
"base_image_name": "kotlin-jdk-11",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
fc902cfd325aea37d20ea4f6a1b203e6f18fc49b | 2022-12-16 19:54:59 | docker.io/swerebenchv2/apiflask-apiflask:382-fc902cf | apiflask__apiflask-382 | Method: APIFlask.add_url_rule(self, rule: str, view_func: Callable | None = None, **options)
Location: src/apiflask/app.py (overridden Flask add_url_rule)
Inputs:
- **rule** (str): URL pattern to bind.
- **view_func** (Callable | None): The view function handling the request; may be the result of `SomeView.as_view(nam... | python | MIT | diff --git a/CHANGES.md b/CHANGES.md
index c39ae80..8398a83 100644
--- a/CHANGES.md
+++ b/CHANGES.md
@@ -11,12 +11,14 @@ Released: -
- Change the status code of request validation error from 400 to 422 ([issue #345][issue_345]).
- Improve the default bypassing rules to support bypass blueprint's static endpoint and
... | explicitly check if view_func.view_class is MethodViewType in add_url_rule
* fixes #379
Checklist:
- [X] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
- [ ] Add or update relevant docs, in the `docs` folder and in code docstring.
- [X] Add an entry in `CHA... | KeyError when using add_url_for with flask View
## context
[flask-graphql](https://github.com/graphql-python/flask-graphql) is a project that adds graphql support to flask applications.
apiflask produces an error when using `add_url_for` with view_func=`GraphQLView.as_view(...)`.
## steps to reproduce
1.... | apiflask/apiflask | diff --git a/tests/test_route.py b/tests/test_route.py
index fb2ee4f..c6cf84a 100644
--- a/tests/test_route.py
+++ b/tests/test_route.py
@@ -1,5 +1,6 @@
import pytest
from flask.views import MethodView
+from flask.views import View
from openapi_spec_validator import validate_spec
from .schemas import Foo
@@ -212,... | [
"tests/test_route.py::test_add_url_rule_with_view_as_view"
] | [
"tests/test_route.py::test_route_shortcuts[get]",
"tests/test_route.py::test_route_shortcuts[post]",
"tests/test_route.py::test_route_shortcuts[put]",
"tests/test_route.py::test_route_shortcuts[patch]",
"tests/test_route.py::test_route_shortcuts[delete]",
"tests/test_route.py::test_route_on_method_view",
... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/graphql-python/flask-graphql"
],
... |
d545a6a8ba4308022bf5209b0bfdbfd9b92e8603 | 2024-02-14 10:05:50 | docker.io/swerebenchv2/apollographql-apollo-rs:835-d545a6a | apollographql__apollo-rs-835 | No new interfaces are introduced. | rust | Apache-2.0 | diff --git a/crates/apollo-compiler/src/validation/value.rs b/crates/apollo-compiler/src/validation/value.rs
index 04720fe..3fdfb90 100644
--- a/crates/apollo-compiler/src/validation/value.rs
+++ b/crates/apollo-compiler/src/validation/value.rs
@@ -159,6 +159,9 @@ pub(crate) fn value_of_correct_type(
_ => ... | fix(compiler): accept enum value (unquoted string) as input for custom scalars
Validation does not currently accept something like this:
```graphql
scalar Currency
type Query {
convertToUSD(amount: Int!, currency: Currency!): Int!
}
query {
convertToUSD(amount: 100, currency: EUR)
}
```
which is acc... | Enum values provided to scalars
Validation does not currently accept something like this:
```graphql
scalar Currency
type Query {
convertToUSD(amount: Int!, currency: Currency!): Int!
}
query {
convertToUSD(amount: 100, currency: EUR)
}
```
which is accepted by graphql-js and (rarely) used by custom... | apollographql/apollo-rs | diff --git a/crates/apollo-compiler/test_data/ok/0041_unquoted_string_for_custom_scalar.graphql b/crates/apollo-compiler/test_data/ok/0041_unquoted_string_for_custom_scalar.graphql
new file mode 100644
index 0000000..912b08a
--- /dev/null
+++ b/crates/apollo-compiler/test_data/ok/0041_unquoted_string_for_custom_scalar.... | [
"validation",
"cst::node_ext::block_string_tests::it_dedents_block_strings",
"cst::node_ext::block_string_tests::it_does_not_unescape_block_strings",
"cst::node_ext::string_tests::it_parses_strings",
"cst::node_ext::string_tests::it_unescapes_strings",
"cst::node_ext::block_string_tests::it_splits_lines_b... | [
"coordinate::tests::invalid_coordinates",
"extensions::test_extend_implicit_schema",
"executable::is_introspection_operation",
"executable::get_operations",
"extensions::test_orphan_extensions",
"field_type::test_invalid_field_type",
"field_type::test_valid_field_type",
"executable::is_introspection_r... | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
04695ec5448962bcd5e4616ed184b8a2168751e7 | 2025-09-30 03:25:30 | docker.io/swerebenchv2/apple-swift-argument-parser:821-04695ec | apple__swift-argument-parser-821 | No new interfaces are introduced. | swift | Apache-2.0 | diff --git a/Sources/ArgumentParser/Parsable Properties/ArgumentDiscussion.swift b/Sources/ArgumentParser/Parsable Properties/ArgumentDiscussion.swift
index 00101c47..46f2ad1d 100644
--- a/Sources/ArgumentParser/Parsable Properties/ArgumentDiscussion.swift
+++ b/Sources/ArgumentParser/Parsable Properties/ArgumentDiscus... | <!--
Thanks for contributing to the Swift Argument Parser!
If this pull request adds new API, please add '?template=new.md'
to the URL to switch to the appropriate template.
Before you submit your request, please replace the paragraph
below with the relevant details, and complete the steps ... | some of the help text not rendered properly when option is EnumFlag
<!--
Thanks for contributing to the Swift Argument Parser!
Before you submit your issue, please replace each paragraph
below with the relevant details for your bug, and complete
the steps in the checklist by placing an 'x' in each box:... | apple/swift-argument-parser | diff --git a/Tests/ArgumentParserUnitTests/HelpGenerationTests.swift b/Tests/ArgumentParserUnitTests/HelpGenerationTests.swift
index fa0a2c6b..cc3973c7 100644
--- a/Tests/ArgumentParserUnitTests/HelpGenerationTests.swift
+++ b/Tests/ArgumentParserUnitTests/HelpGenerationTests.swift
@@ -1095,6 +1095,80 @@ extension Help... | [
"HelpGenerationTests.testEnumerableOptionAsListWithEmptyArrayAsDefault",
"HelpGenerationTests.testEnumerableOptionAsListWithMultipleDefault",
"HelpGenerationTests.testEnumerableOptionAsListWithSingleDefault"
] | [
"HelpTests.testConfigHelp",
"HelpTests.testCustomHelpNames",
"HelpTests.testGetMirrorHelp",
"HelpTests.testGlobalHelp",
"HelpTests.testGlobalHelp_messageForCleanExit_helpRequest",
"HelpTests.testGlobalHelp_messageForCleanExit_message",
"HelpTests.testInheritImmediateParentHelpNames",
"HelpTests.testNo... | {
"base_image_name": "swift_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"... | {
"llm_metadata": {
"code": "A",
"confidence": 0.95,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/bkhouri/sap-reproducible-example.gi... |
88198c0c0e611ae16c93d3d78d32144285e8ef6f | 2022-01-14 10:36:22 | docker.io/swerebenchv2/aquasecurity-tfsec:1326-88198c0 | aquasecurity__tfsec-1326 | No new interfaces are introduced. | go | MIT | diff --git a/internal/app/tfsec/adapter/aws/ssm/adapt.go b/internal/app/tfsec/adapter/aws/ssm/adapt.go
index 200976252..3c2af86e5 100644
--- a/internal/app/tfsec/adapter/aws/ssm/adapt.go
+++ b/internal/app/tfsec/adapter/aws/ssm/adapt.go
@@ -2,9 +2,42 @@ package ssm
import (
"github.com/aquasecurity/defsec/provider... | AWS SSM adapt to use defsec
Closes #1289 | AWS SSM - convert tfsec checks to use defsec logic
Adapt AWS SSM Secrets to Go structs based on #1194 instructions:
Remove tfsec logic from `internal/app/tfsec/rules/aws/ssm/secret_use_customer_key_rule.go`
Create adapt functions to populate the Go structs in `internal/app/tfsec/adapter/aws/ssm/adapt.go` | aquasecurity/tfsec | diff --git a/internal/app/tfsec/rules/aws/ssm/secret_use_customer_key_rule_test.go b/internal/app/tfsec/rules/aws/ssm/secret_use_customer_key_rule_test.go
index dc8d8ad41..9e899dc28 100644
--- a/internal/app/tfsec/rules/aws/ssm/secret_use_customer_key_rule_test.go
+++ b/internal/app/tfsec/rules/aws/ssm/secret_use_custo... | [
"Test_AWSSecretsManagerSecretEncryption",
"Test_AWSSecretsManagerSecretEncryption/Secret_without_specified_CMK_fails_check"
] | [
"Test_PublicAccessBlock",
"Test_PublicAccessBlock/public_access_block_is_found_when_using_the_bucket_name_as_the_lookup",
"Test_PublicAccessBlock/public_access_block_is_found_when_using_the_bucket_name_as_the_lookup#01",
"Test_PublicAccessDoesNotReference",
"Test_PublicAccessDoesNotReference/just_a_bucket,_... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
1f421df6b8eae90882eca974694ecbbf5bf660a6 | 2020-12-14 15:32:39 | docker.io/swerebenchv2/argoproj-argo:4735-1f421df | argoproj__argo-4735 | Method: Modes.GetMode(authorisation string) (Mode, bool)
Location: server/auth/mode.go
Inputs: A string containing the Authorization header value (e.g., “Bearer …” or “Basic …”). The Modes instance’s boolean fields (Client, SSO, Server) dictate which modes are considered enabled.
Outputs: The selected authentication Mo... | go | Apache-2.0 | diff --git a/server/auth/gatekeeper.go b/server/auth/gatekeeper.go
index 55c135dc7..00403413a 100644
--- a/server/auth/gatekeeper.go
+++ b/server/auth/gatekeeper.go
@@ -131,7 +131,7 @@ func (s gatekeeper) getClients(ctx context.Context) (versioned.Interface, kubern
authorization := getAuthHeader(md)
mode, valid := ... | fix(server): Allow Bearer token in server mode. Fixes #4400
Fixes https://github.com/argoproj/argo/issues/4400
Signed-off-by: Simon Behar <simbeh7@gmail.com>
Checklist:
* [ ] My organization is added to [USERS.md](https://github.com/argoproj/argo/blob/master/USERS.md).
<!--
Please leave your PR in draft ... | auth-mode server fails when Authorization header is passed.
## Summary
We have argo server behind a reverse proxy that does github SSO.. Upgrading from argo 2.8 to 2.11, using `--auth-mode server` broke the UI. /api/v1/version was returned
```json
{"code":16,"message":"no valid authentication methods found for mo... | argoproj/argo | diff --git a/server/auth/mode_test.go b/server/auth/mode_test.go
index 2fe5bd9b6..2a55e0e9f 100644
--- a/server/auth/mode_test.go
+++ b/server/auth/mode_test.go
@@ -60,4 +60,16 @@ func TestModes_GetMode(t *testing.T) {
assert.Equal(t, SSO, mode)
}
})
+
+ m = Modes{
+ Client: false,
+ SSO: false,
+ Server... | [
"TestModes_GetMode",
"TestModes_GetMode/Server_and_Auth"
] | [
"TestSwagger",
"TestSwagger/io.argoproj.workflow.v1alpha1.CreateCronWorkflowRequest",
"TestSwagger/io.argoproj.workflow.v1alpha1.WorkflowCreateRequest",
"TestSwagger/io.argoproj.workflow.v1alpha1.ClusterWorkflowTemplateCreateRequest",
"TestSwagger/io.argoproj.workflow.v1alpha1.WorkflowTemplateCreateRequest"... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/argoproj/argo/blob/f9b65c52321d6e49d7... |
1c42cb657b3c65690b957d944fbf3bdfd62adb7c | 2022-09-29 15:25:28 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2387-1c42cb6 | aws-cloudformation__cfn-lint-2387 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/rules/resources/properties/Properties.py b/src/cfnlint/rules/resources/properties/Properties.py
index 0dfbf1cfa..fbc6324ca 100644
--- a/src/cfnlint/rules/resources/properties/Properties.py
+++ b/src/cfnlint/rules/resources/properties/Properties.py
@@ -2,6 +2,7 @@
Copyright Amazon.com, Inc. or ... | Provide suggestions when property is close to a valid property
*Issue #, if available:*
fix #2337
*Description of changes:*
- provide a suggestion when a property is close to a valid property
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under th... | Identify capitalisation errors in property names
*cfn-lint version: 0.62.0
* Feature request:
* It can be hard to identify captalisation errors in cfn property names. It would be useful if cfn-lint would call out these things. An example is:
```
TransformFunction:
Type: AWS::Lambda::Function
Propert... | aws-cloudformation/cfn-lint | diff --git a/test/integration/test_directives.py b/test/integration/test_directives.py
index a0ae70087..aee382ec8 100644
--- a/test/integration/test_directives.py
+++ b/test/integration/test_directives.py
@@ -36,7 +36,7 @@ class TestDirectives(BaseCliTestCase):
'LineNumber': 17
... | [
"test/integration/test_directives.py::TestDirectives::test_templates",
"test/integration/test_mandatory_checks.py::TestDirectives::test_templates_explicit",
"test/integration/test_mandatory_checks.py::TestDirectives::test_templates_prefixed"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
d0aae9bd6e3615e8d1023ca3c5c5aca1992d8a87 | 2024-06-20 15:08:09 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3342-d0aae9b | aws-cloudformation__cfn-lint-3342 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/rules/functions/Sub.py b/src/cfnlint/rules/functions/Sub.py
index b3f34b300..e522ccc7f 100644
--- a/src/cfnlint/rules/functions/Sub.py
+++ b/src/cfnlint/rules/functions/Sub.py
@@ -10,7 +10,7 @@ from typing import Any
import regex as re
-from cfnlint.helpers import REGEX_SUB_PARAMETERS
+fro... | Remove Refs to yourself in Fn::Sub
*Issue #, if available:*
fix #3321
*Description of changes:*
- Remove Refs to yourself in Fn::Sub
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| v1: E1019 Exception 'maximum recursion depth exceeded while calling a Python object' raised while validating 'enum' when 'Ref' is resolved when ... whe 'Ref' is resolved
### CloudFormation Lint Version
v1.3.0
### What operating system are you using?
Ubuntu
### Describe the bug
This is more trick if its a bug, AWS ... | aws-cloudformation/cfn-lint | diff --git a/test/unit/rules/functions/test_sub.py b/test/unit/rules/functions/test_sub.py
index 615a28711..2a56a18da 100644
--- a/test/unit/rules/functions/test_sub.py
+++ b/test/unit/rules/functions/test_sub.py
@@ -137,6 +137,12 @@ def context(cfn):
{"type": "string"},
[],
),
+ ... | [
"test/unit/rules/functions/test_sub.py::test_validate[Valid"
] | [
"test/unit/rules/functions/test_sub.py::test_validate[Invalid"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
8454bc9a7146e2b648090e866d09054589070599 | 2024-12-12 18:21:48 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3875-8454bc9 | aws-cloudformation__cfn-lint-3875 | Method: _ForEachValueFnFindInMap.value(self, cfn, params, only_params, is_ref)
Location: src/cfnlint/template/transforms/_language_extensions.py
Inputs:
- **cfn**: the CloudFormation template object used for resolution.
- **params**: optional additional parameters (tests pass `None`).
- **only_params**: `bool` ind... | python | MIT-0 | diff --git a/src/cfnlint/template/transforms/_language_extensions.py b/src/cfnlint/template/transforms/_language_extensions.py
index 5263cf686..3f1e38a86 100644
--- a/src/cfnlint/template/transforms/_language_extensions.py
+++ b/src/cfnlint/template/transforms/_language_extensions.py
@@ -403,11 +403,14 @@ class _ForEac... | Dont guess at mappings when values are static
*Issue #, if available:*
fix #3873
*Description of changes:*
- When doing language extension transform don't guess at a mapping value when the FindInMap values are static
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this... | FindInMap with DefaultValue vailidates unrelated Second Level Keys values against Property constraints
### CloudFormation Lint Version
1.22.0
### What operating system are you using?
fedora
### Describe the bug
When using `FindInMap` with a `DefaultValue` unrelated SecondLevelKey Values are validated aga... | aws-cloudformation/cfn-lint | diff --git a/test/unit/module/template/transforms/test_language_extensions.py b/test/unit/module/template/transforms/test_language_extensions.py
index f992f88cd..fabfb5279 100644
--- a/test/unit/module/template/transforms/test_language_extensions.py
+++ b/test/unit/module/template/transforms/test_language_extensions.py... | [
"test/unit/module/template/transforms/test_language_extensions.py::TestFindInMap::test_find_in_map_values_not_found_with_default",
"test/unit/module/template/transforms/test_language_extensions.py::TestFindInMap::test_find_in_map_values_strings_without_default"
] | [
"test/unit/module/template/transforms/test_language_extensions.py::TestForEach::test_collection_type",
"test/unit/module/template/transforms/test_language_extensions.py::TestForEach::test_identifier_type",
"test/unit/module/template/transforms/test_language_extensions.py::TestForEach::test_output_type",
"test... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
b4d790dd57b324c20ea9031b4769ba4d75ecd691 | 2025-02-24 20:09:20 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3965-b4d790d | aws-cloudformation__cfn-lint-3965 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/rules/functions/RefFormat.py b/src/cfnlint/rules/functions/RefFormat.py
index c734e6403..64a9b651b 100644
--- a/src/cfnlint/rules/functions/RefFormat.py
+++ b/src/cfnlint/rules/functions/RefFormat.py
@@ -8,6 +8,7 @@ from __future__ import annotations
from copy import deepcopy
from typing impo... | Ignore custom resource Ref
*Issue #, if available:*
fix #3964
*Description of changes:*
- Update E1041 to ignore custom resources when using a Ref
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| aws::ec2::networkinterface E1041 bug
### CloudFormation Lint Version
1.25.1
### What operating system are you using?
windows
### Describe the bug
[cfn-lint] E1041: {'Ref': 'EniSg'} does not match destination format of 'AWS::EC2::SecurityGroup.Id'
the custom function finds the SG Id and returns it for a !Ref in o... | aws-cloudformation/cfn-lint | diff --git a/test/unit/rules/functions/test_ref_format.py b/test/unit/rules/functions/test_ref_format.py
index 9e13087c0..5c7b26013 100644
--- a/test/unit/rules/functions/test_ref_format.py
+++ b/test/unit/rules/functions/test_ref_format.py
@@ -21,6 +21,7 @@ def template():
"Resources": {
"MyBucke... | [
"test/unit/rules/functions/test_ref_format.py::test_validate[Valid"
] | [
"test/unit/rules/functions/test_ref_format.py::test_validate[Invalid"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
fd830c8f2c31c940dc4d425f1bd366eba36dbd85 | 2025-02-25 21:29:20 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3972-fd830c8 | aws-cloudformation__cfn-lint-3972 | No new interfaces are introduced. | python | MIT-0 | diff --git a/src/cfnlint/rules/resources/PrimaryIdentifiers.py b/src/cfnlint/rules/resources/PrimaryIdentifiers.py
index bf3305c44..3c9cc7a31 100644
--- a/src/cfnlint/rules/resources/PrimaryIdentifiers.py
+++ b/src/cfnlint/rules/resources/PrimaryIdentifiers.py
@@ -31,6 +31,22 @@ class PrimaryIdentifiers(CloudFormationL... | Provide configuration for exceptions to E3019
*Issue #, if available:*
fix #3831
*Description of changes:*
- Provide configuration for exceptions to E3019
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| Feature Request: `AWS::CodeBuild::Project` - recognize if 2 resources have the same `Name`
### Is this feature request related to a new rule or cfn-lint capabilities?
_No response_
### Describe the feature you'd like to request
It would be great if cfn-lint would recognize if a `AWS::CodeBuild::Project` has th... | aws-cloudformation/cfn-lint | diff --git a/test/fixtures/templates/bad/resources/primary_identifiers.yaml b/test/fixtures/templates/bad/resources/primary_identifiers.yaml
index 3aea9828c..632c424ad 100644
--- a/test/fixtures/templates/bad/resources/primary_identifiers.yaml
+++ b/test/fixtures/templates/bad/resources/primary_identifiers.yaml
@@ -162... | [
"test/unit/rules/resources/test_primary_identifiers.py::TestPrimaryIdentifiers::test_file_negative_alias"
] | [
"test/unit/rules/resources/test_primary_identifiers.py::TestPrimaryIdentifiers::test_file_positive"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
650149bd5d516efeaa733b168606abcfdf301fc4 | 2018-07-17 20:04:39 | docker.io/swerebenchv2/babel-minify:882-650149b | babel__minify-882 | No new interfaces are introduced. | js | MIT | diff --git a/packages/babel-plugin-minify-dead-code-elimination/src/index.js b/packages/babel-plugin-minify-dead-code-elimination/src/index.js
index 207a019..0eb1d74 100644
--- a/packages/babel-plugin-minify-dead-code-elimination/src/index.js
+++ b/packages/babel-plugin-minify-dead-code-elimination/src/index.js
@@ -235... | fix(dce): handle array and object patterns in assignment expressions
fix #871 | Incorrect minification within try block and destructuring
This function is incorrectly minified. It happens when using 2 variables and not using one:
```js
async function example() {
var foo, bar;
try {
[foo, bar] = await Promise.all([req(1), req(2)]);
} catch(e) {}
console.log(foo);
}
```
**... | babel/minify | diff --git a/packages/babel-plugin-minify-dead-code-elimination/__tests__/fixtures/issue-871/actual.js b/packages/babel-plugin-minify-dead-code-elimination/__tests__/fixtures/issue-871/actual.js
new file mode 100644
index 0000000..1372c79
--- /dev/null
+++ b/packages/babel-plugin-minify-dead-code-elimination/__tests__/... | [
"issue-871"
] | [
"should match simple patterns",
"should match simple patterns 2",
"should throw when a pattern contains less than 2 entries",
"should accept a custom matcher",
"should match in order - first match should win",
"should handle case no match found",
"should match the first found pattern even if it's less s... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://babeljs.io/repl/#?babili=true&browsers=&build=... |
2c8e9ef56ece657f741e187c0149683280503350 | 2024-11-01 16:02:17 | docker.io/swerebenchv2/bashtage-arch:752-2c8e9ef | bashtage__arch-752 | No new interfaces are introduced. | python | custom-check-github | diff --git a/arch/univariate/base.py b/arch/univariate/base.py
index bdbba6e28f..bdbefb5e9b 100644
--- a/arch/univariate/base.py
+++ b/arch/univariate/base.py
@@ -1457,7 +1457,7 @@ class ARCHModelFixedResult(_SummaryRepr):
(1000, 10), and only the final row is used to produce forecasts.
* A ... | TST: Add tests for fcasts with exog
Add additional test
Fix bug that occurs when simulations=1
closes #749 | ARX with exogenous variable forecasts residual variance is not as expected
```
import numpy as np
import pandas as pd
import arch
from arch.univariate import Normal as ARCHNormal
seed = 42
np.set_printoptions(precision=3, suppress=True, linewidth=100, floatmode='fixed')
test_df = pd.DataFrame({'y':np.array([... | bashtage/arch | diff --git a/arch/tests/univariate/test_forecast.py b/arch/tests/univariate/test_forecast.py
index e7caed9613..b3cd7a5366 100644
--- a/arch/tests/univariate/test_forecast.py
+++ b/arch/tests/univariate/test_forecast.py
@@ -1104,3 +1104,104 @@ def test_multistep(analytical_model_spec):
rv_ri = fcasts_ri.residual_va... | [
"arch/tests/univariate/test_forecast.py::test_reindex[HAR-Constant",
"arch/tests/univariate/test_forecast.py::test_reindex[HAR-GARCH-True-None-None]",
"arch/tests/univariate/test_forecast.py::test_reindex[HAR-GARCH-True-None-250]",
"arch/tests/univariate/test_forecast.py::test_reindex[HAR-GARCH-False-None-Non... | [
"arch/tests/univariate/test_forecast.py::TestForecasting::test_ar_forecasting",
"arch/tests/univariate/test_forecast.py::TestForecasting::test_ar_to_impulse",
"arch/tests/univariate/test_forecast.py::TestForecasting::test_zero_mean_forecast",
"arch/tests/univariate/test_forecast.py::TestForecasting::test_fram... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
0a7f6e93456d9452833c3b0d263e12346cd9164a | 2023-11-15 02:35:34 | docker.io/swerebenchv2/benbjohnson-litestream:522-0a7f6e9 | benbjohnson__litestream-522 | No new interfaces are introduced. | go | Apache-2.0 | diff --git a/replica.go b/replica.go
index 3d2b099..a5daf2d 100644
--- a/replica.go
+++ b/replica.go
@@ -482,16 +482,16 @@ func (r *Replica) Snapshot(ctx context.Context) (info SnapshotInfo, err error) {
r.muf.Lock()
defer r.muf.Unlock()
- // Prevent checkpoints during snapshot.
- r.db.BeginSnapshot()
- defer r.d... | Use safe checkpointing before snapshots
The intention of the code is to do a checkpoint before starting to write out the snapshot. Executing a manual checkpoint will at worst make Litestream lose the track of the WAL as it will in specific circumtances flush out the single page in the WAL file out.
Using the public ... | Manual checkpoint before snapshot loses WAL position
If a database is not written to by the main application, Litestream can lose its own WAL position by checkpointing before taking a snapshot without writing into the sequence table after. This requires an extremely specific sequence of events to happen.
1. Start Li... | benbjohnson/litestream | diff --git a/replica_test.go b/replica_test.go
index 7f42c08..78ba620 100644
--- a/replica_test.go
+++ b/replica_test.go
@@ -13,6 +13,13 @@ import (
"github.com/pierrec/lz4/v4"
)
+func nextIndex(pos litestream.Pos) litestream.Pos {
+ return litestream.Pos{
+ Generation: pos.Generation,
+ Index: pos.Index + ... | [
"TestReplica_Sync",
"TestReplica_Snapshot"
] | [
"TestDB_Path",
"TestDB_WALPath",
"TestDB_MetaPath",
"TestDB_MetaPath/Absolute",
"TestDB_MetaPath/Relative",
"TestDB_GenerationNamePath",
"TestDB_GenerationPath",
"TestDB_ShadowWALDir",
"TestDB_ShadowWALPath",
"TestDB_UpdatedAt",
"TestDB_UpdatedAt/ErrNotExist",
"TestDB_UpdatedAt/DB",
"TestDB_... | {
"base_image_name": "go_1.21.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.21.0",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/benbjohnson/litestream/blob/85ddf32... |
9046eed21cc73b66b35d73fcbc42c9afe6ec6dd9 | 2023-07-17 10:15:00 | docker.io/swerebenchv2/brazilian-utils-brutils-python:125-9046eed | brazilian-utils__brutils-python-125 | Function: format_cep(cep: str) -> str | None
Location: brutils/cep.py
Inputs:
- **cep**: a string containing only digits representing a Brazilian CEP (exactly 8 characters). The function expects the string to be already stripped of any symbols.
Outputs:
- Returns the formatted CEP in the pattern `"XXXXX-XXX"` (e.g., ... | python | MIT | diff --git a/README.md b/README.md
index 807b7e8..686d27d 100644
--- a/README.md
+++ b/README.md
@@ -46,6 +46,7 @@ False
- [generate_cnpj](#generate_cnpj)
- [CEP](#cep)
- [is_valid_cep](#is_valid_cep)
+ - [format_cep](#format_cep)
- [generate_cep](#generate_cep)
## CPF
@@ -139,10 +140,20 @@ Verifica se ... | Feature: implementando o método `format_cep`
* função criada no arquivo cep.py;
* testes criados (e funcionado!) - no arquivo test_cep.py;
* documentação atualizada nos arquivos de readme em inglês e português;
* __init__.py também atualizado conforme implementação;
teste feito também no python, função de acordo ... | Formatação de CEPs
Implementar um utilitário que recebe um CEP apenas com dígitos e retorna o CEP com símbolos (ponto e traço) | brazilian-utils/brutils-python | diff --git a/tests/test_cep.py b/tests/test_cep.py
index e023061..a2a2eca 100644
--- a/tests/test_cep.py
+++ b/tests/test_cep.py
@@ -11,12 +11,25 @@ path.insert(
)
from brutils.cep import (
is_valid,
+ format_cep,
generate,
)
from unittest import TestCase, main
class CEP(TestCase):
+ def test_f... | [
"tests/test_cep.py::CEP::test_format_cep",
"tests/test_cep.py::CEP::test_generate",
"tests/test_cep.py::CEP::test_is_valid"
] | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
1710f7dace04a5a73480c1eb5d64f7151d39fee0 | 2025-02-10 11:18:39 | docker.io/swerebenchv2/cli-cli:10417-1710f7d | cli__cli-10417 | Function: NewCmdEditItem(f *cmdutil.Factory, runF func(config editItemConfig) error) *cobra.Command
Location: pkg/cmd/project/item-edit/item_edit.go
Inputs:
- f *cmdutil.Factory – factory used to construct I/O and API clients.
- runF func(config editItemConfig) error – optional function executed by the command (defa... | go | MIT | diff --git a/pkg/cmd/project/item-edit/item_edit.go b/pkg/cmd/project/item-edit/item_edit.go
index c4acaaea9..38818b5c5 100644
--- a/pkg/cmd/project/item-edit/item_edit.go
+++ b/pkg/cmd/project/item-edit/item_edit.go
@@ -24,6 +24,7 @@ type editItemOpts struct {
projectID string
text strin... | Fix gh project item-edit to allow --number 0 as a valid value
Fixes #10380 | `gh project item-edit` should allow explicit `--number 0` field values
### Describe the bug
> Here's another case that I found out for `--number` that 0 is discarded as an invalid value:
>
> ```shell
> $ bin/gh project item-edit --project-id $projectId --id $itemId --field-id $fieldId --number 0
> error: no changes t... | cli/cli | diff --git a/pkg/cmd/project/item-edit/item_edit_test.go b/pkg/cmd/project/item-edit/item_edit_test.go
index 2f9a16df6..916bb5899 100644
--- a/pkg/cmd/project/item-edit/item_edit_test.go
+++ b/pkg/cmd/project/item-edit/item_edit_test.go
@@ -55,6 +55,14 @@ func TestNewCmdeditItem(t *testing.T) {
itemID: "123",
... | [
"TestNewCmdeditItem",
"TestNewCmdeditItem/missing-id",
"TestNewCmdeditItem/invalid-flags",
"TestNewCmdeditItem/item-id",
"TestNewCmdeditItem/number",
"TestNewCmdeditItem/number_with_floating_point_value",
"TestNewCmdeditItem/number_zero",
"TestNewCmdeditItem/field-id",
"TestNewCmdeditItem/project-id... | [
"TestGraphQL",
"TestGraphQLError",
"TestRESTGetDelete",
"TestRESTWithFullURL",
"TestRESTError",
"TestHandleHTTPError_GraphQL502",
"TestHTTPError_ScopesSuggestion",
"TestHTTPError_ScopesSuggestion/has_necessary_scopes",
"TestHTTPError_ScopesSuggestion/normalizes_scopes",
"TestHTTPError_ScopesSugges... | {
"base_image_name": "go_1.23.8",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.24.4",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/cli/cli/issues/10342#issuecomment-2... |
bbacdcaf2ee42b64a93fe7be57670e9afd216b76 | 2020-04-08 17:06:05 | docker.io/swerebenchv2/codezonediitj-pydatastructs:253-bbacdca | codezonediitj__pydatastructs-253 | Function: depth_first_search(graph, source_node, operation, *args, **kwargs)
Location: pydatastructs/graphs/algorithms.py (public API exported in pydatastructs/__init__.py)
Inputs:
- **graph**: instance of Graph (adjacency‑list or adjacency‑matrix implementation).
- **source_node**: `str` – name/id of the node where ... | python | custom-check-github | diff --git a/pydatastructs/graphs/__init__.py b/pydatastructs/graphs/__init__.py
index 1e2eebf..d9aa51a 100644
--- a/pydatastructs/graphs/__init__.py
+++ b/pydatastructs/graphs/__init__.py
@@ -12,7 +12,8 @@ from .algorithms import (
breadth_first_search_parallel,
minimum_spanning_tree,
minimum_spanning_t... | DFS implemented (using the BFS API)
<!-- Your title above should be a short description of what
was changed. Do not include the issue number in the title. -->
#### References to other Issues or PRs or Relevant literature
<!-- If this pull request fixes an issue, write "Fixes #NNNN" in that exact
format, e.g. "Fix... | Add depth first search for graphs
#### Description of the problem
<!--Please provide a clear and details information of the bug/data structure to be added.-->
Serial and Parallel version of depth first search are required to be added for graphs.
#### Example of the problem
<!--Provide a reproducible example code wh... | codezonediitj/pydatastructs | diff --git a/pydatastructs/graphs/tests/test_algorithms.py b/pydatastructs/graphs/tests/test_algorithms.py
index 8ada73c..ab1ecdc 100644
--- a/pydatastructs/graphs/tests/test_algorithms.py
+++ b/pydatastructs/graphs/tests/test_algorithms.py
@@ -1,6 +1,7 @@
from pydatastructs import (breadth_first_search, Graph,
bread... | [
"pydatastructs/graphs/tests/test_algorithms.py::test_breadth_first_search",
"pydatastructs/graphs/tests/test_algorithms.py::test_breadth_first_search_parallel",
"pydatastructs/graphs/tests/test_algorithms.py::test_minimum_spanning_tree",
"pydatastructs/graphs/tests/test_algorithms.py::test_strongly_connected_... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://en.wikipedia.org/wiki/Depth-first_search",
... |
ba0945ddb4498d873f32c07da84451b3dd47a024 | 2024-08-14 15:12:56 | docker.io/swerebenchv2/cpisciotta-xcbeautify:307-ba0945d | cpisciotta__xcbeautify-307 | Method: Formatter.formatExplicitDependencyCaptureGroup(group: ExplicitDependencyCaptureGroup)
Location: Sources/XcbeautifyLib/Formatter.swift
Inputs: **group** – an ExplicitDependencyCaptureGroup containing `target: String` and `project: String`.
Outputs: `String?` – the formatted representation of the explicit‑d... | swift | MIT | diff --git a/Sources/XcbeautifyLib/CaptureGroups.swift b/Sources/XcbeautifyLib/CaptureGroups.swift
index 07f93706..272d1951 100644
--- a/Sources/XcbeautifyLib/CaptureGroups.swift
+++ b/Sources/XcbeautifyLib/CaptureGroups.swift
@@ -524,6 +524,22 @@ struct ExecutedWithSkippedCaptureGroup: ExecutedCaptureGroup {
}
}... | [New Output] Support Explicit Dependency Output
### What's the uncaptured output?
```
➜ Explicit dependency on target 'Target' in project 'Project'
```
### Suggested Regex
_No response_
### Additional Context
Note: There is leading whitespace in the xcodebuild output. | cpisciotta/xcbeautify | diff --git a/Tests/XcbeautifyLibTests/ParserTests.swift b/Tests/XcbeautifyLibTests/ParserTests.swift
index a943ac64..de59aa96 100644
--- a/Tests/XcbeautifyLibTests/ParserTests.swift
+++ b/Tests/XcbeautifyLibTests/ParserTests.swift
@@ -68,4 +68,11 @@ final class ParserTests: XCTestCase {
XCTAssertEqual(captureG... | [
"CaptureGroupTests.testMatchCompilationResults",
"CaptureGroupTests.testMatchSwiftDriverJobDiscoveryEmittingModule",
"CaptureGroupTests.testSwiftCompiling",
"GitHubActionsRendererTests.testAggregateTarget",
"GitHubActionsRendererTests.testAnalyze",
"GitHubActionsRendererTests.testAnalyzeTarget",
"GitHub... | [] | {
"base_image_name": "swift_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... | |
036b86bbefeed905c9962a7a4bf7bca8258246fb | 2025-07-01 16:44:39 | docker.io/swerebenchv2/cs-si-eodag:1717-036b86b | cs-si__eodag-1717 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/eodag/plugins/download/base.py b/eodag/plugins/download/base.py
index b286a77d..80216f82 100644
--- a/eodag/plugins/download/base.py
+++ b/eodag/plugins/download/base.py
@@ -25,6 +25,7 @@ import tarfile
import tempfile
import zipfile
from datetime import datetime, timedelta
+from pathlib import Path
fr... | fix(core): do not download again unextracted products
Fixes #1713
Do not download again unextracted products | Two consecutive executions will fully download twice the same products
**Describe the bug**
When running an eodag request twice in a row, products are being fully downloaded twice while eodag would be expected to detect that files already exist locally and jump on to next search result.
**Code To Reproduce**
```py
sel... | CS-SI/eodag | diff --git a/tests/__init__.py b/tests/__init__.py
index d7488dbd..29cc5b01 100644
--- a/tests/__init__.py
+++ b/tests/__init__.py
@@ -306,7 +306,7 @@ class EODagTestCase(unittest.TestCase):
self._set_download_simulation()
self.tmp_download_dir = tempfile.TemporaryDirectory()
if output_dir is... | [
"tests/units/test_download_plugins.py::TestDownloadPluginBase::test_plugins_download_base_prepare_download_record_file"
] | [
"tests/units/test_download_plugins.py::TestDownloadPluginBase::test_plugins_download_base_prepare_download_collision_avoidance",
"tests/units/test_download_plugins.py::TestDownloadPluginBase::test_plugins_download_base_prepare_download_existing",
"tests/units/test_download_plugins.py::TestDownloadPluginBase::te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
49e5932b45534d1de1f8cda5f5f2ebb4e5e32228 | 2022-10-12 03:06:50 | docker.io/swerebenchv2/danvergara-dblab:126-49e5932 | danvergara__dblab-126 | Method: New(opts command.Options) (*Client, error)
Location: pkg/client/client.go
Inputs: opts – command.Options containing connection parameters (Host, Port, User, Pass, DBName, SSL, Limit) plus the newly added Schema string; if Schema is empty it defaults to "public".
Outputs: a pointer to a configured Client whos... | go | MIT | diff --git a/.dblab.yaml b/.dblab.yaml
index d9e592e..cf09a83 100644
--- a/.dblab.yaml
+++ b/.dblab.yaml
@@ -4,5 +4,6 @@ database:
db: "users"
password: "password"
user: "postgres"
+ schema: "public"
driver: "postgres"
limit: 50
diff --git a/Makefile b/Makefile
index 6c9b659..173e64c 100644
--- a/Makefile... | Multi schema
## Description
@israteneda pointed out that we need some sort of support for dealing with multiple schemas, since Postgres has this enabled.
Fixes #95
## Type of change
Please delete options that are not relevant.
- [ ] Bug fix (non-breaking change which fixes an issue)
- [x] New feature (n... | [FEATURE] Multi schemas
**Is your feature request related to a problem? Please describe.**
I have a database with multiple schemas, but I am unable to select the schemas that I need.
**Describe the solution you'd like**
I think it could be great to have the option to select the schemas that we want to show of the ... | danvergara/dblab | diff --git a/db/migrations/20221011024220_create_test_schema.down.sql b/db/migrations/20221011024220_create_test_schema.down.sql
new file mode 100644
index 0000000..c2d9b7d
--- /dev/null
+++ b/db/migrations/20221011024220_create_test_schema.down.sql
@@ -0,0 +1,1 @@
+DROP SCHEMA myschema CASCADE;
diff --git a/db/migrati... | [
"TestSetEnvValues",
"TestInit"
] | [
"TestVersionCmd",
"TestBuildConnectionFromOptsFromURL",
"TestBuildConnectionFromOptsFromURL/valid_postgres_localhost_postgresql_as_protocol",
"TestBuildConnectionFromOptsFromURL/valid_postgres_localhost_but_add_sslmode",
"TestBuildConnectionFromOptsFromURL/error_invalid_url",
"TestBuildConnectionFromOptsF... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.78,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
488adc7e276700ca7ee5db00a67f4f22ae15eedf | 2024-11-28 23:48:43 | docker.io/swerebenchv2/dbader-node-datadog-metrics:137-488adc7 | dbader__node-datadog-metrics-137 | No new interfaces are introduced. | js | MIT | diff --git a/README.md b/README.md
index 5cf67bb..4394210 100644
--- a/README.md
+++ b/README.md
@@ -50,8 +50,7 @@ There's also a longer [tutorial](https://dbader.org/blog/monitoring-your-nodejs-
### Datadog API key
-Make sure the `DATADOG_API_KEY` environment variable is set to your Datadog
-API key (you can also... | Support `DD_` env var prefix
All environment variables for this library are currently prefixed with `DATADOG_`. In order to match the configuration variables used by the Datadog agent, this supports the `DD_` prefix in addition to `DATADOG_`.
The goal here is just to make configuration easier to set up. Some Datadog... | Support `DD_` environment variables
Some Datadog tools use environment variables prefixed with `DATADOG_*` (e.g. `DATADOG_API_KEY`) and others use `DD_*` (e.g. `DD_API_KEY`). Some support both.
We currently only support `DATADOG_*`, but it would probably be good if we _also_ supported `DD_*` for the variables we cur... | dbader/node-datadog-metrics | diff --git a/test/reporters_tests.js b/test/reporters_tests.js
index f85968f..11dfbf9 100644
--- a/test/reporters_tests.js
+++ b/test/reporters_tests.js
@@ -29,9 +29,7 @@ describe('DatadogReporter', function() {
let originalEnv = Object.entries(process.env);
afterEach(() => {
- for (const... | [
"reads the API key from DD_API_KEY environment if not specified"
] | [
"should flush correctly when empty",
"should flush a single metric correctly",
"should flush multiple metrics correctly",
"should flush multiple metrics correctly even if only the tag differs",
"should clear the buffer after flushing",
"should update an existing metric correctly",
"should aggregate by k... | {
"base_image_name": "node_20",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
aa98c958981fe112079e55b5831daf32b45b39f4 | 2023-04-28 02:18:39 | docker.io/swerebenchv2/dbt-labs-dbt-redshift:420-aa98c95 | dbt-labs__dbt-redshift-420 | Method: RedshiftConnectMethodFactory.get_connect_method(self) → Callable
Location: dbt/adapters/redshift/connections.py, class RedshiftConnectMethodFactory
Inputs:
- self.credentials (RedshiftCredentials) containing:
– host (str)
– database (str, default “redshift”)
– cluster_identifier (Optional[str])
– iam (... | python | Apache-2.0 | diff --git a/.changes/unreleased/Fixes-20230428-142321.yaml b/.changes/unreleased/Fixes-20230428-142321.yaml
new file mode 100644
index 00000000..c7fefda4
--- /dev/null
+++ b/.changes/unreleased/Fixes-20230428-142321.yaml
@@ -0,0 +1,6 @@
+kind: Fixes
+body: Adding region as independent param in profiles
+time: 2023-04-... | Fix for #419: dbt-redshift 1.5 does not work with non-standard redshift hostnames
resolves #419
<!---
Include the number of the issue addressed by this PR above if applicable.
PRs for code changes without an associated issue *will not be merged*.
See CONTRIBUTING.md for more information.
Example:
... | [ADAP-500] [Bug] dbt-redshift 1.5 does not work with non-standard redshift hostnames
### Is this a new bug in dbt-redshift?
- [X] I believe this is a new bug in dbt-redshift
- [X] I have searched the existing issues, and I could not find an existing issue for this bug
### Current Behavior
When upgrading to dbt 1.5, ... | dbt-labs/dbt-redshift | diff --git a/tests/unit/test_redshift_adapter.py b/tests/unit/test_redshift_adapter.py
index 27bcd98f..25f3b3d7 100644
--- a/tests/unit/test_redshift_adapter.py
+++ b/tests/unit/test_redshift_adapter.py
@@ -97,7 +97,9 @@ class TestRedshiftAdapter(unittest.TestCase):
@mock.patch("redshift_connector.connect", Mock()... | [
"tests/unit/test_redshift_adapter.py::TestRedshiftAdapter::test_explicit_invalid_region",
"tests/unit/test_redshift_adapter.py::TestRedshiftAdapter::test_explicit_region",
"tests/unit/test_redshift_adapter.py::TestRedshiftAdapter::test_explicit_region_failure"
] | [
"tests/unit/test_redshift_adapter.py::TestRedshiftAdapter::test_add_query_success",
"tests/unit/test_redshift_adapter.py::TestRedshiftAdapter::test_add_query_with_no_cursor",
"tests/unit/test_redshift_adapter.py::TestRedshiftAdapter::test_cancel_open_connections_empty",
"tests/unit/test_redshift_adapter.py::T... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/dbt-labs/dbt-redshift/blob/aa98c958... |
04e904396fea982aac26b7ffb7f6e9aeffca53f3 | 2023-07-30 13:45:44 | docker.io/swerebenchv2/decorators-squad-eo-yaml:577-04e9043 | decorators-squad__eo-yaml-577 | No new interfaces are introduced. | java | BSD-3-Clause | diff --git a/src/main/java/com/amihaiemil/eoyaml/RtYamlPrinter.java b/src/main/java/com/amihaiemil/eoyaml/RtYamlPrinter.java
index 98f0f90..2d9dc12 100644
--- a/src/main/java/com/amihaiemil/eoyaml/RtYamlPrinter.java
+++ b/src/main/java/com/amihaiemil/eoyaml/RtYamlPrinter.java
@@ -384,12 +384,15 @@ final class RtYamlPri... | #574 complete reserved chars escape list
Fixes #574 | Reserved indicators not quoted if at the beginning of a string
As per https://github.com/decorators-squad/eo-yaml/issues/445#issuecomment-828307655, special characters are supposed to be quoted. However, writing a string starting with "@" which is a special character appears to end up unquoted:
```yaml
apiVersion: v... | decorators-squad/eo-yaml | diff --git a/src/test/java/com/amihaiemil/eoyaml/YamlSequencePrintTest.java b/src/test/java/com/amihaiemil/eoyaml/YamlSequencePrintTest.java
index b75bb5d..bbce37b 100644
--- a/src/test/java/com/amihaiemil/eoyaml/YamlSequencePrintTest.java
+++ b/src/test/java/com/amihaiemil/eoyaml/YamlSequencePrintTest.java
@@ -270,6 +... | [
"com.amihaiemil.eoyaml.YamlMappingPrintTest",
"com.amihaiemil.eoyaml.YamlSequencePrintTest"
] | [
"com.amihaiemil.eoyaml.extensions.MergedYamlSequenceTest",
"com.amihaiemil.eoyaml.extensions.MergedYamlMappingTest",
"com.amihaiemil.eoyaml.JsonYamlDumpTest",
"com.amihaiemil.eoyaml.YamlSequenceCommentsPrintTest",
"com.amihaiemil.eoyaml.PlainStringScalarTest",
"com.amihaiemil.eoyaml.JsonYamlSequenceTest",... | {
"base_image_name": "java_17",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"jav... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/decorators-squad/eo-yaml/issues/445#i... |
14fa062bdb4388d77250b1f7224024fea3c84bbf | 2023-09-11 14:09:58 | docker.io/swerebenchv2/delgan-loguru:985-14fa062 | delgan__loguru-985 | Method: Logger.add(self, sink, *, level="INFO", enqueue=False, context=None, **kwargs)
Location: loguru/_logger.py (class Logger, method add)
Inputs:
- **sink** (callable): a function that receives a log record; used as the destination for log messages.
- **enqueue** (bool, optional): when True, log messages are sent t... | python | MIT | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 9ed0619..7a8d112 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -2,6 +2,7 @@
=============
- Add support for formatting of ``ExceptionGroup`` errors (`#805 <https://github.com/Delgan/loguru/issues/805>`_).
+- Fix possible ``RuntimeError`` when using ``multiprocess... | Fix "RuntimeError" using "set_start_method()" after "logger" import
Fix #974. | RuntimeError: context has already been set. When I use both Sanic and loguru
```python
from sanic import Sanic, text
from loguru import logger
app = Sanic(__name__)
@app.get('/')
async def run_shell(request):
return text('Hello world!')
if __name__ == '__main__':
app.run(host='0.0.0.0', port=6... | Delgan/loguru | diff --git a/tests/test_add_option_context.py b/tests/test_add_option_context.py
index ee6d7c1..c9d3c27 100644
--- a/tests/test_add_option_context.py
+++ b/tests/test_add_option_context.py
@@ -1,55 +1,63 @@
import multiprocessing
import os
-from unittest.mock import MagicMock
+from unittest.mock import patch
impor... | [
"tests/test_add_option_context.py::test_global_start_method_is_none_if_enqueue_is_false"
] | [
"tests/test_add_option_context.py::test_using_multiprocessing_directly_if_context_is_none",
"tests/test_add_option_context.py::test_fork_context_as_string[fork]",
"tests/test_add_option_context.py::test_fork_context_as_string[forkserver]",
"tests/test_add_option_context.py::test_spawn_context_as_string",
"t... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
455e3ba6191a57869593eca292965d9c4898343f | 2022-05-13 17:38:58 | docker.io/swerebenchv2/delvedor-find-my-way:282-455e3ba | delvedor__find-my-way-282 | Function: FindMyWay(options)
Location: Exported from the package root (`module.exports = FindMyWay`). Called in tests as `FindMyWay()` and `FindMyWay({ decodeUriParameters: fn })`.
Inputs:
- **options** – *Object* (optional). May contain:
- **decodeUriParameters** – *function(string) → string* – custom decoder for UR... | js | MIT | diff --git a/index.js b/index.js
index 910c451..d78eb59 100644
--- a/index.js
+++ b/index.js
@@ -32,7 +32,7 @@ const deepEqual = require('fast-deep-equal')
const { flattenNode, compressFlattenedNode, prettyPrintFlattenedNode, prettyPrintRoutesArray } = require('./lib/pretty-print')
const { StaticNode, NODE_TYPES } = ... | Fix parameters decoding
Fix #234 and a bunch of optimization to make it work as fast as possible. | Decoding URL Components
There is how decoding URL components is working right now. If URL contains "%" symbol - URL will be decoded by standard js decodeURI function and if URL contains one of this symbols "# $ & + , / : ; = ? @", URL params will be parsed from the original (non-decoded) url and will be decoded either ... | delvedor/find-my-way | diff --git a/test/custom-decode-uri.test.js b/test/custom-decode-uri.test.js
index b00b6da..14c12ec 100644
--- a/test/custom-decode-uri.test.js
+++ b/test/custom-decode-uri.test.js
@@ -38,7 +38,7 @@ test('decodeUriParameters called when needed 2', t => {
const results = [
'ci%40o',
'foo%23bar',
- '%23%F... | [
"decoding %23🍌"
] | [
"we should be here",
"should be equal",
"expect truthy value",
"expect falsey value",
"(unnamed test)",
"Yeah!",
"decoding ci%40o",
"decoding foo%23bar",
"should be equivalent",
"expected to not throw",
"expected to throw",
"Everything good",
"should not match pattern provided",
"a%20 deco... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
eac6d0617f1fb679ead509ab68e71650bbd76f6c | 2023-10-10 01:45:23 | docker.io/swerebenchv2/denvercoder1-readme-typing-svg:254-eac6d06 | denvercoder1__readme-typing-svg-254 | Method: RendererModel.__construct(string $template, array $params)
Location: src/models/RendererModel.php
Inputs:
- $template (string): path to the template file (e.g., “src/templates/main.php”).
- $params (array): associative array of rendering options; may contain a “random” key with a string value (“true”, “false... | php | MIT | diff --git a/src/demo/index.php b/src/demo/index.php
index c4db521..5c9184c 100644
--- a/src/demo/index.php
+++ b/src/demo/index.php
@@ -106,6 +106,12 @@
<option>false</option>
</select>
+ <label for="random">Random</label>
+ <select class="param" id... | feat: Add option to put lines in random order
## Summary
Add random option
Fixes #179
## Type of change
- [X] New feature
## How Has This Been Tested?
- [X] Ran tests with `composer test`
- [X] Added test cases to test new features
| Am i the first to suggest random order ?
it would be nice if there was a boolean for whether the list show be displayed in order, or in random order.
thanks a lot! | DenverCoder1/readme-typing-svg | diff --git a/tests/OptionsTest.php b/tests/OptionsTest.php
index 697b8fe..48ff687 100644
--- a/tests/OptionsTest.php
+++ b/tests/OptionsTest.php
@@ -338,4 +338,33 @@ final class OptionsTest extends TestCase
$this->assertEquals(";;", $model->separator);
$this->assertEquals(["text", "tex;t2"], $model->l... | [
"None > Random"
] | [
"None > Missing lines",
"None > Valid font",
"None > Valid font color",
"None > Invalid font color",
"None > Valid background color",
"None > Invalid background color",
"None > Valid font size",
"None > Invalid font size",
"None > Valid height",
"None > Invalid height",
"None > Valid width",
"... | {
"base_image_name": "php:8.3.16",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
7ec18d41020aae93acfeb38c26f8d15d4fcb2a87 | 2019-01-22 17:38:38 | docker.io/swerebenchv2/devexpress-devextreme-react:290-7ec18d4 | devexpress__devextreme-react-290 | Method: OptionsManager.buildOptionItemName(descr: INestedConfigDescr, index?: number)
Location: src/core/options-manager.ts
Inputs: descr – a nested option configuration descriptor that now includes `optionFullName: string`; index – optional numeric index for collection items (appended as `[index]`).
Outputs: return... | js | MIT | diff --git a/src/core/options-manager.ts b/src/core/options-manager.ts
index 8885a12..89f156a 100644
--- a/src/core/options-manager.ts
+++ b/src/core/options-manager.ts
@@ -11,6 +11,7 @@ interface INestedOption {
}
interface INestedConfigDescr extends INestedOption {
+ optionFullName: string;
defaults: Reco... | Fix pulling templates from nested config-components
Fixes #285
Cherry-pick of #289 | Form: Tab render prop not working
<!--
Note: if the issue is a general React question, please check React Docs first: https://reactjs.org/docs
If your question is about DevExtreme widgets' APIs, use the DevExpress Support Center: https://www.devexpress.com/Support/Center
-->
### Issue Type
Bug Report
###... | DevExpress/devextreme-react | diff --git a/src/core/__tests__/template.test.tsx b/src/core/__tests__/template.test.tsx
index 2bb37fd..6435ab4 100644
--- a/src/core/__tests__/template.test.tsx
+++ b/src/core/__tests__/template.test.tsx
@@ -469,6 +469,12 @@ describe("component/render in nested options", () => {
<TestComponent>
... | [
"pass integrationOptions options for collection nested components"
] | [
"pass integrationOptions to widget",
"renders",
"renders with text node inside component",
"renders new template after component change",
"passes component option changes to widget",
"renders inside unwrapped container",
"renders template removeEvent listener",
"renders template removeEvent listener f... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://stackblitz.com/edit/react-aukapj",
"http... |
bdd1789e58021f6c107350047859365a4395ea48 | 2022-01-12 21:04:24 | docker.io/swerebenchv2/doctrine-migrations:1229-bdd1789 | doctrine__migrations-1229 | Method: AbstractSchemaManager.createComparator()
Location: Doctrine\DBAL\Schema\AbstractSchemaManager
Inputs: none
Outputs: Comparator instance (object implementing Doctrine\DBAL\Schema\Comparator)
Description: Returns a Comparator that can perform platform‑aware schema comparison. Used when the schema manager supports... | php | MIT | diff --git a/lib/Doctrine/Migrations/Generator/DiffGenerator.php b/lib/Doctrine/Migrations/Generator/DiffGenerator.php
index bd5c7469..77775570 100644
--- a/lib/Doctrine/Migrations/Generator/DiffGenerator.php
+++ b/lib/Doctrine/Migrations/Generator/DiffGenerator.php
@@ -12,6 +12,7 @@ use Doctrine\DBAL\Schema\Schema;
u... | Implement platform-aware schema comparison
This should fix many bugs because it eliminates a lot of false positive
and false negative diffs.
Closes #1227
| Implement platform-aware schema comparison
### Feature Request
<!-- Fill in the relevant information below to help triage your issue. -->
| Q | A
|------------ | ------
| New Feature | yes
| RFC | no
| BC Break | no
#### Summary
Since `doctrine/dbal` 3.2.0, regular comparison is d... | doctrine/migrations | diff --git a/tests/Doctrine/Migrations/Tests/Generator/DiffGeneratorTest.php b/tests/Doctrine/Migrations/Tests/Generator/DiffGeneratorTest.php
index 8fe37ca0..a614e104 100644
--- a/tests/Doctrine/Migrations/Tests/Generator/DiffGeneratorTest.php
+++ b/tests/Doctrine/Migrations/Tests/Generator/DiffGeneratorTest.php
@@ -7... | [
"Abstract Migration > Down migration is optional [11.21 ms]",
"Abstract Migration > Get description returns empty string [0.12 ms]",
"Abstract Migration > Add sql [0.24 ms]",
"Abstract Migration > Warn if dont output message if false [0.02 ms]",
"Abstract Migration > Skip if throws exception [0.07 ms]",
"... | [
"Abstract Migration > Warn if output message [0.11 ms]",
"Abstract Migration > Warn if add default message [0.03 ms]",
"Abstract Migration > Write invokes output writer [0.03 ms]",
"Abstract Migration > Abort if throws exception [0.03 ms]",
"Abstract Migration > Abort if dont throws exception [0.02 ms]",
... | {
"base_image_name": "php_8.3.16",
"docker_specs": null,
"install": [
"export COMPOSER_HOME=/tmp/composer",
"mkdir -p $COMPOSER_HOME",
"cat composer.json | sed 's/\"config\": {/\"config\": {\\n \"allow-plugins\": {\\n \"dealerdirect\\/phpcodesniffer-composer-installer\": true\\n ... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.doctrine-project.org/2021/11/26/dbal-3.2.0... |
9f086d047f0f1c9316b4a1bed812e97edae5236d | 2022-10-15 22:25:07 | docker.io/swerebenchv2/dprint-dprint-plugin-typescript:434-9f086d0 | dprint__dprint-plugin-typescript-434 | Method: ConfigurationBuilder.do_while_statement_next_control_flow_position(&mut self, value: NextControlFlowPosition) -> &mut Self
Location: src/configuration/builder.rs
Inputs:
- `self`: mutable reference to the configuration builder.
- `value`: a `NextControlFlowPosition` enum (`SameLine`, `NextLine`, or `Maintain`)... | rust | MIT | diff --git a/deployment/schema.json b/deployment/schema.json
index 13c65bd..4eeaf08 100644
--- a/deployment/schema.json
+++ b/deployment/schema.json
@@ -1049,6 +1049,9 @@
"tryStatement.nextControlFlowPosition": {
"$ref": "#/definitions/nextControlFlowPosition"
},
+ "doWhileStatement.nextControlFlowP... | feat: add `doWhileStatement.nextControlFlowPosition`
Closes #429 | nextControlFlowPosition doesn't apply to do/while
**Describe the bug**
dprint-plugin-typescript version: 0.74.0
With `nextControlFlowPosition=nextLine`, `while` is left on the same line as the brace.
**Input Code**
```ts
do {
console.log("hello")
} while (1 === 1);
```
**Expected Output**
```t... | dprint/dprint-plugin-typescript | diff --git a/tests/specs/statements/doWhileStatement/DoWhileStatement_NextControlFlowPosition_Maintain.txt b/tests/specs/statements/doWhileStatement/DoWhileStatement_NextControlFlowPosition_Maintain.txt
new file mode 100644
index 0000000..46656ee
--- /dev/null
+++ b/tests/specs/statements/doWhileStatement/DoWhileStatem... | [
"test_specs"
] | [
"configuration::resolve_config::tests::handle_global_config",
"configuration::resolve_config::tests::handle_global_config_default",
"configuration::resolve_config::tests::handle_deno_config",
"generation::sorting::module_specifiers::test::it_should_get_module_specifier_info_for_absolute",
"generation::sorti... | {
"base_image_name": "rust_1.77",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://dprint.dev/playground/#code/JYMwBAFAjGC89igSjA... |
7c814463223dd11ce364ebe74955484779e97ff9 | 2023-04-10 19:36:22 | docker.io/swerebenchv2/dprint-dprint-plugin-typescript:513-7c81446 | dprint__dprint-plugin-typescript-513 | No new interfaces are introduced. | rust | MIT | diff --git a/src/generation/generate.rs b/src/generation/generate.rs
index 693993c..ae5fd32 100644
--- a/src/generation/generate.rs
+++ b/src/generation/generate.rs
@@ -8435,7 +8435,9 @@ fn gen_conditional_brace_body<'a>(opts: GenConditionalBraceBodyOptions<'a>, cont
fn get_force_braces(body_node: Node) -> bool {
... | fix: keep braces on if & while statements when block body contains single decl
Closes #510 | Single line block with const variable has curlies removed
**Describe the bug**
dprint-plugin-typescript version: 0.84.0
**Input Code**
```ts
if (typeof err !== 'undefined') { const _err: Error = err; }
```
**Expected Output**
```ts
if (typeof err !== 'undefined') { const _err: Error = err; }
```
*... | dprint/dprint-plugin-typescript | diff --git a/tests/specs/issues/issue0510.txt b/tests/specs/issues/issue0510.txt
new file mode 100644
index 0000000..edf7ab8
--- /dev/null
+++ b/tests/specs/issues/issue0510.txt
@@ -0,0 +1,11 @@
+== should not remove braces in an if/while statement when the body contains a declaration ==
+if (true) { const _err = 5; }
... | [
"test_specs"
] | [
"configuration::resolve_config::tests::handle_global_config",
"generation::sorting::module_specifiers::test::it_should_compare_module_specifiers",
"generation::sorting::module_specifiers::test::it_should_get_module_specifier_info_for_absolute",
"configuration::resolve_config::tests::handle_deno_config",
"co... | {
"base_image_name": "rust_1.77",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://dprint.dev/playground/#code/JYMwBAFALgngDgUwPb... |
e5c32aa3d5ec9a16e6230162c7da39d023b64d3d | 2023-10-28 02:45:52 | docker.io/swerebenchv2/dtolnay-cxx:1281-e5c32aa | dtolnay__cxx-1281 | No new interfaces are introduced. | rust | Apache-2.0 | diff --git a/macro/src/expand.rs b/macro/src/expand.rs
index bcc660db..7715ba8f 100644
--- a/macro/src/expand.rs
+++ b/macro/src/expand.rs
@@ -142,6 +142,7 @@ fn expand(ffi: Module, doc: Doc, attrs: OtherAttrs, apis: &[Api], types: &Types)
#[allow(
non_camel_case_types,
non_snake_case... | Make compatible with deny(unsafe_op_in_unsafe_fn)
Closes #1191. | Use `unsafe` blocks in `unsafe fn`s
`cxx::bridge` generates code incompatible with the `unsafe_op_in_unsafe_fn` lint. Since this is a useful lint and it's likely to become an error in the future, `cxx::bridge` should wrap unsafe ops in `unsafe` blocks always.
Right now it's impossible to use it with `forbid(unsafe_... | dtolnay/cxx | diff --git a/tests/ffi/lib.rs b/tests/ffi/lib.rs
index 41ba0318..ef8d5b37 100644
--- a/tests/ffi/lib.rs
+++ b/tests/ffi/lib.rs
@@ -1,3 +1,4 @@
+#![forbid(unsafe_op_in_unsafe_fn)]
#![allow(
clippy::boxed_local,
clippy::derive_partial_eq_without_eq,
| [
"test_extern_c_function",
"test_impl_annotation",
"test_async_cxx_string",
"test_io_write",
"test_fmt_write",
"test_debug",
"test_cxx_vector_new",
"test_c_callback",
"test_c_call_r",
"test_c_method_calls",
"test_c_ns_method_calls",
"test_c_return",
"test_c_take",
"test_c_try_return",
"te... | [] | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": "12.2.0",
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
63d5a3c1e49989189d24119f4db508f616ed67a0 | 2019-07-20 18:35:17 | docker.io/swerebenchv2/elastic-curator:1437-63d5a3c | elastic__curator-1437 | Method: Close.__init__(self, ilo, delete_aliases=False, skip_flush=False)
Location: curator/actions.py
Inputs:
- ilo: an IndexList object providing the Elasticsearch client and list of indices.
- delete_aliases (bool, optional): when True, associated aliases are removed before closing.
- skip_flush (bool, optional):... | python | custom-check-github | diff --git a/curator/actions.py b/curator/actions.py
index 29e04ea..47e6743 100644
--- a/curator/actions.py
+++ b/curator/actions.py
@@ -254,12 +254,14 @@ class Allocation(object):
utils.report_failure(e)
class Close(object):
- def __init__(self, ilo, delete_aliases=False):
+ def __init__(self, il... | add skip_flush option for close action
Fixes #1412
## Proposed Changes
- Added a `skip_flush` option for the `close` action, defaults to `False`.
| Close action fails when index has unassigned shards
### Expected Behavior
Close action should be able to close indices with unassigned shards.
### Actual Behavior
Close action fails closing indices with unassigned shards.
### Steps to Reproduce the Problem
1. Spin up a cluster with at least 2 data nodes
1... | elastic/curator | diff --git a/test/integration/__init__.py b/test/integration/__init__.py
index 9204716..16defed 100644
--- a/test/integration/__init__.py
+++ b/test/integration/__init__.py
@@ -129,11 +129,11 @@ class CuratorTestCase(TestCase):
# pylint: disable=E1123
self.client.cluster.health(wait_for_status='yellow... | [
"test/unit/test_action_close.py::TestActionClose::test_do_action_with_skip_flush"
] | [
"test/unit/test_action_close.py::TestActionClose::test_do_action",
"test/unit/test_action_close.py::TestActionClose::test_do_action_delete_aliases_with_exception",
"test/unit/test_action_close.py::TestActionClose::test_do_action_raises_exception",
"test/unit/test_action_close.py::TestActionClose::test_do_acti... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/elastic/curator/blob/master/curator... |
aa7b664a5a24f02108decc149e7642a892f663b2 | 2020-07-19 18:09:51 | docker.io/swerebenchv2/ember-cli-eslint-plugin-ember:894-aa7b664 | ember-cli__eslint-plugin-ember-894 | No new interfaces are introduced. | js | MIT | diff --git a/lib/rules/no-attrs-in-components.js b/lib/rules/no-attrs-in-components.js
index 0f3c2974..f6be9a56 100644
--- a/lib/rules/no-attrs-in-components.js
+++ b/lib/rules/no-attrs-in-components.js
@@ -1,6 +1,7 @@
'use strict';
const types = require('../utils/types');
+const { isEmberComponent, isGlimmerCompon... | Ensure `no-attrs-in-components` rule only runs inside components
Fixes #890.
CC: @mongoose700 @miguelcobain | false positive in `ember/no-attrs-in-components`
Using the `attrs` property of the [JSONSerializer](https://api.emberjs.com/ember-data/3.19/classes/JSONSerializer/properties/attrs?anchor=attrs) results in a false positive in the `ember/no-attrs-in-components` rule.
Is there a way to scope this rule to just component... | ember-cli/eslint-plugin-ember | diff --git a/tests/lib/rules/no-attrs-in-components.js b/tests/lib/rules/no-attrs-in-components.js
index aedabda2..78726346 100644
--- a/tests/lib/rules/no-attrs-in-components.js
+++ b/tests/lib/rules/no-attrs-in-components.js
@@ -19,26 +19,37 @@ const ruleTester = new RuleTester({
ruleTester.run('no-attrs-in-compon... | [
"import Component from '@ember/component'; Component.extend({}); this.attrs.foo;",
"import Component from '@ember/component'; class MyComponent extends Component {} this.attrs.foo;",
"Random.extend({ init() { this.attrs.foo; } });",
"import Component from 'not-a-component'; class MyComponent extends Componen... | [
"export default Component.extend({});",
"import Model from '@ember-data/model';",
"import Model, { attr } from '@ember-data';",
"import LOL from 'who-knows-but-definitely-not-ember-data';",
"import DS from 'ember-data';",
"import DS, { Model } from 'ember-data';",
"import Model from 'ember-data/model';"... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://api.emberjs.com/ember-data/3.19/classes/JSONSe... |
f3f8eb46cfde36bbbe9a78f366b3b2c8279f03e6 | 2020-10-07 04:33:23 | docker.io/swerebenchv2/ember-cli-eslint-plugin-ember:973-f3f8eb4 | ember-cli__eslint-plugin-ember-973 | Function: create(context)
Location: lib/rules/no-try-invoke.js
Inputs:
- **context**: ESLint rule context object providing utilities such as `report` and access to the AST.
Outputs: None (the function registers AST node listeners and does not return a value).
Description: Called by ESLint when the rule is activated;... | js | MIT | diff --git a/README.md b/README.md
index 55436bb2..19e8f05c 100644
--- a/README.md
+++ b/README.md
@@ -124,6 +124,7 @@ Rules are grouped by category to help you understand their purpose. Each rule ha
| :white_check_mark::wrench: | [no-get-with-default](./docs/rules/no-get-with-default.md) | disallow usage of the Ember... | Add new rule `no-try-invoke`
Fixes #972 | New rule: Lint against `tryInvoke`
There is an open RFC to deprecate `tryInvoke`. We should also create a new lint rule against future usage of `tryInvoke`
RFC to deprecate `tryInvoke`:
https://github.com/emberjs/rfcs/pull/673 | ember-cli/eslint-plugin-ember | diff --git a/tests/lib/rules/no-try-invoke.js b/tests/lib/rules/no-try-invoke.js
new file mode 100644
index 00000000..7531be95
--- /dev/null
+++ b/tests/lib/rules/no-try-invoke.js
@@ -0,0 +1,47 @@
+const rule = require('../../../lib/rules/no-try-invoke');
+const RuleTester = require('eslint').RuleTester;
+
+const { ERR... | [
"should have tests for all rules",
"tryInvoke(this, 'foo');",
"import { tryInvoke } from '@ember/utils'; foo.tryInvoke(this, 'foo');",
"import { tryInvoke } from '@ember/utils'; tryInvoke.foo(this, 'foo');",
"import { tryInvoke } from '@ember/utils'; foo();"
] | [
"export default function setupApplicationTest(){};",
"export function setupApplicationTest(){};",
"import setupApplicationTest from 'tests/helpers/setup-application-test';",
"import { setupApplicationTest } from 'tests/helpers';",
"import setupApplicationTest from 'my-app-name/tests/helpers/setup-applicatio... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/emberjs/rfcs/pull/673"
],
"... |
bbee46905eec1e90667e6d65e4bd0d9d078775bf | 2016-03-27 06:12:07 | docker.io/swerebenchv2/eslint-doctrine:158-bbee469 | eslint__doctrine-158 | No new interfaces are introduced. | js | Apache-2.0 | diff --git a/.github/issue_template.md b/.github/issue_template.md
deleted file mode 100644
index e74389f..0000000
--- a/.github/issue_template.md
+++ /dev/null
@@ -1,14 +0,0 @@
-**What version are you using?**
-
-
-**What JSDoc comment were you trying to parse?**
-
-
-**What Doctrine options were you using (sloppy, un... | Fix: allow hyphens in names (fixes #116)
Whoops, I use `hub` on the command line and totally forgot to set my remote upstream before making the initial PR. Sorry for the confusion :grimacing:
I'm still learning about JSDoc so apologies if I missed something (this felt a little too easy), but thought I'd take a crac... | validation is failing at hyphen in @alias module:module-name
Examples:
- fails
```
/**
* Module desc
*
* @module module-name
*/
/**
* Constructor desc
*
* @constructor
* @alias module:module-name
*/
```
- works
```
/**
* Module desc
*
* @module module
*/
/**
* Constructor de... | eslint/doctrine | diff --git a/test/parse.js b/test/parse.js
index f24a5a0..9a45f8d 100644
--- a/test/parse.js
+++ b/test/parse.js
@@ -58,6 +58,13 @@ describe('parse', function () {
res.tags[0].should.have.property('name', 'module:mymodule/mymodule.init');
});
+ it('alias with namepath with hyphen in it', function () ... | [
"alias with namepath with hyphen in it",
"module with name that has a hyphen in it"
] | [
"parseType",
"parseParamType",
"alias",
"alias with name",
"alias with namepath",
"const",
"const with name",
"constant with name",
"const with type and name",
"constant with type and name",
"const multiple",
"const double",
"const triple",
"constructor",
"constructor with type",
"cons... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/eslint/eslint/issues/3319"
],
... |
084351bedb1001fc460e9acea4952b0b6139ec23 | 2018-01-28 15:30:54 | docker.io/swerebenchv2/eslint-eslint:9906-084351b | eslint__eslint-9906 | No new interfaces are introduced. | js | MIT | diff --git a/docs/rules/space-unary-ops.md b/docs/rules/space-unary-ops.md
index 8853d9239..d04bd4a45 100644
--- a/docs/rules/space-unary-ops.md
+++ b/docs/rules/space-unary-ops.md
@@ -59,7 +59,7 @@ This rule has three options:
In this case, spacing will be disallowed after a `new` operator and required before/after... | Update: space-unary-ops uses astUtils.canTokensBeAdjacent (fixes #9907)
<!--
ESLint adheres to the [JS Foundation Code of Conduct](https://js.foundation/community/code-of-conduct).
-->
**What is the purpose of this pull request? (put an "X" next to item)**
[ ] Documentation update
[x] Bug fix ([template](h... | Non reporting errors for redundant space between "typeof" and "(" - related to "space-unary-ops" rule.
**Tell us about your environment**
* **ESLint Version:** v4.16.0
* **Node Version:** v6.10.2
* **npm Version:** v5.6.0
**What parser (default, Babel-ESLint, etc.) are you using?**
Default
**Please show you... | eslint/eslint | diff --git a/tests/lib/rules/space-unary-ops.js b/tests/lib/rules/space-unary-ops.js
index 22efa2088..11b2c96bf 100644
--- a/tests/lib/rules/space-unary-ops.js
+++ b/tests/lib/rules/space-unary-ops.js
@@ -41,6 +41,7 @@ ruleTester.run("space-unary-ops", rule, {
code: "foo.bar --",
options: [{ n... | [
"delete (foo.bar)",
"typeof [foo]",
"void (foo)",
"void [foo]",
"function *foo() { yield (0) }"
] | [
"var o = { a: 1 };",
"var o = {",
"var o = {a: 1};",
"var expr = 'foo'; var o = { set [expr](value) { val = value; }, get [expr]() { return val; } };",
"var o = {set: function() {}}",
"Object.defineProperties(obj, {set: {value: function() {}}});",
"Object.create(null, {set: {value: function() {}}});",
... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
2d390345b6e9d7ebb695875bef693b3b4e5b0c8d | 2024-03-14 14:53:22 | docker.io/swerebenchv2/fatiando-harmonica:478-2d39034 | fatiando__harmonica-478 | Function: total_gradient_amplitude(grid)
Location: harmonica._transformations.total_gradient_amplitude
Inputs:
- **grid** (`xarray.DataArray`): A two‑dimensional regular grid (dimensions ordered *northing*, *easting*). The grid must have evenly‑spaced coordinates, contain no NaN values, and be exactly 2‑D.
Outputs:
-... | python | BSD-3-Clause | diff --git a/doc/api/index.rst b/doc/api/index.rst
index 8a522a2..2b85813 100644
--- a/doc/api/index.rst
+++ b/doc/api/index.rst
@@ -32,6 +32,7 @@ Apply well known transformations regular gridded potential fields data.
gaussian_lowpass
gaussian_highpass
reduction_to_pole
+ total_gradient_amplitude
... | Add total gradient amplitude transformation
<!--
Thank you for contributing a pull request to Fatiando! 💖
👆🏽 ABOVE: Describe the changes proposed and WHY you made them.
👇🏽 BELOW: Link to any relevant issue or pull request.
Please ensure you have taken a look at the CONTRIBUTING.md file
in this reposito... | Total gradient amplitude transformation
**Description of the desired feature:**
<!--
Add as much detail as you can in your description below. If possible, include an
example of how you would like to use this feature (even better if it's a code
example).
-->
A nice transformation to add to `harmonica` is the _to... | fatiando/harmonica | diff --git a/harmonica/tests/test_transformations.py b/harmonica/tests/test_transformations.py
index 78d4592..d93b365 100644
--- a/harmonica/tests/test_transformations.py
+++ b/harmonica/tests/test_transformations.py
@@ -25,6 +25,7 @@ from .._transformations import (
gaussian_highpass,
gaussian_lowpass,
... | [
"harmonica/tests/test_transformations.py::test_get_dataarray_coordinate[1-easting]",
"harmonica/tests/test_transformations.py::test_get_dataarray_coordinate[0-northing]",
"harmonica/tests/test_transformations.py::test_get_dataarray_coordinate_invalid_grid[1-easting]",
"harmonica/tests/test_transformations.py:... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://doi.org/10.1190/1.1443174"
],
"intent_... |
307f8fbcf4a280317a55f1633a709137455244ef | 2021-07-14 12:43:04 | docker.io/swerebenchv2/fhir-sushi:878-307f8fb | fhir__sushi-878 | No new interfaces are introduced. | ts | Apache-2.0 | diff --git a/src/fhirtypes/ElementDefinition.ts b/src/fhirtypes/ElementDefinition.ts
index 3644278..f9c02af 100644
--- a/src/fhirtypes/ElementDefinition.ts
+++ b/src/fhirtypes/ElementDefinition.ts
@@ -1500,14 +1500,17 @@ export class ElementDefinition {
}
// If the element is found in a discriminator.path, ... | Don't change min to 1 when a slice is assigned a value
We previously would bump min 0 to min 1 if you assigned a value directly to a slice path (and that path was also a discriminator for the slice). We don't do that anymore because we should never make an optional slice required.
The funny thing is that we had a t... | SUSHI incorrectly handles cardinality inference in sliced arrays
It seems like SUHSI incorrectly infers the cardinality of a sliced array when values are assigned within that sliced array. See this example below:
```
Alias: $loinc = http://loinc.org
Alias: $snomed = http://snomed.info/sct
Profile: RespRate
Paren... | FHIR/sushi | diff --git a/test/export/StructureDefinitionExporter.test.ts b/test/export/StructureDefinitionExporter.test.ts
index 3a016c6..a6670ea 100644
--- a/test/export/StructureDefinitionExporter.test.ts
+++ b/test/export/StructureDefinitionExporter.test.ts
@@ -3963,6 +3963,51 @@ describe('StructureDefinitionExporter R4', () =>... | [
"should not ensure that minimum cardinality is 1 when assigning a value mentioned in a slice discriminator via $this",
"should not change slice cardinality when an AssignmentRule is applied directly on the slice"
] | [
"should throw MismatchedTypeException when attempting to assign a value with an unsupported type",
"should throw ValueAlreadyAssignedError when assigning a value assigned via parent pattern",
"should ensure that minimum cardinality is 1 when assigning a value mentioned in a parent slice discriminator",
"shoul... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm ci"
],
"log_parser": "parse_log_js_4",
"test_cmd": "npx jest --verbose --no-color --maxWorkers=4 --testTimeout=10000"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/FHIR/sushi/issues/810"
],
"... |
ef09b5e2bc87f41fb713b939fbec9a6cef66a148 | 2025-05-20 06:04:11 | docker.io/swerebenchv2/gardener-machine-controller-manager:995-ef09b5e | gardener__machine-controller-manager-995 | Method: controller.terminateMachines(ctx context.Context, machines []*machinev1.Machine, machineSet *machinev1.MachineSet) error
Location: pkg/controller/machineset.go
Inputs:
- **ctx** (context.Context): cancellation/timeout context for the operation.
- **machines** ([]*machinev1.Machine): list of Machine objects t... | go | Apache-2.0 | diff --git a/README.md b/README.md
index 5e3ea28be..3fd15f98b 100644
--- a/README.md
+++ b/README.md
@@ -100,7 +100,7 @@ See [here](docs/documents/apis.md) for CRD API Documentation
<td>There is a Safety Controller responsible for handling the unidentified or unknown behaviours from the cloud providers. Sa... | Don't update machine status to terminating on deletion failure
**What this PR does / why we need it**:
Upon failure in deletion of a machine, it should not transition to `Terminating` phase.
**Which issue(s) this PR fixes**:
Fixes #984
**Special notes for your reviewer**:
**Release note**:
<!-- Write your... | [machineset controller] Do not update machine status if there is an error adding `deletionTimestamp`
**How to categorize this issue?**
<!--
Please select area, kind, and priority for this issue. This helps the community categorizing it.
Replace below TODOs or exchange the existing identifiers with those that fit best i... | gardener/machine-controller-manager | diff --git a/pkg/controller/controller_suite_test.go b/pkg/controller/controller_suite_test.go
index ba8246ded..6ad214e7f 100644
--- a/pkg/controller/controller_suite_test.go
+++ b/pkg/controller/controller_suite_test.go
@@ -465,6 +465,7 @@ func createController(
controller.machineControl = FakeMachineControl{
c... | [
"TestUpdateHealth",
"TestUpdateHealth/update_health_from_false_to_true",
"TestUpdateHealth/update_health_from_true_to_false",
"TestUpdateHealth/update_health_with_same_value",
"TestHealthz",
"TestHealthz/respond_with_200_when_healthy",
"TestHealthz/respond_with_500_when_not_healthy",
"TestCloneAndAddL... | [
"TestConfigz"
] | {
"base_image_name": "go_1.23.8",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.23.0",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.94,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/gardener/machine-controller-manager... |
e7156a76422de82342b4673d217004f384f427ed | 2023-11-16 19:04:38 | docker.io/swerebenchv2/getmoto-moto:7035-e7156a7 | getmoto__moto-7035 | Method: S3Backend.put_public_access_block(self, bucket_name: str, pub_block_config: Optional[Dict[str, Any]])
Location: moto/s3/models.py
Inputs: bucket_name – name of the bucket to modify (string); pub_block_config – optional dictionary with PublicAccessBlock settings (e.g., BlockPublicAcls, IgnorePublicAcls, BlockPub... | python | Apache-2.0 | diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md
index 104eeb140..5d8ba44d1 100644
--- a/IMPLEMENTATION_COVERAGE.md
+++ b/IMPLEMENTATION_COVERAGE.md
@@ -6173,7 +6173,7 @@
## s3
<details>
-<summary>64% implemented</summary>
+<summary>65% implemented</summary>
- [X] abort_multipart_upload
- [X... | Docs: mark S3:put_public_access_block() as implemented
Fixes #7034 | put_public_access_block marked as unimplemented for s3
In http://docs.getmoto.org/en/latest/docs/services/s3.html, `put_public_access_block` is marked as unimplemented. `get_public_access_block` and `delete_public_access_block` are marked as implemented.
I notice that all three are marked as implemented for `s3contro... | getmoto/moto | diff --git a/tests/test_s3/test_s3_config.py b/tests/test_s3/test_s3_config.py
index b40289848..040984ed0 100644
--- a/tests/test_s3/test_s3_config.py
+++ b/tests/test_s3/test_s3_config.py
@@ -22,9 +22,7 @@ def test_s3_public_access_block_to_config_dict():
}
# Add a public access block:
- s3_config_query... | [
"tests/test_s3/test_s3_config.py::test_s3_public_access_block_to_config_dict"
] | [
"tests/test_s3/test_s3_config.py::test_list_config_discovered_resources",
"tests/test_s3/test_s3_config.py::test_s3_lifecycle_config_dict",
"tests/test_s3/test_s3_config.py::test_s3_notification_config_dict",
"tests/test_s3/test_s3_config.py::test_s3_acl_to_config_dict",
"tests/test_s3/test_s3_config.py::te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"http://docs.getmoto.org/en/latest/docs/services/s3.htm... |
4c99cbbb9de6179c5d8ff30e0b810ce9f6d206d0 | 2024-06-27 21:32:44 | docker.io/swerebenchv2/getmoto-moto:7795-4c99cbb | getmoto__moto-7795 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/dynamodb/models/table.py b/moto/dynamodb/models/table.py
index 06ff8721b..2696608fe 100644
--- a/moto/dynamodb/models/table.py
+++ b/moto/dynamodb/models/table.py
@@ -713,30 +713,30 @@ class Table(CloudFormationModel):
f"Range Key comparison but no range key found for index: {... | DynamoDB: query() should use all range keys when sorting
Fixes #7788 | DynamoDB pagination not returning correct results for GSI when table has no range key
This is very similar to #7761 and perhaps related to #7751 but I'm finding that I get incorrect results when using pagination on a DynamoDB table that does not have a range key, when querying a GSI.
To illustrate, I've tweaked the ... | getmoto/moto | diff --git a/tests/test_dynamodb/test_dynamodb_query.py b/tests/test_dynamodb/test_dynamodb_query.py
index 5968013af..4770efd3e 100644
--- a/tests/test_dynamodb/test_dynamodb_query.py
+++ b/tests/test_dynamodb/test_dynamodb_query.py
@@ -770,3 +770,43 @@ class TestFilterExpression:
"app": "app1",
... | [
"tests/test_dynamodb/test_dynamodb_query.py::test_query_gsi_pagination_with_string_gsi_range_no_sk",
"tests/test_dynamodb/test_dynamodb_scan.py::test_scan_gsi_pagination_with_string_gsi_range_no_sk"
] | [
"tests/test_dynamodb/test_dynamodb_query.py::test_query_gsi_range_comparison",
"tests/test_dynamodb/test_dynamodb_query.py::test_key_condition_expressions",
"tests/test_dynamodb/test_dynamodb_query.py::test_query_pagination",
"tests/test_dynamodb/test_dynamodb_query.py::test_query_gsi_pagination",
"tests/te... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
54ca6d0c7776fb861f8a082e86085d05ebdb82f3 | 2025-04-08 07:11:21 | docker.io/swerebenchv2/getmoto-moto:8780-54ca6d0 | getmoto__moto-8780 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/rds/models.py b/moto/rds/models.py
index f3621b1df..3a291b6d6 100644
--- a/moto/rds/models.py
+++ b/moto/rds/models.py
@@ -2690,7 +2690,7 @@ class RDSBackend(BaseBackend):
if database.status != "available":
raise InvalidDBInstanceStateError(db_instance_identifier, "stop")
... | RDS: snapshot type should be `manual` when stopping a DBInstance
Fixes #8779 | [RDS - Moto 5.1.3] stop_db_instance does not respect DBSnapshotIdentifier as manual snapshots
When calling stop_db_instance, you can provide a DBSnapshotIdentifier to create a manual snapshot as part of the db stop action. However, moto incorrectly tags this snapshot as an "automatic" snapshot instead of a manual one.
... | getmoto/moto | diff --git a/tests/test_rds/test_rds.py b/tests/test_rds/test_rds.py
index 78dd005c4..7fdf0446c 100644
--- a/tests/test_rds/test_rds.py
+++ b/tests/test_rds/test_rds.py
@@ -289,6 +289,7 @@ def test_start_database(client):
assert response["DBInstance"]["DBInstanceStatus"] == "stopped"
response = client.describ... | [
"tests/test_rds/test_rds.py::test_start_database"
] | [
"tests/test_rds/test_rds.py::test_create_database",
"tests/test_rds/test_rds.py::test_create_database_already_exists",
"tests/test_rds/test_rds.py::test_database_with_deletion_protection_cannot_be_deleted",
"tests/test_rds/test_rds.py::test_create_database_no_allocated_storage",
"tests/test_rds/test_rds.py:... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
3a7f5ee899399c10796a0006f3daeba1a72d0987 | 2025-06-22 20:45:05 | docker.io/swerebenchv2/getmoto-moto:9005-3a7f5ee | getmoto__moto-9005 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/moto/dynamodb/parsing/key_condition_expression.py b/moto/dynamodb/parsing/key_condition_expression.py
index e7454c88e..ee0ecd4ae 100644
--- a/moto/dynamodb/parsing/key_condition_expression.py
+++ b/moto/dynamodb/parsing/key_condition_expression.py
@@ -242,4 +242,9 @@ def validate_schema(
if {"S": ... | DynamoDB: Query() should validate extra Attrs in KeyExpression
Fixes #8655
All tests are validated against AWS. | ValidationException not detected on DynamoDB query
### Bug description
Making a query to a DynamoDB Table Index with two different key values throws the following error:
```
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the Query operation: Query key condition not supported
```... | getmoto/moto | diff --git a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
index 51769d4fc..9aa994560 100644
--- a/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
+++ b/tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py
@@ -142,29 +142,80 @@ d... | [
"tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_query_table_with_wrong_attrs_used_in_key_condition_expression"
] | [
"tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_query_gsi_with_wrong_key_attribute_names_throws_exception",
"tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_empty_expressionattributenames",
"tests/test_dynamodb/exceptions/test_dynamodb_exceptions.py::test_empty_expressionattri... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
c38143930df7fe0501d71318c84a3ecbe7355007 | 2020-10-10 08:45:42 | docker.io/swerebenchv2/gluesql-gluesql:91-c381439 | gluesql__gluesql-91 | No new interfaces are introduced. | rust | Apache-2.0 | diff --git a/src/data/row.rs b/src/data/row.rs
index 412cfa4c..1f7f883b 100644
--- a/src/data/row.rs
+++ b/src/data/row.rs
@@ -58,21 +58,36 @@ impl Row {
let name = name.to_string();
let i = match columns.len() {
- 0 => Ok(i),
- _ => columns
- ... | Implement DEFAULT column option support in CREATE TABLE
resolve #75 | DEFAULT column attribute support for CREATE TABLE
```sql
CREATE TABLE Foo (
id INTEGER DEFAULT 1
);
```
For now, create sql query is accepted but not working.
Modification in [row.rs](https://github.com/gluesql/gluesql/blob/main/src/data/row.rs) is required. | gluesql/gluesql | diff --git a/src/tests/default.rs b/src/tests/default.rs
new file mode 100644
index 00000000..7f10a707
--- /dev/null
+++ b/src/tests/default.rs
@@ -0,0 +1,43 @@
+use crate::*;
+
+pub fn default(mut tester: impl tests::Tester) {
+ use Value::*;
+
+ let test_cases = [
+ (
+ "CREATE TABLE Test (
+ ... | [
"default"
] | [
"data::value::tests::eq",
"drop_table",
"basic",
"arithmetic_blend",
"aggregate_group_by",
"blend",
"aggregate",
"error",
"arithmetic",
"join_blend",
"filter",
"migrate",
"nullable_text",
"nullable",
"sql_types",
"ordering",
"nested_select",
"synthesize",
"join"
] | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/gluesql/gluesql/blob/main/src/data/... |
d9e86743b89807ac1cf344aa03a1d15ce832a9a4 | 2022-09-09 06:48:08 | docker.io/swerebenchv2/google-yamlfmt:42-d9e8674 | google__yamlfmt-42 | Method: BasicFormatter.Format(yamlContent []byte) ([]byte, error)
Location: formatters/basic/formatter.go (receiver *BasicFormatter)
Inputs: yamlContent – the raw YAML document as a byte slice; may contain empty lines that should be preserved.
Outputs: A byte slice containing the formatted YAML with original line‑break... | go | Apache-2.0 | diff --git a/formatters/basic/formatter.go b/formatters/basic/formatter.go
index 3aeeaee..144dd47 100644
--- a/formatters/basic/formatter.go
+++ b/formatters/basic/formatter.go
@@ -43,7 +43,25 @@ func (f *BasicFormatter) Format(yamlContent []byte) ([]byte, error) {
reader = bytes.NewReader(yamlContent)
}
- decod... | fix #27 retain line break | Retain line breaks
Sometimes yaml blocks will have a line break between them for human readability, for example:
```
block_a:
b: "some stuff"
block_b:
a: "some more info"
```
Today, this will end up being formatted like this:
```
block_a:
b: "some stuff"
block_b:
a: "some more info"
```
It would... | google/yamlfmt | diff --git a/formatters/basic/formatter_test.go b/formatters/basic/formatter_test.go
index c33dc70..f5604a3 100644
--- a/formatters/basic/formatter_test.go
+++ b/formatters/basic/formatter_test.go
@@ -113,3 +113,69 @@ func TestEmojiSupport(t *testing.T) {
t.Fatalf("expected string to contain 😊, got: %s", resultStr)... | [
"TestRetainLineBreaks",
"TestRetainLineBreaks/basic",
"TestRetainLineBreaks/literal_string"
] | [
"TestNewWithConfigRetainsDefaultValues",
"TestNewWithConfigRetainsDefaultValues/only_indent_specified",
"TestNewWithConfigRetainsDefaultValues/only_include_document_start_specified",
"TestNewWithConfigRetainsDefaultValues/only_line_ending_style_specified",
"TestNewWithConfigRetainsDefaultValues/all_specifie... | {
"base_image_name": "go_1.21.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.21.0",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": ... |
04435bb0b97e8f63d328a1bf6a2bbeb5dd6d84f1 | 2023-03-22 06:16:42 | docker.io/swerebenchv2/hdmf-dev-hdmf:839-04435bb | hdmf-dev__hdmf-839 | Method: Multi.__init__(self, name: str, bars: List[Bar], attr3: float, **kwargs)
Location: Dynamically generated container class for the data type definition “Multi” (produced by MCIClassGenerator in ``hdmf.build.classgenerator``).
Inputs:
- **name** (str): the name of the container instance (required by the base ``Con... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2242062..015da62 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,11 @@
# HDMF Changelog
+## Upcoming
+
+### Bug fixes
+- Fixed issue with dynamic class generation for a multi-container interface where one or more are required. @rly
+ [#839](https://github.com/h... | Fix issue with get_class and MCI with +
## Motivation
Fix #838
## How to test the behavior?
```
pytest
```
## Checklist
- [x] Did you update CHANGELOG.md with your changes?
- [x] Have you checked our [Contributing](https://github.com/hdmf-dev/hdmf/blob/dev/docs/CONTRIBUTING.rst) document?
- [x] Have y... | [Bug]: Cannot generate custom MultiContainerInterface class with "+"
### What happened?
For a data type spec like the following:
```yaml
data_type_def: MyType
doc: ...
groups:
- data_type_inc: MySubType
doc: ...
quantity: +
```
In the generated class, the generated `__init__` method requires a val... | hdmf-dev/hdmf | diff --git a/tests/unit/build_tests/test_classgenerator.py b/tests/unit/build_tests/test_classgenerator.py
index e9fcc78..d675f7e 100644
--- a/tests/unit/build_tests/test_classgenerator.py
+++ b/tests/unit/build_tests/test_classgenerator.py
@@ -372,7 +372,7 @@ class TestDynamicContainer(TestCase):
assert multi... | [
"tests/unit/build_tests/test_classgenerator.py::TestDynamicContainer::test_multi_container_spec_one_or_more_ok"
] | [
"tests/unit/build_tests/test_classgenerator.py::TestClassGenerator::test_bad_generator",
"tests/unit/build_tests/test_classgenerator.py::TestClassGenerator::test_no_generators",
"tests/unit/build_tests/test_classgenerator.py::TestClassGenerator::test_register_generator",
"tests/unit/build_tests/test_classgene... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/hdmf-dev/hdmf/blob/dev/.github/CODE_O... |
7e84a8a17385d1f184db11335eb5c77e37fc5205 | 2019-12-23 20:53:26 | docker.io/swerebenchv2/horike37-serverless-step-functions:288-7e84a8a | horike37__serverless-step-functions-288 | No new interfaces are introduced. | js | custom-check-github | diff --git a/README.md b/README.md
index 2d3bc7f..5e9c3b1 100644
--- a/README.md
+++ b/README.md
@@ -980,6 +980,25 @@ stepFunctions:
You can specify tags on each state machine. Additionally any global tags (specified under `provider` section in your `serverless.yml`) would be merged in as well.
+If you _don't_ wan... | fix: #287 don't include Tags property if no tags provided
Global tags become optional for inheriting
fixes #287 | Blank tags property erroring in certain AWS regions
# This is a Bug Fix (kind of) and a Feature Proposal
## Description
For bug reports:
* What went wrong?
* Compiled Cloudformation failed due to [Tags](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-stepfunctions-statemachine.html... | horike37/serverless-step-functions | diff --git a/lib/deploy/stepFunctions/compileStateMachines.test.js b/lib/deploy/stepFunctions/compileStateMachines.test.js
index 84894d6..9899d61 100644
--- a/lib/deploy/stepFunctions/compileStateMachines.test.js
+++ b/lib/deploy/stepFunctions/compileStateMachines.test.js
@@ -546,6 +546,76 @@ describe('#compileStateMac... | [
"should not add tags property to state machine if none are provided",
"should not inherit global tags if inheritGlobalTags is set to false"
] | [
"should compile api key resource",
"throw error if apiKey property is not an array",
"throw error if an apiKey is not a string",
"should create preflight method for CORS enabled resource",
"should throw error if maxAge is not an integer greater than 0",
"should throw error if maxAge is not an integer",
... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://docs.aws.amazon.com/AWSCloudFormation/latest/U... |
93fd7a2bb3a5da207706c01ea1f654c3340bce38 | 2021-02-11 07:12:54 | docker.io/swerebenchv2/http-apis-hydrus:556-93fd7a2 | http-apis__hydrus-556 | No new interfaces are introduced. | python | MIT | diff --git a/.travis.yml b/.travis.yml
index 5b69676..d1acfe8 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,9 +1,11 @@
language: python
python:
- "3.6"
- - "3.6-dev" # 3.6 development branch
+ - "3.6-dev" # 3.6 development branch
- "3.7"
- "3.7-dev" # 3.7 development branch
+ - "3.8"
+ - "3.8-dev" # ... | Unique constraint for member ID in collections
<!-- Please create/claim an issue before sending a PR -->
<!-- Add issue number (Eg: fixes #123) -->
Fixes #555
### Checklist
- [x] My branch is up-to-date with upstream/develop branch.
- [x] Everything works and tested for Python 3.6.0 and above.
### Descripti... | Avoid insertion of duplicate members in a collection
### I'm submitting a
- [x] bug report.
- [ ] feature request.
### Current Behaviour:
<!-- Describe about the bug -->
Currently, a member with the same ID can be added multiple times in the same collection.
### Expected Behaviour:
<!-- Describe what will hap... | HTTP-APIs/hydrus | diff --git a/hydrus/tests/functional/test_app.py b/hydrus/tests/functional/test_app.py
index e142829..cc4b996 100644
--- a/hydrus/tests/functional/test_app.py
+++ b/hydrus/tests/functional/test_app.py
@@ -135,6 +135,26 @@ class TestApp():
data=json.dumps(dummy_ob... | [
"hydrus/tests/functional/test_app.py::TestApp::test_Collections_constraint_PUT"
] | [
"hydrus/tests/functional/test_app.py::TestApp::test_Index",
"hydrus/tests/functional/test_app.py::TestApp::test_EntryPoint_context",
"hydrus/tests/functional/test_app.py::TestApp::test_Vocab",
"hydrus/tests/functional/test_app.py::TestApp::test_Collections_GET",
"hydrus/tests/functional/test_app.py::TestApp... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
3a9252eb858e6c2d604e906407cc641556c8c1f7 | 2021-06-22 15:09:09 | docker.io/swerebenchv2/http-apis-hydrus:591-3a9252e | http-apis__hydrus-591 | No new interfaces are introduced. | python | MIT | diff --git a/hydrus/data/helpers/items_helpers.py b/hydrus/data/helpers/items_helpers.py
index a4f8280..898f7ff 100644
--- a/hydrus/data/helpers/items_helpers.py
+++ b/hydrus/data/helpers/items_helpers.py
@@ -121,7 +121,7 @@ def items_delete_response(path: str, int_list="") -> Response:
"""
_, parsed_classes ... | Added functional tests for PUT/DELETE multiple class objects
<!-- Please create (if there is not one yet) a issue before sending a PR -->
<!-- Add issue number (Eg: fixes #123) -->
<!-- Always provide changes in existing tests or new tests -->
Fixes #586
### Checklist
- [x] My branch is up-to-date with upstre... | Add tests for PUT/DELETE request for multiple Class objects in test_app.py
### I'm submitting a
- [ ] bug report.
- [x] feature request.
### Current Behaviour:
<!-- Describe about the bug -->
Currently, we don’t have any tests for PUT/DELETE request for multiple Class objects in test_app.py.
We do have some te... | HTTP-APIs/hydrus | diff --git a/tests/functional/test_app.py b/tests/functional/test_app.py
index 5634248..652fd4e 100644
--- a/tests/functional/test_app.py
+++ b/tests/functional/test_app.py
@@ -313,17 +313,69 @@ class TestApp():
class_methods = [x.method for x in class_.supportedOperation]
data... | [
"tests/functional/test_app.py::TestApp::test_multiple_object_DELETE"
] | [
"tests/functional/test_app.py::TestApp::test_Index",
"tests/functional/test_app.py::TestApp::test_EntryPoint_context",
"tests/functional/test_app.py::TestApp::test_Vocab",
"tests/functional/test_app.py::TestApp::test_fragments",
"tests/functional/test_app.py::TestApp::test_Collections_GET",
"tests/functio... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
a5d11a227a6d7828ed641464e78ffe71996511fc | 2020-10-29 12:06:27 | docker.io/swerebenchv2/hypothesisworks-hypothesis:2653-a5d11a2 | hypothesisworks__hypothesis-2653 | No new interfaces are introduced. | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..ffafcd56c
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,5 @@
+RELEASE_TYPE: minor
+
+:func:`~hypothesis.strategies.from_type` now knows how to resolve :pep:`585`
+parameterized standard collec... | Support PEP 585 parametrized standard types
[PEP 585](https://www.python.org/dev/peps/pep-0585/), the new-in-Python 3.9 feature that enables type annotations like `list[int]` rather than `typing.List[int]`, turns out to require some minor patches in `st.from_type()`.
This PR makes those changes, and closes #2629 ... | Test `st.from_type()` on builtin generics from Python 3.9
Python 3.9 is coming out soon! Happily, we're already running it in our CI - so anything that worked before still works on the new Python. There are however also *new features*, like [PEP 585](https://www.python.org/dev/peps/pep-0585/) (type annotations using ... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/conftest.py b/hypothesis-python/tests/conftest.py
index 68611f585..d43892c71 100644
--- a/hypothesis-python/tests/conftest.py
+++ b/hypothesis-python/tests/conftest.py
@@ -29,6 +29,8 @@ run()
# Skip collection of tests which require the Django test runner,
# or that don't work on ... | [
"hypothesis-python/tests/cover/test_lookup_py37.py::test_resolving_standard_tuple1_as_generic",
"hypothesis-python/tests/cover/test_lookup_py37.py::test_resolving_standard_tuple2_as_generic",
"hypothesis-python/tests/cover/test_lookup_py37.py::test_resolving_standard_tuple_variadic_as_generic",
"hypothesis-py... | [] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://www.python.org/dev/peps/pep-0585/",
"https... |
5401530075b680cbc8f9e92b83ab603003854063 | 2023-11-05 01:07:38 | docker.io/swerebenchv2/hypothesisworks-hypothesis:3785-5401530 | hypothesisworks__hypothesis-3785 | Method: resolve_Tuple(thing)
Location: hypothesis.strategies._internal.types (registered via @register for typing.Tuple)
Inputs:
- thing: a typing.Tuple type object (e.g., tuple[int], Tuple[str, …]); may have __args__ specifying element types.
Outputs:
- A hypothesis Strategy that generates tuples matching the suppli... | python | custom-check-github | diff --git a/hypothesis-python/RELEASE.rst b/hypothesis-python/RELEASE.rst
new file mode 100644
index 000000000..98a86ab0e
--- /dev/null
+++ b/hypothesis-python/RELEASE.rst
@@ -0,0 +1,7 @@
+RELEASE_TYPE: patch
+
+This patch refactors ``from_type(typing.Tuple)``, allowing
+:func:`~hypothesis.strategies.register_type_str... | Allow registration of tuples
If this works (🤞), it'll fix #3750 and close #3782.
The underlying problem here is that old versions of the `typing` module had some really weird implementation details; happily they've been steadily cleaned up and with Python 3.7 now end of life we can simplify our handling considerabl... | `register_type_strategy` doesn't seem to work on parameterized generic types
The docs for `register_type_strategy` say that instead of registering `tuple[int]`, I can register `tuple` with a function that takes the type and return the strategy. I may be misunderstanding, but I take this to mean that I can register
`st... | HypothesisWorks/hypothesis | diff --git a/hypothesis-python/tests/cover/test_lookup_py39.py b/hypothesis-python/tests/cover/test_lookup_py39.py
index c860cd3bc..0cd538289 100644
--- a/hypothesis-python/tests/cover/test_lookup_py39.py
+++ b/hypothesis-python/tests/cover/test_lookup_py39.py
@@ -149,3 +149,11 @@ def test_only_tuple_subclasses_in_typi... | [
"hypothesis-python/tests/cover/test_lookup_py39.py::test_lookup_registered_tuple"
] | [
"hypothesis-python/tests/cover/test_lookup_py39.py::test_typing_Annotated[Annotated-integers()]",
"hypothesis-python/tests/cover/test_lookup_py39.py::test_typing_Annotated[Annotated-lists(floats())]",
"hypothesis-python/tests/cover/test_lookup_py39.py::test_typing_Annotated[Annotated-text()]",
"hypothesis-pyt... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
d5c6403692866dcda19d45eabe030abd18ab9768 | 2024-01-02 00:12:05 | docker.io/swerebenchv2/i18next-i18next-parser:957-d5c6403 | i18next__i18next-parser-957 | No new interfaces are introduced. | js | MIT | diff --git a/src/transform.js b/src/transform.js
index 4a2ca2b..3cd7f7d 100644
--- a/src/transform.js
+++ b/src/transform.js
@@ -298,21 +298,21 @@ export default class i18nTransform extends Transform {
typeof sort === 'function'
? sort
: makeDefaultSort(this.options.pluralSepa... | Fix --fail-on-update false negatives from new sort code.
This replaces the code that previously tried to check for sorting via a wrapped `compare` function with a much simpler approach: JSON encode the old and (sorted) new version and see if they match. This code only runs if we have not already seen an update to the k... | Regression with version 8.0.11
## 🐛 Bug Report
After upgrade to 8.0.11, this command fail:
```
i18next 'src/**/*.{ts,tsx}' --config i18next-parser.config.js --fail-on-update --silent
```
With
```
> i18next 'src/**/*.{ts,tsx}' --config i18next-parser.config.js --fail-on-update --silent
[error] Some ... | i18next/i18next-parser | diff --git a/test/locales/en/test_sort.json b/test/locales/en/test_sort.json
deleted file mode 100644
index 95b4334..0000000
--- a/test/locales/en/test_sort.json
+++ /dev/null
@@ -1,4 +0,0 @@
-{
- "second": "second",
- "first": "first"
-}
diff --git a/test/locales/en/test_sort_sorted.json b/test/locales/en/test_sort_... | [
"parser does not fail on sort with already sorted keys with failOnUpdate option:"
] | [
"parser parses globally on multiple lines:",
"parser parses multiline function calls:",
"parser creates context keys:",
"parser parses html files:",
"parser parses handlebars files:",
"parser parses javascript files:",
"parser parses react files:",
"parser parses typescript files:",
"parser creates ... | {
"base_image_name": "node_20",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
7d709f7fb328e42b2aa95f97e15dc9fa53fee215 | 2023-03-08 19:09:05 | docker.io/swerebenchv2/imdario-mergo:231-7d709f7 | imdario__mergo-231 | Function: WithOverwriteWithEmptyValue(config *Config)
Location: mergo package – option function passed to mergo.Merge to adjust merge semantics.
Inputs:
- **config** *(*Config)* – pointer to a mergo.Config object. The function sets the internal flag overwriteWithEmptySrc to true, which tells the merge engine to treat ... | go | BSD-3-Clause | diff --git a/merge.go b/merge.go
index 4b47d0b..1bf26cf 100644
--- a/merge.go
+++ b/merge.go
@@ -205,6 +205,16 @@ func deepMerge(dst, src reflect.Value, visited map[uintptr]*visit, depth int, co
dst.SetMapIndex(key, srcElement)
}
}
+
+ // Ensure that all keys in dst are deleted if they are not in src.
+ i... | fix: Respect overwriteWithEmptySrc when merging maps
Fixes #230.
Bug originally identified in https://github.com/pulumi/pulumi-kubernetes/issues/2331. | Mergo is not overriding destination map key with empty value with WithOverwriteWithEmptyValue
When trying to merge two maps, mergo does not respect`WithOverwriteWithEmptyValue`.
Eg:
```
destination := map[string]string{"a": "valueOfA"}
source := map[string]string{"b": "valueOfB", "c": "valueOfC"}
mergo.Merge... | imdario/mergo | diff --git a/issue230_test.go b/issue230_test.go
new file mode 100644
index 0000000..129f037
--- /dev/null
+++ b/issue230_test.go
@@ -0,0 +1,85 @@
+package mergo_test
+
+import (
+ "testing"
+
+ "github.com/imdario/mergo"
+)
+
+var testDataM = []struct {
+ M1 mapTest
+ M2 mapTest... | [
"TestMergeMapWithOverride"
] | [
"Test_deepMergeTransformerInvalidDestination",
"TestIssue100",
"TestStructToRecord",
"TestIssue121WithSliceDeepCopy",
"TestIssue123",
"TestIssue125MergeWithOverwrite",
"TestIssue129Boolean",
"TestIssue131MergeWithOverwriteWithEmptyValue",
"TestMergeEmbedded",
"TestIssue138",
"TestIssue143",
"T... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://go.dev/play/p/kR8K-G7sPPt"
],
"intent_... |
191ff75e93d56446b2c051f4dbb33e2f0e7be71d | 2021-08-17 02:10:04 | docker.io/swerebenchv2/ipython-traitlets:670-191ff75 | ipython__traitlets-670 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/traitlets/traitlets.py b/traitlets/traitlets.py
index f441550..6bdf741 100644
--- a/traitlets/traitlets.py
+++ b/traitlets/traitlets.py
@@ -2644,6 +2644,12 @@ class List(Container):
return super(List, self).validate_elements(obj, value)
+ def set(self, obj, value):
+ if isinstance(va... | Fixes #668 ( passing a single element for a list on CLI)
cc @fcollonval | Single list element interpreted as string => error
Reported on JupyterLab Gitter by @mlucool
> Hello. What's the correct way to pass --LabApp.extra_labextensions_path=/path/to/dir on the CLI when there is exactly one extra path? Passing that gives "The 'app_dir' trait of a LabApp instance expected a unicode string, ... | ipython/traitlets | diff --git a/traitlets/config/tests/test_loader.py b/traitlets/config/tests/test_loader.py
index 74289dc..103eeef 100644
--- a/traitlets/config/tests/test_loader.py
+++ b/traitlets/config/tests/test_loader.py
@@ -327,6 +327,13 @@ class TestKeyValueCL(TestCase):
c = C(config=config)
assert c.list_trait... | [
"traitlets/config/tests/test_loader.py::TestKeyValueCL::test_list_single_item",
"traitlets/config/tests/test_loader.py::TestArgParseKVCL::test_list_single_item"
] | [
"traitlets/config/tests/test_loader.py::TestFileCL::test_collision",
"traitlets/config/tests/test_loader.py::TestFileCL::test_context_manager",
"traitlets/config/tests/test_loader.py::TestFileCL::test_json",
"traitlets/config/tests/test_loader.py::TestFileCL::test_json_context_bad_write",
"traitlets/config/... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
2023cbb75fc4d0287317cb25a295a68b6accab71 | 2023-12-28 00:02:17 | docker.io/swerebenchv2/jeremymailen-kotlinter-gradle:358-2023cbb | jeremymailen__kotlinter-gradle-358 | No new interfaces are introduced. | kotlin | Apache-2.0 | diff --git a/src/main/kotlin/org/jmailen/gradle/kotlinter/tasks/ConfigurableKtLintTask.kt b/src/main/kotlin/org/jmailen/gradle/kotlinter/tasks/ConfigurableKtLintTask.kt
index 2322bafb..74c6d3bb 100644
--- a/src/main/kotlin/org/jmailen/gradle/kotlinter/tasks/ConfigurableKtLintTask.kt
+++ b/src/main/kotlin/org/jmailen/gr... | Fixes #327
h/t @mateuszkwiecinski for figuring this one out.
After a build failure, logic before did not check for changed editorconfig files since that scenario is not "incremental".
Instead we always return changed editorconfig files.
Update tests accordingly. | Lint task sometimes does not re-run when editorconfig changes
Although we are supposed to consider the editorconfig file contents a build input and re-run lint tasks when it changes, somehow this isn't happening sometimes. It often leads users to perceive that one of their editorconfig settings is not working.
Referen... | jeremymailen/kotlinter-gradle | diff --git a/src/test/kotlin/org/jmailen/gradle/kotlinter/functional/EditorConfigTest.kt b/src/test/kotlin/org/jmailen/gradle/kotlinter/functional/EditorConfigTest.kt
index 2b19e0d6..cec116bd 100644
--- a/src/test/kotlin/org/jmailen/gradle/kotlinter/functional/EditorConfigTest.kt
+++ b/src/test/kotlin/org/jmailen/gradl... | [
"formatKotlin fails when lint errors not automatically fixed and failBuildWhenCannotAutoFormat enabled() (org.jmailen.gradle.kotlinter.functional.KotlinJsProjectTest)",
"lintKotlin fails when lint errors detected() (org.jmailen.gradle.kotlinter.functional.KotlinJsProjectTest)",
"lintKotlin passes when on valid ... | [] | {
"base_image_name": "kotlin-jdk-21",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
1d9fc9cfdfa5080fc6c0235c57166fab72c56671 | 2025-01-02 11:11:50 | docker.io/swerebenchv2/jhillyerd-enmime:360-1d9fc9c | jhillyerd__enmime-360 | No new interfaces are introduced. | go | MIT | diff --git a/internal/stringutil/addr.go b/internal/stringutil/addr.go
index c3eaa42..4a02a83 100644
--- a/internal/stringutil/addr.go
+++ b/internal/stringutil/addr.go
@@ -34,6 +34,7 @@ func EnsureCommaDelimitedAddresses(s string) string {
inQuotes := false
inDomain := false
escapeSequence := false
+ inAngles :=... | fix: Handle spaces inside angle brackets
closes #339 | Possible to handle these `From:` values?
I got messages with `From:` like this:
```
From: Name< user@domain.com >
From: Name <sales@a.com >
```
Both report `unclosed angle-addr` error, but MUAs work fine.
I wonder whether we can handle this in enmime. :) | jhillyerd/enmime | diff --git a/internal/stringutil/addr_test.go b/internal/stringutil/addr_test.go
index 0ce4eac..a4e3624 100644
--- a/internal/stringutil/addr_test.go
+++ b/internal/stringutil/addr_test.go
@@ -108,6 +108,22 @@ func TestCommaDelimitedAddressLists(t *testing.T) {
have: `"Joe @ Company" <joe@company.com>;<other@compan... | [
"TestCommaDelimitedAddressLists",
"TestCommaDelimitedAddressLists/\"Joe_@_Company\"_<joe@company.com_>;<other@company.com>",
"TestCommaDelimitedAddressLists/\"Joe_@_Company\"_<joe@company.com>;<other@company.com_____>",
"TestCommaDelimitedAddressLists/\"Joe_@_Company\"_<joe@company.com>;<__other@company.com>"... | [
"TestBoundaryReader",
"TestBoundaryReaderBuffer",
"TestBoundaryReaderEOF",
"TestBoundaryReaderParts",
"TestBoundaryReaderPartialRead",
"TestBoundaryReaderNoMatch",
"TestBoundaryReaderNoTerminator",
"TestBoundaryReaderBufferBoundaryAbut",
"TestBoundaryReaderBufferBoundaryCross",
"TestBoundaryReader... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
8d2d934ce5650f450ffe1f441313e26c75e1fdab | 2020-07-13 14:38:12 | docker.io/swerebenchv2/jhump-protoreflect:337-8d2d934 | jhump__protoreflect-337 | No new interfaces are introduced. | go | Apache-2.0 | diff --git a/desc/protoparse/parser.go b/desc/protoparse/parser.go
index ef27aff..d9d74ed 100644
--- a/desc/protoparse/parser.go
+++ b/desc/protoparse/parser.go
@@ -717,6 +717,8 @@ func createParseResult(filename string, file *fileNode, errs *errorHandler) *par
// nil AST means there was an error that prevented any ... | fix panic when protoparse consuming non-proto file
If the parsing fails immediately due to first token being invalid, it can result in a `*file` AST node result that has no range set (e.g. no `first` and `last` tokens set). This results in a nil-pointer dereference panic later.
Fixes #334 | protoparse: panic in (*basicCompositeNode).start
Hi!
I tried fuzzing 1.7.0 with the help of @bradleyjkemp's excellent fuzzing method from https://github.com/jhump/protoreflect/issues/271 and ran into a pretty interesting panic. It is reproduced by using a file with a single `0`. This reproduces the panic:
```go
... | jhump/protoreflect | diff --git a/desc/protoparse/validate_test.go b/desc/protoparse/validate_test.go
index 0c0e39f..3963f97 100644
--- a/desc/protoparse/validate_test.go
+++ b/desc/protoparse/validate_test.go
@@ -244,6 +244,30 @@ func TestBasicValidation(t *testing.T) {
contents: `message Foo { oneof foo { group bar = 1 { } } }`,
... | [
"TestBasicValidation"
] | [
"TestLexer",
"TestLexerErrors",
"TestSimpleLink",
"TestMultiFileLink",
"TestProto3Optional",
"TestLinkerValidation",
"TestProto3Enums",
"TestCustomErrorReporterWithLinker",
"TestOptionsInUnlinkedFiles",
"TestEmptyParse",
"TestSimpleParse",
"TestAggregateValueInUninterpretedOptions",
"TestPar... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.92,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/jhump/protoreflect/issues/271"
],... |
c4b83c7653dbcb42bc330ae135777dbbba380619 | 2017-02-11 20:21:00 | docker.io/swerebenchv2/jlongster-prettier:668-c4b83c7 | jlongster__prettier-668 | No new interfaces are introduced. | js | MIT | diff --git a/src/printer.js b/src/printer.js
index 32301d62a..b99391c46 100644
--- a/src/printer.js
+++ b/src/printer.js
@@ -2253,12 +2253,12 @@ function printMemberChain(path, options, print) {
}
const printedGroups = groups.map(printGroup);
-
const oneLine = concat(printedGroups);
+ const hasComment = gro... | Member chain comments
When there is a comment right before the first `.`, we want to force break such that the comment is printed on its own line.
Note: this needs to be based on-top of #667 as it always indent the first `.`
Fixes #613 | Member Chain comments are eaten away
```js
function f() {
return observableFromSubscribeFunction()
// Debounce manually rather than using editor.onDidStopChanging so that the debounce time is
// configurable.
.debounceTime(debounceInterval);
}
```
turns into
```js
function f() {
return ob... | jlongster/prettier | diff --git a/tests/comments/__snapshots__/jsfmt.spec.js.snap b/tests/comments/__snapshots__/jsfmt.spec.js.snap
index 1b6ba4899..246208c14 100644
--- a/tests/comments/__snapshots__/jsfmt.spec.js.snap
+++ b/tests/comments/__snapshots__/jsfmt.spec.js.snap
@@ -364,14 +364,12 @@ export type BuckWebSocketMessage =
};
... | [
"issues.js"
] | [
"number.js",
"empty_switch.js",
"windows.js",
"trailing.js",
"test.js",
"class.js",
"nested-functions.spec.js",
"brackets.js",
"long-line.js",
"multiple_standalones.js",
"bracket.js",
"empty.js",
"function-bind.js",
"function-union.js",
"is-string-decl.js",
"logical-or.js",
"object-i... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.95,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://jlongster.github.io/prettier/#%7B%22content%22... |
1e51d0f030bb06f1e46a2cb7c9776ff46acd4043 | 2023-05-22 09:56:35 | docker.io/swerebenchv2/joelittlejohn-jsonschema2pojo:1522-1e51d0f | joelittlejohn__jsonschema2pojo-1522 | Method: JsonPointerUtils.encodeReferenceToken(String s)
Location: org.jsonschema2pojo.JsonPointerUtils
Inputs: a raw reference‑token string; may contain the characters '/', '#', '.', and now also '?' which need to be escaped.
Outputs: a string where each '/', '#', '.', and '?' is replaced by "~1", "~2", "~3", and "~4" ... | java | Apache-2.0 | diff --git a/jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/JsonPointerUtils.java b/jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/JsonPointerUtils.java
index dc923f2b..b2fce9ec 100644
--- a/jsonschema2pojo-core/src/main/java/org/jsonschema2pojo/JsonPointerUtils.java
+++ b/jsonschema2pojo-core/src/main/... | Add support for property names containing question mark(s)
Closes #1513 | question mark as part of json property name means I'm unable to generate Java classes
I'm consuming a schema JSON from a vendor I don't control. The JSON contains some fields ending with a question mark (property-name?). this is of course not viewed as legal by the plugin. When the field is named the same as another ... | joelittlejohn/jsonschema2pojo | diff --git a/jsonschema2pojo-core/src/test/java/org/jsonschema2pojo/JsonPointerUtilsTest.java b/jsonschema2pojo-core/src/test/java/org/jsonschema2pojo/JsonPointerUtilsTest.java
index c286cfc6..56423aad 100644
--- a/jsonschema2pojo-core/src/test/java/org/jsonschema2pojo/JsonPointerUtilsTest.java
+++ b/jsonschema2pojo-co... | [
"org.jsonschema2pojo.JsonPointerUtilsTest",
"org.jsonschema2pojo.cli.UrlConverterTest",
"org.jsonschema2pojo.cli.ArgumentsTest",
"org.jsonschema2pojo.cli.ClassConverterTest",
"org.jsonschema2pojo.maven.MatchPatternsFileFilterTest",
"---NO TEST NAME FOUND YET---"
] | [
"org.jsonschema2pojo.util.TypeUtilTest",
"org.jsonschema2pojo.util.JavaVersionTest",
"org.jsonschema2pojo.util.InflectorTest",
"org.jsonschema2pojo.util.MakeUniqueClassNameTest",
"org.jsonschema2pojo.util.NameHelperTest",
"org.jsonschema2pojo.rules.DigitsRuleTest",
"org.jsonschema2pojo.rules.EnumRuleTes... | {
"base_image_name": "java_11",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"jav... | {
"llm_metadata": {
"code": "A",
"confidence": 0.88,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
81bf74f5652911c40ef5402145123648166ba5fc | 2023-08-22 01:49:33 | docker.io/swerebenchv2/joshuakgoldberg-template-typescript-node-package:679-81bf74f | joshuakgoldberg__template-typescript-node-package-679 | Function: updateLocalFiles(options)
Location: src/initialize/steps/updateLocalFiles.ts
Inputs:
- options: object conforming to `UpdateLocalFilesOptions`
* description: string – the desired package description (may be used for replacement when `package.json` already contains a description)
* npmAuthor: st... | ts | MIT | diff --git a/package.json b/package.json
index 60c8c2f..9dba8f6 100644
--- a/package.json
+++ b/package.json
@@ -45,7 +45,7 @@
"@clack/prompts": "^0.7.0",
"all-contributors-for-repository": "^0.0.10",
"chalk": "^5.3.0",
- "execa": "^7.2.0",
+ "execa": "^8.0.0",
"git-remote-origin-url": "^4.0.0",
"git-u... | feat: allow blank package.json in readFileSafeAsJson
## PR Checklist
- [x] Addresses an existing open issue: fixes #678
- [x] That issue was marked as [`status: accepting prs`](https://github.com/JoshuaKGoldberg/template-typescript-node-package/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
-... | 🚀 Feature: updateLocalFiles should allow a blank package.json
### Bug Report Checklist
- [X] I have tried restarting my IDE and the issue persists.
- [X] I have pulled the latest `main` branch of the repository.
- [X] I have [searched for related issues](https://github.com/JoshuaKGoldberg/template-typescript-node-pac... | JoshuaKGoldberg/template-typescript-node-package | diff --git a/src/initialize/steps/updateLocalFiles.test.ts b/src/initialize/steps/updateLocalFiles.test.ts
new file mode 100644
index 0000000..154c750
--- /dev/null
+++ b/src/initialize/steps/updateLocalFiles.test.ts
@@ -0,0 +1,318 @@
+import { describe, expect, it, vi } from "vitest";
+
+import { updateLocalFiles } fr... | [
"src/initialize/steps/updateLocalFiles.test.ts > updateLocalFiles > replaces using the common replacements when the existing package data is empty",
"src/initialize/steps/updateLocalFiles.test.ts > updateLocalFiles > replaces using the extra replacements when the existing package data is full"
] | [
"src/initialize/steps/migrateBranchProtectionSettings.test.ts > migrateBranchProtectionSettings > returns false when the request receives a 403 response",
"src/initialize/steps/migrateBranchProtectionSettings.test.ts > migrateBranchProtectionSettings > throws the error when the request throws with a non-403 respo... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"export DEBIAN_FRONTEND=noninteractive",
"npm install -g --force pnpm@8.7.0",
"pnpm install --frozen-lockfile",
"pnpm run build"
],
"log_parser": "parse_log_js_4",
"test_cmd": "pnpm run test --run --no-color --reporter=verbos... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/JoshuaKGoldberg/template-typescript-n... |
9e1f96b6f9e7a6eefe24a470e282352ace7713e6 | 2020-04-17 20:51:07 | docker.io/swerebenchv2/jpsim-yams:248-9e1f96b | jpsim__yams-248 | No new interfaces are introduced. | swift | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index a22d6a38..87d293ca 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -30,6 +30,10 @@
##### Bug Fixes
+* Fix `Yams.dump` when object contains a keyed null value.
+ [JP Simard](https://github.com/jpsim)
+ [#232](https://github.com/jpsim/Yams/issues/232)
+
* Fix a bug... | Fixes https://github.com/jpsim/Yams/issues/232 | dump failed if there is a nil value

I am using Swift 5.1 and Xcode 11.2.1.
I try to debug the Yams, and it throw a error:
```swift
private func represent(_ value: Any) throws -> Node {
if let string ... | jpsim/Yams | diff --git a/Tests/YamsTests/RepresenterTests.swift b/Tests/YamsTests/RepresenterTests.swift
index 47e553ba..4829b479 100644
--- a/Tests/YamsTests/RepresenterTests.swift
+++ b/Tests/YamsTests/RepresenterTests.swift
@@ -106,7 +106,20 @@ class RepresenterTests: XCTestCase {
}
func testOptional() throws {
+ ... | [
"RepresenterTests.testOptional"
] | [
"ConstructorTests.testBinary",
"ConstructorTests.testBool",
"ConstructorTests.testFloat",
"ConstructorTests.testInt",
"ConstructorTests.testMap",
"ConstructorTests.testMerge",
"ConstructorTests.testNull",
"ConstructorTests.testOmap",
"ConstructorTests.testPairs",
"ConstructorTests.testQuotationMar... | {
"base_image_name": "swift_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://user-images.githubusercontent.com/1251192/692466... |
3b2e96f624bd898cc96e964cd63194d58701ca4a | 2024-04-30 08:58:32 | docker.io/swerebenchv2/keats-tera:908-3b2e96f | keats__tera-908 | No new interfaces are introduced. | rust | MIT | diff --git a/docs/content/docs/_index.md b/docs/content/docs/_index.md
index 73fb5b5..7eda240 100644
--- a/docs/content/docs/_index.md
+++ b/docs/content/docs/_index.md
@@ -200,7 +200,8 @@ would be rendered as `Hello {{ name }}`.
### Whitespace control
Tera comes with easy to use whitespace control: use `{%-` if yo... | Closes #882
Closes #882 | `if` statement with parens fails to parse
The following fails to parse with tera but works fine with jinja2:
```
{% if (brand.id == "barfoo") or (brand.id == "foobar") %}LOL{% endif %}
```
with the following error:
```
Tera error: Error { kind: Msg("Failed to parse 'test.html'"), source: Some(Error { kind: Msg(... | Keats/tera | diff --git a/src/parser/tests/parser.rs b/src/parser/tests/parser.rs
index 5a793f6..73db69b 100644
--- a/src/parser/tests/parser.rs
+++ b/src/parser/tests/parser.rs
@@ -360,6 +360,30 @@ fn parse_variable_tag_negated_expr() {
);
}
+#[test]
+fn parse_variable_tag_negated_expr_with_parentheses() {
+ let ast = p... | [
"parser::tests::parser::parse_variable_tag_negated_expr_with_parentheses",
"renderer::tests::basic::render_if_elif_else",
"test_error_in_grandchild_template_location",
"test_error_macros_self_inexisting",
"test_error_render_field_unknown_in_forloop",
"test_error_in_child_template_location",
"test_error_... | [
"builtins::filters::array::tests::test_concat_single_value",
"builtins::filters::array::tests::test_concat_array",
"builtins::filters::array::tests::test_first",
"builtins::filters::array::tests::test_filter_empty",
"builtins::filters::array::tests::test_filter",
"builtins::filters::array::tests::test_fir... | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
570e9388377500f1f0f311a3ace0d2d3e54a8bc5 | 2023-07-05 17:34:09 | docker.io/swerebenchv2/kubernetes-sigs-cloud-provider-azure:4234-570e938 | kubernetes-sigs__cloud-provider-azure-4234 | No new interfaces are introduced. | go | Apache-2.0 | diff --git a/pkg/provider/azure.go b/pkg/provider/azure.go
index 455874f1c..e608da04d 100644
--- a/pkg/provider/azure.go
+++ b/pkg/provider/azure.go
@@ -76,7 +76,6 @@ import (
"sigs.k8s.io/cloud-provider-azure/pkg/azureclients/zoneclient"
azcache "sigs.k8s.io/cloud-provider-azure/pkg/cache"
"sigs.k8s.io/cloud-pro... | Issue 4230: remove readiness check for cache exclusion
<!-- Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://git.k8s.io/community/contributors/guide/first-contribution.md#your-first-contribution and developer guide https:/... | Load Balancer Node membership not being updated for externalTrafficPolicy Local
#### What happened:
When creating a cluster and creating the first service with `externalTrafficPolicy: Local`, we are observing that the new nodes are not added to the load balancer in a timely manner as they should be.
It takes one... | kubernetes-sigs/cloud-provider-azure | diff --git a/pkg/provider/azure_test.go b/pkg/provider/azure_test.go
index f23414e4e..1c1a2d496 100644
--- a/pkg/provider/azure_test.go
+++ b/pkg/provider/azure_test.go
@@ -3554,7 +3554,7 @@ func TestUpdateNodeCacheExcludeLoadBalancer(t *testing.T) {
az.nodeZones = map[string]sets.Set[string]{zone: nodesInZone}
az.... | [
"TestUpdateNodeCacheExcludeLoadBalancer"
] | [
"TestGetLoadBalancer",
"TestGetLoadBalancer/GetLoadBalancer_should_return_true_when_only_public_IP_exists",
"TestGetLoadBalancer/GetLoadBalancer_should_return_false_when_neither_public_IP_nor_LB_exists",
"TestGetLoadBalancer/GetLoadBalancer_should_return_true_when_external_service_finds_external_LB",
"TestG... | {
"base_image_name": "go_1.23.8",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.23.1",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/kubernetes/kubernetes/pull/109706",... |
bb5e5502bf49d5e3ec4d1a1d027c2290c7bf35bf | 2024-10-16 16:42:56 | docker.io/swerebenchv2/marcoieni-release-plz:1778-bb5e550 | marcoieni__release-plz-1778 | No new interfaces are introduced. | rust | Apache-2.0 | diff --git a/crates/release_plz/src/config.rs b/crates/release_plz/src/config.rs
index 7aa45270..fa55e9ad 100644
--- a/crates/release_plz/src/config.rs
+++ b/crates/release_plz/src/config.rs
@@ -128,6 +128,9 @@ pub struct Workspace {
/// # PR Name
/// Tera template of the pull request's name created by releas... | feat: add pr_body field
Closes #1741 | Add configuration field to customize the pr body
## Motivations
Not everyone likes the default release PR body.
## Solution
Add a [config](https://github.com/MarcoIeni/release-plz/blob/46f6489613eeb5a68d01c7845f0622f722c80d6a/website/docs/config.md#L52) field called `pr_body`. Similar to the `git_tag_name` fie... | MarcoIeni/release-plz | diff --git a/.schema/latest.json b/.schema/latest.json
index 540adf2a..ff75c160 100644
--- a/.schema/latest.json
+++ b/.schema/latest.json
@@ -50,6 +50,7 @@
"git_release_type": null,
"git_tag_enable": null,
"git_tag_name": null,
+ "pr_body": null,
"pr_branch_prefix": null,
... | [
"generate_schema::tests::schema_is_up_to_date",
"completion_test::test_generate_completions",
"changelog::tests::changelog_has_commit_id",
"changelog_parser::tests::changelog_header_is_parsed",
"changelog::tests::changelog_sort_newest",
"changelog_parser::tests::changelog_header_isnt_recognized",
"chang... | [
"token::tests::test_parse_cargo_credentials_empty",
"token::tests::test_parse_cargo_credentials_cratesio_only",
"token::tests::test_parse_cargo_credentials_both",
"tests::changes_files_except_typechanges_are_detected",
"tests::inexistent_previous_commit_detected",
"tests::clean_project_is_recognized",
"... | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": "1.89.0",
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/MarcoIeni/release-plz/blob/46f64896... |
dff6aa070dd493891a5e04fc701d7bad4b0d7043 | 2016-09-14 03:00:37 | docker.io/swerebenchv2/mozilla-nunjucks:849-dff6aa0 | mozilla__nunjucks-849 | No new interfaces are introduced. | js | BSD-2-Clause | diff --git a/src/filters.js b/src/filters.js
index 0465b61..d8fc12e 100644
--- a/src/filters.js
+++ b/src/filters.js
@@ -124,8 +124,11 @@ var filters = {
},
safe: function(str) {
+ if (str instanceof r.SafeString) {
+ return str;
+ }
str = (str === null || str === undefined... | fix: safe should call toString
close #847
relate: https://github.com/mozilla/nunjucks/pull/843#discussion-diff-78676929 | `{{ arr | safe }}` should not escape
`render('{{ arr | safe }}', { arr: [ '<html>' ] })` => `<html>`
https://github.com/mozilla/nunjucks/blob/master/src/runtime.js#L190
@vecmezoni is this a bug or user should use `{{ arr | join | safe }}` ? | mozilla/nunjucks | diff --git a/tests/compiler.js b/tests/compiler.js
index 05b9271..7079ec4 100644
--- a/tests/compiler.js
+++ b/tests/compiler.js
@@ -1313,20 +1313,28 @@
expect(res).to.be('');
});
- render('{{ foo | safe }}', { foo: null }, { autoescape: true }, function (err, res) {
- ... | [
"should autoescape if autoescape is on"
] | [
"should always force compilation of parent template",
"should handle correctly relative paths",
"should handle correctly cache for relative paths",
"should handle correctly relative paths in renderString",
"should compile templates",
"should escape newlines",
"should compile references",
"should fail ... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/mozilla/nunjucks/blob/master/src/runt... |
99e3b464afb883e5088d56d34909a11765da9c8e | 2024-10-20 02:05:41 | docker.io/swerebenchv2/mpmath-mpmath:881-99e3b46 | mpmath__mpmath-881 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/mpmath/libmp/libmpf.py b/mpmath/libmp/libmpf.py
index fe2d3c8..18399b1 100644
--- a/mpmath/libmp/libmpf.py
+++ b/mpmath/libmp/libmpf.py
@@ -1098,7 +1098,7 @@ def to_digits_exp(s, dps, base=10):
return sign, digits, exponent
def round_digits(sign, digits, dps, base, rounding=round_nearest,
- ... | Correct 'g' format type handling
Closes #880 | Incompatible (wrt CPython) formatting for format(mpmath.mpf(9.995074823339339e-05), '.0g')
```pycon
>>> format(9.995074823339339e-05, '.0g')
'0.0001'
>>> format(mpmath.mpf(9.995074823339339e-05), '.0g')
'1e-04'
```
see https://github.com/mpmath/mpmath/actions/runs/11398339589/job/31715210493 | mpmath/mpmath | diff --git a/mpmath/tests/test_format.py b/mpmath/tests/test_format.py
index 9d96d48..7036988 100644
--- a/mpmath/tests/test_format.py
+++ b/mpmath/tests/test_format.py
@@ -467,6 +467,7 @@ def test_mpf_fmt_cpython():
st.floats(allow_nan=True,
allow_infinity=True,
allow_subnor... | [
"mpmath/tests/test_format.py::test_mpf_floats_bulk"
] | [
"mpmath/tests/test_format.py::test_mpf_fmt_cpython",
"mpmath/tests/test_format.py::test_mpc_complexes",
"mpmath/tests/test_format.py::test_mpc_fmt",
"mpmath/tests/test_format.py::test_mpf_fmt",
"mpmath/tests/test_format.py::test_issue_858",
"mpmath/tests/test_format.py::test_errors",
"mpmath/tests/test_... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/mpmath/mpmath/actions/runs/11398339... |
b5939d514675b064f18c36842078db8ef14e6186 | 2019-03-12 19:10:30 | docker.io/swerebenchv2/neurodatawithoutborders-pynwb:846-b5939d5 | neurodatawithoutborders__pynwb-846 | Method: NWBFile.add_analysis(self, data_interface)
Location: src/pynwb/file.py (NWBFile class)
Inputs:
- **data_interface** (TimeSeries or any object subclassing NWBDataInterface) – the analysis result to be added; its `name` must be unique within the file’s analysis namespace.
Outputs: None (side‑effect only). The pr... | python | custom-check-github | diff --git a/src/pynwb/file.py b/src/pynwb/file.py
index 5511439e..3fdca7b1 100644
--- a/src/pynwb/file.py
+++ b/src/pynwb/file.py
@@ -239,6 +239,8 @@ class NWBFile(MultiContainerInterface):
{'name': 'lab', 'type': str, 'doc': 'lab where experiment was performed', 'default': None},
{'name': 'a... | fix nwbfile.analysis access
## Motivation
fix #845
## How to test the behavior?
```python
from pynwb import NWBFile, NWBHDF5IO, TimeSeries
from pynwb.behavior import BehavioralTimeSeries
import numpy as np
import datetime
filename = "./debug.nwb"
nwbfile_out = NWBFile(
session_description='test f... | file.analysis and file.get_analysis cannot access BehavioralTimeSeries
## 1) Bug
Cannot access analysis (write works fine).
### Steps to Reproduce
```
from pynwb import NWBFile, NWBHDF5IO, TimeSeries
from pynwb.behavior import BehavioralTimeSeries
import numpy as np
import datetime
filename = "./debug.nwb... | NeurodataWithoutBorders/pynwb | diff --git a/tests/integration/ui_write/test_nwbfile.py b/tests/integration/ui_write/test_nwbfile.py
index c669df66..5e446359 100644
--- a/tests/integration/ui_write/test_nwbfile.py
+++ b/tests/integration/ui_write/test_nwbfile.py
@@ -133,6 +133,9 @@ class TestNWBFileIO(base.TestMapNWBContainer):
self.ts = Tim... | [
"tests/integration/ui_write/test_nwbfile.py::TestNWBFileIO::test_read"
] | [
"tests/integration/ui_write/test_nwbfile.py::TestNWBFileIO::test_children",
"tests/integration/ui_write/test_nwbfile.py::TestNWBFileIO::test_write",
"tests/integration/ui_write/test_nwbfile.py::TestSubjectIO::test_roundtrip",
"tests/integration/ui_write/test_nwbfile.py::TestEpochsRoundtrip::test_roundtrip",
... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/NeurodataWithoutBorders/pynwb/issues/... |
af9c98a08e36bc863a3b7ab7be739e3d08a6a632 | 2019-07-03 22:23:57 | docker.io/swerebenchv2/neurodatawithoutborders-pynwb:998-af9c98a | neurodatawithoutborders__pynwb-998 | No new interfaces are introduced. | python | custom-check-github | diff --git a/src/pynwb/core.py b/src/pynwb/core.py
index 0d6511c8..1f7d8339 100644
--- a/src/pynwb/core.py
+++ b/src/pynwb/core.py
@@ -165,7 +165,8 @@ class NWBBaseType(with_metaclass(ExtenderMeta, Container)):
template = "\n{} {}\nFields:\n""".format(getattr(self, 'name'), type(self))
for k in sorted... | Do not include empty lists/dicts in NWBFile repr()
A minor enhancement. Fix #940. Printing NWBFile was:
```
root <class 'pynwb.file.NWBFile'>
Fields:
acquisition: {
name <class 'pynwb.base.TimeSeries'>,
name2 <class 'pynwb.base.TimeSeries'>
}
analysis: { }
devices: { }
elect... | Do not print empty containers in string representation of NWBFile
## 2) Feature Request
When printing an `NWBFile`, there are many fields that are not relevant to most users. This adds clutter. It can also be intimidating for users who are learning the format and regularly print objects to inspect them and debug.
... | NeurodataWithoutBorders/pynwb | diff --git a/tests/unit/test_core.py b/tests/unit/test_core.py
index f6cafc45..e9d89c3f 100644
--- a/tests/unit/test_core.py
+++ b/tests/unit/test_core.py
@@ -335,22 +335,11 @@ Fields:
name <class 'pynwb.base.TimeSeries'>,
name2 <class 'pynwb.base.TimeSeries'>
}
- analysis: { }
- devices: { }
- electrod... | [
"tests/unit/test_core.py::TestPrint::test_print_file"
] | [
"tests/unit/test_core.py::TestDynamicTable::test_add_column",
"tests/unit/test_core.py::TestDynamicTable::test_add_row",
"tests/unit/test_core.py::TestDynamicTable::test_add_to_file",
"tests/unit/test_core.py::TestDynamicTable::test_constructor_ElementIdentifier_ids",
"tests/unit/test_core.py::TestDynamicTa... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/NeurodataWithoutBorders/pynwb/issues/... |
865cd3c3618d7409971425550073a0b8c5882ef2 | 2019-08-16 13:00:11 | docker.io/swerebenchv2/nix-community-nixpkgs-fmt:108-865cd3c | nix-community__nixpkgs-fmt-108 | No new interfaces are introduced. | rust | Apache-2.0 | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e6678bb..132eb87 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -15,7 +15,7 @@ repos:
entry: nixpkgs-fmt --in-place
language: rust
files: \.nix$
- minimum_pre_commit_version: 1.18.1
+ minimum_... | don't indent top-level let
closes #92 | sample: indented let body
whenever a let..in block is being added, it re-indents the whole body, creating a lot of noise in the diff.
Maybe it's worth special-casing at least for the top-level to not indent the body?
## Input
```nix
{ stdenv, fetchFromGitHub }:
let
pname = "hello";
version = "1.2.3";
in
st... | nix-community/nixpkgs-fmt | diff --git a/test_data/indent_let.good.nix b/test_data/indent_let.good.nix
index 8141353..04b44d2 100644
--- a/test_data/indent_let.good.nix
+++ b/test_data/indent_let.good.nix
@@ -3,4 +3,4 @@ let
y = 2;
inherit z;
in
- x + y + z
+x + y + z
diff --git a/test_data/issue-83-1.good.nix b/test_data/issue-83-1.good.... | [
"rules::tests::test_bad_good_tests"
] | [
"engine::fixes::tests::test_node_indent_ranges",
"rules::tests::smoke",
"tests::preserves_dos_line_endings",
"rules::tests::test_syntax_errors_tests",
"rules::tests::test_fuzz_failures",
"rules::tests::test_inline_indentation_tests",
"rules::tests::test_inline_spacing_tests"
] | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
329b1001755452c96dcefcf4a3c799a2463710e0 | 2021-05-19 17:49:17 | docker.io/swerebenchv2/pallets-click:1915-329b100 | pallets__click-1915 | Method: MultiCommand.resolve_command(self, ctx, args)
Location: src/click/core.py (class MultiCommand, subclass of Command)
Inputs:
- **ctx** – a `click.Context` object representing the current execution context.
- **args** – a list of raw command‑line arguments (strings) that have not yet been parsed.
Outputs... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index b59fc44..6d807d1 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -20,6 +20,11 @@ Unreleased
regular options do from ``default``. :issue:`1886`
- Added documentation that custom parameter types may be passed
already valid values in addition to strings. :issue:`1898... | return resolved name, not original name
Reverts #1422, but updates the documentation to get the desired behavior instead. Always returning the command's original name ignored that the command could be registered with a different name like `group.add_command(cmd, name)`.
<!--
Link to relevant issues or previous PRs,... | Click 8.0.0 `group.add_command(..)` does not replace name in description and when looking up defaults
With click 8.0.0 `click.group.add_command(..)` changed the behavior in how new command names are used:
Both the help text for the command as well as when looking up default values in `default_map` the previous command... | pallets/click | diff --git a/tests/test_commands.py b/tests/test_commands.py
index 79f87fa..9ebf612 100644
--- a/tests/test_commands.py
+++ b/tests/test_commands.py
@@ -285,6 +285,10 @@ def test_aliased_command_canonical_name(runner):
def get_command(self, ctx, cmd_name):
return push
+ def resolve_comman... | [
"tests/test_commands.py::test_group_add_command_name"
] | [
"tests/test_commands.py::test_other_command_invoke",
"tests/test_commands.py::test_other_command_forward",
"tests/test_commands.py::test_forwarded_params_consistency",
"tests/test_commands.py::test_auto_shorthelp",
"tests/test_commands.py::test_no_args_is_help",
"tests/test_commands.py::test_default_maps"... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
a5e812d86deb62872f8d514d894a22931fc84217 | 2024-06-24 11:41:10 | docker.io/swerebenchv2/pandas-dev-pandas:59080-a5e812d | pandas-dev__pandas-59080 | Method: TextFileReader.get_chunk(self, size=None)
Location: pandas/io/parsers/readers.py, class TextFileReader
Inputs: optional **size** (int) – number of rows to read for this chunk; if omitted or None, reads up to the remaining rows limited by the `nrows` argument of the parent `read_csv` call.
Outputs: DataFrame con... | python | BSD-3-Clause | diff --git a/ci/code_checks.sh b/ci/code_checks.sh
index 013f7abe5f..424171cee7 100755
--- a/ci/code_checks.sh
+++ b/ci/code_checks.sh
@@ -231,7 +231,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then
-i "pandas.Timestamp.ctime SA01" \
-i "pandas.Timestamp.date SA01" \
-i "pandas.Tim... | BUG: Fix read_csv raising TypeError when iterator and nrows are specified without chunksize
- [x] closes #59079
- [x] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [x] All [code checks passed](https://... | BUG: read_csv throws TypeError with iterator, nrows
### Pandas version checks
- [X] I have checked that this issue has not already been reported.
- [X] I have confirmed this bug exists on the [latest version](https://pandas.pydata.org/docs/whatsnew/index.html) of pandas.
- [ ] I have confirmed this bug exists on the... | pandas-dev/pandas | diff --git a/pandas/tests/io/parser/common/test_iterator.py b/pandas/tests/io/parser/common/test_iterator.py
index 091edb67f6..668aab05b9 100644
--- a/pandas/tests/io/parser/common/test_iterator.py
+++ b/pandas/tests/io/parser/common/test_iterator.py
@@ -98,6 +98,31 @@ baz,7,8,9
tm.assert_frame_equal(concat(result... | [
"pandas/tests/io/parser/common/test_iterator.py::test_nrows_iterator_without_chunksize[c_high]",
"pandas/tests/io/parser/common/test_iterator.py::test_nrows_iterator_without_chunksize[c_low]",
"pandas/tests/io/parser/common/test_iterator.py::test_nrows_iterator_without_chunksize[python]"
] | [
"pandas/tests/io/parser/common/test_iterator.py::test_iterator[c_high]",
"pandas/tests/io/parser/common/test_iterator.py::test_iterator[c_low]",
"pandas/tests/io/parser/common/test_iterator.py::test_iterator[python]",
"pandas/tests/io/parser/common/test_iterator.py::test_iterator[pyarrow]",
"pandas/tests/io... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://pandas.pydata.org/docs/whatsnew/index.html",
... |
932ff897211a91fee2994d584238c027c7a7430a | 2020-04-24 03:25:55 | docker.io/swerebenchv2/paustint-soql-parser-js:105-932ff89 | paustint__soql-parser-js-105 | Method: SOQLVisitor.orderByAggregateOrLocationExpression(self, ctx: orderByAggregateOrLocationExpressionContext)
Location: src/parser/visitor.ts
Inputs:
- **ctx**: an instance of `orderByAggregateOrLocationExpressionContext` containing:
* optional `locationFunction` (CST node for a location‐based function like DISTA... | ts | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index eac1923..2a1c563 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,13 @@
# Changelog
+## 2.5.2
+
+April 23, 2020
+
+1. Added support for dates formatted with nanoseconds, such as `2020-04-15T02:40:03.000+0000`. (#102)
+2. Added support for aggregate function in th... | Misc bugfixes
Added support for dates formatted with nanoseconds, such as . (#102)
Added support for aggregate function in the clause (#103)
Queries would not be properly composed if an order by had a function and also specified ASC or DESC (#104)
resolves #102
resolves #103
resolves #104: | Some date formats are not properly parsed
- [ ] Feature
- [x] Bug
<!--If this is a bug, please include the steps to reproduce the bug-->
## Description
Dates in this format are valid with Salesforce, but not parsed properly: `2020-04-15T02:40:03.000+0000`
Example: `SELECT Id FROM LoginHistory WHERE LoginTime >... | paustint/soql-parser-js | diff --git a/test/test-cases.ts b/test/test-cases.ts
index cd4bafc..98e52f7 100644
--- a/test/test-cases.ts
+++ b/test/test-cases.ts
@@ -1610,7 +1610,7 @@ export const testCases: TestCase[] = [
},
{
testCase: 89,
- soql: `SELECT Name, StreetAddress__c FROM Warehouse__c WHERE DISTANCE(Location__c, GEOLOCAT... | [
"should correctly parse test case 101 - SELECT Id FROM LoginHistory WHERE LoginTime > 2019-04-15T02:40:03.000+0000 AND LoginTime < 2020-04-15T02:40:03.000+0000",
"should correctly parse test case 102 - SELECT ProductCode FROM Product2 GROUP BY ProductCode HAVING COUNT(Id) > 1 ORDER BY COUNT(Id) DESC",
"should c... | [
"Should compose Field",
"Should compose FieldFunctionExpression",
"Should compose FieldRelationship",
"Should compose FieldSubquery",
"Should compose FieldTypeof",
"Should fail with invalid combination of data",
"Should create fields from query - Test Case: 1",
"Should create fields from query - Test ... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm ci --quiet"
],
"log_parser": "parse_log_js_4",
"test_cmd": "npm test -- --reporter spec"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
05e266d387f6a09a26090d764ad6904bc538bf1b | 2024-03-26 18:07:24 | docker.io/swerebenchv2/pennylaneai-pennylane:5439-05e266d | pennylaneai__pennylane-5439 | Method: AdaptiveOptimizer.step_and_cost(self, circuit, pool, drain_pool=True)
Location: pennylane.optimize.adaptive.AdaptiveOptimizer
Inputs:
- **circuit** (Callable): a quantum circuit (QNode) to be optimized.
- **pool** (list[Operation]): list of candidate excitations/operators.
- **drain_pool** (bool, opti... | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index d1f17ae1d..621b094b7 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -291,6 +291,9 @@
<h3>Bug fixes 🐛</h3>
+* The `QNSPSAOptimizer` now properly handles differentiable parameters, resulting in being ... | Fix `QNSPSA` Optimizer
Fixes #5437 . [sc-59838]
When we started distinguishing vanilla numpy and autograd numpy in our source code, we accidentally switched to using vanilla numpy in the `QNSPSA` optimizer instead of autograd numpy. This switches it back. | [BUG] `QNSPSAOptimizer` with Autograd changes differentiable parameters type to vanilla NumPy array
### Expected behavior
Updating parameters with `opt = qml.QNSPSAOptimizer` should not change the type of the parameters.
### Actual behavior
The parameters change from `<class 'pennylane.numpy.tensor.tensor'>` to `<cl... | PennyLaneAI/pennylane | diff --git a/tests/optimize/test_adaptive.py b/tests/optimize/test_adaptive.py
index b117b3492..74fa75507 100644
--- a/tests/optimize/test_adaptive.py
+++ b/tests/optimize/test_adaptive.py
@@ -118,7 +118,7 @@ def test_step_and_cost_nodrain(circuit, energy_ref, pool):
"""Test that step_and_cost function returns the... | [
"tests/optimize/test_qnspsa.py::test_workflow_integration"
] | [
"tests/optimize/test_adaptive.py::test_private_circuit[initial_circuit-params0-gates0--1.2465499384199534]",
"tests/optimize/test_adaptive.py::test_step[initial_circuit--1.2613740231522113-pool0]",
"tests/optimize/test_adaptive.py::test_step_and_cost_drain[initial_circuit--1.274397672040264-pool0]",
"tests/op... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://discuss.pennylane.ai/t/qnspsa-error-using-a-da... |
a6b73d2c6b11996f8624bfd28f9ef36c8b44bc1c | 2016-03-23 09:47:19 | docker.io/swerebenchv2/plaid-sanctuary:168-a6b73d2 | plaid__sanctuary-168 | Function: parseJson(typeRep, jsonString)
Location: index.js
Inputs:
- **typeRep** – a *TypeRep* describing the expected type of the JSON‑decoded value.
- **jsonString** – a *String* containing JSON text to be parsed.
Outputs:
- *Maybe a* – `Just(value)` when `jsonString` is valid JSON **and** `value` is a member of `... | js | MIT | diff --git a/index.js b/index.js
index d9ba959..fb8ac0a 100644
--- a/index.js
+++ b/index.js
@@ -2760,24 +2760,28 @@
)(s);
});
- //# parseJson :: String -> Maybe Any
+ //# parseJson :: TypeRep a -> String -> Maybe a
//.
- //. Takes a string which may or may not be valid JSON, and returns Just
- ... | Change parseJson to perform type validation
Adds a second argument to the `parseJson` function: A TypeRep which the result from parsing the JSON is validated against. This closes #150. | Even safer parseJson
> `parseJson(Array, '{}') -> Nothing()`
I'm very fond of the `get` and `gets` style of type validation, because it forces you to do it. It would've already saved me on multiple occasions if `parseJson` (or any `x -> Any` function for that matter) had this built-in, because after doing a "safe" J... | plaid/sanctuary | diff --git a/test/index.js b/test/index.js
index 60f58bc..a65c7b7 100644
--- a/test/index.js
+++ b/test/index.js
@@ -5125,19 +5125,31 @@ describe('parse', function() {
describe('parseJson', function() {
- it('is a unary function', function() {
+ it('is a binary function', function() {
eq(typeof S.pa... | [
"returns a Just when applied to a valid JSON string",
"returns a Nothing when applied to an invalid JSON string",
"returns a Nothing when the parsed result is not a member of the given type"
] | [
"f() is equivalent to f for every \"regular\" function",
"f(R.__) is equivalent to f for every \"regular\" function",
"exported functions throw if applied to too many arguments",
"is a unary function",
"operates on values of built-in types",
"operates on values of Sanctuary types",
"operates on values o... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/plaid/sanctuary/issues/149"
],
... |
19a247cf3b21caa18e1bb2ed6459c0b28423fdb3 | 2022-11-10 13:37:05 | docker.io/swerebenchv2/platers-obsidian-linter:492-19a247c | platers__obsidian-linter-492 | No new interfaces are introduced. | ts | MIT | diff --git a/src/rules/move-tags-to-yaml.ts b/src/rules/move-tags-to-yaml.ts
index 1a0f0e9..c99e12d 100644
--- a/src/rules/move-tags-to-yaml.ts
+++ b/src/rules/move-tags-to-yaml.ts
@@ -42,7 +42,7 @@ export default class MoveTagsToYaml extends RuleBuilder<MoveTagsToYamlOptions> {
return RuleType.YAML;
}
apply... | Bug: Ignore Style Property Contents for Moving Tags
Fixes #489
Changes Made:
- Ignored HTML tags for moving tags to the YAML frontmatter
- Added a UT to hopefully ensure that we do not hit this issue again in the future | Bug: css color definitions are confused as tags when transferring tags to front matter
## Describe the Bug
I am using linter and setting it up to move tags to the frontmatter.
highlightr plugin uses the syntax
`<mark style="background: #FFB8EBA6;">some text</mark>`
linter confuses the color definition as tag... | platers/obsidian-linter | diff --git a/__tests__/move-tags-to-yaml.test.ts b/__tests__/move-tags-to-yaml.test.ts
index 3bfb770..44ea611 100644
--- a/__tests__/move-tags-to-yaml.test.ts
+++ b/__tests__/move-tags-to-yaml.test.ts
@@ -147,5 +147,22 @@ ruleTest({
#test
`,
},
+ { // accounts for https://github.com/platers/obsi... | [
"CSS styles are not included in tags"
] | [
"When the sort changes the yaml contents and yaml timestamp date modified is active, update date modified value",
"Sort works with dictionary Yaml value",
"Convert tags from single-line with spaces to multi-line array",
"Convert tags from single-line with spaces to single-line array",
"Convert tags from sin... | {
"base_image_name": "node_20",
"docker_specs": null,
"install": [
"npm ci"
],
"log_parser": "parse_log_js_4",
"test_cmd": "npx jest --verbose --no-color"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/platers/obsidian-linter/issues/489"... |
17fb3a8aae91532fbfe7cd3f4afc8b7c6af27ddf | 2023-12-02 19:02:23 | docker.io/swerebenchv2/projectevergreen-wcc:125-17fb3a8 | projectevergreen__wcc-125 | Function: renderToString(elementURL, wrappingEntryTag = true, props = {})
Location: src/wcc.js
Inputs:
- **elementURL** (`URL`): absolute URL of the module to be rendered.
- **wrappingEntryTag** (`boolean`, optional, default `true`): when `true` and a valid custom‑element tag can be resolved, the generated HTML is wrap... | js | MIT | diff --git a/src/wcc.js b/src/wcc.js
index f9b3998..887e0b6 100644
--- a/src/wcc.js
+++ b/src/wcc.js
@@ -158,9 +158,6 @@ async function initializeCustomElement(elementURL, tagName, attrs = [], definiti
await elementInstance.connectedCallback();
return elementInstance;
- } else {
- console.debug('No cu... | enhancement/issue 124 refactor handling and logging for entry points and dependencies with no custom element `export`
<!--
## Submitting a Pull Request
We love contributions and appreciate any help you can offer!
-->
## Related Issue
resolves #124
## Summary of Changes
1. Don't log out when checking for cus... | gracefully and accurately handle "empty" entry points and dependency files that don't `export` a custom element
## Summary
As observed / reported in https://github.com/ProjectEvergreen/greenwood/issues/1185, WCC checks every file it process as part of `initializeCustomElement` looking for custom element definitions, n... | ProjectEvergreen/wcc | diff --git a/test/cases/no-export/no-export.spec.js b/test/cases/no-export/no-export.spec.js
index bb3e153..d3257ca 100644
--- a/test/cases/no-export/no-export.spec.js
+++ b/test/cases/no-export/no-export.spec.js
@@ -18,16 +18,22 @@ const expect = chai.expect;
describe('Run WCC For ', function() {
const LABEL = 'Si... | [
"should not throw an error"
] | [
"should have one top level <wcc-counter> custom element with a <template> with an open shadowroot",
"should have the expected static content for the page",
"should have two <button> tags within the <wcc-counter> shadowroot",
"should have a <span> with the value of the attribute as its text content",
"should... | {
"base_image_name": "node_20",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://github.com/ProjectEvergreen/greenwood/issues/1... |
153a127fa909031180bd3c8ff03762c31921be09 | 2023-07-18 17:41:26 | docker.io/swerebenchv2/pulumi-actions:994-153a127 | pulumi__actions-994 | Function: makeConfig()
Location: src/config.ts
Inputs: None (reads GitHub Action inputs via helper functions)
Outputs: A configuration object whose `options` property now includes an optional `plan: string` field (the path to an update plan file). All other fields remain unchanged.
Description: Builds the Pulumi Action... | ts | Apache-2.0 | diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml
index 540fc18..b0539e6 100644
--- a/.github/workflows/workflow.yml
+++ b/.github/workflows/workflow.yml
@@ -174,6 +174,34 @@ jobs:
work-dir: .github/test-stacks/dotnet
config-map: '{name: {value: my-pet, secret: false}}'
... | feat: Add Update Plan Functionality
Related to / resolves #991
This commit does the following:
- Updates `src/config.ts` to expose the `plan` option
- Updates the `README.md` to reflect that this option is now available.
- Adds a new test that will do a `preview`, save the plan, and then attempt to `up` using the... | Support Update Plans
## Hello!
<!-- Please leave this section as-is, it's designed to help others in the community know how to interact with our GitHub issues. -->
- Vote on this issue by adding a 👍 reaction
- If you want to implement this feature, comment to let us know (we'll work with you on design, scheduling... | pulumi/actions | diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index 604498e..6be609e 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -56,3 +56,51 @@ jobs:
work-dir: .github/test-stacks/golang
config-map: "{name: {value: test, secret: false}}"
- run: echo '... | [
"should validate a configuration"
] | [
"should return stdout",
"should return stderr",
"should parse semicolon to array",
"should add pull request message",
"should add pull request message to the PR defined in config, overriding the github context",
"should fail if no pull request data, and no PR number in config",
"should add pull request ... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"corepack disable yarn",
"npm install -g yarn --silent",
"yarn install --frozen-lockfile --silent"
],
"log_parser": "parse_log_js_4",
"test_cmd": "yarn jest --coverage src/**/* --verbose --no-colors --passWithNoTests"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.pulumi.com/docs/concepts/update-plans/"
... |
668e563b01749bcbb55a017e39b0cf94d8256619 | 2024-07-15 18:37:33 | docker.io/swerebenchv2/pybamm-team-pybamm:4267-668e563 | pybamm-team__pybamm-4267 | Method: FuzzyDict.__getitem__(self, key)
Location: pybamm/util.py (class FuzzyDict)
Inputs:
- **key** (str): Parameter name to retrieve. May be a current name (e.g., containing “particle diffusivity”) or a legacy name (containing “electrode diffusivity”).
Outputs:
- Returns the value stored for the matching key.
- ... | python | BSD-3-Clause | diff --git a/pybamm/util.py b/pybamm/util.py
index 0fe02c835..130cb5ba4 100644
--- a/pybamm/util.py
+++ b/pybamm/util.py
@@ -57,14 +57,22 @@ class FuzzyDict(dict):
try:
return super().__getitem__(key)
except KeyError as error:
- if "particle diffusivity" in key:
- ... | Corrects "electrode diffusivity" error catch
# Description
This reverts an incorrect change applied in #4179. This adds to the error catch for the old parameter name `"{domain} electrode diffusivity [m2.s-1]"` to use the new name, likewise if the new name `"{domain} particle diffusivity [m2.s-1]" `is provided the er... | [Bug]: "electrode diffusivity" -> "particle diffusivity" is still breaking change on `develop` when using pre-24.5 pybamm.ParameterValues
### PyBaMM Version
develop
### Python Version
3.9.13
### Describe the bug
Since #4072 re-inverted the logic fix in #3871, the release candidate on `develop` causes the... | pybamm-team/PyBaMM | diff --git a/tests/unit/test_util.py b/tests/unit/test_util.py
index 21673a44f..abcdb4dca 100644
--- a/tests/unit/test_util.py
+++ b/tests/unit/test_util.py
@@ -34,6 +34,11 @@ class TestUtil:
"SEI current": 3,
"Lithium plating current": 4,
"A dimensional variable [m]":... | [
"tests/unit/test_util.py::TestUtil::test_fuzzy_dict"
] | [
"tests/unit/test_util.py::TestUtil::test_is_constant_and_can_evaluate",
"tests/unit/test_util.py::TestUtil::test_get_parameters_filepath",
"tests/unit/test_util.py::TestSearch::test_url_gets_to_stdout",
"tests/unit/test_util.py::TestUtil::test_git_commit_info",
"tests/unit/test_util.py::TestUtil::test_optio... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
0e6fc86787c2e5d3cc2299872c9340052fcfe05a | 2024-10-15 15:12:09 | docker.io/swerebenchv2/pyccel-pyccel:2019-0e6fc86 | pyccel__pyccel-2019 | Method: set.copy(self)
Location: Built‑in ``set`` type (Python and generated C/Fortran bindings)
Inputs: *self* – a ``set`` instance; no additional arguments.
Outputs: A new ``set`` containing all elements of ``self`` (shallow copy). The returned set can be mutated independently of the original (e.g., ``pop()`` will no... | python | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 3b1cc2b1..e4e64b2d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,8 +12,6 @@ All notable changes to this project will be documented in this file.
- #1700 : Add Python support for list method `sort()`.
- #1696 : Add Python support for list method `copy()`.
- #... | Add support for set.copy
Add C and Fortran support for `set.copy`. Fixes #1919 | [SETS] Add C and Fortran support for `copy()`
### Test Code
Provide code which does not currently work but which should do when this issue is fixed:
```python
def foo():
a = {1,2,1}
b = a.copy()
```
### Proposed Solution
This feature should be implemented using the functionalities provided by STC and ... | pyccel/pyccel | diff --git a/tests/epyccel/test_epyccel_sets.py b/tests/epyccel/test_epyccel_sets.py
index ddfcaa97..c85a0032 100644
--- a/tests/epyccel/test_epyccel_sets.py
+++ b/tests/epyccel/test_epyccel_sets.py
@@ -77,42 +77,46 @@ def test_clear_complex(language):
python_result = clear_complex()
assert python_result == p... | [
"tests/epyccel/test_epyccel_sets.py::test_copy_int[fortran]",
"tests/epyccel/test_epyccel_sets.py::test_copy_float[fortran]",
"tests/epyccel/test_epyccel_sets.py::test_copy_complex[fortran]",
"tests/epyccel/test_epyccel_sets.py::test_copy_int[c]",
"tests/epyccel/test_epyccel_sets.py::test_copy_float[c]",
... | [
"tests/epyccel/test_epyccel_sets.py::test_add_literal_int[fortran]",
"tests/epyccel/test_epyccel_sets.py::test_add_literal_complex[fortran]",
"tests/epyccel/test_epyccel_sets.py::test_add_variable_int[fortran]",
"tests/epyccel/test_epyccel_sets.py::test_clear_int[fortran]",
"tests/epyccel/test_epyccel_sets.... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
cb64d3a84fab15aacbdf31a0a5632690ca9f49b2 | 2019-09-11 15:56:36 | docker.io/swerebenchv2/pypa-setuptools:1847-cb64d3a | pypa__setuptools-1847 | No new interfaces are introduced. | python | MIT | diff --git a/changelog.d/1847.change.rst b/changelog.d/1847.change.rst
new file mode 100644
index 000000000..d3f7724e2
--- /dev/null
+++ b/changelog.d/1847.change.rst
@@ -0,0 +1,1 @@
+In declarative config, now traps errors when invalid ``python_requires`` values are supplied.
diff --git a/setuptools/config.py b/setupt... | Crash when invalid python_requires indicated in setup.cfg
Closes #1787.
### Pull Request Checklist
- [X] Changes have tests
- [X] News fragment added in changelog.d. See [documentation](http://setuptools.readthedocs.io/en/latest/developer-guide.html#making-a-pull-request) for details
| The 'python_requires' field is ignored in setup.cfg (not in setup.py).
I'm using setuptools version '41.0.1.post20190616' (commit 8aeff6b2c9a64e47ad2a22533d7e65c08cd4103f).
$ cd /tmp/setup/py
$ cat setup.py
from setuptools import setup
setup(python_requires='invalid')
$ python setup.py install
error in setup c... | pypa/setuptools | diff --git a/setuptools/tests/test_config.py b/setuptools/tests/test_config.py
index bc97664d4..1b94a5868 100644
--- a/setuptools/tests/test_config.py
+++ b/setuptools/tests/test_config.py
@@ -819,6 +819,40 @@ class TestOptions:
]
assert sorted(dist.data_files) == sorted(expected)
+ def t... | [
"setuptools/tests/test_config.py::TestOptions::test_python_requires_invalid"
] | [
"setuptools/tests/test_config.py::test_parsers_implemented",
"setuptools/tests/test_config.py::TestConfigurationReader::test_basic",
"setuptools/tests/test_config.py::TestConfigurationReader::test_no_config",
"setuptools/tests/test_config.py::TestConfigurationReader::test_ignore_errors",
"setuptools/tests/t... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
812b83c9b4c6134c559f8609b69bca37d7c1204d | 2019-11-26 18:09:30 | docker.io/swerebenchv2/pypa-setuptools:1921-812b83c | pypa__setuptools-1921 | No new interfaces are introduced. | python | MIT | diff --git a/changelog.d/1921.change.txt b/changelog.d/1921.change.txt
new file mode 100644
index 000000000..7c001eb8e
--- /dev/null
+++ b/changelog.d/1921.change.txt
@@ -0,0 +1,1 @@
+Fix support for easy_install's ``find-links`` option in ``setup.cfg``.
diff --git a/setuptools/installer.py b/setuptools/installer.py
i... | fix support for easy_install's find-links option in setup.cfg
### Summary of changes
The easy_install's `find-links` option can sometime be a string (and not a list of string), e.g. when its value comes from `setup.cfg` (see handling in [easy_install own code](https://github.com/pypa/setuptools/blob/master/setuptoo... | Handling of find_links in setup.cfg in 42.0.0
Hi,
I have a couple of `setup_requires` dependencies in my setup.py and my setup.cfg looks like this:
```
[easy_install]
find_links = https://example.com
```
Looking at: https://github.com/pypa/setuptools/blob/e84f616a6507ec9115fad68b221cbf5333d9d2d9/setuptools/... | pypa/setuptools | diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py
index f6da1b16c..2be1be47e 100644
--- a/setuptools/tests/test_easy_install.py
+++ b/setuptools/tests/test_easy_install.py
@@ -745,6 +745,44 @@ class TestSetupRequires:
eggs = list(map(str, pkg_resources.find_distribution... | [
"setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_find_links_in_setup_cfg[False-False]",
"setuptools/tests/test_easy_install.py::TestSetupRequires::test_setup_requires_with_find_links_in_setup_cfg[False-True]",
"setuptools/tests/test_easy_install.py::TestSetupRequires::test_set... | [
"setuptools/tests/test_easy_install.py::TestEasyInstallTest::test_install_site_py",
"setuptools/tests/test_easy_install.py::TestEasyInstallTest::test_get_script_args",
"setuptools/tests/test_easy_install.py::TestEasyInstallTest::test_no_find_links",
"setuptools/tests/test_easy_install.py::TestEasyInstallTest:... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/pypa/setuptools/blob/e84f616a6507ec91... |
3d3344d335d936209f65bf521cf24ff68f758302 | 2023-03-12 14:47:16 | docker.io/swerebenchv2/pyqtgraph-pyqtgraph:2648-3d3344d | pyqtgraph__pyqtgraph-2648 | No new interfaces are introduced. | python | custom-check-github | diff --git a/.github/workflows/etc/requirements.txt b/.github/workflows/etc/requirements.txt
index c1522d3e..0a868edc 100644
--- a/.github/workflows/etc/requirements.txt
+++ b/.github/workflows/etc/requirements.txt
@@ -19,5 +19,5 @@ h5py==3.8.0
# testing
pytest==7.2.2
-pytest-xdist==3.2.0
+pytest-xdist==3.2.1
pyte... | Return float values from QColor in getByIndex
Make `ColorMap_getByIndex` return floats for RGB values to fit expectations.
Fixes #2627
| ColorMap.getByIndex() returns wrong colors
<!-- In the following, please describe your issue in detail! -->
<!-- If some sections do not apply, just remove them. -->
### Short description
<!-- This should summarize the issue. -->
ColorMap.getByIndex() returns wrong colors.
### Code to reproduce
<!-- Please pr... | pyqtgraph/pyqtgraph | diff --git a/tests/test_colormap.py b/tests/test_colormap.py
index 0926302c..16372ca6 100644
--- a/tests/test_colormap.py
+++ b/tests/test_colormap.py
@@ -74,3 +74,8 @@ def test_ColorMap_getColors(color_list):
colors = cm.getColors('qcolor')
for actual, good in zip(colors, qcols):
assert actual.getRg... | [
"tests/test_colormap.py::test_ColorMap_getByIndex"
] | [
"tests/test_colormap.py::test_ColorMap_getStops[color_list0]",
"tests/test_colormap.py::test_ColorMap_getStops[color_list1]",
"tests/test_colormap.py::test_ColorMap_getColors[color_list0]",
"tests/test_colormap.py::test_ColorMap_getColors[color_list1]"
] | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
ee0f19b696c60064c58cdc08b3265aef56d49ff8 | 2024-11-13 14:54:26 | docker.io/swerebenchv2/python-attrs-attrs:1372-ee0f19b | python-attrs__attrs-1372 | Function: optional(converter)
Location: src/attr/converters.py
Inputs:
- **converter** – Either a plain callable `Callable[[Any], Any]` that converts a value, or an instance of `attrs.Converter` (which itself expects the signature `(value, instance, field)`).
Outputs:
- Returns a *converter* object.
• If *convert... | python | MIT | diff --git a/changelog.d/1372.change.md b/changelog.d/1372.change.md
new file mode 100644
index 0000000..fcb9434
--- /dev/null
+++ b/changelog.d/1372.change.md
@@ -0,0 +1,1 @@
+`attrs.converters.optional()` works again when taking `attrs.converters.pipe()` or another Converter as its argument.
diff --git a/src/attr/con... | Allow converter.optional to take a Converter such as converter.pipe as its argument
# Summary
<!-- Please tell us what your pull request is about here. -->
Allow `converter.optional` to take a Converter such as `converter.pipe` as its argument.
Fixes #1348
# Pull Request Check List
<!--
This is just a f... | Error occurs when using converters.optional and converters.pipe together
23.2.0 is OK.
```Python
Python 3.10.13 (main, Dec 6 2023, 12:01:00) [GCC 13.2.1 20230801] on linux
>>> import attr
>>> attr.__version__
'23.2.0'
>>> @attr.define
... class A:
... abc: int | None = attr.field(converter=attr.converters.... | python-attrs/attrs | diff --git a/tests/test_converters.py b/tests/test_converters.py
index 164fb0f..d4aca43 100644
--- a/tests/test_converters.py
+++ b/tests/test_converters.py
@@ -143,6 +143,14 @@ class TestOptional:
with pytest.raises(ValueError):
c("not_an_int")
+ def test_converter_instance(self):
+ "... | [
"tests/test_converters.py::TestOptional::test_converter_instance",
"tests/test_converters.py::TestOptionalPipe::test_optional",
"tests/test_converters.py::TestOptionalPipe::test_pipe",
"tests/test_converters.py::TestOptionalPipe::test_instance"
] | [
"tests/test_converters.py::TestConverter::test_pickle[True-True]",
"tests/test_converters.py::TestConverter::test_pickle[True-False]",
"tests/test_converters.py::TestConverter::test_pickle[False-True]",
"tests/test_converters.py::TestConverter::test_pickle[False-False]",
"tests/test_converters.py::TestConve... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
7db16a5a7f87666dee9e32164a4bbf42bf6a13ea | 2022-10-25 19:23:19 | docker.io/swerebenchv2/qiskit-qiskit-terra:8995-7db16a5 | qiskit__qiskit-terra-8995 | Method: Target.add_instruction(self, instruction: BaseInstruction, properties: dict[tuple[int, ...], Optional[InstructionProperties] | None])
Location: qiskit/transpiler/target.py → class Target
Inputs:
- **instruction** – an instance of a Qiskit instruction (e.g., ``Measure()``).
- **properties** – a mapping f... | python | Apache-2.0 | diff --git a/qiskit/transpiler/target.py b/qiskit/transpiler/target.py
index 769ad9fe5..0a1a57894 100644
--- a/qiskit/transpiler/target.py
+++ b/qiskit/transpiler/target.py
@@ -1043,24 +1043,25 @@ def target_to_backend_properties(target: Target):
continue
qubit = qargs[0]
... | Fix transpile() with a Target containing an ideal Measure
<!--
⚠️ If you do not respect this template, your pull request will be closed.
⚠️ Your pull request title should be short detailed and understandable for all.
⚠️ Also, please add a release note file using reno if the change needs to be
documented in the re... | Transpiling fails if the target does not specify properties for measurement instructions
### Environment
- **Qiskit Terra version**: 0.22.0
- **Python version**: 3.9.12
- **Operating system**: Windows 10
### What is happening?
```
Traceback (most recent call last):
File ".\src\playground.py", line 86, in <mo... | Qiskit/qiskit-terra | diff --git a/test/python/compiler/test_transpiler.py b/test/python/compiler/test_transpiler.py
index 63c3633ff..5d42c49b5 100644
--- a/test/python/compiler/test_transpiler.py
+++ b/test/python/compiler/test_transpiler.py
@@ -1726,6 +1726,19 @@ class TestPostTranspileIntegration(QiskitTestCase):
# itself doesn'... | [
"test/python/compiler/test_transpiler.py::TestPostTranspileIntegration::test_transpile_target_no_measurement_error_1_0",
"test/python/compiler/test_transpiler.py::TestPostTranspileIntegration::test_transpile_target_no_measurement_error_2_1",
"test/python/compiler/test_transpiler.py::TestPostTranspileIntegration... | [
"test/python/compiler/test_transpiler.py::TestTranspile::test_already_mapped_1",
"test/python/compiler/test_transpiler.py::TestTranspile::test_already_mapped_via_layout",
"test/python/compiler/test_transpiler.py::TestTranspile::test_approximation_degree_invalid",
"test/python/compiler/test_transpiler.py::Test... | {
"base_image_name": "python_base_310",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/Qiskit/qiskit-terra/issues/8969"
... |
6de34566f4e2aa3fcd97a49e761259a4d16e49d9 | 2024-12-13 23:19:08 | docker.io/swerebenchv2/quick-nimble:1183-6de3456 | quick__nimble-1183 | Method: beIdenticalTo<T: AnyObject>(_ expected: T?) -> Matcher<T>
Location: Sources/Nimble/Matchers/BeIdenticalTo.swift
Inputs: expected – an optional instance of any class‑type (`T` conforms to AnyObject); may be `nil`.
Outputs: a `Matcher<T>` that succeeds when the actual value is the identical (===) instance to `exp... | swift | Apache-2.0 | diff --git a/Sources/Nimble/Matchers/BeIdenticalTo.swift b/Sources/Nimble/Matchers/BeIdenticalTo.swift
index 85e5b50c8..ef8878d9a 100644
--- a/Sources/Nimble/Matchers/BeIdenticalTo.swift
+++ b/Sources/Nimble/Matchers/BeIdenticalTo.swift
@@ -1,6 +1,16 @@
/// A Nimble matcher that succeeds when the actual value is the s... | Fixes https://github.com/Quick/Nimble/issues/1182
Seems like... the simplest way is to just have an overload for these that specifically take in AnyObject, instead of a generic conforming to AnyObject?
Checklist - While not every PR needs it, new features should consider this list:
- [x] Does this have tests?
... | Identity checking tests no longer compile on 13.7.0
- [x] I have read [CONTRIBUTING](https://github.com/Quick/Nimble/blob/main/CONTRIBUTING.md) and have done my best to follow them.
Seems the current 13.7.0 made our tests stop building, namely due to these changes:
```
-public func be(_ expected: AnyObject?) -> ... | Quick/Nimble | diff --git a/Tests/NimbleTests/Matchers/BeIdenticalToObjectTest.swift b/Tests/NimbleTests/Matchers/BeIdenticalToObjectTest.swift
index 0ba2316d0..4091d0119 100644
--- a/Tests/NimbleTests/Matchers/BeIdenticalToObjectTest.swift
+++ b/Tests/NimbleTests/Matchers/BeIdenticalToObjectTest.swift
@@ -12,10 +12,21 @@ final class... | [
"AllPassTest.testAllPassArray",
"AllPassTest.testAllPassCollectionsWithOptionals",
"AllPassTest.testAllPassMatcher",
"AllPassTest.testAllPassSet",
"AllPassTest.testAllPassWithNilAsExpectedValue",
"AlwaysFailTest.testAlwaysFail",
"AlwaysFailTest.testAsyncAlwaysFail",
"AsyncAllPassTest.testAllPassArray"... | [] | {
"base_image_name": "swift_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://github.com/Quick/Nimble/blob/main/CONTRIBUTING.m... |
67a14070656b0d0e3eac2ffcc31d1d99e3af9968 | 2024-02-02 21:33:55 | docker.io/swerebenchv2/raphlinus-pulldown-cmark:841-67a1407 | raphlinus__pulldown-cmark-841 | No new interfaces are introduced. | rust | MIT | diff --git a/pulldown-cmark/specs/regression.txt b/pulldown-cmark/specs/regression.txt
index 241f32b..7290d58 100644
--- a/pulldown-cmark/specs/regression.txt
+++ b/pulldown-cmark/specs/regression.txt
@@ -2361,3 +2361,65 @@ ISSUE 662
</li>
</ul>
````````````````````````````````
+
+ISSUE 840
+
+``````````````````````... | Reject opening parens within (/) link titles
Fixes #840
| [fuzz result] unbalanced parens are parsed as a link title
This markdown should not produce a link:
```markdown
[link]: test (()
[link]
```
The [commonmark.js dingus](<https://spec.commonmark.org/dingus/?text=%5Blink%5D%3A%20test%20(()%0A%0A%5Blink%5D>) does this right. As the spec sayeth:
https://spec.co... | raphlinus/pulldown-cmark | diff --git a/pulldown-cmark/tests/suite/regression.rs b/pulldown-cmark/tests/suite/regression.rs
index e2af9b5..1d0dac0 100644
--- a/pulldown-cmark/tests/suite/regression.rs
+++ b/pulldown-cmark/tests/suite/regression.rs
@@ -2802,3 +2802,91 @@ fn regression_test_175() {
test_markdown_html(original, expected, fal... | [
"suite::regression::regression_test_171",
"suite::regression::regression_test_176",
"test::check_attr_escape",
"test::check_body_escape",
"test::check_href_escape"
] | [
"linklabel::test::whitespace_normalization",
"linklabel::test::return_carriage_linefeed_ok",
"parse::test::another_emphasis_panic",
"parse::test::body_size",
"parse::test::code_block_kind_check_fenced",
"parse::test::broken_links_called_only_once",
"parse::test::code_block_kind_check_indented",
"parse... | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [
"https://spec.commonmark.org/0.30/#link-reference-definit... |
926eb67fdde30462e6b5da4a52c8e3534fe203e8 | 2025-07-03 13:27:19 | docker.io/swerebenchv2/rust-phf-rust-phf:348-926eb67 | rust-phf__rust-phf-348 | No new interfaces are introduced. | rust | MIT | diff --git a/README.md b/README.md
index c53ffa8..cccafdb 100644
--- a/README.md
+++ b/README.md
@@ -51,9 +51,20 @@ static KEYWORDS: phf::Map<&'static str, Keyword> = phf_map! {
"extern" => Keyword::Extern,
};
+// You can also use OR (`|`) patterns to map multiple keys to the same value:
+static OPERATORS: phf:... | feat: Support OR pattern key
Close #286 | Macros: key expressions should support match-like alternation with `|`
Instead of:
```rs
'a' => foo,
'b' => foo,
'c' => foo,
'd' => bar,
'e' => bar
```
, one should be able to write:
```rs
'a'|'b'|'c' => foo,
'd'|'e' => bar
``` | rust-phf/rust-phf | diff --git a/phf_macros_test/tests/test.rs b/phf_macros_test/tests/test.rs
index f775cc5..d949132 100644
--- a/phf_macros_test/tests/test.rs
+++ b/phf_macros_test/tests/test.rs
@@ -342,6 +342,32 @@ mod map {
assert_eq!(Some(&3), MAP.get(&(2, "c")));
assert_eq!(None, MAP.get(&(3, "d")));
}
+
+ ... | [
"map::test_array_keys",
"map::test_array_vals",
"map::test_bool_keys",
"map::test_byte_keys",
"map::test_cfgs",
"map::test_char_keys",
"map::test_entries",
"map::test_i128_keys",
"map::test_i16_keys",
"map::test_i32_keys",
"map::test_i64_keys",
"map::test_i8_keys",
"map::test_index_ok",
"m... | [] | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": "1.89.0",
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories":... |
dad240edc81fc6138d26f3248539d876a777f45d | 2019-06-30 10:40:10 | docker.io/swerebenchv2/s-knibbs-dataclasses-jsonschema:64-dad240e | s-knibbs__dataclasses-jsonschema-64 | Method: JsonSchemaMixin.json_schema(cls, schema_type: Optional[SchemaType] = None) → JsonDict
Location: dataclasses_jsonschema.__init__.JsonSchemaMixin (class method)
Inputs:
- `cls`: the dataclass type inheriting from JsonSchemaMixin.
- `schema_type` (optional): a member of `SchemaType` indicating which JSON‑Schema D... | python | MIT | diff --git a/dataclasses_jsonschema/__init__.py b/dataclasses_jsonschema/__init__.py
index 2ce5d65..502d117 100644
--- a/dataclasses_jsonschema/__init__.py
+++ b/dataclasses_jsonschema/__init__.py
@@ -10,19 +10,14 @@ from uuid import UUID
from enum import Enum
import warnings
-from typing_extensions import Final
+f... | Implement basic support for literal types
Fixes #58
**Note**: The following is not currently supported:
* Nested literal types, e.g `Literal[Literal[Literal[1, 2, 3], "foo"], 5, None]` - #65
* Types with enum members, e.g. `Literal[Color.RED]` - #66 | Support literal types
Support for the [literal type annotation](https://www.python.org/dev/peps/pep-0586/) should be added. Example:
```python
@dataclass
class ImageMetadata(JsonSchemaMixin):
width: int
height: int
bits_per_pixel: Literal[8, 16, 24]
```
Generates the following schema:
```json... | s-knibbs/dataclasses-jsonschema | diff --git a/tests/test_all.py b/tests/test_all.py
index 69982fc..a44347b 100644
--- a/tests/test_all.py
+++ b/tests/test_all.py
@@ -2,7 +2,7 @@ from _decimal import Decimal
from dataclasses import dataclass, field
from ipaddress import IPv4Address, IPv6Address
from typing import List, NewType
-from typing_extension... | [
"tests/test_all.py::test_literal_types"
] | [
"tests/test_all.py::test_field_with_default_factory",
"tests/test_all.py::test_field_with_default_dataclass",
"tests/test_all.py::test_embeddable_json_schema",
"tests/test_all.py::test_json_schema",
"tests/test_all.py::test_serialise_deserialise",
"tests/test_all.py::test_invalid_data",
"tests/test_all.... | {
"base_image_name": "python_base_37",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "medium",
"external_urls": [
"https://www.python.org/dev/peps/pep-0586/"
],
... |
1d721e851635fbff374eac6ee7cb8cddeff0b1f6 | 2019-02-17 17:57:09 | docker.io/swerebenchv2/sanctuary-js-sanctuary:593-1d721e8 | sanctuary-js__sanctuary-593 | Function: S.array(y) (f) (xs)
Location: index.js – defined under the “Array” section as a curried function.
Inputs:
‑ y : b the result to return when the array is empty.
‑ f : (a → Array a → b) a binary function that receives the head element (type a) and the tail (Array a) and returns a value of type b. ... | js | MIT | diff --git a/.eslintrc.json b/.eslintrc.json
index ef22a84..c927bb6 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -48,7 +48,7 @@
"indent": ["off"],
"no-eval": ["off"],
"no-extra-semi": ["off"],
- "no-unused-vars": ["error", {"varsIgnorePattern": "^([$]|S)$"}]
+ "no-unused-... | array: add S.array
Closes #581 (in conjunction with #592)
| Add more folds
It'd be nice to have deconstructors for more sorts of things in JS. A couple examples from discussions in the gitter room:
```
array :: x -> (a -> [a] -> x) -> [a] -> x
boolean :: x -> x -> Boolean -> x
```
Feel free to add more in the comments. | sanctuary-js/sanctuary | diff --git a/test/array.js b/test/array.js
new file mode 100644
index 0000000..c26e1b6
--- /dev/null
+++ b/test/array.js
@@ -0,0 +1,40 @@
+'use strict';
+
+var S = require ('..');
+
+var eq = require ('./internal/eq');
+
+
+test ('array', function() {
+
+ eq (typeof S.array) ('function');
+ eq (S.array.length) (1);
+... | [
"array"
] | [
"EitherType",
"I",
"K",
"MaybeType",
"Pair",
"PairType",
"T",
"add",
"allPass",
"alt",
"and",
"anyPass",
"ap",
"apFirst",
"apSecond",
"append",
"at",
"bimap",
"boolean",
"chain",
"chainRec",
"complement",
"compose",
"concat",
"contramap",
"create",
"curry2",
"cu... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.93,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "partial",
"pr_categories": [
... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.