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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28843-startofcontrol-tok-getloc.swift | 28843-startofcontrol-tok-getloc.swift | Swift | 403 | 0.8 | 0.3 | 0.777778 | awesome-app | 408 | 2025-01-07T00:42:06.633266 | GPL-3.0 | true | 32e261f0c03dfb464c999642af7e90ee |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28844-swift-typebase-getcanonicaltype.swift | 28844-swift-typebase-getcanonicaltype.swift | Swift | 418 | 0.8 | 0.222222 | 0.875 | node-utils | 428 | 2024-08-18T08:26:59.227060 | GPL-3.0 | true | 66827682f0b867c1272cc8491bfc0e8e |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28845-llvm-optional-swift-type-llvm-function-ref-llvm-optional-swift-type-swift-typeba.swift | 28845-llvm-optional-swift-type-llvm-function-ref-llvm-optional-swift-type-swift-typeba.swift | Swift | 517 | 0.95 | 0.411765 | 0.4375 | react-lib | 661 | 2025-05-20T09:31:10.114283 | Apache-2.0 | true | 96db7181c00b9b9f809b8c2ce919c95a |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28846-swift-typebase-getdesugaredtype.swift | 28846-swift-typebase-getdesugaredtype.swift | Swift | 443 | 0.8 | 0.222222 | 0.875 | python-kit | 497 | 2023-11-10T02:14:37.535537 | GPL-3.0 | true | d468046da3c12111edbdda9df9a51145 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28847-type-hasunboundgenerictype.swift | 28847-type-hasunboundgenerictype.swift | Swift | 452 | 0.95 | 0.333333 | 0.875 | react-lib | 937 | 2024-06-13T05:51:01.710446 | MIT | true | 40169853482fa726da8225cd5b87178a |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28848-iscanonicaltypeincontext-result-builder.swift | 28848-iscanonicaltypeincontext-result-builder.swift | Swift | 453 | 0.95 | 0.333333 | 0.875 | vue-tools | 221 | 2023-09-22T08:45:45.262558 | BSD-3-Clause | true | 45142b1075f71dc47aa154100b1777c4 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28849-hasval.swift | 28849-hasval.swift | Swift | 449 | 0.95 | 0.25 | 0.7 | react-lib | 878 | 2024-09-26T08:52:52.556227 | MIT | true | df3369353e6ddc6baca3d7bce95b5c11 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28850-unreachable-executed-at-swift-lib-sema-typecheckgeneric-cpp-220.swift | 28850-unreachable-executed-at-swift-lib-sema-typecheckgeneric-cpp-220.swift | Swift | 452 | 0.95 | 0.333333 | 0.875 | node-utils | 405 | 2023-07-13T08:34:08.501652 | GPL-3.0 | true | 7a0cdbee624442ce19f480a460bfa821 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28851-hasconformanceinsignature-inprotocol-getrequirementsignature-subjecttype-conform.swift | 28851-hasconformanceinsignature-inprotocol-getrequirementsignature-subjecttype-conform.swift | Swift | 463 | 0.95 | 0.333333 | 0.875 | react-lib | 941 | 2024-04-24T21:51:44.163388 | GPL-3.0 | true | 034a5e9a4dc4eb044c8aa43a26d7e37a |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28852-swift-genericsignaturebuilder-addrequirement-swift-requirementrepr-const-swift-g.swift | 28852-swift-genericsignaturebuilder-addrequirement-swift-requirementrepr-const-swift-g.swift | Swift | 482 | 0.95 | 0.25 | 0.636364 | python-kit | 888 | 2024-11-11T09:24:38.769528 | Apache-2.0 | true | 9ffdb12512bc61b82fd80a8536e2e9ee |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28853-result-second.swift | 28853-result-second.swift | Swift | 485 | 0.95 | 0.266667 | 0.5 | vue-tools | 801 | 2024-07-30T17:39:21.273050 | BSD-3-Clause | true | ae483ea1a92943a4c7fd7866d89556a9 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28854-known-typewitnesses-end-didnt-resolve-witness.swift | 28854-known-typewitnesses-end-didnt-resolve-witness.swift | Swift | 465 | 0.95 | 0.230769 | 0.636364 | react-lib | 375 | 2024-07-28T03:17:22.295940 | GPL-3.0 | true | 8d1a18d88b9c39df53a28dde6b5e9fe3 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28855-swift-genericsignaturebuilder-addrequirement-swift-requirementrepr-const-swift-g.swift | 28855-swift-genericsignaturebuilder-addrequirement-swift-requirementrepr-const-swift-g.swift | Swift | 435 | 0.8 | 0.222222 | 0.875 | node-utils | 333 | 2024-05-01T07:24:24.513797 | GPL-3.0 | true | 0f153db88ce1cf250961ceb40f4b5f29 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28856-typevariables-impl-getgraphindex-typevar-type-variable-mismatch.swift | 28856-typevariables-impl-getgraphindex-typevar-type-variable-mismatch.swift | Swift | 422 | 0.8 | 0.2 | 0.875 | node-utils | 917 | 2025-02-20T19:20:33.232279 | Apache-2.0 | true | f193b8118ef2e0be7d07849945ba6fb1 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28857-nestedpabyname-didnt-find-the-associated-type-we-wanted.swift | 28857-nestedpabyname-didnt-find-the-associated-type-we-wanted.swift | Swift | 446 | 0.95 | 0.333333 | 0.875 | node-utils | 536 | 2023-10-30T06:39:16.943934 | BSD-3-Clause | true | 4fff36479bbc27f55b48277cd4cad9bf |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28858-val-isa-used-on-a-null-pointer.swift | 28858-val-isa-used-on-a-null-pointer.swift | Swift | 436 | 0.95 | 0.272727 | 0.7 | awesome-app | 959 | 2024-02-23T02:28:05.705606 | GPL-3.0 | true | afd5c7746b433bbd395c8d6591e8868b |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28859-resolver-unable-to-resolve-type-witness.swift | 28859-resolver-unable-to-resolve-type-witness.swift | Swift | 449 | 0.95 | 0.3 | 0.875 | vue-tools | 750 | 2024-10-05T07:16:19.020267 | BSD-3-Clause | true | f0853b2de47c244c71849a728c1f4974 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28860-iscomplete-isinvalid-conformance-already-complete.swift | 28860-iscomplete-isinvalid-conformance-already-complete.swift | Swift | 456 | 0.95 | 0.4 | 0.875 | python-kit | 159 | 2023-10-06T06:26:33.445146 | BSD-3-Clause | true | 01ae56f6633a19b70ca704b4efd299b8 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28861-gpdecl-getdepth-generictypeparamdecl-invaliddepth-parameter-hasnt-been-validated.swift | 28861-gpdecl-getdepth-generictypeparamdecl-invaliddepth-parameter-hasnt-been-validated.swift | Swift | 457 | 0.95 | 0.4 | 0.777778 | react-lib | 123 | 2023-09-07T22:34:38.290621 | Apache-2.0 | true | 315644c33e87836109882e98822d6962 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28863-t-is-archetypetype-t-isexistentialtype-expected-a-class-archetype-or-existential.swift | 28863-t-is-archetypetype-t-isexistentialtype-expected-a-class-archetype-or-existential.swift | Swift | 461 | 0.95 | 0.416667 | 0.636364 | vue-tools | 611 | 2024-01-27T03:24:39.953159 | GPL-3.0 | true | ecbb50638884a043b5fec3ab425b1b64 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28864-bool-typesig-bool-extensionsig-unexpected-generic-ness-mismatch-on-conformance.swift | 28864-bool-typesig-bool-extensionsig-unexpected-generic-ness-mismatch-on-conformance.swift | Swift | 444 | 0.95 | 0.3 | 0.777778 | awesome-app | 538 | 2024-11-02T05:31:26.623890 | MIT | true | 13f01f1c19177cbcf8a8734b5cbfc01f |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28865-void-lookupinmodule-llvm-smallset-swift-cantype-4u-anonymous-namespace-sortcanty.swift | 28865-void-lookupinmodule-llvm-smallset-swift-cantype-4u-anonymous-namespace-sortcanty.swift | Swift | 425 | 0.8 | 0.222222 | 0.875 | vue-tools | 490 | 2023-11-25T11:06:52.477771 | MIT | true | 0c19c4b0365805ee325dba228107ba08 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28866-unreachable-executed-at-swift-include-swift-ast-cantypevisitor-h-41.swift | 28866-unreachable-executed-at-swift-include-swift-ast-cantypevisitor-h-41.swift | Swift | 417 | 0.8 | 0.181818 | 0.7 | node-utils | 901 | 2025-05-21T00:21:38.873560 | GPL-3.0 | true | fcc7ff8c38aa46538d131469f79f0160 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28867-swift-iterativetypechecker-issatisfied-swift-typecheckrequest.swift | 28867-swift-iterativetypechecker-issatisfied-swift-typecheckrequest.swift | Swift | 427 | 0.8 | 0.2 | 0.777778 | vue-tools | 528 | 2025-06-14T22:54:12.055174 | BSD-3-Clause | true | ea758767034b6353dd29e5d15f6936b2 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28868-known-typebindings-end.swift | 28868-known-typebindings-end.swift | Swift | 437 | 0.8 | 0.2 | 0.875 | vue-tools | 1,000 | 2024-12-02T18:54:18.578775 | GPL-3.0 | true | 307db1a082414db9bbfe7181eec874c2 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28869-swift-diagnosticengine-formatdiagnostictext-llvm-raw-ostream-llvm-stringref-llvm.swift | 28869-swift-diagnosticengine-formatdiagnostictext-llvm-raw-ostream-llvm-stringref-llvm.swift | Swift | 415 | 0.8 | 0.222222 | 0.875 | awesome-app | 761 | 2024-07-15T13:34:14.791065 | BSD-3-Clause | true | 5d851a98e50f910c274c78b08109d6a9 |
// This source file is part of the Swift.org open source project\n// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors\n// Licensed under Apache License v2.0 with Runtime Library Exception\n//\n// See https://swift.org/LICENSE.txt for license information\n// See https://swift.org/CONTRIBUTORS.txt for t... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\28871-nested-second-nested-second-isequal-result-nested-second-haserror-result-haserro.swift | 28871-nested-second-nested-second-isequal-result-nested-second-haserror-result-haserro.swift | Swift | 435 | 0.95 | 0.272727 | 0.777778 | python-kit | 649 | 2025-03-11T09:46:10.738863 | MIT | true | a55b34e676f779ea2cdb08dca1778036 |
// RUN: %target-swift-frontend -target %target-cpu-apple-macosx10.15 -swift-version 5 -c %s\n// REQUIRES: objc_interop\n// REQUIRES: OS=macosx\n\nimport SwiftUI\n\nstruct DropDestinationCoordinatorView: NSViewRepresentable {\n func makeNSView(context: Context) -> some NSView {\n return NSView()\n }\n \n func updateN... | dataset_sample\swift\apple_swift\validation-test\compiler_crashers_fixed\rdar96194366.swift | rdar96194366.swift | Swift | 395 | 0.95 | 0.0625 | 0.25 | react-lib | 608 | 2024-07-03T16:55:31.089645 | MIT | true | bf96c533cbf86ede37545c81d09d1624 |
// RUN: %scale-test --sum-multi --begin 5 --end 16 --step 5 --select NumIterableDeclContextParsed -Xfrontend=-enable-objc-interop -Xfrontend=-disable-objc-attr-requires-foundation-module %s\n// REQUIRES: asserts\n\n// Dynamic member lookup should not force delayed parsing of structs, enums or protocol\n// extensions.\n... | dataset_sample\swift\apple_swift\validation-test\compiler_scale\dynamic_lookup_2.swift | dynamic_lookup_2.swift | Swift | 487 | 0.95 | 0.111111 | 0.266667 | react-lib | 75 | 2024-08-28T04:22:08.687568 | BSD-3-Clause | true | f65179447909efb794ddfff33f753acd |
// RUN: %empty-directory(%t)\n// RUN: %target-build-swift -O -Xfrontend -disable-availability-checking %s -plugin-path %swift-plugin-dir -parse-as-library -module-name main -o %t/main\n// RUN: %target-codesign %t/main\n// RUN: %target-run %t/main | %FileCheck %s\n\n// REQUIRES: objc_interop\n// REQUIRES: concurrency\n/... | dataset_sample\swift\apple_swift\validation-test\Concurrency\rdar107275872.swift | rdar107275872.swift | Swift | 775 | 0.95 | 0 | 0.444444 | vue-tools | 250 | 2024-11-08T14:25:22.470077 | GPL-3.0 | true | 4157b366efc85fec317c923b72da1b38 |
// When -enable-only-one-dependency-file (which is the default) the one compile job with the dependency output is unbatchable.\n\n// RUN: %empty-directory(%t)\n// RUN: touch %t/f_1_1.swift %t/f_1_2.swift %t/f_1_3.swift %t/f_1_4.swift %t/f_1_5.swift %t/f_1_6.swift %t/f_1_7.swift %t/f_1_8.swift %t/f_1_9.swift %t/f_1_10.... | dataset_sample\swift\apple_swift\validation-test\Driver\batch_mode_size_limit.swift | batch_mode_size_limit.swift | Swift | 6,920 | 0.8 | 0 | 1 | awesome-app | 506 | 2025-04-11T05:45:33.821525 | MIT | true | 1443fb844e40cffcf086a2cf635bf474 |
// RUN: %target-build-swift -emit-executable %s -import-objc-header %S/Inputs/clang_rt-helper.h -o %t\n\n// REQUIRES: c_runtime\n\n// Just make sure we can build and link successfully.\n\nif isRunningOnFairlyRecentOS() {\n print("new!")\n} else {\n print("old...")\n}\n | dataset_sample\swift\apple_swift\validation-test\Driver\clang_rt.swift | clang_rt.swift | Swift | 260 | 0.95 | 0.090909 | 0.375 | node-utils | 479 | 2023-08-07T14:23:03.842718 | BSD-3-Clause | true | 4c3ef25d78755efa549296ff44c389cc |
// REQUIRES: shell\n// RUN: %empty-directory(%t)\n\n// This limit was chosen because multi-threaded compilation broke here on OS X\n// at one point.\n// RUN: for i in {1..1100}; do echo "public func foo$i() {}" > %t/$i.swift; echo "CHECK: foo$i" >> %t/check.txt; done\n\n// RUN: (cd %t && %target-build-swift -whole-modu... | dataset_sample\swift\apple_swift\validation-test\Driver\many-inputs.swift | many-inputs.swift | Swift | 983 | 0.95 | 0.090909 | 1 | awesome-app | 505 | 2023-10-29T05:07:24.365145 | GPL-3.0 | true | 0ef9ad7907e33919cc10d4270a30e6d4 |
// RUN: %target-swiftc_driver \\n// RUN: -c \\n// RUN: %s \\n// RUN: -Xfrontend -sil-verify-all \\n// RUN: -enable-experimental-feature Embedded \\n// RUN: -wmo \\n//... | dataset_sample\swift\apple_swift\validation-test\embedded\rdar126965232.swift | rdar126965232.swift | Swift | 724 | 0.95 | 0.076923 | 0.521739 | vue-tools | 295 | 2024-03-07T08:07:26.887455 | MIT | true | a6dca938be6aa983e2661bf421a13436 |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n#if AFTER\n@_weakLinked @usableFromInline func weakFunction() -> String {\n return "new"\n}\n\n@_alwaysEmitIntoClient public func serializedFunction() -> String {\n if getVersion() == 1 {\n return weakFunction()\n }\n retu... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\backward_deploy_always_emit_into_client.swift | backward_deploy_always_emit_into_client.swift | Swift | 321 | 0.8 | 0.15 | 0.277778 | vue-tools | 737 | 2023-09-28T10:12:12.179684 | Apache-2.0 | true | 17bdb678101cbb17c75fd2b77355c0d6 |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\npublic struct ResilientStruct {\n public init() {}\n}\n\n#if AFTER\n@_weakLinked public class ResilientClass {\n public init() {}\n\n public func fn(_ x: Int) {}\n\n public var storedProp: Int = 0\n\n public var computedProp... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\backward_deploy_class.swift | backward_deploy_class.swift | Swift | 1,301 | 0.95 | 0.129412 | 0.225806 | python-kit | 340 | 2023-12-30T11:17:33.725354 | MIT | true | 1a03fb297b70eded45ef38d9678dcd0a |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n#if AFTER\n@_weakLinked\npublic struct NewStruct<T> {\n var t: T\n\n public init(_ t: T) {\n self.t = t\n }\n}\n#endif\n | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\backward_deploy_conformance.swift | backward_deploy_conformance.swift | Swift | 199 | 0.8 | 0.111111 | 0.3125 | node-utils | 485 | 2024-12-19T12:57:30.096629 | GPL-3.0 | true | 13504a7a746c54ea4c1b87e1dbba5cbd |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\npublic enum ResilientEnum {\n case first\n case second\n\n#if AFTER\n @_weakLinked case third\n#endif\n\n case fourth\n case fifth\n}\n | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\backward_deploy_enum.swift | backward_deploy_enum.swift | Swift | 212 | 0.8 | 0.105263 | 0.3125 | node-utils | 611 | 2024-04-24T18:01:15.715143 | Apache-2.0 | true | 3154c5d8db6cc475167452634382d2ea |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\npublic protocol OtherProtocol {\n init()\n}\n\n#if AFTER\n// Protocol is always available, type is weak-linked\n@_weakLinked public struct OtherConforms : OtherProtocol {\n public init() {}\n}\n#endif\n\npublic protocol OldProt... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\backward_deploy_protocol.swift | backward_deploy_protocol.swift | Swift | 1,110 | 0.8 | 0.116667 | 0.352941 | python-kit | 961 | 2024-01-19T05:27:40.490807 | BSD-3-Clause | true | fb810560d47fba5a3f4b1f178bb87a56 |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n#if AFTER\n@_weakLinked public struct ResilientStruct {\n public init() {}\n\n public func fn(_ x: Int) {}\n\n public var storedProp: Int = 0\n\n public var computedProp: Int {\n get { return 0 }\n set { }\n }\n\n pub... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\backward_deploy_struct.swift | backward_deploy_struct.swift | Swift | 667 | 0.8 | 0.044444 | 0.142857 | node-utils | 675 | 2024-05-31T07:40:42.534239 | BSD-3-Clause | true | bfc3b3b8fac182e3401a76082472afcb |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n#if AFTER\n@_weakLinked public func topLevelFunction(_ x: Int) {}\n\n@_weakLinked public var storedGlobal: Int = 0\n\n@_weakLinked public var computedGlobal: Int {\n get {\n return 0\n }\n set {}\n}\n#endif\n | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\backward_deploy_top_level.swift | backward_deploy_top_level.swift | Swift | 285 | 0.8 | 0.1 | 0.294118 | node-utils | 729 | 2023-09-05T02:22:00.783557 | MIT | true | fedbfe6e012e2ebe4f7decd435fc5e37 |
public protocol Reporter {\n func report() -> String\n}\npublic class Subject {\n public var value = 1\n public init(_ v: Int) {\n value = v\n }\n}\npublic var s2 = Subject(2)\npublic var s3 = Subject(3)\npublic var s4 = Subject(4)\npublic var s5 = Subject(5)\n\npublic struct Container : Reporter {\n#if BEFORE\... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\bitwise_takable.swift | bitwise_takable.swift | Swift | 1,429 | 0.95 | 0.054795 | 0.095238 | awesome-app | 60 | 2023-09-03T18:58:22.499156 | MIT | true | 2fe6f6336ce99561431a71a3170a743d |
\n#if BEFORE\n\npublic func changeDefaultArgumentToMagic(name: String = "hello") {}\n\n#else\n\npublic func changeDefaultArgumentToMagic(name: String = #file) {}\n\n#endif\n | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\change_default_argument_to_magic.swift | change_default_argument_to_magic.swift | Swift | 163 | 0.8 | 0.1 | 0.6 | awesome-app | 772 | 2025-02-06T19:37:37.382081 | Apache-2.0 | true | 32a92e7d33480fd5352fe04f590e7ac2 |
open class AddConvenienceInit {\n public let age: Int\n\n public init(x: Int) {\n self.age = x\n }\n\n#if BEFORE\n\n public convenience init(z: Int) {\n self.init(x: z * z + 2)\n }\n\n#else\n\n public convenience init(z: Int) {\n self.init(y: z * z)\n }\n\n public convenience init(y: Int) {\n self.i... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_add_convenience_init.swift | class_add_convenience_init.swift | Swift | 329 | 0.95 | 0.076923 | 0.166667 | node-utils | 250 | 2024-07-10T08:52:32.730769 | GPL-3.0 | true | 9e337a65dcffeb52442bb1b002c3278a |
public var count = 0\n\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\nopen class Base {\n public init() {}\n\n#if AFTER\n deinit {\n count += 1\n }\n#endif\n}\n\nopen class Derived : Base {\n deinit {\n count += 10\n }\n}\n | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_add_deinit.swift | class_add_deinit.swift | Swift | 254 | 0.95 | 0.16 | 0.238095 | awesome-app | 354 | 2024-12-24T23:31:20.733471 | GPL-3.0 | true | 1613a15dbb9c2c5e3520efcbcadfab4a |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n#if BEFORE\n\npublic final class AddStoredProperty {\n public init() {\n forth = "Chuck Moore"\n }\n\n public var forth: String\n\n public var languageDesigners: [String] {\n return [forth]\n }\n}\n\n#else\n\npublic ... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_add_property.swift | class_add_property.swift | Swift | 590 | 0.95 | 0.095238 | 0.1875 | python-kit | 947 | 2023-11-19T07:39:14.798427 | MIT | true | 9fdb4a62c96ed800c88bb373eb3cfb28 |
public var count = 0\n\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\npublic class MathClass {\n public init() {}\n}\n\npublic class Attributed {\n public init(x: MathClass, y: MathClass) {\n self.x = x\n self.y = y\n }\n\n#if BEFORE\n public var x: MathClass?\n p... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_add_property_attribute.swift | class_add_property_attribute.swift | Swift | 402 | 0.95 | 0.142857 | 0.25 | awesome-app | 457 | 2025-02-22T01:01:06.529269 | GPL-3.0 | true | c0513cc59377d2912c47d787ec0d263e |
\n#if BEFORE\n\nopen class AddStoredProperty {\n public let x: Int\n\n public init(x: Int) {\n self.x = x\n }\n\n public func get() -> (Int, Int) {\n return (x, -x)\n }\n}\n\n#else\n\nopen class AddStoredProperty {\n public let x: Int\n public let y: Int\n\n public init(x: Int) {\n self.x = x\n self... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_add_property_subclass.swift | class_add_property_subclass.swift | Swift | 378 | 0.95 | 0.09375 | 0.130435 | awesome-app | 471 | 2023-08-25T06:23:42.929919 | MIT | true | 42b4b85840c5b8ff0e16492bc7763879 |
\n#if BEFORE\n\npublic class ChangeLazyToComputed {\n private var celsius: Int\n\n public init(celsius: Int) {\n self.celsius = celsius\n }\n\n public lazy var fahrenheit: Int = (celsius * 9) / 5 + 32\n}\n\n#else\n\npublic class ChangeLazyToComputed {\n private var celsius: Int\n\n public init(celsius: Int) {\... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_change_lazy_to_computed.swift | class_change_lazy_to_computed.swift | Swift | 489 | 0.95 | 0.090909 | 0.125 | awesome-app | 285 | 2024-08-22T13:46:04.661635 | MIT | true | 09b77beb8c84b10489b2f964d945a0a7 |
\npublic struct ChangeSize {\n public init(version: Int32) {\n self._version = T(version)\n }\n\n public var version: Int32 {\n get { return Int32(_version) }\n set { _version = T(newValue) }\n }\n\n#if BEFORE\n typealias T = Int32\n#else\n typealias T = Int64\n#endif\n\n private var _version: T\n}\n\n@... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_change_size.swift | class_change_size.swift | Swift | 1,066 | 0.95 | 0.061224 | 0.078947 | vue-tools | 138 | 2025-02-03T07:57:48.360833 | Apache-2.0 | true | f02181e0b9ba3a9aca4517255af6eaf9 |
\n#if BEFORE\n\npublic class ChangeStoredToComputed {\n public init() {\n celsius = 0\n }\n\n public var celsius: Int\n\n public var fahrenheit: Int {\n get {\n return (celsius * 9) / 5 + 32\n }\n set {\n celsius = ((newValue - 32) * 5) / 9\n }\n }\n}\n\n#else\n\npublic class ChangeStoredT... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_change_stored_to_computed.swift | class_change_stored_to_computed.swift | Swift | 546 | 0.95 | 0.075 | 0.096774 | node-utils | 981 | 2024-10-29T03:55:31.193921 | BSD-3-Clause | true | 1982044c703e17f8d798c649c53c38f8 |
\n#if BEFORE\n\npublic func getVersion() -> Int {\n return 0\n}\n\npublic class ChangeStoredToObserved {\n public var friends: [String] = []\n public var count: Int = 0\n\n public var friend: String = "cat"\n\n public init() {}\n}\n\n#else\n\npublic func getVersion() -> Int {\n return 1\n\n}\n\npublic class Chang... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_change_stored_to_observed.swift | class_change_stored_to_observed.swift | Swift | 539 | 0.95 | 0.075 | 0.107143 | vue-tools | 978 | 2024-12-30T10:09:01.529868 | BSD-3-Clause | true | 20095ed848631da66dae75d314677d8a |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n#if BEFORE\n\n@_fixed_layout\npublic class AddVirtualMethod {\n public init() {}\n\n public func firstMethod() -> Int {\n return 1\n }\n\n public func secondMethod() -> Int {\n return 2\n }\n}\n\n#else\n\n@_fixed_lay... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_fixed_layout_add_virtual_method.swift | class_fixed_layout_add_virtual_method.swift | Swift | 592 | 0.95 | 0.088889 | 0.205882 | awesome-app | 277 | 2023-07-30T13:30:35.057648 | Apache-2.0 | true | 11cd964a1ec746b8790cf44bce8fa121 |
\n#if BEFORE\n\n@_fixed_layout\nopen class AddVirtualMethod {\n public init() {}\n\n open func f1() -> Int {\n return 1\n }\n}\n\n#else\n\n@_fixed_layout\nopen class AddVirtualMethod {\n public init() {}\n\n open func f1() -> Int {\n return f2() + 1\n }\n\n open func f2() -> Int {\n return 0\n }\n}\n\n... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_fixed_layout_add_virtual_method_subclass.swift | class_fixed_layout_add_virtual_method_subclass.swift | Swift | 300 | 0.95 | 0.107143 | 0.15 | react-lib | 4 | 2023-08-20T23:43:56.556941 | Apache-2.0 | true | cc8c26205df28b3f6112382455a7751c |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n#if BEFORE\n@_fixed_layout\nopen class Base {\n public init() {}\n open func firstMethod() -> Int {\n return 1\n }\n open func secondMethod() -> Int {\n return 2\n }\n open func callOverriddenMethods() -> Int {\n r... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_fixed_layout_superclass_reorder_methods.swift | class_fixed_layout_superclass_reorder_methods.swift | Swift | 795 | 0.95 | 0.104167 | 0.133333 | vue-tools | 484 | 2024-08-22T12:57:39.470920 | BSD-3-Clause | true | c576074f87bd61096675e3f59fb23655 |
open class Root {}\n\n#if BEFORE\n\nopen class FirstMiddle : Root {\n let x: String\n\n public init(x: String) {\n self.x = x\n }\n\n public func get() -> String {\n return x\n }\n}\n\nopen class SecondMiddle : Root {\n let x: String\n\n public init(x: String) {\n self.x = x\n }\n\n public func get() ... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_insert_superclass.swift | class_insert_superclass.swift | Swift | 1,210 | 0.95 | 0.119565 | 0.085714 | react-lib | 977 | 2023-09-19T15:35:19.675718 | GPL-3.0 | true | 3ea065257fcc3815105fc76f5c520def |
\n#if BEFORE\n\npublic final class RemoveStoredProperty {\n public init(first: String, middle: String, last: String) {\n self.first = first\n self.middle = middle\n self.last = last\n }\n\n var first: String\n var middle: String\n var last: String\n\n public var name: String {\n return "\(first) \(mid... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_remove_property.swift | class_remove_property.swift | Swift | 524 | 0.95 | 0.09375 | 0.136364 | vue-tools | 464 | 2024-10-24T00:54:41.526216 | Apache-2.0 | true | 1c07f3dfb5006baabd74a337e5e98389 |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\nopen class AddOverrideBase {\n public init() {}\n\n public var description: String {\n return "Base"\n }\n\n public var count: Int = 0\n}\n\n#if BEFORE\n\nopen class AddOverrideGeneric<T> : AddOverrideBase {}\n\nopen cla... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_resilient_add_override.swift | class_resilient_add_override.swift | Swift | 833 | 0.95 | 0.14 | 0.162162 | python-kit | 693 | 2024-08-26T18:07:37.144584 | MIT | true | ae187544d255cbdcfcede8b0da8ccd7b |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n#if BEFORE\n\npublic class AddVirtualMethod {\n public init() {}\n\n public func firstMethod() -> Int {\n return 1\n }\n\n public func secondMethod() -> Int {\n return 2\n }\n}\n\n#else\n\npublic class AddVirtualMeth... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_resilient_add_virtual_method.swift | class_resilient_add_virtual_method.swift | Swift | 562 | 0.95 | 0.093023 | 0.21875 | python-kit | 290 | 2023-09-20T01:40:44.397304 | MIT | true | 6b666dc21f0e9686de9b27ae29cce1fb |
\n#if BEFORE\n\nopen class AddVirtualMethod {\n public init() {}\n\n open func f1() -> Int {\n return 1\n }\n}\n\n#else\n\nopen class AddVirtualMethod {\n public init() {}\n\n open func f1() -> Int {\n return f2() + 1\n }\n\n open func f2() -> Int {\n return 0\n }\n}\n\n#endif\n | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_resilient_add_virtual_method_subclass.swift | class_resilient_add_virtual_method_subclass.swift | Swift | 270 | 0.95 | 0.115385 | 0.166667 | vue-tools | 923 | 2025-04-16T18:39:38.173760 | BSD-3-Clause | true | 63aa43e63f1707962de7e7784198fc48 |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\nopen class Base {\n public init() {}\n open func method() -> String {\n return "Base.method()"\n }\n open class func classMethod() -> String {\n return "Base.classMethod()"\n }\n\n open func nonOverriddenMethod() -> S... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_resilient_superclass_methods.swift | class_resilient_superclass_methods.swift | Swift | 1,288 | 0.95 | 0.258065 | 0.214286 | awesome-app | 896 | 2024-07-21T18:41:36.056978 | GPL-3.0 | true | 05250b6fff70981f71800fdc9a7637b5 |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\nopen class Base {\n public init() {}\n open var property: String {\n return "Base.property"\n }\n open var nonOverriddenProperty: String {\n return "Base.nonOverriddenProperty"\n }\n open class var classProperty: Stri... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_resilient_superclass_properties.swift | class_resilient_superclass_properties.swift | Swift | 1,276 | 0.95 | 0.262295 | 0.214286 | python-kit | 410 | 2025-01-12T12:13:16.134915 | MIT | true | df886b8af5586ee9e54aa39ff254ff00 |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n#if BEFORE\nopen class Base {\n public init() {}\n open func firstMethod() -> Int {\n return 1\n }\n open func secondMethod() -> Int {\n return 2\n }\n open func callOverriddenMethods() -> Int {\n return firstMetho... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\class_resilient_superclass_reorder_methods.swift | class_resilient_superclass_reorder_methods.swift | Swift | 750 | 0.95 | 0.111111 | 0.142857 | python-kit | 806 | 2023-09-05T12:49:57.324921 | GPL-3.0 | true | c9da2d15490160e0791e668b69b07e9a |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n\npublic protocol BaseProtocol {\n#if AFTER\n associatedtype Assoc = Self\n#endif\n}\n\npublic protocol DerivedProtocol : BaseProtocol {}\n\n\npublic struct FirstGeneric<T> : BaseProtocol {\n public init() {}\n}\n\npublic str... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\conformance_reference.swift | conformance_reference.swift | Swift | 498 | 0.8 | 0.085714 | 0.285714 | python-kit | 521 | 2023-09-25T23:00:19.486881 | Apache-2.0 | true | 16ebb34b13ee97d2163785c6bbeda553 |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\npublic var starfishCount: Int = 0\n\npublic class Starfish : Hashable {\n public init() {\n starfishCount += 1\n }\n\n deinit {\n starfishCount -= 1\n }\n\n public static func ==(lhs: Starfish, rhs: Starfish) -> Bool {... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\enum_add_cases.swift | enum_add_cases.swift | Swift | 3,022 | 0.95 | 0.101266 | 0.340909 | node-utils | 626 | 2024-02-17T21:13:48.162401 | Apache-2.0 | true | 5d61f65f51ddf3e25d7e464b8ef488e5 |
public func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\npublic var starfishCount: Int = 0\n\npublic class Starfish : Hashable {\n public init() {\n starfishCount += 1\n }\n\n deinit {\n starfishCount -= 1\n }\n\n public static func ==(lhs: Starfish, rhs: Starfish) -> Bool {... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\enum_add_cases_trap.swift | enum_add_cases_trap.swift | Swift | 3,022 | 0.95 | 0.101266 | 0.340909 | node-utils | 608 | 2023-11-25T12:18:33.446563 | BSD-3-Clause | true | 5d61f65f51ddf3e25d7e464b8ef488e5 |
class BoxInt {\n let value: Int\n\n init(value: Int) {\n self.value = value\n }\n}\n\npublic struct ChangeSize {\n public init(value: Int) {\n#if BEFORE\n _value = BoxInt(value: value)\n#else\n _value1 = Int64(value)\n _value2 = Int64(value)\n#endif\n }\n\n public var value: Int {\n#if BEFORE\n ret... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\enum_change_size.swift | enum_change_size.swift | Swift | 1,122 | 0.95 | 0.061538 | 0.163636 | vue-tools | 151 | 2024-01-06T06:03:38.762215 | BSD-3-Clause | true | c5438a06961695c5a9e213780c135bb0 |
public enum GenericResilientEnum<T> {\n#if BEFORE\n case FirstCase\n case SecondCase\n case ThirdCase(SomeObject)\n case ForthCase(T)\n#else\n case SecondCase\n case ForthCase(T)\n case FirstCase\n case ThirdCase(SomeObject)\n#endif\n}\n\npublic class SomeObject {\n public func someNumber() -> Int{\n return... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\enum_reorder_cases.swift | enum_reorder_cases.swift | Swift | 1,091 | 0.95 | 0.06383 | 0.068182 | react-lib | 906 | 2024-03-03T01:23:43.489897 | Apache-2.0 | true | e2a842e58a2225baeb55b2705c8abbc7 |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n@_transparent public func getBuildVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\npublic func getFunction(_ x: Int) -> (Int) -> Int {\n // Force a re-abstraction thunk for (T -> T) => (Int -> Int) t... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\function_change_transparent_body.swift | function_change_transparent_body.swift | Swift | 835 | 0.95 | 0.139535 | 0.485714 | node-utils | 948 | 2024-02-23T12:31:42.044289 | GPL-3.0 | true | 126a0df1a6866871fdfbb3fbc7b02e91 |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\npublic protocol P {\n static func compute() -> Int\n}\n\npublic struct A : P {\n public init() {}\n\n public static func compute() -> Int {\n return 42\n }\n}\n\n#if BEFORE\n\npublic struct S<T: P> {\n public init() {}\... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\generic_resilient_struct_add_property.swift | generic_resilient_struct_add_property.swift | Swift | 429 | 0.8 | 0.051282 | 0.214286 | python-kit | 951 | 2023-09-04T21:53:10.668401 | GPL-3.0 | true | 10af852f851b70ecacf416085072411c |
#if BEFORE\n\nvar global: Int = 0\n\npublic struct ChangeEmptyToNonEmpty {\n public init() {}\n\n public var property: Int {\n get { return global }\n set { global = newValue }\n }\n}\n\n#else\n\npublic struct ChangeEmptyToNonEmpty {\n public init() {\n property = 0 \n }\n\n public var property: Int\n}\n... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\global_change_size.swift | global_change_size.swift | Swift | 1,618 | 0.8 | 0.053191 | 0.15493 | node-utils | 80 | 2024-08-22T02:58:23.146853 | MIT | true | 5d9ae60a05d0852b8b0a44ebc14d6222 |
#if BEFORE\n\npublic var globalStoredToComputed: Int = 0\n\n#else\n\nvar _realValue: Int = 0\n\npublic var globalStoredToComputed: Int {\n get {\n return _realValue\n }\n set {\n _realValue = newValue\n }\n}\n\n#endif\n | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\global_stored_to_computed.swift | global_stored_to_computed.swift | Swift | 211 | 0.8 | 0.055556 | 0.230769 | awesome-app | 64 | 2023-09-09T23:50:30.186180 | BSD-3-Clause | true | 593a4a354a8c03e61738e6daac8e0b4b |
\n#if BEFORE\n\npublic struct ResilientStruct {\n public init() {}\n\n public var value: Int = 0\n\n public mutating func change(_ keyPath: WritableKeyPath<ResilientStruct, Int> = \.value) -> Int {\n self[keyPath: keyPath] = 10\n return value\n }\n}\n\n#else\n\npublic struct ResilientStruct {\n public init()... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\keypath_default_argument.swift | keypath_default_argument.swift | Swift | 610 | 0.8 | 0.027027 | 0.111111 | vue-tools | 815 | 2024-01-03T16:37:19.088372 | Apache-2.0 | true | faa6f34f1592286a6816f5165c6b7464 |
public struct Rain {\n public init() {}\n\n#if BEFORE\n public func doIt() {}\n#endif\n}\n\npublic class Snow {\n public init() {}\n\n#if BEFORE\n public final func doIt() {}\n#endif\n}\n\n#if AFTER\nextension Rain {\n public func doIt() {}\n}\n\nextension Snow {\n public func doIt() {}\n}\n#endif\n | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\move_method_to_extension.swift | move_method_to_extension.swift | Swift | 281 | 0.95 | 0.16 | 0.3 | react-lib | 525 | 2024-03-25T16:18:24.527137 | BSD-3-Clause | true | 64e5dd23d1f16a0f73cb735daac5736a |
public protocol P {\n func getValue() -> Int\n}\n\nextension Int : P {\n public func getValue() -> Int {\n return self + 1\n }\n}\n\n#if !BEFORE\npublic struct Pair : P {\n var x = 0\n var y = 1\n\n public func getValue() -> Int {\n return y\n }\n}\n#endif\n\n@available(macOS 10.15, iOS 13.0, watchOS 6.0, ... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\opaque_archetypes_change_underlying_type.swift | opaque_archetypes_change_underlying_type.swift | Swift | 1,237 | 0.8 | 0.046154 | 0.148148 | node-utils | 997 | 2024-07-09T18:42:08.480460 | MIT | true | c65690aaa0542313c3882ed0c4db56c3 |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n\npublic protocol ElementProtocol : Equatable {\n func increment() -> Self\n}\n\npublic protocol AddMethodsProtocol {\n associatedtype Element : ElementProtocol\n\n func importantOperation() -> Element\n func unimportantOpe... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\protocol_add_requirements.swift | protocol_add_requirements.swift | Swift | 4,375 | 0.95 | 0.082949 | 0.208791 | vue-tools | 995 | 2024-05-01T03:30:21.019045 | MIT | true | d4db8f7fc8c88b0b4e1fc0d57e41616a |
public protocol Bed {\n func squiggle()\n}\n\npublic protocol Outfit {\n var size: Int { get }\n}\n\npublic protocol Eater {\n#if BEFORE\n func eat()\n func poop()\n#else\n func poop()\n func eat()\n#endif\n}\n\npublic protocol Wiggler {\n#if BEFORE\n func wiggle()\n func cry()\n#else\n func cry()\n func wigg... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\protocol_reorder_requirements.swift | protocol_reorder_requirements.swift | Swift | 1,158 | 0.8 | 0.068493 | 0.155172 | vue-tools | 870 | 2025-01-15T23:45:34.654315 | MIT | true | e2b639abf5d48c817df1d30b3fa1d3c2 |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n#if BEFORE\n\n@frozen\npublic struct AddInitializer {\n public var x: Int\n\n // This could be @inlinable, but we want to force inlining to take place\n // at -Onone to get better test coverage.\n @_transparent\n public in... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_add_initializer.swift | struct_add_initializer.swift | Swift | 447 | 0.8 | 0.058824 | 0.307692 | vue-tools | 150 | 2023-12-16T11:17:29.760904 | Apache-2.0 | true | 8cd164d010260ba56e2b96dd7cbfaa34 |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n#if BEFORE\n\npublic struct AddStoredProperty {\n public init() {\n forth = "Chuck Moore"\n }\n\n public var forth: String\n\n public var languageDesigners: [String] {\n return [forth]\n }\n}\n\n#else\n\npublic struc... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_add_property.swift | struct_add_property.swift | Swift | 972 | 0.8 | 0.041667 | 0.173077 | awesome-app | 575 | 2023-08-05T14:51:02.560266 | BSD-3-Clause | true | e4943d629d45e869e0f544ea2eade0fb |
public var count = 0\n\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\npublic class MathClass {\n public init() {}\n}\n\npublic struct Attributed {\n public init(x: MathClass, y: MathClass) {\n self.x = x\n self.y = y\n }\n\n#if BEFORE\n public var x: MathClass?\n ... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_add_property_attribute.swift | struct_add_property_attribute.swift | Swift | 403 | 0.95 | 0.107143 | 0.25 | node-utils | 515 | 2023-11-17T08:34:23.965018 | BSD-3-Clause | true | 3bf92c39dab70d387b81783313b8843d |
\n#if BEFORE\n\npublic struct ChangeLazyToComputed {\n private var celsius: Int\n\n public init(celsius: Int) {\n self.celsius = celsius\n }\n\n public lazy var fahrenheit: Int = (celsius * 9) / 5 + 32\n}\n\n#else\n\npublic struct ChangeLazyToComputed {\n private var celsius: Int\n\n public init(celsius: Int) ... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_change_lazy_to_computed.swift | struct_change_lazy_to_computed.swift | Swift | 500 | 0.8 | 0.030303 | 0.125 | python-kit | 741 | 2024-04-12T12:06:40.997762 | GPL-3.0 | true | a1edf5429f6ec481066e6354e4e790eb |
\npublic struct ChangeSize {\n public init(version: Int32) {\n self._version = T(version)\n }\n\n public var version: Int32 {\n get { return Int32(_version) }\n set { _version = T(newValue) }\n }\n\n#if BEFORE\n typealias T = Int32\n#else\n typealias T = Int64\n#endif\n\n private var _version: T\n}\n\n@... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_change_size.swift | struct_change_size.swift | Swift | 753 | 0.8 | 0.028571 | 0.107143 | node-utils | 498 | 2023-11-03T04:22:07.801644 | MIT | true | 06e5fc549da0c5c3d9f2eee792b560b8 |
\n#if BEFORE\n\npublic struct ChangeStoredToComputed {\n public init() {\n celsius = 0\n }\n\n public var celsius: Int\n\n public var fahrenheit: Int {\n get {\n return (celsius * 9) / 5 + 32\n }\n set {\n celsius = ((newValue - 32) * 5) / 9\n }\n }\n}\n\n#else\n\npublic struct ChangeStore... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_change_stored_to_computed.swift | struct_change_stored_to_computed.swift | Swift | 543 | 0.8 | 0.025 | 0.096774 | node-utils | 466 | 2023-09-07T10:52:57.895139 | GPL-3.0 | true | 416ec552e4efb4bd4ce1a0e9e0de35cd |
\n#if BEFORE\n\n@frozen\npublic struct ChangeStoredToComputed {\n public static var celsius: Int = 0\n\n public static var fahrenheit: Int {\n get {\n return (celsius * 9) / 5 + 32\n }\n set {\n celsius = ((newValue - 32) * 5) / 9\n }\n }\n}\n\n#else\n\n@frozen\npublic struct ChangeStoredToComp... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_change_stored_to_computed_static.swift | struct_change_stored_to_computed_static.swift | Swift | 514 | 0.8 | 0.029412 | 0.111111 | vue-tools | 237 | 2024-05-25T14:34:02.507421 | BSD-3-Clause | true | ceb7a5f7adb46e490807ae6c4aa2e4ab |
\n#if BEFORE\n\npublic func getVersion() -> Int {\n return 0\n}\n\npublic struct ChangeStoredToObserved {\n public var friends: [String] = []\n public var count: Int = 0\n\n public var friend: String = "cat"\n\n public init() {}\n}\n\n#else\n\npublic func getVersion() -> Int {\n return 1\n\n}\n\npublic struct Cha... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_change_stored_to_observed.swift | struct_change_stored_to_observed.swift | Swift | 541 | 0.8 | 0.025 | 0.107143 | vue-tools | 882 | 2024-08-13T16:28:59.903936 | GPL-3.0 | true | 5a60caa46d54544ac91d295bf186e1a9 |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\n@frozen public struct AddConformance {\n public init() {\n x = 0\n y = 0\n }\n\n public var x: Int\n public var y: Int\n\n public var z: Int {\n get { return x + y }\n set {\n x = newValue / 2\n y = n... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_fixed_layout_add_conformance.swift | struct_fixed_layout_add_conformance.swift | Swift | 694 | 0.8 | 0.0625 | 0.125 | react-lib | 666 | 2025-03-08T02:26:41.465565 | Apache-2.0 | true | 3b443e64202822c45323c6c687bb1853 |
\n@frozen public struct RemoveConformance {\n public init() {\n x = 0\n y = 0\n }\n\n public var x: Int\n public var y: Int\n\n public var z: Int {\n get { return x + y }\n set {\n x = newValue / 2\n y = newValue - x\n }\n }\n}\n\n#if BEFORE\nprotocol InternalProtocol {\n var x: Int { ge... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_fixed_layout_remove_conformance.swift | struct_fixed_layout_remove_conformance.swift | Swift | 417 | 0.8 | 0.035714 | 0.086957 | python-kit | 816 | 2025-01-11T20:46:58.408864 | GPL-3.0 | true | 67ec1f3b1a05b9a68b5679a92a5ebfac |
\n#if BEFORE\n\npublic struct RemoveStoredProperty {\n public init(first: String, middle: String, last: String) {\n self.first = first\n self.middle = middle\n self.last = last\n }\n\n var first: String\n var middle: String\n var last: String\n\n public var name: String {\n return "\(first) \(middle) ... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_remove_property.swift | struct_remove_property.swift | Swift | 514 | 0.8 | 0.03125 | 0.136364 | node-utils | 242 | 2024-10-21T02:09:06.769892 | BSD-3-Clause | true | 0580fa6dff7ff03230c8c2015efd8d1a |
\npublic func getVersion() -> Int {\n#if BEFORE\n return 0\n#else\n return 1\n#endif\n}\n\npublic struct AddConformance {\n public init() {\n x = 0\n y = 0\n }\n\n public var x: Int\n public var y: Int\n\n public var z: Int {\n get { return x + y }\n set {\n x = newValue / 2\n y = newValue ... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_resilient_add_conformance.swift | struct_resilient_add_conformance.swift | Swift | 686 | 0.8 | 0.0625 | 0.125 | react-lib | 246 | 2024-05-21T00:22:49.368840 | Apache-2.0 | true | 0bd6fa13321b9e3d5128b36f73e9beca |
\npublic struct RemoveConformance {\n public init() {\n x = 0\n y = 0\n }\n\n public var x: Int\n public var y: Int\n\n public var z: Int {\n get { return x + y }\n set {\n x = newValue / 2\n y = newValue - x\n }\n }\n}\n\n#if BEFORE\nprotocol InternalProtocol {\n var x: Int { get set }\... | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_resilient_remove_conformance.swift | struct_resilient_remove_conformance.swift | Swift | 409 | 0.8 | 0.035714 | 0.086957 | python-kit | 842 | 2024-02-14T19:54:15.089143 | BSD-3-Clause | true | 096f0ce4976a227ac24f17fe89a0f8e7 |
\nvar _value: Int = 0\n\npublic struct ChangeStoredToComputed {\n\n public init() {}\n\n#if BEFORE\n\n public static var value: Int = 0\n\n#else\n\n public static var value: Int {\n get {\n return _value * 2\n }\n set {\n _value = newValue / 2\n }\n }\n\n#endif\n\n}\n | dataset_sample\swift\apple_swift\validation-test\Evolution\Inputs\struct_static_stored_to_computed.swift | struct_static_stored_to_computed.swift | Swift | 269 | 0.8 | 0.04 | 0.1875 | awesome-app | 636 | 2024-10-25T03:51:51.334738 | Apache-2.0 | true | 6b98a1b8bc4dc408ba4b7a9c07563971 |
// RUN: %empty-directory(%t)\n// RUN: %target-clang -x objective-c -c %S/Inputs/arc_36509461.m -o %t/arc_36509461.m.o\n// RUN: %target-swift-frontend -c -O -import-objc-header %S/Inputs/arc_36509461.h -sanitize=address %s -o %t/arc_36509461.swift.o\n// RUN: %target-build-swift %t/arc_36509461.m.o %t/arc_36509461.swift... | dataset_sample\swift\apple_swift\validation-test\execution\arc_36509461.swift | arc_36509461.swift | Swift | 1,418 | 0.95 | 0 | 0.222222 | react-lib | 147 | 2024-11-29T06:46:30.023097 | BSD-3-Clause | true | 49d4c499e96fecb8dd8e45cfa201cb86 |
// RUN: %empty-directory(%t)\n\n// RUN: %target-build-swift-dylib(%t/%target-library-name(first)) %S/Inputs/dsohandle-first.swift -emit-module -module-name first\n// RUN: %target-build-swift-dylib(%t/%target-library-name(second)) %S/Inputs/dsohandle-second.swift -emit-module -module-name second\n// RUN: %target-build-s... | dataset_sample\swift\apple_swift\validation-test\execution\dsohandle-multi-module.swift | dsohandle-multi-module.swift | Swift | 930 | 0.95 | 0.038462 | 0.444444 | react-lib | 95 | 2023-09-09T21:06:40.063095 | GPL-3.0 | true | 1c71c9e1368b0e6eb45b1b5c906fa8f5 |
// REQUIRES: OS=linux-gnu\n// RUN: %empty-directory(%t)\n\n// RUN: echo 'int abc = 42;' | %clang -x c - -shared -fPIC -o %t/libabc.so\n// RUN: echo 'int test() { extern int abc; return abc; }' | %clang -x c - -L%t -shared -fPIC -labc -o %t/libfoo.so\n\n// RUN: %swift_driver -I %S/Inputs/custom-modules -L%t %s | %FileCh... | dataset_sample\swift\apple_swift\validation-test\execution\interpret-with-dependencies-linux.swift | interpret-with-dependencies-linux.swift | Swift | 889 | 0.95 | 0.038462 | 0.7 | awesome-app | 563 | 2024-01-08T23:00:52.052951 | GPL-3.0 | true | fc446ee37914cada7b31c9bfef56f3d9 |
// REQUIRES: OS=macosx\n// RUN: %empty-directory(%t)\n// REQUIRES: swift_interpreter\n\n// RUN: echo 'int abc = 42;' | %clang -x c - -dynamiclib -Xlinker -install_name -Xlinker libabc.dylib -o %t/libabc.dylib -L %sdk/usr/lib\n// RUN: echo 'int test() { extern int abc; return abc; }' | %clang -x c - -L%t -dynamiclib -la... | dataset_sample\swift\apple_swift\validation-test\execution\interpret-with-dependencies.swift | interpret-with-dependencies.swift | Swift | 524 | 0.95 | 0.058824 | 0.538462 | node-utils | 875 | 2023-12-09T17:02:53.784998 | Apache-2.0 | true | 5cb1be857e3945e35afe983497d26462 |
// RUN: %target-run-simple-swift | %FileCheck %s\n// REQUIRES: executable_test\n\n// https://github.com/apple/swift/issues/52070\n\nprotocol P {\n associatedtype T\n func foo(t: inout T)\n}\nstruct S: P {\n func foo(t: inout () -> Void) {\n t()\n t = { print("new") }\n }\n}\n\nfunc doTheFoo<SomeP: P>(_ p: Som... | dataset_sample\swift\apple_swift\validation-test\execution\issue-52070.swift | issue-52070.swift | Swift | 583 | 0.8 | 0 | 0.269231 | vue-tools | 392 | 2024-05-24T08:11:43.028363 | GPL-3.0 | true | 24785cec61719ed55829f26fcf1bafa2 |
// RUN: %empty-directory(%t)\n// RUN: split-file %s %t\n// RUN: %target-build-swift-dylib(%t/%target-library-name(Library)) -emit-module -emit-module-path %t/Library.swiftmodule -module-name Library -parse-as-library %t/Library.swift -swift-version 5 -enable-library-evolution\n// RUN: %target-build-swift-dylib(%t/%targ... | dataset_sample\swift\apple_swift\validation-test\execution\unavailable_decls.swift | unavailable_decls.swift | Swift | 795 | 0.95 | 0 | 0.333333 | vue-tools | 715 | 2024-05-23T22:48:51.372171 | GPL-3.0 | true | 9232d1dd71f835967e6f40d918931b10 |
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=T1 | %FileCheck %s -check-prefix=T1\n\n// REQUIRES: objc_interop\n// REQUIRES: no_asan\n\n// FIXME: iOS has no Cocoa.framework\n// REQUIRES: OS=macosx\n// A smoketest for code completion in Cocoa.\n\nimport Cocoa\n\nfunc testUnqu... | dataset_sample\swift\apple_swift\validation-test\IDE\complete_from_cocoa.swift | complete_from_cocoa.swift | Swift | 863 | 0.95 | 0.058824 | 0.769231 | awesome-app | 432 | 2023-11-18T12:40:11.383928 | GPL-3.0 | true | 5f27d1eea0d9ec5b72f9f3292e6aced9 |
// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=T1 | %FileCheck %s -check-prefix=T1\n// RUN: %target-swift-ide-test -code-completion -source-filename %s -code-completion-token=T2 | %FileCheck %s -check-prefix=T2\n\n// REQUIRES: objc_interop\n\n// FIXME: iOS has no Cocoa.framew... | dataset_sample\swift\apple_swift\validation-test\IDE\complete_from_cocoa_2.swift | complete_from_cocoa_2.swift | Swift | 1,564 | 0.95 | 0.041667 | 0.631579 | node-utils | 81 | 2023-10-23T17:00:30.589612 | GPL-3.0 | true | b6a763018d4199b82a299759bda3a1d1 |
// RUN: %target-swift-ide-test -repl-code-completion -source-filename %s | %FileCheck %s\n\n// A smoketest for REPL code completion in Cocoa.\n\n// REQUIRES: objc_interop\n// FIXME: iOS has no Cocoa.framework\n// REQUIRES: OS=macosx\n\n// CHECK: {{^}}CFArrayCreateCopy(allocator: CFAllocator!, theArray: CFArray!) -> CFA... | dataset_sample\swift\apple_swift\validation-test\IDE\complete_repl_from_cocoa.swift | complete_repl_from_cocoa.swift | Swift | 379 | 0.95 | 0.076923 | 0.875 | node-utils | 141 | 2023-10-19T23:48:47.741156 | Apache-2.0 | true | eff1396adf173ee58783db381332f9fc |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.