base_commit
stringlengths
40
40
created_at
stringdate
2015-04-05 18:18:17
2025-09-05 13:38:04
image_name
stringlengths
41
89
instance_id
stringlengths
11
59
interface
stringlengths
33
6.27k
language
stringclasses
15 values
license
stringclasses
11 values
patch
stringlengths
275
32k
pr_description
stringlengths
0
5k
problem_statement
stringlengths
21
21.7k
repo
stringlengths
6
55
test_patch
stringlengths
205
31.4k
FAIL_TO_PASS
listlengths
1
28.7k
PASS_TO_PASS
listlengths
0
24.2k
install_config
dict
meta
dict
db0bbaa5c604fd8efdd4618de47d4c1205097ce5
2020-07-03 10:55:29
docker.io/swerebenchv2/filecoin-project-specs-actors:592-db0bbaa
filecoin-project__specs-actors-592
Method: Actor.AddBalance(rt Runtime, providerOrClientAddress *addr.Address) *adt.EmptyValue Location: actors/builtin/market/market_actor.go Inputs: - rt: Runtime providing execution context, including the message value received. - providerOrClientAddress: *addr.Address of the provider or client whose escrow balance is...
go
custom-check-github
diff --git a/actors/builtin/market/market_actor.go b/actors/builtin/market/market_actor.go index 48ceeb2e..dc06f931 100644 --- a/actors/builtin/market/market_actor.go +++ b/actors/builtin/market/market_actor.go @@ -118,11 +118,15 @@ func (a Actor) WithdrawBalance(rt Runtime, params *WithdrawBalanceParams) *adt.E // ...
Add balance should not be called with negative value Closes #591
Market: AddBalance should fail on being passed a negative amount Currently, this would work.
filecoin-project/specs-actors
diff --git a/actors/builtin/market/market_test.go b/actors/builtin/market/market_test.go index d94fa03c..ec8bd074 100644 --- a/actors/builtin/market/market_test.go +++ b/actors/builtin/market/market_test.go @@ -126,6 +126,19 @@ func TestMarketActor(t *testing.T) { } }) + t.Run("fails when called with negative...
[ "TestMarketActor", "TestMarketActor/AddBalance", "TestMarketActor/AddBalance/fails_when_called_with_negative_value" ]
[ "TestPieceSize", "TestBitFieldUnset", "TestBitFieldContains", "TestSectorSizeString", "TestSectorSizeShortString", "TestBigIntSerializationRoundTrip", "TestNewInt", "TestInt_MarshalUnmarshalJSON", "TestOperations", "TestOperations/Sum", "TestOperations/Sub", "TestOperations/Mul", "TestOperat...
{ "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": "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": [...
41a48da66062b4e948ef1f6ce5183d2752304ecf
2015-04-08 12:07:19
docker.io/swerebenchv2/mozilla-services-cliquet:203-41a48da
mozilla-services__cliquet-203
Function: initialize(config, version=None, project_name=None, default_settings=None) Location: cliquet/__init__.py Inputs: - **config**: a `Configurator` instance whose `add_settings` and `get_settings` methods are used. - **version** *(optional)*: string specifying the application version. - **project_name** *(option...
python
custom-check-github
diff --git a/cliquet/__init__.py b/cliquet/__init__.py index 2392479f..4ed489ed 100644 --- a/cliquet/__init__.py +++ b/cliquet/__init__.py @@ -301,7 +301,7 @@ def initialize_cliquet(*args, **kwargs): initialize(*args, **kwargs) -def initialize(config, version=None, project_name=None): +def initialize(config, v...
Provide default settings in initialize (fixes #136)
Provide extra default settings in initialize_cliquet In order to extend and override cliquet default settings in applications.
mozilla-services/cliquet
diff --git a/cliquet/tests/test_initialization.py b/cliquet/tests/test_initialization.py index 6b4b1496..22a7c4b4 100644 --- a/cliquet/tests/test_initialization.py +++ b/cliquet/tests/test_initialization.py @@ -59,6 +59,12 @@ class InitializationTest(unittest.TestCase): self.assertEqual(config.registry.setting...
[ "cliquet/tests/test_initialization.py::InitializationTest::test_overriden_default_settings" ]
[ "cliquet/tests/test_initialization.py::InitializationTest::test_environment_values_override_configuration", "cliquet/tests/test_initialization.py::InitializationTest::test_fails_if_no_version_is_specified", "cliquet/tests/test_initialization.py::InitializationTest::test_fails_if_specified_version_is_not_string"...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
c5a300a4357d40d202f92dd08894ea520f2ade3f
2025-02-08 09:28:44
docker.io/swerebenchv2/sissbruecker-linkding:984-c5a300a
sissbruecker__linkding-984
No new interfaces are introduced.
python
MIT
diff --git a/bookmarks/templates/bookmarks/head.html b/bookmarks/templates/bookmarks/head.html index b28a1ca..c83d16e 100644 --- a/bookmarks/templates/bookmarks/head.html +++ b/bookmarks/templates/bookmarks/head.html @@ -36,5 +36,8 @@ {% if not request.global_settings.enable_link_prefetch %} <meta name="turbo-p...
Add RSS link to shared bookmarks page Closes #879
[New feature] Add a link to public RSS from public bookmarks page Hello! This is my first issue. I recently set up a public page with shared bookmarks and invited friends to follow my public RSS, but then I realized that the public RSS URL is only available in settings. I think it should be possible for a user looki...
sissbruecker/linkding
diff --git a/bookmarks/tests/test_bookmark_archived_view.py b/bookmarks/tests/test_bookmark_archived_view.py index 040a5f8..e6d92fb 100644 --- a/bookmarks/tests/test_bookmark_archived_view.py +++ b/bookmarks/tests/test_bookmark_archived_view.py @@ -503,3 +503,10 @@ class BookmarkArchivedViewTestCase( self.asse...
[ "bookmarks/tests/test_bookmark_shared_view.py::BookmarkSharedViewTestCase::test_includes_public_shared_rss_feed" ]
[ "bookmarks/tests/test_bookmark_archived_view.py::BookmarkArchivedViewTestCase::test_allowed_bulk_actions", "bookmarks/tests/test_bookmark_archived_view.py::BookmarkArchivedViewTestCase::test_allowed_bulk_actions_with_sharing_enabled", "bookmarks/tests/test_bookmark_archived_view.py::BookmarkArchivedViewTestCase...
{ "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": [...
95b2de37ae7ea2cde50b23dfd657938a4cf60d25
2023-11-27 19:02:52
docker.io/swerebenchv2/pytest-dev-pyfakefs:916-95b2de3
pytest-dev__pyfakefs-916
Method: FakeOsModule.walk(self, top, topdown=True, onerror=None, followlinks=False) Location: pyfakefs/fake_os.py (exposed through the FakeOsModule instance as ``os``) Inputs: - **top** – a path‑like object (str or ``pathlib.Path``) designating the directory to walk. - **topdown** (bool, default True) – traversal orde...
python
Apache-2.0
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9ae289..de4595e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -45,7 +45,7 @@ repos: - flake8-bugbear args: ["--extend-ignore=E203", "--max-line-length=88"] - repo: https://github.com/pre-commit/mirrors-m...
Fix result of os.walk with a path-like top directory - used to return a Path object for the top dir instead of a string - fixes #915 #### Tasks - [x] Unit tests added that reproduce the issue or prove feature is working - [x] Fix or feature added - [x] Entry to release notes added - [x] Pre-commit CI shows no e...
FakeOsModule.walk return a (Path, list, list) generator instead of a (str, list, list) when a pathlib object is used as input **Describe the bug** method FakeOsModule.walk of <pyfakefs.fake_os.FakeOsModule> is returning a Path object as first element instead of a string as the os.walk method do. **How To Reproduce*...
pytest-dev/pyfakefs
diff --git a/pyfakefs/tests/fake_pathlib_test.py b/pyfakefs/tests/fake_pathlib_test.py index 81ebdfd..15bb7a0 100644 --- a/pyfakefs/tests/fake_pathlib_test.py +++ b/pyfakefs/tests/fake_pathlib_test.py @@ -1139,6 +1139,18 @@ class FakePathlibUsageInOsFunctionsTest(RealPathlibTestCase): with self.assertRaises(No...
[ "pyfakefs/tests/fake_pathlib_test.py::FakePathlibUsageInOsFunctionsTest::test_walk" ]
[ "pyfakefs/tests/fake_pathlib_test.py::FakePathlibInitializationTest::test_init_collapse", "pyfakefs/tests/fake_pathlib_test.py::FakePathlibInitializationTest::test_init_with_segments", "pyfakefs/tests/fake_pathlib_test.py::FakePathlibInitializationTest::test_initialization_type", "pyfakefs/tests/fake_pathlib_...
{ "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": [...
b2dc1f70fc5c9f4da81983b1ecda66486263c872
2023-03-23 18:40:36
docker.io/swerebenchv2/awslabs-aws-ddk:284-b2dc1f7
awslabs__aws-ddk-284
No new interfaces are introduced.
ts
Apache-2.0
diff --git a/src/config/configurator.ts b/src/config/configurator.ts index 48739bc..fc0f8ab 100644 --- a/src/config/configurator.ts +++ b/src/config/configurator.ts @@ -116,7 +116,9 @@ class ConfiguratorAspect implements cdk.IAspect { node.addPropertyOverride(this.propertyName, this.propertyValue); } - ...
feat: configuration by resource ids ### Relates - Closes #278 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
Configurator doesnt work as expected when using resource-ids ### Describe the bug Configurator has 2 ways of working with either resource ids or globally using service like AWS::Lambda::Function. The former is needed to ensure each instance of resource can be given distinctive attributes if needed. Currently if resour...
awslabs/aws-ddk
diff --git a/test/config.test.ts b/test/config.test.ts index 285bf47..375b121 100644 --- a/test/config.test.ts +++ b/test/config.test.ts @@ -1,10 +1,11 @@ import { assert } from "console"; import path from "path"; import * as cdk from "aws-cdk-lib"; -import { Template } from "aws-cdk-lib/assertions"; +import { Match...
[ "Config Override By Id" ]
[ "KMS Defaults", "S3EventStage created the event pattern without a prefix", "S3EventStage created the event pattern with a prefix", "S3EventStage created the event pattern with a list of prefixes", "S3EventStage created the event pattern with multiple buckets", "S3EventStage created the event pattern for m...
{ "base_image_name": "node_16", "docker_specs": null, "install": [ "export DEBIAN_FRONTEND=noninteractive", "npm ci" ], "log_parser": "parse_log_js_4", "test_cmd": "npx jest --no-color --verbose" }
{ "llm_metadata": { "code": "A", "confidence": 0.95, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
89add66178d8b276fa5b50bf58e23d0894054686
2020-04-20 21:47:12
docker.io/swerebenchv2/amzn-ion-java:289-89add66
amzn__ion-java-289
No new interfaces are introduced.
java
Apache-2.0
diff --git a/src/com/amazon/ion/impl/IonWriterSystemText.java b/src/com/amazon/ion/impl/IonWriterSystemText.java index 0e78e95c..f577c26e 100644 --- a/src/com/amazon/ion/impl/IonWriterSystemText.java +++ b/src/com/amazon/ion/impl/IonWriterSystemText.java @@ -366,6 +366,9 @@ class IonWriterSystemText Symbol...
Adds a space after a fieldname's colon when pretty-printing Resolves #288 By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
When pretty-printing, add a space immediately after fieldname: Currently, pretty-printing {total:dollars::45} produces: ``` { total:dollars::45 } ``` This becomes more readable if a space is added after total:, as in: ``` { total: dollars::45 } ```
amzn/ion-java
diff --git a/test/com/amazon/ion/impl/IonMarkupWriterTest.java b/test/com/amazon/ion/impl/IonMarkupWriterTest.java index b84d7a7d..f7067d05 100644 --- a/test/com/amazon/ion/impl/IonMarkupWriterTest.java +++ b/test/com/amazon/ion/impl/IonMarkupWriterTest.java @@ -54,7 +54,7 @@ public class IonMarkupWriterTest extends Io...
[ "com.amazon.ion.impl.IonMarkupWriterTest" ]
[ "com.amazon.ion.impl.IonReaderBinaryRawLargeStreamTest", "com.amazon.ion.impl.IonImplUtilsTest", "com.amazon.ion.impl.BinaryWriterWithLocalSymtabsTest", "com.amazon.ion.impl.CharacterReaderTest", "com.amazon.ion.impl.ByteBufferTest", "com.amazon.ion.impl.UnifiedInputStreamXTest", "com.amazon.ion.impl.It...
{ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
7cf9ba361be9822e92989476c5fb690351481a3a
2024-10-20 06:22:13
docker.io/swerebenchv2/cogent3-cogent3:2050-7cf9ba3
cogent3__cogent3-2050
Function: split_name_and_support(name_field: str | None) -> tuple[str | None, float | None] Location: cogent3.core.tree module Inputs: - **name_field** – a string (or None) representing the Newick name field; may be empty, contain only a support value (e.g., `"24"`), only a name (e.g., `"edge.98"`), or a name and supp...
python
BSD-3-Clause
diff --git a/src/cogent3/core/tree.py b/src/cogent3/core/tree.py index 3df647b30..d12319495 100644 --- a/src/cogent3/core/tree.py +++ b/src/cogent3/core/tree.py @@ -27,6 +27,7 @@ Definition of relevant terms or abbreviations: from __future__ import annotations +import contextlib import json import numbers impor...
ENH: add function to split the internal name field in newick into name and support value, fixes #2045 #2045 ## Summary by Sourcery Add a new function to split internal node name fields in Newick format into separate name and support values, and implement corresponding tests to ensure correct functionality. New Featu...
ENH: extend support for bootstrap values from newick strings `cogent3` stores support values (e.g. from a bootstrap) as `<phylonode>.params["support"]` entry. This information is also stored in some versions of newick strings. For example, IQTree uses `((a,b)##:0.1,..` and `((a,b)node_name/##:0.1,..` where `##` is an i...
cogent3/cogent3
diff --git a/tests/test_core/test_tree.py b/tests/test_core/test_tree.py index c05b8d42a..cca1f4342 100644 --- a/tests/test_core/test_tree.py +++ b/tests/test_core/test_tree.py @@ -14,7 +14,8 @@ from numpy.testing import assert_allclose, assert_equal from cogent3 import load_tree, make_tree, open_ from cogent3._ver...
[ "tests/test_core/test_tree.py::TreeTests::test_make_tree", "tests/test_core/test_tree.py::TreeNodeTests::test_Parent", "tests/test_core/test_tree.py::TreeNodeTests::test_ancestors", "tests/test_core/test_tree.py::TreeNodeTests::test_append", "tests/test_core/test_tree.py::TreeNodeTests::test_bifurcating", ...
[]
{ "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": [...
bdc38f8e7c7a717b408bb520f62708510bc81fd4
2020-07-01 07:21:19
docker.io/swerebenchv2/opengovsg-gogovsg:241-bdc38f8
opengovsg__gogovsg-241
Method: UrlSearchService.search(query: string, options?: { page?: number; sortOrder?: SearchResultsSortOrder }) Location: src/server/services/UrlSearchService.ts Inputs: - **query** *(string)* – the search term entered by the user. - **options.page** *(number, optional)* – pagination offset; defaults to the first p...
ts
custom-check-github
diff --git a/src/server/api/index.ts b/src/server/api/index.ts index 0452e11a..18133ad5 100644 --- a/src/server/api/index.ts +++ b/src/server/api/index.ts @@ -1,5 +1,6 @@ import Express from 'express' import jsonMessage from '../util/json' +import { ERROR_404_PATH } from '../constants' const router = Express.Route...
fix: remove unnecessary info from search api ## Problem The search API returns some properties that are unnecessary for search. [Closes #235] ## Solution Change the api such that only info necessary are returned. i.e `shortUrl`, `longUrl`, `description`, `contactEmail`.
Remove unnecessary info from search API **Describe the bug** Remove `createdAt` and `updatedAt` from search results as these are not crucial to display.
opengovsg/GoGovSG
diff --git a/test/server/services/UrlSearchService.test.ts b/test/server/services/UrlSearchService.test.ts index 7b2cfebb..b0b4e8c5 100644 --- a/test/server/services/UrlSearchService.test.ts +++ b/test/server/services/UrlSearchService.test.ts @@ -1,9 +1,6 @@ import { UrlSearchService } from '../../../src/server/servic...
[ "Should return results from repository with clicks stripped" ]
[ "should return domain name", "should correctly identify facebook bots", "example mac user agent", "example mobile safari user agent", "file with many dots", "normal file", "no extensions", "no type", "with type", "one is 1", "ten is 10", "hundred is 100", "hundreds does not round up to thous...
{ "base_image_name": "node_16", "docker_specs": null, "install": [ "npm ci" ], "log_parser": "parse_log_js_4", "test_cmd": "npm test -- --verbose --no-colors" }
{ "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": [...
a93cf5e54e6d53523c823cc304d29d290870b31b
2020-11-10 01:48:11
docker.io/swerebenchv2/robsontenorio-vue-api-query:148-a93cf5e
robsontenorio__vue-api-query-148
Method: Builder.include(...relationships) Location: src/Builder.js → class Builder Inputs: one or more string relationship names, or a single array of strings; each string must be a valid relationship identifier. Outputs: returns the Builder instance (self) with its `includes` property set to the provided list of re...
js
MIT
diff --git a/docs/content/en/api/query-builder-methods.md b/docs/content/en/api/query-builder-methods.md index f2ed7ad..502aac9 100644 --- a/docs/content/en/api/query-builder-methods.md +++ b/docs/content/en/api/query-builder-methods.md @@ -15,6 +15,14 @@ Eager load relationships. await Model.include('user', 'category...
feat(builder): accept array for `include`, `append` and `orderBy` Accept array of strings for `include`, `append` and `orderBy`. Closes #140
orderBy to accept array of strings instead In the documents, it says: `await Model.orderBy('-created_at', 'category_id') ` is it possible to somehow pass an array of strings as the args?
robsontenorio/vue-api-query
diff --git a/tests/builder.test.js b/tests/builder.test.js index 5a83e55..3676b56 100644 --- a/tests/builder.test.js +++ b/tests/builder.test.js @@ -64,6 +64,10 @@ describe('Query builder', () => { post = Post.include('user', 'category') expect(post._builder.includes).toEqual(['user', 'category']) + + po...
[ "include() sets properly the builder", "append() sets properly the builder", "orderBy() sets properly the builder" ]
[ "it throws an error if $http property has not been set", "it throws an error if baseURL() method was not declared", "it throws an error if request() method was not declared", "the resource() method pluralizes the class name", "the resource() method can be overrided", "the primaryKey() method can be overri...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
da739ee708279defa9642e91139b0146260862ac
2023-09-27 18:58:03
docker.io/swerebenchv2/cockroachdb-pebble:2949-da739ee
cockroachdb__pebble-2949
Function: ErrCancelledCompaction Location: package pebble Inputs: none Outputs: error – a sentinel error value indicating that a compaction was cancelled by a concurrent excise or ingest‑split operation. Callers can compare using errors.Is(err, pebble.ErrCancelledCompaction). Description: Exported error introduced to a...
go
BSD-3-Clause
diff --git a/compaction.go b/compaction.go index 530e160b..47abc977 100644 --- a/compaction.go +++ b/compaction.go @@ -32,7 +32,10 @@ import ( ) var errEmptyTable = errors.New("pebble: empty table") -var errCancelledCompaction = errors.New("pebble: compaction cancelled by a concurrent operation, will retry compacti...
metamorphic: Ignore ErrCancelledCompaction in background errors Previously, if we cancelled a compaction due to an excise or ingest-split, the resultant error would error out the metamorphic test as it wasn't ignored in the metamorphic test's EventListener. This change updates the ignore rule in the metamorphic test...
metamorphic: TestMeta failed [compaction cancelled by a concurrent operation] I think the metamorphic tests need to be adjusted to tolerate background errors. ``` === NAME TestMeta/execution/random-005 meta.go:218: ===== SEED ===== 1695839048661996000 ===== ERR ===== exit ...
cockroachdb/pebble
diff --git a/metamorphic/test.go b/metamorphic/test.go index f1ec3794..90d2d27b 100644 --- a/metamorphic/test.go +++ b/metamorphic/test.go @@ -73,7 +73,7 @@ func (t *test) init(h *history, dir string, testOpts *TestOptions) error { // difference between in-memory and on-disk which causes different code paths // and...
[ "TestMeta", "TestMeta/execution", "TestMeta/execution/random-000", "TestMeta/execution/standard-019", "TestMeta/execution/random-026", "TestMeta/execution/standard-022", "TestMeta/execution/standard-007", "TestMeta/execution/random-017", "TestMeta/execution/random-002", "TestMeta/execution/standar...
[]
{ "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": 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": [...
d5626018074a3f3a7c284500ce9cb3cdfa28f8af
2023-04-27 01:45:24
docker.io/swerebenchv2/willowtreeapps-assertk:457-d562601
willowtreeapps__assertk-457
Method: Assert<CharSequence>.containsMatch(self, regex: Regex) Location: assertk/src/commonMain/kotlin/assertk/assertions/charsequence.kt Inputs: regex – a `Regex` defining the pattern that should appear somewhere inside the examined `CharSequence`. Outputs: Returns the same `Assert<CharSequence>` for chaining. Throws ...
kotlin
MIT
diff --git a/assertk/src/commonMain/kotlin/assertk/assertions/charsequence.kt b/assertk/src/commonMain/kotlin/assertk/assertions/charsequence.kt index 89c18394..01a71147 100644 --- a/assertk/src/commonMain/kotlin/assertk/assertions/charsequence.kt +++ b/assertk/src/commonMain/kotlin/assertk/assertions/charsequence.kt @...
Unlike 'contains' this is a regex rather than a literal. Unlike 'matches' this looks for a subset of the charsequence to match rather than the entire contents. Closes #452
New assertion: `containsMatch` A mixture of `contains` and `match`, but only looks for a match within the string rather than against the whole thing. Implementation is basically `matchesPredicate(regex::containsMatchIn)`, but it's nice to not have to do that every time you want to switch from an exact `contains` to ...
willowtreeapps/assertk
diff --git a/assertk/src/commonTest/kotlin/test/assertk/assertions/CharSequenceTest.kt b/assertk/src/commonTest/kotlin/test/assertk/assertions/CharSequenceTest.kt index 7ec39104..cddd8754 100644 --- a/assertk/src/commonTest/kotlin/test/assertk/assertions/CharSequenceTest.kt +++ b/assertk/src/commonTest/kotlin/test/asse...
[ "isNotEqualTo_same_nullable_string_fails[jvm] (test.assertk.assertions.JavaNullableStringTest)", "isNotEqualTo_different_string_passes[jvm] (test.assertk.assertions.JavaNullableStringTest)", "isEqualTo_same_nullable_string_passes[jvm] (test.assertk.assertions.JavaNullableStringTest)", "isEqualTo_different_str...
[]
{ "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
2de1a1ce4cb2f63b3a7b7951614ae0c749ddb253
2020-05-29 02:33:32
docker.io/swerebenchv2/jeremydaly-dynamodb-toolbox:53-2de1a1c
jeremydaly__dynamodb-toolbox-53
Function: formatItem(DocumentClient)(attributes, linked, item, include = []) Location: Inputs: - **DocumentClient** – an instance of AWS DynamoDB DocumentClient (used for type validation). - **attributes** – object describing the entity’s attribute metadata (type, alias, map, prefix, suffix, etc.). - **linked** – ...
ts
MIT
diff --git a/lib/formatItem.js b/lib/formatItem.js index 2138bde4..28791391 100644 --- a/lib/formatItem.js +++ b/lib/formatItem.js @@ -18,9 +18,9 @@ module.exports = (DocumentClient) => (attributes,linked,item,include=[]) => { const validateType = validateTypes(DocumentClient) return Object.keys(item).reduce((a...
Allow attributes not specified in entity to be passed through Fixes #50 Looking at the code I figured this was a bug, since there were guards for everything else. PS. Thanks for this library, truly makes single table design approachable 🥇
Entities need to list all attributes If an entity does not list an attribute that exists in the database, `get` fails. To make `await entityName.get(item)` work, in the definition of the entity `entityName`, it needs to list all attributes it may pull from the database for that particular item. Otherwise, it shows a...
jeremydaly/dynamodb-toolbox
diff --git a/__tests__/formatItem.unit.test.js b/__tests__/formatItem.unit.test.js index 286fac30..d673d8cd 100644 --- a/__tests__/formatItem.unit.test.js +++ b/__tests__/formatItem.unit.test.js @@ -28,7 +28,13 @@ DefaultTable.entities = new Entity({ list_alias2: { type: 'list', map: 'list2' }, test: 'map', ...
[ "passes through attribute not specified in entity" ]
[ "parses entity definition with all available options", "fails on extra config option", "parse simple attributes", "fails when partitionKey is an invalid type", "fails when sortKey is an invalid type", "fails when attribute is an invalid type", "fails when partitionKey is an invalid type (in object confi...
{ "base_image_name": "node_20", "docker_specs": null, "install": [ "npm ci --legacy-peer-deps" ], "log_parser": "parse_log_js_4", "test_cmd": "npx jest --verbose --silent=false --useStderr --no-colors" }
{ "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": [...
53770139237370ffd438c11bac551f38fd11e98c
2025-04-28 11:46:23
docker.io/swerebenchv2/biotite-dev-biotite:795-5377013
biotite-dev__biotite-795
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/pyproject.toml b/pyproject.toml index 4e857dfc..c0eeda8e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,12 +4,12 @@ requires-python = ">=3.11" description = "A comprehensive library for computational molecular biology" readme = "README.rst" authors = [{name = "The Biotite contributors"}] -licens...
Fix #794 Fixes #794
altloc_id missing from get_structure() output The last few recent commits have altered the behavior of get_structure() so that its output is missing the altloc_id annotation. I can't tell if this is expected behavior or a bug, however the docstring implies that its a bug. ``` altloc : {'first', 'occupancy', 'all'} ...
biotite-dev/biotite
diff --git a/.github/workflows/test_and_deploy.yml b/.github/workflows/test_and_deploy.yml index f830691b..73633f87 100644 --- a/.github/workflows/test_and_deploy.yml +++ b/.github/workflows/test_and_deploy.yml @@ -106,7 +106,7 @@ jobs: - uses: actions/checkout@v4 - name: Install cibuildwheel # M...
[ "tests/structure/io/test_pdbx.py::test_filter_altloc[1aki]" ]
[ "tests/structure/io/test_pdbx.py::test_get_model_count[cif]", "tests/structure/io/test_pdbx.py::test_get_model_count[bcif]", "tests/structure/io/test_pdbx.py::test_escape[-False]", "tests/structure/io/test_pdbx.py::test_escape[-True]", "tests/structure/io/test_pdbx.py::test_escape[", "tests/structure/io/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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
ee540f16d8fe878857dac5d741032eb49b290461
2023-05-08 18:56:49
docker.io/swerebenchv2/alteryx-evalml:4179-ee540f1
alteryx__evalml-4179
Method: PipelineBase.load(file_path: Union[str, io.BytesIO]) → PipelineBase Location: evalml/pipelines/pipeline_base.py Inputs: - **file_path** (Union[str, io.BytesIO]): Either a filesystem path to a pickled pipeline file or a BytesIO object containing the pickled bytes. Outputs: - Returns a **PipelineBase** instance...
python
BSD-3-Clause
diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst index 3b532b4a..681dad25 100644 --- a/docs/source/release_notes.rst +++ b/docs/source/release_notes.rst @@ -2,6 +2,7 @@ Release Notes ------------- **Future Releases** * Enhancements + * Added BytesIO support to PipelinBase.load() ...
Added BytesIO support to PipelineBase.load() ### Pull Request Description Added support for BytesIO input to PipelineBase.load(), primarily to support VFS Fixes #4178
Update PipelineBase.load() to accept both a path and a file-like object Currently, PipelineBase.load() accepts just a file path. I have some scenarios in which I have a BytesIO object that I would like to pass into the function. Proposed update: 1. Allow str or BytesIO as the argument 2. If BytesIO, pass directl...
alteryx/evalml
diff --git a/evalml/tests/pipeline_tests/test_pipelines.py b/evalml/tests/pipeline_tests/test_pipelines.py index fb519c16..2477acab 100644 --- a/evalml/tests/pipeline_tests/test_pipelines.py +++ b/evalml/tests/pipeline_tests/test_pipelines.py @@ -1,6 +1,8 @@ +import io import os import pickle import re +from typing ...
[ "evalml/tests/pipeline_tests/test_pipelines.py::test_serialization[BytesIO]" ]
[ "evalml/tests/pipeline_tests/test_pipelines.py::test_init_with_invalid_type_raises_error[BinaryClassificationPipeline]", "evalml/tests/pipeline_tests/test_pipelines.py::test_init_with_invalid_type_raises_error[MulticlassClassificationPipeline]", "evalml/tests/pipeline_tests/test_pipelines.py::test_init_with_inv...
{ "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": [...
1baceda12d49103b814acded9259657fd8e0730e
2021-07-25 04:58:48
docker.io/swerebenchv2/adhocore-gronx:7-1baceda
adhocore__gronx-7
No new interfaces are introduced.
go
MIT
diff --git a/validator.go b/validator.go index 3437f42..074415b 100644 --- a/validator.go +++ b/validator.go @@ -53,16 +53,12 @@ func inRange(val int, s string) (bool, error) { } func inStepRange(val, start, end, step int) bool { - for { - if start == val { + for i := start; i <= end && i <= val; i += step { + if...
Fix range-with-step check for boundary condition (#6) Fixes #6
Range-with-step showing time outside the range as due First of all, thanks for the awesome library. For the following example, IsDue() is returning `true` incorrectly. ``` expr = 0-10/2 * * * * ref = 2011-06-20 12:12:00 ``` I think it is because of this function: ``` func inStepRange(val, start, end, step ...
adhocore/gronx
diff --git a/gronx_test.go b/gronx_test.go index 8948172..c6a55c3 100644 --- a/gronx_test.go +++ b/gronx_test.go @@ -129,6 +129,7 @@ func testcases() []Case { {"0 0 * * 2-7", "2011-06-18 23:09:00", false}, {"0 0 * * 4-7", "2011-07-19 00:00:00", false}, {"0-12/4 * * * *", "2011-06-20 12:04:00", true}, + {"0-10...
[ "TestIsDue", "TestIsDue/is_due_0-10/2_*_*_*_*" ]
[ "TestNormalize", "TestNormalize/normalize_*___*__*_*_*", "TestNormalize/normalize_*_*_*_*_*_2021", "TestNormalize/normalize_@hourly", "TestNormalize/normalize_0_0_JAN,feb_*_sun,MON", "TestIsValid", "TestIsValid/is_valid", "TestIsValid/is_not_valid", "TestIsDue/is_due_@always", "TestIsDue/is_due_*_...
{ "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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
c9536b117e39fef41b9ccb5e07463eecda15ba2a
2024-11-14 20:56:44
docker.io/swerebenchv2/getmoto-moto:8315-c9536b1
getmoto__moto-8315
Method: IoTClient.get_indexing_configuration(self) Location: moto/iot/responses.py → def get_indexing_configuration(self) → json.dumps(self.iot_backend.get_index_configuration()) Inputs: No required parameters. The call is made on a boto3 IoT client (e.g., boto3.client("iot")). Outputs: Returns a JSON‑encoded dict (co...
python
Apache-2.0
diff --git a/IMPLEMENTATION_COVERAGE.md b/IMPLEMENTATION_COVERAGE.md index e5ee66fff..2349a0b5f 100644 --- a/IMPLEMENTATION_COVERAGE.md +++ b/IMPLEMENTATION_COVERAGE.md @@ -4628,7 +4628,7 @@ - [ ] get_buckets_aggregation - [ ] get_cardinality - [ ] get_effective_policies -- [ ] get_indexing_configuration +- [X] get_...
S3: get_object_attributes() now also works for Glacier objects Fixes #8307
S3 get_object_attributes fails for GLACIER objects Environment: Python 3.11 Windows 11 Pro moto==5.0.20 pytest==8.3.3 My failing test ``` def test_get_glacier_object_attributes(self) -> None: s3 = client( "s3", region_name="eu-west-1" ) s3.create_buc...
getmoto/moto
diff --git a/tests/test_iot/test_iot_indexing_configuration.py b/tests/test_iot/test_iot_indexing_configuration.py new file mode 100644 index 000000000..d2ec29a58 --- /dev/null +++ b/tests/test_iot/test_iot_indexing_configuration.py @@ -0,0 +1,63 @@ +import boto3 + +from moto import mock_aws + + +@mock_aws +def test_va...
[ "tests/test_iot/test_iot_indexing_configuration.py::test_validate_default_indexing_configuration", "tests/test_iot/test_iot_indexing_configuration.py::test_update_indexing_mode", "tests/test_s3/test_s3_storageclass.py::test_s3_get_object_from_glacier" ]
[ "tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_standard", "tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_infrequent_access", "tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_intelligent_tiering", "tests/test_s3/test_s3_storageclass.py::test_s3_storage_class_copy", ...
{ "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": [...
cfd177ab59f2178f4902bc458c533939165b38db
2020-06-20 17:55:54
docker.io/swerebenchv2/kong-swrv:49-cfd177a
kong__swrv-49
Function: useSWRV<Data = any, Error = any>(key: IKey, fn?: fetcherFn<Data>, config?: IConfig) Location: src/use-swrv.ts Inputs: - **key**: IKey – a unique identifier for the request (string, array, or function returning a key). Required. - **fn**: fetcherFn<Data> (optional) – async function that fetches data for the gi...
ts
Apache-2.0
diff --git a/src/use-swrv.ts b/src/use-swrv.ts index c872697..8a30833 100644 --- a/src/use-swrv.ts +++ b/src/use-swrv.ts @@ -101,7 +101,7 @@ type StateRef<Data, Error> = { data: Data, error: Error, isValidating: boolean, /** * Stale-While-Revalidate hook to handle fetching, caching, validation, and more... */ -exp...
fix(fetcher) allow optional fetcher to not revalidate Fixes #48
Get last known state of data if there is no `fn` In the case, we want to share data between components. For example, there is an app config needs to be got from network when app is starting. ``` // in component App const { data: appConfig } = useSWRV('/app/config', configFetcher); .... // in component B const ...
Kong/swrv
diff --git a/tests/use-swrv.spec.tsx b/tests/use-swrv.spec.tsx index 0969cb8..a94cee6 100644 --- a/tests/use-swrv.spec.tsx +++ b/tests/use-swrv.spec.tsx @@ -228,6 +228,34 @@ describe('useSWRV', () => { done() }) + + it('should return cache when no fetcher provided', async done => { + let invoked = 0 + ...
[ "should return data on hydration when fetch is not a promise", "should return `undefined` on hydration", "should return data after hydration", "should return data from a promise", "should allow functions as key and reuse the cache", "should allow async fetcher functions", "should dedupe requests by defa...
[ "should fetch server-side" ]
{ "base_image_name": "node_16", "docker_specs": null, "install": [ "corepack disable yarn", "npm install --prefer-offline --no-audit --quiet --legacy-peer-deps", "npm run build:esm", "npm run build:cjs" ], "log_parser": "parse_log_js_4", "test_cmd": "npm test -- --verbose --no-colors --testT...
{ "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": [...
5abb6219c8d9356fbf645f601fe9ea826b547ec3
2024-07-15 09:21:44
docker.io/swerebenchv2/theupdateframework-go-tuf:645-5abb621
theupdateframework__go-tuf-645
No new interfaces are introduced.
go
Apache-2.0
diff --git a/metadata/config/config.go b/metadata/config/config.go index 09c9b46..cd8cc98 100644 --- a/metadata/config/config.go +++ b/metadata/config/config.go @@ -57,7 +57,7 @@ func New(remoteURL string, rootBytes []byte) (*UpdaterConfig, error) { return &UpdaterConfig{ // TUF configuration - MaxRootRotations...
Increase the default value for MaxRootRotations The default value of 32 is quite small, it may break certain clients that are trying to do complete tuf refresh on a large TUF repo. Closes #644
I increase the default `MaxRootRotations` value for the updater config. The current default value is 32, which is quite small. For some scenarios where the repository is large, a refresh from the first root.json may fail. Note that clients *should* cache the metadata, to avoid large number of rotations which is ineffi...
theupdateframework/go-tuf
diff --git a/metadata/config/config_test.go b/metadata/config/config_test.go index be35a87..a5d4874 100644 --- a/metadata/config/config_test.go +++ b/metadata/config/config_test.go @@ -43,7 +43,7 @@ func TestNewUpdaterConfig(t *testing.T) { remoteURL: "somepath", rootBytes: []byte("somerootbytes"), config: ...
[ "TestNewUpdaterConfig", "TestNewUpdaterConfig/success" ]
[ "TestSetLogger", "TestGetLogger", "TestGenericRead", "TestGenericReadFromMismatchingRoles", "TestMDReadWriteFileExceptions", "TestCompareFromBytesFromFileToBytes", "TestRootReadWriteReadCompare", "TestSnapshotReadWriteReadCompare", "TestTargetsReadWriteReadCompare", "TestTimestampReadWriteReadComp...
{ "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
1977a1bddfea405bd832be69c67a6bcf00fb309a
2025-03-01 20:19:52
docker.io/swerebenchv2/arrow-kt-arrow:3592-1977a1b
arrow-kt__arrow-3592
No new interfaces are introduced.
kotlin
custom-check-github
diff --git a/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/map.kt b/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/map.kt index a69da507e8c..6d05692bea1 100644 --- a/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow/core/map.kt +++ b/arrow-libs/core/arrow-core/src/commonMain/kotlin/arrow...
Fixes #3591 The existing test covers monoid laws but does not verify delegation to the nested monoid's `combine` function, which is why the bug went unnoticed. This PR provides a property-based test that verifies the property of order-preservation when `Map.combine()` delegates. The test fails with the existing i...
[Bug] Map.combine() does not preserve order when delegating to the nested monoid operation This simple unit test demonstrates the issue: ```Kotlin @Test fun testArrowMapCombine() { val map1 = mapOf(1 to "A", 2 to "B") val map2 = mapOf(1 to "lpha", 2 to "eta") val result = map1.combine(...
arrow-kt/arrow
diff --git a/arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/MapKTest.kt b/arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/MapKTest.kt index 546b19991c5..e06b771a340 100644 --- a/arrow-libs/core/arrow-core/src/commonTest/kotlin/arrow/core/MapKTest.kt +++ b/arrow-libs/core/arrow-core/src/commonTe...
[ "tryUpdateShouldFailToUpdateIfModificationHasOccurred()[jvm] (arrow.atomic.AtomicLongTest)", "getAndUpdateSuccessful()[jvm] (arrow.atomic.AtomicLongTest)", "concurrentModifications()[jvm] (arrow.atomic.AtomicLongTest)", "tryUpdateModificationOccursSuccessfully()[jvm] (arrow.atomic.AtomicLongTest)", "updateG...
[]
{ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
ab7989be08b9e175858f11e950820c38600f252d
2020-04-01 18:24:39
docker.io/swerebenchv2/diegoholiveira-jsonlogic:30-ab7989b
diegoholiveira__jsonlogic-30
Function: Apply(logic io.Reader, data io.Reader, out io.Writer) Location: jsonlogic.go (public entry point for evaluating a JSON Logic rule) Inputs: - logic – an io.Reader containing a JSON‑encoded rule (e.g., `{"\/":[0,10]}`) - data – an io.Reader containing the JSON data context (may be empty `{}`) - out – an ...
go
MIT
diff --git a/jsonlogic.go b/jsonlogic.go index 47bb10a..81e6f0c 100644 --- a/jsonlogic.go +++ b/jsonlogic.go @@ -279,14 +279,14 @@ func mult(values interface{}) interface{} { func div(values interface{}) interface{} { var sum float64 - for _, n := range values.([]interface{}) { - if sum == 0 { + for i, n := range...
Use the position of the number to identify the first number Closes #28
0 divided by any number returning denominator instead of 0 Here is the sample program to reproduce ``` package main import ( "bytes" "fmt" "strings" "github.com/diegoholiveira/jsonlogic" ) func main() { rule := `{"/":[0,10]}` logic := strings.NewReader(rule) data := strings.NewReader(`{}`) v...
diegoholiveira/jsonlogic
diff --git a/jsonlogic_test.go b/jsonlogic_test.go index 5ebbda4..1d4a644 100644 --- a/jsonlogic_test.go +++ b/jsonlogic_test.go @@ -468,3 +468,13 @@ func TestMissingOperators(t *testing.T) { assert.EqualError(t, err, "The operator \"sum\" is not supported") } + +func TestZeroDivision(t *testing.T) { + logic := st...
[ "TestZeroDivision" ]
[ "TestRulesFromJsonLogic/Scenario_0", "TestRulesFromJsonLogic/Scenario_1", "TestRulesFromJsonLogic/Scenario_2", "TestRulesFromJsonLogic/Scenario_3", "TestRulesFromJsonLogic/Scenario_4", "TestRulesFromJsonLogic/Scenario_5", "TestRulesFromJsonLogic/Scenario_6", "TestRulesFromJsonLogic/Scenario_7", "Tes...
{ "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": [...
7ccdacf06c383f6ddaaa3039fb62c4f355d6e13b
2023-06-15 21:29:56
docker.io/swerebenchv2/ripple-explorer:746-7ccdacf
ripple__explorer-746
Function: summarizeTransaction(rawTx: object, includeDetails?: boolean) Location: src/rippled/lib/txSummary.ts Inputs: - **rawTx** – the raw transaction JSON object as received from the ledger. - **includeDetails** – optional boolean flag; when true the function includes a detailed `details` field in the returned su...
ts
MIT
diff --git a/src/containers/Transactions/SimpleTab.tsx b/src/containers/Transactions/SimpleTab.tsx index 11d70085..201f046d 100644 --- a/src/containers/Transactions/SimpleTab.tsx +++ b/src/containers/Transactions/SimpleTab.tsx @@ -49,9 +49,11 @@ export const SimpleTab: FC<{ data: any; width: number }> = ({ <Simp...
fix: sequence and account for UNLModify ## High Level Overview of Change The sequence was saying that it used a ticket and account was blank. Now Account will be hidden since it is blank. Fixes #477 ### Type of Change <!-- Please check relevant options, delete irrelevant ones. --> - [x] Bug fix (non-br...
`UNLModify` transactions show incorrect sequence and account Since account is not set for UNLModify we should hide the field also the sequence display incorrectly states that ticket 0 was used. ![UNLModify](https://user-images.githubusercontent.com/464895/204333916-de1c9f5a-5f41-4f1e-bc76-e4b2420789ce.png)
ripple/explorer
diff --git a/src/containers/shared/components/Transaction/UNLModify/test/UNLModifySimple.test.tsx b/src/containers/shared/components/Transaction/UNLModify/test/UNLModifySimple.test.tsx index ef440a9f..f3558c8e 100644 --- a/src/containers/shared/components/Transaction/UNLModify/test/UNLModifySimple.test.tsx +++ b/src/co...
[ "renders tx with correct account and sequence" ]
[ "renders main parts", "renders home", "renders ledger explorer page", "renders not found page", "renders ledger page", "renders transaction page", "renders transaction page with invalid hash", "renders transaction page with no hash", "renders account page for classic address", "renders account pag...
{ "base_image_name": "node_16", "docker_specs": null, "install": [ "npm install --force" ], "log_parser": "parse_log_js_4", "test_cmd": "npx jest --env=jsdom --no-cache --runInBand --verbose --color=no" }
{ "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": [...
c1d4c5596db6445e45546e6040eb2fb44da165be
2020-05-30 15:47:41
docker.io/swerebenchv2/oragono-oragono:1087-c1d4c55
oragono__oragono-1087
Function: ArgsToStrings(maxLength int, arguments []string, delim string) []string Location: irc/utils/args.go Inputs: - maxLength: maximum allowed length of each output string (including delimiters). - arguments: slice of argument strings to be concatenated. - delim: delimiter to insert between arguments (e.g., ",")....
go
MIT
diff --git a/irc/utils/args.go b/irc/utils/args.go index 64475da1..ea3f0c96 100644 --- a/irc/utils/args.go +++ b/irc/utils/args.go @@ -35,7 +35,7 @@ func ArgsToStrings(maxLength int, arguments []string, delim string) []string { continue } - if len(buffer) > 1 { + if len(buffer) > 0 { buffer += delim }...
Fix issue with one-character args in ArgsToStrings. Resolves #1086.
ArgsToStrings misses delimiter with one-character args > MONITOR + a,b,c > :oragono.test 731 hi a,b,c > MONITOR L > :oragono.test 732 hi ab,c > :oragono.test 733 hi :End of MONITOR list > MONITOR S > :oragono.test 731 hi ab,c
oragono/oragono
diff --git a/irc/utils/args_test.go b/irc/utils/args_test.go index 5c84b26a..b846d122 100644 --- a/irc/utils/args_test.go +++ b/irc/utils/args_test.go @@ -5,6 +5,14 @@ package utils import "testing" +func TestArgsToStrings(t *testing.T) { + val := ArgsToStrings(512, []string{"a", "b", "c"}, ",") + assertEqual(val,...
[ "TestArgsToStrings" ]
[ "TestStringToBool", "TestSafeErrorParam", "TestSets", "TestConfirmation", "TestGenerateSecretToken", "TestTokenCompare", "TestMunging", "TestCertfpComparisons", "TestGlob", "TestMasks", "TestIsHostname", "TestIsServerName", "TestNormalizeToNet", "TestNormalizedNetToString", "TestNormaliz...
{ "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
55d8a990b5a15c7213dece9f412aa8f9085d0b97
2022-08-25 15:56:01
docker.io/swerebenchv2/config4k-config4k:146-55d8a99
config4k__config4k-146
No new interfaces are introduced.
kotlin
Apache-2.0
diff --git a/src/main/kotlin/io/github/config4k/Extension.kt b/src/main/kotlin/io/github/config4k/Extension.kt index defe908..e882e0e 100644 --- a/src/main/kotlin/io/github/config4k/Extension.kt +++ b/src/main/kotlin/io/github/config4k/Extension.kt @@ -6,6 +6,7 @@ import com.typesafe.config.ConfigFactory import io.git...
Fixes #100
`java.time.Duration` is not supported when toConfig **Describe the bug** ```kotlin import io.github.config4k.toConfig import java.time.Duration Duration.ofMinutes(1).toConfig("") ``` throw ``` io.github.config4k.Config4kException$UnSupportedType: type: java.time.Duration is not supported at io.github.con...
config4k/config4k
diff --git a/src/test/kotlin/io/github/config4k/TestArbitraryType.kt b/src/test/kotlin/io/github/config4k/TestArbitraryType.kt index 7ee4906..f03a3aa 100644 --- a/src/test/kotlin/io/github/config4k/TestArbitraryType.kt +++ b/src/test/kotlin/io/github/config4k/TestArbitraryType.kt @@ -2,6 +2,7 @@ package io.github.confi...
[ "io.github.config4k.TestToConfigForArbitraryType > DataWithDuration.toConfig should > io.github.config4k.TestToConfigForArbitraryType.return Config having DataWithDuration" ]
[ "io.github.config4k.TestArbitraryGenericType > Config.extract<PetPerson<Dog>> should > io.github.config4k.TestArbitraryGenericType.return PetPerson", "io.github.config4k.TestArbitraryGenericType > Config.extract<PetPerson<Yeti>> should > io.github.config4k.TestArbitraryGenericType.return PetPerson", "io.github....
{ "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
6a88d238d735a87be13ff4be024fc7978ce40655
2023-10-27 18:21:25
docker.io/swerebenchv2/rstudio-vetiver-python:201-6a88d23
rstudio__vetiver-python-201
Function: vetiver_endpoint(url: str) -> str Location: vetiver.server Inputs: - **url** (str): the prediction endpoint URL; may include a trailing “/”. Outputs: - (str): the same URL with any trailing slash removed (default: `"http://127.0.0.1:8000/predict"`). Description: Normalizes a Vetiver prediction endpoint by s...
python
MIT
diff --git a/setup.cfg b/setup.cfg index ef3a541..62cd44f 100644 --- a/setup.cfg +++ b/setup.cfg @@ -31,7 +31,7 @@ install_requires = nest-asyncio requests pins>=0.7.1 - rsconnect-python>=1.11.0 + rsconnect-python>=1.8.0 plotly pip-tools httpx diff --git a/vetiver/rsconnect.py b/veti...
[BUG] remove trailing backslash closes #194
handling trailing backslash on prediction endpoints Currently, on Posit Connect, if you add a trailing backslash-- `connectapi.com/myapi/predict/` rather than `connectapi.com/myapi/predict`-- you get a mysterious error: ```python ConnectionError: HTTPConnectionPool(host='xxx', port=000): Max retries exceeded with u...
rstudio/vetiver-python
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aa4cec2..2c59f4b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -63,7 +63,6 @@ jobs: docker-compose up --build -d pip freeze > requirements.txt make dev - cat requirement...
[ "vetiver/tests/test_server.py::test_vetiver_endpoint" ]
[ "vetiver/tests/test_server.py::test_get_ping", "vetiver/tests/test_server.py::test_get_docs", "vetiver/tests/test_server.py::test_get_metadata", "vetiver/tests/test_server.py::test_get_prototype", "vetiver/tests/test_server.py::test_complex_prototype" ]
{ "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": [...
fe99b20850ae18b9c9cb4b8d7aa0937e041a5ad1
2019-07-21 17:57:17
docker.io/swerebenchv2/formidablelabs-urql:348-fe99b20
formidablelabs__urql-348
No new interfaces are introduced.
ts
MIT
diff --git a/examples/1-getting-started/src/app/Home.tsx b/examples/1-getting-started/src/app/Home.tsx index 73e76995..d37c959b 100644 --- a/examples/1-getting-started/src/app/Home.tsx +++ b/examples/1-getting-started/src/app/Home.tsx @@ -46,6 +46,8 @@ export const Home: FC = () => { ); }; +Home.displayName = 'Ho...
Fix bounds checking of HTTP status codes in fetchExchange Fixes #341.
Bug in fetch HTTP status code handling Hi! This is purely static analysis, so forgive me if I'm misunderstanding: https://github.com/FormidableLabs/urql/blob/25f4b96d6a510ade43eb4839ab595fc65e8a716a/src/exchanges/fetch.ts#L136-L142 Shouldn't L139 be checking `response.status >= statusRangeEnd`, not `>`? It'd be str...
FormidableLabs/urql
diff --git a/src/exchanges/__snapshots__/fetch.test.ts.snap b/src/exchanges/__snapshots__/fetch.test.ts.snap index 13a0174b..fa96ef54 100644 --- a/src/exchanges/__snapshots__/fetch.test.ts.snap +++ b/src/exchanges/__snapshots__/fetch.test.ts.snap @@ -131,6 +131,147 @@ Object { } `; +exports[`on error returns error ...
[ "returns error data with status 400 and manual redirect mode" ]
[ "returns the first exchange if it is the only input", "composes exchanges correctly", "returns consistent hashes for DocumentNodes", "guesses the same hash for similar DocumentNodes", "guesses the same hash for unnamed but similar DocumentNodes", "warns about different queries having identical names", "...
{ "base_image_name": "node_16", "docker_specs": null, "install": [ "npm install -g yarn --force", "yarn install --frozen-lockfile --silent" ], "log_parser": "parse_log_js_4", "test_cmd": "yarn test --verbose --silent" }
{ "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": [...
d564bd286fe258f25fc3222c4cdf4eb18bb1da5d
2021-12-02 11:36:20
docker.io/swerebenchv2/alecthomas-kong:245-d564bd2
alecthomas__kong-245
No new interfaces are introduced.
go
MIT
diff --git a/model.go b/model.go index bc7f37e..2c2991f 100644 --- a/model.go +++ b/model.go @@ -400,21 +400,24 @@ func (f *Flag) FormatPlaceHolder() string { if f.Value.IsSlice() && f.Value.Tag.Sep != -1 { tail += string(f.Value.Tag.Sep) + "..." } + if f.PlaceHolder != "" { + return f.PlaceHolder + tail + } ...
Fix that default should not override the placeholder Fixes #243.
Specifying default overrides placeholder I have: ``` var CLI struct { Changelog string `short:"f" placeholder:"PATH" default:"CHANGELOG.md" help:"Path to the changelog file to use."` } ``` The help message is: ``` -f, --changelog="CHANGELOG.md" Path to the changelog file to use. ``` I would expect...
alecthomas/kong
diff --git a/model_test.go b/model_test.go index 0edd1b3..1296f3d 100644 --- a/model_test.go +++ b/model_test.go @@ -32,6 +32,7 @@ func TestFlagString(t *testing.T) { DefaultInt int `default:"42"` DefaultStr string `default:"hello"` Placeholder string `placeholder:"worl...
[ "TestFlagString" ]
[ "TestApplyDefaults", "TestApplyDefaults/DefaultsWhenNotSet", "TestApplyDefaults/PartiallySetDefaults", "TestParseHandlingBadBuild", "TestInterpolate", "TestOptions", "TestBindTo", "TestBindToProvider", "TestScannerTake", "TestScannerPeek", "TestConfigFlag", "TestVersionFlag", "TestMultipleCo...
{ "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
52b514e3d7c32a4269a9f0174bcba72fbf192cac
2025-04-21 18:02:37
docker.io/swerebenchv2/openmdao-openmdao:3516-52b514e
openmdao__openmdao-3516
No new interfaces are introduced.
python
custom-check-github
diff --git a/openmdao/drivers/pyoptsparse_driver.py b/openmdao/drivers/pyoptsparse_driver.py index ed8d93199..9f11b6ff2 100644 --- a/openmdao/drivers/pyoptsparse_driver.py +++ b/openmdao/drivers/pyoptsparse_driver.py @@ -191,7 +191,7 @@ class pyOptSparseDriver(Driver): """ if pyoptsparse is None: ...
`pyOptSparseDriver` will now raise an `ImportError` instead of a `RuntimeError` if `pyoptsparse` is not installed. ### Summary `pyOptSparseDriver` will now raise an `ImportError` instead of a `RuntimeError` if `pyoptsparse` is not installed. ### Related Issues - Resolves #3510 ### Backwards incompatibilitie...
When pyoptsparse isn't installed, a RuntimeError is raised instead of an ImportError. ### Desired capability or behavior. When the pyOptSparseDriver detects that pyOptSparse has not been installed, it raises a RuntimeError: if pyoptsparse is None: # pyoptsparse is not installed raise R...
OpenMDAO/OpenMDAO
diff --git a/openmdao/drivers/tests/test_pyoptsparse_driver.py b/openmdao/drivers/tests/test_pyoptsparse_driver.py index 358e28e34..02690b2c1 100644 --- a/openmdao/drivers/tests/test_pyoptsparse_driver.py +++ b/openmdao/drivers/tests/test_pyoptsparse_driver.py @@ -157,7 +157,7 @@ class TestNotInstalled(unittest.TestCas...
[ "openmdao/drivers/tests/test_pyoptsparse_driver.py::TestNotInstalled::test_pyoptsparse_not_installed" ]
[]
{ "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": [...
be73a203c92049ef85eb261bdf5e8eb1b0757313
2024-03-15 15:49:12
docker.io/swerebenchv2/maxgraph-maxgraph:359-be73a20
maxgraph__maxgraph-359
No new interfaces are introduced.
ts
Apache-2.0
diff --git a/package-lock.json b/package-lock.json index eb856e2e7..37c96db2f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12902,9 +12902,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.15.5", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redir...
fix: import mxGraph XML including mxGeometry.offset mxPoint Also add tests to confirm that the maxGraph format correctly import/export Geometry.offset. Closes #356
Older versions of mxPoint do not decode successfully The codec registration method is compatible with mxCell, mxGeometry, and mxGraphModel, but is not compatible with mxPoint. // mxGraph support CodecRegistry.addAlias('mxGraphModel', 'GraphDataModel'); CodecRegistry.register(new mxCellCodec(), fa...
maxGraph/maxGraph
diff --git a/packages/core/__tests__/serialization/serialization.xml.mxGraph.test.ts b/packages/core/__tests__/serialization/serialization.xml.mxGraph.test.ts index 4c0929780..18829e58a 100644 --- a/packages/core/__tests__/serialization/serialization.xml.mxGraph.test.ts +++ b/packages/core/__tests__/serialization/seria...
[ "Model with geometry" ]
[ "Model with style", "from https://github.com/maxGraph/maxGraph/issues/221", "Check the content of an empty GraphDataModel", "Import then export - expect the same xml content", "only use GraphDataModel", "use Graph - was failing in issue 178", "empty model exported as pretty XML", "empty model exported...
{ "base_image_name": "node_20", "docker_specs": null, "install": [ "npm ci" ], "log_parser": "parse_log_js_4", "test_cmd": "npm test -w packages/core -- --verbose --no-colors" }
{ "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": [...
3c7f8222da19f0b87deee6248e64c3cf0fb435bd
2023-02-17 08:38:29
docker.io/swerebenchv2/sql-formatter-org-sql-formatter:565-3c7f822
sql-formatter-org__sql-formatter-565
No new interfaces are introduced.
ts
MIT
diff --git a/src/languages/bigquery/bigquery.formatter.ts b/src/languages/bigquery/bigquery.formatter.ts index ab0c8ac2..bd69ae7f 100644 --- a/src/languages/bigquery/bigquery.formatter.ts +++ b/src/languages/bigquery/bigquery.formatter.ts @@ -150,6 +150,8 @@ const reservedPhrases = expandPhrases([ 'NOT DETERMINISTIC...
Format IS [NOT] DISTINCT FROM operator Fixes #564
[FORMATTING] newline after FROM and NULL in IS DISTINCT FROM NULL **Input data** Which SQL and options did you provide as input? ```sql SELECT table1.id FROM table1 LEFT OUTER JOIN table2 ON table2.table1_id = table1.id WHERE NOT (COALESCE(interview_stage.* IS DISTINCT FROM NULL, FALSE)) ``` **Expected Out...
sql-formatter-org/sql-formatter
diff --git a/test/bigquery.test.ts b/test/bigquery.test.ts index 1976d68d..857181df 100644 --- a/test/bigquery.test.ts +++ b/test/bigquery.test.ts @@ -23,6 +23,7 @@ import supportsTruncateTable from './features/truncateTable.js'; import supportsMergeInto from './features/mergeInto.js'; import supportsCreateView from ...
[ "formats IS [NOT] DISTINCT FROM operator" ]
[ "returns single item when no [optional blocks] found", "expands expression with one [optional block] at the end", "expands expression with one [optional block] at the middle", "expands expression with one [optional block] at the start", "expands multiple [optional] [blocks]", "expands expression with opti...
{ "base_image_name": "node_20", "docker_specs": null, "install": [ "export DEBIAN_FRONTEND=noninteractive", "yarn install --ignore-scripts --frozen-lockfile --quiet", "yarn grammar --silent" ], "log_parser": "parse_log_js_4", "test_cmd": "yarn jest --verbose --no-color" }
{ "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": [...
8e9bb8673e6c138bf37fe8e487532bca2270ee10
2020-11-28 03:56:11
docker.io/swerebenchv2/absinthe-graphql-absinthe:998-8e9bb86
absinthe-graphql__absinthe-998
Function: render_default_value(schema, adapter, field, value) Location: lib/absinthe/type/built_ins/introspection.ex Inputs: - **schema** – the Absinthe.Schema where the type is defined. - **adapter** – an Absinthe.Adapter implementation used for value serialization. - **field** – an %Absinthe.Type.InputValue{} de...
elixir
custom-check-github
diff --git a/lib/absinthe/type/built_ins/introspection.ex b/lib/absinthe/type/built_ins/introspection.ex index 837ca30e..3d3c9953 100644 --- a/lib/absinthe/type/built_ins/introspection.ex +++ b/lib/absinthe/type/built_ins/introspection.ex @@ -353,7 +353,9 @@ defmodule Absinthe.Type.BuiltIns.Introspection do case A...
Fix partial default value input type This PR fixes the default value rendering in cases when the default value contains just a subset of all the fields of an input type. Fixes #939
Introspection query breaks in the presence of query filters with default value ### Environment * Elixir version (elixir -v): ```bash Erlang/OTP 22 [erts-10.5] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] Elixir 1.9.4 (compiled with Erlang/OTP 20) ``` * Absinthe version (mix deps | grep absinthe): `1.5.1` ...
absinthe-graphql/absinthe
diff --git a/test/absinthe/introspection_test.exs b/test/absinthe/introspection_test.exs index d58e93a8..bdbefdfa 100644 --- a/test/absinthe/introspection_test.exs +++ b/test/absinthe/introspection_test.exs @@ -545,4 +545,36 @@ defmodule Absinthe.IntrospectionTest do result ) end + + test "properly rend...
[ "properly render partial default value input objects" ]
[ "scenario #1", "Valid non-nullable value No Arg on optional arg", "Invalid input object value Partial object, unknown field arg without suggestion", "Valid List value Empty list value", "Invalid List value Incorrect item type", "Valid input object value Partial object, including required", "Valid input ...
{ "base_image_name": "elixir_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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
4f92eb9f9beeddf97633d6fc856cb599c7ecf231
2018-07-22 07:56:03
docker.io/swerebenchv2/gcanti-io-ts-types:45-4f92eb9
gcanti__io-ts-types-45
Method: fromNewtype<N extends AnyNewtype = never>(type: Type<CarrierOf<N>, CarrierOf<N>, mixed>) → Type<N, CarrierOf<N>, mixed> Location: src/newtype-ts/fromNewtype.ts Inputs: - Generic N – any Newtype definition (`AnyNewtype`), e.g. `interface Age extends Newtype<'Age', number> {}`. - `type` – an `io-ts` `Type` who...
ts
MIT
diff --git a/src/index.ts b/src/index.ts index 22ef348..5200cc7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -23,6 +23,7 @@ export { TypePrismIso } // newtype-ts export { fromNewtype } from './newtype-ts/fromNewtype' +export { fromNewtypeCurried } from './newtype-ts/fromNewtype' export { fromRefinement } from '...
New Feature: add newtype-ts/fromNewtypeCurried, closes #44
Relax fromNewtype signature ```ts interface Id extends Newtype<'Id', string> {} const Id = fromNewtype<Id>(t.string) interface User { id: Id name: string } const User = t.interface({ id: Id, name: t.string }) interface SpecialUser extends Newtype<'SpecialUser', User> {} const SpecialUser =...
gcanti/io-ts-types
diff --git a/test/index.ts b/test/index.ts index 65c6be5..dc0e5ed 100644 --- a/test/index.ts +++ b/test/index.ts @@ -22,13 +22,13 @@ import { fromRefinement, lensesFromProps, lensesFromInterface, - mapOutput + mapOutput, + fromNewtypeCurried } from '../src' import { left, right } from 'fp-ts/lib/Either' ...
[ "fromNewtypeCurried" ]
[ "should map the output of encode", "createOptionFromNullable", "createOptionFromJSON", "createOptionOfOptionFromJSON", "createEitherFromJSON", "createEitherOfOptionFromJSON", "createNonEmptyArrayFromArray", "createSetFromArray", "createStrMapFromDictionary", "NumberFromString", "IntegerFromStrin...
{ "base_image_name": "node_16", "docker_specs": null, "install": [ "npm ci", "npm run build" ], "log_parser": "parse_log_js_4", "test_cmd": "npm run jest -- --verbose --no-color" }
{ "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": [...
4ccb20aacae645222cf9dd2834fadcf68d949acb
2023-04-12 14:01:36
docker.io/swerebenchv2/spatie-laravel-permission:2396-4ccb20a
spatie__laravel-permission-2396
No new interfaces are introduced.
php
MIT
diff --git a/src/Commands/Show.php b/src/Commands/Show.php index bcbe073..07223a3 100644 --- a/src/Commands/Show.php +++ b/src/Commands/Show.php @@ -62,8 +62,9 @@ class Show extends Command config('permission.teams') ? $teams->prepend('')->toArray() : [], $roles->keys()->map(fu...
[V5] Fix permission:show roles with underscores Closes #2395 > Artisan permission:show command incorrect roles with underscores > When executing ./artisan permission:show, roles with underscores in them only show up until the first underscore.
Artisan permission:show command incorrect roles with underscores. **Describe the bug** When executing `./artisan permission:show`, roles with underscores in them only show up until the first underscore. **Versions** You can use `composer show` to get the version numbers of: - spatie/laravel-permission package ver...
spatie/laravel-permission
diff --git a/tests/CommandTest.php b/tests/CommandTest.php index be1541f..4cbda63 100644 --- a/tests/CommandTest.php +++ b/tests/CommandTest.php @@ -87,6 +87,9 @@ class CommandTest extends TestCase /** @test */ public function it_can_show_permission_tables() { + Role::where('name', 'testRole2')->d...
[ "Blade > All blade directives will evaluate false when there is nobody logged in [111.03 ms]", "Blade > All blade directives will evaluate false when somebody without roles or permissions is logged in [18.12 ms]", "Blade > All blade directives will evaluate false when somebody with another guard is logged in [1...
[ "Gate > It can determine if a user has a direct permission [11.69 ms]", "Has Permissions With Custom Models > It does detach roles when force deleting [12.34 ms]", "Has Permissions With Custom Models > It can sync permissions to a model that is not persisted [15.06 ms]", "Role Middleware > The required roles ...
{ "base_image_name": "php_8.3.16", "docker_specs": null, "install": [ "export COMPOSER_HOME=/tmp/composer", "mkdir -p $COMPOSER_HOME", "composer install --no-interaction --prefer-dist" ], "log_parser": "parse_log_phpunit", "test_cmd": "./vendor/bin/phpunit --testdox --colors=never" }
{ "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": [...
af62ab9087cfc1c8984453c8a3ef423b38fa52ca
2021-06-02 22:53:45
docker.io/swerebenchv2/userfront-userfront-core:17-af62ab9
userfront__userfront-core-17
Method: Userfront.redirectIfLoggedIn() Location: Userfront (exported object from src/index.js) Inputs: *None* – the function reads `Userfront.store.accessToken` and the current URL’s query string (`redirect` parameter) internally. Outputs: Returns a Promise that resolves after performing one of the following side‑effec...
js
null
diff --git a/src/index.js b/src/index.js index 8eae515..f1c632b 100644 --- a/src/index.js +++ b/src/index.js @@ -320,7 +320,13 @@ async function resetPassword({ uuid, token, password }) { * tenant's login redirection path (path after login). */ async function redirectIfLoggedIn() { - if (!store.accessToken) retur...
Redirect user to override path when already logged in Closes #16
Redirect to particular page when already logged in If a user is already logged in, the login form will redirect them. We want this action to also respect the `?redirect=` querystring parameter. 1. Visit `/login?redirect=/path` while logged in What should happen: should redirect the user to `/path`
userfront/userfront-core
diff --git a/test/userfront.spec.js b/test/userfront.spec.js index 0da089e..585ab58 100644 --- a/test/userfront.spec.js +++ b/test/userfront.spec.js @@ -1,4 +1,8 @@ +import axios from "axios"; + import Userfront from "../src/index.js"; +import constants from "../src/constants.js"; +const { apiUrl } = constants; /**...
[ "should not make request to Userfront API and immediately redirect user to path defined in `redirect` param", "should make request to Userfront API and redirect user to tenant's loginRedirectPath when `redirect` param is not specified" ]
[ "should add callbacks that are fired when Userfront.init(tenantId) is called", "should throw if provider is missing", "should get provider link and redirect", "should throw if tenant ID is missing", "should return link with correct tenant_id, and origin", "should return link with redirect if provided", ...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
50d01fc0ed892dacf7c91602273cbae46f850bc0
2025-04-02 16:00:32
docker.io/swerebenchv2/brian-team-brian2:1609-50d01fc
brian-team__brian2-1609
Function: run(duration, namespace=None, stop_at=None, report=None, runtime_error_hook=None, **kwds) Location: brian2.core.network (top‑level function) Inputs: - **duration** (Quantity): simulation time; must be non‑negative (zero is allowed). - Optional keyword arguments as defined in the original API (namespace, sto...
python
custom-check-github
diff --git a/brian2/core/network.py b/brian2/core/network.py index 4f2a4442..34df6345 100644 --- a/brian2/core/network.py +++ b/brian2/core/network.py @@ -1102,7 +1102,16 @@ def run( ----- The simulation can be stopped by calling `Network.stop` or the global `stop` function. + + Raises...
[Fix #1608] : Raises a ValueError for negative duration in run() function Fixes #1608 Added a condition to check if the duration is negative and raise a ValueError accordingly.
Raise an error for negative duration in `run()` function Currently, calling `run(duration)` with a negative duration does not raise an error; instead, it simply runs for 0 seconds. Proposed Fix: - Modify `run()` to raise an appropriate error (e.g., ValueError) when a negative duration is passed. - The case of `run(0...
brian-team/brian2
diff --git a/brian2/tests/test_cpp_standalone.py b/brian2/tests/test_cpp_standalone.py index 90bf3e26..0bce5af1 100644 --- a/brian2/tests/test_cpp_standalone.py +++ b/brian2/tests/test_cpp_standalone.py @@ -1049,6 +1049,15 @@ def brian_function(index): assert_allclose(S.rate_copy[:], np.arange(len(G)) * 42 * Hz) ...
[ "brian2/tests/test_cpp_standalone.py::test_negative_duration_in_standalone_device", "brian2/tests/test_network.py::test_negative_duration_in_run", "brian2/tests/test_network.py::test_negative_duration_in_net_run" ]
[ "brian2/tests/test_cpp_standalone.py::test_cpp_standalone", "brian2/tests/test_cpp_standalone.py::test_openmp_consistency", "brian2/tests/test_network.py::test_incorrect_network_use", "brian2/tests/test_network.py::test_network_contains", "brian2/tests/test_network.py::test_network_default_schedule", "bri...
{ "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": [...
acc91bc4f47e38f43277fcdfd8ca855734c4fbbc
2020-10-17 10:38:18
docker.io/swerebenchv2/pallets-click:1693-acc91bc
pallets__click-1693
Function: Choice(choices, case_sensitive=True) Location: src/click/types.py – class Choice(ParamType) definition Inputs: - **choices** – iterable of values (strings or values convertible to string) that are allowed for the option. - **case_sensitive** – bool, default True. When False, validation and shell‑completion tr...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index 4845673..cb6cd13 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -151,6 +151,8 @@ Unreleased ending of a phrase or double linebreak. :issue:`1082` - Skip progress bar render steps for efficiency with very fast iterators by setting ``update_min_steps``. :issue:`676...
Case insensitive shell completions for Choice(..., case_sensitive=False) This PR adds the logic and a test for checking case insensitive completions for `Choice` instances which have the argument `case_sensitive=False`. What changed was having the `Choice` class' `shell_complete`-method take `self.case_sensitive` i...
shell completion is case sensitive, even with click.Choice(case_sensitive=False) ### Expected Behavior Since I set case_sensitive to False, I would expect shell completions to search without case sensitivity. ```python import click from click._bashcomplete import get_choices options = ['Paul', 'Simon', 'Art'...
pallets/click
diff --git a/tests/test_shell_completion.py b/tests/test_shell_completion.py index e85dc32..40cb88f 100644 --- a/tests/test_shell_completion.py +++ b/tests/test_shell_completion.py @@ -304,3 +304,13 @@ def test_context_settings(runner): env={"COMP_WORDS": "", "COMP_CWORD": "0", "_CLI_COMPLETE": "bash_complete"...
[ "tests/test_shell_completion.py::test_choice_case_sensitive[False-expect0]" ]
[ "tests/test_shell_completion.py::test_command", "tests/test_shell_completion.py::test_group", "tests/test_shell_completion.py::test_group_command_same_option", "tests/test_shell_completion.py::test_chained", "tests/test_shell_completion.py::test_help_option", "tests/test_shell_completion.py::test_argument...
{ "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": [...
4af86e5a103fbaeed80cdbe13230e3da12aaddcc
2025-01-31 06:14:13
docker.io/swerebenchv2/envoyproxy-ai-gateway:252-4af86e5
envoyproxy__ai-gateway-252
No new interfaces are introduced.
go
Apache-2.0
diff --git a/internal/controller/sink.go b/internal/controller/sink.go index 3005b94..9bf46b9 100644 --- a/internal/controller/sink.go +++ b/internal/controller/sink.go @@ -491,7 +491,11 @@ func (c *configSink) syncExtProcDeployment(ctx context.Context, aiGatewayRoute * "-logLevel", c.extProcLogLevel, ...
controller: mark all volume mounts ReadOnly=true **Commit Message** Mark all volume mounts readonly to ensure security. **Related Issues/PRs (if applicable)** Fix #250
controller: mark all volume mounts readOnly=true *Description*: The AI Gateway ExtProc deployment/containers mount some secrets/configmaps. However, it only needs to read the contents, and so the write permission is unnecessary. [optional *Relevant Links*:] I would like the `corev1.VolumeMount`'s ReadOnly flag to al...
envoyproxy/ai-gateway
diff --git a/internal/controller/sink_test.go b/internal/controller/sink_test.go index 7addc24..3cdd3cb 100644 --- a/internal/controller/sink_test.go +++ b/internal/controller/sink_test.go @@ -639,6 +639,10 @@ func TestConfigSink_SyncExtprocDeployment(t *testing.T) { require.Equal(t, "AIGatewayRoute", extProcDeploy...
[ "TestConfigSink_SyncExtprocDeployment", "TestConfigSink_SyncExtprocDeployment/update", "TestConfigSink_MountBackendSecurityPolicySecrets" ]
[ "TestDefaultConfig", "TestUnmarshalConfigYaml", "TestUnmarshalConfigYaml/not_found", "TestUnmarshalConfigYaml/invalid", "Test_parseAndValidateFlags", "Test_parseAndValidateFlags/no_flags", "Test_parseAndValidateFlags/all_flags", "Test_parseAndValidateFlags/all_flags/single_dash", "Test_parseAndValid...
{ "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.6", "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": [...
5c37e6afe6d1978a9672b707ba28a5fd932cf222
2016-07-15 12:11:26
docker.io/swerebenchv2/python-babel-babel:435-5c37e6a
python-babel__babel-435
Function: extract_operands(source) Location: babel/plural.py Inputs: - **source** (int | float | decimal.Decimal): the number whose CLDR operands are to be extracted. It may be a plain integer, a floating‑point value, or a Decimal instance. Negative values are accepted; the function uses the absolute value. Outputs: ...
python
BSD-3-Clause
diff --git a/babel/plural.py b/babel/plural.py index 0b8e425..99e9a65 100644 --- a/babel/plural.py +++ b/babel/plural.py @@ -9,7 +9,6 @@ :license: BSD, see LICENSE for more details. """ import re -import sys from babel._compat import decimal @@ -19,10 +18,27 @@ _fallback_tag = 'other' def extract_opera...
Fix float conversion in `extract_operands` (and the relevant test) Fixes #421
test_extract_operands never fails py.test warns me about this: > babel/tests/test_plural.py:257: SyntaxWarning: assertion is always true, perhaps remove parentheses? ``` python assert (plural.extract_operands(source) == Decimal(n), i, v, w, f, t) ``` Just removing the parens (and rewrapping the state...
python-babel/babel
diff --git a/tests/test_plural.py b/tests/test_plural.py index 6406af8..be74149 100644 --- a/tests/test_plural.py +++ b/tests/test_plural.py @@ -16,6 +16,8 @@ import pytest from babel import plural, localedata from babel._compat import decimal +EPSILON = decimal.Decimal("0.0001") + def test_plural_rule(): r...
[ "tests/test_plural.py::test_extract_operands[1.3-1.3-1-1-1-3-3]" ]
[ "tests/test_plural.py::test_plural_rule", "tests/test_plural.py::test_plural_rule_operands_i", "tests/test_plural.py::test_plural_rule_operands_v", "tests/test_plural.py::test_plural_rule_operands_w", "tests/test_plural.py::test_plural_rule_operands_f", "tests/test_plural.py::test_plural_rule_operands_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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
a2a9c53ea262ea0d39e76aa18430ce071fbe68d5
2024-01-03 17:10:14
docker.io/swerebenchv2/python-markdown-markdown:1426-a2a9c53
python-markdown__markdown-1426
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/docs/changelog.md b/docs/changelog.md index 84f0bfa..53104f6 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -20,6 +20,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 * Fix edge-case crash in `InlineProcessor` with `AtomicString` (#1406). * Fix edge-case cr...
Fix handling of bogus comments. As with most implementations, we now pass through bogus comments (as defined by the HTML Spec) unaltered except that they are HTML escaped. This deviates from the reference implementation which compeltely ignores them. As the reference implementation seems to not have even contemplated t...
Python Markdown turns `</#rrggbb>` into HTML comment, even while in inline code When you put `</#rrggbb>` as-is inside a inline code block will Python Markdown convert it into a HTML comment (`<!--#rrggbb-->`), which feels odd. Is there a way to prevent this? Using HTML escape methods such as `&lt;/#rrggbb&gt;` will...
Python-Markdown/markdown
diff --git a/tests/test_syntax/blocks/test_html_blocks.py b/tests/test_syntax/blocks/test_html_blocks.py index 22b9498..85b0c48 100644 --- a/tests/test_syntax/blocks/test_html_blocks.py +++ b/tests/test_syntax/blocks/test_html_blocks.py @@ -782,16 +782,16 @@ class TestHTMLBlocks(TestCase): '<!-- *foo* -->'...
[ "tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_bogus_comment", "tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_bogus_comment_endtag" ]
[ "tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_adjacent_raw_blocks", "tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_adjacent_raw_blocks_with_blank_lines", "tests/test_syntax/blocks/test_html_blocks.py::TestHTMLBlocks::test_amperstand", "tests/test_syntax/blocks/test_h...
{ "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": [...
afdfb120fff5cb5f8d0184d411369f5dddaed5b3
2022-04-05 19:59:01
docker.io/swerebenchv2/pallets-click:2248-afdfb12
pallets__click-2248
Method: Option.__init__(self, param_decls: List[str], **kwargs) Location: src/click/core.py – class Option(Parameter) Inputs: - param_decls: list of option flag strings (e.g. ["-a"]) - kwargs may include: * count (bool) – whether the option should count occurrences * multiple (bool) – whether the option may be giv...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index a618f5a..16a982d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -7,6 +7,9 @@ Unreleased - Use verbose form of ``typing.Callable`` for ``@command`` and ``@group``. :issue:`2255` +- Show error when attempting to create an option with + ``multiple=True, is_flag=Tr...
Disallow use of is_flag and multiple in options Raises a TypeError similar to when specifying both `count=True` and `is_flag=True`. - fixes #2246 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...
Flags with `multiple=True` trigger `TypeError` Adding an option with `is_flag=True` and `multiple=True` will trigger a `TypeError` in `Parameter.consume_value()` due to bad default value. ```py import click @click.command() @click.option("-v", is_flag=True, multiple=True) def main(v): click.echo(v) if ...
pallets/click
diff --git a/tests/test_options.py b/tests/test_options.py index 2e1f291..d4090c7 100644 --- a/tests/test_options.py +++ b/tests/test_options.py @@ -904,3 +904,21 @@ def test_type_from_flag_value(): ) def test_is_bool_flag_is_correctly_set(option, expected): assert option.is_bool_flag is expected + + +@pytest.ma...
[ "tests/test_options.py::test_invalid_flag_combinations[kwargs2-'multiple'" ]
[ "tests/test_options.py::test_prefixes", "tests/test_options.py::test_invalid_option", "tests/test_options.py::test_invalid_nargs", "tests/test_options.py::test_nargs_tup_composite_mult", "tests/test_options.py::test_counting", "tests/test_options.py::test_unknown_options[--foo]", "tests/test_options.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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
f488ea16cd2f9b81cf4602c257e7963421b40156
2022-05-02 22:33:53
docker.io/swerebenchv2/pallets-werkzeug:2413-f488ea1
pallets__werkzeug-2413
Method: AnyConverter.to_url(self, value) Location: src/werkzeug/routing/converters.py Inputs: - **value** (any): the value supplied for the ``<any(...):name>`` placeholder. Must be one of the items given when the converter was declared (e.g., ``"patient"``, ``"provider"``). Outputs: - **str** – the string representat...
python
BSD-3-Clause
diff --git a/CHANGES.rst b/CHANGES.rst index c5247876..e9e0418d 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -12,6 +12,8 @@ Version 2.2.0 machine. :pr:`2433` - Names within options headers are always converted to lowercase. This matches :rfc:`6266` that the case is not relevant. :issue:`2442` +- ``AnyCo...
`any` converter validates the value to `url_for` Add method for to_url for AnyConverter. Add protection for AnyConverter to raise a ValueError for items not specified in the rule when the build method is called by running a `value in set(items)` check. Add test for assertions where values do match to items in the ru...
`any` converter should validate value to `url_for` Expectation: When using `url_for` for an endpoint with an `<any(foo, bar):arg>` argument in its route, it will raise an error for arguments that are not part of the any statement. Actual result: It returns an invalid URL Example: ``` from flask import Flask...
pallets/werkzeug
diff --git a/tests/test_routing.py b/tests/test_routing.py index 4a188b02..b1d2ee11 100644 --- a/tests/test_routing.py +++ b/tests/test_routing.py @@ -757,6 +757,19 @@ def test_anyconverter(): assert a.match("/a.2") == ("yes_dot", {"a": "a.2"}) +def test_any_converter_build_validates_value() -> None: + m = ...
[ "tests/test_routing.py::test_any_converter_build_validates_value" ]
[ "tests/test_routing.py::test_basic_routing", "tests/test_routing.py::test_merge_slashes_match", "tests/test_routing.py::test_merge_slash_encoding[/merge/%//path-/merge/%25/path]", "tests/test_routing.py::test_merge_slash_encoding[/merge//st/path-/merge/st/path]", "tests/test_routing.py::test_merge_slashes_b...
{ "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": [...
abc497f1c006b42ed13ce838d1ba35166505b0a2
2023-01-14 05:25:28
docker.io/swerebenchv2/tox-dev-sphinx-autodoc-typehints:287-abc497f
tox-dev__sphinx-autodoc-typehints-287
No new interfaces are introduced.
python
MIT
diff --git a/src/sphinx_autodoc_typehints/__init__.py b/src/sphinx_autodoc_typehints/__init__.py index 504782a..a4b474f 100644 --- a/src/sphinx_autodoc_typehints/__init__.py +++ b/src/sphinx_autodoc_typehints/__init__.py @@ -611,7 +611,7 @@ def _inject_types_to_docstring( lines.insert(insert_index, t...
Remove redundant return type for attributes Resolves #286.
Property :rtype: is redundant Looking at the output, it seems that properties have redundant types. In the test suite, `a_property` is an example. Defined like: ```py @property def a_property(self) -> str: """ Property docstring """ ``` The test suite asserts that the type of the property is include...
tox-dev/sphinx-autodoc-typehints
diff --git a/tests/test_sphinx_autodoc_typehints.py b/tests/test_sphinx_autodoc_typehints.py index 295157e..330dd06 100644 --- a/tests/test_sphinx_autodoc_typehints.py +++ b/tests/test_sphinx_autodoc_typehints.py @@ -118,8 +118,8 @@ else: # We could also set AbcCallable = typing.Callable and x fail the tests that ...
[ "tests/test_sphinx_autodoc_typehints.py::test_sphinx_output[no_doc_param_type]" ]
[ "tests/test_sphinx_autodoc_typehints.py::test_parse_annotation[str]", "tests/test_sphinx_autodoc_typehints.py::test_parse_annotation[None]", "tests/test_sphinx_autodoc_typehints.py::test_parse_annotation[Any]", "tests/test_sphinx_autodoc_typehints.py::test_parse_annotation[AnyStr]", "tests/test_sphinx_autod...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
cfa8fba6915c53ab251362d885963be3c238795c
2021-03-07 17:28:40
docker.io/swerebenchv2/django-channels:1651-cfa8fba
django__channels-1651
Method: InMemoryChannelLayer.__init__(self, expiry: float = None, **kwargs) Location: channels.layers.InMemoryChannelLayer Inputs: - expiry (float, optional): maximum age in seconds for messages in a channel; messages older than this are discarded during cleanup. - **kwargs: other parameters accepted by the base `Base...
python
BSD-3-Clause
diff --git a/channels/layers.py b/channels/layers.py index fa9a9aa..5f26037 100644 --- a/channels/layers.py +++ b/channels/layers.py @@ -247,11 +247,11 @@ class InMemoryChannelLayer(BaseChannelLayer): queue = self.channels.setdefault(channel, asyncio.Queue()) # Do a plain direct receive - _, ...
Fix InMemoryChannelLayer growing indefinitely In `InMemoryChannelLayer` it was possible for channels with expired messages to live indefinitely since the check for deleting them always evaluated to `False`. Fixes #1574.
InMemoryChannelLayer grows indefinitely InMemoryChannelLayer has this in the `_clean_expired` method: # Is the channel now empty and needs deleting? if not queue: del self.channels[channel] Queues are always truthy even if empty. So that `del` statement will not be reache...
django/channels
diff --git a/tests/test_inmemorychannel.py b/tests/test_inmemorychannel.py index 6544f7a..90e02b1 100644 --- a/tests/test_inmemorychannel.py +++ b/tests/test_inmemorychannel.py @@ -106,3 +106,65 @@ async def test_groups_channel_full(channel_layer): await channel_layer.group_send("test-group", {"type": "message.1"}...
[ "tests/test_inmemorychannel.py::test_expiry_single", "tests/test_inmemorychannel.py::test_expiry_unread", "tests/test_inmemorychannel.py::test_expiry_multi" ]
[ "tests/test_inmemorychannel.py::test_multi_send_receive", "tests/test_inmemorychannel.py::test_groups_basic", "tests/test_inmemorychannel.py::test_groups_channel_full" ]
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
6c379356799b61c20c5fefb154b22125b30b7baa
2025-02-07 11:48:01
docker.io/swerebenchv2/networknt-json-schema-validator:1152-6c37935
networknt__json-schema-validator-1152
No new interfaces are introduced.
java
Apache-2.0
diff --git a/src/main/java/com/networknt/schema/TypeFactory.java b/src/main/java/com/networknt/schema/TypeFactory.java index b97d36a..cb98605 100644 --- a/src/main/java/com/networknt/schema/TypeFactory.java +++ b/src/main/java/com/networknt/schema/TypeFactory.java @@ -75,6 +75,11 @@ public class TypeFactory { * @...
Fix NPE when walking a missing node that will have missing properties Closes #1151 Fixes the NPE by having `TypeFactory.getValueNodeType((JsonNode node, SchemaValidatorsConfig config)` handle the case where a `null` was passed in as the node. I had considered if it should be ensured that the node inputs should a...
NPE during JSON schema walk with validation We ran into this while migrating to 1.5.5. A JSON schema walk returned an NPE rather than returning validation messages while validating a YAML document that did not have the corresponding properties. Below is the smallest recreate I've found that still fails with an NPE. I'v...
networknt/json-schema-validator
diff --git a/src/test/java/com/networknt/schema/JsonWalkTest.java b/src/test/java/com/networknt/schema/JsonWalkTest.java index 99d73c6..af1c2ac 100644 --- a/src/test/java/com/networknt/schema/JsonWalkTest.java +++ b/src/test/java/com/networknt/schema/JsonWalkTest.java @@ -2,6 +2,7 @@ package com.networknt.schema; im...
[ "---NO TEST NAME FOUND YET---" ]
[]
{ "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
bc2dff3bb97f0a95c35c6daedbf4e3a573f3d171
2022-04-19 15:16:41
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2253-bc2dff3
aws-cloudformation__cfn-lint-2253
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 b1edc01bf..375441a86 100644 --- a/src/cfnlint/rules/resources/properties/Properties.py +++ b/src/cfnlint/rules/resources/properties/Properties.py @@ -36,7 +36,7 @@ class Properties(CloudFormati...
[E3002] A list is also valid json *Issue #, if available:* fix #2063 *Description of changes:* - A list is also valid JSON By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
E3012 Property should be of type Json - incorrectly flagging official examples *cfn-lint version:* 0.51.0 *Description of issue.* After upgrading to 0.51.0 today, we are now seeing new lint issues. Specifically `E3012 Property should be of type Json` on the parameters section of `AWS::SSM::Association` Even the e...
aws-cloudformation/cfn-lint
diff --git a/test/fixtures/templates/good/resource_properties.yaml b/test/fixtures/templates/good/resource_properties.yaml index cccb31abf..e53c579d6 100644 --- a/test/fixtures/templates/good/resource_properties.yaml +++ b/test/fixtures/templates/good/resource_properties.yaml @@ -740,3 +740,14 @@ Resources: ...
[ "test/unit/rules/resources/properties/test_properties.py::TestResourceProperties::test_file_positive", "test/unit/rules/resources/properties/test_properties.py::TestSpecifiedCustomResourceProperties::test_file_positive" ]
[ "test/integration/test_directives.py::TestDirectives::test_templates", "test/integration/test_good_templates.py::TestQuickStartTemplates::test_module_integration", "test/integration/test_good_templates.py::TestQuickStartTemplates::test_templates", "test/integration/test_mandatory_checks.py::TestDirectives::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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
8342a52fa04a23874da651183f01a9a43dc07999
2020-05-29 21:42:33
docker.io/swerebenchv2/honeydipper-honeydipper:256-8342a52
honeydipper__honeydipper-256
No new interfaces are introduced.
go
MIT
diff --git a/cmd/honeydipper/configcheck.go b/cmd/honeydipper/configcheck.go index 1eb2546..de630fd 100644 --- a/cmd/honeydipper/configcheck.go +++ b/cmd/honeydipper/configcheck.go @@ -70,6 +70,7 @@ func runConfigCheck(cfg *config.Config) int { contextErrors = true } fmt.Printf("context(%s): %s\n", c...
fix(configcheck): exit non-zero on context errors #### Description Context errors weren't causing configcheck to exit with a non-0 exit code * Return 1 on context error * Add test coverage for runConfigCheck() return code #### This PR fixes the following issues Fixes #255
configcheck for contexts exiting 0 on errors ``` 730f75d634de:~/project# /opt/honeydipper/drivers/builtin/honeydipper configcheck Found error in Contexts ───────────────────────────────────────────────────────────── context(_default): workflow `spanner_asdf` not defined context(_default): workflow `spanner_resto...
honeydipper/honeydipper
diff --git a/cmd/honeydipper/configcheck_test.go b/cmd/honeydipper/configcheck_test.go index 77ca922..2d1cb41 100644 --- a/cmd/honeydipper/configcheck_test.go +++ b/cmd/honeydipper/configcheck_test.go @@ -9,10 +9,71 @@ package main import ( + "fmt" "github.com/honeydipper/honeydipper/internal/config" + "github.co...
[ "TestRunConfigCheck" ]
[ "TestCheckObjectExistsWorkFlowDoesNotExist", "TestCheckObjectExists", "TestCheckWorkflowDriverCallDriver", "TestCheckWorkflowDriverFunctionDriver", "TestCheckWorkflowFunctions", "TestCheckWorkflowActions", "TestCheckWorkflowConditions", "TestCheckIsListString", "TestCheckIsListMap", "TestCheckIsLi...
{ "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": [...
af2de19bd84964c8449cbbbe87a88f10839df02a
2021-07-06 16:42:55
docker.io/swerebenchv2/ajalt-mordant:28-af2de19
ajalt__mordant-28
No new interfaces are introduced.
kotlin
Apache-2.0
diff --git a/CHANGELOG.md b/CHANGELOG.md index f74d66449..a2cad1b29 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## Unreleased +### Changed +- Update Kotlin to 1.5.20 + +### Fixed +- Fixed exception thrown when parsing markdown tables with empty cells + ## 2.0.0-beta2 _2021-06-01_ diff --git a...
Fixes #27
Markdown table parsing fails on empty cells Trying to print a markdown file that contains empty cells fails currently (mordant version 2.0.0-beta2). ```kotlin fun main() { val t = Terminal() t.println(Markdown(""" | Test | |------| | | """.trimIndent())) } ``` The...
ajalt/mordant
diff --git a/mordant/src/commonTest/kotlin/com/github/ajalt/mordant/markdown/MarkdownTest.kt b/mordant/src/commonTest/kotlin/com/github/ajalt/mordant/markdown/MarkdownTest.kt index ccc87afb4..da8461ea3 100644 --- a/mordant/src/commonTest/kotlin/com/github/ajalt/mordant/markdown/MarkdownTest.kt +++ b/mordant/src/commonT...
[ "ascii_double_section_separator[jvm] (com.github.ajalt.mordant.rendering.table.TableBorderStyleTest)", "heavy_head_foot[jvm] (com.github.ajalt.mordant.rendering.table.TableBorderStyleTest)", "double[jvm] (com.github.ajalt.mordant.rendering.table.TableBorderStyleTest)", "square_double_head_separator[jvm] (com....
[]
{ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
7870eb344b143dbc3b4f1a03b0a1e178196b8ef8
2024-06-10 12:23:06
docker.io/swerebenchv2/amaranth-lang-amaranth:1376-7870eb3
amaranth-lang__amaranth-1376
Method: SubmoduleDict.__setitem__(self, name, submodule) Location: amaranth/hdl/_dsl.py (accessed via Module.submodules) Inputs: - **name** (str): key under which the submodule is stored. Must be a non‑empty string; an empty string triggers `NameError("Submodule name must not be empty")`. - **submodule** (Elaboratable...
python
BSD-2-Clause
diff --git a/amaranth/hdl/_dsl.py b/amaranth/hdl/_dsl.py index a73f20f..c66df2e 100644 --- a/amaranth/hdl/_dsl.py +++ b/amaranth/hdl/_dsl.py @@ -654,6 +654,8 @@ class Module(_ModuleBuilderRoot, Elaboratable): if name == None: self._anon_submodules.append((submodule, src_loc)) else: + ...
Forbid empty string as submodule name This is semantically ambiguous and breaks the RTLIL emitter. Fixes #1209.
Zero-length submodule name breaks things The following design: ``` from amaranth import * from amaranth.back import verilog class Bar(Elaboratable): def elaborate(self, platform): m = Module() m.d.sync += Signal().eq(1) return m class Foo(Elaboratable): def elaborate(self...
amaranth-lang/amaranth
diff --git a/tests/test_hdl_dsl.py b/tests/test_hdl_dsl.py index a255ff6..ecbed9d 100644 --- a/tests/test_hdl_dsl.py +++ b/tests/test_hdl_dsl.py @@ -887,6 +887,12 @@ class DSLTestCase(FHDLTestCase): with self.assertRaisesRegex(NameError, r"^Submodule named 'foo' already exists$"): m1.submodules.fo...
[ "tests/test_hdl_dsl.py::DSLTestCase::test_submodule_named_empty" ]
[ "tests/test_hdl_dsl.py::DSLTestCase::test_Case_after_Default_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_bits_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_outside_Switch_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case_pattern_wrong", "tests/test_hdl_dsl.py::DSLTestCase::test_Case...
{ "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": [...
baa70eb87ce60e5905df49d63815a9f712c8058f
2022-02-15 21:43:56
docker.io/swerebenchv2/mgechev-revive:638-baa70eb
mgechev__revive-638
No new interfaces are introduced.
go
MIT
diff --git a/rule/range-val-in-closure.go b/rule/range-val-in-closure.go index 857787b..0547b8d 100644 --- a/rule/range-val-in-closure.go +++ b/rule/range-val-in-closure.go @@ -87,15 +87,25 @@ func (w rangeValInClosure) Visit(node ast.Node) ast.Visitor { if !ok { return w } + if lit.Type == nil { // Not ref...
fix issue #637 Closes #637
range-val-in-closure: incorrectly flags struct key if the key has the same name as a range variable ```go package main type t struct { key string } func main() { m := map[string]string{ "a": "b", } for key := range m { myKey := key go func() { println(t{key: myKey}) }() } } ``` ...
mgechev/revive
diff --git a/testdata/range-val-in-closure.go b/testdata/range-val-in-closure.go index cdda5d0..3d02972 100644 --- a/testdata/range-val-in-closure.go +++ b/testdata/range-val-in-closure.go @@ -24,14 +24,26 @@ func foo() { for i, newg := range groups { go func(newg int) { - newg.run(m.opts.Context,i) // MATCH /...
[ "TestRangeValInClosure" ]
[ "TestGetConfig", "TestGetConfig/non-reg_issue_#470", "TestGetConfig/unknown_file", "TestGetConfig/malformed_file", "TestGetConfig/config_from_file_issue_#585", "TestGetConfig/config_from_file_default_confidence_issue_#585", "TestGetConfig/default_config", "TestGetLintingRules", "TestGetLintingRules/...
{ "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
47ea08023cb08f3d33c7ac34a4ef55d367001a18
2022-10-24 18:10:01
docker.io/swerebenchv2/robintail-express-zod-api:664-47ea080
robintail__express-zod-api-664
Function: depictZodDate({ isResponse: boolean, schema: z.ZodDate }) Location: src/open-api-helpers.ts Inputs: - **isResponse** (boolean): tells whether the schema is being used for an output (response) or input (request) definition. The value determines which part of the error message is shown. - **schema** (z.ZodDate)...
ts
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index 4855888e..5d50e7ce 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Version 8 +### v8.3.1 + +- Clearer error message when using `z.date()` within I/O schema thrown by OpenAPI generator. + ### v8.3.0 - Feature #600: Top level refinements. diff --git...
More clear error on usage of `z.date()` in IO. Closes #663
Issue: Generating documentation gives error: "Zod type ZodDate is unsupported" Whenever I try to generate OpenAPI spec using: ``` const yamlString = new OpenAPI({ routing: routes, // the same routing and config that you use to start the server config, version: '1', title: 'Posterr API', serverUrl: '...
RobinTail/express-zod-api
diff --git a/tests/unit/__snapshots__/open-api-helpers.spec.ts.snap b/tests/unit/__snapshots__/open-api-helpers.spec.ts.snap index bdd09a04..2a267098 100644 --- a/tests/unit/__snapshots__/open-api-helpers.spec.ts.snap +++ b/tests/unit/__snapshots__/open-api-helpers.spec.ts.snap @@ -798,6 +798,10 @@ exports[`Open API he...
[ "should pass the object schema through", "should handle refined object schema", "should return object schema for the union of object schemas", "should return object schema for the intersection of object schemas", "should preserve examples", "should omit specified path params", "should handle union", "...
[]
{ "base_image_name": "node_16", "docker_specs": null, "install": [ "npm install --package-lock-only --silent", "npm ci --silent" ], "log_parser": "parse_log_js_4", "test_cmd": "npx tsc --noEmit && npx jest --detectOpenHandles ./tests/unit ./tests/system --verbose --no-color --maxWorkers=1" }
{ "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": [...
33d7940c908dad0ff2850cddb4d01e425cfbce78
2019-10-01 11:12:15
docker.io/swerebenchv2/jsonata-js-jsonata:373-33d7940
jsonata-js__jsonata-373
No new interfaces are introduced.
js
MIT
diff --git a/src/functions.js b/src/functions.js index 8896e25..a2acf28 100644 --- a/src/functions.js +++ b/src/functions.js @@ -1194,7 +1194,7 @@ const functions = (() => { if (typeof arg === 'number') { // already a number result = arg; - } else if (typeof arg === 'string' &&...
allow leading zeros when casting string to number Allow numeric strings to have leading zeros when casting to numbers in `$number()` resolves #368
Proposal: Allow $number() to handle strings with leading '0' characters Consider the following input: `{"serialNumber": "ABC-1234"}` with the following JSONata expression: `{"isUnderThreshold": (serialNumber ~> $substringAfter('-') ~> $number()) < 5000}` Naturally the result is `{"isUnderThreshold": true}` How...
jsonata-js/jsonata
diff --git a/test/test-suite/groups/function-number/case027.json b/test/test-suite/groups/function-number/case027.json new file mode 100644 index 0000000..24308ef --- /dev/null +++ b/test/test-suite/groups/function-number/case027.json @@ -0,0 +1,6 @@ +{ + "expr": "$number('00')", + "dataset": null, + "bindings...
[ "case027.json: $number('00')", "case028.json: $number('0123')", "case029.json: $number('-007')", "case030.json: $number('000.00123000')" ]
[ "should return promise to results", "should throw", "should handle an undefined value", "should handle a null value", "should handle a value", "should handle a promise", "should process two expressions concurrently", "basic function that returns a thenable", "basic function that returns a thenable, ...
{ "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": [...
01d8350a1d5a9f885b2b8b5c1222eb04b742ccb3
2021-10-15 12:10:51
docker.io/swerebenchv2/misawa-xq:26-01d8350
misawa__xq-26
Function: length(context: Value) -> Result<Value> Location: src/intrinsic/mod.rs Inputs: A single `Value` representing any JSON type. For `Value::Number(n)` the function now computes the absolute value (`n.abs()`). Other accepted types are Null (treated as 0), String (character count), Array (element count), Object (ke...
rust
MIT
diff --git a/src/intrinsic/mod.rs b/src/intrinsic/mod.rs index bb473d0..5f331bf 100644 --- a/src/intrinsic/mod.rs +++ b/src/intrinsic/mod.rs @@ -9,7 +9,7 @@ use crate::{ Array, Value, }; use itertools::Itertools; -use num::ToPrimitive; +use num::{Float, ToPrimitive}; use phf::phf_map; use std::rc::Rc; @@ -12...
Fix length on negative number Fixes #24
length filter on numbers should be absolute values Currently xq returns the number value as it is but should take the absolute values. ```sh ❯ echo -128 | jq length 128 ❯ echo -128 | xq length -128 ❯ xq --version xq 0.1.4-01d8350a1d5a9f885b2b8b5c1222eb04b742ccb3 ```
MiSawa/xq
diff --git a/tests/hand_written/mod.rs b/tests/hand_written/mod.rs index 46f52a3..57979f2 100644 --- a/tests/hand_written/mod.rs +++ b/tests/hand_written/mod.rs @@ -84,3 +84,16 @@ test!( {"a": "a", "b": "b", "c": "c", "d": "d", "e": "e"} "# ); + +test!( + length_on_number_yields_abs_value, + r#" + m...
[ "hand_written::length_on_number_yields_abs_value" ]
[ "data_structure::test::test_stack", "data_structure::undo::stack::test::test_simple", "data_structure::undo::stack::test::test_simple2", "lang::parser::test::test_identifier", "lang::parser::test::test_format", "lang::parser::test::test_variable", "lang::parser::test::test_string", "lang::parser::test...
{ "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": [...
f501425e306e26eb6eb2bd959c3533ddc03249e4
2024-04-25 00:07:21
docker.io/swerebenchv2/benhoyt-goawk:230-f501425
benhoyt__goawk-230
Function: parser.ParseProgram(src []byte, opts *parser.Options) (prog *parser.Program, err error) Location: package parser Inputs: src – source code of an awk program; opts – optional parsing options (may be nil) Outputs: prog – compiled program representation used by the interpreter/compiler; err – parse error if the ...
go
MIT
diff --git a/.gitignore b/.gitignore index dbe1062..35dd5b1 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,4 @@ interp/testdata scripts/csvbench/bin scripts/csvbench/count.csv /default.pgo +/goawk-versions diff --git a/internal/compiler/compiler.go b/internal/compiler/compiler.go index 26fc01f..d7beb89 100644...
Fix evaluation of empty {} and END{} - '{}' shouldn't be equivalent to '{ print $0 }' - 'END {}' should consume the input Thanks @oguz-ismail Fixes #228
{} behaves like 1, END{} doesn't exhaust input See: ``` $ seq 3 | goawk '{}' 1 2 3 $ seq 3 | { goawk 'END{}'; wc -l;} 3 ``` According to POSIX the first command shouldn't print anything, and the second should print 0.
benhoyt/goawk
diff --git a/interp/interp_test.go b/interp/interp_test.go index c792d72..124ca30 100644 --- a/interp/interp_test.go +++ b/interp/interp_test.go @@ -50,6 +50,7 @@ var interpTests = []interpTest{ {`BEGIN { print "b"} END { print "e" }`, "foo", "b\ne\n", "", ""}, {`BEGIN { print "b"} $0 { print NR } END { print "e" }...
[ "TestInterp", "TestInterp/{}", "TestENDConsumesInput" ]
[ "TestAWK", "TestAWK/p.1", "TestAWK/p.10", "TestAWK/p.11", "TestAWK/p.12", "TestAWK/p.13", "TestAWK/p.14", "TestAWK/p.15", "TestAWK/p.16", "TestAWK/p.17", "TestAWK/p.18", "TestAWK/p.19", "TestAWK/p.2", "TestAWK/p.20", "TestAWK/p.21", "TestAWK/p.21a", "TestAWK/p.22", "TestAWK/p.23", ...
{ "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": [...
6db4a3e31f587b10228b70fa29d1ce2ee52744a3
2024-08-19 16:03:27
docker.io/swerebenchv2/aio-libs-aiohttp:8742-6db4a3e
aio-libs__aiohttp-8742
Method: ContentTypeError.__init__(self, request_info: aiohttp.RequestInfo, history: Tuple[aiohttp.ClientResponse, ...], *, status: int | None = None, message: str | None = None) Location: aiohttp/client_reqrep.py – called from ClientResponse.json when the response has an unexpected Content‑Type. Inputs: - **request_inf...
python
custom-check-github
diff --git a/CHANGES/8736.misc.rst b/CHANGES/8736.misc.rst new file mode 100644 index 000000000..34ed19aeb --- /dev/null +++ b/CHANGES/8736.misc.rst @@ -0,0 +1,1 @@ +Improved performance of the WebSocket reader -- by :user:`bdraco`. diff --git a/CHANGES/8742.bugfix.rst b/CHANGES/8742.bugfix.rst new file mode 100644 ind...
Fix status not being set when ClientResponse.json raises ContentTypeError <!-- Thank you for your contribution! --> ## What do these changes do? Fix status not being set when ClientResponse.json raises ContentTypeError ## Are there changes in behavior for the user? The status will be set ## Is it a s...
ClientResponse.json() doesn't set status code ### Describe the bug When ClientResponse.json() raises a ContentTypeError it doesn't set the HTTP status code in that exception object. Presumably there is a status code available at that point otherwise the call to `read()` inside of `json()` would have thrown an exceptio...
aio-libs/aiohttp
diff --git a/tests/test_client_response.py b/tests/test_client_response.py index fa282ccc5..cf9f338f2 100644 --- a/tests/test_client_response.py +++ b/tests/test_client_response.py @@ -676,11 +676,13 @@ async def test_json_invalid_content_type( h = {"Content-Type": "data/octet-stream"} response._headers = CIM...
[ "tests/test_client_response.py::test_json_invalid_content_type[pyloop]" ]
[ "tests/test_client_response.py::test_http_processing_error", "tests/test_client_response.py::test_del", "tests/test_client_response.py::test_close[pyloop]", "tests/test_client_response.py::test_wait_for_100_1[pyloop]", "tests/test_client_response.py::test_wait_for_100_2[pyloop]", "tests/test_client_respon...
{ "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": [...
ec73ace0f49c14c8fa1e80fdfe34d04c2a538e3d
2019-09-11 15:58:33
docker.io/swerebenchv2/styled-system-styled-system:812-ec73ace
styled-system__styled-system-812
No new interfaces are introduced.
js
MIT
diff --git a/packages/core/src/index.js b/packages/core/src/index.js index 3717da0..09aad63 100644 --- a/packages/core/src/index.js +++ b/packages/core/src/index.js @@ -14,9 +14,14 @@ export const merge = (a, b) => { // sort object-value responsive styles const sort = obj => { const next = {} - Object.keys(obj).s...
Sort media queries naturally Fixes #761
Breakpoints bug when using numbers of different length Hello hello, I've encountered a weird behavior when dealing with breakpoints as objects. Regarding your documentation I came up with the following breakpoints within a breakpoints.js file: ``` const breakpoints = [ '21em', // 336px '35em', // 560px '4...
styled-system/styled-system
diff --git a/packages/core/test/system.js b/packages/core/test/system.js index 969e73c..9b72cda 100644 --- a/packages/core/test/system.js +++ b/packages/core/test/system.js @@ -257,9 +257,10 @@ test('sorts media queries when responsive object values are used', () => { sm: '32em', md: '40em', ...
[ "sorts media queries when responsive object values are used" ]
[ "returns typography styles", "returns border styles", "returns individual border styles", "returns border top and bottom radii", "returns grid styles", "variant returns style objects from theme", "variant prop can be customized", "variant can be composed", "textStyle prop returns theme.textStyles ob...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
b50968d9f3100ba701648f15b6a94a80783c75a3
2020-05-12 21:03:10
docker.io/swerebenchv2/pythainlp-pythainlp:399-b50968d
pythainlp__pythainlp-399
Function: countthai(text: str, ignore_chars: str = _DEFAULT_IGNORE_CHARS) -> float Location: pythainlp/util/thai.py Inputs: - **text** (str): the input string to analyze. If empty or not a string, the function returns 0.0. - **ignore_chars** (str, optional): characters to be excluded from the analysis; defaults to a p...
python
Apache-2.0
diff --git a/pythainlp/util/thai.py b/pythainlp/util/thai.py index 1a78dc32..b141b260 100644 --- a/pythainlp/util/thai.py +++ b/pythainlp/util/thai.py @@ -127,7 +127,7 @@ def countthai(text: str, ignore_chars: str = _DEFAULT_IGNORE_CHARS) -> float: # output: 0.0 """ if not text or not isinstance(text...
Make countthai() to cover a case that the text has only ignore_chars This PR will close #398 Prevent divide by zero
countthai not cover all cases **Describe the bug** Input countthai('123') or countthai(' ') or countthai('1 2 3 4') create error instead of zero? **To Reproduce** Steps to reproduce the behavior: 1. from pythainlp.util import countthai 2. input either '123' or ' ' **Expected behavior** it should return zero...
PyThaiNLP/pythainlp
diff --git a/tests/test_util.py b/tests/test_util.py index 34d2491e..958fa201 100644 --- a/tests/test_util.py +++ b/tests/test_util.py @@ -340,8 +340,11 @@ class TestUtilPackage(unittest.TestCase): # ### pythainlp.util.thai def test_countthai(self): - self.assertEqual(countthai(""), 0) + self....
[ "tests/test_util.py::TestUtilPackage::test_countthai" ]
[ "tests/test_util.py::TestUtilPackage::test_collate", "tests/test_util.py::TestUtilPackage::test_date", "tests/test_util.py::TestUtilPackage::test_is_native_thai", "tests/test_util.py::TestUtilPackage::test_isthai", "tests/test_util.py::TestUtilPackage::test_isthaichar", "tests/test_util.py::TestUtilPackag...
{ "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": [...
15b598f6c12c20802445127a30af028a974ab109
2023-07-31 12:39:41
docker.io/swerebenchv2/livebook-dev-kino:310-15b598f
livebook-dev__kino-310
Function: data_table(tabular, opts \\ []) Location: Kino.Shorts Inputs: - **tabular** – any data structure implementing the `Table.Reader` protocol (e.g. a list of maps). - **opts** – optional keyword list of options passed to `Kino.DataTable.new/2` (default `[]`). Outputs: `%Kino.JS.Live{}` – a Kino LiveView represent...
elixir
Apache-2.0
diff --git a/lib/kino.ex b/lib/kino.ex index 44e75e7..8626d7f 100644 --- a/lib/kino.ex +++ b/lib/kino.ex @@ -16,128 +16,29 @@ defmodule Kino do ## Built-in kinos - Kino renders any data structure that implements the `Kino.Render` - protocol, falling back to the `Kernel.inspect/2` representation - whenever an ...
Add kino shorts Closes #256
Add Kino.Shortcuts (or Kino.Shorts if we want to be cheeky) A module we can import with convenience functions to building text, markdown, mermaid, image, tree, frame, etc. This is so we can write: text("Hello") Instead of: Kino.Text.new("hello")
livebook-dev/kino
diff --git a/test/kino/shorts_test.exs b/test/kino/shorts_test.exs new file mode 100644 index 0000000..672eb95 --- /dev/null +++ b/test/kino/shorts_test.exs @@ -0,0 +1,45 @@ +defmodule Kino.ShortsTest do + use ExUnit.Case, async: true + + import Kino.Shorts + + test "data_table" do + assert %Kino.JS.Live{} = data...
[ "bump/2 sets the given value if the counter doesn't exist", "next/2 increments the counter on every call", "bump/2 sets the given value if higher than the current one", "bump/2 keeps existing value if the given one is lower or equal", "next/2 returns the default value if the counter doesn't exist", "sends...
[ "subscribe/3 subscribes to events and attaches custom tag", "new/2 converts a valid type shorthand into MIME type", "new/2 raises an error for an invalid type shorthand", "new/1 raises an error for an invalid shape", "new/1 raises an error for non :u8 tensor", "new/2 raises an error for a non-image MIME t...
{ "base_image_name": "elixir_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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
0f4003d3579b08781154bb66873d283e1826fe7c
2020-02-28 20:53:59
docker.io/swerebenchv2/tokio-rs-mio:1276-0f4003d
tokio-rs__mio-1276
Method: UdpSocket.join_multicast_v4(&self, multiaddr: &Ipv4Addr, interface: &Ipv4Addr) -> io::Result<()> Location: src/net/udp.rs (impl UdpSocket) Inputs: - `self`: reference to the `UdpSocket` on which the operation is performed. - `multiaddr`: reference to an `Ipv4Addr` representing the multicast group to join. - `in...
rust
MIT
diff --git a/src/net/udp.rs b/src/net/udp.rs index 46d288e..164315a 100644 --- a/src/net/udp.rs +++ b/src/net/udp.rs @@ -465,8 +465,9 @@ impl UdpSocket { /// address of the local interface with which the system should join the /// multicast group. If it's equal to `INADDR_ANY` then an appropriate /// int...
Accept IPv4 multicast addresses by reference This is not a breaking change, since the original PR to accept multicast addresses by value was only accepted in v7-alpha. Furthermore, if this PR isn't merged, I suggest creating another PR that accepts ipv6 addresses by value, to maintain consistency with the ipv4 equiv...
UdpSocket::join_multicast_* APi does not match std lib's API The std lib API accepts the addresses by reference, i.e. `&Ipv4Addr`, Mio however takes it by value `Ipv4Addr`. I think we should match the standard library API, although its inconsistent with `UdpSocket::bind`, which takes the address by value.
tokio-rs/mio
diff --git a/tests/udp_socket.rs b/tests/udp_socket.rs index ec74c0b..874654d 100644 --- a/tests/udp_socket.rs +++ b/tests/udp_socket.rs @@ -933,12 +933,12 @@ pub fn multicast() { let mut rx = UdpSocket::bind(any_local_address()).unwrap(); info!("Joining group 227.1.1.100"); - let any = "0.0.0.0".parse()...
[ "poll::as_raw_fd", "sys::unix::selector::epoll::assert_close_on_exec_flag", "sys::unix::uds::tests::abstract_address", "sys::unix::uds::tests::pathname_address" ]
[]
{ "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
fbac99fd1da09647fe0b00c124a52c2eafed76ff
2018-02-23 17:11:39
docker.io/swerebenchv2/gcanti-tcomb:313-fbac99f
gcanti__tcomb-313
Function: t.struct(props, options) Location: lib/struct.js Inputs: - **props** (object): a map of field names to their tcomb type definitions. - **options** (object, optional): may include: - **name** (string): the display name of the struct type. - **defaultProps** (object): a map of default values (or getter fun...
js
MIT
diff --git a/lib/fromJSON.js b/lib/fromJSON.js index 7edc7cd..6da91e7 100644 --- a/lib/fromJSON.js +++ b/lib/fromJSON.js @@ -55,10 +55,15 @@ function fromJSON(value, type, path) { }); } var props = type.meta.props; + var defaultProps = type.meta.defaultProps; ret = {}; for (k i...
fixes #312
[Question/Bug] How to use fromJSON and defaultProps ### Version 3.2.24 ### Expected behaviour Allow use custom deserialize functions and the defaultProps ### Actual behaviour the fromJSON function is not using the defaultProps from t.struct ### Steps to reproduce ```js const t = require('tcomb'); ...
gcanti/tcomb
diff --git a/test/fromJSON.js b/test/fromJSON.js index 0b56a29..24f7080 100644 --- a/test/fromJSON.js +++ b/test/fromJSON.js @@ -98,6 +98,31 @@ describe('fromJSON', function () { }, '[tcomb] Invalid value undefined supplied to MyType/name: String'); }); + it('should handle struct with options.defaultProps', ...
[ "should handle struct with options.defaultProps" ]
[ "should nor throw when guard is true", "should throw a default message", "should throw the specified message", "should handle lazy messages", "should handle custom fail behaviour", "should throw if used with wrong arguments", "should throw if define-d multiple times", "should have a fresh name for dif...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
ae49a492f4dd872b5763507ba4eed4d48a1dfc49
2024-04-18 12:51:40
docker.io/swerebenchv2/copier-org-copier:1597-ae49a49
copier-org__copier-1597
No new interfaces are introduced.
python
MIT
diff --git a/copier/main.py b/copier/main.py index 5e148d0..277f01d 100644 --- a/copier/main.py +++ b/copier/main.py @@ -11,7 +11,7 @@ from filecmp import dircmp from functools import cached_property, partial from itertools import chain from pathlib import Path -from shutil import rmtree +from shutil import copytree...
fix: render `default` list items for multi-select choice questions I've fixed a bug related to rendering templated list items which was discovered when trying to template an item in the default value list of a multi-select choice question (see #1594). The root cause was not directly related to rendering the default val...
default option for choices with multiselect ### Describe the problem When enabling multiselect, the default value is not selected ### Template ```yaml python_version: type: str help: What version of python are you targeting? default: "3.11" choices: - "3.8" - "3.9" - "3.10" - "...
copier-org/copier
diff --git a/tests/test_templated_prompt.py b/tests/test_templated_prompt.py index 2c14b42..2a1b124 100644 --- a/tests/test_templated_prompt.py +++ b/tests/test_templated_prompt.py @@ -362,3 +362,65 @@ def test_templated_prompt_with_conditional_choices( for iac in iac_choices: tui.expect_exact(iac) t...
[ "tests/test_templated_prompt.py::test_multiselect_choices_with_templated_default_value", "tests/test_updatediff.py::test_update_with_new_file_in_template_and_project", "tests/test_updatediff.py::test_update_with_new_file_in_template_and_project_via_migration" ]
[ "tests/test_templated_prompt.py::test_templated_prompt_invalid[questions2-InvalidTypeError-None]", "tests/test_templated_prompt.py::test_templated_prompt_invalid[questions0-None-]", "tests/test_templated_prompt.py::test_templated_prompt_builtins", "tests/test_templated_prompt.py::test_templated_prompt_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": [...
76f03ffbf908e42f3455cac26874fb6d407629b8
2023-07-06 00:40:03
docker.io/swerebenchv2/zegl-kube-score:543-76f03ff
zegl__kube-score-543
No new interfaces are introduced.
go
MIT
diff --git a/scorecard/enabled.go b/scorecard/enabled.go index 5f2f5c8..1476698 100644 --- a/scorecard/enabled.go +++ b/scorecard/enabled.go @@ -13,8 +13,12 @@ func (so *ScoredObject) isEnabled(check ks.Check, annotations, childAnnotations if v == key { return true } - if _, ok := impliedIgnoreAnnotation...
Ignoring rule container resources makes every rule exceptional #542 Fixes #542 ``` RELNOTE: Fix bug related to processing implied kube-score/ignore annotations. ```
Ignoring rule container-resources makes every rule exceptional **Which version of kube-score are you using?** > kube-score version: v1.16.1 **What did you do?** Added ``` annotations: kube-score/ignore: container-resources ``` And it made kube-score skip all the current issues **What did you expec...
zegl/kube-score
diff --git a/score/score_test.go b/score/score_test.go index 296c37d..4bcfdd6 100644 --- a/score/score_test.go +++ b/score/score_test.go @@ -515,3 +515,36 @@ func TestPodEnvDuplicated(t *testing.T) { diff := cmp.Diff(expected, actual) assert.Empty(t, diff) } + +func TestMultipleIgnoreAnnotations(t *testing.T) { + ...
[ "TestMultipleIgnoreAnnotations" ]
[ "TestParseCli", "TestExecName", "TestSemver", "TestSemverLessThan", "TestParse", "TestFileLocationHelm", "TestFileLocation", "TestCiOutput", "TestHumanOutputDefault", "TestHumanOutputLogDescription120Width", "TestHumanOutputLogDescription100Width", "TestHumanOutputAllOKDefault", "TestHumanOu...
{ "base_image_name": "go_1.22.12", "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.22.2", "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": [...
24e942c543a19a6fd76ba637aa98b65235493ed4
2018-11-01 11:25:49
docker.io/swerebenchv2/glennjones-hapi-swagger:537-24e942c
glennjones__hapi-swagger-537
No new interfaces are introduced.
js
MIT
diff --git a/lib/builder.js b/lib/builder.js index 7290cf7..e30a36d 100644 --- a/lib/builder.js +++ b/lib/builder.js @@ -147,26 +147,28 @@ builder.dereference = async (schema) => { * @return {String} */ internals.getHost = function(request) { - let host = request.info.hostname; - const port = request.server....
fix: Use the incoming request to determine the host and port This fixes issues when the hapi server is running on a different host/port to the external interface, e.g. within Docker. Fix #497
Invalid request call when hapi host is set to 0.0.0.0 #### Context * *hapi-swgger version*: 9.0.2 * *any other relevant information*: Hapi 17.2.0 #### What are you trying to achieve or the steps to reproduce ? I want to run hapi server on all my network interfaces (NIC) so I'm using following host: ```0.0.0.0...
glennjones/hapi-swagger
diff --git a/test/Integration/builder-test.js b/test/Integration/builder-test.js index 07b4b2f..a78e398 100644 --- a/test/Integration/builder-test.js +++ b/test/Integration/builder-test.js @@ -250,6 +250,26 @@ lab.experiment('builder', () => { expect(isValid).to.be.true(); }); + lab.test('getSwaggerJ...
[ "15) getSwaggerJSON determines host and port from request info", "16) getSwaggerJSON doesn't specify port from request info when port is default" ]
[ "1) x-alternatives", "2) no x-alternatives", "3) get documentation page should not be restricted", "4) get documentation page should be restricted 401", "5) get plug-in interface with bearer token", "6) get plug-in interface without bearer token", "7) get API interface with bearer token", "8) get API ...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
25ea236c924626ddd318b4ce8f279430a1dd3a8e
2021-03-05 17:45:11
docker.io/swerebenchv2/googleapis-java-storage:746-25ea236
googleapis__java-storage-746
No new interfaces are introduced.
java
Apache-2.0
diff --git a/google-cloud-storage/src/main/java/com/google/cloud/storage/BlobWriteChannel.java b/google-cloud-storage/src/main/java/com/google/cloud/storage/BlobWriteChannel.java index aa5c3a81..09bc1708 100644 --- a/google-cloud-storage/src/main/java/com/google/cloud/storage/BlobWriteChannel.java +++ b/google-cloud-st...
fix: npe in createFrom createFrom expects object metadata to be available once uploaded. If response metadata is not available a get object metadata request is made with a null Options parameter which causes an NPE. I tested the change by running IT with multiple uploads to validate failure no longer occurs. - [x] ...
NPE during upload with 1.113.12 com.google.cloud:libraries-bom:19.0.0 (com.google.cloud:google-cloud-storage:jar:1.113.12), we sometimes see: ``` com.google.cloud.storage.StorageException: java.lang.NullPointerException at com.google.cloud.storage.StorageException.translateAndThrow(StorageException.java:81) at ...
googleapis/java-storage
diff --git a/google-cloud-storage/src/test/java/com/google/cloud/storage/BlobWriteChannelTest.java b/google-cloud-storage/src/test/java/com/google/cloud/storage/BlobWriteChannelTest.java index ba60a3c4..d74e87d6 100644 --- a/google-cloud-storage/src/test/java/com/google/cloud/storage/BlobWriteChannelTest.java +++ b/goo...
[ "com.google.cloud.storage.BlobWriteChannelTest", "---NO TEST NAME FOUND YET---" ]
[ "com.google.cloud.storage.testing.ApiPolicyMatcherTest", "com.google.cloud.storage.testing.RemoteStorageHelperTest", "com.google.cloud.storage.testing.StorageRpcTestBaseTest", "com.google.cloud.storage.PostPolicyV4Test", "com.google.cloud.storage.BlobTest", "com.google.cloud.storage.StorageImplTest", "c...
{ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
79e0c7011292c025df5e1db306092a0893182390
2015-07-23 18:10:25
docker.io/swerebenchv2/mholt-papaparse:239-79e0c70
mholt__papaparse-239
No new interfaces are introduced.
js
MIT
diff --git a/papaparse.js b/papaparse.js index 958d0ac..c3c1f48 100644 --- a/papaparse.js +++ b/papaparse.js @@ -1201,7 +1201,7 @@ { if (ignoreLastRow) return returnable(); - if (!value) + if (typeof value === 'undefined') value = input.substr(cursor); row.push(value); cursor = inpu...
handle empty quoted field at EOF fixes #238
Incorrect result when last record ends with an empty quoted value Consider this example: ```csv a,1,"" b,2,"" c,3,"" ``` Parsing this structure results in the following data: ```json [ [ "a", "1", "" ], [ "b", "2", "" ], [ "...
mholt/PapaParse
diff --git a/tests/test-cases.js b/tests/test-cases.js index 48ee0c8..cbd7a1c 100644 --- a/tests/test-cases.js +++ b/tests/test-cases.js @@ -219,6 +219,14 @@ var CORE_PARSER_TESTS = [ errors: [] } }, + { + description: "Empty quoted field at EOF is empty", + input: 'a,b,""\na,b,""', + expected: { + ...
[ "Empty quoted field at EOF is empty" ]
[ "synchronously parsed CSV should be correctly parsed", "asynchronously parsed CSV should be correctly parsed", "One row", "Two rows", "Three rows", "Whitespace at edges of unquoted field", "Quoted field", "Quoted field with extra whitespace on edges", "Quoted field with delimiter", "Quoted field w...
{ "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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
738a5d651d8501f6b17bcd4d1ed9df481eb8f557
2024-02-12 10:57:43
docker.io/swerebenchv2/databacker-mysql-backup:266-738a5d6
databacker__mysql-backup-266
Function: Timer(opts TimerOptions) (<-chan Update, error) Location: pkg/core/timer.go Inputs: - opts TimerOptions – a struct containing: - Frequency int – delay in minutes between runs (default 1440). Zero means “use default”. - Begin string – a duration string like “+5” meaning start after 5 minutes; empty means ...
go
null
diff --git a/cmd/dump.go b/cmd/dump.go index b04f7f0..828c18d 100644 --- a/cmd/dump.go +++ b/cmd/dump.go @@ -227,5 +227,11 @@ S3: If it is a URL of the format s3://bucketname/path then it will connect via S // max-allowed-packet size flags.Int("max-allowed-packet", defaultMaxAllowedPacket, "Maximum size of the buff...
Make once, cron and begin/frequency flags mutually exclusive Closes #265 Changes: - Make the flags themselves mutually exclusive and remove check in timer.go. This check always failed when using cron, as the begin and frequency options are populated with defaults. - add else if for timer creation, to prevent over...
Go version: Mutually exclusive flags check not working ## Expected Behavior Supplying just the `--cron` flag or just the `--once` flag should work. ## Current Behavior mysql-backup exits with errors depending on the flag `ERRO[0000] error creating timer: option 'Cron' is exclusive and must not be used with Begi...
databacker/mysql-backup
diff --git a/cmd/dump_test.go b/cmd/dump_test.go index 2e26056..66d96fc 100644 --- a/cmd/dump_test.go +++ b/cmd/dump_test.go @@ -34,12 +34,41 @@ func TestDumpCmd(t *testing.T) { Compressor: &compression.GzipCompressor{}, DBConn: database.Connection{Host: "abc"}, }, core.TimerOptions{Frequency...
[ "TestDumpCmd", "TestDumpCmd/incompatible_flags:_once/cron", "TestDumpCmd/incompatible_flags:_once/begin", "TestDumpCmd/incompatible_flags:_once/frequency", "TestDumpCmd/incompatible_flags:_cron/begin", "TestDumpCmd/incompatible_flags:_cron/frequency" ]
[ "TestRestoreCmd", "TestRestoreCmd/missing_server_and_target_options", "TestRestoreCmd/invalid_target_URL", "TestRestoreCmd/valid_URL_missing_dump_filename", "TestRestoreCmd/valid_file_URL", "TestDumpCmd/missing_server_and_target_options", "TestDumpCmd/invalid_target_URL", "TestDumpCmd/file_URL", "Te...
{ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
94a0c7f86a706e75dce122468b64462d42baebdd
2020-01-29 21:39:30
docker.io/swerebenchv2/fhir-sushi:165-94a0c7f
fhir__sushi-165
No new interfaces are introduced.
ts
Apache-2.0
diff --git a/src/fhirtypes/StructureDefinition.ts b/src/fhirtypes/StructureDefinition.ts index 12e5b2d..781fcfd 100644 --- a/src/fhirtypes/StructureDefinition.ts +++ b/src/fhirtypes/StructureDefinition.ts @@ -315,8 +315,16 @@ export class StructureDefinition { // Now handle snapshot and differential j.snaps...
Add basic default differential Fixes #153 Adds in a basic entry into the `differential.element` even if there are no changes made to a profile/extension, like @cmoesel suggested in the issue. The IG publisher seems to be happy with this fix.
FHIR IG Publisher chokes on profiles/extensions w/ no differential elements Apparently the publisher requires at least one differential element, so profiles/extensions w/ no rules cause errors in the publisher. To get around this, we should check if differential is empty after export. If so, we should toss in a singl...
FHIR/sushi
diff --git a/test/fhirtypes/StructureDefinition.test.ts b/test/fhirtypes/StructureDefinition.test.ts index 2d9d64f..a20b2c8 100644 --- a/test/fhirtypes/StructureDefinition.test.ts +++ b/test/fhirtypes/StructureDefinition.test.ts @@ -122,6 +122,11 @@ describe('StructureDefinition', () => { }); }); + it(...
[ "should reflect basic differential for structure definitions with no changes" ]
[ "should parse the simplest possible profile", "should parse profile with additional metadata properties", "should properly parse a multi-string description", "should accept and translate an alias for the parent", "should only apply each metadata attribute the first time it is declared", "should log an err...
{ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
46da4db03c362d472521132f8bd225bc41ef7b41
2024-07-01 11:37:18
docker.io/swerebenchv2/networknt-json-schema-validator:1077-46da4db
networknt__json-schema-validator-1077
Method: JsonSchemaFactory.getInstance(VersionFlag versionFlag, java.util.function.Consumer&lt;JsonSchemaFactory.Builder&gt; configurer) Location: class JsonSchemaFactory Inputs: - versionFlag – enum indicating the JSON Schema version to use (e.g., V7, V202012). - configurer – a lambda/consumer that receives a JsonSc...
java
Apache-2.0
diff --git a/src/main/java/com/networknt/schema/utils/JsonNodes.java b/src/main/java/com/networknt/schema/utils/JsonNodes.java index f1f8947..3bfd9aa 100644 --- a/src/main/java/com/networknt/schema/utils/JsonNodes.java +++ b/src/main/java/com/networknt/schema/utils/JsonNodes.java @@ -67,7 +67,7 @@ public class JsonNode...
Fix json pointer with number in fragment Closes #1076
`JsonSchema.getSubSchema()` fails with JsonPointer containing a number The following test fails: ```java /** * Test can validate against a schema located under a response code. */ @Test void canValidateSchemaUnderAResponse() { JsonSchemaFactory factory = JsonSchemaFactory.getInstanc...
networknt/json-schema-validator
diff --git a/src/test/java/com/networknt/schema/oas/OpenApi30Test.java b/src/test/java/com/networknt/schema/oas/OpenApi30Test.java index 43256d2..e00abb4 100644 --- a/src/test/java/com/networknt/schema/oas/OpenApi30Test.java +++ b/src/test/java/com/networknt/schema/oas/OpenApi30Test.java @@ -16,6 +16,7 @@ package com....
[ "---NO TEST NAME FOUND YET---" ]
[]
{ "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
e62960460e639f0cd66ed70eccaba35a5385dddb
2019-05-03 13:07:02
docker.io/swerebenchv2/oceanparcels-parcels:590-e629604
oceanparcels__parcels-590
Method: FieldSet.from_data(data, dimensions) Location: parcels/fieldset.py Inputs: - **data** (dict[str, np.ndarray]): mapping of field names to their data arrays (e.g., {'U': ..., 'V': ...}); each array must have a leading time dimension matching the length of `dimensions['time']`. - **dimensions** (dict[str, Any]): ...
python
MIT
diff --git a/parcels/fieldset.py b/parcels/fieldset.py index 4fae531f..c94db459 100644 --- a/parcels/fieldset.py +++ b/parcels/fieldset.py @@ -86,7 +86,13 @@ class FieldSet(object): lat = dims['lat'] depth = np.zeros(1, dtype=np.float32) if 'depth' not in dims else dims['depth'] t...
Adding support for np.datetime64 in Field.from_data() This fixes #586
FieldSet.from_data does not accept np.datetime64 time objects While we support `np.datetime64` throughout most of Parcels, these are not accepted in `FieldSet.from_data()` yet, which assumes that the `time` vector contains either floats or ints.
OceanParcels/parcels
diff --git a/tests/test_fieldset.py b/tests/test_fieldset.py index 8b32b7ec..c06c9242 100644 --- a/tests/test_fieldset.py +++ b/tests/test_fieldset.py @@ -42,6 +42,19 @@ def test_fieldset_from_data(xdim, ydim): assert np.allclose(fieldset.V.data[0, :], data['V'], rtol=1e-12) +@pytest.mark.parametrize('ttype', ...
[ "tests/test_fieldset.py::test_fieldset_from_data_timedims[1-datetime64]", "tests/test_fieldset.py::test_fieldset_from_data_timedims[20-datetime64]" ]
[ "tests/test_fieldset.py::test_fieldset_from_data[100-100]", "tests/test_fieldset.py::test_fieldset_from_data[100-200]", "tests/test_fieldset.py::test_fieldset_from_data[200-100]", "tests/test_fieldset.py::test_fieldset_from_data[200-200]", "tests/test_fieldset.py::test_fieldset_from_data_timedims[1-float]",...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
694f8620e7e79cc914678bf2c8a3a7d70df3af29
2024-08-15 20:19:57
docker.io/swerebenchv2/spikeinterface-spikeinterface:3309-694f862
spikeinterface__spikeinterface-3309
No new interfaces are introduced.
python
MIT
diff --git a/src/spikeinterface/curation/curation_format.py b/src/spikeinterface/curation/curation_format.py index babe7aac4..511abb780 100644 --- a/src/spikeinterface/curation/curation_format.py +++ b/src/spikeinterface/curation/curation_format.py @@ -92,13 +92,17 @@ def convert_from_sortingview_curation_format_v0(sor...
Fix sortingview curation no merge case Fixes #3308 In the case where no merges are made in sortingview, two errors are thrown. First error is due to sortingview not returning a curation_dict with a "mergeGroups" key which hopefully I fixed. Second error is due to type mismatch between labeled units and unit list...
curation_dict from sortingview doesn't have 'mergeGroups' key Hello, I just updated Spikeinterface from 0.100.2 to 0.101.0 and am making the transition to using sorting analyzer class which has been pretty smooth for the most part but I'm getting an error related to sortingview_curation. Here's my code: ``` sa...
SpikeInterface/spikeinterface
diff --git a/src/spikeinterface/curation/tests/sv-sorting-curation-no-merge.json b/src/spikeinterface/curation/tests/sv-sorting-curation-no-merge.json new file mode 100644 index 000000000..2a350340f --- /dev/null +++ b/src/spikeinterface/curation/tests/sv-sorting-curation-no-merge.json @@ -0,0 +1,1 @@ +{"labelsByUnit":...
[ "src/spikeinterface/curation/tests/test_sortingview_curation.py::test_json_no_merge_curation" ]
[ "src/spikeinterface/curation/tests/test_sortingview_curation.py::test_json_curation", "src/spikeinterface/curation/tests/test_sortingview_curation.py::test_false_positive_curation", "src/spikeinterface/curation/tests/test_sortingview_curation.py::test_label_inheritance_int", "src/spikeinterface/curation/tests...
{ "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": [...
2d2566df54b0c98a0b181a0002c48478fbc4d9a7
2024-04-10 23:09:26
docker.io/swerebenchv2/stfc-psyclone:2545-2d2566d
stfc__psyclone-2545
No new interfaces are introduced.
python
BSD-3-Clause
diff --git a/changelog b/changelog index 89988e7fd..677950d5a 100644 --- a/changelog +++ b/changelog @@ -45,6 +45,8 @@ still a CodeBlock but the case bodies are transferred to a conditional construct after the CodeBlock). + 18) PR #2545 for #2544. Accept -c as shortcut for --config in the CLIs. + release 2.5.0 1...
#2544 Accept -c as shortcut for --config on command line. Trivial change, fixes #2544
Accept -c on command line (as short form of --config) It is unintuitive that there is no shortcut for `--config` (which just caused some confusion). It would also be nice if any errors in the command line would be reported when `-v` is specified ... `-v` was used as verbose, and while it then printed the version num...
stfc/PSyclone
diff --git a/src/psyclone/tests/generator_test.py b/src/psyclone/tests/generator_test.py index 88f2653ee..792b979ae 100644 --- a/src/psyclone/tests/generator_test.py +++ b/src/psyclone/tests/generator_test.py @@ -714,8 +714,9 @@ def test_main_api(): # HAS_CONFIG_BEEN_INITIALISED flag! Config._HAS_CONFIG_BEEN_...
[ "src/psyclone/tests/generator_test.py::test_main_api" ]
[ "src/psyclone/tests/generator_test.py::test_script_file_not_found", "src/psyclone/tests/generator_test.py::test_script_file_no_extension", "src/psyclone/tests/generator_test.py::test_script_file_wrong_extension", "src/psyclone/tests/generator_test.py::test_script_invalid_content", "src/psyclone/tests/genera...
{ "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": [...
2b00b1e3fdcde3806ac0a440ad08b2afdbadbc77
2022-12-07 19:14:49
docker.io/swerebenchv2/stac-utils-pystac-client:373-2b00b1e
stac-utils__pystac-client-373
No new interfaces are introduced.
python
custom-check-github
diff --git a/CHANGELOG.md b/CHANGELOG.md index cfd88d5..61f157b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ### Fixed - Some mishandled cases for datetime intervals [#363](https://github.com/stac-utils/pystac-client/...
Ensure client self hrefs don't end in '/' **Related Issue(s):** - Closes #369 **Description:** Our url construction is a bit naïve -- we use basic string formatting, e.g. https://github.com/stac-utils/pystac-client/blob/3f305e287ceb6ad966da278e5ee4abf4f79f1a04/pystac_client/client.py#L257 As raised in #36...
Do something when STAC endpoint url ends with "/" Hi, When the STAC enpoint ends with "/", random things crashes in pystac. ```py from pystac_client import Client api1 = Client("https://some-stac-api.org/") # erratically works api2 = Client("https://some-stac-api.org") # works ``` Maybe it could be more use...
stac-utils/pystac-client
diff --git a/tests/test_client.py b/tests/test_client.py index e563ae4..ff07a48 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -128,6 +128,24 @@ class TestAPI: assert len(history) == 2 assert history[1].url == collections_link.href + def test_get_collections_single_slash(self, re...
[ "tests/test_client.py::TestAPI::test_get_collections_single_slash" ]
[ "tests/test_client.py::TestAPI::test_spec_conformance", "tests/test_client.py::TestAPI::test_no_conformance", "tests/test_client.py::TestAPI::test_no_stac_core_conformance", "tests/test_client.py::TestAPI::test_invalid_url", "tests/test_client.py::TestAPI::test_get_collections_with_conformance", "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
8470dd162a6599ee5ff5ed716902321e60b728a3
2022-02-04 11:12:19
docker.io/swerebenchv2/couds-react-bulma-components:376-8470dd1
couds__react-bulma-components-376
No new interfaces are introduced.
js
MIT
diff --git a/src/components/navbar/components/dropdown.js b/src/components/navbar/components/dropdown.js index d5f7ffd..64600c7 100644 --- a/src/components/navbar/components/dropdown.js +++ b/src/components/navbar/components/dropdown.js @@ -36,7 +36,7 @@ NavbarDropdown.propTypes = { }; NavbarDropdown.defaultProps =...
Fixes #372 Navbar item default renderas
Navbar-dropdown cant be a span element must be a div or other block element **Describe the bug** Using a divider converted as a hr element, is not allowed in proper html to be inside a list item span element. When validate my code in W3C's validator it says: Element hr not allowed as child of element span in this cont...
couds/react-bulma-components
diff --git a/src/components/navbar/__test__/__snapshots__/navbar.test.js.snap b/src/components/navbar/__test__/__snapshots__/navbar.test.js.snap index 4735b55..be795ed 100644 --- a/src/components/navbar/__test__/__snapshots__/navbar.test.js.snap +++ b/src/components/navbar/__test__/__snapshots__/navbar.test.js.snap @@ ...
[ "Should have Navbar classname" ]
[ "Should Exist", "Should have helpers classnames", "Should accept a react Element as renderAs prop", "Should exist", "Should have table classname", "Should concat classname in props with Bulma classname", "Should use inline styles", "Should create a scrollable table", "Should have section classname",...
{ "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": [], "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": [...
9fc420166efdebcfc77533c302fcd2f2ab6e3b86
2025-02-13 14:47:19
docker.io/swerebenchv2/hetznercloud-cli:987-9fc4201
hetznercloud__cli-987
Method: pflag.FlagSet.GetStringSlice(name string) ([]string, error) Location: internal/cmd/firewall/add_rule.go → parseRuleFromArgs; internal/cmd/firewall/delete_rule.go → parseRuleFromArgs Inputs: flag name – `"source-ips"` or `"destination-ips"`; the underlying flag must have been defined with StringSlice. Outputs: s...
go
MIT
diff --git a/internal/cmd/firewall/add_rule.go b/internal/cmd/firewall/add_rule.go index 2df06bd..16fad3c 100644 --- a/internal/cmd/firewall/add_rule.go +++ b/internal/cmd/firewall/add_rule.go @@ -31,9 +31,9 @@ var AddRuleCmd = base.Cmd{ _ = cmd.RegisterFlagCompletionFunc("protocol", cmpl.SuggestCandidates("icmp", "...
fix: some list flags are not correctly parsed Three flags were not correctly split up when the user specified multiple values separated by comma. This happened because the `StringArray` flag explitely does not split the input. `StringSlice`, which we use nearly everywhere else, does split input by comma. Fixes #986
fix: some flags use StringArray which does not split by comma ### TL;DR Some commands do not allow comma separated input for list flags. Example `hcloud firewall add-rule --destionation-ips` ### Expected behavior Our flags should consistently allow the use of commas to specify multiple values. ### Observed behavio...
hetznercloud/cli
diff --git a/internal/cmd/firewall/add_rule_test.go b/internal/cmd/firewall/add_rule_test.go index 0466a3a..9a3316c 100644 --- a/internal/cmd/firewall/add_rule_test.go +++ b/internal/cmd/firewall/add_rule_test.go @@ -32,7 +32,7 @@ func TestAddRule(t *testing.T) { SetRules(gomock.Any(), fw, hcloud.FirewallSetRulesOpt...
[ "TestAddRule", "TestDeleteRule" ]
[ "TestListAll", "TestListAllPaidJSON", "TestCreate", "TestCreate/no_flags", "TestCreate/json", "TestCreate/yaml", "TestCreate/quiet", "TestCreate/json_quiet", "TestCreate/yaml_quiet", "TestDelete", "TestDelete/no_flags_multiple", "TestDelete/error", "TestDelete/error_multiple", "TestDelete/...
{ "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.6", "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": [...
c637076fcc65c4cfaafee22bf8232b16fb1db311
2024-05-29 19:25:04
docker.io/swerebenchv2/getmoto-moto:7728-c637076
getmoto__moto-7728
No new interfaces are introduced.
python
Apache-2.0
diff --git a/moto/iam/responses.py b/moto/iam/responses.py index 562dd2b1e..cb20c45fd 100644 --- a/moto/iam/responses.py +++ b/moto/iam/responses.py @@ -1239,14 +1239,16 @@ CREATE_POLICY_TEMPLATE = """<CreatePolicyResponse> <PolicyId>{{ policy.id }}</PolicyId> <PolicyName>{{ policy.name }}</PolicyName> ...
IAM: create_policy() should return tags in correct format Fixes #7724
IAM - create_policy returns bad tags Hi, Thank you for this great library! I just noticed a small bug in IAM implementation. Using latest moto version with python mocks. The function create_policy returns the policy tags with this format: `[{"tag_key": {"tag_key": "tag_value"}},...]` instead of `[{"tag_key": "ta...
getmoto/moto
diff --git a/.github/workflows/tests_terraform_examples.yml b/.github/workflows/tests_terraform_examples.yml index 8dfa291b9..fee7afa17 100644 --- a/.github/workflows/tests_terraform_examples.yml +++ b/.github/workflows/tests_terraform_examples.yml @@ -11,7 +11,7 @@ jobs: strategy: fail-fast: false m...
[ "tests/test_iam/test_iam.py::test_create_policy_with_tags" ]
[ "tests/test_iam/test_iam.py::test_get_role__should_throw__when_role_does_not_exist", "tests/test_iam/test_iam.py::test_get_role__should_contain_last_used", "tests/test_iam/test_iam.py::test_get_instance_profile__should_throw__when_instance_profile_does_not_exist", "tests/test_iam/test_iam.py::test_create_role...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
6ee0607f03be02dbbcfbee18bb83b46e77389e6e
2021-06-15 03:36:12
docker.io/swerebenchv2/go-kratos-kratos:1061-6ee0607
go-kratos__kratos-1061
No new interfaces are introduced.
go
MIT
diff --git a/internal/host/host.go b/internal/host/host.go index 0014c0a2..193056d6 100644 --- a/internal/host/host.go +++ b/internal/host/host.go @@ -1,6 +1,7 @@ package host import ( + "fmt" "net" "strconv" ) @@ -27,6 +28,8 @@ func Extract(hostPort string, lis net.Listener) (string, error) { if lis != nil ...
transport: fix endpoint extract fix #1058
最新版本服务注册随机端口为0 #### kratos版本: v2.0.0-rc2, v2.0.0-rc3 配置随机端口,在服务注册的时候,端口又变回0了。是不是这里: ```golang wg := sync.WaitGroup{} for _, srv := range a.opts.servers { srv := srv eg.Go(func() error { <-ctx.Done() // wait for stop signal return srv.Stop(ctx) }) wg.Add(1) eg.Go(func() error { wg.Done...
go-kratos/kratos
diff --git a/transport/grpc/server_test.go b/transport/grpc/server_test.go index c2901dc0..1f281adc 100644 --- a/transport/grpc/server_test.go +++ b/transport/grpc/server_test.go @@ -2,11 +2,9 @@ package grpc import ( "context" - "fmt" + "strings" "testing" "time" - - "github.com/go-kratos/kratos/v2/internal/h...
[ "TestServer" ]
[ "TestApp", "TestFile", "TestConfig", "TestRegisterCodec", "TestJSON_Marshal", "TestJSON_Unmarshal", "TestCodec_Marshal", "TestCodec_Unmarshal", "TestCodec_NilUnmarshal", "TestError", "TestTypes", "TestValidIP", "TestValidIP/127.0.0.1", "TestValidIP/255.255.255.255", "TestValidIP/0.0.0.0"...
{ "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
d347bc86694fa727a4f76f7e5528c917b8c338fa
2023-05-24 17:31:07
docker.io/swerebenchv2/pymodbus-dev-pymodbus:1547-d347bc8
pymodbus-dev__pymodbus-1547
Method: ModbusSocketFramer.processIncomingPacket(self, data: bytes, callback: Callable[[Any], None], slaves: List[int]) Location: pymodbus/framer/socket_framer.py Inputs: - **data** – raw Modbus frame received from the transport (bytes). - **callback** – a callable invoked with the decoded request when the frame is ...
python
custom-check-github
diff --git a/pymodbus/framer/socket_framer.py b/pymodbus/framer/socket_framer.py index d0569cc6..043d2b0d 100644 --- a/pymodbus/framer/socket_framer.py +++ b/pymodbus/framer/socket_framer.py @@ -176,6 +176,7 @@ class ModbusSocketFramer(ModbusFramer): """Process incoming packets irrespective error condition."""...
Client more robust against faulty response. <!-- Please raise your PR's against the `dev` branch instead of `master` --> fixes #1545
AsyncModbusTcpClient never recovers after bad response I have a modbus server that occasionally returns an invalid response to read-holding-registers, where the "number of bytes" number in the PDU is higher than the actual number of bytes in the response. AsyncModbusTcpClient reacts by disconnecting — which is fine — b...
pymodbus-dev/pymodbus
diff --git a/test/test_client_faulty_response.py b/test/test_client_faulty_response.py new file mode 100644 index 00000000..de15d463 --- /dev/null +++ b/test/test_client_faulty_response.py @@ -0,0 +1,40 @@ +"""Test server working as slave on a multidrop RS485 line.""" +from unittest import mock + +import pytest + +from...
[ "test/test_client_faulty_response.py::TestFaultyResponses::test_faulty_frame1" ]
[ "test/test_client_faulty_response.py::TestFaultyResponses::test_ok_frame" ]
{ "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": [...
e2b90c0750b2913f2a0df4d274ce58f232894bac
2022-12-10 19:44:06
docker.io/swerebenchv2/duartegroup-autode:213-e2b90c0
duartegroup__autode-213
Function: get_ts_template_folder_path(folder_path) Location: autode.transition_states.templates Inputs: - folder_path: (str or None) – currently unused placeholder; the function also inspects `Config.ts_template_folder_path` from `autode.config.Config`. Outputs: - Returns a string representing the path to the TS temp...
python
MIT
diff --git a/autode/__init__.py b/autode/__init__.py index eff4ba3..0a1dd63 100644 --- a/autode/__init__.py +++ b/autode/__init__.py @@ -38,7 +38,7 @@ Bumping the version number requires following the release proceedure: - Merge when tests pass """ -__version__ = "1.3.3" +__version__ = "1.3.4" __all__ = [ di...
Improve exception for invalid ts template folder path ## Resolves #212
Throw useful exception if `ade.Config.ts_template_folder_path = ""`
duartegroup/autodE
diff --git a/tests/test_config.py b/tests/test_config.py index a0791d2..338a22a 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -5,6 +5,7 @@ from autode.config import Config from autode.values import Allocation, Distance from autode.wrappers.keywords import KeywordsSet from autode.wrappers.keywords i...
[ "tests/test_config.py::test_invalid_get_ts_template_folder_path" ]
[ "tests/test_config.py::test_config", "tests/test_config.py::test_maxcore_setter", "tests/test_config.py::test_invalid_freq_scale_factor[-0.1]", "tests/test_config.py::test_invalid_freq_scale_factor[1.1]", "tests/test_config.py::test_invalid_freq_scale_factor[a", "tests/test_config.py::test_unknown_attr", ...
{ "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": [...
4afc2771f0e18504cbb5237790cb336712e62f11
2024-04-21 12:58:24
docker.io/swerebenchv2/pandas-dev-pandas:58349-4afc277
pandas-dev__pandas-58349
Method: SASReader.__next__(self) Location: pandas/io/sas/sasreader.py → class SASReader(Iterator["DataFrame"], ABC) Inputs: None (called by iteration) Outputs: pandas.DataFrame – the next chunk of data when the reader is used in iterator/chunksize mode; raises StopIteration when no more data. Description: Provides ...
python
BSD-3-Clause
diff --git a/ci/code_checks.sh b/ci/code_checks.sh index d1cdff8f7f..ad12458ad6 100755 --- a/ci/code_checks.sh +++ b/ci/code_checks.sh @@ -109,7 +109,6 @@ if [[ -z "$CHECK" || "$CHECK" == "docstrings" ]]; then -i "pandas.DataFrame.var PR01,RT03,SA01" \ -i "pandas.DatetimeIndex.ceil SA01" \ -i...
TYP: export SASReader in pandas.api.typing - [x] closes #55689 (Replace xxxx with the GitHub issue number) - [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 - [ ] All [code checks passed](https://panda...
ENH: Add SAS7BDATReader and XportReader to `pandas/api/typing/__init__.py` ### Feature Type - [X] Adding new functionality to pandas - [ ] Changing existing functionality in pandas - [ ] Removing existing functionality in pandas ### Problem Description These classes can be returned by `read_sas(..., iterator=True...
pandas-dev/pandas
diff --git a/pandas/tests/api/test_api.py b/pandas/tests/api/test_api.py index 0f2a641d13..b23876d928 100644 --- a/pandas/tests/api/test_api.py +++ b/pandas/tests/api/test_api.py @@ -267,6 +267,7 @@ class TestApi(Base): "RollingGroupby", "SeriesGroupBy", "StataReader", + "SASReader", ...
[ "pandas/tests/api/test_api.py::TestApi::test_api_typing" ]
[ "pandas/tests/api/test_api.py::TestPDApi::test_api", "pandas/tests/api/test_api.py::TestPDApi::test_api_all", "pandas/tests/api/test_api.py::TestPDApi::test_depr", "pandas/tests/api/test_api.py::TestApi::test_api_types", "pandas/tests/api/test_api.py::TestApi::test_api_interchange", "pandas/tests/api/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.99, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
38d52783f16ddf7f7112d870d2119a7b25a5d634
2016-08-26 02:28:53
docker.io/swerebenchv2/raml-org-raml-java-parser:252-38d5278
raml-org__raml-java-parser-252
Method: BodyLike.schemaContent() Location: org/raml/v2/internal/impl/commons/model/BodyLike.java Inputs: none (operates on the BodyLike instance) Outputs: Returns a {@code String} containing the schema definition associated with this body. If the schema is defined inline (starting with “{” or “<”) the method returns th...
java
custom-check-github
diff --git a/raml-parser-2/src/main/java/org/raml/v2/internal/impl/commons/model/BodyLike.java b/raml-parser-2/src/main/java/org/raml/v2/internal/impl/commons/model/BodyLike.java index fe39d822..4c08ab23 100644 --- a/raml-parser-2/src/main/java/org/raml/v2/internal/impl/commons/model/BodyLike.java +++ b/raml-parser-2/s...
BodyLike.schemaContent() always returns null Fixes #246
BodyLike.schemaContent() always returns null in v0.8 mode
raml-org/raml-java-parser
diff --git a/raml-parser-2/src/test/java/org/raml/v2/api/SpecInterfacesV08TestCase.java b/raml-parser-2/src/test/java/org/raml/v2/api/SpecInterfacesV08TestCase.java index 378283e9..8bea3d6d 100644 --- a/raml-parser-2/src/test/java/org/raml/v2/api/SpecInterfacesV08TestCase.java +++ b/raml-parser-2/src/test/java/org/raml...
[ "org.raml.v2.api.ApiModelParserTestCase", "org.raml.v2.api.SpecInterfacesV08TestCase" ]
[ "org.raml.v2.api.LibraryTestCase", "org.raml.v2.api.SpecInterfacesV10TestCase", "org.raml.v2.api.OdataV10TestCase", "org.raml.v2.api.LeaguesV10TestCase", "org.raml.v2.internal.framework.suggester.SuggesterTestCase", "org.raml.v2.internal.utils.InflectorTestCase", "org.raml.v2.parser.InternalTckTestCase"...
{ "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.97, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
f29eba0f72a6aa80398e099c64722ccc8c23fa16
2020-10-26 15:14:53
docker.io/swerebenchv2/runningcode-fladle:196-f29eba0
runningcode__fladle-196
Method: FlankJavaExec.timeout(Property&lt;Duration&gt;) Location: com.osacky.flank.gradle.FlankJavaExec (extends org.gradle.api.tasks.JavaExec) Inputs: Duration value supplied via timeout.set(...); accepts java.time.Duration and can be configured from the Gradle DSL. Outputs: Configures a maximum execution time for the...
kotlin
Apache-2.0
diff --git a/buildSrc/src/main/java/com/osacky/flank/gradle/FladlePluginDelegate.kt b/buildSrc/src/main/java/com/osacky/flank/gradle/FladlePluginDelegate.kt index 8ed2089e..b6e51cfc 100644 --- a/buildSrc/src/main/java/com/osacky/flank/gradle/FladlePluginDelegate.kt +++ b/buildSrc/src/main/java/com/osacky/flank/gradle/F...
Flank expects the output directory to already exists. Fixes #195
`./gradlew flankAuth` throws `TaskExecutionException` I just setup a project with Fladle and using the User Authentication approach to grant my local machine access to Firebase Test Lab. However, when I tried to run `./gradlew flankAuth`, it keeps throwing `TaskExecutionException`. The workaround I found is to run `./g...
runningcode/fladle
diff --git a/buildSrc/src/test/java/com/osacky/flank/gradle/integration/FlankAuthTestTask.kt b/buildSrc/src/test/java/com/osacky/flank/gradle/integration/FlankAuthTestTask.kt new file mode 100644 index 00000000..45c5f434 --- /dev/null +++ b/buildSrc/src/test/java/com/osacky/flank/gradle/integration/FlankAuthTestTask.kt...
[ "com.osacky.flank.gradle.integration.FlankAuthTestTask > testFlankAuth" ]
[ "com.osacky.flank.gradle.validation.ValidateOptionsTest > should throw an error when unavailable option used", "com.osacky.flank.gradle.validation.ValidateOptionsTest > should not throw an error when available option used", "com.osacky.flank.gradle.validation.ValidateOptionsTest > should not throw an error if n...
{ "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
dd8c1ba023831e8d127ffc9369b73299fad241b4
2021-01-13 16:26:51
docker.io/swerebenchv2/argoproj-argo:4872-dd8c1ba
argoproj__argo-4872
No new interfaces are introduced.
go
Apache-2.0
diff --git a/workflow/controller/operator.go b/workflow/controller/operator.go index 9665e0b53..78437e74f 100644 --- a/workflow/controller/operator.go +++ b/workflow/controller/operator.go @@ -1698,7 +1698,7 @@ func (woc *wfOperationCtx) executeTemplate(ctx context.Context, nodeName string, // The statement "(!ok ...
fix(controller): Consider processed retry node in metrics. Fixes #4846 Fixes https://github.com/argoproj/argo/issues/4846
Retryable tasks with template-level metrics are falsely labelled as Running ## Summary When using a metric label value of `{{status}}` I expected a status like `Failed` or `Succeeded`. However, when a retryStrategy is defined on the task, the metric ends up having a label value of `Running`. ## Diagnostics Wh...
argoproj/argo
diff --git a/workflow/controller/operator_metrics_test.go b/workflow/controller/operator_metrics_test.go index 1e9d5ba82..06139cd29 100644 --- a/workflow/controller/operator_metrics_test.go +++ b/workflow/controller/operator_metrics_test.go @@ -485,3 +485,104 @@ func TestRealtimeWorkflowMetricWithGlobalParameters(t *te...
[ "TestProcessedRetryNode", "TestPersistWithoutLargeWfSupport", "TestPersistErrorWithoutLargeWfSupport", "TestPersistWithLargeWfSupport", "TestPersistErrorWithLargeWfSupport", "TestTemplateScope", "TestTemplateScopeWithParam", "TestTemplateScopeNestedStepsWithParams", "TestTemplateScopeDAG", "TestTe...
[ "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": [], "intent_completeness": "complete", "pr_categories": [...
b0782f87c49ae280fb63d328c3c4d46b56c96ea4
2024-06-24 18:17:06
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3388-b0782f8
aws-cloudformation__cfn-lint-3388
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/data/schemas/other/parameters/configuration.json b/src/cfnlint/data/schemas/other/parameters/configuration.json index 72031b96e..a8c9748b2 100644 --- a/src/cfnlint/data/schemas/other/parameters/configuration.json +++ b/src/cfnlint/data/schemas/other/parameters/configuration.json @@ -7,6 +7,7 @@...
Allow AllowedPattern with AWS type parameters *Issue #, if available:* fix #3381 *Description of changes:* - Allow AllowedPattern with AWS type parameters By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
v1: E2001 'AllowedPattern' is not one of [ ... ] for parameter type AWS::EC2::Image::Id ### CloudFormation Lint Version 1.3.3 ### What operating system are you using? Ubuntu ### Describe the bug Validation fails when specifying the `AllowedPattern` propety for a parameter with type `AWS::EC2::Image::Id`. ### Expe...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/parameters/test_configuration.py b/test/unit/rules/parameters/test_configuration.py index 418e7e617..046504b57 100644 --- a/test/unit/rules/parameters/test_configuration.py +++ b/test/unit/rules/parameters/test_configuration.py @@ -73,6 +73,16 @@ def context(cfn): }, ...
[ "test/unit/rules/parameters/test_configuration.py::test_validate[AWS" ]
[ "test/unit/rules/parameters/test_configuration.py::test_validate[Empty", "test/unit/rules/parameters/test_configuration.py::test_validate[wrong", "test/unit/rules/parameters/test_configuration.py::test_validate[String", "test/unit/rules/parameters/test_configuration.py::test_validate[Number", "test/unit/rul...
{ "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": [...
7351d0cf7087d759dd24b06190cb759ec3381da6
2025-03-19 04:18:46
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:4032-7351d0c
aws-cloudformation__cfn-lint-4032
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/rules/resources/iam/StatementResources.py b/src/cfnlint/rules/resources/iam/StatementResources.py index c64216d71..1f16baa01 100644 --- a/src/cfnlint/rules/resources/iam/StatementResources.py +++ b/src/cfnlint/rules/resources/iam/StatementResources.py @@ -158,15 +158,17 @@ class StatementResour...
Update I3510 to only validate one resource is matched *Issue #, if available:* fix #4031 *Description of changes:* - Update I3510 to only validate one resource is matched By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice....
I3510 - False positives for missing resources for ec2:CreateTags ### CloudFormation Lint Version 1.31.1 ### What operating system are you using? Fedora ### Describe the bug The ec2:CreateTags IAM permission accepts multiple resource types. The I3510 appears to be enforcing that every potential resource type is li...
aws-cloudformation/cfn-lint
diff --git a/test/unit/rules/resources/iam/test_statement_resources.py b/test/unit/rules/resources/iam/test_statement_resources.py index a25d77ee9..64c57f009 100644 --- a/test/unit/rules/resources/iam/test_statement_resources.py +++ b/test/unit/rules/resources/iam/test_statement_resources.py @@ -112,6 +112,13 @@ def te...
[ "test/unit/rules/resources/iam/test_statement_resources.py::test_rule[instance11-expected11]" ]
[ "test/unit/rules/resources/iam/test_statement_resources.py::test_rule[instance0-expected0]", "test/unit/rules/resources/iam/test_statement_resources.py::test_rule[instance1-expected1]", "test/unit/rules/resources/iam/test_statement_resources.py::test_rule[instance2-expected2]", "test/unit/rules/resources/iam/...
{ "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": [...
019b2cf4db9ac4c0722ca6d55d3fda71bffcfd0a
2022-02-23 10:43:58
docker.io/swerebenchv2/bkbnio-kompendium:207-019b2cf
bkbnio__kompendium-207
Function: Application.notarizedGetNestedLocationFromNonLocationClass() Location: kompendium-locations/src/test/kotlin/io/bkbn/kompendium/locations/util/TestModules.kt Inputs: None (operates on the Ktor Application instance it extends) Outputs: Registers a Ktor routing block under “/test” that maps a GET request to the ...
kotlin
MIT
diff --git a/CHANGELOG.md b/CHANGELOG.md index bfabc395a7..7389223014 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Changelog ## Unreleased +- Fixed support Location classes located in other non-location classes ### Added diff --git a/kompendium-locations/src/main/kotlin/io/bkbn/kompendium/loc...
This PR fixes https://github.com/bkbnio/kompendium/issues/194 Implementation notes: - Stops processing parent classes for path calculation if they are not `@Location` annotated
If location annotated with @Location is inside object/class - there will be error thrown: "Location annotation must be present to leverage notarized location api" **Describe the bug** Annotated location with `@Location` doesn't work inside of other object or classs. **To Reproduce** Steps to reproduce the behavior...
bkbnio/kompendium
diff --git a/kompendium-locations/src/test/kotlin/io/bkbn/kompendium/locations/KompendiumLocationsTest.kt b/kompendium-locations/src/test/kotlin/io/bkbn/kompendium/locations/KompendiumLocationsTest.kt index cd415c420c..c45ad217f7 100644 --- a/kompendium-locations/src/test/kotlin/io/bkbn/kompendium/locations/KompendiumL...
[ "Can create a notarized basic authentication record with all expected information (io.bkbn.kompendium.auth.KompendiumAuthTest)", "Can create a simple notarized JWT route (io.bkbn.kompendium.auth.KompendiumAuthTest)", "Can create an Oauth schema with all possible flows (io.bkbn.kompendium.auth.KompendiumAuthTest...
[]
{ "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
d774e7c2f3f74fd38126f6a7ff548a3f01ba23c4
2022-02-15 21:53:01
docker.io/swerebenchv2/foolip-mdn-bcd-collector:1813-d774e7c
foolip__mdn-bcd-collector-1813
No new interfaces are introduced.
ts
null
diff --git a/exporter.js b/exporter.js index 1a83fff..d08dc57 100644 --- a/exporter.js +++ b/exporter.js @@ -40,6 +40,7 @@ const getReportMeta = (report) => { const os = `${ua.os.name} ${ua.os.version}`; const desc = `${browser} / ${os}`; const title = `Results from ${desc} / Collector v${version}`; + const u...
Log the URLs used for tests in report PR descriptions This PR fixes #1720 by including the test URLs used in the results JSON. This will allow us to filter out generated PRs a little better to our exact needs.
Results PRs: log the URLs from the results JSON Lots of random users will submit results to GitHub, some of them useful like running all the tests in a browser version we don't have, others not so much as they are just running tests for a single API. It would be nice to get the URLs from the submitted results and log ...
foolip/mdn-bcd-collector
diff --git a/unittest/unit/exporter.js b/unittest/unit/exporter.js index 8509391..02ea3a3 100644 --- a/unittest/unit/exporter.js +++ b/unittest/unit/exporter.js @@ -34,7 +34,7 @@ const REPORTS = [ expected: { slug: '1.2.3-safari-12.0-mac-os-10.14-cadc34e83f', title: 'Results from Safari 12 / Mac OS 1...
[ "Report #1", "Report #2", "Report #3", "Report #4" ]
[ "missing `Content-Type` header", "missing `for` param", "list results before", "submit valid results", "list results after valid", "submit modified results", "list results after duplicate", "submit valid results for new URL", "list results after new valid", "submit invalid results", "get all tes...
{ "base_image_name": "node_16", "docker_specs": null, "install": [ "PUPPETEER_SKIP_DOWNLOAD=1 npm install", "npm run build" ], "log_parser": "parse_log_js_4", "test_cmd": "npx mocha --recursive unittest --grep \"harness.js chrome\" --invert --reporter=spec" }
{ "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": [...
e8d53c0b830744a3cec9c0080293c39dfbf5ac72
2016-11-20 23:46:59
docker.io/swerebenchv2/pypa-setuptools:853-e8d53c0
pypa__setuptools-853
No new interfaces are introduced.
python
MIT
diff --git a/setuptools/command/egg_info.py b/setuptools/command/egg_info.py index 6cc8f4c45..c4555b3e5 100755 --- a/setuptools/command/egg_info.py +++ b/setuptools/command/egg_info.py @@ -457,7 +457,7 @@ class FileList(_FileList): """ if self.allfiles is None: self.findall() - mat...
Fix #849 global-exclude globbing After #764, `global-exclude .pyc` no longer excluded `.pyc` files. This fixes that regression, and adds a test for this behaviour. Fixes #849.
Since setuptools 28.5.0, a "global-exclude .pyc" no longer matches .pyc files Since commit bb45468d27615c2ce9f9c9757a367c44d6ee80d2, if a project's MANIFEST.in contains ``global-exclude .py[co]``, the archive generated with ``python setup.py sdist`` will still contain all ``.pyc`` / ``.pyo`` files. The test below sh...
pypa/setuptools
diff --git a/setuptools/tests/test_manifest.py b/setuptools/tests/test_manifest.py index 602c43a27..62b6d708c 100644 --- a/setuptools/tests/test_manifest.py +++ b/setuptools/tests/test_manifest.py @@ -449,6 +449,11 @@ class TestFileListTest(TempDirTestCase): assert file_list.files == ['a.py', l('d/c.py')] ...
[ "setuptools/tests/test_manifest.py::TestFileListTest::test_global_include", "setuptools/tests/test_manifest.py::TestFileListTest::test_global_exclude" ]
[ "setuptools/tests/test_manifest.py::TestManifestTest::test_no_manifest", "setuptools/tests/test_manifest.py::TestManifestTest::test_empty_files", "setuptools/tests/test_manifest.py::TestManifestTest::test_include", "setuptools/tests/test_manifest.py::TestManifestTest::test_exclude", "setuptools/tests/test_m...
{ "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
bba54f4d9690b4be47d26c7a7bde717f147594f0
2020-10-29 18:03:00
docker.io/swerebenchv2/iamolegga-nestjs-pino:385-bba54f4
iamolegga__nestjs-pino-385
Function: __resetOutOfContextForTests() Location: src/PinoLogger (exported top‑level function) Inputs: *none* Outputs: void – clears the module‑level “out of context” storage used by the logger to avoid leaking request‑scoped state between tests. Description: Called at the beginning of each test suite to reset internal...
ts
MIT
diff --git a/src/PinoLogger.ts b/src/PinoLogger.ts index d75911a..cea60f4 100644 --- a/src/PinoLogger.ts +++ b/src/PinoLogger.ts @@ -88,10 +88,17 @@ export class PinoLogger implements PinoMethods { if (context) { const firstArg = args[0]; if (typeof firstArg === "object") { - args = [ - ...
add handling of direct error passing fixes #304
[QUESTION] Why `PinoLogger` instance don't show the error object When I use a `PinoLogger` instance to display some error object like `this.logger.error(Error('foo'))` I get this: ```json { "level": 50, "time": 1590422389076, "pid": 27787, "hostname": "--", "name": "app", "req": { "id": 1, ...
iamolegga/nestjs-pino
diff --git a/__tests__/errors.spec.ts b/__tests__/errors.spec.ts new file mode 100644 index 0000000..957f70a --- /dev/null +++ b/__tests__/errors.spec.ts @@ -0,0 +1,69 @@ +import { NestFactory } from "@nestjs/core"; +import { Module, Controller, Get } from "@nestjs/common"; +import MemoryStream = require("memorystream"...
[ "direct error passing" ]
[ "should use adapter logger in req context and default beyond", "routing should work properly", "should work", "should be used by app and by service", "verbose", "debug", "log", "warn", "error", "trace", "info", "fatal", "should compile without params", "should work properly with single val...
{ "base_image_name": "node_16", "docker_specs": null, "install": [ "npm ci --quiet" ], "log_parser": "parse_log_js_4", "test_cmd": "npm test" }
{ "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": [...
c67c257cdf2b79af117cfd1b3938881c8f3e0677
2020-03-25 09:34:25
docker.io/swerebenchv2/yargs-yargs:1600-c67c257
yargs__yargs-1600
No new interfaces are introduced.
js
MIT
diff --git a/lib/usage.js b/lib/usage.js index a1df774..308bc82 100644 --- a/lib/usage.js +++ b/lib/usage.js @@ -146,7 +146,6 @@ module.exports = function usage (yargs, y18n) { const deferY18nLookupPrefix = '__yargsString__:' self.deferY18nLookup = str => deferY18nLookupPrefix + str - const defaultGroup = __('...
fix(usage): translate 'options' group only when displaying help To allow modifying its translation with `updateLocale`/`updateStrings`. Fixes #1598
The updateStrings() could not work on 'Options:' ``` .updateStrings({ command: chalk.cyan('command'), 'Examples:': cyanUnderline('Examples:'), 'Commands:': cyanUnderline('Commands:'), 'Options:': cyanUnderline('Options:'), 'Invalid values:': `${chalk.bgBlack.red('ERR! '...
yargs/yargs
diff --git a/test/yargs.js b/test/yargs.js index 76f206a..3114657 100644 --- a/test/yargs.js +++ b/test/yargs.js @@ -776,6 +776,20 @@ describe('yargs dsl tests', () => { r.logs.join(' ').should.match(/COMMANDS!/) }) + it('also works on default option group', () => { + const r = checkOutput...
[ "also works on default option group" ]
[ "should expose yargs-parser as Parser", "returns `false` on non promise value", "returns `true` on es6 promise", "returns `true` on some other thenable", "returns `false` if some falsy value is passed", "returns `false` if passed object has no `then` property", "returns `false` if `then` is not a functi...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
1fe6dd36c43c83497377155048c1d2c298f3796a
2022-05-02 20:05:49
docker.io/swerebenchv2/pulumi-pulumi-awsx:815-1fe6dd3
pulumi__pulumi-awsx-815
Function: validateEips(natGatewayStrategy: string, eips: string[]) Location: awsx/ec2/vpc.ts Inputs: - **natGatewayStrategy** – the NAT gateway strategy for the VPC (e.g., `"Single"`, `"None"`, `"All"`). - **eips** – an array of Elastic IP identifiers supplied for NAT gateways. The function validates the combination...
ts
Apache-2.0
diff --git a/awsx/ec2/vpc.ts b/awsx/ec2/vpc.ts index 9a2ef31e..62f2812c 100644 --- a/awsx/ec2/vpc.ts +++ b/awsx/ec2/vpc.ts @@ -299,7 +299,7 @@ export function validateEips( } break; case "Single": - if (eips && eips.length !== 1) { + if (eips && eips.length > 1) ...
Fix validation when NAT Gateway strategy is Single and no EIPs are su… …pplied. Fixes #809
Validation when asking for a single NAT Gateway ``` const vpc = new awsx.ec2.Vpc("custom", { natGateways: { strategy: awsx.ec2.NatGatewayStrategy.Single, } }); ``` produces ``` Error: Exactly one Elastic IP may be specified when NAT Gateway strategy is 'Single'.: Error: Exactly one Elas...
pulumi/pulumi-awsx
diff --git a/awsx/ec2/vpc.test.ts b/awsx/ec2/vpc.test.ts index 49f98065..f7ca5003 100644 --- a/awsx/ec2/vpc.test.ts +++ b/awsx/ec2/vpc.test.ts @@ -25,6 +25,10 @@ import { } from "./vpc"; describe("validateEips", () => { + it("should not throw an exception if NAT Gateway strategy is Single and no EIPs are supplie...
[ "should not throw an exception if NAT Gateway strategy is Single and no EIPs are supplied" ]
[ "should return the default subnets with no parameters and 3 AZs", "none", "undefined", "null", "object", "zero", "should throw an exception if NAT Gateway strategy is None and EIPs are supplied", "should throw an exception if NAT Gateway strategy is Single and more than 1 EIP is supplied", "should t...
{ "base_image_name": "node_16", "docker_specs": null, "install": [ "curl -fsSL https://get.pulumi.com | sh", "export PATH=\"/.pulumi/bin:$PATH\"", "npm install --prefix awsx", "cd awsx && npx tsc" ], "log_parser": "parse_log_js_4", "test_cmd": "cd awsx && npx jest --no-colors --verbose" }
{ "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": [...
93477f5cc2d1ae9730254349443f0f07df694d63
2024-11-08 13:43:48
docker.io/swerebenchv2/spatie-laravel-permission:2759-93477f5
spatie__laravel-permission-2759
No new interfaces are introduced.
php
MIT
diff --git a/src/PermissionRegistrar.php b/src/PermissionRegistrar.php index 643ed92..cc2e1ca 100644 --- a/src/PermissionRegistrar.php +++ b/src/PermissionRegistrar.php @@ -349,7 +349,7 @@ class PermissionRegistrar private function getHydratedPermissionCollection(): Collection { - $permissionInstance...
Fix: #2749 bug "Can no longer delete permissions" [Illuminate/Database/Eloquent/Model.php#L615-L619](https://github.com/laravel/framework/blob/37f96f1d6b515f55ea7dfef144fd41519cca38b6/src/Illuminate/Database/Eloquent/Model.php#L615-L619) ```php public function newInstance($attributes = [], $exists = false) { // Thi...
Can no longer delete permissions returned by "findByName" ### Description Before when doing: $permission = Permission::findByName($name, $guardName); And then calling: $permission->delete() The permission would be correct deleted. Now this no longer happens because the "$exists" property on the permission model bei...
spatie/laravel-permission
diff --git a/tests/PermissionTest.php b/tests/PermissionTest.php index b230945..d436457 100644 --- a/tests/PermissionTest.php +++ b/tests/PermissionTest.php @@ -67,4 +67,15 @@ class PermissionTest extends TestCase $this->assertEquals($this->testUserPermission->id, $permission_by_id->id); } + + /** @t...
[ "Permission > It can delete hydrated permissions" ]
[ "Blade > All blade directives will evaluate false when there is nobody logged in", "Blade > All blade directives will evaluate false when somebody without roles or permissions is logged in", "Blade > All blade directives will evaluate false when somebody with another guard is logged in", "Blade > The can dire...
{ "base_image_name": "php_8.3.16", "docker_specs": null, "install": [ "export COMPOSER_HOME=/tmp/composer", "mkdir -p $COMPOSER_HOME", "composer install --no-interaction --prefer-dist" ], "log_parser": "parse_log_phpunit", "test_cmd": "./vendor/bin/phpunit --testdox --colors=never" }
{ "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": [...
5d9282d0ef73a24976e4977f6d6dfe143bdf779a
2025-01-17 18:07:52
docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3920-5d9282d
aws-cloudformation__cfn-lint-3920
No new interfaces are introduced.
python
MIT-0
diff --git a/src/cfnlint/jsonschema/_resolvers_cfn.py b/src/cfnlint/jsonschema/_resolvers_cfn.py index 5fff8b6b3..58ea7da29 100644 --- a/src/cfnlint/jsonschema/_resolvers_cfn.py +++ b/src/cfnlint/jsonschema/_resolvers_cfn.py @@ -85,6 +85,10 @@ def find_in_map(validator: Validator, instance: Any) -> ResolutionResult: ...
Allow Fn::Transform alongside keys in mappings *Issue #, if available:* fix #3916 *Description of changes:* - Allow Fn::Transform alongside keys in mappings By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
E1011 "Is not one of" False Positive when AWS::Include transform is used in Mappings with other entries ### CloudFormation Lint Version cfn-lint 1.22.5 ### What operating system are you using? Ubuntu 24.04 under WSL2 ### Describe the bug When using `Fn::Transform` with `AWS::Include` in the `Mappings` section, and...
aws-cloudformation/cfn-lint
diff --git a/test/unit/module/jsonschema/test_resolvers_cfn.py b/test/unit/module/jsonschema/test_resolvers_cfn.py index bc3a75549..a64ff6dd0 100644 --- a/test/unit/module/jsonschema/test_resolvers_cfn.py +++ b/test/unit/module/jsonschema/test_resolvers_cfn.py @@ -849,3 +849,31 @@ def test_valid_functions(name, instanc...
[ "test/unit/module/jsonschema/test_resolvers_cfn.py::test_find_in_map_with_transform[Valid" ]
[ "test/unit/module/jsonschema/test_resolvers_cfn.py::test_resolvers_ref[Valid", "test/unit/module/jsonschema/test_resolvers_cfn.py::test_invalid_functions[Invalid", "test/unit/module/jsonschema/test_resolvers_cfn.py::test_valid_functions[Valid", "test/unit/module/jsonschema/test_resolvers_cfn.py::test_valid_fu...
{ "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": [...
059dd6894cdcb0f62d987d8c72612f5235ff1969
2024-05-02 16:29:05
docker.io/swerebenchv2/slackapi-python-slack-sdk:1492-059dd68
slackapi__python-slack-sdk-1492
Method: RichTextListElement.__init__(self, type: str = "rich_text_list", elements: List[dict] | None = None, style: str | None = None, indent: int | None = None, offset: int | None = None, border: int | None = None, **others) → None Location: slack_sdk/models/blocks/block_elements.py Inputs: - **type** – element type ...
python
MIT
diff --git a/slack_sdk/models/blocks/block_elements.py b/slack_sdk/models/blocks/block_elements.py index 8977001..46ab75d 100644 --- a/slack_sdk/models/blocks/block_elements.py +++ b/slack_sdk/models/blocks/block_elements.py @@ -1868,7 +1868,7 @@ class RichTextListElement(RichTextElement): ): super().__in...
fix `RichTextElement.elements` items are never promoted to a proper Python object type ## Summary This pull request resolves #1468 ### Category (place an `x` in each of the `[ ]`) - [ ] **slack_sdk.web.WebClient (sync/async)** (Web API client) - [ ] **slack_sdk.webhook.WebhookClient (sync/async)** (Incoming ...
`RichTextElement.elements` items are never promoted to a proper Python object type Using the rich text editor widget with the following content: <img width="477" alt="Screenshot 2024-03-05 at 11 39 10" src="https://github.com/slackapi/python-slack-sdk/assets/118377/0b627c94-4804-4535-8ada-38c4bd91be58"> gets you an u...
slackapi/python-slack-sdk
diff --git a/tests/slack_sdk/models/test_blocks.py b/tests/slack_sdk/models/test_blocks.py index 92abc76..66b17d2 100644 --- a/tests/slack_sdk/models/test_blocks.py +++ b/tests/slack_sdk/models/test_blocks.py @@ -1083,3 +1083,38 @@ class RichTextBlockTests(unittest.TestCase): ], ) self.as...
[ "tests/slack_sdk/models/test_blocks.py::RichTextBlockTests::test_elements_are_parsed" ]
[ "tests/slack_sdk/models/test_blocks.py::BlockTests::test_eq", "tests/slack_sdk/models/test_blocks.py::BlockTests::test_parse", "tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_1", "tests/slack_sdk/models/test_blocks.py::SectionBlockTests::test_document_2", "tests/slack_sdk/models/tes...
{ "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": [...
8327ffa0e2a262ed2f33b458c4d252cf3047e062
2024-04-01 16:16:09
docker.io/swerebenchv2/pennylaneai-pennylane:5455-8327ffa
pennylaneai__pennylane-5455
Method: Hamiltonian.__matmul__(self, other) Location: pennylane/ops/qubit/hamiltonian.py (class Hamiltonian) Inputs: - **self**: a Hamiltonian object (legacy observable) whose terms are to be multiplied. - **other**: another Observable/Operator (e.g., qml.X(0), qml.Y(1)) that will be combined with *self* via the ``@`` ...
python
Apache-2.0
diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md index 621b094b7..5356fa8a7 100644 --- a/doc/releases/changelog-dev.md +++ b/doc/releases/changelog-dev.md @@ -291,6 +291,9 @@ <h3>Bug fixes 🐛</h3> +* Using `@` with legacy Hamiltonian instances now properly de-queues the previously existin...
dequeue ops in `Hamiltonian.__matmul__` **Context:** A user was encountering issues where operations were remaining in the circuit after being used to construct a hamiltonian. **Description of the Change:** De-queue the arguments to `Hamiltonian.__matmul__` **Benefits:** No more things in the circuit tha...
[BUG] Hamiltonians defined using operator arithmetic queuing extra gates ### Expected behavior When defining ``` dev = qml.device('default.qubit', wires = [0,1]) def H(alpha, beta): coeffs = [alpha, beta] ops = [qml.PauliX(0) @ qml.PauliX(1),qml.PauliZ(0) @ qml.PauliZ(1)] return qml.dot(coeffs,ops) ...
PennyLaneAI/pennylane
diff --git a/tests/ops/qubit/test_hamiltonian.py b/tests/ops/qubit/test_hamiltonian.py index 0a3ab5104..c88b1978a 100644 --- a/tests/ops/qubit/test_hamiltonian.py +++ b/tests/ops/qubit/test_hamiltonian.py @@ -678,6 +678,17 @@ def circuit2(param): dev = qml.device("default.qubit", wires=2) +@pytest.mark.usefixtures...
[ "tests/ops/qubit/test_hamiltonian.py::test_matmul_queuing[disable_new_opmath_cm]" ]
[ "tests/ops/qubit/test_hamiltonian.py::test_matmul_queuing[enable_new_opmath_cm]", "tests/ops/qubit/test_hamiltonian.py::test_deprecation_with_new_opmath[disable_new_opmath_cm]", "tests/ops/qubit/test_hamiltonian.py::test_deprecation_with_new_opmath[enable_new_opmath_cm]", "tests/ops/qubit/test_hamiltonian.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": [...
2f538fa0aba5bf3520e55c6a9d1dcc9183d9104d
2024-05-06 08:03:43
docker.io/swerebenchv2/not-fl3-nanoserde:102-2f538fa
not-fl3__nanoserde-102
No new interfaces are introduced.
rust
Apache-2.0
diff --git a/derive/src/parse.rs b/derive/src/parse.rs index f027a75..2ac4ee1 100644 --- a/derive/src/parse.rs +++ b/derive/src/parse.rs @@ -1232,6 +1232,12 @@ fn next_enum<T: Iterator<Item = TokenTree> + Clone>(mut source: &mut Peekable<T> break; } + if next_exact_punct(&mut body, "=").i...
Support Enum numbered variant parsing Allows ser/de of enums such as: ```rust pub enum Fud { A = 0, B = 1, C = 2, } ``` Should close #101
Unamed variants issue on complex enums For example: ```rust #[derive(DeRon, SerRon)] pub enum SlashMode { Bounce = 0x10, Slash = 0x12, Loading = 0x13, BitStream = 0x1d, Transmission = 0x1a, Flow = 0x19, Flux = 0x25, Phantom = 0x24, Spectrum = 0x26, Hazard = 0x32, ...
not-fl3/nanoserde
diff --git a/tests/json.rs b/tests/json.rs index 41ce1b1..21e3e45 100644 --- a/tests/json.rs +++ b/tests/json.rs @@ -631,6 +631,37 @@ fn de_enum() { #[test] fn de_ser_enum() { + #[derive(DeJson, SerJson, PartialEq, Debug)] + pub enum Fud { + A = 0, + B = 1, + C = 2, + } + + #[derive...
[ "array_leak_test", "binary", "collections", "enums", "binary_generics", "field_proxy", "field_ignore_self_bound", "pub_tuple_struct", "struct_proxy", "tuple_struct", "array", "control_characters", "de", "de_container_default", "de_field_default", "de_illegal_multiline_comment", "de_e...
[]
{ "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.95, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
3a95f5954e42fe400919c0fe61045b8e871a96e3
2023-12-13 14:52:37
docker.io/swerebenchv2/polarsignals-frostdb:626-3a95f59
polarsignals__frostdb-626
Method: NewGenericTable[T any](db *DB, name string, mem memory.Allocator, options ...TableOption) (*GenericTable[T], error) Location: table.go Inputs: - db: pointer to DB, the database where the table will be created. - name: string table name, must be unique within the DB. - mem: memory.Allocator used for Arrow b...
go
Apache-2.0
diff --git a/dynparquet/record_builder.go b/dynparquet/record_builder.go index 1fe437e..f60ba51 100644 --- a/dynparquet/record_builder.go +++ b/dynparquet/record_builder.go @@ -343,6 +343,9 @@ func newMapFieldBuilder(newField func(string) fieldBuilder) *mapFieldBuilder { var _ fieldBuilder = (*mapFieldBuilder)(nil) ...
Remove (*Table)Write and introduce (*GenericTable[T]).Write This commit removes `(*Table).Write` in favor of `(*GenericTable[T]).Write` `GenericTable` offers a lot of improvements from the previous API. One of the biggest advantage is there is no longer need to define schema before hand instead the schema is part of...
Panic while writing structs with dynamic map column Calling `(*Table).Write` with struct that has map field defined as a dynamic column triggers a panic Here is a test case to reproduce ```go func TestTable_write_struct_with_map_field(t *testing.T) { type SampleMap struct { Labels map[string]string } s...
polarsignals/frostdb
diff --git a/aggregate_test.go b/aggregate_test.go index fcb356c..f067510 100644 --- a/aggregate_test.go +++ b/aggregate_test.go @@ -256,48 +256,17 @@ func TestDurationAggregation(t *testing.T) { db, err := c.DB(context.Background(), "test") require.NoError(t, err) - schema := &schemapb.Schema{ - Name: "test", -...
[ "TestAggregateInconsistentSchema", "TestAggregateInconsistentSchema/value_sum", "TestAggregateInconsistentSchema/value_min", "TestAggregateInconsistentSchema/value_max", "TestAggregateInconsistentSchema/value_count", "TestAggregateInconsistentSchema/value_avg", "TestAggregationProjection", "TestDurati...
[ "TestDynamicColumnsSerialization", "TestDynamicColumnsDeserialization", "TestDynamicColumnsDeserialization_NoDynamicColumns", "TestNilChunk", "TestReader", "TestSerializedReader", "TestBuild", "TestBuild/NewBuild", "TestBuild/Schema", "TestBuild/NewRecord", "TestBuild/Repeated", "TestValuesFor...
{ "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
61669ba94c9ee2664d6eb1b01599ad462c6e1ed4
2025-05-24 16:38:23
docker.io/swerebenchv2/spatie-opening-hours:276-61669ba
spatie__opening-hours-276
Method: OpeningHours::createAndMergeOverlappingRanges(data: array, timezone: string|DateTimeZone) → OpeningHours Location: src/OpeningHours.php (static factory method) Inputs: - **data** – associative array where keys are day names (e.g., “monday”) and values are arrays of time‑range strings (“10:00-23:59”). Must be a ...
php
MIT
diff --git a/src/OpeningHours.php b/src/OpeningHours.php index 45aab1e..6c9ac0a 100644 --- a/src/OpeningHours.php +++ b/src/OpeningHours.php @@ -624,7 +624,7 @@ class OpeningHours } $midnight = $dateTime->setTime(0, 0, 0); - $dateTime = $this->copyAndModify($midnight, '-1 minute')...
Fix previousClose with custom timezone Fix #273
No close date/time found in the previous 8 days, use $openingHours->setDayLimit() to increase the limit. It returns the error: No close date/time found in the previous 8 days, use $openingHours->setDayLimit() to increase the limit. Meanwhile, the schedule or data seems to be valid. Schedule Data: ```php $schedule = [...
spatie/opening-hours
diff --git a/tests/OpeningHoursStructuredDataTest.php b/tests/OpeningHoursStructuredDataTest.php index 16d6cb4..df41496 100644 --- a/tests/OpeningHoursStructuredDataTest.php +++ b/tests/OpeningHoursStructuredDataTest.php @@ -2,6 +2,7 @@ namespace Spatie\OpeningHours\Test; +use DateTime; use DateTimeZone; use PHP...
[ "Opening Hours Structured Data > It can find previous close time with custom timezone" ]
[ "Arr > It can flat and map array", "Opening Hours > It can return the opening hours for a regular week", "Opening Hours > It can return consecutive opening hours for a regular week", "Opening Hours > It can return combined opening hours for a regular week", "Opening Hours > It can validate the opening hours...
{ "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": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
dc6db7594f3c0ee24e69fb63b3ad05a7ac3c035d
2018-04-19 04:27:01
docker.io/swerebenchv2/azure-walinuxagent:1120-dc6db75
azure__walinuxagent-1120
Method: WireClient.fetch(self, uri, headers, use_proxy=False) Location: azurelinuxagent/common/protocol/wire.py, class WireClient Inputs: - **uri** *(str)* – The endpoint from which to retrieve the artifact or profile data. - **headers** *(dict)* – HTTP request headers to include (e.g., Authorization, Content‑Type). - ...
python
Apache-2.0
diff --git a/azurelinuxagent/common/protocol/wire.py b/azurelinuxagent/common/protocol/wire.py index 67a55203..5df35a98 100644 --- a/azurelinuxagent/common/protocol/wire.py +++ b/azurelinuxagent/common/protocol/wire.py @@ -1129,8 +1129,7 @@ class WireClient(object): host = self.get_host_plugi...
do not call decode_config twice Closes #1119
Exception retrieving artifacts profile: TypeError: decoding str is not supported I am tracking a annoying issue in the BVTs with the following signature. ```text Exception retrieving artifacts profile: TypeError: decoding str is not supported ``` I increased debugging, and found this call stack. ```text 201...
Azure/WALinuxAgent
diff --git a/tests/protocol/test_wire.py b/tests/protocol/test_wire.py index 34b82862..ffe72edf 100644 --- a/tests/protocol/test_wire.py +++ b/tests/protocol/test_wire.py @@ -342,7 +342,7 @@ class TestWireProtocol(AgentTestCase): wire_protocol_client.ext_conf.artifacts_profile_blob = testurl goal_stat...
[ "tests/protocol/test_wire.py::TestWireProtocol::test_get_in_vm_artifacts_profile_host_ga_plugin" ]
[ "tests/protocol/test_wire.py::TestWireProtocol::test_call_storage_kwargs", "tests/protocol/test_wire.py::TestWireProtocol::test_download_ext_handler_pkg_fallback", "tests/protocol/test_wire.py::TestWireProtocol::test_fetch_manifest_fallback", "tests/protocol/test_wire.py::TestWireProtocol::test_get_host_ga_pl...
{ "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": [], "intent_completeness": "complete", "pr_categories": [...
4046b6e4e18ccfdcfb6dd02af3d3c1c510a506ee
2018-10-11 12:55:14
docker.io/swerebenchv2/gravitee-io-graviteeio-access-management:364-4046b6e
gravitee-io__graviteeio-access-management-364
No new interfaces are introduced.
java
Apache-2.0
diff --git a/gravitee-am-gateway/gravitee-am-gateway-handler/src/main/java/io/gravitee/am/gateway/handler/vertx/handler/oauth2/endpoint/authorization/AuthorizationRequestParseHandler.java b/gravitee-am-gateway/gravitee-am-gateway-handler/src/main/java/io/gravitee/am/gateway/handler/vertx/handler/oauth2/endpoint/authori...
fix(oauth2): handle duplicate parameters fixes #363
[oauth2] authorization server must throw invalid request exception if request includes a parameter more than once ``` invalid_request The request is missing a required parameter, includes an invalid parameter value, includes a parameter more than once, or is otherwise ma...
gravitee-io/graviteeio-access-management
diff --git a/gravitee-am-gateway/gravitee-am-gateway-handler/src/test/java/io/gravitee/am/gateway/handler/vertx/endpoint/AuthorizationEndpointHandlerTest.java b/gravitee-am-gateway/gravitee-am-gateway-handler/src/test/java/io/gravitee/am/gateway/handler/vertx/endpoint/AuthorizationEndpointHandlerTest.java index ad2ffbb...
[ "io.gravitee.am.gateway.handler.vertx.endpoint.TokenEndpointHandlerTest", "io.gravitee.am.gateway.handler.vertx.endpoint.AuthorizationEndpointHandlerTest" ]
[ "io.gravitee.am.service.IdentityProviderServiceTest", "io.gravitee.am.service.CertificateServiceTest", "io.gravitee.am.service.ClientServiceTest", "io.gravitee.am.service.RoleServiceTest", "io.gravitee.am.service.TokenServiceTest", "io.gravitee.am.service.DomainServiceTest", "io.gravitee.am.service.Scop...
{ "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.96, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...
c180381e94fcc7061c643926e9af365d9205e55c
2024-12-19 22:31:05
docker.io/swerebenchv2/go-co-op-gocron:809-c180381
go-co-op__gocron-809
Method: NewAtTimes(atTime AtTime, atTimes ...AtTime) AtTimes Location: job.go Inputs: - atTime: the first AtTime value to include in the returned collection. - atTimes: variadic additional AtTime values. All arguments are treated as immutable; the function does not modify the supplied slice. Outputs: - AtTimes: a c...
go
MIT
diff --git a/job.go b/job.go index 890cc12..2ea8e91 100644 --- a/job.go +++ b/job.go @@ -311,8 +311,7 @@ type Weekdays func() []time.Weekday // NewWeekdays provide the days of the week the job should run. func NewWeekdays(weekday time.Weekday, weekdays ...time.Weekday) Weekdays { return func() []time.Weekday { - w...
creating a new slice in several job options because appending modifies original ### What does this do? The original slices passed into the functions were being modified, leading to undesirable results! ### Which issue(s) does this PR fix/relate to? <!--- Put `Resolves #XXX` here to auto-close the issue that your P...
[BUG] - NewAtTimes Function Modifies Original Slice ### Describe the bug In my attempts to parse a gocron.AtTimes back to a time.Time I discovered a strange behavior. My current attempts consists of this part of the function, that takes the gocron.AtTimes and converts it back formated time Strings: ```go func rev...
go-co-op/gocron
diff --git a/job_test.go b/job_test.go index d60c2a4..b729486 100644 --- a/job_test.go +++ b/job_test.go @@ -724,3 +724,59 @@ func TestTimeFromAtTime(t *testing.T) { }) } } + +func TestNewAtTimes(t *testing.T) { + at := NewAtTimes( + NewAtTime(1, 1, 1), + NewAtTime(2, 2, 2), + ) + + var times []string + for _, ...
[ "TestNewAtTimes", "TestNewWeekdays", "TestNewDaysOfTheMonth" ]
[ "TestDurationJob_next", "TestDurationJob_next/1ms", "TestDurationJob_next/1s", "TestDurationJob_next/1m40s", "TestDurationJob_next/16m40s", "TestDurationJob_next/5s", "TestDurationJob_next/50s", "TestDurationJob_next/1m0s", "TestDurationJob_next/5m0s", "TestDurationJob_next/1h40m0s", "TestDurati...
{ "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.98, "detected_issues": { "B1": false, "B2": false, "B3": false, "B4": false, "B5": false, "B6": false }, "difficulty": "easy", "external_urls": [], "intent_completeness": "complete", "pr_categories": [...