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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
853a04e30a67fda4b8771a7e52538289c9dd738b | 2024-12-02 18:20:34 | docker.io/swerebenchv2/fhir-sushi:1540-853a04e | fhir__sushi-1540 | Function: ValueSetConceptComponentRule(isInclude: boolean)
Location: src/export/ValueSetConceptComponentRule.ts (constructor)
Inputs:
- **isInclude** – a boolean indicating whether the component represents an inclusion (`true`) or exclusion (`false`) rule for a ValueSet compose component.
Outputs: An instance of `Valu... | ts | Apache-2.0 | diff --git a/src/export/ValueSetExporter.ts b/src/export/ValueSetExporter.ts
index 88769a6..9a6019e 100644
--- a/src/export/ValueSetExporter.ts
+++ b/src/export/ValueSetExporter.ts
@@ -457,7 +457,15 @@ export class ValueSetExporter {
});
}
}
-
+ if (conceptIndex == null) {
+ logge... | Improve error message for ValueSet compose component without any concept
**Description:** This PR adds an improved error message for when there is a code caret rule on ValueSet where the compose component does not have a concept.
**Testing Instructions:** Run unit tests.
**Related Issue:** This fixes #1518 .
| Improve error message for code caret rule on ValueSet compose component without any concept
When writing rules for a ValueSet, it is invalid to make a code caret rule on a concept that is not specifically present within the ValueSet.. However, when there are _no_ specific concepts present, a slightly strange error mess... | FHIR/sushi | diff --git a/test/export/ValueSetExporter.test.ts b/test/export/ValueSetExporter.test.ts
index 6e06905..ffb34b7 100644
--- a/test/export/ValueSetExporter.test.ts
+++ b/test/export/ValueSetExporter.test.ts
@@ -754,6 +754,34 @@ describe('ValueSetExporter', () => {
});
});
+ it('should throw error for caret rul... | [
"should throw error for caret rule on valueset compose component without any concept"
] | [
"should output empty results with empty input",
"should export a single value set",
"should add source info for the exported value set to the package",
"should export multiple value sets",
"should export a value set with additional metadata",
"should export a value set with status and version in FSHOnly m... | {
"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": [... |
f37a2c0181a2790e66cad5962e9f34639fef1aac | 2022-10-17 19:10:08 | docker.io/swerebenchv2/agnostiqhq-covalent:1356-f37a2c0 | agnostiqhq__covalent-1356 | Function: start(ctx, port: int, develop: bool, no_cluster: str, mem_per_worker: str, threads_per_worker: int, workers: int)
Location: covalent_dispatcher/_cli/service.py
Inputs:
- ctx: click.Context – the Click invocation context.
- port: int – network port for the UI server.
- develop: bool – flag to run in developmen... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 494554be..52b206b4 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,9 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [UNRELEASED]
+### Fixed
+
+- `covalent restart` honors the `sdk.no_cluster` setting
+
### Docs
- Up... | Preserve value of `sdk.no_cluster` when restarting Covalent
<!--
⚠️ Your pull request title should be short detailed and understandable for all.
⚠️ Increment the version number in the /VERSION file. If this is a bugfix, increment the patch version (the rightmost number), for example 0.18.2 becomes 0.18.3. If it's a n... | covalebt start + covalent restart starts covalent with no cluster | AgnostiqHQ/covalent | diff --git a/tests/covalent_dispatcher_tests/_cli/service_test.py b/tests/covalent_dispatcher_tests/_cli/service_test.py
index 18ca8141..2ef8461b 100644
--- a/tests/covalent_dispatcher_tests/_cli/service_test.py
+++ b/tests/covalent_dispatcher_tests/_cli/service_test.py
@@ -283,9 +283,21 @@ def test_stop(mocker, monkey... | [
"tests/covalent_dispatcher_tests/_cli/service_test.py::test_restart_preserves_nocluster[port-42-100-ui-true]",
"tests/covalent_dispatcher_tests/_cli/service_test.py::test_restart_preserves_nocluster[port-42-100-ui-false]"
] | [
"tests/covalent_dispatcher_tests/_cli/service_test.py::test_read_pid_nonexistent_file",
"tests/covalent_dispatcher_tests/_cli/service_test.py::test_read_valid_pid_file",
"tests/covalent_dispatcher_tests/_cli/service_test.py::test_rm_pid_file[False-False]",
"tests/covalent_dispatcher_tests/_cli/service_test.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": [... |
51dffc9589da59cce6024fd465bb7babb5efcdae | 2023-06-17 07:49:38 | docker.io/swerebenchv2/postlund-pyatv:2061-51dffc9 | postlund__pyatv-2061 | No new interfaces are introduced. | python | MIT | diff --git a/pyatv/const.py b/pyatv/const.py
index 20912f8f..2dd796e9 100644
--- a/pyatv/const.py
+++ b/pyatv/const.py
@@ -186,6 +186,9 @@ class DeviceModel(Enum):
AppleTV4KGen3 = 11
"""Device model is seventh generation Apple TV (Apple TV 4K gen 3)."""
+ HomePodGen2 = 12
+ """Device model is HomePod ... | device: Add second generation HomePod
Fixes #2060
<a href="https://gitpod.io/#https://github.com/postlund/pyatv/pull/2061"><img src="https://gitpod.io/button/open-in-gitpod.svg"/></a>
| HomePod 2 reported as "Model/SW: AudioAccessory6,1, Unknown OS 16.5"
### Describe the bug
I have a HomePod 2 and it is being reported as:
Model/SW: AudioAccessory6,1, Unknown OS 16.5
Mostly for me it is not being picked up by a script which looks for a match on pyatv.const.OperatingSystem.TvOS
### Error log
_No... | postlund/pyatv | diff --git a/tests/test_convert.py b/tests/test_convert.py
index 9247fc47..9e22c404 100644
--- a/tests/test_convert.py
+++ b/tests/test_convert.py
@@ -95,9 +95,10 @@ def test_protocol_str(protocol, output):
(DeviceModel.HomePodMini, "HomePod Mini"),
(DeviceModel.AirPortExpress, "AirPort Express (gen 1... | [
"tests/test_convert.py::test_media_type_to_string[MediaType.Unknown-Unknown]",
"tests/test_convert.py::test_media_type_to_string[MediaType.Video-Video]",
"tests/test_convert.py::test_media_type_to_string[MediaType.Music-Music]",
"tests/test_convert.py::test_media_type_to_string[MediaType.TV-TV]",
"tests/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": [... |
b9b53f8bbdfbf8cbab56d5602f92543e2ccd473c | 2022-08-14 14:20:00 | docker.io/swerebenchv2/jetbrains-exposed:1562-b9b53f8 | jetbrains__exposed-1562 | No new interfaces are introduced. | kotlin | null | diff --git a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Constraints.kt b/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Constraints.kt
index 950401f84e..0a1f4a241f 100644
--- a/exposed-core/src/main/kotlin/org/jetbrains/exposed/sql/Constraints.kt
+++ b/exposed-core/src/main/kotlin/org/jetbrains/expo... | Fixes #1550 | With quoted table names SchemaUtils create stops working.
Hi.
I want to have capitalize table names in my postgresql database. Postgresql change names to lowercase unless they are quoted but with quoted table names in kotlin exposed 2 problems happen.
1. **Constraint name generation goes wrong**
When quoting my ta... | JetBrains/Exposed | diff --git a/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/ddl/CreateTableTests.kt b/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/ddl/CreateTableTests.kt
index 620f4d7d7d..c97dbe319a 100644
--- a/exposed-tests/src/test/kotlin/org/jetbrains/exposed/sql/tests/shared/ddl/Crea... | [
"org.jetbrains.exposed.sql.tests.shared.ddl.CreateTableTests > createTableWithQuotes"
] | [
"org.jetbrains.exposed.DefaultsTest > testDefaultsWithExplicit01",
"org.jetbrains.exposed.DefaultsTest > testDefaultsWithExplicit02",
"org.jetbrains.exposed.DefaultsTest > testRawBatchInsertFails01",
"org.jetbrains.exposed.DefaultsTest > testBatchInsertNotFails01",
"org.jetbrains.exposed.DefaultsTest > test... | {
"base_image_name": "kotlin-jdk-11",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
18cd84c06f0d58f80857cf2901c146879da979df | 2017-12-12 01:01:54 | docker.io/swerebenchv2/hapijs-code:121-18cd84c | hapijs__code-121 | Method: ExpectationChain.reject(type?: Function, message?: string|RegExp)
Location: lib/index.js (internals.reject = async function (/* type, message */) { … })
Inputs:
- **type** (optional): a constructor function (typically an Error subclass). If provided, the rejected error must be an instance of this type. Passin... | js | custom-check-github | diff --git a/lib/index.js b/lib/index.js
index 5c94f48..bcb4ff3 100755
--- a/lib/index.js
+++ b/lib/index.js
@@ -420,6 +420,10 @@ internals.reject = async function (/* type, message */) {
internals.assert(this, !this._flags.not || !arguments.length, 'Cannot specify arguments when expecting not to reject');
... | Invalidates rejection with wrong type or message arguments
Fixes #119 | reject does not fail if argument is of the wrong type
I expected the following test to fail:
```javascript
it('should fail', async () => {
const promise = Promise.reject(new Error('some error message'));
await expect(promise).to.reject(Error, {});
await expect(promise).to.reject(Error, [])... | hapijs/code | diff --git a/test/index.js b/test/index.js
index 9405c05..0b129da 100755
--- a/test/index.js
+++ b/test/index.js
@@ -2436,6 +2436,67 @@ describe('expect()', () => {
Hoek.assert(/Expected \[Promise\] to reject with provided type/.test(exception.message), exception);
});
+ it('i... | [
"162) invalidates rejection (invalid type)",
"163) invalidates rejection (invalid message type)"
] | [
"1) returns assertion count",
"2) validates assertion",
"3) uses grammar",
"4) asserts on invalid condition",
"5) asserts on invalid condition (not)",
"6) asserts on invalid condition (once)",
"7) asserts on invalid condition (with actual)",
"8) asserts on invalid condition (prefix)",
"9) asserts on... | {
"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": [... |
a5ac4edfb8747c6ebc9a0768d6a489725236ca17 | 2020-04-30 15:39:41 | docker.io/swerebenchv2/fhir-sushi:400-a5ac4ed | fhir__sushi-400 | No new interfaces are introduced. | ts | Apache-2.0 | diff --git a/src/fhirtypes/ElementDefinition.ts b/src/fhirtypes/ElementDefinition.ts
index 8ca323f..33fae85 100644
--- a/src/fhirtypes/ElementDefinition.ts
+++ b/src/fhirtypes/ElementDefinition.ts
@@ -457,7 +457,7 @@ export class ElementDefinition {
}
// Check to ensure max <= existing max
- if (this.max... | Throw error when widening cardinality to x..*
Fixes #394.
So it looks like we were actually allowing the cardinality to be widened in the case that the cardinality was being widened to `*`. I don't know how this stayed hidden for this long, but it seems like it really did stay hidden for this long. We did have tests... | Sushi is generating arrays for Reference.identifier
Sushi lets me do this to MeasureReport:
* subject.identifier 1..*
* subject.identifier ^short = "The subject shall have at least one identifier which uniquely identifies the subject to the recepient."
* subject.identifier ^comment = "Requiring subject.identifier ... | FHIR/sushi | diff --git a/test/fhirtypes/ElementDefinition.constrainCardinality.test.ts b/test/fhirtypes/ElementDefinition.constrainCardinality.test.ts
index 306f331..4fac116 100644
--- a/test/fhirtypes/ElementDefinition.constrainCardinality.test.ts
+++ b/test/fhirtypes/ElementDefinition.constrainCardinality.test.ts
@@ -148,6 +148,... | [
"should throw WideningCardinalityError when max is * and original max is not *"
] | [
"should allow cardinality to be constrained to same cardinality",
"should allow cardinality to be constrained to higher min",
"should allow cardinality to be constrained to lower max",
"should allow cardinality to be constrained to higher min and lower max at same time",
"should use elements current cardina... | {
"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": [... |
b343ea87a02c74f9b74c16efe6a02bd3d883eccb | 2021-09-06 09:28:21 | docker.io/swerebenchv2/enthought-traits:1501-b343ea8 | enthought__traits-1501 | Method: ListenerHandler.__init__(self, handler)
Location: traits.traits_listener.ListenerHandler
Inputs:
- **handler** (callable): The object to be invoked when the associated trait changes. If it is a bound method, a weak reference to the method’s *self* is stored to avoid keeping the owning object alive.
Outputs: No... | python | custom-check-github | diff --git a/traits/adaptation/api.py b/traits/adaptation/api.py
index e44f9add..897f9cc5 100644
--- a/traits/adaptation/api.py
+++ b/traits/adaptation/api.py
@@ -8,11 +8,11 @@
#
# Thanks for using Enthought open source!
-from .adapter import Adapter, PurePythonAdapter # noqa: F401
+from .adapter import Adapter, P... | Deprecate find_resource and store_resource
This PR deprecates `traits.util.resource.find_resource` and `traits.util.resource.store_resource`. New code should use `importlib.resources` or its fallback `importlib_resources` instead.
The only existing uses of `find_resource` I could find either in ETS projects or inter... | Deprecate find_resource and store_resource functions
The `find_resource` and `store_resource` functions in `traits.util.resource` are untested, largely unused, and have little relation to Traits; we should deprecated them for the 6.3.0 release and remove in the 7.0 release. | enthought/traits | diff --git a/traits/testing/api.py b/traits/testing/api.py
index 18f58d0d..d615c2b6 100644
--- a/traits/testing/api.py
+++ b/traits/testing/api.py
@@ -8,6 +8,6 @@
#
# Thanks for using Enthought open source!
-from .doctest_tools import doctest_for_module # noqa: F401
-from .nose_tools import deprecated, performance... | [
"traits/util/tests/test_resource.py::TestResource::test_store_resource_deprecated"
] | [
"traits/tests/test_traits_listener.py::TestListenerParser::test_listener_handler_for_function",
"traits/tests/test_traits_listener.py::TestListenerParser::test_listener_handler_for_method",
"traits/tests/test_traits_listener.py::TestListenerParser::test_listener_parser_single_string",
"traits/tests/test_trait... | {
"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": [... |
d4fb93e53e3d9248a228bfe2f36c4f9fb0b0746c | 2024-01-26 19:12:41 | docker.io/swerebenchv2/matejkob-swift-spyable:83-d4fb93e | matejkob__swift-spyable-83 | Method: DeclSyntaxProtocol.preprocessorFlag(self)
Location: Sources/SpyableMacro/Macro/SpyableMacro.swift (extension on DeclSyntaxProtocol)
Inputs: None – operates on the syntax node (`self`) which may be a `ProtocolDeclSyntax`.
Outputs: `String?` – the name of the preprocessor flag supplied via `@Spyable(behindP... | swift | MIT | diff --git a/Sources/SpyableMacro/Macro/SpyableMacro.swift b/Sources/SpyableMacro/Macro/SpyableMacro.swift
index e94fdc0..622de9b 100644
--- a/Sources/SpyableMacro/Macro/SpyableMacro.swift
+++ b/Sources/SpyableMacro/Macro/SpyableMacro.swift
@@ -61,7 +61,11 @@ public enum SpyableMacro: PeerMacro {
extension DeclSyntaxP... | Resolve #79
Hello 👋
Fix to search for `Spyable` in `AttributeListSyntax` when checking `behindPreprocessorFlag` and add test case. | Preprocessor flag can't be retriever when protocol has more then one attribute
**Bug Description:**
When multiple attributes are attached to a protocol, such as `Spyable` and `MainActor`, there is an issue in retrieving `behindPreprocessorFlag` value.
Consider the following declaration:
```swift
@Spyable(behin... | Matejkob/swift-spyable | diff --git a/Tests/SpyableMacroTests/Macro/UT_SpyableMacro.swift b/Tests/SpyableMacroTests/Macro/UT_SpyableMacro.swift
index b84fe3c..28187d1 100644
--- a/Tests/SpyableMacroTests/Macro/UT_SpyableMacro.swift
+++ b/Tests/SpyableMacroTests/Macro/UT_SpyableMacro.swift
@@ -207,4 +207,33 @@ final class UT_SpyableMacro: XCTes... | [
"UT_SpyableMacro.testMacroWithFlagMultipleAttributes"
] | [
"UT_CalledFactory.testVariableDeclaration",
"UT_CallsCountFactory.testIncrementVariableExpression",
"UT_CallsCountFactory.testVariableDeclaration",
"UT_ClosureFactory.testCallExpression",
"UT_ClosureFactory.testCallExpressionArguments",
"UT_ClosureFactory.testCallExpressionAsync",
"UT_ClosureFactory.tes... | {
"base_image_name": "swift_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
9939bca95c66021e05528bb3b0eada0bc595d4c5 | 2018-05-14 09:33:05 | docker.io/swerebenchv2/babel-minify:841-9939bca | babel__minify-841 | No new interfaces are introduced. | js | MIT | diff --git a/packages/babel-plugin-minify-infinity/src/index.js b/packages/babel-plugin-minify-infinity/src/index.js
index 2c04d31..4359310 100644
--- a/packages/babel-plugin-minify-infinity/src/index.js
+++ b/packages/babel-plugin-minify-infinity/src/index.js
@@ -28,7 +28,14 @@ module.exports = function({ types: t }) ... | fix: minify infinity in expressions
Fix #839 | minify-infinity not doing anything
**Describe the bug**
The minify-infinity pass doesn't do anything.
**To Reproduce**
```js
const infinities = [Infinity, 1/0, true/false, !0/!1, true/(true/(true/false))];
const zeroes = [1/Infinity, 1/(1/0), false/true, !1/!0, true/(true/false)];
const justone = Infinity;
... | babel/minify | diff --git a/packages/babel-plugin-minify-infinity/__tests__/fixtures/bindings/actual.js b/packages/babel-plugin-minify-infinity/__tests__/fixtures/bindings/actual.js
new file mode 100644
index 0000000..f9dbe91
--- /dev/null
+++ b/packages/babel-plugin-minify-infinity/__tests__/fixtures/bindings/actual.js
@@ -0,0 +1,12... | [
"bindings"
] | [
"should be a function",
"should return defaults with no options",
"should handle simple options",
"should pass options to respective plugin when its an object",
"should handle options that are delegated to multiple other options",
"should match simple patterns",
"should match simple patterns 2",
"shou... | {
"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": [... |
f29530a1db630c806368762beff2994b5045a9a8 | 2018-12-21 07:04:41 | docker.io/swerebenchv2/vlucas-frisby:511-f29530a | vlucas__frisby-511 | Method: FrisbySpec.fromJSON(jsonBody)
Location: src/frisby/spec.js (available on the Frisby instance via `frisby.fromJSON`)
Inputs: `jsonBody` – any JavaScript value that will be used as the JSON payload for the request; may be `undefined`.
Outputs: Returns the same Frisby instance to allow chaining. No direct re... | js | null | diff --git a/src/frisby/spec.js b/src/frisby/spec.js
index acd683b..d674e03 100644
--- a/src/frisby/spec.js
+++ b/src/frisby/spec.js
@@ -71,7 +71,7 @@ class FrisbySpec {
status: 200,
statusText: 'OK',
headers: headers,
- size: jsonString.length,
+ size: _.isUndefined(jsonString) ? 0 : jso... | Fix #510 'False positives with body validation' issue.
Fix #510 issue.(ref. #432 and #433)
- Check if json is undefined or not in json expects. | False positives with body validation
I'm currently working on migrating an existing API to a new tech stack. As a part of that process I created a Frisby-based characterization test suite, and intend to test-drive the migration. However, tests are passing under two circumstances that seem incorrect to me:
- If the `... | vlucas/frisby | diff --git a/__tests__/expects_jsonTypes_spec.js b/__tests__/expects_jsonTypes_spec.js
index dc9b67b..009e628 100644
--- a/__tests__/expects_jsonTypes_spec.js
+++ b/__tests__/expects_jsonTypes_spec.js
@@ -216,6 +216,17 @@ describe('expect(\'jsonTypes\')', function() {
})
.done(doneFn);
});
+
+ it('sho... | [
"should error in undefined JSON"
] | [
"expectHeader should not match",
"expectStatus should not match",
"should allow nested tosses",
"expectStatus should match",
"expectHeader should match exactly",
"expectHeader should match regardless of case",
"expectHeader should match with regex",
"expectHeader should not match with bad regex",
"e... | {
"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": [... |
57bf519af2bd60fe181fd632bd268e73daab807f | 2024-12-05 11:34:50 | docker.io/swerebenchv2/twigphp-twig:4496-57bf519 | twigphp__twig-4496 | No new interfaces are introduced. | php | BSD-3-Clause | diff --git a/src/Extension/CoreExtension.php b/src/Extension/CoreExtension.php
index a693d947..567c7e67 100644
--- a/src/Extension/CoreExtension.php
+++ b/src/Extension/CoreExtension.php
@@ -1644,7 +1644,7 @@ final class CoreExtension extends AbstractExtension
// array
if (Template::METHOD_CALL !== ... | Fix ArrayAccess with objects as keys
fixes #4476
The bug was introduced in 3.15 via https://github.com/twigphp/Twig/pull/4425#discussion_r1869120001 | In version 3.15.0, when accessing SplObjectStorage by index (object), an error is generated
```
{% for q in sections[s] %}
```
where section is SplObjectStorage
and s is a object
Raise error An exception has been thrown during the rendering of a template ("Object of class App\Attempt\Section could not be convert... | twigphp/Twig | diff --git a/tests/Fixtures/expressions/array.test b/tests/Fixtures/expressions/array.test
index 1de76e93..7d1c3b0a 100644
--- a/tests/Fixtures/expressions/array.test
+++ b/tests/Fixtures/expressions/array.test
@@ -42,12 +42,19 @@ Twig supports array notation
{# ArrayAccess #}
{{ array_access['a'] }}
+{# ObjectStor... | [
"Chain > Load in a [1.35 ms]",
"Chain > Write [0.51 ms]",
"Chain > Get timestamp in b [0.09 ms]",
"Chain > Get timestamp in both [0.14 ms]",
"Filesystem > Generate key with data set #5 [0.05 ms]",
"Read Only Filesystem > Load [0.11 ms]",
"Read Only Filesystem > Write [0.03 ms]",
"Read Only Filesystem ... | [
"Chain > Load in b [0.12 ms]",
"Chain > Load in both [0.14 ms]",
"Chain > Load missing [0.04 ms]",
"Chain > Get timestamp in a [0.09 ms]",
"Chain > Get timestamp missing file [0.03 ms]",
"Chain > Generate key with data set #0 [0.03 ms]",
"Chain > Generate key with data set #1 [0.02 ms]",
"Filesystem >... | {
"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 --no-progress"
],
"log_parser": "parse_log_phpunit",
"test_cmd": "./vendor/bin/simple-phpunit --verbose --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": [... |
df892b87365f4a62cab33c98f49ed84660bd18e6 | 2020-04-19 00:14:29 | docker.io/swerebenchv2/wtforms-wtforms:568-df892b8 | wtforms__wtforms-568 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 894caad..a8f47a4 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -66,6 +66,7 @@ Unreleased
- Choices which name and data are the same do not need to use tuples. (:pr:`526`)
- :class:`~validators.URL` validator now allows query parameters in the URL. (:pr:`523`, :pr:`524... | Avoid to cache form errors
Caching form errors may cause some strange behaviors when a form `errors` attribute is accessed during validation, and performance benefits are not obvious.
This should fix #522 | Form errors property isn't idempotent
The 'errors' property in BaseForm isn't idempotent. In particular - if you iterate over a forms attributes using e.g. inspect.getmembers - this will cause 'errors' to change from 'None' to dict({}). And so it won't be updated if any fields add/incur errors later in processing.
A... | wtforms/wtforms | diff --git a/tests/test_form.py b/tests/test_form.py
index ce17bdd..e1d5884 100644
--- a/tests/test_form.py
+++ b/tests/test_form.py
@@ -5,7 +5,7 @@ import pytest
from wtforms.form import BaseForm, Form
from wtforms.meta import DefaultMeta
from wtforms.fields import StringField, IntegerField
-from wtforms.validators... | [
"tests/test_form.py::TestForm::test_errors_access_during_validation"
] | [
"tests/test_form.py::TestBaseForm::test_data_proxy",
"tests/test_form.py::TestBaseForm::test_errors_proxy",
"tests/test_form.py::TestBaseForm::test_contains",
"tests/test_form.py::TestBaseForm::test_field_removal",
"tests/test_form.py::TestBaseForm::test_field_adding",
"tests/test_form.py::TestBaseForm::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": [... |
0861f0a49bb887b379fbab088e4eeaf562c1f565 | 2017-01-10 20:04:04 | docker.io/swerebenchv2/jlongster-prettier:57-0861f0a | jlongster__prettier-57 | Function: indent(tabWidth: number, doc: Doc)
Location: src/printer.js (called inside genericPrintNoParens)
Inputs:
- **tabWidth** (number): the number of spaces to use for each indentation level (taken from options.tabWidth).
- **doc** (Doc): a Prettier document tree representing the content to be indented (in this ... | js | MIT | diff --git a/src/printer.js b/src/printer.js
index d86602082..c912c1a06 100644
--- a/src/printer.js
+++ b/src/printer.js
@@ -996,8 +996,10 @@ function genericPrintNoParens(path, options, print) {
"switch (",
path.call(print, "discriminant"),
") {",
- hardline,
- join(hardline, path.map(pr... | fixes #56: indent cases inside switch statements
Fixes #56. | cases in switch statements not indented
prettier is printing cases at the same indentation level as their parent switch statement. I indent cases inside a switch statement.
Now:
```js
switch (something) {
case "foo":
// ...
break;
case "bar":
// ...
break;
}
```
Ideally:
```js
switch (some... | jlongster/prettier | diff --git a/tests/binding/__snapshots__/jsfmt.spec.js.snap b/tests/binding/__snapshots__/jsfmt.spec.js.snap
index 10bc5b5e0..7bb830c06 100644
--- a/tests/binding/__snapshots__/jsfmt.spec.js.snap
+++ b/tests/binding/__snapshots__/jsfmt.spec.js.snap
@@ -575,16 +575,16 @@ function switch_scope(x: string) {
let a: numb... | [
"lex.js",
"break.js",
"more_switch.js",
"switch.js",
"switch_default_fallthrough.js",
"trailing_cases.js",
"proptype_missing.js",
"emit.js",
"hoisted2.js",
"let.js",
"tagged_union.js",
"tagged_union_import.js"
] | [
"locals.js",
"promise.js",
"a.js",
"class.js",
"default_params.js",
"method_shadow.js",
"adder.js",
"any_object.js",
"call-object-property.js",
"comparator.js",
"function.js",
"globals.js",
"lib.js",
"taint1.js",
"taint2.js",
"taint3.js",
"taint4.js",
"use-types.js",
"test.js",
... | {
"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": [... |
ce0a7e203e8d3b2a68ca674038dad86e1a221e00 | 2019-02-28 03:52:03 | docker.io/swerebenchv2/caolan-async:1628-ce0a7e2 | caolan__async-1628 | Function: whilst(test, iteratee, callback)
Location: lib/whilst.js
Inputs:
- **test**: a function `(callback)` that should invoke `callback(err, boolean)` to indicate whether the loop should continue.
- **iteratee**: a function `(callback)` executed each iteration when `test` returns true; it must call `callback(err, …... | js | MIT | diff --git a/intro.md b/intro.md
index 4402663..0638077 100644
--- a/intro.md
+++ b/intro.md
@@ -9,7 +9,7 @@
Async is a utility module which provides straight-forward, powerful functions
for working with asynchronous JavaScript. Although originally designed for
-use with [Node.js](https://nodejs.org/) and installab... | initialize results in whilst [fixes #1626]
Really minor change, but I figured it would be good to get a second set of eyes, at least on the test. Thanks! | Async Whilst errors if test() gets false before iteration starts
<!--
This template is for bug reports. If you are reporting a bug, please continue on. If you are here for another reason (such as a feature request, change, or question) you can disregard this template
-->
**What version of async are you using?**
... | caolan/async | diff --git a/test/whilst.js b/test/whilst.js
index 1c222c9..1ee6f11 100644
--- a/test/whilst.js
+++ b/test/whilst.js
@@ -64,6 +64,24 @@ describe('whilst', () => {
}, 10)
});
+ it('should not error when test is false on first iteration', (done) => {
+ var counter = 0;
+
+ async.whilst(
+... | [
"should not error when test is false on first iteration"
] | [
"apply",
"applyEach",
"applyEach canceled",
"applyEachSeries",
"applyEachSeries canceled",
"applyEach partial application",
"should asyncify async functions",
"should handle errors in async functions",
"should handle async functions in each",
"should handle async functions in eachLimit",
"should... | {
"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": [... |
6ad697813c1b6b69e3ff3c27151fadb3a88f4d5b | 2023-06-13 19:34:07 | docker.io/swerebenchv2/tipsy-javalin:1916-6ad6978 | tipsy__javalin-1916 | Method: WsContext.sessionId()
Location: io.javalin.websocket.WsContext
Inputs: (none) – called on an instance of WsContext representing a WebSocket connection.
Outputs: String – the unique session identifier for the WebSocket connection.
Description: Returns the session id associated with the WebSocket connection. Repl... | kotlin | Apache-2.0 | diff --git a/javalin/src/main/java/io/javalin/plugin/bundled/DevLoggerPlugin.kt b/javalin/src/main/java/io/javalin/plugin/bundled/DevLoggerPlugin.kt
index b758c8cef..a3ae8686b 100644
--- a/javalin/src/main/java/io/javalin/plugin/bundled/DevLoggerPlugin.kt
+++ b/javalin/src/main/java/io/javalin/plugin/bundled/DevLoggerP... | Should be like this?
Closes #1915 | Fix sessionId accessors in WsContext
It's `sessionId` in Kotlin and `getSessionId()` in Java, should be `sessionId()` in both. | tipsy/javalin | diff --git a/javalin/src/test/java/io/javalin/TestWebSocket.kt b/javalin/src/test/java/io/javalin/TestWebSocket.kt
index 9c3169963..85b74ca26 100644
--- a/javalin/src/test/java/io/javalin/TestWebSocket.kt
+++ b/javalin/src/test/java/io/javalin/TestWebSocket.kt
@@ -75,13 +75,13 @@ class TestWebSocket {
@Test
f... | [
"io.javalin.TestAccessManager",
"io.javalin.TestApiBuilder",
"io.javalin.TestAppAttributes",
"io.javalin.TestBodyReading",
"io.javalin.TestClose",
"io.javalin.TestCompression",
"io.javalin.TestConfiguration",
"io.javalin.TestConfigureServletContextHandler",
"io.javalin.TestContextPath",
"io.javali... | [] | {
"base_image_name": "kotlin-jdk-11",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
3bf74038405bd9f489395eb3c3ae2cbd4911a1c5 | 2024-12-03 11:55:56 | docker.io/swerebenchv2/pybamm-team-pybamm:4644-3bf7403 | pybamm-team__pybamm-4644 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7954585f0..508c5f305 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -11,6 +11,7 @@
## Bug fixes
- Remove internal use of deprecated `set_parameters` function in the `Simulation` class which caused warnings. ([#4638](https://github.com/pybamm-team/PyBaMM/pull/4638))
+-... | bug: make sure symbol always has required mesh attribute
# Description
Fixes #4637
## Type of change
Please add a line in the relevant section of [CHANGELOG.md](https://github.com/pybamm-team/PyBaMM/blob/develop/CHANGELOG.md) to document the change (include PR #) - note reverse order of PR #s. If necessary, also add... | [Bug]: post-processing variables require pybamm.Symbol to have a mesh
### PyBaMM Version
develop
### Python Version
3.10
### Describe the bug
Adding a variable to a pre-built pybamm model causes a failure in `pybamm.solvers.processed_variable.py::process_variable()` because it doesn't have a `mesh` attribute
### ... | pybamm-team/PyBaMM | diff --git a/tests/unit/test_solvers/test_processed_variable.py b/tests/unit/test_solvers/test_processed_variable.py
index b3ab85060..55fc87833 100644
--- a/tests/unit/test_solvers/test_processed_variable.py
+++ b/tests/unit/test_solvers/test_processed_variable.py
@@ -109,7 +109,6 @@ class TestProcessedVariable:
... | [
"tests/unit/test_solvers/test_processed_variable.py::TestProcessedVariable::test_processed_variable_0D_no_sensitivity[False]",
"tests/unit/test_solvers/test_processed_variable.py::TestProcessedVariable::test_process_spatial_variable_names",
"tests/unit/test_solvers/test_processed_variable_computed.py::TestProce... | [
"tests/unit/test_solvers/test_processed_variable_computed.py::TestProcessedVariableComputed::test_processed_variable_1D_unknown_domain",
"tests/unit/test_solvers/test_processed_variable.py::TestProcessedVariable::test_processed_variable_1D_unknown_domain[False]",
"tests/unit/test_solvers/test_processed_variable... | {
"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": [... |
a04e10a0bde598a524baa963aa9aa12ee7d388cb | 2020-02-07 16:10:39 | docker.io/swerebenchv2/nix-community-nixpkgs-fmt:169-a04e10a | nix-community__nixpkgs-fmt-169 | Method: SpacingRuleBuilder::newline(self)
Location: impl<'a> SpacingRuleBuilder<'a> in src/dsl.rs
Inputs: self – consumes the current `SpacingRuleBuilder` instance.
Outputs: &'a mut SpacingDsl – returns a mutable reference to the parent DSL, allowing further chaining of spacing rules that enforce a newline.
Des... | rust | Apache-2.0 | diff --git a/src/dsl.rs b/src/dsl.rs
index 1bed023..753872b 100644
--- a/src/dsl.rs
+++ b/src/dsl.rs
@@ -190,6 +190,10 @@ impl<'a> SpacingRuleBuilder<'a> {
pub(crate) fn no_space_or_newline(self) -> &'a mut SpacingDsl {
self.finish(SpaceValue::NoneOrNewline)
}
+ /// Enforce a newline
+ pub(crat... | Prefer wrapping before binary operators
Fixes #165. Comments welcome.
This is a bit tricky because it relies on the order of the rules to move
the newline around, and let the previous rules do the right job.
Also, `next_sibling_has_newline` is calling for composition like this,
but I could not make it happen in rust.... | sample: `++` folding
nixpkgs-fmt should respect `\n` and never fold lines back into one
## Input
```nix
foo ++
bar
```
## Output
```nix
foo ++ bar
```
## Desired output
```nix
foo
++ bar
```
| nix-community/nixpkgs-fmt | diff --git a/test_data/binop_wrap_before.bad.nix b/test_data/binop_wrap_before.bad.nix
new file mode 100644
index 0000000..f3d5e91
--- /dev/null
+++ b/test_data/binop_wrap_before.bad.nix
@@ -0,0 +1,8 @@
+{
+a = "foo" ++
+"bar" ++
+"lol"
+++
+"bla"
+;
+}
diff --git a/test_data/binop_wrap_before.good.nix b/test_data/bino... | [
"rules::tests::test_bad_good_tests"
] | [
"engine::fixes::tests::test_node_indent_ranges",
"rules::tests::smoke",
"tests::explain_smoke_test",
"tests::converts_tabs_to_spaces",
"rules::tests::test_syntax_errors_tests",
"tests::preserves_dos_line_endings",
"rules::tests::test_fuzz_failures",
"rules::tests::test_inline_indentation_tests",
"ru... | {
"base_image_name": "rust_1.84",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
b449b42a31901025ac684a1e2db5a19e9a63977c | 2023-02-13 19:48:53 | docker.io/swerebenchv2/syuilo-aiscript:236-b449b42 | syuilo__aiscript-236 | No new interfaces are introduced. | ts | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index e7acee9..cff0c72 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,7 @@
[Read translated version (en)](./translations/en/CHANGELOG.md)
+- 配列プロパティ`map`,`filter`,`reduce`,`find`に渡すコールバック関数が受け取るインデックスを0始まりに
+
# 0.12.4
- block comment `/* ... */`
- Math:Infinity
di... | 配列のmap系関数のコールバックが受け取るインデックスを0始まりに
<!-- ℹ お読みください
PRありがとうございます! PRを作成する前に、以下をご確認ください:
- 可能であればタイトルに、以下で示すようなPRの種類が分かるキーワードをプリフィクスしてください。
- fix / refactor / feat / enhance / perf / chore
- また、PRの粒度が適切であることを確認してください。ひとつのPRに複数の種類の変更や関心を含めることは避けてください。
- このPRによって解決されるIssueがある場合は、そのIssueへの参照を本文内に含めてください。
- CHANGELOG... | 配列のmapなどのコールバック関数が受け取るインデックスが1から始まっている
配列の`map`, `filter`, `reduce`, `find`に渡すコールバック関数の引数でインデックスが受け取れるが、`0`ではなく`1`から始まっている。
バージョン1.12.0で配列のインデックスが`0`始まりに変更されているため、それに合わせた方がいい?
既存コードへの影響を考慮して維持するか別の関数にする?
例
```
[0 1 2].map(@(v i) {
print(i) // 1 2 3
})
``` | syuilo/aiscript | diff --git a/test/index.ts b/test/index.ts
index 4337c96..21c9866 100644
--- a/test/index.ts
+++ b/test/index.ts
@@ -232,7 +232,7 @@ describe('Comment', () => {
`);
eq(res, NUM(42));
});
-
+
test.concurrent('multi line comment 2', async () => {
const res = await exe(`
/* variable declaration here...
@@... | [
"map with index",
"filter with index",
"reduce with index",
"find with index"
] | [
"Hello, world!",
"empty script",
"式にコロンがあってもオブジェクトと判定されない",
"inc",
"dec",
"var",
"参照が繋がらない",
"empty function",
"empty lambda",
"lambda that returns an object",
"Closure",
"Closure (counter)",
"Recursion",
"Throws error when divied by zero",
"getAll",
"==",
"!=",
"&&",
"||",
"+"... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm ci --prefer-offline --no-audit --quiet",
"npm run build --quiet"
],
"log_parser": "parse_log_js_4",
"test_cmd": "npm run jest -- --verbose --no-color"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
0efdd1cb598ff94f28241e2a2c244fff5dadf2d1 | 2024-12-09 10:45:26 | docker.io/swerebenchv2/aristanetworks-anta:956-0efdd1c | aristanetworks__anta-956 | Method: get_value(data: Mapping[str, Any], path: str, *, separator: str = ".") Location: anta.tools
Inputs:
- **data** – a mapping (e.g., dict) representing parsed JSON or EOS command output.
- **path** – a dotted (or custom‑separator) string that describes the nesting to retrieve (e.g., `"clusterStatus.enabled"` or... | python | Apache-2.0 | diff --git a/anta/decorators.py b/anta/decorators.py
index 08fbd653..04316232 100644
--- a/anta/decorators.py
+++ b/anta/decorators.py
@@ -63,13 +63,15 @@ def deprecated_test(new_tests: list[str] | None = None) -> Callable[[F], F]: #
return decorator
-def deprecated_test_class(new_tests: list[str] | None = No... | fix(anta.tests): Adjust revision for show management cvx
# Description
Test is throwing error when run on a a device not running CVX at all. Looking at the unit tests, it feels the revision for the command should be `3` and not `1` (cf issue comments)
Fixes #953
# Checklist:
- [x] My code follows the style ... | Fix: VerifyManagementCVX should not throw an error
```
[16:44:29] CRITICAL Exception raised for test VerifyManagementCVX (on device spine2) logger.py:121
... | aristanetworks/anta | diff --git a/anta/tests/cvx.py b/anta/tests/cvx.py
index 63ec336a..e80af2e4 100644
--- a/anta/tests/cvx.py
+++ b/anta/tests/cvx.py
@@ -10,6 +10,7 @@ from __future__ import annotations
from typing import TYPE_CHECKING, ClassVar
from anta.models import AntaCommand, AntaTest
+from anta.tools import get_value
if TYP... | [
"tests/units/anta_tests/test_cvx.py::test[anta.tests.cvx.VerifyMcsClientMounts-success]",
"tests/units/anta_tests/test_cvx.py::test[anta.tests.cvx.VerifyMcsClientMounts-success-haclient]",
"tests/units/anta_tests/test_cvx.py::test[anta.tests.cvx.VerifyMcsClientMounts-success-partial-non-mcs]",
"tests/units/an... | [] | {
"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": [... |
725523474532697875a1b307eae7f95088a16043 | 2016-04-28 17:01:01 | docker.io/swerebenchv2/elastic-curator:616-7255234 | elastic__curator-616 | Function: get_client(**kwargs)
Location: curator.get_client (defined in curator/utils.py)
Inputs:
- kwargs: mapping of client configuration options. Important keys:
- master_only (bool): when True, client connects only if the endpoint is the elected master node.
- hosts (list[str]): list of Elasticsearch host URLs... | python | custom-check-github | diff --git a/curator/utils.py b/curator/utils.py
index 256317b..173d781 100644
--- a/curator/utils.py
+++ b/curator/utils.py
@@ -464,7 +464,9 @@ def get_client(**kwargs):
:arg timeout: Number of seconds before the client will timeout.
:type timeout: int
:arg master_only: If `True`, the client will `only`... | Disallow `master_only` if multiple hosts
Added test, cleaned spurious lines from other tests.
Documented this for API and CLI/Usage.
fixes #615 | Disallow `master_only` if multiple hosts are used
Multiple hosts is only for load balancing. If `master_only` is used, it will break things. | elastic/curator | diff --git a/test/unit/test_utils.py b/test/unit/test_utils.py
index 60e1138..26ae5f3 100644
--- a/test/unit/test_utils.py
+++ b/test/unit/test_utils.py
@@ -230,7 +230,6 @@ class TestGetClient(TestCase):
# These unit test cases can't really get a client object, so it's more for
# code coverage than anything
... | [
"test/unit/test_utils.py::TestGetClient::test_master_only_multiple_hosts"
] | [
"test/unit/test_utils.py::TestEnsureList::test_ensure_list_returns_lists",
"test/unit/test_utils.py::TestTo_CSV::test_to_csv_will_return_None",
"test/unit/test_utils.py::TestTo_CSV::test_to_csv_will_return_csv",
"test/unit/test_utils.py::TestTo_CSV::test_to_csv_will_return_single",
"test/unit/test_utils.py:... | {
"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": [... |
2f7a46209af2bcffc94296a0ee0ea64741dc2472 | 2016-07-24 20:44:41 | docker.io/swerebenchv2/yannickcr-eslint-plugin-react:705-2f7a462 | yannickcr__eslint-plugin-react-705 | No new interfaces are introduced. | js | MIT | diff --git a/lib/rules/jsx-handler-names.js b/lib/rules/jsx-handler-names.js
index 1c125874..4ed731ba 100644
--- a/lib/rules/jsx-handler-names.js
+++ b/lib/rules/jsx-handler-names.js
@@ -38,8 +38,8 @@ module.exports = {
var eventHandlerPropPrefix = configuration.eventHandlerPropPrefix || 'on';
var EVENT_HAN... | Prevent jsx-handler-names from incorrectly flagging `only`
The rule was triggered for a property `only`. This is because the regex
was checking for the prefix (by default "on") followed by any
characters. We can fix this by ensuring that the prefix we are checking
for is always followed by an uppercase character.
... | react/jsx-handler-names should not trigger on "only"
The rule was triggered for a property `only`. I assume it checks for any prop key starting with `on`, but it would maybe make sense changing this to match `on[A-Z]` (i.e. camelcased keys) instead? | yannickcr/eslint-plugin-react | diff --git a/tests/lib/rules/jsx-handler-names.js b/tests/lib/rules/jsx-handler-names.js
index 111aaa00..8d8dbf1c 100644
--- a/tests/lib/rules/jsx-handler-names.js
+++ b/tests/lib/rules/jsx-handler-names.js
@@ -93,6 +93,11 @@ ruleTester.run('jsx-handler-names', rule, {
'<TestComponent onChange={props.foo::handle... | [
"<TestComponent only={this.only} />",
"<TestComponent onChange={this.handlerChange} />",
"<TestComponent only={this.handleChange} />"
] | [
"should export display-name",
"should export forbid-prop-types",
"should export jsx-boolean-value",
"should export jsx-closing-bracket-location",
"should export jsx-curly-spacing",
"should export jsx-equals-spacing",
"should export jsx-filename-extension",
"should export jsx-first-prop-new-line",
"s... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
f71271d13d4f356d00b89493c61ba2be307fe57e | 2023-11-21 14:08:43 | docker.io/swerebenchv2/mirumee-ariadne-codegen:242-f71271d | mirumee__ariadne-codegen-242 | Method: NoReimportsPlugin.generate_init_module(self, module: ast.Module)
Location: ariadne_codegen/contrib/no_reimports.py
Inputs: module – an ``ast.Module`` representing the ``__init__.py`` of the generated client package; its body may contain imports, assignments, etc.
Outputs: ast.Module – the same module object wit... | python | BSD-3-Clause | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 928a2b0..7810768 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -3,6 +3,7 @@
## UNRELEASED
- Removed `model_rebuild` calls for generated input, fragment and result models.
+- Added `NoReimportsPlugin` that makes the `__init__.py` of generated client package empty.
... | No reimports plugin
This pr adds `NoReimportsPlugin` which removes the content of generated `__init__.py`.
resolves #233 | Load of module and client extremely slow.
## Description
I have a fairly complex GraphQL repository running on Hasura, that might have hundreds if not thousands of types and definitions. Right now I implemented this library for some specific queries and use cases, and all of those types available in the server are n... | mirumee/ariadne-codegen | diff --git a/tests/contrib/test_extract_operations.py b/tests/contrib/test_extract_operations.py
index 395c1ad..0521488 100644
--- a/tests/contrib/test_extract_operations.py
+++ b/tests/contrib/test_extract_operations.py
@@ -87,6 +87,14 @@ def test_generate_init_module_returns_module_with_added_import(
)
+def ... | [
"tests/contrib/test_extract_operations.py::test_plugin_gets_module_name_from_config_dict[config_update0-operations]",
"tests/contrib/test_extract_operations.py::test_plugin_gets_module_name_from_config_dict[config_update1-custom_module_name]",
"tests/contrib/test_extract_operations.py::test_generate_init_module... | [] | {
"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": [... |
7c89245250e2433a8f2b6331ddc194dbc6ebdf47 | 2021-06-01 14:24:36 | docker.io/swerebenchv2/tipsy-javalin:1264-7c89245 | tipsy__javalin-1264 | Method: Context.handlerType(self)
Location: io.javalin.http.Context
Inputs: None
Outputs: HandlerType – the enum value representing the current handler type (e.g., BEFORE, GET, AFTER)
Description: Returns the handler type of the currently executing handler, enabling callers (such as middleware or tests) to identify wh... | kotlin | Apache-2.0 | diff --git a/javalin/src/main/java/io/javalin/http/Context.kt b/javalin/src/main/java/io/javalin/http/Context.kt
index 82ab1c2c4..102773cd1 100644
--- a/javalin/src/main/java/io/javalin/http/Context.kt
+++ b/javalin/src/main/java/io/javalin/http/Context.kt
@@ -477,5 +477,8 @@ open class Context(@JvmField val req: HttpS... | Closes #1263 | Context: Expose handlerType
**Describe the feature**
It would be great to expose the handler type in the context. Right now it is shielded by being set to `internal` in kotlin.
**Additional context**
I am currently trying to add APM agent instrumentation support for Javalin for the Elastic APM agent. I need access... | tipsy/javalin | diff --git a/javalin/src/test/java/io/javalin/TestContextHandlerType.java b/javalin/src/test/java/io/javalin/TestContextHandlerType.java
new file mode 100644
index 000000000..d871d27ed
--- /dev/null
+++ b/javalin/src/test/java/io/javalin/TestContextHandlerType.java
@@ -0,0 +1,30 @@
+/*
+ * Javalin - https://javalin.io
... | [
"io.javalin.http.HttpCodeTest",
"io.javalin.plugin.metrics.MicrometerPluginTest",
"io.javalin.routeoverview.TestRouteOverview_Kotlin",
"io.javalin.staticfiles.TestSinglePageMode",
"io.javalin.staticfiles.TestStaticDirectorySlash",
"io.javalin.staticfiles.TestStaticFiles",
"io.javalin.staticfiles.TestSta... | [] | {
"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.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
3c431dca67b15acd265086770147ce22745ccad1 | 2023-10-11 09:53:08 | docker.io/swerebenchv2/getsentry-sentry-laravel:783-3c431dc | getsentry__sentry-laravel-783 | No new interfaces are introduced. | php | MIT | diff --git a/src/Sentry/Laravel/Features/ConsoleIntegration.php b/src/Sentry/Laravel/Features/ConsoleIntegration.php
index 80850ae..49ab982 100644
--- a/src/Sentry/Laravel/Features/ConsoleIntegration.php
+++ b/src/Sentry/Laravel/Features/ConsoleIntegration.php
@@ -2,6 +2,7 @@
namespace Sentry\Laravel\Features;
+us... | Fix `DateTimeZone` not properly converted to a string
Fixes #782. | [Cron Monitoring] DateTimeZone Argument Error
### How do you use Sentry?
Sentry SaaS (sentry.io)
### SDK version
3.8.1
### Steps to reproduce
We recently updated from Sentry version 3.3.3 to 3.8.1, and when we did our Cron monitor started throwing errors. We aren't doing anything fancy, but here's our command:
``... | getsentry/sentry-laravel | diff --git a/test/Sentry/Features/ConsoleIntegrationTest.php b/test/Sentry/Features/ConsoleIntegrationTest.php
index 6a5c25c..5c8c5b9 100644
--- a/test/Sentry/Features/ConsoleIntegrationTest.php
+++ b/test/Sentry/Features/ConsoleIntegrationTest.php
@@ -2,6 +2,7 @@
namespace Sentry\Features;
+use DateTimeZone;
use... | [
"Console Integration > Schedule macro with time zone"
] | [
"Client Builder Decorator > Client has environment set from decorator",
"About Command Integration > About command contains expected data",
"About Command Integration > About command contains expected data without hub client",
"Console Events > Command breadcrumb is recorded when enabled",
"Console Events >... | {
"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 --no-progress"
],
"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": [... |
752b14648d409acf360ee2d1cb4bc4fa6190d72b | 2024-06-21 15:55:34 | docker.io/swerebenchv2/yamatoiizuka-palt-typesetting:215-752b146 | yamatoiizuka__palt-typesetting-215 | No new interfaces are introduced. | ts | MIT | diff --git a/src/insert-separators.ts b/src/insert-separators.ts
index a2ea897..1698e42 100644
--- a/src/insert-separators.ts
+++ b/src/insert-separators.ts
@@ -2,7 +2,7 @@ import LineBreaker from 'linebreak'
import { CharClass, LanguageClass } from './util-text-classes.js'
import { createWbr, createThinSpace } from ... | Make thin spaces around middle dots half-width
Fix #214 | Make thin spaces around middle dots half-width
中点類(・:;)の前後は四分アキではなく、八分アキにする。
四分アキだとだいぶ空いて見えてしまう。
`calc(options.thinSpaceWidth / 2.0)` みたいにすれば OK。 | yamatoiizuka/palt-typesetting | diff --git a/tests/index.test.ts b/tests/index.test.ts
index c9a464e..2324a5c 100644
--- a/tests/index.test.ts
+++ b/tests/index.test.ts
@@ -8,10 +8,14 @@ describe('Typesetter', () => {
const options = Typesetter.getDefaultOptions()
const spaceWidth = options.thinSpaceWidth
const space = createThinSpace(spaceW... | [
"tests/insert-separators.test.ts > insertSeparators > inserts separators (thin spaces, <wbr>) into HTML text nodes",
"tests/insert-separators.test.ts > addSeparatorsToSegment > adds separators to '晴れ' considering '・', resulting in '晴れ<span class=\"typesetting-thin-space\" style=\"letter-spacing: calc(0.2em / 2.0)... | [
"tests/text-classification.test.ts > CharClass.shouldAddThinSpace > returns false for adding thin space between '─' and '─'",
"tests/text-classification.test.ts > CharClass.shouldAddThinSpace > returns true for adding thin space between '─' and '「'",
"tests/text-classification.test.ts > CharClass.shouldAddThinS... | {
"base_image_name": "node_20",
"docker_specs": null,
"install": [
"npm ci"
],
"log_parser": "parse_log_js_4",
"test_cmd": "npx vitest run --reporter=verbose --no-color"
} | {
"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": [... |
0ff7ab6e1a96f8581664e2154a867804207f9485 | 2017-01-20 16:34:40 | docker.io/swerebenchv2/probmods-webppl:766-0ff7ab6 | probmods__webppl-766 | No new interfaces are introduced. | js | custom-check-github | diff --git a/src/errors/errors.js b/src/errors/errors.js
index 3986eb1b..cfbbbd91 100644
--- a/src/errors/errors.js
+++ b/src/errors/errors.js
@@ -27,7 +27,7 @@ function addressToWpplCallStack(address, addressMap) {
var stack = addressToStack(address);
return _.chain(stack).map(function(id) {
var loc = addre... | Make error handling work with caching transform.
Closes #764. | Error handling fails in presence of incremental MH transforms
For example:
```js
Infer({
method: 'incrementalMH',
model() {
assert.ok(false, 'fail');
}});
```
Fails with:
```
TypeError: Cannot read property 'line' of undefined
```
... rather than showing:
```
AssertionError: fail
... | probmods/webppl | diff --git a/tests/test-stack-trace.js b/tests/test-stack-trace.js
index 0ec03380..78de579e 100644
--- a/tests/test-stack-trace.js
+++ b/tests/test-stack-trace.js
@@ -172,6 +172,15 @@ var testDefs = [
{line: 11, col: 9, name: 'f'},
{line: 10, col: 0, name: 'Enumerate'}],
debug: true
+ },... | [
"debug - with caching transform"
] | [
"hasNoCachingDirective - test1",
"hasNoCachingDirective - test2",
"hasNoCachingDirective - test3",
"hasNoCachingDirective - test4",
"hasNoCachingDirective - test5",
"hasNoCachingDirective - test6",
"transformRequired - test1",
"transformRequired - test2",
"transformRequired - test3",
"transformReq... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
be69593be9d37bffbd8e738ca381f1839996d204 | 2018-11-01 16:30:07 | docker.io/swerebenchv2/s-knibbs-dataclasses-jsonschema:10-be69593 | s-knibbs__dataclasses-jsonschema-10 | No new interfaces are introduced. | python | MIT | diff --git a/dataclasses_jsonschema/__init__.py b/dataclasses_jsonschema/__init__.py
index baae129..e5979bc 100644
--- a/dataclasses_jsonschema/__init__.py
+++ b/dataclasses_jsonschema/__init__.py
@@ -232,10 +232,7 @@ class JsonSchemaMixin:
required = True
field_type_name = cls._get_field_type_name(fi... | Fixes #8: Generate valid $ref objects | Generated JSON schema are causing Swagger validation warnings
The JSON references currently being generated aren't correct, instead of this:
```json
{"$ref": "#/definitions/Point", "type": "object"}
```
should be this:
```json
{"$ref": "#/definitions/Point"}
``` | s-knibbs/dataclasses-jsonschema | diff --git a/tests/test_all.py b/tests/test_all.py
index 6179c53..6f50eef 100644
--- a/tests/test_all.py
+++ b/tests/test_all.py
@@ -12,7 +12,7 @@ FOO_SCHEMA = {
'description': 'A foo that foos',
'properties': {
'a': {'format': 'date-time', 'type': 'string'},
- 'b': {'items': {'$ref': '#/defin... | [
"tests/test_all.py::test_json_schema",
"tests/test_all.py::test_embeddable_json_schema"
] | [
"tests/test_all.py::test_serialise_deserialise",
"tests/test_all.py::test_invalid_data",
"tests/test_all.py::test_newtype_field_validation",
"tests/test_all.py::test_recursive_data"
] | {
"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.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
6c46f323c1e02417d63e33f4a08dbeaf853689ac | 2021-11-22 03:56:53 | docker.io/swerebenchv2/slackapi-python-slack-sdk:1137-6c46f32 | slackapi__python-slack-sdk-1137 | Method: JsonObject.__eq__(self, other: Any) -> bool
Location: slack_sdk/models/basic_objects.py (class JsonObject)
Inputs:
- other: Any object to compare against. Equality is only evaluated when `other` is an instance of `JsonObject`; otherwise the method returns `False`.
Outputs:
- bool – `True` if `other` is a `JsonO... | python | MIT | diff --git a/slack_sdk/models/basic_objects.py b/slack_sdk/models/basic_objects.py
index 3223148..814ab95 100644
--- a/slack_sdk/models/basic_objects.py
+++ b/slack_sdk/models/basic_objects.py
@@ -87,6 +87,11 @@ class JsonObject(BaseObject, metaclass=ABCMeta):
else:
return self.__str__()
+ de... | Fix #1131 Add the method to check equality in Block Kit model classes
## Summary
Fixes #1131
@seratch
Sorry for the delay.
I worked on the issue #1131.
I've confirmed the following.
- Passing Unit Tests
- Solving the problem in interactive mode
Thank you for checking!
### Category (place an `x` in e... | Add the method to check equality in Block Kit model classes
### Reproducible in:
#### The Slack SDK version
All versions
#### Steps to reproduce:
```python
from slack_sdk.models.blocks import DividerBlock
DividerBlock() == DividerBlock()
```
It happens with any pair of equivalent blocks.
### Expect... | slackapi/python-slack-sdk | diff --git a/tests/slack_sdk/models/test_blocks.py b/tests/slack_sdk/models/test_blocks.py
index 4eadbd4..c79cfed 100644
--- a/tests/slack_sdk/models/test_blocks.py
+++ b/tests/slack_sdk/models/test_blocks.py
@@ -54,6 +54,11 @@ class BlockTests(unittest.TestCase):
block.to_dict(),
)
+ def tes... | [
"tests/slack_sdk/models/test_blocks.py::BlockTests::test_eq",
"tests/slack_sdk/models/test_elements.py::BlockElementTests::test_eq",
"tests/slack_sdk/models/test_objects.py::JsonObjectTests::test_eq",
"tests/slack_sdk/models/test_views.py::ViewTests::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/test_blocks.py::SectionBlockTests::test_document_3",
"tests/slack... | {
"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": [... |
cc2f468623534d06a41e5dc591e9b6a1355a5e7b | 2022-07-28 19:14:41 | docker.io/swerebenchv2/srvaroa-labeler:47-cc2f468 | srvaroa__labeler-47 | Method: (*Labeler).ExecuteOn(pr *gh.PullRequest) error
Location: pkg/labeler.go
Inputs:
*pr* – the pull‑request object whose labels are to be reconciled.
*Labeler* – must have its Config field set to a `LabelerConfigV1`. If `Config.AppendOnly` is true, the method will **only add** labels that match a rule a... | go | MIT | diff --git a/Dockerfile b/Dockerfile
index 1a17284..3045963 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,5 +12,6 @@ RUN apk add --no-cache git
WORKDIR /go/src/app
COPY . .
ENV GO111MODULE=on
+ENV GOPROXY=https://proxy.golang.org
RUN go build -o action ./cmd
ENTRYPOINT ["/go/src/app/action"]
diff --git a/README.... | Support Append-only mode
Details in README. Allow a configuration value that will never remove
tags, only add them.
Fixes #42
Signed-off-by: Galo Navarro <anglorvaroa@gmail.com>
| Option to append to existing Labels
Please provide an option to append labels to the already existing labels on a PR.
Currently it removes all existing labels from a PR and applies those which meet the conditions. But, there are use cases where people want to manually add labels to the PR and maintain it. | srvaroa/labeler | diff --git a/pkg/labeler_test.go b/pkg/labeler_test.go
index 04382bc..6c8c2f0 100644
--- a/pkg/labeler_test.go
+++ b/pkg/labeler_test.go
@@ -358,6 +358,24 @@ func TestHandleEvent(t *testing.T) {
initialLabels: []string{},
expectedLabels: []string{"Author"},
},
+ {
+ payloads: []string{"create_pr", "reope... | [
"TestHandleEvent",
"TestHandleEvent/Empty_config",
"TestHandleEvent/Config_with_no_rules",
"TestHandleEvent/Add_a_label_when_not_set_and_config_matches",
"TestHandleEvent/Remove_a_label_when_set_and_config_does_not_match",
"TestHandleEvent/Respect_a_label_when_set,_and_not_present_in_config",
"TestHandl... | [
"TestGetLabelerConfigV0",
"TestGetLabelerConfigV1",
"TestGetLabelerConfig2V1"
] | {
"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": [... |
5eef06ee518b424b4980acfd906a2e056f9b3f75 | 2023-03-17 20:39:08 | docker.io/swerebenchv2/getmoto-moto:6085-5eef06e | getmoto__moto-6085 | Method: IoTClient.delete_certificate(self, certificateId: str, forceDelete: bool = False)
Location: Implemented in `moto/iot/responses.py` (IoTResponse.delete_certificate) and delegated to `moto/iot/models.py` (IoTBackend.delete_certificate).
Inputs:
- **certificateId** (str): The identifier of the certificate to be ... | python | Apache-2.0 | diff --git a/moto/awslambda/models.py b/moto/awslambda/models.py
index c5ca3f294..56d1ea985 100644
--- a/moto/awslambda/models.py
+++ b/moto/awslambda/models.py
@@ -59,8 +59,6 @@ from tempfile import TemporaryDirectory
logger = logging.getLogger(__name__)
-docker_3 = docker.__version__[0] >= "3"
-
def zip2tar(z... | IOT: delete_certificate() now supports the forceDelete-parameter
Fixes #6029 | IoT delete_certificate() "forceDelete" param does not work
# Summary
The `forceDelete` parameter in the iot implementation is not congruent with boto3 behavior.
## Steps to reproduce
Run the following python code:
```python
import json
import boto3
from moto import mock_iot
IOT_THING_POLICY_NAME = "ThingC... | getmoto/moto | diff --git a/tests/test_iot/test_iot_certificates.py b/tests/test_iot/test_iot_certificates.py
index 729cddbe2..aafc40bfe 100644
--- a/tests/test_iot/test_iot_certificates.py
+++ b/tests/test_iot/test_iot_certificates.py
@@ -232,6 +232,31 @@ def test_delete_certificate_validation():
res.should.have.key("certificat... | [
"tests/test_iot/test_iot_certificates.py::test_delete_certificate_force"
] | [
"tests/test_iot/test_iot_certificates.py::test_certificate_id_generation_deterministic",
"tests/test_iot/test_iot_certificates.py::test_create_certificate_from_csr",
"tests/test_iot/test_iot_certificates.py::test_create_key_and_certificate",
"tests/test_iot/test_iot_certificates.py::test_describe_certificate_... | {
"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": [... |
1e75c3fe87b084f2f91231b775c601cb81e0246e | 2023-09-22 10:41:53 | docker.io/swerebenchv2/researchobject-ro-crate-py:162-1e75c3f | researchobject__ro-crate-py-162 | Method: Metadata.generate(self)
Location: rocrate/model/metadata.py (class Metadata)
Inputs: None (relies on the instance’s internal state – `self.extra_contexts` list and `self.extra_terms` dict, which can be modified directly by callers).
Outputs: A `dict` JSON‑LD document with an `@context` entry that is:
- a single... | python | Apache-2.0 | diff --git a/rocrate/model/metadata.py b/rocrate/model/metadata.py
index f4ddb50..49f4aa8 100644
--- a/rocrate/model/metadata.py
+++ b/rocrate/model/metadata.py
@@ -47,6 +47,7 @@ class Metadata(File):
properties=properties
)
# https://www.researchobject.org/ro-crate/1.1/appendix/jsonld.ht... | Add method to add contexts
Fixes #160.
```python
crate = ROCrate()
crate.metadata.extra_contexts.append("https://w3id.org/ro/terms/workflow-run")
``` | Add method to include additional contexts at the top level
Right now, it is possible to add additional terms from other contexts to the top level contexts through the attached `Metadata` instance, using the `extra_terms` dictionary:
```python
a_crate = ROCrate(gen_preview=False)
a_crate.metadata.extra_terms.update... | ResearchObject/ro-crate-py | diff --git a/test/test_model.py b/test/test_model.py
index 2830ec1..0324d90 100644
--- a/test/test_model.py
+++ b/test/test_model.py
@@ -460,3 +460,18 @@ def test_get_by_type(test_data_dir):
assert crate.get_by_type(["File", "ComputationalWorkflow"]) == [wf]
assert crate.get_by_type("Person") == []
asser... | [
"test/test_model.py::test_context"
] | [
"test/test_model.py::test_dereferencing",
"test/test_model.py::test_dereferencing_equivalent_id[.foo]",
"test/test_model.py::test_dereferencing_equivalent_id[foo.]",
"test/test_model.py::test_dereferencing_equivalent_id[.foo/]",
"test/test_model.py::test_dereferencing_equivalent_id[foo./]",
"test/test_mod... | {
"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": [... |
9b84037e3140c5d642774480a5d596c8addc21db | 2020-02-05 20:23:05 | docker.io/swerebenchv2/pinojs-hapi-pino:96-9b84037 | pinojs__hapi-pino-96 | No new interfaces are introduced. | js | MIT | diff --git a/.travis.yml b/.travis.yml
index 7d86635..3433997 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -3,9 +3,17 @@ sudo: false
node_js:
- "8"
- "10"
+ - "12"
env:
- HAPI=hapi@17
- - HAPI=hapi@18
+ - HAPI=@hapi/hapi@18
+ - HAPI=@hapi/hapi@19
+matrix:
+ exclude:
+ - node_js: 8
+ env: HAPI=@hapi... | fix: use scoped logger if request.logger is not available
Fixes #84 | Cannot read property 'info' of undefined
I have been getting this error whenever I refresh my Apollo graphql playground and based on the error trace `request.logger` inside `tryAddEvent` function (request completes ) is undefined
```log
TypeError: Cannot read property 'info' of undefined
at Object.listener (/ho... | pinojs/hapi-pino | diff --git a/test.js b/test.js
index b3b032a..724fe2f 100644
--- a/test.js
+++ b/test.js
@@ -356,6 +356,34 @@ experiment('logs each request', () => {
expect(options).to.equal(optionsClone)
})
+
+ test('handles removed request.logger', async () => {
+ const server = getServer()
+
+ let done
+
+ const... | [
"16) handles removed request.logger"
] | [
"1) server.app.logger is undefined",
"2) at trace",
"3) at debug",
"4) at info",
"5) at warn",
"6) at error",
"7) log on server start",
"8) at default level",
"9) track responseTime",
"10) track responseTime when server closes connection prematurely",
"11) correctly set the status code",
"12) ... | {
"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": [... |
9eae66dd720b0efeae7097ad00c12c42348f1f0b | 2023-03-03 12:15:58 | docker.io/swerebenchv2/ably-ably-python:474-9eae66d | ably__ably-python-474 | Method: Channels.release(self, name)
Location: ably.rest.channel.Channels.release
Inputs: name (str) – the channel name to be released; if the channel does not exist the call is a no‑op.
Outputs: None (no return value); does not raise an error when the channel is absent.
Description: Deletes the Channel object from the... | python | Apache-2.0 | diff --git a/ably/rest/channel.py b/ably/rest/channel.py
index 5ea8efd..45f6cef 100644
--- a/ably/rest/channel.py
+++ b/ably/rest/channel.py
@@ -219,8 +219,19 @@ class Channels:
def __iter__(self) -> Iterator[str]:
return iter(self.__all.values())
- def release(self, key):
- del self.__all[key... | RSN4b Compliance
This change does the following:
- Removes the `__delitem__` magic method from the REST `Channels` implementation (as not part of spec)
- Fixes a non-compliance with `RSN4b` - whereby previously calling release on a non-existent channel would result in a KeyError being raised.
Fixes #472 | `RSN4b`: Error raised
Spec point `RSN4b`:
```
Calling release() with a channel name that does not correspond to an extant channel entity must return without error
```
At the moment, calling release on a non-existent channel results in an error being raised due to it not appearing in the channel map. | ably/ably-python | diff --git a/test/ably/rest/restchannels_test.py b/test/ably/rest/restchannels_test.py
index c6a791f..b567781 100644
--- a/test/ably/rest/restchannels_test.py
+++ b/test/ably/rest/restchannels_test.py
@@ -70,19 +70,11 @@ class TestChannels(BaseAsyncTestCase):
assert isinstance(channel, Channel)
... | [
"test/ably/rest/restchannels_test.py::TestChannels::test_channels_release"
] | [
"test/ably/rest/restchannels_test.py::TestChannels::test_channel_has_presence",
"test/ably/rest/restchannels_test.py::TestChannels::test_channels_get_doesnt_updates_existing_with_none_options",
"test/ably/rest/restchannels_test.py::TestChannels::test_channels_get_returns_new_or_existing",
"test/ably/rest/rest... | {
"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": [... |
086c3dfc284d1615e841f1f5685cdd25c14bc312 | 2020-06-15 20:06:36 | docker.io/swerebenchv2/blevesearch-bleve:1416-086c3df | blevesearch__bleve-1416 | No new interfaces are introduced. | go | Apache-2.0 | diff --git a/index/scorch/snapshot_index_tfr.go b/index/scorch/snapshot_index_tfr.go
index 5d56f194..61537fc4 100644
--- a/index/scorch/snapshot_index_tfr.go
+++ b/index/scorch/snapshot_index_tfr.go
@@ -133,6 +133,8 @@ func (i *IndexSnapshotTermFieldReader) Advance(ID index.IndexInternalID, preAllo
if err != nil {
... | fix stats handling of term field reader advancing backwards
The current implementation creates a new term field reader,
which replaces the original one, this causes the stats
tracking start/finished to get out of sync.
This fixes the issue by recording the original term field
reader as finished when replacing wit... | term field reader stats out of sync when advancing backwards
The scorch implementation of `TermFieldReader` `Advance()` has special handling for the case when it is advancing backwards. Essentially it cheats, and just creates a new `TermFieldReader`, and advances that forward. This works, but the stats tracking is no... | blevesearch/bleve | diff --git a/index/scorch/scorch_test.go b/index/scorch/scorch_test.go
index 5a9ef40c..e22fafa2 100644
--- a/index/scorch/scorch_test.go
+++ b/index/scorch/scorch_test.go
@@ -2380,3 +2380,88 @@ func TestCancelIndexForceMerge(t *testing.T) {
t.Fatal(err)
}
}
+
+func TestIndexSeekBackwardsStats(t *testing.T) {
+ cf... | [
"TestIndexSeekBackwardsStats"
] | [
"TestBuilder",
"TestIndexAliasSingle",
"TestIndexAliasClosed",
"TestIndexAliasEmpty",
"TestIndexAliasMulti",
"TestMultiSearchNoError",
"TestMultiSearchSomeError",
"TestMultiSearchAllError",
"TestMultiSearchSecondPage",
"TestMultiSearchTimeout",
"TestMultiSearchTimeoutPartial",
"TestIndexAliasM... | {
"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": [... |
2e792e95b4775d40e5cbe45e1116b1f76a4dab5c | 2016-12-05 10:40:49 | docker.io/swerebenchv2/kayak-pypika:23-2e792e9 | kayak__pypika-23 | Method: Criterion.as_(self, alias)
Location: pypika/terms.py (class Criterion inherits from Term, gaining the .as_ alias method)
Inputs:
- alias: str – the name to assign as an alias to the criterion expression.
Outputs:
- Returns a Criterion (actually a Term alias wrapper) that renders to the original SQL criterion ... | python | Apache-2.0 | diff --git a/pypika/terms.py b/pypika/terms.py
index 47043a3..eba423a 100644
--- a/pypika/terms.py
+++ b/pypika/terms.py
@@ -263,7 +263,7 @@ class ListField(object):
)
-class Criterion(object):
+class Criterion(Term):
def __and__(self, other):
return ComplexCriterion(Boolean.and_, self, other... | Fixes #22 Changed Criterion to extend Term
Extended Term to provide the missing functions on Criterion. | Alias for Criterions
Criterion expressions cannot be given an alias due to missing .as_ function | kayak/pypika | diff --git a/pypika/tests/test_criterions.py b/pypika/tests/test_criterions.py
index 782526b..12001de 100644
--- a/pypika/tests/test_criterions.py
+++ b/pypika/tests/test_criterions.py
@@ -12,6 +12,11 @@ __email__ = "theys@kayak.com"
class CriterionTests(unittest.TestCase):
t = Table('test', alias = 'crit')
+ ... | [
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_with_alias"
] | [
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_bool",
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_date",
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_datetime",
"pypika/tests/test_criterions.py::CriterionTests::test__criterion_eq_decimal",... | {
"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.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
cdbd596f3a5ea6f63c4b366d0b1c726bbe3558b2 | 2025-03-24 16:23:28 | docker.io/swerebenchv2/sdv-dev-rdt:963-cdbd596 | sdv-dev__rdt-963 | No new interfaces are introduced. | python | custom-check-github | diff --git a/rdt/transformers/base.py b/rdt/transformers/base.py
index 808e32a..1863462 100644
--- a/rdt/transformers/base.py
+++ b/rdt/transformers/base.py
@@ -327,19 +327,19 @@ class BaseTransformer:
custom_args = []
args = inspect.getfullargspec(self.__init__)
keys = args.args[1:]
- ... | Fix `BaseTransformer.__repr__` when transformer has required arguments
CU-86b4bz2r6, Resolve #961. | `BaseTransformer.__repr__` errors if transformer has positional arguments
### Environment Details
Please indicate the following details about the environment in which you found the bug:
* RDT version:
* Python version:
* Operating System:
### Error Description
The `__repr__` method on the base transformer tries to p... | sdv-dev/RDT | diff --git a/tests/unit/transformers/test_base.py b/tests/unit/transformers/test_base.py
index b2edc93..248f3bc 100644
--- a/tests/unit/transformers/test_base.py
+++ b/tests/unit/transformers/test_base.py
@@ -364,18 +364,19 @@ class TestBaseTransformer:
# Setup
class Dummy(BaseTransformer):
- ... | [
"tests/unit/transformers/test_base.py::TestBaseTransformer::test___repr___with_parameters"
] | [
"tests/unit/transformers/test_base.py::test_set_random_states",
"tests/unit/transformers/test_base.py::test_random_state",
"tests/unit/transformers/test_base.py::test_random_state_random_states_is_none",
"tests/unit/transformers/test_base.py::TestBaseTransformer::test_set_random_state",
"tests/unit/transfor... | {
"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": [... |
25807f366bb2586fda0ca2a35606e1e563f74773 | 2022-09-14 18:52:45 | docker.io/swerebenchv2/hdmf-dev-hdmf:765-25807f3 | hdmf-dev__hdmf-765 | Function: get_hdf5io(**kwargs)
Location: src/hdmf/common/__init__.py
Inputs:
- `file` (str or Path) – the path to the HDF5 file to open.
- `mode` (str) – file mode (e.g., "r", "w", "a").
- `manager` (BuildManager, optional) – an HDMF build manager; if omitted a default manager is created via `get_manager()`.
- A... | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 87e8308..73c0c5d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,6 @@
# HDMF Changelog
-## HDMF 3.5.0 (Upcoming)
+## HDMF 3.4.3 (September 14, 2022)
### Minor improvements
- Began to deprecate the use of the testing script `test.py` in favor of `pytest` and ... | Fix get_hdf5io
## Motivation
Fixed broken `hdmf.common.get_hdf5io` function. Fix #764.
## How to test the behavior?
```
with get_hdf5io(self.path, "w") as io:
pass
```
## Checklist
- [x] Did you update CHANGELOG.md with your changes?
- [x] Have you checked our [Contributing](https://github.com/hdmf... | [Bug]: get_hdf5io() does not work
### What happened?
A recent refactoring of `get_hdf5io` broke the code so now it raises an error on correct usage. There are no unit tests for this function.
### Steps to Reproduce
```shell
with get_hdf5io(self.path, "w") as io:
pass
```
### Traceback
```shell
self = <tests.u... | hdmf-dev/hdmf | diff --git a/tests/unit/common/test_common_io.py b/tests/unit/common/test_common_io.py
index d68fc2a..6e18862 100644
--- a/tests/unit/common/test_common_io.py
+++ b/tests/unit/common/test_common_io.py
@@ -1,7 +1,7 @@
from h5py import File
from hdmf.backends.hdf5 import HDF5IO
-from hdmf.common import Container, get... | [
"tests/unit/common/test_common_io.py::TestGetHdf5IO::test_gethdf5io",
"tests/unit/common/test_common_io.py::TestGetHdf5IO::test_gethdf5io_manager"
] | [
"tests/unit/common/test_common_io.py::TestCacheSpec::test_write_cache_spec",
"tests/unit/common/test_common_io.py::TestCacheSpec::test_write_cache_spec_injected",
"tests/unit/common/test_common_io.py::TestCacheSpec::test_write_no_cache_spec"
] | {
"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": [... |
a5f2730f4803e19bba0977ae91a94729eda1d8a5 | 2017-03-23 22:48:57 | docker.io/swerebenchv2/sindresorhus-got:286-a5f2730 | sindresorhus__got-286 | Method: GotError.url
Location: Added in stdError(error, opts) inside index.js when constructing the error object for a request.
Inputs: No arguments – the value is taken from opts.href (the request’s full URL) during error creation.
Outputs: string – the complete URL of the request (e.g., "https://example.com/path?quer... | ts | MIT | diff --git a/index.js b/index.js
index 757380e..4b23f4d 100644
--- a/index.js
+++ b/index.js
@@ -336,7 +336,8 @@ function stdError(error, opts) {
hostname: opts.hostname,
method: opts.method,
path: opts.path,
- protocol: opts.protocol
+ protocol: opts.protocol,
+ url: opts.href
});
}
diff --git a/readm... | Add url to errors
Currently, the property is called `url`. Another sensible choice could be `href`.
---
Fixes #282 | Add `url` property to errors
We currently include host, hostname, method and path, but usually I just want a full URL to display to the user. I could format it manually, but that gets cumbersome. | sindresorhus/got | diff --git a/test/error.js b/test/error.js
index 40306d2..ff0f385 100644
--- a/test/error.js
+++ b/test/error.js
@@ -28,6 +28,7 @@ test('properties', async t => {
t.is(err.host, `${s.host}:${s.port}`);
t.is(err.method, 'GET');
t.is(err.protocol, 'http:');
+ t.is(err.url, err.response.requestUrl);
}
});
| [
"error › properties"
] | [
"error › options.body error message",
"error › dns message",
"arguments › url is required",
"arguments › should throw with auth in url",
"arguments › options are optional",
"arguments › accepts url.parse object as first argument",
"arguments › requestUrl with url.parse object as first argument",
"argu... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"export TS_NODE_TRANSPILE_ONLY=true",
"npm install --legacy-peer-deps --ignore-scripts --quiet"
],
"log_parser": "parse_log_js_4",
"test_cmd": "npx ava --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": [... |
7cdcd612f455c7e30551b023c72dcbe98e36cef6 | 2020-11-13 09:21:26 | docker.io/swerebenchv2/lingui-js-lingui:862-7cdcd61 | lingui__js-lingui-862 | No new interfaces are introduced. | ts | MIT | diff --git a/.github/workflows/deploy-main-docs.yml b/.github/workflows/deploy-main-docs.yml
index 9f34d47d..d81b2f61 100644
--- a/.github/workflows/deploy-main-docs.yml
+++ b/.github/workflows/deploy-main-docs.yml
@@ -41,4 +41,4 @@ jobs:
run: |
cd docs/
./vercel-build.sh
- npx v... | fix: parse template strings in t and defineMessage macros
Closes #861 | Function `t` macros do not extract template strings
**Describe the bug**
You cannot use template strings with the t function:
```
t({message: `template`})
```
results in
```
msgid "undefined"
msgstr "undefined"
```
**Expected behavior**
```
msgid "template"
msgstr "template"
```
**Additional context*... | lingui/js-lingui | diff --git a/packages/macro/test/js-defineMessage.ts b/packages/macro/test/js-defineMessage.ts
index d44a7455..bf4efa47 100644
--- a/packages/macro/test/js-defineMessage.ts
+++ b/packages/macro/test/js-defineMessage.ts
@@ -36,11 +36,11 @@ export default [
`,
},
{
- name: "should left string message intact... | [
"Support template strings in t macro message",
"should transform template literals"
] | [
"should collect and write catalogs",
"should only update the specified locale",
"should merge with existing catalogs",
"should collect and write a template",
"should extract messages from source files",
"should handle errors",
"should initialize catalog",
"should merge translations from existing catal... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"corepack disable yarn",
"npm install -g yarn --force",
"yarn remove -W full-icu",
"yarn install --ignore-engines",
"yarn release:build"
],
"log_parser": "parse_log_js_4",
"test_cmd": "yarn test --maxWorkers=1 --no-cache ... | {
"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": [... |
697e91e0ac150db016125f59ed93e91fd241ab74 | 2021-03-04 11:04:37 | docker.io/swerebenchv2/kubernetes-sigs-cloud-provider-azure:536-697e91e | kubernetes-sigs__cloud-provider-azure-536 | No new interfaces are introduced. | go | Apache-2.0 | diff --git a/pkg/provider/azure_loadbalancer.go b/pkg/provider/azure_loadbalancer.go
index 094d2080a..8889372cb 100644
--- a/pkg/provider/azure_loadbalancer.go
+++ b/pkg/provider/azure_loadbalancer.go
@@ -1750,7 +1750,13 @@ func (az *Cloud) reconcileLoadBalancerRule(
var expectedProbes []network.Probe
var expecte... | Ensure only LoadBalancer rule is created when HA mode is enabled
<!-- Thanks for sending a pull request! Here are some tips for you:
1. If this is your first time, please read our contributor guidelines: https://git.k8s.io/community/contributors/guide#your-first-contribution and developer guide https://git.k8s.io/... | RulesUseSameBackendPortProtocolAndPoolAndFrontendIPWithFloatingIPEnabled error when using multiple ports with HA
<!-- Please use this template while reporting a bug and provide as much info as possible. Not doing so may result in your bug not being addressed in a timely manner. Thanks!
-->
**What happened**:
Whe... | kubernetes-sigs/cloud-provider-azure | diff --git a/pkg/provider/azure_loadbalancer_test.go b/pkg/provider/azure_loadbalancer_test.go
index 9ab439b8b..c5c975a88 100644
--- a/pkg/provider/azure_loadbalancer_test.go
+++ b/pkg/provider/azure_loadbalancer_test.go
@@ -1647,6 +1647,28 @@ func TestReconcileLoadBalancerRule(t *testing.T) {
expectedProbes: getD... | [
"TestReconcileLoadBalancerRule"
] | [
"TestEnsureLoadBalancerDeleted",
"TestGetServiceLoadBalancer",
"TestGetServiceLoadBalancerWithExtendedLocation",
"TestReconcileLoadBalancer",
"TestGetServiceLoadBalancerStatus",
"TestReconcileSecurityGroupLoadBalancerSourceRanges",
"TestShouldUpdateLoadBalancer",
"TestCheckLoadBalancerResourcesConflic... | {
"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": [... |
4182aed6eb5777c3d0b1ac7e49e5fc58db383eea | 2024-06-07 01:12:02 | docker.io/swerebenchv2/qiskit-qiskit:12527-4182aed | qiskit__qiskit-12527 | Method: Target.has_calibration(self, operation_name: str, qargs: tuple) -> bool
Location: class Target (qiskit.transpiler.target.Target)
Inputs:
- **operation_name** (str): the name of the gate/instruction to query (e.g., "x", "sx").
- **qargs** (tuple of int): a tuple of qubit indices specifying the physical location... | python | Apache-2.0 | diff --git a/qiskit/transpiler/target.py b/qiskit/transpiler/target.py
index 8d609ce3b..4b6f0d128 100644
--- a/qiskit/transpiler/target.py
+++ b/qiskit/transpiler/target.py
@@ -890,7 +890,7 @@ class Target(Mapping):
return False
if qargs not in self._gate_map[operation_name]:
return F... | Avoid exception in `Target.has_calibration` for instruction without properties (backport #12526)
### Summary
Avoid exception in `Target.has_calibration` for instruction without properties
### Details and comments
`Target.add_instruction` allows passing `None` in place of an `InstructionProperties` instance. In t... | `Target.has_calibration` errors for instructions without properties
### Environment
- **Qiskit version**: 1.1.0
- **Python version**: 3.12
- **Operating system**: Fedora Linux 40
### What is happening?
If a `Target` has an `Instruction` with `None` for its `InstructionProperties`, `Target.has_calibration` raises... | Qiskit/qiskit | diff --git a/test/python/transpiler/test_target.py b/test/python/transpiler/test_target.py
index 646b29dd3..f63ed5061 100644
--- a/test/python/transpiler/test_target.py
+++ b/test/python/transpiler/test_target.py
@@ -1366,6 +1366,31 @@ Instructions:
self.assertIsNone(target["x"][(0,)].calibration)
+ def... | [
"test/python/transpiler/test_target.py::TestPulseTarget::test_has_calibration"
] | [
"test/python/transpiler/test_target.py::TestTarget::test_coupling_map",
"test/python/transpiler/test_target.py::TestTarget::test_coupling_map_2q_gate",
"test/python/transpiler/test_target.py::TestTarget::test_coupling_map_3q_gate",
"test/python/transpiler/test_target.py::TestTarget::test_coupling_map_filtered... | {
"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": [... |
c42c9e97b57d4255606e9cbeddc1f5e1a8700b31 | 2024-12-13 17:17:00 | docker.io/swerebenchv2/railwayapp-nixpacks:1242-c42c9e9 | railwayapp__nixpacks-1242 | Method: App.read_jsonc<T>(self, name: &str) -> Result<T>
Location: src/nixpacks/app.rs
Inputs:
- **self** – reference to the `App` instance.
- **name** – relative path (as `&str`) to the JSONC file to read (e.g., `"deno.jsonc"`).
- **T** – generic return type that must implement `DeserializeOwned`.
Outputs:
- **R... | rust | MIT | diff --git a/examples/deno-jsonc/deno.jsonc b/examples/deno-jsonc/deno.jsonc
new file mode 100644
index 0000000..9064591
--- /dev/null
+++ b/examples/deno-jsonc/deno.jsonc
@@ -0,0 +1,15 @@
+// THIS FILE HAS ALL KINDS OF COMMENTS POSSIBLE TO TEST JSONC
+{
+ //some random comment
+ "tasks": {
+ // random afterline c... | Fix #1241: nixpack plan generates an invalid toml file ...
See #1241 nixpack plan generates an invalid toml file for python projects containing a .tool-versions file.
I assume that outputting those lines before the toml or json file is not intended. If it is then please ignore this commit.
Another option might be... | `nixpack plan` generates an invalid toml file for python projects containing a `.tool-versions` file.
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Describe the bug
When running `nixpack plan -f toml` in a directory containing a Poetry project and a .tool-versions file nixpac... | railwayapp/nixpacks | diff --git a/examples/deno-jsonc/main_test.ts b/examples/deno-jsonc/main_test.ts
new file mode 100644
index 0000000..3d981e9
--- /dev/null
+++ b/examples/deno-jsonc/main_test.ts
@@ -0,0 +1,6 @@
+import { assertEquals } from "@std/assert";
+import { add } from "./main.ts";
+
+Deno.test(function addTest() {
+ assertEqua... | [
"nixpacks::app::tests::test_read_jsonc_file",
"providers::node::test::test_version_from_node_version_file"
] | [
"nixpacks::app::tests::test_creates_app",
"nixpacks::app::tests::test_is_file_executable",
"nixpacks::app::tests::test_read_file",
"nixpacks::app::tests::test_read_json_file",
"nixpacks::app::tests::test_read_structured_json_file",
"nixpacks::app::tests::test_static_asset_path",
"nixpacks::app::tests::t... | {
"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": [... |
2c19ad31eb4301e73fa474918834fe18b5dd903e | 2017-03-10 02:52:20 | docker.io/swerebenchv2/darkskyapp-forecast-io-translations:128-2c19ad3 | darkskyapp__forecast-io-translations-128 | No new interfaces are introduced. | js | BSD-2-Clause | diff --git a/lib/lang/zh.js b/lib/lang/zh.js
index bb9ebb1..13cdbf9 100644
--- a/lib/lang/zh.js
+++ b/lib/lang/zh.js
@@ -36,6 +36,8 @@ module.exports = require("../template")({
"light-clouds": "局部多云",
"medium-clouds": "多云",
"heavy-clouds": "多云转阴",
+ "possible-thunderstorm":"可能有雷暴",
+ "thunderstorm":"雷暴",
... | fix #118 update for new API | Support Thunderstorm and Next-Week Properties in Simplified Chinese
In the near future, the API will begin generating the following new properties:
* `possible-thunderstorm`
* `thunderstorm`
* `next-sunday`
* `next-monday`
* `next-tuesday`
* `next-wednesday`
* `next-thursday`
* `next-friday`
... | darkskyapp/forecast-io-translations | diff --git a/test_cases/zh.json b/test_cases/zh.json
index 7768217..d37a391 100644
--- a/test_cases/zh.json
+++ b/test_cases/zh.json
@@ -98,6 +98,11 @@
"潮湿,局部多云":
["title", ["and", "high-humidity", "light-clouds"]],
+ "多云,可能有雷暴":
+ ["title", ["and", "medium-clouds", "possible-thunderstorm"]],
+
+ "多云,雷暴"... | [
"should translate [\"title\",[\"and\",\"medium-clouds\",\"possible-thunderstorm\"]] to \"多云,可能有雷暴\"",
"should translate [\"title\",[\"and\",\"medium-clouds\",\"thunderstorm\"]] to \"多云,雷暴\"",
"should translate [\"sentence\",[\"until\",\"thunderstorm\",\"next-monday\"]] to \"雷暴将持续至下周一。\""
] | [
"should return a number in string form",
"should throw an error given an unrecognized string",
"should apply an expected value conversion",
"should throw an error given a value expected to be a string",
"should throw an error given a value expected to be a function",
"should throw an error given an empty ... | {
"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": [... |
82f4ea5810ca36dbe934de593eb0d45cdcc724c2 | 2018-07-29 02:53:15 | docker.io/swerebenchv2/yargs-yargs-parser:128-82f4ea5 | yargs__yargs-parser-128 | No new interfaces are introduced. | js | ISC | diff --git a/index.js b/index.js
index a3849bc..5fdb78e 100644
--- a/index.js
+++ b/index.js
@@ -639,7 +639,7 @@ function parse (args, opts) {
o[key] = increment(o[key])
} else if (Array.isArray(o[key])) {
if (duplicate && isTypeArray && isValueArray) {
- o[key] = configuration['flatten-duplic... | fix flatten-duplicate-arrays:false for more than 2 arrays
fixes #115 | Disabling "flatten-duplicate-arrays" leads to unexpected results
Calling this example code:
```javascript
const yargsParser = require('yargs-parser');
const argv = yargsParser(process.argv.slice(2), {
array: ['arr'],
configuration: {
'flatten-duplicate-arrays': false,
},
});
console.log(JSON.stringify... | yargs/yargs-parser | diff --git a/test/yargs-parser.js b/test/yargs-parser.js
index 2910424..24a8f12 100644
--- a/test/yargs-parser.js
+++ b/test/yargs-parser.js
@@ -2088,6 +2088,16 @@ describe('yargs-parser', function () {
parsed['x'].should.deep.equal([['a', 'b'], ['c', 'd']])
})
+ it('nests duplicate array types o... | [
"nests duplicate array types of more than 2"
] | [
"handles unquoted string",
"handles quoted string with no spaces",
"handles single quoted string with spaces",
"handles double quoted string with spaces",
"handles quoted string with embeded quotes",
"ignores unneeded spaces",
"should parse a \"short boolean\"",
"should parse a \"long boolean\"",
"s... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
64164b5d58ddbef2d4b2ffee216452d48dc527d9 | 2023-04-28 15:07:08 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:2720-64164b5 | aws-cloudformation__cfn-lint-2720 | Method: Conditions.__init__(self, template)
Location: src/cfnlint/conditions.py
Inputs:
- **template** (Template) – the fully‑parsed CloudFormation template object that the runner is processing.
Outputs:
- Returns an instance of **Conditions** which encapsulates the evaluated condition map for the given template an... | python | MIT-0 | diff --git a/src/cfnlint/runner.py b/src/cfnlint/runner.py
index 63343612f..a5e60dc9b 100644
--- a/src/cfnlint/runner.py
+++ b/src/cfnlint/runner.py
@@ -5,6 +5,7 @@ SPDX-License-Identifier: MIT-0
import logging
from typing import List, Optional, Sequence, Union
+from cfnlint.conditions import Conditions
from c... | Rebuild Conditions if a SAM transform
*Issue #, if available:*
fix #2719
*Description of changes:*
- Rebuild Conditions if a SAM transform
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| E0002 Unknown exception while processing rule E3001: 'ServerlessCodeDeployCondition'
### CloudFormation Lint Version
0.77.3
### What operating system are you using?
Ubuntu
### Describe the bug
Suddenly cfn-lint fails to validate a template that haven't been touched for several months. cfn-lint seems to b... | aws-cloudformation/cfn-lint | diff --git a/test/fixtures/templates/issues/sam_w_conditions.yaml b/test/fixtures/templates/issues/sam_w_conditions.yaml
new file mode 100644
index 000000000..1f1526870
--- /dev/null
+++ b/test/fixtures/templates/issues/sam_w_conditions.yaml
@@ -0,0 +1,413 @@
+AWSTemplateFormatVersion: 2010-09-09
+Transform: AWS::Serve... | [
"test/integration/test_good_templates.py::TestQuickStartTemplates::test_module_integration",
"test/integration/test_good_templates.py::TestQuickStartTemplates::test_templates"
] | [] | {
"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": [... |
7e514f46eb078a46051a2f0f9139a8340beb16b5 | 2024-10-18 16:57:49 | docker.io/swerebenchv2/aws-cloudformation-cfn-lint:3767-7e514f4 | aws-cloudformation__cfn-lint-3767 | Method: IdentityPolicyValidator.validate(self, validator: CfnTemplateValidator, policy: str, schema: dict, policy_type: Optional[Any] = None)
Location: src/cfnlint/rules/resources/iam/identity_policy.py
Inputs:
- validator – an instance of CfnTemplateValidator used to resolve intrinsic functions and provide context.
-... | python | MIT-0 | diff --git a/src/cfnlint/data/schemas/other/iam/policy.json b/src/cfnlint/data/schemas/other/iam/policy.json
index 0bbe33bed..99f30247c 100644
--- a/src/cfnlint/data/schemas/other/iam/policy.json
+++ b/src/cfnlint/data/schemas/other/iam/policy.json
@@ -68,6 +68,7 @@
]
},
"Condition": {
+ "additionalProperti... | Add additionalProps false to IAM conditions
*Issue #, if available:*
fix #3751
*Description of changes:*
- Add additionalProps false to IAM conditions
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
| AWS::IAM::ManagedPolicy Condition syntax error not detected
### CloudFormation Lint Version
cfn-lint 1.16.1
### What operating system are you using?
Linux
### Describe the bug
cfn-lint is not detecting missing Condition operator.
```shell
$ cfn-lint --format json --include-checks I -t ./demo-template... | aws-cloudformation/cfn-lint | diff --git a/test/unit/rules/resources/iam/test_identity_policy.py b/test/unit/rules/resources/iam/test_identity_policy.py
index 3ba94c683..ec145becd 100644
--- a/test/unit/rules/resources/iam/test_identity_policy.py
+++ b/test/unit/rules/resources/iam/test_identity_policy.py
@@ -162,3 +162,35 @@ class TestIdentityPoli... | [
"test/unit/rules/resources/iam/test_identity_policy.py::TestIdentityPolicies::test_string_statements_with_condition"
] | [
"test/unit/rules/resources/iam/test_identity_policy.py::TestIdentityPolicies::test_object_basic",
"test/unit/rules/resources/iam/test_identity_policy.py::TestIdentityPolicies::test_object_multiple_effect",
"test/unit/rules/resources/iam/test_identity_policy.py::TestIdentityPolicies::test_object_statements",
"... | {
"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": [... |
1f4b2db3207d2ff5ae53bc59f6475e1732f97867 | 2024-09-20 17:01:55 | docker.io/swerebenchv2/amaranth-lang-amaranth:1520-1f4b2db | amaranth-lang__amaranth-1520 | No new interfaces are introduced. | python | BSD-2-Clause | diff --git a/amaranth/back/rtlil.py b/amaranth/back/rtlil.py
index cecb11f..28f428c 100644
--- a/amaranth/back/rtlil.py
+++ b/amaranth/back/rtlil.py
@@ -1132,7 +1132,7 @@ class ModuleEmitter:
if cell.format is not None:
for chunk in cell.format.chunks:
if isinstance(chunk, str):
-... | back.rtlil: espace { and } in format string [0.5 backport]
Fixes #1518 | Format(data.Struct) gives YosysError
Running
```python
#!/usr/bin/env python3
from amaranth import Print, Module, Format, Signal
from amaranth.lib import data
from amaranth.back.verilog import convert
class A(data.Struct):
x: 8
b: 8
m = Module()
a = Signal(A)
m.d.sync += Print(Format("{}", a... | amaranth-lang/amaranth | diff --git a/tests/test_back_rtlil.py b/tests/test_back_rtlil.py
index e99bbdb..eefc399 100644
--- a/tests/test_back_rtlil.py
+++ b/tests/test_back_rtlil.py
@@ -2008,6 +2008,51 @@ class PrintTestCase(RTLILTestCase):
end
""")
+ def test_escape_curly(self):
+ m = Module()
+ m.d.comb +... | [
"tests/test_back_rtlil.py::PrintTestCase::test_escape_curly"
] | [
"tests/test_back_rtlil.py::TreeTestCase::test_tree",
"tests/test_back_rtlil.py::RHSTestCase::test_anyvalue",
"tests/test_back_rtlil.py::RHSTestCase::test_initial",
"tests/test_back_rtlil.py::RHSTestCase::test_operator_add_imm",
"tests/test_back_rtlil.py::RHSTestCase::test_operator_addsub",
"tests/test_bac... | {
"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": [... |
14353c9aeda10aa1a637dcf2441f745b9b61dbb3 | 2019-08-20 17:31:13 | docker.io/swerebenchv2/square-assistedinject:115-14353c9 | square__assistedinject-115 | No new interfaces are introduced. | kotlin | Apache-2.0 | diff --git a/assisted-inject-processor/src/main/java/com/squareup/inject/assisted/processor/AssistedInjectProcessor.kt b/assisted-inject-processor/src/main/java/com/squareup/inject/assisted/processor/AssistedInjectProcessor.kt
index 0c8772d..9f8e447 100644
--- a/assisted-inject-processor/src/main/java/com/squareup/inje... | Closes #113 | Feature Request: Distinguish between type/name mismatch in constructor vs factory interface
Summary: Currently, the AssistedInject compiler does not inform the user whether the name/type mismatch occurs at the interface/factory or during usage in the assist-injected constructor.
Example:
```kotlin
interface List... | square/AssistedInject | diff --git a/assisted-inject-processor/src/test/java/com/squareup/inject/assisted/processor/AssistedInjectProcessorTest.kt b/assisted-inject-processor/src/test/java/com/squareup/inject/assisted/processor/AssistedInjectProcessorTest.kt
index f8c2a08..d9448dc 100644
--- a/assisted-inject-processor/src/test/java/com/squar... | [
"duplicateAssisted (com.squareup.inject.assisted.processor.AssistedInjectProcessorTest)",
"factoryMethodInSupertypeWithGenerics (com.squareup.inject.assisted.processor.AssistedInjectProcessorTest)",
"primitive (com.squareup.inject.assisted.processor.AssistedInjectProcessorTest)",
"factoryCannotBePrivate (com.... | [] | {
"base_image_name": "kotlin-jdk-11",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
c86b1895a69c37abd6d4959da88440bfdfc20b57 | 2023-07-16 17:03:19 | docker.io/swerebenchv2/adobe-elixir-styler:58-c86b189 | adobe__elixir-styler-58 | Function: run(zipper, ctx)
Location: Styler.Style.ModuleDirectives.run/2
Inputs:
- **zipper** – a tuple `{{node_name, meta, children}, extra}` where `node_name` is an atom (e.g., `:def`, `:defp`, `:defmacro`, `:defmacrop` or a module directive such as `:use`, `:import`, etc.), `children` is a **list** of the node’s AST... | elixir | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5869b7c..16cea3a 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,10 @@
## main
+### Fixes
+
+* ModuleDirectives doesn't mistake variables for directives (#57, h/t @leandrocp)
+
## v0.8.0
### Improvements (Bug Fix!?)
diff --git a/lib/style/module_directives... | Fix module directives triggering on name colliding non-directives
Closes #57 | Incorrect transformation
## Versions
* Elixir: Elixir 1.16.0-dev (7795adc) (compiled with Erlang/OTP 26)
* Styler: locked at 0.8.0 (styler) 32c76963
## Example Input
This code:
```elixir
defp expand_alias({:__aliases__, _, _} = alias, env),
do: Macro.expand(alias, %{env | function: {:beacon_live_ad... | adobe/elixir-styler | diff --git a/test/style/module_directives_test.exs b/test/style/module_directives_test.exs
index c015a6e..5be45a6 100644
--- a/test/style/module_directives_test.exs
+++ b/test/style/module_directives_test.exs
@@ -211,6 +211,10 @@ defmodule Styler.Style.ModuleDirectivesTest do
end
describe "strange parents!" do
... | [
"strange parents! regression: doesn't trigger on variables"
] | [
"pipes + defs pipes doesnt abuse meta and break defs",
"displace_comments/2 Doesn't lose any comments",
"shift_comments/3 Moves comments after the specified line by the specified delta",
"displace_comments/2 Moves comments within the range to the start of the range",
"shift_comments/3 Doesn't lose any comme... | {
"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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
1f60a15c40f8c8d39ffcfbbbe0abe6e8d068658f | 2021-06-08 17:26:50 | docker.io/swerebenchv2/charite-jannovar:518-1f60a15 | charite__jannovar-518 | No new interfaces are introduced. | java | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index da275fb1..ee5425f0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -29,6 +29,7 @@
### jannovar-hgvs
* Fixing parsing of unchanged (`=`) for nucleic acide sequences (#493).
+* Fixing issue with HGVS `delins` with `del` bases but no `ins` bases (#491).
## v0.34
diff... | Fixing problem with HGVS delins with del bases but no ins bases (#491).
closes #491 | Problem parsing HGVS `delins`
I'm attempting to parse `NC_000007.14:g.32386323_32386325delGCins`, which arguably is invalid because it's missing the inserted sequence, but the parser is seeing the `GC` as the inserted sequence.
Running:
```
HGVSParser hgvsParser = new HGVSParser();
SingleAlleleNucleotideVariant v... | charite/jannovar | diff --git a/jannovar-hgvs/src/test/java/de/charite/compbio/jannovar/hgvs/parser/HGVSParserDriverNucleotideIndelTest.java b/jannovar-hgvs/src/test/java/de/charite/compbio/jannovar/hgvs/parser/HGVSParserDriverNucleotideIndelTest.java
index 10f3f599..17569ff6 100644
--- a/jannovar-hgvs/src/test/java/de/charite/compbio/ja... | [
"de.charite.compbio.jannovar.hgvs.parser.HGVSParserDriverNucleotideIndelTest",
"de.charite.compbio.jannovar.annotation.builders.SVTandemDuplicationAnnotationBuilderTest",
"de.charite.compbio.jannovar.annotation.builders.SVDuplicationAnnotationBuilderTest",
"de.charite.compbio.jannovar.annotation.builders.Anno... | [
"de.charite.compbio.jannovar.hgvs.parser.protein.change.HGVSParserProteinIndelTest",
"de.charite.compbio.jannovar.hgvs.parser.protein.change.HGVSParserProteinMiscChangeTest",
"de.charite.compbio.jannovar.hgvs.parser.protein.change.HGVSParserProteinDeletionTest",
"de.charite.compbio.jannovar.hgvs.parser.protei... | {
"base_image_name": "java_17",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"jav... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
b1be8f7290c1816c851fa4506d4613be719cc0a8 | 2017-10-25 19:50:05 | docker.io/swerebenchv2/kennethreitz-pipenv:976-b1be8f7 | kennethreitz__pipenv-976 | Method: Project.parsed_pipfile(self)
Location: Accessed via the `proj.parsed_pipfile` attribute on a `pipenv.project.Project` instance.
Inputs: None (uses the internal `_pipfile_location` to locate and read the Pipfile).
Outputs: Returns a dictionary representing the parsed Pipfile; raises **RuntimeError** if the Pipfi... | python | MIT | diff --git a/pipenv/project.py b/pipenv/project.py
index 027da542..36a2bd42 100644
--- a/pipenv/project.py
+++ b/pipenv/project.py
@@ -227,6 +227,14 @@ class Project(object):
with open(self.pipfile_location) as f:
contents = f.read()
+ sections = re.findall("\[[a-zA-Z-]+\]", contents)
+ ... | Fix #973 Fails if two conflicting "requires" sections are present.
Add a more explicit error message if a section of the Pipfile is duplicated | Fails if two conflicting "requires" sections are present.
I stumbled upon this since, at some point, an extra `requires` section was added to my `Pipifile`. I'm not able to reproduce the circumstances that lead to such a malformed configuration file, but still the reaction of `pipenv` is quite baffling.
##### Descr... | kennethreitz/pipenv | diff --git a/tests/test_project.py b/tests/test_project.py
index 3375415c..6436f58f 100644
--- a/tests/test_project.py
+++ b/tests/test_project.py
@@ -1,4 +1,5 @@
import pipenv.project
+import pytest
from pipenv.vendor import delegator
@@ -153,3 +154,22 @@ class TestProject():
assert lockfile['_meta']['h... | [
"tests/test_project.py::TestProject::test_duplicate_sections"
] | [
"tests/test_project.py::TestProject::test_proper_names",
"tests/test_project.py::TestProject::test_download_location",
"tests/test_project.py::TestProject::test_parsed_pipfile",
"tests/test_project.py::TestProject::test_internal_pipfile",
"tests/test_project.py::TestProject::test_internal_lockfile"
] | {
"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.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
e689f5fa40725ca8e3352f337565d329f03ec058 | 2018-12-14 11:41:45 | docker.io/swerebenchv2/gcanti-fp-ts:676-e689f5f | gcanti__fp-ts-676 | No new interfaces are introduced. | ts | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2331a224..f2feece9 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -14,6 +14,11 @@
**Note**: Gaps between patch versions are faulty/broken releases. **Note**: A feature tagged as Experimental is in a
high state of flux, you're at risk of it changing without notice.
+# ... | Bug Fix: array.map should be safe when executed with a binary functio…
…n, fix #675
| Array map is unsafe (Regression)
We've switched back to standard Js array map function.
I've seen some code breaking due to that change.
Here's a repro:
```typescript
describe('array map is unsafe', () => {
it('is as unsafe as native array map function', () => {
interface Foo {
bar: () => number
... | gcanti/fp-ts | diff --git a/test/Array.ts b/test/Array.ts
index 8c2d0fdd..ff50a717 100644
--- a/test/Array.ts
+++ b/test/Array.ts
@@ -717,4 +717,13 @@ describe('Array', () => {
assert.deepEqual(difference(setoidNumber)([1, 2], [2, 3]), [1])
assert.deepEqual(difference(setoidNumber)([1, 2], [1, 2]), [])
})
+
+ it('should... | [
"should be safe when calling map with a binary function"
] | [
"trace",
"spy",
"traceA",
"traceM",
"eval",
"exec",
"put",
"get",
"modify",
"gets",
"map",
"ap",
"chain",
"applyFirst",
"applySecond",
"fold",
"getRecordSemigroup",
"getMeetSemigroup",
"getJoinSemigroup",
"getProductSemigroup",
"getArraySemigroup",
"getDictionarySemigroup",... | {
"base_image_name": "node_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,
"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": [... |
510d7281fff6c739b360800d0294accb9b545c17 | 2023-05-01 18:10:12 | docker.io/swerebenchv2/pallets-werkzeug:2686-510d728 | pallets__werkzeug-2686 | Method: Authorization.from_header(cls, header) Location: src/werkzeug/datastructures/auth.py
Inputs:
- **header** (str | None): The raw ``Authorization`` header value. May be ``None``. When present, the method expects a scheme (e.g., ``Token``) followed by either a token string or a ``key=value`` list. The implementat... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index 402d3bba..0a37fd89 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -5,6 +5,9 @@ Version 2.3.4
Unreleased
+- ``Authorization.from_header`` detects tokens that end with base64 padding (``=``).
+ :issue:`2685`
+
Version 2.3.3
-------------
diff --git a/src/werkzeug/... | Make werkzeug.http.parse_dict_header avoid base64 padding
Strip off trailing `=` characters before parsing to avoid chopping up tokens.
Fixes #2685
Checklist:
- [x] Add tests that demonstrate the correct behavior of the change. Tests should fail without the change.
- [x] Add or update relevant docs, in the ... | Authorization.from_header with "Token" scheme cannot handle base64 padding on tokens
# Steps to reproduce
```
import base64
from werkzeug.datastructures.auth import Authorization
token = base64.encodebytes(b"This has base64 padding").decode("utf-8").strip()
a = Authorization.from_header(f"Token {token}")
a.toke... | pallets/werkzeug | diff --git a/tests/test_http.py b/tests/test_http.py
index 5ceb7ef5..8f21c12a 100644
--- a/tests/test_http.py
+++ b/tests/test_http.py
@@ -203,6 +203,19 @@ class TestHTTPUtility:
assert Authorization.from_header(None) is None
assert Authorization.from_header("foo").type == "foo"
+ def test_author... | [
"tests/test_http.py::TestHTTPUtility::test_authorization_token_padding"
] | [
"tests/test_http.py::TestHTTPUtility::test_accept",
"tests/test_http.py::TestHTTPUtility::test_accept_parameter_with_space",
"tests/test_http.py::TestHTTPUtility::test_mime_accept",
"tests/test_http.py::TestHTTPUtility::test_accept_matches",
"tests/test_http.py::TestHTTPUtility::test_accept_mime_specificity... | {
"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": [... |
f07301abc157892751ab525e830917ae756be84b | 2023-06-06 15:25:33 | docker.io/swerebenchv2/cveproject-cve-services:1078-f07301a | cveproject__cve-services-1078 | Method: ORG_CREATE_SINGLE(req, res, next)
Location: src/controller/org.controller/org.controller.js
Inputs:
- **req**: object containing
- `ctx.uuid` (string) – request‑level identifier,
- `ctx.repositories.getOrgRepository` (function) – returns an OrgRepository instance,
- `ctx.repositories.getUserReposit... | js | CC0-1.0 | diff --git a/src/controller/org.controller/org.controller.js b/src/controller/org.controller/org.controller.js
index 68ee2e94..bf0ae657 100644
--- a/src/controller/org.controller/org.controller.js
+++ b/src/controller/org.controller/org.controller.js
@@ -287,6 +287,10 @@ async function createOrg (req, res, next) {
... | Resolves #1066 implemented ADP id_quota to be set to 0 and created tests
Closes Issue #1066
# Summary
Implemented logic to set newly created orgs with only the ADP role to have an Id_quota of 0, regardless of what is sent in the request.
# Important Changes
`org.controller.js`
- Added id_quota logic in creat... | Ensure new Organizations with only APD role have ID_quota of 0
## Summary
New organizations that only have the ADP role should have an ID_quota of 0, because they can't reserve Cve-Ids. Organizations that also have the CNA role can have an ID_quota above 0.
### Note: If an org has both the ADP and CNA roles, they ... | CVEProject/cve-services | diff --git a/test/unit-tests/org/orgCreateADPTest.js b/test/unit-tests/org/orgCreateADPTest.js
new file mode 100644
index 00000000..aaf726b8
--- /dev/null
+++ b/test/unit-tests/org/orgCreateADPTest.js
@@ -0,0 +1,104 @@
+const chai = require('chai')
+const sinon = require('sinon')
+const { faker } = require('@faker-js/f... | [
"Should return newly created org with id_quota of 0 and ADP role"
] | [
"should return 400 when cveId does not exist",
"should return 403 when cveId does not belong to cveId owning org",
"should return 403 when cve record does exist",
"should return 400 when cve record is not valid",
"Post cna container as secretariat",
"Post cna container as user",
"should return 403 when ... | {
"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": [... |
b0750af5875c4aceb52ae38970c21514b4d30d11 | 2021-12-25 20:35:30 | docker.io/swerebenchv2/theacodes-nox:535-b0750af | theacodes__nox-535 | Method: CondaEnv.bin_paths(self)
Location: nox.virtualenv.CondaEnv class, property returning List[str] of directories that should be added to PATH for a conda environment.
Inputs: None (uses internal `self.location` and the module‑level `_SYSTEM` flag to decide platform).
Outputs: On Windows returns a list containing t... | python | Apache-2.0 | diff --git a/nox/virtualenv.py b/nox/virtualenv.py
index 501118f..4d928ab 100644
--- a/nox/virtualenv.py
+++ b/nox/virtualenv.py
@@ -231,9 +231,16 @@ class CondaEnv(ProcessEnv):
@property
def bin_paths(self) -> List[str]:
"""Returns the location of the conda env's bin folder."""
- # see https:... | Correct bin paths in CondaEnv for Windows
Closes #514. | conda bin_paths are missing `Library\...` subdirectories on windows
<!-- Thank you for filing a bug! Please feel free to answer as much or as little of this template as you can. -->
**Describe the bug**
When running python code that requires external executables from `conda` packages - i.e. `ipopt`, they cannot b... | theacodes/nox | diff --git a/tests/test_virtualenv.py b/tests/test_virtualenv.py
index c1df711..441eaa8 100644
--- a/tests/test_virtualenv.py
+++ b/tests/test_virtualenv.py
@@ -230,7 +230,14 @@ def test_conda_env_create_verbose(make_conda):
@mock.patch("nox.virtualenv._SYSTEM", new="Windows")
def test_condaenv_bin_windows(make_conda... | [
"tests/test_virtualenv.py::test_condaenv_bin_windows"
] | [
"tests/test_virtualenv.py::test_process_env_constructor",
"tests/test_virtualenv.py::test_process_env_create",
"tests/test_virtualenv.py::test_condaenv_constructor_defaults",
"tests/test_virtualenv.py::test_condaenv_constructor_explicit",
"tests/test_virtualenv.py::test_condaenv_create",
"tests/test_virtu... | {
"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": [... |
4f71db6d61f4fdc73b89cc3edb4eca3bd932a792 | 2022-08-19 12:20:15 | docker.io/swerebenchv2/weaveworks-eksctl:5643-4f71db6 | weaveworks__eksctl-5643 | No new interfaces are introduced. | go | custom-check-github | diff --git a/pkg/actions/nodegroup/get.go b/pkg/actions/nodegroup/get.go
index fbcf5552d..9c8d8c329 100644
--- a/pkg/actions/nodegroup/get.go
+++ b/pkg/actions/nodegroup/get.go
@@ -82,17 +82,10 @@ func (m *Manager) getManagedSummaries(ctx context.Context) ([]*Summary, error) {
}
for _, ngName := range managedNode... | Return StackName field when getting a single managed nodegroup
### Description
Fixes #5544
When using `eksctl get nodegroup` for a single managed nodegroup (i.e. using the `--name` flag), the StackName field was always returned empty.
This PR fixes the issue.
Manual test output
```
tiberiu-weave@192-168-0... | [Bug] eksctl get nodegroup fails to return StackName for a single nodegroup
<!--
Thank you for opening this bug report! You are helping make eksctl a better project :)
In order to help us process this issue faster, please provide as much detail as possible.
When providing command examples, error output or code sam... | weaveworks/eksctl | diff --git a/pkg/actions/nodegroup/get_test.go b/pkg/actions/nodegroup/get_test.go
index 5addeff7a..72d40909e 100644
--- a/pkg/actions/nodegroup/get_test.go
+++ b/pkg/actions/nodegroup/get_test.go
@@ -551,12 +551,12 @@ var _ = Describe("Get", func() {
}, nil)
})
- It("returns the summary", func() {
+ It("ret... | [
"TestNodegroup"
] | [
"TestAddon",
"TestAnywhere",
"TestCluster",
"TestFargate",
"TestGitops",
"TestEKS",
"TestIRSA",
"TestKarpenter",
"TestLabel",
"TestAddonsDefault",
"TestAMI",
"TestUseAMI",
"TestUseAMI/0:_Root_device_mapping_not_at_index_0_(Windows_AMIs_in_some_regions)",
"TestUseAMI/1:_Only_one_device_mapp... | {
"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": [... |
4ea9ffafbee78c8aa60a9b18420e17027849e850 | 2025-05-02 00:57:49 | docker.io/swerebenchv2/hdmf-dev-hdmf:1270-4ea9ffa | hdmf-dev__hdmf-1270 | No new interfaces are introduced. | python | custom-check-github | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f1fd924..faad9dc 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -15,6 +15,9 @@
- Restricted numcodecs dependency to <0.16 due to incompatibility with the latest zarr<3 version. @rly [#1257](https://github.com/hdmf-dev/hdmf/pull/1257)
- Increased minimum requirement for ... | Fix get_data_shape for list of Data
## Motivation
Fix #1269
## How to test the behavior?
See tests
## Checklist
- [x] Did you update `CHANGELOG.md` with your changes?
- [x] Does the PR clearly describe the problem and the solution?
- [x] Have you reviewed our [Contributing Guide](https://github.com/hdmf-dev/hdmf/bl... | [Bug]: get_data_shape on list of Data objects is incorrect
### What happened?
`get_data_shape` is used in many places, including shape validation and getting dimension labels. In NWB, an `Image` neurodata type is a descendent of `Data`, i.e., a dataset. `ImageReferences` has a field that stores a 1-D list/array of `Im... | hdmf-dev/hdmf | diff --git a/tests/unit/utils_test/test_utils.py b/tests/unit/utils_test/test_utils.py
index 6a6e0bc..3b8fb10 100644
--- a/tests/unit/utils_test/test_utils.py
+++ b/tests/unit/utils_test/test_utils.py
@@ -2,6 +2,7 @@ import os
import h5py
import numpy as np
+from hdmf.container import Data
from hdmf.data_utils imp... | [
"tests/unit/utils_test/test_utils.py::TestGetDataShape::test_list_with_Data_objects"
] | [
"tests/unit/utils_test/test_utils.py::TestGetDataShape::test_arbitrary_iterable_with_len",
"tests/unit/utils_test/test_utils.py::TestGetDataShape::test_dataio",
"tests/unit/utils_test/test_utils.py::TestGetDataShape::test_dci",
"tests/unit/utils_test/test_utils.py::TestGetDataShape::test_h5dataset",
"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": [... |
dcca01d6f88a0f015d172b1a795a9aa06c436631 | 2023-05-18 14:07:52 | docker.io/swerebenchv2/maskingtechnology-jitar:294-dcca01d | maskingtechnology__jitar-294 | No new interfaces are introduced. | ts | MIT | diff --git a/packages/runtime/src/services/ProcedureRuntime.ts b/packages/runtime/src/services/ProcedureRuntime.ts
index 5cbe0ea..dc0b7b9 100644
--- a/packages/runtime/src/services/ProcedureRuntime.ts
+++ b/packages/runtime/src/services/ProcedureRuntime.ts
@@ -15,7 +15,7 @@ export default abstract class ProcedureRuntim... | feat(runtime): Reversed middleware execution order
Fixes #290
Changes proposed in this pull request:
- Reversed the execution order of the middleware (first added gets executed first)
@MaskingTechnology/jitar
| Reverse the execution order of the registered middleware
Currently the registered middleware is executed in reverse order. This is a bit confusing, so we need to reverse the execution order. | MaskingTechnology/jitar | diff --git a/packages/runtime/test/_fixtures/interfaces/Middleware.fixture.ts b/packages/runtime/test/_fixtures/interfaces/Middleware.fixture.ts
index 5c0f863..4ef0c1e 100644
--- a/packages/runtime/test/_fixtures/interfaces/Middleware.fixture.ts
+++ b/packages/runtime/test/_fixtures/interfaces/Middleware.fixture.ts
@@ ... | [
"packages/runtime/test/services/ProcedureRuntime.spec.ts > services/ProcedureRuntime > .handle(fqn, version, args, headers > should execute the middleware in the correct order"
] | [
"packages/runtime/test/utils/UrlRewriter.spec.ts > runtime/utils/UrlRewriter > .addBase(url, base) > should add the base to the url",
"packages/runtime/test/utils/UrlRewriter.spec.ts > runtime/utils/UrlRewriter > .addBase(url, base) > should add the base to the url without a slash",
"packages/runtime/test/utils... | {
"base_image_name": "node_20",
"docker_specs": null,
"install": [
"npm install"
],
"log_parser": "parse_log_js_4",
"test_cmd": "npx vitest run --reporter=verbose --no-color"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
5c1a24cf0beb3a63c9d000fd8fdcded85f9b6df7 | 2023-06-13 19:51:24 | docker.io/swerebenchv2/algorand-indexer:1543-5c1a24c | algorand__indexer-1543 | Function: buildTransactionQuery(tf idb.TransactionFilter) (query string, whereArgs []interface{}, err error)
Location: idb/postgres/postgres.go
Inputs:
- tf: idb.TransactionFilter containing optional time filters:
- BeforeTime (time.Time): if non‑zero, will be converted to UTC before being added to whereArgs.
- Aft... | go | MIT | diff --git a/api/converter_utils.go b/api/converter_utils.go
index 6f483bf..c486b72 100644
--- a/api/converter_utils.go
+++ b/api/converter_utils.go
@@ -328,26 +328,29 @@ func signedTxnWithAdToTransaction(stxn *sdk.SignedTxnWithAD, extra rowData) (gen
}
keyreg = &k
case sdk.AssetConfigTx:
- assetParams := gene... | api: Convert timezones before txn query
## Summary
Fixes #458
## Test Plan
Added unit tests. | Query parameters after-time and before-time for /v2/transactions always assume UTC even if a different timezone is specified
## Summary
Query parameters after-time and before-time for /v2/transactions always assume UTC even if a different timezone is specified.
```bash
$ curl -s "https://testnet.algoexplorerapi.... | algorand/indexer | diff --git a/api/handlers_e2e_test.go b/api/handlers_e2e_test.go
index 1fb3aaf..07fd8a1 100644
--- a/api/handlers_e2e_test.go
+++ b/api/handlers_e2e_test.go
@@ -2305,13 +2305,31 @@ func TestAssetDelete(t *testing.T) {
})
}
+ // Look up apars to make sure they're not there
+ resp, data := makeRequest(t, listenAdd... | [
"Test_buildTransactionQueryTime",
"Test_buildTransactionQueryTime/BeforeTime_AfterTime_Conversion"
] | [
"TestToDisabledMapConfigFromFile",
"TestToDisabledMapConfig",
"TestToDisabledMapConfig/test_1",
"TestSchemaCheck",
"TestSchemaCheck/test_param_types_-_good",
"TestSchemaCheck/test_param_types_-_bad_required",
"TestSchemaCheck/test_param_types_-_bad_optional",
"TestSchemaCheck/test_param_types_-_bad_bo... | {
"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.10",
"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": [... |
6b125d97eb2ad1682f73e13c9ad6cea1fe075728 | 2023-03-10 05:29:30 | docker.io/swerebenchv2/swiftlang-swift-syntax:1402-6b125d9 | swiftlang__swift-syntax-1402 | No new interfaces are introduced. | swift | Apache-2.0 | diff --git a/Sources/SwiftDiagnostics/DiagnosticsFormatter.swift b/Sources/SwiftDiagnostics/DiagnosticsFormatter.swift
index ea1c9fd2943..758455853df 100644
--- a/Sources/SwiftDiagnostics/DiagnosticsFormatter.swift
+++ b/Sources/SwiftDiagnostics/DiagnosticsFormatter.swift
@@ -227,7 +227,13 @@ public struct DiagnosticsF... | When printing the filename header for diagnostics, also include the line at which the displqy starts using the standard `:<line number>` format, which is recognized by various tools to quickly go to that source file and line.
Fixes https://github.com/apple/swift-syntax/issues/1385. | Swift error reporting style removed complete `path:line:col` information
### Description
The new error formatting does the following:
```
=== /Users/ktoso/code/swift-project/swift/stdlib/public/core/SIMDVector.swift ===
┆
61 │
62 │ /// A type that can be used as an element in a SIMD vector.
63 │ p... | swiftlang/swift-syntax | diff --git a/Tests/SwiftDiagnosticsTest/GroupDiagnosticsFormatterTests.swift b/Tests/SwiftDiagnosticsTest/GroupDiagnosticsFormatterTests.swift
index f7ff4ff81f4..1ef3f403292 100644
--- a/Tests/SwiftDiagnosticsTest/GroupDiagnosticsFormatterTests.swift
+++ b/Tests/SwiftDiagnosticsTest/GroupDiagnosticsFormatterTests.swift... | [
"GroupedDiagnosticsFormatterTests.testGroupingForDoubleNestedMacroExpansion",
"GroupedDiagnosticsFormatterTests.testGroupingForMacroExpansion"
] | [
"FormatRawStringLiteralTest.testDelimiterPlacement",
"IntegerLiteralUtilitiesTest.testRadixMatching",
"IntegerLiteralUtilitiesTest.testSplit",
"MigrateToNewIfLetSyntaxTest.testConditions",
"MigrateToNewIfLetSyntaxTest.testIdempotence",
"MigrateToNewIfLetSyntaxTest.testIfStmt",
"MigrateToNewIfLetSyntaxTe... | {
"base_image_name": "swift_base",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
b960579fa73725224f25b3a9089f74a87686cfd8 | 2023-04-27 15:48:33 | docker.io/swerebenchv2/yandex-yatagan:55-b960579 | yandex__yatagan-55 | No new interfaces are introduced. | kotlin | Apache-2.0 | diff --git a/core/graph/impl/src/main/kotlin/BindingGraphImpl.kt b/core/graph/impl/src/main/kotlin/BindingGraphImpl.kt
index 02d103aa..77d61328 100644
--- a/core/graph/impl/src/main/kotlin/BindingGraphImpl.kt
+++ b/core/graph/impl/src/main/kotlin/BindingGraphImpl.kt
@@ -139,7 +139,7 @@ internal class BindingGraphImpl(
... | If the alias is included into a super component, while another dependent alias
is included into a sub, and the string representation of a list-binding is
queried, which involves resolving the second alias in the sub - crash!
This CL fixes long existing graph building inconsistency -
if an alias is included fro... | `IllegalStateException: Not reached: missing binding` with alias included into parent component
Crash
```
Caused by: java.lang.IllegalStateException: Not reached: missing binding for <...>
at com.yandex.yatagan.core.graph.impl.BindingGraphImpl.resolveBindingRaw(BindingGraphImpl.kt:142)
at com.yandex... | yandex/yatagan | diff --git a/testing/tests/src/test/kotlin/CoreBindingsFailureTest.kt b/testing/tests/src/test/kotlin/CoreBindingsFailureTest.kt
index 4415da7f..81fdd5cf 100644
--- a/testing/tests/src/test/kotlin/CoreBindingsFailureTest.kt
+++ b/testing/tests/src/test/kotlin/CoreBindingsFailureTest.kt
@@ -577,6 +577,44 @@ class CoreBi... | [
"test constructors[JAP] (com.yandex.yatagan.lang.TypeDeclarationTest)",
"test superclass[JAP] (com.yandex.yatagan.lang.TypeDeclarationTest)",
"test interfaces[JAP] (com.yandex.yatagan.lang.TypeDeclarationTest)",
"test kind[JAP] (com.yandex.yatagan.lang.TypeDeclarationTest)",
"test enclosingType + nestedClas... | [] | {
"base_image_name": "kotlin-jdk-11",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
ae3cfdbacd0db530c6f4e5bae4ca9f7d0ef89aec | 2024-02-02 07:35:42 | docker.io/swerebenchv2/hotmeteor-spectator:182-ae3cfdb | hotmeteor__spectator-182 | No new interfaces are introduced. | php | MIT | diff --git a/src/Validation/RequestValidator.php b/src/Validation/RequestValidator.php
index d4bba26..f874713 100644
--- a/src/Validation/RequestValidator.php
+++ b/src/Validation/RequestValidator.php
@@ -149,12 +149,6 @@ class RequestValidator extends AbstractValidator
protected function validateBody(): void
... | Fix request validation for request only having uploaded file
Fixes #154 | Request body required for file uploads in Laravel tests
Hello! My case is following for uploading single file in Laravel tests. Error first:
```
ErrorException: Request body required.
Failed asserting that true is false.
/var/www/html/vendor/laravel/framework/src/Illuminate/Macroable/Traits/Macroable.php:123
/va... | hotmeteor/spectator | diff --git a/tests/Fixtures/Upload.yml b/tests/Fixtures/Upload.yml
new file mode 100644
index 0000000..7c8c35e
--- /dev/null
+++ b/tests/Fixtures/Upload.yml
@@ -0,0 +1,27 @@
+openapi: 3.0.0
+info:
+ title: Upload.v1
+ version: '1.0'
+servers:
+ - url: 'http://localhost:3000'
+paths:
+ /upload:
+ post:
+ req... | [
"Request Validator > Validates upload file"
] | [
"Assertions > Asserts invalid path",
"Assertions > Fails asserts invalid path",
"Assertions > Fails asserts invalid path without exception handling",
"Assertions > Exception points to mixin method",
"Assertions > Asserts path exists",
"Assertions > Asserts path does not exist",
"Middleware > Only proces... | {
"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 --colors=never --testdox"
} | {
"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": [... |
a0c9efc4689ad8920933903a237190bcdc206c8d | 2022-06-20 16:05:19 | docker.io/swerebenchv2/jsonpickle-jsonpickle:393-a0c9efc | jsonpickle__jsonpickle-393 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/jsonpickle/unpickler.py b/jsonpickle/unpickler.py
index 7dd3422..9886d99 100644
--- a/jsonpickle/unpickler.py
+++ b/jsonpickle/unpickler.py
@@ -624,7 +624,13 @@ class Unpickler(object):
continue
else:
if not k.startswith('__'):
- setattr... | Fix numpy.poly1d encoding roundtrip
Fixes #391 | Issues when deserializing `numpy.poly1d`
I want to transfer an object containing a `numpy.poly1d` property using jsonpickle. Is this something that could be enabled by `jsonpickle` and its numpy extension or is the recommended way to treat this within `__getstate__` and `__setstate__`?
Either way, I would have expec... | jsonpickle/jsonpickle | diff --git a/tests/numpy_test.py b/tests/numpy_test.py
index ac48302..c9c64b6 100644
--- a/tests/numpy_test.py
+++ b/tests/numpy_test.py
@@ -372,5 +372,11 @@ def test_np_random():
assert expect == actual
+def test_np_poly1d():
+ # issue 391, test poly1d roundtrip
+ obj = np.poly1d([1, 2, 3])
+ ass... | [
"tests/numpy_test.py::test_np_poly1d"
] | [
"tests/numpy_test.py::flake-8::FLAKE8",
"tests/numpy_test.py::test_ndarray_roundtrip",
"tests/numpy_test.py::test_shapes_containing_zeroes",
"tests/numpy_test.py::test_accuracy",
"tests/numpy_test.py::test_b64",
"tests/numpy_test.py::test_views",
"tests/numpy_test.py::test_strides",
"tests/numpy_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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
81b26d8d1f374064e3fe410caaa4cfb072fbc952 | 2016-09-29 10:56:46 | docker.io/swerebenchv2/rwjblue-ember-template-lint:113-81b26d8 | rwjblue__ember-template-lint-113 | No new interfaces are introduced. | js | MIT | diff --git a/lib/rules/lint-invalid-interactive.js b/lib/rules/lint-invalid-interactive.js
index b9b385b..847060d 100644
--- a/lib/rules/lint-invalid-interactive.js
+++ b/lib/rules/lint-invalid-interactive.js
@@ -11,12 +11,23 @@ module.exports = function(addonContext) {
return parseConfig(this.ruleName, config);
... | [BUGFIX] Honor `additionalInteractiveTags` option in `invalid-interactive` rule
Closes #101 | invalid-interactive additionalInteractiveTags not working?
I have this:
```<form {{action 'foo' on="submit"}}>```
and its failing the invalid-interactive check. We don't have buttons in the form, but we want to be able to submit the form with the enter key for accessibility. It seems like it should be okay for ... | rwjblue/ember-template-lint | diff --git a/test/unit/rules/lint-invalid-interactive-test.js b/test/unit/rules/lint-invalid-interactive-test.js
index 1361363..0074553 100644
--- a/test/unit/rules/lint-invalid-interactive-test.js
+++ b/test/unit/rules/lint-invalid-interactive-test.js
@@ -10,7 +10,15 @@ generateRuleTests({
good: [
'<button {{a... | [
"invalid-interactive passes when given `<div {{action \"foo\"}}></div>`:",
"invalid-interactive passes when given `<div onclick={{action \"foo\"}}></div>`:"
] | [
"public api Linter.prototype.loadConfig uses provided config:",
"public api Linter.prototype.loadConfig uses .template-lintrc.js in cwd if present:",
"public api Linter.prototype.loadConfig uses .template-lintrc in provided configPath:",
"public api Linter.prototype.constructor should be able to instantiate 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.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
941dc8f82d4c254c06f4c332d5083bfa1141c4a1 | 2020-08-12 16:55:22 | docker.io/swerebenchv2/roskakori-pygount:57-941dc8f | roskakori__pygount-57 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/dev-requirements.txt b/dev-requirements.txt
index 4c21f46..9478992 100644
--- a/dev-requirements.txt
+++ b/dev-requirements.txt
@@ -1,11 +1,11 @@
black==19.10b0; python_version >= '3.6'
chardet==3.0.4
-coverage==5.1
-coveralls==2.0.0
+coverage==5.2.1
+coveralls==2.1.2
pre-commit==2.6.0; python_version >... | #56 Fixed scanning of "." (current folder)
Closes #56. | "pygount ." does nothing
For some reason pygount . does nothing and just exits, but pygount `pwd` works. | roskakori/pygount | diff --git a/tests/test_analysis.py b/tests/test_analysis.py
index fbd1957..aa829fb 100644
--- a/tests/test_analysis.py
+++ b/tests/test_analysis.py
@@ -55,6 +55,14 @@ class SourceScannerTest(TempFolderTest):
scanned_names = [os.path.basename(source_path) for source_path, _ in scanner.source_paths()]
... | [
"tests/test_analysis.py::SourceScannerTest::test_can_find_python_files_in_dot"
] | [
"tests/test_analysis.py::SourceScannerTest::test_can_find_any_files",
"tests/test_analysis.py::SourceScannerTest::test_can_find_no_files",
"tests/test_analysis.py::SourceScannerTest::test_can_find_python_files",
"tests/test_analysis.py::SourceScannerTest::test_can_skip_dot_folder",
"tests/test_analysis.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": [... |
287e7685e0e963f3fb44d92832ca97ac8c265c40 | 2025-04-02 17:48:48 | docker.io/swerebenchv2/cta-observatory-ctapipe:2732-287e768 | cta-observatory__ctapipe-2732 | Function: radial_light_distribution(image, pixel_fov_lon, pixel_fov_lat, center_fov_lon, center_fov_lat)
Location: src/ctapipe/image/muon/features.py
Inputs:
- **image**: 2‑D numpy array of pixel intensities (float, may contain zeros)
- **pixel_fov_lon**, **pixel_fov_lat**: 2‑D arrays of longitude/latitude coordinates ... | python | BSD-3-Clause | diff --git a/docs/changes/2732.bugfix.rst b/docs/changes/2732.bugfix.rst
new file mode 100644
index 00000000..d5ded894
--- /dev/null
+++ b/docs/changes/2732.bugfix.rst
@@ -0,0 +1,1 @@
+Fix units (absence of) for skewness and excess kurtosis in muon analysis
diff --git a/src/ctapipe/image/muon/features.py b/src/ctapipe/... | Force absences of units for skewness and excess_kurtosis
Explicitly convert (dimensionless) skewness and excess_kurtosis to values
Closes #2730 | DataWriter: Caught unexpected exception: 'float' object has no attribute 'to_value'
**Describe the bug**
Looks like we can not write the muonparameters_skewness during the muon analysis
Error writing col muonparameters_skewness of container MuonParametersContainer
**To Reproduce**
```
ctapipe-process --overwrite --in... | cta-observatory/ctapipe | diff --git a/src/ctapipe/image/muon/tests/test_muon_features.py b/src/ctapipe/image/muon/tests/test_muon_features.py
index 0ed8e104..b9f44ed8 100644
--- a/src/ctapipe/image/muon/tests/test_muon_features.py
+++ b/src/ctapipe/image/muon/tests/test_muon_features.py
@@ -142,6 +142,12 @@ def test_radial_light_distribution()... | [
"src/ctapipe/image/muon/tests/test_muon_features.py::test_radial_light_distribution"
] | [
"src/ctapipe/image/muon/tests/test_muon_features.py::test_ring_containment",
"src/ctapipe/image/muon/tests/test_muon_features.py::test_ring_completeness",
"src/ctapipe/image/muon/tests/test_muon_features.py::test_ring_intensity_parameters",
"src/ctapipe/image/muon/tests/test_muon_features.py::test_radial_ligh... | {
"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": [... |
01138f24ca8def8a7ad71c7a00edd18c1a0a25c4 | 2016-05-18 14:30:13 | docker.io/swerebenchv2/lorenwest-node-config:322-01138f2 | lorenwest__node-config-322 | No new interfaces are introduced. | js | custom-check-github | diff --git a/lib/config.js b/lib/config.js
index 048b6d5..8f66a36 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -1417,7 +1417,10 @@ util.extendDeep = function(mergeInto) {
// Copy property descriptor otherwise, preserving accessors
else {
- Object.defineProperty(mergeInto, prop, Object.getOwn... | Fix #321 - TypeError: Property description must be an object: undefined | TypeError: Property description must be an object: undefined
With the latest version, 1.20.2, I get the following error when trying to use the util.extendDeep() function:
```
.../node_modules/config/lib/config.js:1420
Object.defineProperty(mergeInto, prop, Object.getOwnPropertyDescriptor(Object(mergeFrom),... | lorenwest/node-config | diff --git a/test/8-config-extending.js b/test/8-config-extending.js
new file mode 100644
index 0000000..e53ea79
--- /dev/null
+++ b/test/8-config-extending.js
@@ -0,0 +1,46 @@
+
+// Dependencies
+var vows = require('vows'),
+ assert = require('assert'),
+ path = require('path');
+
+// Change the configuratio... | [
"Extending a configuration with another configuration should work without error",
"OK » 166 honored"
] | [
"Library is available",
"The function exists",
"Correctly identifies objects",
"Correctly excludes non-objects",
"Original and copy should test equivalent (deep)",
"The objects should be different",
"Object clones should be objects",
"Array clones should be arrays",
"Arrays should be copied by value... | {
"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": [... |
d584b2a791d1e7de4cc1c11876e4ab019d175b13 | 2021-06-30 21:44:13 | docker.io/swerebenchv2/cqfn-diktat:947-d584b2a | cqfn__diktat-947 | Function: lintMethod(content: String, fileName: String, rulesConfigList: List<RulesConfig>)
Location: LintTestBase (used in PackageNamingWarnTest)
Inputs:
- **content** – Kotlin source code to be lint‑checked (as a raw string).
- **fileName** – Path of the file being analysed; used by rules (e.g., PackageNaming) to app... | kotlin | MIT | diff --git a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter1/PackageNaming.kt b/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter1/PackageNaming.kt
index c6cadf5bc1..08218b2f4d 100644
--- a/diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter1/PackageNaming.kt
+++ b/di... | What's done:
* Disabled rule for buildSrc directory
Closes #915 | package naming: Allow default package in kotlin files in buildSrc
For example, because of old and well-known bug in gradle, a common pattern to use `object Versions {...}` to describe all versions requires `Versions` to be from default package. | cqfn/diKTat | diff --git a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter1/PackageNamingWarnTest.kt b/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter1/PackageNamingWarnTest.kt
index 674a17102c..30cc776207 100644
--- a/diktat-rules/src/test/kotlin/org/cqfn/diktat/ruleset/chapter1/PackageNamingWarnTest.kt
++... | [
"org.cqfn.diktat.ruleset.chapter1.PackageNamingWarnTest"
] | [
"org.cqfn.diktat.test.ConfigReaderTest",
"org.cqfn.diktat.ruleset.utils.AstNodeUtilsTest",
"org.cqfn.diktat.ruleset.utils.AvailableRulesDocTest",
"org.cqfn.diktat.ruleset.utils.FunctionAstNodeUtilsTest",
"org.cqfn.diktat.ruleset.utils.KotlinParserTest",
"org.cqfn.diktat.ruleset.utils.StringCaseUtilsTest",... | {
"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.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
16a6405460cf231ef12df773beab47ac2b14a06f | 2019-11-18 18:11:20 | docker.io/swerebenchv2/adamchainz-flake8-comprehensions:200-16a6405 | adamchainz__flake8-comprehensions-200 | No new interfaces are introduced. | python | MIT | diff --git a/HISTORY.rst b/HISTORY.rst
index 93287ab..3d066a2 100644
--- a/HISTORY.rst
+++ b/HISTORY.rst
@@ -2,6 +2,12 @@
History
=======
+Pending
+-------
+
+* Fix false positives in ``C416`` rule for list comprehensions returning
+ tuples.
+
3.1.1 (2019-11-16)
------------------
diff --git a/src/flake8_compr... | Fix false positives in C416 for list comprehensions returning tuples
Fixes #198. | C416 false positive with sequences as comprehension elements
The example below produces a C416 ("Unnecessary list comprehension - rewrite using list()"):
```py
input = [
(1, 1),
(1, 1),
(1, 1),
]
output = [(x, y, 1) for x, y in input]
```
I suspect it is because both an input and output element is ... | adamchainz/flake8-comprehensions | diff --git a/tests/test_flake8_comprehensions.py b/tests/test_flake8_comprehensions.py
index 60c4e18..c52109b 100644
--- a/tests/test_flake8_comprehensions.py
+++ b/tests/test_flake8_comprehensions.py
@@ -942,12 +942,18 @@ def test_C416_pass_2_async_list(flake8dir):
@python_3_7_plus
-def test_C416_pass_2_async_set... | [
"tests/test_flake8_comprehensions.py::test_C416_pass_4_tuples"
] | [
"tests/test_flake8_comprehensions.py::test_version",
"tests/test_flake8_comprehensions.py::test_C400_pass_1",
"tests/test_flake8_comprehensions.py::test_C400_fail_1",
"tests/test_flake8_comprehensions.py::test_C400_fail_2",
"tests/test_flake8_comprehensions.py::test_C401_pass_1",
"tests/test_flake8_compre... | {
"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.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
2be3e47e3b1ad1073de54fad9e260e57117ca3c6 | 2025-01-14 03:29:47 | docker.io/swerebenchv2/scalameta-scalameta:4144-2be3e47 | scalameta__scalameta-4144 | No new interfaces are introduced. | scala | BSD-3-Clause | diff --git a/semanticdb/scalac/library/src/main/scala/scala/meta/internal/semanticdb/scalac/TextDocumentOps.scala b/semanticdb/scalac/library/src/main/scala/scala/meta/internal/semanticdb/scalac/TextDocumentOps.scala
index 66e179c91d..497268ae70 100644
--- a/semanticdb/scalac/library/src/main/scala/scala/meta/internal/... | Fixes #4136. | Deprecated pointing to empty when using empty package
`deprecated => _empty_/` instead of `deprecated => scala/deprecated#` for:
```
@deprecated(since = "123")
class CLS(name: String) {
def this(name2: Int) = this(name = name2.toString)
}
```
This only happens for Scala 2.13.x | scalameta/scalameta | diff --git a/tests-semanticdb/src/test/scala/scala/meta/tests/semanticdb/TargetedSuite.scala b/tests-semanticdb/src/test/scala/scala/meta/tests/semanticdb/TargetedSuite.scala
index 073eb015c1..3e0ebd4ac2 100644
--- a/tests-semanticdb/src/test/scala/scala/meta/tests/semanticdb/TargetedSuite.scala
+++ b/tests-semanticdb/... | [
"named-args"
] | [
"A & B",
"A | B",
"[X] =>> (X, X)",
"[_] =>> Unit",
"inline def f = 1",
"open trait a",
"extension [A, B](i: A)(using a: F[A], G[B]) def isZero = i == 0",
"extension (i: A) {\\n def isZero = i == 0\\n def isOne = i == 1\\n}",
"def foo(implicit a: A, b: B): Unit",
"enum Day[T](e: T) extends A wit... | {
"base_image_name": "scala_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": [... |
1278eaade7da311d203fc6c33f67f85c828a09f2 | 2018-09-18 06:48:39 | docker.io/swerebenchv2/sinonjs-lolex:209-1278eaa | sinonjs__lolex-209 | Method: Clock.tick(ms)
Location: Clock instance method.
Inputs: ms – Number of milliseconds to advance the virtual clock.
Outputs: void (advances internal time counters; updates `now` and `hrNow` accordingly).
Description: Moves the fake clock forward by the specified amount, triggering any timers that become due.
Met... | js | BSD-3-Clause | diff --git a/src/lolex-src.js b/src/lolex-src.js
index 14f55ca..f0bddf8 100644
--- a/src/lolex-src.js
+++ b/src/lolex-src.js
@@ -727,6 +727,7 @@ function withGlobal(_global) {
clock.timers = {};
clock.jobs = [];
clock.now = getEpoch(start);
+ clock.hrNow = 0;
}... | fix: reset high resolution timer on clock.reset
#### Purpose (TL;DR) - mandatory
Fixes #206 | reset() does not reset high-resolution timer
* Lolex version : 2.7.4
**What did you expect to happen?**
`reset()` resets the high-resolution timer.
**What actually happens**
The high-resolution timer is not reset.
**How to reproduce**
```js
const clock = lolex.install()
clock.now === 0
clock.tick(2... | sinonjs/lolex | diff --git a/test/lolex-test.js b/test/lolex-test.js
index 6684870..6fbdab3 100644
--- a/test/lolex-test.js
+++ b/test/lolex-test.js
@@ -1308,6 +1308,14 @@ describe("lolex", function () {
assert.equals(clock.now, 10000);
clock.uninstall();
});
+
+ it("resets hrTime - issue #206... | [
"resets hrTime - issue #206"
] | [
"should install and uninstall the clock on a custom target",
"should install with date object",
"should overflow to 1 on very big timeouts",
"should overflow to interval 1 on very big timeouts",
"should execute setTimeout smaller than 1",
"executes setTimeout with negative duration as if it has zero delay... | {
"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": [... |
e8292c356d7a386a33ab9feba74585830eb9276b | 2023-06-23 19:51:33 | docker.io/swerebenchv2/openmdao-openmdao:2952-e8292c3 | openmdao__openmdao-2952 | Method: Problem.list_pre_post(self, outfile=None)
Location: openmdao/core/problem.py (or the file where the Problem class is defined)
Inputs:
- outfile (str or file‑like, optional): Destination for the printed pre‑ and post‑order listings; if omitted, defaults to ``sys.stdout``.
Outputs:
- Returns ``None``; writes the ... | python | custom-check-github | diff --git a/openmdao/utils/om.py b/openmdao/utils/om.py
index a4a439e92..94b8c056d 100644
--- a/openmdao/utils/om.py
+++ b/openmdao/utils/om.py
@@ -430,7 +430,7 @@ def _list_pre_post_cmd(options, user_args):
Args to be passed to the user script.
"""
def _list_pre_post(prob):
- prob.model.list... | fixed list_pre_post issue
### Summary
Command list_pre_post was broken.
### Related Issues
- Resolves #2951
### Backwards incompatibilities
None
### New Dependencies
None
| openmdao list_pre_post is broken
### Description
An internal method was moved from Group to Problem and the command line code tries to call it on the model.
### Example
```python
openmdao list_pre_post <any openmdao script>
```
### OpenMDAO Version
3.26.1-dev
### Relevant environment information
_No response_ | OpenMDAO/OpenMDAO | diff --git a/openmdao/utils/tests/test_cmdline.py b/openmdao/utils/tests/test_cmdline.py
index 66a983ebb..c5747724f 100644
--- a/openmdao/utils/tests/test_cmdline.py
+++ b/openmdao/utils/tests/test_cmdline.py
@@ -48,6 +48,7 @@ cmd_tests = [
('openmdao iprof_totals {}'.format(os.path.join(scriptdir, 'circle_opt.py'... | [
"openmdao/utils/tests/test_cmdline.py::CmdlineTestCase::test_cmd_openmdao_list_pre_post_/OpenMDAO/openmdao/test_suite/scripts/circle_opt.py"
] | [
"openmdao/utils/tests/test_cmdline.py::CmdlineTestCase::test_cmd_openmdao_call_tree_openmdao.components.exec_comp.ExecComp.setup",
"openmdao/utils/tests/test_cmdline.py::CmdlineTestCase::test_cmd_openmdao_check_/OpenMDAO/openmdao/test_suite/scripts/circle_opt.py",
"openmdao/utils/tests/test_cmdline.py::CmdlineT... | {
"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": [... |
051605fe71a7a5f4d1a82be407545f1d4552ac72 | 2025-05-08 23:47:39 | docker.io/swerebenchv2/leifg-formulon:1239-051605f | leifg__formulon-1239 | Function: greaterThan(arg1: TimeLiteral, arg2: TimeLiteral)
Location: src/functionDispatcher.js
Inputs: Two time literals (e.g., result of `buildTimeLiteral(milliseconds)`). Both arguments must be of the same type and of type “time”.
Outputs: Boolean literal (`true` or `false`) wrapped as a checkbox literal. Returns `t... | js | MIT | diff --git a/src/functionDispatcher.js b/src/functionDispatcher.js
index 1472e60..1aefb71 100644
--- a/src/functionDispatcher.js
+++ b/src/functionDispatcher.js
@@ -111,11 +111,11 @@ const existingFunctions = {
returnType: 'text',
},
greaterThan: {
- validations: [minNumOfParams(2), maxNumOfParams(2), par... | Make time comparable
closes #1238
| Make time comparable
Simple formula like this returns an error:
```
TIMENOW() >= TIMEVALUE("04:00:00")
``` | leifg/formulon | diff --git a/test/unit/functions.spec.js b/test/unit/functions.spec.js
index fe0c2b7..526d07e 100644
--- a/test/unit/functions.spec.js
+++ b/test/unit/functions.spec.js
@@ -840,6 +840,20 @@ describe('greaterThan', () => {
});
});
+ describe('Time', () => {
+ it('greater than', () => {
+ expect(dispat... | [
"test/unit/functions.spec.js > greaterThan > Time > greater than",
"test/unit/functions.spec.js > greaterThan > Time > smaller than",
"test/unit/functions.spec.js > greaterThan > Time > equal",
"test/unit/functions.spec.js > greaterThanOrEqual > Time > greater than",
"test/unit/functions.spec.js > greaterTh... | [
"test/unit/functionDispatcher.spec.js > dispatch > valid input > correctly returns result",
"test/unit/validations.spec.js > maxNumOfParams > exact length > throws no error",
"test/unit/validations.spec.js > maxNumOfParams > less parameters than expected > throws no error",
"test/unit/validations.spec.js > ma... | {
"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.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
51c359cb1e2500b914450c1f67c3a65e5f89aade | 2025-03-08 22:48:59 | docker.io/swerebenchv2/pyqtgraph-pyqtgraph:3278-51c359c | pyqtgraph__pyqtgraph-3278 | Method: PlotDataItem.setData(self, *args, **kargs)
Location: pyqtgraph/graphicsItems/PlotDataItem.py
Inputs:
- *args can be either:
* two array-like objects (x, y) – legacy usage,
* a single NumPy array (including recarray or structured array) whose dtype has named fields “x” and/or “y”, or a dictionary of lists w... | python | custom-check-github | diff --git a/pyqtgraph/graphicsItems/PlotDataItem.py b/pyqtgraph/graphicsItems/PlotDataItem.py
index 9d7c7f85..90aa8ce3 100644
--- a/pyqtgraph/graphicsItems/PlotDataItem.py
+++ b/pyqtgraph/graphicsItems/PlotDataItem.py
@@ -1160,7 +1160,12 @@ class PlotDataItem(GraphicsObject):
elif dt == 'Nx2array':
... | Fix recarray support in PlotDataItem
Fixes #3275
I'm not sure if this ever worked. As far as I know, `recarray` hasn't supported this kind of membership check, and it doesn't make sense semantically for normal `ndarray`.
During my testing, I figured normal arrays with named fields might also be worth supporting.... | TypeError when using a record array to plot data
<!-- In the following, please describe your issue in detail! -->
<!-- If some sections do not apply, just remove them. -->
### Short description
<!-- This should summarize the issue. -->
Using a NumPy record array as data to plot results in the following:
`TypeError: Ca... | pyqtgraph/pyqtgraph | diff --git a/tests/graphicsItems/test_PlotDataItem.py b/tests/graphicsItems/test_PlotDataItem.py
index 3a190005..82ed94e6 100644
--- a/tests/graphicsItems/test_PlotDataItem.py
+++ b/tests/graphicsItems/test_PlotDataItem.py
@@ -81,7 +81,21 @@ def test_setData():
pdi.setData([],[])
assert pdi.xData is None
... | [
"tests/graphicsItems/test_PlotDataItem.py::test_setData"
] | [
"tests/graphicsItems/test_PlotDataItem.py::test_bool",
"tests/graphicsItems/test_PlotDataItem.py::test_bound_formats",
"tests/graphicsItems/test_PlotDataItem.py::test_fft",
"tests/graphicsItems/test_PlotDataItem.py::test_nonfinite",
"tests/graphicsItems/test_PlotDataItem.py::test_opts",
"tests/graphicsIte... | {
"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": [... |
4c7399eaeb77fae762a96e6aaa714ac591d6661a | 2021-03-05 09:02:44 | docker.io/swerebenchv2/pallets-click:1805-4c7399e | pallets__click-1805 | Method: click.core.Parameter._convert(self, value, level)
Location: src/click/core.py (inside class Parameter)
Inputs:
- **value** – the raw default or provided value (any type).
- **level** – recursion depth used to handle nested iterables (int).
Outputs:
- Returns the value converted to the appropriate ty... | python | BSD-3-Clause | diff --git a/CHANGES.rst b/CHANGES.rst
index d3795e1..ac11bf3 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -182,6 +182,8 @@ Unreleased
previous item. :issue:`1353`
- The ``Path`` param type can be passed ``path_type=pathlib.Path`` to
return a path object instead of a string. :issue:`405`
+- ``TypeError`... | Better error message for bad parameter default
Added a `try` block to check whether the default value provided to an option with `multiple=True` is a valid iterable. If the value is not a valid iterable, a `TypeError` with a better error message is raised.
- fixes #1749
Checklist:
- [x] Add tests that demonst... | Traceback when CLI option has bad default could be more helpful
### Expected Behavior
In the following command, I add an option `--multiple` with the metadata `multiple=True`, but the default `False` instead of `[False]`.
Ideally, the traceback should indicate that the `--multiple` option has a bad default.
``... | pallets/click | diff --git a/tests/test_options.py b/tests/test_options.py
index 128b860..65109d6 100644
--- a/tests/test_options.py
+++ b/tests/test_options.py
@@ -117,6 +117,20 @@ def test_multiple_required(runner):
assert "Error: Missing option '-m' / '--message'." in result.output
+def test_multiple_bad_default(runner):
+... | [
"tests/test_options.py::test_multiple_bad_default"
] | [
"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.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
33e8b438be6ec1c923b435076f1e64c6017f1f89 | 2020-02-02 18:27:23 | docker.io/swerebenchv2/pebbletemplates-pebble:496-33e8b43 | pebbletemplates__pebble-496 | Method: Scope.getKeys()
Location: com.mitchellbosecke.pebble.template.Scope
Inputs: (none)
Outputs: Set<String> – the set of variable names (keys) stored in this scope’s backing map
Description: Returns a read‑only view of all keys defined in the current scope, enabling callers to enumerate the variables available in t... | java | BSD-3-Clause | diff --git a/pebble/src/main/java/com/mitchellbosecke/pebble/template/Scope.java b/pebble/src/main/java/com/mitchellbosecke/pebble/template/Scope.java
index 8b09a5d9..b1600175 100644
--- a/pebble/src/main/java/com/mitchellbosecke/pebble/template/Scope.java
+++ b/pebble/src/main/java/com/mitchellbosecke/pebble/template/... | Allow to retrieve all variable names of a Scope
Resolves #291 | Allow all variable names to be retrieve from ScopeChain/Scope
Hi,
I want to write a custom function to return all the variable names available from the current context (it's very valuable for debugging purpose). I can get ScopeChain from EvaluationContext, but there is no method exposed to retrieve all the keys fro... | PebbleTemplates/pebble | diff --git a/pebble/src/test/java/com/mitchellbosecke/pebble/ScopeTest.java b/pebble/src/test/java/com/mitchellbosecke/pebble/ScopeTest.java
new file mode 100644
index 00000000..8ef59acb
--- /dev/null
+++ b/pebble/src/test/java/com/mitchellbosecke/pebble/ScopeTest.java
@@ -0,0 +1,28 @@
+package com.mitchellbosecke.pebb... | [
"com.mitchellbosecke.pebble.node.expression.UnaryNotExpressionTest",
"com.mitchellbosecke.pebble.node.expression.StringExpressionParserTest",
"com.mitchellbosecke.pebble.node.expression.AndExpressionTest",
"com.mitchellbosecke.pebble.node.expression.OrExpressionTest",
"com.mitchellbosecke.pebble.node.IfNode... | [] | {
"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.99,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
7f469d56cdcdbefc7e2e6a98c3f6359dbf01103f | 2024-02-09 11:18:57 | docker.io/swerebenchv2/pymodbus-dev-pymodbus:1987-7f469d5 | pymodbus-dev__pymodbus-1987 | Method: ModbusBaseClient.async_execute(self, request)
Location: pymodbus/client/base.py, class ModbusBaseClient
Inputs:
- request (ModbusRequest): the Modbus request to be sent; for broadcast writes the `slave_id` is falsy (e.g., 0 or None) and `broadcast_enable` must be True.
Outputs:
- Optional[ModbusResponse]: ret... | python | custom-check-github | diff --git a/pymodbus/client/base.py b/pymodbus/client/base.py
index e0772cf5..2cd9270d 100644
--- a/pymodbus/client/base.py
+++ b/pymodbus/client/base.py
@@ -161,7 +161,7 @@ class ModbusBaseClient(ModbusClientMixin[Awaitable[ModbusResponse]], ModbusProto
if not count or not self.no_resend_on_retry:
... | Return None for broadcast
<!-- Please raise your PR's against the `dev` branch instead of `master` -->
fixes #1985 | Solve bytes return in base.py
Reminder for myself,
This should be changed to None or an empty ModbusResponse
line 163-165 in base.py
if self.broadcast_enable and not request.slave_id:
resp = b"Broadcast write sent - no response expected"
break
these are the lines in async_execute which cause there to be a byt... | pymodbus-dev/pymodbus | diff --git a/test/sub_client/test_client.py b/test/sub_client/test_client.py
index a75ba1bc..298fb41e 100755
--- a/test/sub_client/test_client.py
+++ b/test/sub_client/test_client.py
@@ -424,8 +424,7 @@ async def test_client_execute_broadcast():
transport = MockTransport(base, request)
base.connection_made(tr... | [
"test/sub_client/test_client.py::test_client_execute_broadcast"
] | [
"test/sub_client/test_client.py::test_client_mixin[read_coils-1-ReadCoilsRequest-arglist0]",
"test/sub_client/test_client.py::test_client_mixin[read_discrete_inputs-1-ReadDiscreteInputsRequest-arglist0]",
"test/sub_client/test_client.py::test_client_mixin[read_holding_registers-1-ReadHoldingRegistersRequest-arg... | {
"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": [... |
85ff62b9c9218f523ef7ff0535cde7cbf55ebb7b | 2024-05-21 09:58:35 | docker.io/swerebenchv2/pennylaneai-pennylane:5716-85ff62b | pennylaneai__pennylane-5716 | No new interfaces are introduced. | python | Apache-2.0 | diff --git a/doc/releases/changelog-dev.md b/doc/releases/changelog-dev.md
index bd4e5f0ff..9d88744ff 100644
--- a/doc/releases/changelog-dev.md
+++ b/doc/releases/changelog-dev.md
@@ -144,6 +144,9 @@
<h3>Bug fixes 🐛</h3>
+* The decomposition of `StronglyEntanglingLayers` is now compatible with broadcasting.
+ [... | Fix decomposition of `StronglyEntanglingLayers` with broadcasting
**Context:**
The decomposition of `StronglyEntanglingLayers` "almost" takes broadcasting into account: The indexing into the `weights` tensor is fine, but the number of layers is not determined correctly, leading to flawed indexing, and in particular to... | Issue when using batched data on StronglyEntanglingLayers template.[BUG]
### Expected behavior
I want to use the StronglyEntanglingLayers template to process batched data. the shape of the data is like [batch_size, layers, wires, 3].
### Actual behavior
Some errors happened:
```
.../pennylane/templates/layers/st... | PennyLaneAI/pennylane | diff --git a/tests/templates/test_layers/test_strongly_entangling.py b/tests/templates/test_layers/test_strongly_entangling.py
index d02bbe67e..ed9839b84 100644
--- a/tests/templates/test_layers/test_strongly_entangling.py
+++ b/tests/templates/test_layers/test_strongly_entangling.py
@@ -36,6 +36,7 @@ def test_standard... | [
"tests/templates/test_layers/test_strongly_entangling.py::TestDecomposition::test_expansion[1-weight_shape0-expected_names0-expected_wires0-3]",
"tests/templates/test_layers/test_strongly_entangling.py::TestDecomposition::test_expansion[2-weight_shape1-expected_names1-expected_wires1-3]",
"tests/templates/test_... | [
"tests/templates/test_layers/test_strongly_entangling.py::test_standard_validity",
"tests/templates/test_layers/test_strongly_entangling.py::TestDecomposition::test_expansion[1-weight_shape0-expected_names0-expected_wires0-None]",
"tests/templates/test_layers/test_strongly_entangling.py::TestDecomposition::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": [... |
f01709f9ba656e7cf4399bcd1a0a07fd134b0aec | 2023-03-23 11:36:20 | docker.io/swerebenchv2/getmoto-moto:6114-f01709f | getmoto__moto-6114 | Method: client.describe_db_clusters(DBClusterIdentifier)
Location: tests/test_rds/test_rds_clusters.py
Inputs: DBClusterIdentifier – string; may be a plain DB‑cluster identifier (e.g., “cluster-id2”) **or** a full ARN (e.g., “arn:aws:rds:us‑east‑1:123456789012:cluster:cluster-id2”). The method will parse an ARN to obta... | python | Apache-2.0 | diff --git a/moto/rds/models.py b/moto/rds/models.py
index 9a670c2fd..a89db9e2e 100644
--- a/moto/rds/models.py
+++ b/moto/rds/models.py
@@ -1950,6 +1950,9 @@ class RDSBackend(BaseBackend):
def describe_db_clusters(self, cluster_identifier):
if cluster_identifier:
+ # ARN to identifier
+ ... | RDS: describe_db_clusters() now accepts an ARN as identifier
Fixes #6109 | RDS describe_db_clusters is returning cluster not found when passing ClusterArn Filter for DBClusterIdentifier
RDS describe_db_clusters is returning cluster not found when passing ClusterArn Filter for DBClusterIdentifier. Boto3 allow passing either ClusterArn or DBClusterIdentifier passed as filter to look up db clust... | getmoto/moto | diff --git a/tests/test_rds/test_rds_clusters.py b/tests/test_rds/test_rds_clusters.py
index e78ffb9ad..d5e1be474 100644
--- a/tests/test_rds/test_rds_clusters.py
+++ b/tests/test_rds/test_rds_clusters.py
@@ -250,12 +250,12 @@ def test_describe_db_cluster_after_creation():
MasterUserPassword="hunter2_",
)... | [
"tests/test_rds/test_rds_clusters.py::test_describe_db_cluster_after_creation"
] | [
"tests/test_rds/test_rds_clusters.py::test_describe_db_cluster_initial",
"tests/test_rds/test_rds_clusters.py::test_describe_db_cluster_fails_for_non_existent_cluster",
"tests/test_rds/test_rds_clusters.py::test_create_db_cluster_needs_master_username",
"tests/test_rds/test_rds_clusters.py::test_create_db_clu... | {
"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": [... |
1995292b2d75c4335cf2afc7fb8a421ad8157ee0 | 2023-10-18 15:38:33 | docker.io/swerebenchv2/agnostiqhq-covalent:1837-1995292 | agnostiqhq__covalent-1837 | Method: Electron.__pow__(self, other)
Location: covalent/_workflow/electron.py → class Electron
Inputs:
- **self**: an instance of Electron representing the left‑hand operand.
- **other**: the right‑hand operand (any type accepted by the underlying operation, typically a number or another Electron).
Outputs:
- Return... | python | Apache-2.0 | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 9dc84c08..756d14cf 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -35,6 +35,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added
- Documentation and test cases for database triggers.
+- Added the `__pow__` method to the `Elec... | fixes #1835
<!--
⚠️ Your pull request title should be short detailed and understandable for all.
⚠️ Add a note to /CHANGELOG.md summarizing the changes.
⚠️ If your pull request fixes an open issue, please link to the issue.
⚠️ Ensure that your branch is up-to-date with the base branch.
-->
#1835
- [x] I have ad... | Overloading the `__pow__` method in Electron class
Something as simple as the following would fail to dispatch right now because Electron class doesn't have the `__pow__` method defined similar to `__add__`, `__mul__`, etc.. Adding that would solve the issue.
```python
@ct.electron
def g(x):
return 42 * x
... | AgnostiqHQ/covalent | diff --git a/tests/covalent_tests/workflow/electron_test.py b/tests/covalent_tests/workflow/electron_test.py
index 18d6cedc..5b9f45a7 100644
--- a/tests/covalent_tests/workflow/electron_test.py
+++ b/tests/covalent_tests/workflow/electron_test.py
@@ -17,7 +17,7 @@
"""Unit tests for electron"""
import json
-from uni... | [
"tests/covalent_tests/workflow/electron_test.py::test_electron_pow_method"
] | [
"tests/covalent_tests/workflow/electron_test.py::test_build_sublattice_graph",
"tests/covalent_tests/workflow/electron_test.py::test_build_sublattice_graph_fallback",
"tests/covalent_tests/workflow/electron_test.py::test_wait_for_building",
"tests/covalent_tests/workflow/electron_test.py::test_wait_for_post_p... | {
"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": [... |
f15380286c45c4569afebea3f51a92b6cfb17abb | 2021-03-10 19:23:31 | docker.io/swerebenchv2/alteryx-woodwork:687-f153802 | alteryx__woodwork-687 | No new interfaces are introduced. | python | BSD-3-Clause | diff --git a/docs/source/release_notes.rst b/docs/source/release_notes.rst
index ffaa1e8..0544466 100644
--- a/docs/source/release_notes.rst
+++ b/docs/source/release_notes.rst
@@ -7,6 +7,7 @@ Release Notes
* Fixes
* Changes
* Restrict Koalas version to ``<1.7.0`` due to breaking changes (:pr:`674`)
... | Include unique columns in DataTable mutual information calculations
- Allows unique columns to be included as a part of the mutual information calculations
- Closes #676 | Remove uniqueness logic in mutual info
- MI should not look at uniqueness of a column for calculating MI.
- This is for the current DataTable implementation. | alteryx/woodwork | diff --git a/woodwork/tests/datatable/test_datatable.py b/woodwork/tests/datatable/test_datatable.py
index a80e698..e2d8765 100644
--- a/woodwork/tests/datatable/test_datatable.py
+++ b/woodwork/tests/datatable/test_datatable.py
@@ -959,7 +959,8 @@ def test_datatable_mutual_information(df_mi):
pd.testing.assert_fr... | [
"woodwork/tests/datatable/test_datatable.py::test_datatable_mutual_information[df_mi_pandas]",
"woodwork/tests/datatable/test_datatable.py::test_mutual_info_unique[df_mi_unique_pandas]"
] | [
"woodwork/tests/datatable/test_datatable.py::test_datatable_df_property[sample_df_pandas]",
"woodwork/tests/datatable/test_datatable.py::test_datatable_with_numeric_datetime_time_index[time_index_df_pandas]",
"woodwork/tests/datatable/test_datatable.py::test_datatable_with_numeric_time_index[time_index_df_panda... | {
"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": [... |
d3decad6216251eaa1c4041be3eaabeef3bb7521 | 2020-04-28 14:31:30 | docker.io/swerebenchv2/stretchr-testify:937-d3decad | stretchr__testify-937 | No new interfaces are introduced. | go | MIT | diff --git a/mock/mock.go b/mock/mock.go
index a6d9526..c6df448 100644
--- a/mock/mock.go
+++ b/mock/mock.go
@@ -855,7 +855,7 @@ func (args Arguments) String(indexOrNil ...int) string {
// normal String() method - return a string representation of the args
var argsStr []string
for _, arg := range args {
- ar... | mock: callString to handle nil nicely
## Summary
Fixes a regression in `testify/mock`.
## Changes
Handle nil in Arguments.String() by employing fmt.Sprint().
## Motivation
A regression introduced while replacing `fmt.Sprint()` with `reflect.TypeOf(arg)` in `Arguments.String()`: `reflect.TypeOf(nil)` returns `nil... | Panic in mock.Arguments.String
A regression in callString():
```
panic(0x28ff20, 0xdd3bc0)
/usr/local/go/src/runtime/panic.go:967 +0x166
github.com/stretchr/testify/mock.Arguments.String(0xc000474840, 0x2, 0x2, 0x0, 0x0, 0x0, 0x1, 0x1)
third-party-source/go/github.com/stretchr/testify/mock/mock.go:833 +0xd1
git... | stretchr/testify | diff --git a/mock/mock_test.go b/mock/mock_test.go
index 1b681aa..cb49541 100644
--- a/mock/mock_test.go
+++ b/mock/mock_test.go
@@ -778,6 +778,7 @@ func Test_Mock_findExpectedCall_Respects_Repeatability(t *testing.T) {
func Test_callString(t *testing.T) {
assert.Equal(t, `Method(int,bool,string)`, callString("Met... | [
"Test_callString",
"Test_Mock_Called",
"Test_Mock_Called_blocks",
"Test_Mock_Called_For_Bounded_Repeatability",
"Test_Mock_Called_For_SetTime_Expectation",
"Test_Mock_Called_Unexpected",
"Test_AssertExpectationsForObjects_Helper",
"Test_AssertExpectationsForObjects_Helper_Failed",
"Test_Mock_AssertE... | [
"TestImports",
"TestCompare",
"TestGreater",
"TestGreaterOrEqual",
"TestLess",
"TestLessOrEqual",
"Test_compareTwoValuesDifferentValuesTypes",
"Test_compareTwoValuesNotComparableValues",
"Test_compareTwoValuesCorrectCompareResult",
"Test_containsValue",
"TestObjectsAreEqual",
"TestImplements",... | {
"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": [... |
5624359551750c9adbb7ad67745a69677cf3259d | 2022-11-05 21:30:52 | docker.io/swerebenchv2/platers-obsidian-linter:478-5624359 | platers__obsidian-linter-478 | No new interfaces are introduced. | ts | MIT | diff --git a/src/rules/format-yaml-arrays.ts b/src/rules/format-yaml-arrays.ts
index eabbf93..c3ee018 100644
--- a/src/rules/format-yaml-arrays.ts
+++ b/src/rules/format-yaml-arrays.ts
@@ -49,11 +49,6 @@ export default class RuleTemplate extends RuleBuilder<FormatYamlArrayOptions> {
return text;
}
- ... | Don't call format array for non-arrays
Fixes #477 | Bug: `Format Yaml Array` rule breaks nested YAML objects
## Describe the Bug
`Format Yaml Array` rule breaks nested YAML objects
## How to Reproduce
Steps to reproduce the behavior:
``` markdown
---
key1:
key2: value2
key3:
- item1
- item2
---
```
## Expected Behavior
Not changed
... | platers/obsidian-linter | diff --git a/__tests__/format-yaml-arrays.test.ts b/__tests__/format-yaml-arrays.test.ts
index 77c6060..a7c7c94 100644
--- a/__tests__/format-yaml-arrays.test.ts
+++ b/__tests__/format-yaml-arrays.test.ts
@@ -785,5 +785,29 @@ ruleTest({
---
`,
},
+ {
+ testName: 'Nested objects are preserve... | [
"Nested objects are preserved"
] | [
"Make sure that removing keys only works on the entire key not just a part",
"When the sort changes the yaml contents and yaml timestamp date modified is active, update date modified value",
"Sort works with dictionary Yaml value",
"Inits yaml if it does not exist",
"Inits yaml when the file has --- in it a... | {
"base_image_name": "node_20",
"docker_specs": null,
"install": [
"npm ci"
],
"log_parser": "parse_log_js_4",
"test_cmd": "npx jest --verbose --no-color"
} | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
60075a5a7389d638d535c85f3706739e9ba932bc | 2022-09-12 14:51:37 | docker.io/swerebenchv2/preactjs-preact-render-to-string:246-60075a5 | preactjs__preact-render-to-string-246 | No new interfaces are introduced. | js | MIT | diff --git a/.changeset/curly-bananas-do.md b/.changeset/curly-bananas-do.md
new file mode 100644
index 0000000..4df000d
--- /dev/null
+++ b/.changeset/curly-bananas-do.md
@@ -0,0 +1,5 @@
+---
+'preact-render-to-string': patch
+---
+
+Fix object and function children being rendered as `undefined`
diff --git a/src/index... | Ignore non-VNode objects during rendering
This fixes #245. | Object children are rendered as `<undefined>`
```js
import render from "https://esm.sh/preact-render-to-string@5.2.4?deps=preact@10.11.0";
import { h } from "https://esm.sh/preact@10.11.0";
console.log(render(h("div", null, { hello: "world" })));
```
```shell
$ deno run test.ts
<div><undefined></undefined></di... | preactjs/preact-render-to-string | diff --git a/test/jsx.test.js b/test/jsx.test.js
index 733ebaf..403b888 100644
--- a/test/jsx.test.js
+++ b/test/jsx.test.js
@@ -163,4 +163,12 @@ describe('jsx', () => {
<meta charset="utf-8" />
`);
});
+
+ it('should prevent JSON injection', () => {
+ expect(renderJsx(<div>{{ hello: 'world' }}</div>)).to.equ... | [
"should prevent JSON injection",
"should not render function children",
"should not duplicate class attribute when className is empty"
] | [
"exposes renderToString as default",
"exposes render as a named export",
"exposes renderToString as a named export",
"exposes renderToStaticMarkup as a named export",
"exposes shallowRender as a named export",
"should render as JSX",
"should not render empty class or style DOM attributes",
"should ren... | {
"base_image_name": "node_20",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.96,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
4d1c32038c8d287befe41f8be096047b77b1435f | 2021-01-29 17:46:27 | docker.io/swerebenchv2/pinojs-pino-http:121-4d1c320 | pinojs__pino-http-121 | Function: reqCustomProps(req, res)
Location: option passed to the `pino-http` logger constructor (e.g., `require('pino-http')({ reqCustomProps: … })`)
Inputs:
- **req**: the Node.js HTTP request object (`http.IncomingMessage`) for the current request.
- **res**: the Node.js HTTP response object (`http.ServerResponse... | js | MIT | diff --git a/README.md b/README.md
index 77b7a1a..11865ba 100644
--- a/README.md
+++ b/README.md
@@ -105,7 +105,7 @@ $ node example.js | pino-pretty
* `customErrorMessage`: set to a `function (err, res) => { /* returns message string */ }` This function will be invoked at each failed response, setting "msg" property t... | fix: add res to reqCustomProp function signature
Added `res` object as additional function parameter to the `reqCustomProps` function
Non-breaking now, but function name will need to be changed in next semver major update, will add PR after this is merged to reuse the branch.
Updated `README.md` and `test.js` with ... | Add res properties to custom props
The function `reqCustomProps` only has access to the `req` object, but best practice is to store data scoped to the request in `res.locals`, to which there is no access in `reqCustomProps`.
Does `res.locals` automatically get logged?
If not I'd be happy to open a pull request as it ... | pinojs/pino-http | diff --git a/test.js b/test.js
index ec21782..eb79221 100644
--- a/test.js
+++ b/test.js
@@ -761,8 +761,8 @@ test('uses custom log object attribute keys when provided, error request', funct
test('uses custom request properties to log additional attributes when provided', function (t) {
var dest = split(JSON.parse... | [
"test.js",
"test.js :: should not error",
"test.js :: req is defined",
"test.js :: res is defined",
"test.js :: message is set",
"test.js :: method is get",
"test.js :: statusCode is 200",
"test.js :: default settings",
"test.js :: stream in options",
"test.js :: should be equal",
"test.js :: ex... | [] | {
"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": [... |
8b24739e668c6939ae29231ea623b0e84f7902e2 | 2018-11-19 19:55:48 | docker.io/swerebenchv2/vaskoz-dailycodingproblem-go:188-8b24739 | vaskoz__dailycodingproblem-go-188 | Function: IsValidBST(root *BST) bool
Location: day89/problem.go
Inputs: root – pointer to a BST node (or nil). The BST struct contains `Value int`, `Left *BST`, and `Right *BST`. The root may be an empty tree or any binary tree to be validated.
Outputs: bool – returns `true` if the entire tree satisfies the binary sear... | go | MIT | diff --git a/README.md b/README.md
index fc4f1e4..56aaefc 100644
--- a/README.md
+++ b/README.md
@@ -98,3 +98,4 @@ problems from
* [Day 86](https://github.com/vaskoz/dailycodingproblem-go/issues/181)
* [Day 87](https://github.com/vaskoz/dailycodingproblem-go/issues/183)
* [Day 88](https://github.com/vaskoz/dailycodi... | Day89
Resolves #187. | Day 89
Good morning! Here's your coding interview problem for today.
This problem was asked by LinkedIn.
Determine whether a tree is a valid binary search tree.
A binary search tree is a tree with two children, left and right, and satisfies the constraint that the key in the left child must be less than or equ... | vaskoz/dailycodingproblem-go | diff --git a/day89/problem_test.go b/day89/problem_test.go
new file mode 100644
index 0000000..6cf01c8
--- /dev/null
+++ b/day89/problem_test.go
@@ -0,0 +1,29 @@
+package day89
+
+import "testing"
+
+var testcases = []struct {
+ root *BST
+ isValid bool
+}{
+ {&BST{}, true},
+ {&BST{10, &BST{1, nil, nil}, &BST{20, n... | [
"TestIsValidBST"
] | [
"TestCountNodes",
"TestTwoSumsSmall",
"TestTwoSumsSmall/Brute",
"TestTwoSumsSmall/Best",
"TestTwoSumsSmall/Better",
"TestTwoSumsLarge",
"TestTwoSumsLarge/Best",
"TestTwoSumsLarge/Better",
"TestTwoSumsLarge/Brute",
"TestScheduler",
"TestSchedulerParallel",
"TestTrie",
"TestUniqueClimbs",
"T... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
660f35a2f5755f513b32932d400abaa8d944535e | 2018-04-13 15:26:29 | docker.io/swerebenchv2/conda-conda:7162-660f35a | conda__conda-7162 | No new interfaces are introduced. | python | custom-check-github | diff --git a/conda/base/constants.py b/conda/base/constants.py
index 5b8bdf05e..fc03d0558 100644
--- a/conda/base/constants.py
+++ b/conda/base/constants.py
@@ -67,17 +67,19 @@ DEFAULT_CHANNELS_UNIX = (
'https://repo.anaconda.com/pkgs/main',
'https://repo.anaconda.com/pkgs/free',
'https://repo.anaconda.c... | resolve #7061 remove pkgs/pro from defaults
resolve #7061 | Remove pkgs/pro from defaults in conda 4.6
For the release for conda 4.6.0, remove `https://repo.anaconda.com/pkgs/pro` from the default value for `defaults`. | conda/conda | diff --git a/tests/models/test_channel.py b/tests/models/test_channel.py
index 793dda995..7c78a0d11 100644
--- a/tests/models/test_channel.py
+++ b/tests/models/test_channel.py
@@ -39,8 +39,7 @@ class DefaultConfigChannelTests(TestCase):
'https://repo.anaconda.com/pkgs/free/noarch',
... | [
"tests/models/test_channel.py::DefaultConfigChannelTests::test_default_channel",
"tests/models/test_channel.py::test_multichannel_priority"
] | [
"tests/models/test_channel.py::DefaultConfigChannelTests::test_bare_channel",
"tests/models/test_channel.py::DefaultConfigChannelTests::test_channel_alias_channels",
"tests/models/test_channel.py::DefaultConfigChannelTests::test_channel_cache",
"tests/models/test_channel.py::DefaultConfigChannelTests::test_ch... | {
"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": [... |
680aca52ca132a98ea390833f3c2dd32d4eda513 | 2021-08-07 15:02:04 | docker.io/swerebenchv2/brikev-express-jsdoc-swagger:177-680aca5 | brikev__express-jsdoc-swagger-177 | No new interfaces are introduced. | js | MIT | diff --git a/transforms/utils/httpMethods.js b/transforms/utils/httpMethods.js
index b52b41d..c64c487 100644
--- a/transforms/utils/httpMethods.js
+++ b/transforms/utils/httpMethods.js
@@ -1,6 +1,6 @@
const validRequestBodyMethods = {
get: false,
- delete: false,
+ delete: true,
head: false,
post: true,
... | fix: add support to delete requests with body
### What kind of change does this PR introduce?
- Bugfix
- ~Feature~
- Test
- ~Docs~
- ~Refactor~
- ~Build-related changes~
### Description:
As mentioned in [this link](https://stackoverflow.com/a/10015724/12911174) or in the [official docs for the DELETE ... | [BUG] DELETE missing param details
**Describe the bug**
It seems like DELETE does not convey the param set in the documentation.
**To Reproduce**
The object and endpoint documentation:
```
/**
* Logout format to send
* @typedef {object} Logout
* @property {string} token.required - Access token for user... | BRIKEV/express-jsdoc-swagger | diff --git a/test/transforms/paths/requestBody.test.js b/test/transforms/paths/requestBody.test.js
index 92e082f..ff36c02 100644
--- a/test/transforms/paths/requestBody.test.js
+++ b/test/transforms/paths/requestBody.test.js
@@ -145,6 +145,47 @@ describe('request body tests', () => {
expect(result).toEqual(expecte... | [
"should parse jsdoc request body for delete request"
] | [
"should return empty array with not params",
"should return empty array with not an array as parameter",
"should return empty array when there is no comments",
"should return empty array for simple comments",
"should return array with multiline comments",
"should return JSdoc comment",
"should return mu... | {
"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": [... |
01abb212358b680fc065b24735b249e5959a7bc9 | 2021-11-17 13:45:52 | docker.io/swerebenchv2/pingcap-tidb-binlog:1089-01abb21 | pingcap__tidb-binlog-1089 | No new interfaces are introduced. | go | Apache-2.0 | diff --git a/reparo/ddl.go b/reparo/ddl.go
index 0fc049a1..5ad9dee5 100644
--- a/reparo/ddl.go
+++ b/reparo/ddl.go
@@ -64,6 +64,8 @@ func parseDDL(sql string) (node ast.Node, table filter.TableName, err error) {
setSchemaIfExists(&table, v.Table.Schema.O, v.Table.Name.O)
case *ast.DropIndexStmt:
setSchemaIfE... | Fix the issue #1088 Reparo: Add a support CreateView function
<!--
Thank you for contributing to TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.
-->
### What problem does this PR solve? <!--add issue link with summary if exis... | Reparo: Add a support CreateView function
To add a function in Reparo tool when executing binlog data
As in the current version, it does not support "CREATE VIEW Statement".
The reparo main function treats it as invaild ddl type. | pingcap/tidb-binlog | diff --git a/reparo/syncer/translate_test.go b/reparo/syncer/translate_test.go
index 5f9b5886..2cf71b71 100644
--- a/reparo/syncer/translate_test.go
+++ b/reparo/syncer/translate_test.go
@@ -51,6 +51,16 @@ func (s *testTranslateSuite) TestPBBinlogToTxn(c *check.C) {
Table: "table1",
},
},
+ {
+ Tp: ... | [
"Test"
] | [] | {
"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": [... |
6547ea283b14965d74e4facaadac63e98d24ae4d | 2025-07-16 20:25:59 | docker.io/swerebenchv2/collective-icalendar:880-6547ea2 | collective__icalendar-880 | Method: Event.duration(self)
Location: src/icalendar/cal/event.py
Inputs: self – an Event component instance; must have either a DURATION property or both start and end defined.
Outputs: Returns a timedelta representing the event’s duration. If the component contains a “DURATION” property, that value is returned; ot... | python | custom-check-github | diff --git a/CHANGES.rst b/CHANGES.rst
index a6169f7..fed197f 100644
--- a/CHANGES.rst
+++ b/CHANGES.rst
@@ -46,6 +46,7 @@ Bug fixes:
- Fix invalid calendar: Parsing a date with TZID results in a datetime to not loose the timezone. See `Issue 187 <https://github.com/collective/icalendar/issues/187>`_.
- Fix timezon... | Fix Todo.duration and Event.duration to return DURATION property when set (fixes #867)
## Summary
This PR fixes issue #867 where `Todo.duration` raises an `IncompleteComponent` error when the `DURATION` property is set but `DTSTART` is missing. The fix ensures that both `Todo.duration` and `Event.duration` return the ... | [BUG] todo.duration raises error if dtstart is missing
<!-- This template is there to guide you and help us. If you can not complete everything here, that is fine. -->
## Describe the bug
<!-- A clear and concise description of what the bug is. -->
While an event should have a dtstart, there is no such requirement for... | collective/icalendar | diff --git a/src/icalendar/tests/test_issue_662_component_properties.py b/src/icalendar/tests/test_issue_662_component_properties.py
index 4528700..607a8c3 100644
--- a/src/icalendar/tests/test_issue_662_component_properties.py
+++ b/src/icalendar/tests/test_issue_662_component_properties.py
@@ -394,18 +394,35 @@ incom... | [
"src/icalendar/tests/test_issue_662_component_properties.py::test_duration_property_accessible_without_dtstart[component_with_duration0]",
"src/icalendar/tests/test_issue_662_component_properties.py::test_duration_property_accessible_without_dtstart[component_with_duration1]",
"src/icalendar/tests/test_issue_86... | [
"src/icalendar/tests/test_issue_662_component_properties.py::test_component_dtstart[dtstart0-Event-_set_component_start_init]",
"src/icalendar/tests/test_issue_662_component_properties.py::test_component_dtstart[dtstart0-Event-_set_component_start_ics]",
"src/icalendar/tests/test_issue_662_component_properties.... | {
"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": [... |
3901746362b5a489f47d7192f9aed50c284369d5 | 2021-12-29 18:17:50 | docker.io/swerebenchv2/drivendataorg-cloudpathlib:185-3901746 | drivendataorg__cloudpathlib-185 | No new interfaces are introduced. | python | MIT | diff --git a/HISTORY.md b/HISTORY.md
index ab3f13c..12dd0f8 100644
--- a/HISTORY.md
+++ b/HISTORY.md
@@ -1,5 +1,11 @@
# cloudpathlib Changelog
+## v0.6.3 (2021-12-29)
+
+- Fixed error when using `rmtree` on nested directories for Google Cloud Storage and Azure Blob Storage. ([Issue #184](https://github.com/drivendat... | Fix nested remove for azure and gcs
Closes #184
Problem is that `_list_dir` implementations return both directories and files, but our `_remove` function for both of these clients assumes only files.
Added regression test which fails on Azure + GCS without this fixes, but passes with the fix.
Updated history... | rmtree not working when there is directory inside (google cloud storage)
This package is really helpful to work with different cloud providers but I'm facing an issue when trying to remove directory in gcs.
I tried it even in some test script using this line (after handle the authentication, because I do get True fo... | drivendataorg/cloudpathlib | diff --git a/tests/test_cloudpath_file_io.py b/tests/test_cloudpath_file_io.py
index 1644c2a..917b19e 100644
--- a/tests/test_cloudpath_file_io.py
+++ b/tests/test_cloudpath_file_io.py
@@ -39,6 +39,19 @@ def test_file_discovery(rig):
assert list(p4.glob("**/*")) == list(p4.rglob("*"))
+ # try rmtree on dir_... | [
"tests/test_cloudpath_file_io.py::test_file_discovery[/azure_rig]",
"tests/test_cloudpath_file_io.py::test_file_discovery[/gs_rig]"
] | [
"tests/test_cloudpath_file_io.py::test_file_discovery[/s3_rig]",
"tests/test_cloudpath_file_io.py::test_file_discovery[/custom_s3_rig]",
"tests/test_cloudpath_file_io.py::test_file_discovery[/local_azure_rig]",
"tests/test_cloudpath_file_io.py::test_file_discovery[/local_s3_rig]",
"tests/test_cloudpath_file... | {
"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": [... |
f4dc0b6527e1c618ff0792fcb8b90bdafa18c616 | 2023-11-02 20:57:13 | docker.io/swerebenchv2/raphlinus-pulldown-cmark:771-f4dc0b6 | raphlinus__pulldown-cmark-771 | Function: test_markdown_html(original: &str, expected: &str, enable_soft_breaks: bool, enable_strikethrough: bool, enable_footnote_nesting: bool)
Location: Defined in the test support module (e.g., tests/helpers.rs) used by the markdown test suite.
Inputs:
- **original** – The markdown source text to be parsed.
- **exp... | rust | MIT | diff --git a/specs/footnotes.txt b/specs/footnotes.txt
index fb3fe6a..26c6262 100644
--- a/specs/footnotes.txt
+++ b/specs/footnotes.txt
@@ -237,6 +237,7 @@ As such, we can guarantee that the non-childish forms of entertainment are proba
As a special exception, footnotes cannot be nested directly inside each other... | Parse inline nested footnote definitions
Fixes #770
They look like this:
[^foo]: [^bar]: test
They don't make much sense (foo is empty), but everyone else parses them correctly, so we should too. | [fuzz results] inline nested footnote defs don't work
This markdown:
```markdown
[^foo] [^bar]
[^foo]: [^bar]: 1
```
should work like this:
[^foo] [^bar]
[^foo]: [^bar]: 1
<details>
Events from pulldown-cmark:
```rust
"-*-FD\n[^+\\&~+ppppppppppp]:[^+\\&~+]:1 +\n\n*1 ppp]:[^+\\&~+]... | raphlinus/pulldown-cmark | diff --git a/tests/suite/footnotes.rs b/tests/suite/footnotes.rs
index e81e610..7fce03c 100644
--- a/tests/suite/footnotes.rs
+++ b/tests/suite/footnotes.rs
@@ -282,6 +282,22 @@ fn footnotes_test_11() {
#[test]
fn footnotes_test_12() {
+ let original = r##"[^foo] [^bar]
+
+[^foo]: [^bar]: 1
+"##;
+ let expect... | [
"suite::footnotes::footnotes_test_12"
] | [
"linklabel::test::return_carriage_linefeed_ok",
"escape::test::check_href_escape",
"linklabel::test::whitespace_normalization",
"parse::test::another_emphasis_panic",
"parse::test::body_size",
"parse::test::broken_links_called_only_once",
"parse::test::code_block_kind_check_fenced",
"parse::test::code... | {
"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": [... |
a6d66a851e24c28b337b1887cfb9fbb4248d62b7 | 2016-11-04 17:09:01 | docker.io/swerebenchv2/xjamundx-eslint-plugin-promise:39-a6d66a8 | xjamundx__eslint-plugin-promise-39 | No new interfaces are introduced. | js | ISC | diff --git a/rules/always-return.js b/rules/always-return.js
index fa2760c..a201d0d 100644
--- a/rules/always-return.js
+++ b/rules/always-return.js
@@ -72,7 +72,10 @@ module.exports = {
function markCurrentBranchAsGood () {
var funcInfo = peek(funcInfoStack)
var currentBranchID = peek(funcInfo.branc... | Fixes #34. Handle unreachable return or throw.
PR for Issue #34. Handle unreachable return or throw. | Bug: TypeError: Cannot set property 'good' of undefined
I'm using eslint `3.8.1`. When running eslint, i get the following error:
```
Cannot set property 'good' of undefined
TypeError: Cannot set property 'good' of undefined
at EventEmitter.markCurrentBranchAsGood (/Users/amila/Documents/Projects/parallel.js/node_... | xjamundx/eslint-plugin-promise | diff --git a/test/always-return.test.js b/test/always-return.test.js
index a26f820..97b22fc 100644
--- a/test/always-return.test.js
+++ b/test/always-return.test.js
@@ -24,6 +24,7 @@ ruleTester.run('always-return', rule, {
{ code: 'hey.then(x => { var f = function() { }; return f; })', parserOptions: parserOptions... | [
"hey.then(x => { return x; return \"unreachable\"; })"
] | [
"hey.then(x => x)",
"hey.then(x => ({}))",
"hey.then(x => { return; })",
"hey.then(x => { return x * 10 })",
"hey.then(function() { return 42; })",
"hey.then(function() { return new Promise(); })",
"hey.then(function() { return \"x\"; }).then(doSomethingWicked)",
"hey.then(x => x).then(function() { re... | {
"base_image_name": "node_16",
"docker_specs": {
"_variant": "js_2",
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": null,
"helm_version": null,
"j... | {
"llm_metadata": {
"code": "A",
"confidence": 0.98,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
6d8f7dfc0a1f36dceabc43b90bde951cb9006f02 | 2020-07-03 13:58:17 | docker.io/swerebenchv2/vue-a11y-eslint-plugin-vuejs-accessibility:26-6d8f7df | vue-a11y__eslint-plugin-vuejs-accessibility-26 | No new interfaces are introduced. | ts | MIT | diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2115072..d48ecb6 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) a
## [Unreleased]
+### Changed
+
+- For the `anchor-has-content` rule, allow anchors with explicit aria labels... | For the `anchor-has-content` rule, allow anchors with explicit aria labels to pass
Closes #15
| Anchor has content question
Hi, I have a anchor tag that is an icon and, because of that, it has no text related to it. I've made some research and it seems we can use `aria-label` in scenarios like that. But, adding `aria-label` to the anchor tag, it still shows the error "vuejs-accessibility/anchor-has-content".
S... | vue-a11y/eslint-plugin-vuejs-accessibility | diff --git a/src/rules/__tests__/anchor-has-content.test.js b/src/rules/__tests__/anchor-has-content.test.js
index cc9dcf3..7b0c8af 100644
--- a/src/rules/__tests__/anchor-has-content.test.js
+++ b/src/rules/__tests__/anchor-has-content.test.js
@@ -8,7 +8,8 @@ makeRuleTester("anchor-has-content", rule, {
"<a v-tex... | [
"valid: <template><a aria-label='This is my label' /></template>"
] | [
"valid: <template><span tabindex='0' /></template>",
"valid: <template><span v-if='true' tabindex='0' /></template>",
"valid: <template><span tabindex='-1' /></template>",
"valid: <template><span :tabindex='number' /></template>",
"invalid: <template><span tabindex='1' /></template>",
"invalid: <template>... | {
"base_image_name": "node_16",
"docker_specs": null,
"install": [
"npm install --silent"
],
"log_parser": "parse_log_js_4",
"test_cmd": "npx 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": [... |
dbc8ef9cc1b2cf977c652ff11bd8d412908d6703 | 2022-01-13 16:41:45 | docker.io/swerebenchv2/aquasecurity-tfsec:1317-dbc8ef9 | aquasecurity__tfsec-1317 | No new interfaces are introduced. | go | MIT | diff --git a/internal/app/tfsec/rules/general/secrets/sensitive_in_attribute_rule.go b/internal/app/tfsec/rules/general/secrets/sensitive_in_attribute_rule.go
index a79d3d3c6..7e343ad7d 100644
--- a/internal/app/tfsec/rules/general/secrets/sensitive_in_attribute_rule.go
+++ b/internal/app/tfsec/rules/general/secrets/se... | Whitelist kubernetes_service_account token
Resolves #1316 | kubernetes_service_account automount_service_account_token bool triggers general-secrets-sensitive-in-attribute rule
When defining `kubernetes_service_account`, if you set the `automount_service_account_token` explicitly, it triggers the `general-secrets-sensitive-in-attribute` rule.
Example resource def:
```
re... | aquasecurity/tfsec | diff --git a/internal/app/tfsec/rules/general/secrets/sensitive_in_attribute_rule_test.go b/internal/app/tfsec/rules/general/secrets/sensitive_in_attribute_rule_test.go
index 2077cbf8e..a6a095e3e 100644
--- a/internal/app/tfsec/rules/general/secrets/sensitive_in_attribute_rule_test.go
+++ b/internal/app/tfsec/rules/gen... | [
"Test_AWSSensitiveAttributes",
"Test_AWSSensitiveAttributes/kubernetes_service_account_automount_service_account_token"
] | [
"Test_PublicAccessBlock",
"Test_PublicAccessBlock/public_access_block_is_found_when_using_the_bucket_name_as_the_lookup",
"Test_PublicAccessBlock/public_access_block_is_found_when_using_the_bucket_name_as_the_lookup#01",
"Test_PublicAccessDoesNotReference",
"Test_PublicAccessDoesNotReference/just_a_bucket,_... | {
"base_image_name": "go_1.19.13",
"docker_specs": {
"_variant": null,
"bazel_version": null,
"bun_version": null,
"cargo_version": null,
"deno_version": null,
"docker_version": null,
"erlang_version": null,
"gcc_version": null,
"go_version": "1.19.8",
"helm_version": null,
... | {
"llm_metadata": {
"code": "A",
"confidence": 0.97,
"detected_issues": {
"B1": false,
"B2": false,
"B3": false,
"B4": false,
"B5": false,
"B6": false
},
"difficulty": "easy",
"external_urls": [],
"intent_completeness": "complete",
"pr_categories": [... |
d75870ed70615d57cd8a59bfa16739b5660b5e28 | 2022-05-01 03:06:45 | docker.io/swerebenchv2/pagerduty-go-pagerduty:448-d75870e | pagerduty__go-pagerduty-448 | Function: AlertGroupingParameters(Type string, Config *AlertGroupParamsConfig)
Location: service.go
Inputs:
- **Type** (string, optional): the grouping strategy identifier (e.g., "time", "content_based"). Empty string means the API will treat it as unset.
- **Config** (*AlertGroupParamsConfig, optional): a pointer to t... | go | Apache-2.0 | diff --git a/service.go b/service.go
index e9c1685..9206614 100644
--- a/service.go
+++ b/service.go
@@ -99,10 +99,10 @@ type Service struct {
Addons []Addon `json:"addons,omitempty"`
}
-// AlertGroupingParameters defines how alerts on the servicewill be automatically grouped into... | Fix parsing bug for AlertGroupingParameters
The PagerDuty API is happy when only `Type` is set to `omitempty`, but I think it makes sense to do the same for `AlertGroupParamsConfig` as well as change it to be a pointer so that it gets a nil value instead of the zero value for all the config values in case the api check... | Chaining GetService and UpdateService fails when AlertGroupingParameters is omitted
```go
service, err := pd.GetService(serviceID, nil)
if err != nil {
return err
}
service.status = "disabled"
if _, err = pd.UpdateService(*service); err != nil {
return err
}
```
Results in the following when the... | PagerDuty/go-pagerduty | diff --git a/service_test.go b/service_test.go
index ac5644f..2012626 100644
--- a/service_test.go
+++ b/service_test.go
@@ -178,7 +178,7 @@ func TestService_CreateWithAlertGroupParamsTime(t *testing.T) {
Name: "foo",
AlertGroupingParameters: &AlertGroupingParameters{
Type: "time",
- Config: AlertGroupParam... | [
"TestAbility_ListAbilitiesFailure",
"TestAbility_TestAbility",
"TestAbility_TestAbilityFailure",
"TestAddon_List",
"TestAddon_Install",
"TestAddon_Get",
"TestAddon_Update",
"TestAddon_Delete",
"TestAnalytics_GetAggregatedIncidentData",
"TestAnalytics_GetAggregatedServiceData",
"TestAnalytics_Get... | [
"TestInvokeCLIVersion",
"TestVerifySignature",
"TestVerifySignature/valid",
"TestVerifySignature/mismatch",
"TestVerifySignature/malformed_header",
"TestVerifySignature/malformed_body"
] | {
"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": [... |
b5ccd44ba36d569b22b3f8bf79e67eba589f3367 | 2019-08-10 13:59:53 | docker.io/swerebenchv2/s-knibbs-dataclasses-jsonschema:93-b5ccd44 | s-knibbs__dataclasses-jsonschema-93 | Method: JsonSchemaMixin.from_json(cls: Type[T], data: str, validate: bool = True, **json_kwargs) -> T
Location: dataclasses_jsonschema/__init__.py, class JsonSchemaMixin
Inputs:
- cls – the target dataclass type (inherited by Foo).
- data – a JSON‑encoded string containing the object representation.
- validate – o... | python | MIT | diff --git a/dataclasses_jsonschema/__init__.py b/dataclasses_jsonschema/__init__.py
index b17098d..a139823 100644
--- a/dataclasses_jsonschema/__init__.py
+++ b/dataclasses_jsonschema/__init__.py
@@ -1,3 +1,4 @@
+import json
import sys
import functools
from _decimal import Decimal
@@ -730,3 +731,10 @@ class JsonSch... | Add to_json and from_json convenience methods
Closes #35 | Add to_json and from_json convenience methods
It'd be nice to add `from_json` and `to_json` methods for convenience | s-knibbs/dataclasses-jsonschema | diff --git a/tests/test_core.py b/tests/test_core.py
index 793e572..51ac7df 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -219,6 +219,41 @@ def test_serialise_deserialise():
assert data == f.to_dict()
+def test_from_json_to_json():
+ data = """
+{
+ "a": "2018-06-03T12:00:00+00:00",
+ "b": [... | [
"tests/test_core.py::test_from_json_to_json"
] | [
"tests/test_core.py::test_field_with_default_factory",
"tests/test_core.py::test_field_with_default_dataclass",
"tests/test_core.py::test_embeddable_json_schema",
"tests/test_core.py::test_json_schema",
"tests/test_core.py::test_serialise_deserialise",
"tests/test_core.py::test_invalid_data",
"tests/tes... | {
"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": [... |
929d22f969c89fb0e51a44666255c8ac27073dbe | 2019-09-18 21:04:08 | docker.io/swerebenchv2/serverless-serverless:6711-929d22f | serverless__serverless-6711 | Method: AwsInvoke.invoke(self)
Location: lib/plugins/aws/invoke/index.js
Inputs: optional this.options.qualifier (string) – version number or alias to invoke; other existing options (functionName, data, etc.) are unchanged.
Outputs: Calls `this.provider.request('Lambda', 'invoke', params)` where `params` now contains ... | js | custom-check-github | diff --git a/docs/providers/aws/cli-reference/invoke.md b/docs/providers/aws/cli-reference/invoke.md
index f3ab278a0..09673e4fd 100644
--- a/docs/providers/aws/cli-reference/invoke.md
+++ b/docs/providers/aws/cli-reference/invoke.md
@@ -27,6 +27,7 @@ serverless invoke [local] --function functionName
- `--function` or ... | Feat: add qualifier option to invoke command
## What did you implement:
Closes #6289
This adds a `--qualifier (-q)` option to the invoke CLI that enables calling specific version numbers or aliases.
## How can we verify it:
Try invoking any function that has more than one version and confirm that the versi... | Add qualifier option for the invoke command
# This is a Feature Proposal
## Description
Currently, there's no way of calling a specific version/alias (qualifier) from the `serverless` CLI, so we have to fall back to the `aws` native CLI under the `--qualifier` option.
It would be good if there was an optional fl... | serverless/serverless | diff --git a/lib/plugins/aws/invoke/index.test.js b/lib/plugins/aws/invoke/index.test.js
index d40e83c18..e6c476e3c 100644
--- a/lib/plugins/aws/invoke/index.test.js
+++ b/lib/plugins/aws/invoke/index.test.js
@@ -265,6 +265,26 @@ describe('AwsInvoke', () => {
awsInvoke.provider.request.restore();
});
... | [
"should be able to invoke with a qualifier"
] | [
"should set the serverless instance",
"should set an empty loadedPlugins array",
"should set a null inputArray when none is provided",
"should set the inputObject when provided",
"should set the loadedPlugins array with the given plugin instances",
"should not parse numeric string as number, but as string... | {
"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": [... |
00a6aff1d03814899dbf786ec6c2521ccc78e2a2 | 2023-10-22 16:48:01 | docker.io/swerebenchv2/twigjs-twig.js:879-00a6aff | twigjs__twig.js-879 | No new interfaces are introduced. | js | BSD-2-Clause | diff --git a/src/twig.expression.js b/src/twig.expression.js
index 80a8b4d..69b33bb 100644
--- a/src/twig.expression.js
+++ b/src/twig.expression.js
@@ -913,7 +913,7 @@ module.exports = function (Twig) {
},
{
type: Twig.expression.type.key.brackets,
- regex: /^\[([^\]:]*)\]/,
+... | Allow colon inside Twig.expression.type.key.brackets.
Fixes #854
Not sure why the colon is needed in de regexp for Twig.expression.type.key.brackets, @willrowe can you elaborate?
If it is not needed, removing the colon in the regexp will fix this issue. | accessing an array element with a colon
I'm passing in a hydra json response, which includes an element with a key of 'hydra:member'.
My twig template is
```twig
<h3>
{{ data['@type'] }}
</h3>
{% for d in data['hydra:member'] %}
{{ d.id }}
{% endfor %}
```
This throws an error
TwigException: Twig... | twigjs/twig.js | diff --git a/test/test.expressions.js b/test/test.expressions.js
index fb41428..b657766 100644
--- a/test/test.expressions.js
+++ b/test/test.expressions.js
@@ -325,6 +325,11 @@ describe('Twig.js Expressions ->', function () {
const testTemplate = twig({data: '{% if a is defined and a %}true{% else %}false... | [
"should be able to access array elements with colons"
] | [
"should apply allowed_tags argument",
"should remove tags if no argument passed",
"should throw when detecting async behaviour in sync mode",
"should handle functions that return promises",
"should handle functions that return rejected promises",
"should handle slow executors for promises",
"should hand... | {
"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": [... |
1e4693eb80dc30d82f4b6904917bc34ab33634b2 | 2022-11-22 16:56:46 | docker.io/swerebenchv2/apigee-registry:849-1e4693e | apigee__registry-849 | Method: Server.ListApis(self, ctx context.Context, req *rpc.ListApisRequest) (*rpc.ListApisResponse, error)
Location: server/registry (the concrete server implementation that satisfies the Registry service)
Inputs:
- ctx: the request‑level context, used for cancellation and deadlines.
- req: a *rpc.ListApisRequest cont... | go | Apache-2.0 | diff --git a/server/registry/internal/storage/list.go b/server/registry/internal/storage/list.go
index ca6a582..b525c5e 100644
--- a/server/registry/internal/storage/list.go
+++ b/server/registry/internal/storage/list.go
@@ -210,8 +210,8 @@ func limit(opts PageOptions) int {
return int(opts.Size) + 1
}
- // When... | ensure filtering honors requested page size
Fixes #846 | Filter resources using labels not working properly when having too many items
On my instance of the Registry server I added the label "source" on all resources of type API. If I try some filters like the one below, the result might not return all matches when having too many items in the database.
`registry rpc list... | apigee/registry | diff --git a/server/registry/actions_apis_test.go b/server/registry/actions_apis_test.go
index 905d2bb..a340f33 100644
--- a/server/registry/actions_apis_test.go
+++ b/server/registry/actions_apis_test.go
@@ -842,12 +842,13 @@ func TestListApisSequence(t *testing.T) {
}
}
-// This test prevents the list sequence f... | [
"TestListApisLargeCollectionFiltering",
"TestListApisLargeCollectionFiltering/multiple_select,_single_page",
"TestListApisLargeCollectionFiltering/max_select,_multiple_pages",
"TestListApisLargeCollectionFiltering/coerced_max_select,_multiple_pages"
] | [
"TestChanges",
"TestChanges/Components.Required_field_Addition_Breaking_Test",
"TestChanges/Components.Schemas_field_Deletion_Breaking_Test",
"TestChanges/Components.Schema.Type_field_Modification_Breaking_Test",
"TestChanges/Info_field_Addition_NonBreaking_Test",
"TestChanges/Info_field_Deletion_NonBreak... | {
"base_image_name": "go_1.20.14",
"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.20.7",
"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": [... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.