instance_id stringlengths 10 65 | repo stringlengths 5 59 | pr_number int64 1 313k | task_type stringclasses 1
value | base_commit stringlengths 40 40 | review_commit stringlengths 40 40 | title stringlengths 2 282 | body stringlengths 7 3k | patch stringlengths 202 204k | n_defects int64 1 72 | n_supported int64 1 65 | n_major int64 0 32 | defects stringlengths 140 18.8k | certifier_count int64 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
smithy-lang__smithy__2133 | smithy-lang/smithy | 2,133 | defect | 9b7be400152431abe4e7819b94b5fcd70da339c7 | 5992fb8f383aece488089e73e1ddedab3ca2c2fa | Add csv output format to validate command | You can now pass `--validation-format text|csv` to the validate command to get CSV or text output. Text continues to be the default when not specified.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/smithy-cli/src/main/java/software/amazon/smithy/cli/commands/ModelBuilder.java b/smithy-cli/src/main/java/software/amazon/smithy/cli/commands/ModelBuilder.java
index de67ab126b7..3db1d4f49c8 100644
--- a/smithy-cli/src/main/java/software/amazon/smithy/cli/commands/ModelBuilder.java
+++ b/smithy-cli/src/mai... | 4 | 3 | 1 | [{"id": "G0", "claim": "The option could be simplified from `--validation-format` to just `--format`.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The CSV formatter should escape carriage returns as well as newlines, because values containing \\r would... | null |
smithy-lang__smithy__2220 | smithy-lang/smithy | 2,220 | defect | fda4e629fd828a53e196da096c8dcde091b58ff9 | 26020b5d33ff13a3323fc43169446ce6e1793c0d | Change the HTTP bindings validation to support any non-conflicting URI | #### Background
Changes the Smithy validation of the HTTP bindings to allow URI patterns that before were considered in conflict. In particular the following constraint was removed
> A label and a literal SHOULD NOT both occupy the same segment in patterns which are equivalent to that point if they share a host.
... | diff --git a/docs/source-2.0/spec/http-bindings.rst b/docs/source-2.0/spec/http-bindings.rst
index ee106458bdc..fa00f8de051 100644
--- a/docs/source-2.0/spec/http-bindings.rst
+++ b/docs/source-2.0/spec/http-bindings.rst
@@ -351,9 +351,19 @@ Greedy labels
A :dfn:`greedy label` is a label suffixed with the ``+`` qual... | 3 | 2 | 1 | [{"id": "G0", "claim": "The spec prose should drop the comma after \"i.e.\" in \"i.e., without query string literals\" per the suggestion.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The greedy-label validator should emit separate events for ea... | null |
smithy-lang__smithy__2221 | smithy-lang/smithy | 2,221 | defect | 367c4a5ac4f9bae217c0f00b45344f0872d7491d | 81c057473571096c79fea18e268d6d4479a8d5c7 | Support `deprecated` on fields in the OpenAPI conversion |
#### Background
It seems that the OpenAPI transformation doesn't set `deprecated: true` for members that are annotated as `@deprecated(...)`.
Started by just adding a failing test to check that it makes sense. If this is something that is not expected I will proceed to try a fix.
| diff --git a/smithy-jsonschema/src/main/java/software/amazon/smithy/jsonschema/JsonSchemaShapeVisitor.java b/smithy-jsonschema/src/main/java/software/amazon/smithy/jsonschema/JsonSchemaShapeVisitor.java
index 46550dfff93..5ac28a2474a 100644
--- a/smithy-jsonschema/src/main/java/software/amazon/smithy/jsonschema/JsonSch... | 6 | 6 | 2 | [{"id": "G0", "claim": "The new `deprecated` handling sets the field regardless of JSON Schema version, but `deprecated` is not in Draft 7 (which CloudFormation uses), and this breaks the CfnSchemasTest CloudFormation tests, so the behavior needs to be controlled by the JsonSchemaVersion.", "category": "correctness", "... | null |
smithy-lang__smithy__2249 | smithy-lang/smithy | 2,249 | defect | 7c6228f351d85dab343af614181bbaa41893737e | e50fe3ed68a8dd1f4dc5db15291c85bddb08a147 | Fix ModifiedTrait for traits with breaking change rules | ## Overview
Fix ModifiedTrait for traits with breaking change rules.
Before this change, if a trait had breaking change rules defined, the diff strategy in ModifiedTrait would eventually resolve the trait as unknown and produce a ModifiedTrait warning on any change.
- Missing registering traits with breaking c... | diff --git a/smithy-diff/src/main/java/software/amazon/smithy/diff/evaluators/ModifiedTrait.java b/smithy-diff/src/main/java/software/amazon/smithy/diff/evaluators/ModifiedTrait.java
index ec41e2667b8..574c8d238f0 100644
--- a/smithy-diff/src/main/java/software/amazon/smithy/diff/evaluators/ModifiedTrait.java
+++ b/smi... | 2 | 2 | 1 | [{"id": "G0", "claim": "computeDiffStrategies should always include a strategy for every trait in the loop, so make the trailing branch a plain `else` instead of `else if (!definition.getBreakingChanges().isEmpty())`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
smithy-lang__smithy__2264 | smithy-lang/smithy | 2,264 | defect | 4fb7ab70a922d66474059ebb74681818a5107995 | a34a5f85bfc61fb164a497b7634de3eea02f2a02 | Add OperationContextParams + validator | #### Background
* Adds new OperationContextParams trait to support binding of array parameters to nested operation inputs and an associated validator.
#### Testing
* New validator tests (valid/invalid)
---
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0... | diff --git a/docs/source-2.0/additional-specs/rules-engine/parameters.rst b/docs/source-2.0/additional-specs/rules-engine/parameters.rst
index 3385dc5f201..b2dc6910a24 100644
--- a/docs/source-2.0/additional-specs/rules-engine/parameters.rst
+++ b/docs/source-2.0/additional-specs/rules-engine/parameters.rst
@@ -95,6 +9... | 8 | 6 | 3 | [{"id": "G0", "claim": "The docs example should indent `member: ObjectIdentifier` to four spaces to match the surrounding example code.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The docs example should indent `Key: String` to four spaces to m... | null |
smithy-lang__smithy__2277 | smithy-lang/smithy | 2,277 | defect | 3eb39b15ebddb7210dac6b66d9ec65d63c6f5613 | 24c1dddc75303547eaad898a5fe32f2e25203a11 | Fix formatter to correctly convert invalid doc comments | #### Background
- Fixes an issue where a doc-comment above a trait-statement and member may get converted to a line-comment
- Updates the expected formatting of test case file (`.formatted.smithy`)
- Updates tests to use `assertEquals`, since it provides diff functionality in IDEs
#### Testing
- Ran the tests,... | diff --git a/smithy-syntax/src/main/java/software/amazon/smithy/syntax/FixBadDocComments.java b/smithy-syntax/src/main/java/software/amazon/smithy/syntax/FixBadDocComments.java
index 7a62655cf78..a358a3f0f1d 100644
--- a/smithy-syntax/src/main/java/software/amazon/smithy/syntax/FixBadDocComments.java
+++ b/smithy-synta... | 1 | 1 | 1 | [{"id": "G0", "claim": "This looks like a regression: a trailing doc comment attached to nothing (e.g. `/// 18`) is no longer converted to a normal comment in the formatter's output.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smithy-lang__smithy__2290 | smithy-lang/smithy | 2,290 | defect | ae319f42ebd611d6564a9715089931905acbf315 | 0f2665e671179535ef6db8a93868154d1c577c31 | Maps all unique content-types for operations and set passthroughBehavior to never in CORS preflight integration | #### Background
* What do these changes do?
* Maps all unique content-types for operations in CORS preflight integration template, in addition to the `application/json` template that is currently added.
* Sets the `passthroughBehavior` for the mock integration to "never" to fail-fast with _415 Unsupported_ in c... | diff --git a/smithy-aws-apigateway-openapi/src/main/java/software/amazon/smithy/aws/apigateway/openapi/AddCorsPreflightIntegration.java b/smithy-aws-apigateway-openapi/src/main/java/software/amazon/smithy/aws/apigateway/openapi/AddCorsPreflightIntegration.java
index ad2eab0f11b..b2732fd2102 100644
--- a/smithy-aws-apig... | 2 | 2 | 1 | [{"id": "G0", "claim": "ObjectNode.EMPTY should stay at default (package-private) visibility instead of being made public, and the new usage should go through Node.objectNode().", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The author asked whether the ... | null |
smithy-lang__smithy__2316 | smithy-lang/smithy | 2,316 | defect | 14a895931c0c163fac48ae991cb9788b707ba79e | 31b4e108cde40ce58a080206fdac7d9783b59efb | Add IDL serializer option to coerce inline IO | This commit adds a new IDL serializer configuration, coerceInlineIo, that will use inline IO to write input and output shapes that are only bound to one operation - even if they don't have the input or output trait applied.
It also fixes a bug where an empty newline was written before empty inline IO shape definitio... | diff --git a/smithy-model/src/main/java/software/amazon/smithy/model/shapes/SmithyIdlModelSerializer.java b/smithy-model/src/main/java/software/amazon/smithy/model/shapes/SmithyIdlModelSerializer.java
index 8d0aec39614..53000a44ced 100644
--- a/smithy-model/src/main/java/software/amazon/smithy/model/shapes/SmithyIdlMod... | 1 | 1 | 0 | [{"id": "G0", "claim": "The WithTraitsRequest structure in the coerced-io before.smithy test fixture does not have any traits (such as @input), which its name suggests it should.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__2357 | smithy-lang/smithy | 2,357 | defect | efb35c8d0fa76beaa438b6d12ecd8b0b52674399 | b30e7598959d7ac28ecb01dffbd2f588e2fdf72e | Add intEnum validation to NodeValidationVisitor | #### Background
Adds a new plugin to validate intEnums in NodeValidationVisitor. Previously you could provide values outside of the allowed set without failing validation. IntEnum Shapes also qualify as Integer Shapes, so they will pass through the same validation as Integer Shapes in [`validateNaturalNumber()`](htt... | diff --git a/smithy-model/src/main/java/software/amazon/smithy/model/validation/node/IntEnumPlugin.java b/smithy-model/src/main/java/software/amazon/smithy/model/validation/node/IntEnumPlugin.java
new file mode 100644
index 00000000000..049e1ce4b80
--- /dev/null
+++ b/smithy-model/src/main/java/software/amazon/smithy/m... | 1 | 1 | 0 | [{"id": "G0", "claim": "Use the new shorter copyright notice in IntEnumPlugin.java instead of the long 2021-style one.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
smithy-lang__smithy__2384 | smithy-lang/smithy | 2,384 | defect | 9d83194ed6c18b896f3bd71a50ae4ffa70ce66a8 | 6a5c7284454d35bae61fe48eaa1ee17bb3b008f7 | Fix several bugs in AwsTagIndex | This commit fixes several groups of bugs in the AwsTagIndex:
1. The index did not handle nested resource shapes.
2. The index did not handle the put lifecycle operation.
3. The index did not account for the `apiConfig` property of the `@taggable` trait.
A full suite of tests was added to account for the index's b... | diff --git a/smithy-aws-cloudformation/src/main/java/software/amazon/smithy/aws/cloudformation/schema/fromsmithy/CfnConverter.java b/smithy-aws-cloudformation/src/main/java/software/amazon/smithy/aws/cloudformation/schema/fromsmithy/CfnConverter.java
index 3042c418471..c6c79e352b7 100644
--- a/smithy-aws-cloudformation... | 3 | 3 | 2 | [{"id": "G0", "claim": "The constructor should not use the top down index to compute each operation's tag input member: it is more expensive than model.getOperationShapes(), operations bound to multiple services get computed multiple times, and the block has no service context, so the operation loop should iterate mode... | null |
smithy-lang__smithy__2393 | smithy-lang/smithy | 2,393 | defect | 3229d63afe3b789aa0196bbcf4866937bae26882 | 3b3bb3971609d96785dd4bb4a9ed63bbdf006fdc | Add validation for null members in structures, lists and maps | #### Background
Previously, a NullNode could be provided as a required structure member without emitting a ValidationEvent. So an example test below would fail.
``` @Test
public void nullRequiredStructureMember() {
ObjectNode structure = ObjectNode.builder()
.withMember("foo", Nod... | diff --git a/smithy-model/src/main/java/software/amazon/smithy/model/validation/NodeValidationVisitor.java b/smithy-model/src/main/java/software/amazon/smithy/model/validation/NodeValidationVisitor.java
index 8c7a00bb00f..d1bfa2c25ba 100644
--- a/smithy-model/src/main/java/software/amazon/smithy/model/validation/NodeVa... | 4 | 4 | 0 | [{"id": "G0", "claim": "checkNullMember needlessly wraps the already-typed MemberShape in an Optional via shape.asMemberShape().filter(); it should call nullableIndex.isMemberNullable(shape) directly.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"... | null |
smithy-lang__smithy__2440 | smithy-lang/smithy | 2,440 | defect | 9514b4a70571b2f2bcbc98cda87c41cadadb79c2 | 5ac578ad26990fa6038a21b573f4b6d55b4d28ec | Add delimiter and reusable to arn trait | This commit adds two fields to the aws.api#arn trait:
* resourceDelimiter - used to define the delimiter for resource segments of absolute ARN templates.
* reusable - indicates whether an ARN may be reused for different instances of a resource.
Note: two test files were migrated to `.smithy` that aren't changed ... | diff --git a/docs/source-2.0/aws/aws-core.rst b/docs/source-2.0/aws/aws-core.rst
index fb961d89023..966cf0a71d7 100644
--- a/docs/source-2.0/aws/aws-core.rst
+++ b/docs/source-2.0/aws/aws-core.rst
@@ -297,7 +297,18 @@ members:
ARN that does not need to be merged with the service. This type of
ARN MUST... | 3 | 2 | 0 | [{"id": "G0", "claim": "In the aws-core.rst resourceDelimiter table row, `absolute` should be written in double backticks (``absolute``) rather than plain text.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "In the aws-core.rst valid-values line, ... | null |
smithy-lang__smithy__2445 | smithy-lang/smithy | 2,445 | defect | 37e0dec91019acbcd6da460c82843a5633cf63b5 | 5d5f3178b92056e7314d1252a26a716e22c8f4ea | Add round-trip convertibility of resource schemas | #### Background
- Before these changes, converting a node to resource-schema is lossy
- These changes include the necessary changes to keep round-trips between node and resource-schema lossless
- Property was adapted to incorporate its separate "properties" as extensions to the schema**
- **only when these "prope... | diff --git a/smithy-aws-cloudformation/src/main/java/software/amazon/smithy/aws/cloudformation/schema/model/Property.java b/smithy-aws-cloudformation/src/main/java/software/amazon/smithy/aws/cloudformation/schema/model/Property.java
index 61ccade1ecd..947ce3ef0ef 100644
--- a/smithy-aws-cloudformation/src/main/java/sof... | 5 | 4 | 0 | [{"id": "G0", "claim": "The ~130-line applyNode switch added to Schema.Builder is a lot of code, and NodeMapper (possibly with a way to handle unknown fields) could handle it instead.", "category": "design", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "insertionOrder and depe... | null |
smithy-lang__smithy__2452 | smithy-lang/smithy | 2,452 | defect | 8da745749f6b881b5aaa2d8b865501713cef8155 | 48ce249a307218005c6a8b032bd006a99723eb37 | Add transforms to remove deprecated shapes | ### Description
Adds two transforms to `smithy-model` and `directed codegen` that allow users to filter out deprecated shapes by version or date.
These transforms allow a user of directed codegen to quickly implement the recommended [`relativeVersion`](https://smithy.io/2.0/guides/building-codegen/configuring-the... | diff --git a/docs/requirements.txt b/docs/requirements.txt
index e50794f6706..54c82aab9c5 100644
--- a/docs/requirements.txt
+++ b/docs/requirements.txt
@@ -11,3 +11,6 @@ sphinx-tabs>=3.4.4
sphinx_copybutton==0.5.0
sphinx-autobuild>=2024.4.16
+
+# needs to be added as it is removed in python3.13
+standard-imghdr==3... | 3 | 3 | 1 | [{"id": "G0", "claim": "A smithy-build.json transform for removing deprecated shapes should be added as well.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The redundant shape.hasTrait(DeprecatedTrait.class) check inside the loop over shapes that alread... | null |
smithy-lang__smithy__2454 | smithy-lang/smithy | 2,454 | defect | d8c83fa40feedc40f4ee578a34bd55dd2a9aeedf | 584358feab787864d0712c33fd40e2cd5620da2b | Add pagination flattening transform | ### Description
Adds a transform that flattens service-level pagination info into pagination traits on operations.
Code generators may want to use fully-resolved pagination traits for operations. This transform allows code generators to optionally fully-resolve operation-level pagination traits before processing ... | diff --git a/smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/directed/CodegenDirector.java b/smithy-codegen-core/src/main/java/software/amazon/smithy/codegen/core/directed/CodegenDirector.java
index 3b36479138d..795fc54fb00 100644
--- a/smithy-codegen-core/src/main/java/software/amazon/smithy/code... | 3 | 3 | 0 | [{"id": "G0", "claim": "The loop could iterate over operations that have the `@paginated` trait (`getOperationShapesWithTrait()`) instead of all operation shapes plus the Optional pre-checks, simplifying the loop.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": ... | null |
smithy-lang__smithy__2544 | smithy-lang/smithy | 2,544 | defect | 4f232d7974c8cdcb67fc535ecbee75cbc31e1b69 | b3d079bf4c3b4af9d4eabf7e4c33f1bc68064702 | Fix documentation being duplicated with dynamic doc trait | #### Background
* resolve #2529
#### Links
* Links to additional context, if necessary
* Issue #, if applicable (see [here](https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword) for a list of keywords to use for lin... | diff --git a/smithy-model/src/main/java/software/amazon/smithy/model/shapes/SmithyIdlModelSerializer.java b/smithy-model/src/main/java/software/amazon/smithy/model/shapes/SmithyIdlModelSerializer.java
index 6f1db260389..d84d6a73e04 100644
--- a/smithy-model/src/main/java/software/amazon/smithy/model/shapes/SmithyIdlMod... | 1 | 1 | 0 | [{"id": "G0", "claim": "For clarity, the new test should also assert that the documentation is serialized with the special syntax (assertTrue(modelResult.contains(\"/// hello\"))).", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__2622 | smithy-lang/smithy | 2,622 | defect | 86ffc6a84642eed7f786c1587e3f06499b84bca8 | 3224e716d1389ee6f3e73321b7136b58daa79fdc | Improve EndpointTests built-in validation | This commit adds new validation for built-in parameters when used with the `endpointTests` trait.
1. Validates that built-in values with defaults are specified to the correct value if they are mismatched in `operationInput` cases.
2. Validates that built-in values without defaults are specified in `operationInput` ... | diff --git a/smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/parameters/Parameter.java b/smithy-rules-engine/src/main/java/software/amazon/smithy/rulesengine/language/syntax/parameters/Parameter.java
index 0fc4d8d05e1..eaff721790b 100644
--- a/smithy-rules-engine/src/main/java/softw... | 4 | 3 | 0 | [{"id": "G0", "claim": "The identifier `mismatchedBuiltInParams` is misleadingly named since 'mismatched' suggests the params are invalid, and should be renamed to something like `builtInsWithNonDefaultValues`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1... | null |
smithy-lang__smithy__2629 | smithy-lang/smithy | 2,629 | defect | 636e5b62428f6fcee0475131358b16519225fc00 | 0f54773b5b806a386e5936beff7058272174cd67 | Fix declarative endpoint traits toNode | #### Background
Calling `toNode` on standardRegionalEndpoints or standardPartitionalEndpoints can raise NPE when special cases are missing non-required members.
This PR fixes that and adds equals/toHash methods as well.
#### Testing
* Modified existing tests to test that traits converted to node and back are eq... | diff --git a/smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/traits/PartitionEndpointSpecialCase.java b/smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/traits/PartitionEndpointSpecialCase.java
index 0bc71101dbe..3f8f3868da8 100644
--- a/smithy-aws-endpoints/src/main/j... | 1 | 1 | 0 | [{"id": "G0", "claim": "The traits should probably set the sourceLocation in their toBuilder() calls themselves, instead of the tests explicitly setting it for both traits.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__2633 | smithy-lang/smithy | 2,633 | defect | 846773aa734ab78033cb8534b69bae16059b40e0 | 38ffe1cf9327ae86d8b5cd55f3552f8ac5fb756c | Improve isVirtualHostableBucket function | This commit removes the use of three regular expressions and string splitting when checking if a value is a virtual hostable bucket. This should help with both startup and runtime performance. It also exposes a static method for performing this check that I'll use in smithy-java.
#### Background
* What do these c... | diff --git a/smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/language/functions/IsVirtualHostableS3Bucket.java b/smithy-aws-endpoints/src/main/java/software/amazon/smithy/rulesengine/aws/language/functions/IsVirtualHostableS3Bucket.java
index 448af702015..d71b285d9d5 100644
--- a/smithy-aws-en... | 1 | 1 | 0 | [{"id": "G0", "claim": "Add a comment explaining the IP-address heuristic so future readers do not assume it can be improved and attempt to change it.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__2652 | smithy-lang/smithy | 2,652 | defect | 50d325b989aeed3db637e2c49e4d06a74b0b0317 | c6cfb4288b82cbd29f6771ba2c8e056038b373ff | Fix trait code generation for collections of boolean. | #### Background
TraitCodegen will generate incorrect `fromNode` code for nested collection like the following:
```java
public static NestedListTrait fromNode(Node node) {
Builder builder = builder();
node.expectArrayNode()
.getElements().stream()
.map(n -> n.expectArrayNod... | diff --git a/smithy-trait-codegen/src/it/resources/software/amazon/smithy/traitcodegen/test/lists/nested-boolean-list-trait.smithy b/smithy-trait-codegen/src/it/resources/software/amazon/smithy/traitcodegen/test/lists/nested-boolean-list-trait.smithy
new file mode 100644
index 00000000000..6bdc3606798
--- /dev/null
+++... | 2 | 2 | 1 | [{"id": "G0", "claim": "Rename `lambdaVarName` to `argName` since it is the lambda's argument, and split the ternary expression so it is easier to read.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `.sourceLocation(getSourceLocation())` li... | null |
smithy-lang__smithy__2690 | smithy-lang/smithy | 2,690 | defect | fcb9f3eeba1494d6c8f6932a18627375cacf8219 | cf8abade8ba605511f8f9a311bd8974f5093a8d7 | MQTT Topic Filter Support | #### Background
Adds support (parsing, validation, conflict-checking) for traits to reference MQTT topic filters. Topic filter support is required for the new request-response MQTT service clients being released by the IoT SDKs.
Fixes a bug where the topic parser incorrectly skips a trailing or preceding empty top... | diff --git a/.changes/next-release/feature-972f78d227a4fe30f8512c53c8e5d2ecb2349fc1.json b/.changes/next-release/feature-972f78d227a4fe30f8512c53c8e5d2ecb2349fc1.json
new file mode 100644
index 00000000000..b92c376712c
--- /dev/null
+++ b/.changes/next-release/feature-972f78d227a4fe30f8512c53c8e5d2ecb2349fc1.json
@@ -0... | 2 | 2 | 0 | [{"id": "G0", "claim": "Move the in-code note about the 'topic conflict' definition disagreement out of conflictsWith and into an issue instead, since keeping it in the source is confusing and hard to find.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
smithy-lang__smithy__2706 | smithy-lang/smithy | 2,706 | defect | 784bac345b458a9a10ad7eb3b887f11fe9034809 | d0fabc3a27e225f5faefb36a823846a33d080257 | Fix trait codegen for list with uniqueitems trait | #### Background
The current trait codegen is generating incorrect code for list with `@uniqueItems`. We use `Set` to represent this kind of list in generated Java code but some part of code still generate `List` related code.
For example, the following model:
```smithy
$version: "2.0"
namespace example.traits
... | diff --git a/smithy-trait-codegen/src/it/java/software/amazon/smithy/traitcodegen/test/CreatesTraitTest.java b/smithy-trait-codegen/src/it/java/software/amazon/smithy/traitcodegen/test/CreatesTraitTest.java
index 5fb415ce958..d50282c3996 100644
--- a/smithy-trait-codegen/src/it/java/software/amazon/smithy/traitcodegen/... | 8 | 8 | 2 | [{"id": "G0", "claim": "In FromNodeMapperVisitor's generated code, use the $T format placeholder instead of hardcoding the Map type name, because codegen fully qualifies it when a conflicting shape named Map exists in scope.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, ... | null |
smithy-lang__smithy__2746 | smithy-lang/smithy | 2,746 | defect | 88afe716339e119d0b14ad29463f227770303393 | 2082f48296e9f9bfb0d0e7a902a7b22b2fa14d88 | Return contained operations/resources in order | This updates the results of TopDownIndex to be in modeled order. Previously the resuls were being sorted. This problem extended to the Walker, which was returning shapes in reverse order.
This fixes #2699
---
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 ... | diff --git a/.changes/next-release/feature-3d5d5c00f6fa03f97cef7cdfbe86d1940ae23ff6.json b/.changes/next-release/feature-3d5d5c00f6fa03f97cef7cdfbe86d1940ae23ff6.json
new file mode 100644
index 00000000000..317243e3813
--- /dev/null
+++ b/.changes/next-release/feature-3d5d5c00f6fa03f97cef7cdfbe86d1940ae23ff6.json
@@ -0... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment should say \"resource's\" instead of \"resources\" in Walker.java.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__2754 | smithy-lang/smithy | 2,754 | defect | e483de42ec575d31ea1b047d4d0d1389f0771013 | 3f376e07e7a9305100798d0b6f57c443caff166f | Fix OpenAPI error examples missing when service-level and operation-level errors share HTTP status codes | We noticed that when a Smithy service defines both service-level errors and operation-specific errors that map to the same HTTP status code, the generated OpenAPI spec includes the correct schema structure but completely omits error response examples.
Expected:
ErrorExamples from operation @examples should appear ... | diff --git a/smithy-openapi/src/main/java/software/amazon/smithy/openapi/fromsmithy/protocols/AbstractRestProtocol.java b/smithy-openapi/src/main/java/software/amazon/smithy/openapi/fromsmithy/protocols/AbstractRestProtocol.java
index dcd550617ad..5d78f149661 100644
--- a/smithy-openapi/src/main/java/software/amazon/sm... | 8 | 8 | 1 | [{"id": "G0", "claim": "When deconflicting is enabled the error passed to createErrorBodyExamples is a synthesized error targeting a synthesized union, so the shape-ID lookup must collect the union member targets (with edge-case handling and better names) instead of matching by the synthetic name.", "category": "correc... | null |
smithy-lang__smithy__2759 | smithy-lang/smithy | 2,759 | defect | 4a2ac3248b24931d00ffcc282ea96d129e10c5f9 | d3334a95c9fa9bb05ad05bd2f18e2640ade97385 | Fix loading jars with encoded paths | #### Background
The model assembler can load Smithy files from a jar - model discovery. This works by looking for a 'META-INF/smithy/manifest' file within the jar, which contains the paths of smithy model files within the jar. You can give the model assembler a class loader to use for model discovery, but you can al... | diff --git a/smithy-build/src/main/java/software/amazon/smithy/build/PluginContext.java b/smithy-build/src/main/java/software/amazon/smithy/build/PluginContext.java
index 0497197692e..3b6ff004d74 100644
--- a/smithy-build/src/main/java/software/amazon/smithy/build/PluginContext.java
+++ b/smithy-build/src/main/java/sof... | 1 | 1 | 0 | [{"id": "G0", "claim": "The variable sourceCompareStart computed as \"file:\".length() is unnecessary since it will always be 5.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}] | null |
smithy-lang__smithy__2784 | smithy-lang/smithy | 2,784 | defect | 91d31865844e3630d8d22ba8dc75ca56279b48bd | ecc2b0b04b469a4d091ff9016254c325f349a4cf | Improve naming conflict resolution in Trait Codegen | #### Background
Currently, Trait Codegen added `Type` to `reserved-words.txt` to resolute the name conflicts for `UnionShapes` and the conflict shapes class names would be `TypeShape`. This approach is not ideal since `Type` is used commonly and it is only reserved for Union shapes.
This PR added a Set to store those... | diff --git a/smithy-trait-codegen/src/it/java/software/amazon/smithy/traitcodegen/test/CreatesTraitTest.java b/smithy-trait-codegen/src/it/java/software/amazon/smithy/traitcodegen/test/CreatesTraitTest.java
index e8d9e7a85f7..a8db29dc222 100644
--- a/smithy-trait-codegen/src/it/java/software/amazon/smithy/traitcodegen/... | 1 | 1 | 0 | [{"id": "G0", "claim": "The javadoc for addLocalDefinedName misdescribes the method ('Store pre-defined class name in current file' with '@param name a name pre-defined in the clas.') and should be rewritten to say it declares a local name defined by the writer, which is then used to decide whether to reference same-na... | null |
smithy-lang__smithy__2838 | smithy-lang/smithy | 2,838 | defect | 69cfbb446a494e33ae37adcddf3333e47eb81283 | 8b7ef7f8b5826b2c266147d86cd9700cac06ed5f | Add NodeValidationVisitor feature that enforces base64 encoding of blob values | #### Background
* What do these changes do?
* Adds a new `REQUIRE_BASE_64_BLOB_VALUES` NodeValidationVisitor Feature which enforces that blob values are valid base64-encoded values
* Fixes BlobLengthPlugin to enforce length on the base64-decooded byte array's length instead of the base64-encoded string's length... | diff --git a/.changes/next-release/feature-22e1dd049a18d2fdf13cf205af81f5374e34a46b.json b/.changes/next-release/feature-22e1dd049a18d2fdf13cf205af81f5374e34a46b.json
new file mode 100644
index 00000000000..46dcc640b7d
--- /dev/null
+++ b/.changes/next-release/feature-22e1dd049a18d2fdf13cf205af81f5374e34a46b.json
@@ -0... | 2 | 2 | 0 | [{"id": "G0", "claim": "The staged changelog entry should have this pull request set in its pull_requests field.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The changelog description should be reworded to \"Added a `NodeValidationVisitor` featu... | null |
smithy-lang__smithy__2871 | smithy-lang/smithy | 2,871 | defect | c56108ac9e4fde8a2a01ca53650ce43dfdcd0cc6 | a78ecc57c2a27c4fc19c4fd2cd19fc41c3aafccb | Fix trait codegen for members with idRef | This commit fixes a compilation issue when a member shape has the `idRef` trait applied instead of the member's target shape. This resulted in a compilation error where the `toNode` method was generated with `String` in the value loop instead of a `ShapeId`.
---
By submitting this pull request, I confirm that my ... | diff --git a/.changes/next-release/bugfix-6c01ebf25be52e4f1b87b8d498a5a0edc442ae3d.json b/.changes/next-release/bugfix-6c01ebf25be52e4f1b87b8d498a5a0edc442ae3d.json
new file mode 100644
index 00000000000..05d767230b1
--- /dev/null
+++ b/.changes/next-release/bugfix-6c01ebf25be52e4f1b87b8d498a5a0edc442ae3d.json
@@ -0,0 ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The staged changelog entry should have its pull_requests field set to reference this pull request, via the suggested JSON change.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__2877 | smithy-lang/smithy | 2,877 | defect | 41d381ad9d0b4ffcd69400e80496cac1bd546cb4 | 0999258bb53d47f5e09957b8ef1bc38e9488383c | Add CloudWatch Metric Namespace to AWS service trait | The `cloudWatchNamespace` property is a string value that defines the AWS customer-facing namespace of most metrics emitted by the service.
See also: https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/cloudwatch_concepts.html#Namespace
---
By submitting this pull request, I confirm that my contributi... | diff --git a/.changes/next-release/feature-9141fd64f95bef334aee130c69213bf5470f3285.json b/.changes/next-release/feature-9141fd64f95bef334aee130c69213bf5470f3285.json
new file mode 100644
index 00000000000..f24367cb1eb
--- /dev/null
+++ b/.changes/next-release/feature-9141fd64f95bef334aee130c69213bf5470f3285.json
@@ -0... | 1 | 1 | 0 | [{"id": "G0", "claim": "The staged changelog entry this PR adds should be associated with this PR by populating its pull_requests field (per the suggestion, also rewording the description to 'Added CloudWatch Metric Namespace to AWS service trait.').", "category": "documentation", "verdict": "supported", "priority": "P... | null |
smithy-lang__smithy__2893 | smithy-lang/smithy | 2,893 | defect | a5a34923b835639bd4b8d117e3fdf1dd4baf8617 | 945d97f058b5d51e1ec12f83de9e2960581ba40a | Add shared file manifest to codgen-core | This plumbs the shared file manifest through the core codegen interfaces so that it may be used in integrations.
---
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/.changes/next-release/feature-bae927e7c04114f18cf752d81d489ca59080c151.json b/.changes/next-release/feature-bae927e7c04114f18cf752d81d489ca59080c151.json
new file mode 100644
index 00000000000..2eef6886608
--- /dev/null
+++ b/.changes/next-release/feature-bae927e7c04114f18cf752d81d489ca59080c151.json
@@ -0... | 1 | 1 | 0 | [{"id": "G0", "claim": "The staged changelog entry should have its \"pull_requests\" field set to this pull request (the bot asks to commit the suggested JSON associating the entry with #2893).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__2895 | smithy-lang/smithy | 2,895 | defect | a5a34923b835639bd4b8d117e3fdf1dd4baf8617 | 2e7dd7311aba74f0fd6dcbfc2a4b0b75675b60b7 | Fix toBuilder for @service trait | By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
| diff --git a/.changes/next-release/bugfix-fc7481a10126b72b78fa2902588b13787d1d855a.json b/.changes/next-release/bugfix-fc7481a10126b72b78fa2902588b13787d1d855a.json
new file mode 100644
index 00000000000..615c5985ff0
--- /dev/null
+++ b/.changes/next-release/bugfix-fc7481a10126b72b78fa2902588b13787d1d855a.json
@@ -0,0 ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The staged changelog entry should list this pull request in its pull_requests field.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__3001 | smithy-lang/smithy | 3,001 | defect | 4491592cc8eaeb18eaad48206b95fee79e97099c | c1fca1c0896b80e445f622daf7b620ad55a8bb66 | Change the transform to add new shapes before removing old ones | #### Background
Change the `CreateDedicatedInputAndOutput` transform to add new shapes before removing old ones. If the shapes are removed first as it was done before this change, when the operation has the `clientDiscoveredEndpoint` the transform
`CleanClientDiscoveryTraitTransformer` that handles the removal of s... | diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index dbc3ce4a040..2e1113280ef 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
-distrib... | 1 | 1 | 0 | [{"id": "G0", "claim": "The comment's grammar should be fixed to read \"the newly introduced input will be deleted as well\" instead of \"as will be deleted\".", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__3004 | smithy-lang/smithy | 3,004 | defect | 4491592cc8eaeb18eaad48206b95fee79e97099c | 842595d368e7e749f664be61d4965bff151708e8 | Fix issues handling high-precision numbers | The Double.isFinite method was incorrectly used to detect if a value would fit in a double. The method handles this properly, but it's not actually what we want - we want to know if the value will be accurately represented by a double.
To resolve this, a NumberUtils class is added with a method that validates precis... | diff --git a/.changes/next-release/feature-6289218d427df9d332b7104ad0012f630797168f.json b/.changes/next-release/feature-6289218d427df9d332b7104ad0012f630797168f.json
new file mode 100644
index 00000000000..b26d8af9d5b
--- /dev/null
+++ b/.changes/next-release/feature-6289218d427df9d332b7104ad0012f630797168f.json
@@ -0... | 2 | 2 | 0 | [{"id": "G0", "claim": "Values over double max / under double min that aren't literal Infinities are translated to infinity when parsed to a Double, though they would be valid BigDecimals.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "pre_existing"}, {"id": "G2", "claim": "The duplica... | null |
smithy-lang__smithy__3019 | smithy-lang/smithy | 3,019 | defect | 2f996af630093831db7e44eaffa3771a336a7e12 | b8bd762e42ebbd8f7e2e21919b664d5a9fb2d4ad | Add a long-poll trait | This adds a trait to indicate that an operation is a long-polling operation. AWS has a few of these, and until now we've essentially just customized the HTTP timeouts on them to be 70 seconds or so. This will allow service owners to set the expectations.
This is also needed for some changes the AWS SDKs want to do f... | diff --git a/.changes/next-release/feature-ce0833b6d6a04e259604ee514e4b7b871aa80a30.json b/.changes/next-release/feature-ce0833b6d6a04e259604ee514e4b7b871aa80a30.json
new file mode 100644
index 00000000000..24a4dae5a66
--- /dev/null
+++ b/.changes/next-release/feature-ce0833b6d6a04e259604ee514e4b7b871aa80a30.json
@@ -0... | 1 | 1 | 0 | [{"id": "G0", "claim": "The staged changelog entry should have its pull_requests field set to this pull request rather than left empty.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__3055 | smithy-lang/smithy | 3,055 | defect | 40786bdbfb1b30569f5a7cfa3785a8bc6a4316af | 01024ebd48927ec53c50031a70626f2803f3b770 | Ignore JARs without a Smithy manifest | This commit logs when a JAR is encountered with a missing manifest instead of throwing, allowing for libraries that bring in Smithy models to have dependencies on non-Smithy packages.
Fixes #2581
---
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 licens... | diff --git a/.changes/next-release/feature-6dc2e6dcfbad136a8cffecc102b0f02214cd9e46.json b/.changes/next-release/feature-6dc2e6dcfbad136a8cffecc102b0f02214cd9e46.json
new file mode 100644
index 00000000000..d41ccdeebb1
--- /dev/null
+++ b/.changes/next-release/feature-6dc2e6dcfbad136a8cffecc102b0f02214cd9e46.json
@@ -0... | 1 | 1 | 0 | [{"id": "G0", "claim": "The staged changelog entry should have an associated pull request set instead of an empty pull_requests list.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__3058 | smithy-lang/smithy | 3,058 | defect | 524ebb79de59acf640172f97317af8554e7e3184 | 7ae734c2d1834e8f810e0c6b5cdba6b91876a4ed | Add custom IDL serialization ordering support | A new `SmithyIdlSerializationOrder` interface extracts the comparator methods from `SmithyIdlComponentOrder` into a public contract that the enum now implements. Users can provide custom implementations to control shape, trait, and metadata ordering during IDL serialization.
Resolves #2564
---
By submitting thi... | diff --git a/.changes/next-release/feature-d774f63260bae2ee8d11ff1898618d4096b6daac.json b/.changes/next-release/feature-d774f63260bae2ee8d11ff1898618d4096b6daac.json
new file mode 100644
index 00000000000..ed07a2c622a
--- /dev/null
+++ b/.changes/next-release/feature-d774f63260bae2ee8d11ff1898618d4096b6daac.json
@@ -0... | 1 | 1 | 0 | [{"id": "G0", "claim": "The staged changelog entry should have this pull request set in its pull_requests field.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-lang__smithy__3061 | smithy-lang/smithy | 3,061 | defect | 05c84b811e252b8e198ef15f6c3e8fe1493f5496 | a362b834bf0eba0218f27d492f739a2adc14c974 | Fix CLI dependency cache for multiple configs | The `smithy ast` command cached resolved maven dependencies to a single `classpath.json` keyed only by the output directory. When different `--config` files shared the same output directory, the second invocation reused the first's cached dependencies.
`FileCacheResolver` now stores a hash of the dependency configur... | diff --git a/.changes/next-release/bugfix-64f2d54aae177e3b8290c9309e873954749ee3d3.json b/.changes/next-release/bugfix-64f2d54aae177e3b8290c9309e873954749ee3d3.json
new file mode 100644
index 00000000000..d44e9931935
--- /dev/null
+++ b/.changes/next-release/bugfix-64f2d54aae177e3b8290c9309e873954749ee3d3.json
@@ -0,0 ... | 1 | 1 | 0 | [{"id": "G0", "claim": "The staged changelog entry should have this pull request set in its \"pull_requests\" array (currently empty), as the bot's suggestion block proposes.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smithy-security__smithy__1112 | smithy-security/smithy | 1,112 | defect | abcc04324a7a4674699e21d7fb0edff40594e343 | fdd8b0068471f08115706aafb1d4d2835839d382 | Finding Verifcation and Comparison Fixes: SMITHY-636 | This gives two testing utils, AssertVulnerabilityFindingIsValid and AssertFindingListsMatch
This should enforce that the correct fields are being provided by the scanners in the right formats | diff --git a/sdk/component/utils/testing/oscf_vulnerability_finding_verification.go b/sdk/component/utils/testing/oscf_vulnerability_finding_verification.go
new file mode 100644
index 000000000..bfb8bd8b0
--- /dev/null
+++ b/sdk/component/utils/testing/oscf_vulnerability_finding_verification.go
@@ -0,0 +1,174 @@
+packa... | 3 | 2 | 0 | [{"id": "G0", "claim": "The validator should make sure the vulnerability has at least one of the two identifiers (a CWE or a CVE).", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "AssertVulnerabilityFindingIsValid should return a boolean showing whether... | null |
smithy-security__smithy__181 | smithy-security/smithy | 181 | defect | 29bfbc24bfa060a3f0ed3d209fdc0231a47c16dc | 4d7638fed558be6355ccc6843bde36d8b44ad55b | Ensure dracon_scan_* variables are set correctly | Different versions of Tekton apply different validations to a Pipeline. If one uses more than version they will probably get a more complete list of errors for their pipelines. After using different versions of Tekton, I discovered that the `dracon_scan_*` parameters for the producer tasks are not set correctly.
Thi... | diff --git a/docs/getting-started.md b/docs/getting-started.md
index b6d5db013..8bc938555 100644
--- a/docs/getting-started.md
+++ b/docs/getting-started.md
@@ -78,7 +78,7 @@ Kibana and the bitnami charts to deploy instances of PostgreSQL and MongoDB.
If you run the command:
```bash
-make dev-dracon DRACON_VERSION=... | 6 | 6 | 0 | [{"id": "G0", "claim": "The unchecked type assertion `task := obj.(*tektonv1beta1api.Task)` in TestCreateHelmPackage should use the checked two-value form so the errcheck lint error is resolved.", "category": "correctness", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The ign... | null |
smithy-security__smithy__206 | smithy-security/smithy | 206 | defect | db0565965fae22eeecf513dc4d91348be4d14930 | 6caf6c103f3d37ec63ef360206b090de35355fb0 | [OCU-118] 🐛 Fix Semgrep and Bandit producers not recording CWE | Both the Semgrep and Bandit producers were not correctly propagating the CWE from their JSON inputs. This is now fixed. | diff --git a/components/producers/python-bandit/main.go b/components/producers/python-bandit/main.go
index 05588dc19..261254e4b 100644
--- a/components/producers/python-bandit/main.go
+++ b/components/producers/python-bandit/main.go
@@ -58,6 +58,7 @@ func parseResult(r *BanditResult) (*v1.Issue, error) {
Cvss: ... | 3 | 2 | 2 | [{"id": "G0", "claim": "handleSemgrepCWE and convertCWEStringToInt (and the other log.Fatal uses further down) should return errors instead of calling log.Fatalf/log.Fatal outside of a main, letting the caller decide whether to stop executing or keep going.", "category": "correctness", "verdict": "supported", "priority... | null |
smithy-security__smithy__269 | smithy-security/smithy | 269 | defect | 3dd31071f01406a7db19894b1631615a116c665e | 7a249c3de315ac75dfdfc4cd975074caaa2bb29b | [OCU-155] Fix example workflows are failing | This PR fixes three existing example workflows, so they run successfully and produce valid results.

We now have three example pipelines (golang, typescript, python) that all produce useful results. To achieve this, several t... | diff --git a/components/consumers/elasticsearch/task.yaml b/components/consumers/elasticsearch/task.yaml
index 39bf61f3d..05ddf21d9 100644
--- a/components/consumers/elasticsearch/task.yaml
+++ b/components/consumers/elasticsearch/task.yaml
@@ -9,7 +9,7 @@ spec:
params:
- name: consumer-elasticsearch-url
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The elasticsearch consumer's default URL should not use a namespaced domain (dracon.svc.cluster.local), because it breaks the component when the Helm package is installed in any namespace other than dracon.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduc... | null |
smithy-security__smithy__449 | smithy-security/smithy | 449 | defect | 086c18b8f4d749d4c5a98cc9a87825c8b038851e | a29842695c72b28119d628a70126f2de588cad19 | Bugfix/scorecard producer | you can test this by running the example workflow for scorecard | diff --git a/components/enrichers/custom-annotation/main.go b/components/enrichers/custom-annotation/main.go
index 066f1e3af..cbdecfcb5 100644
--- a/components/enrichers/custom-annotation/main.go
+++ b/components/enrichers/custom-annotation/main.go
@@ -69,9 +69,8 @@ func run(name, annotations string) error {
}
func... | 5 | 2 | 1 | [{"id": "G0", "claim": "The producer uses both `log` and `log/slog`; the reviewer asks to use only `slog`.", "category": "maintainability", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "parseIssues should not append a \"\\n\" after the last entry of the details slice, so the des... | null |
smithy-security__smithy__46 | smithy-security/smithy | 46 | defect | 44b6e540f196c0bb90141cb0c16cabb72c668f7a | 4ba6853d854590b8a41c406b76ca3601e73ceaa3 | Depsdev improvements | this pr improves the deps.dev enricher by adding [scorecard](https://github.com/ossf/scorecard) information to each field | diff --git a/components/enrichers/depsdev/README.md b/components/enrichers/depsdev/README.md
index 955e9f6e5..d80ba1f6d 100644
--- a/components/enrichers/depsdev/README.md
+++ b/components/enrichers/depsdev/README.md
@@ -4,9 +4,7 @@
_Because Go licenses must be detected, there's always a chance of the detected license... | 7 | 7 | 0 | [{"id": "G0", "claim": "The exported type Check should have a doc comment or be unexported (go/revive).", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The exported type ScorecardV2 should have a doc comment or be unexported (go/revive).", "categor... | null |
smittix__intercept__160 | smittix/intercept | 160 | defect | 37f0197f9a98748145981920fb28f03abaefbba5 | ce12a8e4aee596f422952d9e3a8451c1d6262632 | feat: add OOK/AM envelope detection mode to Morse decoder | ## OOK/AM Envelope Detection Mode for Morse Decoder
Adds a second detection mode to the Morse decoder for OOK (on-off keying) signals on ISM bands, while preserving the existing CW Goertzel path completely unchanged.
### What changed
- **`EnvelopeDetector` class** — RMS envelope detector for AM-demodulated OOK signa... | diff --git a/app.py b/app.py
index 1584e83e..b77660c1 100644
--- a/app.py
+++ b/app.py
@@ -203,6 +203,11 @@ def inject_offline_settings():
morse_queue = queue.Queue(maxsize=QUEUE_MAX_SIZE)
morse_lock = threading.Lock()
+# RF Fax / OOK bitmap decoder
+rf_fax_process = None
+rf_fax_queue = queue.Queue(maxsize=QU... | 12 | 11 | 8 | [{"id": "G0", "claim": "The branch is stale: routes/morse.py uses a positional-arg API incompatible with the substantially rewritten current main (lifecycle state machine, keyword args, control_queue, pcm_ready_event), so it needs a rebase against current main.", "category": "correctness", "verdict": "supported", "prio... | null |
smokin-salmon__smoked-salmon__402 | smokin-salmon/smoked-salmon | 402 | defect | a05f87c0530cea27be68d054d373327927bcf20f | 4a87f9bfefad08d9f9a532400c4cb77b90bea2c5 | Prevent missing tracks by fixing track ordering in combine_tracks() | this should fix the issue introduced in https://github.com/smokin-salmon/smoked-salmon/commit/d84a570dd5bf93e466c3026cb04d69c9908e8dfa.
this should hopefully close https://github.com/smokin-salmon/smoked-salmon/issues/396?
scope: this only fixes the sorting logic in combine_tracks() & adds regression tests for that... | diff --git a/src/salmon/tagger/combine.py b/src/salmon/tagger/combine.py
index 4a58641f..b27f5e96 100644
--- a/src/salmon/tagger/combine.py
+++ b/src/salmon/tagger/combine.py
@@ -179,10 +179,26 @@ def _extract_remixers_from_title(title):
return []
+def _natural_track_key(value):
+ """Sort keys numerically w... | 1 | 1 | 0 | [{"id": "G0", "claim": "Fix the typo and grammar in the new comment in combine_tracks(): \"dictonary\" should be \"dictionary\" and the sentence should be pluralized.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smol-rs__async-broadcast__15 | smol-rs/async-broadcast | 15 | defect | 519b5c036de257f7c15a0e7577265915c412b64e | 73f2adc89241f80d42bcc6a84356bd5c491e5509 | Fix: Close channel if the last receiver to drop is inactive | Before, the channel wasn't closed if the last receiver to drop is inactive | diff --git a/src/lib.rs b/src/lib.rs
index d106bf8..e94a663 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -105,7 +105,7 @@ use std::error;
use std::fmt;
use std::future::Future;
use std::pin::Pin;
-use std::sync::{Arc, Mutex};
+use std::sync::{Arc, Mutex, MutexGuard};
use std::task::{Context, Poll};
use event_list... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new helper `close_channel_if_last_receiver` should be a method of `Inner<T>` taking `&mut self` instead of a free function taking `&mut MutexGuard<'_, Inner<T>>`.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smol-rs__async-broadcast__56 | smol-rs/async-broadcast | 56 | defect | 1803434a2c89e067f99f743d872035c8324ba101 | ba7483f70704112701ea4cb173703af6078b8522 | Add poll_recv method to Receiver | This PR Adds a `poll_recv()` method to the `Receiver` type. It returns the same `Result<T,RecvError>` type that the `receiver.recv()` future returns (hence the name).
This method can be used when defining custom streams that internally make use of `async_broadcast` and want to know about whether the `async_broadcast... | diff --git a/src/lib.rs b/src/lib.rs
index d6c9d2f..5d77f7c 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -1298,6 +1298,62 @@ impl<T: Clone> Receiver<T> {
listener: None,
}
}
+
+ /// A low level poll function that returns items of the same format handed back by
+ /// [`Receiver::recv()`] ... | 4 | 2 | 0 | [{"id": "G0", "claim": "The reviewer does not follow what the change accomplishes: the built-in Stream impl is still ignoring the overflow.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "pre_existing"}, {"id": "G1", "claim": "The poll_recv doc comment should say 'method' instead of 'function'... | null |
smol-rs__async-channel__102 | smol-rs/async-channel | 102 | defect | 43459d1818707be79bcf1c7bbeecaac379802af9 | 677de83a532473c501012000413b09bd7081c29a | Add Sender::closed future | This adds `Sender::closed()` similar to `tokio::sync::mpsc::Sender::closed()` ([link](https://docs.rs/tokio/latest/tokio/sync/mpsc/struct.Sender.html#method.closed)).
| diff --git a/src/lib.rs b/src/lib.rs
index 3df8b59..8fcdc8d 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -70,6 +70,9 @@ struct Channel<T> {
/// Stream operations while the channel is empty and not closed.
stream_ops: Event,
+ /// Closed operations while the channel is not closed.
+ closed_ops: Event,
+... | 4 | 3 | 2 | [{"id": "G0", "claim": "The doc comment inside the easy_wrapper! block for the Closed future should say it is the future returned by Sender::closed(), not by Receiver::recv().", "category": "documentation", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The Sender::closed doc c... | null |
smol-rs__async-channel__47 | smol-rs/async-channel | 47 | defect | 063438f96acccca85e01215761911e644a713d15 | bb8f9abb725b5a6fcfd78d169c83001264be0987 | Add blocking functionality to channels | As per discussion in smol-rs/async-lock#25, I have added `send_blocking` and `recv_blocking` methods to the `Sender` and `Receiver` structures, respectively. In order to reduce code duplication, I implemented this by parameterizing the logic found in the `Send` and `Recv` futures using a trait that either `poll`s the `... | diff --git a/src/lib.rs b/src/lib.rs
index 7c4d93f..9f240a6 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -242,6 +242,36 @@ impl<T> Sender<T> {
}
}
+ /// Sends a message into this channel using the blocking strategy.
+ ///
+ /// If the channel is full, this method will block until there is room.
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new doc comments must not say calling send_blocking/recv_blocking in an `async` block \"will result in undefined behavior\": deadlocks are not UB and safe code cannot cause UB (M004 asks to say instead that calling the method on async code may cause deadlock).", "category": "documentation", ... | null |
smol-rs__async-channel__49 | smol-rs/async-channel | 49 | defect | 477b212dc40708901b38c3cc025781f5d1353487 | ff9d5b7233d1165d2aa2c559d1bde1624aef9bff | Prevent deadlock if sender/receiver is forgotten | Fixes https://github.com/smol-rs/async-channel/issues/45.
This is mostly similar to PR https://github.com/smol-rs/async-channel/pull/16 by another author, but its motivation is correctness rather than the purported performance advantage. Differences with PR https://github.com/smol-rs/async-channel/pull/16:
- it add... | diff --git a/Cargo.toml b/Cargo.toml
index 14ca37c..8102650 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -24,3 +24,4 @@ futures-core = "0.3.5"
[dev-dependencies]
easy-parallel = "3"
futures-lite = "1"
+waker-fn = "1"
diff --git a/src/lib.rs b/src/lib.rs
index 3185f50..3014e14 100644
--- a/src/lib.rs
+++ b/src/lib.rs
... | 4 | 1 | 0 | [{"id": "G0", "claim": "The hand-rolled `poll_now` test helper could be replaced with `poll_once` from `futures_lite`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The pull request removes the extra notification of another blocked sender in `S... | null |
smol-rs__async-executor__92 | smol-rs/async-executor | 92 | defect | 0baba46152d65f9ba10acd0fe4b612b8c8339f23 | 89d0fb5056eea79aad5127cce9ef119e5740777e | Add a way to batch spawn tasks | For some workloads many tasks are spawned at a time. This requires
locking and unlocking the executor's inner lock every time you spawn a
task. If you spawn many tasks this can be expensive.
This commit exposes a new "spawn_many" method on both types. This
method allows the user to spawn an entire set of tasks at... | diff --git a/benches/executor.rs b/benches/executor.rs
index 20d41a1..ee968a5 100644
--- a/benches/executor.rs
+++ b/benches/executor.rs
@@ -52,6 +52,21 @@ fn running_benches(c: &mut Criterion) {
);
});
+ group.bench_function("executor::spawn_batch", |b| {
+ run(
+ ... | 9 | 6 | 2 | [{"id": "G0", "claim": "The first part of the spawn_many loop duplicates the corresponding part of spawn and should be refactored into a common private function.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A SpawnScope<'a> might be a more fle... | null |
smol-rs__async-io__149 | smol-rs/async-io | 149 | defect | d9c9ed8aaeafeae5ccc675ec582bab2c3f4d1586 | 11670633cf673533cc5a4962ed719c90289736d3 | Optimize block_on by caching Parker and Waker | `async-io`'s implementation of `block_on` currently creates a new parker and waker on every invocation. This PR caches the parker and waker in a thread-local to improve performance. Most of this code is copied from [`futures-lite`'s implementation of `block_on`](https://github.com/smol-rs/futures-lite/blob/2234456b71cd... | diff --git a/src/driver.rs b/src/driver.rs
index 168d55d..34ab89b 100644
--- a/src/driver.rs
+++ b/src/driver.rs
@@ -1,13 +1,15 @@
-use std::cell::Cell;
+use std::cell::{Cell, RefCell};
use std::future::Future;
use std::sync::atomic::{AtomicBool, AtomicUsize, Ordering};
use std::sync::Arc;
+use std::task::Waker;
us... | 1 | 1 | 1 | [{"id": "G0", "claim": "A test should be added making sure recursive `block_on` calls work, covering both the case where the outer `block_on` is notified first and the case where the inner one is notified first.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smol-rs__async-io__41 | smol-rs/async-io | 41 | defect | 1f860a9525bc01dfadb7a842de6367444371c650 | c51dc6f861b61f2722246dcf3afd18026af31004 | Add interval api. | Based on #35, needed to use async-io in more places in libp2p. | diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml
index bbbe77a..186ce39 100644
--- a/.github/workflows/build-and-test.yaml
+++ b/.github/workflows/build-and-test.yaml
@@ -16,14 +16,14 @@ jobs:
rust: [nightly, beta, stable, 1.39.0]
steps:
- uses: actions/che... | 3 | 3 | 3 | [{"id": "G0", "claim": "Implement `poll()` by calling `poll_next()`, treating a regular timer (`at()`/`after()`) as a stream (`interval_at()`) with a period of infinity, instead of duplicating the logic in a separate `Future::poll` implementation.", "category": "design", "verdict": "supported", "priority": "P1", "scope... | null |
smol-rs__async-lock__47 | smol-rs/async-lock | 47 | defect | 90b1a30f397342109d4c83ac76ac795a60c55b09 | c95ea6c2cf17f3e74ba69f5f54f9414d0985466c | Add reference-counted versions of `RwLock` guards | Fixes #33 | diff --git a/src/lib.rs b/src/lib.rs
index a2ee70a..9e43386 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -47,7 +47,10 @@ mod semaphore;
pub use barrier::{Barrier, BarrierWaitResult};
pub use mutex::{Mutex, MutexGuard, MutexGuardArc};
pub use once_cell::OnceCell;
-pub use rwlock::{RwLock, RwLockReadGuard, RwLockUpgrad... | 5 | 4 | 2 | [{"id": "G0", "claim": "src/rwlock.rs has grown too long and should be split into multiple files, since a single module shouldn't be more than 1000 lines.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The new guard type should be named `RwLockR... | null |
smol-rs__async-lock__56 | smol-rs/async-lock | 56 | defect | c78896411f3bdc091df1c1870d64095455d50f51 | d4bea429cd69a9b56454e09f3bc4665d3885f8b5 | Support blocking and non-blocking operations on the same mutex | Supersedes #25 and #39, needs smol-rs/event-listener-strategy#6 | diff --git a/Cargo.toml b/Cargo.toml
index 74fe924..776d152 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -16,7 +16,7 @@ exclude = ["/.*"]
[dependencies]
event-listener = { version = "3.0.0", default-features = false }
-event-listener-strategy = { version = "0.2.0", default-features = false }
+event-listener-strategy... | 2 | 2 | 1 | [{"id": "G0", "claim": "The docs of the new blocking methods in src/barrier.rs and src/rwlock.rs say \"This method should not be used in a synchronous context\", inverting the intended warning that it should not be used in an asynchronous context.", "category": "documentation", "verdict": "supported", "priority": "P1",... | null |
smol-rs__polling__101 | smol-rs/polling | 101 | defect | 0f38ed35eab0c6f3be3158a1ee2988f4b46ec9fd | abb67fba9c1d27040cdac52082773d7c3e5f44a0 | feat: Add functionality for posting events to the IOCP | Adds a `CompletionPacket` structure that can be used to post arbitrary events to the I/O completion port. The idea is to allow for self-wakeups without using pipes, which aren't available on Windows. | diff --git a/src/iocp/mod.rs b/src/iocp/mod.rs
index 39eb4a9..69bfa0e 100644
--- a/src/iocp/mod.rs
+++ b/src/iocp/mod.rs
@@ -323,6 +323,11 @@ impl Poller {
self.port.post(0, 0, self.notifier.clone())
}
+ /// Push an IOCP packet into the queue.
+ pub(super) fn post(&self, packet: &CompletionPacket)... | 3 | 3 | 0 | [{"id": "G0", "claim": "Poller::post clones the CompletionPacket even though it only holds a pinned Arc, and should take the packet by value instead of a reference.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "CompletionPacket::event should return... | null |
smol-rs__polling__123 | smol-rs/polling | 123 | defect | 7a1fd31944d8fb55acf2c209144196d259bafb89 | 8333da472dc4543b982d29e29593583c08c676f3 | Rework the API for I/O safety | This reworks the `polling` API with I/O safety in mind. See #38 and smol-rs/smol#244 for more information.
This is a breaking change that makes the `add()` family of functions `unsafe`. I am very open to alternatives to this change.
The indirect effects of this change is that is makes `async_io::Async::get_mut` and... | diff --git a/examples/two-listeners.rs b/examples/two-listeners.rs
index 3dcbc4b..02b2339 100644
--- a/examples/two-listeners.rs
+++ b/examples/two-listeners.rs
@@ -10,8 +10,10 @@ fn main() -> io::Result<()> {
l2.set_nonblocking(true)?;
let poller = Poller::new()?;
- poller.add(&l1, Event::readable(1))?;... | 3 | 1 | 1 | [{"id": "G0", "claim": "Since `add` is `unsafe` and takes a `RawFd`, `modify` should be `unsafe` too, for the same reason.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The `# Safety` docs for `add` should also state that the file descriptor must remain v... | null |
smol-rs__polling__164 | smol-rs/polling | 164 | defect | 0575cbd4bc7ff012eb3563981b576715527ae961 | bee0eea550f82720ee7d587feee0bfea60d8e8d4 | Handle interrupts while polling | Previous, `Poller::wait` would bubble signal interruption error to the user. However, this may be unexpected for simple use cases. Thus, this commit makes it so, if `ErrorKind::Interrupted` is received by the underlying `wait()` call, it clears the events and tries to wait again.
This also adds a test for this inter... | diff --git a/Cargo.toml b/Cargo.toml
index 3c3e8db..1dc9022 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -44,3 +44,7 @@ features = [
[dev-dependencies]
easy-parallel = "3.1.0"
fastrand = "2.0.0"
+
+[target.'cfg(unix)'.dev-dependencies]
+libc = "0.2"
+signal-hook = "0.3.17"
diff --git a/src/lib.rs b/src/lib.rs
index 9... | 2 | 2 | 2 | [{"id": "G0", "claim": "With a timeout, the new interrupt-retry loop restarts the full timeout after every interruption, so a poll with a timeout of one second can run infinitely long; proposed turning the interrupted wait into a spurious wakeup or only looping when no timeout was given.", "category": "correctness", "v... | null |
smol-rs__polling__197 | smol-rs/polling | 197 | defect | 1c16a1e4affaecc9e1f149c5d00133624b268405 | ac07039ddb3e7fb8a81139bd14904cb41cecf1f0 | feat: ported to Vita target | Fixes #160
### Notes
- `signal-hook` does not compile and won't work on Vita, `pthread_kill` is a stub in Vita `newlib`
- Pipes in Vita newlib do not guarantee that after the write completes, the payload is immediately available on the other side of the pipe. This PR temporarily removes the `NONBLOCK` flag from th... | diff --git a/Cargo.toml b/Cargo.toml
index 5730302..6206c6c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -55,4 +55,6 @@ socket2 = "0.5.5"
[target.'cfg(unix)'.dev-dependencies]
libc = "0.2"
+
+[target.'cfg(all(unix, not(target_os="vita")))'.dev-dependencies]
signal-hook = "0.3.17"
diff --git a/src/poll.rs b/src/poll... | 2 | 2 | 1 | [{"id": "G0", "claim": "The Vita pipe-blocking workaround sitting at the call site in `Poller::wait` should be inlined into `pop_notification`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Add a test for this in CI; just a `cargo check` for th... | null |
smol-rs__polling__26 | smol-rs/polling | 26 | defect | 2e27830522ef6bb88ef0c3c894f20200e08ada5d | a04a265f9b835e75545b597878acb44f74117534 | Support VxWorks, Fuchsia and other Unix systems by using poll | Closes #20.
Notes:
* I had to add the `extra_traits` feature to `libc` to `#[derive(Debug)]` on the polling implementation. This can be done manually to avoid activating the feature, if that's something you care about.
* I had to `#[derive(Clone, Copy)]` on `Event`. It seems to be fine as `Event`'s interface is al... | diff --git a/Cargo.toml b/Cargo.toml
index 91ca03e..8f18c07 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -21,7 +21,7 @@ cfg-if = "1"
log = "0.4.11"
[target."cfg(unix)".dependencies]
-libc = "0.2.77"
+libc = { version = "0.2.77", features = ["extra_traits"] }
[target.'cfg(windows)'.dependencies]
wepoll-sys = "3.0... | 9 | 8 | 5 | [{"id": "G0", "claim": "It is not ensured that a thread blocked in wait() does not hold the fds mutex so that a concurrent add() blocks forever, nor that add() wakes up the wait() caller when the added FD is immediately ready and outside its poll set.", "category": "correctness", "verdict": "supported", "priority": "P0... | null |
smoltcp-rs__smoltcp__1012 | smoltcp-rs/smoltcp | 1,012 | defect | 33bf7984380a655b58ef75eb12e0faf915140670 | 8c0caf1ba7aaceeb685be6e6391a378561864dfa | feat: Automatically join solicited-node multicast addresses | IPv6 over Ethernet should join the solicited-node multicast
addresses required by the configured IPv6 addresses, as neighbor
solicitations for these addresses have the solicited-node multicast
address as destination address.
This commit automatically leaves old solicited-node multicast addresses
and joins the ne... | diff --git a/src/iface/interface/mod.rs b/src/iface/interface/mod.rs
index 4df6d7378..4a2458ab6 100644
--- a/src/iface/interface/mod.rs
+++ b/src/iface/interface/mod.rs
@@ -361,7 +361,12 @@ impl Interface {
pub fn update_ip_addrs<F: FnOnce(&mut Vec<IpCidr, IFACE_MAX_ADDR_COUNT>)>(&mut self, f: F) {
f(&mut... | 1 | 1 | 1 | [{"id": "G0", "claim": "The filter in `update_solicited_node_groups` should keep solicited-node groups whose address is no longer solicited, i.e. use `&& !has_solicited_node(...)` instead of `&& has_solicited_node(...)`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
smoltcp-rs__smoltcp__821 | smoltcp-rs/smoltcp | 821 | defect | fa7fd3c321b8a3bbe1a8a4ee2ee5dc1b63231d6b | 8bdfed6220c4fbc921dc697a6a0c2dbfafe3126a | Add basic IPSec support to `wire` | As mentioned #816 here, supporting the `IPSec` protocol kernel aspects would be nice.
The first step for supporting `IPSec` will be implementing `AH` and `ESP` related `Packet` and `Repr` in the `wire`.
I don't know if it is OK to merge the wire representations and then add complete support to other layers or not. | diff --git a/Cargo.toml b/Cargo.toml
index a1745066b..b54788ad2 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -57,6 +57,8 @@ defmt = [ "dep:defmt", "heapless/defmt", "heapless/defmt-impl" ]
"proto-sixlowpan" = ["proto-ipv6"]
"proto-sixlowpan-fragmentation" = ["proto-sixlowpan", "_proto-fragmentation"]
"proto-dns" = []... | 7 | 7 | 0 | [{"id": "G0", "claim": "The Display output and (per the follow-up) the enum variant names for the new ESP/AH protocols should read `IPsec-ESP`/`IPsec-AH` instead of `ESP`/`AH`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In the new tests the ... | null |
smoltcp-rs__smoltcp__939 | smoltcp-rs/smoltcp | 939 | defect | 30afc3eac224914f6aecae3cf44765d20b6c9027 | b32d248cc8abbb152431923c5c9def43ecf7e752 | Support TCP Timestamp option | This is currently not relating to the RTT estimation, just for supporting remotes who do support it.
The generator isn't a lambda to avoid a generic.
Tests include a logic test of an established session and tests which make sure this option is only enabled if the both sides support it. | diff --git a/src/iface/interface/tests/mod.rs b/src/iface/interface/tests/mod.rs
index e6dbda4fe1..d1ee45fe34 100644
--- a/src/iface/interface/tests/mod.rs
+++ b/src/iface/interface/tests/mod.rs
@@ -169,6 +169,7 @@ pub fn tcp_not_accepted() {
max_seg_size: None,
sack_permitted: false,
sack_ra... | 5 | 4 | 3 | [{"id": "G0", "claim": "The tsval generator callback should perhaps be `FnMut` (or boxed) instead of `fn` to allow closures.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The timestamp data should be carried in a proper structure with inherent methods rat... | null |
smoltcp-rs__smoltcp__985 | smoltcp-rs/smoltcp | 985 | defect | 80257520132e18caa59d20fa200917a01c67e68d | f0593e4e6f87098a945941d51a14ba1492380fe5 | iface: do not require device and timestamp for multicast join/leave. | Instead of eagerly sending the join/leave packet when the user calls join/leave,
we update internal state and send the packet when the interface is polled.
Advantages:
- If the device is exhausted, the packet gets sent later instead of just failing and returning an error to the user.
- Makes the API consistent with ev... | diff --git a/examples/multicast.rs b/examples/multicast.rs
index ea89a2e93..44162d6d3 100644
--- a/examples/multicast.rs
+++ b/examples/multicast.rs
@@ -82,11 +82,7 @@ fn main() {
// Join a multicast group to receive mDNS traffic
iface
- .join_multicast_group(
- &mut device,
- I... | 1 | 1 | 0 | [{"id": "G0", "claim": "The new MulticastGroupState enum should be moved out of interface/mod.rs into interface/igmp.rs.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
smu160__PhastFT__27 | smu160/PhastFT | 27 | defect | 48a8d15fde6a1d9e65a09b84ecc72f9bd31f825a | ecca75be52a3ea057cfeb5d131d24a5f44328c25 | Add functions to support interleaved complex num | @calebzulawski @Shnatsel
A draft PR to address issue #22.
| diff --git a/Cargo.toml b/Cargo.toml
index 98e51eb..4b5c7a7 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,6 +13,7 @@ exclude = ["assets", "scripts", "benches"]
[dependencies]
num-traits = "0.2.18"
multiversion = "0.7"
+num-complex = "0.4.5"
[dev-dependencies]
utilities = { path = "utilities" }
diff --git a/src... | 3 | 2 | 0 | [{"id": "G0", "claim": "The num-complex dependency should be an optional feature, possibly even a non-default one but enabled on docs.rs, with the associated functions annotated as available only with that feature.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "c... | null |
snabbdom__snabbdom__1061 | snabbdom/snabbdom | 1,061 | defect | 52d70221169e6e8a5ec42b6940b0d536dc73975b | 72154c35f2744da35a69274a04e5249fb6fc75b1 | fix: patching namespaced attributes (#1049) | closes https://github.com/snabbdom/snabbdom/issues/1049
Node's runtime appeared to be unfarily optimising part the benchmark test for the original charCodeAt implementation. The final benchmark was updated to more closely resemble the actual behaviour of snabbdom. The final benchmark test and results are attached.
... | diff --git a/src/modules/attributes.ts b/src/modules/attributes.ts
index 7fdfcb28..bcfbdce6 100755
--- a/src/modules/attributes.ts
+++ b/src/modules/attributes.ts
@@ -4,9 +4,13 @@ import { Module } from "./module";
export type Attrs = Record<string, string | number | boolean>;
const xlinkNS = "http://www.w3.org/199... | 4 | 4 | 3 | [{"id": "G0", "claim": "The indexOf/split namespace-detection approach used in the PR is orders of magnitude slower than the charCodeAt-based original, and an approach that keeps using charCodeAt (and is less dynamic) should be tried instead.", "category": "performance", "verdict": "supported", "priority": "P1", "scope... | null |
snabbdom__snabbdom__1073 | snabbdom/snabbdom | 1,073 | defect | 8c67f426b678d8823945e967dd94aea82e0659e8 | bc927a5dbc6849700c76b936ed6a7498e513bff9 | chore(tools): remove devdependency lodash-es; used once, ~622kB | Removes lodash-es devdependency, ~622kB
* https://packagephobia.com/result?p=lodash-es | diff --git a/package-lock.json b/package-lock.json
index 3e5787c8..3a0eb204 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -29,7 +29,6 @@
"eslint-plugin-node": "11.1.0",
"husky": "8.0.3",
"lint-staged": "^15.0.2",
- "lodash-es": "^4.17.21",
"mocha": "10.2.0",
... | 1 | 1 | 1 | [{"id": "G0", "claim": "The `arr.slice(0).sort(() => 0.5 - Math.random())` \"Microsoft shuffle\" the PR added is not a good (unbiased) way of shuffling an array, and the PR should instead define its own `shuffle` function implementing a proper shuffle such as Durstenfeld's Fisher–Yates.", "category": "correctness", "ve... | null |
snabbdom__snabbdom__1111 | snabbdom/snabbdom | 1,111 | defect | 2e6ef1e3e8637c845dca3bed8e8b661b52b56cd4 | b025518ac2c96c2b353b6cc866569b4c7f02528c | Improve whitespace handling of class attribute in `toVNode` | Improved from #1109, based on @paldepind’s input.
The multi-space-separated case is definitely common when HTML is generated by templating languages.
Prettier likes to format class names across multiple lines, so `\n`, `\r` and `\t` (for indentation) all have to be supported anyway. This meant `\f` is the only AS... | diff --git a/src/tovnode.ts b/src/tovnode.ts
index 1c0055c8..8592e4c1 100644
--- a/src/tovnode.ts
+++ b/src/tovnode.ts
@@ -19,8 +19,8 @@ export function toVNode(node: Node, domApi?: DOMAPI): VNode {
let text: string;
if (api.isElement(node)) {
const id = node.id ? "#" + node.id : "";
- const cn = node.get... | 1 | 1 | 0 | [{"id": "G0", "claim": "The class-attribute handling should be simplified to match class names directly with `node.getAttribute(\"class\")?.match(/[^\t\r\n\f ]+/g)`, avoiding the `trim` and the non-null `!` assertion.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
snabbdom__snabbdom__550 | snabbdom/snabbdom | 550 | defect | 814c2e50d76c915f6b0893465451e06a7da602d8 | ef3375040750e2412701b7b0d8a25e2f2fdf65e4 | test: workaround IE11 defficiencies | Fixes #471. | diff --git a/browserstack-karma.js b/browserstack-karma.js
index cdf75c2be..5a8609851 100644
--- a/browserstack-karma.js
+++ b/browserstack-karma.js
@@ -84,7 +84,6 @@ module.exports = {
os: 'Windows',
os_version: '10',
},
- /* https://github.com/snabbdom/snabbdom/issues/471
BS_IE_11: {
base: 'Brow... | 4 | 1 | 0 | [{"id": "G0", "claim": "Replacing the getAttribute value assertions with hasAttribute checks weakens the attributes tests for the values IE11 does not mangle (minlength '0', value '', title 'undefined', readonly '0'), dropping the cast-to-string verification those tests covered.", "category": "correctness", "verdict": ... | null |
snabbdom__snabbdom__829 | snabbdom/snabbdom | 829 | defect | e22a369ce2b9370590d2cbf8e70e8b0668e04150 | ec6180a43c0cd2e8d17862e2ccf770fc4c0e1a93 | Support custom elements v1 | This PR resolves #141. | diff --git a/src/package/htmldomapi.ts b/src/package/htmldomapi.ts
index 8f7db13c2..55702d439 100644
--- a/src/package/htmldomapi.ts
+++ b/src/package/htmldomapi.ts
@@ -1,6 +1,6 @@
export interface DOMAPI {
- createElement: (tagName: any) => HTMLElement
- createElementNS: (namespaceURI: string, qualifiedName: string... | 7 | 4 | 1 | [{"id": "G0", "claim": "The `is` attribute should live at the root of the data object instead of under `attrs`, since it is used differently from other attributes and the attributes module would needlessly also set it as a real attribute.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "intro... | null |
snapview__tungstenite-rs__166 | snapview/tungstenite-rs | 166 | defect | 208061ba284eaf95a54c1b9b6968f570004c90de | e9aaf9b1e987688e96398cdec93aff2d9d50b054 | Add support for rustls as TLS backend | This PR adds `rustls` as an alternative to the current `native-tls`. In addition, I changed the default feature set to not include any TLS implementation which is a breaking change as people have to add the TLS feature explicitly now.
I'm not sure what way you prefer to have the feature set so I will adjust to the w... | diff --git a/Cargo.toml b/Cargo.toml
index 173292ed..63a07c9b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -12,10 +12,13 @@ repository = "https://github.com/snapview/tungstenite-rs"
version = "0.11.1"
edition = "2018"
+[package.metadata.docs.rs]
+features = ["native-tls"]
+
[features]
-default = ["tls"]
-tls = ["na... | 5 | 5 | 2 | [{"id": "G0", "claim": "The [package.metadata.docs.rs] features list should be changed (reviewers suggested enabling all features there instead of only \"native-tls\", whose name had also gone stale after the feature rename) so docs.rs gets maximum API coverage.", "category": "documentation", "verdict": "supported", "p... | null |
snapview__tungstenite-rs__400 | snapview/tungstenite-rs | 400 | defect | 2ee05d10803d95ad48b3ad03d9d9a03164060e76 | b4dd7435d3c41d1a72872c156f45c047fd9ee205 | Add builder for additional header values | ## Work done
Added a `ClientRequestBuilder` type inspired by [websockets](https://docs.rs/websockets/latest/websockets/struct.WebSocketBuilder.html) to allow for additional header values in the request, like authorization or subprotocols.
The way I implemented this is not the cleanest but I wanted to avoid any br... | diff --git a/src/client.rs b/src/client.rs
index 9b30037f..1ebb286d 100644
--- a/src/client.rs
+++ b/src/client.rs
@@ -1,12 +1,13 @@
//! Methods to connect to a WebSocket as a client.
use std::{
+ convert::TryFrom,
io::{Read, Write},
net::{SocketAddr, TcpStream, ToSocketAddrs},
result::Result as S... | 2 | 2 | 2 | [{"id": "G0", "claim": "The CI pipeline fails (the new doctest in src/client.rs has a stray quote and missing imports).", "category": "correctness", "verdict": "supported", "priority": "P0", "scope": "introduced"}, {"id": "G1", "claim": "A couple of tests for the subprotocol functionality would be useful (the new subpr... | null |
snapview__tungstenite-rs__74 | snapview/tungstenite-rs | 74 | defect | bf63a71cd14b24dad532380f526a10e5f6aeece3 | fc489424da2e13c5e6e6c3337951cbe61957b1b1 | Do not allow sending messages after sending a close frame | > The application MUST NOT send any more data frames after sending a Close frame.
src: _[The websocket RFC - section 5.5.1 Close](https://tools.ietf.org/html/rfc6455#section-5.5.1)_
Tungstenite did not comply here. This PR fixes this. There is an integration test provided that guarantees that it works.
Closes:... | diff --git a/src/protocol/mod.rs b/src/protocol/mod.rs
index 169b1ff1..25da5cb3 100644
--- a/src/protocol/mod.rs
+++ b/src/protocol/mod.rs
@@ -231,7 +231,9 @@ impl WebSocketContext {
Stream: Read + Write,
{
// Do not write to already closed connections.
- self.state.check_active()?;
+ ... | 5 | 1 | 1 | [{"id": "G0", "claim": "Returning Error::AlreadyClosed when the user tries to write a message after a close has been initiated conflates that state with a fully terminated socket, whose distinct AlreadyClosed semantics should be preserved, and a different error should be returned instead (e.g. SendingWhileClosing, ulti... | null |
snipsco__snips-nlu__1 | snipsco/snips-nlu | 1 | defect | 7f56193f035e17c2afcf816a283d2ccd3c81c1b5 | cd1b752bde3028254af2024332162276401680a5 | Boiler place of the custom intent parser | # Custom intent parser
Implemented the following object with associated unit tests:
- Intent parser
- EntityExtractor
- IntentClassifier
- Dataset
- Entities
| diff --git a/.gitignore b/.gitignore
new file mode 100644
index 000000000..d801dec22
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+custom_intent_parser/tests/.cache
\ No newline at end of file
diff --git a/custom_intent_parser/__init__.py b/custom_intent_parser/__init__.py
new file mode 100644
index 000000000..e69de29b... | 3 | 2 | 0 | [{"id": "G0", "claim": "The intent-name validation should be stricter, perhaps allowing only [a-zA-Z0-9\\_\\-] characters.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Setting self._name = None before self.name = name in __init__ is unnecessary and cou... | null |
snipsco__snips-nlu__18 | snipsco/snips-nlu | 18 | defect | c0a41cb5a54e35502c8b93eb6d4b047d52473c41 | 694431156e3c40852c0831ac54a24f76b3dfbcc5 | Integrate built intentt | - create a BuiltInIntents enum
- add a SnipsIntentParser abstract class with an abstract property: built_in_intents
- add a utility to extract built in from an alexa type ontology | diff --git a/.gitignore b/.gitignore
index 6d664af66..b5fe07d04 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
custom_intent_parser/tests/.cache
-*.py[cod]
\ No newline at end of file
+*.py[cod]
+snips-queries-rust
+*.egg-info
\ No newline at end of file
diff --git a/README.md b/README.md
index 892af9d8f..27... | 1 | 1 | 1 | [{"id": "G0", "claim": "In get_built_in_intents, the BuiltInIntent lookup should use the per-result `intent_name` instead of the joined candidate-intent string `intent`.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
snipsco__snips-nlu__2 | snipsco/snips-nlu | 2 | defect | f623e554c95c4c5d9c04278057d7eaf9830461e2 | 931d3f45b8065c41effe6cd5294a9c23d0cd9c76 | Task/implement regex parser | # RegexParser
- Basic regex intent parser that combines the entities utterances and the queries utterances to created patterns.
- Parsed texts are stored in a cache for performance issues
| diff --git a/custom_intent_parser/entity_extractor/__init__.py b/custom_intent_parser/entity_extractor/__init__.py
new file mode 100644
index 000000000..e69de29bb
diff --git a/custom_intent_parser/entity_extractor.py b/custom_intent_parser/entity_extractor/entity_extractor.py
similarity index 100%
rename from custom_in... | 6 | 6 | 1 | [{"id": "G0", "claim": "The extractor performs one regex lookup per utterance per (entity, role) per intent (N x E x U); a single regex per utterance with capturing groups for all roles would reduce this to N x U lookups.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"i... | null |
snipsco__snips-nlu__364 | snipsco/snips-nlu | 364 | defect | a9851d88adffa7df96abfb3ad2550b86e7c5d5be | 7c7ce0d02ab10dccadcf38ac93a11cec40c6a670 | Add entities seen as training time in intent classif features | # Goal
Improve intent classification in cases like: `Play me jazz` (`PlayMusic`) and `Play me Batman` (`PlayMovie`) when we know from the dataset that `jazz` is a music genre and `batman` a movie
# Implementation
## Move normalization
Normalization was done both in the `build_training_data` function and in the... | diff --git a/snips_nlu/__init__.py b/snips_nlu/__init__.py
index 999df172e..05068b65d 100644
--- a/snips_nlu/__init__.py
+++ b/snips_nlu/__init__.py
@@ -9,7 +9,7 @@
from snips_nlu.resources import load_resources
from snips_nlu.utils import ROOT_PATH, PACKAGE_NAME
-__model_version__ = "0.10.0"
+__model_version__ = "... | 5 | 3 | 2 | [{"id": "G0", "claim": "The model version string this PR sets is malformed (\"0.10 .0\" with stray spaces) and should read \"0.10.0\".", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "entity_name_to_feature should stay language dependent rather than... | null |
snipsco__snips-nlu__418 | snipsco/snips-nlu | 418 | defect | 9eac563ec96e2ad72745eb3bbe06004cb099eed0 | ff85302aa6260c5e3ea108bbd98e7859f248738a | Generate all possible permutation in slot augmentation | @adrienball when you've reviewed this one, i'll do the Rust parallel implementation
Fixes #386 | diff --git a/snips_nlu/__init__.py b/snips_nlu/__init__.py
index 999df172e..94867c24e 100644
--- a/snips_nlu/__init__.py
+++ b/snips_nlu/__init__.py
@@ -9,7 +9,7 @@
from snips_nlu.resources import load_resources
from snips_nlu.utils import ROOT_PATH, PACKAGE_NAME
-__model_version__ = "0.10.0"
+__model_version__ = "... | 1 | 1 | 0 | [{"id": "G0", "claim": "The list comprehension in conservative_slots_permutations should be dropped in favor of calling permutations directly (`perms = permutations(permutation_pool, n_detected_builtins)`).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}] | null |
snipsco__snips-nlu__537 | snipsco/snips-nlu | 537 | defect | e26589a92e5c4bd28d84653fbb57e6bb2dc7090e | a1feded226cf01676a5133512ff7436d4180293c | Add some basic logging | # Add some logging
## Work done
- Added a logger for the `snips_nlu` module
- Log as info when the `SnipsNLUEngine` starts fitting or parsing
- Log as debug when the parsers under the NLU start, end parsing or fitting
- Log as debug parser's input/output time
- Log as debug parser's parsing/fitting time
- Add a ... | diff --git a/snips_nlu/__init__.py b/snips_nlu/__init__.py
index e695210e8..c2fea75ce 100644
--- a/snips_nlu/__init__.py
+++ b/snips_nlu/__init__.py
@@ -1,3 +1,5 @@
+import logging
+
from snips_nlu_ontology import get_ontology_version
from snips_nlu.nlu_engine import SnipsNLUEngine
@@ -6,3 +8,5 @@
from snips_nlu.v... | 13 | 12 | 1 | [{"id": "G0", "claim": "The \"Fitting deterministic parser...\" message in DeterministicIntentParser.fit should be logged at info level rather than debug.", "category": "design", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The \"Fitted deterministic parser in ...\" message i... | null |
snipsco__snips-nlu__562 | snipsco/snips-nlu | 562 | defect | 09bef5e680c80cb659b4a50d3f1079c85580406e | a320405d75e0a59aaffcebb020d862766c7f71dd | Fix issues with features | **Description**
This PR fixes various issues with CRF slot filler features:
- use `get_shape` function from `snips-nlu-utils` in order to avoid discrepancy with the Rust pipeline
- fix a bug which caused the common words gazetteer of the ngram feature to be always `None`
- transform the length feature to a string i... | diff --git a/setup.py b/setup.py
index 12b82509d..e0e52dbf9 100644
--- a/setup.py
+++ b/setup.py
@@ -24,7 +24,7 @@
"scikit-learn==0.19.1",
"sklearn-crfsuite==0.3.6",
"semantic_version==2.6.0",
- "snips_nlu_utils==0.6.0",
+ "snips_nlu_utils==0.6.1",
"snips_nlu_ontology==0.54.2",
"num2words... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new `str(len(tokens[token_index].value))` in LengthFactory.compute_feature uses `str`, which is not imported from `builtins` in this module (unlike `map` and `object`).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
snipsco__snips-nlu__578 | snipsco/snips-nlu | 578 | defect | 88719859c5f204c9e4f4443315a6850b22f9e045 | fcd8cc51df68b1849cbc3d7a2d301b9cdf3f57ac | Fix issues with DeterministicIntentParser causing mismatch | **Description**
This PR resolves several issues:
- Consider a dataset with one intent `good_morning` with a single utterance `"good morning"` and one intent `good_night` with a single utterance `"good night"`. At train time, the preprocessing of builtin entities will produce for both intent the same pattern which w... | diff --git a/snips_nlu/default_configs/config_de.py b/snips_nlu/default_configs/config_de.py
index c383f6bea..8812cd274 100644
--- a/snips_nlu/default_configs/config_de.py
+++ b/snips_nlu/default_configs/config_de.py
@@ -3,7 +3,7 @@
"intent_parsers_configs": [
{
"unit_name": "deterministic_in... | 3 | 3 | 0 | [{"id": "G0", "claim": "The reason why both the text and the processed text are kept should be made more explicit in the code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The ranges_mapping parameter should be renamed to builtin_ranges_mappin... | null |
snipsco__snips-nlu__804 | snipsco/snips-nlu | 804 | defect | f14af3a25aae329d996abc04900b00a67ce5b0a1 | 337c608f5795d1be49c14b44d2648e508af1ac41 | Reduce custom entity parser footprint in training time | # Initial behavior
When training the NLU on assistant that have an entity with a large number of values, we noticed the the training time / inference time of the NLU could be majorly impacted.
There were 2 reason for that:
- first, the `CustomEntityParser` which is using a `snips_nlu_parser.GazetteerEntityParser... | diff --git a/snips_nlu/dataset/validation.py b/snips_nlu/dataset/validation.py
index ec934d9cc..e95072315 100644
--- a/snips_nlu/dataset/validation.py
+++ b/snips_nlu/dataset/validation.py
@@ -8,6 +8,8 @@
from future.utils import iteritems, itervalues
from snips_nlu_parsers import get_all_languages
+from snips_nlu.... | 2 | 2 | 1 | [{"id": "G0", "claim": "In _create_custom_entity_parser_configuration, the token set should be assigned directly to `vocabulary` instead of building an intermediate `entity_tokens` set and calling `vocabulary.update` on it.", "category": "performance", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {... | null |
snipsco__snips-nlu__814 | snipsco/snips-nlu | 814 | defect | 1b9924bfc2cc8ef20187bd57c043356135a5c0ff | fb5a8670c62262eae4bfb40558ef619550e7b566 | Filter for entity match feature | **Description**:
## Initial use case
When fitting the `CRFSlotFiller` on a intent, dropout is set once for all entities. However in practice we'd like to have a high dropout for `automatically_extensible` entities (since at inference time, we'll try to parse unseen entity values) and a lower dropout for non `automati... | diff --git a/snips_nlu/default_configs/config_de.py b/snips_nlu/default_configs/config_de.py
index e104a3f2f..daf83de11 100644
--- a/snips_nlu/default_configs/config_de.py
+++ b/snips_nlu/default_configs/config_de.py
@@ -89,7 +89,21 @@
{
"args": {
... | 5 | 4 | 1 | [{"id": "G0", "claim": "It would be more elegant to leverage the filter argument of `extract_intent_entities` instead of post-filtering the entity names on `automatically_extensible` in `CustomEntityMatchFactory.fit`.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1",... | null |
snipsco__snips-nlu__858 | snipsco/snips-nlu | 858 | defect | 98eba8bafef65f8b83a5df1f53567e948160970a | 1133f6a8e0590854057b59746ddab5370182007a | Add intents filter parameter in CLI | **Description**:
This PR adds a new parameter in the parsing CLI which allows to provide an intents filter:
```bash
> snips-nlu parse path/to/engine -f intent1,intent3
```
**Checklist**:
- [x] My PR is ready for code review
- [x] I have added some tests, if applicable, and run the whole test suite, including [... | diff --git a/CHANGELOG.md b/CHANGELOG.md
index f43e290be..5325a4b0d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,11 @@
# Changelog
All notable changes to this project will be documented in this file.
+## [Unreleased]
+### Added
+- Add intents filter parameter in parsing CLI [#858](https://github.com/snip... | 1 | 1 | 1 | [{"id": "G0", "claim": "Since intent names may contain commas, the CLI should provide a way to escape that special character, e.g. using the standard csv module, instead of naively splitting the filter on commas.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
snok__django-auth-adfs__136 | snok/django-auth-adfs | 136 | defect | 2ecce3566d1d3cbe94728a2f681a3a5a60c1e644 | febeb2dc5384dd65f6a07f51323e4e8efaf6f988 | Custom error handler | Closes #112 | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index 7c2efcf..9335109 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,6 +1,14 @@
Changelog
=========
+`1.5.1`_ - Not yet released
+---------------------
+
+**Features**
+
+* New parameter called `FAILED_RESPONSE_FUNCTION`, allowing you to set a custom django function... | 7 | 6 | 1 | [{"id": "G0", "claim": "The function added in tests/views.py (`test_failed_response`, whose body is just `pass`) looks like an empty test.", "category": "testing", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Rename the `FAILED_RESPONSE_FUNCTION` setting to `CUSTOM_FAILED_RESPO... | null |
snok__django-auth-adfs__242 | snok/django-auth-adfs | 242 | defect | 38f950c106c5b15ef077b18e197451f9a5bc651d | 292c746316043da5c15b84879f1cca6bf90c3982 | Fix AD Claim Mapping to User Extended model | Fix for reported issue: https://github.com/snok/django-auth-adfs/issues/241 | diff --git a/django_auth_adfs/backend.py b/django_auth_adfs/backend.py
index c8bc835..19f2134 100644
--- a/django_auth_adfs/backend.py
+++ b/django_auth_adfs/backend.py
@@ -161,7 +161,8 @@ def create_user(self, claims):
user.set_unusable_password()
return user
- def update_user_attributes(sel... | 8 | 7 | 4 | [{"id": "G0", "claim": "The code should use `isinstance(claim, dict)` instead of `type(claim) != dict` so that it supports other dict-like objects.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The recursive call should use the already-available `c... | null |
snok__django-guid__12 | snok/django-guid | 12 | defect | 7a10f61b200d291f4b553c91be6f64496d9f45ec | c9f1391529cdc3f8395b1d2595620215d0ae55fa | Added SKIP_CLEANUP to the settings | - Improved all tests to be more verbose
- Made the README more correct and explaining the dangers of memory leaks + describing the settings
- Fixed changelog wording
- Bumped version to version 0.3.0 | diff --git a/CHANGELOG.rst b/CHANGELOG.rst
index f8aa124..1d290f9 100644
--- a/CHANGELOG.rst
+++ b/CHANGELOG.rst
@@ -1,11 +1,25 @@
Changelog
=========
-`0.2.3`_ - 2019-12-21
+`0.3.0`_ - 2020-01-10
---------------------
**Features**
+* Added a SKIP_CLEANUP setting
+
+**Improvements**
+
+* Improved all tests to... | 1 | 1 | 0 | [{"id": "G0", "claim": "Reword the CHANGELOG entry to \"Improved the README with more information and a list of all the available settings.\".", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
snok__django-guid__21 | snok/django-guid | 21 | defect | 35aa3107ccc7b5a6b93eb37bc27985c50a091674 | aee7dccfa8a2c29726e852fee40177b84f3eb270 | RETURN_HEADER setting added, better docs, version 1.0.0 (Closes #16) | - Added a setting called ``RETURN_HEADER`` which defaults to true. It will return the GUID used in the application as a header in the outgoing package.
- Improved tests to also check for headers in the response
- Added tests for the new setting
- Added some more information about the package in the README and in the... | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7f146e0..a1c169b 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -26,7 +26,7 @@ repos:
'flake8-docstrings==1.5.0', # Verifies that all functions/methods have docstrings
'flake8-type-annotations==0.1.0', # ... | 6 | 5 | 0 | [{"id": "G0", "claim": "The reviewer suggests adjusting the flake8-logging-format configuration to ignore G002 so %-formatted log messages are allowed, and argues against flagging logging via `extra` because of name collisions.", "category": "tooling", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {... | null |
snok__django-guid__23 | snok/django-guid | 23 | defect | 998dc009f792da68ca739a28a3d655364c8d6b01 | 51f20d474af6d23086252de09f4e2f687d984a83 | Dashed GUID validation fix | Dashed GUIDs sent in via headers (e.g., "07742cab-407e-4e80-89eb-fd191acbb752"), were not validated correctly. In this PR, I've:
- Added a test to cover validation with and without dashes
- Changed the middleware.py logger name to `django_guid`
- Added a WARNING-logger for when validation fails. I think this is a ... | diff --git a/README.rst b/README.rst
index f7253d1..633e46f 100644
--- a/README.rst
+++ b/README.rst
@@ -91,17 +91,14 @@ Settings
Installation
------------
-Python package::
+Install using pip:
pip install django-guid
-In your project's :code:`settings.py` add these settings:
-(If these settings are conf... | 6 | 6 | 2 | [{"id": "G0", "claim": "The GUID validation would be slicker as a plain return of bool(uuid.UUID(original_guid, version=4).hex), since UUID() itself validates, instead of comparing the dash-stripped string.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "... | null |
snok__django-guid__24 | snok/django-guid | 24 | defect | 998dc009f792da68ca739a28a3d655364c8d6b01 | c6775d53115abff8a1e45c5568eda5b7621acdae | Expose Header Option | This PR adds a new option that is enabled by default named `EXPOSE_HEADER` that adds the `Access-Control-Expose-Headers` header for the GUID header if `RETURN_HEADER` is true.
When using CORS, the JavaScript Fetch API is unable to access most headers, to allow access to headers that are not accessible by default, t... | diff --git a/README.rst b/README.rst
index f7253d1..2619daf 100644
--- a/README.rst
+++ b/README.rst
@@ -87,6 +87,13 @@ Settings
Default: True
+* :code:`RETURN_HEADER`
+ Whether to return :code:`Access-Control-Expose-Headers` for the GUID header if
+ :code:`RETURN_HEADER` is :code:`True`, has no ... | 2 | 1 | 0 | [{"id": "G0", "claim": "Add a check that sets EXPOSE_HEADER to False when RETURN_HEADER is set to false.", "category": "design", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Before merging, ensure that no headers are added when EXPOSE_HEADER is set to False.", "category": "corr... | null |
snok__django-guid__31 | snok/django-guid | 31 | defect | b501d7138738589c01868528a841a974e34c0af7 | d261e082fd444eb7963ed590a4979ef743b82c98 | Remove _guid items when a request is closed using Django signals | **Before this PR is reviewed, we need to**
- [x] 1. Test that signals are dealt with correctly when hosted using different python WSGI servers. The 4 most popular server options, according to [this](https://www.fullstackpython.com/wsgi-servers.html) page, would be:
- [x] Gunicorn
- [x] uWSGI
- [x] mod... | diff --git a/django_guid/config.py b/django_guid/config.py
index 5e1b664..b6303d3 100644
--- a/django_guid/config.py
+++ b/django_guid/config.py
@@ -26,8 +26,6 @@ def __init__(self) -> None:
else:
raise ImproperlyConfigured(f'{setting} is not a valid setting for django_guid')
- ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The SKIP_CLEANUP deprecation should be signalled with a warnings.warn DeprecationWarning (JonasKs suggested a plain DeprecationWarning; after the author first used PendingDeprecationWarning, JonasKs read the docs as requiring DeprecationWarning for something already deprecated).", "category": "c... | null |
snok__django-guid__7 | snok/django-guid | 7 | defect | fd4d5627df0eb791bc223f8e9e3b2a96d6901a3b | 09e4c921431ab1cd4a772f74c3dfd5538955112e | CI workflow | - Added github workflow for test pipeline.
- Cut `GUID_HEADER_NAME` from `required_settings` in config.py, because it seems like this can be treated as an optional setting. I'm not sure about this, but the default value is set on line 13, as `Correlation-ID` and if a user has specified this setting, it is overwrit... | diff --git a/.github/workflows/pythonpackage.yml b/.github/workflows/pythonpackage.yml
new file mode 100644
index 0000000..73ca2ea
--- /dev/null
+++ b/.github/workflows/pythonpackage.yml
@@ -0,0 +1,35 @@
+name: Test
+
+on: [push]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ max-parallel: 4
+ ... | 6 | 5 | 1 | [{"id": "G0", "claim": "The workflow triggers on every push, and the reviewer asks whether that is the intended flow rather than running it on pull requests.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The workflow should install from a requirements-t... | null |
snok__django-guid__81 | snok/django-guid | 81 | defect | 93011f94b1cc62262273dc54a64cd0e400297a88 | 7f9820fe153b1a1ad0fe505cf04da2add819f538 | Add UUID_FORMAT config | PR adds the option to formating the current generated GUID in the available formats. | diff --git a/django_guid/config.py b/django_guid/config.py
index a06a479..0659c1d 100644
--- a/django_guid/config.py
+++ b/django_guid/config.py
@@ -58,7 +58,11 @@ def integration_settings(self) -> IntegrationSettings:
@property
def uuid_length(self) -> int:
- return self.settings.get('UUID_LENGTH', ... | 4 | 4 | 2 | [{"id": "G0", "claim": "The pull request's checks need attention: the pinned pre-commit hooks need updating (pre-commit install/autoupdate/run --all-files) and there are MyPy errors that need to be fixed, while integration flake8 errors can be ignored.", "category": "maintainability", "verdict": "supported", "priority"... | null |
snort3__snort3__48 | snort3/snort3 | 48 | defect | f1c7caca959a04ee4875b60a95aa86d4894c5753 | c065fe457e34beb0110664fe44fa8eee809264d8 | Scratch handlers for SnortState | This sequence of commits provides modules with a mechanism to request scratch space within the SnortConfig state structure, allowing them to hold per-thread context and carry out appropriate setup of this context on config reloads. It provides the infrastructure for this functionality then ports each user over in turn ... | diff --git a/src/ips_options/CMakeLists.txt b/src/ips_options/CMakeLists.txt
index b25f5a60b9..6b97a3bb2f 100644
--- a/src/ips_options/CMakeLists.txt
+++ b/src/ips_options/CMakeLists.txt
@@ -72,7 +72,7 @@ set (IPS_SOURCES
if ( HAVE_HYPERSCAN )
set(OPTION_LIST ips_regex.cc ips_regex.h
- ips_sd_pattern.cc ... | 3 | 3 | 0 | [{"id": "G0", "claim": "The new request_scratch call sites use hanging indents that violate the project's strict 4-space indent style and should be reformatted, going on one line where possible within the 99-character limit.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced... | null |
snowflakedb__snowflake-connector-python__1853 | snowflakedb/snowflake-connector-python | 1,853 | defect | 1f73394c556320a2c1527f628f6334b5b5269955 | 1097f6e2c30727a733aee14f5131cb5918f32d44 | SNOW-1000283: Add support for Structured Types. | Please answer these questions before submitting your pull requests. Thanks!
1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Implements SNOW-1000283
2. Fill out the following pre-review checklist:
- [ ] I am adding a new automated test(s) to verify ... | diff --git a/DESCRIPTION.md b/DESCRIPTION.md
index a13a3feb02..2d6379495a 100644
--- a/DESCRIPTION.md
+++ b/DESCRIPTION.md
@@ -17,6 +17,7 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
- Fixed PyArrow Table type hinting
- Added support for connecting using an existing connecti... | 8 | 5 | 1 | [{"id": "G0", "claim": "The repeated per-converter generateError logging helper should be defined in a central location, maybe in logging.", "category": "maintainability", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The trailing else before returning value in serialize() sho... | null |
snowflakedb__snowflake-connector-python__1918 | snowflakedb/snowflake-connector-python | 1,918 | defect | 86ba28a35582f16a3e1e47e03ae615bc3698882d | 179eea20046774157095ae512bf6a7c67ed7f345 | SNOW-1279205: add capability to debug arrow data | Please answer these questions before submitting your pull requests. Thanks!
1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #NNNN
2. Fill out the following pre-review checklist:
- [ ] I am adding a new automated test(s) to verify correctness ... | diff --git a/src/snowflake/connector/connection.py b/src/snowflake/connector/connection.py
index 538a684811..76ef6faef7 100644
--- a/src/snowflake/connector/connection.py
+++ b/src/snowflake/connector/connection.py
@@ -280,6 +280,10 @@ def _get_private_bytes_from_file(
True,
bool,
), # Disable c... | 1 | 1 | 1 | [{"id": "G0", "claim": "The new error handlers should catch Exception rather than BaseException.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}] | null |
snowflakedb__snowflake-connector-python__2011 | snowflakedb/snowflake-connector-python | 2,011 | defect | 91aa0fcd23c1d87d069cd9989963c8fbcd1091cf | a07791e82bf583f27f22c79e72da47d4fadf60c0 | SNOW-1546127: Fix python connector log leaking token inside http response body | Please answer these questions before submitting your pull requests. Thanks!
1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #SNOW-1546127
2. Fill out the following pre-review checklist:
- [ ] I am adding a new automated test(s) to verify corr... | diff --git a/DESCRIPTION.md b/DESCRIPTION.md
index e5ab41a00b..637594e16b 100644
--- a/DESCRIPTION.md
+++ b/DESCRIPTION.md
@@ -8,6 +8,9 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
# Release Notes
+- v3.13.0(TBD)
+ - Fixed a bug that session token is logged when renewing ses... | 1 | 1 | 0 | [{"id": "G0", "claim": "The release-notes entry added by this pull request should be a bug-fix version bump to 3.12.1 rather than 3.13.0.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}] | null |
snowflakedb__snowflake-connector-python__2068 | snowflakedb/snowflake-connector-python | 2,068 | defect | aeb771ccb581541caa54717b04468793f02a23c6 | acf25bfd6eb342d515e78fae2607097f96db1ad8 | SNOW-1325701: Use scoped temp object in write pandas | Please answer these questions before submitting your pull requests. Thanks!
1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #NNNN
2. Fill out the following pre-review checklist:
- [ ] I am adding a new automated test(s) to verify correctness ... | diff --git a/DESCRIPTION.md b/DESCRIPTION.md
index 71d77406b7..f7972114cb 100644
--- a/DESCRIPTION.md
+++ b/DESCRIPTION.md
@@ -7,6 +7,8 @@ https://docs.snowflake.com/
Source code is also available at: https://github.com/snowflakedb/snowflake-connector-python
# Release Notes
+- v3.13.0(TBD)
+ - Improved `write_pand... | 6 | 4 | 3 | [{"id": "G0", "claim": "Questions why the scoped-temp-object change is needed in the public connector at all, suspecting scoped objects only apply to the stored-proc connector.", "category": "design", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new use_scoped_temp_object... | null |
snowflakedb__snowflake-connector-python__2117 | snowflakedb/snowflake-connector-python | 2,117 | defect | 94398540774673cd5986ef1cb333a59527b8544b | f8b35940443be293a0cb6f20e15dfde002ec3fd2 | SNOW-1848371 adding connection.is_valid to perform connection validation on TCP/IP and Session levels |
Please answer these questions before submitting your pull requests. Thanks!
1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes SNOW-1848371
2. Fill out the following pre-review checklist:
- [x] I am adding a new automated test(s) to verify cor... | diff --git a/DESCRIPTION.md b/DESCRIPTION.md
index 445b74e9d0..eb5f74fae8 100644
--- a/DESCRIPTION.md
+++ b/DESCRIPTION.md
@@ -10,6 +10,7 @@ Source code is also available at: https://github.com/snowflakedb/snowflake-conne
- v3.12.5(TBD)
- Added a feature to limit the sizes of IO-bound ThreadPoolExecutors during P... | 5 | 5 | 1 | [{"id": "G0", "claim": "The exception-handler logger.debug call passes str(e) where the %s format specifier already performs the conversion, so it should pass e directly.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The assertion that is_valid... | null |
snowflakedb__snowflake-connector-python__2134 | snowflakedb/snowflake-connector-python | 2,134 | defect | 55f831e85b1877fb34129d6041a1607694efd02e | d2bc45155f7641c168250692919161919bfde621 | Support base64-encoded DER private keys | Please answer these questions before submitting your pull requests. Thanks!
1. What GitHub issue is this PR addressing? Make sure that there is an accompanying issue to your PR.
Fixes #2133
2. Fill out the following pre-review checklist:
- [x] I am adding a new automated test(s) to verify correctness ... | diff --git a/src/snowflake/connector/auth/keypair.py b/src/snowflake/connector/auth/keypair.py
index a5d6586667..90c816bd38 100644
--- a/src/snowflake/connector/auth/keypair.py
+++ b/src/snowflake/connector/auth/keypair.py
@@ -43,7 +43,7 @@ class AuthByKeyPair(AuthByPlugin):
def __init__(
self,
- ... | 3 | 2 | 0 | [{"id": "G0", "claim": "It might be good to keep a unit test case with an invalid string that is not valid base64 (e.g. a string containing '%'), since the change removed the 'abcd' string case from test_auth_keypair_bad_type.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id... | null |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.