schema_version
int64
1
1
pair_id
stringlengths
12
101
domain
stringclasses
2 values
language
stringclasses
15 values
repository
stringlengths
7
49
before
dict
after
dict
rule
dict
1
bugsinpy:matplotlib_7:LightSource_shade_rgb
bug
python
matplotlib/matplotlib
{ "labels": { "bug": 1, "security": null }, "method_name": "LightSource.shade_rgb", "path": "lib/matplotlib/colors.py", "revision": "969513e2a5227331a2eb9e4bc4ba8448a0f9831d", "source": " def shade_rgb(self, rgb, elevation, fraction=1., blend_mode='hsv',\n vert_exag=1, dx=1, dy=1...
{ "labels": { "bug": 0, "security": null }, "method_name": "LightSource.shade_rgb", "path": "lib/matplotlib/colors.py", "revision": "ac400b51bb31b91920ee9aae02a0606a67983a8f", "source": " def shade_rgb(self, rgb, elevation, fraction=1., blend_mode='hsv',\n vert_exag=1, dx=1, dy=1...
{ "name": "semantic-22f141ed8eefc3b4", "each": "method", "where": "**/*", "ensure": "Masked-array blending must test whether intensity values are actually masked before applying the masked-data path." }
1
github-pr:rack/rack#2270
bug
ruby
rack/rack
{ "labels": { "bug": 1, "security": null }, "method_name": "Rack.Helpers.forwarded_authority", "path": "lib/rack/request.rb", "revision": "cf24be20715ee8ecde78cdfab6bcba094d924dc4", "source": " def forwarded_authority\n forwarded_priority.each do |type|\n case type\n wh...
{ "labels": { "bug": 0, "security": null }, "method_name": "Rack.Helpers.forwarded_authority", "path": "lib/rack/request.rb", "revision": "02ece97f94acb573cd1b4e1e06e1cb7b34c1b9a0", "source": " def forwarded_authority\n forwarded_priority.each do |type|\n case type\n wh...
{ "name": "semantic-067103da78179a5c", "each": "method", "where": "**/*", "ensure": "A forwarded-host header that yields no final host must be skipped so resolution can continue to the next configured source." }
1
github-pr:rails/rails#58854
bug
ruby
rails/rails
{ "labels": { "bug": 1, "security": null }, "method_name": "ActionView.compiled_source", "path": "actionview/lib/action_view/template.rb", "revision": "9fb66ed2dc239e9f78d51c8e36b43f287f548d52", "source": " def compiled_source\n set_strict_locals = strict_locals!\n source = encode...
{ "labels": { "bug": 0, "security": null }, "method_name": "ActionView.compiled_source", "path": "actionview/lib/action_view/template.rb", "revision": "e1bcdfdb887c0eb851b3c89e54c1422d0e08b3f9", "source": " def compiled_source\n set_strict_locals = strict_locals!\n source = encode...
{ "name": "semantic-d2f4bae8008c3fa6", "each": "method", "where": "**/*", "ensure": "Preserve source encoding for ASCII-only compiled output and propagate the returned code’s encoding when non-ASCII bytes require it." }
1
jsts-exp-003
bug
javascript
koajs/koa
{ "labels": { "bug": 1, "security": null }, "method_name": "subdomains", "path": "lib/request.js", "revision": "1aa85ce7214ff553287c4b66240f160f74ab7056", "source": " get subdomains() {\n var offset = this.app.subdomainOffset;\n return (this.host || '')\n .split('.')\n .reverse()\n ...
{ "labels": { "bug": 0, "security": null }, "method_name": "subdomains", "path": "lib/request.js", "revision": "1aa85ce7214ff553287c4b66240f160f74ab7056+pinned-source-patch", "source": " get subdomains() {\n var offset = this.app.subdomainOffset;\n var host = this.host || '';\n if (net.isI...
{ "name": "semantic-d23acf1e0db9804a", "each": "method", "where": "**/*", "ensure": "IP literal hosts have no DNS subdomains and must produce an empty subdomain list instead of being split into labels." }
1
swe-rebench:analysis-dev__diktat-596:242162b945c0
bug
kotlin
analysis-dev/diktat
{ "labels": { "bug": 1, "security": null }, "method_name": "AssignmentOperatorChecker.checkNode", "path": "diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/indentation/Checkers.kt", "revision": "67ffa9cbe7ed7248450d1d38825c1edb0e64524a", "source": " override fun checkNode(whiteSpace: Ps...
{ "labels": { "bug": 0, "security": null }, "method_name": "AssignmentOperatorChecker.checkNode", "path": "diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/indentation/Checkers.kt", "revision": "07601ad5357bf183ee1bfcabacc1ff1c46688d71", "source": " override fun checkNode(whiteSpace: Ps...
{ "name": "semantic-97f637c348377e58", "each": "method", "where": "**/*", "ensure": "PSI inspection must tolerate a missing previous node before examining its element type or following node." }
1
swe-rebench:analysis-dev__diktat-596:50bf988c970f
bug
kotlin
analysis-dev/diktat
{ "labels": { "bug": 1, "security": null }, "method_name": "ArrowInWhenChecker.checkNode", "path": "diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/indentation/Checkers.kt", "revision": "67ffa9cbe7ed7248450d1d38825c1edb0e64524a", "source": " override fun checkNode(whiteSpace: PsiWhiteS...
{ "labels": { "bug": 0, "security": null }, "method_name": "ArrowInWhenChecker.checkNode", "path": "diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/utils/indentation/Checkers.kt", "revision": "07601ad5357bf183ee1bfcabacc1ff1c46688d71", "source": " override fun checkNode(whiteSpace: PsiWhiteS...
{ "name": "semantic-07d3db6160cb68eb", "each": "method", "where": "**/*", "ensure": "Whitespace inspection must tolerate the absence of a preceding syntax-tree sibling before accessing that sibling node." }
1
swe-rebench:ant-design-blazor__ant-design-blazor-4147:71d86eb8c6c7
bug
csharp
ant-design-blazor/ant-design-blazor
{ "labels": { "bug": 1, "security": 0 }, "method_name": "Tabs.OnInitialized", "path": "components/tabs/Tabs.razor.cs", "revision": "946b89405b77ad0913c4cba0c23db26993048bf4", "source": " protected override void OnInitialized()\n {\n base.OnInitialized();\n\n if (T...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "Tabs.OnInitialized", "path": "components/tabs/Tabs.razor.cs", "revision": "a45ed8d4285883b99e95916d03745e629d721cce", "source": " protected override void OnInitialized()\n {\n base.OnInitialized();\n\n if (T...
{ "name": "semantic-3536f1859dc648e1", "each": "method", "where": "**/*", "ensure": "When card configuration is present, initialization must connect it to the component's tab-rendering callback." }
1
swe-rebench:anz-bank__sysl-1020:6644005fa407
bug
go
anz-bank/sysl
{ "labels": { "bug": 1, "security": null }, "method_name": "TreeShapeListener.lintEndpoint", "path": "pkg/parse/linter.go", "revision": "7e4867bf860785fe6ff4dab9e8458dfc3ccdd4e9", "source": "func (s *TreeShapeListener) lintEndpoint() {\n\tappNotExistLog := func(location, appName, call string) {\n\t\...
{ "labels": { "bug": 0, "security": null }, "method_name": "TreeShapeListener.lintEndpoint", "path": "pkg/parse/linter.go", "revision": "079a1a51c8ca0f53a477c49f4315d8f6554881fe", "source": "func (s *TreeShapeListener) lintEndpoint() {\n\tappNotExistLog := func(location, appName, call string) {\n\t\...
{ "name": "semantic-f4e51d0fd93ebd83", "each": "method", "where": "**/*", "ensure": "Accept an existing endpoint as valid for simple calls that have no REST method to validate." }
1
swe-rebench:apache__jena-2623:7b4f03929161
bug
java
apache/jena
{ "labels": { "bug": 1, "security": null }, "method_name": "Unparser.wPropertyEltLiteral", "path": "jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/Unparser.java", "revision": "8e0007e7c0513a0a185848061f8bac94d5e593ba", "source": " private boolean wPropertyEltLiteral(WType wt, Prope...
{ "labels": { "bug": 0, "security": null }, "method_name": "Unparser.wPropertyEltLiteral", "path": "jena-core/src/main/java/org/apache/jena/rdfxml/xmloutput/impl/Unparser.java", "revision": "bd40101029078ec8dff8bcd3e99b0cc2cf4dfdb8", "source": " private boolean wPropertyEltLiteral(WType wt, Prope...
{ "name": "semantic-aff7fba741f13afc", "each": "method", "where": "**/*", "ensure": "Inline an RDF XML literal only when its lexical content is a well-formed, self-contained XML fragment." }
1
swe-rebench:apollographql__apollo-codegen-312:f87be2100129
bug
typescript
apollographql/apollo-codegen
{ "labels": { "bug": 1, "security": null }, "method_name": "Printer.fixCommas", "path": "src/javascript/typescript/printer.ts", "revision": "a6bda6ef00fce74972aa4f3c02b7c5c54da810e5", "source": " private fixCommas(documentPart: string) {\n const lines = documentPart.split('\\n');\n let curren...
{ "labels": { "bug": 0, "security": null }, "method_name": "Printer.fixCommas", "path": "src/javascript/typescript/printer.ts", "revision": "86b7fc10a3074d0b8136185ff832263e5f1f6460", "source": " private fixCommas(documentPart: string) {\n const lines = documentPart.split('\\n');\n let curren...
{ "name": "semantic-445179ce0fd2c287", "each": "method", "where": "**/*", "ensure": "Handle absent inline comments explicitly when normalizing lines so comment-free input remains valid." }
1
swe-rebench:apple__swift-markdown-133:734e38ca3040
bug
swift
apple/swift-markdown
{ "labels": { "bug": 1, "security": null }, "method_name": "Markup.child", "path": "Sources/Markdown/Base/Markup.swift", "revision": "8ea3072e4ba2a2aa6395d529fbfc188c838c2dba", "source": " public func child(through path: TypedChildIndexPath) -> Markup? {\n var element: Markup = self\n ...
{ "labels": { "bug": 0, "security": null }, "method_name": "Markup.child", "path": "Sources/Markdown/Base/Markup.swift", "revision": "0e8a992ec5d51b8e8f696b5fefae3917b2672c3c", "source": " public func child(through path: TypedChildIndexPath) -> Markup? {\n var element: Markup = self\n ...
{ "name": "semantic-c10589b9c224871f", "each": "method", "where": "**/*", "ensure": "Validate each path component against the child count of the current parent node before descending to its child." }
1
swe-rebench:apple__swift-markdown-50:e07e7b2e43ae
bug
swift
apple/swift-markdown
{ "labels": { "bug": 1, "security": null }, "method_name": "PendingBlockDirective.parseArgumentsStart", "path": "Sources/Markdown/Parser/BlockDirectiveParser.swift", "revision": "d03ad208210c23cba8652395fff05bc906e2334c", "source": " @discardableResult\n mutating func parseArgumentsStart(from ...
{ "labels": { "bug": 0, "security": null }, "method_name": "PendingBlockDirective.parseArgumentsStart", "path": "Sources/Markdown/Parser/BlockDirectiveParser.swift", "revision": "592311d8e9f1d9502ae799d44e6eddfa4536b505", "source": " @discardableResult\n mutating func parseArgumentsStart(from ...
{ "name": "semantic-41bf21afe53ca1bc", "each": "method", "where": "**/*", "ensure": "Directive argument parsing must tolerate unavailable source coordinates without trapping after an opener is consumed." }
1
swe-rebench:apple__swift-nio-extras-100:a85c466e7ca4
bug
swift
apple/swift-nio-extras
{ "labels": { "bug": 1, "security": null }, "method_name": "PartialHTTPResponse.flush", "path": "Sources/NIOHTTPCompression/HTTPResponseCompressor.swift", "revision": "6740bf98c2b758dd4511a6d0076fbaff8f1e0a82", "source": " mutating func flush(compressor: inout NIOCompression.Compressor, allocator...
{ "labels": { "bug": 0, "security": null }, "method_name": "PartialHTTPResponse.flush", "path": "Sources/NIOHTTPCompression/HTTPResponseCompressor.swift", "revision": "50cd8f77965e3e87e5cb2108f37e1405e595874e", "source": " mutating func flush(compressor: inout NIOCompression.Compressor, allocator...
{ "name": "semantic-eb8fb2601289a237", "each": "method", "where": "**/*", "ensure": "Finalize compression on completed responses even with an empty input body, so buffered bytes are emitted." }
1
swe-rebench:behat__gherkin-343:af0ee1072e21
bug
php
behat/gherkin
{ "labels": { "bug": 1, "security": null }, "method_name": "Parser.parseFeature", "path": "src/Parser.php", "revision": "e5228946a898d799f2b230ff96f943be99fa7842", "source": " protected function parseFeature()\n {\n $token = $this->expectTokenType('Feature');\n \\assert(\\array_k...
{ "labels": { "bug": 0, "security": null }, "method_name": "Parser.parseFeature", "path": "src/Parser.php", "revision": "04fdea7efc0dd63c2944aafef450ecd167e8ae0d", "source": " protected function parseFeature()\n {\n $token = $this->expectTokenType('Feature');\n \\assert(\\array_k...
{ "name": "semantic-5ba39859ef3c1ea8", "each": "method", "where": "**/*", "ensure": "A feature background section must occur at most once and before any scenario or outline." }
1
swe-rebench:bluenviron__gortsplib-446:0ef11be4bfc9
bug
go
bluenviron/gortsplib
{ "labels": { "bug": 1, "security": null }, "method_name": "Client.waitResponse", "path": "client.go", "revision": "2f7ed32139f2d9fac60c28f8df30d2da5824ea1a", "source": "func (c *Client) waitResponse(requestCseqStr string) (*base.Response, error) {\n\tt := time.NewTimer(c.ReadTimeout)\n\tdefer t.Sto...
{ "labels": { "bug": 0, "security": null }, "method_name": "Client.waitResponse", "path": "client.go", "revision": "1a70b03d56256c7daad07129f1a82427ba145a94", "source": "func (c *Client) waitResponse(requestCseqStr string) (*base.Response, error) {\n\tt := time.NewTimer(c.ReadTimeout)\n\tdefer t.Sto...
{ "name": "semantic-e54a574cef6aeee6", "each": "method", "where": "**/*", "ensure": "Trim surrounding whitespace from protocol sequence headers before comparing them with the request sequence identifier." }
1
swe-rebench:btcpayserver__btcpayserver-6228:d9580301bdc1
bug
csharp
btcpayserver/btcpayserver
{ "labels": { "bug": 1, "security": null }, "method_name": "GreenfieldAppsController.ValidateCrowdfundAppRequest", "path": "BTCPayServer/Controllers/GreenField/GreenfieldAppsController.cs", "revision": "2d2c1d5f2d5ca6444987274f54af6fbab71f6a46", "source": " private void ValidateCrowdfundAppRe...
{ "labels": { "bug": 0, "security": null }, "method_name": "GreenfieldAppsController.ValidateCrowdfundAppRequest", "path": "BTCPayServer/Controllers/GreenField/GreenfieldAppsController.cs", "revision": "50b6699830bad7feb461023ae439b1c14603aecf", "source": " private void ValidateCrowdfundAppRe...
{ "name": "semantic-2cdd74155d89f583", "each": "method", "where": "**/*", "ensure": "Template parse failures must retain parser diagnostics in the field-specific validation error." }
1
swe-rebench:cloudspannerecosystem__harbourbridge-42:68765060916d
bug
go
cloudspannerecosystem/harbourbridge
{ "labels": { "bug": 1, "security": null }, "method_name": "main", "path": "main.go", "revision": "532751d4f9c21ba72c0341766c7cad1f563ab1a9", "source": "func main() {\n\tflag.Usage = usage\n\tflag.Parse()\n\tinternal.VerboseInit(verbose)\n\tnow := time.Now()\n\tlf, err := setupLogFile()\n\tif err !=...
{ "labels": { "bug": 0, "security": null }, "method_name": "main", "path": "main.go", "revision": "2c57ab2838ea5e3ac684ece0bf329d6fe385ac4d", "source": "func main() {\n\tflag.Usage = usage\n\tflag.Parse()\n\tinternal.VerboseInit(verbose)\n\tnow := time.Now()\n\tlf, err := setupLogFile()\n\tif err !=...
{ "name": "semantic-0e067dbf3f015e26", "each": "method", "where": "**/*", "ensure": "A failed first-pass parse must stop processing before schema output or database creation begins." }
1
swe-rebench:cobalt-org__liquid-rust-404:b1a06d50da36
bug
rust
cobalt-org/liquid-rust
{ "labels": { "bug": 1, "security": null }, "method_name": "ModuloFilter.evaluate", "path": "crates/lib/src/stdlib/filters/math.rs", "revision": "ed9385a1a46e6beaf811e161fffb1cced79085b4", "source": " fn evaluate(&self, input: &dyn ValueView, runtime: &Runtime<'_>) -> Result<Value> {\n let...
{ "labels": { "bug": 0, "security": null }, "method_name": "ModuloFilter.evaluate", "path": "crates/lib/src/stdlib/filters/math.rs", "revision": "40e3985faa38abc21efd178e8dbb33cc8ffef95b", "source": " fn evaluate(&self, input: &dyn ValueView, runtime: &Runtime<'_>) -> Result<Value> {\n let...
{ "name": "semantic-7195186133f0bebc", "each": "method", "where": "**/*", "ensure": "Remainder operations must reject a zero-valued divisor before evaluating the operation for integer or floating-point values." }
1
swe-rebench:cqfn__diktat-1098:d9cd81aae67b
bug
kotlin
cqfn/diktat
{ "labels": { "bug": 1, "security": null }, "method_name": "VariableGenericTypeDeclarationRule.handleProperty", "path": "diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter4/VariableGenericTypeDeclarationRule.kt", "revision": "45f91c951aee214801852101544a605a1400de45", "source": " ...
{ "labels": { "bug": 0, "security": null }, "method_name": "VariableGenericTypeDeclarationRule.handleProperty", "path": "diktat-rules/src/main/kotlin/org/cqfn/diktat/ruleset/rules/chapter4/VariableGenericTypeDeclarationRule.kt", "revision": "401e66798b6434d25f5c557a73ffadb701dd3e70", "source": " ...
{ "name": "semantic-294c47137b1e1047", "each": "method", "where": "**/*", "ensure": "Generic-type mismatch checks must skip wildcard arguments that are represented as missing concrete types." }
1
swe-rebench:dedoc__scramble-362:6b687a3dff51
bug
php
dedoc/scramble
{ "labels": { "bug": 1, "security": null }, "method_name": "RulesToParameters.handleNested", "path": "src/Support/OperationExtensions/RulesExtractor/RulesToParameters.php", "revision": "d1d8e26dee3e9e408351b856c645d0af3bd454af", "source": " private function handleNested(Collection $parameters)\n ...
{ "labels": { "bug": 0, "security": null }, "method_name": "RulesToParameters.handleNested", "path": "src/Support/OperationExtensions/RulesExtractor/RulesToParameters.php", "revision": "05ff08eca57632bdcafde6464821d67fa4d0f67c", "source": " private function handleNested(Collection $parameters)\n ...
{ "name": "semantic-f238f61858959738", "each": "method", "where": "**/*", "ensure": "Sort nested parameter paths by depth before grouping them, so parent structures precede descendants." }
1
swe-rebench:delgan__loguru-960:9985727b72ce
bug
python
delgan/loguru
{ "labels": { "bug": 1, "security": null }, "method_name": "Rotation.RotationTime.__call__", "path": "loguru/_file_sink.py", "revision": "e49dfa53cffc1116e25d58d727ff4eea34fafb64", "source": " def __call__(self, message, file):\n record_time = message.record[\"time\"]\n\n ...
{ "labels": { "bug": 0, "security": null }, "method_name": "Rotation.RotationTime.__call__", "path": "loguru/_file_sink.py", "revision": "c7f84a488932f9c52ab35a5da8a850fb922b5258", "source": " def __call__(self, message, file):\n record_time = message.record[\"time\"]\n\n ...
{ "name": "semantic-67787718a57daef6", "each": "method", "where": "**/*", "ensure": "Scheduled rotation boundaries must derive their calendar date after converting file creation time to the effective schedule timezone." }
1
swe-rebench:dependencytrack__dependency-track-2030:266300c4d70f
bug
java
dependencytrack/dependency-track
{ "labels": { "bug": 1, "security": null }, "method_name": "Finding.getCwes", "path": "src/main/java/org/dependencytrack/model/Finding.java", "revision": "30bc7047833577c169ac8b7987e2ac4d083c5a26", "source": " private List<Cwe> getCwes(final Object value) {\n if (value instanceof String) {...
{ "labels": { "bug": 0, "security": null }, "method_name": "Finding.getCwes", "path": "src/main/java/org/dependencytrack/model/Finding.java", "revision": "f9401fee895adc1362151371722461bac6201035", "source": " static List<Cwe> getCwes(final Object value) {\n if (value instanceof final Stri...
{ "name": "semantic-af19e7c84d8813c7", "each": "method", "where": "**/*", "ensure": "Skip nonnumeric identifier entries before conversion, retain recognized identifiers, and return no collection only when none resolve." }
1
swe-rebench:dotnet-script__dotnet-script-762:2906c196f88d
bug
csharp
dotnet-script/dotnet-script
{ "labels": { "bug": 1, "security": null }, "method_name": "ScriptParser.ReadSdkFromReferenceDirective", "path": "src/Dotnet.Script.DependencyModel/ProjectSystem/ScriptParser.cs", "revision": "4e3fe383743ab7da7bf5f37d4ed7b9d8cd06e857", "source": "L0053| private static string ReadSdkFromRefer...
{ "labels": { "bug": 0, "security": null }, "method_name": "ScriptParser.ReadSdkFromReferenceDirective", "path": "src/Dotnet.Script.DependencyModel/ProjectSystem/ScriptParser.cs", "revision": "2e1bca9d52a06572533f12fd5740431aaff81167", "source": "L0053| private static string ReadSdkFromRefer...
{ "name": "semantic-61389bbf430325bd", "each": "method", "where": "**/*", "ensure": "Search source directives across lines when recognizing SDK reference directives." }
1
swe-rebench:dvanoni__notero-608:9b62d028fce0
bug
typescript
dvanoni/notero
{ "labels": { "bug": 1, "security": null }, "method_name": "SyncManager.getItemsForNotifierEvent", "path": "src/content/services/sync-manager.ts", "revision": "cc34ad6d74202f05186b02105b99b1c204fc8f9a", "source": " private getItemsForNotifierEvent(\n ...[event, ids]: NotifierEventParams\n ): Zo...
{ "labels": { "bug": 0, "security": null }, "method_name": "SyncManager.getItemsForNotifierEvent", "path": "src/content/services/sync-manager.ts", "revision": "dd49299002878b22333ca199fa0a7103c2c012ac", "source": " private getItemsForNotifierEvent(\n ...[event, ids]: NotifierEventParams\n ): Zo...
{ "name": "semantic-88ef7669858547d4", "each": "method", "where": "**/*", "ensure": "For ordinary item-modify notifications, include regular items and include note items only when note synchronization is enabled." }
1
swe-rebench:e2niee__pandapower-2017:41265c598a15
bug
python
e2niee/pandapower
{ "labels": { "bug": 1, "security": null }, "method_name": "_get_bus_v_results", "path": "pandapower/results_bus.py", "revision": "42e1466df8e244cebe6ec8188cf50a506d81425a", "source": "def _get_bus_v_results(net, ppc, suffix=None):\n ac = net[\"_options\"][\"ac\"]\n bus_idx = _get_bus_idx(net)...
{ "labels": { "bug": 0, "security": null }, "method_name": "_get_bus_v_results", "path": "pandapower/results_bus.py", "revision": "e8d901d0e960319485e4b50b1736dfb0077893c2", "source": "def _get_bus_v_results(net, ppc, suffix=None):\n bus_idx = _get_bus_idx(net)\n\n res_table = \"res_bus\" if s...
{ "name": "semantic-b324ee013c304beb", "each": "method", "where": "**/*", "ensure": "Always refresh bus voltage-magnitude results from the current power-flow output, including DC runs, so earlier results cannot remain stale." }
1
swe-rebench:eclipse-ee4j__yasson-510:53d7bca0dda5
bug
java
eclipse-ee4j/yasson
{ "labels": { "bug": 1, "security": null }, "method_name": "ComponentMatcher.introspectSerializerBinding", "path": "src/main/java/org/eclipse/yasson/internal/ComponentMatcher.java", "revision": "9d9fffa3140e375329f8c245c17d95e2f580ce1f", "source": " @SuppressWarnings(\"unchecked\")\n Serialize...
{ "labels": { "bug": 0, "security": null }, "method_name": "ComponentMatcher.introspectSerializerBinding", "path": "src/main/java/org/eclipse/yasson/internal/ComponentMatcher.java", "revision": "a6e0b85124f57ff22369ff88b136f7cc683642b2", "source": " @SuppressWarnings(\"unchecked\")\n Serialize...
{ "name": "semantic-6cc97d548dbf75bb", "each": "method", "where": "**/*", "ensure": "Resolve a component's generic type argument against the concrete component class that declares it." }
1
swe-rebench:effekt-lang__effekt-1043:03bdd684f0ef
bug
scala
effekt-lang/effekt
{ "labels": { "bug": 1, "security": null }, "method_name": "Server.didChangeConfiguration", "path": "effekt/jvm/src/main/scala/effekt/Server.scala", "revision": "6e8b2b515ebc45304b2d38ab161f9be0f7cd2e8d", "source": " def didChangeConfiguration(params: DidChangeConfigurationParams): Unit = {\n //...
{ "labels": { "bug": 0, "security": null }, "method_name": "Server.didChangeConfiguration", "path": "effekt/jvm/src/main/scala/effekt/Server.scala", "revision": "985b9687f863062ef02f990c714427870bcd60d4", "source": " def didChangeConfiguration(params: DidChangeConfigurationParams): Unit = {\n //...
{ "name": "semantic-b65fa5e39308db7b", "each": "method", "where": "**/*", "ensure": "Treat absent language-server configuration as a request to clear current settings and return before object conversion." }
1
swe-rebench:evant__kotlin-inject-427:15b8dc7a726a
bug
kotlin
evant/kotlin-inject
{ "labels": { "bug": 1, "security": null }, "method_name": "KSAstType.toString", "path": "ast/ksp/src/main/kotlin/me/tatarka/kotlin/ast/KSAst.kt", "revision": "dc3eba221720804bc67513ef6ca769d4d7719f67", "source": " override fun toString(): String {\n // rely on KotlinPoet's toString() as i...
{ "labels": { "bug": 0, "security": null }, "method_name": "KSAstType.toString", "path": "ast/ksp/src/main/kotlin/me/tatarka/kotlin/ast/KSAst.kt", "revision": "3bbb9386e1303b18a29c51873e3665c4b21d2ba0", "source": " override fun toString(): String {\n // rely on KotlinPoet's toString() as i...
{ "name": "semantic-7b4de1ee7c842015", "each": "method", "where": "**/*", "ensure": "Type rendering should fall back to the original source representation when conversion to a canonical type name fails." }
1
swe-rebench:fontoxml__fontoxpath-629:2ec1ef18e1c1
bug
typescript
fontoxml/fontoxpath
{ "labels": { "bug": 1, "security": null }, "method_name": "registerXQueryModule", "path": "src/registerXQueryModule.ts", "revision": "07c10cb15d96c8c3dd1153bc318a76bb4b814a74", "source": "export default function registerXQueryModule(\n\tmoduleString: string,\n\toptions: { debug: boolean } = { debug...
{ "labels": { "bug": 0, "security": null }, "method_name": "registerXQueryModule", "path": "src/registerXQueryModule.ts", "revision": "5943da6bced1b0b8c9acc01455b9d09c863528fc", "source": "export default function registerXQueryModule(\n\tmoduleString: string,\n\toptions: { debug: boolean } = { debug...
{ "name": "semantic-dcaf51c84b3f11ff", "each": "method", "where": "**/*", "ensure": "When parsing source text, catch failures and send the source and error through diagnostics before propagation." }
1
swe-rebench:getsentry__sentry-rust-846:ca3774c995f9
bug
rust
getsentry/sentry-rust
{ "labels": { "bug": 1, "security": null }, "method_name": "LogAttribute.serialize", "path": "sentry-types/src/protocol/v7.rs", "revision": "095771694c2c689b1cb21cfc8c0b70804f120589", "source": " fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>\n where\n S: serde::Serial...
{ "labels": { "bug": 0, "security": null }, "method_name": "LogAttribute.serialize", "path": "sentry-types/src/protocol/v7.rs", "revision": "11776fddaea4cdf830bbd470ae6236faffa36472", "source": " fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error>\n where\n S: serde::Serial...
{ "name": "semantic-ffe1f638f356c90a", "each": "method", "where": "**/*", "ensure": "Preserve large unsigned integer attributes exactly instead of converting them to imprecise floating-point values." }
1
swe-rebench:getslash__slash-1035:8b461bfb87cf
bug
python
getslash/slash
{ "labels": { "bug": 1, "security": null }, "method_name": "Loader._iter_test_resume", "path": "slash/loader.py", "revision": "33bae1272d5a2201c8e43c82b27e4425140e70d7", "source": " def _iter_test_resume(self, resume_state):\n for test in self._iter_path(resume_state.file_name):\n ...
{ "labels": { "bug": 0, "security": null }, "method_name": "Loader._iter_test_resume", "path": "slash/loader.py", "revision": "0d144b7d9144f90c8a251537109d31c5c480f448", "source": " def _iter_test_resume(self, resume_state):\n for test in self._iter_path(resume_state.file_name):\n ...
{ "name": "semantic-c9dc2edbafe31498", "each": "method", "where": "**/*", "ensure": "Resumed test discovery must reapply the loader’s exclusion predicate before yielding a test matching the saved location." }
1
swe-rebench:go-co-op__gocron-809:fc41814bae65
bug
go
go-co-op/gocron
{ "labels": { "bug": 1, "security": null }, "method_name": "NewWeekdays", "path": "job.go", "revision": "c180381e94fcc7061c643926e9af365d9205e55c", "source": "func NewWeekdays(weekday time.Weekday, weekdays ...time.Weekday) Weekdays {\n\treturn func() []time.Weekday {\n\t\tweekdays = append(weekdays...
{ "labels": { "bug": 0, "security": null }, "method_name": "NewWeekdays", "path": "job.go", "revision": "7c68b2d9814214835819f77bd4d1c22dfe69bace", "source": "func NewWeekdays(weekday time.Weekday, weekdays ...time.Weekday) Weekdays {\n\treturn func() []time.Weekday {\n\t\treturn append([]time.Weekd...
{ "name": "semantic-1cff61d6c0fb93b3", "each": "method", "where": "**/*", "ensure": "Preserve caller-supplied ordering and avoid mutating captured variadic inputs when constructing a schedule collection." }
1
swe-rebench:go-kit__kit-974:f1b8a4c5cb1b
bug
go
go-kit/kit
{ "labels": { "bug": 1, "security": null }, "method_name": "syncWriter.Write", "path": "log/sync.go", "revision": "cb67d82b1869d8688403aab8b376cf37cf4371fc", "source": "func (w *syncWriter) Write(p []byte) (n int, err error) {\n\tw.Lock()\n\tn, err = w.Writer.Write(p)\n\tw.Unlock()\n\treturn n, err\...
{ "labels": { "bug": 0, "security": null }, "method_name": "syncWriter.Write", "path": "log/sync.go", "revision": "95cec5e9673154496c73216b67ccc47d674be537", "source": "func (w *syncWriter) Write(p []byte) (n int, err error) {\n\tw.Lock()\n\tdefer w.Unlock()\n\treturn w.Writer.Write(p)\n}", "sourc...
{ "name": "semantic-ae395be4613995a8", "each": "method", "where": "**/*", "ensure": "A mutex protecting a delegated write must be released on every exit path, including when the write panics." }
1
swe-rebench:google__wire-220:5cae5f9c28ec
bug
go
google/wire
{ "labels": { "bug": 1, "security": null }, "method_name": "processStructProvider", "path": "internal/wire/parse.go", "revision": "0d3b2ebd4aa5d6ebb8f5e9ea4e6b65cf637e383e", "source": "func processStructProvider(fset *token.FileSet, info *types.Info, call *ast.CallExpr) (*Provider, error) {\n\t// As...
{ "labels": { "bug": 0, "security": null }, "method_name": "processStructProvider", "path": "internal/wire/parse.go", "revision": "87a8d36e4c1a61bb0c1d30679a9cd8263ce2e5ae", "source": "func processStructProvider(fset *token.FileSet, info *types.Info, call *ast.CallExpr) (*Provider, error) {\n\t// As...
{ "name": "semantic-7edd122df7840f06", "each": "method", "where": "**/*", "ensure": "For a pointer whose pointee is not a struct, report the supplied type without formatting an absent struct descriptor." }
1
swe-rebench:googleapis__google-http-java-client-1423:f20671cdd5d7
bug
java
googleapis/google-http-java-client
{ "labels": { "bug": 1, "security": 0 }, "method_name": "HttpResponse.getContentCharset", "path": "google-http-client/src/main/java/com/google/api/client/http/HttpResponse.java", "revision": "41e54fa4d2268767359cbe12dc199328bd615486", "source": " public Charset getContentCharset() {\n if (mediaT...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "HttpResponse.getContentCharset", "path": "google-http-client/src/main/java/com/google/api/client/http/HttpResponse.java", "revision": "4811efc091406be30a50081a19c44d58941df0e0", "source": " public Charset getContentCharset() {\n if (mediaT...
{ "name": "semantic-f66da5b9a6aced2d", "each": "method", "where": "**/*", "ensure": "When no charset is declared, CSV text responses must be decoded as UTF-8." }
1
swe-rebench:gradleup__shadow-1177:8b7e9cd38797
bug
kotlin
gradleup/shadow
{ "labels": { "bug": 1, "security": null }, "method_name": "ShadowJavaPlugin.configureShadowTask", "path": "src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.kt", "revision": "897895c5ab61779843fac60b3ca462ccc1074ba8", "source": " private fun configureShadowTask(project: P...
{ "labels": { "bug": 0, "security": null }, "method_name": "ShadowJavaPlugin.configureShadowTask", "path": "src/main/kotlin/com/github/jengelman/gradle/plugins/shadow/ShadowJavaPlugin.kt", "revision": "2356479e328dc9961d76670f5ebae9213f2cf437", "source": " private fun configureShadowTask(project: P...
{ "name": "semantic-dbfc395c4c53ce62", "each": "method", "where": "**/*", "ensure": "Shaded archives omit module descriptors stored in multi-release JAR version directories." }
1
swe-rebench:hairyhenderson__gomplate-2284:ebdc97ff3e7f
bug
go
hairyhenderson/gomplate
{ "labels": { "bug": 1, "security": null }, "method_name": "FSysForPath", "path": "internal/datafs/fsys.go", "revision": "66fd58bff457fa2042109356ed897b3615f731e9", "source": "func FSysForPath(ctx context.Context, path string) (fs.FS, error) {\n\tu, err := urlhelpers.ParseSourceURL(path)\n\tif err !...
{ "labels": { "bug": 0, "security": null }, "method_name": "FSysForPath", "path": "internal/datafs/fsys.go", "revision": "7fa67067cd03849cdf87bfea6441867c1afe1b1d", "source": "func FSysForPath(ctx context.Context, path string) (fs.FS, error) {\n\tu, err := urlhelpers.ParseSourceURL(path)\n\tif err !...
{ "name": "semantic-06ac5c5b4a4e91e6", "each": "method", "where": "**/*", "ensure": "Preserve opaque provider-specific URL paths when selecting the filesystem provider instead of rewriting them as local paths." }
1
swe-rebench:horstoeko__zugferd-209:960e5de983ec
bug
php
horstoeko/zugferd
{ "labels": { "bug": 1, "security": null }, "method_name": "ZugferdObjectHelper.toDateTime", "path": "src/ZugferdObjectHelper.php", "revision": "a00887c6fddab0c90e9a1cf590a56fd30789cfb5", "source": " public function toDateTime(?string $dateTimeString, ?string $format): ?DateTime\n {\n i...
{ "labels": { "bug": 0, "security": null }, "method_name": "ZugferdObjectHelper.toDateTime", "path": "src/ZugferdObjectHelper.php", "revision": "d9c8ba5965acae81d620b9ea6ea155c4dc4e2331", "source": " public function toDateTime(?string $dateTimeString, ?string $format): ?DateTime\n {\n i...
{ "name": "semantic-1dbb045742f2d4ad", "each": "method", "where": "**/*", "ensure": "Date-time parsing must trim surrounding whitespace from the supplied text before applying its format." }
1
swe-rebench:http4s__http4s-7180:7a5c51792454
bug
scala
http4s/http4s
{ "labels": { "bug": 1, "security": 0 }, "method_name": "requestToHeaders", "path": "ember-core/shared/src/main/scala/org/http4s/ember/core/h2/PseudoHeaders.scala", "revision": "7db268fc47806da56f7329e42763df441ee784ad", "source": " def requestToHeaders[F[_]](req: Request[F]): NonEmptyList[(String,...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "requestToHeaders", "path": "ember-core/shared/src/main/scala/org/http4s/ember/core/h2/PseudoHeaders.scala", "revision": "9e9cf5eba1854bd1ebde886c08e4f05362123126", "source": " def requestToHeaders[F[_]](req: Request[F]): NonEmptyList[(String,...
{ "name": "semantic-80b716338c65e8c6", "each": "method", "where": "**/*", "ensure": "The HTTP/2 request path must include the URI query, and queryless OPTIONS requests must use the asterisk-form target." }
1
swe-rebench:humbug__php-scoper-830:d9d374afe8b3
bug
php
humbug/php-scoper
{ "labels": { "bug": 1, "security": null }, "method_name": "ScoperAutoloadGenerator.dump", "path": "src/Autoload/ScoperAutoloadGenerator.php", "revision": "b83fded42b2187168bb6584078de40916d8942e3", "source": " public function dump(): string\n {\n $exposedFunctions = self::sortExposedFu...
{ "labels": { "bug": 0, "security": null }, "method_name": "ScoperAutoloadGenerator.dump", "path": "src/Autoload/ScoperAutoloadGenerator.php", "revision": "041a2a941ff4e9fd9dc364237b1928ebe4565736", "source": " public function dump(): string\n {\n $exposedFunctions = self::sortExposedFu...
{ "name": "semantic-bd85270a54b40013", "each": "method", "where": "**/*", "ensure": "Generated autoload code should load optional installed-version metadata only when the file exists." }
1
swe-rebench:iamconsortium__pyam-261:bd4ecf7297cd
bug
python
iamconsortium/pyam
{ "labels": { "bug": 1, "security": null }, "method_name": "IamDataFrame.filter", "path": "pyam/core.py", "revision": "d5a3a9f46a087e92d28754ba91d9ae48c5db638a", "source": " def filter(self, keep=True, inplace=False, **kwargs):\n \"\"\"Return a filtered IamDataFrame (i.e., a subset of curr...
{ "labels": { "bug": 0, "security": null }, "method_name": "IamDataFrame.filter", "path": "pyam/core.py", "revision": "8f62be4739a8d94143512d0bb7c310cf86d40de8", "source": " def filter(self, keep=True, inplace=False, **kwargs):\n \"\"\"Return a filtered IamDataFrame (i.e., a subset of curr...
{ "name": "semantic-ba6039a15ae71b91", "each": "method", "where": "**/*", "ensure": "The filter inversion option must be a boolean and should be rejected before any filtering work when it is not." }
1
swe-rebench:kelektiv__node-cron-924:2a70d468ee9d
bug
typescript
kelektiv/node-cron
{ "labels": { "bug": 1, "security": null }, "method_name": "CronJob.fireOnTick", "path": "src/job.ts", "revision": "f4e9e021a2217b422d2c4703d05cd8d5308fe8d4", "source": "\tasync fireOnTick() {\n\t\tif (!this.waitForCompletion && this._isCallbackRunning) return;\n\n\t\tthis._isCallbackRunning = true;...
{ "labels": { "bug": 0, "security": null }, "method_name": "CronJob.fireOnTick", "path": "src/job.ts", "revision": "9e1a0d2fb28c598268c337a53f4beb91828a05e5", "source": "\tasync fireOnTick() {\n\t\t// skip job if previous callback is still running\n\t\tif (this.waitForCompletion && this._isCallbackR...
{ "name": "semantic-60f5812d72e30ac0", "each": "method", "where": "**/*", "ensure": "A scheduled job must skip a new tick while its prior callback runs only when wait-for-completion is enabled." }
1
swe-rebench:kotlin__binary-compatibility-validator-247:c70a9ee1f553
bug
kotlin
kotlin/binary-compatibility-validator
{ "labels": { "bug": 1, "security": null }, "method_name": "KotlinKlibExtractAbiTask.generate", "path": "src/main/kotlin/KotlinKlibExtractAbiTask.kt", "revision": "0dd6e41027e37ebdedc0b9f9ee3cbe61aa1cb6cb", "source": " @OptIn(ExperimentalBCVApi::class)\n @TaskAction\n internal fun generate(...
{ "labels": { "bug": 0, "security": null }, "method_name": "KotlinKlibExtractAbiTask.generate", "path": "src/main/kotlin/KotlinKlibExtractAbiTask.kt", "revision": "9e1db6cfad0eb581e20deb0baa668e64ed615bba", "source": " @OptIn(ExperimentalBCVApi::class)\n @TaskAction\n internal fun generate(...
{ "name": "semantic-2e509da5f1d81ddf", "each": "method", "where": "**/*", "ensure": "An empty ABI dump is valid input and should yield an empty output dump without entering the parser." }
1
swe-rebench:laravel__framework-42606:5b81579cfc35
bug
php
laravel/framework
{ "labels": { "bug": 1, "security": null }, "method_name": "Route.bindingFieldFor", "path": "src/Illuminate/Routing/Route.php", "revision": "20faf9fc0dc9302eec46a62aa477a700edddae36", "source": " public function bindingFieldFor($parameter)\n {\n if (is_int($parameter)) {\n $p...
{ "labels": { "bug": 0, "security": null }, "method_name": "Route.bindingFieldFor", "path": "src/Illuminate/Routing/Route.php", "revision": "32f708d858f77a067056a557cbc12be3bb04b6ab", "source": " public function bindingFieldFor($parameter)\n {\n if (is_int($parameter)) {\n $p...
{ "name": "semantic-d32cb205be9ff169", "each": "method", "where": "**/*", "ensure": "Check a numeric route-parameter index exists before reading its name, returning null when it does not." }
1
swe-rebench:laravel__framework-44473:f3ec5b6e1165
bug
php
laravel/framework
{ "labels": { "bug": 1, "security": null }, "method_name": "ComponentTagCompiler.parseShortAttributeSyntax", "path": "src/Illuminate/View/Compilers/ComponentTagCompiler.php", "revision": "03795ab20ecf0c9bca61737b9a5c2a353712df9e", "source": " protected function parseShortAttributeSyntax(string $v...
{ "labels": { "bug": 0, "security": null }, "method_name": "ComponentTagCompiler.parseShortAttributeSyntax", "path": "src/Illuminate/View/Compilers/ComponentTagCompiler.php", "revision": "35c77f0e365913629663467ebe55ca1db0e73125", "source": " protected function parseShortAttributeSyntax(string $v...
{ "name": "semantic-f05d65b5315df015", "each": "method", "where": "**/*", "ensure": "Parse shorthand component attributes only at whitespace-delimited boundaries, preserving the separator in expanded markup." }
1
swe-rebench:luin__ioredis-314:ad3587aca9d9
bug
javascript
luin/ioredis
{ "labels": { "bug": 1, "security": 0 }, "method_name": "Pipeline.prototype.exec", "path": "lib/pipeline.js", "revision": "7add85900b4c13ade4d8c9ea2292f775708947b2", "source": "Pipeline.prototype.exec = function (callback) {\n if (this._transactions > 0) {\n this._transactions -= 1;\n return ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "Pipeline.prototype.exec", "path": "lib/pipeline.js", "revision": "c85b2befd868900a69ec5bd097b2c1832c7d4df2", "source": "Pipeline.prototype.exec = function (callback) {\n if (this._transactions > 0) {\n this._transactions -= 1;\n return ...
{ "name": "semantic-39873ab28fadd977", "each": "method", "where": "**/*", "ensure": "Transaction pipeline execution must honor the configured buffer-support mode when dispatching its queued commands." }
1
swe-rebench:mathnet__mathnet-numerics-1072:6f9a061dc82e
bug
csharp
mathnet/mathnet-numerics
{ "labels": { "bug": 1, "security": 0 }, "method_name": "SpecialFunctions.Hypotenuse", "path": "src/Numerics/SpecialFunctions/Stability.cs", "revision": "f19641843048df073b80f6ecfcbb229d3258049b", "source": " public static double Hypotenuse(double a, double b)\n {\n if (Math...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "SpecialFunctions.Hypotenuse", "path": "src/Numerics/SpecialFunctions/Stability.cs", "revision": "5d341d4571838c20958dcffe25a2d43ce3104643", "source": " public static double Hypotenuse(double a, double b)\n {\n if (doub...
{ "name": "semantic-20f2a7ed3808274a", "each": "method", "where": "**/*", "ensure": "Return NaN immediately when either input to the stable hypotenuse calculation is NaN." }
1
swe-rebench:mcollina__autocannon-267:ef8fc9a6aac1
bug
javascript
mcollina/autocannon
{ "labels": { "bug": 1, "security": null }, "method_name": "RequestIterator.prototype.nextRequest", "path": "lib/requestIterator.js", "revision": "2a074e3fa53eb57b27f79598b39534157246c8eb", "source": "RequestIterator.prototype.nextRequest = function () {\n ++this.currentRequestIndex\n // when loop...
{ "labels": { "bug": 0, "security": null }, "method_name": "RequestIterator.prototype.nextRequest", "path": "lib/requestIterator.js", "revision": "14c0e731514122dff094e55fe5d2903a80f666ca", "source": "RequestIterator.prototype.nextRequest = function () {\n ++this.currentRequestIndex\n // when loop...
{ "name": "semantic-7c9222e5f77320cd", "each": "method", "where": "**/*", "ensure": "Rebuild a request whenever identifier replacement or a dynamic setup callback can change its contents." }
1
swe-rebench:microsoft__kiota-6362:a5b38e0d930f
bug
csharp
microsoft/kiota
{ "labels": { "bug": 1, "security": null }, "method_name": "PluginsGenerationService.GetAuthFromSecurityScheme", "path": "src/Kiota.Builder/Plugins/PluginsGenerationService.cs", "revision": "70c30b55787f9aced6c4cb202b8a9ea10615bab2", "source": "L0544| private static Auth GetAuthFromSecuritySchem...
{ "labels": { "bug": 0, "security": null }, "method_name": "PluginsGenerationService.GetAuthFromSecurityScheme", "path": "src/Kiota.Builder/Plugins/PluginsGenerationService.cs", "revision": "87b05265c1ebb326a89b4acf9148e7d2e6ab34e3", "source": "L0549| private static Auth GetAuthFromSecuritySchem...
{ "name": "semantic-f896011b32c77d3e", "each": "method", "where": "**/*", "ensure": "HTTP bearer plugin credentials should use an explicit authentication reference when provided and fall back to the generated registration reference only when absent." }
1
swe-rebench:mozilla__nunjucks-1189:705f59b4d6ff
bug
javascript
mozilla/nunjucks
{ "labels": { "bug": 1, "security": null }, "method_name": "Tokenizer._extractString", "path": "nunjucks/src/lexer.js", "revision": "889ef80f859c1d5da381ca7e5423650bc8103e91", "source": " _extractString(str) {\n if (this._matches(str)) {\n this.index += str.length;\n return str;\n }...
{ "labels": { "bug": 0, "security": null }, "method_name": "Tokenizer._extractString", "path": "nunjucks/src/lexer.js", "revision": "6278d05ea1b3410fc6159ee3f28bce87993c5356", "source": " _extractString(str) {\n if (this._matches(str)) {\n this.forwardN(str.length);\n return str;\n ...
{ "name": "semantic-755123b30010d9bc", "each": "method", "where": "**/*", "ensure": "Advance the tokenizer through its shared character-consumption routine whenever a matched token is consumed." }
1
swe-rebench:mswjs__msw-2509:0a28baf66879
bug
typescript
mswjs/msw
{ "labels": { "bug": 1, "security": null }, "method_name": "HttpResponse.xml", "path": "src/core/HttpResponse.ts", "revision": "b06fd0e83af70a94303489062de7a5c49fb80ae7", "source": " static xml<BodyType extends string>(\n body?: BodyType | null,\n init?: HttpResponseInit,\n ): Response {\n ...
{ "labels": { "bug": 0, "security": null }, "method_name": "HttpResponse.xml", "path": "src/core/HttpResponse.ts", "revision": "2508875a99c80664a52ea3ab573fc256c1921292", "source": " static xml<BodyType extends string>(\n body?: BodyType | null,\n init?: HttpResponseInit,\n ): HttpResponse<B...
{ "name": "semantic-1e2241c86aee293d", "each": "method", "where": "**/*", "ensure": "XML response factories must preserve the concrete body type in their declared response type." }
1
swe-rebench:nestjs__swagger-582:5c8a3f37a755
bug
typescript
nestjs/swagger
{ "labels": { "bug": 1, "security": null }, "method_name": "SchemaObjectFactory.createNotBuiltInTypeReference", "path": "lib/services/schema-object-factory.ts", "revision": "1c4bde3dc44a437348d29406230af175e15c86e5", "source": " createNotBuiltInTypeReference(\n key: string,\n metadata: Schema...
{ "labels": { "bug": 0, "security": null }, "method_name": "SchemaObjectFactory.createNotBuiltInTypeReference", "path": "lib/services/schema-object-factory.ts", "revision": "b0ed36dba50650d3cba68ca02ee283d3a83734c9", "source": " createNotBuiltInTypeReference(\n key: string,\n metadata: Schema...
{ "name": "semantic-b2e32d68703f6260", "each": "method", "where": "**/*", "ensure": "When a schema reference has sibling metadata, preserve that metadata through an explicit composition instead of relying on reference siblings." }
1
swe-rebench:netease__arctic-1752:158f8a1a4267
bug
java
netease/arctic
{ "labels": { "bug": 1, "security": null }, "method_name": "SimpleSpillableMap.put", "path": "core/src/main/java/com/netease/arctic/utils/map/SimpleSpillableMap.java", "revision": "9ae4406a01cc55a7826239eb36ed6de197872f6d", "source": " public void put(K key, T value) {\n if (estimatedPayloadSize...
{ "labels": { "bug": 0, "security": null }, "method_name": "SimpleSpillableMap.put", "path": "core/src/main/java/com/netease/arctic/utils/map/SimpleSpillableMap.java", "revision": "f7f85dc33fe2db4d86ed5f5e08f869e90cfea0b1", "source": " public void put(K key, T value) {\n if (estimatedPayloadSize...
{ "name": "semantic-e7e80cc3334555b8", "each": "method", "where": "**/*", "ensure": "Update an existing in-memory map entry before applying capacity-based spill decisions, so the newer value remains visible." }
1
swe-rebench:netease__arctic-1752:cf18c016d05a
bug
java
netease/arctic
{ "labels": { "bug": 1, "security": null }, "method_name": "SimpleSpillableMap.delete", "path": "core/src/main/java/com/netease/arctic/utils/map/SimpleSpillableMap.java", "revision": "9ae4406a01cc55a7826239eb36ed6de197872f6d", "source": " public void delete(K key) {\n if (memoryMap.containsKey(k...
{ "labels": { "bug": 0, "security": null }, "method_name": "SimpleSpillableMap.delete", "path": "core/src/main/java/com/netease/arctic/utils/map/SimpleSpillableMap.java", "revision": "f7f85dc33fe2db4d86ed5f5e08f869e90cfea0b1", "source": " public void delete(K key) {\n if (memoryMap.containsKey(k...
{ "name": "semantic-c78529feab951497", "each": "method", "where": "**/*", "ensure": "Deleting a key from a spillable map must remove it from memory and attempt removal from disk storage." }
1
swe-rebench:nock__nock-2497:994e8a81f528
bug
javascript
nock/nock
{ "labels": { "bug": 1, "security": null }, "method_name": "removeInterceptor", "path": "lib/intercept.js", "revision": "bd4783b3e9d18fc7fd7b03dbff50885da332edd0", "source": "function removeInterceptor(options) {\n // Lazily import to avoid circular imports.\n const Interceptor = require('./interc...
{ "labels": { "bug": 0, "security": null }, "method_name": "removeInterceptor", "path": "lib/intercept.js", "revision": "bd4783b3e9d18fc7fd7b03dbff50885da332edd0+source_patch", "source": "function removeInterceptor(options) {\n // Lazily import to avoid circular imports.\n const Interceptor = requ...
{ "name": "semantic-cde14610d88047dc", "each": "method", "where": "**/*", "ensure": "When removal receives an interceptor instance, remove that exact object; when it receives request options, match the derived interceptor key." }
1
swe-rebench:node-fetch__node-fetch-1542:f2790f15f082
bug
javascript
node-fetch/node-fetch
{ "labels": { "bug": 1, "security": null }, "method_name": "Request.constructor", "path": "src/request.js", "revision": "c33e393c479392ff201c9c3b69bc2d18b8d88a23", "source": "\tconstructor(input, init = {}) {\n\t\tlet parsedURL;\n\n\t\t// Normalize input and force URL to be encoded as UTF-8 (https:/...
{ "labels": { "bug": 0, "security": null }, "method_name": "Request.constructor", "path": "src/request.js", "revision": "f20714188c548e7e6c65ce0ffcc52ac4688f3e28", "source": "\tconstructor(input, init = {}) {\n\t\tlet parsedURL;\n\n\t\t// Normalize input and force URL to be encoded as UTF-8 (https:/...
{ "name": "semantic-8e2ca03e0699ced9", "each": "method", "where": "**/*", "ensure": "Normalize recognized standard HTTP methods to their canonical uppercase spelling while preserving the supplied case of extension methods." }
1
swe-rebench:nodejs__llhttp-245:013562950290
bug
c
nodejs/llhttp
{ "labels": { "bug": 1, "security": null }, "method_name": "llhttp__after_headers_complete", "path": "src/native/http.c", "revision": "50524c05ab7d3986631476a23113c979e3cb2840", "source": "int llhttp__after_headers_complete(llhttp_t* parser, const char* p,\n const c...
{ "labels": { "bug": 0, "security": null }, "method_name": "llhttp__after_headers_complete", "path": "src/native/http.c", "revision": "45e9434350cb8852993278c944699ca4cc993200", "source": "int llhttp__after_headers_complete(llhttp_t* parser, const char* p,\n const c...
{ "name": "semantic-2ecdd7de89839c44", "each": "method", "where": "**/*", "ensure": "Handle informational and explicitly bodyless responses before inspecting transfer or content-length framing." }
1
swe-rebench:nvim-lua__plenary.nvim-251:c9a5c5992ad9
bug
lua
nvim-lua/plenary.nvim
{ "labels": { "bug": 1, "security": 0 }, "method_name": "Path:absolute", "path": "lua/plenary/path.lua", "revision": "6bb0e09030a7c2af19bf288088ca815228de9429", "source": "function Path:absolute()\n if self:is_absolute() then\n return _normalize_path(self.filename)\n else\n return _normalize...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "Path:absolute", "path": "lua/plenary/path.lua", "revision": "3255641c13aaa07827601da043774e8ea8523057", "source": "function Path:absolute()\n if self:is_absolute() then\n return _normalize_path(self.filename, self._cwd)\n else\n return...
{ "name": "semantic-48d53e65ac6d2535", "each": "method", "where": "**/*", "ensure": "Path normalization that resolves parent segments must use working-directory context to preserve correct root semantics." }
1
swe-rebench:nvim-lua__plenary.nvim-279:798441f21fe4
bug
lua
nvim-lua/plenary.nvim
{ "labels": { "bug": 1, "security": 0 }, "method_name": "Path:normalize", "path": "lua/plenary/path.lua", "revision": "b5fd5cab51f8e30d669295ec361a48b13c245eb5", "source": "function Path:normalize(cwd)\n if is_uri(self.filename) then\n return self.filename\n end\n\n self:make_relative(cwd)\n\n...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "Path:normalize", "path": "lua/plenary/path.lua", "revision": "e6af4cbdf5bea9b84c622a943c210055ebdb4a31", "source": "function Path:normalize(cwd)\n if is_uri(self.filename) then\n return self.filename\n end\n\n self:make_relative(cwd)\n\n...
{ "name": "semantic-36575d3d1a1eb823", "each": "method", "where": "**/*", "ensure": "A path equal to the home directory must retain a separator after conversion to the home shorthand." }
1
swe-rebench:nvim-lualine__lualine.nvim-836:c7d0510d972d
bug
lua
nvim-lualine/lualine.nvim
{ "labels": { "bug": 1, "security": 0 }, "method_name": "M.get_lualine_hl", "path": "lua/lualine/highlight.lua", "revision": "5d133a1ef22422e769d5affdd089fdda595f5f93", "source": "function M.get_lualine_hl(name)\n local hl = loaded_highlights[name]\n if hl and not hl.empty then\n if hl.link the...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "M.get_lualine_hl", "path": "lua/lualine/highlight.lua", "revision": "7f0a6cb8120c22fc1bc0e1b1c605a92fd5a511ac", "source": "function M.get_lualine_hl(name)\n local hl = loaded_highlights[name]\n if hl and not hl.empty then\n if hl.link the...
{ "name": "semantic-e11058e6fed6d067", "each": "method", "where": "**/*", "ensure": "Preserve every nonempty highlight color component, including the special color, in returned highlight definitions." }
1
swe-rebench:ordinals__ord-3656:161802c618e1
bug
rust
ordinals/ord
{ "labels": { "bug": 1, "security": null }, "method_name": "run", "path": "src/subcommand/wallet/cardinals.rs", "revision": "4f3e0362fc5041da023a69c096aced65d2e6de86", "source": "pub(crate) fn run(wallet: Wallet) -> SubcommandResult {\n let unspent_outputs = wallet.utxos();\n\n let inscribed_utxos...
{ "labels": { "bug": 0, "security": null }, "method_name": "run", "path": "src/subcommand/wallet/cardinals.rs", "revision": "f013d171e2340f0916b6b60bb1d874618cf2c6bf", "source": "pub(crate) fn run(wallet: Wallet) -> SubcommandResult {\n let unspent_outputs = wallet.utxos();\n\n let inscribed_utxos...
{ "name": "semantic-cccd476fccfedb5a", "each": "method", "where": "**/*", "ensure": "When selecting cardinal outputs, exclude both inscribed outputs and outputs carrying runic data." }
1
swe-rebench:perry-mitchell__webdav-client-364:abffc913396b
bug
typescript
perry-mitchell/webdav-client
{ "labels": { "bug": 1, "security": null }, "method_name": "prepareFileFromProps", "path": "source/tools/dav.ts", "revision": "e41a805af2ed102ce581058c411b69e5b7d94a58", "source": "export function prepareFileFromProps(\n props: DAVResultResponseProps,\n rawFilename: string,\n isDetailed: bo...
{ "labels": { "bug": 0, "security": null }, "method_name": "prepareFileFromProps", "path": "source/tools/dav.ts", "revision": "56797f6a9791c11eb082925bf86a3e53b662d5aa", "source": "export function prepareFileFromProps(\n props: DAVResultResponseProps,\n filename: string,\n isDetailed: boole...
{ "name": "semantic-1dcdff1434c3c2e7", "each": "method", "where": "**/*", "ensure": "File-stat construction must preserve the caller-provided filename when the WebDAV response path is already decoded." }
1
swe-rebench:phpbench__phpbench-1010:66167d4c4b97
bug
php
phpbench/phpbench
{ "labels": { "bug": 1, "security": null }, "method_name": "NumberFormat.format", "path": "lib/Util/NumberFormat.php", "revision": "a6a25bb31b541acc0e7e92906ff5d9457ef60db5", "source": " public static function format(float $number, int $decimals, bool $stripTailingZeros): string\n {\n $...
{ "labels": { "bug": 0, "security": null }, "method_name": "NumberFormat.format", "path": "lib/Util/NumberFormat.php", "revision": "46b302da43898ccdbc72ab849d1641eeaad00ae2", "source": " public static function format(float $number, int $decimals, bool $stripTailingZeros): string\n {\n $...
{ "name": "semantic-8ef83ff1142a76c2", "each": "method", "where": "**/*", "ensure": "Formatted integers produced after trimming fractional zeros must retain the thousands grouping used by other formatted values." }
1
swe-rebench:phpstan__phpstan-doctrine-260:db939b50f4c9
bug
php
phpstan/phpstan-doctrine
{ "labels": { "bug": 1, "security": null }, "method_name": "QueryResultDynamicReturnTypeExtension.getMethodReturnTypeForHydrationMode", "path": "src/Type/Doctrine/Query/QueryResultDynamicReturnTypeExtension.php", "revision": "13252778e9fa5bc9d1804a0d17d7ffc1b80c8af5", "source": "\tprivate function g...
{ "labels": { "bug": 0, "security": null }, "method_name": "QueryResultDynamicReturnTypeExtension.getMethodReturnTypeForHydrationMode", "path": "src/Type/Doctrine/Query/QueryResultDynamicReturnTypeExtension.php", "revision": "7ae30529ded476e772a287981b5ae3b7b7dadd4c", "source": "\tprivate function g...
{ "name": "semantic-1067a839b7039a4c", "each": "method", "where": "**/*", "ensure": "When a query result may be void but is not definitely void, retain the method's declared return type; only definite void queries map to affected-row counts." }
1
swe-rebench:prettier__plugin-pug-448:f2f3615c838a
bug
typescript
prettier/plugin-pug
{ "labels": { "bug": 1, "security": null }, "method_name": "PugPrinter.text", "path": "src/printer.ts", "revision": "2d9f8978940e0ed081c67d66f9cc0bdfb66168a8", "source": " private text(token: TextToken): string {\n let result: string = '';\n let val: string = token.val;\n let needsTrailing...
{ "labels": { "bug": 0, "security": null }, "method_name": "PugPrinter.text", "path": "src/printer.ts", "revision": "edeb27deb8a3660dccf742da5d17d2b81c87eccc", "source": " private text(token: TextToken): string {\n let result: string = '';\n let val: string = token.val;\n let needsTrailing...
{ "name": "semantic-fc82a4c0c966d29f", "each": "method", "where": "**/*", "ensure": "Preserve leading and trailing spaces around interpolation tokens when printing Pug text." }
1
swe-rebench:probe-rs__probe-rs-3310:7fe8a7a2703d
bug
rust
probe-rs/probe-rs
{ "labels": { "bug": 1, "security": null }, "method_name": "MonitorEventHandler<F>.handle_halt", "path": "probe-rs-tools/src/bin/probe-rs/rpc/functions/monitor.rs", "revision": "24a291c87e1f7a11c6c9646d7647994b874d0b7d", "source": " fn handle_halt(\n &mut self,\n halt_reason: HaltRe...
{ "labels": { "bug": 0, "security": null }, "method_name": "MonitorEventHandler<F>.handle_halt", "path": "probe-rs-tools/src/bin/probe-rs/rpc/functions/monitor.rs", "revision": "e6bff78415dab489ab3b6994bd065713e2b59da3", "source": " fn handle_halt(\n &mut self,\n halt_reason: HaltRe...
{ "name": "semantic-90d6241bb91e736d", "each": "method", "where": "**/*", "ensure": "Monitor halt outcomes should return structured reasons for success, failure reported by the target, or unexpected termination so the caller can report them uniformly." }
1
swe-rebench:projectdiscovery__httpx-1009:79b46a1527a0
bug
go
projectdiscovery/httpx
{ "labels": { "bug": 1, "security": null }, "method_name": "Runner.targets", "path": "runner/runner.go", "revision": "f87c4d778c92ee7a1afed592e2952f0b31003ba5", "source": "func (r *Runner) targets(hp *httpx.HTTPX, target string) chan httpx.Target {\n\tresults := make(chan httpx.Target)\n\tgo func() ...
{ "labels": { "bug": 0, "security": null }, "method_name": "Runner.targets", "path": "runner/runner.go", "revision": "065f8922c6add24e649bcd3cd2b76a32df909c93", "source": "func (r *Runner) targets(hp *httpx.HTTPX, target string) chan httpx.Target {\n\tresults := make(chan httpx.Target)\n\tgo func() ...
{ "name": "semantic-206da497b7b2d6b9", "each": "method", "where": "**/*", "ensure": "Parse comma-delimited targets as custom host and IP pairs only when the input is not already an HTTP URL." }
1
swe-rebench:projectevergreen__wcc-85:f228b8a65722
bug
javascript
projectevergreen/wcc
{ "labels": { "bug": 1, "security": null }, "method_name": "Element.constructor", "path": "src/dom-shim.js", "revision": "92082640c29a8d4d9b598a8342804f51d238a16e", "source": " constructor() {\n super();\n this.shadowRoot = null;\n this.innerHTML;\n this.attributes = {};\n }", "sourc...
{ "labels": { "bug": 0, "security": null }, "method_name": "Element.constructor", "path": "src/dom-shim.js", "revision": "2e5f79514401273f6b580cdeada2e37db8961acb", "source": " constructor() {\n super();\n this.shadowRoot = null;\n this.innerHTML = '';\n this.attributes = {};\n }", "...
{ "name": "semantic-4c105a33ca8f7199", "each": "method", "where": "**/*", "ensure": "An element test double should initialize its inner HTML state to the empty string during construction." }
1
swe-rebench:pyg-team__pytorch_geometric-7902:37a1bab98c01
bug
python
pyg-team/pytorch_geometric
{ "labels": { "bug": 1, "security": null }, "method_name": "SetTransformerAggregation.forward", "path": "torch_geometric/nn/aggr/set_transformer.py", "revision": "c0c060c192e68f4088757bc12b6e551736bda87b", "source": " def forward(\n self,\n x: Tensor,\n index: Optional[Tensor...
{ "labels": { "bug": 0, "security": null }, "method_name": "SetTransformerAggregation.forward", "path": "torch_geometric/nn/aggr/set_transformer.py", "revision": "5cb278eed0abf2bffa3985cab3b2cbded8ba9c60", "source": " def forward(\n self,\n x: Tensor,\n index: Optional[Tensor...
{ "name": "semantic-86fe1ec71ee3f166", "each": "method", "where": "**/*", "ensure": "Normalize non-finite values produced by set-transformer aggregation before returning the pooled or concatenated tensor." }
1
swe-rebench:redis__redis-12301:ffabf8a1ebc5
bug
c
redis/redis
{ "labels": { "bug": 1, "security": null }, "method_name": "handleClientsBlockedOnKey", "path": "src/blocked.c", "revision": "0bfb6d55826ce128b8752430b4499146450deef4", "source": "static void handleClientsBlockedOnKey(readyList *rl) {\n\n /* We serve clients in the same order they blocked for\n ...
{ "labels": { "bug": 0, "security": null }, "method_name": "handleClientsBlockedOnKey", "path": "src/blocked.c", "revision": "f20cf17bb0ba3770e2bda817453debca959e9564", "source": "static void handleClientsBlockedOnKey(readyList *rl) {\n\n /* We serve clients in the same order they blocked for\n ...
{ "name": "semantic-f027be1a71af68cc", "each": "method", "where": "**/*", "ensure": "Bound ready-client processing to the queue length captured on entry so a command that reblocks cannot make one pass unending." }
1
swe-rebench:redis__redis-9244:3863ba0977d0
bug
c
redis/redis
{ "labels": { "bug": 1, "security": null }, "method_name": "smoveCommand", "path": "src/t_set.c", "revision": "f03af47a34ec672a7d9b18150a5be3a83681c19b", "source": "void smoveCommand(client *c) {\n robj *srcset, *dstset, *ele;\n srcset = lookupKeyWrite(c->db,c->argv[1]);\n dstset = lookupKe...
{ "labels": { "bug": 0, "security": null }, "method_name": "smoveCommand", "path": "src/t_set.c", "revision": "90584c3f5762e164b52e9fc5cc112917423a5e98", "source": "void smoveCommand(client *c) {\n robj *srcset, *dstset, *ele;\n srcset = lookupKeyWrite(c->db,c->argv[1]);\n dstset = lookupKe...
{ "name": "semantic-36120123adcc6033", "each": "method", "where": "**/*", "ensure": "Signal a destination key as modified only when inserting the moved member changes that set; source removal alone must not invalidate it." }
1
swe-rebench:rest-assured__rest-assured-1667:38b5a1ecbb52
bug
java
rest-assured/rest-assured
{ "labels": { "bug": 1, "security": null }, "method_name": "CookieFilter.CookieFilter", "path": "rest-assured/src/main/java/io/restassured/filter/cookie/CookieFilter.java", "revision": "9b683130c93188cabdef850e89d0c9417d847a17", "source": " public CookieFilter(boolean allowMultipleCookiesWithTheS...
{ "labels": { "bug": 0, "security": null }, "method_name": "CookieFilter.CookieFilter", "path": "rest-assured/src/main/java/io/restassured/filter/cookie/CookieFilter.java", "revision": "55737e322fb445c3df0c55de3fdf08b186e6ec81", "source": " public CookieFilter(boolean allowMultipleCookiesWithTheS...
{ "name": "semantic-a4e19b4c882e26c1", "each": "method", "where": "**/*", "ensure": "Cookie filters should use strict RFC 6265 parsing as their default cookie-handling policy." }
1
swe-rebench:retroachievements__raintegration-1010:3e88a4b9e072
bug
cpp
retroachievements/raintegration
{ "labels": { "bug": 1, "security": 0 }, "method_name": "ra.ui.viewmodels.CodeNotesViewModel", "path": "src/ui/viewmodels/CodeNotesViewModel.cpp", "revision": "1d9a22f10f2df4a07982fd72a44fa09a1db73c88", "source": "void CodeNotesViewModel::PublishSelected()\n{\n if (!CanPublishCurrentAddressNote()...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "ra.ui.viewmodels.CodeNotesViewModel", "path": "src/ui/viewmodels/CodeNotesViewModel.cpp", "revision": "7ae69e5a387ed87cd07cdd0cb9c0a2f0801f94b9", "source": "void CodeNotesViewModel::PublishSelected()\n{\n if (!CanPublishCurrentAddressNote()...
{ "name": "semantic-a90ae296529712fb", "each": "method", "where": "**/*", "ensure": "Show publication results when multiple code notes are uploaded or the upload reports failures." }
1
swe-rebench:retroachievements__raintegration-974:83021106bdc1
bug
cpp
retroachievements/raintegration
{ "labels": { "bug": 1, "security": 0 }, "method_name": "ra.ui.viewmodels.TriggerViewModel", "path": "src/ui/viewmodels/TriggerViewModel.cpp", "revision": "56074ce8c5f314c7eef78c65bc65b85488db8def", "source": "void TriggerViewModel::NewCondition()\n{\n m_vConditions.BeginUpdate();\n\n Deselect...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "ra.ui.viewmodels.TriggerViewModel", "path": "src/ui/viewmodels/TriggerViewModel.cpp", "revision": "7a71583b5817afa0d68c847159894801452d3380", "source": "void TriggerViewModel::NewCondition()\n{\n m_vConditions.BeginUpdate();\n\n Deselect...
{ "name": "semantic-dd8c637248efa067", "each": "method", "where": "**/*", "ensure": "For the first condition on a value trigger, create a measured condition without a comparison operator or target." }
1
swe-rebench:ron-rs__ron-103:7fb1ea75a233
bug
rust
ron-rs/ron
{ "labels": { "bug": 1, "security": null }, "method_name": "&'a mut Deserializer<'de>.deserialize_newtype_struct", "path": "src/de/mod.rs", "revision": "a5a4b2ee21f5be0b07c55844e2689ae8a521da3b", "source": " fn deserialize_newtype_struct<V>(self, name: &'static str, visitor: V) -> Result<V::Value...
{ "labels": { "bug": 0, "security": null }, "method_name": "&'a mut Deserializer<'de>.deserialize_newtype_struct", "path": "src/de/mod.rs", "revision": "71961a38cec998fd7dfe5d0eb3a69a84b16cc027", "source": " fn deserialize_newtype_struct<V>(self, name: &'static str, visitor: V) -> Result<V::Value...
{ "name": "semantic-613cdc0564aa28d2", "each": "method", "where": "**/*", "ensure": "Skip whitespace after an opening parenthesis before parsing a wrapped newtype value." }
1
swe-rebench:rust-lang__rust-analyzer-19137:1c3cf82f5817
bug
rust
rust-lang/rust-analyzer
{ "labels": { "bug": 1, "security": null }, "method_name": "highlight_name_ref_by_syntax", "path": "crates/ide/src/syntax_highlighting/highlight.rs", "revision": "f5e7172e96ff8a75af99ac570085d22a4afab09b", "source": "fn highlight_name_ref_by_syntax(\n name: ast::NameRef,\n sema: &Semantics<'_,...
{ "labels": { "bug": 0, "security": null }, "method_name": "highlight_name_ref_by_syntax", "path": "crates/ide/src/syntax_highlighting/highlight.rs", "revision": "44ed2218a8dec10036992320e1fe0754822cebdb", "source": "fn highlight_name_ref_by_syntax(\n name: ast::NameRef,\n sema: &Semantics<'_,...
{ "name": "semantic-6bb3e4929d4556e9", "each": "method", "where": "**/*", "ensure": "External-crate references must be highlighted as module symbols with the crate-root modifier." }
1
swe-rebench:rustcrypto__formats-1126:148c14b0cd1b
bug
rust
rustcrypto/formats
{ "labels": { "bug": 1, "security": null }, "method_name": "RdnSequence.from_str", "path": "x509-cert/src/name.rs", "revision": "96186bb54b6da8a94cb8bebd2572b01740464e06", "source": " fn from_str(s: &str) -> der::Result<Self> {\n split(s, b',')\n .map(RelativeDistinguishedName::...
{ "labels": { "bug": 0, "security": null }, "method_name": "RdnSequence.from_str", "path": "x509-cert/src/name.rs", "revision": "22cb4b6f9e2a1c2cefed2232d8e531d2f3e59945", "source": " fn from_str(s: &str) -> der::Result<Self> {\n let mut parts = split(s, b',')\n .map(RelativeDis...
{ "name": "semantic-c40cb12438a82d72", "each": "method", "where": "**/*", "ensure": "Parsing a distinguished name from text must reverse its relative distinguished names into the sequence's DER order." }
1
swe-rebench:rustwasm__wasm-pack-205:03a77f39c418
bug
rust
rustwasm/wasm-pack
{ "labels": { "bug": 1, "security": null }, "method_name": "write_package_json", "path": "src/manifest.rs", "revision": "1e9ab8bedb7132dcba832663d81decaba6b0cdfb", "source": "pub fn write_package_json(\n path: &str,\n scope: &Option<String>,\n disable_dts: bool,\n step: &Step,\n) -> Resu...
{ "labels": { "bug": 0, "security": null }, "method_name": "write_package_json", "path": "src/manifest.rs", "revision": "af961b66dc2131c0e8fa10aecbf4987ffc717017", "source": "pub fn write_package_json(\n path: &str,\n scope: &Option<String>,\n disable_dts: bool,\n target: &str,\n step...
{ "name": "semantic-25a19fd3ddcd90fd", "each": "method", "where": "**/*", "ensure": "Forward the selected compilation target into npm metadata conversion when generating a package manifest." }
1
swe-rebench:ryanfitz__vogels-95:359582dffce5
bug
javascript
ryanfitz/vogels
{ "labels": { "bug": 1, "security": null }, "method_name": "exports.serializeUpdateExpression", "path": "lib/expressions.js", "revision": "44e3ecf80306ba5906cb6c968667a41b9099c00e", "source": "exports.serializeUpdateExpression = function (schema, item) {\n var datatypes = schema._modelDatatypes;\n\...
{ "labels": { "bug": 0, "security": null }, "method_name": "exports.serializeUpdateExpression", "path": "lib/expressions.js", "revision": "b517be7fa880c08aa3daff1afb17f94d65e511ce", "source": "exports.serializeUpdateExpression = function (schema, item) {\n var datatypes = schema._modelDatatypes;\n\...
{ "name": "semantic-3379bb10d2fb88df", "each": "method", "where": "**/*", "ensure": "Update-expression serialization should encode both null and empty-string attribute values as removals." }
1
swe-rebench:scala-steward-org__scala-steward-1214:bf86d8b1a915
bug
scala
scala-steward-org/scala-steward
{ "labels": { "bug": 1, "security": 0 }, "method_name": "getScmUrlOrHomePage", "path": "modules/core/src/main/scala/org/scalasteward/core/coursier/CoursierAlg.scala", "revision": "557f5049c9c31fd452445959e067ff7f5fe5c17b", "source": " private def getScmUrlOrHomePage(info: Info): Option[Uri] =\n ...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "getScmUrlOrHomePage", "path": "modules/core/src/main/scala/org/scalasteward/core/coursier/CoursierAlg.scala", "revision": "0d16f24813aec8fe01ab7517422d1b56be210d57", "source": " private def getScmUrlOrHomePage(info: Info): Option[Uri] =\n ...
{ "name": "semantic-74b9a7db75dd87a9", "each": "method", "where": "**/*", "ensure": "Return an SCM or homepage candidate only when parsing yields an absolute URI with a defined scheme." }
1
swe-rebench:scala-steward-org__scala-steward-1854:2d57cee3efab
bug
scala
scala-steward-org/scala-steward
{ "labels": { "bug": 1, "security": null }, "method_name": "FileGitAlg.syncFork", "path": "modules/core/src/main/scala/org/scalasteward/core/git/FileGitAlg.scala", "revision": "447728a686d06c1c03d6ba8ad7481bd8d8abf089", "source": " override def syncFork(repo: File, upstreamUrl: Uri, defaultBranch: ...
{ "labels": { "bug": 0, "security": null }, "method_name": "FileGitAlg.syncFork", "path": "modules/core/src/main/scala/org/scalasteward/core/git/FileGitAlg.scala", "revision": "d9fda262894e0a9a9bdeb24c56f94afc218807c5", "source": " override def syncFork(repo: File, upstreamUrl: Uri, defaultBranch: ...
{ "name": "semantic-26ffdea1f2d58a7f", "each": "method", "where": "**/*", "ensure": "Fork synchronization must refresh the upstream tracking branch even when the remote history has been rewritten." }
1
swe-rebench:sfdo-tooling__cumulusci-3645:357c79c876ed
bug
python
sfdo-tooling/cumulusci
{ "labels": { "bug": 1, "security": null }, "method_name": "ReleaseReport._run_task", "path": "cumulusci/tasks/github/release_report.py", "revision": "794bc2f886306c9b23716895233a1c73f532066c", "source": " def _run_task(self):\n releases = []\n repo = self.get_repo()\n regex_...
{ "labels": { "bug": 0, "security": null }, "method_name": "ReleaseReport._run_task", "path": "cumulusci/tasks/github/release_report.py", "revision": "faee005e2d4c872fd48176b7da4a6baf1ce81534", "source": " def _run_task(self):\n releases = []\n repo = self.get_repo()\n regex_...
{ "name": "semantic-4fc70f1758b2f950", "each": "method", "where": "**/*", "ensure": "Treat a missing release description as empty before parsing its lines." }
1
swe-rebench:shapesecurity__salvation-141:d63b5544697a
bug
java
shapesecurity/salvation
{ "labels": { "bug": 1, "security": null }, "method_name": "Base64Value.isBase64Char", "path": "src/main/java/com/shapesecurity/salvation/data/Base64Value.java", "revision": "634482b877172c7ca0a4c7cffb351bf87d4faeb3", "source": " public static boolean isBase64Char(byte ch) {\n return '0' <...
{ "labels": { "bug": 0, "security": null }, "method_name": "Base64Value.isBase64Char", "path": "src/main/java/com/shapesecurity/salvation/data/Base64Value.java", "revision": "76546133396da9b834c4e1bc0ae31f0d4bfe16dd", "source": " public static boolean isBase64Char(byte ch) {\n return '0' <...
{ "name": "semantic-4fa54d36294e6c49", "each": "method", "where": "**/*", "ensure": "Base64 value validation must accept the alphanumeric characters and both standard and URL-safe alphabet symbols before optional padding." }
1
swe-rebench:shepmaster__snafu-143:d3230d8f455b
bug
rust
shepmaster/snafu
{ "labels": { "bug": 1, "security": null }, "method_name": "attributes_from_syn", "path": "snafu-derive/src/lib.rs", "revision": "22d4168f9d68edb9c4a811dad749a52eced39ebd", "source": "fn attributes_from_syn(attrs: Vec<syn::Attribute>) -> MultiSynResult<Vec<SnafuAttribute>> {\n use syn::parse2;\n\...
{ "labels": { "bug": 0, "security": null }, "method_name": "attributes_from_syn", "path": "snafu-derive/src/lib.rs", "revision": "a364845519508ade60e8e48a0d14868a957f5668", "source": "fn attributes_from_syn(attrs: Vec<syn::Attribute>) -> MultiSynResult<Vec<SnafuAttribute>> {\n use syn::parse2;\n\...
{ "name": "semantic-23a71fbf6156e380", "each": "method", "where": "**/*", "ensure": "Ignore parsing failures in documentation attributes while still reporting errors in tool-specific attributes." }
1
swe-rebench:sigoden__dufs-437:eb5d23c13483
bug
rust
sigoden/dufs
{ "labels": { "bug": 1, "security": null }, "method_name": "is_readonly_method", "path": "src/auth.rs", "revision": "1db263efae2853cf90167047acbfa835a844c9c8", "source": "fn is_readonly_method(method: &Method) -> bool {\n method == Method::GET\n || method == Method::OPTIONS\n || met...
{ "labels": { "bug": 0, "security": null }, "method_name": "is_readonly_method", "path": "src/auth.rs", "revision": "4966360ee6b731be45fd5d20f2db913e5cdb1792", "source": "fn is_readonly_method(method: &Method) -> bool {\n method == Method::GET\n || method == Method::OPTIONS\n || met...
{ "name": "semantic-de70e0554614606c", "each": "method", "where": "**/*", "ensure": "HTTP authentication-negotiation requests should be classified as read-only when the access guard determines required path permissions." }
1
swe-rebench:source-academy__js-slang-125:e581a114993a
bug
typescript
source-academy/js-slang
{ "labels": { "bug": 1, "security": null }, "method_name": "ForStatement", "path": "src/interpreter.ts", "revision": "0b8f9fa07ceeb92423621093f9bca3a096a64759", "source": " ForStatement: function*(node: es.ForStatement, context: Context) {\n // Check that all 3 expressions are not empty in a for...
{ "labels": { "bug": 0, "security": null }, "method_name": "ForStatement", "path": "src/interpreter.ts", "revision": "b5854def28b9c360a681939be26abaaa672ba910", "source": " ForStatement: function*(node: es.ForStatement, context: Context) {\n // Check that all 3 expressions are not empty in a for...
{ "name": "semantic-8a8bc8f96901d486", "each": "method", "where": "**/*", "ensure": "A loop must stop and propagate both ordinary and tail-call returns from its body before running the update or checking again." }
1
swe-rebench:sparkpost__node-sparkpost-148:9b82b23c5628
bug
javascript
sparkpost/node-sparkpost
{ "labels": { "bug": 1, "security": null }, "method_name": "snakedKeyClone", "path": "lib/toApiFormat.js", "revision": "b4a603c7cc1cc3bc14fc8115e2838d95af9ea2b2", "source": "function snakedKeyClone(source) {\n\n if (!_.isObject(source)) {\n return source;\n }\n\n var target = {};\n\n if (Arra...
{ "labels": { "bug": 0, "security": null }, "method_name": "snakedKeyClone", "path": "lib/toApiFormat.js", "revision": "e2b9ba360ad0c3e50bc9d780d24330879858e58c", "source": "function snakedKeyClone(source) {\n if (!_.isObject(source)) {\n return source;\n }\n\n var target = Array.isArray(sourc...
{ "name": "semantic-1748c3bd887eeab6", "each": "method", "where": "**/*", "ensure": "Recursively convert every enumerable own key of object-like inputs while preserving array inputs as arrays." }
1
swe-rebench:spatie__laravel-permission-2759:0a794d159955
bug
php
spatie/laravel-permission
{ "labels": { "bug": 1, "security": null }, "method_name": "PermissionRegistrar.getHydratedPermissionCollection", "path": "src/PermissionRegistrar.php", "revision": "93477f5cc2d1ae9730254349443f0f07df694d63", "source": " private function getHydratedPermissionCollection(): Collection\n {\n ...
{ "labels": { "bug": 0, "security": null }, "method_name": "PermissionRegistrar.getHydratedPermissionCollection", "path": "src/PermissionRegistrar.php", "revision": "2b0a27433b62781ccf8e289c423dd72cf02ea648", "source": " private function getHydratedPermissionCollection(): Collection\n {\n ...
{ "name": "semantic-2fd3c32f28db24d1", "each": "method", "where": "**/*", "ensure": "Models reconstructed from cached database rows must be marked as existing records before their attributes and relationships are hydrated." }
1
swe-rebench:sse-secure-systems__connaisseur-1714:603b4aed2aba
bug
go
sse-secure-systems/connaisseur
{ "labels": { "bug": 1, "security": null }, "method_name": "mutateReview", "path": "internal/handler/mutate.go", "revision": "aa3240e1043de87842aade80908e096a25f49f95", "source": "func mutateReview(ctx context.Context, ar admission.AdmissionReview) (*admission.AdmissionResponse, *alerting.Notificati...
{ "labels": { "bug": 0, "security": null }, "method_name": "mutateReview", "path": "internal/handler/mutate.go", "revision": "2692cb0ef490c9feab3e8f244115e8b5049ac518", "source": "func mutateReview(ctx context.Context, ar admission.AdmissionReview) (*admission.AdmissionResponse, *alerting.Notificati...
{ "name": "semantic-48463ac2beba6e4b", "each": "method", "where": "**/*", "ensure": "Include admission patch metadata only when the validation pass produced one or more mutation operations." }
1
swe-rebench:static-web-server__static-web-server-166:4f7474135c5c
bug
rust
static-web-server/static-web-server
{ "labels": { "bug": 1, "security": null }, "method_name": "precompressed_variant", "path": "src/compression_static.rs", "revision": "8017446d9d1099217b7d1ed451e57b2912d0cc1e", "source": "pub async fn precompressed_variant(\n file_path: PathBuf,\n headers: &HeaderMap<HeaderValue>,\n) -> Option...
{ "labels": { "bug": 0, "security": null }, "method_name": "precompressed_variant", "path": "src/compression_static.rs", "revision": "2ebf188b61a9bc99f7c2dbeaac50df21d9321036", "source": "pub async fn precompressed_variant(\n file_path: PathBuf,\n headers: &HeaderMap<HeaderValue>,\n) -> Option...
{ "name": "semantic-a155fd98bbda28a7", "each": "method", "where": "**/*", "ensure": "Treat a path without a basename as lacking a precompressed variant instead of panicking." }
1
swe-rebench:static-web-server__static-web-server-471:41e60549a6a5
bug
rust
static-web-server/static-web-server
{ "labels": { "bug": 1, "security": null }, "method_name": "post_process", "path": "src/compression.rs", "revision": "dd48972896d859344a84e5d2944d6662ccc22dcb", "source": "pub(crate) fn post_process<T>(\n opts: &RequestHandlerOpts,\n req: &Request<T>,\n mut resp: Response<Body>,\n) -> Resul...
{ "labels": { "bug": 0, "security": null }, "method_name": "post_process", "path": "src/compression.rs", "revision": "dd7b1c19f54062754c931869ad6d788af0e52d14", "source": "pub(crate) fn post_process<T>(\n opts: &RequestHandlerOpts,\n req: &Request<T>,\n mut resp: Response<Body>,\n) -> Resul...
{ "name": "semantic-1177477e1f696df0", "each": "method", "where": "**/*", "ensure": "Skip automatic body compression when a response already declares its content encoding." }
1
swe-rebench:stephenh__ts-proto-482:2c4db1024eea
bug
typescript
stephenh/ts-proto
{ "labels": { "bug": 1, "security": null }, "method_name": "maybeSnakeToCamel", "path": "src/case.ts", "revision": "6f362bfd3517a6bcb440d65e7ac63cd2b0bcc293", "source": "export function maybeSnakeToCamel(s: string, options: Pick<Options, 'snakeToCamel'>): string {\n if (options.snakeToCamel.include...
{ "labels": { "bug": 0, "security": null }, "method_name": "maybeSnakeToCamel", "path": "src/case.ts", "revision": "4124a8ae04d7fa169e147f181727f5ff0fd5f780", "source": "export function maybeSnakeToCamel(s: string, options: Pick<Options, 'snakeToCamel'>): string {\n if (options.snakeToCamel.include...
{ "name": "semantic-99d4e36b16db414c", "each": "method", "where": "**/*", "ensure": "When converting a snake-case name with existing lowercase letters, preserve the leading component’s internal casing." }
1
swe-rebench:symfony__ux-2757:c66bcc7fb459
bug
php
symfony/ux
{ "labels": { "bug": 1, "security": null }, "method_name": "ComponentAttributes.defaults", "path": "src/TwigComponent/src/ComponentAttributes.php", "revision": "5231f5f801204628c2aa6199ac35797c5c727e05", "source": " public function defaults(iterable $attributes): self\n {\n if ($attribu...
{ "labels": { "bug": 0, "security": null }, "method_name": "ComponentAttributes.defaults", "path": "src/TwigComponent/src/ComponentAttributes.php", "revision": "61fe688e05c27de954a0797719bc4ef8295fa00c", "source": " public function defaults(iterable $attributes): self\n {\n if ($attribu...
{ "name": "semantic-b6ba040ad790b661", "each": "method", "where": "**/*", "ensure": "Copy Stimulus-derived attribute defaults as raw values instead of escaping them during transfer." }
1
swe-rebench:tailwindlabs__tailwindcss-jit-30:56eb4c7c5d3d
bug
javascript
tailwindlabs/tailwindcss-jit
{ "labels": { "bug": 1, "security": null }, "method_name": "collapseAdjacentRules", "path": "src/lib/collapseAdjacentRules.js", "revision": "c0f01a6926cb63dc44f32431e559158ff6dc2198", "source": "function collapseAdjacentRules(context) {\n return (root) => {\n let currentRule = null\n root.eac...
{ "labels": { "bug": 0, "security": null }, "method_name": "collapseAdjacentRules", "path": "src/lib/collapseAdjacentRules.js", "revision": "bfbef4085c89da52678d1aa5a421a0792454818f", "source": "function collapseAdjacentRules(context) {\n return (root) => {\n let currentRule = null\n root.eac...
{ "name": "semantic-286212ec646d7b22", "each": "method", "where": "**/*", "ensure": "Do not merge adjacent font-face at-rules into one CSS rule during optimization." }
1
swe-rebench:theupdateframework__python-tuf-2632:f55fec958234
bug
python
theupdateframework/python-tuf
{ "labels": { "bug": 1, "security": null }, "method_name": "RequestsFetcher._get_session", "path": "tuf/ngclient/_internal/requests_fetcher.py", "revision": "1b0c9f7d444e037d1e9b5635b993c46053442e1b", "source": " def _get_session(self, url: str) -> requests.Session:\n \"\"\"Return a differ...
{ "labels": { "bug": 0, "security": null }, "method_name": "RequestsFetcher._get_session", "path": "tuf/ngclient/_internal/requests_fetcher.py", "revision": "dfa8c97a231a36e892f56e9adddc4cf2894475e5", "source": " def _get_session(self, url: str) -> requests.Session:\n \"\"\"Return a differ...
{ "name": "semantic-531c03c6c9eacbae", "each": "method", "where": "**/*", "ensure": "Include the library's canonical distribution name and version in the product portion of its generated User-Agent header." }
1
swe-rebench:tighten__tlint-286:9a19f4bedfd0
bug
php
tighten/tlint
{ "labels": { "bug": 1, "security": null }, "method_name": "NoRequestAll.lint", "path": "src/Linters/NoRequestAll.php", "revision": "a0368a99cf192f70779a6e9bec777c8898b6c1b8", "source": " public function lint(Parser $parser)\n {\n $traverser = new NodeTraverser;\n\n $traverser->a...
{ "labels": { "bug": 0, "security": null }, "method_name": "NoRequestAll.lint", "path": "src/Linters/NoRequestAll.php", "revision": "da769291eb3a671be93d5c0984cf3886321ef47d", "source": " public function lint(Parser $parser)\n {\n $traverser = new NodeTraverser;\n\n $traverser->a...
{ "name": "semantic-616b513f8660eb85", "each": "method", "where": "**/*", "ensure": "A lint that flags retrieval of all request input must require both a request receiver and the all operation." }
1
swe-rebench:tipsy__javalin-2004:e5da1b6ea580
bug
kotlin
tipsy/javalin
{ "labels": { "bug": 1, "security": null }, "method_name": "ConfigurableHandler.getResource", "path": "javalin/src/main/java/io/javalin/jetty/JettyResourceHandler.kt", "revision": "4a6240bf57c161d8f6dc0bea5e2edf20aa05da42", "source": " override fun getResource(path: String): Resource {\n v...
{ "labels": { "bug": 0, "security": null }, "method_name": "ConfigurableHandler.getResource", "path": "javalin/src/main/java/io/javalin/jetty/JettyResourceHandler.kt", "revision": "1eff1a8a46431864711a0b3291c3c51728329d82", "source": " override fun getResource(path: String): Resource {\n v...
{ "name": "semantic-400a93fc6cf9c124", "each": "method", "where": "**/*", "ensure": "Requests exactly at a configured resource mount point must resolve to the mount’s root resource." }
1
swe-rebench:tomarrell__lbadd-65:c42e988fea98
bug
go
tomarrell/lbadd
{ "labels": { "bug": 1, "security": null }, "method_name": "ruleBasedScanner.computeNext", "path": "internal/parser/scanner/rule_based_scanner.go", "revision": "ac589a16a08471d606b233475f8343b0bd07f1ec", "source": "func (s *ruleBasedScanner) computeNext() token.Token {\n\tif s.done() {\n\t\treturn s...
{ "labels": { "bug": 0, "security": null }, "method_name": "ruleBasedScanner.computeNext", "path": "internal/parser/scanner/rule_based_scanner.go", "revision": "c805c736caea457d24fcc468ce301a45308200dd", "source": "func (s *ruleBasedScanner) computeNext() token.Token {\n\ts.drainWhitespace()\n\n\tif...
{ "name": "semantic-7cd6a32f91518fd7", "each": "method", "where": "**/*", "ensure": "After discarding ignorable input, check for end-of-input before attempting to produce another token." }
1
swe-rebench:typelevel__fs2-2968:9d1dc3f0f81c
bug
scala
typelevel/fs2
{ "labels": { "bug": 1, "security": 0 }, "method_name": "Scope.acquireResource", "path": "core/shared/src/main/scala/fs2/internal/Scope.scala", "revision": "4773bfe8d19c56e882bc4317f475aabe0b2211ff", "source": " def acquireResource[R](\n acquire: Poll[F] => F[R],\n release: (R, Resource.E...
{ "labels": { "bug": 0, "security": 0 }, "method_name": "Scope.acquireResource", "path": "core/shared/src/main/scala/fs2/internal/Scope.scala", "revision": "2ab812f8ddbdaf85271170ac9cefec5e13731ee7", "source": " def acquireResource[R](\n acquire: Poll[F] => F[R],\n release: (R, Resource.E...
{ "name": "semantic-0d24865188f4f57f", "each": "method", "where": "**/*", "ensure": "Run acquired-resource cleanup in an uncancelable region so cancellation cannot interrupt a required finalizer." }
1
swe-rebench:urlaubsverwaltung__urlaubsverwaltung-4625:cd0db66e73d7
bug
java
urlaubsverwaltung/urlaubsverwaltung
{ "labels": { "bug": 1, "security": null }, "method_name": "AccountInteractionServiceImpl.createDefaultAccount", "path": "src/main/java/org/synyx/urlaubsverwaltung/account/AccountInteractionServiceImpl.java", "revision": "1d028a3bee711a9a228a526d610d667e862d434e", "source": " @Override\n publi...
{ "labels": { "bug": 0, "security": null }, "method_name": "AccountInteractionServiceImpl.createDefaultAccount", "path": "src/main/java/org/synyx/urlaubsverwaltung/account/AccountInteractionServiceImpl.java", "revision": "8144882de3cbdb9c87574059c14d74e6c410b713", "source": " @Override\n publi...
{ "name": "semantic-52e8e897c8627d04", "each": "method", "where": "**/*", "ensure": "Default vacation accounts should leave the local remaining-day expiry policy unspecified." }