content
stringlengths
1
103k
path
stringlengths
8
216
filename
stringlengths
2
179
language
stringclasses
15 values
size_bytes
int64
2
189k
quality_score
float64
0.5
0.95
complexity
float64
0
1
documentation_ratio
float64
0
1
repository
stringclasses
5 values
stars
int64
0
1k
created_date
stringdate
2023-07-10 19:21:08
2025-07-09 19:11:45
license
stringclasses
4 values
is_test
bool
2 classes
file_hash
stringlengths
32
32
// UNSUPPORTED: OS=windows-msvc\n\n// RUN: %empty-directory(%t)\n// RUN: ln -s %sdk %t/sdk\n// RUN: ln -s %test-resource-dir %t/test_resource_dir\n\n// RUN: %batch-code-completion -sdk %t/sdk -resource-dir %t/test_resource_dir\n\n#^COMPLETE^#\n// COMPLETE: Decl[FreeFunction]/OtherModule[Swift]/IsSystem: print\n
dataset_sample\swift\apple_swift\validation-test\IDE\complete_sdk_is_symlink.swift
complete_sdk_is_symlink.swift
Swift
302
0.8
0
1
python-kit
293
2024-11-05T03:23:20.918849
GPL-3.0
true
032a043c97f044bb5183835e308de8d9
// RUN: %empty-directory(%t)\n// RUN: ln -s %sdk %t/sdk\n\n// RUN: %batch-code-completion %xcode-extra-platform-search-paths\n\n// Works if SDK is specified as a symlink too.\n// RUN: %batch-code-completion -sdk %t/sdk %xcode-extra-platform-search-paths\n\n// REQUIRES: OS=macosx\n// rdar://131854240 - Make sure modules...
dataset_sample\swift\apple_swift\validation-test\IDE\complete_sdk_platform.swift
complete_sdk_platform.swift
Swift
560
0.95
0.058824
0.916667
awesome-app
207
2024-08-18T10:39:36.663614
BSD-3-Clause
true
a668f2c2e2837d4cde89d2c57a6d8faf
// Check interface produced for the standard library.\n//\n// REQUIRES: long_test\n// REQUIRES: nonexecutable_test\n//\n\n// RUN: %target-swift-ide-test -print-module -module-group "Pointer" -synthesize-extension -module-to-print=Swift -source-filename %s -print-interface | %FileCheck %s -check-prefix=CHECK-FREQUENT-WO...
dataset_sample\swift\apple_swift\validation-test\IDE\print_stdlib_specialized.swift
print_stdlib_specialized.swift
Swift
3,762
0.8
0.037037
1
node-utils
136
2023-11-04T05:43:04.314575
MIT
true
f0d834e08dd120a49e3b84d4af4d7767
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n// REQUIRES: asserts\n\nfunc matched<C: Collection>(atStartOf c: C)\n where C.Index#^A^# == Index {\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0001-complete-typeloc-in-generic-signature.swift
0001-complete-typeloc-in-generic-signature.swift
Swift
193
0.8
0
0.4
awesome-app
814
2024-04-28T21:01:01.291445
GPL-3.0
true
1edf067ede83d0f970a6f0099afabed9
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nlet bounds: Range#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0002-complete-unbound-generic-type.swift
0002-complete-unbound-generic-type.swift
Swift
117
0.8
0
0.5
react-lib
594
2023-11-21T11:01:18.147626
GPL-3.0
true
e7b6fe0f4b9d5c1ad4a82fad4c163e6b
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nfunc searchTest(format: ()->String = { "" }#^A^#) {}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0003-complete-default-argument-closure.swift
0003-complete-default-argument-closure.swift
Swift
147
0.8
0
0.5
react-lib
181
2024-10-12T21:37:33.101799
BSD-3-Clause
true
1352d8953d6932c2e1fd9e675155f48c
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nfunc _thread() {\n _ = #^A^#\n}\n\nfunc run<InputCollection : Collection, Result>(_: InputCollection) -> Result {}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0004-unmapped-dependent-type.swift
0004-unmapped-dependent-type.swift
Swift
206
0.8
0
0.2
vue-tools
691
2023-11-10T23:33:19.509340
Apache-2.0
true
130fd6cf6264bbf02561323db12373a8
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A1 -source-filename=%s\n// RUN: %target-swift-ide-test -code-completion -code-completion-token=B1 -source-filename=%s\n// RUN: %target-swift-ide-test -code-completion -code-completion-token=C1 -source-filename=%s\n\n// RUN: %target-swift-ide-test -c...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0005-should-have-found-non-type-context-by-now.swift
0005-should-have-found-non-type-context-by-now.swift
Swift
1,001
0.95
0.086957
0.529412
react-lib
485
2024-10-07T23:08:50.066816
Apache-2.0
true
04e552791b81c7e617a842a53a533a3d
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n// REQUIRES: asserts\n\nprotocol a {\n associatedtype b\n}\nprotocol c {\n associatedtype d : a\n}\n\nstruct e<f : c> where f == f.g.b {\n #^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0006-crazy-associated-types.swift
0006-crazy-associated-types.swift
Swift
231
0.8
0
0.3
react-lib
153
2025-03-09T01:20:28.127194
MIT
true
690b4aac16312a7eba1732890b33a778
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nclass D<X, Y>() {}\n\nclass C<T> {\n func f<U>() -> D<U, T> {}\n func g() {\n f#^A^#\n }\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0007-archetype-not-in-context.swift
0007-archetype-not-in-context.swift
Swift
185
0.95
0.2
0.125
node-utils
360
2024-01-02T08:47:16.217633
Apache-2.0
true
72366728fab72235c02842298969e69b
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\n.a != nil #^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0008-must-conform-to-literal-protocol.swift
0008-must-conform-to-literal-protocol.swift
Swift
110
0.8
0
0.5
react-lib
594
2024-04-04T23:22:22.880208
GPL-3.0
true
b1b6730e87b2371efd0091c0e12789d2
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nextension Integer {\n init() {\n self = #^A^#\n }\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0009-protocol-extension-self-assign.swift
0009-protocol-extension-self-assign.swift
Swift
148
0.8
0
0.166667
react-lib
563
2024-05-28T03:28:38.722669
Apache-2.0
true
3af5bc2ac813178008add8934c47ae0a
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nextension Integer { \n#^A^#\n extension {\n var : Self \n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0010-reference-to-self-in-extension-init.swift
0010-reference-to-self-in-extension-init.swift
Swift
157
0.8
0
0.4
python-kit
507
2025-03-01T19:55:21.051291
BSD-3-Clause
true
21245901b5bf9ac57807a0d2491c1ca8
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nInteger#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0011-complete-protocol-with-initializer.swift
0011-complete-protocol-with-initializer.swift
Swift
107
0.8
0
0.5
python-kit
101
2024-06-16T07:20:35.135125
GPL-3.0
true
e8fd08f34acc74ccdbe20619d6a56f7e
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nprotocol a where #^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0012-protocol-where-clause.swift
0012-protocol-where-clause.swift
Swift
117
0.8
0
0.5
vue-tools
333
2023-08-23T23:39:29.378234
MIT
true
b1e36daaef067c40e04bfb97ec702db7
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nfunc a<b>(() -> b) -> b {\n a {}#^A^#\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0013-unmapped-dependent-type-2.swift
0013-unmapped-dependent-type-2.swift
Swift
134
0.8
0
0.25
react-lib
238
2024-02-14T19:13:01.574535
MIT
true
c1003b8063266ee27792efc08d168395
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\n// https://github.com/apple/swift/issues/47137\n\nprotocol MyDelegate: AnyObject {\n func mySweetDelegateFunction()\n}\n\nclass Foo {\n weak var delegate: MyDelegate?\n \n func bar() {\n self.delegate.#^A^#\n // ^--- type...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0014-issue-47137.swift
0014-issue-47137.swift
Swift
331
0.95
0.0625
0.25
vue-tools
233
2025-07-06T16:03:18.716113
Apache-2.0
true
a56f1e6a2dba3e038debf6d27095c898
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\n#if a\n#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0015-pound-if-without-endif.swift
0015-pound-if-without-endif.swift
Swift
106
0.8
0.25
1
react-lib
60
2024-08-30T10:07:13.995025
Apache-2.0
true
9c8f4c74d52860ad33fa353d62e8d143
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n// REQUIRES: asserts\n\nstruct a { func b(c d: a) { b(c: d) == .#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0016-operator-unresolved-dot.swift
0016-operator-unresolved-dot.swift
Swift
161
0.8
0
0.666667
awesome-app
842
2025-03-18T13:42:50.735482
Apache-2.0
true
75ec0447c036729a882021416cf4bcb7
// RUN: %target-swift-ide-test -structure -source-filename=%s\n// rdar://problem/36081659\n\nvar str = <#T##String#>\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0017-editorplacehoder-at-eof.swift
0017-editorplacehoder-at-eof.swift
Swift
114
0.8
0
0.666667
awesome-app
368
2024-05-31T09:04:03.361587
BSD-3-Clause
true
4cb0ffd4f935d467ec907c00c7924cf7
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nstruct Horse {\n init(saddle: @escaping (_ height: Float) -> Float) {}\n}\n\nfunc myHorse() -> Horse {\n return Horse(\n saddle: { (height) -> Float in\n let stirrups: #^A^#Float = 30\n ret...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0018-rdar38189778.swift
0018-rdar38189778.swift
Swift
341
0.8
0
0.090909
react-lib
583
2024-06-21T22:30:29.250837
MIT
true
faa82df832d75f70ba63acaa3477f24a
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\npublic typealias CustomGetter<T> = (Int) -> T #^COMPLETE^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0019-rdar39909829.swift
0019-rdar39909829.swift
Swift
160
0.8
0
0.5
awesome-app
361
2024-05-28T09:42:37.057339
BSD-3-Clause
true
8886d0810e123dfaa69aeb70f2c5098b
// RUN: %target-swift-ide-test(mock-sdk: %clang-importer-sdk) -code-completion -code-completion-token=COMPLETE -source-filename=%s\n// REQUIRES: objc_interop\n\nimport Foundation\n\nclass A {\n static var `default` = A()\n\n func foo(arg: String) -> Bool {\n return false\n }\n\n func foo(arg: String, _ flag: Uns...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0020-rdar42056741.swift
0020-rdar42056741.swift
Swift
474
0.95
0.086957
0.111111
awesome-app
49
2024-09-23T19:02:31.865522
GPL-3.0
true
0c0e66f7b3a4aa6ac0f9f81600ff5623
/*comment*/`init`()\nfoo();/*comment*/`var`()\n\n// RUN: %target-swift-ide-test -syntax-coloring -source-filename %s\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0021-lexer-commentlength.swift
0021-lexer-commentlength.swift
Swift
114
0.8
0
0.666667
node-utils
418
2025-06-22T17:37:42.439182
GPL-3.0
true
e06bc1ad59c9dd41872ef394aab96ddf
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\npublic func * (lhs: Int, rhs: Character) -> String {\n return String(repeating: String(rhs), count #^COMPLETE^#: lhs)\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0022-rdar42678836.swift
0022-rdar42678836.swift
Swift
221
0.8
0
0.25
awesome-app
391
2024-06-20T02:24:51.038843
GPL-3.0
true
dc0d035e9a444b1758185757f22664e3
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nenum E1 {\n case X\n case Y\n}\nenum E2 {\n case A\n case B\n case C\n}\n\nfunc foo() -> ([E1], [E2]) {\n return ([.X], [.A, .B, .#^A^#])\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0023-rdar41331096.swift
0023-rdar41331096.swift
Swift
229
0.8
0
0.076923
react-lib
360
2025-02-26T10:31:24.841209
BSD-3-Clause
true
85c852aacd3b8b74d3e362e39ad09661
// RUN: %target-swift-ide-test -repl-code-completion -source-filename %s\n\nstruct Foo<T> {}\n\nextension Foo whe\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0025-complete_repl_extension_where.swift
0025-complete_repl_extension_where.swift
Swift
110
0.8
0
0.333333
node-utils
538
2025-03-22T19:48:55.021683
BSD-3-Clause
true
c365400d5d64cd5fbb74edb3b4766070
// RUN: %swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\nstruct Image {}\n\n@resultBuilder struct ViewBuilder2 {\n static func buildBlock<Content>(_ content: Content) -> Content { fatalError() }\n}\n\nstruct NavigationLink<Destination> {\n init(@ViewBuilder2 destination: () ->...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0026-completion-type-not-part-of-solution.swift
0026-completion-type-not-part-of-solution.swift
Swift
458
0.8
0
0.076923
vue-tools
336
2025-04-10T07:18:04.710672
BSD-3-Clause
true
0d794fc2bfa4c23ab61268f6c0495c1d
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE\n\nstruct MyView {\n func pnAppear(perform action: (() -> Void)) -> MyView {\n return self\n }\n func qadding(_ edges: Int, _ length: Int) -> MyView {\n return self\n }\n}\n\n@resultBuilder struct ViewBuilder {\n sta...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0027-autoclosure-curry-thunk.swift
0027-autoclosure-curry-thunk.swift
Swift
621
0.8
0
0.045455
react-lib
809
2024-09-04T10:15:46.520121
MIT
true
f0646d03af3a90a0b557929d651cad63
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE\n\nstruct PopularityBadge {\n init(\n\n\n#if DEBUG\nvar previews {\n PopularityBadge(score: #^COMPLETE^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0028-member-reference-error-type.swift
0028-member-reference-error-type.swift
Swift
196
0.8
0.111111
0.333333
awesome-app
205
2025-01-23T19:27:25.974736
GPL-3.0
true
a6fc8aea478c0492dd14a25091f25d90
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE\n\npublic enum MyEnum {\n case one\n case two\n}\n\nstruct MyStruct {\n func takesClosure(_ action: (() -> Void)) -> MyStruct {\n return self\n }\n\n func generic<V>(_ keyPath: V, _ value: MyEnum) -> MyStruct {\n ret...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0029-closure-implicit-return.swift
0029-closure-implicit-return.swift
Swift
644
0.8
0
0.037037
python-kit
806
2024-10-20T14:01:41.729718
MIT
true
f4d95bc478c779719823813394a1c83f
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE\n\n@dynamicMemberLookup public struct Binding<Value> {\n subscript<Subject>(dynamicMember keyPath: WritableKeyPath<Value, Subject>) -> Binding<Subject> {\n fatalError()\n }\n}\n\nstruct Foo {\n var bar: Binding<[Str...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0030-arg-completion-no-locator.swift
0030-arg-completion-no-locator.swift
Swift
381
0.8
0
0.083333
awesome-app
869
2024-05-06T14:51:58.935809
GPL-3.0
true
95d17483b7854b670f26c5acbb3710a0
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE\n\nfunc tryMap(_ x: (String) -> Void) {}\n\nfunc fetch() {\n tryMap { data in\n doesNotExist(data: data, #^COMPLETE^#)\n }\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0031-fallback-typecheck-call-arg.swift
0031-fallback-typecheck-call-arg.swift
Swift
224
0.8
0
0.142857
python-kit
515
2024-10-27T01:47:10.352502
BSD-3-Clause
true
befbe29cbec6eec224e36b525c534cde
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE\n\n@resultBuilder public struct ViewBuilder {\n static func buildBlock(_ content: TextField) -> TextField { fatalError() }\n}\n\nstruct TextField {\n init(_ title: String, text: String) {}\n}\n\nstruct EncodedView {\n @Vie...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0032-constructor-call-in-result-builder.swift
0032-constructor-call-in-result-builder.swift
Swift
389
0.8
0
0.083333
node-utils
27
2024-02-08T08:25:44.103823
MIT
true
4dd6229de8464d023ac0dc079317bca5
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE\n\nfunc foo() {\n bar {\n .dragging(arg1: #^COMPLETE^#, arg2: drag ?? .zero)\n }\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0033-dont-optimize-constraints-for-ignored-args.swift
0033-dont-optimize-constraints-for-ignored-args.swift
Swift
176
0.8
0
0.166667
node-utils
615
2024-12-12T12:47:39.319254
MIT
true
a43f9f9d9737ebd36085e07075439aaf
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE | %FileCheck %s\n\nfunc foo() {\n _ = sink { items in }#^COMPLETE^#\n}\n\nfunc sink(receiveCompletion: (Int) -> Void, receiveValue: (Int) -> Void) { fatalError() }\n\n// CHECK: Begin completions, 2 items\n// CHECK-DAG: Pattern...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0033-trailing-closure-arg-label-matching.swift
0033-trailing-closure-arg-label-matching.swift
Swift
470
0.8
0
0.5
node-utils
326
2025-01-29T07:51:45.939085
BSD-3-Clause
true
2b72d887ff1e0dfb34e79230a1dac873
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE\n\n@resultBuilder public struct WiewBuilder {\n static func buildBlock<T>(_ content: T) -> T { return content }\n}\n\nfunc pnAppear(perform action: () -> Void) {}\n\npublic func asyncAfter(execute work: () -> Void) {}\n\nstruc...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0034-closure-solution-application-target-applied-twice.swift
0034-closure-solution-application-target-applied-twice.swift
Swift
430
0.8
0
0.153846
node-utils
534
2023-12-18T12:23:49.416810
BSD-3-Clause
true
fba3088cb89635c4f30e18d697e16752
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token COMPLETE\n\n@resultBuilder public struct WiewBuilder {\n static func buildBlock<T>(_ content: T) -> T { return content }\n}\n\nfunc pnAppear(_ action: () -> Void) {}\n\nstruct BispatchQueue {\n static func bsyncAfter(execute work: () ...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0035-closure-solution-application-target-applied-twice-2.swift
0035-closure-solution-application-target-applied-twice-2.swift
Swift
464
0.8
0
0.066667
awesome-app
140
2023-12-08T18:03:45.428277
GPL-3.0
true
776e9f14021fa67b679728e4c0237efc
// RUN: %target-swift-ide-test --code-completion --code-completion-token COMPLETE --source-filename %s | %FileCheck %s\n\nfunc foo(completionHandler completion: (@Sendable (Bool) -> Void)? = nil) {}\n\nfunc test() {\n foo(completionHandler: #^COMPLETE^#nil)\n}\n\n// CHECK-DAG: Literal[Nil]/None/TypeRelation[Convertibl...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0036-callee-locator-with-null-anchor.swift
0036-callee-locator-with-null-anchor.swift
Swift
352
0.8
0
0.333333
node-utils
259
2024-03-16T19:29:45.622289
Apache-2.0
true
aa5c282efea868716368a78abb1377ef
// RUN: %target-swift-ide-test -conforming-methods -source-filename %s -code-completion-token COMPLETE\n\n// This test used to crash while PostfixExpr completion was migrated to solver-based.\n\nstruct MyPublisher {\n func removeDuplicates() {}\n}\n\nfunc handleEvents(receiveOutput: ((String) -> Void)? = nil) -> MyPub...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0036-conformingmethodlist-already-typechecked.swift
0036-conformingmethodlist-already-typechecked.swift
Swift
530
0.95
0.117647
0.166667
awesome-app
364
2024-03-11T16:40:29.215495
BSD-3-Clause
true
0efa4e6e2c32dfec86271415f8b80b98
// RUN: %batch-code-completion\n\npublic struct AnyError {\n\n public init(_ error: Swift.\n\nextension AnyError {\n public static func error(from error: Error) -> AnyError {\n return AnyError(error)#^COMPLETE^#\n }\n}\n\n// COMPLETE: Begin completions, 1 items\n// COMPLETE: Keyword[self]/CurrNominal: .s...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0037-constructor-with-error-type.swift
0037-constructor-with-error-type.swift
Swift
354
0.8
0
0.363636
awesome-app
47
2024-06-01T10:54:59.271105
Apache-2.0
true
285f533e00a09be2d1d8ab575b4e21a2
// RUN: %batch-code-completion\n\nfunc overloaded(content: () -> Int) {}\nfunc overloaded(@MyResultBuilder stuff: () -> Int) {}\n\n@resultBuilder struct MyResultBuilder {\n static func buildExpression(_ content: Int) -> Int { content }\n static func buildBlock() -> Int { 4 }\n}\n\nstruct HStack {\n init(spacing: Dou...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0038-setTypeForArgumentIgnoredForCompletion.swift
0038-setTypeForArgumentIgnoredForCompletion.swift
Swift
568
0.8
0
0.111111
node-utils
378
2024-05-20T21:00:49.477174
Apache-2.0
true
f1fae596ff265ab9ffa6670be3e709af
// RUN: %batch-code-completion\n\nprotocol Publisher<Output, Failure> {\n associatedtype Output\n associatedtype Failure\n}\n\nfunc foo<P: Publisher>(_ publisher: P) where P.Failure == Never\n\nfunc test() {\n foo(#^COMPLETE^#)\n // Make sure we don’t crash\n // COMPLETE: Begin completions\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\0039-not-all-primary-assoc-types-specified.swift
0039-not-all-primary-assoc-types-specified.swift
Swift
288
0.8
0
0.272727
vue-tools
731
2023-09-07T10:22:39.109030
GPL-3.0
true
01144f1f6674f36018c0cb85fc10349e
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\n// https://github.com/apple/swift/issues/50992\n\npublic func headers() -> [AnyHashable: String]? { fatalError() }\npublic var httpAdditionalHeaders: [AnyHashable : Any]?\n\nif let userAgentHeaders = headers() {\n ht...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-50992.swift
issue-50992.swift
Swift
366
0.8
0.1
0.285714
python-kit
879
2023-12-28T09:01:23.690992
MIT
true
366701d7efdd59eef691415ff5f5b977
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\n// https://github.com/apple/swift/issues/51072\n\nextension UnknownTy {\n var #^COMPLETE^#\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-51072.swift
issue-51072.swift
Swift
192
0.8
0
0.4
react-lib
534
2024-03-02T05:05:13.547390
MIT
true
0ae6d105c442cfac4ac4a19a8a897928
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\n// https://github.com/apple/swift/issues/51086\n\nstruct S<T> {}\nfunc use<T>(x: (S<T>) -> Void) {}\n\nfunc test() {\n use { $0 #^COMPLETE^# }\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-51086.swift
issue-51086.swift
Swift
241
0.8
0
0.285714
awesome-app
280
2023-10-27T02:14:58.855134
MIT
true
45fb0cf4b5ae48342decae16ed2b1a1e
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE_1 -source-filename=%s\n// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE_2 -source-filename=%s\n\n// https://github.com/apple/swift/issues/51504\n\nstruct MyStruct<T> {\n}\n\nprotocol MyProto {\n associatedtyp...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-51504.swift
issue-51504.swift
Swift
459
0.8
0.045455
0.411765
react-lib
781
2024-03-31T04:23:05.331098
MIT
true
c739d1171db520f8e45374d10bc3137f
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s | %FileCheck %s\n\n// https://github.com/apple/swift/issues/56849\n\nprotocol MyView {\n associatedtype Body : MyView\n @MyViewBuilder var body: Self.Body { get }\n}\n\n@resultBuilder public struct MyViewBuilder {\...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-56849.swift
issue-56849.swift
Swift
1,185
0.8
0
0.166667
react-lib
261
2024-06-20T16:35:02.717953
BSD-3-Clause
true
f70ae262618af9c27048d472d49af391
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token=COMPLETE\n\n// https://github.com/apple/swift/issues/57037\n\nclass Foo {\n let searchSubject = Bar<String, #^COMPLETE^#\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-57037.swift
issue-57037.swift
Swift
203
0.95
0.142857
0.4
react-lib
61
2023-09-05T07:02:26.462689
BSD-3-Clause
true
863bdf8ea26ab811a42d11fcafb1f127
// RUN: %swift-ide-test -code-completion -source-filename %s -code-completion-token=COMPLETE\n\n// https://github.com/apple/swift/issues/57043\n\n@resultBuilder public struct ViewBuilder2 {\n public static func buildBlock<Content>(_ content: Content) -> Never\n}\n\npublic struct NavigationLink2<Label, Destination> {...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-57043.swift
issue-57043.swift
Swift
794
0.8
0
0.095238
awesome-app
401
2023-12-05T20:14:05.657881
Apache-2.0
true
8c85bc4b54a98c634aeeccd8d16abe56
// RUN: %swift-ide-test --code-completion --source-filename %s --code-completion-token=COMPLETE\n\n// https://github.com/apple/swift/issues/57054\n\n@resultBuilder struct ViewBuilder2 {\n static func buildBlock() -> Never { fatalError() }\n static func buildBlock<Content>(_ content: Content) -> Content where Content ...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-57054.swift
issue-57054.swift
Swift
872
0.8
0
0.086957
node-utils
306
2025-03-13T11:01:40.942105
GPL-3.0
true
941ca7794b4f6252e44c5d37d06791c4
// RUN: %swift-ide-test --code-completion --source-filename %s --code-completion-token=CC\n\n// https://github.com/apple/swift/issues/57059\n\nstruct Listing {}\n\nprotocol View2 {}\n\nextension View2 {\n @available(macOS 10.15, *)\n func onTapGesturf(perform action: () -> Void) -> some View2 { fatalError() }\n}\n\n@...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-57059.swift
issue-57059.swift
Swift
1,090
0.8
0
0.054054
awesome-app
32
2023-09-30T07:30:39.451581
Apache-2.0
true
413850bd6974d3bae89a8d19a36d8ab0
// RUN: %swift-ide-test --code-completion --source-filename %s --code-completion-token=COMPLETE\n\n// https://github.com/apple/swift/issues/57089\n\nstruct ItemDetailView {\n private var itemViewModel: Int\n @ViewBuilder2 var body: some View2 {\n Text2()\n .environmens(\.horizontalSizeClass2, .#^COMPLETE^#reg...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-57089.swift
issue-57089.swift
Swift
997
0.8
0
0.0625
react-lib
843
2024-12-10T19:32:13.821016
MIT
true
dc993bc6782ba11a5336bedf4555a919
// RUN: %swift-ide-test --code-completion --source-filename %s --code-completion-token=COMPLETE\n\n// https://github.com/apple/swift/issues/57105\n\nFoo.#^COMPLETE^#bar ?? baz(_) = baba
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-57105.swift
issue-57105.swift
Swift
181
0.8
0
0.666667
node-utils
977
2024-03-26T13:18:40.244255
BSD-3-Clause
true
7c41a41dc6df772607281943b1da7720
// RUN: %swift-ide-test --code-completion --code-completion-token COMPLETE --source-filename %s\n\n// Should not crash\n// https://github.com/apple/swift/issues/57807\n\nprotocol View2 {}\n\nstruct Foo {\n init(closure: () -> Void) {}\n func pnReceive(perform action: (MyResult) -> Void) -> some View2 {\n f...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\issue-57807.swift
issue-57807.swift
Swift
767
0.8
0.029412
0.111111
awesome-app
730
2024-01-06T11:30:15.604690
BSD-3-Clause
true
f5b8a15442e528ee80435b876af321c8
// RUN: %swift-ide-test -code-completion -code-completion-token COMPLETE -code-completion-annotate-results -source-filename %s\n\nfunc f(_ s: some #^COMPLETE^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar102958462.swift
rdar102958462.swift
Swift
158
0.8
0
0.5
react-lib
912
2025-01-25T17:16:42.386435
GPL-3.0
true
0c4dae2e29bc4eaadca8d6d4a9c58950
// RUN: %swift-ide-test -code-completion -code-completion-token COMPLETE -code-completion-annotate-results -source-filename %s\n\nprotocol P { }\nfunc f(_ p: some P) {\n #^COMPLETE^#\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar103300572.swift
rdar103300572.swift
Swift
182
0.8
0
0.4
node-utils
379
2024-08-07T17:33:14.091916
Apache-2.0
true
dfecb55b17f6b172bf71284b4e36aaa8
// RUN: %batch-code-completion\n\npublic protocol BaseProtocol {}\n\nextension BaseProtocol {\n var indexInParent: Int {\n 1\n }\n}\n\npublic protocol InheritedProtocol: BaseProtocol {}\n\nextension InheritedProtocol {\n #^COMPLETE^#\n // COMPLETE: Decl[InstanceVar]/Super: var indexInParent: Int; name...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar119408961.swift
rdar119408961.swift
Swift
323
0.8
0
0.25
react-lib
212
2024-08-20T23:33:11.626343
MIT
true
18c3b2c3ea419ec71bd7e7e1974236ab
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\nactor Foo {\n func bar() {}\n}\n\nfunc takeClosure(_ x: () -> Void) {}\n\nactor Foo {\n func tests(myInt: Int) {\n takeClosure {\n myInt.#^COMPLETE^#\n }\n }\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar126923558.swift
rdar126923558.swift
Swift
264
0.8
0
0.083333
python-kit
884
2025-03-18T14:20:36.881763
MIT
true
caf85379ad18d7d23a2f01454f91adb1
// RUN: %batch-code-completion\n\nfunc takeClosure(closure: () -> Bool) {}\n\nfunc test(someLocal: Int) {\n takeClosure {\n if case .begin(#^COMPLETE^#)\n }\n}\n// COMPLETE: someLocal\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar128661960.swift
rdar128661960.swift
Swift
180
0.8
0.1
0.25
python-kit
5
2023-12-29T19:02:31.835084
MIT
true
2d54e2c0cde7b8aa8c69c94f23dfe004
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n// REQUIRES: asserts\n\nfunc test(str: String?) {\n _ = str == nil #^A^#\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar41224316.swift
rdar41224316.swift
Swift
166
0.8
0
0.4
awesome-app
205
2025-02-08T12:52:07.999957
BSD-3-Clause
true
d908f89ac65d63116681e537130430a6
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename %s\n\nfunc test() {\n let cl = { arg in\n let name = arg as String\n #^A^#\n }\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar42098113.swift
rdar42098113.swift
Swift
173
0.8
0
0.285714
awesome-app
1,000
2025-02-08T03:40:00.796341
Apache-2.0
true
54cfe21402385a251f362636b33c76a6
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\nclass Foo {\n fileprivate var deltaY: Float = 0\n\n func foo() {\n var values: [Any]?\n values = [0, deltaY, -deltaY] #^A^#\n }\n}\n\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar42639255.swift
rdar42639255.swift
Swift
228
0.95
0.090909
0.125
react-lib
570
2023-12-24T12:57:32.144656
BSD-3-Clause
true
e48daff1fce513e34a8692f61c28893b
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\nenum MyEnum {\n case foo\n}\n\nfunc use(_ value: Any?, _ policy: MyEnum) {}\n\nstruct Tester<Outer> {\n func test<Inner>(_ value: Inner?) {\n use(value, .#^COMPLETE^#foo)\n }\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar42828673.swift
rdar42828673.swift
Swift
277
0.8
0
0.1
python-kit
116
2025-06-07T18:11:17.258227
BSD-3-Clause
true
9f87793ed8cf7a26f82da796854ee3b8
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\nprotocol ProviderP {\n associatedtype Data\n}\n\nprotocol BaseP {}\nprotocol DerivedP : BaseP {\n associatedtype Provider: ProviderP\n\n func testing(_: Provider.Data)\n}\n\nstruct Concrete : DerivedP {\n #^COMPL...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar43625800.swift
rdar43625800.swift
Swift
314
0.8
0
0.166667
node-utils
96
2025-06-22T05:19:41.582124
MIT
true
c3230df609acba970ee918a82344ae73
// RUN: %empty-directory(%t)\n// RUN: %{python} %utils/split_file.py -o %t %s\n// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%t/main.swift %t/a.swift %t/b.swift %t/c.swift %t/d.swift\n\n// BEGIN main.swift\nfunc foo(x: Int, y: Int) {\n x + y #^COMPLETE^#\n}\n\n// BEGI...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar48648877.swift
rdar48648877.swift
Swift
655
0.8
0
0.380952
python-kit
250
2024-10-13T23:22:11.292479
Apache-2.0
true
eddb33a74d13ac0fce34184311853b11
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\nclass Foo<T> {\n}\n\nextension Foo where T: Comparable {\n func foo() {}\n}\n\nprotocol P {\n typealias alias = Foo\n}\nprotocol P {}\n\nfunc Test() {\n P.alias.#^COMPLETE^#\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar48896424.swift
rdar48896424.swift
Swift
267
0.95
0.058824
0.076923
react-lib
686
2025-06-05T20:12:20.744728
Apache-2.0
true
58bddede74791c0d83a39faa9ac943cb
// RUN: %empty-directory(%t)\n// RUN: echo '//DUMMY' > %t/dummy.swift\n// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s %t/dummy.swift > /dev/null\n// RUN: %target-swift-ide-test -code-completion -code-completion-token=B -source-filename=%s %t/dummy.swift > /dev/null\n\nstruc...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar52105899.swift
rdar52105899.swift
Swift
371
0.8
0
0.5
vue-tools
361
2025-01-14T04:13:33.362332
BSD-3-Clause
true
1df6cd980c10af5d7d97ed0c393130e9
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n// RUN: %target-swift-ide-test -code-completion -code-completion-token=B -source-filename=%s\n\nprotocol Proto {}\n\nstruct S<T: Proto> {\n typealias Value = T\n\n func test(arg: Int) -> Value {\n return #^A^#\n }\n}\n\n...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar56834798.swift
rdar56834798.swift
Swift
456
0.95
0.043478
0.105263
awesome-app
844
2024-09-14T03:35:48.898885
MIT
true
5635396fa9c50302c5150088a4667e4d
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\nprotocol P {\n func foo<T: P>(arg: T)\n}\n\nfunc foo(x: P) {\n x.foo(arg: #^COMPLETE^#)\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar58470999.swift
rdar58470999.swift
Swift
188
0.8
0
0.142857
awesome-app
905
2024-05-07T00:01:12.357800
MIT
true
d303d23ba154c20dfe9d605c77441796
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE_GENERIC -source-filename=%s\n// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE_IN_GENERIC_CONTEXT -source-filename=%s\n\nstruct Foo {\n static let bar: Foo\n}\n\n@propertyWrapper public struct GenericWrapper<V...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar64141399-complete_generic_property_wrapper_initialization.swift
rdar64141399-complete_generic_property_wrapper_initialization.swift
Swift
983
0.8
0
0.068966
react-lib
244
2024-05-12T21:49:50.119778
BSD-3-Clause
true
76cd2c5a2bb26548214c30ce29c3438c
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\nstruct AnyPublisher<T> {\n public func sink(_: @escaping ((T) -> Void)) -> Void { fatalError() }\n}\nclass MyClass {\n func fetchFile<T>(with: T) -> AnyPublisher<T> { fatalError() }\n init() {\n fetchFile(with: ...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar64265821.swift
rdar64265821.swift
Swift
365
0.95
0.083333
0.090909
node-utils
648
2025-06-08T12:50:15.218492
MIT
true
4901105a9cb53b64711f2f5bcb733eeb
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n// RUN: %target-swift-ide-test -code-completion -code-completion-token=B -source-filename=%s\n// RUN: %target-swift-ide-test -code-completion -code-completion-token=C -source-filename=%s\n\nfunc myFunc(_: Int, _: Undefined) {}...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar65556791.swift
rdar65556791.swift
Swift
458
0.8
0
0.230769
node-utils
957
2024-09-18T08:09:39.262620
Apache-2.0
true
50185411176d2155ea932b10f8347c31
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s > /dev/null\n\nfor x in "foo" {\n if x.#^A^# {\n }\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar67102611.swift
rdar67102611.swift
Swift
148
0.8
0.333333
0.2
node-utils
446
2025-05-17T20:44:10.634164
BSD-3-Clause
true
18f4bbfbd832dae46ab92e05345a0c38
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE_2 -source-filename=%s\n\nclass MyCls {\n public init(body: (Int) throws -> Void) {}\n}\n\nfunc foo() {\n MyCls { arg in\n MyCls { #^CO...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar69246891.swift
rdar69246891.swift
Swift
432
0.95
0.095238
0.117647
react-lib
147
2025-02-09T00:33:37.070962
BSD-3-Clause
true
50876a35b0df203d070a948a73ebd98c
// RUN: %swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename %s\n\nif let item = ["a"].first(where: { #^COMPLETE^# }) {}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar71566576.swift
rdar71566576.swift
Swift
148
0.8
0.333333
0.5
react-lib
500
2024-09-27T13:04:07.258288
Apache-2.0
true
4b71692ff6b60acf2d84dd0a2163a5cc
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=COMPLETE\n\n.undefined() #^COMPLETE^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar75200446.swift
rdar75200446.swift
Swift
127
0.8
0
0.5
python-kit
611
2024-12-03T11:45:07.276175
GPL-3.0
true
bf7ea013b60293a7db30060685f67374
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=COMPLETE\n\n0odd.foo.bar #^COMPLETE^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar75219757.swift
rdar75219757.swift
Swift
127
0.8
0
0.5
awesome-app
830
2024-12-02T23:40:10.857394
GPL-3.0
true
f77075b87e400ece8b35950da10178e7
// RUN: %target-swift-ide-test --conforming-methods --conforming-methods-expected-types=s:SQ -source-filename %s -code-completion-token=COMPLETE\n\nSwift#^COMPLETE^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar75299825.swift
rdar75299825.swift
Swift
164
0.8
0
0.5
react-lib
570
2025-03-22T16:59:10.614989
MIT
true
c91c6aee9c143bd793e73f745c47a907
// RUN: %swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename %s\n\nif undefined(&self.#^COMPLETE^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar75366814.swift
rdar75366814.swift
Swift
126
0.8
0.333333
0.5
vue-tools
361
2024-04-02T12:20:20.106994
MIT
true
3744931752eb3502b7fb2e7f00ba8ddb
// RUN: %target-swift-ide-test --conforming-methods -code-completion-token=COMPLETE_EXPR --conforming-methods-expected-types=s:14swift_ide_test10MySequenceP -source-filename %s\n// RUN: %target-swift-ide-test --conforming-methods -code-completion-token=COMPLETE_STMT --conforming-methods-expected-types=s:14swift_ide_tes...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar76686564.swift
rdar76686564.swift
Swift
1,064
0.8
0
0.181818
python-kit
470
2024-02-26T16:23:34.896997
GPL-3.0
true
118e1c6ce79355983d55b12b812ef445
// RUN: %target-swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename=%s\n\n@resultBuilder\nstruct TupleBuilder<T> {\n static func buildBlock() -> () { }\n}\n\nfunc testPatternMatching() {\n @TupleBuilder<String> var x3 {\n let x: Int? = nil\n #^COMPLETE^#\n }\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar78017503.swift
rdar78017503.swift
Swift
288
0.8
0
0.181818
vue-tools
512
2025-05-19T19:04:27.495486
Apache-2.0
true
1337cb99c03d415fac880e2a5ad8e3c6
// RUN: %swift-ide-test -code-completion -code-completion-token=COMPLETE -source-filename %s\n\nclass C {\n func foo() {\n #^COMPLETE^#\n default\n }\n func bar() {}\n}\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar78781163.swift
rdar78781163.swift
Swift
184
0.95
0.111111
0.25
react-lib
711
2025-04-04T21:42:49.327097
GPL-3.0
true
23abac9a79ed94de6910a2bd1af38f3f
// RUN: %swift-ide-test --code-completion --code-completion-token COMPLETE --source-filename %s\n\nprotocol View2 {}\n\nstruct Foo {\n init() {}\n func pnReceive(perform action: (MyResult) -> Void) -> some View2 {\n fatalError()\n }\n}\n\nstruct SomeStruct {\n var string: String\n}\n\n@resultBuilder ...
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar85609548.swift
rdar85609548.swift
Swift
679
0.8
0.032258
0.04
node-utils
904
2023-10-29T21:40:28.255742
BSD-3-Clause
true
1e84d7080d919eee713b59d907eb2539
// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/ImportPath)\n// RUN: %{python} %utils/split_file.py -o %t %s\n\n// RUN: %target-swift-frontend -disable-availability-checking -emit-module %t/Lib.swift -o %t/ImportPath/Lib.swiftmodule -emit-module-interface-path %t/ImportPath/Lib.swiftinterface\n\n// BEGIN Lib....
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_2_fixed\rdar91765262.swift
rdar91765262.swift
Swift
700
0.95
0.043478
0.6
python-kit
669
2025-05-13T02:20:16.560699
GPL-3.0
true
abb951f5628ce052680e2c70fbc15917
// RUN: not %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n\n// ASAN Output: heap-buffer-overflow on address 0x610000007ffd at pc 0x0000009c9913 bp 0x7fff8de8ba90 sp 0x7fff8de8ba88\n\n#^\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\001-swift-ide-removecodecompletiontokens.swift
001-swift-ide-removecodecompletiontokens.swift
Swift
222
0.8
0
1
vue-tools
237
2024-08-14T18:41:27.752194
GPL-3.0
true
ef73675818c72fe907a4b4f89d50b293
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\nlet a{protocol A{struct B{class a{#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\002-swift-diagnosticengine-emitdiagnostic.swift
002-swift-diagnosticengine-emitdiagnostic.swift
Swift
133
0.95
0.5
0.5
node-utils
843
2024-11-13T00:50:20.821841
GPL-3.0
true
239d078a422b322acee1c75e7c131159
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\nextension{struct E{enum C{let a{#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\003-swift-typebase-getcanonicaltype.swift
003-swift-typebase-getcanonicaltype.swift
Swift
131
0.8
0
0.5
python-kit
181
2025-05-14T16:55:05.355050
GPL-3.0
true
4a9f935ab2847fad62bb463fd6b39dbd
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n{class d<T where g:e{class B{var b=B p#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\004-swift-typebase-getmembersubstitutions.swift
004-swift-typebase-getmembersubstitutions.swift
Swift
137
0.95
1
0.5
vue-tools
864
2024-12-23T12:07:00.896433
MIT
true
2801d5036615292175c0c82a9f6f9f3e
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\nt=0.#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\005-swift-typechecker-gettypeofexpressionwithoutapplying.swift
005-swift-typechecker-gettypeofexpressionwithoutapplying.swift
Swift
103
0.8
0
0.5
awesome-app
903
2024-08-21T10:30:57.302048
GPL-3.0
true
902977276e476a82eca21d9f89a39829
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\nextension{protocol a{func p)struct A{protocol c\nlet a{#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\006-swift-declcontext-getprotocolself.swift
006-swift-declcontext-getprotocolself.swift
Swift
153
0.8
0
0.333333
react-lib
512
2024-09-21T15:51:04.516860
BSD-3-Clause
true
f8823ef63752df36bd40ec845a386890
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\nextension{enum c{func a:#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\007-swift-configureimplicitself.swift
007-swift-configureimplicitself.swift
Swift
123
0.8
0
0.5
node-utils
147
2024-09-25T08:57:27.288781
BSD-3-Clause
true
642cda5af2788be698bb037231db5dbf
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\nfunc a(={#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\008-swift-typechecker-typecheckfunctionbodyuntil.swift
008-swift-typechecker-typecheckfunctionbodyuntil.swift
Swift
108
0.8
0
0.5
python-kit
424
2024-03-10T06:16:09.961614
GPL-3.0
true
2089e9952af441dc5139fd414809e1e1
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s | %FileCheck %s\nenum b:a{var f={static#^A^#\n// FIXME: we shouldn't back the parser to the beginning of the line, it leads\n// to ridiculous override completions like this.\n// CHECK-NOT: Decl{{.*}}/Super\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\009-swift-performdelayedparsing.swift
009-swift-performdelayedparsing.swift
Swift
295
0.8
0
0.8
vue-tools
838
2023-07-12T22:53:45.939167
BSD-3-Clause
true
88c650c0d409c250b72ede1473434391
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n#^A^#{"\nprotocol c{\nfunc a\nassociatedtype b:c\nassociatedtype e:c\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\010-swift-archetypebuilder-addrequirement.swift
010-swift-archetypebuilder-addrequirement.swift
Swift
158
0.8
0
0.333333
node-utils
644
2025-04-11T02:31:25.861281
GPL-3.0
true
13431315ea919588869c696cd5985963
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\nenum S<T where g:A{struct T enum S:#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\011-swift-lookupvisibledecls.swift
011-swift-lookupvisibledecls.swift
Swift
134
0.8
0
0.5
react-lib
768
2024-11-14T16:02:38.455999
MIT
true
e6384106e06340c5855280f9721d83c9
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\nclass a{var _={func b#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\012-swift-mangle-mangler-manglecontext.swift
012-swift-mangle-mangler-manglecontext.swift
Swift
120
0.95
0.5
0.5
vue-tools
658
2025-02-20T06:58:14.888726
GPL-3.0
true
5db72775a0d1f1a752b6861ad42d7227
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\n[[map)#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\013-swift-constraints-constraintgraph-addconstraint.swift
013-swift-constraints-constraintgraph-addconstraint.swift
Swift
105
0.8
0
0.5
react-lib
375
2025-01-03T20:52:38.675140
Apache-2.0
true
a835717daf04be5406db81d962e01cb1
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\nprotocol A{let h=o#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\014-swift-parser-parsedeclvar.swift
014-swift-parser-parsedeclvar.swift
Swift
117
0.8
0
0.5
awesome-app
340
2024-07-16T02:13:20.647961
BSD-3-Clause
true
b0751cd43fda6d1a672a55122ab52070
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s\nT{struct B{let h=protocol P{struct B<T where h:e{var f=B#^A^#\n
dataset_sample\swift\apple_swift\validation-test\IDE\crashers_fixed\015-swift-typechecker-lookupunqualified.swift
015-swift-typechecker-lookupunqualified.swift
Swift
155
0.8
0
0.5
python-kit
822
2025-04-14T02:08:49.577855
MIT
true
299abb2aba9f746cb3ee688973978bc8