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
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/StrictModule.swiftmodule -module-name StrictModule -swift-version 6 %S/Inputs/StrictModule.swift\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/NonStrictModule.swiftmodule -module-name NonStrictModule %S/...
dataset_sample\swift\apple_swift\test\Concurrency\sendable_preconcurrency.swift
sendable_preconcurrency.swift
Swift
2,688
0.95
0.078125
0.122449
node-utils
245
2024-06-15T06:42:23.779386
GPL-3.0
true
80a354312e813f2a0c13dd6cd565c578
// RUN: %target-swift-emit-silgen %s -verify -swift-version 5 | %FileCheck %s\n\n// REQUIRES: concurrency\n\n// Test erasure in generic arguments\ndo {\n struct S<T> {\n }\n\n @preconcurrency func test(_: S<any Sendable>) {}\n // CHECK-LABEL: sil private [ossa] @$s31sendable_preconcurrency_erasure4testL_yyAA1SL_Vyy...
dataset_sample\swift\apple_swift\test\Concurrency\sendable_preconcurrency_erasure.swift
sendable_preconcurrency_erasure.swift
Swift
1,856
0.8
0
0.433333
node-utils
62
2024-01-27T05:44:43.978753
BSD-3-Clause
true
61e705c5e468f6b93bc3387d44eaaa64
// RUN: %target-typecheck-verify-swift\n// RUN: %target-typecheck-verify-swift -swift-version 5 -strict-concurrency=complete -verify-additional-prefix swift6-\n// RUN: %target-typecheck-verify-swift -swift-version 6 -verify-additional-prefix swift6-\n\nclass User {\n @preconcurrency var dict: [String : any Sendable] =...
dataset_sample\swift\apple_swift\test\Concurrency\sendable_to_any_for_generic_arguments.swift
sendable_to_any_for_generic_arguments.swift
Swift
8,001
0.95
0.004926
0.173913
awesome-app
504
2024-05-12T20:53:04.713892
BSD-3-Clause
true
749b8a57dd37b73512fde3a313a35235
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/StrictModule.swiftmodule -module-name StrictModule -swift-version 6 %S/Inputs/StrictModule.swift\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/NonStrictModule.swiftmodule -module-name NonStrictModule %S/In...
dataset_sample\swift\apple_swift\test\Concurrency\sendable_without_preconcurrency.swift
sendable_without_preconcurrency.swift
Swift
2,264
0.95
0.052632
0.155556
vue-tools
246
2024-03-18T07:03:27.693600
GPL-3.0
true
0e1642f28cb0f1f871615948cd5979d2
// RUN: %empty-directory(%t)\n\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/StrictModule.swiftmodule -module-name StrictModule -swift-version 6 %S/Inputs/StrictModule.swift\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/NonStrictModule.swiftmodule -module-name NonStrictModule %S/...
dataset_sample\swift\apple_swift\test\Concurrency\sendable_without_preconcurrency_2.swift
sendable_without_preconcurrency_2.swift
Swift
4,378
0.95
0.075
0.129032
awesome-app
812
2025-04-08T00:21:07.209166
BSD-3-Clause
true
1d6ac5de782b65f79e5d8cd499fff7a7
// RUN: %target-swift-frontend -o /dev/null -emit-sil %s -verify\n// RUN: %target-swift-frontend -o /dev/null -emit-sil %s -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -o /dev/null -emit-sil %s -verify -strict-concurrency=complete\n// RUN: %target-swift-frontend -o /dev/null -emit-sil %s -verify...
dataset_sample\swift\apple_swift\test\Concurrency\sendable_witness_check_delayed.swift
sendable_witness_check_delayed.swift
Swift
874
0.95
0.047619
0.4375
node-utils
775
2024-06-01T21:47:19.697185
BSD-3-Clause
true
42bf830c0b2da4ba42ce0cb81cc938ae
// RUN: not %target-swift-frontend %s -c -swift-version 6 -module-name _Concurrency\n\n// READ THIS: This test is only supposed to be making sure that we do not crash\n// when we fail to match a witness that doesn't match AsyncIteratorProtocol.next\n// b/c of sending. It should fail... but not crash.\n\n@available(Swi...
dataset_sample\swift\apple_swift\test\Concurrency\sending_asynciteratornext_typechecker_error.swift
sending_asynciteratornext_typechecker_error.swift
Swift
2,437
0.95
0.09589
0.33871
awesome-app
557
2025-04-07T09:46:22.809036
GPL-3.0
true
cb63d5f0af8b919d0c2908cae2a2f141
// RUN: %target-swift-frontend -swift-version 6 %s -emit-silgen | %FileCheck %s\n\n// READ THIS! This file only contains tests that validate that the relevant\n// function subtyping rules for sending work. Please do not put other tests in\n// the file!\n\n// REQUIRES: concurrency\n// REQUIRES: asserts\n\n//////////////...
dataset_sample\swift\apple_swift\test\Concurrency\sending_closure_inference.swift
sending_closure_inference.swift
Swift
1,638
0.95
0.0625
0.421053
awesome-app
543
2024-11-22T01:34:14.323685
GPL-3.0
true
8ce2352ec5b39a09e6aeaa97c83576d8
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -enable-upcoming-feature SendingArgsAndResults -swift-version 5 -enable-library-evolution -module-name test -emit-module -o %t/test.swiftmodule -emit-module-interface-path - -target %target-swift-5.1-abi-triple -Xllvm -swift-ast-printer-number-suppression-che...
dataset_sample\swift\apple_swift\test\Concurrency\sending_conditional_suppression.swift
sending_conditional_suppression.swift
Swift
13,535
0.95
0.156379
0.784038
python-kit
924
2025-01-15T08:35:18.480906
BSD-3-Clause
true
ec1a5dd7895294305bc404f3f13886e1
// RUN: %target-swift-frontend -emit-sil -swift-version 6 -target %target-swift-5.1-abi-triple -verify %s -o /dev/null -parse-as-library\n\n// REQUIRES: concurrency\n\n////////////////////////\n// MARK: Declarations //\n////////////////////////\n\nclass NonSendableKlass {}\n\nfunc useValue<T>(_ t: T) {}\nfunc useValueA...
dataset_sample\swift\apple_swift\test\Concurrency\sending_continuation.swift
sending_continuation.swift
Swift
9,005
0.95
0.016064
0.24186
vue-tools
754
2023-08-04T16:13:21.258654
GPL-3.0
true
4944a602f7395d026833027e80452ada
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend %s -typecheck -enable-library-evolution -parse-as-library -emit-module-interface-path - -module-name MyFile -swift-version 6 | %FileCheck %s\n// RUN: %target-swift-frontend %s -typecheck -enable-library-evolution -parse-as-library -emit-module-interface-path ...
dataset_sample\swift\apple_swift\test\Concurrency\sending_interfacefile_printing.swift
sending_interfacefile_printing.swift
Swift
2,501
0.95
0.156863
0.904762
python-kit
568
2025-03-22T08:14:24.540362
BSD-3-Clause
true
18db5a2e84ce607ea63ed2de497885e3
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend %s -emit-silgen -swift-version 6 | swift-demangle | %FileCheck %s\n// RUN: %target-swift-frontend %s -emit-silgen -swift-version 6 | %FileCheck -check-prefix=SIL %s\n\n// REQUIRES: concurrency\n// REQUIRES: asserts\n\nclass NonSendableKlass {}\n\nstruct S<T> ...
dataset_sample\swift\apple_swift\test\Concurrency\sending_mangling.swift
sending_mangling.swift
Swift
12,384
0.95
0.022727
0.454545
node-utils
433
2024-07-12T23:53:55.930389
GPL-3.0
true
1c2e6419aa24c09250787dedfa0ca4d3
// RUN: %target-swift-frontend -swift-version 6 %s -emit-silgen | %FileCheck %s\n\n// REQUIRES: concurrency\n\nclass NonSendableKlass {}\n\n// CHECK-DAG: subscript(_: sending NonSendableKlass) -> sending NonSendableKlass { get }\n\n// CHECK-DAG: sil hidden [ossa] @$s17sending_subscript1SVyAA16NonSendableKlassCAEncig : ...
dataset_sample\swift\apple_swift\test\Concurrency\sending_subscript.swift
sending_subscript.swift
Swift
1,029
0.95
0.045455
0.4
python-kit
730
2024-04-01T11:38:33.167852
MIT
true
ddc5a1de1811c9ed085e1f934bb1b021
// RUN: %target-swift-frontend -emit-sil -swift-version 6 %s -o /dev/null -verify\n\nclass NonSendableKlass {}\n\nprotocol P {\n subscript(_: sending NonSendableKlass) -> sending NonSendableKlass { get }\n}\n\nstruct S: P {\n subscript(_: sending NonSendableKlass) -> sending NonSendableKlass { NonSendableKlass() }\n}...
dataset_sample\swift\apple_swift\test\Concurrency\sending_witness_subscript.swift
sending_witness_subscript.swift
Swift
311
0.95
0.090909
0.125
node-utils
577
2024-04-23T09:19:53.871204
GPL-3.0
true
2362dbdf01c0add9ac9e8cd61a046bd0
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -target %target-swift-5.1-abi-triple -O %s -o %t/main\n// RUN: %target-codesign %t/main\n// RUN: %target-run %t/main | %FileCheck %s\n\n// REQUIRES: executable_test\n// REQUIRES: concurrency\n\n// rdar://124277662\n// XFAIL: freestanding\n\n// CHECK: Setting fie...
dataset_sample\swift\apple_swift\test\Concurrency\ShrinkWrap.swift
ShrinkWrap.swift
Swift
1,399
0.8
0.096154
0.27907
vue-tools
424
2025-01-16T09:23:01.491234
GPL-3.0
true
cd3ff3c9c0044b4f5259bce727305ea1
// RUN: %target-build-swift -swift-version 6 %s -strict-concurrency=complete -Xfrontend -verify\n\n// REQUIRES: concurrency\n\n@available(SwiftStdlib 6.2, *)\nfunc sync() -> Task<String, Never> {\n Task.startSynchronously {\n return ""\n }\n}\n\n@available(SwiftStdlib 6.2, *)\nfunc async() async throws {\n let t1...
dataset_sample\swift\apple_swift\test\Concurrency\startSynchronouslyIsolation.swift
startSynchronouslyIsolation.swift
Swift
1,208
0.8
0.05
0.057143
node-utils
139
2025-07-05T12:40:36.011156
BSD-3-Clause
true
7d6f2bd9875878c1d289b54623675370
// RUN: %target-swift-frontend -strict-concurrency=minimal -o /dev/null -emit-sil %s -verify\n// RUN: %target-swift-frontend -strict-concurrency=targeted -verify-additional-prefix targeted- -o /dev/null -emit-sil %s -verify\n// RUN: %target-swift-frontend -strict-concurrency=complete -verify-additional-prefix targeted-...
dataset_sample\swift\apple_swift\test\Concurrency\strict_concurrency_minimal.swift
strict_concurrency_minimal.swift
Swift
3,071
0.95
0.126984
0.375
vue-tools
347
2025-04-27T20:39:18.673028
GPL-3.0
true
6b9311041d98d8413ad470dc1b51722e
// RUN: %target-swift-frontend -enable-experimental-feature SwiftSettings -c -verify -swift-version 6 -verify-additional-prefix nonisolated- -disable-availability-checking %s\n// RUN: %target-swift-frontend -enable-experimental-feature SwiftSettings -c -verify -swift-version 6 -verify-additional-prefix main-actor- -dis...
dataset_sample\swift\apple_swift\test\Concurrency\swiftsettings_defaultIsolation.swift
swiftsettings_defaultIsolation.swift
Swift
2,506
0.95
0.12963
0.410256
python-kit
941
2024-03-27T07:54:18.597613
MIT
true
e0e09c6889196854eb82d00be40048a0
// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify\n// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -strict-concurrency=targeted\n// RUN: %target-swift-frontend -disable-availability-checking %s -emit-sil -o /dev/null -verify -...
dataset_sample\swift\apple_swift\test\Concurrency\taskgroup_cancelAll_from_child.swift
taskgroup_cancelAll_from_child.swift
Swift
1,701
0.8
0
0.275862
node-utils
879
2025-01-28T03:50:42.856196
MIT
true
3ea51897988833edc6a2cf608bc64113
// RUN: %target-swift-frontend -plugin-path %swift-plugin-dir -strict-concurrency=targeted -target %target-swift-5.1-abi-triple -emit-sil -verify -o /dev/null %s\n// RUN: %target-swift-frontend -plugin-path %swift-plugin-dir -strict-concurrency=complete -verify-additional-prefix complete- -target %target-swift-5.1-abi-...
dataset_sample\swift\apple_swift\test\Concurrency\task_local.swift
task_local.swift
Swift
1,961
0.95
0.06383
0.2
vue-tools
558
2024-06-15T09:23:59.649199
MIT
true
725177211446a8fb32f8d8778eea0eff
// RUN: %target-run-simple-swift( -target %target-swift-5.1-abi-triple -parse-as-library)\n\n// REQUIRES: executable_test\n// REQUIRES: concurrency\n// UNSUPPORTED: freestanding\n\n// REQUIRES: concurrency_runtime\n// UNSUPPORTED: back_deployment_runtime\n\nimport _Concurrency\nimport StdlibUnittest\n\nclass P<T> {\n ...
dataset_sample\swift\apple_swift\test\Concurrency\throwing.swift
throwing.swift
Swift
2,107
0.95
0.144444
0.102564
awesome-app
491
2024-11-02T10:36:28.296510
MIT
true
edb5c6088d6efdec166a6e698cec9bc9
// RUN: %target-swift-frontend -emit-sil -strict-concurrency=complete -target %target-swift-5.1-abi-triple -verify %s -o /dev/null -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n\n// REQUIRES: concurrency\n// REQUIRES: swift_feature_GlobalActorIsolatedTypesUsability\n\n////////////////////////\n// MARK: De...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_asynclet.swift
transfernonsendable_asynclet.swift
Swift
34,692
0.95
0.06932
0.23539
vue-tools
866
2023-12-27T18:00:05.222980
MIT
true
6077887bf95455bd1fe098910fee8868
// RUN: %target-swift-frontend -emit-sil -parse-as-library -target %target-swift-5.1-abi-triple -swift-version 5 -strict-concurrency=complete %s -o - | %FileCheck %s\n// RUN: %target-swift-frontend -emit-sil -parse-as-library -target %target-swift-5.1-abi-triple -swift-version 6 -verify %s -o /dev/null\n\n// REQUIRES: ...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_closureliterals_isolationinference.swift
transfernonsendable_closureliterals_isolationinference.swift
Swift
48,293
0.95
0.072727
0.529215
python-kit
866
2024-10-07T02:46:39.868625
Apache-2.0
true
756584f0e4f05ae922333db3964d6ab7
// RUN: %target-typecheck-verify-swift -strict-concurrency=complete -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n\n// REQUIRES: concurrency\n// REQUIRES: swift_feature_GlobalActorIsolatedTypesUsability\n\n/*\n This file tests the experimental TransferNonSendable feature. This feature causes the passing\n...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_defer_and_typecheck_only.swift
transfernonsendable_defer_and_typecheck_only.swift
Swift
2,202
0.95
0.016129
0.227273
node-utils
813
2024-10-16T04:53:46.061090
Apache-2.0
true
8fcf30fb8a84dc4ab8a59216afec8456
// RUN: %target-typecheck-verify-swift -swift-version 6\n\n// READ THIS! This file only contains tests that validate that the relevant\n// function subtyping rules for sending work. Please do not put other tests in\n// the file!\n\n// REQUIRES: concurrency\n// REQUIRES: asserts\n\n////////////////////////\n// MARK: Dec...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_functionsubtyping.swift
transfernonsendable_functionsubtyping.swift
Swift
6,880
0.95
0.105263
0.369565
python-kit
60
2024-05-28T15:39:05.545231
BSD-3-Clause
true
8b6d7081041905cc016c6bf7580dcec4
// RUN: %target-typecheck-verify-swift -swift-version 5\n\n// READ THIS! This file only contains tests that validate how the relevant\n// function subtyping rules for sending work in swift 5 mode\n// specifically. Please do not put other tests in the file!\n//\n// We expect today that protocol mismatch errors are elide...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_functionsubtyping_swift5.swift
transfernonsendable_functionsubtyping_swift5.swift
Swift
5,637
0.95
0.084112
0.325581
python-kit
683
2024-01-11T10:59:26.013723
MIT
true
bcba632b5336a50e9beea04321d70fe5
// RUN: %target-swift-frontend -emit-sil -strict-concurrency=complete -target %target-swift-5.1-abi-triple -verify -verify-additional-prefix tns- %s -o /dev/null -parse-as-library -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n\n// REQUIRES: concurrency\n// REQUIRES: swift_feature_GlobalActorIsolatedTypes...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_global_actor.swift
transfernonsendable_global_actor.swift
Swift
15,230
0.95
0.099415
0.239382
vue-tools
27
2024-11-02T21:41:56.926466
MIT
true
75deaf65f057380179adf1b50605f054
// RUN: %target-swift-frontend -emit-sil -swift-version 6 -target %target-swift-5.1-abi-triple -verify %s -o /dev/null -parse-as-library\n\n// READ THIS: This test is testing specifically behavior around global actor\n// isolated types that are nonsendable. This is a bit of a corner case so we use\n// a separate test c...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_global_actor_nonsendable.swift
transfernonsendable_global_actor_nonsendable.swift
Swift
9,680
0.95
0.027972
0.12069
react-lib
56
2025-06-24T15:35:33.076284
MIT
true
43d38b884b0227ed0444bbd9ae18d1e9
// RUN: %target-swift-frontend -emit-sil -swift-version 6 -target %target-swift-5.1-abi-triple -verify %s -o /dev/null -parse-as-library\n\n// README: Once we loosen the parser so that sending is rejected in Sema\n// instead of the parser, move into the normal\n// transfernonsendable_global_actor.swift\n\n/////////////...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_global_actor_sending.swift
transfernonsendable_global_actor_sending.swift
Swift
1,444
0.95
0.02
0.351351
react-lib
762
2025-01-31T13:15:22.158800
BSD-3-Clause
true
d432c4d2ffcf194ea47a01611d8640c0
// RUN: %target-swift-frontend -emit-module -emit-module-path %t/GlobalActorIsolatedFunction.swiftmodule -module-name GlobalActorIsolatedFunction -strict-concurrency=complete %S/Inputs/GlobalActorIsolatedFunction.swift\n// RUN: %target-swift-frontend -emit-sil -swift-version 6 -disable-availability-checking -verify %s ...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_global_actor_serialization.swift
transfernonsendable_global_actor_serialization.swift
Swift
1,040
0.95
0.05
0.571429
awesome-app
16
2024-04-18T22:57:42.587833
MIT
true
e7f522cc132c186fe767827a57e3ad56
// RUN: %target-swift-frontend -emit-sil -swift-version 6 -target %target-swift-5.1-abi-triple -verify %s -o /dev/null -parse-as-library\n\n// README: This is testing specific patterns around global actors that are\n// slightly different in between swift 5 and swift 6. The normal global actor\n// test is in swift 5, so...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_global_actor_swift6.swift
transfernonsendable_global_actor_swift6.swift
Swift
3,368
0.95
0.103448
0.261538
node-utils
67
2024-03-04T06:21:53.314738
MIT
true
3b5d98c6d909ee738667ae34bdf63655
// RUN: %target-swift-frontend -emit-sil -strict-concurrency=complete -target %target-swift-5.1-abi-triple -swift-version 6 -verify %s -o /dev/null\n\n// REQUIRES: concurrency\n// REQUIRES: asserts\n\n// This test validates the behavior of transfernonsendable around initializers.\n\n////////////////////////\n// MARK: D...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_initializers.swift
transfernonsendable_initializers.swift
Swift
7,308
0.95
0.016949
0.272109
node-utils
283
2025-01-28T01:52:03.913160
GPL-3.0
true
1c14af2cc7c1d8aaaf5b09dd12f13674
// RUN: %target-swift-frontend -emit-sil -strict-concurrency=complete -disable-availability-checking -verify %s -o /dev/null -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n\n// REQUIRES: concurrency\n// REQUIRES: swift_feature_GlobalActorIsolatedTypesUsability\n\n// This test validates how we handle partia...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_isolationcrossing_partialapply.swift
transfernonsendable_isolationcrossing_partialapply.swift
Swift
5,397
0.95
0.023669
0.192593
python-kit
577
2024-11-01T05:22:22.292914
MIT
true
6c3d32843d5f9a38d01ffe45bce1d6a5
// RUN: %target-swift-frontend -emit-sil -strict-concurrency=complete -target %target-swift-5.1-abi-triple -verify %s -o /dev/null -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n\n// REQUIRES: concurrency\n// REQUIRES: swift_feature_GlobalActorIsolatedTypesUsability\n\n// This test validates behavior of tr...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_nonisolated.swift
transfernonsendable_nonisolated.swift
Swift
3,536
0.95
0.007576
0.1
awesome-app
890
2024-12-23T16:22:20.455198
MIT
true
07f3fb0ee8cb404388ac469381349c15
// RUN: %target-swift-frontend -emit-sil -strict-concurrency=complete -target %target-swift-5.1-abi-triple -verify -verify-additional-prefix tns- %s -o /dev/null -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n\n// READ THIS: This test is intended to centralize all tests that use\n// nonisolated(unsafe).\n...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_nonisolatedunsafe.swift
transfernonsendable_nonisolatedunsafe.swift
Swift
51,460
0.75
0.076549
0.429197
node-utils
777
2025-01-05T03:35:40.212870
Apache-2.0
true
31d1e54017c87a1675a655dc11492d23
// RUN: %target-swift-frontend -emit-sil -strict-concurrency=complete -enable-upcoming-feature RegionBasedIsolation -target %target-swift-5.1-abi-triple %s -o /dev/null -import-objc-header %S/Inputs/transfernonsendable_objc.h -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n\n// REQUIRES: objc_interop\n// RE...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_objc.swift
transfernonsendable_objc.swift
Swift
1,219
0.95
0.088235
0.185185
vue-tools
733
2024-07-28T05:56:51.532876
GPL-3.0
true
f816efe5a859645b88a6403250f94d2b
// RUN: %target-swift-frontend -emit-sil -strict-concurrency=complete -target %target-swift-5.1-abi-triple -verify -enable-upcoming-feature GlobalActorIsolatedTypesUsability %s -o /dev/null\n\n// This test validates the behavior of transfer non sendable around ownership\n// constructs like non copyable types, consuming...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_ownership.swift
transfernonsendable_ownership.swift
Swift
6,203
0.95
0.113821
0.35
node-utils
93
2023-09-25T23:36:45.120793
GPL-3.0
true
aad090c1d70af01ea76656f041b788c0
// RUN: %empty-directory(%t)\n\n// A swift 5 module /without/ concurrency checking\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/PreconcurrencyUnchecked.swiftmodule -module-name PreconcurrencyUnchecked %S/Inputs/transfernonsendable_preconcurrency_unchecked.swift -target %target-swift-5.1-abi-triple ...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_preconcurrency.swift
transfernonsendable_preconcurrency.swift
Swift
6,791
0.95
0.074074
0.453704
node-utils
848
2025-01-01T15:48:31.073664
Apache-2.0
true
1874cc4985c4438454b2fb0d989d725e
// RUN: %empty-directory(%t)\n\n// A swift 5 module /without/ concurrency checking\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/PreconcurrencyUnchecked.swiftmodule -module-name PreconcurrencyUnchecked %S/Inputs/transfernonsendable_preconcurrency_unchecked.swift -target %target-swift-5.1-abi-triple ...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_preconcurrency_sending.swift
transfernonsendable_preconcurrency_sending.swift
Swift
20,260
0.95
0.007407
0.253776
python-kit
105
2025-04-02T16:04:55.676699
BSD-3-Clause
true
f1824f0e52464c3a5637353afa1484c1
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -swift-version 6 -parse-as-library %s -emit-sil -o /dev/null -verify\n\n// REQUIRES: asserts\n// REQUIRES: concurrency\n\n///////////////////////\n// MARK: Declaration //\n///////////////////////\n\nactor Custom {\n}\n\n@globalActor\nstruct CustomActor...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_rbi_result.swift
transfernonsendable_rbi_result.swift
Swift
5,731
0.95
0.080292
0.320388
react-lib
424
2024-10-06T17:46:29.920337
Apache-2.0
true
ea10898ffa7fd2176ac65b6e4cf1c4c0
// RUN: %target-swift-frontend -strict-concurrency=complete -target %target-swift-5.1-abi-triple -parse-as-library -emit-sil -o /dev/null -verify -verify-additional-prefix tns- %s -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n\n// REQUIRES: concurrency\n// REQUIRES: swift_feature_GlobalActorIsolatedTypes...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_region_based_sendability.swift
transfernonsendable_region_based_sendability.swift
Swift
46,658
0.95
0.091195
0.250627
python-kit
243
2025-02-23T05:54:43.592489
MIT
true
0b6fd627c2911f8ec188424b5f3f383d
// RUN: %target-swift-frontend -emit-sil -parse-as-library -target %target-swift-5.1-abi-triple -strict-concurrency=complete -verify %s -o /dev/null -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n\n// REQUIRES: concurrency\n// REQUIRES: swift_feature_GlobalActorIsolatedTypesUsability\n\n///////////////////...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_sending_params.swift
transfernonsendable_sending_params.swift
Swift
27,323
0.95
0.065152
0.206963
python-kit
299
2023-10-01T07:16:46.086757
GPL-3.0
true
1851e18c00f6628cd83b58a6ad93a35b
// RUN: %target-swift-frontend -emit-sil -parse-as-library -strict-concurrency=complete -target %target-swift-5.1-abi-triple -verify %s -o /dev/null -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n\n// REQUIRES: concurrency\n// REQUIRES: swift_feature_GlobalActorIsolatedTypesUsability\n\n///////////////////...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_sending_results.swift
transfernonsendable_sending_results.swift
Swift
12,637
0.95
0.050473
0.224806
vue-tools
894
2024-02-02T23:25:04.663999
GPL-3.0
true
6d21a224842b16d8107b6f82d07f6ed8
// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/src)\n// RUN: %empty-directory(%t/sdk)\n// RUN: %empty-directory(%t/sdk/ObjCAPI)\n// RUN: %empty-directory(%t/sdk/SwiftAPI)\n// RUN: %empty-directory(%t/compile)\n// RUN: split-file %s %t/src\n\n// Build Objective-C lib\n// RUN: %target-clang -dynamiclib %t/src/...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_typecheckerbugs.swift
transfernonsendable_typecheckerbugs.swift
Swift
2,001
0.95
0.011905
0.466667
react-lib
580
2024-07-07T09:49:52.562443
GPL-3.0
true
06df7e6ffd0b36c481e6df2ec6a9d905
// RUN: %target-swift-frontend -swift-version 6 -Xllvm -sil-regionbasedisolation-force-use-of-typed-errors -emit-sil -o /dev/null %s -verify -target %target-swift-5.1-abi-triple\n\n// REQUIRES: concurrency\n// REQUIRES: asserts\n\n// READ THIS: This test is only intended to test typed errors that are fallback\n// error...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_typed_errors.swift
transfernonsendable_typed_errors.swift
Swift
3,943
0.95
0.083333
0.323529
node-utils
693
2025-03-26T06:33:32.014461
MIT
true
9a3fb25702f473d9732093e2b070c586
// RUN: %target-swift-frontend -emit-sil -strict-concurrency=complete -enable-upcoming-feature RegionBasedIsolation -target %target-swift-5.1-abi-triple -verify %s -o /dev/null -enable-upcoming-feature GlobalActorIsolatedTypesUsability\n\n// REQUIRES: concurrency\n// REQUIRES: swift_feature_GlobalActorIsolatedTypesUsa...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_unavailable_conformance.swift
transfernonsendable_unavailable_conformance.swift
Swift
1,131
0.95
0.034483
0.375
node-utils
894
2024-10-02T11:45:47.783309
GPL-3.0
true
441a9537f72272b6a139aea8eb8544cd
// RUN: %target-swift-frontend -emit-sil -strict-concurrency=complete -target %target-swift-5.1-abi-triple -verify %s -o /dev/null -swift-version 6\n\n// REQUIRES: concurrency\n\n// This test makes sure that all of our warnings are errors in swift6 mode.\n\n////////////////////////\n// MARK: Declarations //\n//////////...
dataset_sample\swift\apple_swift\test\Concurrency\transfernonsendable_warning_until_swift6.swift
transfernonsendable_warning_until_swift6.swift
Swift
2,600
0.95
0.046875
0.27451
react-lib
592
2024-02-02T04:29:26.524878
MIT
true
d15076f04308f805c58a6eb1bb5697a5
// RUN: %target-typecheck-verify-swift\n\n// REQUIRES: concurrency\n\nenum MyError: Error {\n case failed\n case epicFailed\n}\n\n@available(SwiftStdlib 6.0, *)\nfunc testAsyncFor<S: AsyncSequence>(seq: S) async throws(MyError) {\n // expected-error@+1{{thrown expression type 'S.Failure' cannot be converted to error...
dataset_sample\swift\apple_swift\test\Concurrency\typed_throws.swift
typed_throws.swift
Swift
522
0.8
0.173913
0.157895
react-lib
8
2025-03-27T09:48:03.905656
Apache-2.0
true
74d86d7ee86b559aa16be29d427fbac3
// RUN: %empty-directory(%t)\n// RUN: %target-swift-frontend -emit-module -emit-module-path %t/UnavailableFunction.swiftmodule -module-name UnavailableFunction -strict-concurrency=complete %S/Inputs/UnavailableFunction.swift\n// RUN: %target-swift-frontend -verify -I %t %s -emit-sil -o /dev/null\n// RUN: %target-swift-...
dataset_sample\swift\apple_swift\test\Concurrency\unavailable_from_async.swift
unavailable_from_async.swift
Swift
8,151
0.95
0.040404
0.264151
react-lib
68
2025-02-22T23:14:08.710833
BSD-3-Clause
true
ebada4be22f5d06496498880ecdfc757
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple -swift-version 6\n\n// REQUIRES: concurrency\n// REQUIRES: asserts\n\nstruct API {\n @available(*, noasync, message: "use complete() instead")\n func wait() {}\n\n @preconcurrency\n @available(*, noasync, message: "use complete() instead")\...
dataset_sample\swift\apple_swift\test\Concurrency\unavailable_from_async_swift6.swift
unavailable_from_async_swift6.swift
Swift
671
0.8
0
0.2
vue-tools
889
2025-03-30T10:48:05.792432
MIT
true
a06ce58e57b72a4198315fce6d27762e
// RUN: %target-swift-frontend -plugin-path %swift-plugin-dir -emit-sil -o /dev/null -verify -disable-availability-checking %s\n// RUN: %target-swift-frontend -plugin-path %swift-plugin-dir -emit-sil -o /dev/null -verify -disable-availability-checking %s -strict-concurrency=targeted\n// RUN: %target-swift-frontend -plu...
dataset_sample\swift\apple_swift\test\Concurrency\unsafe_inherit_executor.swift
unsafe_inherit_executor.swift
Swift
6,844
0.95
0.105528
0.177632
react-lib
561
2023-12-06T10:50:50.076626
GPL-3.0
true
55bf083a3b5707989536618fd0edf411
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift %s -target %target-swift-5.1-abi-triple -o %t/voucher_propagation\n// RUN: %target-codesign %t/voucher_propagation\n// RUN: MallocStackLogging=1 %target-run %t/voucher_propagation\n\n// REQUIRES: executable_test\n// REQUIRES: concurrency\n\n// Use objc_interop a...
dataset_sample\swift\apple_swift\test\Concurrency\voucher_propagation.swift
voucher_propagation.swift
Swift
15,037
0.95
0.037578
0.107579
awesome-app
638
2023-08-14T12:14:02.519899
GPL-3.0
true
61ef355562a7d1b1b7c8b6ea3db19eed
// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -D CONFIG1 -dump-ast -parse-as-library %s | %FileCheck %s --check-prefixes=CHECK,CHECK-CONFIG1\n// RUN: %target-swift-frontend -target %target-swift-5.1-abi-triple -D CONFIG2 -dump-ast -parse-as-library %s | %FileCheck %s --check-prefixes=CHECK,CHECK-C...
dataset_sample\swift\apple_swift\test\Concurrency\where_clause_main_resolution.swift
where_clause_main_resolution.swift
Swift
2,570
0.8
0.034483
0.489362
awesome-app
573
2025-02-26T04:40:36.603412
MIT
true
2014e206d5f41cf52c266f503629fcba
// RUN: %target-typecheck-verify-swift -swift-version 5 -verify-additional-prefix swift5-\n// RUN: %target-typecheck-verify-swift -swift-version 5 -strict-concurrency=complete -verify-additional-prefix swift6-\n// RUN: %target-typecheck-verify-swift -swift-version 6 -verify-additional-prefix swift6-\n\nprotocol P {\n ...
dataset_sample\swift\apple_swift\test\Concurrency\witness_matching_with_sendable.swift
witness_matching_with_sendable.swift
Swift
4,598
0.95
0.2
0.403509
vue-tools
378
2023-08-04T18:56:32.578786
Apache-2.0
true
bc4f3b2cc682f79a86bf2dc3098c0ba3
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractAnnotations.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractAnnotations.swiftconstvalues 2>&1 | %FileCheck %s\...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractAnnotations.swift
ExtractAnnotations.swift
Swift
7,680
0.8
0
0.903955
python-kit
504
2024-02-06T12:30:33.866035
Apache-2.0
true
307fc8746484f72ec09c4a366ed18e48
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractEnums.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractEnums.swiftconstvalues 2>&1 | %FileCheck %s\n\nprotocol ...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractArchetype.swift
ExtractArchetype.swift
Swift
1,163
0.8
0
0.709677
awesome-app
456
2023-07-25T20:11:36.090504
Apache-2.0
true
f234b79579c2e9f07ca0c5647522eb84
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractCalls.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractCalls.swiftconstvalues 2>&1 | %FileCheck %s\n\nprotocol ...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractCalls.swift
ExtractCalls.swift
Swift
7,554
0.8
0
0.87234
react-lib
208
2024-04-20T21:15:53.637294
BSD-3-Clause
true
0d3decb95dcf1c9eaa941b4674795b84
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractLiterals.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractLiterals.swiftconstvalues 2>&1 | %FileCheck %s\n\nstr...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractCoerce.swift
ExtractCoerce.swift
Swift
961
0.8
0
0.416667
react-lib
223
2025-04-18T17:31:58.448448
Apache-2.0
true
272471cab58d6eb05d5c0fe1f81f71fe
// RUN: %empty-directory(%t)\n// RUN: echo "[]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractConstantsFromMembersAttribute.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s -enable-experimental-feature ExtractConstantsFromMembers\n// R...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractConstantsFromMembersAttribute.swift
ExtractConstantsFromMembersAttribute.swift
Swift
2,230
0.95
0.029851
0.679245
vue-tools
941
2025-06-23T22:39:15.840931
GPL-3.0
true
b7c0062bb75e694bd5c7c6dc886c1e56
// RUN: %target-typecheck-verify-swift %s\n\n// expected-error@+1{{'@extractConstantsFromMembers' requires '-enable-experimental-feature ExtractConstantsFromMembers'}}\n@extractConstantsFromMembers protocol MyProto {}\n
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractConstantsFromMembersAttributeExperimental.swift
ExtractConstantsFromMembersAttributeExperimental.swift
Swift
215
0.95
0
0.666667
node-utils
394
2025-03-17T04:28:08.533639
MIT
true
07180b5245b35c74f2cfeb052da22d93
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractLiterals.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractLiterals.swiftconstvalues 2>&1 | %FileCheck %s\n\npro...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractDesugared.swift
ExtractDesugared.swift
Swift
813
0.8
0
0.625
vue-tools
252
2024-10-28T06:45:32.319115
Apache-2.0
true
1d4f19135f998a541383a84b4d90d85b
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractEnums.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractEnums.swiftconstvalues 2>&1 | %FileCheck %s\n\nprotocol ...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractEnums.swift
ExtractEnums.swift
Swift
10,797
0.8
0.003534
0.931159
awesome-app
543
2025-02-08T03:47:48.802488
MIT
true
4397d8f8cfb4ca780fcc761f16c8e568
// REQUIRES: OS=macosx\n// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/includes)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// Build external Swift library/module to also check conformances to external protocols\n// RUN: %target-build-swift -target %target-cpu-apple-macosx10.15 %S/../Reflection/Inputs/...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractExternalConformances.swift
ExtractExternalConformances.swift
Swift
2,159
0.95
0
0.9
node-utils
740
2024-04-16T14:58:25.451733
GPL-3.0
true
b71d8147eeb170ef48980d4967e1927f
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractFromExtension.swiftconstvalues -const-gather-protocols-file %t/protocols.json %S/Inputs/ProtocolConformances.swift -primary-file %s\n// RUN: cat %t/ExtractFromExtensi...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractFromExtension.swift
ExtractFromExtension.swift
Swift
1,276
0.8
0
0.9
node-utils
999
2025-07-05T11:53:49.704015
BSD-3-Clause
true
653a50c0357d4e72c5bf2d8b86d7d2e0
// REQUIRES: swift_swift_parser\n// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %host-build-swift -swift-version 5 -emit-library -o %t/%target-library-name(MacroDefinition) -module-name=MacroDefinition %S/Inputs/Macros.swift -g -no-toolchain-stdlib-rpath\n\n// RUN: %target-swift-f...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractFromMacroExpansion.swift
ExtractFromMacroExpansion.swift
Swift
7,038
0.8
0
0.803571
node-utils
223
2024-01-22T05:59:47.119618
Apache-2.0
true
ba6d0eb6e8a0da3999a7606d3e5cef8d
// REQUIRES: objc_interop\n// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractFromObjcImplementationExtension.swiftconstvalues -const-gather-protocols-file %t/protocols.json %s -import-objc-header %S/Inputs/objc_imple...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractFromObjcImplementationExtension.swift
ExtractFromObjcImplementationExtension.swift
Swift
1,146
0.95
0
0.666667
python-kit
469
2023-12-22T06:58:50.246681
Apache-2.0
true
1c9eaecf2a47933db682053bb139dd0b
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractGroups.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractGroups.swiftconstvalues 2>&1 | %FileCheck %s\n\nprotoco...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractGroups.swift
ExtractGroups.swift
Swift
13,870
0.8
0
0.924855
python-kit
175
2024-04-10T13:36:57.878223
Apache-2.0
true
2be64d3f338733d55f3c1e818989742e
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractLiterals.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractLiterals.swiftconstvalues 2>&1 | %FileCheck %s\n\npro...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractInjectOptional.swift
ExtractInjectOptional.swift
Swift
1,007
0.8
0
0.6
react-lib
13
2023-12-03T05:16:59.025048
MIT
true
be9444a32342bdf4c5bf693399d129f6
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractInterpolatedStringLiterals.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractInterpolatedStringLiterals.swiftcon...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractInterpolatedStringLiterals.swift
ExtractInterpolatedStringLiterals.swift
Swift
6,362
0.95
0.006803
0.884892
awesome-app
989
2024-08-16T00:15:32.898785
BSD-3-Clause
true
f4de4394d9c965e0c65d18f74c4819fd
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractKeyPaths.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractKeyPaths.swiftconstvalues 2>&1 | %FileCheck %s\n\npro...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractKeyPaths.swift
ExtractKeyPaths.swift
Swift
7,514
0.8
0
0.861111
python-kit
720
2024-04-19T07:54:12.199750
Apache-2.0
true
50efc352927bfbce6a3fc5586c4d5e69
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractLiterals.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractLiterals.swiftconstvalues 2>&1 | %FileCheck %s\n\npro...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractLiterals.swift
ExtractLiterals.swift
Swift
27,953
0.8
0.002963
0.880916
vue-tools
796
2023-11-27T21:14:44.283154
GPL-3.0
true
340384e82c63a49d9b35e247ee3dd67e
// REQUIRES: swift_swift_parser\n// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %host-build-swift -swift-version 5 -emit-library -o %t/%target-library-name(MacroDefinition) -module-name=MacroDefinition %S/Inputs/Macros.swift -g -no-toolchain-stdlib-rpath\n\n// RUN: %target-swift-f...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractMacroExpandedConformances.swift
ExtractMacroExpandedConformances.swift
Swift
1,312
0.8
0
0.636364
vue-tools
297
2025-04-18T12:51:21.324848
MIT
true
11b1a66c323131024ab2714c79fdcda6
// REQUIRES: OS=macosx\n// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/includes)\n// RUN: echo "[myProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -target %target-cpu-apple-macosx10.15 -typecheck -emit-const-values-path %t/ExtractOpaqueGenericTypealias.swiftconstvalues -const-gather-protocols-f...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractOpaqueGenericTypealias.swift
ExtractOpaqueGenericTypealias.swift
Swift
2,896
0.8
0
0.787879
python-kit
26
2025-05-16T07:08:39.305268
Apache-2.0
true
8723c95f96ab21e49619d3b9b5cd0079
// REQUIRES: OS=macosx\n// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/includes)\n// RUN: echo "[myProto]" > %t/protocols.json\n\n// Build external Swift library/module to also check conformances to external protocols\n// RUN: %target-build-swift -target %target-cpu-apple-macosx10.15 %S/../Reflection/Inputs/...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractOpaqueTypealias.swift
ExtractOpaqueTypealias.swift
Swift
3,425
0.95
0
0.728571
awesome-app
638
2025-02-19T21:31:43.529007
BSD-3-Clause
true
85adacb02cee177d13640c8b84508c81
// RUN: %empty-directory(%t)\n// RUN: %empty-directory(%t/inputs)\n// RUN: echo "[FooProvider]" > %t/inputs/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractResultBuilders.swiftconstvalues -const-gather-protocols-file %t/inputs/protocols.json -primary-file %s\n// RUN: cat %t...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractResultBuilders.swift
ExtractResultBuilders.swift
Swift
31,014
0.8
0.009901
0.841642
vue-tools
274
2024-10-16T07:52:58.751569
MIT
true
1061c31dfd6f7acea5e2bdf3f360f2da
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractStaticFunctions.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractStaticFunctions.swiftconstvalues 2>&1 | %FileC...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractStaticFunctions.swift
ExtractStaticFunctions.swift
Swift
2,579
0.8
0
0.701299
python-kit
403
2024-03-02T20:01:05.799901
Apache-2.0
true
d19edb858ce2cd2849ee8743d23bad64
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractTypeAliasUnderlyingType.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractTypeAliasUnderlyingType.swiftconstvalu...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractTypeAliasUnderlyingType.swift
ExtractTypeAliasUnderlyingType.swift
Swift
659
0.8
0
0.533333
vue-tools
891
2024-08-16T04:46:28.764775
BSD-3-Clause
true
6564fd7f3a09882d735298f5205fcb5a
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractTypes.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractTypes.swiftconstvalues 2>&1 | %FileCheck %s\n\nprotocol ...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractTypes.swift
ExtractTypes.swift
Swift
1,531
0.95
0.021277
0.714286
node-utils
856
2024-04-06T09:21:50.074620
Apache-2.0
true
4aa9c18bdf429ccf91494b73d8d38464
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractLiterals.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractLiterals.swiftconstvalues 2>&1 | %FileCheck %s\n\npro...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractTypeValue.swift
ExtractTypeValue.swift
Swift
1,981
0.8
0
0.813953
awesome-app
362
2024-09-21T03:51:42.373317
GPL-3.0
true
2656650e7668037a24984800e3ab605b
// RUN: %empty-directory(%t)\n// RUN: echo "[MyProto]" > %t/protocols.json\n\n// RUN: %target-swift-frontend -typecheck -emit-const-values-path %t/ExtractLiterals.swiftconstvalues -const-gather-protocols-file %t/protocols.json -primary-file %s\n// RUN: cat %t/ExtractLiterals.swiftconstvalues 2>&1 | %FileCheck %s\n\npro...
dataset_sample\swift\apple_swift\test\ConstExtraction\ExtractUnderlyingToOpaque.swift
ExtractUnderlyingToOpaque.swift
Swift
1,199
0.8
0
0.516129
vue-tools
845
2024-10-10T06:16:42.157145
BSD-3-Clause
true
7fba8ca27a14c4a5273aee647e06274a
// RUN: %target-typecheck-verify-swift -swift-version 5\n\nfunc test(_ x: Int) -> Int {\n return x + nil\n // expected-error@-1 {{'nil' is not compatible with expected argument type 'Int'}}\n}\n
dataset_sample\swift\apple_swift\test\Constraints\add_with_nil.swift
add_with_nil.swift
Swift
190
0.8
0
0.4
react-lib
630
2024-08-22T01:36:19.810031
BSD-3-Clause
true
56d1979b4f4fdf888e9e473b15ffa705
// RUN: %target-typecheck-verify-swift -swift-version 5 -target %target-swift-5.1-abi-triple\n\nprotocol View {\n}\n\nextension View {\n func title<S>(_ title: S) -> some View where S : StringProtocol {\n EmptyView()\n }\n\n func title(_ titleKey: LocalizedString) -> some View {\n EmptyView()\n }\n}\n\nextens...
dataset_sample\swift\apple_swift\test\Constraints\ambiguity_diagnostics.swift
ambiguity_diagnostics.swift
Swift
1,444
0.8
0
0.026316
react-lib
455
2024-10-03T11:08:57.761049
MIT
true
06c8ce4fb922da58c97656fb455441af
// RUN: %empty-directory(%t/src)\n// RUN: %empty-directory(%t/sdk)\n// RUN: split-file %s %t/src\n\n// RUN: %target-swift-frontend -emit-module %t/src/A.swift \\n// RUN: -module-name A -swift-version 5 -enable-library-evolution \\n// RUN: -emit-module-path %t/A.swiftmodule\n\n// RUN: %target-swift-frontend -emit-mo...
dataset_sample\swift\apple_swift\test\Constraints\ambiguous_specialized_name_diagnostics.swift
ambiguous_specialized_name_diagnostics.swift
Swift
1,141
0.95
0.042553
0.457143
react-lib
653
2023-07-16T17:09:44.061902
MIT
true
0991846d372106a8a1ab9075554e5f39
// RUN: %target-typecheck-verify-swift\n\nfunc dict() -> [AnyHashable: Any] {\n return ["x": "y"]\n}\nfunc set() -> Set<AnyHashable> {\n return ["x"]\n}\n\nfunc test() {\n if let d = dict() as? [String: String] {\n print(d)\n }\n if let s = set() as? Set<String> {\n print(s)\n }\n}\n\nfunc testLValueC...
dataset_sample\swift\apple_swift\test\Constraints\anyhashable-collection-cast.swift
anyhashable-collection-cast.swift
Swift
419
0.8
0.086957
0.05
react-lib
303
2024-03-18T20:22:35.882370
MIT
true
c414f5ac9483123cf84ef8334d1114e7
// RUN: %target-swift-emit-silgen %s -verify | %FileCheck %s\n\n// rdar://95992916 - SILGen crash due to incorrect overload pick for `==`\n\nenum E : String {\ncase a\ncase b\n}\n\nprotocol P : AnyObject {\n var prop: E { get }\n}\n\nfunc test(arr: [any P]) {\n _ = arr.map {\n let v = (a: $0.prop, b: $0.prop)\n ...
dataset_sample\swift\apple_swift\test\Constraints\anyhashable_and_operator_filtering.swift
anyhashable_and_operator_filtering.swift
Swift
915
0.95
0.068966
0.333333
react-lib
241
2023-12-20T15:30:09.996236
Apache-2.0
true
e934cb3e36e192cd65637225bf58b5ea
// RUN: %target-typecheck-verify-swift\n\n// Single extraneous keyword argument (tuple-to-scalar)\nfunc f1(_ a: Int) { }\nf1(a: 5) // expected-error{{extraneous argument label 'a:' in call}}{{4-7=}}\n\nstruct X1 {\n init(_ a: Int) { }\n func f1(_ a: Int) {}\n}\nX1(a: 5).f1(b: 5) \n// expected-error@-1 {{extraneous ar...
dataset_sample\swift\apple_swift\test\Constraints\argument_matching.swift
argument_matching.swift
Swift
79,627
0.75
0.040592
0.273654
react-lib
878
2024-03-18T03:38:00.898054
Apache-2.0
true
5072cc9634d942a181ef345652e92d1d
// RUN: %target-typecheck-verify-swift -target %target-swift-5.1-abi-triple\n\nstruct IntList : ExpressibleByArrayLiteral {\n typealias Element = Int\n init(arrayLiteral elements: Int...) {}\n}\n\nstruct DoubleList : ExpressibleByArrayLiteral {\n typealias Element = Double\n init(arrayLiteral elements: Double...) {...
dataset_sample\swift\apple_swift\test\Constraints\array_literal.swift
array_literal.swift
Swift
11,675
0.95
0.046838
0.07837
vue-tools
756
2025-03-09T12:50:00.191170
GPL-3.0
true
9196c40d47abccf7c4f45f1985c3a6b1
// RUN: %target-typecheck-verify-swift\n\n/// https://github.com/apple/swift/issues/52057\n/// `Array` type locally interferes with array literals\n\nstruct Array { }\n\nfunc foo() {\n _ = ["a", "b", "c"]\n}\n
dataset_sample\swift\apple_swift\test\Constraints\array_literal_local_array.swift
array_literal_local_array.swift
Swift
200
0.8
0
0.428571
node-utils
564
2024-10-13T22:35:17.878211
MIT
true
e5547dbb78d2ab656501497cfbc41443
// RUN: %target-typecheck-verify-swift\n\nstruct X { }\nstruct Y { }\nprotocol Z { }\n\nstruct WithOverloadedSubscript {\n subscript(i: Int) -> X {\n get {}\n set {}\n }\n subscript(i: Int) -> Y {\n get {}\n set {}\n }\n}\n\nstruct WithProtocolSubscript {\n subscript(i: Int) -> Z {\n get {}\n set...
dataset_sample\swift\apple_swift\test\Constraints\assignment.swift
assignment.swift
Swift
2,287
0.95
0.044444
0.083333
react-lib
542
2025-04-25T06:46:31.512873
MIT
true
03c43fd8d351497ebb58fb7a8e9ce33b
// RUN: %target-typecheck-verify-swift\nprotocol Foo {\n associatedtype Flim\n associatedtype Flam\n func foo(_: Flim) -> Flam\n}\n\nstruct Bar: Foo {\n typealias Flim = Int\n\n func foo(_: Int) -> Int {}\n func foo(_: String) -> String {}\n}\n\nfunc testDeducedFlamType<T: Foo, U>(_: T, _: U.Type)\nwhere T.Flam =...
dataset_sample\swift\apple_swift\test\Constraints\associated-types-mixed-explicit-inferred.swift
associated-types-mixed-explicit-inferred.swift
Swift
590
0.8
0
0.047619
vue-tools
163
2025-02-13T01:07:15.145322
GPL-3.0
true
9e08aeded053f78e55a490aa8e5bb644
// RUN: %target-typecheck-verify-swift\n\nprotocol MyIteratorProtocol {\n associatedtype Element\n func next() -> Element?\n}\n\nprotocol MySequence {\n associatedtype Iterator : MyIteratorProtocol\n}\n\nprotocol MyCollection : MySequence {\n var startIndex: Iterator { get }\n}\n\nprotocol P : MyCollection {\n ini...
dataset_sample\swift\apple_swift\test\Constraints\associated_self_types.swift
associated_self_types.swift
Swift
1,215
0.95
0.016393
0.020833
node-utils
785
2023-11-21T00:29:56.764638
GPL-3.0
true
230c05e2a3d1278dfaf8b4aae708c893
// RUN: %target-typecheck-verify-swift\n\nprotocol Runcible {\n associatedtype Runcee\n}\n\nclass Mince {\n init() {}\n}\n\nclass Spoon : Runcible {\n init() {}\n\n typealias Runcee = Mince\n}\n\nclass Owl<T:Runcible> {\n init() {}\n\n func eat(_ what: T.Runcee, with: T) { }\n}\n\nfunc owl1() -> Owl<Spoon> {\n r...
dataset_sample\swift\apple_swift\test\Constraints\associated_types.swift
associated_types.swift
Swift
2,983
0.95
0.056
0.10101
vue-tools
41
2025-01-31T02:53:58.493769
Apache-2.0
true
16625a70930e9819d61ed803945230d7
// RUN: %target-typecheck-verify-swift\n\n// REQUIRES: concurrency\n\n@available(SwiftStdlib 5.5, *)\nfunc doAsynchronously() async { }\n@available(SwiftStdlib 5.5, *)\nfunc doSynchronously() { }\n\n@available(SwiftStdlib 5.5, *)\nfunc testConversions() async {\n let _: () -> Void = doAsynchronously // expected-error{...
dataset_sample\swift\apple_swift\test\Constraints\async.swift
async.swift
Swift
6,584
0.95
0.022624
0.085227
node-utils
714
2023-08-26T01:33:08.597364
BSD-3-Clause
true
36e7b98821aefc2c94575c8bb967a427
// RUN: %target-typecheck-verify-swift -swift-version 4\n\n// Ensure that we do not select the unavailable failable init as the\n// only solution and then fail to typecheck.\nprotocol P {}\n\nclass C : P {\n @available(swift, obsoleted: 4)\n public init?(_ c: C) {\n }\n\n public init<T : P>(_ c: T) {}\n}\n\nfunc f(...
dataset_sample\swift\apple_swift\test\Constraints\availability.swift
availability.swift
Swift
2,051
0.95
0.034091
0.142857
python-kit
657
2023-09-23T15:15:11.988928
MIT
true
5231312c3fee70490ae5e36da3247cf1
// RUN: %target-typecheck-verify-swift\n\n// REQUIRES: OS=macosx\n\nstruct A {} // expected-note * {{found this candidate}}\nstruct B {} // expected-note * {{found this candidate}}\n\nfunc ambiguousInFarFuture(_: A) {}\n\n@available(macOS 99, *)\nfunc ambiguousInFarFuture(_: B) {}\n\nstruct S {\n func ambiguousInFarFu...
dataset_sample\swift\apple_swift\test\Constraints\availability_macos.swift
availability_macos.swift
Swift
951
0.8
0
0.071429
awesome-app
65
2023-09-19T10:36:51.663230
GPL-3.0
true
e15f03c904968a4c809cc338b9880d83
// RUN: %target-typecheck-verify-swift\n// REQUIRES: objc_interop\n\nimport Foundation\nimport CoreGraphics\n\n/////////////\n\nstruct G<T> { // expected-note {{arguments to generic parameter 'T' ('CGFloat?' and 'CGFloat') are expected to be equal}}\n var t: T\n}\n\nfunc foo1(x: (x: Int, y: Int)?, y: (Int, Int)) -> G...
dataset_sample\swift\apple_swift\test\Constraints\bidirectional_conversions.swift
bidirectional_conversions.swift
Swift
2,331
0.95
0
0.091954
awesome-app
556
2024-11-10T02:36:37.901463
BSD-3-Clause
true
5a90b21507f6cb327e2cf0818a0e5d44
// RUN: %target-typecheck-verify-swift\n\n// REQUIRES: objc_interop\n\nimport Foundation\n\npublic class BridgedClass : NSObject, NSCopying {\n @objc(copyWithZone:)\n public func copy(with zone: NSZone?) -> Any {\n return self\n }\n}\n\npublic class BridgedClassSub : BridgedClass { }\n\n// Attempt to bridge to a ...
dataset_sample\swift\apple_swift\test\Constraints\bridging.swift
bridging.swift
Swift
19,273
0.95
0.06326
0.152695
react-lib
539
2024-06-19T05:31:52.970044
Apache-2.0
true
f0f95bbffc5a7df44a79f8377be21ee4
// RUN: %target-typecheck-verify-swift -disable-objc-interop\n\n\nvar x: Any = 1\nvar y = x as AnyObject\n
dataset_sample\swift\apple_swift\test\Constraints\bridging_nonobjc.swift
bridging_nonobjc.swift
Swift
101
0.8
0
0.333333
react-lib
340
2023-11-18T16:34:06.062722
GPL-3.0
true
7bab2946488f761e4146dde30ee19832
// RUN: %target-typecheck-verify-swift\n\n// rdar://83717297\n//\n// Make sure that trailing closures are matches to the `callAsFunction`\n// when used in the same expression as `.init` of a callable type.\n\nprotocol View {}\nstruct EmptyView: View {}\n\nenum Align {\ncase top, center, bottom\n}\n\nstruct MyLayout {\n...
dataset_sample\swift\apple_swift\test\Constraints\callAsFunction.swift
callAsFunction.swift
Swift
2,530
0.95
0
0.07619
react-lib
932
2023-10-02T19:56:05.868912
GPL-3.0
true
5c8daeaf70f3130e172741e15dcf415b
// RUN: %target-typecheck-verify-swift -enable-objc-interop\n\nclass B { \n init() {} \n}\nclass D : B {\n override init() { super.init() }\n}\n\nvar seven : Double = 7\n\nvar pair : (Int, Double) = (1, 2)\n\nvar closure : (Int, Int) -> Int = { $0 + $1 }\n\nvar d_as_b : B = D()\nvar b_as_d = B() as! D\nvar bad_b_as_d...
dataset_sample\swift\apple_swift\test\Constraints\casts.swift
casts.swift
Swift
29,911
0.95
0.051316
0.146179
react-lib
30
2024-07-04T13:22:33.056035
Apache-2.0
true
6cd447e45ce493f4f619ec8a4f2b5d78