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: %target-run-simple-swift\n// REQUIRES: executable_test\n\nimport StdlibUnittest\n\n\n#if canImport(Darwin)\n import Darwin\n#elseif canImport(Glibc)\n import Glibc\n#elseif os(Windows)\n import MSVCRT\n#elseif canImport(Android)\n import Android\n#else\n#error("Unsupported platform")\n#endif\n\nfunc simple_getline() -> [UInt8]? {\n var result = [UInt8]()\n while true {\n let c = getchar()\n if c == EOF {\n if result.count == 0 {\n return nil\n }\n return result\n }\n result.append(UInt8(c))\n if c == CInt(UnicodeScalar("\n").value) {\n return result\n }\n }\n}\n\nvar StdinTestSuite = TestSuite("Stdin")\n\nStdinTestSuite.test("Empty")\n .stdin("")\n .code {\n}\n\nStdinTestSuite.test("EmptyLine")\n .stdin("\n")\n .code {\n expectEqual([ 0x0a ], simple_getline())\n}\n\nStdinTestSuite.test("Whitespace")\n .stdin(" \n")\n .code {\n expectEqual([ 0x20, 0x0a ], simple_getline())\n}\n\nStdinTestSuite.test("NonEmptyLine")\n .stdin("abc\n")\n .code {\n expectEqual([ 0x61, 0x62, 0x63, 0x0a ], simple_getline())\n}\n\nStdinTestSuite.test("TwoLines")\n .stdin("abc\ndefghi\n")\n .code {\n expectEqual([ 0x61, 0x62, 0x63, 0x0a ], simple_getline())\n expectEqual(\n [ 0x64, 0x65, 0x66, 0x67, 0x68, 0x69, 0x0a ], simple_getline())\n}\n\nStdinTestSuite.test("EOF/1")\n .stdin("abc\n", eof: true)\n .code {\n expectEqual([ 0x61, 0x62, 0x63, 0x0a ], simple_getline())\n}\n\nStdinTestSuite.test("EOF/2")\n .stdin("abc\n", eof: true)\n .code {\n expectEqual([ 0x61, 0x62, 0x63, 0x0a ], simple_getline())\n}\n\nrunAllTests()\n\n
dataset_sample\swift\apple_swift\validation-test\StdlibUnittest\Stdin.swift
Stdin.swift
Swift
1,523
0.95
0.060976
0.132353
python-kit
543
2024-10-21T20:00:12.162137
Apache-2.0
true
9993a7ada2d180ececee3e9b2bdb9ca2
// RUN: %target-run-simple-swift 2>&1 | %FileCheck %s\n// REQUIRES: executable_test\n// FIXME: this test is failing for watchos <rdar://problem/29997111>\n// UNSUPPORTED: OS=watchos\n\nimport StdlibUnittest\n#if canImport(Darwin)\n import Darwin\n#elseif canImport(Glibc)\n import Glibc\n#elseif os(Windows)\n import MSVCRT\n#elseif canImport(Android)\n import Android\n#else\n#error("Unsupported platform")\n#endif\n\n_setTestSuiteFailedCallback() { print("abort()") }\n\n//\n// Test that harness aborts when a test crashes if a child process crashes\n// after all tests have finished running.\n//\n\nvar TestSuiteChildCrashes = TestSuite("TestSuiteChildCrashes")\n\nTestSuiteChildCrashes.test("passes") {\n atexit {\n fatalError("Crash at exit")\n }\n}\n\n// CHECK: [ RUN ] TestSuiteChildCrashes.passes\n// CHECK: [ OK ] TestSuiteChildCrashes.passes\n// CHECK: TestSuiteChildCrashes: All tests passed\n// CHECK: stderr>>> {{.*}}Fatal error: Crash at exit\n// CHECK: stderr>>> CRASHED: SIG\n// CHECK: The child process failed during shutdown, aborting.\n// CHECK: abort()\n\nrunAllTests()\n\n
dataset_sample\swift\apple_swift\validation-test\StdlibUnittest\ChildProcessShutdown\FailIfChildCrashesDuringShutdown.swift
FailIfChildCrashesDuringShutdown.swift
Swift
1,070
0.95
0.069767
0.628571
react-lib
921
2023-08-16T21:04:33.698340
Apache-2.0
true
127c9c70c5ade6261e55dfa2b45dbbac
// RUN: %target-run-simple-swift 2>&1 | %FileCheck %s\n// REQUIRES: executable_test\n\nimport StdlibUnittest\n#if canImport(Darwin)\n import Darwin\n#elseif canImport(Glibc)\n import Glibc\n#elseif os(Windows)\n import MSVCRT\n#elseif canImport(Android)\n import Android\n#else\n#error("Unsupported platform")\n#endif\n\n_setTestSuiteFailedCallback() { print("abort()") }\n\n//\n// Test that harness aborts when a test crashes if a child process exits with a\n// non-zero code after all tests have finished running.\n//\n\nvar TestSuiteChildExits = TestSuite("TestSuiteChildExits")\n\nTestSuiteChildExits.test("passes") {\n atexit {\n _exit(1)\n }\n}\n\n// CHECK: [ RUN ] TestSuiteChildExits.passes\n// CHECK: [ OK ] TestSuiteChildExits.passes\n// CHECK: TestSuiteChildExits: All tests passed\n// CHECK: Abnormal child process termination: Exit(1).\n// CHECK: The child process failed during shutdown, aborting.\n// CHECK: abort()\n\nrunAllTests()\n\n
dataset_sample\swift\apple_swift\validation-test\StdlibUnittest\ChildProcessShutdown\FailIfChildExitsDuringShutdown.swift
FailIfChildExitsDuringShutdown.swift
Swift
931
0.95
0.05
0.59375
react-lib
387
2024-12-01T14:55:41.572767
BSD-3-Clause
true
e638197add537a86d269776dbec6a062
// RUN: %target-run-simple-swift\n// REQUIRES: executable_test\n\nimport StdlibUnittest\n#if canImport(Darwin)\n import Darwin\n#elseif canImport(Glibc)\n import Glibc\n#elseif os(Windows)\n import MSVCRT\n#elseif canImport(Android)\n import Android\n#else\n#error("Unsupported platform")\n#endif\n\n//\n// Test that a test runs in its own child process if asked.\n//\n\nenum Globals {\n static var modifiedByChildProcess = false\n}\n\nvar TestSuiteRequireNewProcess = TestSuite("TestSuiteRequireNewProcess")\n\nTestSuiteRequireNewProcess.test("RequireOwnProcessBefore")\n .code {\n Globals.modifiedByChildProcess = true\n}\n\nTestSuiteRequireNewProcess.test("RequireOwnProcess")\n .requireOwnProcess()\n .code {\n expectEqual(false, Globals.modifiedByChildProcess)\n Globals.modifiedByChildProcess = true\n}\n\nTestSuiteRequireNewProcess.test("ShouldNotReusePreviousProcess") {\n expectEqual(false, Globals.modifiedByChildProcess)\n}\n\nrunAllTests()\n
dataset_sample\swift\apple_swift\validation-test\StdlibUnittest\ChildProcessShutdown\RequireOwnProcess.swift
RequireOwnProcess.swift
Swift
922
0.95
0.046512
0.342857
react-lib
475
2024-06-04T05:48:10.947861
GPL-3.0
true
282221d6366d64f345e0956bb2f52b0b
// RUN: %target-build-swift -module-name a %s -o %t.out\n// RUN: %target-codesign %t.out\n// RUN: %target-run %t.out\n// REQUIRES: executable_test\n\n// This test isn't temporarily disabled; it actually should terminate with a\n// non-zero exit code.\n//\n// XFAIL: *\n\n//\n// Check that terminating with abort() counts as test failure.\n//\n\nimport Darwin\n\nabort()\n\n
dataset_sample\swift\apple_swift\validation-test\test-runner\AbortIsFailure.swift
AbortIsFailure.swift
Swift
355
0.95
0
0.846154
react-lib
176
2024-05-23T09:42:32.356748
MIT
true
4419a3145936e1b6db6716714fdaba94
// RUN: %target-build-swift -module-name a %s -o %t.out\n// RUN: %target-codesign %t.out\n// RUN: %target-run %t.out\n// REQUIRES: executable_test\n\n// This test isn't temporarily disabled; it actually should terminate with a\n// non-zero exit code.\n//\n// XFAIL: *\n\n//\n// Check that non-zero exit code counts as test failure.\n//\n\nimport Darwin\n\nexit(1)\n\n
dataset_sample\swift\apple_swift\validation-test\test-runner\NonZeroExitCodeIsFailure.swift
NonZeroExitCodeIsFailure.swift
Swift
349
0.95
0
0.846154
awesome-app
128
2024-04-18T22:32:00.556741
BSD-3-Clause
true
b48674de65fb5ae0ea66d4b223ca85d9
// Protocol Buffers - Google's data interchange format\n// Copyright 2024 Google Inc. All rights reserved.\n//\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file or at\n// https://developers.google.com/open-source/licenses/bsd\n\n/// Swift specific additions to simplify usage.\nextension GPBUnknownField {\n\n /// The value of the field in a type-safe manner.\n public enum Value: Equatable {\n case varint(UInt64)\n case fixed32(UInt32)\n case fixed64(UInt64)\n case lengthDelimited(Data) // length prefixed\n case group(GPBUnknownFields) // tag delimited\n }\n\n /// The value of the field in a type-safe manner.\n public var value: Value {\n switch type {\n case .varint:\n return .varint(varint)\n case .fixed32:\n return .fixed32(fixed32)\n case .fixed64:\n return .fixed64(fixed64)\n case .lengthDelimited:\n return .lengthDelimited(lengthDelimited)\n case .group:\n return .group(group)\n @unknown default:\n fatalError("Internal error: Unknown field type: \(type)")\n }\n }\n\n}\n
dataset_sample\swift\cpp\GPBUnknownField+Additions.swift
GPBUnknownField+Additions.swift
Swift
1,083
0.8
0.026316
0.264706
python-kit
656
2024-04-07T13:43:35.554246
GPL-3.0
false
4e56736717e2aff9c0e2e608dc76b570
// Protocol Buffers - Google's data interchange format\n// Copyright 2024 Google Inc. All rights reserved.\n//\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file or at\n// https://developers.google.com/open-source/licenses/bsd\n\n/// Swift specific additions to simplify usage.\nextension GPBUnknownFields {\n\n /// Fetches the first varint for the given field number.\n public func firstVarint(_ fieldNumber: Int32) -> UInt64? {\n var value: UInt64 = 0\n guard getFirst(fieldNumber, varint: &value) else { return nil }\n return value\n }\n\n /// Fetches the first fixed32 for the given field number.\n public func firstFixed32(_ fieldNumber: Int32) -> UInt32? {\n var value: UInt32 = 0\n guard getFirst(fieldNumber, fixed32: &value) else { return nil }\n return value\n }\n\n /// Fetches the first fixed64 for the given field number.\n public func firstFixed64(_ fieldNumber: Int32) -> UInt64? {\n var value: UInt64 = 0\n guard getFirst(fieldNumber, fixed64: &value) else { return nil }\n return value\n }\n\n}\n\n/// Map the `NSFastEnumeration` support to a Swift `Sequence`.\nextension GPBUnknownFields: Sequence {\n public typealias Element = GPBUnknownField\n\n public struct Iterator: IteratorProtocol {\n var iter: NSFastEnumerationIterator\n\n init(_ fields: NSFastEnumeration) {\n self.iter = NSFastEnumerationIterator(fields)\n }\n\n public mutating func next() -> GPBUnknownField? {\n return iter.next() as? GPBUnknownField\n }\n }\n\n public func makeIterator() -> Iterator {\n return Iterator(self)\n }\n}\n
dataset_sample\swift\cpp\GPBUnknownFields+Additions.swift
GPBUnknownFields+Additions.swift
Swift
1,591
0.8
0.056604
0.255814
node-utils
802
2025-02-15T20:17:58.955971
Apache-2.0
false
47c47d69c1ebb8239a28db4309648b94
// swift-tools-version:5.9\n//===--- Package.swift.in - SwiftCompiler SwiftPM package -----------------===//\n//\n// This source file is part of the Swift.org open source project\n//\n// Copyright (c) 2021 - 2022 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 the list of Swift project authors\n//\n//===----------------------------------------------------------------------===//\n\n// To successfully build, you'll need to create a couple of symlinks to an\n// existing Ninja build:\n//\n// ln -s <project-root>/build/<Ninja-Build>/llvm-<os+arch> <project-root>/build/Default/llvm\n// ln -s <project-root>/build/<Ninja-Build>/swift-<os+arch> <project-root>/build/Default/swift\n//\n// where <project-root> is the parent directory of the swift repository.\n//\n// FIXME: We may want to consider generating Package.swift as a part of the\n// build.\n\nimport PackageDescription\n\nprivate extension Target {\n static func compilerModuleTarget(\n name: String,\n dependencies: [Dependency],\n path: String? = nil,\n sources: [String]? = nil,\n swiftSettings: [SwiftSetting] = []) -> Target {\n .target(\n name: name,\n dependencies: dependencies,\n path: path ?? "Sources/\(name)",\n exclude: ["CMakeLists.txt"],\n sources: sources,\n swiftSettings: [\n .interoperabilityMode(.Cxx),\n .unsafeFlags([\n "-static",\n "-Xcc", "-DCOMPILED_WITH_SWIFT", "-Xcc", "-DPURE_BRIDGING_MODE",\n "-Xcc", "-UIBOutlet", "-Xcc", "-UIBAction", "-Xcc", "-UIBInspectable",\n "-Xcc", "-I../include",\n "-Xcc", "-I../../llvm-project/llvm/include",\n "-Xcc", "-I../../llvm-project/clang/include",\n "-Xcc", "-I../../build/Default/swift/include",\n "-Xcc", "-I../../build/Default/llvm/include",\n "-Xcc", "-I../../build/Default/llvm/tools/clang/include",\n "-cross-module-optimization",\n ]),\n ] + swiftSettings)\n }\n}\n\nlet package = Package(\n name: "SwiftCompilerSources",\n platforms: [\n .macOS(.v13),\n ],\n products: [\n .library(\n name: "swiftCompilerModules",\n type: .static,\n targets: ["Basic", "AST", "SIL", "Optimizer"]),\n ],\n dependencies: [\n ],\n // Note that targets and their dependencies must align with\n // 'SwiftCompilerSources/Sources/CMakeLists.txt'\n targets: [\n .compilerModuleTarget(\n name: "Basic",\n dependencies: []),\n .compilerModuleTarget(\n name: "AST",\n dependencies: ["Basic"]),\n .compilerModuleTarget(\n name: "SIL",\n dependencies: ["Basic", "AST"]),\n .compilerModuleTarget(\n name: "Optimizer",\n dependencies: ["Basic", "AST", "SIL"]),\n ],\n cxxLanguageStandard: .cxx17\n)\n
dataset_sample\swift\cpp\Package.swift
Package.swift
Swift
2,885
0.95
0.022727
0.285714
python-kit
965
2023-08-30T09:33:16.284182
MIT
false
67324687d5663b1d1cda7ba5297eb048
// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nimport CryptoKit\nimport Foundation\n\nprotocol NonceProtocol {\n init<D>(data: D) throws where D : DataProtocol\n}\n\nprotocol SealedBoxProtocol {\n associatedtype Nonce : NonceProtocol\n\n var ciphertext: Data { get }\n var tag: Data { get }\n\n init<C, T>(\n nonce: Nonce,\n ciphertext: C,\n tag: T\n ) throws where C : DataProtocol, T : DataProtocol\n}\n\n@available(iOS 13, tvOS 13, *)\nprotocol AEADSymmetricAlgorithm {\n associatedtype SealedBox : SealedBoxProtocol\n\n static func seal<Plaintext>(_ plaintext: Plaintext, using key: SymmetricKey, nonce: SealedBox.Nonce?) throws -> SealedBox where Plaintext: DataProtocol\n static func seal<Plaintext, AuthenticatedData>(_ plaintext: Plaintext, using key: SymmetricKey, nonce: SealedBox.Nonce?, authenticating additionalData: AuthenticatedData) throws -> SealedBox where Plaintext: DataProtocol, AuthenticatedData: DataProtocol\n static func open<AuthenticatedData>(_ sealedBox: SealedBox, using key: SymmetricKey, authenticating additionalData: AuthenticatedData) throws -> Data where AuthenticatedData: DataProtocol\n static func open(_ sealedBox: SealedBox, using key: SymmetricKey) throws -> Data\n}\n\n@available(iOS 13, tvOS 13, *)\nextension AES.GCM.Nonce: NonceProtocol {}\n\n@available(iOS 13, tvOS 13, *)\nextension AES.GCM.SealedBox: SealedBoxProtocol {\n typealias Nonce = AES.GCM.Nonce\n}\n\n@available(iOS 13, tvOS 13, *)\nextension AES.GCM: AEADSymmetricAlgorithm {}\n\n@available(iOS 13, tvOS 13, *)\nextension ChaChaPoly.Nonce: NonceProtocol {}\n\n@available(iOS 13, tvOS 13, *)\nextension ChaChaPoly.SealedBox: SealedBoxProtocol {\n typealias Nonce = ChaChaPoly.Nonce\n}\n\n@available(iOS 13, tvOS 13, *)\nextension ChaChaPoly: AEADSymmetricAlgorithm {}\n\n@available(iOS 13, tvOS 13, *)\nfunc encrypt<Algorithm>(\n _ algorithm: Algorithm.Type,\n key: UnsafeBufferPointer<UInt8>,\n nonceData: UnsafeBufferPointer<UInt8>,\n plaintext: UnsafeBufferPointer<UInt8>,\n cipherText: UnsafeMutableBufferPointer<UInt8>,\n tag: UnsafeMutableBufferPointer<UInt8>,\n aad: UnsafeBufferPointer<UInt8>) throws where Algorithm: AEADSymmetricAlgorithm {\n\n let symmetricKey = SymmetricKey(data: key)\n\n let nonce = try Algorithm.SealedBox.Nonce(data: nonceData)\n\n let result = try Algorithm.seal(plaintext, using: symmetricKey, nonce: nonce, authenticating: aad)\n\n // Copy results out of the SealedBox as the Data objects returned here are sometimes slices,\n // which don't have a correct implementation of copyBytes.\n // See https://github.com/apple/swift-foundation/issues/638 for more information.\n let resultCiphertext = Data(result.ciphertext)\n let resultTag = Data(result.tag)\n\n _ = resultCiphertext.copyBytes(to: cipherText)\n _ = resultTag.copyBytes(to: tag)\n}\n\n@available(iOS 13, tvOS 13, *)\nfunc decrypt<Algorithm>(\n _ algorithm: Algorithm.Type,\n key: UnsafeBufferPointer<UInt8>,\n nonceData: UnsafeBufferPointer<UInt8>,\n cipherText: UnsafeBufferPointer<UInt8>,\n tag: UnsafeBufferPointer<UInt8>,\n plaintext: UnsafeMutableBufferPointer<UInt8>,\n aad: UnsafeBufferPointer<UInt8>) throws where Algorithm: AEADSymmetricAlgorithm {\n\n let symmetricKey = SymmetricKey(data: key)\n\n let nonce = try Algorithm.SealedBox.Nonce(data: nonceData)\n\n let sealedBox = try Algorithm.SealedBox(nonce: nonce, ciphertext: cipherText, tag: tag)\n\n let result = try Algorithm.open(sealedBox, using: symmetricKey, authenticating: aad)\n\n _ = result.copyBytes(to: plaintext)\n}\n\n@_silgen_name("AppleCryptoNative_ChaCha20Poly1305Encrypt")\n@available(iOS 13, tvOS 13, *)\npublic func AppleCryptoNative_ChaCha20Poly1305Encrypt(\n key: UnsafeBufferPointer<UInt8>,\n nonceData: UnsafeBufferPointer<UInt8>,\n plaintext: UnsafeBufferPointer<UInt8>,\n cipherText: UnsafeMutableBufferPointer<UInt8>,\n tag: UnsafeMutableBufferPointer<UInt8>,\n aad: UnsafeBufferPointer<UInt8>\n) throws {\n return try encrypt(\n ChaChaPoly.self,\n key: key,\n nonceData: nonceData,\n plaintext: plaintext,\n cipherText: cipherText,\n tag: tag,\n aad: aad)\n }\n\n@_silgen_name("AppleCryptoNative_ChaCha20Poly1305Decrypt")\n@available(iOS 13, tvOS 13, *)\npublic func AppleCryptoNative_ChaCha20Poly1305Decrypt(\n key: UnsafeBufferPointer<UInt8>,\n nonceData: UnsafeBufferPointer<UInt8>,\n cipherText: UnsafeBufferPointer<UInt8>,\n tag: UnsafeBufferPointer<UInt8>,\n plaintext: UnsafeMutableBufferPointer<UInt8>,\n aad: UnsafeBufferPointer<UInt8>\n) throws {\n return try decrypt(\n ChaChaPoly.self,\n key: key,\n nonceData: nonceData,\n cipherText: cipherText,\n tag: tag,\n plaintext: plaintext,\n aad: aad);\n}\n\n@_silgen_name("AppleCryptoNative_AesGcmEncrypt")\n@available(iOS 13, tvOS 13, *)\npublic func AppleCryptoNative_AesGcmEncrypt(\n key: UnsafeBufferPointer<UInt8>,\n nonceData: UnsafeBufferPointer<UInt8>,\n plaintext: UnsafeBufferPointer<UInt8>,\n cipherText: UnsafeMutableBufferPointer<UInt8>,\n tag: UnsafeMutableBufferPointer<UInt8>,\n aad: UnsafeBufferPointer<UInt8>\n) throws {\n return try encrypt(\n AES.GCM.self,\n key: key,\n nonceData: nonceData,\n plaintext: plaintext,\n cipherText: cipherText,\n tag: tag,\n aad: aad)\n }\n\n@_silgen_name("AppleCryptoNative_AesGcmDecrypt")\n@available(iOS 13, tvOS 13, *)\npublic func AppleCryptoNative_AesGcmDecrypt(\n key: UnsafeBufferPointer<UInt8>,\n nonceData: UnsafeBufferPointer<UInt8>,\n cipherText: UnsafeBufferPointer<UInt8>,\n tag: UnsafeBufferPointer<UInt8>,\n plaintext: UnsafeMutableBufferPointer<UInt8>,\n aad: UnsafeBufferPointer<UInt8>\n) throws {\n return try decrypt(\n AES.GCM.self,\n key: key,\n nonceData: nonceData,\n cipherText: cipherText,\n tag: tag,\n plaintext: plaintext,\n aad: aad);\n}\n\n@_silgen_name("AppleCryptoNative_IsAuthenticationFailure")\n@available(iOS 13, tvOS 13, *)\npublic func AppleCryptoNative_IsAuthenticationFailure(error: Error) -> Bool {\n if let error = error as? CryptoKitError {\n switch error {\n case .authenticationFailure:\n return true\n default:\n return false\n }\n }\n return false\n}\n
dataset_sample\swift\dotnet_runtime\src\native\libs\System.Security.Cryptography.Native.Apple\pal_swiftbindings.swift
pal_swiftbindings.swift
Swift
6,390
0.95
0.061538
0.030303
awesome-app
233
2023-08-18T07:46:39.518182
MIT
false
eeb439de3f89a71127278c6d7506fbf5
// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nimport Foundation\n\nstruct HasherFNV1a {\n\n private var hash: UInt = 14_695_981_039_346_656_037\n private let prime: UInt = 1_099_511_628_211\n\n mutating func combine<T>(_ val: T) {\n for byte in withUnsafeBytes(of: val, Array.init) {\n hash ^= UInt(byte)\n hash = hash &* prime\n }\n }\n\n func finalize() -> Int {\n Int(truncatingIfNeeded: hash)\n }\n}\n\n@frozen\npublic struct F0_S0\n{\n public let f0 : Double;\n public let f1 : UInt32;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F0_S1\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F0_S2\n{\n public let f0 : Float;\n}\n\npublic func swiftFunc0(a0: Int16, a1: Int32, a2: UInt64, a3: UInt16, a4: F0_S0, a5: F0_S1, a6: UInt8, a7: F0_S2) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a4.f2);\n hasher.combine(a5.f0);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F1_S0\n{\n public let f0 : Int64;\n public let f1 : Double;\n public let f2 : Int8;\n public let f3 : Int32;\n public let f4 : UInt16;\n}\n\n@frozen\npublic struct F1_S1\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F1_S2\n{\n public let f0 : Int16;\n}\n\npublic func swiftFunc1(a0: F1_S0, a1: UInt8, a2: F1_S1, a3: F1_S2) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a0.f4);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a3.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F2_S0\n{\n public let f0 : Int;\n public let f1 : UInt;\n}\n\n@frozen\npublic struct F2_S1\n{\n public let f0 : Int64;\n public let f1 : Int32;\n public let f2 : Int16;\n public let f3 : Int64;\n public let f4 : UInt16;\n}\n\n@frozen\npublic struct F2_S2_S0_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F2_S2_S0\n{\n public let f0 : F2_S2_S0_S0;\n}\n\n@frozen\npublic struct F2_S2\n{\n public let f0 : F2_S2_S0;\n}\n\n@frozen\npublic struct F2_S3\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F2_S4\n{\n public let f0 : Int32;\n public let f1 : UInt;\n}\n\n@frozen\npublic struct F2_S5\n{\n public let f0 : Float;\n}\n\npublic func swiftFunc2(a0: Int64, a1: Int16, a2: Int32, a3: F2_S0, a4: UInt8, a5: Int32, a6: F2_S1, a7: F2_S2, a8: UInt16, a9: Float, a10: F2_S3, a11: F2_S4, a12: F2_S5, a13: Int64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1);\n hasher.combine(a6.f2);\n hasher.combine(a6.f3);\n hasher.combine(a6.f4);\n hasher.combine(a7.f0.f0.f0);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10.f0);\n hasher.combine(a11.f0);\n hasher.combine(a11.f1);\n hasher.combine(a12.f0);\n hasher.combine(a13);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F3_S0_S0\n{\n public let f0 : Int;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F3_S0\n{\n public let f0 : Int8;\n public let f1 : F3_S0_S0;\n public let f2 : UInt32;\n}\n\n@frozen\npublic struct F3_S1\n{\n public let f0 : Int64;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F3_S2\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F3_S3\n{\n public let f0 : UInt8;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F3_S4\n{\n public let f0 : UInt;\n public let f1 : Float;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F3_S5\n{\n public let f0 : UInt32;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F3_S6_S0\n{\n public let f0 : Int16;\n public let f1 : UInt8;\n}\n\n@frozen\npublic struct F3_S6\n{\n public let f0 : F3_S6_S0;\n public let f1 : Int8;\n public let f2 : UInt8;\n}\n\n@frozen\npublic struct F3_S7\n{\n public let f0 : UInt64;\n}\n\npublic func swiftFunc3(a0: Int, a1: F3_S0, a2: F3_S1, a3: Double, a4: Int, a5: F3_S2, a6: F3_S3, a7: F3_S4, a8: F3_S5, a9: UInt16, a10: Int32, a11: F3_S6, a12: Int, a13: F3_S7) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1.f0);\n hasher.combine(a1.f1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5.f0);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1);\n hasher.combine(a7.f0);\n hasher.combine(a7.f1);\n hasher.combine(a7.f2);\n hasher.combine(a8.f0);\n hasher.combine(a8.f1);\n hasher.combine(a9);\n hasher.combine(a10);\n hasher.combine(a11.f0.f0);\n hasher.combine(a11.f0.f1);\n hasher.combine(a11.f1);\n hasher.combine(a11.f2);\n hasher.combine(a12);\n hasher.combine(a13.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F4_S0\n{\n public let f0 : UInt16;\n public let f1 : Int16;\n public let f2 : Int16;\n}\n\n@frozen\npublic struct F4_S1_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F4_S1\n{\n public let f0 : F4_S1_S0;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F4_S2_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F4_S2\n{\n public let f0 : F4_S2_S0;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F4_S3\n{\n public let f0 : UInt64;\n public let f1 : UInt64;\n public let f2 : Int64;\n}\n\npublic func swiftFunc4(a0: Int, a1: F4_S0, a2: UInt, a3: UInt64, a4: Int8, a5: Double, a6: F4_S1, a7: UInt8, a8: Int32, a9: UInt32, a10: UInt64, a11: F4_S2, a12: Int16, a13: Int, a14: F4_S3, a15: UInt32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6.f0.f0);\n hasher.combine(a6.f1);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10);\n hasher.combine(a11.f0.f0);\n hasher.combine(a11.f1);\n hasher.combine(a12);\n hasher.combine(a13);\n hasher.combine(a14.f0);\n hasher.combine(a14.f1);\n hasher.combine(a14.f2);\n hasher.combine(a15);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F5_S0\n{\n public let f0 : UInt;\n}\n\npublic func swiftFunc5(a0: UInt, a1: UInt64, a2: UInt8, a3: F5_S0) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F6_S0\n{\n public let f0 : Int32;\n public let f1 : Int;\n public let f2 : UInt8;\n}\n\n@frozen\npublic struct F6_S1\n{\n public let f0 : Int;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F6_S2_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F6_S2\n{\n public let f0 : F6_S2_S0;\n public let f1 : UInt16;\n}\n\n@frozen\npublic struct F6_S3\n{\n public let f0 : Double;\n public let f1 : Double;\n public let f2 : UInt64;\n}\n\n@frozen\npublic struct F6_S4\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F6_S5\n{\n public let f0 : Int16;\n}\n\npublic func swiftFunc6(a0: Int64, a1: F6_S0, a2: F6_S1, a3: UInt, a4: UInt8, a5: Int32, a6: F6_S2, a7: Float, a8: Int16, a9: F6_S3, a10: UInt16, a11: Double, a12: UInt32, a13: F6_S4, a14: F6_S5) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6.f0.f0);\n hasher.combine(a6.f1);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9.f0);\n hasher.combine(a9.f1);\n hasher.combine(a9.f2);\n hasher.combine(a10);\n hasher.combine(a11);\n hasher.combine(a12);\n hasher.combine(a13.f0);\n hasher.combine(a14.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F7_S0\n{\n public let f0 : Int16;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F7_S1\n{\n public let f0 : UInt8;\n}\n\npublic func swiftFunc7(a0: Int64, a1: Int, a2: UInt8, a3: F7_S0, a4: F7_S1, a5: UInt32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a4.f0);\n hasher.combine(a5);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F8_S0\n{\n public let f0 : Int32;\n}\n\npublic func swiftFunc8(a0: UInt16, a1: UInt, a2: UInt16, a3: UInt64, a4: F8_S0, a5: UInt64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a5);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F9_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F9_S1\n{\n public let f0 : Int32;\n}\n\npublic func swiftFunc9(a0: Int64, a1: Float, a2: F9_S0, a3: UInt16, a4: F9_S1, a5: UInt16) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a5);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F10_S0\n{\n public let f0 : Int64;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F10_S1\n{\n public let f0 : Float;\n public let f1 : UInt8;\n public let f2 : UInt;\n}\n\n@frozen\npublic struct F10_S2\n{\n public let f0 : UInt;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F10_S3\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F10_S4\n{\n public let f0 : Int64;\n}\n\npublic func swiftFunc10(a0: UInt16, a1: UInt16, a2: F10_S0, a3: UInt64, a4: Float, a5: Int8, a6: Int64, a7: UInt64, a8: Int64, a9: Float, a10: Int32, a11: Int32, a12: Int64, a13: UInt64, a14: F10_S1, a15: Int64, a16: F10_S2, a17: F10_S3, a18: F10_S4) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10);\n hasher.combine(a11);\n hasher.combine(a12);\n hasher.combine(a13);\n hasher.combine(a14.f0);\n hasher.combine(a14.f1);\n hasher.combine(a14.f2);\n hasher.combine(a15);\n hasher.combine(a16.f0);\n hasher.combine(a16.f1);\n hasher.combine(a17.f0);\n hasher.combine(a18.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F11_S0\n{\n public let f0 : Int16;\n public let f1 : Int8;\n public let f2 : UInt64;\n public let f3 : Int16;\n}\n\n@frozen\npublic struct F11_S1\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F11_S2\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F11_S3_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F11_S3\n{\n public let f0 : F11_S3_S0;\n}\n\npublic func swiftFunc11(a0: Int, a1: UInt64, a2: UInt8, a3: Int16, a4: F11_S0, a5: F11_S1, a6: UInt16, a7: Double, a8: Int, a9: UInt32, a10: F11_S2, a11: F11_S3, a12: Int8) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a4.f2);\n hasher.combine(a4.f3);\n hasher.combine(a5.f0);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10.f0);\n hasher.combine(a11.f0.f0);\n hasher.combine(a12);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F12_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F12_S1\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F12_S2\n{\n public let f0 : UInt;\n}\n\npublic func swiftFunc12(a0: UInt8, a1: Int32, a2: F12_S0, a3: Int8, a4: F12_S1, a5: F12_S2, a6: UInt32, a7: Int16, a8: Int8, a9: Int8, a10: UInt32, a11: UInt8) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a5.f0);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10);\n hasher.combine(a11);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F13_S0_S0_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F13_S0_S0\n{\n public let f0 : F13_S0_S0_S0;\n}\n\n@frozen\npublic struct F13_S0\n{\n public let f0 : Int8;\n public let f1 : F13_S0_S0;\n}\n\n@frozen\npublic struct F13_S1_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F13_S1\n{\n public let f0 : F13_S1_S0;\n}\n\npublic func swiftFunc13(a0: Int8, a1: Double, a2: F13_S0, a3: F13_S1, a4: Int8, a5: Double) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1.f0.f0);\n hasher.combine(a3.f0.f0);\n hasher.combine(a4);\n hasher.combine(a5);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F14_S0\n{\n public let f0 : Int;\n}\n\npublic func swiftFunc14(a0: Int8, a1: Int, a2: F14_S0, a3: Float, a4: UInt) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a3);\n hasher.combine(a4);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F15_S0\n{\n public let f0 : Float;\n public let f1 : Int16;\n public let f2 : UInt8;\n public let f3 : Int64;\n public let f4 : Double;\n}\n\n@frozen\npublic struct F15_S1_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F15_S1\n{\n public let f0 : UInt32;\n public let f1 : F15_S1_S0;\n public let f2 : UInt;\n public let f3 : Int32;\n}\n\npublic func swiftFunc15(a0: F15_S0, a1: UInt64, a2: UInt32, a3: UInt, a4: UInt64, a5: Int16, a6: F15_S1, a7: Int64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a0.f4);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1.f0);\n hasher.combine(a6.f2);\n hasher.combine(a6.f3);\n hasher.combine(a7);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F16_S0_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F16_S0\n{\n public let f0 : Int;\n public let f1 : Int;\n public let f2 : F16_S0_S0;\n}\n\n@frozen\npublic struct F16_S1\n{\n public let f0 : Int16;\n public let f1 : UInt64;\n public let f2 : UInt32;\n}\n\n@frozen\npublic struct F16_S2\n{\n public let f0 : UInt8;\n public let f1 : UInt64;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F16_S3\n{\n public let f0 : Int32;\n}\n\npublic func swiftFunc16(a0: UInt64, a1: F16_S0, a2: F16_S1, a3: UInt16, a4: Int16, a5: F16_S2, a6: F16_S3) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2.f0);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5.f0);\n hasher.combine(a5.f1);\n hasher.combine(a5.f2);\n hasher.combine(a6.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F17_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F17_S1\n{\n public let f0 : Int64;\n public let f1 : UInt;\n public let f2 : UInt64;\n}\n\n@frozen\npublic struct F17_S2\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F17_S3\n{\n public let f0 : Int8;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F17_S4\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F17_S5\n{\n public let f0 : Int64;\n}\n\npublic func swiftFunc17(a0: F17_S0, a1: Int8, a2: F17_S1, a3: Int8, a4: UInt, a5: F17_S2, a6: Int64, a7: F17_S3, a8: F17_S4, a9: F17_S5) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5.f0);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a7.f1);\n hasher.combine(a8.f0);\n hasher.combine(a9.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F18_S0_S0\n{\n public let f0 : UInt16;\n public let f1 : Int16;\n}\n\n@frozen\npublic struct F18_S0\n{\n public let f0 : UInt32;\n public let f1 : F18_S0_S0;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F18_S1\n{\n public let f0 : Int;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F18_S2_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F18_S2\n{\n public let f0 : UInt64;\n public let f1 : Int64;\n public let f2 : UInt8;\n public let f3 : F18_S2_S0;\n}\n\npublic func swiftFunc18(a0: UInt8, a1: Double, a2: F18_S0, a3: F18_S1, a4: UInt16, a5: Int64, a6: UInt64, a7: F18_S2, a8: UInt64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1.f0);\n hasher.combine(a2.f1.f1);\n hasher.combine(a2.f2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a7.f1);\n hasher.combine(a7.f2);\n hasher.combine(a7.f3.f0);\n hasher.combine(a8);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F19_S0\n{\n public let f0 : Int;\n public let f1 : Double;\n public let f2 : UInt16;\n}\n\npublic func swiftFunc19(a0: UInt, a1: F19_S0, a2: Int16) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a2);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F20_S0\n{\n public let f0 : UInt16;\n public let f1 : Int8;\n public let f2 : UInt64;\n public let f3 : UInt32;\n public let f4 : UInt64;\n}\n\n@frozen\npublic struct F20_S1\n{\n public let f0 : Int64;\n}\n\npublic func swiftFunc20(a0: Int8, a1: F20_S0, a2: UInt64, a3: Int, a4: F20_S1, a5: UInt8, a6: Int64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a1.f3);\n hasher.combine(a1.f4);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a5);\n hasher.combine(a6);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F21_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F21_S1\n{\n public let f0 : Int;\n public let f1 : UInt32;\n public let f2 : UInt8;\n public let f3 : Int16;\n}\n\n@frozen\npublic struct F21_S2\n{\n public let f0 : Int8;\n public let f1 : UInt64;\n public let f2 : Int64;\n public let f3 : UInt8;\n}\n\n@frozen\npublic struct F21_S3\n{\n public let f0 : Double;\n public let f1 : Int;\n}\n\npublic func swiftFunc21(a0: UInt64, a1: Int8, a2: UInt, a3: Double, a4: Float, a5: Int, a6: F21_S0, a7: F21_S1, a8: UInt16, a9: F21_S2, a10: UInt8, a11: F21_S3, a12: Int16) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n hasher.combine(a7.f0);\n hasher.combine(a7.f1);\n hasher.combine(a7.f2);\n hasher.combine(a7.f3);\n hasher.combine(a8);\n hasher.combine(a9.f0);\n hasher.combine(a9.f1);\n hasher.combine(a9.f2);\n hasher.combine(a9.f3);\n hasher.combine(a10);\n hasher.combine(a11.f0);\n hasher.combine(a11.f1);\n hasher.combine(a12);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F22_S0\n{\n public let f0 : UInt16;\n public let f1 : UInt32;\n public let f2 : Int16;\n public let f3 : Float;\n}\n\n@frozen\npublic struct F22_S1\n{\n public let f0 : UInt16;\n public let f1 : Int8;\n public let f2 : UInt8;\n public let f3 : Int;\n public let f4 : Int;\n}\n\n@frozen\npublic struct F22_S2_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F22_S2\n{\n public let f0 : Int32;\n public let f1 : Int32;\n public let f2 : UInt32;\n public let f3 : UInt8;\n public let f4 : F22_S2_S0;\n}\n\n@frozen\npublic struct F22_S3\n{\n public let f0 : Int16;\n public let f1 : Double;\n public let f2 : Double;\n public let f3 : Int32;\n}\n\npublic func swiftFunc22(a0: Int8, a1: Int32, a2: F22_S0, a3: F22_S1, a4: F22_S2, a5: UInt64, a6: F22_S3, a7: UInt) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a2.f3);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a3.f2);\n hasher.combine(a3.f3);\n hasher.combine(a3.f4);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a4.f2);\n hasher.combine(a4.f3);\n hasher.combine(a4.f4.f0);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1);\n hasher.combine(a6.f2);\n hasher.combine(a6.f3);\n hasher.combine(a7);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F23_S0\n{\n public let f0 : UInt32;\n public let f1 : Int16;\n}\n\n@frozen\npublic struct F23_S1\n{\n public let f0 : UInt;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F23_S2\n{\n public let f0 : Double;\n public let f1 : UInt32;\n public let f2 : Int32;\n public let f3 : UInt8;\n}\n\npublic func swiftFunc23(a0: F23_S0, a1: F23_S1, a2: F23_S2, a3: Double, a4: UInt64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a2.f3);\n hasher.combine(a3);\n hasher.combine(a4);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F24_S0\n{\n public let f0 : Int8;\n public let f1 : Int32;\n}\n\n@frozen\npublic struct F24_S1\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F24_S2\n{\n public let f0 : UInt16;\n public let f1 : Int16;\n public let f2 : Double;\n public let f3 : UInt;\n}\n\n@frozen\npublic struct F24_S3\n{\n public let f0 : Int;\n}\n\npublic func swiftFunc24(a0: F24_S0, a1: F24_S1, a2: F24_S2, a3: F24_S3, a4: UInt, a5: UInt32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a1.f0);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a2.f3);\n hasher.combine(a3.f0);\n hasher.combine(a4);\n hasher.combine(a5);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F25_S0_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F25_S0\n{\n public let f0 : Float;\n public let f1 : F25_S0_S0;\n public let f2 : UInt32;\n}\n\n@frozen\npublic struct F25_S1\n{\n public let f0 : Int16;\n public let f1 : Int8;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F25_S2\n{\n public let f0 : Int64;\n public let f1 : UInt16;\n}\n\n@frozen\npublic struct F25_S3\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F25_S4\n{\n public let f0 : UInt16;\n}\n\npublic func swiftFunc25(a0: Float, a1: F25_S0, a2: Int64, a3: UInt8, a4: F25_S1, a5: Int, a6: F25_S2, a7: Int32, a8: Int32, a9: UInt, a10: UInt64, a11: F25_S3, a12: F25_S4) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1.f0);\n hasher.combine(a1.f2);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a4.f2);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10);\n hasher.combine(a11.f0);\n hasher.combine(a12.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F26_S0\n{\n public let f0 : Double;\n}\n\npublic func swiftFunc26(a0: UInt16, a1: Double, a2: Int64, a3: F26_S0, a4: UInt8) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a4);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F27_S0_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F27_S0\n{\n public let f0 : UInt16;\n public let f1 : F27_S0_S0;\n public let f2 : Double;\n}\n\n@frozen\npublic struct F27_S1\n{\n public let f0 : Int;\n public let f1 : Int8;\n public let f2 : Int16;\n public let f3 : UInt8;\n}\n\n@frozen\npublic struct F27_S2\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F27_S3\n{\n public let f0 : UInt64;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F27_S4\n{\n public let f0 : UInt8;\n}\n\npublic func swiftFunc27(a0: F27_S0, a1: Double, a2: Double, a3: Int8, a4: Int8, a5: F27_S1, a6: Int16, a7: F27_S2, a8: Int8, a9: UInt16, a10: F27_S3, a11: F27_S4, a12: UInt32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1.f0);\n hasher.combine(a0.f2);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5.f0);\n hasher.combine(a5.f1);\n hasher.combine(a5.f2);\n hasher.combine(a5.f3);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10.f0);\n hasher.combine(a10.f1);\n hasher.combine(a11.f0);\n hasher.combine(a12);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F28_S0\n{\n public let f0 : Double;\n public let f1 : Int16;\n public let f2 : Double;\n public let f3 : UInt64;\n}\n\n@frozen\npublic struct F28_S1\n{\n public let f0 : Int;\n public let f1 : UInt32;\n public let f2 : UInt64;\n public let f3 : Float;\n}\n\n@frozen\npublic struct F28_S2\n{\n public let f0 : Double;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F28_S3\n{\n public let f0 : Int16;\n public let f1 : UInt64;\n public let f2 : Double;\n public let f3 : Int32;\n}\n\n@frozen\npublic struct F28_S4\n{\n public let f0 : Int;\n}\n\npublic func swiftFunc28(a0: UInt8, a1: UInt16, a2: F28_S0, a3: F28_S1, a4: F28_S2, a5: UInt64, a6: Int32, a7: Int64, a8: Double, a9: UInt16, a10: F28_S3, a11: F28_S4, a12: Float) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a2.f3);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a3.f2);\n hasher.combine(a3.f3);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10.f0);\n hasher.combine(a10.f1);\n hasher.combine(a10.f2);\n hasher.combine(a10.f3);\n hasher.combine(a11.f0);\n hasher.combine(a12);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F29_S0\n{\n public let f0 : Int32;\n public let f1 : Float;\n public let f2 : Int16;\n}\n\n@frozen\npublic struct F29_S1\n{\n public let f0 : Int16;\n public let f1 : Int8;\n public let f2 : UInt;\n}\n\n@frozen\npublic struct F29_S2\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F29_S3\n{\n public let f0 : Int64;\n public let f1 : Int64;\n}\n\npublic func swiftFunc29(a0: Int8, a1: F29_S0, a2: Int32, a3: UInt, a4: F29_S1, a5: UInt64, a6: F29_S2, a7: Int16, a8: Int64, a9: UInt32, a10: UInt64, a11: Int, a12: F29_S3, a13: UInt8, a14: Int8, a15: Double) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a4.f2);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10);\n hasher.combine(a11);\n hasher.combine(a12.f0);\n hasher.combine(a12.f1);\n hasher.combine(a13);\n hasher.combine(a14);\n hasher.combine(a15);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F30_S0\n{\n public let f0 : UInt;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F30_S1\n{\n public let f0 : UInt64;\n public let f1 : UInt8;\n public let f2 : Double;\n public let f3 : Int;\n}\n\n@frozen\npublic struct F30_S2_S0\n{\n public let f0 : Int16;\n public let f1 : Int16;\n}\n\n@frozen\npublic struct F30_S2_S1\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F30_S2\n{\n public let f0 : F30_S2_S0;\n public let f1 : F30_S2_S1;\n}\n\n@frozen\npublic struct F30_S3\n{\n public let f0 : Int8;\n public let f1 : UInt8;\n public let f2 : UInt64;\n public let f3 : UInt32;\n}\n\n@frozen\npublic struct F30_S4\n{\n public let f0 : UInt16;\n}\n\npublic func swiftFunc30(a0: UInt16, a1: Int16, a2: UInt16, a3: F30_S0, a4: F30_S1, a5: F30_S2, a6: UInt64, a7: Int32, a8: UInt, a9: F30_S3, a10: UInt16, a11: F30_S4, a12: Int8) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a4.f2);\n hasher.combine(a4.f3);\n hasher.combine(a5.f0.f0);\n hasher.combine(a5.f0.f1);\n hasher.combine(a5.f1.f0);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9.f0);\n hasher.combine(a9.f1);\n hasher.combine(a9.f2);\n hasher.combine(a9.f3);\n hasher.combine(a10);\n hasher.combine(a11.f0);\n hasher.combine(a12);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F31_S0\n{\n public let f0 : Int;\n public let f1 : Float;\n public let f2 : UInt32;\n public let f3 : Int;\n}\n\npublic func swiftFunc31(a0: Int64, a1: F31_S0, a2: UInt32, a3: UInt64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a1.f3);\n hasher.combine(a2);\n hasher.combine(a3);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F32_S0\n{\n public let f0 : Int16;\n public let f1 : Float;\n public let f2 : Int64;\n}\n\n@frozen\npublic struct F32_S1_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F32_S1\n{\n public let f0 : UInt8;\n public let f1 : F32_S1_S0;\n}\n\n@frozen\npublic struct F32_S2\n{\n public let f0 : UInt32;\n public let f1 : UInt8;\n public let f2 : UInt;\n}\n\n@frozen\npublic struct F32_S3_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F32_S3\n{\n public let f0 : UInt64;\n public let f1 : F32_S3_S0;\n public let f2 : UInt64;\n}\n\n@frozen\npublic struct F32_S4\n{\n public let f0 : Double;\n public let f1 : Int64;\n public let f2 : Int64;\n public let f3 : Float;\n}\n\npublic func swiftFunc32(a0: UInt64, a1: F32_S0, a2: Double, a3: F32_S1, a4: F32_S2, a5: UInt64, a6: Float, a7: F32_S3, a8: F32_S4, a9: UInt32, a10: Int16) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1.f0);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a4.f2);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a7.f1.f0);\n hasher.combine(a7.f2);\n hasher.combine(a8.f0);\n hasher.combine(a8.f1);\n hasher.combine(a8.f2);\n hasher.combine(a8.f3);\n hasher.combine(a9);\n hasher.combine(a10);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F33_S0\n{\n public let f0 : Int8;\n public let f1 : UInt8;\n}\n\n@frozen\npublic struct F33_S1\n{\n public let f0 : UInt16;\n public let f1 : UInt8;\n public let f2 : Int64;\n}\n\n@frozen\npublic struct F33_S2_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F33_S2\n{\n public let f0 : F33_S2_S0;\n public let f1 : UInt;\n public let f2 : Float;\n public let f3 : Double;\n public let f4 : UInt16;\n}\n\n@frozen\npublic struct F33_S3\n{\n public let f0 : UInt;\n}\n\npublic func swiftFunc33(a0: Float, a1: F33_S0, a2: UInt64, a3: Int64, a4: F33_S1, a5: UInt16, a6: UInt, a7: UInt16, a8: F33_S2, a9: F33_S3, a10: Int) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a4.f2);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8.f0.f0);\n hasher.combine(a8.f1);\n hasher.combine(a8.f2);\n hasher.combine(a8.f3);\n hasher.combine(a8.f4);\n hasher.combine(a9.f0);\n hasher.combine(a10);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F34_S0\n{\n public let f0 : UInt8;\n}\n\npublic func swiftFunc34(a0: Int64, a1: F34_S0, a2: UInt, a3: UInt, a4: UInt8, a5: Double) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F35_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F35_S1_S0\n{\n public let f0 : UInt16;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct F35_S1\n{\n public let f0 : Int64;\n public let f1 : F35_S1_S0;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F35_S2\n{\n public let f0 : UInt64;\n public let f1 : Int8;\n public let f2 : UInt32;\n public let f3 : Int64;\n}\n\n@frozen\npublic struct F35_S3_S0_S0\n{\n public let f0 : UInt32;\n public let f1 : UInt8;\n}\n\n@frozen\npublic struct F35_S3_S0\n{\n public let f0 : UInt16;\n public let f1 : F35_S3_S0_S0;\n public let f2 : Double;\n}\n\n@frozen\npublic struct F35_S3\n{\n public let f0 : F35_S3_S0;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F35_S4\n{\n public let f0 : Float;\n}\n\npublic func swiftFunc35(a0: UInt8, a1: F35_S0, a2: UInt8, a3: UInt8, a4: F35_S1, a5: Int32, a6: F35_S2, a7: Int, a8: UInt32, a9: F35_S3, a10: F35_S4) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1.f0);\n hasher.combine(a4.f1.f1);\n hasher.combine(a4.f2);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1);\n hasher.combine(a6.f2);\n hasher.combine(a6.f3);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9.f0.f0);\n hasher.combine(a9.f0.f1.f0);\n hasher.combine(a9.f0.f1.f1);\n hasher.combine(a9.f0.f2);\n hasher.combine(a9.f1);\n hasher.combine(a10.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F36_S0\n{\n public let f0 : UInt64;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct F36_S1\n{\n public let f0 : Int64;\n public let f1 : UInt;\n public let f2 : Int;\n public let f3 : Int32;\n}\n\n@frozen\npublic struct F36_S2\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F36_S3_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F36_S3\n{\n public let f0 : Int64;\n public let f1 : Int8;\n public let f2 : F36_S3_S0;\n}\n\n@frozen\npublic struct F36_S4\n{\n public let f0 : UInt;\n public let f1 : Int64;\n public let f2 : Double;\n public let f3 : Double;\n}\n\n@frozen\npublic struct F36_S5\n{\n public let f0 : UInt8;\n public let f1 : UInt8;\n}\n\n@frozen\npublic struct F36_S6\n{\n public let f0 : UInt16;\n}\n\npublic func swiftFunc36(a0: F36_S0, a1: Double, a2: UInt64, a3: F36_S1, a4: F36_S2, a5: F36_S3, a6: F36_S4, a7: Float, a8: F36_S5, a9: UInt8, a10: Double, a11: F36_S6) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a3.f2);\n hasher.combine(a3.f3);\n hasher.combine(a4.f0);\n hasher.combine(a5.f0);\n hasher.combine(a5.f1);\n hasher.combine(a5.f2.f0);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1);\n hasher.combine(a6.f2);\n hasher.combine(a6.f3);\n hasher.combine(a7);\n hasher.combine(a8.f0);\n hasher.combine(a8.f1);\n hasher.combine(a9);\n hasher.combine(a10);\n hasher.combine(a11.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F37_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F37_S1\n{\n public let f0 : UInt32;\n public let f1 : UInt32;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F37_S2\n{\n public let f0 : Int32;\n public let f1 : UInt32;\n public let f2 : Double;\n public let f3 : UInt;\n}\n\n@frozen\npublic struct F37_S3_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F37_S3\n{\n public let f0 : F37_S3_S0;\n}\n\npublic func swiftFunc37(a0: Int, a1: UInt64, a2: UInt32, a3: Int32, a4: Int8, a5: UInt8, a6: UInt64, a7: F37_S0, a8: F37_S1, a9: Int16, a10: F37_S2, a11: UInt, a12: F37_S3, a13: UInt64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a8.f0);\n hasher.combine(a8.f1);\n hasher.combine(a8.f2);\n hasher.combine(a9);\n hasher.combine(a10.f0);\n hasher.combine(a10.f1);\n hasher.combine(a10.f2);\n hasher.combine(a10.f3);\n hasher.combine(a11);\n hasher.combine(a12.f0.f0);\n hasher.combine(a13);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F38_S0\n{\n public let f0 : UInt16;\n public let f1 : Int16;\n public let f2 : Int16;\n}\n\n@frozen\npublic struct F38_S1\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F38_S2\n{\n public let f0 : UInt;\n}\n\npublic func swiftFunc38(a0: UInt32, a1: Int32, a2: F38_S0, a3: F38_S1, a4: F38_S2) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a3.f0);\n hasher.combine(a4.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F39_S0_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F39_S0_S1\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F39_S0\n{\n public let f0 : Int;\n public let f1 : Int64;\n public let f2 : UInt32;\n public let f3 : F39_S0_S0;\n public let f4 : F39_S0_S1;\n}\n\n@frozen\npublic struct F39_S1\n{\n public let f0 : UInt;\n public let f1 : Double;\n}\n\npublic func swiftFunc39(a0: UInt, a1: UInt, a2: F39_S0, a3: F39_S1, a4: Float) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a2.f3.f0);\n hasher.combine(a2.f4.f0);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a4);\n return hasher.finalize()\n}\n\npublic func swiftFunc40(a0: Int32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F41_S0\n{\n public let f0 : Int16;\n public let f1 : Float;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F41_S1\n{\n public let f0 : UInt16;\n public let f1 : UInt64;\n public let f2 : Int8;\n public let f3 : Float;\n public let f4 : UInt64;\n}\n\n@frozen\npublic struct F41_S2_S0_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F41_S2_S0\n{\n public let f0 : F41_S2_S0_S0;\n}\n\n@frozen\npublic struct F41_S2\n{\n public let f0 : Int32;\n public let f1 : Int16;\n public let f2 : UInt64;\n public let f3 : Float;\n public let f4 : F41_S2_S0;\n}\n\npublic func swiftFunc41(a0: Float, a1: F41_S0, a2: F41_S1, a3: F41_S2, a4: UInt32, a5: UInt, a6: UInt32, a7: Int, a8: Int8) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a2.f3);\n hasher.combine(a2.f4);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a3.f2);\n hasher.combine(a3.f3);\n hasher.combine(a3.f4.f0.f0);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F42_S0\n{\n public let f0 : UInt32;\n public let f1 : UInt64;\n public let f2 : UInt64;\n}\n\n@frozen\npublic struct F42_S1\n{\n public let f0 : Double;\n public let f1 : Double;\n}\n\n@frozen\npublic struct F42_S2_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F42_S2\n{\n public let f0 : UInt8;\n public let f1 : Int64;\n public let f2 : F42_S2_S0;\n public let f3 : Int;\n}\n\n@frozen\npublic struct F42_S3_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F42_S3\n{\n public let f0 : Float;\n public let f1 : F42_S3_S0;\n}\n\n@frozen\npublic struct F42_S4\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F42_S5_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F42_S5\n{\n public let f0 : F42_S5_S0;\n}\n\n@frozen\npublic struct F42_S6\n{\n public let f0 : UInt;\n}\n\npublic func swiftFunc42(a0: F42_S0, a1: F42_S1, a2: UInt16, a3: F42_S2, a4: F42_S3, a5: F42_S4, a6: F42_S5, a7: F42_S6, a8: Int16) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a3.f2.f0);\n hasher.combine(a3.f3);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1.f0);\n hasher.combine(a5.f0);\n hasher.combine(a6.f0.f0);\n hasher.combine(a7.f0);\n hasher.combine(a8);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F43_S0_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F43_S0\n{\n public let f0 : F43_S0_S0;\n}\n\npublic func swiftFunc43(a0: Int64, a1: UInt8, a2: Int8, a3: Float, a4: Int64, a5: Int, a6: F43_S0) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6.f0.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F44_S0\n{\n public let f0 : UInt64;\n}\n\npublic func swiftFunc44(a0: F44_S0) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F45_S0\n{\n public let f0 : Double;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F45_S1_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F45_S1_S1\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F45_S1\n{\n public let f0 : UInt16;\n public let f1 : Int8;\n public let f2 : F45_S1_S0;\n public let f3 : F45_S1_S1;\n}\n\n@frozen\npublic struct F45_S2\n{\n public let f0 : UInt64;\n public let f1 : Float;\n public let f2 : UInt16;\n}\n\npublic func swiftFunc45(a0: F45_S0, a1: F45_S1, a2: F45_S2, a3: Int) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2.f0);\n hasher.combine(a1.f3.f0);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a3);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F46_S0\n{\n public let f0 : Int64;\n public let f1 : UInt8;\n public let f2 : UInt;\n public let f3 : Int8;\n}\n\n@frozen\npublic struct F46_S1\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F46_S2\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F46_S3\n{\n public let f0 : UInt64;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F46_S4\n{\n public let f0 : Int16;\n public let f1 : Int32;\n public let f2 : UInt32;\n}\n\n@frozen\npublic struct F46_S5\n{\n public let f0 : UInt64;\n}\n\npublic func swiftFunc46(a0: F46_S0, a1: F46_S1, a2: Int8, a3: Float, a4: F46_S2, a5: Int16, a6: F46_S3, a7: Int16, a8: Float, a9: F46_S4, a10: UInt16, a11: Float, a12: Int8, a13: F46_S5) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a1.f0);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9.f0);\n hasher.combine(a9.f1);\n hasher.combine(a9.f2);\n hasher.combine(a10);\n hasher.combine(a11);\n hasher.combine(a12);\n hasher.combine(a13.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F47_S0_S0\n{\n public let f0 : UInt16;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct F47_S0\n{\n public let f0 : F47_S0_S0;\n public let f1 : UInt16;\n public let f2 : UInt;\n public let f3 : Int64;\n}\n\n@frozen\npublic struct F47_S1\n{\n public let f0 : Int64;\n public let f1 : UInt8;\n}\n\npublic func swiftFunc47(a0: Int, a1: F47_S0, a2: F47_S1, a3: Int64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0.f0);\n hasher.combine(a1.f0.f1);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a1.f3);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a3);\n return hasher.finalize()\n}\n\npublic func swiftFunc48(a0: Int8, a1: UInt32, a2: Int16, a3: Float, a4: Int, a5: Float, a6: UInt32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F49_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F49_S1_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F49_S1_S1\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F49_S1\n{\n public let f0 : F49_S1_S0;\n public let f1 : Int32;\n public let f2 : F49_S1_S1;\n public let f3 : UInt;\n}\n\n@frozen\npublic struct F49_S2\n{\n public let f0 : UInt16;\n public let f1 : UInt8;\n public let f2 : Float;\n public let f3 : Int64;\n}\n\n@frozen\npublic struct F49_S3\n{\n public let f0 : Int32;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F49_S4\n{\n public let f0 : UInt32;\n public let f1 : Int;\n public let f2 : Int;\n}\n\npublic func swiftFunc49(a0: UInt64, a1: UInt8, a2: F49_S0, a3: F49_S1, a4: UInt, a5: UInt32, a6: Double, a7: F49_S2, a8: F49_S3, a9: Int8, a10: F49_S4, a11: Int32, a12: UInt64, a13: UInt8) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a3.f0.f0);\n hasher.combine(a3.f1);\n hasher.combine(a3.f2.f0);\n hasher.combine(a3.f3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a7.f1);\n hasher.combine(a7.f2);\n hasher.combine(a7.f3);\n hasher.combine(a8.f0);\n hasher.combine(a8.f1);\n hasher.combine(a9);\n hasher.combine(a10.f0);\n hasher.combine(a10.f1);\n hasher.combine(a10.f2);\n hasher.combine(a11);\n hasher.combine(a12);\n hasher.combine(a13);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F50_S0\n{\n public let f0 : Int8;\n public let f1 : Int16;\n public let f2 : Int32;\n public let f3 : UInt32;\n}\n\n@frozen\npublic struct F50_S1\n{\n public let f0 : Int32;\n}\n\npublic func swiftFunc50(a0: F50_S0, a1: UInt8, a2: F50_S1) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n return hasher.finalize()\n}\n\npublic func swiftFunc51(a0: UInt16, a1: Int8, a2: Int16) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n return hasher.finalize()\n}\n\npublic func swiftFunc52(a0: UInt8, a1: UInt64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F53_S0_S0\n{\n public let f0 : Int64;\n public let f1 : UInt;\n}\n\n@frozen\npublic struct F53_S0\n{\n public let f0 : UInt64;\n public let f1 : F53_S0_S0;\n public let f2 : Int16;\n public let f3 : UInt8;\n}\n\n@frozen\npublic struct F53_S1_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F53_S1\n{\n public let f0 : F53_S1_S0;\n}\n\n@frozen\npublic struct F53_S2\n{\n public let f0 : UInt8;\n public let f1 : UInt64;\n public let f2 : Double;\n}\n\npublic func swiftFunc53(a0: F53_S0, a1: UInt, a2: UInt64, a3: Float, a4: UInt32, a5: F53_S1, a6: F53_S2, a7: UInt32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1.f0);\n hasher.combine(a0.f1.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5.f0.f0);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1);\n hasher.combine(a6.f2);\n hasher.combine(a7);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F54_S0_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F54_S0\n{\n public let f0 : F54_S0_S0;\n}\n\n@frozen\npublic struct F54_S1\n{\n public let f0 : UInt32;\n}\n\npublic func swiftFunc54(a0: Int8, a1: Int32, a2: UInt32, a3: F54_S0, a4: Float, a5: UInt8, a6: F54_S1) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0.f0);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F55_S0\n{\n public let f0 : Double;\n}\n\npublic func swiftFunc55(a0: F55_S0) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F56_S0_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F56_S0\n{\n public let f0 : Float;\n public let f1 : F56_S0_S0;\n}\n\n@frozen\npublic struct F56_S1_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F56_S1\n{\n public let f0 : F56_S1_S0;\n public let f1 : Double;\n public let f2 : UInt;\n public let f3 : UInt32;\n}\n\n@frozen\npublic struct F56_S2\n{\n public let f0 : Int16;\n public let f1 : Int16;\n}\n\n@frozen\npublic struct F56_S3\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F56_S4\n{\n public let f0 : UInt;\n}\n\npublic func swiftFunc56(a0: F56_S0, a1: F56_S1, a2: F56_S2, a3: F56_S3, a4: F56_S4) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1.f0);\n hasher.combine(a1.f0.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a1.f3);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a3.f0);\n hasher.combine(a4.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F57_S0\n{\n public let f0 : Int8;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F57_S1_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F57_S1_S1\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F57_S1\n{\n public let f0 : F57_S1_S0;\n public let f1 : F57_S1_S1;\n public let f2 : Int16;\n}\n\n@frozen\npublic struct F57_S2\n{\n public let f0 : UInt;\n}\n\npublic func swiftFunc57(a0: UInt32, a1: F57_S0, a2: F57_S1, a3: UInt, a4: F57_S2, a5: Int16) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a2.f0.f0);\n hasher.combine(a2.f1.f0);\n hasher.combine(a2.f2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a5);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F58_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F58_S1\n{\n public let f0 : UInt;\n public let f1 : Int;\n public let f2 : UInt;\n public let f3 : UInt16;\n}\n\npublic func swiftFunc58(a0: UInt8, a1: UInt8, a2: Int, a3: F58_S0, a4: Float, a5: UInt64, a6: Int8, a7: F58_S1, a8: UInt16, a9: Int64, a10: Int64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a7.f1);\n hasher.combine(a7.f2);\n hasher.combine(a7.f3);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F59_S0\n{\n public let f0 : UInt;\n public let f1 : UInt8;\n public let f2 : Float;\n public let f3 : Int;\n}\n\n@frozen\npublic struct F59_S1\n{\n public let f0 : UInt8;\n public let f1 : Int32;\n}\n\n@frozen\npublic struct F59_S2\n{\n public let f0 : Int;\n public let f1 : UInt32;\n public let f2 : Int8;\n}\n\n@frozen\npublic struct F59_S3\n{\n public let f0 : Int8;\n public let f1 : Float;\n public let f2 : Int32;\n}\n\n@frozen\npublic struct F59_S4_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F59_S4\n{\n public let f0 : F59_S4_S0;\n}\n\npublic func swiftFunc59(a0: F59_S0, a1: Float, a2: UInt32, a3: F59_S1, a4: F59_S2, a5: UInt16, a6: Float, a7: Int, a8: Int, a9: UInt, a10: UInt, a11: Int16, a12: F59_S3, a13: F59_S4) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a4.f2);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10);\n hasher.combine(a11);\n hasher.combine(a12.f0);\n hasher.combine(a12.f1);\n hasher.combine(a12.f2);\n hasher.combine(a13.f0.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F60_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F60_S1\n{\n public let f0 : UInt32;\n}\n\npublic func swiftFunc60(a0: Int32, a1: Int8, a2: Int32, a3: UInt16, a4: Float, a5: F60_S0, a6: F60_S1) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5.f0);\n hasher.combine(a6.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F61_S0\n{\n public let f0 : UInt16;\n public let f1 : Int32;\n public let f2 : Int8;\n}\n\n@frozen\npublic struct F61_S1\n{\n public let f0 : Double;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F61_S2\n{\n public let f0 : Int;\n public let f1 : Int8;\n public let f2 : Float;\n public let f3 : UInt16;\n public let f4 : Float;\n}\n\n@frozen\npublic struct F61_S3\n{\n public let f0 : UInt32;\n public let f1 : UInt64;\n public let f2 : UInt;\n public let f3 : UInt;\n}\n\n@frozen\npublic struct F61_S4_S0\n{\n public let f0 : UInt8;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F61_S4\n{\n public let f0 : F61_S4_S0;\n public let f1 : Int64;\n}\n\npublic func swiftFunc61(a0: F61_S0, a1: UInt8, a2: Float, a3: F61_S1, a4: Int8, a5: Int64, a6: F61_S2, a7: F61_S3, a8: F61_S4, a9: UInt32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1);\n hasher.combine(a6.f2);\n hasher.combine(a6.f3);\n hasher.combine(a6.f4);\n hasher.combine(a7.f0);\n hasher.combine(a7.f1);\n hasher.combine(a7.f2);\n hasher.combine(a7.f3);\n hasher.combine(a8.f0.f0);\n hasher.combine(a8.f0.f1);\n hasher.combine(a8.f1);\n hasher.combine(a9);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F62_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F62_S1\n{\n public let f0 : Float;\n}\n\npublic func swiftFunc62(a0: F62_S0, a1: Int16, a2: Int32, a3: F62_S1) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F63_S0\n{\n public let f0 : Int;\n}\n\npublic func swiftFunc63(a0: F63_S0) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F64_S0\n{\n public let f0 : Double;\n public let f1 : UInt16;\n public let f2 : Int32;\n public let f3 : Int;\n public let f4 : Double;\n}\n\n@frozen\npublic struct F64_S1\n{\n public let f0 : Int32;\n public let f1 : Float;\n public let f2 : UInt32;\n}\n\npublic func swiftFunc64(a0: Double, a1: F64_S0, a2: UInt8, a3: F64_S1, a4: Int32, a5: UInt64, a6: Int8, a7: Int8, a8: Float) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a1.f3);\n hasher.combine(a1.f4);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a3.f2);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8);\n return hasher.finalize()\n}\n\npublic func swiftFunc65(a0: Float, a1: Float, a2: UInt, a3: Float) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F66_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F66_S1_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F66_S1\n{\n public let f0 : F66_S1_S0;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F66_S2\n{\n public let f0 : Double;\n public let f1 : UInt8;\n}\n\n@frozen\npublic struct F66_S3\n{\n public let f0 : UInt;\n}\n\npublic func swiftFunc66(a0: F66_S0, a1: F66_S1, a2: F66_S2, a3: F66_S3) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a1.f0.f0);\n hasher.combine(a1.f1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a3.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F67_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F67_S1_S0_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F67_S1_S0\n{\n public let f0 : F67_S1_S0_S0;\n}\n\n@frozen\npublic struct F67_S1\n{\n public let f0 : F67_S1_S0;\n public let f1 : UInt32;\n public let f2 : Int16;\n}\n\npublic func swiftFunc67(a0: UInt64, a1: UInt32, a2: UInt16, a3: Int8, a4: F67_S0, a5: UInt64, a6: F67_S1, a7: UInt, a8: UInt64, a9: Int64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a5);\n hasher.combine(a6.f0.f0.f0);\n hasher.combine(a6.f1);\n hasher.combine(a6.f2);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F68_S0_S0_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F68_S0_S0\n{\n public let f0 : F68_S0_S0_S0;\n}\n\n@frozen\npublic struct F68_S0\n{\n public let f0 : F68_S0_S0;\n}\n\n@frozen\npublic struct F68_S1\n{\n public let f0 : UInt64;\n public let f1 : UInt16;\n}\n\n@frozen\npublic struct F68_S2\n{\n public let f0 : UInt;\n public let f1 : Int;\n public let f2 : UInt64;\n public let f3 : Double;\n}\n\n@frozen\npublic struct F68_S3\n{\n public let f0 : Int;\n public let f1 : UInt32;\n public let f2 : UInt32;\n public let f3 : UInt;\n}\n\n@frozen\npublic struct F68_S4\n{\n public let f0 : Int32;\n}\n\npublic func swiftFunc68(a0: UInt16, a1: Int64, a2: Int16, a3: UInt64, a4: Int8, a5: Int32, a6: UInt8, a7: F68_S0, a8: UInt8, a9: F68_S1, a10: Int16, a11: F68_S2, a12: Int16, a13: Int16, a14: F68_S3, a15: F68_S4) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7.f0.f0.f0);\n hasher.combine(a8);\n hasher.combine(a9.f0);\n hasher.combine(a9.f1);\n hasher.combine(a10);\n hasher.combine(a11.f0);\n hasher.combine(a11.f1);\n hasher.combine(a11.f2);\n hasher.combine(a11.f3);\n hasher.combine(a12);\n hasher.combine(a13);\n hasher.combine(a14.f0);\n hasher.combine(a14.f1);\n hasher.combine(a14.f2);\n hasher.combine(a14.f3);\n hasher.combine(a15.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F69_S0\n{\n public let f0 : UInt32;\n public let f1 : UInt;\n}\n\n@frozen\npublic struct F69_S1_S0_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F69_S1_S0\n{\n public let f0 : F69_S1_S0_S0;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct F69_S1\n{\n public let f0 : F69_S1_S0;\n public let f1 : UInt;\n public let f2 : Int;\n}\n\n@frozen\npublic struct F69_S2\n{\n public let f0 : Float;\n public let f1 : UInt32;\n public let f2 : UInt16;\n public let f3 : Int8;\n}\n\n@frozen\npublic struct F69_S3\n{\n public let f0 : UInt8;\n public let f1 : Double;\n}\n\n@frozen\npublic struct F69_S4\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F69_S5\n{\n public let f0 : UInt64;\n}\n\npublic func swiftFunc69(a0: F69_S0, a1: F69_S1, a2: Int, a3: Int, a4: UInt16, a5: Int16, a6: Double, a7: F69_S2, a8: F69_S3, a9: F69_S4, a10: Int, a11: Int32, a12: F69_S5, a13: Float) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a1.f0.f0.f0);\n hasher.combine(a1.f0.f1);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a7.f1);\n hasher.combine(a7.f2);\n hasher.combine(a7.f3);\n hasher.combine(a8.f0);\n hasher.combine(a8.f1);\n hasher.combine(a9.f0);\n hasher.combine(a10);\n hasher.combine(a11);\n hasher.combine(a12.f0);\n hasher.combine(a13);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F70_S0\n{\n public let f0 : Float;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F70_S1\n{\n public let f0 : UInt16;\n public let f1 : Int8;\n public let f2 : Int16;\n}\n\n@frozen\npublic struct F70_S2\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F70_S3\n{\n public let f0 : UInt16;\n}\n\npublic func swiftFunc70(a0: UInt64, a1: F70_S0, a2: UInt16, a3: Int8, a4: Float, a5: F70_S1, a6: Int, a7: F70_S2, a8: F70_S3, a9: UInt32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5.f0);\n hasher.combine(a5.f1);\n hasher.combine(a5.f2);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a8.f0);\n hasher.combine(a9);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F71_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F71_S1\n{\n public let f0 : UInt64;\n}\n\npublic func swiftFunc71(a0: Int64, a1: F71_S0, a2: Int8, a3: F71_S1, a4: Float, a5: UInt32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a4);\n hasher.combine(a5);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F72_S0_S0\n{\n public let f0 : Int;\n public let f1 : Double;\n}\n\n@frozen\npublic struct F72_S0\n{\n public let f0 : F72_S0_S0;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F72_S1\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F72_S2\n{\n public let f0 : Double;\n}\n\npublic func swiftFunc72(a0: F72_S0, a1: F72_S1, a2: F72_S2) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0.f0);\n hasher.combine(a0.f0.f1);\n hasher.combine(a0.f1);\n hasher.combine(a1.f0);\n hasher.combine(a2.f0);\n return hasher.finalize()\n}\n\npublic func swiftFunc73(a0: Int64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F74_S0\n{\n public let f0 : UInt8;\n public let f1 : UInt8;\n public let f2 : Double;\n public let f3 : UInt8;\n}\n\n@frozen\npublic struct F74_S1\n{\n public let f0 : Int16;\n public let f1 : UInt16;\n public let f2 : Int64;\n public let f3 : UInt;\n}\n\n@frozen\npublic struct F74_S2\n{\n public let f0 : Int16;\n public let f1 : Double;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F74_S3\n{\n public let f0 : Int16;\n}\n\npublic func swiftFunc74(a0: F74_S0, a1: F74_S1, a2: Int32, a3: F74_S2, a4: Int, a5: Int64, a6: Int16, a7: Int32, a8: F74_S3, a9: UInt64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a1.f3);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a3.f2);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8.f0);\n hasher.combine(a9);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F75_S0_S0_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F75_S0_S0\n{\n public let f0 : F75_S0_S0_S0;\n}\n\n@frozen\npublic struct F75_S0\n{\n public let f0 : F75_S0_S0;\n public let f1 : Double;\n public let f2 : Int32;\n}\n\n@frozen\npublic struct F75_S1_S0_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F75_S1_S0\n{\n public let f0 : UInt;\n public let f1 : F75_S1_S0_S0;\n public let f2 : Int64;\n}\n\n@frozen\npublic struct F75_S1\n{\n public let f0 : F75_S1_S0;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F75_S2\n{\n public let f0 : UInt64;\n}\n\npublic func swiftFunc75(a0: F75_S0, a1: Double, a2: Int, a3: UInt, a4: Int, a5: F75_S1, a6: F75_S2) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0.f0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5.f0.f0);\n hasher.combine(a5.f0.f1.f0);\n hasher.combine(a5.f0.f2);\n hasher.combine(a5.f1);\n hasher.combine(a6.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F76_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F76_S1\n{\n public let f0 : UInt64;\n public let f1 : Int32;\n public let f2 : Int16;\n}\n\n@frozen\npublic struct F76_S2\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F76_S3\n{\n public let f0 : Int;\n}\n\npublic func swiftFunc76(a0: Double, a1: Int64, a2: UInt16, a3: Float, a4: Float, a5: F76_S0, a6: Int16, a7: F76_S1, a8: Int64, a9: UInt64, a10: UInt16, a11: UInt8, a12: Int8, a13: Int, a14: Int64, a15: Int8, a16: Int8, a17: Int16, a18: UInt16, a19: F76_S2, a20: F76_S3) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5.f0);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a7.f1);\n hasher.combine(a7.f2);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10);\n hasher.combine(a11);\n hasher.combine(a12);\n hasher.combine(a13);\n hasher.combine(a14);\n hasher.combine(a15);\n hasher.combine(a16);\n hasher.combine(a17);\n hasher.combine(a18);\n hasher.combine(a19.f0);\n hasher.combine(a20.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F77_S0_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F77_S0\n{\n public let f0 : UInt64;\n public let f1 : F77_S0_S0;\n public let f2 : Int8;\n}\n\n@frozen\npublic struct F77_S1\n{\n public let f0 : UInt64;\n public let f1 : Int;\n public let f2 : Int32;\n}\n\n@frozen\npublic struct F77_S2_S0_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F77_S2_S0\n{\n public let f0 : F77_S2_S0_S0;\n}\n\n@frozen\npublic struct F77_S2\n{\n public let f0 : F77_S2_S0;\n public let f1 : Int16;\n public let f2 : Int8;\n public let f3 : UInt8;\n}\n\n@frozen\npublic struct F77_S3\n{\n public let f0 : Int;\n public let f1 : Int;\n public let f2 : Int;\n public let f3 : Int16;\n}\n\n@frozen\npublic struct F77_S4\n{\n public let f0 : Double;\n public let f1 : Int8;\n public let f2 : UInt32;\n public let f3 : Int16;\n public let f4 : UInt32;\n}\n\n@frozen\npublic struct F77_S5\n{\n public let f0 : UInt;\n}\n\npublic func swiftFunc77(a0: F77_S0, a1: Int16, a2: F77_S1, a3: UInt32, a4: F77_S2, a5: F77_S3, a6: F77_S4, a7: UInt64, a8: F77_S5, a9: UInt16, a10: Float) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1.f0);\n hasher.combine(a0.f2);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a3);\n hasher.combine(a4.f0.f0.f0);\n hasher.combine(a4.f1);\n hasher.combine(a4.f2);\n hasher.combine(a4.f3);\n hasher.combine(a5.f0);\n hasher.combine(a5.f1);\n hasher.combine(a5.f2);\n hasher.combine(a5.f3);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1);\n hasher.combine(a6.f2);\n hasher.combine(a6.f3);\n hasher.combine(a6.f4);\n hasher.combine(a7);\n hasher.combine(a8.f0);\n hasher.combine(a9);\n hasher.combine(a10);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F78_S0\n{\n public let f0 : UInt16;\n public let f1 : UInt;\n}\n\npublic func swiftFunc78(a0: F78_S0, a1: UInt64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a1);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F79_S0\n{\n public let f0 : Double;\n}\n\npublic func swiftFunc79(a0: UInt32, a1: F79_S0, a2: Int16, a3: Double) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a2);\n hasher.combine(a3);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F80_S0\n{\n public let f0 : UInt64;\n public let f1 : Double;\n}\n\n@frozen\npublic struct F80_S1_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F80_S1\n{\n public let f0 : Int32;\n public let f1 : UInt16;\n public let f2 : UInt32;\n public let f3 : F80_S1_S0;\n}\n\n@frozen\npublic struct F80_S2\n{\n public let f0 : UInt64;\n public let f1 : Int64;\n public let f2 : UInt32;\n public let f3 : UInt16;\n}\n\n@frozen\npublic struct F80_S3_S0_S0\n{\n public let f0 : Int;\n public let f1 : Int64;\n public let f2 : UInt64;\n}\n\n@frozen\npublic struct F80_S3_S0\n{\n public let f0 : F80_S3_S0_S0;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F80_S3\n{\n public let f0 : F80_S3_S0;\n public let f1 : Int32;\n}\n\n@frozen\npublic struct F80_S4_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F80_S4\n{\n public let f0 : F80_S4_S0;\n}\n\npublic func swiftFunc80(a0: F80_S0, a1: F80_S1, a2: UInt16, a3: Int64, a4: F80_S2, a5: Double, a6: UInt64, a7: Int32, a8: F80_S3, a9: F80_S4, a10: UInt8) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a1.f3.f0);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a4.f2);\n hasher.combine(a4.f3);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8.f0.f0.f0);\n hasher.combine(a8.f0.f0.f1);\n hasher.combine(a8.f0.f0.f2);\n hasher.combine(a8.f0.f1);\n hasher.combine(a8.f1);\n hasher.combine(a9.f0.f0);\n hasher.combine(a10);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F81_S0\n{\n public let f0 : Double;\n public let f1 : UInt64;\n public let f2 : UInt32;\n public let f3 : UInt8;\n public let f4 : UInt8;\n}\n\n@frozen\npublic struct F81_S1\n{\n public let f0 : UInt32;\n}\n\npublic func swiftFunc81(a0: F81_S0, a1: Int32, a2: Float, a3: F81_S1) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a0.f4);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F82_S0\n{\n public let f0 : Int32;\n public let f1 : Int16;\n public let f2 : UInt64;\n public let f3 : Int8;\n}\n\n@frozen\npublic struct F82_S1_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F82_S1\n{\n public let f0 : Int;\n public let f1 : Int32;\n public let f2 : F82_S1_S0;\n}\n\n@frozen\npublic struct F82_S2\n{\n public let f0 : Int;\n public let f1 : Int64;\n public let f2 : UInt32;\n public let f3 : UInt16;\n public let f4 : Int64;\n}\n\n@frozen\npublic struct F82_S3\n{\n public let f0 : UInt8;\n}\n\npublic func swiftFunc82(a0: F82_S0, a1: F82_S1, a2: F82_S2, a3: UInt32, a4: Int, a5: F82_S3) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2.f0);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a2.f3);\n hasher.combine(a2.f4);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F83_S0_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F83_S0\n{\n public let f0 : F83_S0_S0;\n public let f1 : Int;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F83_S1_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F83_S1_S1_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F83_S1_S1\n{\n public let f0 : F83_S1_S1_S0;\n}\n\n@frozen\npublic struct F83_S1\n{\n public let f0 : UInt32;\n public let f1 : F83_S1_S0;\n public let f2 : F83_S1_S1;\n}\n\n@frozen\npublic struct F83_S2\n{\n public let f0 : Int;\n}\n\npublic func swiftFunc83(a0: Float, a1: F83_S0, a2: F83_S1, a3: Int16, a4: Int, a5: Float, a6: F83_S2, a7: UInt16) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1.f0);\n hasher.combine(a2.f2.f0.f0);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n hasher.combine(a7);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F84_S0\n{\n public let f0 : Int16;\n public let f1 : Int8;\n public let f2 : UInt16;\n public let f3 : Int64;\n public let f4 : Int16;\n}\n\n@frozen\npublic struct F84_S1\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F84_S2_S0\n{\n public let f0 : UInt8;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F84_S2\n{\n public let f0 : UInt;\n public let f1 : F84_S2_S0;\n public let f2 : Int8;\n public let f3 : Double;\n}\n\n@frozen\npublic struct F84_S3\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F84_S4\n{\n public let f0 : Float;\n}\n\npublic func swiftFunc84(a0: F84_S0, a1: F84_S1, a2: UInt64, a3: F84_S2, a4: UInt32, a5: F84_S3, a6: UInt, a7: F84_S4, a8: UInt64, a9: UInt64, a10: UInt16, a11: Int16, a12: Float) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a0.f4);\n hasher.combine(a1.f0);\n hasher.combine(a2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1.f0);\n hasher.combine(a3.f1.f1);\n hasher.combine(a3.f2);\n hasher.combine(a3.f3);\n hasher.combine(a4);\n hasher.combine(a5.f0);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10);\n hasher.combine(a11);\n hasher.combine(a12);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F85_S0_S0_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F85_S0_S0\n{\n public let f0 : Int32;\n public let f1 : F85_S0_S0_S0;\n}\n\n@frozen\npublic struct F85_S0\n{\n public let f0 : Float;\n public let f1 : F85_S0_S0;\n public let f2 : Int;\n public let f3 : Int64;\n}\n\n@frozen\npublic struct F85_S1\n{\n public let f0 : UInt32;\n public let f1 : Int32;\n}\n\n@frozen\npublic struct F85_S2\n{\n public let f0 : UInt;\n}\n\npublic func swiftFunc85(a0: F85_S0, a1: F85_S1, a2: F85_S2, a3: Int8, a4: UInt32, a5: Int16) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1.f0);\n hasher.combine(a0.f1.f1.f0);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a2.f0);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F86_S0\n{\n public let f0 : Int32;\n public let f1 : Int64;\n public let f2 : Int32;\n public let f3 : UInt16;\n}\n\n@frozen\npublic struct F86_S1_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F86_S1\n{\n public let f0 : F86_S1_S0;\n public let f1 : UInt16;\n}\n\n@frozen\npublic struct F86_S2\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F86_S3\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F86_S4\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F86_S5\n{\n public let f0 : Int16;\n}\n\npublic func swiftFunc86(a0: F86_S0, a1: Int, a2: Int, a3: UInt, a4: F86_S1, a5: F86_S2, a6: UInt64, a7: F86_S3, a8: F86_S4, a9: F86_S5) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0.f0);\n hasher.combine(a4.f1);\n hasher.combine(a5.f0);\n hasher.combine(a6);\n hasher.combine(a7.f0);\n hasher.combine(a8.f0);\n hasher.combine(a9.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F87_S0_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F87_S0\n{\n public let f0 : F87_S0_S0;\n public let f1 : Float;\n public let f2 : Int64;\n public let f3 : Double;\n}\n\n@frozen\npublic struct F87_S1\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F87_S2_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F87_S2\n{\n public let f0 : F87_S2_S0;\n}\n\n@frozen\npublic struct F87_S3\n{\n public let f0 : Int32;\n}\n\npublic func swiftFunc87(a0: Int64, a1: F87_S0, a2: UInt, a3: UInt8, a4: Double, a5: Int16, a6: UInt64, a7: Double, a8: Float, a9: F87_S1, a10: Int64, a11: F87_S2, a12: F87_S3, a13: Float) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a1.f3);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9.f0);\n hasher.combine(a10);\n hasher.combine(a11.f0.f0);\n hasher.combine(a12.f0);\n hasher.combine(a13);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F88_S0\n{\n public let f0 : UInt8;\n public let f1 : Int64;\n public let f2 : UInt64;\n public let f3 : Int;\n}\n\n@frozen\npublic struct F88_S1\n{\n public let f0 : Int64;\n public let f1 : UInt8;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F88_S2\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F88_S3_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F88_S3\n{\n public let f0 : Int32;\n public let f1 : F88_S3_S0;\n public let f2 : Int8;\n public let f3 : UInt16;\n}\n\n@frozen\npublic struct F88_S4_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F88_S4\n{\n public let f0 : UInt16;\n public let f1 : UInt;\n public let f2 : Int8;\n public let f3 : Int;\n public let f4 : F88_S4_S0;\n}\n\n@frozen\npublic struct F88_S5\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F88_S6\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F88_S7_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F88_S7\n{\n public let f0 : F88_S7_S0;\n}\n\npublic func swiftFunc88(a0: F88_S0, a1: Int8, a2: F88_S1, a3: UInt64, a4: F88_S2, a5: F88_S3, a6: F88_S4, a7: Int16, a8: F88_S5, a9: F88_S6, a10: F88_S7) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a5.f0);\n hasher.combine(a5.f1.f0);\n hasher.combine(a5.f2);\n hasher.combine(a5.f3);\n hasher.combine(a6.f0);\n hasher.combine(a6.f1);\n hasher.combine(a6.f2);\n hasher.combine(a6.f3);\n hasher.combine(a6.f4.f0);\n hasher.combine(a7);\n hasher.combine(a8.f0);\n hasher.combine(a9.f0);\n hasher.combine(a10.f0.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F89_S0\n{\n public let f0 : UInt8;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct F89_S1\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F89_S2\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F89_S3\n{\n public let f0 : Double;\n public let f1 : Double;\n}\n\n@frozen\npublic struct F89_S4\n{\n public let f0 : UInt32;\n}\n\npublic func swiftFunc89(a0: F89_S0, a1: F89_S1, a2: F89_S2, a3: UInt8, a4: F89_S3, a5: F89_S4, a6: Int32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a1.f0);\n hasher.combine(a2.f0);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a5.f0);\n hasher.combine(a6);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F90_S0\n{\n public let f0 : UInt16;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F90_S1_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F90_S1\n{\n public let f0 : F90_S1_S0;\n public let f1 : UInt;\n public let f2 : Double;\n}\n\n@frozen\npublic struct F90_S2\n{\n public let f0 : UInt64;\n public let f1 : Int;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F90_S3_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F90_S3\n{\n public let f0 : F90_S3_S0;\n}\n\n@frozen\npublic struct F90_S4\n{\n public let f0 : Int64;\n}\n\npublic func swiftFunc90(a0: F90_S0, a1: Int8, a2: F90_S1, a3: F90_S2, a4: F90_S3, a5: UInt32, a6: F90_S4, a7: UInt8) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a1);\n hasher.combine(a2.f0.f0);\n hasher.combine(a2.f1);\n hasher.combine(a2.f2);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a3.f2);\n hasher.combine(a4.f0.f0);\n hasher.combine(a5);\n hasher.combine(a6.f0);\n hasher.combine(a7);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F91_S0_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F91_S0\n{\n public let f0 : F91_S0_S0;\n public let f1 : UInt32;\n public let f2 : Int;\n}\n\npublic func swiftFunc91(a0: F91_S0, a1: UInt8) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a1);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F92_S0\n{\n public let f0 : UInt16;\n public let f1 : UInt16;\n}\n\n@frozen\npublic struct F92_S1\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F92_S2\n{\n public let f0 : UInt64;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F92_S3\n{\n public let f0 : UInt;\n}\n\npublic func swiftFunc92(a0: Int16, a1: UInt64, a2: UInt, a3: Int64, a4: F92_S0, a5: Int64, a6: Double, a7: UInt8, a8: Int8, a9: UInt32, a10: Int8, a11: F92_S1, a12: UInt32, a13: Float, a14: UInt64, a15: UInt8, a16: Int32, a17: UInt32, a18: F92_S2, a19: F92_S3) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n hasher.combine(a4.f1);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10);\n hasher.combine(a11.f0);\n hasher.combine(a12);\n hasher.combine(a13);\n hasher.combine(a14);\n hasher.combine(a15);\n hasher.combine(a16);\n hasher.combine(a17);\n hasher.combine(a18.f0);\n hasher.combine(a18.f1);\n hasher.combine(a19.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F93_S0\n{\n public let f0 : Int32;\n public let f1 : UInt;\n public let f2 : Double;\n}\n\n@frozen\npublic struct F93_S1\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F93_S2\n{\n public let f0 : Double;\n}\n\npublic func swiftFunc93(a0: F93_S0, a1: Int, a2: F93_S1, a3: Double, a4: F93_S2) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a1);\n hasher.combine(a2.f0);\n hasher.combine(a3);\n hasher.combine(a4.f0);\n return hasher.finalize()\n}\n\npublic func swiftFunc94(a0: UInt64, a1: Int32, a2: UInt64, a3: Int64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F95_S0\n{\n public let f0 : Int64;\n}\n\npublic func swiftFunc95(a0: F95_S0, a1: Int64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a1);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F96_S0_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F96_S0\n{\n public let f0 : UInt64;\n public let f1 : Double;\n public let f2 : Double;\n public let f3 : F96_S0_S0;\n}\n\n@frozen\npublic struct F96_S1_S0_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F96_S1_S0\n{\n public let f0 : F96_S1_S0_S0;\n}\n\n@frozen\npublic struct F96_S1\n{\n public let f0 : F96_S1_S0;\n}\n\n@frozen\npublic struct F96_S2\n{\n public let f0 : UInt8;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F96_S3\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F96_S4\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F96_S5_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F96_S5\n{\n public let f0 : F96_S5_S0;\n}\n\n@frozen\npublic struct F96_S6\n{\n public let f0 : UInt64;\n}\n\npublic func swiftFunc96(a0: UInt16, a1: F96_S0, a2: F96_S1, a3: F96_S2, a4: UInt16, a5: UInt64, a6: Int, a7: Int32, a8: Int16, a9: UInt, a10: F96_S3, a11: Int16, a12: Int, a13: Int8, a14: Int32, a15: UInt32, a16: F96_S4, a17: F96_S5, a18: F96_S6) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1.f0);\n hasher.combine(a1.f1);\n hasher.combine(a1.f2);\n hasher.combine(a1.f3.f0);\n hasher.combine(a2.f0.f0.f0);\n hasher.combine(a3.f0);\n hasher.combine(a3.f1);\n hasher.combine(a4);\n hasher.combine(a5);\n hasher.combine(a6);\n hasher.combine(a7);\n hasher.combine(a8);\n hasher.combine(a9);\n hasher.combine(a10.f0);\n hasher.combine(a11);\n hasher.combine(a12);\n hasher.combine(a13);\n hasher.combine(a14);\n hasher.combine(a15);\n hasher.combine(a16.f0);\n hasher.combine(a17.f0.f0);\n hasher.combine(a18.f0);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F97_S0\n{\n public let f0 : Float;\n public let f1 : Float;\n public let f2 : Int;\n public let f3 : Int;\n public let f4 : Int;\n}\n\npublic func swiftFunc97(a0: Int8, a1: Int32, a2: UInt8, a3: UInt32, a4: UInt8, a5: F97_S0, a6: Int8, a7: Int) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5.f0);\n hasher.combine(a5.f1);\n hasher.combine(a5.f2);\n hasher.combine(a5.f3);\n hasher.combine(a5.f4);\n hasher.combine(a6);\n hasher.combine(a7);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F98_S0_S0_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F98_S0_S0\n{\n public let f0 : UInt;\n public let f1 : F98_S0_S0_S0;\n}\n\n@frozen\npublic struct F98_S0\n{\n public let f0 : Int64;\n public let f1 : F98_S0_S0;\n public let f2 : UInt;\n}\n\npublic func swiftFunc98(a0: F98_S0, a1: UInt16, a2: UInt16, a3: Int16, a4: Int8, a5: UInt32) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1.f0);\n hasher.combine(a0.f1.f1.f0);\n hasher.combine(a0.f2);\n hasher.combine(a1);\n hasher.combine(a2);\n hasher.combine(a3);\n hasher.combine(a4);\n hasher.combine(a5);\n return hasher.finalize()\n}\n\n@frozen\npublic struct F99_S0\n{\n public let f0 : UInt64;\n public let f1 : UInt16;\n public let f2 : Float;\n public let f3 : UInt64;\n}\n\n@frozen\npublic struct F99_S1_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F99_S1\n{\n public let f0 : F99_S1_S0;\n}\n\npublic func swiftFunc99(a0: F99_S0, a1: Int8, a2: F99_S1, a3: Int64) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.f0);\n hasher.combine(a0.f1);\n hasher.combine(a0.f2);\n hasher.combine(a0.f3);\n hasher.combine(a1);\n hasher.combine(a2.f0.f0);\n hasher.combine(a3);\n return hasher.finalize()\n}\n\n
dataset_sample\swift\dotnet_runtime\src\tests\Interop\SwiftAbiStress\SwiftAbiStress.swift
SwiftAbiStress.swift
Swift
89,506
0.75
0.000215
0.000483
node-utils
954
2024-09-10T12:00:37.211072
Apache-2.0
true
e270db7c8dd28794dc12b042ed77452b
// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nimport Foundation\n\n@frozen\npublic struct F0_S0\n{\n public let f0 : Double;\n public let f1 : UInt32;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F0_S1\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F0_S2\n{\n public let f0 : Float;\n}\n\npublic func swiftCallbackFunc0(f: (Int16, Int32, UInt64, UInt16, F0_S0, F0_S1, UInt8, F0_S2) -> Int32) -> Int32 {\n return f(-17813, 318006528, 1195162122024233590, 60467, F0_S0(f0: 2239972725713766, f1: 1404066621, f2: 29895), F0_S1(f0: 7923486769850554262), 217, F0_S2(f0: 2497655))\n}\n\n@frozen\npublic struct F1_S0\n{\n public let f0 : UInt16;\n public let f1 : UInt8;\n}\n\n@frozen\npublic struct F1_S1\n{\n public let f0 : UInt8;\n public let f1 : UInt64;\n public let f2 : Int16;\n public let f3 : Float;\n public let f4 : Float;\n}\n\n@frozen\npublic struct F1_S2_S0\n{\n public let f0 : UInt32;\n public let f1 : Double;\n}\n\n@frozen\npublic struct F1_S2\n{\n public let f0 : Int8;\n public let f1 : UInt;\n public let f2 : F1_S2_S0;\n public let f3 : Int;\n}\n\n@frozen\npublic struct F1_S3\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F1_S4\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F1_S5_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F1_S5\n{\n public let f0 : F1_S5_S0;\n}\n\npublic func swiftCallbackFunc1(f: (Int64, Double, Int8, F1_S0, F1_S1, F1_S2, UInt8, Int8, Int64, F1_S3, UInt, F1_S4, F1_S5, Int) -> UInt8) -> UInt8 {\n return f(7920511243396412395, 1396130721334528, -55, F1_S0(f0: 33758, f1: 103), F1_S1(f0: 201, f1: 7390774039746135757, f2: 14699, f3: 7235330, f4: 7189013), F1_S2(f0: 37, f1: 3310322731568932038, f2: F1_S2_S0(f0: 1100328218, f1: 1060779460203640), f3: 8325292022909418877), 137, 82, 1197537325837505041, F1_S3(f0: 46950), 8181828233622947597, F1_S4(f0: 1851182205030289056), F1_S5(f0: F1_S5_S0(f0: 1971014225)), 6437995407675718392)\n}\n\n@frozen\npublic struct F2_S0\n{\n public let f0 : Int32;\n public let f1 : UInt;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F2_S1_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F2_S1\n{\n public let f0 : Int64;\n public let f1 : UInt16;\n public let f2 : F2_S1_S0;\n public let f3 : Int;\n public let f4 : Double;\n}\n\n@frozen\npublic struct F2_S2\n{\n public let f0 : Float;\n public let f1 : Int32;\n public let f2 : UInt16;\n public let f3 : Int8;\n}\n\n@frozen\npublic struct F2_S3_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F2_S3\n{\n public let f0 : F2_S3_S0;\n}\n\npublic func swiftCallbackFunc2(f: (F2_S0, F2_S1, F2_S2, Float, UInt64, F2_S3) -> Int8) -> Int8 {\n return f(F2_S0(f0: 1860840185, f1: 5407074783834178811, f2: 6261766), F2_S1(f0: 4033972792915237065, f1: 22825, f2: F2_S1_S0(f0: 44574), f3: 4536911485304731630, f4: 4282944015147385), F2_S2(f0: 2579193, f1: 586252933, f2: 47002, f3: 71), 3225929, 3599444831393612282, F2_S3(f0: F2_S3_S0(f0: 13)))\n}\n\n@frozen\npublic struct F3_S0_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F3_S0\n{\n public let f0 : F3_S0_S0;\n}\n\n@frozen\npublic struct F3_S1\n{\n public let f0 : UInt32;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F3_S2_S0\n{\n public let f0 : Int16;\n public let f1 : UInt8;\n}\n\n@frozen\npublic struct F3_S2\n{\n public let f0 : F3_S2_S0;\n public let f1 : Int8;\n public let f2 : UInt8;\n}\n\n@frozen\npublic struct F3_S3\n{\n public let f0 : UInt64;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F3_S4\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F3_Ret\n{\n public let f0 : UInt16;\n public let f1 : UInt8;\n public let f2 : UInt16;\n public let f3 : Float;\n}\n\npublic func swiftCallbackFunc3(f: (F3_S0, Float, UInt16, F3_S1, UInt16, Int32, F3_S2, Int, F3_S3, F3_S4) -> F3_Ret) -> F3_Ret {\n return f(F3_S0(f0: F3_S0_S0(f0: 5610153900386943274)), 7736836, 31355, F3_S1(f0: 1159208572, f1: 2707818827451590538), 37580, 1453603418, F3_S2(f0: F3_S2_S0(f0: 699, f1: 46), f1: -125, f2: 92), 94557706586779834, F3_S3(f0: 2368015527878194540, f1: 5026404532195049271), F3_S4(f0: 21807))\n}\n\n@frozen\npublic struct F4_S0_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F4_S0\n{\n public let f0 : F4_S0_S0;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F4_Ret_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F4_Ret\n{\n public let f0 : Int32;\n public let f1 : F4_Ret_S0;\n public let f2 : Int;\n public let f3 : Int16;\n public let f4 : Int;\n public let f5 : UInt32;\n}\n\npublic func swiftCallbackFunc4(f: (Double, F4_S0, UInt8, Int32, UInt32) -> F4_Ret) -> F4_Ret {\n return f(4282972206489588, F4_S0(f0: F4_S0_S0(f0: 611688063), f1: 877466), 53, 965123506, 1301067653)\n}\n\n@frozen\npublic struct F5_S0\n{\n public let f0 : UInt;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F5_S1_S0\n{\n public let f0 : Int;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F5_S1_S1\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F5_S1\n{\n public let f0 : F5_S1_S0;\n public let f1 : F5_S1_S1;\n}\n\n@frozen\npublic struct F5_S2\n{\n public let f0 : Double;\n public let f1 : Int8;\n public let f2 : Int;\n}\n\n@frozen\npublic struct F5_S3\n{\n public let f0 : Int64;\n public let f1 : Double;\n}\n\n@frozen\npublic struct F5_S4\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F5_Ret\n{\n public let f0 : Int16;\n public let f1 : Int32;\n public let f2 : Int32;\n public let f3 : UInt64;\n public let f4 : Int16;\n}\n\npublic func swiftCallbackFunc5(f: (UInt8, Int16, UInt64, UInt, UInt, UInt64, UInt8, F5_S0, Int8, Int8, F5_S1, F5_S2, F5_S3, Double, F5_S4, UInt16, Float, Float, UInt16) -> F5_Ret) -> F5_Ret {\n return f(42, 18727, 3436765034579128495, 6305137336506323506, 6280137078630028944, 6252650621827449809, 129, F5_S0(f0: 6879980973426111678, f1: 1952654577), -34, 102, F5_S1(f0: F5_S1_S0(f0: 8389143657021522019, f1: 437030241), f1: F5_S1_S1(f0: 7522798)), F5_S2(f0: 523364011167530, f1: 16, f2: 3823439046574037759), F5_S3(f0: 3767260839267771462, f1: 1181031208183008), 2338830539621828, F5_S4(f0: 36276), 41286, 6683955, 6399917, 767)\n}\n\n@frozen\npublic struct F6_S0_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F6_S0\n{\n public let f0 : Int8;\n public let f1 : Int8;\n public let f2 : Int32;\n public let f3 : F6_S0_S0;\n}\n\n@frozen\npublic struct F6_S1\n{\n public let f0 : Int32;\n public let f1 : UInt64;\n public let f2 : UInt64;\n public let f3 : UInt32;\n}\n\n@frozen\npublic struct F6_S2\n{\n public let f0 : Int64;\n public let f1 : Int16;\n public let f2 : Int8;\n}\n\n@frozen\npublic struct F6_S3\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F6_Ret_S0\n{\n public let f0 : Int64;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F6_Ret\n{\n public let f0 : F6_Ret_S0;\n public let f1 : UInt64;\n public let f2 : Float;\n public let f3 : Int8;\n}\n\npublic func swiftCallbackFunc6(f: (Float, F6_S0, Int64, Int8, UInt16, UInt, UInt16, UInt64, F6_S1, Int16, F6_S2, F6_S3, UInt16) -> F6_Ret) -> F6_Ret {\n return f(2905241, F6_S0(f0: -27, f1: -77, f2: 1315779092, f3: F6_S0_S0(f0: 5373970)), 7022244764256789748, -110, 2074, 3560129042279209151, 2200, 5730241035812482149, F6_S1(f0: 18625011, f1: 242340713355417257, f2: 6962175160124965670, f3: 1983617839), -28374, F6_S2(f0: 6355748563312062178, f1: -23189, f2: 81), F6_S3(f0: 4547677), 6397)\n}\n\n@frozen\npublic struct F7_S0\n{\n public let f0 : Float;\n public let f1 : Int64;\n public let f2 : UInt;\n}\n\n@frozen\npublic struct F7_S1\n{\n public let f0 : Int16;\n public let f1 : UInt32;\n public let f2 : UInt32;\n}\n\npublic func swiftCallbackFunc7(f: (Int64, UInt8, Double, UInt16, F7_S0, UInt8, Double, UInt32, F7_S1, Int32, Int32, Int, Int16, UInt16, Int, UInt64, UInt8, Int16) -> UInt16) -> UInt16 {\n return f(7625368278886567558, 70, 2146971972122530, 54991, F7_S0(f0: 1072132, f1: 3890459003549150599, f2: 56791000421908673), 227, 3248250571953113, 1138780108, F7_S1(f0: -22670, f1: 1796712687, f2: 304251857), 1288765591, 1382721790, 6746417265635727373, -15600, 47575, 7200793040165597188, 2304985873826892392, 99, -9993)\n}\n\n@frozen\npublic struct F8_S0\n{\n public let f0 : Int16;\n public let f1 : Int16;\n public let f2 : UInt;\n}\n\n@frozen\npublic struct F8_S1\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F8_Ret_S0\n{\n public let f0 : Int32;\n public let f1 : UInt;\n public let f2 : Int;\n}\n\n@frozen\npublic struct F8_Ret\n{\n public let f0 : Int64;\n public let f1 : F8_Ret_S0;\n public let f2 : Int;\n public let f3 : UInt32;\n}\n\npublic func swiftCallbackFunc8(f: (F8_S0, F8_S1) -> F8_Ret) -> F8_Ret {\n return f(F8_S0(f0: 16278, f1: -31563, f2: 2171308312325435543), F8_S1(f0: 8923668560896309835))\n}\n\n@frozen\npublic struct F9_S0_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F9_S0\n{\n public let f0 : F9_S0_S0;\n public let f1 : Int16;\n}\n\n@frozen\npublic struct F9_S1_S0\n{\n public let f0 : Int64;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F9_S1\n{\n public let f0 : Int;\n public let f1 : F9_S1_S0;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F9_S2\n{\n public let f0 : UInt64;\n public let f1 : Double;\n public let f2 : Int16;\n public let f3 : Int8;\n}\n\n@frozen\npublic struct F9_S3_S0_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F9_S3_S0\n{\n public let f0 : F9_S3_S0_S0;\n}\n\n@frozen\npublic struct F9_S3\n{\n public let f0 : Int8;\n public let f1 : F9_S3_S0;\n}\n\n@frozen\npublic struct F9_S4_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F9_S4\n{\n public let f0 : F9_S4_S0;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct F9_S5_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F9_S5\n{\n public let f0 : UInt32;\n public let f1 : F9_S5_S0;\n}\n\n@frozen\npublic struct F9_S6\n{\n public let f0 : Double;\n}\n\npublic func swiftCallbackFunc9(f: (Int8, UInt8, Int64, F9_S0, F9_S1, F9_S2, Double, F9_S3, F9_S4, Double, F9_S5, F9_S6) -> UInt16) -> UInt16 {\n return f(17, 104, 8922699691031703191, F9_S0(f0: F9_S0_S0(f0: 123), f1: 31706), F9_S1(f0: 1804058604961822948, f1: F9_S1_S0(f0: 8772179036715198777, f1: 3320511540592563328), f2: 679540), F9_S2(f0: 8642590829466497926, f1: 4116322155252965, f2: 17992, f3: -48), 414017537937894, F9_S3(f0: 47, f1: F9_S3_S0(f0: F9_S3_S0_S0(f0: 7576380984563129085))), F9_S4(f0: F9_S4_S0(f0: 1356827400304742803), f1: -17), 4458031413035521, F9_S5(f0: 352075098, f1: F9_S5_S0(f0: 1840980094)), F9_S6(f0: 396957263013930))\n}\n\n@frozen\npublic struct F10_Ret\n{\n public let f0 : Int64;\n public let f1 : UInt32;\n public let f2 : UInt16;\n public let f3 : UInt32;\n}\n\npublic func swiftCallbackFunc10(f: (Int16) -> F10_Ret) -> F10_Ret {\n return f(-7168)\n}\n\n@frozen\npublic struct F11_S0_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F11_S0\n{\n public let f0 : UInt32;\n public let f1 : F11_S0_S0;\n public let f2 : UInt;\n public let f3 : Int32;\n public let f4 : Int64;\n}\n\n@frozen\npublic struct F11_S1_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F11_S1\n{\n public let f0 : F11_S1_S0;\n public let f1 : Int16;\n public let f2 : UInt32;\n public let f3 : Int16;\n}\n\n@frozen\npublic struct F11_S2\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F11_Ret\n{\n public let f0 : Int16;\n public let f1 : Int16;\n public let f2 : UInt8;\n public let f3 : Int64;\n}\n\npublic func swiftCallbackFunc11(f: (UInt32, UInt, UInt64, Int16, F11_S0, Float, Int8, UInt16, F11_S1, UInt32, Int64, UInt32, F11_S2) -> F11_Ret) -> F11_Ret {\n return f(454751144, 1696592254558667577, 5831587230944972245, 15352, F11_S0(f0: 1306601347, f1: F11_S0_S0(f0: 123), f2: 3064471520018434938, f3: 272956246, f4: 3683518307106722029), 5606122, -126, 50801, F11_S1(f0: F11_S1_S0(f0: 63467), f1: -31828, f2: 2117176776, f3: -27265), 1879606687, 4981244336430926707, 1159924856, F11_S2(f0: 29))\n}\n\n@frozen\npublic struct F12_S0\n{\n public let f0 : UInt64;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct F12_S1_S0_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F12_S1_S0\n{\n public let f0 : F12_S1_S0_S0;\n}\n\n@frozen\npublic struct F12_S1\n{\n public let f0 : UInt16;\n public let f1 : UInt32;\n public let f2 : F12_S1_S0;\n}\n\n@frozen\npublic struct F12_Ret\n{\n public let f0 : UInt64;\n public let f1 : Int;\n}\n\npublic func swiftCallbackFunc12(f: (F12_S0, Int16, UInt64, F12_S1, Int8) -> F12_Ret) -> F12_Ret {\n return f(F12_S0(f0: 3236871137735400659, f1: -123), -22828, 2132557792366642035, F12_S1(f0: 42520, f1: 879349060, f2: F12_S1_S0(f0: F12_S1_S0_S0(f0: 5694370973277919380))), -75)\n}\n\n@frozen\npublic struct F13_S0_S0\n{\n public let f0 : Int64;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F13_S0\n{\n public let f0 : F13_S0_S0;\n public let f1 : Float;\n public let f2 : Int16;\n}\n\n@frozen\npublic struct F13_S1\n{\n public let f0 : Int;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F13_S2_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F13_S2\n{\n public let f0 : F13_S2_S0;\n public let f1 : Double;\n}\n\n@frozen\npublic struct F13_S3\n{\n public let f0 : Float;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct F13_S4\n{\n public let f0 : Int;\n}\n\npublic func swiftCallbackFunc13(f: (F13_S0, Int32, Int, UInt16, UInt, F13_S1, F13_S2, Int, Double, Int8, Float, Int, F13_S3, UInt, F13_S4) -> Double) -> Double {\n return f(F13_S0(f0: F13_S0_S0(f0: 9003727031576598067, f1: 8527798284445940986), f1: 3585628, f2: -12520), 1510815104, 5883331525294982326, 60738, 5291799143932627546, F13_S1(f0: 1949276559361384602, f1: 876048527237138968), F13_S2(f0: F13_S2_S0(f0: 67), f1: 2455575228564859), 2321408806345977320, 12750323283778, 46, 6774339, 5121910967292140178, F13_S3(f0: 8254279, f1: -7), 7533347207018595125, F13_S4(f0: 6605448167191082938))\n}\n\n@frozen\npublic struct F14_S0\n{\n public let f0 : Int8;\n public let f1 : Float;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F14_S1\n{\n public let f0 : UInt64;\n public let f1 : UInt64;\n}\n\npublic func swiftCallbackFunc14(f: (Int64, F14_S0, Int8, UInt64, F14_S1, Int) -> Int64) -> Int64 {\n return f(5547219684656041875, F14_S0(f0: -39, f1: 5768837, f2: 53063), -102, 5745438709817040873, F14_S1(f0: 2178706453119907411, f1: 4424726479787355131), 5693881223150438553)\n}\n\n@frozen\npublic struct F15_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F15_S1\n{\n public let f0 : Int;\n public let f1 : UInt32;\n public let f2 : UInt8;\n public let f3 : Int16;\n}\n\n@frozen\npublic struct F15_S2\n{\n public let f0 : Int8;\n public let f1 : UInt64;\n public let f2 : Int64;\n public let f3 : UInt8;\n}\n\n@frozen\npublic struct F15_S3\n{\n public let f0 : Double;\n}\n\npublic func swiftCallbackFunc15(f: (UInt8, UInt16, UInt64, UInt64, Int8, UInt, Double, Float, Int, F15_S0, F15_S1, UInt16, F15_S2, UInt8, F15_S3) -> Int) -> Int {\n return f(0, 31081, 8814881608835743979, 4283853687332682681, 80, 7895994601265649979, 1855521542692398, 3235683, 215122646177738904, F15_S0(f0: 2044750195), F15_S1(f0: 1772412898183620625, f1: 131256973, f2: 153, f3: 25281), 50965, F15_S2(f0: -83, f1: 7751486385861474282, f2: 3744400479301818340, f3: 150), 179, F15_S3(f0: 3108143600787174))\n}\n\n@frozen\npublic struct F16_S0\n{\n public let f0 : Int8;\n public let f1 : Int32;\n public let f2 : UInt16;\n public let f3 : UInt16;\n public let f4 : UInt32;\n}\n\n@frozen\npublic struct F16_S1\n{\n public let f0 : UInt16;\n public let f1 : Int8;\n public let f2 : UInt8;\n public let f3 : Int;\n public let f4 : Int;\n}\n\n@frozen\npublic struct F16_S2_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F16_S2\n{\n public let f0 : Int32;\n public let f1 : Int32;\n public let f2 : UInt32;\n public let f3 : UInt8;\n public let f4 : F16_S2_S0;\n}\n\n@frozen\npublic struct F16_S3\n{\n public let f0 : Int16;\n public let f1 : Double;\n public let f2 : Double;\n public let f3 : Int32;\n}\n\npublic func swiftCallbackFunc16(f: (F16_S0, Int16, Float, F16_S1, F16_S2, UInt64, F16_S3, UInt) -> Int8) -> Int8 {\n return f(F16_S0(f0: -59, f1: 1181591186, f2: 44834, f3: 28664, f4: 404461767), 2482, 2997348, F16_S1(f0: 22423, f1: -106, f2: 182, f3: 3784074551275084420, f4: 7092934571108982079), F16_S2(f0: 1835134709, f1: 246067261, f2: 1986526591, f3: 24, f4: F16_S2_S0(f0: -112)), 1465053746911704089, F16_S3(f0: -27636, f1: 1896887612303356, f2: 4263157082840190, f3: 774653659), 3755775782607884861)\n}\n\n@frozen\npublic struct F17_S0\n{\n public let f0 : Int32;\n public let f1 : UInt;\n}\n\n@frozen\npublic struct F17_S1_S0\n{\n public let f0 : Double;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F17_S1\n{\n public let f0 : F17_S1_S0;\n public let f1 : Int32;\n public let f2 : UInt8;\n}\n\n@frozen\npublic struct F17_S2\n{\n public let f0 : UInt32;\n}\n\npublic func swiftCallbackFunc17(f: (UInt32, F17_S0, F17_S1, Double, UInt64, F17_S2) -> Double) -> Double {\n return f(201081002, F17_S0(f0: 2018751226, f1: 8488544433072104028), F17_S1(f0: F17_S1_S0(f0: 1190765430157980, f1: 70252071), f1: 1297775609, f2: 160), 4290084351352688, 4738339757002694731, F17_S2(f0: 1829312773))\n}\n\n@frozen\npublic struct F18_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F18_S1\n{\n public let f0 : UInt16;\n public let f1 : Int16;\n public let f2 : Double;\n public let f3 : UInt;\n}\n\n@frozen\npublic struct F18_S2\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F18_Ret_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F18_Ret\n{\n public let f0 : F18_Ret_S0;\n}\n\npublic func swiftCallbackFunc18(f: (F18_S0, F18_S1, F18_S2, UInt, UInt32, Int64, Int16, Double) -> F18_Ret) -> F18_Ret {\n return f(F18_S0(f0: 106), F18_S1(f0: 21619, f1: -4350, f2: 3457288266203248, f3: 9020447812661292883), F18_S2(f0: 2317132584983719004), 7379425918918939512, 2055208746, 1042861174364145790, 28457, 1799004152435515)\n}\n\n@frozen\npublic struct F19_S0\n{\n public let f0 : Int16;\n public let f1 : Int8;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F19_S1\n{\n public let f0 : Int64;\n public let f1 : UInt16;\n}\n\n@frozen\npublic struct F19_S2\n{\n public let f0 : UInt64;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F19_S3\n{\n public let f0 : UInt32;\n public let f1 : Int32;\n}\n\n@frozen\npublic struct F19_Ret_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F19_Ret\n{\n public let f0 : UInt32;\n public let f1 : Int64;\n public let f2 : UInt16;\n public let f3 : F19_Ret_S0;\n public let f4 : Double;\n public let f5 : Double;\n public let f6 : Double;\n}\n\npublic func swiftCallbackFunc19(f: (Int64, UInt8, F19_S0, Int, F19_S1, Int32, Int32, UInt, UInt64, F19_S2, UInt16, F19_S3, Int8, Int64) -> F19_Ret) -> F19_Ret {\n return f(7456120134117592143, 114, F19_S0(f0: -7583, f1: 97, f2: 2768322), 3605245176125291560, F19_S1(f0: 4445885313084714470, f1: 15810), 1179699879, 109603412, 6521628547431964799, 7687430644226018854, F19_S2(f0: 8464855230956039883, f1: 861462819289140037), 26519, F19_S3(f0: 1864602741, f1: 397176384), 81, 4909173176891211442)\n}\n\n@frozen\npublic struct F20_S0_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F20_S0\n{\n public let f0 : Int16;\n public let f1 : UInt;\n public let f2 : F20_S0_S0;\n}\n\n@frozen\npublic struct F20_S1_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F20_S1\n{\n public let f0 : Int64;\n public let f1 : UInt;\n public let f2 : F20_S1_S0;\n public let f3 : Int64;\n public let f4 : Int32;\n}\n\n@frozen\npublic struct F20_S2\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F20_Ret\n{\n public let f0 : UInt16;\n public let f1 : UInt16;\n public let f2 : Double;\n public let f3 : Int16;\n public let f4 : Double;\n}\n\npublic func swiftCallbackFunc20(f: (F20_S0, F20_S1, Float, Float, Int8, F20_S2, Float) -> F20_Ret) -> F20_Ret {\n return f(F20_S0(f0: 28858, f1: 7024100299344418039, f2: F20_S0_S0(f0: 13025)), F20_S1(f0: 7900431324553135989, f1: 8131425055682506706, f2: F20_S1_S0(f0: 3884322), f3: 605453501265278638, f4: 353756684), 622319, 1401604, -101, F20_S2(f0: 1355570413), 2912776)\n}\n\n@frozen\npublic struct F21_S0\n{\n public let f0 : Double;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F21_S1\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F21_Ret\n{\n public let f0 : UInt16;\n public let f1 : UInt32;\n public let f2 : Int64;\n}\n\npublic func swiftCallbackFunc21(f: (Int32, Int16, F21_S0, Int32, F21_S1, Int64, UInt32, Int64, UInt8, UInt16) -> F21_Ret) -> F21_Ret {\n return f(256017319, 14555, F21_S0(f0: 2102091966108033, f1: 8617538752301505079), 834677431, F21_S1(f0: 7043), 7166819734655141128, 965538086, 3827752442102685645, 110, 33646)\n}\n\n@frozen\npublic struct F22_S0\n{\n public let f0 : Int;\n public let f1 : Float;\n public let f2 : Double;\n}\n\n@frozen\npublic struct F22_S1\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F22_S2\n{\n public let f0 : Int32;\n public let f1 : Double;\n public let f2 : Float;\n public let f3 : Int16;\n public let f4 : UInt16;\n}\n\n@frozen\npublic struct F22_S3\n{\n public let f0 : Int64;\n public let f1 : UInt16;\n}\n\n@frozen\npublic struct F22_S4\n{\n public let f0 : Double;\n public let f1 : UInt16;\n}\n\n@frozen\npublic struct F22_S5\n{\n public let f0 : UInt32;\n public let f1 : Int16;\n}\n\n@frozen\npublic struct F22_S6\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F22_Ret\n{\n public let f0 : UInt16;\n public let f1 : Int16;\n public let f2 : UInt;\n}\n\npublic func swiftCallbackFunc22(f: (Int32, F22_S0, F22_S1, F22_S2, F22_S3, Int8, F22_S4, UInt8, UInt16, Int64, F22_S5, Int64, Float, F22_S6, UInt16) -> F22_Ret) -> F22_Ret {\n return f(640156952, F22_S0(f0: 824774470287401457, f1: 6163704, f2: 54328782764685), F22_S1(f0: 1679730195865415747), F22_S2(f0: 1462995665, f1: 2554087365600344, f2: 8193295, f3: 16765, f4: 45388), F22_S3(f0: 5560492364570389430, f1: 48308), 71, F22_S4(f0: 1639169280741045, f1: 12045), 217, 62917, 1465918945905384332, F22_S5(f0: 1364750179, f1: 3311), 9003480567517966914, 2157327, F22_S6(f0: 6647392), 1760)\n}\n\n@frozen\npublic struct F23_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F23_S1\n{\n public let f0 : Int;\n}\n\npublic func swiftCallbackFunc23(f: (UInt, UInt8, Int8, UInt8, UInt8, F23_S0, UInt, F23_S1, Double) -> Double) -> Double {\n return f(5779410841248940897, 192, -128, 133, 20, F23_S0(f0: 2959916071636885436), 3651155214497129159, F23_S1(f0: 8141565342203061885), 1465425469608034)\n}\n\n@frozen\npublic struct F24_S0\n{\n public let f0 : Int8;\n public let f1 : UInt8;\n public let f2 : UInt64;\n public let f3 : UInt32;\n}\n\n@frozen\npublic struct F24_S1\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F24_S2_S0\n{\n public let f0 : UInt16;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F24_S2_S1\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F24_S2\n{\n public let f0 : Int;\n public let f1 : UInt32;\n public let f2 : F24_S2_S0;\n public let f3 : F24_S2_S1;\n}\n\n@frozen\npublic struct F24_S3\n{\n public let f0 : Int16;\n public let f1 : Float;\n public let f2 : Int64;\n}\n\n@frozen\npublic struct F24_S4\n{\n public let f0 : UInt8;\n}\n\npublic func swiftCallbackFunc24(f: (Int32, UInt, F24_S0, UInt16, F24_S1, Int8, F24_S2, UInt64, UInt64, F24_S3, Double, F24_S4) -> Float) -> Float {\n return f(1710754874, 6447433131978039331, F24_S0(f0: -92, f1: 181, f2: 3710374263631495948, f3: 257210428), 6631, F24_S1(f0: 2303), 15, F24_S2(f0: 2509049432824972381, f1: 616918672, f2: F24_S2_S0(f0: 50635, f1: 1337844540), f3: F24_S2_S1(f0: 335964796567786281)), 1114365571136806382, 8988425145801188208, F24_S3(f0: 31969, f1: 3008861, f2: 5466306080595269107), 2027780227887952, F24_S4(f0: 234))\n}\n\n@frozen\npublic struct F25_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F25_S1\n{\n public let f0 : Float;\n public let f1 : Int8;\n public let f2 : Float;\n public let f3 : Int;\n}\n\n@frozen\npublic struct F25_S2\n{\n public let f0 : UInt;\n public let f1 : UInt;\n public let f2 : Int64;\n public let f3 : UInt8;\n}\n\n@frozen\npublic struct F25_S3\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F25_S4\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F25_Ret\n{\n public let f0 : UInt64;\n public let f1 : Int64;\n public let f2 : UInt8;\n public let f3 : UInt16;\n}\n\npublic func swiftCallbackFunc25(f: (F25_S0, UInt16, UInt, F25_S1, Int16, F25_S2, UInt64, UInt64, UInt64, F25_S3, F25_S4) -> F25_Ret) -> F25_Ret {\n return f(F25_S0(f0: 6077761381429658786), 2300, 3498354181807010234, F25_S1(f0: 5360721, f1: -40, f2: 109485, f3: 2311625789899959825), -28395, F25_S2(f0: 8729509817732080529, f1: 860365359368130822, f2: 7498894262834346040, f3: 218), 961687210282504701, 7184177441364400868, 8389319500274436977, F25_S3(f0: 4437173), F25_S4(f0: -107))\n}\n\n@frozen\npublic struct F26_S0\n{\n public let f0 : Int8;\n public let f1 : Int;\n public let f2 : UInt8;\n public let f3 : UInt8;\n}\n\n@frozen\npublic struct F26_S1_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F26_S1\n{\n public let f0 : Int8;\n public let f1 : Int32;\n public let f2 : Int16;\n public let f3 : F26_S1_S0;\n}\n\n@frozen\npublic struct F26_S2\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F26_S3\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F26_Ret\n{\n public let f0 : UInt;\n public let f1 : UInt8;\n}\n\npublic func swiftCallbackFunc26(f: (Int8, UInt8, UInt32, F26_S0, F26_S1, F26_S2, F26_S3) -> F26_Ret) -> F26_Ret {\n return f(-16, 220, 72386567, F26_S0(f0: -33, f1: 6488877286424796715, f2: 143, f3: 74), F26_S1(f0: 104, f1: 1719453315, f2: 20771, f3: F26_S1_S0(f0: 3636117595999837800)), F26_S2(f0: 2279530426119665839), F26_S3(f0: 207))\n}\n\n@frozen\npublic struct F27_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F27_S1_S0\n{\n public let f0 : UInt16;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct F27_S1\n{\n public let f0 : Int64;\n public let f1 : F27_S1_S0;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F27_S2\n{\n public let f0 : UInt64;\n public let f1 : Int8;\n public let f2 : UInt32;\n public let f3 : Int64;\n}\n\n@frozen\npublic struct F27_S3_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F27_S3\n{\n public let f0 : F27_S3_S0;\n}\n\npublic func swiftCallbackFunc27(f: (UInt64, UInt8, F27_S0, UInt8, UInt8, F27_S1, Int32, F27_S2, Int, UInt32, F27_S3) -> Float) -> Float {\n return f(4847421047018330189, 214, F27_S0(f0: 31313), 207, 174, F27_S1(f0: 4476120319602257660, f1: F27_S1_S0(f0: 26662, f1: -55), f2: 70666), 1340306103, F27_S2(f0: 2772939788297637999, f1: -65, f2: 7500441, f3: 4926907273817562134), 5862689255099071258, 1077270996, F27_S3(f0: F27_S3_S0(f0: 35167)))\n}\n\n@frozen\npublic struct F28_S0\n{\n public let f0 : UInt64;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct F28_S1\n{\n public let f0 : Int64;\n public let f1 : UInt;\n public let f2 : Int;\n public let f3 : Int32;\n}\n\n@frozen\npublic struct F28_S2\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F28_S3\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F28_Ret_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F28_Ret\n{\n public let f0 : F28_Ret_S0;\n public let f1 : UInt16;\n}\n\npublic func swiftCallbackFunc28(f: (UInt32, UInt16, Int8, Int8, UInt16, Float, F28_S0, Double, UInt64, F28_S1, F28_S2, F28_S3) -> F28_Ret) -> F28_Ret {\n return f(893827094, 38017, -90, -1, 16109, 5844449, F28_S0(f0: 176269147098539470, f1: 23), 1431426259441210, 6103261251702315645, F28_S1(f0: 3776818122826483419, f1: 9181420263296840471, f2: 3281861424961082542, f3: 1442905253), F28_S2(f0: 8760009193798370900), F28_S3(f0: 7119917900929398683))\n}\n\n@frozen\npublic struct F29_S0\n{\n public let f0 : UInt8;\n public let f1 : Double;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F29_S1\n{\n public let f0 : UInt32;\n public let f1 : Int;\n public let f2 : UInt64;\n public let f3 : UInt32;\n}\n\n@frozen\npublic struct F29_S2\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F29_S3\n{\n public let f0 : UInt32;\n public let f1 : UInt32;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F29_S4\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F29_Ret_S0\n{\n public let f0 : Int;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F29_Ret\n{\n public let f0 : UInt;\n public let f1 : UInt;\n public let f2 : UInt;\n public let f3 : F29_Ret_S0;\n public let f4 : UInt64;\n public let f5 : UInt32;\n}\n\npublic func swiftCallbackFunc29(f: (F29_S0, Int, UInt64, UInt8, Int64, UInt8, Int, F29_S1, Int32, Int8, UInt8, UInt64, F29_S2, F29_S3, Int16, F29_S4, UInt32) -> F29_Ret) -> F29_Ret {\n return f(F29_S0(f0: 152, f1: 737900189383874, f2: 33674), 5162040247631126074, 6524156301721885895, 129, 6661424933974053497, 145, 7521422786615537370, F29_S1(f0: 1361601345, f1: 3366726213840694614, f2: 7767610514138029164, f3: 1266864987), 1115803878, 5, 80, 2041754562738600205, F29_S2(f0: 1492686870), F29_S3(f0: 142491811, f1: 1644962309, f2: 1905811), -3985, F29_S4(f0: 1921386549), 1510666400)\n}\n\n@frozen\npublic struct F30_S0\n{\n public let f0 : UInt16;\n public let f1 : Int16;\n public let f2 : Int16;\n public let f3 : Int8;\n}\n\n@frozen\npublic struct F30_S1\n{\n public let f0 : UInt16;\n public let f1 : UInt;\n}\n\n@frozen\npublic struct F30_S2\n{\n public let f0 : Int64;\n public let f1 : Int8;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F30_S3\n{\n public let f0 : Int8;\n}\n\npublic func swiftCallbackFunc30(f: (F30_S0, F30_S1, F30_S2, F30_S3, Int) -> Float) -> Float {\n return f(F30_S0(f0: 50723, f1: 19689, f2: -6469, f3: 83), F30_S1(f0: 51238, f1: 5879147675377398012), F30_S2(f0: 7909999288286190848, f1: -99, f2: 61385), F30_S3(f0: 48), 2980085298293056148)\n}\n\n@frozen\npublic struct F31_S0\n{\n public let f0 : Int32;\n public let f1 : UInt64;\n public let f2 : UInt;\n}\n\n@frozen\npublic struct F31_Ret_S0\n{\n public let f0 : UInt32;\n public let f1 : Float;\n public let f2 : UInt16;\n public let f3 : Int16;\n public let f4 : Float;\n}\n\n@frozen\npublic struct F31_Ret\n{\n public let f0 : F31_Ret_S0;\n public let f1 : UInt16;\n}\n\npublic func swiftCallbackFunc31(f: (F31_S0, Double) -> F31_Ret) -> F31_Ret {\n return f(F31_S0(f0: 1072945099, f1: 5760996810500287322, f2: 3952909367135409979), 2860786541632685)\n}\n\n@frozen\npublic struct F32_Ret\n{\n public let f0 : UInt;\n public let f1 : Double;\n public let f2 : Int;\n}\n\npublic func swiftCallbackFunc32(f: (UInt16, Int16) -> F32_Ret) -> F32_Ret {\n return f(21020, 7462)\n}\n\n@frozen\npublic struct F33_S0\n{\n public let f0 : Int16;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F33_S1_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F33_S1\n{\n public let f0 : F33_S1_S0;\n public let f1 : UInt32;\n public let f2 : UInt;\n}\n\n@frozen\npublic struct F33_S2\n{\n public let f0 : UInt32;\n public let f1 : UInt64;\n public let f2 : Int8;\n public let f3 : Int8;\n public let f4 : UInt;\n}\n\n@frozen\npublic struct F33_S3_S0_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F33_S3_S0\n{\n public let f0 : F33_S3_S0_S0;\n}\n\n@frozen\npublic struct F33_S3\n{\n public let f0 : F33_S3_S0;\n}\n\npublic func swiftCallbackFunc33(f: (F33_S0, Float, F33_S1, UInt32, Int, Int8, Int8, Float, UInt8, Float, Int8, F33_S2, Int, F33_S3, Int, UInt32) -> UInt) -> UInt {\n return f(F33_S0(f0: -23471, f1: 2736941806609505888), 6930550, F33_S1(f0: F33_S1_S0(f0: 32476), f1: 165441961, f2: 3890227499323387948), 591524870, 1668420058132495503, -67, 94, 3180786, 42, 7674952, 43, F33_S2(f0: 771356149, f1: 3611576949210389997, f2: -15, f3: 7, f4: 2577587324978560192), 8266150294848599489, F33_S3(f0: F33_S3_S0(f0: F33_S3_S0_S0(f0: 9216))), 710302565025364450, 1060812904)\n}\n\n@frozen\npublic struct F34_S0_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F34_S0\n{\n public let f0 : F34_S0_S0;\n public let f1 : UInt;\n}\n\npublic func swiftCallbackFunc34(f: (UInt32, F34_S0, UInt, Int16) -> UInt16) -> UInt16 {\n return f(2068009847, F34_S0(f0: F34_S0_S0(f0: 845123292), f1: 5148244462913472487), 8632568386462910655, 7058)\n}\n\n@frozen\npublic struct F35_S0_S0_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F35_S0_S0\n{\n public let f0 : Int64;\n public let f1 : F35_S0_S0_S0;\n}\n\n@frozen\npublic struct F35_S0_S1\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F35_S0\n{\n public let f0 : F35_S0_S0;\n public let f1 : Int32;\n public let f2 : F35_S0_S1;\n public let f3 : Int;\n}\n\n@frozen\npublic struct F35_S1\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F35_S2_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F35_S2\n{\n public let f0 : F35_S2_S0;\n}\n\npublic func swiftCallbackFunc35(f: (UInt8, Int8, Float, Int64, Int, F35_S0, F35_S1, F35_S2) -> UInt64) -> UInt64 {\n return f(182, -16, 7763558, 5905028570860904693, 5991001624972063224, F35_S0(f0: F35_S0_S0(f0: 6663912001709962059, f1: F35_S0_S0_S0(f0: 1843939591)), f1: 1095170337, f2: F35_S0_S1(f0: 3908756332193409), f3: 8246190362462442203), F35_S1(f0: 52167), F35_S2(f0: F35_S2_S0(f0: 283499999631068)))\n}\n\n@frozen\npublic struct F36_S0\n{\n public let f0 : UInt32;\n public let f1 : Int64;\n public let f2 : UInt8;\n public let f3 : UInt;\n}\n\npublic func swiftCallbackFunc36(f: (UInt, Double, UInt, UInt8, Int64, F36_S0, Int8) -> Int) -> Int {\n return f(5079603407518207003, 2365862518115571, 6495651757722767835, 46, 1550138390178394449, F36_S0(f0: 1858960269, f1: 1925263848394986294, f2: 217, f3: 8520779488644482307), -83)\n}\n\n@frozen\npublic struct F37_S0_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F37_S0\n{\n public let f0 : UInt;\n public let f1 : UInt32;\n public let f2 : F37_S0_S0;\n public let f3 : Float;\n}\n\n@frozen\npublic struct F37_S1\n{\n public let f0 : UInt;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F37_S2\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F37_Ret\n{\n public let f0 : Float;\n public let f1 : UInt8;\n public let f2 : Int16;\n public let f3 : UInt64;\n}\n\npublic func swiftCallbackFunc37(f: (UInt64, F37_S0, Double, UInt16, F37_S1, F37_S2) -> F37_Ret) -> F37_Ret {\n return f(1623104856688575867, F37_S0(f0: 3785544303342575322, f1: 717682682, f2: F37_S0_S0(f0: 2674933748436691896), f3: 3211458), 996705046384579, 8394, F37_S1(f0: 1048947722954084863, f1: 252415487), F37_S2(f0: 3664))\n}\n\n@frozen\npublic struct F38_S0_S0\n{\n public let f0 : Int;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F38_S0\n{\n public let f0 : F38_S0_S0;\n public let f1 : UInt16;\n public let f2 : Int32;\n public let f3 : Float;\n}\n\n@frozen\npublic struct F38_S1\n{\n public let f0 : Int16;\n public let f1 : Int32;\n public let f2 : UInt32;\n}\n\npublic func swiftCallbackFunc38(f: (F38_S0, F38_S1, Double, Int16, Int8, UInt32, Int16, Float, Int, Float, UInt32, UInt8, Double, Int8) -> Double) -> Double {\n return f(F38_S0(f0: F38_S0_S0(f0: 7389960750529773276, f1: 4749108), f1: 54323, f2: 634649910, f3: 83587), F38_S1(f0: -15547, f1: 1747384081, f2: 851987981), 3543874366683681, 5045, -32, 2084540698, 25583, 3158067, 1655263182833369283, 829404, 1888859844, 153, 222366180309763, 61)\n}\n\n@frozen\npublic struct F39_S0_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F39_S0_S1\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F39_S0\n{\n public let f0 : F39_S0_S0;\n public let f1 : Int32;\n public let f2 : F39_S0_S1;\n public let f3 : UInt;\n}\n\n@frozen\npublic struct F39_S1\n{\n public let f0 : UInt16;\n public let f1 : UInt8;\n public let f2 : Float;\n public let f3 : Int64;\n}\n\n@frozen\npublic struct F39_S2\n{\n public let f0 : Int32;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F39_S3\n{\n public let f0 : UInt32;\n public let f1 : Int;\n public let f2 : Int;\n}\n\npublic func swiftCallbackFunc39(f: (F39_S0, UInt, UInt32, Double, F39_S1, F39_S2, Int8, F39_S3, Int32, UInt64, UInt8) -> Int) -> Int {\n return f(F39_S0(f0: F39_S0_S0(f0: -31212), f1: 1623216479, f2: F39_S0_S1(f0: 7181), f3: 8643545152918150186), 799631211988519637, 94381581, 761127371030426, F39_S1(f0: 417, f1: 85, f2: 1543931, f3: 3918460222899735322), F39_S2(f0: 883468300, f1: 2739152), -94, F39_S3(f0: 1374766954, f1: 2042223450490396789, f2: 2672454113535023130), 946259065, 6805548458517673751, 61)\n}\n\n@frozen\npublic struct F40_S0\n{\n public let f0 : Int16;\n public let f1 : Int32;\n}\n\n@frozen\npublic struct F40_S1\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F40_S2\n{\n public let f0 : Int64;\n public let f1 : UInt16;\n public let f2 : Int;\n public let f3 : UInt8;\n}\n\n@frozen\npublic struct F40_S3_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F40_S3\n{\n public let f0 : UInt;\n public let f1 : Double;\n public let f2 : F40_S3_S0;\n public let f3 : Double;\n}\n\npublic func swiftCallbackFunc40(f: (F40_S0, UInt32, UInt8, F40_S1, F40_S2, UInt64, UInt, UInt64, Int, UInt16, UInt32, F40_S3, UInt) -> UInt) -> UInt {\n return f(F40_S0(f0: 22601, f1: 312892872), 1040102825, 56, F40_S1(f0: 101203812), F40_S2(f0: 4298883321494088257, f1: 2095, f2: 1536552108568739270, f3: 220), 2564624804830565018, 173855559108584219, 6222832940831380264, 1898370824516510398, 3352, 1643571476, F40_S3(f0: 7940054758811932961, f1: 246670432251533, f2: F40_S3_S0(f0: 7890596), f3: 1094140965415232), 2081923113238309816)\n}\n\n@frozen\npublic struct F41_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F41_Ret\n{\n public let f0 : UInt64;\n public let f1 : Double;\n public let f2 : UInt32;\n public let f3 : UInt32;\n}\n\npublic func swiftCallbackFunc41(f: (F41_S0) -> F41_Ret) -> F41_Ret {\n return f(F41_S0(f0: 1430200072))\n}\n\n@frozen\npublic struct F42_S0_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F42_S0\n{\n public let f0 : F42_S0_S0;\n}\n\n@frozen\npublic struct F42_S1\n{\n public let f0 : UInt32;\n}\n\npublic func swiftCallbackFunc42(f: (Int32, UInt32, F42_S0, Float, UInt8, F42_S1) -> Int) -> Int {\n return f(1046060439, 1987212952, F42_S0(f0: F42_S0_S0(f0: 4714080408858753964)), 2364146, 25, F42_S1(f0: 666986488))\n}\n\n@frozen\npublic struct F43_S0\n{\n public let f0 : Int32;\n public let f1 : Int32;\n public let f2 : Int;\n}\n\n@frozen\npublic struct F43_S1\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F43_Ret\n{\n public let f0 : UInt16;\n}\n\npublic func swiftCallbackFunc43(f: (F43_S0, F43_S1) -> F43_Ret) -> F43_Ret {\n return f(F43_S0(f0: 406102630, f1: 1946236062, f2: 663606396354980308), F43_S1(f0: -8))\n}\n\n@frozen\npublic struct F44_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F44_S1_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F44_S1_S1\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F44_S1\n{\n public let f0 : Int16;\n public let f1 : Int16;\n public let f2 : F44_S1_S0;\n public let f3 : F44_S1_S1;\n}\n\n@frozen\npublic struct F44_S2\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F44_S3\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F44_Ret_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F44_Ret\n{\n public let f0 : Int;\n public let f1 : F44_Ret_S0;\n public let f2 : Double;\n}\n\npublic func swiftCallbackFunc44(f: (Double, F44_S0, F44_S1, F44_S2, F44_S3) -> F44_Ret) -> F44_Ret {\n return f(4281406007431544, F44_S0(f0: 2097291497), F44_S1(f0: -10489, f1: -9573, f2: F44_S1_S0(f0: 62959), f3: F44_S1_S1(f0: 7144119809173057975)), F44_S2(f0: 168733393207234277), F44_S3(f0: 64))\n}\n\n@frozen\npublic struct F45_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F45_S1\n{\n public let f0 : UInt;\n public let f1 : Int16;\n}\n\n@frozen\npublic struct F45_Ret_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F45_Ret\n{\n public let f0 : Double;\n public let f1 : F45_Ret_S0;\n public let f2 : Int64;\n public let f3 : Double;\n public let f4 : UInt64;\n public let f5 : Int8;\n public let f6 : Int32;\n}\n\npublic func swiftCallbackFunc45(f: (F45_S0, F45_S1, UInt8) -> F45_Ret) -> F45_Ret {\n return f(F45_S0(f0: 5311803360204128233), F45_S1(f0: 2204790044275015546, f1: 8942), 207)\n}\n\n@frozen\npublic struct F46_Ret\n{\n public let f0 : UInt;\n public let f1 : Double;\n public let f2 : Int64;\n public let f3 : UInt16;\n}\n\npublic func swiftCallbackFunc46(f: (Int, UInt, UInt16, UInt16, Int64) -> F46_Ret) -> F46_Ret {\n return f(1855296013283572041, 1145047910516899437, 20461, 58204, 1923767011143317115)\n}\n\n@frozen\npublic struct F47_S0\n{\n public let f0 : UInt8;\n public let f1 : Int32;\n}\n\n@frozen\npublic struct F47_S1\n{\n public let f0 : Int;\n public let f1 : UInt32;\n public let f2 : Int8;\n}\n\n@frozen\npublic struct F47_S2_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F47_S2\n{\n public let f0 : Int8;\n public let f1 : Float;\n public let f2 : Int32;\n public let f3 : Float;\n public let f4 : F47_S2_S0;\n}\n\n@frozen\npublic struct F47_S3\n{\n public let f0 : UInt64;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F47_S4\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F47_Ret\n{\n public let f0 : Int16;\n public let f1 : Int16;\n public let f2 : Int64;\n}\n\npublic func swiftCallbackFunc47(f: (Int, Float, UInt32, F47_S0, F47_S1, UInt16, Float, Int, Int, UInt, UInt, Int16, F47_S2, F47_S3, F47_S4) -> F47_Ret) -> F47_Ret {\n return f(6545360066379352091, 1240616, 575670382, F47_S0(f0: 27, f1: 1769677101), F47_S1(f0: 4175209822525678639, f1: 483151627, f2: -41), 20891, 1011044, 8543308148327168378, 9126721646663585297, 5438914191614359864, 5284613245897089025, -9227, F47_S2(f0: -23, f1: 1294109, f2: 411726757, f3: 6621598, f4: F47_S2_S0(f0: 249)), F47_S3(f0: 5281612261430853979, f1: 7161295082465816089), F47_S4(f0: 1995556861952451598))\n}\n\n@frozen\npublic struct F48_S0\n{\n public let f0 : UInt64;\n public let f1 : Int16;\n public let f2 : UInt64;\n}\n\n@frozen\npublic struct F48_S1_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F48_S1\n{\n public let f0 : Double;\n public let f1 : Int32;\n public let f2 : Int32;\n public let f3 : F48_S1_S0;\n public let f4 : UInt;\n}\n\npublic func swiftCallbackFunc48(f: (Int8, Int16, Int16, UInt32, F48_S0, UInt32, F48_S1, Int32, Int32, UInt16, Int64, UInt32) -> Int64) -> Int64 {\n return f(-34, 11634, -27237, 1039294154, F48_S0(f0: 1367847206719062131, f1: 22330, f2: 689282484471011648), 1572626904, F48_S1(f0: 3054128759424009, f1: 1677338134, f2: 1257237843, f3: F48_S1_S0(f0: 6264494), f4: 8397097040610783205), 1060447208, 269785114, 20635, 7679010342730986048, 1362633148)\n}\n\n@frozen\npublic struct F49_S0_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F49_S0\n{\n public let f0 : F49_S0_S0;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F49_Ret\n{\n public let f0 : Int32;\n public let f1 : Int16;\n public let f2 : UInt8;\n public let f3 : UInt8;\n public let f4 : Int8;\n public let f5 : Int64;\n}\n\npublic func swiftCallbackFunc49(f: (F49_S0, Int64) -> F49_Ret) -> F49_Ret {\n return f(F49_S0(f0: F49_S0_S0(f0: 48), f1: 7563394992711018452), 4358370311341042916)\n}\n\n@frozen\npublic struct F50_S0_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F50_S0\n{\n public let f0 : UInt16;\n public let f1 : F50_S0_S0;\n}\n\n@frozen\npublic struct F50_S1\n{\n public let f0 : Double;\n public let f1 : UInt16;\n public let f2 : Int32;\n public let f3 : Int;\n public let f4 : Double;\n}\n\n@frozen\npublic struct F50_S2\n{\n public let f0 : Int32;\n public let f1 : Float;\n public let f2 : UInt32;\n}\n\n@frozen\npublic struct F50_S3\n{\n public let f0 : Int64;\n public let f1 : Int32;\n public let f2 : Float;\n public let f3 : Int8;\n}\n\n@frozen\npublic struct F50_S4\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F50_S5_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F50_S5\n{\n public let f0 : F50_S5_S0;\n}\n\npublic func swiftCallbackFunc50(f: (F50_S0, F50_S1, UInt8, F50_S2, Int32, UInt64, Int8, Int8, Float, F50_S3, F50_S4, F50_S5, Float) -> UInt8) -> UInt8 {\n return f(F50_S0(f0: 31857, f1: F50_S0_S0(f0: 1743417849706254)), F50_S1(f0: 4104577461772135, f1: 13270, f2: 2072598986, f3: 9056978834867675248, f4: 844742439929087), 87, F50_S2(f0: 1420884537, f1: 78807, f2: 1081688273), 336878110, 1146514566942283069, -93, 73, 2321639, F50_S3(f0: 1940888991336881606, f1: 688345394, f2: 712275, f3: -128), F50_S4(f0: 2638503583829414770), F50_S5(f0: F50_S5_S0(f0: 23681)), 8223218)\n}\n\n@frozen\npublic struct F51_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F51_Ret\n{\n public let f0 : UInt16;\n public let f1 : Int8;\n public let f2 : Int;\n public let f3 : UInt16;\n public let f4 : UInt64;\n}\n\npublic func swiftCallbackFunc51(f: (Int16, UInt, F51_S0, UInt64) -> F51_Ret) -> F51_Ret {\n return f(10812, 470861239714315155, F51_S0(f0: 5415660333180374788), 2389942629143476149)\n}\n\n@frozen\npublic struct F52_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F52_S1\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F52_Ret\n{\n public let f0 : Float;\n public let f1 : UInt16;\n public let f2 : Int64;\n public let f3 : Int16;\n public let f4 : UInt64;\n public let f5 : Int8;\n}\n\npublic func swiftCallbackFunc52(f: (Int, F52_S0, Int16, Int16, F52_S1) -> F52_Ret) -> F52_Ret {\n return f(3233654765973602550, F52_S0(f0: 5997729), -7404, -20804, F52_S1(f0: 17231))\n}\n\n@frozen\npublic struct F53_S0_S0_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F53_S0_S0\n{\n public let f0 : F53_S0_S0_S0;\n}\n\n@frozen\npublic struct F53_S0\n{\n public let f0 : Int8;\n public let f1 : F53_S0_S0;\n public let f2 : UInt8;\n public let f3 : UInt;\n public let f4 : Int64;\n}\n\n@frozen\npublic struct F53_S1\n{\n public let f0 : Float;\n public let f1 : UInt8;\n}\n\n@frozen\npublic struct F53_S2\n{\n public let f0 : Int8;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F53_S3_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F53_S3\n{\n public let f0 : Int32;\n public let f1 : UInt32;\n public let f2 : F53_S3_S0;\n}\n\n@frozen\npublic struct F53_S4\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F53_S5_S0\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F53_S5_S1_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F53_S5_S1\n{\n public let f0 : F53_S5_S1_S0;\n}\n\n@frozen\npublic struct F53_S5\n{\n public let f0 : F53_S5_S0;\n public let f1 : UInt;\n public let f2 : UInt16;\n public let f3 : F53_S5_S1;\n public let f4 : Int8;\n}\n\n@frozen\npublic struct F53_S6\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F53_Ret\n{\n public let f0 : Int;\n}\n\npublic func swiftCallbackFunc53(f: (F53_S0, UInt8, Int64, F53_S1, F53_S2, F53_S3, Int64, F53_S4, F53_S5, F53_S6) -> F53_Ret) -> F53_Ret {\n return f(F53_S0(f0: -123, f1: F53_S0_S0(f0: F53_S0_S0_S0(f0: 3494916243607193741)), f2: 167, f3: 4018943158751734338, f4: 6768175524813742847), 207, 8667995458064724392, F53_S1(f0: 492157, f1: 175), F53_S2(f0: 76, f1: 5794486968525461488), F53_S3(f0: 2146070335, f1: 1109141712, f2: F53_S3_S0(f0: 44270)), 3581380181786253859, F53_S4(f0: 23565), F53_S5(f0: F53_S5_S0(f0: 1995174927), f1: 5025417700244056666, f2: 1847, f3: F53_S5_S1(f0: F53_S5_S1_S0(f0: 6)), f4: -87), F53_S6(f0: 5737280129078653969))\n}\n\n@frozen\npublic struct F54_S0\n{\n public let f0 : Int32;\n public let f1 : Float;\n public let f2 : UInt;\n public let f3 : UInt8;\n}\n\n@frozen\npublic struct F54_S1\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F54_S2_S0_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F54_S2_S0\n{\n public let f0 : Int16;\n public let f1 : F54_S2_S0_S0;\n}\n\n@frozen\npublic struct F54_S2\n{\n public let f0 : Double;\n public let f1 : F54_S2_S0;\n public let f2 : Int64;\n public let f3 : UInt64;\n}\n\n@frozen\npublic struct F54_S3\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F54_S4\n{\n public let f0 : UInt16;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct F54_S5\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F54_Ret\n{\n public let f0 : Int16;\n public let f1 : Int;\n}\n\npublic func swiftCallbackFunc54(f: (UInt16, F54_S0, Float, F54_S1, Int64, Int32, F54_S2, F54_S3, F54_S4, Float, F54_S5) -> F54_Ret) -> F54_Ret {\n return f(16440, F54_S0(f0: 922752112, f1: 7843043, f2: 1521939500434086364, f3: 50), 3111108, F54_S1(f0: 50535), 4761507229870258916, 1670668155, F54_S2(f0: 432665443852892, f1: F54_S2_S0(f0: 13094, f1: F54_S2_S0_S0(f0: 669143993481144)), f2: 30067117315069590, f3: 874012622621600805), F54_S3(f0: 7995066), F54_S4(f0: 48478, f1: 23), 4383787, F54_S5(f0: 61633))\n}\n\n@frozen\npublic struct F55_S0_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F55_S0\n{\n public let f0 : UInt;\n public let f1 : F55_S0_S0;\n public let f2 : Int8;\n}\n\n@frozen\npublic struct F55_S1\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F55_S2\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F55_Ret_S0\n{\n public let f0 : Int16;\n public let f1 : Int32;\n}\n\n@frozen\npublic struct F55_Ret\n{\n public let f0 : UInt;\n public let f1 : Int;\n public let f2 : Double;\n public let f3 : F55_Ret_S0;\n public let f4 : UInt64;\n}\n\npublic func swiftCallbackFunc55(f: (F55_S0, Int64, F55_S1, Int8, F55_S2, Float) -> F55_Ret) -> F55_Ret {\n return f(F55_S0(f0: 2856661562863799725, f1: F55_S0_S0(f0: 1260582440479139), f2: 5), 7945068527720423751, F55_S1(f0: 4321616441998677375), -68, F55_S2(f0: 3311106172201778367), 5600069)\n}\n\n@frozen\npublic struct F56_S0\n{\n public let f0 : Double;\n}\n\npublic func swiftCallbackFunc56(f: (F56_S0) -> UInt32) -> UInt32 {\n return f(F56_S0(f0: 3082602006731666))\n}\n\n@frozen\npublic struct F57_S0\n{\n public let f0 : Int64;\n public let f1 : Int32;\n public let f2 : UInt64;\n}\n\n@frozen\npublic struct F57_S1\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F57_S2\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F57_Ret_S0\n{\n public let f0 : Int64;\n public let f1 : UInt8;\n public let f2 : Int16;\n}\n\n@frozen\npublic struct F57_Ret\n{\n public let f0 : F57_Ret_S0;\n public let f1 : UInt8;\n}\n\npublic func swiftCallbackFunc57(f: (Int8, UInt, UInt32, Int64, UInt64, Int16, Int64, F57_S0, F57_S1, F57_S2) -> F57_Ret) -> F57_Ret {\n return f(54, 753245150862584974, 1470962934, 1269392070140776313, 2296560034524654667, 12381, 198893062684618980, F57_S0(f0: 1310571041794038100, f1: 18741662, f2: 7855196891704523814), F57_S1(f0: 156), F57_S2(f0: 72045))\n}\n\n@frozen\npublic struct F58_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F58_S1\n{\n public let f0 : Float;\n public let f1 : UInt16;\n}\n\n@frozen\npublic struct F58_S2_S0_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F58_S2_S0\n{\n public let f0 : F58_S2_S0_S0;\n}\n\n@frozen\npublic struct F58_S2\n{\n public let f0 : F58_S2_S0;\n}\n\npublic func swiftCallbackFunc58(f: (UInt64, Int8, Int, F58_S0, F58_S1, Int64, F58_S2, Int32) -> Int) -> Int {\n return f(4612004722568513699, -96, 1970590839325113617, F58_S0(f0: 211), F58_S1(f0: 5454927, f1: 48737), 921570327236881486, F58_S2(f0: F58_S2_S0(f0: F58_S2_S0_S0(f0: 7726203059421444802))), 491616915)\n}\n\npublic func swiftCallbackFunc59(f: (UInt16, Int64, Int) -> UInt64) -> UInt64 {\n return f(9232, 7281011081566942937, 8203439771560005792)\n}\n\n@frozen\npublic struct F60_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F60_S1\n{\n public let f0 : UInt64;\n public let f1 : Int32;\n}\n\npublic func swiftCallbackFunc60(f: (Float, Double, Int64, UInt16, Float, Float, F60_S0, Int16, F60_S1, Int16, Int64) -> UInt64) -> UInt64 {\n return f(2682255, 2041676057169359, 5212916666940122160, 64444, 6372882, 8028835, F60_S0(f0: 6629286640024570381), 1520, F60_S1(f0: 8398497739914283366, f1: 1882981891), 7716, 6631047215535600409)\n}\n\n@frozen\npublic struct F61_S0_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F61_S0\n{\n public let f0 : F61_S0_S0;\n public let f1 : Int64;\n public let f2 : UInt32;\n}\n\n@frozen\npublic struct F61_S1\n{\n public let f0 : Int8;\n public let f1 : Float;\n public let f2 : Int;\n}\n\n@frozen\npublic struct F61_S2_S0_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F61_S2_S0\n{\n public let f0 : F61_S2_S0_S0;\n}\n\n@frozen\npublic struct F61_S2_S1\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F61_S2\n{\n public let f0 : F61_S2_S0;\n public let f1 : F61_S2_S1;\n}\n\n@frozen\npublic struct F61_S3\n{\n public let f0 : UInt64;\n public let f1 : Int;\n}\n\npublic func swiftCallbackFunc61(f: (UInt32, UInt32, F61_S0, F61_S1, F61_S2, Int8, Int16, F61_S3, Int32, UInt32) -> UInt32) -> UInt32 {\n return f(1070797065, 135220309, F61_S0(f0: F61_S0_S0(f0: 6475887024664217162), f1: 563444654083452485, f2: 1748956360), F61_S1(f0: -112, f1: 3433396, f2: 8106074956722850624), F61_S2(f0: F61_S2_S0(f0: F61_S2_S0_S0(f0: 2318628619979263858)), f1: F61_S2_S1(f0: -93)), -122, -11696, F61_S3(f0: 5229393236090246212, f1: 4021449757638811198), 689517945, 657677740)\n}\n\n@frozen\npublic struct F62_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F62_Ret\n{\n public let f0 : UInt16;\n public let f1 : Int64;\n public let f2 : Int;\n public let f3 : Int64;\n}\n\npublic func swiftCallbackFunc62(f: (F62_S0) -> F62_Ret) -> F62_Ret {\n return f(F62_S0(f0: 6500993))\n}\n\n@frozen\npublic struct F63_S0\n{\n public let f0 : Int;\n}\n\npublic func swiftCallbackFunc63(f: (F63_S0, Int16) -> Float) -> Float {\n return f(F63_S0(f0: 8391317504019075904), 11218)\n}\n\n@frozen\npublic struct F64_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F64_S1\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F64_S2\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F64_Ret_S0\n{\n public let f0 : UInt16;\n public let f1 : UInt;\n public let f2 : UInt64;\n}\n\n@frozen\npublic struct F64_Ret\n{\n public let f0 : UInt;\n public let f1 : F64_Ret_S0;\n public let f2 : Double;\n}\n\npublic func swiftCallbackFunc64(f: (Int8, F64_S0, F64_S1, UInt, F64_S2) -> F64_Ret) -> F64_Ret {\n return f(-22, F64_S0(f0: 1591678205), F64_S1(f0: 8355549563000003325), 5441989206466502201, F64_S2(f0: 2097092811))\n}\n\n@frozen\npublic struct F65_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F65_S1\n{\n public let f0 : UInt16;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F65_S2\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F65_S3\n{\n public let f0 : Int32;\n public let f1 : UInt32;\n public let f2 : Int8;\n public let f3 : UInt;\n public let f4 : Double;\n}\n\n@frozen\npublic struct F65_Ret\n{\n public let f0 : Int;\n public let f1 : Int;\n public let f2 : Int;\n public let f3 : Float;\n}\n\npublic func swiftCallbackFunc65(f: (F65_S0, Int16, Double, UInt, F65_S1, UInt64, F65_S2, Int, F65_S3, Int32, Int64, UInt32, Double) -> F65_Ret) -> F65_Ret {\n return f(F65_S0(f0: 2969223123583220), -10269, 3909264978196109, 522883062031213707, F65_S1(f0: 37585, f1: 5879827541057349126), 1015270399093748716, F65_S2(f0: 19670), 1900026319968050423, F65_S3(f0: 1440511399, f1: 1203865685, f2: 12, f3: 4061296318630567634, f4: 2406524883317724), 1594888000, 2860599972459787263, 1989052358, 1036075606072593)\n}\n\n@frozen\npublic struct F66_Ret_S0\n{\n public let f0 : Float;\n public let f1 : UInt8;\n}\n\n@frozen\npublic struct F66_Ret\n{\n public let f0 : UInt32;\n public let f1 : Int32;\n public let f2 : UInt32;\n public let f3 : F66_Ret_S0;\n public let f4 : Int;\n}\n\npublic func swiftCallbackFunc66(f: (Int64) -> F66_Ret) -> F66_Ret {\n return f(8300712022174991120)\n}\n\n@frozen\npublic struct F67_S0\n{\n public let f0 : UInt32;\n public let f1 : UInt8;\n public let f2 : UInt8;\n public let f3 : Int32;\n}\n\n@frozen\npublic struct F67_S1\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F67_S2_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F67_S2\n{\n public let f0 : UInt64;\n public let f1 : UInt32;\n public let f2 : Int;\n public let f3 : UInt32;\n public let f4 : F67_S2_S0;\n}\n\n@frozen\npublic struct F67_S3\n{\n public let f0 : Int16;\n public let f1 : UInt64;\n public let f2 : UInt64;\n public let f3 : Float;\n}\n\npublic func swiftCallbackFunc67(f: (Double, F67_S0, Float, F67_S1, Int16, UInt, F67_S2, UInt16, UInt, UInt, F67_S3, UInt64) -> Int32) -> Int32 {\n return f(2365334314089079, F67_S0(f0: 1133369490, f1: 54, f2: 244, f3: 411611102), 4453912, F67_S1(f0: 837821989), -3824, 2394019088612006082, F67_S2(f0: 2219661088889353540, f1: 294254132, f2: 5363897228951721947, f3: 2038380379, f4: F67_S2_S0(f0: 8364879421385869437)), 27730, 1854446871602777695, 5020910156102352016, F67_S3(f0: -2211, f1: 5910581461792482729, f2: 9095210648679611609, f3: 6138428), 4274242076331880276)\n}\n\n@frozen\npublic struct F68_S0_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F68_S0\n{\n public let f0 : Int64;\n public let f1 : F68_S0_S0;\n}\n\n@frozen\npublic struct F68_S1\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F68_S2_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F68_S2_S1_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F68_S2_S1\n{\n public let f0 : F68_S2_S1_S0;\n}\n\n@frozen\npublic struct F68_S2\n{\n public let f0 : F68_S2_S0;\n public let f1 : F68_S2_S1;\n}\n\n@frozen\npublic struct F68_S3\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F68_Ret\n{\n public let f0 : UInt16;\n public let f1 : Int64;\n}\n\npublic func swiftCallbackFunc68(f: (UInt8, Float, Int32, Int, F68_S0, Int16, Int, Int32, Int, F68_S1, Double, F68_S2, F68_S3) -> F68_Ret) -> F68_Ret {\n return f(203, 7725681, 323096997, 7745650233784541800, F68_S0(f0: 4103074885750473230, f1: F68_S0_S0(f0: 12)), 28477, 3772772447290536725, 1075348149, 2017898311184593242, F68_S1(f0: 60280), 4052387873895590, F68_S2(f0: F68_S2_S0(f0: 1321857087602747558), f1: F68_S2_S1(f0: F68_S2_S1_S0(f0: 9011155097138053416))), F68_S3(f0: 8332))\n}\n\n@frozen\npublic struct F69_S0_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F69_S0\n{\n public let f0 : F69_S0_S0;\n}\n\n@frozen\npublic struct F69_S1\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F69_S2\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F69_S3\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F69_S4_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F69_S4\n{\n public let f0 : F69_S4_S0;\n}\n\n@frozen\npublic struct F69_Ret\n{\n public let f0 : UInt8;\n public let f1 : Int64;\n public let f2 : UInt32;\n}\n\npublic func swiftCallbackFunc69(f: (F69_S0, Int, Int32, F69_S1, UInt32, Int8, F69_S2, Int, F69_S3, F69_S4) -> F69_Ret) -> F69_Ret {\n return f(F69_S0(f0: F69_S0_S0(f0: 7154553222175076145)), 6685908100026425691, 1166526155, F69_S1(f0: 6042278185730963289), 182060391, 45, F69_S2(f0: 1886331345), 485542148877875333, F69_S3(f0: 209), F69_S4(f0: F69_S4_S0(f0: 6856847647688321191)))\n}\n\n@frozen\npublic struct F70_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F70_S1\n{\n public let f0 : Int;\n public let f1 : Double;\n public let f2 : Int16;\n}\n\n@frozen\npublic struct F70_S2\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F70_S3\n{\n public let f0 : UInt16;\n public let f1 : Double;\n public let f2 : UInt8;\n public let f3 : UInt64;\n public let f4 : Int32;\n}\n\n@frozen\npublic struct F70_S4_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F70_S4\n{\n public let f0 : F70_S4_S0;\n}\n\n@frozen\npublic struct F70_Ret\n{\n public let f0 : Int8;\n public let f1 : UInt32;\n public let f2 : UInt64;\n public let f3 : Int16;\n public let f4 : Int16;\n}\n\npublic func swiftCallbackFunc70(f: (Int16, UInt8, Int, UInt32, F70_S0, Int32, F70_S1, F70_S2, F70_S3, Int64, Int32, UInt16, Int, Int, UInt, F70_S4) -> F70_Ret) -> F70_Ret {\n return f(-13167, 126, 3641983584484741827, 1090448265, F70_S0(f0: 3696858216713616004), 1687025402, F70_S1(f0: 714916953527626038, f1: 459810445900614, f2: 4276), F70_S2(f0: 529194028), F70_S3(f0: 40800, f1: 3934985905568056, f2: 230, f3: 7358783417346157372, f4: 187926922), 228428560763393434, 146501405, 58804, 7098488973446286248, 1283658442251334575, 3644681944588099582, F70_S4(f0: F70_S4_S0(f0: 8197135412164695911)))\n}\n\n@frozen\npublic struct F71_S0_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F71_S0\n{\n public let f0 : F71_S0_S0;\n}\n\n@frozen\npublic struct F71_S1\n{\n public let f0 : Int64;\n}\n\npublic func swiftCallbackFunc71(f: (F71_S0, F71_S1) -> UInt64) -> UInt64 {\n return f(F71_S0(f0: F71_S0_S0(f0: 258165353)), F71_S1(f0: 8603744544763953916))\n}\n\n@frozen\npublic struct F72_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F72_Ret\n{\n public let f0 : UInt32;\n public let f1 : Float;\n public let f2 : Float;\n public let f3 : Int64;\n}\n\npublic func swiftCallbackFunc72(f: (F72_S0, Int64, Int8) -> F72_Ret) -> F72_Ret {\n return f(F72_S0(f0: 2021509367), 2480039820482100351, 91)\n}\n\n@frozen\npublic struct F73_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F73_S1_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F73_S1\n{\n public let f0 : F73_S1_S0;\n}\n\n@frozen\npublic struct F73_S2\n{\n public let f0 : Int32;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F73_S3\n{\n public let f0 : UInt;\n public let f1 : Int16;\n public let f2 : Int8;\n}\n\n@frozen\npublic struct F73_S4\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F73_S5\n{\n public let f0 : UInt32;\n}\n\npublic func swiftCallbackFunc73(f: (Double, Float, F73_S0, Int64, F73_S1, F73_S2, Int16, Double, Int8, Int32, Int64, F73_S3, UInt, UInt64, Int32, F73_S4, UInt8, F73_S5) -> Int8) -> Int8 {\n return f(3038361048801008, 7870661, F73_S0(f0: 1555231180), 7433951069104961, F73_S1(f0: F73_S1_S0(f0: 63298)), F73_S2(f0: 1759846580, f1: 1335901), 11514, 695278874601974, 108, 48660527, 7762050749172332624, F73_S3(f0: 7486686356276472663, f1: 11622, f2: 112), 884183974530885885, 7434462110419085390, 170242607, F73_S4(f0: -26039), 41, F73_S5(f0: 191302504))\n}\n\n@frozen\npublic struct F74_S0_S0\n{\n public let f0 : UInt16;\n public let f1 : UInt;\n public let f2 : Int8;\n}\n\n@frozen\npublic struct F74_S0\n{\n public let f0 : F74_S0_S0;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F74_S1\n{\n public let f0 : Float;\n}\n\npublic func swiftCallbackFunc74(f: (F74_S0, F74_S1, Int16) -> Int64) -> Int64 {\n return f(F74_S0(f0: F74_S0_S0(f0: 59883, f1: 5554216411943233256, f2: 126), f1: 724541378819571203), F74_S1(f0: 172601), 27932)\n}\n\n@frozen\npublic struct F75_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F75_S1_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F75_S1\n{\n public let f0 : F75_S1_S0;\n}\n\n@frozen\npublic struct F75_S2\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F75_S3_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F75_S3\n{\n public let f0 : F75_S3_S0;\n}\n\n@frozen\npublic struct F75_Ret\n{\n public let f0 : UInt8;\n public let f1 : Double;\n public let f2 : Double;\n public let f3 : Int64;\n public let f4 : UInt32;\n}\n\npublic func swiftCallbackFunc75(f: (Int8, Int8, Int8, F75_S0, F75_S1, F75_S2, F75_S3) -> F75_Ret) -> F75_Ret {\n return f(-105, 71, 108, F75_S0(f0: 7224638108479292438), F75_S1(f0: F75_S1_S0(f0: 126)), F75_S2(f0: -88), F75_S3(f0: F75_S3_S0(f0: 4934)))\n}\n\n@frozen\npublic struct F76_S0\n{\n public let f0 : UInt16;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F76_S1_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F76_S1\n{\n public let f0 : F76_S1_S0;\n public let f1 : UInt;\n public let f2 : Double;\n}\n\n@frozen\npublic struct F76_S2\n{\n public let f0 : UInt64;\n public let f1 : Int;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F76_S3_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F76_S3\n{\n public let f0 : F76_S3_S0;\n}\n\n@frozen\npublic struct F76_S4\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F76_S5\n{\n public let f0 : UInt;\n public let f1 : Double;\n}\n\npublic func swiftCallbackFunc76(f: (UInt8, F76_S0, Int8, F76_S1, F76_S2, F76_S3, UInt32, F76_S4, UInt8, F76_S5, Double, Int16) -> UInt64) -> UInt64 {\n return f(69, F76_S0(f0: 25503, f1: 4872234474620951743), 43, F76_S1(f0: F76_S1_S0(f0: 1199076663426903579), f1: 4639522222462236688, f2: 4082956091930029), F76_S2(f0: 5171821618947987626, f1: 3369410144919558564, f2: 5287), F76_S3(f0: F76_S3_S0(f0: 929854460912895550)), 1208311201, F76_S4(f0: 7033993025788649145), 58, F76_S5(f0: 1401399014740601512, f1: 2523645319232571), 230232835550369, -22975)\n}\n\n@frozen\npublic struct F77_S0\n{\n public let f0 : Int64;\n public let f1 : Double;\n public let f2 : UInt;\n}\n\n@frozen\npublic struct F77_S1\n{\n public let f0 : Int16;\n public let f1 : Float;\n public let f2 : Float;\n public let f3 : Int64;\n public let f4 : Int64;\n}\n\n@frozen\npublic struct F77_S2\n{\n public let f0 : UInt16;\n public let f1 : Int8;\n public let f2 : Int32;\n public let f3 : Float;\n public let f4 : Float;\n}\n\n@frozen\npublic struct F77_Ret\n{\n public let f0 : Double;\n public let f1 : UInt16;\n public let f2 : Int8;\n public let f3 : UInt;\n}\n\npublic func swiftCallbackFunc77(f: (Double, F77_S0, F77_S1, F77_S2, UInt32) -> F77_Ret) -> F77_Ret {\n return f(1623173949127682, F77_S0(f0: 5204451347781433070, f1: 3469485630755805, f2: 7586276835848725004), F77_S1(f0: 2405, f1: 2419792, f2: 6769317, f3: 1542327522833750776, f4: 1297586130846695275), F77_S2(f0: 10102, f1: -48, f2: 14517107, f3: 4856023, f4: 2681358), 1463251524)\n}\n\n@frozen\npublic struct F78_S0\n{\n public let f0 : UInt;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F78_S1_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F78_S1\n{\n public let f0 : Int16;\n public let f1 : UInt64;\n public let f2 : F78_S1_S0;\n public let f3 : Int32;\n public let f4 : Int;\n}\n\n@frozen\npublic struct F78_S2\n{\n public let f0 : UInt;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F78_S3\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F78_S4\n{\n public let f0 : UInt64;\n}\n\npublic func swiftCallbackFunc78(f: (UInt64, F78_S0, UInt64, F78_S1, F78_S2, Int32, UInt64, Int64, F78_S3, Float, Float, UInt16, F78_S4, Double) -> Double) -> Double {\n return f(6780767594736146373, F78_S0(f0: 6264193481541646332, f1: 6600856439035088503), 1968254881389492170, F78_S1(f0: -17873, f1: 5581169895682201971, f2: F78_S1_S0(f0: 127), f3: 1942346704, f4: 118658265323815307), F78_S2(f0: 1489326778640378879, f1: 1427061853707270770), 858391966, 5830110056171302270, 2953614358173898788, F78_S3(f0: 6761452244699684409), 3452451, 3507119, 40036, F78_S4(f0: 4800085294404376817), 780368756754436)\n}\n\n@frozen\npublic struct F79_S0_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F79_S0\n{\n public let f0 : F79_S0_S0;\n public let f1 : Int;\n}\n\n@frozen\npublic struct F79_Ret\n{\n public let f0 : UInt32;\n public let f1 : UInt64;\n public let f2 : Double;\n}\n\npublic func swiftCallbackFunc79(f: (F79_S0, Float) -> F79_Ret) -> F79_Ret {\n return f(F79_S0(f0: F79_S0_S0(f0: 1013911700897046117), f1: 7323935615297665289), 5159506)\n}\n\n@frozen\npublic struct F80_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F80_S1_S0_S0\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F80_S1_S0\n{\n public let f0 : F80_S1_S0_S0;\n}\n\n@frozen\npublic struct F80_S1\n{\n public let f0 : Int;\n public let f1 : F80_S1_S0;\n}\n\n@frozen\npublic struct F80_S2\n{\n public let f0 : UInt64;\n}\n\npublic func swiftCallbackFunc80(f: (UInt64, Int, Int32, Int16, UInt, F80_S0, Int16, Int, Int8, Int32, UInt32, F80_S1, F80_S2, UInt64) -> Float) -> Float {\n return f(4470427843910624516, 8383677749057878551, 2017117925, -10531, 3438375001906177611, F80_S0(f0: 65220), 7107, 7315288835693680178, -48, 813870434, 1092037477, F80_S1(f0: 7104962838387954470, f1: F80_S1_S0(f0: F80_S1_S0_S0(f0: 236))), F80_S2(f0: 7460392384225808790), 364121728483540667)\n}\n\n@frozen\npublic struct F81_S0\n{\n public let f0 : Float;\n public let f1 : Float;\n public let f2 : Int;\n public let f3 : Int;\n public let f4 : Int;\n}\n\n@frozen\npublic struct F81_Ret\n{\n public let f0 : Int;\n}\n\npublic func swiftCallbackFunc81(f: (UInt8, UInt32, UInt8, F81_S0, Int8) -> F81_Ret) -> F81_Ret {\n return f(53, 57591489, 19, F81_S0(f0: 5675845, f1: 6469988, f2: 5775316279348621124, f3: 7699091894067057939, f4: 1049086627558950131), 15)\n}\n\n@frozen\npublic struct F82_S0_S0\n{\n public let f0 : Float;\n public let f1 : UInt;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F82_S0\n{\n public let f0 : UInt;\n public let f1 : F82_S0_S0;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F82_S1\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F82_S2\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F82_S3_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F82_S3\n{\n public let f0 : Double;\n public let f1 : UInt;\n public let f2 : F82_S3_S0;\n}\n\n@frozen\npublic struct F82_S4\n{\n public let f0 : UInt64;\n}\n\npublic func swiftCallbackFunc82(f: (Int64, F82_S0, Int16, Int8, UInt32, F82_S1, Int32, Int64, Int8, Double, F82_S2, F82_S3, F82_S4) -> Float) -> Float {\n return f(6454754584537364459, F82_S0(f0: 6703634779264968131, f1: F82_S0_S0(f0: 1010059, f1: 4772968591609202284, f2: 64552), f2: 47126), 9869, -8, 1741550381, F82_S1(f0: 705741282), 1998781399, 7787961471254401526, -27, 4429830670351707, F82_S2(f0: 4975772762589349422), F82_S3(f0: 1423948098664774, f1: 504607538824251986, f2: F82_S3_S0(f0: 1940911018)), F82_S4(f0: 2988623645681463667))\n}\n\n@frozen\npublic struct F83_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F83_Ret\n{\n public let f0 : Int16;\n}\n\npublic func swiftCallbackFunc83(f: (Int8, F83_S0, Int16) -> F83_Ret) -> F83_Ret {\n return f(17, F83_S0(f0: 530755056), -11465)\n}\n\n@frozen\npublic struct F84_S0\n{\n public let f0 : UInt;\n public let f1 : UInt32;\n public let f2 : UInt;\n public let f3 : UInt64;\n public let f4 : Int32;\n}\n\n@frozen\npublic struct F84_S1\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F84_S2\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct F84_S3\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F84_S4\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F84_S5\n{\n public let f0 : Int;\n public let f1 : Int16;\n}\n\n@frozen\npublic struct F84_S6\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F84_S7\n{\n public let f0 : Int32;\n}\n\npublic func swiftCallbackFunc84(f: (Int32, F84_S0, F84_S1, Double, Int32, Int16, Double, F84_S2, F84_S3, Double, F84_S4, F84_S5, F84_S6, F84_S7, UInt) -> Int) -> Int {\n return f(1605022009, F84_S0(f0: 6165049220831866664, f1: 1235491183, f2: 7926620970405586826, f3: 2633248816907294140, f4: 2012834055), F84_S1(f0: 2881830362339122988), 4065309434963087, 1125165825, -32360, 1145602045200029, F84_S2(f0: 5655563), F84_S3(f0: 14), 3919593995303128, F84_S4(f0: 26090), F84_S5(f0: 8584898862398781737, f1: -5185), F84_S6(f0: 144), F84_S7(f0: 2138004352), 9102562043027810686)\n}\n\n@frozen\npublic struct F85_S0\n{\n public let f0 : Double;\n public let f1 : Double;\n public let f2 : Int8;\n public let f3 : Int32;\n}\n\n@frozen\npublic struct F85_S1\n{\n public let f0 : Int64;\n public let f1 : UInt16;\n public let f2 : UInt64;\n public let f3 : UInt;\n}\n\n@frozen\npublic struct F85_S2\n{\n public let f0 : Float;\n public let f1 : Float;\n public let f2 : UInt32;\n}\n\n@frozen\npublic struct F85_S3\n{\n public let f0 : UInt8;\n}\n\n@frozen\npublic struct F85_S4\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F85_S5\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F85_Ret\n{\n public let f0 : UInt32;\n public let f1 : UInt16;\n public let f2 : Int32;\n public let f3 : Double;\n public let f4 : Int;\n public let f5 : UInt64;\n public let f6 : Int64;\n}\n\npublic func swiftCallbackFunc85(f: (F85_S0, F85_S1, UInt32, F85_S2, Int64, F85_S3, Int64, F85_S4, UInt16, UInt8, Int32, UInt32, Int32, Float, F85_S5, Int64) -> F85_Ret) -> F85_Ret {\n return f(F85_S0(f0: 4325646965362202, f1: 3313084380250914, f2: 42, f3: 2034100272), F85_S1(f0: 1365643665271339575, f1: 25442, f2: 3699631470459352980, f3: 7611776251925132200), 911446742, F85_S2(f0: 352423, f1: 7150341, f2: 2090089360), 5731257538910387688, F85_S3(f0: 171), 5742887585483060342, F85_S4(f0: 1182236975680416316), 32137, 44, 2143531010, 1271996557, 1035188446, 1925443, F85_S5(f0: 2591574394337603), 721102428782331317)\n}\n\n@frozen\npublic struct F86_S0\n{\n public let f0 : Int;\n public let f1 : Float;\n public let f2 : Int16;\n public let f3 : Int8;\n}\n\n@frozen\npublic struct F86_S1\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F86_S2\n{\n public let f0 : Int;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F86_S3\n{\n public let f0 : UInt16;\n public let f1 : Float;\n}\n\n@frozen\npublic struct F86_Ret\n{\n public let f0 : Int16;\n public let f1 : UInt32;\n public let f2 : Double;\n public let f3 : UInt8;\n}\n\npublic func swiftCallbackFunc86(f: (Float, Int16, Int, Int16, Float, F86_S0, F86_S1, F86_S2, Int, UInt32, UInt, UInt, Float, Int64, F86_S3, UInt) -> F86_Ret) -> F86_Ret {\n return f(2913632, 3735, 2773655476379499086, 22973, 8292778, F86_S0(f0: 5562042565258891920, f1: 8370233, f2: 18292, f3: -32), F86_S1(f0: 486951152980016), F86_S2(f0: 170033426151098456, f1: 3867810), 7390780928011218856, 1504267943, 2046987193814931100, 4860202472307588968, 1644019, 8084012412562897328, F86_S3(f0: 46301, f1: 5633701), 1911608136082175332)\n}\n\n@frozen\npublic struct F87_S0\n{\n public let f0 : Int32;\n public let f1 : Int16;\n public let f2 : Int32;\n}\n\n@frozen\npublic struct F87_S1\n{\n public let f0 : Float;\n}\n\npublic func swiftCallbackFunc87(f: (Float, Int, F87_S0, F87_S1) -> UInt64) -> UInt64 {\n return f(1413086, 4206825694012787823, F87_S0(f0: 70240457, f1: 30503, f2: 671751848), F87_S1(f0: 6641304))\n}\n\n@frozen\npublic struct F88_S0\n{\n public let f0 : Int8;\n public let f1 : Int16;\n public let f2 : UInt8;\n public let f3 : Double;\n public let f4 : UInt16;\n}\n\n@frozen\npublic struct F88_S1\n{\n public let f0 : Double;\n public let f1 : UInt8;\n}\n\n@frozen\npublic struct F88_S2\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F88_S3\n{\n public let f0 : Int8;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F88_Ret\n{\n public let f0 : Int32;\n public let f1 : UInt32;\n public let f2 : Int;\n public let f3 : UInt64;\n}\n\npublic func swiftCallbackFunc88(f: (F88_S0, F88_S1, Float, UInt, Float, Int, F88_S2, UInt64, F88_S3, UInt64) -> F88_Ret) -> F88_Ret {\n return f(F88_S0(f0: 125, f1: -10705, f2: 21, f3: 361845689097003, f4: 41749), F88_S1(f0: 1754583995806427, f1: 178), 4705205, 5985040566226273121, 2484194, 1904196135427766362, F88_S2(f0: 5436710892090266406), 4250368992471675181, F88_S3(f0: -87, f1: 362108395), 3388632419732870796)\n}\n\n@frozen\npublic struct F89_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F89_Ret_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F89_Ret\n{\n public let f0 : Int32;\n public let f1 : F89_Ret_S0;\n public let f2 : UInt;\n public let f3 : Int64;\n}\n\npublic func swiftCallbackFunc89(f: (F89_S0) -> F89_Ret) -> F89_Ret {\n return f(F89_S0(f0: 2137010348736191))\n}\n\n@frozen\npublic struct F90_S0_S0_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F90_S0_S0\n{\n public let f0 : F90_S0_S0_S0;\n}\n\n@frozen\npublic struct F90_S0\n{\n public let f0 : F90_S0_S0;\n public let f1 : UInt;\n public let f2 : UInt32;\n public let f3 : Int64;\n public let f4 : Int16;\n}\n\n@frozen\npublic struct F90_S1\n{\n public let f0 : UInt16;\n public let f1 : Int16;\n}\n\n@frozen\npublic struct F90_S2\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct F90_S3\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F90_S4\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F90_Ret\n{\n public let f0 : Int16;\n public let f1 : Int;\n}\n\npublic func swiftCallbackFunc90(f: (Int64, Float, F90_S0, UInt32, UInt16, F90_S1, F90_S2, F90_S3, F90_S4) -> F90_Ret) -> F90_Ret {\n return f(920081051198141017, 661904, F90_S0(f0: F90_S0_S0(f0: F90_S0_S0_S0(f0: 3898354148166517637)), f1: 1003118682503285076, f2: 1418362079, f3: 3276689793574299746, f4: -18559), 1773011602, 32638, F90_S1(f0: 47129, f1: -31849), F90_S2(f0: 4795020225668482328), F90_S3(f0: 5307513663902191175), F90_S4(f0: 7057074401404034083))\n}\n\n@frozen\npublic struct F91_S0\n{\n public let f0 : Int8;\n public let f1 : Int;\n public let f2 : UInt16;\n public let f3 : UInt16;\n}\n\n@frozen\npublic struct F91_S1\n{\n public let f0 : Double;\n public let f1 : UInt64;\n public let f2 : Int8;\n public let f3 : Int64;\n public let f4 : Float;\n}\n\n@frozen\npublic struct F91_S2_S0_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct F91_S2_S0\n{\n public let f0 : F91_S2_S0_S0;\n}\n\n@frozen\npublic struct F91_S2\n{\n public let f0 : Double;\n public let f1 : F91_S2_S0;\n public let f2 : Int16;\n}\n\n@frozen\npublic struct F91_S3_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F91_S3\n{\n public let f0 : F91_S3_S0;\n}\n\n@frozen\npublic struct F91_Ret\n{\n public let f0 : Int64;\n public let f1 : UInt64;\n public let f2 : Int16;\n public let f3 : UInt32;\n}\n\npublic func swiftCallbackFunc91(f: (F91_S0, Int16, UInt32, Double, F91_S1, Int64, UInt64, Float, F91_S2, Int, F91_S3) -> F91_Ret) -> F91_Ret {\n return f(F91_S0(f0: -117, f1: 6851485542307521521, f2: 23224, f3: 28870), -26318, 874052395, 3651199868446152, F91_S1(f0: 3201729800438540, f1: 7737032265509566019, f2: 123, f3: 7508633930609553617, f4: 8230501), 2726677037673277403, 4990410590084533996, 3864639, F91_S2(f0: 1763083442463892, f1: F91_S2_S0(f0: F91_S2_S0_S0(f0: 6783710957456602933)), f2: 2927), 3359440517385934325, F91_S3(f0: F91_S3_S0(f0: 3281136825102667421)))\n}\n\n@frozen\npublic struct F92_S0\n{\n public let f0 : Double;\n public let f1 : Double;\n}\n\n@frozen\npublic struct F92_S1\n{\n public let f0 : UInt32;\n public let f1 : Int64;\n public let f2 : UInt32;\n public let f3 : Int16;\n public let f4 : UInt64;\n}\n\n@frozen\npublic struct F92_S2_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F92_S2\n{\n public let f0 : UInt32;\n public let f1 : Int64;\n public let f2 : F92_S2_S0;\n}\n\n@frozen\npublic struct F92_Ret\n{\n public let f0 : Int32;\n}\n\npublic func swiftCallbackFunc92(f: (UInt32, Int64, F92_S0, Int, UInt8, F92_S1, F92_S2, UInt8, Int, Int32) -> F92_Ret) -> F92_Ret {\n return f(479487770, 3751818229732502126, F92_S0(f0: 3486664439392893, f1: 1451061144702448), 1103649059951788126, 17, F92_S1(f0: 1542537473, f1: 2256304993713022795, f2: 1773847876, f3: -4712, f4: 2811859744132572185), F92_S2(f0: 290315682, f1: 4847587202070249866, f2: F92_S2_S0(f0: 20774)), 8, 2206063999764082749, 1481391120)\n}\n\n@frozen\npublic struct F93_S0\n{\n public let f0 : Int8;\n public let f1 : UInt32;\n}\n\n@frozen\npublic struct F93_S1\n{\n public let f0 : UInt32;\n}\n\n@frozen\npublic struct F93_Ret\n{\n public let f0 : Int;\n public let f1 : UInt64;\n}\n\npublic func swiftCallbackFunc93(f: (UInt, UInt16, Double, F93_S0, F93_S1) -> F93_Ret) -> F93_Ret {\n return f(5170226481546239050, 2989, 1630717078645270, F93_S0(f0: -46, f1: 859171256), F93_S1(f0: 254449240))\n}\n\n@frozen\npublic struct F94_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct F94_S1\n{\n public let f0 : Int32;\n public let f1 : UInt;\n}\n\n@frozen\npublic struct F94_S2\n{\n public let f0 : Int;\n public let f1 : UInt32;\n public let f2 : UInt16;\n}\n\n@frozen\npublic struct F94_S3\n{\n public let f0 : UInt8;\n public let f1 : Int32;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F94_S4\n{\n public let f0 : Int32;\n public let f1 : Int64;\n public let f2 : Float;\n}\n\n@frozen\npublic struct F94_S5\n{\n public let f0 : Int16;\n public let f1 : UInt;\n public let f2 : Int16;\n public let f3 : Int8;\n}\n\n@frozen\npublic struct F94_Ret\n{\n public let f0 : Int64;\n}\n\npublic func swiftCallbackFunc94(f: (F94_S0, Int16, F94_S1, F94_S2, F94_S3, Float, F94_S4, UInt32, F94_S5, Int16) -> F94_Ret) -> F94_Ret {\n return f(F94_S0(f0: 8626725032375870186), -7755, F94_S1(f0: 544707027, f1: 2251410026467996594), F94_S2(f0: 2972912419231960385, f1: 740529487, f2: 34526), F94_S3(f0: 41, f1: 1598856955, f2: 5126603), 7242977, F94_S4(f0: 473684762, f1: 4023878650965716094, f2: 2777693), 1612378906, F94_S5(f0: -17074, f1: 2666903737827472071, f2: 418, f3: 106), -14547)\n}\n\n@frozen\npublic struct F95_S0\n{\n public let f0 : UInt16;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F95_S1\n{\n public let f0 : UInt32;\n public let f1 : Int16;\n public let f2 : Double;\n}\n\n@frozen\npublic struct F95_S2\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct F95_Ret_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F95_Ret\n{\n public let f0 : Int;\n public let f1 : Int16;\n public let f2 : Int8;\n public let f3 : UInt8;\n public let f4 : F95_Ret_S0;\n}\n\npublic func swiftCallbackFunc95(f: (F95_S0, UInt, F95_S1, F95_S2) -> F95_Ret) -> F95_Ret {\n return f(F95_S0(f0: 45388, f1: 6620047889014935849), 97365157264460373, F95_S1(f0: 357234637, f1: -13720, f2: 3313430568949662), F95_S2(f0: 14248))\n}\n\n@frozen\npublic struct F96_S0\n{\n public let f0 : Int64;\n public let f1 : UInt32;\n public let f2 : Int16;\n public let f3 : Double;\n public let f4 : Double;\n}\n\n@frozen\npublic struct F96_S1\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct F96_S2\n{\n public let f0 : Float;\n}\n\npublic func swiftCallbackFunc96(f: (UInt32, F96_S0, Float, UInt64, UInt32, UInt32, F96_S1, F96_S2, Int64) -> UInt64) -> UInt64 {\n return f(1103144790, F96_S0(f0: 496343164737276588, f1: 1541085564, f2: -16271, f3: 1062575289573718, f4: 570255786498865), 7616839, 7370881799887414383, 390392554, 1492692139, F96_S1(f0: 1666031716012978365), F96_S2(f0: 3427394), 4642371619161527189)\n}\n\n@frozen\npublic struct F97_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct F97_S1\n{\n public let f0 : Int64;\n public let f1 : UInt64;\n}\n\n@frozen\npublic struct F97_S2\n{\n public let f0 : UInt8;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct F97_S3\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct F97_Ret_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct F97_Ret\n{\n public let f0 : Double;\n public let f1 : UInt;\n public let f2 : F97_Ret_S0;\n public let f3 : UInt16;\n public let f4 : UInt32;\n}\n\npublic func swiftCallbackFunc97(f: (F97_S0, F97_S1, F97_S2, F97_S3) -> F97_Ret) -> F97_Ret {\n return f(F97_S0(f0: -87), F97_S1(f0: 1414208343412494909, f1: 453284654311256466), F97_S2(f0: 224, f1: 1712859616922087053), F97_S3(f0: 3987671154739178))\n}\n\n@frozen\npublic struct F98_S0\n{\n public let f0 : Int32;\n}\n\npublic func swiftCallbackFunc98(f: (Float, UInt16, F98_S0, UInt16) -> Int) -> Int {\n return f(2863898, 37573, F98_S0(f0: 1073068257), 53560)\n}\n\n@frozen\npublic struct F99_S0\n{\n public let f0 : Int;\n public let f1 : UInt32;\n public let f2 : Int32;\n public let f3 : UInt32;\n}\n\n@frozen\npublic struct F99_S1\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct F99_S2\n{\n public let f0 : UInt8;\n}\n\npublic func swiftCallbackFunc99(f: (Int64, UInt, Float, UInt16, F99_S0, UInt8, Float, UInt8, Int8, F99_S1, F99_S2) -> UInt64) -> UInt64 {\n return f(1152281003884062246, 2482384127373829622, 3361150, 2121, F99_S0(f0: 4484545590050696958, f1: 422528630, f2: 1418346646, f3: 1281567856), 223, 1917656, 103, -46, F99_S1(f0: 14554), F99_S2(f0: 68))\n}\n\n
dataset_sample\swift\dotnet_runtime\src\tests\Interop\SwiftCallbackAbiStress\SwiftCallbackAbiStress.swift
SwiftCallbackAbiStress.swift
Swift
83,194
0.75
0
0.000604
react-lib
923
2025-01-01T10:29:49.340322
MIT
true
e36a186450290dabd28ecf896e7e703b
// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nimport Foundation\n\npublic enum MyError: Error {\n case runtimeError(message: NSString)\n}\n\nvar errorMessage: NSString = ""\n\npublic func setMyErrorMessage(message: UnsafePointer<unichar>, length: Int32) {\n errorMessage = NSString(characters: message, length: Int(length))\n}\n\npublic func conditionallyThrowError(willThrow: Int32) throws -> Int32 {\n if willThrow != 0 {\n throw MyError.runtimeError(message: errorMessage)\n } else {\n return 42\n }\n}\n\npublic func getMyErrorMessage(from error: Error, messageLength: inout Int32) -> UnsafePointer<unichar>? {\n if let myError = error as? MyError {\n switch myError {\n case .runtimeError(let message):\n let buffer = UnsafeMutableBufferPointer<unichar>.allocate(capacity: message.length)\n message.getCharacters(buffer.baseAddress!, range: NSRange(location: 0, length: message.length))\n messageLength = Int32(message.length)\n return UnsafePointer(buffer.baseAddress!)\n }\n }\n return nil\n}\n\npublic func freeStringBuffer(buffer: UnsafeMutablePointer<unichar>) {\n buffer.deallocate()\n}\n\npublic func nativeFunctionWithCallback(setError: Int32, _ callback: (Int32) -> Void) {\n callback(setError)\n}\n\npublic func nativeFunctionWithCallback(value: Int32, setError: Int32, _ callback: (Int32, Int32) -> Int32) -> Int32 {\n return callback(value, setError)\n}\n
dataset_sample\swift\dotnet_runtime\src\tests\Interop\SwiftErrorHandling\SwiftErrorHandling.swift
SwiftErrorHandling.swift
Swift
1,532
0.95
0.06383
0.052632
vue-tools
640
2024-10-15T06:37:04.466701
Apache-2.0
true
fad41acc1a78f3f69c1c401d94e090c3
// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\npublic struct NonFrozenStruct\n{\n let a : Int32;\n let b : Int32;\n let c : Int32;\n}\n\npublic func ReturnNonFrozenStruct(a: Int32, b: Int32, c: Int32) -> NonFrozenStruct {\n return NonFrozenStruct(a: a, b: b, c: c)\n}\n\npublic func SumReturnedNonFrozenStruct(f: () -> NonFrozenStruct) -> Int32 {\n let s = f()\n return s.a + s.b + s.c\n}
dataset_sample\swift\dotnet_runtime\src\tests\Interop\SwiftIndirectResult\SwiftIndirectResult.swift
SwiftIndirectResult.swift
Swift
483
0.8
0
0.133333
python-kit
114
2024-02-09T10:41:54.801916
GPL-3.0
true
66aea8e940660440a0b0ca03df82be9c
// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nstruct HasherFNV1a {\n\n private var hash: UInt = 14_695_981_039_346_656_037\n private let prime: UInt = 1_099_511_628_211\n\n mutating func combine<T>(_ val: T) {\n for byte in withUnsafeBytes(of: val, Array.init) {\n hash ^= UInt(byte)\n hash = hash &* prime\n }\n }\n\n func finalize() -> Int {\n Int(truncatingIfNeeded: hash)\n }\n}\n\n@frozen public struct F0 {\n public var elements: (UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8, UInt8)\n}\n\npublic func swiftFunc0(a0: F0) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.elements.0);\n hasher.combine(a0.elements.1);\n hasher.combine(a0.elements.2);\n hasher.combine(a0.elements.3);\n hasher.combine(a0.elements.4);\n hasher.combine(a0.elements.5);\n hasher.combine(a0.elements.6);\n hasher.combine(a0.elements.7);\n hasher.combine(a0.elements.8);\n hasher.combine(a0.elements.9);\n hasher.combine(a0.elements.10);\n hasher.combine(a0.elements.11);\n hasher.combine(a0.elements.12);\n hasher.combine(a0.elements.13);\n hasher.combine(a0.elements.14);\n hasher.combine(a0.elements.15);\n hasher.combine(a0.elements.16);\n hasher.combine(a0.elements.17);\n hasher.combine(a0.elements.18);\n hasher.combine(a0.elements.19);\n hasher.combine(a0.elements.20);\n hasher.combine(a0.elements.21);\n hasher.combine(a0.elements.22);\n hasher.combine(a0.elements.23);\n hasher.combine(a0.elements.24);\n hasher.combine(a0.elements.25);\n hasher.combine(a0.elements.26);\n hasher.combine(a0.elements.27);\n hasher.combine(a0.elements.28);\n hasher.combine(a0.elements.29);\n hasher.combine(a0.elements.30);\n hasher.combine(a0.elements.31);\n return hasher.finalize()\n}\n\n@frozen public struct F1 {\n public var elements: (Int32, Int32, Int32, Int32, Int32, Int32, Int32, Int32)\n}\n\npublic func swiftFunc1(a0: F1) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.elements.0);\n hasher.combine(a0.elements.1);\n hasher.combine(a0.elements.2);\n hasher.combine(a0.elements.3);\n hasher.combine(a0.elements.4);\n hasher.combine(a0.elements.5);\n hasher.combine(a0.elements.6);\n hasher.combine(a0.elements.7);\n return hasher.finalize()\n}\n\n@frozen public struct F2 {\n public var elements: (UInt64, UInt64, UInt64, UInt64, UInt64, UInt64)\n}\n\npublic func swiftFunc2(a0: F2) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.elements.0);\n hasher.combine(a0.elements.1);\n hasher.combine(a0.elements.2);\n hasher.combine(a0.elements.3);\n hasher.combine(a0.elements.4);\n hasher.combine(a0.elements.5);\n return hasher.finalize()\n}\n\n@frozen public struct F3 {\n public var element: UInt8\n}\n\npublic func swiftFunc3(a0: F3) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.element);\n return hasher.finalize()\n}\n\n@frozen public struct F4 {\n public var elements: (UInt32, UInt32)\n}\n\npublic func swiftFunc4(a0: F4) -> Int {\n var hasher = HasherFNV1a()\n hasher.combine(a0.elements.0);\n hasher.combine(a0.elements.1);\n return hasher.finalize()\n}\n
dataset_sample\swift\dotnet_runtime\src\tests\Interop\SwiftInlineArray\SwiftInlineArray.swift
SwiftInlineArray.swift
Swift
3,399
0.8
0.00885
0.020202
vue-tools
487
2024-08-07T23:57:54.713655
BSD-3-Clause
true
b19c84ad63d24648666d43264321585f
// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\npublic func simpleFunc() { }\n
dataset_sample\swift\dotnet_runtime\src\tests\Interop\SwiftInvalidCallConv\SwiftInvalidCallConv.swift
SwiftInvalidCallConv.swift
Swift
167
0.8
0
0.666667
vue-tools
817
2025-03-29T03:19:50.901426
GPL-3.0
true
2731bca1ec48f909face7e7d011c7c16
// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\nimport Foundation\n\n@frozen\npublic struct S0\n{\n public let f0 : Int16;\n public let f1 : Int32;\n public let f2 : UInt64;\n}\n\npublic func swiftRetFunc0() -> S0 {\n return S0(f0: -17813, f1: 318006528, f2: 1195162122024233590)\n}\n\n@frozen\npublic struct S1\n{\n public let f0 : Int16;\n public let f1 : Float;\n public let f2 : Int64;\n public let f3 : UInt32;\n}\n\npublic func swiftRetFunc1() -> S1 {\n return S1(f0: -29793, f1: 7351779, f2: 133491708229548754, f3: 665726990)\n}\n\n@frozen\npublic struct S2_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct S2\n{\n public let f0 : S2_S0;\n public let f1 : UInt8;\n public let f2 : UInt16;\n public let f3 : Float;\n public let f4 : Int32;\n}\n\npublic func swiftRetFunc2() -> S2 {\n return S2(f0: S2_S0(f0: 2153637757371267722), f1: 150, f2: 48920, f3: 3564327, f4: 1310569731)\n}\n\n@frozen\npublic struct S3\n{\n public let f0 : Int64;\n public let f1 : Double;\n public let f2 : Int8;\n public let f3 : Int32;\n public let f4 : UInt16;\n public let f5 : UInt8;\n public let f6 : Double;\n}\n\npublic func swiftRetFunc3() -> S3 {\n return S3(f0: 5610153900386943274, f1: 2431035148834736, f2: 111, f3: 772269424, f4: 19240, f5: 146, f6: 821805530740405)\n}\n\n@frozen\npublic struct S4\n{\n public let f0 : Int8;\n public let f1 : UInt32;\n public let f2 : UInt64;\n public let f3 : Int64;\n}\n\npublic func swiftRetFunc4() -> S4 {\n return S4(f0: 125, f1: 377073381, f2: 964784376430620335, f3: 5588038704850976624)\n}\n\n@frozen\npublic struct S5_S0\n{\n public let f0 : UInt32;\n public let f1 : Double;\n}\n\n@frozen\npublic struct S5\n{\n public let f0 : UInt64;\n public let f1 : Int8;\n public let f2 : UInt;\n public let f3 : S5_S0;\n public let f4 : Int;\n public let f5 : UInt8;\n}\n\npublic func swiftRetFunc5() -> S5 {\n return S5(f0: 5315019731968023493, f1: 114, f2: 1154655179105889397, f3: S5_S0(f0: 1468030771, f1: 3066473182924818), f4: 6252650621827449809, f5: 129)\n}\n\n@frozen\npublic struct S6\n{\n public let f0 : Int32;\n public let f1 : Int16;\n public let f2 : Int64;\n public let f3 : UInt16;\n}\n\npublic func swiftRetFunc6() -> S6 {\n return S6(f0: 743741783, f1: -6821, f2: 5908745692727636656, f3: 64295)\n}\n\n@frozen\npublic struct S7_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct S7\n{\n public let f0 : S7_S0;\n}\n\npublic func swiftRetFunc7() -> S7 {\n return S7(f0: S7_S0(f0: 7625368278886567558))\n}\n\n@frozen\npublic struct S8\n{\n public let f0 : Int;\n}\n\npublic func swiftRetFunc8() -> S8 {\n return S8(f0: 775279004683334365)\n}\n\n@frozen\npublic struct S9_S0\n{\n public let f0 : Int16;\n public let f1 : Int32;\n}\n\n@frozen\npublic struct S9\n{\n public let f0 : UInt32;\n public let f1 : Int;\n public let f2 : S9_S0;\n public let f3 : UInt16;\n}\n\npublic func swiftRetFunc9() -> S9 {\n return S9(f0: 1223030410, f1: 4720638462358523954, f2: S9_S0(f0: 30631, f1: 1033774469), f3: 64474)\n}\n\n@frozen\npublic struct S10\n{\n public let f0 : Float;\n public let f1 : Float;\n}\n\npublic func swiftRetFunc10() -> S10 {\n return S10(f0: 3276917, f1: 6694615)\n}\n\n@frozen\npublic struct S11\n{\n public let f0 : Double;\n public let f1 : Int;\n public let f2 : UInt32;\n public let f3 : Int8;\n}\n\npublic func swiftRetFunc11() -> S11 {\n return S11(f0: 938206348036312, f1: 6559514243876905696, f2: 1357772248, f3: 59)\n}\n\n@frozen\npublic struct S12\n{\n public let f0 : Double;\n}\n\npublic func swiftRetFunc12() -> S12 {\n return S12(f0: 1580503485222363)\n}\n\n@frozen\npublic struct S13\n{\n public let f0 : UInt32;\n}\n\npublic func swiftRetFunc13() -> S13 {\n return S13(f0: 1381551558)\n}\n\n@frozen\npublic struct S14_S0_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct S14_S0\n{\n public let f0 : S14_S0_S0;\n}\n\n@frozen\npublic struct S14\n{\n public let f0 : Int32;\n public let f1 : UInt16;\n public let f2 : Int8;\n public let f3 : Float;\n public let f4 : UInt64;\n public let f5 : S14_S0;\n public let f6 : Int8;\n}\n\npublic func swiftRetFunc14() -> S14 {\n return S14(f0: 1765691191, f1: 56629, f2: 25, f3: 2944946, f4: 951929105049584033, f5: S14_S0(f0: S14_S0_S0(f0: -30)), f6: 66)\n}\n\n@frozen\npublic struct S15_S0\n{\n public let f0 : UInt;\n public let f1 : Float;\n}\n\n@frozen\npublic struct S15\n{\n public let f0 : Int;\n public let f1 : S15_S0;\n public let f2 : UInt16;\n public let f3 : Int32;\n}\n\npublic func swiftRetFunc15() -> S15 {\n return S15(f0: 2090703541638269172, f1: S15_S0(f0: 6408314016925514463, f1: 6534515), f2: 30438, f3: 1745811802)\n}\n\n@frozen\npublic struct S16\n{\n public let f0 : UInt32;\n public let f1 : UInt64;\n public let f2 : UInt8;\n public let f3 : Int32;\n public let f4 : UInt;\n public let f5 : Int8;\n}\n\npublic func swiftRetFunc16() -> S16 {\n return S16(f0: 585220635, f1: 4034210936973794153, f2: 48, f3: 1155081155, f4: 806384837403045657, f5: 54)\n}\n\n@frozen\npublic struct S17\n{\n public let f0 : UInt8;\n public let f1 : Int8;\n public let f2 : UInt8;\n}\n\npublic func swiftRetFunc17() -> S17 {\n return S17(f0: 23, f1: 112, f2: 15)\n}\n\n@frozen\npublic struct S18_S0\n{\n public let f0 : UInt32;\n public let f1 : Float;\n}\n\n@frozen\npublic struct S18\n{\n public let f0 : S18_S0;\n public let f1 : Int;\n public let f2 : Int32;\n public let f3 : UInt16;\n public let f4 : Int16;\n}\n\npublic func swiftRetFunc18() -> S18 {\n return S18(f0: S18_S0(f0: 1964425016, f1: 2767295), f1: 6016563774923595868, f2: 1648562735, f3: 378, f4: -20536)\n}\n\n@frozen\npublic struct S19\n{\n public let f0 : UInt8;\n public let f1 : UInt16;\n public let f2 : Float;\n public let f3 : UInt64;\n public let f4 : Int32;\n}\n\npublic func swiftRetFunc19() -> S19 {\n return S19(f0: 188, f1: 47167, f2: 6781297, f3: 8140268502944465472, f4: 708690468)\n}\n\n@frozen\npublic struct S20_S0\n{\n public let f0 : UInt32;\n public let f1 : Float;\n}\n\n@frozen\npublic struct S20\n{\n public let f0 : S20_S0;\n public let f1 : UInt8;\n}\n\npublic func swiftRetFunc20() -> S20 {\n return S20(f0: S20_S0(f0: 2019361333, f1: 938975), f1: 192)\n}\n\n@frozen\npublic struct S21_S0_S0\n{\n public let f0 : UInt16;\n}\n\n@frozen\npublic struct S21_S0\n{\n public let f0 : S21_S0_S0;\n}\n\n@frozen\npublic struct S21\n{\n public let f0 : Double;\n public let f1 : Double;\n public let f2 : UInt;\n public let f3 : Int;\n public let f4 : UInt64;\n public let f5 : S21_S0;\n}\n\npublic func swiftRetFunc21() -> S21 {\n return S21(f0: 1693878073402490, f1: 3392111340517811, f2: 3584917502172813732, f3: 665495086154608745, f4: 2918107814961929578, f5: S21_S0(f0: S21_S0_S0(f0: 4634)))\n}\n\n@frozen\npublic struct S22\n{\n public let f0 : UInt32;\n}\n\npublic func swiftRetFunc22() -> S22 {\n return S22(f0: 640156952)\n}\n\n@frozen\npublic struct S23\n{\n public let f0 : UInt8;\n public let f1 : Int16;\n public let f2 : UInt64;\n public let f3 : UInt;\n public let f4 : UInt;\n public let f5 : UInt64;\n public let f6 : UInt8;\n}\n\npublic func swiftRetFunc23() -> S23 {\n return S23(f0: 122, f1: 28995, f2: 25673626033589541, f3: 828363978755325884, f4: 3065573182429720699, f5: 1484484917001276079, f6: 209)\n}\n\n@frozen\npublic struct S24\n{\n public let f0 : UInt64;\n public let f1 : UInt64;\n}\n\npublic func swiftRetFunc24() -> S24 {\n return S24(f0: 2621245238416080387, f1: 6541787564638363256)\n}\n\n@frozen\npublic struct S25_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct S25\n{\n public let f0 : Int8;\n public let f1 : Int8;\n public let f2 : UInt8;\n public let f3 : S25_S0;\n public let f4 : UInt32;\n}\n\npublic func swiftRetFunc25() -> S25 {\n return S25(f0: 30, f1: -8, f2: 168, f3: S25_S0(f0: 7601538494489501573), f4: 814523741)\n}\n\n@frozen\npublic struct S26\n{\n public let f0 : Float;\n}\n\npublic func swiftRetFunc26() -> S26 {\n return S26(f0: 3681545)\n}\n\n@frozen\npublic struct S27\n{\n public let f0 : Int64;\n public let f1 : Double;\n public let f2 : Int8;\n public let f3 : Int;\n public let f4 : Int16;\n public let f5 : Int64;\n}\n\npublic func swiftRetFunc27() -> S27 {\n return S27(f0: 4847421047018330189, f1: 3655171692392280, f2: 46, f3: 4476120319602257660, f4: -6106, f5: 5756567968111212829)\n}\n\n@frozen\npublic struct S28_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct S28\n{\n public let f0 : Float;\n public let f1 : Int16;\n public let f2 : S28_S0;\n public let f3 : Double;\n public let f4 : UInt64;\n}\n\npublic func swiftRetFunc28() -> S28 {\n return S28(f0: 3491512, f1: 5249, f2: S28_S0(f0: 1107064327388314), f3: 2170381648425673, f4: 5138313315157580943)\n}\n\n@frozen\npublic struct S29\n{\n public let f0 : UInt16;\n public let f1 : UInt32;\n public let f2 : Int16;\n public let f3 : Int32;\n public let f4 : Int32;\n public let f5 : UInt64;\n public let f6 : Int16;\n}\n\npublic func swiftRetFunc29() -> S29 {\n return S29(f0: 39000, f1: 408611655, f2: 18090, f3: 351857085, f4: 1103441843, f5: 5162040247631126074, f6: -27930)\n}\n\n@frozen\npublic struct S30_S0\n{\n public let f0 : Int8;\n public let f1 : Int8;\n public let f2 : Int32;\n}\n\n@frozen\npublic struct S30_S1\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct S30\n{\n public let f0 : Float;\n public let f1 : S30_S0;\n public let f2 : S30_S1;\n public let f3 : Int64;\n}\n\npublic func swiftRetFunc30() -> S30 {\n return S30(f0: 6492602, f1: S30_S0(f0: 76, f1: -26, f2: 1777644423), f2: S30_S1(f0: 6558571), f3: 5879147675377398012)\n}\n\n@frozen\npublic struct S31\n{\n public let f0 : Int64;\n public let f1 : UInt64;\n public let f2 : UInt16;\n public let f3 : UInt16;\n public let f4 : Int8;\n}\n\npublic func swiftRetFunc31() -> S31 {\n return S31(f0: 4699402628739628277, f1: 7062790893852687562, f2: 28087, f3: 11088, f4: 69)\n}\n\n@frozen\npublic struct S32\n{\n public let f0 : Int32;\n public let f1 : UInt64;\n public let f2 : UInt64;\n public let f3 : UInt32;\n public let f4 : Int16;\n public let f5 : UInt16;\n}\n\npublic func swiftRetFunc32() -> S32 {\n return S32(f0: 688805466, f1: 8860655326984381661, f2: 6943423675662271404, f3: 196368476, f4: 14229, f5: 34635)\n}\n\n@frozen\npublic struct S33\n{\n public let f0 : UInt16;\n public let f1 : UInt32;\n public let f2 : Int32;\n public let f3 : UInt16;\n public let f4 : Float;\n public let f5 : UInt64;\n public let f6 : Int;\n}\n\npublic func swiftRetFunc33() -> S33 {\n return S33(f0: 9297, f1: 7963252, f2: 556244690, f3: 19447, f4: 6930550, f5: 126294981263481729, f6: 2540579257616511618)\n}\n\n@frozen\npublic struct S34\n{\n public let f0 : Int64;\n public let f1 : UInt32;\n public let f2 : UInt64;\n}\n\npublic func swiftRetFunc34() -> S34 {\n return S34(f0: 5845561428743737556, f1: 1358941228, f2: 3701080255861218446)\n}\n\n@frozen\npublic struct S35\n{\n public let f0 : Float;\n public let f1 : Float;\n public let f2 : Int64;\n public let f3 : UInt8;\n public let f4 : Double;\n public let f5 : UInt16;\n}\n\npublic func swiftRetFunc35() -> S35 {\n return S35(f0: 5982956, f1: 3675164, f2: 229451138397478297, f3: 163, f4: 2925293762193390, f5: 5018)\n}\n\n@frozen\npublic struct S36\n{\n public let f0 : Int32;\n public let f1 : Int64;\n public let f2 : UInt64;\n}\n\npublic func swiftRetFunc36() -> S36 {\n return S36(f0: 1915776502, f1: 2197655909333830531, f2: 6072941592567177049)\n}\n\n@frozen\npublic struct S37\n{\n public let f0 : UInt8;\n public let f1 : Double;\n}\n\npublic func swiftRetFunc37() -> S37 {\n return S37(f0: 18, f1: 4063164371882658)\n}\n\n@frozen\npublic struct S38\n{\n public let f0 : UInt;\n public let f1 : Int64;\n public let f2 : UInt8;\n public let f3 : UInt;\n}\n\npublic func swiftRetFunc38() -> S38 {\n return S38(f0: 7389960750529773276, f1: 2725802169582362061, f2: 2, f3: 3659261019360356514)\n}\n\n@frozen\npublic struct S39\n{\n public let f0 : Int32;\n public let f1 : Int32;\n public let f2 : Int;\n public let f3 : Int16;\n public let f4 : UInt16;\n}\n\npublic func swiftRetFunc39() -> S39 {\n return S39(f0: 50995691, f1: 1623216479, f2: 2906650346451599789, f3: 28648, f4: 8278)\n}\n\n@frozen\npublic struct S40_S0\n{\n public let f0 : Float;\n public let f1 : UInt8;\n public let f2 : Int8;\n public let f3 : UInt;\n public let f4 : Double;\n}\n\n@frozen\npublic struct S40\n{\n public let f0 : S40_S0;\n public let f1 : Int16;\n public let f2 : Int16;\n}\n\npublic func swiftRetFunc40() -> S40 {\n return S40(f0: S40_S0(f0: 7087264, f1: 37, f2: -5, f3: 479915249821490487, f4: 144033730096589), f1: 28654, f2: 16398)\n}\n\n@frozen\npublic struct S41\n{\n public let f0 : UInt;\n public let f1 : UInt;\n}\n\npublic func swiftRetFunc41() -> S41 {\n return S41(f0: 7923718819069382599, f1: 1539666179674725957)\n}\n\n@frozen\npublic struct S42_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct S42\n{\n public let f0 : UInt32;\n public let f1 : Int64;\n public let f2 : S42_S0;\n public let f3 : UInt;\n}\n\npublic func swiftRetFunc42() -> S42 {\n return S42(f0: 1046060439, f1: 8249831314190867613, f2: S42_S0(f0: 1097582349), f3: 2864677262092469436)\n}\n\n@frozen\npublic struct S43_S0_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct S43_S0\n{\n public let f0 : S43_S0_S0;\n}\n\n@frozen\npublic struct S43\n{\n public let f0 : S43_S0;\n public let f1 : Int8;\n}\n\npublic func swiftRetFunc43() -> S43 {\n return S43(f0: S43_S0(f0: S43_S0_S0(f0: 1586338)), f1: 104)\n}\n\n@frozen\npublic struct S44\n{\n public let f0 : UInt8;\n public let f1 : Int32;\n public let f2 : Int;\n public let f3 : UInt32;\n}\n\npublic func swiftRetFunc44() -> S44 {\n return S44(f0: 94, f1: 1109076022, f2: 3135595850598607828, f3: 760084013)\n}\n\n@frozen\npublic struct S45_S0\n{\n public let f0 : Int64;\n}\n\n@frozen\npublic struct S45\n{\n public let f0 : Int16;\n public let f1 : UInt64;\n public let f2 : Int;\n public let f3 : S45_S0;\n}\n\npublic func swiftRetFunc45() -> S45 {\n return S45(f0: 3071, f1: 5908138438609341766, f2: 5870206722419946629, f3: S45_S0(f0: 8128455876189744801))\n}\n\n@frozen\npublic struct S46\n{\n public let f0 : Int16;\n public let f1 : Int8;\n public let f2 : Int8;\n public let f3 : UInt32;\n public let f4 : UInt8;\n public let f5 : Int32;\n}\n\npublic func swiftRetFunc46() -> S46 {\n return S46(f0: 14794, f1: 60, f2: -77, f3: 653898879, f4: 224, f5: 266602433)\n}\n\n@frozen\npublic struct S47_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct S47\n{\n public let f0 : Double;\n public let f1 : S47_S0;\n}\n\npublic func swiftRetFunc47() -> S47 {\n return S47(f0: 3195976594911793, f1: S47_S0(f0: -91))\n}\n\n@frozen\npublic struct S48\n{\n public let f0 : Int;\n}\n\npublic func swiftRetFunc48() -> S48 {\n return S48(f0: 778504172538154682)\n}\n\n@frozen\npublic struct S49_S0_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct S49_S0\n{\n public let f0 : S49_S0_S0;\n}\n\n@frozen\npublic struct S49\n{\n public let f0 : UInt64;\n public let f1 : S49_S0;\n public let f2 : Int8;\n public let f3 : Double;\n public let f4 : UInt32;\n public let f5 : UInt32;\n}\n\npublic func swiftRetFunc49() -> S49 {\n return S49(f0: 4235011519458710874, f1: S49_S0(f0: S49_S0_S0(f0: 3120420438742285733)), f2: -8, f3: 1077419570643725, f4: 1985303212, f5: 264580506)\n}\n\n@frozen\npublic struct S50\n{\n public let f0 : Int32;\n}\n\npublic func swiftRetFunc50() -> S50 {\n return S50(f0: 1043912405)\n}\n\n@frozen\npublic struct S51_S0_S0_S0\n{\n public let f0 : Float;\n}\n\n@frozen\npublic struct S51_S0_S0\n{\n public let f0 : S51_S0_S0_S0;\n public let f1 : Int16;\n}\n\n@frozen\npublic struct S51_S0\n{\n public let f0 : Double;\n public let f1 : S51_S0_S0;\n public let f2 : UInt8;\n public let f3 : Int64;\n}\n\n@frozen\npublic struct S51\n{\n public let f0 : S51_S0;\n public let f1 : Double;\n}\n\npublic func swiftRetFunc51() -> S51 {\n return S51(f0: S51_S0(f0: 3266680719186600, f1: S51_S0_S0(f0: S51_S0_S0_S0(f0: 428247), f1: -24968), f2: 76, f3: 183022772513065490), f1: 2661928101793033)\n}\n\n@frozen\npublic struct S52\n{\n public let f0 : UInt32;\n public let f1 : Int64;\n public let f2 : UInt32;\n public let f3 : UInt64;\n public let f4 : Int;\n public let f5 : Int8;\n}\n\npublic func swiftRetFunc52() -> S52 {\n return S52(f0: 1812191671, f1: 6594574760089190928, f2: 831147243, f3: 3301835731003365248, f4: 5382332538247340743, f5: -77)\n}\n\n@frozen\npublic struct S53_S0\n{\n public let f0 : Int8;\n public let f1 : UInt;\n}\n\n@frozen\npublic struct S53\n{\n public let f0 : S53_S0;\n public let f1 : Int32;\n public let f2 : Int64;\n public let f3 : Float;\n public let f4 : Int8;\n}\n\npublic func swiftRetFunc53() -> S53 {\n return S53(f0: S53_S0(f0: -123, f1: 3494916243607193741), f1: 1406699798, f2: 4018943158751734338, f3: 1084415, f4: -8)\n}\n\n@frozen\npublic struct S54_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct S54\n{\n public let f0 : Int;\n public let f1 : Int;\n public let f2 : S54_S0;\n public let f3 : Int64;\n}\n\npublic func swiftRetFunc54() -> S54 {\n return S54(f0: 8623517456704997133, f1: 1521939500434086364, f2: S54_S0(f0: 3472783299414218), f3: 4761507229870258916)\n}\n\n@frozen\npublic struct S55\n{\n public let f0 : Int16;\n public let f1 : UInt32;\n public let f2 : Int64;\n public let f3 : UInt32;\n public let f4 : Int8;\n public let f5 : UInt8;\n}\n\npublic func swiftRetFunc55() -> S55 {\n return S55(f0: -28051, f1: 1759912152, f2: 2038322238348454200, f3: 601094102, f4: 5, f5: 75)\n}\n\n@frozen\npublic struct S56\n{\n public let f0 : UInt64;\n public let f1 : Float;\n public let f2 : Int8;\n public let f3 : Int32;\n}\n\npublic func swiftRetFunc56() -> S56 {\n return S56(f0: 6313168909786453069, f1: 6254558, f2: 115, f3: 847834891)\n}\n\n@frozen\npublic struct S57\n{\n public let f0 : UInt;\n public let f1 : Int16;\n public let f2 : Int8;\n public let f3 : Int32;\n}\n\npublic func swiftRetFunc57() -> S57 {\n return S57(f0: 546304219852233452, f1: -27416, f2: 47, f3: 1094575684)\n}\n\n@frozen\npublic struct S58\n{\n public let f0 : UInt64;\n public let f1 : UInt64;\n}\n\npublic func swiftRetFunc58() -> S58 {\n return S58(f0: 4612004722568513699, f1: 2222525519606580195)\n}\n\n@frozen\npublic struct S59\n{\n public let f0 : Int8;\n public let f1 : UInt;\n public let f2 : Int;\n public let f3 : Int8;\n public let f4 : Int64;\n public let f5 : UInt8;\n}\n\npublic func swiftRetFunc59() -> S59 {\n return S59(f0: -92, f1: 7281011081566942937, f2: 8203439771560005792, f3: 103, f4: 1003386607251132236, f5: 6)\n}\n\n@frozen\npublic struct S60\n{\n public let f0 : UInt64;\n public let f1 : Int;\n}\n\npublic func swiftRetFunc60() -> S60 {\n return S60(f0: 6922353269487057763, f1: 103032455997325768)\n}\n\n@frozen\npublic struct S61_S0\n{\n public let f0 : Int64;\n public let f1 : Int64;\n public let f2 : Float;\n}\n\n@frozen\npublic struct S61\n{\n public let f0 : UInt64;\n public let f1 : S61_S0;\n public let f2 : Int16;\n public let f3 : Int32;\n}\n\npublic func swiftRetFunc61() -> S61 {\n return S61(f0: 3465845922566501572, f1: S61_S0(f0: 8266662359091888314, f1: 7511705648638703076, f2: 535470), f2: -5945, f3: 523043523)\n}\n\n@frozen\npublic struct S62_S0_S0\n{\n public let f0 : Int;\n}\n\n@frozen\npublic struct S62_S0\n{\n public let f0 : UInt16;\n public let f1 : Int16;\n public let f2 : UInt16;\n public let f3 : S62_S0_S0;\n}\n\n@frozen\npublic struct S62\n{\n public let f0 : S62_S0;\n public let f1 : Int;\n public let f2 : UInt16;\n}\n\npublic func swiftRetFunc62() -> S62 {\n return S62(f0: S62_S0(f0: 50789, f1: 30245, f2: 35063, f3: S62_S0_S0(f0: 3102684963408623932)), f1: 792877586576090769, f2: 24697)\n}\n\n@frozen\npublic struct S63\n{\n public let f0 : Double;\n public let f1 : Int;\n public let f2 : Double;\n public let f3 : Int8;\n public let f4 : Float;\n}\n\npublic func swiftRetFunc63() -> S63 {\n return S63(f0: 4097323000009314, f1: 4162427097168837193, f2: 140736061437152, f3: -59, f4: 7331757)\n}\n\n@frozen\npublic struct S64_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct S64\n{\n public let f0 : S64_S0;\n public let f1 : UInt64;\n public let f2 : Int64;\n public let f3 : Int;\n}\n\npublic func swiftRetFunc64() -> S64 {\n return S64(f0: S64_S0(f0: 2624461610177878495), f1: 5222178027019975511, f2: 9006949357929457355, f3: 7966680593035770540)\n}\n\n@frozen\npublic struct S65\n{\n public let f0 : Int;\n public let f1 : Double;\n public let f2 : UInt16;\n public let f3 : Int16;\n public let f4 : UInt8;\n public let f5 : Int32;\n public let f6 : UInt64;\n}\n\npublic func swiftRetFunc65() -> S65 {\n return S65(f0: 6080968957098434687, f1: 3067343828504927, f2: 56887, f3: 804, f4: 235, f5: 121742660, f6: 9218677163034827308)\n}\n\n@frozen\npublic struct S66\n{\n public let f0 : Int8;\n public let f1 : UInt64;\n public let f2 : UInt32;\n public let f3 : UInt64;\n public let f4 : UInt64;\n}\n\npublic func swiftRetFunc66() -> S66 {\n return S66(f0: -16, f1: 7967447403042597794, f2: 2029697750, f3: 4180031087394830849, f4: 5847795120921557969)\n}\n\n@frozen\npublic struct S67_S0\n{\n public let f0 : UInt64;\n}\n\n@frozen\npublic struct S67\n{\n public let f0 : S67_S0;\n public let f1 : UInt8;\n public let f2 : UInt16;\n public let f3 : UInt64;\n public let f4 : UInt64;\n public let f5 : Int8;\n}\n\npublic func swiftRetFunc67() -> S67 {\n return S67(f0: S67_S0(f0: 4844204675254434929), f1: 135, f2: 13969, f3: 4897129719050177731, f4: 7233638107485862921, f5: -11)\n}\n\n@frozen\npublic struct S68_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct S68\n{\n public let f0 : Int32;\n public let f1 : UInt64;\n public let f2 : UInt32;\n public let f3 : S68_S0;\n public let f4 : Int32;\n public let f5 : Int8;\n}\n\npublic func swiftRetFunc68() -> S68 {\n return S68(f0: 1708606840, f1: 1768121573985581212, f2: 1033319213, f3: S68_S0(f0: 2741322436867931), f4: 955320338, f5: 12)\n}\n\n@frozen\npublic struct S69\n{\n public let f0 : UInt32;\n}\n\npublic func swiftRetFunc69() -> S69 {\n return S69(f0: 2092746473)\n}\n\n@frozen\npublic struct S70\n{\n public let f0 : UInt8;\n public let f1 : Float;\n}\n\npublic func swiftRetFunc70() -> S70 {\n return S70(f0: 76, f1: 4138467)\n}\n\n@frozen\npublic struct S71_S0\n{\n public let f0 : Int8;\n public let f1 : UInt64;\n public let f2 : Int64;\n}\n\n@frozen\npublic struct S71\n{\n public let f0 : S71_S0;\n public let f1 : UInt8;\n public let f2 : UInt8;\n}\n\npublic func swiftRetFunc71() -> S71 {\n return S71(f0: S71_S0(f0: -98, f1: 8603744544763953916, f2: 8460721064583106347), f1: 10, f2: 88)\n}\n\n@frozen\npublic struct S72\n{\n public let f0 : UInt32;\n}\n\npublic func swiftRetFunc72() -> S72 {\n return S72(f0: 2021509367)\n}\n\n@frozen\npublic struct S73\n{\n public let f0 : Int;\n public let f1 : Int16;\n public let f2 : UInt64;\n public let f3 : Float;\n public let f4 : Int32;\n public let f5 : UInt;\n public let f6 : UInt;\n}\n\npublic func swiftRetFunc73() -> S73 {\n return S73(f0: 6222563427944465437, f1: 28721, f2: 1313300783845289148, f3: 6761, f4: 2074171265, f5: 6232209228889209160, f6: 1423931135184844265)\n}\n\n@frozen\npublic struct S74\n{\n public let f0 : Int16;\n public let f1 : Float;\n public let f2 : Double;\n public let f3 : UInt16;\n public let f4 : Int8;\n}\n\npublic func swiftRetFunc74() -> S74 {\n return S74(f0: 27115, f1: 1416098, f2: 4468576755457331, f3: 58864, f4: 81)\n}\n\n@frozen\npublic struct S75_S0_S0\n{\n public let f0 : Int8;\n}\n\n@frozen\npublic struct S75_S0\n{\n public let f0 : S75_S0_S0;\n public let f1 : UInt8;\n}\n\n@frozen\npublic struct S75\n{\n public let f0 : UInt64;\n public let f1 : S75_S0;\n public let f2 : UInt8;\n}\n\npublic func swiftRetFunc75() -> S75 {\n return S75(f0: 8532911974860912350, f1: S75_S0(f0: S75_S0_S0(f0: -60), f1: 66), f2: 200)\n}\n\n@frozen\npublic struct S76_S0_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct S76_S0\n{\n public let f0 : Int8;\n public let f1 : UInt64;\n public let f2 : S76_S0_S0;\n public let f3 : Double;\n}\n\n@frozen\npublic struct S76\n{\n public let f0 : UInt8;\n public let f1 : S76_S0;\n public let f2 : Double;\n}\n\npublic func swiftRetFunc76() -> S76 {\n return S76(f0: 69, f1: S76_S0(f0: -29, f1: 4872234474620951743, f2: S76_S0_S0(f0: 11036), f3: 585486652063917), f2: 2265391710186639)\n}\n\n@frozen\npublic struct S77\n{\n public let f0 : Int32;\n public let f1 : Int32;\n public let f2 : Int32;\n public let f3 : UInt32;\n public let f4 : Int16;\n}\n\npublic func swiftRetFunc77() -> S77 {\n return S77(f0: 4495211, f1: 1364377405, f2: 773989694, f3: 1121696315, f4: 7589)\n}\n\n@frozen\npublic struct S78\n{\n public let f0 : UInt32;\n public let f1 : UInt;\n}\n\npublic func swiftRetFunc78() -> S78 {\n return S78(f0: 1767839225, f1: 7917317019379224114)\n}\n\n@frozen\npublic struct S79_S0\n{\n public let f0 : Double;\n public let f1 : UInt32;\n public let f2 : Int32;\n}\n\n@frozen\npublic struct S79\n{\n public let f0 : S79_S0;\n public let f1 : UInt8;\n public let f2 : Double;\n}\n\npublic func swiftRetFunc79() -> S79 {\n return S79(f0: S79_S0(f0: 495074072703635, f1: 417605286, f2: 171326442), f1: 203, f2: 2976663235490421)\n}\n\n@frozen\npublic struct S80\n{\n public let f0 : Int32;\n public let f1 : Int16;\n public let f2 : Int8;\n}\n\npublic func swiftRetFunc80() -> S80 {\n return S80(f0: 999559959, f1: 19977, f2: -4)\n}\n\n@frozen\npublic struct S81_S0\n{\n public let f0 : UInt;\n}\n\n@frozen\npublic struct S81\n{\n public let f0 : Int32;\n public let f1 : S81_S0;\n public let f2 : Float;\n public let f3 : Int64;\n public let f4 : UInt32;\n public let f5 : UInt8;\n public let f6 : Int16;\n}\n\npublic func swiftRetFunc81() -> S81 {\n return S81(f0: 452603110, f1: S81_S0(f0: 6240652733420985265), f2: 6469988, f3: 5775316279348621124, f4: 1398033592, f5: 105, f6: 21937)\n}\n\n@frozen\npublic struct S82\n{\n public let f0 : Int;\n}\n\npublic func swiftRetFunc82() -> S82 {\n return S82(f0: 6454754584537364459)\n}\n\n@frozen\npublic struct S83\n{\n public let f0 : UInt64;\n public let f1 : UInt32;\n public let f2 : Float;\n public let f3 : UInt8;\n public let f4 : Float;\n}\n\npublic func swiftRetFunc83() -> S83 {\n return S83(f0: 2998238441521688907, f1: 9623946, f2: 2577885, f3: 156, f4: 6678807)\n}\n\n@frozen\npublic struct S84_S0\n{\n public let f0 : Int16;\n}\n\n@frozen\npublic struct S84\n{\n public let f0 : S84_S0;\n}\n\npublic func swiftRetFunc84() -> S84 {\n return S84(f0: S84_S0(f0: 16213))\n}\n\n@frozen\npublic struct S85_S0\n{\n public let f0 : Int16;\n public let f1 : Int8;\n}\n\n@frozen\npublic struct S85\n{\n public let f0 : Int64;\n public let f1 : UInt8;\n public let f2 : S85_S0;\n public let f3 : Float;\n public let f4 : Int;\n}\n\npublic func swiftRetFunc85() -> S85 {\n return S85(f0: 8858924985061791416, f1: 200, f2: S85_S0(f0: 4504, f1: 60), f3: 5572917, f4: 6546369836182556538)\n}\n\n@frozen\npublic struct S86\n{\n public let f0 : UInt16;\n public let f1 : Float;\n public let f2 : UInt32;\n}\n\npublic func swiftRetFunc86() -> S86 {\n return S86(f0: 22762, f1: 4672435, f2: 719927700)\n}\n\n@frozen\npublic struct S87\n{\n public let f0 : Int32;\n public let f1 : UInt;\n public let f2 : UInt64;\n}\n\npublic func swiftRetFunc87() -> S87 {\n return S87(f0: 361750184, f1: 4206825694012787823, f2: 2885153391732919282)\n}\n\n@frozen\npublic struct S88\n{\n public let f0 : UInt32;\n public let f1 : Int16;\n public let f2 : UInt32;\n}\n\npublic func swiftRetFunc88() -> S88 {\n return S88(f0: 2125094198, f1: -10705, f2: 182007583)\n}\n\n@frozen\npublic struct S89\n{\n public let f0 : UInt8;\n public let f1 : UInt32;\n public let f2 : Int32;\n public let f3 : Int8;\n public let f4 : Int64;\n}\n\npublic func swiftRetFunc89() -> S89 {\n return S89(f0: 175, f1: 1062985476, f2: 1019006263, f3: -22, f4: 6888877252788498422)\n}\n\n@frozen\npublic struct S90\n{\n public let f0 : UInt8;\n public let f1 : Int32;\n public let f2 : Int16;\n public let f3 : Int;\n public let f4 : UInt32;\n public let f5 : UInt32;\n public let f6 : Int64;\n}\n\npublic func swiftRetFunc90() -> S90 {\n return S90(f0: 221, f1: 225825436, f2: -26231, f3: 5122880520199505508, f4: 907657092, f5: 707089277, f6: 6091814344013414920)\n}\n\n@frozen\npublic struct S91\n{\n public let f0 : Double;\n public let f1 : Int8;\n public let f2 : Int8;\n public let f3 : UInt32;\n public let f4 : Int;\n public let f5 : Int8;\n public let f6 : Int16;\n}\n\npublic func swiftRetFunc91() -> S91 {\n return S91(f0: 3265110225161261, f1: 62, f2: -38, f3: 946023589, f4: 4109819715069879890, f5: -73, f6: 20363)\n}\n\n@frozen\npublic struct S92_S0\n{\n public let f0 : Float;\n public let f1 : Int64;\n}\n\n@frozen\npublic struct S92\n{\n public let f0 : Int64;\n public let f1 : UInt;\n public let f2 : S92_S0;\n public let f3 : Int32;\n public let f4 : Float;\n public let f5 : Float;\n}\n\npublic func swiftRetFunc92() -> S92 {\n return S92(f0: 3230438394207610137, f1: 3003396252681176136, f2: S92_S0(f0: 6494422, f1: 2971773224350614312), f3: 2063694141, f4: 3117041, f5: 1003760)\n}\n\n@frozen\npublic struct S93\n{\n public let f0 : Int;\n public let f1 : UInt8;\n public let f2 : UInt32;\n public let f3 : UInt32;\n public let f4 : UInt64;\n}\n\npublic func swiftRetFunc93() -> S93 {\n return S93(f0: 5170226481546239050, f1: 11, f2: 1120259582, f3: 1947849905, f4: 3690113387392112192)\n}\n\n@frozen\npublic struct S94\n{\n public let f0 : UInt16;\n public let f1 : Double;\n public let f2 : Int16;\n public let f3 : Double;\n public let f4 : UInt64;\n}\n\npublic func swiftRetFunc94() -> S94 {\n return S94(f0: 57111, f1: 1718940123307098, f2: -16145, f3: 1099321301986326, f4: 2972912419231960385)\n}\n\n@frozen\npublic struct S95_S0\n{\n public let f0 : Double;\n}\n\n@frozen\npublic struct S95\n{\n public let f0 : Int16;\n public let f1 : S95_S0;\n public let f2 : UInt64;\n}\n\npublic func swiftRetFunc95() -> S95 {\n return S95(f0: 12620, f1: S95_S0(f0: 3232445258308074), f2: 97365157264460373)\n}\n\n@frozen\npublic struct S96\n{\n public let f0 : Int8;\n public let f1 : Double;\n public let f2 : UInt64;\n public let f3 : UInt64;\n public let f4 : Int32;\n public let f5 : Int64;\n}\n\npublic func swiftRetFunc96() -> S96 {\n return S96(f0: 3, f1: 242355060906873, f2: 3087879465791321798, f3: 7363229136420263380, f4: 46853328, f5: 4148307028758236491)\n}\n\n@frozen\npublic struct S97\n{\n public let f0 : UInt16;\n public let f1 : Int32;\n public let f2 : UInt16;\n public let f3 : UInt32;\n}\n\npublic func swiftRetFunc97() -> S97 {\n return S97(f0: 10651, f1: 2068379463, f2: 57307, f3: 329271020)\n}\n\n@frozen\npublic struct S98\n{\n public let f0 : Double;\n public let f1 : Int32;\n public let f2 : Int64;\n public let f3 : Int;\n public let f4 : Float;\n public let f5 : Double;\n}\n\npublic func swiftRetFunc98() -> S98 {\n return S98(f0: 2250389231883613, f1: 1755058358, f2: 6686142382639170849, f3: 6456632014163315773, f4: 2818253, f5: 1085859434505817)\n}\n\n@frozen\npublic struct S99_S0\n{\n public let f0 : Int32;\n}\n\n@frozen\npublic struct S99\n{\n public let f0 : S99_S0;\n public let f1 : Float;\n}\n\npublic func swiftRetFunc99() -> S99 {\n return S99(f0: S99_S0(f0: 1117297545), f1: 1539294)\n}\n\n
dataset_sample\swift\dotnet_runtime\src\tests\Interop\SwiftRetAbiStress\SwiftRetAbiStress.swift
SwiftRetAbiStress.swift
Swift
31,267
0.95
0
0.001464
node-utils
973
2024-07-27T00:27:08.238266
BSD-3-Clause
true
1e0fcca1ace9581706c6ad334c835b3e
// Licensed to the .NET Foundation under one or more agreements.\n// The .NET Foundation licenses this file to you under the MIT license.\n\npublic class SelfLibrary {\n public var number: Int\n public static let shared = SelfLibrary(number: 42)\n\n private init(number: Int) {\n self.number = number\n }\n\n public func getMagicNumber() -> Int {\n return self.number\n }\n\n public static func getInstance() -> UnsafeMutableRawPointer {\n let unmanagedInstance = Unmanaged.passUnretained(shared)\n let pointer = unmanagedInstance.toOpaque()\n return pointer\n }\n}\n\n@frozen\npublic struct FrozenEnregisteredStruct\n{\n let a : Int64;\n let b : Int64;\n\n public func sum() -> Int64 {\n return a + b\n }\n\n public func sumWithExtraArgs(c: Float, d: Float) -> Float {\n return Float(a + b) + c + d\n }\n}\n\n@frozen\npublic struct FrozenNonEnregisteredStruct {\n let a : Int64;\n let b : Int64;\n let c : Int64;\n let d : Int64;\n let e : Int64;\n\n public func sum() -> Int64 {\n return a + b + c + d + e\n }\n\n public func sumWithExtraArgs(f: Float, g: Float) -> Float {\n return Float(a + b + c + d + e) + f + g\n }\n}
dataset_sample\swift\dotnet_runtime\src\tests\Interop\SwiftSelfContext\SwiftSelfContext.swift
SwiftSelfContext.swift
Swift
1,204
0.95
0.019231
0.046512
vue-tools
630
2025-07-06T10:23:51.318314
Apache-2.0
true
e9548ff4dfa34168922e1b56c40c3a40
/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport React\nimport ReactAppDependencyProvider\nimport React_RCTAppDelegate\nimport UIKit\n\n@main\nclass AppDelegate: UIResponder, UIApplicationDelegate {\n var window: UIWindow?\n\n var reactNativeDelegate: ReactNativeDelegate?\n var reactNativeFactory: RCTReactNativeFactory?\n\n func application(\n _ application: UIApplication,\n didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil\n ) -> Bool {\n let delegate = ReactNativeDelegate()\n let factory = RCTReactNativeFactory(delegate: delegate)\n delegate.dependencyProvider = RCTAppDependencyProvider()\n\n reactNativeDelegate = delegate\n reactNativeFactory = factory\n\n window = UIWindow(frame: UIScreen.main.bounds)\n\n factory.startReactNative(\n withModuleName: "HelloWorld",\n in: window,\n launchOptions: launchOptions\n )\n\n return true\n }\n}\n\nclass ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {\n override func sourceURL(for bridge: RCTBridge) -> URL? {\n self.bundleURL()\n }\n\n override func bundleURL() -> URL? {\n #if DEBUG\n RCTBundleURLProvider.sharedSettings().jsBundleURL(forBundleRoot: "index")\n #else\n Bundle.main.url(forResource: "main", withExtension: "jsbundle")\n #endif\n }\n}\n
dataset_sample\swift\facebook_react-native\packages\helloworld\ios\HelloWorld\AppDelegate.swift
AppDelegate.swift
Swift
1,436
0.95
0.072727
0.2
python-kit
297
2025-02-02T21:18:46.117997
MIT
false
3bd3a0ca531f7cda6a15a8fb5fe79e36
// swift-tools-version: 6.0\n/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport PackageDescription\n\nlet react = "React"\n\nlet cxxRNDepHeaderSearchPath: (Int) -> CXXSetting = {\n let prefix = (0..<$0).map { _ in "../" }.joined(separator: "")\n return .headerSearchPath("\(prefix)third-party/ReactNativeDependencies.xcframework/Headers")\n}\nlet cRNDepHeaderSearchPath: (Int) -> CSetting = {\n let prefix = (0..<$0).map { _ in "../" }.joined(separator: "")\n return .headerSearchPath("\(prefix)third-party/ReactNativeDependencies.xcframework/Headers")\n}\n\nlet package = Package(\n name: react,\n products: [\n .library(\n name: react,\n type: .dynamic,\n targets: [.reactDebug, .jsi, .logger, .mapbuffer]\n )\n ],\n targets: [\n .reactNativeTarget(\n name: .reactDebug,\n dependencies: [.reactNativeDependencies],\n path: "ReactCommon/react/debug",\n publicHeadersPath: "."\n ),\n .reactNativeTarget(\n name: .jsi,\n dependencies: [.reactNativeDependencies],\n path: "ReactCommon/jsi",\n extraExcludes: ["jsi/CMakeLists.txt", "jsi/test/testlib.h", "jsi/test/testlib.cpp"],\n sources: ["jsi"],\n publicHeadersPath: "jsi/",\n extraCSettings: [.headerSearchPath(".")],\n extraCxxSettings: [.headerSearchPath(".")]\n ),\n .reactNativeTarget(\n name: .logger,\n dependencies: [.reactNativeDependencies, .jsi],\n path: "ReactCommon/logger",\n publicHeadersPath: "."\n ),\n .reactNativeTarget(\n name: .mapbuffer,\n dependencies: [.reactNativeDependencies, .reactDebug],\n path: "ReactCommon/react/renderer/mapbuffer",\n extraExcludes: ["tests/MapBufferTest.cpp"],\n publicHeadersPath: ".",\n extraCSettings: [.headerSearchPath("../../..")],\n extraCxxSettings: [.headerSearchPath("../../..")]\n ),\n .binaryTarget(\n name: .reactNativeDependencies,\n path: "third-party/ReactNativeDependencies.xcframework"\n ),\n ]\n)\n\nextension String {\n static let reactDebug = "React-debug"\n static let jsi = "React-jsi"\n static let logger = "React-logger"\n static let mapbuffer = "React-Mapbuffer"\n\n static let reactNativeDependencies = "ReactNativeDependencies"\n}\n\nfunc defaultExcludeFor(module: String) -> [String] {\n return ["BUCK", "CMakeLists.txt", "\(module).podspec"]\n}\n\nextension Target {\n static func reactNativeTarget(\n name: String,\n dependencies: [String],\n path: String,\n extraExcludes: [String] = [],\n sources: [String]? = nil,\n publicHeadersPath: String? = nil,\n extraCSettings: [CSetting] = [],\n extraCxxSettings: [CXXSetting] = []\n ) -> Target {\n let dependencies = dependencies.map { Dependency.byNameItem(name: $0, condition: nil) }\n let excludes = defaultExcludeFor(module: .logger) + extraExcludes\n let numOfSlash = path.count { $0 == "/" }\n let cSettings = [cRNDepHeaderSearchPath(numOfSlash + 1)] + extraCSettings\n let cxxSettings = [cxxRNDepHeaderSearchPath(numOfSlash + 1), .unsafeFlags(["-std=c++20"])] + extraCxxSettings\n\n return .target(\n name: name,\n dependencies: dependencies,\n path: path,\n exclude: excludes,\n sources: sources,\n publicHeadersPath: publicHeadersPath,\n cSettings: cSettings,\n cxxSettings: cxxSettings\n )\n }\n}\n
dataset_sample\swift\facebook_react-native\packages\react-native\Package.swift
Package.swift
Swift
3,407
0.95
0
0.068627
node-utils
544
2024-06-07T14:46:05.458744
GPL-3.0
false
de6229b62e9860fc07418e7d925a7a0d
// swift-tools-version: 6.0\n/*\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport PackageDescription\n\nlet package = Package(\n name: "ReactNativeDependencies",\n products: [\n // Products define the executables and libraries a package produces, making them visible to other packages.\n .library(\n name: "ReactNativeDependencies",\n targets: ["ReactNativeDependencies"]\n )\n ],\n targets: [\n .binaryTarget(\n name: "ReactNativeDependencies",\n path: "../../third-party/ReactNativeDependencies.xcframework" // this will be replaced by the URL of the xcframework after we publish it on maven\n )\n ]\n)\n
dataset_sample\swift\facebook_react-native\packages\react-native\Libraries\ReactNativeDependencies\Package.swift
Package.swift
Swift
772
0.95
0
0.333333
awesome-app
34
2023-08-17T18:22:49.320284
BSD-3-Clause
false
2270f26cf90501e60aa6d0649f6ccd6c
// swift-tools-version:4.0\n// The swift-tools-version declares the minimum version of Swift required to build this package.\nimport PackageDescription\n\nlet package = Package(\n name: "Fastlane",\n products: [\n .library(name: "Fastlane", targets: ["Fastlane"])\n ],\n dependencies: [\n .package(url: "https://github.com/kareman/SwiftShell", .upToNextMajor(from: "5.1.0"))\n ],\n targets: [\n .target(\n name: "Fastlane",\n dependencies: ["SwiftShell"],\n path: "./fastlane/swift",\n exclude: ["Actions.swift", "Plugins.swift", "main.swift", "formatting", "FastlaneSwiftRunner"]\n ),\n ],\n swiftLanguageVersions: [4]\n)\n \n
dataset_sample\swift\fastlane_fastlane\Package.swift
Package.swift
Swift
700
0.95
0
0.095238
vue-tools
852
2024-11-28T17:28:29.936711
GPL-3.0
false
120f24c6c7882d303a82c59a7f25e3e3
// Protocol Buffers - Google's data interchange format\n// Copyright 2024 Google Inc. All rights reserved.\n//\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file or at\n// https://developers.google.com/open-source/licenses/bsd\n\n/// Swift specific additions to simplify usage.\nextension GPBUnknownField {\n\n /// The value of the field in a type-safe manner.\n public enum Value: Equatable {\n case varint(UInt64)\n case fixed32(UInt32)\n case fixed64(UInt64)\n case lengthDelimited(Data) // length prefixed\n case group(GPBUnknownFields) // tag delimited\n }\n\n /// The value of the field in a type-safe manner.\n public var value: Value {\n switch type {\n case .varint:\n return .varint(varint)\n case .fixed32:\n return .fixed32(fixed32)\n case .fixed64:\n return .fixed64(fixed64)\n case .lengthDelimited:\n return .lengthDelimited(lengthDelimited)\n case .group:\n return .group(group)\n @unknown default:\n fatalError("Internal error: Unknown field type: \(type)")\n }\n }\n\n}\n
dataset_sample\swift\google_protobuf\objectivec\GPBUnknownField+Additions.swift
GPBUnknownField+Additions.swift
Swift
1,083
0.8
0.026316
0.264706
vue-tools
425
2024-05-18T02:18:45.209868
MIT
false
4e56736717e2aff9c0e2e608dc76b570
// Protocol Buffers - Google's data interchange format\n// Copyright 2024 Google Inc. All rights reserved.\n//\n// Use of this source code is governed by a BSD-style\n// license that can be found in the LICENSE file or at\n// https://developers.google.com/open-source/licenses/bsd\n\n/// Swift specific additions to simplify usage.\nextension GPBUnknownFields {\n\n /// Fetches the first varint for the given field number.\n public func firstVarint(_ fieldNumber: Int32) -> UInt64? {\n var value: UInt64 = 0\n guard getFirst(fieldNumber, varint: &value) else { return nil }\n return value\n }\n\n /// Fetches the first fixed32 for the given field number.\n public func firstFixed32(_ fieldNumber: Int32) -> UInt32? {\n var value: UInt32 = 0\n guard getFirst(fieldNumber, fixed32: &value) else { return nil }\n return value\n }\n\n /// Fetches the first fixed64 for the given field number.\n public func firstFixed64(_ fieldNumber: Int32) -> UInt64? {\n var value: UInt64 = 0\n guard getFirst(fieldNumber, fixed64: &value) else { return nil }\n return value\n }\n\n}\n\n/// Map the `NSFastEnumeration` support to a Swift `Sequence`.\nextension GPBUnknownFields: Sequence {\n public typealias Element = GPBUnknownField\n\n public struct Iterator: IteratorProtocol {\n var iter: NSFastEnumerationIterator\n\n init(_ fields: NSFastEnumeration) {\n self.iter = NSFastEnumerationIterator(fields)\n }\n\n public mutating func next() -> GPBUnknownField? {\n return iter.next() as? GPBUnknownField\n }\n }\n\n public func makeIterator() -> Iterator {\n return Iterator(self)\n }\n}\n
dataset_sample\swift\google_protobuf\objectivec\GPBUnknownFields+Additions.swift
GPBUnknownFields+Additions.swift
Swift
1,591
0.8
0.056604
0.255814
vue-tools
540
2025-06-10T02:47:19.727263
BSD-3-Clause
false
47c47d69c1ebb8239a28db4309648b94
#!/usr/bin/swift\n\nimport Foundation\n\nstruct SwiftErr: TextOutputStream {\n public static var stream = SwiftErr()\n\n mutating func write(_ string: String) {\n fputs(string, stderr)\n }\n}\n\nguard CommandLine.arguments.count >= 3 else {\n print("Usage: swift copy-xattrs.swift <source> <dest>")\n exit(2)\n}\n\nCommandLine.arguments[2].withCString { destinationPath in\n let destinationNamesLength = listxattr(destinationPath, nil, 0, 0)\n if destinationNamesLength == -1 {\n print("listxattr for destination failed: \(errno)", to: &SwiftErr.stream)\n exit(1)\n }\n let destinationNamesBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: destinationNamesLength)\n if listxattr(destinationPath, destinationNamesBuffer, destinationNamesLength, 0) != destinationNamesLength {\n print("Attributes changed during system call", to: &SwiftErr.stream)\n exit(1)\n }\n\n var destinationNamesIndex = 0\n while destinationNamesIndex < destinationNamesLength {\n let attribute = destinationNamesBuffer + destinationNamesIndex\n\n if removexattr(destinationPath, attribute, 0) != 0 {\n print("removexattr for \(String(cString: attribute)) failed: \(errno)", to: &SwiftErr.stream)\n exit(1)\n }\n\n destinationNamesIndex += strlen(attribute) + 1\n }\n destinationNamesBuffer.deallocate()\n\n CommandLine.arguments[1].withCString { sourcePath in\n let sourceNamesLength = listxattr(sourcePath, nil, 0, 0)\n if sourceNamesLength == -1 {\n print("listxattr for source failed: \(errno)", to: &SwiftErr.stream)\n exit(1)\n }\n let sourceNamesBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: sourceNamesLength)\n if listxattr(sourcePath, sourceNamesBuffer, sourceNamesLength, 0) != sourceNamesLength {\n print("Attributes changed during system call", to: &SwiftErr.stream)\n exit(1)\n }\n\n var sourceNamesIndex = 0\n while sourceNamesIndex < sourceNamesLength {\n let attribute = sourceNamesBuffer + sourceNamesIndex\n\n let valueLength = getxattr(sourcePath, attribute, nil, 0, 0, 0)\n if valueLength == -1 {\n print("getxattr for \(String(cString: attribute)) failed: \(errno)", to: &SwiftErr.stream)\n exit(1)\n }\n let valueBuffer = UnsafeMutablePointer<Int8>.allocate(capacity: valueLength)\n if getxattr(sourcePath, attribute, valueBuffer, valueLength, 0, 0) != valueLength {\n print("Attributes changed during system call", to: &SwiftErr.stream)\n exit(1)\n }\n\n if setxattr(destinationPath, attribute, valueBuffer, valueLength, 0, 0) != 0 {\n print("setxattr for \(String(cString: attribute)) failed: \(errno)", to: &SwiftErr.stream)\n exit(1)\n }\n\n valueBuffer.deallocate()\n sourceNamesIndex += strlen(attribute) + 1\n }\n sourceNamesBuffer.deallocate()\n }\n}\n
dataset_sample\swift\Homebrew_brew\Library\Homebrew\cask\utils\copy-xattrs.swift
copy-xattrs.swift
Swift
3,050
0.95
0.1875
0.014925
awesome-app
951
2024-08-10T16:33:27.244886
GPL-3.0
false
678fd3834006a9b2d8acdc9d331ff20d
#!/usr/bin/swift\n\nimport Foundation\n\nstruct SwiftErr: TextOutputStream {\n public static var stream = SwiftErr()\n\n mutating func write(_ string: String) {\n fputs(string, stderr)\n }\n}\n\n// TODO: tell which arguments have to be provided\nguard CommandLine.arguments.count >= 4 else {\n exit(2)\n}\n\nvar dataLocationURL = URL(fileURLWithPath: CommandLine.arguments[1])\n\nlet quarantineProperties: [String: Any] = [\n kLSQuarantineAgentNameKey as String: "Homebrew Cask",\n kLSQuarantineTypeKey as String: kLSQuarantineTypeWebDownload,\n kLSQuarantineDataURLKey as String: CommandLine.arguments[2],\n kLSQuarantineOriginURLKey as String: CommandLine.arguments[3]\n]\n\n// Check for if the data location URL is reachable\ndo {\n let isDataLocationURLReachable = try dataLocationURL.checkResourceIsReachable()\n guard isDataLocationURLReachable else {\n print("URL \(dataLocationURL.path) is not reachable. Not proceeding.", to: &SwiftErr.stream)\n exit(1)\n }\n} catch {\n print(error.localizedDescription, to: &SwiftErr.stream)\n exit(1)\n}\n\n// Quarantine the file\ndo {\n var resourceValues = URLResourceValues()\n resourceValues.quarantineProperties = quarantineProperties\n try dataLocationURL.setResourceValues(resourceValues)\n} catch {\n print(error.localizedDescription, to: &SwiftErr.stream)\n exit(1)\n}\n
dataset_sample\swift\Homebrew_brew\Library\Homebrew\cask\utils\quarantine.swift
quarantine.swift
Swift
1,352
0.95
0.12766
0.102564
vue-tools
730
2023-10-08T17:18:02.793334
GPL-3.0
false
3f541949bba1156a3514ff6a94bdefcc
#!/usr/bin/swift\n\nimport Foundation\n\nlet manager = FileManager.default\n\nvar success = true\n\n// The command line arguments given but without the script's name\nlet CMDLineArgs = Array(CommandLine.arguments.dropFirst())\n\nvar trashed: [String] = []\nvar untrashable: [String] = []\nfor item in CMDLineArgs {\n do {\n let url = URL(fileURLWithPath: item)\n var trashedPath: NSURL!\n try manager.trashItem(at: url, resultingItemURL: &trashedPath)\n trashed.append((trashedPath as URL).path)\n success = true\n } catch {\n untrashable.append(item)\n success = false\n }\n}\n\nprint(trashed.joined(separator: ":"))\nprint(untrashable.joined(separator: ":"), terminator: "")\n\nguard success else {\n exit(1)\n}\n
dataset_sample\swift\Homebrew_brew\Library\Homebrew\cask\utils\trash.swift
trash.swift
Swift
744
0.95
0.09375
0.08
python-kit
385
2023-10-15T07:50:20.202255
GPL-3.0
false
99b52cc22c6646d54d13e68779ae384c
//\n// Emojione.swift\n//\n// Created by Rafael Kellermann Streit (@rafaelks) on 10/10/16.\n// Copyright (c) 2016.\n//\n\nimport Foundation\n\nstruct Emojione {\n static let values = [\n "100": "\u{0001f4af}",\n "1234": "\u{0001f522}",\n "grinning": "\u{0001f600}",\n "grimacing": "\u{0001f62c}",\n "grin": "\u{0001f601}",\n "joy": "\u{0001f602}",\n "smiley": "\u{0001f603}",\n "smile": "\u{0001f604}",\n "sweat_smile": "\u{0001f605}",\n "laughing": "\u{0001f606}",\n "innocent": "\u{0001f607}",\n "wink": "\u{0001f609}",\n "blush": "\u{0001f60a}",\n "slight_smile": "\u{0001f642}",\n "upside_down": "\u{0001f643}",\n "relaxed": "\u{0000263a}",\n "yum": "\u{0001f60b}",\n "relieved": "\u{0001f60c}",\n "heart_eyes": "\u{0001f60d}",\n "kissing_heart": "\u{0001f618}",\n "kissing": "\u{0001f617}",\n "kissing_smiling_eyes": "\u{0001f619}",\n "kissing_closed_eyes": "\u{0001f61a}",\n "stuck_out_tongue_winking_eye": "\u{0001f61c}",\n "stuck_out_tongue_closed_eyes": "\u{0001f61d}",\n "stuck_out_tongue": "\u{0001f61b}",\n "money_mouth": "\u{0001f911}",\n "nerd": "\u{0001f913}",\n "sunglasses": "\u{0001f60e}",\n "hugging": "\u{0001f917}",\n "smirk": "\u{0001f60f}",\n "no_mouth": "\u{0001f636}",\n "neutral_face": "\u{0001f610}",\n "expressionless": "\u{0001f611}",\n "unamused": "\u{0001f612}",\n "rolling_eyes": "\u{0001f644}",\n "thinking": "\u{0001f914}",\n "flushed": "\u{0001f633}",\n "disappointed": "\u{0001f61e}",\n "worried": "\u{0001f61f}",\n "angry": "\u{0001f620}",\n "rage": "\u{0001f621}",\n "pensive": "\u{0001f614}",\n "confused": "\u{0001f615}",\n "slight_frown": "\u{0001f641}",\n "frowning2": "\u{00002639}",\n "persevere": "\u{0001f623}",\n "confounded": "\u{0001f616}",\n "tired_face": "\u{0001f62b}",\n "weary": "\u{0001f629}",\n "triumph": "\u{0001f624}",\n "open_mouth": "\u{0001f62e}",\n "scream": "\u{0001f631}",\n "fearful": "\u{0001f628}",\n "cold_sweat": "\u{0001f630}",\n "hushed": "\u{0001f62f}",\n "frowning": "\u{0001f626}",\n "anguished": "\u{0001f627}",\n "cry": "\u{0001f622}",\n "disappointed_relieved": "\u{0001f625}",\n "sleepy": "\u{0001f62a}",\n "sweat": "\u{0001f613}",\n "sob": "\u{0001f62d}",\n "dizzy_face": "\u{0001f635}",\n "astonished": "\u{0001f632}",\n "zipper_mouth": "\u{0001f910}",\n "mask": "\u{0001f637}",\n "thermometer_face": "\u{0001f912}",\n "head_bandage": "\u{0001f915}",\n "sleeping": "\u{0001f634}",\n "zzz": "\u{0001f4a4}",\n "poop": "\u{0001f4a9}",\n "smiling_imp": "\u{0001f608}",\n "imp": "\u{0001f47f}",\n "japanese_ogre": "\u{0001f479}",\n "japanese_goblin": "\u{0001f47a}",\n "skull": "\u{0001f480}",\n "ghost": "\u{0001f47b}",\n "alien": "\u{0001f47d}",\n "robot": "\u{0001f916}",\n "smiley_cat": "\u{0001f63a}",\n "smile_cat": "\u{0001f638}",\n "joy_cat": "\u{0001f639}",\n "heart_eyes_cat": "\u{0001f63b}",\n "smirk_cat": "\u{0001f63c}",\n "kissing_cat": "\u{0001f63d}",\n "scream_cat": "\u{0001f640}",\n "crying_cat_face": "\u{0001f63f}",\n "pouting_cat": "\u{0001f63e}",\n "raised_hands": "\u{0001f64c}",\n "clap": "\u{0001f44f}",\n "wave": "\u{0001f44b}",\n "thumbsup": "\u{0001f44d}",\n "thumbsdown": "\u{0001f44e}",\n "punch": "\u{0001f44a}",\n "fist": "\u{0000270a}",\n "v": "\u{0000270c}",\n "ok_hand": "\u{0001f44c}",\n "raised_hand": "\u{0000270b}",\n "open_hands": "\u{0001f450}",\n "muscle": "\u{0001f4aa}",\n "pray": "\u{0001f64f}",\n "point_up": "\u{0000261d}",\n "point_up_2": "\u{0001f446}",\n "point_down": "\u{0001f447}",\n "point_left": "\u{0001f448}",\n "point_right": "\u{0001f449}",\n "middle_finger": "\u{0001f595}",\n "hand_splayed": "\u{0001f590}",\n "metal": "\u{0001f918}",\n "vulcan": "\u{0001f596}",\n "writing_hand": "\u{0000270d}",\n "nail_care": "\u{0001f485}",\n "lips": "\u{0001f444}",\n "tongue": "\u{0001f445}",\n "ear": "\u{0001f442}",\n "nose": "\u{0001f443}",\n "eye": "\u{0001f441}",\n "eyes": "\u{0001f440}",\n "bust_in_silhouette": "\u{0001f464}",\n "busts_in_silhouette": "\u{0001f465}",\n "speaking_head": "\u{0001f5e3}",\n "baby": "\u{0001f476}",\n "boy": "\u{0001f466}",\n "girl": "\u{0001f467}",\n "man": "\u{0001f468}",\n "woman": "\u{0001f469}",\n "person_with_blond_hair": "\u{0001f471}",\n "older_man": "\u{0001f474}",\n "older_woman": "\u{0001f475}",\n "man_with_gua_pi_mao": "\u{0001f472}",\n "man_with_turban": "\u{0001f473}",\n "cop": "\u{0001f46e}",\n "construction_worker": "\u{0001f477}",\n "guardsman": "\u{0001f482}",\n "spy": "\u{0001f575}",\n "santa": "\u{0001f385}",\n "angel": "\u{0001f47c}",\n "princess": "\u{0001f478}",\n "bride_with_veil": "\u{0001f470}",\n "walking": "\u{0001f6b6}",\n "runner": "\u{0001f3c3}",\n "dancer": "\u{0001f483}",\n "dancers": "\u{0001f46f}",\n "couple": "\u{0001f46b}",\n "two_men_holding_hands": "\u{0001f46c}",\n "two_women_holding_hands": "\u{0001f46d}",\n "bow": "\u{0001f647}",\n "information_desk_person": "\u{0001f481}",\n "no_good": "\u{0001f645}",\n "ok_woman": "\u{0001f646}",\n "raising_hand": "\u{0001f64b}",\n "person_with_pouting_face": "\u{0001f64e}",\n "person_frowning": "\u{0001f64d}",\n "haircut": "\u{0001f487}",\n "massage": "\u{0001f486}",\n "couple_with_heart": "\u{0001f491}",\n "couple_ww": "\u{0001f469}\u{00002764}\u{0001f469}",\n "couple_mm": "\u{0001f468}\u{00002764}\u{0001f468}",\n "couplekiss": "\u{0001f48f}",\n "kiss_ww": "\u{0001f469}\u{00002764}\u{0001f48b}\u{0001f469}",\n "kiss_mm": "\u{0001f468}\u{00002764}\u{0001f48b}\u{0001f468}",\n "family": "\u{0001f46a}",\n "family_mwg": "\u{0001f468}\u{0001f469}\u{0001f467}",\n "family_mwgb": "\u{0001f468}\u{0001f469}\u{0001f467}\u{0001f466}",\n "family_mwbb": "\u{0001f468}\u{0001f469}\u{0001f466}\u{0001f466}",\n "family_mwgg": "\u{0001f468}\u{0001f469}\u{0001f467}\u{0001f467}",\n "family_wwb": "\u{0001f469}\u{0001f469}\u{0001f466}",\n "family_wwg": "\u{0001f469}\u{0001f469}\u{0001f467}",\n "family_wwgb": "\u{0001f469}\u{0001f469}\u{0001f467}\u{0001f466}",\n "family_wwbb": "\u{0001f469}\u{0001f469}\u{0001f466}\u{0001f466}",\n "family_wwgg": "\u{0001f469}\u{0001f469}\u{0001f467}\u{0001f467}",\n "family_mmb": "\u{0001f468}\u{0001f468}\u{0001f466}",\n "family_mmg": "\u{0001f468}\u{0001f468}\u{0001f467}",\n "family_mmgb": "\u{0001f468}\u{0001f468}\u{0001f467}\u{0001f466}",\n "family_mmbb": "\u{0001f468}\u{0001f468}\u{0001f466}\u{0001f466}",\n "family_mmgg": "\u{0001f468}\u{0001f468}\u{0001f467}\u{0001f467}",\n "womans_clothes": "\u{0001f45a}",\n "shirt": "\u{0001f455}",\n "jeans": "\u{0001f456}",\n "necktie": "\u{0001f454}",\n "dress": "\u{0001f457}",\n "bikini": "\u{0001f459}",\n "kimono": "\u{0001f458}",\n "lipstick": "\u{0001f484}",\n "kiss": "\u{0001f48b}",\n "footprints": "\u{0001f463}",\n "high_heel": "\u{0001f460}",\n "sandal": "\u{0001f461}",\n "boot": "\u{0001f462}",\n "mans_shoe": "\u{0001f45e}",\n "athletic_shoe": "\u{0001f45f}",\n "womans_hat": "\u{0001f452}",\n "tophat": "\u{0001f3a9}",\n "helmet_with_cross": "\u{000026d1}",\n "mortar_board": "\u{0001f393}",\n "crown": "\u{0001f451}",\n "school_satchel": "\u{0001f392}",\n "pouch": "\u{0001f45d}",\n "purse": "\u{0001f45b}",\n "handbag": "\u{0001f45c}",\n "briefcase": "\u{0001f4bc}",\n "eyeglasses": "\u{0001f453}",\n "dark_sunglasses": "\u{0001f576}",\n "ring": "\u{0001f48d}",\n "closed_umbrella": "\u{0001f302}",\n "dog": "\u{0001f436}",\n "cat": "\u{0001f431}",\n "mouse": "\u{0001f42d}",\n "hamster": "\u{0001f439}",\n "rabbit": "\u{0001f430}",\n "bear": "\u{0001f43b}",\n "panda_face": "\u{0001f43c}",\n "koala": "\u{0001f428}",\n "tiger": "\u{0001f42f}",\n "lion_face": "\u{0001f981}",\n "cow": "\u{0001f42e}",\n "pig": "\u{0001f437}",\n "pig_nose": "\u{0001f43d}",\n "frog": "\u{0001f438}",\n "octopus": "\u{0001f419}",\n "monkey_face": "\u{0001f435}",\n "see_no_evil": "\u{0001f648}",\n "hear_no_evil": "\u{0001f649}",\n "speak_no_evil": "\u{0001f64a}",\n "monkey": "\u{0001f412}",\n "chicken": "\u{0001f414}",\n "penguin": "\u{0001f427}",\n "bird": "\u{0001f426}",\n "baby_chick": "\u{0001f424}",\n "hatching_chick": "\u{0001f423}",\n "hatched_chick": "\u{0001f425}",\n "wolf": "\u{0001f43a}",\n "boar": "\u{0001f417}",\n "horse": "\u{0001f434}",\n "unicorn": "\u{0001f984}",\n "bee": "\u{0001f41d}",\n "bug": "\u{0001f41b}",\n "snail": "\u{0001f40c}",\n "beetle": "\u{0001f41e}",\n "ant": "\u{0001f41c}",\n "spider": "\u{0001f577}",\n "scorpion": "\u{0001f982}",\n "crab": "\u{0001f980}",\n "snake": "\u{0001f40d}",\n "turtle": "\u{0001f422}",\n "tropical_fish": "\u{0001f420}",\n "fish": "\u{0001f41f}",\n "blowfish": "\u{0001f421}",\n "dolphin": "\u{0001f42c}",\n "whale": "\u{0001f433}",\n "whale2": "\u{0001f40b}",\n "crocodile": "\u{0001f40a}",\n "leopard": "\u{0001f406}",\n "tiger2": "\u{0001f405}",\n "water_buffalo": "\u{0001f403}",\n "ox": "\u{0001f402}",\n "cow2": "\u{0001f404}",\n "dromedary_camel": "\u{0001f42a}",\n "camel": "\u{0001f42b}",\n "elephant": "\u{0001f418}",\n "goat": "\u{0001f410}",\n "ram": "\u{0001f40f}",\n "sheep": "\u{0001f411}",\n "racehorse": "\u{0001f40e}",\n "pig2": "\u{0001f416}",\n "rat": "\u{0001f400}",\n "mouse2": "\u{0001f401}",\n "rooster": "\u{0001f413}",\n "turkey": "\u{0001f983}",\n "dove": "\u{0001f54a}",\n "dog2": "\u{0001f415}",\n "poodle": "\u{0001f429}",\n "cat2": "\u{0001f408}",\n "rabbit2": "\u{0001f407}",\n "chipmunk": "\u{0001f43f}",\n "feet": "\u{0001f43e}",\n "dragon": "\u{0001f409}",\n "dragon_face": "\u{0001f432}",\n "cactus": "\u{0001f335}",\n "christmas_tree": "\u{0001f384}",\n "evergreen_tree": "\u{0001f332}",\n "deciduous_tree": "\u{0001f333}",\n "palm_tree": "\u{0001f334}",\n "seedling": "\u{0001f331}",\n "herb": "\u{0001f33f}",\n "shamrock": "\u{00002618}",\n "four_leaf_clover": "\u{0001f340}",\n "bamboo": "\u{0001f38d}",\n "tanabata_tree": "\u{0001f38b}",\n "leaves": "\u{0001f343}",\n "fallen_leaf": "\u{0001f342}",\n "maple_leaf": "\u{0001f341}",\n "ear_of_rice": "\u{0001f33e}",\n "hibiscus": "\u{0001f33a}",\n "sunflower": "\u{0001f33b}",\n "rose": "\u{0001f339}",\n "tulip": "\u{0001f337}",\n "blossom": "\u{0001f33c}",\n "cherry_blossom": "\u{0001f338}",\n "bouquet": "\u{0001f490}",\n "mushroom": "\u{0001f344}",\n "chestnut": "\u{0001f330}",\n "jack_o_lantern": "\u{0001f383}",\n "shell": "\u{0001f41a}",\n "spider_web": "\u{0001f578}",\n "earth_americas": "\u{0001f30e}",\n "earth_africa": "\u{0001f30d}",\n "earth_asia": "\u{0001f30f}",\n "full_moon": "\u{0001f315}",\n "waning_gibbous_moon": "\u{0001f316}",\n "last_quarter_moon": "\u{0001f317}",\n "waning_crescent_moon": "\u{0001f318}",\n "new_moon": "\u{0001f311}",\n "waxing_crescent_moon": "\u{0001f312}",\n "first_quarter_moon": "\u{0001f313}",\n "waxing_gibbous_moon": "\u{0001f314}",\n "new_moon_with_face": "\u{0001f31a}",\n "full_moon_with_face": "\u{0001f31d}",\n "first_quarter_moon_with_face": "\u{0001f31b}",\n "last_quarter_moon_with_face": "\u{0001f31c}",\n "sun_with_face": "\u{0001f31e}",\n "crescent_moon": "\u{0001f319}",\n "star": "\u{00002b50}",\n "star2": "\u{0001f31f}",\n "dizzy": "\u{0001f4ab}",\n "sparkles": "\u{00002728}",\n "comet": "\u{00002604}",\n "sunny": "\u{00002600}",\n "white_sun_small_cloud": "\u{0001f324}",\n "partly_sunny": "\u{000026c5}",\n "white_sun_cloud": "\u{0001f325}",\n "white_sun_rain_cloud": "\u{0001f326}",\n "cloud": "\u{00002601}",\n "cloud_rain": "\u{0001f327}",\n "thunder_cloud_rain": "\u{000026c8}",\n "cloud_lightning": "\u{0001f329}",\n "zap": "\u{000026a1}",\n "fire": "\u{0001f525}",\n "boom": "\u{0001f4a5}",\n "snowflake": "\u{00002744}",\n "cloud_snow": "\u{0001f328}",\n "snowman2": "\u{00002603}",\n "snowman": "\u{000026c4}",\n "wind_blowing_face": "\u{0001f32c}",\n "dash": "\u{0001f4a8}",\n "cloud_tornado": "\u{0001f32a}",\n "fog": "\u{0001f32b}",\n "umbrella2": "\u{00002602}",\n "umbrella": "\u{00002614}",\n "droplet": "\u{0001f4a7}",\n "sweat_drops": "\u{0001f4a6}",\n "ocean": "\u{0001f30a}",\n "green_apple": "\u{0001f34f}",\n "apple": "\u{0001f34e}",\n "pear": "\u{0001f350}",\n "tangerine": "\u{0001f34a}",\n "lemon": "\u{0001f34b}",\n "banana": "\u{0001f34c}",\n "watermelon": "\u{0001f349}",\n "grapes": "\u{0001f347}",\n "strawberry": "\u{0001f353}",\n "melon": "\u{0001f348}",\n "cherries": "\u{0001f352}",\n "peach": "\u{0001f351}",\n "pineapple": "\u{0001f34d}",\n "tomato": "\u{0001f345}",\n "eggplant": "\u{0001f346}",\n "hot_pepper": "\u{0001f336}",\n "corn": "\u{0001f33d}",\n "sweet_potato": "\u{0001f360}",\n "honey_pot": "\u{0001f36f}",\n "bread": "\u{0001f35e}",\n "cheese": "\u{0001f9c0}",\n "poultry_leg": "\u{0001f357}",\n "meat_on_bone": "\u{0001f356}",\n "fried_shrimp": "\u{0001f364}",\n "cooking": "\u{0001f373}",\n "hamburger": "\u{0001f354}",\n "fries": "\u{0001f35f}",\n "hotdog": "\u{0001f32d}",\n "pizza": "\u{0001f355}",\n "spaghetti": "\u{0001f35d}",\n "taco": "\u{0001f32e}",\n "burrito": "\u{0001f32f}",\n "ramen": "\u{0001f35c}",\n "stew": "\u{0001f372}",\n "fish_cake": "\u{0001f365}",\n "sushi": "\u{0001f363}",\n "bento": "\u{0001f371}",\n "curry": "\u{0001f35b}",\n "rice_ball": "\u{0001f359}",\n "rice": "\u{0001f35a}",\n "rice_cracker": "\u{0001f358}",\n "oden": "\u{0001f362}",\n "dango": "\u{0001f361}",\n "shaved_ice": "\u{0001f367}",\n "ice_cream": "\u{0001f368}",\n "icecream": "\u{0001f366}",\n "cake": "\u{0001f370}",\n "birthday": "\u{0001f382}",\n "custard": "\u{0001f36e}",\n "candy": "\u{0001f36c}",\n "lollipop": "\u{0001f36d}",\n "chocolate_bar": "\u{0001f36b}",\n "popcorn": "\u{0001f37f}",\n "doughnut": "\u{0001f369}",\n "cookie": "\u{0001f36a}",\n "beer": "\u{0001f37a}",\n "beers": "\u{0001f37b}",\n "wine_glass": "\u{0001f377}",\n "cocktail": "\u{0001f378}",\n "tropical_drink": "\u{0001f379}",\n "champagne": "\u{0001f37e}",\n "sake": "\u{0001f376}",\n "tea": "\u{0001f375}",\n "coffee": "\u{00002615}",\n "baby_bottle": "\u{0001f37c}",\n "fork_and_knife": "\u{0001f374}",\n "fork_knife_plate": "\u{0001f37d}",\n "soccer": "\u{000026bd}",\n "basketball": "\u{0001f3c0}",\n "football": "\u{0001f3c8}",\n "baseball": "\u{000026be}",\n "tennis": "\u{0001f3be}",\n "volleyball": "\u{0001f3d0}",\n "rugby_football": "\u{0001f3c9}",\n "8ball": "\u{0001f3b1}",\n "golf": "\u{000026f3}",\n "golfer": "\u{0001f3cc}",\n "ping_pong": "\u{0001f3d3}",\n "badminton": "\u{0001f3f8}",\n "hockey": "\u{0001f3d2}",\n "field_hockey": "\u{0001f3d1}",\n "cricket": "\u{0001f3cf}",\n "ski": "\u{0001f3bf}",\n "skier": "\u{000026f7}",\n "snowboarder": "\u{0001f3c2}",\n "ice_skate": "\u{000026f8}",\n "bow_and_arrow": "\u{0001f3f9}",\n "fishing_pole_and_fish": "\u{0001f3a3}",\n "rowboat": "\u{0001f6a3}",\n "swimmer": "\u{0001f3ca}",\n "surfer": "\u{0001f3c4}",\n "bath": "\u{0001f6c0}",\n "basketball_player": "\u{000026f9}",\n "lifter": "\u{0001f3cb}",\n "bicyclist": "\u{0001f6b4}",\n "mountain_bicyclist": "\u{0001f6b5}",\n "horse_racing": "\u{0001f3c7}",\n "levitate": "\u{0001f574}",\n "trophy": "\u{0001f3c6}",\n "running_shirt_with_sash": "\u{0001f3bd}",\n "medal": "\u{0001f3c5}",\n "military_medal": "\u{0001f396}",\n "reminder_ribbon": "\u{0001f397}",\n "rosette": "\u{0001f3f5}",\n "ticket": "\u{0001f3ab}",\n "tickets": "\u{0001f39f}",\n "performing_arts": "\u{0001f3ad}",\n "art": "\u{0001f3a8}",\n "circus_tent": "\u{0001f3aa}",\n "microphone": "\u{0001f3a4}",\n "headphones": "\u{0001f3a7}",\n "musical_score": "\u{0001f3bc}",\n "musical_keyboard": "\u{0001f3b9}",\n "saxophone": "\u{0001f3b7}",\n "trumpet": "\u{0001f3ba}",\n "guitar": "\u{0001f3b8}",\n "violin": "\u{0001f3bb}",\n "clapper": "\u{0001f3ac}",\n "video_game": "\u{0001f3ae}",\n "space_invader": "\u{0001f47e}",\n "dart": "\u{0001f3af}",\n "game_die": "\u{0001f3b2}",\n "slot_machine": "\u{0001f3b0}",\n "bowling": "\u{0001f3b3}",\n "red_car": "\u{0001f697}",\n "taxi": "\u{0001f695}",\n "blue_car": "\u{0001f699}",\n "bus": "\u{0001f68c}",\n "trolleybus": "\u{0001f68e}",\n "race_car": "\u{0001f3ce}",\n "police_car": "\u{0001f693}",\n "ambulance": "\u{0001f691}",\n "fire_engine": "\u{0001f692}",\n "minibus": "\u{0001f690}",\n "truck": "\u{0001f69a}",\n "articulated_lorry": "\u{0001f69b}",\n "tractor": "\u{0001f69c}",\n "motorcycle": "\u{0001f3cd}",\n "bike": "\u{0001f6b2}",\n "rotating_light": "\u{0001f6a8}",\n "oncoming_police_car": "\u{0001f694}",\n "oncoming_bus": "\u{0001f68d}",\n "oncoming_automobile": "\u{0001f698}",\n "oncoming_taxi": "\u{0001f696}",\n "aerial_tramway": "\u{0001f6a1}",\n "mountain_cableway": "\u{0001f6a0}",\n "suspension_railway": "\u{0001f69f}",\n "railway_car": "\u{0001f683}",\n "train": "\u{0001f68b}",\n "monorail": "\u{0001f69d}",\n "bullettrain_side": "\u{0001f684}",\n "bullettrain_front": "\u{0001f685}",\n "light_rail": "\u{0001f688}",\n "mountain_railway": "\u{0001f69e}",\n "steam_locomotive": "\u{0001f682}",\n "train2": "\u{0001f686}",\n "metro": "\u{0001f687}",\n "tram": "\u{0001f68a}",\n "station": "\u{0001f689}",\n "helicopter": "\u{0001f681}",\n "airplane_small": "\u{0001f6e9}",\n "airplane": "\u{00002708}",\n "airplane_departure": "\u{0001f6eb}",\n "airplane_arriving": "\u{0001f6ec}",\n "sailboat": "\u{000026f5}",\n "motorboat": "\u{0001f6e5}",\n "speedboat": "\u{0001f6a4}",\n "ferry": "\u{000026f4}",\n "cruise_ship": "\u{0001f6f3}",\n "rocket": "\u{0001f680}",\n "satellite_orbital": "\u{0001f6f0}",\n "seat": "\u{0001f4ba}",\n "anchor": "\u{00002693}",\n "construction": "\u{0001f6a7}",\n "fuelpump": "\u{000026fd}",\n "busstop": "\u{0001f68f}",\n "vertical_traffic_light": "\u{0001f6a6}",\n "traffic_light": "\u{0001f6a5}",\n "checkered_flag": "\u{0001f3c1}",\n "ship": "\u{0001f6a2}",\n "ferris_wheel": "\u{0001f3a1}",\n "roller_coaster": "\u{0001f3a2}",\n "carousel_horse": "\u{0001f3a0}",\n "construction_site": "\u{0001f3d7}",\n "foggy": "\u{0001f301}",\n "tokyo_tower": "\u{0001f5fc}",\n "factory": "\u{0001f3ed}",\n "fountain": "\u{000026f2}",\n "rice_scene": "\u{0001f391}",\n "mountain": "\u{000026f0}",\n "mountain_snow": "\u{0001f3d4}",\n "mount_fuji": "\u{0001f5fb}",\n "volcano": "\u{0001f30b}",\n "japan": "\u{0001f5fe}",\n "camping": "\u{0001f3d5}",\n "tent": "\u{000026fa}",\n "park": "\u{0001f3de}",\n "motorway": "\u{0001f6e3}",\n "railway_track": "\u{0001f6e4}",\n "sunrise": "\u{0001f305}",\n "sunrise_over_mountains": "\u{0001f304}",\n "desert": "\u{0001f3dc}",\n "beach": "\u{0001f3d6}",\n "island": "\u{0001f3dd}",\n "city_sunset": "\u{0001f307}",\n "city_dusk": "\u{0001f306}",\n "cityscape": "\u{0001f3d9}",\n "night_with_stars": "\u{0001f303}",\n "bridge_at_night": "\u{0001f309}",\n "milky_way": "\u{0001f30c}",\n "stars": "\u{0001f320}",\n "sparkler": "\u{0001f387}",\n "fireworks": "\u{0001f386}",\n "rainbow": "\u{0001f308}",\n "homes": "\u{0001f3d8}",\n "european_castle": "\u{0001f3f0}",\n "japanese_castle": "\u{0001f3ef}",\n "stadium": "\u{0001f3df}",\n "statue_of_liberty": "\u{0001f5fd}",\n "house": "\u{0001f3e0}",\n "house_with_garden": "\u{0001f3e1}",\n "house_abandoned": "\u{0001f3da}",\n "office": "\u{0001f3e2}",\n "department_store": "\u{0001f3ec}",\n "post_office": "\u{0001f3e3}",\n "european_post_office": "\u{0001f3e4}",\n "hospital": "\u{0001f3e5}",\n "bank": "\u{0001f3e6}",\n "hotel": "\u{0001f3e8}",\n "convenience_store": "\u{0001f3ea}",\n "school": "\u{0001f3eb}",\n "love_hotel": "\u{0001f3e9}",\n "wedding": "\u{0001f492}",\n "classical_building": "\u{0001f3db}",\n "church": "\u{000026ea}",\n "mosque": "\u{0001f54c}",\n "synagogue": "\u{0001f54d}",\n "kaaba": "\u{0001f54b}",\n "shinto_shrine": "\u{000026e9}",\n "watch": "\u{0000231a}",\n "iphone": "\u{0001f4f1}",\n "calling": "\u{0001f4f2}",\n "computer": "\u{0001f4bb}",\n "keyboard": "\u{00002328}",\n "desktop": "\u{0001f5a5}",\n "printer": "\u{0001f5a8}",\n "mouse_three_button": "\u{0001f5b1}",\n "trackball": "\u{0001f5b2}",\n "joystick": "\u{0001f579}",\n "compression": "\u{0001f5dc}",\n "minidisc": "\u{0001f4bd}",\n "floppy_disk": "\u{0001f4be}",\n "cd": "\u{0001f4bf}",\n "dvd": "\u{0001f4c0}",\n "vhs": "\u{0001f4fc}",\n "camera": "\u{0001f4f7}",\n "camera_with_flash": "\u{0001f4f8}",\n "video_camera": "\u{0001f4f9}",\n "movie_camera": "\u{0001f3a5}",\n "projector": "\u{0001f4fd}",\n "film_frames": "\u{0001f39e}",\n "telephone_receiver": "\u{0001f4de}",\n "telephone": "\u{0000260e}",\n "pager": "\u{0001f4df}",\n "fax": "\u{0001f4e0}",\n "tv": "\u{0001f4fa}",\n "radio": "\u{0001f4fb}",\n "microphone2": "\u{0001f399}",\n "level_slider": "\u{0001f39a}",\n "control_knobs": "\u{0001f39b}",\n "stopwatch": "\u{000023f1}",\n "timer": "\u{000023f2}",\n "alarm_clock": "\u{000023f0}",\n "clock": "\u{0001f570}",\n "hourglass_flowing_sand": "\u{000023f3}",\n "hourglass": "\u{0000231b}",\n "satellite": "\u{0001f4e1}",\n "battery": "\u{0001f50b}",\n "electric_plug": "\u{0001f50c}",\n "bulb": "\u{0001f4a1}",\n "flashlight": "\u{0001f526}",\n "candle": "\u{0001f56f}",\n "wastebasket": "\u{0001f5d1}",\n "oil": "\u{0001f6e2}",\n "money_with_wings": "\u{0001f4b8}",\n "dollar": "\u{0001f4b5}",\n "yen": "\u{0001f4b4}",\n "euro": "\u{0001f4b6}",\n "pound": "\u{0001f4b7}",\n "moneybag": "\u{0001f4b0}",\n "credit_card": "\u{0001f4b3}",\n "gem": "\u{0001f48e}",\n "scales": "\u{00002696}",\n "wrench": "\u{0001f527}",\n "hammer": "\u{0001f528}",\n "hammer_pick": "\u{00002692}",\n "tools": "\u{0001f6e0}",\n "pick": "\u{000026cf}",\n "nut_and_bolt": "\u{0001f529}",\n "gear": "\u{00002699}",\n "chains": "\u{000026d3}",\n "gun": "\u{0001f52b}",\n "bomb": "\u{0001f4a3}",\n "knife": "\u{0001f52a}",\n "dagger": "\u{0001f5e1}",\n "crossed_swords": "\u{00002694}",\n "shield": "\u{0001f6e1}",\n "smoking": "\u{0001f6ac}",\n "skull_crossbones": "\u{00002620}",\n "coffin": "\u{000026b0}",\n "urn": "\u{000026b1}",\n "amphora": "\u{0001f3fa}",\n "crystal_ball": "\u{0001f52e}",\n "prayer_beads": "\u{0001f4ff}",\n "barber": "\u{0001f488}",\n "alembic": "\u{00002697}",\n "telescope": "\u{0001f52d}",\n "microscope": "\u{0001f52c}",\n "hole": "\u{0001f573}",\n "pill": "\u{0001f48a}",\n "syringe": "\u{0001f489}",\n "thermometer": "\u{0001f321}",\n "label": "\u{0001f3f7}",\n "bookmark": "\u{0001f516}",\n "toilet": "\u{0001f6bd}",\n "shower": "\u{0001f6bf}",\n "bathtub": "\u{0001f6c1}",\n "key": "\u{0001f511}",\n "key2": "\u{0001f5dd}",\n "couch": "\u{0001f6cb}",\n "sleeping_accommodation": "\u{0001f6cc}",\n "bed": "\u{0001f6cf}",\n "door": "\u{0001f6aa}",\n "bellhop": "\u{0001f6ce}",\n "frame_photo": "\u{0001f5bc}",\n "map": "\u{0001f5fa}",\n "beach_umbrella": "\u{000026f1}",\n "moyai": "\u{0001f5ff}",\n "shopping_bags": "\u{0001f6cd}",\n "balloon": "\u{0001f388}",\n "flags": "\u{0001f38f}",\n "ribbon": "\u{0001f380}",\n "gift": "\u{0001f381}",\n "confetti_ball": "\u{0001f38a}",\n "tada": "\u{0001f389}",\n "dolls": "\u{0001f38e}",\n "wind_chime": "\u{0001f390}",\n "crossed_flags": "\u{0001f38c}",\n "izakaya_lantern": "\u{0001f3ee}",\n "envelope": "\u{00002709}",\n "envelope_with_arrow": "\u{0001f4e9}",\n "incoming_envelope": "\u{0001f4e8}",\n "e-mail": "\u{0001f4e7}",\n "love_letter": "\u{0001f48c}",\n "postbox": "\u{0001f4ee}",\n "mailbox_closed": "\u{0001f4ea}",\n "mailbox": "\u{0001f4eb}",\n "mailbox_with_mail": "\u{0001f4ec}",\n "mailbox_with_no_mail": "\u{0001f4ed}",\n "package": "\u{0001f4e6}",\n "postal_horn": "\u{0001f4ef}",\n "inbox_tray": "\u{0001f4e5}",\n "outbox_tray": "\u{0001f4e4}",\n "scroll": "\u{0001f4dc}",\n "page_with_curl": "\u{0001f4c3}",\n "bookmark_tabs": "\u{0001f4d1}",\n "bar_chart": "\u{0001f4ca}",\n "chart_with_upwards_trend": "\u{0001f4c8}",\n "chart_with_downwards_trend": "\u{0001f4c9}",\n "page_facing_up": "\u{0001f4c4}",\n "date": "\u{0001f4c5}",\n "calendar": "\u{0001f4c6}",\n "calendar_spiral": "\u{0001f5d3}",\n "card_index": "\u{0001f4c7}",\n "card_box": "\u{0001f5c3}",\n "ballot_box": "\u{0001f5f3}",\n "file_cabinet": "\u{0001f5c4}",\n "clipboard": "\u{0001f4cb}",\n "notepad_spiral": "\u{0001f5d2}",\n "file_folder": "\u{0001f4c1}",\n "open_file_folder": "\u{0001f4c2}",\n "dividers": "\u{0001f5c2}",\n "newspaper2": "\u{0001f5de}",\n "newspaper": "\u{0001f4f0}",\n "notebook": "\u{0001f4d3}",\n "closed_book": "\u{0001f4d5}",\n "green_book": "\u{0001f4d7}",\n "blue_book": "\u{0001f4d8}",\n "orange_book": "\u{0001f4d9}",\n "notebook_with_decorative_cover": "\u{0001f4d4}",\n "ledger": "\u{0001f4d2}",\n "books": "\u{0001f4da}",\n "book": "\u{0001f4d6}",\n "link": "\u{0001f517}",\n "paperclip": "\u{0001f4ce}",\n "paperclips": "\u{0001f587}",\n "scissors": "\u{00002702}",\n "triangular_ruler": "\u{0001f4d0}",\n "straight_ruler": "\u{0001f4cf}",\n "pushpin": "\u{0001f4cc}",\n "round_pushpin": "\u{0001f4cd}",\n "triangular_flag_on_post": "\u{0001f6a9}",\n "flag_white": "\u{0001f3f3}",\n "flag_black": "\u{0001f3f4}",\n "closed_lock_with_key": "\u{0001f510}",\n "lock": "\u{0001f512}",\n "unlock": "\u{0001f513}",\n "lock_with_ink_pen": "\u{0001f50f}",\n "pen_ballpoint": "\u{0001f58a}",\n "pen_fountain": "\u{0001f58b}",\n "black_nib": "\u{00002712}",\n "pencil": "\u{0001f4dd}",\n "pencil2": "\u{0000270f}",\n "crayon": "\u{0001f58d}",\n "paintbrush": "\u{0001f58c}",\n "mag": "\u{0001f50d}",\n "mag_right": "\u{0001f50e}",\n "heart": "\u{00002764}",\n "yellow_heart": "\u{0001f49b}",\n "green_heart": "\u{0001f49a}",\n "blue_heart": "\u{0001f499}",\n "purple_heart": "\u{0001f49c}",\n "broken_heart": "\u{0001f494}",\n "heart_exclamation": "\u{00002763}",\n "two_hearts": "\u{0001f495}",\n "revolving_hearts": "\u{0001f49e}",\n "heartbeat": "\u{0001f493}",\n "heartpulse": "\u{0001f497}",\n "sparkling_heart": "\u{0001f496}",\n "cupid": "\u{0001f498}",\n "gift_heart": "\u{0001f49d}",\n "heart_decoration": "\u{0001f49f}",\n "peace": "\u{0000262e}",\n "cross": "\u{0000271d}",\n "star_and_crescent": "\u{0000262a}",\n "om_symbol": "\u{0001f549}",\n "wheel_of_dharma": "\u{00002638}",\n "star_of_david": "\u{00002721}",\n "six_pointed_star": "\u{0001f52f}",\n "menorah": "\u{0001f54e}",\n "yin_yang": "\u{0000262f}",\n "orthodox_cross": "\u{00002626}",\n "place_of_worship": "\u{0001f6d0}",\n "ophiuchus": "\u{000026ce}",\n "aries": "\u{00002648}",\n "taurus": "\u{00002649}",\n "gemini": "\u{0000264a}",\n "cancer": "\u{0000264b}",\n "leo": "\u{0000264c}",\n "virgo": "\u{0000264d}",\n "libra": "\u{0000264e}",\n "scorpius": "\u{0000264f}",\n "sagittarius": "\u{00002650}",\n "capricorn": "\u{00002651}",\n "aquarius": "\u{00002652}",\n "pisces": "\u{00002653}",\n "id": "\u{0001f194}",\n "atom": "\u{0000269b}",\n "u7a7a": "\u{0001f233}",\n "u5272": "\u{0001f239}",\n "radioactive": "\u{00002622}",\n "biohazard": "\u{00002623}",\n "mobile_phone_off": "\u{0001f4f4}",\n "vibration_mode": "\u{0001f4f3}",\n "u6709": "\u{0001f236}",\n "u7121": "\u{0001f21a}",\n "u7533": "\u{0001f238}",\n "u55b6": "\u{0001f23a}",\n "u6708": "\u{0001f237}",\n "eight_pointed_black_star": "\u{00002734}",\n "vs": "\u{0001f19a}",\n "accept": "\u{0001f251}",\n "white_flower": "\u{0001f4ae}",\n "ideograph_advantage": "\u{0001f250}",\n "secret": "\u{00003299}",\n "congratulations": "\u{00003297}",\n "u5408": "\u{0001f234}",\n "u6e80": "\u{0001f235}",\n "u7981": "\u{0001f232}",\n "a": "\u{0001f170}",\n "b": "\u{0001f171}",\n "ab": "\u{0001f18e}",\n "cl": "\u{0001f191}",\n "o2": "\u{0001f17e}",\n "sos": "\u{0001f198}",\n "no_entry": "\u{000026d4}",\n "name_badge": "\u{0001f4db}",\n "no_entry_sign": "\u{0001f6ab}",\n "x": "\u{0000274c}",\n "o": "\u{00002b55}",\n "anger": "\u{0001f4a2}",\n "hotsprings": "\u{00002668}",\n "no_pedestrians": "\u{0001f6b7}",\n "do_not_litter": "\u{0001f6af}",\n "no_bicycles": "\u{0001f6b3}",\n "non-potable_water": "\u{0001f6b1}",\n "underage": "\u{0001f51e}",\n "no_mobile_phones": "\u{0001f4f5}",\n "exclamation": "\u{00002757}",\n "grey_exclamation": "\u{00002755}",\n "question": "\u{00002753}",\n "grey_question": "\u{00002754}",\n "bangbang": "\u{0000203c}",\n "interrobang": "\u{00002049}",\n "low_brightness": "\u{0001f505}",\n "high_brightness": "\u{0001f506}",\n "trident": "\u{0001f531}",\n "fleur-de-lis": "\u{0000269c}",\n "part_alternation_mark": "\u{0000303d}",\n "warning": "\u{000026a0}",\n "children_crossing": "\u{0001f6b8}",\n "beginner": "\u{0001f530}",\n "recycle": "\u{0000267b}",\n "u6307": "\u{0001f22f}",\n "chart": "\u{0001f4b9}",\n "sparkle": "\u{00002747}",\n "eight_spoked_asterisk": "\u{00002733}",\n "negative_squared_cross_mark": "\u{0000274e}",\n "white_check_mark": "\u{00002705}",\n "diamond_shape_with_a_dot_inside": "\u{0001f4a0}",\n "cyclone": "\u{0001f300}",\n "loop": "\u{000027bf}",\n "globe_with_meridians": "\u{0001f310}",\n "m": "\u{000024c2}",\n "atm": "\u{0001f3e7}",\n "sa": "\u{0001f202}",\n "passport_control": "\u{0001f6c2}",\n "customs": "\u{0001f6c3}",\n "baggage_claim": "\u{0001f6c4}",\n "left_luggage": "\u{0001f6c5}",\n "wheelchair": "\u{0000267f}",\n "no_smoking": "\u{0001f6ad}",\n "wc": "\u{0001f6be}",\n "parking": "\u{0001f17f}",\n "potable_water": "\u{0001f6b0}",\n "mens": "\u{0001f6b9}",\n "womens": "\u{0001f6ba}",\n "baby_symbol": "\u{0001f6bc}",\n "restroom": "\u{0001f6bb}",\n "put_litter_in_its_place": "\u{0001f6ae}",\n "cinema": "\u{0001f3a6}",\n "signal_strength": "\u{0001f4f6}",\n "koko": "\u{0001f201}",\n "ng": "\u{0001f196}",\n "ok": "\u{0001f197}",\n "up": "\u{0001f199}",\n "cool": "\u{0001f192}",\n "new": "\u{0001f195}",\n "free": "\u{0001f193}",\n "zero": "0\u{000020e3}",\n "one": "1\u{000020e3}",\n "two": "2\u{000020e3}",\n "three": "3\u{000020e3}",\n "four": "4\u{000020e3}",\n "five": "5\u{000020e3}",\n "six": "6\u{000020e3}",\n "seven": "7\u{000020e3}",\n "eight": "8\u{000020e3}",\n "nine": "9\u{000020e3}",\n "keycap_ten": "\u{0001f51f}",\n "arrow_forward": "\u{000025b6}",\n "pause_button": "\u{000023f8}",\n "play_pause": "\u{000023ef}",\n "stop_button": "\u{000023f9}",\n "record_button": "\u{000023fa}",\n "track_next": "\u{000023ed}",\n "track_previous": "\u{000023ee}",\n "fast_forward": "\u{000023e9}",\n "rewind": "\u{000023ea}",\n "twisted_rightwards_arrows": "\u{0001f500}",\n "repeat": "\u{0001f501}",\n "repeat_one": "\u{0001f502}",\n "arrow_backward": "\u{000025c0}",\n "arrow_up_small": "\u{0001f53c}",\n "arrow_down_small": "\u{0001f53d}",\n "arrow_double_up": "\u{000023eb}",\n "arrow_double_down": "\u{000023ec}",\n "arrow_right": "\u{000027a1}",\n "arrow_left": "\u{00002b05}",\n "arrow_up": "\u{00002b06}",\n "arrow_down": "\u{00002b07}",\n "arrow_upper_right": "\u{00002197}",\n "arrow_lower_right": "\u{00002198}",\n "arrow_lower_left": "\u{00002199}",\n "arrow_upper_left": "\u{00002196}",\n "arrow_up_down": "\u{00002195}",\n "left_right_arrow": "\u{00002194}",\n "arrows_counterclockwise": "\u{0001f504}",\n "arrow_right_hook": "\u{000021aa}",\n "leftwards_arrow_with_hook": "\u{000021a9}",\n "arrow_heading_up": "\u{00002934}",\n "arrow_heading_down": "\u{00002935}",\n "hash": "#\u{000020e3}",\n "asterisk": "\u{0000002a}\u{000020e3}",\n "information_source": "\u{00002139}",\n "abc": "\u{0001f524}",\n "abcd": "\u{0001f521}",\n "capital_abcd": "\u{0001f520}",\n "symbols": "\u{0001f523}",\n "musical_note": "\u{0001f3b5}",\n "notes": "\u{0001f3b6}",\n "wavy_dash": "\u{00003030}",\n "curly_loop": "\u{000027b0}",\n "heavy_check_mark": "\u{00002714}",\n "arrows_clockwise": "\u{0001f503}",\n "heavy_plus_sign": "\u{00002795}",\n "heavy_minus_sign": "\u{00002796}",\n "heavy_division_sign": "\u{00002797}",\n "heavy_multiplication_x": "\u{00002716}",\n "heavy_dollar_sign": "\u{0001f4b2}",\n "currency_exchange": "\u{0001f4b1}",\n "copyright": "\u{000000a9}",\n "registered": "\u{000000ae}",\n "tm": "\u{00002122}",\n "end": "\u{0001f51a}",\n "back": "\u{0001f519}",\n "on": "\u{0001f51b}",\n "top": "\u{0001f51d}",\n "soon": "\u{0001f51c}",\n "ballot_box_with_check": "\u{00002611}",\n "radio_button": "\u{0001f518}",\n "white_circle": "\u{000026aa}",\n "black_circle": "\u{000026ab}",\n "red_circle": "\u{0001f534}",\n "large_blue_circle": "\u{0001f535}",\n "small_orange_diamond": "\u{0001f538}",\n "small_blue_diamond": "\u{0001f539}",\n "large_orange_diamond": "\u{0001f536}",\n "large_blue_diamond": "\u{0001f537}",\n "small_red_triangle": "\u{0001f53a}",\n "black_small_square": "\u{000025aa}",\n "white_small_square": "\u{000025ab}",\n "black_large_square": "\u{00002b1b}",\n "white_large_square": "\u{00002b1c}",\n "small_red_triangle_down": "\u{0001f53b}",\n "black_medium_square": "\u{000025fc}",\n "white_medium_square": "\u{000025fb}",\n "black_medium_small_square": "\u{000025fe}",\n "white_medium_small_square": "\u{000025fd}",\n "black_square_button": "\u{0001f532}",\n "white_square_button": "\u{0001f533}",\n "speaker": "\u{0001f508}",\n "sound": "\u{0001f509}",\n "loud_sound": "\u{0001f50a}",\n "mute": "\u{0001f507}",\n "mega": "\u{0001f4e3}",\n "loudspeaker": "\u{0001f4e2}",\n "bell": "\u{0001f514}",\n "no_bell": "\u{0001f515}",\n "black_joker": "\u{0001f0cf}",\n "mahjong": "\u{0001f004}",\n "spades": "\u{00002660}",\n "clubs": "\u{00002663}",\n "hearts": "\u{00002665}",\n "diamonds": "\u{00002666}",\n "flower_playing_cards": "\u{0001f3b4}",\n "thought_balloon": "\u{0001f4ad}",\n "anger_right": "\u{0001f5ef}",\n "speech_balloon": "\u{0001f4ac}",\n "clock1": "\u{0001f550}",\n "clock2": "\u{0001f551}",\n "clock3": "\u{0001f552}",\n "clock4": "\u{0001f553}",\n "clock5": "\u{0001f554}",\n "clock6": "\u{0001f555}",\n "clock7": "\u{0001f556}",\n "clock8": "\u{0001f557}",\n "clock9": "\u{0001f558}",\n "clock10": "\u{0001f559}",\n "clock11": "\u{0001f55a}",\n "clock12": "\u{0001f55b}",\n "clock130": "\u{0001f55c}",\n "clock230": "\u{0001f55d}",\n "clock330": "\u{0001f55e}",\n "clock430": "\u{0001f55f}",\n "clock530": "\u{0001f560}",\n "clock630": "\u{0001f561}",\n "clock730": "\u{0001f562}",\n "clock830": "\u{0001f563}",\n "clock930": "\u{0001f564}",\n "clock1030": "\u{0001f565}",\n "clock1130": "\u{0001f566}",\n "clock1230": "\u{0001f567}",\n "eye_in_speech_bubble": "\u{0001f441}\u{0001f5e8}",\n "flag_ac": "\u{0001f1e6}\u{0001f1e8}",\n "flag_af": "\u{0001f1e6}\u{0001f1eb}",\n "flag_al": "\u{0001f1e6}\u{0001f1f1}",\n "flag_dz": "\u{0001f1e9}\u{0001f1ff}",\n "flag_ad": "\u{0001f1e6}\u{0001f1e9}",\n "flag_ao": "\u{0001f1e6}\u{0001f1f4}",\n "flag_ai": "\u{0001f1e6}\u{0001f1ee}",\n "flag_ag": "\u{0001f1e6}\u{0001f1ec}",\n "flag_ar": "\u{0001f1e6}\u{0001f1f7}",\n "flag_am": "\u{0001f1e6}\u{0001f1f2}",\n "flag_aw": "\u{0001f1e6}\u{0001f1fc}",\n "flag_au": "\u{0001f1e6}\u{0001f1fa}",\n "flag_at": "\u{0001f1e6}\u{0001f1f9}",\n "flag_az": "\u{0001f1e6}\u{0001f1ff}",\n "flag_bs": "\u{0001f1e7}\u{0001f1f8}",\n "flag_bh": "\u{0001f1e7}\u{0001f1ed}",\n "flag_bd": "\u{0001f1e7}\u{0001f1e9}",\n "flag_bb": "\u{0001f1e7}\u{0001f1e7}",\n "flag_by": "\u{0001f1e7}\u{0001f1fe}",\n "flag_be": "\u{0001f1e7}\u{0001f1ea}",\n "flag_bz": "\u{0001f1e7}\u{0001f1ff}",\n "flag_bj": "\u{0001f1e7}\u{0001f1ef}",\n "flag_bm": "\u{0001f1e7}\u{0001f1f2}",\n "flag_bt": "\u{0001f1e7}\u{0001f1f9}",\n "flag_bo": "\u{0001f1e7}\u{0001f1f4}",\n "flag_ba": "\u{0001f1e7}\u{0001f1e6}",\n "flag_bw": "\u{0001f1e7}\u{0001f1fc}",\n "flag_br": "\u{0001f1e7}\u{0001f1f7}",\n "flag_bn": "\u{0001f1e7}\u{0001f1f3}",\n "flag_bg": "\u{0001f1e7}\u{0001f1ec}",\n "flag_bf": "\u{0001f1e7}\u{0001f1eb}",\n "flag_bi": "\u{0001f1e7}\u{0001f1ee}",\n "flag_cv": "\u{0001f1e8}\u{0001f1fb}",\n "flag_kh": "\u{0001f1f0}\u{0001f1ed}",\n "flag_cm": "\u{0001f1e8}\u{0001f1f2}",\n "flag_ca": "\u{0001f1e8}\u{0001f1e6}",\n "flag_ky": "\u{0001f1f0}\u{0001f1fe}",\n "flag_cf": "\u{0001f1e8}\u{0001f1eb}",\n "flag_td": "\u{0001f1f9}\u{0001f1e9}",\n "flag_cl": "\u{0001f1e8}\u{0001f1f1}",\n "flag_cn": "\u{0001f1e8}\u{0001f1f3}",\n "flag_co": "\u{0001f1e8}\u{0001f1f4}",\n "flag_km": "\u{0001f1f0}\u{0001f1f2}",\n "flag_cg": "\u{0001f1e8}\u{0001f1ec}",\n "flag_cd": "\u{0001f1e8}\u{0001f1e9}",\n "flag_cr": "\u{0001f1e8}\u{0001f1f7}",\n "flag_hr": "\u{0001f1ed}\u{0001f1f7}",\n "flag_cu": "\u{0001f1e8}\u{0001f1fa}",\n "flag_cy": "\u{0001f1e8}\u{0001f1fe}",\n "flag_cz": "\u{0001f1e8}\u{0001f1ff}",\n "flag_dk": "\u{0001f1e9}\u{0001f1f0}",\n "flag_dj": "\u{0001f1e9}\u{0001f1ef}",\n "flag_dm": "\u{0001f1e9}\u{0001f1f2}",\n "flag_do": "\u{0001f1e9}\u{0001f1f4}",\n "flag_ec": "\u{0001f1ea}\u{0001f1e8}",\n "flag_eg": "\u{0001f1ea}\u{0001f1ec}",\n "flag_sv": "\u{0001f1f8}\u{0001f1fb}",\n "flag_gq": "\u{0001f1ec}\u{0001f1f6}",\n "flag_er": "\u{0001f1ea}\u{0001f1f7}",\n "flag_ee": "\u{0001f1ea}\u{0001f1ea}",\n "flag_et": "\u{0001f1ea}\u{0001f1f9}",\n "flag_fk": "\u{0001f1eb}\u{0001f1f0}",\n "flag_fo": "\u{0001f1eb}\u{0001f1f4}",\n "flag_fj": "\u{0001f1eb}\u{0001f1ef}",\n "flag_fi": "\u{0001f1eb}\u{0001f1ee}",\n "flag_fr": "\u{0001f1eb}\u{0001f1f7}",\n "flag_pf": "\u{0001f1f5}\u{0001f1eb}",\n "flag_ga": "\u{0001f1ec}\u{0001f1e6}",\n "flag_gm": "\u{0001f1ec}\u{0001f1f2}",\n "flag_ge": "\u{0001f1ec}\u{0001f1ea}",\n "flag_de": "\u{0001f1e9}\u{0001f1ea}",\n "flag_gh": "\u{0001f1ec}\u{0001f1ed}",\n "flag_gi": "\u{0001f1ec}\u{0001f1ee}",\n "flag_gr": "\u{0001f1ec}\u{0001f1f7}",\n "flag_gl": "\u{0001f1ec}\u{0001f1f1}",\n "flag_gd": "\u{0001f1ec}\u{0001f1e9}",\n "flag_gu": "\u{0001f1ec}\u{0001f1fa}",\n "flag_gt": "\u{0001f1ec}\u{0001f1f9}",\n "flag_gn": "\u{0001f1ec}\u{0001f1f3}",\n "flag_gw": "\u{0001f1ec}\u{0001f1fc}",\n "flag_gy": "\u{0001f1ec}\u{0001f1fe}",\n "flag_ht": "\u{0001f1ed}\u{0001f1f9}",\n "flag_hn": "\u{0001f1ed}\u{0001f1f3}",\n "flag_hk": "\u{0001f1ed}\u{0001f1f0}",\n "flag_hu": "\u{0001f1ed}\u{0001f1fa}",\n "flag_is": "\u{0001f1ee}\u{0001f1f8}",\n "flag_in": "\u{0001f1ee}\u{0001f1f3}",\n "flag_id": "\u{0001f1ee}\u{0001f1e9}",\n "flag_ir": "\u{0001f1ee}\u{0001f1f7}",\n "flag_iq": "\u{0001f1ee}\u{0001f1f6}",\n "flag_ie": "\u{0001f1ee}\u{0001f1ea}",\n "flag_il": "\u{0001f1ee}\u{0001f1f1}",\n "flag_it": "\u{0001f1ee}\u{0001f1f9}",\n "flag_ci": "\u{0001f1e8}\u{0001f1ee}",\n "flag_jm": "\u{0001f1ef}\u{0001f1f2}",\n "flag_jp": "\u{0001f1ef}\u{0001f1f5}",\n "flag_je": "\u{0001f1ef}\u{0001f1ea}",\n "flag_jo": "\u{0001f1ef}\u{0001f1f4}",\n "flag_kz": "\u{0001f1f0}\u{0001f1ff}",\n "flag_ke": "\u{0001f1f0}\u{0001f1ea}",\n "flag_ki": "\u{0001f1f0}\u{0001f1ee}",\n "flag_xk": "\u{0001f1fd}\u{0001f1f0}",\n "flag_kw": "\u{0001f1f0}\u{0001f1fc}",\n "flag_kg": "\u{0001f1f0}\u{0001f1ec}",\n "flag_la": "\u{0001f1f1}\u{0001f1e6}",\n "flag_lv": "\u{0001f1f1}\u{0001f1fb}",\n "flag_lb": "\u{0001f1f1}\u{0001f1e7}",\n "flag_ls": "\u{0001f1f1}\u{0001f1f8}",\n "flag_lr": "\u{0001f1f1}\u{0001f1f7}",\n "flag_ly": "\u{0001f1f1}\u{0001f1fe}",\n "flag_li": "\u{0001f1f1}\u{0001f1ee}",\n "flag_lt": "\u{0001f1f1}\u{0001f1f9}",\n "flag_lu": "\u{0001f1f1}\u{0001f1fa}",\n "flag_mo": "\u{0001f1f2}\u{0001f1f4}",\n "flag_mk": "\u{0001f1f2}\u{0001f1f0}",\n "flag_mg": "\u{0001f1f2}\u{0001f1ec}",\n "flag_mw": "\u{0001f1f2}\u{0001f1fc}",\n "flag_my": "\u{0001f1f2}\u{0001f1fe}",\n "flag_mv": "\u{0001f1f2}\u{0001f1fb}",\n "flag_ml": "\u{0001f1f2}\u{0001f1f1}",\n "flag_mt": "\u{0001f1f2}\u{0001f1f9}",\n "flag_mh": "\u{0001f1f2}\u{0001f1ed}",\n "flag_mr": "\u{0001f1f2}\u{0001f1f7}",\n "flag_mu": "\u{0001f1f2}\u{0001f1fa}",\n "flag_mx": "\u{0001f1f2}\u{0001f1fd}",\n "flag_fm": "\u{0001f1eb}\u{0001f1f2}",\n "flag_md": "\u{0001f1f2}\u{0001f1e9}",\n "flag_mc": "\u{0001f1f2}\u{0001f1e8}",\n "flag_mn": "\u{0001f1f2}\u{0001f1f3}",\n "flag_me": "\u{0001f1f2}\u{0001f1ea}",\n "flag_ms": "\u{0001f1f2}\u{0001f1f8}",\n "flag_ma": "\u{0001f1f2}\u{0001f1e6}",\n "flag_mz": "\u{0001f1f2}\u{0001f1ff}",\n "flag_mm": "\u{0001f1f2}\u{0001f1f2}",\n "flag_na": "\u{0001f1f3}\u{0001f1e6}",\n "flag_nr": "\u{0001f1f3}\u{0001f1f7}",\n "flag_np": "\u{0001f1f3}\u{0001f1f5}",\n "flag_nl": "\u{0001f1f3}\u{0001f1f1}",\n "flag_nc": "\u{0001f1f3}\u{0001f1e8}",\n "flag_nz": "\u{0001f1f3}\u{0001f1ff}",\n "flag_ni": "\u{0001f1f3}\u{0001f1ee}",\n "flag_ne": "\u{0001f1f3}\u{0001f1ea}",\n "flag_ng": "\u{0001f1f3}\u{0001f1ec}",\n "flag_nu": "\u{0001f1f3}\u{0001f1fa}",\n "flag_kp": "\u{0001f1f0}\u{0001f1f5}",\n "flag_no": "\u{0001f1f3}\u{0001f1f4}",\n "flag_om": "\u{0001f1f4}\u{0001f1f2}",\n "flag_pk": "\u{0001f1f5}\u{0001f1f0}",\n "flag_pw": "\u{0001f1f5}\u{0001f1fc}",\n "flag_ps": "\u{0001f1f5}\u{0001f1f8}",\n "flag_pa": "\u{0001f1f5}\u{0001f1e6}",\n "flag_pg": "\u{0001f1f5}\u{0001f1ec}",\n "flag_py": "\u{0001f1f5}\u{0001f1fe}",\n "flag_pe": "\u{0001f1f5}\u{0001f1ea}",\n "flag_ph": "\u{0001f1f5}\u{0001f1ed}",\n "flag_pl": "\u{0001f1f5}\u{0001f1f1}",\n "flag_pt": "\u{0001f1f5}\u{0001f1f9}",\n "flag_pr": "\u{0001f1f5}\u{0001f1f7}",\n "flag_qa": "\u{0001f1f6}\u{0001f1e6}",\n "flag_ro": "\u{0001f1f7}\u{0001f1f4}",\n "flag_ru": "\u{0001f1f7}\u{0001f1fa}",\n "flag_rw": "\u{0001f1f7}\u{0001f1fc}",\n "flag_sh": "\u{0001f1f8}\u{0001f1ed}",\n "flag_kn": "\u{0001f1f0}\u{0001f1f3}",\n "flag_lc": "\u{0001f1f1}\u{0001f1e8}",\n "flag_vc": "\u{0001f1fb}\u{0001f1e8}",\n "flag_ws": "\u{0001f1fc}\u{0001f1f8}",\n "flag_sm": "\u{0001f1f8}\u{0001f1f2}",\n "flag_st": "\u{0001f1f8}\u{0001f1f9}",\n "flag_sa": "\u{0001f1f8}\u{0001f1e6}",\n "flag_sn": "\u{0001f1f8}\u{0001f1f3}",\n "flag_rs": "\u{0001f1f7}\u{0001f1f8}",\n "flag_sc": "\u{0001f1f8}\u{0001f1e8}",\n "flag_sl": "\u{0001f1f8}\u{0001f1f1}",\n "flag_sg": "\u{0001f1f8}\u{0001f1ec}",\n "flag_sk": "\u{0001f1f8}\u{0001f1f0}",\n "flag_si": "\u{0001f1f8}\u{0001f1ee}",\n "flag_sb": "\u{0001f1f8}\u{0001f1e7}",\n "flag_so": "\u{0001f1f8}\u{0001f1f4}",\n "flag_za": "\u{0001f1ff}\u{0001f1e6}",\n "flag_kr": "\u{0001f1f0}\u{0001f1f7}",\n "flag_es": "\u{0001f1ea}\u{0001f1f8}",\n "flag_lk": "\u{0001f1f1}\u{0001f1f0}",\n "flag_sd": "\u{0001f1f8}\u{0001f1e9}",\n "flag_sr": "\u{0001f1f8}\u{0001f1f7}",\n "flag_sz": "\u{0001f1f8}\u{0001f1ff}",\n "flag_se": "\u{0001f1f8}\u{0001f1ea}",\n "flag_ch": "\u{0001f1e8}\u{0001f1ed}",\n "flag_sy": "\u{0001f1f8}\u{0001f1fe}",\n "flag_tw": "\u{0001f1f9}\u{0001f1fc}",\n "flag_tj": "\u{0001f1f9}\u{0001f1ef}",\n "flag_tz": "\u{0001f1f9}\u{0001f1ff}",\n "flag_th": "\u{0001f1f9}\u{0001f1ed}",\n "flag_tl": "\u{0001f1f9}\u{0001f1f1}",\n "flag_tg": "\u{0001f1f9}\u{0001f1ec}",\n "flag_to": "\u{0001f1f9}\u{0001f1f4}",\n "flag_tt": "\u{0001f1f9}\u{0001f1f9}",\n "flag_tn": "\u{0001f1f9}\u{0001f1f3}",\n "flag_tr": "\u{0001f1f9}\u{0001f1f7}",\n "flag_tm": "\u{0001f1f9}\u{0001f1f2}",\n "flag_tv": "\u{0001f1f9}\u{0001f1fb}",\n "flag_ug": "\u{0001f1fa}\u{0001f1ec}",\n "flag_ua": "\u{0001f1fa}\u{0001f1e6}",\n "flag_ae": "\u{0001f1e6}\u{0001f1ea}",\n "flag_gb": "\u{0001f1ec}\u{0001f1e7}",\n "flag_us": "\u{0001f1fa}\u{0001f1f8}",\n "flag_vi": "\u{0001f1fb}\u{0001f1ee}",\n "flag_uy": "\u{0001f1fa}\u{0001f1fe}",\n "flag_uz": "\u{0001f1fa}\u{0001f1ff}",\n "flag_vu": "\u{0001f1fb}\u{0001f1fa}",\n "flag_va": "\u{0001f1fb}\u{0001f1e6}",\n "flag_ve": "\u{0001f1fb}\u{0001f1ea}",\n "flag_vn": "\u{0001f1fb}\u{0001f1f3}",\n "flag_wf": "\u{0001f1fc}\u{0001f1eb}",\n "flag_eh": "\u{0001f1ea}\u{0001f1ed}",\n "flag_ye": "\u{0001f1fe}\u{0001f1ea}",\n "flag_zm": "\u{0001f1ff}\u{0001f1f2}",\n "flag_zw": "\u{0001f1ff}\u{0001f1fc}",\n "flag_re": "\u{0001f1f7}\u{0001f1ea}",\n "flag_ax": "\u{0001f1e6}\u{0001f1fd}",\n "flag_ta": "\u{0001f1f9}\u{0001f1e6}",\n "flag_io": "\u{0001f1ee}\u{0001f1f4}",\n "flag_bq": "\u{0001f1e7}\u{0001f1f6}",\n "flag_cx": "\u{0001f1e8}\u{0001f1fd}",\n "flag_cc": "\u{0001f1e8}\u{0001f1e8}",\n "flag_gg": "\u{0001f1ec}\u{0001f1ec}",\n "flag_im": "\u{0001f1ee}\u{0001f1f2}",\n "flag_yt": "\u{0001f1fe}\u{0001f1f9}",\n "flag_nf": "\u{0001f1f3}\u{0001f1eb}",\n "flag_pn": "\u{0001f1f5}\u{0001f1f3}",\n "flag_bl": "\u{0001f1e7}\u{0001f1f1}",\n "flag_pm": "\u{0001f1f5}\u{0001f1f2}",\n "flag_gs": "\u{0001f1ec}\u{0001f1f8}",\n "flag_tk": "\u{0001f1f9}\u{0001f1f0}",\n "flag_bv": "\u{0001f1e7}\u{0001f1fb}",\n "flag_hm": "\u{0001f1ed}\u{0001f1f2}",\n "flag_sj": "\u{0001f1f8}\u{0001f1ef}",\n "flag_um": "\u{0001f1fa}\u{0001f1f2}",\n "flag_ic": "\u{0001f1ee}\u{0001f1e8}",\n "flag_ea": "\u{0001f1ea}\u{0001f1e6}",\n "flag_cp": "\u{0001f1e8}\u{0001f1f5}",\n "flag_dg": "\u{0001f1e9}\u{0001f1ec}",\n "flag_as": "\u{0001f1e6}\u{0001f1f8}",\n "flag_aq": "\u{0001f1e6}\u{0001f1f6}",\n "flag_vg": "\u{0001f1fb}\u{0001f1ec}",\n "flag_ck": "\u{0001f1e8}\u{0001f1f0}",\n "flag_cw": "\u{0001f1e8}\u{0001f1fc}",\n "flag_eu": "\u{0001f1ea}\u{0001f1fa}",\n "flag_gf": "\u{0001f1ec}\u{0001f1eb}",\n "flag_tf": "\u{0001f1f9}\u{0001f1eb}",\n "flag_gp": "\u{0001f1ec}\u{0001f1f5}",\n "flag_mq": "\u{0001f1f2}\u{0001f1f6}",\n "flag_mp": "\u{0001f1f2}\u{0001f1f5}",\n "flag_sx": "\u{0001f1f8}\u{0001f1fd}",\n "flag_ss": "\u{0001f1f8}\u{0001f1f8}",\n "flag_tc": "\u{0001f1f9}\u{0001f1e8}",\n "flag_mf": "\u{0001f1f2}\u{0001f1eb}",\n "raised_hands_tone1": "\u{0001f64c}\u{0001f3fb}",\n "raised_hands_tone2": "\u{0001f64c}\u{0001f3fc}",\n "raised_hands_tone3": "\u{0001f64c}\u{0001f3fd}",\n "raised_hands_tone4": "\u{0001f64c}\u{0001f3fe}",\n "raised_hands_tone5": "\u{0001f64c}\u{0001f3ff}",\n "clap_tone1": "\u{0001f44f}\u{0001f3fb}",\n "clap_tone2": "\u{0001f44f}\u{0001f3fc}",\n "clap_tone3": "\u{0001f44f}\u{0001f3fd}",\n "clap_tone4": "\u{0001f44f}\u{0001f3fe}",\n "clap_tone5": "\u{0001f44f}\u{0001f3ff}",\n "wave_tone1": "\u{0001f44b}\u{0001f3fb}",\n "wave_tone2": "\u{0001f44b}\u{0001f3fc}",\n "wave_tone3": "\u{0001f44b}\u{0001f3fd}",\n "wave_tone4": "\u{0001f44b}\u{0001f3fe}",\n "wave_tone5": "\u{0001f44b}\u{0001f3ff}",\n "thumbsup_tone1": "\u{0001f44d}\u{0001f3fb}",\n "thumbsup_tone2": "\u{0001f44d}\u{0001f3fc}",\n "thumbsup_tone3": "\u{0001f44d}\u{0001f3fd}",\n "thumbsup_tone4": "\u{0001f44d}\u{0001f3fe}",\n "thumbsup_tone5": "\u{0001f44d}\u{0001f3ff}",\n "thumbsdown_tone1": "\u{0001f44e}\u{0001f3fb}",\n "thumbsdown_tone2": "\u{0001f44e}\u{0001f3fc}",\n "thumbsdown_tone3": "\u{0001f44e}\u{0001f3fd}",\n "thumbsdown_tone4": "\u{0001f44e}\u{0001f3fe}",\n "thumbsdown_tone5": "\u{0001f44e}\u{0001f3ff}",\n "punch_tone1": "\u{0001f44a}\u{0001f3fb}",\n "punch_tone2": "\u{0001f44a}\u{0001f3fc}",\n "punch_tone3": "\u{0001f44a}\u{0001f3fd}",\n "punch_tone4": "\u{0001f44a}\u{0001f3fe}",\n "punch_tone5": "\u{0001f44a}\u{0001f3ff}",\n "fist_tone1": "\u{0000270a}\u{0001f3fb}",\n "fist_tone2": "\u{0000270a}\u{0001f3fc}",\n "fist_tone3": "\u{0000270a}\u{0001f3fd}",\n "fist_tone4": "\u{0000270a}\u{0001f3fe}",\n "fist_tone5": "\u{0000270a}\u{0001f3ff}",\n "v_tone1": "\u{0000270c}\u{0001f3fb}",\n "v_tone2": "\u{0000270c}\u{0001f3fc}",\n "v_tone3": "\u{0000270c}\u{0001f3fd}",\n "v_tone4": "\u{0000270c}\u{0001f3fe}",\n "v_tone5": "\u{0000270c}\u{0001f3ff}",\n "ok_hand_tone1": "\u{0001f44c}\u{0001f3fb}",\n "ok_hand_tone2": "\u{0001f44c}\u{0001f3fc}",\n "ok_hand_tone3": "\u{0001f44c}\u{0001f3fd}",\n "ok_hand_tone4": "\u{0001f44c}\u{0001f3fe}",\n "ok_hand_tone5": "\u{0001f44c}\u{0001f3ff}",\n "raised_hand_tone1": "\u{0000270b}\u{0001f3fb}",\n "raised_hand_tone2": "\u{0000270b}\u{0001f3fc}",\n "raised_hand_tone3": "\u{0000270b}\u{0001f3fd}",\n "raised_hand_tone4": "\u{0000270b}\u{0001f3fe}",\n "raised_hand_tone5": "\u{0000270b}\u{0001f3ff}",\n "open_hands_tone1": "\u{0001f450}\u{0001f3fb}",\n "open_hands_tone2": "\u{0001f450}\u{0001f3fc}",\n "open_hands_tone3": "\u{0001f450}\u{0001f3fd}",\n "open_hands_tone4": "\u{0001f450}\u{0001f3fe}",\n "open_hands_tone5": "\u{0001f450}\u{0001f3ff}",\n "muscle_tone1": "\u{0001f4aa}\u{0001f3fb}",\n "muscle_tone2": "\u{0001f4aa}\u{0001f3fc}",\n "muscle_tone3": "\u{0001f4aa}\u{0001f3fd}",\n "muscle_tone4": "\u{0001f4aa}\u{0001f3fe}",\n "muscle_tone5": "\u{0001f4aa}\u{0001f3ff}",\n "pray_tone1": "\u{0001f64f}\u{0001f3fb}",\n "pray_tone2": "\u{0001f64f}\u{0001f3fc}",\n "pray_tone3": "\u{0001f64f}\u{0001f3fd}",\n "pray_tone4": "\u{0001f64f}\u{0001f3fe}",\n "pray_tone5": "\u{0001f64f}\u{0001f3ff}",\n "point_up_tone1": "\u{0000261d}\u{0001f3fb}",\n "point_up_tone2": "\u{0000261d}\u{0001f3fc}",\n "point_up_tone3": "\u{0000261d}\u{0001f3fd}",\n "point_up_tone4": "\u{0000261d}\u{0001f3fe}",\n "point_up_tone5": "\u{0000261d}\u{0001f3ff}",\n "point_up_2_tone1": "\u{0001f446}\u{0001f3fb}",\n "point_up_2_tone2": "\u{0001f446}\u{0001f3fc}",\n "point_up_2_tone3": "\u{0001f446}\u{0001f3fd}",\n "point_up_2_tone4": "\u{0001f446}\u{0001f3fe}",\n "point_up_2_tone5": "\u{0001f446}\u{0001f3ff}",\n "point_down_tone1": "\u{0001f447}\u{0001f3fb}",\n "point_down_tone2": "\u{0001f447}\u{0001f3fc}",\n "point_down_tone3": "\u{0001f447}\u{0001f3fd}",\n "point_down_tone4": "\u{0001f447}\u{0001f3fe}",\n "point_down_tone5": "\u{0001f447}\u{0001f3ff}",\n "point_left_tone1": "\u{0001f448}\u{0001f3fb}",\n "point_left_tone2": "\u{0001f448}\u{0001f3fc}",\n "point_left_tone3": "\u{0001f448}\u{0001f3fd}",\n "point_left_tone4": "\u{0001f448}\u{0001f3fe}",\n "point_left_tone5": "\u{0001f448}\u{0001f3ff}",\n "point_right_tone1": "\u{0001f449}\u{0001f3fb}",\n "point_right_tone2": "\u{0001f449}\u{0001f3fc}",\n "point_right_tone3": "\u{0001f449}\u{0001f3fd}",\n "point_right_tone4": "\u{0001f449}\u{0001f3fe}",\n "point_right_tone5": "\u{0001f449}\u{0001f3ff}",\n "middle_finger_tone1": "\u{0001f595}\u{0001f3fb}",\n "middle_finger_tone2": "\u{0001f595}\u{0001f3fc}",\n "middle_finger_tone3": "\u{0001f595}\u{0001f3fd}",\n "middle_finger_tone4": "\u{0001f595}\u{0001f3fe}",\n "middle_finger_tone5": "\u{0001f595}\u{0001f3ff}",\n "hand_splayed_tone1": "\u{0001f590}\u{0001f3fb}",\n "hand_splayed_tone2": "\u{0001f590}\u{0001f3fc}",\n "hand_splayed_tone3": "\u{0001f590}\u{0001f3fd}",\n "hand_splayed_tone4": "\u{0001f590}\u{0001f3fe}",\n "hand_splayed_tone5": "\u{0001f590}\u{0001f3ff}",\n "metal_tone1": "\u{0001f918}\u{0001f3fb}",\n "metal_tone2": "\u{0001f918}\u{0001f3fc}",\n "metal_tone3": "\u{0001f918}\u{0001f3fd}",\n "metal_tone4": "\u{0001f918}\u{0001f3fe}",\n "metal_tone5": "\u{0001f918}\u{0001f3ff}",\n "vulcan_tone1": "\u{0001f596}\u{0001f3fb}",\n "vulcan_tone2": "\u{0001f596}\u{0001f3fc}",\n "vulcan_tone3": "\u{0001f596}\u{0001f3fd}",\n "vulcan_tone4": "\u{0001f596}\u{0001f3fe}",\n "vulcan_tone5": "\u{0001f596}\u{0001f3ff}",\n "writing_hand_tone1": "\u{0000270d}\u{0001f3fb}",\n "writing_hand_tone2": "\u{0000270d}\u{0001f3fc}",\n "writing_hand_tone3": "\u{0000270d}\u{0001f3fd}",\n "writing_hand_tone4": "\u{0000270d}\u{0001f3fe}",\n "writing_hand_tone5": "\u{0000270d}\u{0001f3ff}",\n "nail_care_tone1": "\u{0001f485}\u{0001f3fb}",\n "nail_care_tone2": "\u{0001f485}\u{0001f3fc}",\n "nail_care_tone3": "\u{0001f485}\u{0001f3fd}",\n "nail_care_tone4": "\u{0001f485}\u{0001f3fe}",\n "nail_care_tone5": "\u{0001f485}\u{0001f3ff}",\n "ear_tone1": "\u{0001f442}\u{0001f3fb}",\n "ear_tone2": "\u{0001f442}\u{0001f3fc}",\n "ear_tone3": "\u{0001f442}\u{0001f3fd}",\n "ear_tone4": "\u{0001f442}\u{0001f3fe}",\n "ear_tone5": "\u{0001f442}\u{0001f3ff}",\n "nose_tone1": "\u{0001f443}\u{0001f3fb}",\n "nose_tone2": "\u{0001f443}\u{0001f3fc}",\n "nose_tone3": "\u{0001f443}\u{0001f3fd}",\n "nose_tone4": "\u{0001f443}\u{0001f3fe}",\n "nose_tone5": "\u{0001f443}\u{0001f3ff}",\n "baby_tone1": "\u{0001f476}\u{0001f3fb}",\n "baby_tone2": "\u{0001f476}\u{0001f3fc}",\n "baby_tone3": "\u{0001f476}\u{0001f3fd}",\n "baby_tone4": "\u{0001f476}\u{0001f3fe}",\n "baby_tone5": "\u{0001f476}\u{0001f3ff}",\n "boy_tone1": "\u{0001f466}\u{0001f3fb}",\n "boy_tone2": "\u{0001f466}\u{0001f3fc}",\n "boy_tone3": "\u{0001f466}\u{0001f3fd}",\n "boy_tone4": "\u{0001f466}\u{0001f3fe}",\n "boy_tone5": "\u{0001f466}\u{0001f3ff}",\n "girl_tone1": "\u{0001f467}\u{0001f3fb}",\n "girl_tone2": "\u{0001f467}\u{0001f3fc}",\n "girl_tone3": "\u{0001f467}\u{0001f3fd}",\n "girl_tone4": "\u{0001f467}\u{0001f3fe}",\n "girl_tone5": "\u{0001f467}\u{0001f3ff}",\n "man_tone1": "\u{0001f468}\u{0001f3fb}",\n "man_tone2": "\u{0001f468}\u{0001f3fc}",\n "man_tone3": "\u{0001f468}\u{0001f3fd}",\n "man_tone4": "\u{0001f468}\u{0001f3fe}",\n "man_tone5": "\u{0001f468}\u{0001f3ff}",\n "woman_tone1": "\u{0001f469}\u{0001f3fb}",\n "woman_tone2": "\u{0001f469}\u{0001f3fc}",\n "woman_tone3": "\u{0001f469}\u{0001f3fd}",\n "woman_tone4": "\u{0001f469}\u{0001f3fe}",\n "woman_tone5": "\u{0001f469}\u{0001f3ff}",\n "person_with_blond_hair_tone1": "\u{0001f471}\u{0001f3fb}",\n "person_with_blond_hair_tone2": "\u{0001f471}\u{0001f3fc}",\n "person_with_blond_hair_tone3": "\u{0001f471}\u{0001f3fd}",\n "person_with_blond_hair_tone4": "\u{0001f471}\u{0001f3fe}",\n "person_with_blond_hair_tone5": "\u{0001f471}\u{0001f3ff}",\n "older_man_tone1": "\u{0001f474}\u{0001f3fb}",\n "older_man_tone2": "\u{0001f474}\u{0001f3fc}",\n "older_man_tone3": "\u{0001f474}\u{0001f3fd}",\n "older_man_tone4": "\u{0001f474}\u{0001f3fe}",\n "older_man_tone5": "\u{0001f474}\u{0001f3ff}",\n "older_woman_tone1": "\u{0001f475}\u{0001f3fb}",\n "older_woman_tone2": "\u{0001f475}\u{0001f3fc}",\n "older_woman_tone3": "\u{0001f475}\u{0001f3fd}",\n "older_woman_tone4": "\u{0001f475}\u{0001f3fe}",\n "older_woman_tone5": "\u{0001f475}\u{0001f3ff}",\n "man_with_gua_pi_mao_tone1": "\u{0001f472}\u{0001f3fb}",\n "man_with_gua_pi_mao_tone2": "\u{0001f472}\u{0001f3fc}",\n "man_with_gua_pi_mao_tone3": "\u{0001f472}\u{0001f3fd}",\n "man_with_gua_pi_mao_tone4": "\u{0001f472}\u{0001f3fe}",\n "man_with_gua_pi_mao_tone5": "\u{0001f472}\u{0001f3ff}",\n "man_with_turban_tone1": "\u{0001f473}\u{0001f3fb}",\n "man_with_turban_tone2": "\u{0001f473}\u{0001f3fc}",\n "man_with_turban_tone3": "\u{0001f473}\u{0001f3fd}",\n "man_with_turban_tone4": "\u{0001f473}\u{0001f3fe}",\n "man_with_turban_tone5": "\u{0001f473}\u{0001f3ff}",\n "cop_tone1": "\u{0001f46e}\u{0001f3fb}",\n "cop_tone2": "\u{0001f46e}\u{0001f3fc}",\n "cop_tone3": "\u{0001f46e}\u{0001f3fd}",\n "cop_tone4": "\u{0001f46e}\u{0001f3fe}",\n "cop_tone5": "\u{0001f46e}\u{0001f3ff}",\n "construction_worker_tone1": "\u{0001f477}\u{0001f3fb}",\n "construction_worker_tone2": "\u{0001f477}\u{0001f3fc}",\n "construction_worker_tone3": "\u{0001f477}\u{0001f3fd}",\n "construction_worker_tone4": "\u{0001f477}\u{0001f3fe}",\n "construction_worker_tone5": "\u{0001f477}\u{0001f3ff}",\n "guardsman_tone1": "\u{0001f482}\u{0001f3fb}",\n "guardsman_tone2": "\u{0001f482}\u{0001f3fc}",\n "guardsman_tone3": "\u{0001f482}\u{0001f3fd}",\n "guardsman_tone4": "\u{0001f482}\u{0001f3fe}",\n "guardsman_tone5": "\u{0001f482}\u{0001f3ff}",\n "santa_tone1": "\u{0001f385}\u{0001f3fb}",\n "santa_tone2": "\u{0001f385}\u{0001f3fc}",\n "santa_tone3": "\u{0001f385}\u{0001f3fd}",\n "santa_tone4": "\u{0001f385}\u{0001f3fe}",\n "santa_tone5": "\u{0001f385}\u{0001f3ff}",\n "angel_tone1": "\u{0001f47c}\u{0001f3fb}",\n "angel_tone2": "\u{0001f47c}\u{0001f3fc}",\n "angel_tone3": "\u{0001f47c}\u{0001f3fd}",\n "angel_tone4": "\u{0001f47c}\u{0001f3fe}",\n "angel_tone5": "\u{0001f47c}\u{0001f3ff}",\n "princess_tone1": "\u{0001f478}\u{0001f3fb}",\n "princess_tone2": "\u{0001f478}\u{0001f3fc}",\n "princess_tone3": "\u{0001f478}\u{0001f3fd}",\n "princess_tone4": "\u{0001f478}\u{0001f3fe}",\n "princess_tone5": "\u{0001f478}\u{0001f3ff}",\n "bride_with_veil_tone1": "\u{0001f470}\u{0001f3fb}",\n "bride_with_veil_tone2": "\u{0001f470}\u{0001f3fc}",\n "bride_with_veil_tone3": "\u{0001f470}\u{0001f3fd}",\n "bride_with_veil_tone4": "\u{0001f470}\u{0001f3fe}",\n "bride_with_veil_tone5": "\u{0001f470}\u{0001f3ff}",\n "walking_tone1": "\u{0001f6b6}\u{0001f3fb}",\n "walking_tone2": "\u{0001f6b6}\u{0001f3fc}",\n "walking_tone3": "\u{0001f6b6}\u{0001f3fd}",\n "walking_tone4": "\u{0001f6b6}\u{0001f3fe}",\n "walking_tone5": "\u{0001f6b6}\u{0001f3ff}",\n "runner_tone1": "\u{0001f3c3}\u{0001f3fb}",\n "runner_tone2": "\u{0001f3c3}\u{0001f3fc}",\n "runner_tone3": "\u{0001f3c3}\u{0001f3fd}",\n "runner_tone4": "\u{0001f3c3}\u{0001f3fe}",\n "runner_tone5": "\u{0001f3c3}\u{0001f3ff}",\n "dancer_tone1": "\u{0001f483}\u{0001f3fb}",\n "dancer_tone2": "\u{0001f483}\u{0001f3fc}",\n "dancer_tone3": "\u{0001f483}\u{0001f3fd}",\n "dancer_tone4": "\u{0001f483}\u{0001f3fe}",\n "dancer_tone5": "\u{0001f483}\u{0001f3ff}",\n "bow_tone1": "\u{0001f647}\u{0001f3fb}",\n "bow_tone2": "\u{0001f647}\u{0001f3fc}",\n "bow_tone3": "\u{0001f647}\u{0001f3fd}",\n "bow_tone4": "\u{0001f647}\u{0001f3fe}",\n "bow_tone5": "\u{0001f647}\u{0001f3ff}",\n "information_desk_person_tone1": "\u{0001f481}\u{0001f3fb}",\n "information_desk_person_tone2": "\u{0001f481}\u{0001f3fc}",\n "information_desk_person_tone3": "\u{0001f481}\u{0001f3fd}",\n "information_desk_person_tone4": "\u{0001f481}\u{0001f3fe}",\n "information_desk_person_tone5": "\u{0001f481}\u{0001f3ff}",\n "no_good_tone1": "\u{0001f645}\u{0001f3fb}",\n "no_good_tone2": "\u{0001f645}\u{0001f3fc}",\n "no_good_tone3": "\u{0001f645}\u{0001f3fd}",\n "no_good_tone4": "\u{0001f645}\u{0001f3fe}",\n "no_good_tone5": "\u{0001f645}\u{0001f3ff}",\n "ok_woman_tone1": "\u{0001f646}\u{0001f3fb}",\n "ok_woman_tone2": "\u{0001f646}\u{0001f3fc}",\n "ok_woman_tone3": "\u{0001f646}\u{0001f3fd}",\n "ok_woman_tone4": "\u{0001f646}\u{0001f3fe}",\n "ok_woman_tone5": "\u{0001f646}\u{0001f3ff}",\n "raising_hand_tone1": "\u{0001f64b}\u{0001f3fb}",\n "raising_hand_tone2": "\u{0001f64b}\u{0001f3fc}",\n "raising_hand_tone3": "\u{0001f64b}\u{0001f3fd}",\n "raising_hand_tone4": "\u{0001f64b}\u{0001f3fe}",\n "raising_hand_tone5": "\u{0001f64b}\u{0001f3ff}",\n "person_with_pouting_face_tone1": "\u{0001f64e}\u{0001f3fb}",\n "person_with_pouting_face_tone2": "\u{0001f64e}\u{0001f3fc}",\n "person_with_pouting_face_tone3": "\u{0001f64e}\u{0001f3fd}",\n "person_with_pouting_face_tone4": "\u{0001f64e}\u{0001f3fe}",\n "person_with_pouting_face_tone5": "\u{0001f64e}\u{0001f3ff}",\n "person_frowning_tone1": "\u{0001f64d}\u{0001f3fb}",\n "person_frowning_tone2": "\u{0001f64d}\u{0001f3fc}",\n "person_frowning_tone3": "\u{0001f64d}\u{0001f3fd}",\n "person_frowning_tone4": "\u{0001f64d}\u{0001f3fe}",\n "person_frowning_tone5": "\u{0001f64d}\u{0001f3ff}",\n "haircut_tone1": "\u{0001f487}\u{0001f3fb}",\n "haircut_tone2": "\u{0001f487}\u{0001f3fc}",\n "haircut_tone3": "\u{0001f487}\u{0001f3fd}",\n "haircut_tone4": "\u{0001f487}\u{0001f3fe}",\n "haircut_tone5": "\u{0001f487}\u{0001f3ff}",\n "massage_tone1": "\u{0001f486}\u{0001f3fb}",\n "massage_tone2": "\u{0001f486}\u{0001f3fc}",\n "massage_tone3": "\u{0001f486}\u{0001f3fd}",\n "massage_tone4": "\u{0001f486}\u{0001f3fe}",\n "massage_tone5": "\u{0001f486}\u{0001f3ff}",\n "rowboat_tone1": "\u{0001f6a3}\u{0001f3fb}",\n "rowboat_tone2": "\u{0001f6a3}\u{0001f3fc}",\n "rowboat_tone3": "\u{0001f6a3}\u{0001f3fd}",\n "rowboat_tone4": "\u{0001f6a3}\u{0001f3fe}",\n "rowboat_tone5": "\u{0001f6a3}\u{0001f3ff}",\n "swimmer_tone1": "\u{0001f3ca}\u{0001f3fb}",\n "swimmer_tone2": "\u{0001f3ca}\u{0001f3fc}",\n "swimmer_tone3": "\u{0001f3ca}\u{0001f3fd}",\n "swimmer_tone4": "\u{0001f3ca}\u{0001f3fe}",\n "swimmer_tone5": "\u{0001f3ca}\u{0001f3ff}",\n "surfer_tone1": "\u{0001f3c4}\u{0001f3fb}",\n "surfer_tone2": "\u{0001f3c4}\u{0001f3fc}",\n "surfer_tone3": "\u{0001f3c4}\u{0001f3fd}",\n "surfer_tone4": "\u{0001f3c4}\u{0001f3fe}",\n "surfer_tone5": "\u{0001f3c4}\u{0001f3ff}",\n "bath_tone1": "\u{0001f6c0}\u{0001f3fb}",\n "bath_tone2": "\u{0001f6c0}\u{0001f3fc}",\n "bath_tone3": "\u{0001f6c0}\u{0001f3fd}",\n "bath_tone4": "\u{0001f6c0}\u{0001f3fe}",\n "bath_tone5": "\u{0001f6c0}\u{0001f3ff}",\n "basketball_player_tone1": "\u{000026f9}\u{0001f3fb}",\n "basketball_player_tone2": "\u{000026f9}\u{0001f3fc}",\n "basketball_player_tone3": "\u{000026f9}\u{0001f3fd}",\n "basketball_player_tone4": "\u{000026f9}\u{0001f3fe}",\n "basketball_player_tone5": "\u{000026f9}\u{0001f3ff}",\n "lifter_tone1": "\u{0001f3cb}\u{0001f3fb}",\n "lifter_tone2": "\u{0001f3cb}\u{0001f3fc}",\n "lifter_tone3": "\u{0001f3cb}\u{0001f3fd}",\n "lifter_tone4": "\u{0001f3cb}\u{0001f3fe}",\n "lifter_tone5": "\u{0001f3cb}\u{0001f3ff}",\n "bicyclist_tone1": "\u{0001f6b4}\u{0001f3fb}",\n "bicyclist_tone2": "\u{0001f6b4}\u{0001f3fc}",\n "bicyclist_tone3": "\u{0001f6b4}\u{0001f3fd}",\n "bicyclist_tone4": "\u{0001f6b4}\u{0001f3fe}",\n "bicyclist_tone5": "\u{0001f6b4}\u{0001f3ff}",\n "mountain_bicyclist_tone1": "\u{0001f6b5}\u{0001f3fb}",\n "mountain_bicyclist_tone2": "\u{0001f6b5}\u{0001f3fc}",\n "mountain_bicyclist_tone3": "\u{0001f6b5}\u{0001f3fd}",\n "mountain_bicyclist_tone4": "\u{0001f6b5}\u{0001f3fe}",\n "mountain_bicyclist_tone5": "\u{0001f6b5}\u{0001f3ff}",\n "horse_racing_tone1": "\u{0001f3c7}\u{0001f3fb}",\n "horse_racing_tone2": "\u{0001f3c7}\u{0001f3fc}",\n "horse_racing_tone3": "\u{0001f3c7}\u{0001f3fd}",\n "horse_racing_tone4": "\u{0001f3c7}\u{0001f3fe}",\n "horse_racing_tone5": "\u{0001f3c7}\u{0001f3ff}",\n "spy_tone1": "\u{0001f575}\u{0001f3fb}",\n "spy_tone2": "\u{0001f575}\u{0001f3fc}",\n "spy_tone3": "\u{0001f575}\u{0001f3fd}",\n "spy_tone4": "\u{0001f575}\u{0001f3fe}",\n "spy_tone5": "\u{0001f575}\u{0001f3ff}",\n "tone1": "\u{0001f3fb}",\n "tone2": "\u{0001f3fc}",\n "tone3": "\u{0001f3fd}",\n "tone4": "\u{0001f3fe}",\n "tone5": "\u{0001f3ff}",\n "prince_tone1": "\u{0001f934}\u{0001f3fb}",\n "prince_tone2": "\u{0001f934}\u{0001f3fc}",\n "prince_tone3": "\u{0001f934}\u{0001f3fd}",\n "prince_tone4": "\u{0001f934}\u{0001f3fe}",\n "prince_tone5": "\u{0001f934}\u{0001f3ff}",\n "mrs_claus_tone1": "\u{0001f936}\u{0001f3fb}",\n "mrs_claus_tone2": "\u{0001f936}\u{0001f3fc}",\n "mrs_claus_tone3": "\u{0001f936}\u{0001f3fd}",\n "mrs_claus_tone4": "\u{0001f936}\u{0001f3fe}",\n "mrs_claus_tone5": "\u{0001f936}\u{0001f3ff}",\n "man_in_tuxedo_tone1": "\u{0001f935}\u{0001f3fb}",\n "man_in_tuxedo_tone2": "\u{0001f935}\u{0001f3fc}",\n "man_in_tuxedo_tone3": "\u{0001f935}\u{0001f3fd}",\n "man_in_tuxedo_tone4": "\u{0001f935}\u{0001f3fe}",\n "man_in_tuxedo_tone5": "\u{0001f935}\u{0001f3ff}",\n "shrug_tone1": "\u{0001f937}\u{0001f3fb}",\n "shrug_tone2": "\u{0001f937}\u{0001f3fc}",\n "shrug_tone3": "\u{0001f937}\u{0001f3fd}",\n "shrug_tone4": "\u{0001f937}\u{0001f3fe}",\n "shrug_tone5": "\u{0001f937}\u{0001f3ff}",\n "face_palm_tone1": "\u{0001f926}\u{0001f3fb}",\n "face_palm_tone2": "\u{0001f926}\u{0001f3fc}",\n "face_palm_tone3": "\u{0001f926}\u{0001f3fd}",\n "face_palm_tone4": "\u{0001f926}\u{0001f3fe}",\n "face_palm_tone5": "\u{0001f926}\u{0001f3ff}",\n "pregnant_woman_tone1": "\u{0001f930}\u{0001f3fb}",\n "pregnant_woman_tone2": "\u{0001f930}\u{0001f3fc}",\n "pregnant_woman_tone3": "\u{0001f930}\u{0001f3fd}",\n "pregnant_woman_tone4": "\u{0001f930}\u{0001f3fe}",\n "pregnant_woman_tone5": "\u{0001f930}\u{0001f3ff}",\n "man_dancing_tone1": "\u{0001f57a}\u{0001f3fb}",\n "man_dancing_tone2": "\u{0001f57a}\u{0001f3fc}",\n "man_dancing_tone3": "\u{0001f57a}\u{0001f3fd}",\n "man_dancing_tone4": "\u{0001f57a}\u{0001f3fe}",\n "man_dancing_tone5": "\u{0001f57a}\u{0001f3ff}",\n "selfie_tone1": "\u{0001f933}\u{0001f3fb}",\n "selfie_tone2": "\u{0001f933}\u{0001f3fc}",\n "selfie_tone3": "\u{0001f933}\u{0001f3fd}",\n "selfie_tone4": "\u{0001f933}\u{0001f3fe}",\n "selfie_tone5": "\u{0001f933}\u{0001f3ff}",\n "fingers_crossed_tone1": "\u{0001f91e}\u{0001f3fb}",\n "fingers_crossed_tone2": "\u{0001f91e}\u{0001f3fc}",\n "fingers_crossed_tone3": "\u{0001f91e}\u{0001f3fd}",\n "fingers_crossed_tone4": "\u{0001f91e}\u{0001f3fe}",\n "fingers_crossed_tone5": "\u{0001f91e}\u{0001f3ff}",\n "call_me_tone1": "\u{0001f919}\u{0001f3fb}",\n "call_me_tone2": "\u{0001f919}\u{0001f3fc}",\n "call_me_tone3": "\u{0001f919}\u{0001f3fd}",\n "call_me_tone4": "\u{0001f919}\u{0001f3fe}",\n "call_me_tone5": "\u{0001f919}\u{0001f3ff}",\n "left_facing_fist_tone1": "\u{0001f91b}\u{0001f3fb}",\n "left_facing_fist_tone2": "\u{0001f91b}\u{0001f3fc}",\n "left_facing_fist_tone3": "\u{0001f91b}\u{0001f3fd}",\n "left_facing_fist_tone4": "\u{0001f91b}\u{0001f3fe}",\n "left_facing_fist_tone5": "\u{0001f91b}\u{0001f3ff}",\n "right_facing_fist_tone1": "\u{0001f91c}\u{0001f3fb}",\n "right_facing_fist_tone2": "\u{0001f91c}\u{0001f3fc}",\n "right_facing_fist_tone3": "\u{0001f91c}\u{0001f3fd}",\n "right_facing_fist_tone4": "\u{0001f91c}\u{0001f3fe}",\n "right_facing_fist_tone5": "\u{0001f91c}\u{0001f3ff}",\n "raised_back_of_hand_tone1": "\u{0001f91a}\u{0001f3fb}",\n "raised_back_of_hand_tone2": "\u{0001f91a}\u{0001f3fc}",\n "raised_back_of_hand_tone3": "\u{0001f91a}\u{0001f3fd}",\n "raised_back_of_hand_tone4": "\u{0001f91a}\u{0001f3fe}",\n "raised_back_of_hand_tone5": "\u{0001f91a}\u{0001f3ff}",\n "handshake_tone1": "\u{0001f91d}\u{0001f3fb}",\n "handshake_tone2": "\u{0001f91d}\u{0001f3fc}",\n "handshake_tone3": "\u{0001f91d}\u{0001f3fd}",\n "handshake_tone4": "\u{0001f91d}\u{0001f3fe}",\n "handshake_tone5": "\u{0001f91d}\u{0001f3ff}",\n "cartwheel_tone1": "\u{0001f938}\u{0001f3fb}",\n "cartwheel_tone2": "\u{0001f938}\u{0001f3fc}",\n "cartwheel_tone3": "\u{0001f938}\u{0001f3fd}",\n "cartwheel_tone4": "\u{0001f938}\u{0001f3fe}",\n "cartwheel_tone5": "\u{0001f938}\u{0001f3ff}",\n "wrestlers_tone1": "\u{0001f93c}\u{0001f3fb}",\n "wrestlers_tone2": "\u{0001f93c}\u{0001f3fc}",\n "wrestlers_tone3": "\u{0001f93c}\u{0001f3fd}",\n "wrestlers_tone4": "\u{0001f93c}\u{0001f3fe}",\n "wrestlers_tone5": "\u{0001f93c}\u{0001f3ff}",\n "water_polo_tone1": "\u{0001f93d}\u{0001f3fb}",\n "water_polo_tone2": "\u{0001f93d}\u{0001f3fc}",\n "water_polo_tone3": "\u{0001f93d}\u{0001f3fd}",\n "water_polo_tone4": "\u{0001f93d}\u{0001f3fe}",\n "water_polo_tone5": "\u{0001f93d}\u{0001f3ff}",\n "handball_tone1": "\u{0001f93e}\u{0001f3fb}",\n "handball_tone2": "\u{0001f93e}\u{0001f3fc}",\n "handball_tone3": "\u{0001f93e}\u{0001f3fd}",\n "handball_tone4": "\u{0001f93e}\u{0001f3fe}",\n "handball_tone5": "\u{0001f93e}\u{0001f3ff}",\n "juggling_tone1": "\u{0001f939}\u{0001f3fb}",\n "juggling_tone2": "\u{0001f939}\u{0001f3fc}",\n "juggling_tone3": "\u{0001f939}\u{0001f3fd}",\n "juggling_tone4": "\u{0001f939}\u{0001f3fe}",\n "juggling_tone5": "\u{0001f939}\u{0001f3ff}",\n "speech_left": "\u{0001f5e8}",\n "eject": "\u{000023cf}",\n "gay_pride_flag": "\u{0001f3f3}\u{0001f308}",\n "cowboy": "\u{0001f920}",\n "clown": "\u{0001f921}",\n "nauseated_face": "\u{0001f922}",\n "rofl": "\u{0001f923}",\n "drooling_face": "\u{0001f924}",\n "lying_face": "\u{0001f925}",\n "sneezing_face": "\u{0001f927}",\n "prince": "\u{0001f934}",\n "man_in_tuxedo": "\u{0001f935}",\n "mrs_claus": "\u{0001f936}",\n "face_palm": "\u{0001f926}",\n "shrug": "\u{0001f937}",\n "pregnant_woman": "\u{0001f930}",\n "selfie": "\u{0001f933}",\n "man_dancing": "\u{0001f57a}",\n "call_me": "\u{0001f919}",\n "raised_back_of_hand": "\u{0001f91a}",\n "left_facing_fist": "\u{0001f91b}",\n "right_facing_fist": "\u{0001f91c}",\n "handshake": "\u{0001f91d}",\n "fingers_crossed": "\u{0001f91e}",\n "black_heart": "\u{0001f5a4}",\n "eagle": "\u{0001f985}",\n "duck": "\u{0001f986}",\n "bat": "\u{0001f987}",\n "shark": "\u{0001f988}",\n "owl": "\u{0001f989}",\n "fox": "\u{0001f98a}",\n "butterfly": "\u{0001f98b}",\n "deer": "\u{0001f98c}",\n "gorilla": "\u{0001f98d}",\n "lizard": "\u{0001f98e}",\n "rhino": "\u{0001f98f}",\n "wilted_rose": "\u{0001f940}",\n "croissant": "\u{0001f950}",\n "avocado": "\u{0001f951}",\n "cucumber": "\u{0001f952}",\n "bacon": "\u{0001f953}",\n "potato": "\u{0001f954}",\n "carrot": "\u{0001f955}",\n "french_bread": "\u{0001f956}",\n "salad": "\u{0001f957}",\n "shallow_pan_of_food": "\u{0001f958}",\n "stuffed_flatbread": "\u{0001f959}",\n "champagne_glass": "\u{0001f942}",\n "tumbler_glass": "\u{0001f943}",\n "spoon": "\u{0001f944}",\n "octagonal_sign": "\u{0001f6d1}",\n "shopping_cart": "\u{0001f6d2}",\n "scooter": "\u{0001f6f4}",\n "motor_scooter": "\u{0001f6f5}",\n "canoe": "\u{0001f6f6}",\n "cartwheel": "\u{0001f938}",\n "juggling": "\u{0001f939}",\n "wrestlers": "\u{0001f93c}",\n "boxing_glove": "\u{0001f94a}",\n "martial_arts_uniform": "\u{0001f94b}",\n "water_polo": "\u{0001f93d}",\n "handball": "\u{0001f93e}",\n "goal": "\u{0001f945}",\n "fencer": "\u{0001f93a}",\n "first_place": "\u{0001f947}",\n "second_place": "\u{0001f948}",\n "third_place": "\u{0001f949}",\n "drum": "\u{0001f941}",\n "shrimp": "\u{0001f990}",\n "squid": "\u{0001f991}",\n "egg": "\u{0001f95a}",\n "milk": "\u{0001f95b}",\n "peanuts": "\u{0001f95c}",\n "kiwi": "\u{0001f95d}",\n "pancakes": "\u{0001f95e}",\n "regional_indicator_z": "\u{0001f1ff}",\n "regional_indicator_y": "\u{0001f1fe}",\n "regional_indicator_x": "\u{0001f1fd}",\n "regional_indicator_w": "\u{0001f1fc}",\n "regional_indicator_v": "\u{0001f1fb}",\n "regional_indicator_u": "\u{0001f1fa}",\n "regional_indicator_t": "\u{0001f1f9}",\n "regional_indicator_s": "\u{0001f1f8}",\n "regional_indicator_r": "\u{0001f1f7}",\n "regional_indicator_q": "\u{0001f1f6}",\n "regional_indicator_p": "\u{0001f1f5}",\n "regional_indicator_o": "\u{0001f1f4}",\n "regional_indicator_n": "\u{0001f1f3}",\n "regional_indicator_m": "\u{0001f1f2}",\n "regional_indicator_l": "\u{0001f1f1}",\n "regional_indicator_k": "\u{0001f1f0}",\n "regional_indicator_j": "\u{0001f1ef}",\n "regional_indicator_i": "\u{0001f1ee}",\n "regional_indicator_h": "\u{0001f1ed}",\n "regional_indicator_g": "\u{0001f1ec}",\n "regional_indicator_f": "\u{0001f1eb}",\n "regional_indicator_e": "\u{0001f1ea}",\n "regional_indicator_d": "\u{0001f1e9}",\n "regional_indicator_c": "\u{0001f1e8}",\n "regional_indicator_b": "\u{0001f1e7}",\n "regional_indicator_a": "\u{0001f1e6}",\n ]\n \n static func transform(string: String) -> String {\n let oldString = string as NSString\n var transformedString = string as NSString\n \n let regex = try! NSRegularExpression(pattern: ":([-+\\w]+):", options: [])\n let matches = regex.matches(in: transformedString as String, options: [], range: NSMakeRange(0, transformedString.length))\n \n for result in matches {\n guard result.numberOfRanges == 2 else { continue }\n \n let shortname = oldString.substring(with: result.rangeAt(1))\n if let emoji = values[shortname] {\n transformedString = transformedString.replacingOccurrences(of: ":\(shortname):", with: emoji) as NSString\n }\n }\n \n return transformedString as String\n }\n}\n\n\nEmojione.transform(string: "Tractor: :tractor:")\nEmojione.transform(string: "Rocket.Chat: :rocket: :tractor: :thumbsup: :bomb: :fire: :foobar:")\nEmojione.transform(string: "Regional Indicator A: :regional_indicator_a:")\n
dataset_sample\swift\joypixels_emojione\lib\Emojione.playground\Contents.swift
Contents.swift
Swift
80,028
0.75
0.001616
0.003247
react-lib
115
2023-10-22T05:58:18.437127
GPL-3.0
false
4ab56146e2aff75c6d9d4226bbe8c3c5
//\n// Emojione.swift\n//\n// Created by Rafael Kellermann Streit (@rafaelks) on 10/10/16.\n// Copyright (c) 2016.\n//\n\nimport Foundation\n\nstruct Emojione {\n static let values = [\n <%= mapping %>\n ]\n \n static func transform(string: String) -> String {\n let oldString = string as NSString\n var transformedString = string as NSString\n \n let regex = try! NSRegularExpression(pattern: ":([-+\\w]+):", options: [])\n let matches = regex.matches(in: transformedString as String, options: [], range: NSMakeRange(0, transformedString.length))\n \n for result in matches {\n guard result.numberOfRanges == 2 else { continue }\n \n let shortname = oldString.substring(with: result.rangeAt(1))\n if let emoji = values[shortname] {\n transformedString = transformedString.replacingOccurrences(of: ":\(shortname):", with: emoji) as NSString\n }\n }\n \n return transformedString as String\n }\n}\n
dataset_sample\swift\joypixels_emojione\lib\generator\Emojione.swift
Emojione.swift
Swift
1,029
0.95
0.090909
0.230769
awesome-app
258
2025-02-28T19:36:56.319487
GPL-3.0
false
f2e383d1c4b8ac37246f51bc151d436c
// swift-tools-version:4.0\n// The swift-tools-version declares the minimum version of Swift required to build this package.\nimport PackageDescription\n\nlet package = Package(\n name: "Fastlane",\n products: [\n .library(name: "Fastlane", targets: ["Fastlane"])\n ],\n dependencies: [\n .package(url: "https://github.com/kareman/SwiftShell", .upToNextMajor(from: "5.1.0"))\n ],\n targets: [\n .target(\n name: "Fastlane",\n dependencies: ["SwiftShell"],\n path: "./fastlane/swift",\n exclude: ["Actions.swift", "Plugins.swift", "main.swift", "formatting", "FastlaneSwiftRunner"]\n ),\n ],\n swiftLanguageVersions: [4]\n)\n \n
dataset_sample\swift\linguaggi\swift\ruby\Package.swift
Package.swift
Swift
700
0.95
0
0.095238
node-utils
780
2024-08-12T20:17:09.705339
Apache-2.0
false
120f24c6c7882d303a82c59a7f25e3e3
// swift-tools-version:4.0\n// The swift-tools-version declares the minimum version of Swift required to build this package.\nimport PackageDescription\n\nlet package = Package(\n name: "Fastlane",\n products: [\n .library(name: "Fastlane", targets: ["Fastlane"])\n ],\n dependencies: [\n .package(url: "https://github.com/kareman/SwiftShell", .upToNextMajor(from: "5.1.0"))\n ],\n targets: [\n .target(\n name: "Fastlane",\n dependencies: ["SwiftShell"],\n path: "./fastlane/swift",\n exclude: ["Actions.swift", "Plugins.swift", "main.swift", "formatting", "FastlaneSwiftRunner"]\n ),\n ],\n swiftLanguageVersions: [4]\n)\n \n
dataset_sample\swift\linguaggi\swift\ruby\Package_1.swift
Package_1.swift
Swift
700
0.95
0
0.095238
vue-tools
690
2024-11-22T20:39:13.272645
Apache-2.0
false
120f24c6c7882d303a82c59a7f25e3e3
#!/usr/bin/xcrun swift\n\nimport Foundation\n\nfunc die(msg: String) {\n print("ERROR: \(msg)")\n exit(1)\n}\n\nextension NSXMLElement {\n convenience init(name: String, attributes: [String: String], stringValue string: String? = nil) {\n self.init(name: name, stringValue: string)\n setAttributesWithDictionary(attributes)\n }\n}\n\nlet ud = NSUserDefaults.standardUserDefaults()\nlet sparkleRoot = ud.objectForKey("root") as? String\nlet htmlPath = ud.objectForKey("htmlPath") as? String\nif sparkleRoot == nil || htmlPath == nil {\n die("Missing arguments")\n}\n\nlet enStringsPath = sparkleRoot! + "/Sparkle/en.lproj/Sparkle.strings"\nlet enStringsDict = NSDictionary(contentsOfFile: enStringsPath)\nif enStringsDict == nil {\n die("Invalid English strings")\n}\nlet enStringsDictKeys = enStringsDict!.allKeys\n\nlet dirPath = NSString(string: sparkleRoot! + "/Sparkle")\nlet dirContents = try! NSFileManager.defaultManager().contentsOfDirectoryAtPath(dirPath as String)\nlet css =\n "body { font-family: sans-serif; font-size: 10pt; }" +\n "h1 { font-size: 12pt; }" +\n ".missing { background-color: #FFBABA; color: #D6010E; white-space: pre; }" +\n ".unused { background-color: #BDE5F8; color: #00529B; white-space: pre; }" +\n ".unlocalized { background-color: #FEEFB3; color: #9F6000; white-space: pre; }"\nvar html = NSXMLDocument(rootElement: NSXMLElement(name: "html"))\nhtml.DTD = NSXMLDTD()\nhtml.DTD!.name = html.rootElement()!.name\nhtml.characterEncoding = "UTF-8"\nhtml.documentContentKind = NSXMLDocumentContentKind.XHTMLKind\nvar body = NSXMLElement(name: "body")\nvar head = NSXMLElement(name: "head")\nhtml.rootElement()!.addChild(head)\nhtml.rootElement()!.addChild(body)\nhead.addChild(NSXMLElement(name: "meta", attributes: ["charset": html.characterEncoding!]))\nhead.addChild(NSXMLElement(name: "title", stringValue: "Sparkle Localizations Report"))\nhead.addChild(NSXMLElement(name: "style", stringValue: css))\n\nlet locale = NSLocale.currentLocale()\nfor dirEntry in dirContents {\n if NSString(string: dirEntry).pathExtension != "lproj" || dirEntry == "en.lproj" {\n continue\n }\n\n let lang = locale.displayNameForKey(NSLocaleLanguageCode, value: NSString(string: dirEntry).stringByDeletingPathExtension)\n body.addChild(NSXMLElement(name: "h1", stringValue: "\(dirEntry) (\(lang!))"))\n\n let stringsPath = NSString(string: dirPath.stringByAppendingPathComponent(dirEntry)).stringByAppendingPathComponent("Sparkle.strings")\n let stringsDict = NSDictionary(contentsOfFile: stringsPath)\n if stringsDict == nil {\n die("Invalid strings file \(dirEntry)")\n continue\n }\n\n var missing: [String] = []\n var unlocalized: [String] = []\n var unused: [String] = []\n\n for key in enStringsDictKeys {\n let str = stringsDict?.objectForKey(key) as? String\n if str == nil {\n missing.append(key as! String)\n } else if let enStr = enStringsDict?.objectForKey(key) as? String {\n if enStr == str {\n unlocalized.append(key as! String)\n }\n }\n }\n\n let stringsDictKeys = stringsDict!.allKeys\n for key in stringsDictKeys {\n if enStringsDict?.objectForKey(key) == nil {\n unused.append(key as! String)\n }\n }\n\n let sorter = { (s1: String, s2: String) -> Bool in\n return s1 < s2\n }\n missing.sortInPlace(sorter)\n unlocalized.sortInPlace(sorter)\n unused.sortInPlace(sorter)\n\n let addRow = { (prefix: String, cssClass: String, key: String) -> Void in\n body.addChild(NSXMLElement(name: "span", attributes: ["class": cssClass], stringValue: [prefix, key].joinWithSeparator(" ") + "\n"))\n }\n\n for key in missing {\n addRow("Missing", "missing", key)\n }\n for key in unlocalized {\n addRow("Unlocalized", "unlocalized", key)\n }\n for key in unused {\n addRow("Unused", "unused", key)\n }\n}\n\nvar err: NSError?\nif !html.XMLData.writeToFile(htmlPath!, atomically: true) {\n die("Can't write report: \(err)")\n}\n
dataset_sample\swift\matryer_xbar\archive\bitbar\App\Vendor\Sparkle\Sparkle\CheckLocalizations.swift
CheckLocalizations.swift
Swift
4,028
0.95
0.147826
0.010101
awesome-app
399
2023-10-06T15:30:31.498463
MIT
false
fd82c3dadf827e524cb5205bb72b9de0
//\n// CustomFormatLogHandler.swift\n// MullvadVPN\n//\n// Created by pronebird on 02/08/2020.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport Logging\n\npublic struct CustomFormatLogHandler: LogHandler {\n public var metadata: Logger.Metadata = [:]\n public var logLevel: Logger.Level = .debug\n\n private let label: String\n private let streams: [TextOutputStream]\n\n public init(label: String, streams: [TextOutputStream]) {\n self.label = label\n self.streams = streams\n }\n\n public subscript(metadataKey metadataKey: String) -> Logger.Metadata.Value? {\n get {\n metadata[metadataKey]\n }\n set(newValue) {\n metadata[metadataKey] = newValue\n }\n }\n\n // swiftlint:disable:next function_parameter_count\n public func log(\n level: Logger.Level,\n message: Logger.Message,\n metadata: Logger.Metadata?,\n source: String,\n file: String,\n function: String,\n line: UInt\n ) {\n let mergedMetadata = self.metadata\n .merging(metadata ?? [:]) { _, rhs -> Logger.MetadataValue in\n rhs\n }\n let prettyMetadata = Self.formatMetadata(mergedMetadata)\n let metadataOutput = prettyMetadata.isEmpty ? "" : " \(prettyMetadata)"\n let timestamp = Date().logFormatted\n let formattedMessage = "[\(timestamp)][\(label)][\(level)]\(metadataOutput) \(message)\n"\n\n for var stream in streams {\n stream.write(formattedMessage)\n }\n }\n\n private static func formatMetadata(_ metadata: Logger.Metadata) -> String {\n metadata.map { "\($0)=\($1)" }.joined(separator: " ")\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadLogging\CustomFormatLogHandler.swift
CustomFormatLogHandler.swift
Swift
1,723
0.95
0.033333
0.153846
python-kit
654
2024-08-31T00:31:59.257049
GPL-3.0
false
6180bb223238a88f19242c8e47212d92
//\n// Date+LogFormat.swift\n// LogFormatting\n//\n// Created by pronebird on 09/09/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\n\nextension Date {\n public var logFormatted: String {\n let formatter = DateFormatter()\n\n formatter.dateFormat = "dd/MM/yyyy @ HH:mm:ss"\n formatter.locale = Locale(identifier: "en_US_POSIX")\n formatter.timeZone = TimeZone(abbreviation: "UTC")\n\n return formatter.string(from: self)\n }\n\n public var logFileFormatted: String {\n let formatter = DateFormatter()\n\n formatter.dateFormat = "dd-MM-yyyy'T'HH:mm:ss"\n formatter.locale = Locale(identifier: "en_US_POSIX")\n formatter.timeZone = TimeZone(abbreviation: "UTC")\n\n return formatter.string(from: self)\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadLogging\Date+LogFormat.swift
Date+LogFormat.swift
Swift
805
0.95
0
0.291667
react-lib
979
2024-06-03T13:28:21.061304
BSD-3-Clause
false
411f13a4f23c3d86da2bb60e36ae5ec6
//\n// Error+LogFormat.swift\n// MullvadLogging\n//\n// Created by pronebird on 26/09/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n\nextension Error {\n public func logFormatError() -> String {\n let nsError = self as NSError\n var message = ""\n\n let description = (self as? CustomErrorDescriptionProtocol)?\n .customErrorDescription ?? localizedDescription\n\n message += "\(description) (domain = \(nsError.domain), code = \(nsError.code))"\n\n return message\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadLogging\Error+LogFormat.swift
Error+LogFormat.swift
Swift
571
0.95
0
0.368421
node-utils
260
2025-05-18T07:04:30.181546
BSD-3-Clause
false
a83dc7223ccdc0d3d4b7273faaf65fce
//\n// LogFileOutputStream.swift\n// MullvadVPN\n//\n// Created by pronebird on 02/08/2020.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n\nclass LogFileOutputStream: TextOutputStream, @unchecked Sendable {\n private let queue = DispatchQueue(label: "LogFileOutputStreamQueue", qos: .utility)\n\n private let baseFileURL: URL\n private var fileURL: URL\n private let encoding: String.Encoding\n private let maximumBufferCapacity: Int\n private let fileHeader: String\n private let fileSizeLimit: UInt64\n private let newLineChunkReadSize: Int\n\n /// Interval used for reopening the log file descriptor in the event of failure to open it in\n /// the first place, or when writing to it.\n private let reopenFileLogInterval: Duration\n\n private var state: State = .closed {\n didSet {\n switch (oldValue, state) {\n case (.opened, .waitingToReopen), (.closed, .waitingToReopen):\n startTimer()\n\n case (.waitingToReopen, .opened), (.waitingToReopen, .closed):\n stopTimer()\n\n default:\n break\n }\n }\n }\n\n /// Shorthand to get the file header in a `Data` writeable format\n private var headerData: Data { "\(fileHeader)\n".data(using: encoding, allowLossyConversion: true)! }\n\n private var timer: DispatchSourceTimer?\n private var buffer = Data()\n\n private enum State {\n case closed\n case opened(FileHandle)\n case waitingToReopen\n }\n\n init(\n fileURL: URL,\n header: String,\n fileSizeLimit: UInt64 = ApplicationConfiguration.logMaximumFileSize,\n encoding: String.Encoding = .utf8,\n maxBufferCapacity: Int = 16 * 1024,\n reopenFileLogInterval: Duration = .seconds(5),\n newLineChunkReadSize: Int = 35\n ) {\n self.fileURL = fileURL\n self.fileHeader = header\n self.fileSizeLimit = fileSizeLimit\n self.encoding = encoding\n self.maximumBufferCapacity = maxBufferCapacity\n self.reopenFileLogInterval = reopenFileLogInterval\n self.newLineChunkReadSize = newLineChunkReadSize\n\n baseFileURL = fileURL.deletingPathExtension()\n }\n\n deinit {\n stopTimer()\n }\n\n func write(_ string: String) {\n queue.async {\n self.writeOnQueue(string)\n }\n }\n\n /// Waits for write operations to finish by issuing a synchronous closure.\n /// - Note: This function is mainly used in unit tests to facilitate acting\n /// on disk writes. It should typically not be used in production code.\n func synchronize() {\n queue.sync {}\n }\n\n private func writeOnQueue(_ string: String) {\n dispatchPrecondition(condition: .onQueue(queue))\n guard let data = string.data(using: encoding) else { return }\n\n switch state {\n case .closed:\n do {\n let fileHandle = try openFileWithHeader(fileHeader)\n state = .opened(fileHandle)\n try write(fileHandle: fileHandle, data: data)\n } catch {\n bufferData(data)\n state = .waitingToReopen\n }\n\n case let .opened(fileHandle):\n do {\n try write(fileHandle: fileHandle, data: data)\n } catch {\n bufferData(data)\n state = .waitingToReopen\n }\n\n case .waitingToReopen:\n bufferData(data)\n }\n }\n\n private func write(fileHandle: FileHandle, data: Data) throws {\n dispatchPrecondition(condition: .onQueue(queue))\n\n let incomingDataSize = UInt64(data.count)\n\n // Make sure incoming data chunks are not larger than the file size limit.\n // Failure to handle this leads to data neither being written nor buffered/trimmed.\n guard incomingDataSize <= fileSizeLimit else {\n throw POSIXError(.EDQUOT)\n }\n\n let predictedFileSize = try fileHandle.offset() + incomingDataSize\n\n // Truncate file in half if threshold has been met, otherwise just write.\n if predictedFileSize >= fileSizeLimit {\n try truncateFileInHalf(fileHandle: fileHandle)\n }\n\n try fileHandle.write(contentsOf: data)\n }\n\n private func truncateFileInHalf(fileHandle: FileHandle) throws {\n let fileCenterOffset = UInt64(fileSizeLimit / 2)\n\n try fileHandle.seek(toOffset: fileCenterOffset)\n\n /// Advance the file offset to the next line (delimited by a \n) to make the log\n /// truncation appear more user friendly by not potentially cutting a log line in half\n try fileHandle.readUntilNextLineBreak(readSize: UInt64(newLineChunkReadSize), sizeLimit: fileSizeLimit)\n\n let fileLastHalf = fileHandle.availableData\n\n try fileHandle.truncate(atOffset: 0)\n try fileHandle.write(contentsOf: headerData)\n try fileHandle.write(contentsOf: fileLastHalf)\n }\n\n private func openFile() throws -> FileHandle {\n let oflag: Int32 = O_RDWR | O_CREAT\n let mode: mode_t = S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH\n\n let fd = fileURL.path.withCString { Darwin.open($0, oflag, mode) }\n\n if fd == -1 {\n let code = POSIXErrorCode(rawValue: errno)!\n throw POSIXError(code)\n } else {\n return FileHandle(fileDescriptor: fd, closeOnDealloc: true)\n }\n }\n\n private func startTimer() {\n timer?.cancel()\n\n let timer = DispatchSource.makeTimerSource(queue: queue)\n timer.setEventHandler { [weak self] in\n self?.reopenFile()\n }\n timer.schedule(\n wallDeadline: .now() + reopenFileLogInterval,\n repeating: reopenFileLogInterval.timeInterval\n )\n timer.activate()\n\n self.timer = timer\n }\n\n private func stopTimer() {\n timer?.cancel()\n timer = nil\n }\n\n private func openFileWithHeader(_ header: String) throws -> FileHandle {\n let fileHandle = try openFile()\n\n try write(fileHandle: fileHandle, data: headerData)\n\n return fileHandle\n }\n\n private func reopenFile() {\n do {\n // Write a message indicating that the file was reopened.\n let fileHandle =\n try openFileWithHeader("<Log file re-opened after failure. Buffered \(buffer.count) bytes of messages>")\n\n // Write all buffered messages.\n if !buffer.isEmpty {\n try write(fileHandle: fileHandle, data: buffer)\n buffer.removeAll()\n }\n\n state = .opened(fileHandle)\n } catch {\n state = .waitingToReopen\n }\n }\n\n private func bufferData(_ data: Data) {\n buffer.append(data)\n\n if buffer.count > maximumBufferCapacity {\n buffer.removeFirst(buffer.count - maximumBufferCapacity)\n }\n }\n}\n\nfileprivate extension FileHandle {\n /// Reads into the file until the next "\n" is reached.\n ///\n /// The file pointer will be set to the offset after the first "\n"\n /// character encountered. If the attempted read would go past\n /// the `sizeLimit` no reads are attempted and the file pointer\n /// will not be moved.\n ///\n func readUntilNextLineBreak(readSize: UInt64, sizeLimit: UInt64) throws {\n let currentOffset = try offset()\n // Ignore Integer overflow checks, files would not reach that size in the first place\n // Do not try to read past the end of the file\n guard currentOffset + readSize <= sizeLimit else { return }\n let readBytes = try read(upToCount: Int(readSize))\n\n // Find the first instance of the "\n" character\n if let newLineIndex = readBytes?.firstIndex(of: 10) {\n let offsetAfterNewLine = currentOffset + UInt64(newLineIndex) + 1\n try seek(toOffset: offsetAfterNewLine)\n return\n } else {\n // Keep reading until either a "\n" character, or the end of the file are found\n try readUntilNextLineBreak(readSize: readSize, sizeLimit: sizeLimit)\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadLogging\LogFileOutputStream.swift
LogFileOutputStream.swift
Swift
8,166
0.95
0.139442
0.151961
vue-tools
592
2024-08-11T22:55:11.184407
Apache-2.0
false
f077a9d9841dd48b7aebd559ae5a08d6
//\n// Logger+Errors.swift\n// MullvadVPN\n//\n// Created by pronebird on 02/08/2020.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport Logging\nimport MullvadTypes\n\nextension Logger {\n public func error(\n error: some Error,\n message: @autoclosure () -> String? = nil,\n metadata: @autoclosure () -> Logger.Metadata? = nil,\n source: @autoclosure () -> String? = nil,\n file: String = #file,\n function: String = #function,\n line: UInt = #line\n ) {\n var lines = [String]()\n var errors = [Error]()\n\n if let prefixMessage = message() {\n lines.append(prefixMessage)\n errors.append(error)\n } else {\n lines.append(error.logFormatError())\n }\n\n errors.append(contentsOf: error.underlyingErrorChain)\n\n for error in errors {\n lines.append("Caused by: \(error.logFormatError())")\n }\n\n log(\n level: .error,\n Message(stringLiteral: lines.joined(separator: "\n")),\n metadata: metadata(),\n source: source(),\n file: file,\n function: function,\n line: line\n )\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadLogging\Logger+Errors.swift
Logger+Errors.swift
Swift
1,229
0.95
0.122449
0.162791
awesome-app
585
2023-10-25T13:17:23.438316
MIT
false
82851a24a20a2acc753308d1f0d698b7
//\n// Logging.swift\n// MullvadVPN\n//\n// Created by pronebird on 02/08/2020.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\n@_exported import Logging\nimport MullvadTypes\n\nprivate enum LoggerOutput {\n case fileOutput(_ fileOutput: LogFileOutputStream)\n case osLogOutput(_ subsystem: String)\n}\n\npublic struct LoggerBuilder {\n private(set) var logRotationErrors: [Error] = []\n private var outputs: [LoggerOutput] = []\n\n public var metadata: Logger.Metadata = [:]\n public var logLevel: Logger.Level = .debug\n public var header: String\n\n public init(header: String) {\n self.header = header\n }\n\n public mutating func addFileOutput(fileURL: URL) {\n let logsDirectoryURL = fileURL.deletingLastPathComponent()\n\n try? FileManager.default.createDirectory(\n at: logsDirectoryURL,\n withIntermediateDirectories: false,\n attributes: nil\n )\n\n do {\n try LogRotation.rotateLogs(logDirectory: logsDirectoryURL, options: LogRotation.Options(\n storageSizeLimit: 2_000_000, // 2 MB\n oldestAllowedDate: Date(timeIntervalSinceNow: -Duration.days(7).timeInterval)\n ))\n } catch {\n logRotationErrors.append(error)\n }\n\n outputs.append(.fileOutput(LogFileOutputStream(fileURL: fileURL, header: header)))\n }\n\n public mutating func addOSLogOutput(subsystem: String) {\n outputs.append(.osLogOutput(subsystem))\n }\n\n public func install() {\n LoggingSystem.bootstrap { label -> LogHandler in\n let logHandlers: [LogHandler] = outputs.map { output in\n switch output {\n case let .fileOutput(stream):\n return CustomFormatLogHandler(label: label, streams: [stream])\n\n case let .osLogOutput(subsystem):\n return OSLogHandler(subsystem: subsystem, category: label)\n }\n }\n\n if logHandlers.isEmpty {\n return SwiftLogNoOpLogHandler()\n } else {\n var multiplex = MultiplexLogHandler(logHandlers)\n multiplex.metadata = metadata\n multiplex.logLevel = logLevel\n return multiplex\n }\n }\n\n if !logRotationErrors.isEmpty {\n let rotationLogger = Logger(label: "LogRotation")\n\n for error in logRotationErrors {\n rotationLogger.error(error: error, message: error.localizedDescription)\n }\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadLogging\Logging.swift
Logging.swift
Swift
2,582
0.95
0.082353
0.1
python-kit
689
2023-07-18T14:05:59.478817
BSD-3-Clause
false
879d7936e73a76c0cd3a7ad2211b2379
//\n// LogRotation.swift\n// MullvadVPN\n//\n// Created by pronebird on 02/08/2020.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n\npublic enum LogRotation {\n private struct LogData {\n var path: URL\n var size: UInt64\n var creationDate: Date\n }\n\n public struct Options {\n let storageSizeLimit: Int\n let oldestAllowedDate: Date\n\n /// Options for log rotation, defining how logs should be retained.\n ///\n /// - Parameter storageSizeLimit: Storage size limit in bytes.\n /// - Parameter oldestAllowedDate: Oldest allowed date.\n public init(storageSizeLimit: Int, oldestAllowedDate: Date) {\n self.storageSizeLimit = storageSizeLimit\n self.oldestAllowedDate = oldestAllowedDate\n }\n }\n\n public enum Error: LocalizedError, WrappingError {\n case rotateLogFiles(Swift.Error)\n\n public var errorDescription: String? {\n switch self {\n case .rotateLogFiles:\n return "Failure to rotate logs"\n }\n }\n\n public var underlyingError: Swift.Error? {\n switch self {\n case let .rotateLogFiles(error):\n return error\n }\n }\n }\n\n public static func rotateLogs(logDirectory: URL, options: Options) throws {\n let fileManager = FileManager.default\n\n do {\n // Filter out all log files in directory.\n let logPaths: [URL] = (try fileManager.contentsOfDirectory(\n atPath: logDirectory.relativePath\n )).compactMap { file in\n if file.split(separator: ".").last == "log" {\n logDirectory.appendingPathComponent(file)\n } else {\n nil\n }\n }\n\n // Convert logs into objects with necessary meta data.\n let logs = try logPaths.map { logPath in\n let attributes = try fileManager.attributesOfItem(atPath: logPath.relativePath)\n let size = (attributes[.size] as? UInt64) ?? 0\n let creationDate = (attributes[.creationDate] as? Date) ?? Date.distantPast\n\n return LogData(path: logPath, size: size, creationDate: creationDate)\n }.sorted { log1, log2 in\n log1.creationDate > log2.creationDate\n }\n\n try deleteLogs(dateThreshold: options.oldestAllowedDate, sizeThreshold: options.storageSizeLimit, in: logs)\n } catch {\n throw Error.rotateLogFiles(error)\n }\n }\n\n private static func deleteLogs(dateThreshold: Date, sizeThreshold: Int, in logs: [LogData]) throws {\n let fileManager = FileManager.default\n\n var fileSizes = UInt64.zero\n for log in logs {\n fileSizes += log.size\n\n let logIsTooOld = log.creationDate < dateThreshold\n let logCapacityIsExceeded = fileSizes > sizeThreshold\n\n if logIsTooOld || logCapacityIsExceeded {\n try fileManager.removeItem(at: log.path)\n }\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadLogging\LogRotation.swift
LogRotation.swift
Swift
3,146
0.95
0.122449
0.158537
react-lib
454
2024-11-16T19:17:29.730716
Apache-2.0
false
8bf4d7c58b6d88b51ab86a571a7e5656
//\n// OSLogHandler.swift\n// OSLogHandler\n//\n// Created by pronebird on 16/08/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport Logging\nimport os\n\npublic struct OSLogHandler: LogHandler {\n public var metadata: Logging.Logger.Metadata = [:]\n public var logLevel: Logging.Logger.Level = .debug\n\n private let label: String\n private let osLog: OSLog\n\n private struct RegistryKey: Hashable {\n let subsystem: String\n let category: String\n }\n\n nonisolated(unsafe) private static var osLogRegistry: [RegistryKey: OSLog] = [:]\n private static let registryLock = NSLock()\n\n private static func getOSLog(subsystem: String, category: String) -> OSLog {\n registryLock.lock()\n defer { registryLock.unlock() }\n\n let key = RegistryKey(subsystem: subsystem, category: category)\n if let log = osLogRegistry[key] {\n return log\n } else {\n let newLog = OSLog(subsystem: subsystem, category: category)\n osLogRegistry[key] = newLog\n return newLog\n }\n }\n\n public init(subsystem: String, category: String) {\n label = category\n osLog = OSLogHandler.getOSLog(subsystem: subsystem, category: category)\n }\n\n public subscript(metadataKey metadataKey: String) -> Logging.Logger.Metadata.Value? {\n get {\n metadata[metadataKey]\n }\n set(newValue) {\n metadata[metadataKey] = newValue\n }\n }\n\n // swiftlint:disable:next function_parameter_count\n public func log(\n level: Logging.Logger.Level,\n message: Logging.Logger.Message,\n metadata: Logging.Logger.Metadata?,\n source: String,\n file: String,\n function: String,\n line: UInt\n ) {\n let mergedMetadata = self.metadata\n .merging(metadata ?? [:]) { _, rhs -> Logging.Logger.MetadataValue in\n rhs\n }\n let prettyMetadata = Self.formatMetadata(mergedMetadata)\n let logMessage = prettyMetadata.isEmpty ? message : "\(prettyMetadata) \(message)"\n\n os_log("%{public}s", log: osLog, type: level.osLogType, "\(logMessage)")\n }\n\n private static func formatMetadata(_ metadata: Logging.Logger.Metadata) -> String {\n metadata.map { "\($0)=\($1)" }.joined(separator: " ")\n }\n}\n\nprivate extension Logging.Logger.Level {\n var osLogType: OSLogType {\n switch self {\n case .trace, .debug:\n // Console app does not output .debug logs, use .info instead.\n return .info\n case .info, .notice, .warning:\n return .info\n case .error, .critical:\n return .error\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadLogging\OSLogHandler.swift
OSLogHandler.swift
Swift
2,731
0.95
0.032258
0.1125
vue-tools
416
2023-08-18T01:48:41.800832
GPL-3.0
false
c4c973d15ead6058e021a5adb29f96ba
//\n// TimeInterval+Timeout.swift\n// MullvadMockData\n//\n// Created by Jon Petersson on 2024-06-19.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nextension TimeInterval {\n struct UnitTest {\n static let timeout: TimeInterval = 60\n static let invertedTimeout: TimeInterval = 0.5\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\Extensions\TimeInterval+Timeout.swift
TimeInterval+Timeout.swift
Swift
320
0.8
0
0.538462
awesome-app
324
2023-11-06T20:32:08.346524
BSD-3-Clause
false
2a75035e1bc71d4e2d03ef4b542fef62
//\n// AccessMethodRepository+Stub.swift\n// MullvadRESTTests\n//\n// Created by Mojgan on 2024-01-02.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Combine\nimport MullvadSettings\n\npublic struct AccessMethodRepositoryStub: AccessMethodRepositoryDataSource, @unchecked Sendable {\n public var directAccess: PersistentAccessMethod\n\n public var accessMethodsPublisher: AnyPublisher<[PersistentAccessMethod], Never> {\n passthroughSubject.eraseToAnyPublisher()\n }\n\n let passthroughSubject: CurrentValueSubject<[PersistentAccessMethod], Never> = CurrentValueSubject([])\n\n public init(accessMethods: [PersistentAccessMethod]) {\n directAccess = accessMethods.first(where: { $0.kind == .direct })!\n passthroughSubject.send(accessMethods)\n }\n\n public func fetchAll() -> [PersistentAccessMethod] {\n passthroughSubject.value\n }\n\n public func saveLastReachable(_ method: PersistentAccessMethod) {}\n\n public func fetchLastReachable() -> PersistentAccessMethod {\n directAccess\n }\n\n public func infoHeaderConfig(for id: UUID) -> InfoHeaderConfig? {\n nil\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadREST\AccessMethodRepository+Stub.swift
AccessMethodRepository+Stub.swift
Swift
1,146
0.95
0.025641
0.233333
react-lib
340
2025-06-16T15:21:57.441569
Apache-2.0
false
2454d3605806b86126eb6ba0e2bf76ea
//\n// AccessTokenManager+Stubs.swift\n// MullvadVPNTests\n//\n// Created by Marco Nikic on 2023-10-03.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadREST\nimport MullvadTypes\n\nstruct AccessTokenManagerStub: RESTAccessTokenManagement {\n func getAccessToken(\n accountNumber: String,\n completionHandler: @escaping ProxyCompletionHandler<REST.AccessTokenData>\n ) -> Cancellable {\n AnyCancellable()\n }\n\n func invalidateAllTokens() {}\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadREST\AccessTokenManager+Stubs.swift
AccessTokenManager+Stubs.swift
Swift
512
0.95
0
0.368421
node-utils
586
2023-09-21T13:50:14.324727
MIT
false
3c34e8c2a3cd63330e4cfa4303ac161a
//\n// AccountsProxy+Stubs.swift\n// MullvadVPNTests\n//\n// Created by Marco Nikic on 2023-10-03.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadREST\nimport MullvadTypes\n\nstruct AccountProxyStubError: Error {}\n\nstruct AccountsProxyStub: RESTAccountHandling {\n var createAccountResult: Result<NewAccountData, Error> = .failure(AccountProxyStubError())\n var deleteAccountResult: Result<Void, Error> = .failure(AccountProxyStubError())\n func createAccount(\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<NewAccountData>\n ) -> Cancellable {\n completion(createAccountResult)\n return AnyCancellable()\n }\n\n func getAccountData(\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Account>\n ) -> Cancellable {\n completion(.success(Account(\n id: accountNumber,\n expiry: Calendar.current.date(byAdding: .day, value: 38, to: Date())!,\n maxDevices: 1,\n canAddDevices: true\n )))\n return AnyCancellable()\n }\n\n func deleteAccount(\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Void>\n ) -> Cancellable {\n completion(deleteAccountResult)\n return AnyCancellable()\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadREST\AccountsProxy+Stubs.swift
AccountsProxy+Stubs.swift
Swift
1,430
0.95
0
0.162791
awesome-app
945
2024-06-10T00:11:12.577152
BSD-3-Clause
false
53897effe88da31e3b868251f1976a51
//\n// APIProxy+Stubs.swift\n// MullvadVPNTests\n//\n// Created by Marco Nikic on 2023-10-03.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadREST\nimport MullvadTypes\nimport WireGuardKitTypes\n\nstruct APIProxyStub: APIQuerying {\n func getAddressList(\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping ProxyCompletionHandler<[AnyIPEndpoint]>\n ) -> Cancellable {\n AnyCancellable()\n }\n\n func getRelays(\n etag: String?,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping ProxyCompletionHandler<REST.ServerRelaysCacheResponse>\n ) -> Cancellable {\n AnyCancellable()\n }\n\n func createApplePayment(\n accountNumber: String,\n receiptString: Data\n ) -> any RESTRequestExecutor<REST.CreateApplePaymentResponse> {\n RESTRequestExecutorStub<REST.CreateApplePaymentResponse>(success: {\n .timeAdded(42, .distantFuture)\n })\n }\n\n func sendProblemReport(\n _ body: ProblemReportRequest,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping ProxyCompletionHandler<Void>\n ) -> Cancellable {\n AnyCancellable()\n }\n\n func submitVoucher(\n voucherCode: String,\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping ProxyCompletionHandler<REST.SubmitVoucherResponse>\n ) -> Cancellable {\n AnyCancellable()\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadREST\APIProxy+Stubs.swift
APIProxy+Stubs.swift
Swift
1,501
0.95
0
0.142857
vue-tools
918
2025-01-25T22:27:03.043018
MIT
false
356addcb6c356b2480c389b8013b8ea2
//\n// DevicesProxy+Stubs.swift\n// MullvadVPNTests\n//\n// Created by Marco Nikic on 2023-10-03.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadREST\nimport MullvadTypes\nimport WireGuardKitTypes\n\nstruct DevicesProxyStubError: Error {}\n\nstruct DevicesProxyStub: DeviceHandling {\n var deviceResult: Result<Device, Error> = .failure(DevicesProxyStubError())\n func getDevice(\n accountNumber: String,\n identifier: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Device>\n ) -> Cancellable {\n completion(deviceResult)\n return AnyCancellable()\n }\n\n func getDevices(\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<[Device]>\n ) -> Cancellable {\n switch deviceResult {\n case let .success(success):\n completion(.success([success]))\n case let .failure(failure):\n completion(.failure(failure))\n }\n return AnyCancellable()\n }\n\n func createDevice(\n accountNumber: String,\n request: REST.CreateDeviceRequest,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Device>\n ) -> Cancellable {\n completion(deviceResult)\n return AnyCancellable()\n }\n\n func deleteDevice(\n accountNumber: String,\n identifier: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Bool>\n ) -> Cancellable {\n completion(.success(true))\n return AnyCancellable()\n }\n\n func rotateDeviceKey(\n accountNumber: String,\n identifier: String,\n publicKey: PublicKey,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Device>\n ) -> Cancellable {\n completion(deviceResult)\n return AnyCancellable()\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadREST\DevicesProxy+Stubs.swift
DevicesProxy+Stubs.swift
Swift
1,993
0.95
0.013889
0.107692
vue-tools
314
2024-03-07T20:11:58.011813
BSD-3-Clause
false
679b97af7dc04ff617094de7f781cd75
//\n// MockProxyFactory.swift\n// MullvadMockData\n//\n// Created by Mojgan on 2024-05-03.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadREST\nimport MullvadRustRuntime\nimport MullvadTypes\nimport WireGuardKitTypes\n\npublic struct MockProxyFactory: ProxyFactoryProtocol {\n public var configuration: REST.AuthProxyConfiguration\n\n public func createAPIProxy() -> any APIQuerying {\n REST.APIProxy(configuration: configuration)\n }\n\n public func createAccountsProxy() -> any RESTAccountHandling {\n AccountsProxyStub(createAccountResult: .success(.mockValue()))\n }\n\n public func createDevicesProxy() -> any DeviceHandling {\n DevicesProxyStub(deviceResult: .success(Device.mock(publicKey: PrivateKey().publicKey)))\n }\n\n public static func makeProxyFactory(\n transportProvider: any RESTTransportProvider,\n apiTransportProvider: any APITransportProviderProtocol,\n addressCache: REST.AddressCache\n ) -> any ProxyFactoryProtocol {\n let basicConfiguration = REST.ProxyConfiguration(\n transportProvider: transportProvider,\n apiTransportProvider: apiTransportProvider,\n addressCacheStore: addressCache\n )\n\n let authenticationProxy = REST.AuthenticationProxy(\n configuration: basicConfiguration\n )\n let accessTokenManager = REST.AccessTokenManager(\n authenticationProxy: authenticationProxy\n )\n\n let authConfiguration = REST.AuthProxyConfiguration(\n proxyConfiguration: basicConfiguration,\n accessTokenManager: accessTokenManager\n )\n\n return MockProxyFactory(configuration: authConfiguration)\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadREST\MockProxyFactory.swift
MockProxyFactory.swift
Swift
1,740
0.95
0
0.152174
node-utils
206
2024-09-07T04:32:33.446621
MIT
false
e84b03ddf5fb5a4a9c26cd2c37d91eb3
//\n// MockRelayCache.swift\n// MullvadVPN\n//\n// Created by Mojgan on 2025-03-10.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\nimport Foundation\n@testable import MullvadREST\n\npublic struct MockRelayCache: RelayCacheProtocol {\n public init() {}\n\n public func read() throws -> MullvadREST.StoredRelays {\n try .init(\n cachedRelays: CachedRelays(\n relays: ServerRelaysResponseStubs.sampleRelays,\n updatedAt: Date()\n )\n )\n }\n\n public func readPrebundledRelays() throws -> MullvadREST.StoredRelays {\n try self.read()\n }\n\n public func write(record: MullvadREST.StoredRelays) throws {}\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadREST\MockRelayCache.swift
MockRelayCache.swift
Swift
689
0.95
0.071429
0.291667
python-kit
546
2025-06-11T13:00:08.390750
MIT
false
492aece0c392d56b88c1e71acc359968
//\n// RelaySelectorStub.swift\n// PacketTunnelCoreTests\n//\n// Created by pronebird on 05/09/2023.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadREST\nimport MullvadSettings\nimport MullvadTypes\nimport WireGuardKitTypes\n\n/// Relay selector stub that accepts a block that can be used to provide custom implementation.\npublic final class RelaySelectorStub: RelaySelectorProtocol {\n public let relayCache: any RelayCacheProtocol\n\n var selectedRelaysResult: (UInt) throws -> SelectedRelays\n var candidatesResult: (() throws -> RelayCandidates)?\n\n init(\n relayCache: RelayCacheProtocol = MockRelayCache(),\n selectedRelaysResult: @escaping (UInt) throws -> SelectedRelays,\n candidatesResult: (() throws -> RelayCandidates)? = nil\n ) {\n self.relayCache = relayCache\n self.selectedRelaysResult = selectedRelaysResult\n self.candidatesResult = candidatesResult\n }\n\n public func selectRelays(\n tunnelSettings: LatestTunnelSettings,\n connectionAttemptCount: UInt\n ) throws -> SelectedRelays {\n return try selectedRelaysResult(connectionAttemptCount)\n }\n\n public func findCandidates(\n tunnelSettings: LatestTunnelSettings\n ) throws -> RelayCandidates {\n return try candidatesResult?() ?? RelayCandidates(entryRelays: [], exitRelays: [])\n }\n}\n\nextension RelaySelectorStub {\n /// Returns a relay selector that never fails.\n public static func nonFallible() -> RelaySelectorStub {\n let publicKey = PrivateKey().publicKey.rawValue\n\n return RelaySelectorStub(selectedRelaysResult: { _ in\n let cityRelay = SelectedRelay(\n endpoint: MullvadEndpoint(\n ipv4Relay: IPv4Endpoint(ip: .loopback, port: 1300),\n ipv4Gateway: .loopback,\n ipv6Gateway: .loopback,\n publicKey: publicKey\n ),\n hostname: "se-got",\n location: Location(\n country: "",\n countryCode: "se",\n city: "",\n cityCode: "got",\n latitude: 0,\n longitude: 0\n )\n )\n\n return SelectedRelays(\n entry: cityRelay,\n exit: cityRelay,\n retryAttempt: 0\n )\n }, candidatesResult: nil)\n }\n\n /// Returns a relay selector that cannot satisfy constraints .\n public static func unsatisfied() -> RelaySelectorStub {\n return RelaySelectorStub(selectedRelaysResult: { _ in\n throw NoRelaysSatisfyingConstraintsError(.relayConstraintNotMatching)\n }, candidatesResult: {\n throw NoRelaysSatisfyingConstraintsError(.relayConstraintNotMatching)\n })\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadREST\RelaySelectorStub.swift
RelaySelectorStub.swift
Swift
2,841
0.95
0.035294
0.133333
node-utils
651
2024-04-10T20:22:48.836329
GPL-3.0
false
ac6d47b30481cdcffd8ab63805499586
//\n// RESTRequestExecutor+Stubs.swift\n// MullvadVPNTests\n//\n// Created by Marco Nikic on 2023-10-03.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadREST\nimport MullvadTypes\n\nstruct RESTRequestExecutorStub<Success: Sendable>: RESTRequestExecutor {\n var success: (() -> Success)?\n\n func execute(completionHandler: @escaping (Result<Success, Error>) -> Void) -> Cancellable {\n if let result = success?() {\n completionHandler(.success(result))\n }\n return AnyCancellable()\n }\n\n func execute(\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping (Result<Success, Error>) -> Void\n ) -> Cancellable {\n if let result = success?() {\n completionHandler(.success(result))\n }\n return AnyCancellable()\n }\n\n func execute() async throws -> Success {\n try await execute(retryStrategy: .noRetry)\n }\n\n func execute(retryStrategy: REST.RetryStrategy) async throws -> Success {\n guard let success = success else { throw POSIXError(.EINVAL) }\n\n return success()\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadREST\RESTRequestExecutor+Stubs.swift
RESTRequestExecutor+Stubs.swift
Swift
1,138
0.95
0.071429
0.2
react-lib
1,000
2025-05-08T10:04:48.560897
GPL-3.0
false
c651631597d48b935b30930fc1064e31
//\n// SelectedRelaysStub+Stubs.swift\n// MullvadVPN\n//\n// Created by Jon Petersson on 2024-12-18.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadREST\nimport MullvadTypes\nimport Network\n\npublic struct SelectedRelaysStub {\n public static let selectedRelays = SelectedRelays(\n entry: nil,\n exit: SelectedRelay(\n endpoint: MullvadEndpoint(\n ipv4Relay: IPv4Endpoint(ip: .loopback, port: 42),\n ipv6Relay: IPv6Endpoint(ip: .loopback, port: 42),\n ipv4Gateway: IPv4Address.loopback,\n ipv6Gateway: IPv6Address.loopback,\n publicKey: Data()\n ),\n hostname: "se-got-wg-001",\n location: Location(\n country: "Sweden",\n countryCode: "se",\n city: "Gothenburg",\n cityCode: "got",\n latitude: 42,\n longitude: 42\n )\n ),\n retryAttempt: 0\n )\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadREST\SelectedRelaysStub+Stubs.swift
SelectedRelaysStub+Stubs.swift
Swift
1,006
0.95
0
0.205882
awesome-app
135
2024-11-21T01:34:29.577946
MIT
false
0efe056f638c077f06dd92df96a8c930
//\n// ServerRelaysResponse+Stubs.swift\n// MullvadVPNTests\n//\n// Created by Marco Nikic on 2023-10-03.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\n@testable import MullvadREST\nimport WireGuardKitTypes\n\npublic enum ServerRelaysResponseStubs {\n public static let wireguardPortRanges: [[UInt16]] = [[4000, 4001], [5000, 5001]]\n public static let shadowsocksPortRanges: [[UInt16]] = [[51900, 51949]]\n\n public static let sampleRelays = REST.ServerRelaysResponse(\n locations: [\n "es-mad": REST.ServerLocation(\n country: "Spain",\n city: "Madrid",\n latitude: 40.408566,\n longitude: -3.69222\n ),\n "se-got": REST.ServerLocation(\n country: "Sweden",\n city: "Gothenburg",\n latitude: 57.70887,\n longitude: 11.97456\n ),\n "se-sto": REST.ServerLocation(\n country: "Sweden",\n city: "Stockholm",\n latitude: 59.3289,\n longitude: 18.0649\n ),\n "ae-dxb": REST.ServerLocation(\n country: "United Arab Emirates",\n city: "Dubai",\n latitude: 25.276987,\n longitude: 55.296249\n ),\n "jp-tyo": REST.ServerLocation(\n country: "Japan",\n city: "Tokyo",\n latitude: 35.685,\n longitude: 139.751389\n ),\n "ca-tor": REST.ServerLocation(\n country: "Canada",\n city: "Toronto",\n latitude: 43.666667,\n longitude: -79.416667\n ),\n "us-atl": REST.ServerLocation(\n country: "USA",\n city: "Atlanta, GA",\n latitude: 40.73061,\n longitude: -73.935242\n ),\n "us-dal": REST.ServerLocation(\n country: "USA",\n city: "Dallas, TX",\n latitude: 32.89748,\n longitude: -97.040443\n ),\n "us-nyc": REST.ServerLocation(\n country: "USA",\n city: "New York, NY",\n latitude: 40.6963302,\n longitude: -74.6034843\n ),\n ],\n wireguard: REST.ServerWireguardTunnels(\n ipv4Gateway: .loopback,\n ipv6Gateway: .loopback,\n portRanges: wireguardPortRanges,\n relays: [\n REST.ServerRelay(\n hostname: "es1-wireguard",\n active: true,\n owned: false,\n location: "es-mad",\n provider: "100TB",\n weight: 500,\n ipv4AddrIn: .loopback,\n ipv6AddrIn: .loopback,\n publicKey: PrivateKey().publicKey.rawValue,\n includeInCountry: true,\n daita: true,\n shadowsocksExtraAddrIn: ["0.0.0.0"]\n ),\n REST.ServerRelay(\n hostname: "se10-wireguard",\n active: true,\n owned: true,\n location: "se-got",\n provider: "Blix",\n weight: 1000,\n ipv4AddrIn: .loopback,\n ipv6AddrIn: .loopback,\n publicKey: PrivateKey().publicKey.rawValue,\n includeInCountry: true,\n daita: false,\n shadowsocksExtraAddrIn: ["0.0.0.0"]\n ),\n REST.ServerRelay(\n hostname: "se2-wireguard",\n active: true,\n owned: true,\n location: "se-sto",\n provider: "DataPacket",\n weight: 50,\n ipv4AddrIn: .loopback,\n ipv6AddrIn: .loopback,\n publicKey: PrivateKey().publicKey.rawValue,\n includeInCountry: true,\n daita: false,\n shadowsocksExtraAddrIn: ["0.0.0.0"]\n ),\n REST.ServerRelay(\n hostname: "se6-wireguard",\n active: true,\n owned: true,\n location: "se-sto",\n provider: "31173",\n weight: 100,\n ipv4AddrIn: .loopback,\n ipv6AddrIn: .loopback,\n publicKey: PrivateKey().publicKey.rawValue,\n includeInCountry: true,\n daita: false,\n shadowsocksExtraAddrIn: ["0.0.0.0"]\n ),\n REST.ServerRelay(\n hostname: "us-dal-wg-001",\n active: true,\n owned: true,\n location: "us-dal",\n provider: "M247",\n weight: 100,\n ipv4AddrIn: .loopback,\n ipv6AddrIn: .loopback,\n publicKey: PrivateKey().publicKey.rawValue,\n includeInCountry: true,\n daita: false,\n shadowsocksExtraAddrIn: ["0.0.0.0"]\n ),\n REST.ServerRelay(\n hostname: "us-nyc-wg-301",\n active: true,\n owned: false,\n location: "us-nyc",\n provider: "xtom",\n weight: 100,\n ipv4AddrIn: .loopback,\n ipv6AddrIn: .loopback,\n publicKey: PrivateKey().publicKey.rawValue,\n includeInCountry: true,\n daita: true,\n shadowsocksExtraAddrIn: nil\n ),\n REST.ServerRelay(\n hostname: "us-nyc-wg-302",\n active: false,\n owned: true,\n location: "us-nyc",\n provider: "Qnax",\n weight: 100,\n ipv4AddrIn: .loopback,\n ipv6AddrIn: .loopback,\n publicKey: PrivateKey().publicKey.rawValue,\n includeInCountry: true,\n daita: true,\n shadowsocksExtraAddrIn: nil\n ),\n ],\n shadowsocksPortRanges: shadowsocksPortRanges\n ),\n bridge: REST.ServerBridges(shadowsocks: [\n REST.ServerShadowsocks(protocol: "tcp", port: 443, cipher: "aes-256-gcm", password: "mullvad"),\n ], relays: [\n REST.BridgeRelay(\n hostname: "se-sto-br-001",\n active: true,\n owned: true,\n location: "se-sto",\n provider: "31173",\n ipv4AddrIn: .loopback,\n weight: 100,\n includeInCountry: true\n ),\n REST.BridgeRelay(\n hostname: "jp-tyo-br-101",\n active: true,\n owned: true,\n location: "jp-tyo",\n provider: "M247",\n ipv4AddrIn: .loopback,\n weight: 1,\n includeInCountry: true\n ),\n REST.BridgeRelay(\n hostname: "ca-tor-ovpn-001",\n active: false,\n owned: false,\n location: "ca-tor",\n provider: "M247",\n ipv4AddrIn: .loopback,\n weight: 1,\n includeInCountry: true\n ),\n REST.BridgeRelay(\n hostname: "ae-dxb-ovpn-001",\n active: true,\n owned: false,\n location: "ae-dxb",\n provider: "M247",\n ipv4AddrIn: .loopback,\n weight: 100,\n includeInCountry: true\n ),\n REST.BridgeRelay(\n hostname: "us-atl-br-101",\n active: true,\n owned: false,\n location: "us-atl",\n provider: "100TB",\n ipv4AddrIn: .loopback,\n weight: 100,\n includeInCountry: true\n ),\n REST.BridgeRelay(\n hostname: "us-dal-br-101",\n active: true,\n owned: false,\n location: "us-dal",\n provider: "100TB",\n ipv4AddrIn: .loopback,\n weight: 100,\n includeInCountry: true\n ),\n ])\n )\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadREST\ServerRelaysResponse+Stubs.swift
ServerRelaysResponse+Stubs.swift
Swift
8,695
0.95
0
0.028926
vue-tools
793
2024-11-08T02:26:22.276188
Apache-2.0
false
3070bd72be0be62d4a1835452985f9ae
//\n// AccountMock.swift\n// MullvadVPNTests\n//\n// Created by Andrew Bulhak on 2024-03-04.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadTypes\n\nextension Account {\n public static func mock(expiry: Date = .distantFuture) -> Account {\n Account(\n id: "account-id",\n expiry: expiry,\n maxDevices: 5,\n canAddDevices: true\n )\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadTypes\AccountMock.swift
AccountMock.swift
Swift
420
0.95
0
0.388889
node-utils
971
2025-03-13T23:48:18.968821
GPL-3.0
false
3984eeeb8d741057a188a723c0530e6c
//\n// DeviceMock.swift\n// MullvadVPNTests\n//\n// Created by Andrew Bulhak on 2024-03-04.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\nimport WireGuardKitTypes\n\nextension Device {\n public static func mock(publicKey: PublicKey) -> Device {\n Device(\n id: "device-id",\n name: "Secure Mole",\n pubkey: publicKey,\n hijackDNS: false,\n created: Date(),\n ipv4Address: IPAddressRange(from: "127.0.0.1/32")!,\n ipv6Address: IPAddressRange(from: "::ff/64")!\n )\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadTypes\DeviceMock.swift
DeviceMock.swift
Swift
607
0.95
0
0.304348
react-lib
980
2025-02-01T05:31:08.019634
BSD-3-Clause
false
0d41b78cdfaa1d344bc5172b55f19a4f
//\n// NewAccountDataMock.swift\n// MullvadVPN\n//\n// Created by Jon Petersson on 2025-04-08.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadTypes\n\nextension NewAccountData {\n public static func mockValue() -> NewAccountData {\n return NewAccountData(\n id: UUID().uuidString,\n expiry: Date().addingTimeInterval(3600),\n maxPorts: 2,\n canAddPorts: false,\n maxDevices: 5,\n canAddDevices: false,\n number: "1234567890123456"\n )\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadMockData\MullvadTypes\NewAccountDataMock.swift
NewAccountDataMock.swift
Swift
554
0.95
0
0.333333
react-lib
414
2025-04-29T15:47:01.904295
GPL-3.0
false
18bc25ac15178fcbdc50f9fae8058eef
//\n// REST.swift\n// REST\n//\n// Created by pronebird on 06/09/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\n\n/// REST namespace\npublic enum REST {}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\REST.swift
REST.swift
Swift
191
0.95
0
0.8
node-utils
397
2023-10-19T15:10:36.305187
BSD-3-Clause
false
0a530a510b2ec3c995d350a7c720f511
//\n// AddressCache.swift\n// MullvadREST\n//\n// Created by pronebird on 08/12/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadLogging\nimport MullvadTypes\n\nextension REST {\n public final class AddressCache: @unchecked Sendable {\n /// Logger.\n private let logger = Logger(label: "AddressCache")\n\n /// Disk cache.\n private let fileCache: any FileCacheProtocol<StoredAddressCache>\n\n /// Memory cache.\n private var cache: StoredAddressCache = defaultStoredCache\n\n /// Lock used for synchronizing access to instance members.\n private let cacheLock = NSLock()\n\n /// Whether address cache can be written to.\n private let canWriteToCache: Bool\n\n /// The default endpoint to use as a fallback mechanism.\n private static let defaultStoredCache = StoredAddressCache(\n updatedAt: Date(timeIntervalSince1970: 0),\n endpoint: REST.defaultAPIEndpoint\n )\n\n // MARK: - Public API\n\n /// Designated initializer.\n public init(canWriteToCache: Bool, cacheDirectory: URL) {\n fileCache = FileCache(\n fileURL: cacheDirectory.appendingPathComponent("api-ip-address.json", isDirectory: false)\n )\n self.canWriteToCache = canWriteToCache\n }\n\n /// Initializer that accepts a file cache implementation and can be used in tests.\n init(canWriteToCache: Bool, fileCache: some FileCacheProtocol<StoredAddressCache>) {\n self.fileCache = fileCache\n self.canWriteToCache = canWriteToCache\n }\n\n /// Returns the latest available endpoint\n ///\n /// When running from the Network Extension, this method will read from the cache before returning.\n /// - Returns: The latest available endpoint, or a default endpoint if no endpoints are available\n public func getCurrentEndpoint() -> AnyIPEndpoint {\n cacheLock.withLock {\n // Reload from disk cache when in the Network Extension as there is no `AddressCacheTracker` running\n // there\n if canWriteToCache == false {\n do {\n cache = try fileCache.read()\n } catch {\n logger.error(error: error, message: "Failed to read address cache from disk.")\n }\n }\n\n return cache.endpoint\n }\n }\n\n /// Updates the available endpoints to use\n ///\n /// Only the first available endpoint is kept, the rest are discarded.\n /// This method will only modify the on disk cache when running from the UI process.\n /// - Parameter endpoints: The new endpoints to use for API requests\n public func setEndpoints(_ endpoints: [AnyIPEndpoint]) {\n cacheLock.withLock {\n guard let firstEndpoint = endpoints.first else { return }\n\n cache = StoredAddressCache(updatedAt: Date(), endpoint: firstEndpoint)\n\n guard canWriteToCache else { return }\n do {\n try fileCache.write(cache)\n } catch {\n logger.error(\n error: error,\n message: "Failed to write address cache after setting new endpoints."\n )\n }\n }\n }\n\n /// The `Date` when the cache was last updated at\n ///\n /// - Returns: The `Date` when the cache was last updated at\n public func getLastUpdateDate() -> Date {\n return cacheLock.withLock { cache.updatedAt }\n }\n\n /// Initializes cache by reading it from file on disk.\n ///\n /// If no cache file is present, a default API endpoint will be selected instead.\n public func loadFromFile() {\n cacheLock.withLock {\n // The first time the application is ran, this statement will fail as there is no cache. This is fine.\n // The cache will be filled when either `getCurrentEndpoint()` or `setEndpoints()` are called.\n do {\n cache = try fileCache.read()\n } catch {\n // Log all errors except when file is not on disk.\n if (error as? CocoaError)?.code != .fileReadNoSuchFile {\n logger.error(error: error, message: "Failed to load address cache from disk.")\n }\n\n logger.debug("Initialized cache with default API endpoint.")\n cache = Self.defaultStoredCache\n }\n }\n }\n }\n\n /// Serializable address cache representation stored on disk.\n struct StoredAddressCache: Codable, Equatable {\n /// Date when the cached addresses were last updated.\n var updatedAt: Date\n\n /// API endpoint.\n var endpoint: AnyIPEndpoint\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\AddressCache.swift
AddressCache.swift
Swift
5,021
0.95
0.090909
0.348214
vue-tools
0
2023-11-26T03:15:11.147346
BSD-3-Clause
false
f52c2bc5bf71d8093a7f27b8474717d3
//\n// HTTP.swift\n// HTTP\n//\n// Created by pronebird on 06/09/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\n\n/// HTTP method\nstruct HTTPMethod: RawRepresentable {\n static let get = HTTPMethod(rawValue: "GET")\n static let post = HTTPMethod(rawValue: "POST")\n static let delete = HTTPMethod(rawValue: "DELETE")\n static let put = HTTPMethod(rawValue: "PUT")\n static let head = HTTPMethod(rawValue: "HEAD")\n\n let rawValue: String\n init(rawValue: String) {\n self.rawValue = rawValue.uppercased()\n }\n}\n\nstruct HTTPStatus: RawRepresentable, Equatable {\n static let notModified = HTTPStatus(rawValue: 304)\n static let badRequest = HTTPStatus(rawValue: 400)\n static let notFound = HTTPStatus(rawValue: 404)\n\n static func isSuccess(_ code: Int) -> Bool {\n (200 ..< 300).contains(code)\n }\n\n let rawValue: Int\n init(rawValue: Int) {\n self.rawValue = rawValue\n }\n\n var isSuccess: Bool {\n Self.isSuccess(rawValue)\n }\n}\n\n/// HTTP headers\nenum HTTPHeader {\n static let host = "Host"\n static let authorization = "Authorization"\n static let contentType = "Content-Type"\n static let etag = "ETag"\n static let ifNoneMatch = "If-None-Match"\n static let userAgent = "User-Agent"\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\HTTP.swift
HTTP.swift
Swift
1,302
0.95
0
0.204545
react-lib
998
2024-01-19T09:25:46.784621
BSD-3-Clause
false
e36b9678fa0624569ee6dceebdc00abf
//\n// RESTAccessTokenManager.swift\n// MullvadREST\n//\n// Created by pronebird on 16/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadLogging\nimport MullvadTypes\nimport Operations\n\npublic protocol RESTAccessTokenManagement: Sendable {\n func getAccessToken(\n accountNumber: String,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<REST.AccessTokenData>\n ) -> Cancellable\n\n func invalidateAllTokens()\n}\n\nextension REST {\n public final class AccessTokenManager: RESTAccessTokenManagement, @unchecked Sendable {\n private let logger = Logger(label: "REST.AccessTokenManager")\n private let operationQueue = AsyncOperationQueue.makeSerial()\n private let dispatchQueue = DispatchQueue(label: "REST.AccessTokenManager.dispatchQueue")\n private let proxy: AuthenticationProxy\n private var tokens = [String: AccessTokenData]()\n\n public init(authenticationProxy: AuthenticationProxy) {\n proxy = authenticationProxy\n }\n\n public func getAccessToken(\n accountNumber: String,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<REST.AccessTokenData>\n ) -> Cancellable {\n let operation =\n ResultBlockOperation<REST.AccessTokenData>(dispatchQueue: dispatchQueue) { finish -> Cancellable in\n if let tokenData = self.tokens[accountNumber], tokenData.expiry > Date() {\n finish(.success(tokenData))\n return AnyCancellable()\n }\n\n return self.proxy.getAccessToken(accountNumber: accountNumber, retryStrategy: .noRetry) { result in\n self.dispatchQueue.async {\n switch result {\n case let .success(tokenData):\n self.tokens[accountNumber] = tokenData\n\n case let .failure(error) where !error.isOperationCancellationError:\n self.logger.error(\n error: error,\n message: "Failed to fetch access token."\n )\n\n default:\n break\n }\n\n finish(result)\n }\n }\n }\n\n operation.completionQueue = .main\n operation.completionHandler = completionHandler\n\n operationQueue.addOperation(operation)\n\n return operation\n }\n\n public func invalidateAllTokens() {\n operationQueue.addOperation(AsyncBlockOperation(dispatchQueue: dispatchQueue) { [weak self] in\n guard let self else {\n return\n }\n self.tokens.removeAll()\n })\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTAccessTokenManager.swift
RESTAccessTokenManager.swift
Swift
2,994
0.95
0.035714
0.1
python-kit
273
2025-04-08T09:05:06.271513
MIT
false
5caf9a22e93d1e99f0c6c9810d03f327
//\n// RESTAccountsProxy.swift\n// MullvadREST\n//\n// Created by pronebird on 16/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n\nextension REST {\n public final class AccountsProxy: Proxy<AuthProxyConfiguration>, RESTAccountHandling, @unchecked Sendable {\n public init(configuration: AuthProxyConfiguration) {\n super.init(\n name: "AccountsProxy",\n configuration: configuration,\n requestFactory: RequestFactory.withDefaultAPICredentials(\n pathPrefix: "/accounts/v1",\n bodyEncoder: Coding.makeJSONEncoder()\n ),\n responseDecoder: Coding.makeJSONDecoder()\n )\n }\n\n public func createAccount(\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<NewAccountData>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler { endpoint in\n try self.requestFactory.createRequest(\n endpoint: endpoint,\n method: .post,\n pathTemplate: "accounts"\n )\n }\n\n let responseHandler = REST.defaultResponseHandler(\n decoding: NewAccountData.self,\n with: responseDecoder\n )\n\n let executor = makeRequestExecutor(\n name: "create-account",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completion)\n }\n\n public func getAccountData(\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Account>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler(\n createURLRequest: { endpoint, authorization in\n var requestBuilder = try self.requestFactory.createRequestBuilder(\n endpoint: endpoint,\n method: .get,\n pathTemplate: "accounts/me"\n )\n\n requestBuilder.setAuthorization(authorization)\n\n return requestBuilder.getRequest()\n },\n authorizationProvider: createAuthorizationProvider(accountNumber: accountNumber)\n )\n\n let responseHandler = REST.defaultResponseHandler(\n decoding: Account.self,\n with: responseDecoder\n )\n\n let executor = makeRequestExecutor(\n name: "get-my-account",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completion)\n }\n\n public func deleteAccount(\n accountNumber: String,\n retryStrategy: RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Void>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler(createURLRequest: { endpoint, authorization in\n var requestBuilder = try self.requestFactory.createRequestBuilder(\n endpoint: endpoint,\n method: .delete,\n pathTemplate: "accounts/me"\n )\n requestBuilder.setAuthorization(authorization)\n requestBuilder.addValue(accountNumber, forHTTPHeaderField: "Mullvad-Account-Number")\n\n return requestBuilder.getRequest()\n }, authorizationProvider: createAuthorizationProvider(accountNumber: accountNumber))\n\n let responseHandler = AnyResponseHandler { response, data -> ResponseHandlerResult<Void> in\n let statusCode = HTTPStatus(rawValue: response.statusCode)\n\n switch statusCode {\n case let statusCode where statusCode.isSuccess:\n return .success(())\n default:\n return .unhandledResponse(\n try? self.responseDecoder.decode(\n ServerErrorResponse.self,\n from: data\n )\n )\n }\n }\n\n let executor = makeRequestExecutor(\n name: "delete-my-account",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completion)\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTAccountsProxy.swift
RESTAccountsProxy.swift
Swift
4,769
0.95
0.046875
0.063636
python-kit
192
2024-03-28T14:36:35.965033
MIT
false
3ea4e9986a7817091743af81a8bd577b
//\n// RESTAPIProxy.swift\n// MullvadREST\n//\n// Created by pronebird on 10/07/2020.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadRustRuntime\nimport MullvadTypes\nimport Operations\nimport WireGuardKitTypes\n\nextension REST {\n public final class APIProxy: Proxy<AuthProxyConfiguration>, APIQuerying, @unchecked Sendable {\n public init(configuration: AuthProxyConfiguration) {\n super.init(\n name: "APIProxy",\n configuration: configuration,\n requestFactory: RequestFactory.withDefaultAPICredentials(\n pathPrefix: "/app/v1",\n bodyEncoder: Coding.makeJSONEncoder()\n ),\n responseDecoder: Coding.makeJSONDecoder()\n )\n }\n\n public func getAddressList(\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<[AnyIPEndpoint]>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler { endpoint in\n try self.requestFactory.createRequest(\n endpoint: endpoint,\n method: .get,\n pathTemplate: "api-addrs"\n )\n }\n\n let responseHandler = REST.defaultResponseHandler(\n decoding: [AnyIPEndpoint].self,\n with: responseDecoder\n )\n\n let executor = makeRequestExecutor(\n name: "get-api-addrs",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completionHandler)\n }\n\n public func getRelays(\n etag: String?,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<ServerRelaysCacheResponse>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler { endpoint in\n var requestBuilder = try self.requestFactory.createRequestBuilder(\n endpoint: endpoint,\n method: .get,\n pathTemplate: "relays"\n )\n\n if let etag {\n requestBuilder.setETagHeader(etag: etag)\n }\n\n return requestBuilder.getRequest()\n }\n\n let responseHandler =\n AnyResponseHandler { response, data -> ResponseHandlerResult<ServerRelaysCacheResponse> in\n let httpStatus = HTTPStatus(rawValue: response.statusCode)\n\n switch httpStatus {\n case let httpStatus where httpStatus.isSuccess:\n return .decoding {\n // Discarding result since we're only interested in knowing that it's parseable.\n _ = try self.responseDecoder.decode(\n ServerRelaysResponse.self,\n from: data\n )\n let newEtag = response.value(forHTTPHeaderField: HTTPHeader.etag)\n\n return .newContent(newEtag, data)\n }\n\n case .notModified where etag != nil:\n return .success(.notModified)\n\n default:\n return .unhandledResponse(\n try? self.responseDecoder.decode(\n ServerErrorResponse.self,\n from: data\n )\n )\n }\n }\n\n let executor = makeRequestExecutor(\n name: "get-relays",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completionHandler)\n }\n\n public func createApplePayment(\n accountNumber: String,\n receiptString: Data\n ) -> any RESTRequestExecutor<CreateApplePaymentResponse> {\n let requestHandler = AnyRequestHandler(\n createURLRequest: { endpoint, authorization in\n var requestBuilder = try self.requestFactory.createRequestBuilder(\n endpoint: endpoint,\n method: .post,\n pathTemplate: "create-apple-payment"\n )\n requestBuilder.setAuthorization(authorization)\n\n let body = CreateApplePaymentRequest(\n receiptString: receiptString\n )\n try requestBuilder.setHTTPBody(value: body)\n\n return requestBuilder.getRequest()\n },\n authorizationProvider: createAuthorizationProvider(accountNumber: accountNumber)\n )\n\n let responseHandler =\n AnyResponseHandler { response, data -> ResponseHandlerResult<CreateApplePaymentResponse> in\n if HTTPStatus.isSuccess(response.statusCode) {\n return .decoding {\n let serverResponse = try self.responseDecoder.decode(\n CreateApplePaymentRawResponse.self,\n from: data\n )\n if serverResponse.timeAdded > 0 {\n return .timeAdded(\n serverResponse.timeAdded,\n serverResponse.newExpiry\n )\n } else {\n return .noTimeAdded(serverResponse.newExpiry)\n }\n }\n } else {\n return .unhandledResponse(\n try? self.responseDecoder.decode(\n ServerErrorResponse.self,\n from: data\n )\n )\n }\n }\n\n return makeRequestExecutor(\n name: "create-apple-payment",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n }\n\n public func sendProblemReport(\n _ body: ProblemReportRequest,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping ProxyCompletionHandler<Void>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler { endpoint in\n var requestBuilder = try self.requestFactory.createRequestBuilder(\n endpoint: endpoint,\n method: .post,\n pathTemplate: "problem-report"\n )\n\n try requestBuilder.setHTTPBody(value: body)\n\n return requestBuilder.getRequest()\n }\n\n let responseHandler =\n AnyResponseHandler { response, data -> ResponseHandlerResult<Void> in\n if HTTPStatus.isSuccess(response.statusCode) {\n return .success(())\n } else {\n return .unhandledResponse(\n try? self.responseDecoder.decode(\n ServerErrorResponse.self,\n from: data\n )\n )\n }\n }\n\n let executor = makeRequestExecutor(\n name: "send-problem-report",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completionHandler)\n }\n\n public func submitVoucher(\n voucherCode: String,\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<SubmitVoucherResponse>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler(\n createURLRequest: { endpoint, authorization in\n var requestBuilder = try self.requestFactory.createRequestBuilder(\n endpoint: endpoint,\n method: .post,\n pathTemplate: "submit-voucher"\n )\n\n requestBuilder.setAuthorization(authorization)\n\n try requestBuilder.setHTTPBody(value: SubmitVoucherRequest(voucherCode: voucherCode))\n\n return requestBuilder.getRequest()\n },\n authorizationProvider: createAuthorizationProvider(accountNumber: accountNumber)\n )\n\n let responseHandler = AnyResponseHandler { response, data -> ResponseHandlerResult<SubmitVoucherResponse> in\n if HTTPStatus.isSuccess(response.statusCode) {\n return .decoding {\n try self.responseDecoder.decode(SubmitVoucherResponse.self, from: data)\n }\n } else {\n return .unhandledResponse(\n try? self.responseDecoder.decode(ServerErrorResponse.self, from: data)\n )\n }\n }\n\n let executor = makeRequestExecutor(\n name: "submit-voucher",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completionHandler)\n }\n }\n\n // MARK: - Response types\n\n private struct CreateApplePaymentRequest: Encodable, Sendable {\n let receiptString: Data\n }\n\n private struct CreateApplePaymentRawResponse: Decodable, Sendable {\n let timeAdded: Int\n let newExpiry: Date\n }\n\n private struct SubmitVoucherRequest: Encodable, Sendable {\n let voucherCode: String\n }\n\n public struct SubmitVoucherResponse: Decodable, Sendable {\n public let timeAdded: Int\n public let newExpiry: Date\n\n public var dateComponents: DateComponents {\n DateComponents(second: timeAdded)\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTAPIProxy.swift
RESTAPIProxy.swift
Swift
10,583
0.95
0.079137
0.037815
awesome-app
137
2024-09-12T12:35:03.851551
Apache-2.0
false
74c363aa21e99583c6ee8d8304e8a7a3
//\n// RESTAuthenticationProxy.swift\n// MullvadREST\n//\n// Created by pronebird on 16/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n\nextension REST {\n public final class AuthenticationProxy: Proxy<ProxyConfiguration>, @unchecked Sendable {\n public init(configuration: ProxyConfiguration) {\n super.init(\n name: "AuthenticationProxy",\n configuration: configuration,\n requestFactory: RequestFactory.withDefaultAPICredentials(\n pathPrefix: "/auth/v1",\n bodyEncoder: Coding.makeJSONEncoder()\n ),\n responseDecoder: Coding.makeJSONDecoder()\n )\n }\n\n public func getAccessToken(\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<AccessTokenData>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler { endpoint in\n var requestBuilder = try self.requestFactory.createRequestBuilder(\n endpoint: endpoint,\n method: .post,\n pathTemplate: "token"\n )\n\n let request = AccessTokenRequest(accountNumber: accountNumber)\n\n try requestBuilder.setHTTPBody(value: request)\n\n return requestBuilder.getRequest()\n }\n\n let responseHandler = REST.defaultResponseHandler(\n decoding: AccessTokenData.self,\n with: responseDecoder\n )\n\n let executor = makeRequestExecutor(\n name: "get-access-token",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completion)\n }\n }\n\n public struct AccessTokenData: Decodable, Sendable {\n let accessToken: String\n let expiry: Date\n }\n\n private struct AccessTokenRequest: Encodable, Sendable {\n let accountNumber: String\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTAuthenticationProxy.swift
RESTAuthenticationProxy.swift
Swift
2,175
0.95
0.044118
0.122807
node-utils
872
2023-10-01T14:22:38.651578
GPL-3.0
false
8a25ec862b500d68b0a07e0999f9bbbd
//\n// RESTAuthorization.swift\n// MullvadREST\n//\n// Created by pronebird on 16/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\nimport Operations\n\nprotocol RESTAuthorizationProvider {\n func getAuthorization(completion: @escaping @Sendable (Result<REST.Authorization, Swift.Error>) -> Void)\n -> Cancellable\n}\n\nextension REST {\n typealias Authorization = String\n\n struct AccessTokenProvider: RESTAuthorizationProvider {\n private let accessTokenManager: RESTAccessTokenManagement\n private let accountNumber: String\n\n init(accessTokenManager: RESTAccessTokenManagement, accountNumber: String) {\n self.accessTokenManager = accessTokenManager\n self.accountNumber = accountNumber\n }\n\n func getAuthorization(\n completion: @escaping @Sendable (Result<REST.Authorization, Swift.Error>)\n -> Void\n ) -> Cancellable {\n accessTokenManager.getAccessToken(accountNumber: accountNumber) { result in\n completion(result.map { tokenData in\n tokenData.accessToken\n })\n }\n }\n }\n}\n\nextension REST.Proxy where ConfigurationType == REST.AuthProxyConfiguration {\n func createAuthorizationProvider(accountNumber: String) -> RESTAuthorizationProvider {\n REST.AccessTokenProvider(\n accessTokenManager: configuration.accessTokenManager,\n accountNumber: accountNumber\n )\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTAuthorization.swift
RESTAuthorization.swift
Swift
1,537
0.95
0
0.162791
python-kit
943
2024-11-08T11:46:51.694081
BSD-3-Clause
false
21e191354f486d111e053abe31d35fea
//\n// RESTCoding.swift\n// RESTCoding\n//\n// Created by pronebird on 27/07/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\n\nextension REST {\n public enum Coding {}\n}\n\nextension REST.Coding {\n /// Returns a JSON encoder used by REST API.\n public static func makeJSONEncoder() -> JSONEncoder {\n let encoder = JSONEncoder()\n encoder.keyEncodingStrategy = .convertToSnakeCase\n encoder.dataEncodingStrategy = .base64\n encoder.dateEncodingStrategy = .iso8601\n return encoder\n }\n\n /// Returns a JSON decoder used by REST API.\n public static func makeJSONDecoder() -> JSONDecoder {\n let decoder = JSONDecoder()\n decoder.keyDecodingStrategy = .convertFromSnakeCase\n decoder.dataDecodingStrategy = .base64\n decoder.dateDecodingStrategy = .iso8601\n return decoder\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTCoding.swift
RESTCoding.swift
Swift
889
0.95
0
0.310345
node-utils
302
2024-05-06T23:09:45.830854
BSD-3-Clause
false
a1c9907aaaf625a92404e70ead731476
//\n// RESTDefaults.swift\n// MullvadREST\n//\n// Created by Sajad Vishkai on 2022-10-17.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadRustRuntime\nimport MullvadTypes\n\n// swiftlint:disable force_cast\nextension REST {\n /// The API hostname and endpoint are defined in the Info.plist of the MullvadREST framework bundle\n /// This is due to not being able to target `Bundle.main` from a Unit Test environment as it gets its own bundle that would not contain the above variables.\n nonisolated(unsafe) private static let infoDictionary = Bundle(for: AddressCache.self).infoDictionary!\n\n /// Default API hostname.\n public static let defaultAPIHostname = infoDictionary["ApiHostName"] as! String\n\n /// Default API endpoint.\n public static let defaultAPIEndpoint = AnyIPEndpoint(string: infoDictionary["ApiEndpoint"] as! String)!\n\n public static let encryptedDNSHostname = infoDictionary["EncryptedDnsHostName"] as! String\n\n /// Disables API IP address cache when in staging environment and sticks to using default API endpoint instead.\n public static let isStagingEnvironment = false\n\n /// Default network timeout for API requests.\n public static let defaultAPINetworkTimeout: Duration = .seconds(10)\n\n /// API context used for API requests via Rust runtime.\n // swiftlint:disable:next force_try\n public static let apiContext = try! MullvadApiContext(\n host: defaultAPIHostname,\n address: defaultAPIEndpoint\n )\n}\n\n// swiftlint:enable force_cast\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTDefaults.swift
RESTDefaults.swift
Swift
1,549
0.95
0.097561
0.53125
awesome-app
499
2024-02-26T18:19:44.660313
BSD-3-Clause
false
ffb7122cfa3649f12f76076bf81f79d0
//\n// RESTDevicesProxy.swift\n// MullvadREST\n//\n// Created by pronebird on 20/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n@preconcurrency import WireGuardKitTypes\n\npublic protocol DeviceHandling: Sendable {\n func getDevice(\n accountNumber: String,\n identifier: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping @Sendable ProxyCompletionHandler<Device>\n ) -> Cancellable\n\n func getDevices(\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping @Sendable ProxyCompletionHandler<[Device]>\n ) -> Cancellable\n\n func createDevice(\n accountNumber: String,\n request: REST.CreateDeviceRequest,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping @Sendable ProxyCompletionHandler<Device>\n ) -> Cancellable\n\n func deleteDevice(\n accountNumber: String,\n identifier: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping @Sendable ProxyCompletionHandler<Bool>\n ) -> Cancellable\n\n func rotateDeviceKey(\n accountNumber: String,\n identifier: String,\n publicKey: PublicKey,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping @Sendable ProxyCompletionHandler<Device>\n ) -> Cancellable\n}\n\nextension REST {\n public final class DevicesProxy: Proxy<AuthProxyConfiguration>, DeviceHandling, @unchecked Sendable {\n public init(configuration: AuthProxyConfiguration) {\n super.init(\n name: "DevicesProxy",\n configuration: configuration,\n requestFactory: RequestFactory.withDefaultAPICredentials(\n pathPrefix: "/accounts/v1",\n bodyEncoder: Coding.makeJSONEncoder()\n ),\n responseDecoder: Coding.makeJSONDecoder()\n )\n }\n\n /// Fetch device by identifier.\n /// The completion handler receives `nil` if device is not found.\n public func getDevice(\n accountNumber: String,\n identifier: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Device>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler(\n createURLRequest: { endpoint, authorization in\n var path: URLPathTemplate = "devices/{id}"\n\n try path.addPercentEncodedReplacement(\n name: "id",\n value: identifier,\n allowedCharacters: .urlPathAllowed\n )\n\n var requestBuilder = try self.requestFactory.createRequestBuilder(\n endpoint: endpoint,\n method: .get,\n pathTemplate: path\n )\n\n requestBuilder.setAuthorization(authorization)\n\n return requestBuilder.getRequest()\n },\n authorizationProvider: createAuthorizationProvider(accountNumber: accountNumber)\n )\n\n let responseHandler =\n AnyResponseHandler { response, data -> ResponseHandlerResult<Device> in\n let httpStatus = HTTPStatus(rawValue: response.statusCode)\n\n if httpStatus.isSuccess {\n return .decoding {\n try self.responseDecoder.decode(Device.self, from: data)\n }\n } else {\n return .unhandledResponse(\n try? self.responseDecoder.decode(\n ServerErrorResponse.self,\n from: data\n )\n )\n }\n }\n\n let executor = makeRequestExecutor(\n name: "get-device",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completion)\n }\n\n /// Fetch a list of created devices.\n public func getDevices(\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<[Device]>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler(\n createURLRequest: { endpoint, authorization in\n var requestBuilder = try self.requestFactory.createRequestBuilder(\n endpoint: endpoint,\n method: .get,\n pathTemplate: "devices"\n )\n\n requestBuilder.setAuthorization(authorization)\n\n return requestBuilder.getRequest()\n },\n authorizationProvider: createAuthorizationProvider(accountNumber: accountNumber)\n )\n\n let responseHandler = REST.defaultResponseHandler(\n decoding: [Device].self,\n with: responseDecoder\n )\n\n let executor = makeRequestExecutor(\n name: "get-devices",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completion)\n }\n\n /// Create new device.\n /// The completion handler will receive a `CreateDeviceResponse.created(Device)` on success.\n /// Other `CreateDeviceResponse` variants describe errors.\n public func createDevice(\n accountNumber: String,\n request: CreateDeviceRequest,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping @Sendable ProxyCompletionHandler<Device>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler(\n createURLRequest: { endpoint, authorization in\n var requestBuilder = try self.requestFactory.createRequestBuilder(\n endpoint: endpoint,\n method: .post,\n pathTemplate: "devices"\n )\n requestBuilder.setAuthorization(authorization)\n\n try requestBuilder.setHTTPBody(value: request)\n\n return requestBuilder.getRequest()\n },\n authorizationProvider: createAuthorizationProvider(accountNumber: accountNumber)\n )\n\n let responseHandler = REST.defaultResponseHandler(\n decoding: Device.self,\n with: responseDecoder\n )\n\n let executor = makeRequestExecutor(\n name: "create-device",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completion)\n }\n\n /// Delete device by identifier.\n /// The completion handler will receive `true` if device is successfully removed,\n /// otherwise `false` if device is not found or already removed.\n public func deleteDevice(\n accountNumber: String,\n identifier: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Bool>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler(\n createURLRequest: { endpoint, authorization in\n var path: URLPathTemplate = "devices/{id}"\n\n try path.addPercentEncodedReplacement(\n name: "id",\n value: identifier,\n allowedCharacters: .urlPathAllowed\n )\n\n var requestBuilder = try self.requestFactory\n .createRequestBuilder(\n endpoint: endpoint,\n method: .delete,\n pathTemplate: path\n )\n\n requestBuilder.setAuthorization(authorization)\n\n return requestBuilder.getRequest()\n },\n authorizationProvider: createAuthorizationProvider(accountNumber: accountNumber)\n )\n\n let responseHandler =\n AnyResponseHandler { response, data -> ResponseHandlerResult<Bool> in\n let statusCode = HTTPStatus(rawValue: response.statusCode)\n\n switch statusCode {\n case let statusCode where statusCode.isSuccess:\n return .success(true)\n\n case .notFound:\n return .success(false)\n\n default:\n return .unhandledResponse(\n try? self.responseDecoder.decode(\n ServerErrorResponse.self,\n from: data\n )\n )\n }\n }\n\n let executor = makeRequestExecutor(\n name: "delete-device",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completion)\n }\n\n /// Rotate device key\n public func rotateDeviceKey(\n accountNumber: String,\n identifier: String,\n publicKey: PublicKey,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping @Sendable ProxyCompletionHandler<Device>\n ) -> Cancellable {\n let requestHandler = AnyRequestHandler(\n createURLRequest: { endpoint, authorization in\n var path: URLPathTemplate = "devices/{id}/pubkey"\n\n try path.addPercentEncodedReplacement(\n name: "id",\n value: identifier,\n allowedCharacters: .urlPathAllowed\n )\n\n var requestBuilder = try self.requestFactory\n .createRequestBuilder(\n endpoint: endpoint,\n method: .put,\n pathTemplate: path\n )\n\n requestBuilder.setAuthorization(authorization)\n\n let request = RotateDeviceKeyRequest(\n publicKey: publicKey\n )\n try requestBuilder.setHTTPBody(value: request)\n\n let urlRequest = requestBuilder.getRequest()\n\n return urlRequest\n },\n authorizationProvider: createAuthorizationProvider(accountNumber: accountNumber)\n )\n\n let responseHandler = REST.defaultResponseHandler(\n decoding: Device.self,\n with: responseDecoder\n )\n\n let executor = makeRequestExecutor(\n name: "rotate-device-key",\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return executor.execute(retryStrategy: retryStrategy, completionHandler: completion)\n }\n }\n\n public struct CreateDeviceRequest: Encodable, Sendable {\n let publicKey: PublicKey\n let hijackDNS: Bool\n\n public init(publicKey: PublicKey, hijackDNS: Bool) {\n self.publicKey = publicKey\n self.hijackDNS = hijackDNS\n }\n\n private enum CodingKeys: String, CodingKey {\n case hijackDNS = "hijackDns"\n case publicKey = "pubkey"\n }\n\n public func encode(to encoder: Encoder) throws {\n var container = encoder.container(keyedBy: CodingKeys.self)\n\n try container.encode(publicKey.base64Key, forKey: .publicKey)\n try container.encode(hijackDNS, forKey: .hijackDNS)\n }\n }\n\n private struct RotateDeviceKeyRequest: Encodable, Sendable {\n let publicKey: PublicKey\n\n private enum CodingKeys: String, CodingKey {\n case publicKey = "pubkey"\n }\n\n func encode(to encoder: Encoder) throws {\n var container = encoder.container(keyedBy: CodingKeys.self)\n\n try container.encode(publicKey.base64Key, forKey: .publicKey)\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTDevicesProxy.swift
RESTDevicesProxy.swift
Swift
12,707
0.95
0.063218
0.058621
awesome-app
746
2023-12-29T06:05:48.530406
Apache-2.0
false
2de8c0196c319b0e208f4df898c26cdc
//\n// RESTError.swift\n// RESTError\n//\n// Created by pronebird on 27/07/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n\nextension REST {\n /// An error type returned by REST API classes.\n public enum Error: LocalizedError, WrappingError, Sendable {\n /// Failure to create URL request.\n case createURLRequest(Swift.Error)\n\n /// Network failure.\n case network(URLError)\n\n /// Failure to handle response.\n case unhandledResponse(_ statusCode: Int, _ serverResponse: ServerErrorResponse?)\n\n /// Failure to decode server response.\n case decodeResponse(Swift.Error)\n\n /// Failure to transit URL request via selected transport implementation.\n case transport(Swift.Error)\n\n public var errorDescription: String? {\n switch self {\n case .createURLRequest:\n return "Failure to create URL request."\n\n case .network:\n return "Network error."\n\n case let .unhandledResponse(statusCode, serverResponse):\n var str = "Failure to handle server response: HTTP/\(statusCode)."\n\n if let code = serverResponse?.code {\n str += " Error code: \(code.rawValue)."\n }\n\n if let detail = serverResponse?.detail {\n str += " Detail: \(detail)"\n }\n\n return str\n\n case .decodeResponse:\n return "Failure to decode response."\n\n case .transport:\n return "Transport error."\n }\n }\n\n public var underlyingError: Swift.Error? {\n switch self {\n case let .network(error):\n return error\n case let .createURLRequest(error):\n return error\n case let .decodeResponse(error):\n return error\n case let .transport(error):\n return error\n case .unhandledResponse:\n return nil\n }\n }\n\n public func compareErrorCode(_ code: ServerResponseCode) -> Bool {\n if case let .unhandledResponse(_, serverResponse) = self {\n return serverResponse?.code == code\n } else {\n return false\n }\n }\n }\n\n public struct ServerErrorResponse: Decodable, Sendable {\n public let code: ServerResponseCode\n public let detail: String?\n\n private enum CodingKeys: String, CodingKey {\n case code, detail, error\n }\n\n public init(from decoder: Decoder) throws {\n let container = try decoder.container(keyedBy: CodingKeys.self)\n let rawValue = try container.decode(String.self, forKey: .code)\n\n code = ServerResponseCode(rawValue: rawValue)\n detail = try container.decodeIfPresent(String.self, forKey: .detail)\n ?? container.decodeIfPresent(String.self, forKey: .error)\n }\n\n public init(code: REST.ServerResponseCode, detail: String? = nil) {\n self.code = code\n self.detail = detail\n }\n }\n\n public struct ServerResponseCode: RawRepresentable, Equatable, Sendable {\n public static let invalidAccount = ServerResponseCode(rawValue: "INVALID_ACCOUNT")\n public static let keyLimitReached = ServerResponseCode(rawValue: "KEY_LIMIT_REACHED")\n public static let publicKeyNotFound = ServerResponseCode(rawValue: "PUBKEY_NOT_FOUND")\n public static let publicKeyInUse = ServerResponseCode(rawValue: "PUBKEY_IN_USE")\n public static let maxDevicesReached = ServerResponseCode(rawValue: "MAX_DEVICES_REACHED")\n public static let invalidAccessToken = ServerResponseCode(rawValue: "INVALID_ACCESS_TOKEN")\n public static let deviceNotFound = ServerResponseCode(rawValue: "DEVICE_NOT_FOUND")\n public static let serviceUnavailable = ServerResponseCode(rawValue: "SERVICE_UNAVAILABLE")\n public static let tooManyRequests = ServerResponseCode(rawValue: "TOO_MANY_REQUESTS")\n public static let invalidVoucher = ServerResponseCode(rawValue: "INVALID_VOUCHER")\n public static let usedVoucher = ServerResponseCode(rawValue: "VOUCHER_USED")\n public static let parsingError = ServerResponseCode(rawValue: "PARSING_ERROR")\n\n public let rawValue: String\n public init(rawValue: String) {\n self.rawValue = rawValue\n }\n }\n\n public enum InternalTransportError: LocalizedError {\n /// Programmer error. Indicates that REST framework is not configured with any transport.\n case noTransport\n\n /// Indicates that the transport returned something else but `HTTPURLResponse` upon success.\n /// Likely a programmer error.\n case invalidResponse(URLResponse?)\n\n public var errorDescription: String? {\n switch self {\n case .noTransport:\n return "Transport is not configured."\n case let .invalidResponse(response):\n return "Received invalid response. Expected HTTPURLResponse, got \(response.map { "\($0.self)" } ?? "(nil)")."\n }\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTError.swift
RESTError.swift
Swift
5,270
0.95
0.062937
0.136752
awesome-app
123
2024-12-11T16:06:39.515320
MIT
false
84afa1631a692e49b3df36f9bebdf82c
//\n// NetworkOperation.swift\n// MullvadREST\n//\n// Created by pronebird on 08/12/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadLogging\nimport MullvadTypes\nimport Operations\n\nextension REST {\n class NetworkOperation<Success: Sendable>: ResultOperation<Success>, @unchecked Sendable {\n private let requestHandler: RESTRequestHandler\n private let responseHandler: any RESTResponseHandler<Success>\n\n private let logger: Logger\n private let transportProvider: RESTTransportProvider\n private let addressCacheStore: AddressCache\n\n private var networkTask: Cancellable?\n private var authorizationTask: Cancellable?\n\n private var requiresAuthorization = false\n private var retryInvalidAccessTokenError = true\n\n private let retryStrategy: RetryStrategy\n private var retryDelayIterator: AnyIterator<Duration>\n private var retryTimer: DispatchSourceTimer?\n private var retryCount = 0\n\n init(\n name: String,\n dispatchQueue: DispatchQueue,\n configuration: ProxyConfiguration,\n retryStrategy: RetryStrategy,\n requestHandler: RESTRequestHandler,\n responseHandler: some RESTResponseHandler<Success>,\n completionHandler: CompletionHandler? = nil\n ) {\n addressCacheStore = configuration.addressCacheStore\n transportProvider = configuration.transportProvider\n self.retryStrategy = retryStrategy\n retryDelayIterator = retryStrategy.makeDelayIterator()\n self.requestHandler = requestHandler\n self.responseHandler = responseHandler\n\n var logger = Logger(label: "REST.NetworkOperation")\n logger[metadataKey: "name"] = .string(name)\n self.logger = logger\n\n super.init(\n dispatchQueue: dispatchQueue,\n completionQueue: .main,\n completionHandler: completionHandler\n )\n }\n\n override public func operationDidCancel() {\n retryTimer?.cancel()\n networkTask?.cancel()\n authorizationTask?.cancel()\n\n retryTimer = nil\n networkTask = nil\n authorizationTask = nil\n }\n\n override public func main() {\n startRequest()\n }\n\n private func startRequest() {\n dispatchPrecondition(condition: .onQueue(dispatchQueue))\n\n guard !isCancelled else {\n finish(result: .failure(OperationError.cancelled))\n return\n }\n\n guard let authorizationProvider = requestHandler.authorizationProvider else {\n requiresAuthorization = false\n didReceiveAuthorization(nil)\n return\n }\n\n requiresAuthorization = true\n authorizationTask = authorizationProvider.getAuthorization { result in\n self.dispatchQueue.async {\n switch result {\n case let .success(authorization):\n self.didReceiveAuthorization(authorization)\n\n case let .failure(error):\n if error.isOperationCancellationError {\n self.finish(result: .failure(error))\n } else {\n self.didFailToRequestAuthorization(error)\n }\n }\n }\n }\n }\n\n private func didReceiveAuthorization(_ authorization: REST.Authorization?) {\n dispatchPrecondition(condition: .onQueue(dispatchQueue))\n\n guard !isCancelled else {\n finish(result: .failure(OperationError.cancelled))\n return\n }\n\n let endpoint = REST.isStagingEnvironment ? REST.defaultAPIEndpoint : addressCacheStore.getCurrentEndpoint()\n\n do {\n let request = try requestHandler.createURLRequest(\n endpoint: endpoint,\n authorization: authorization\n )\n\n didReceiveURLRequest(request, endpoint: endpoint)\n } catch {\n didFailToCreateURLRequest(.createURLRequest(error))\n }\n }\n\n private func didFailToRequestAuthorization(_ error: Swift.Error) {\n dispatchPrecondition(condition: .onQueue(dispatchQueue))\n\n logger.error(error: error, message: "Failed to request authorization.")\n\n finish(result: .failure(error))\n }\n\n private func didReceiveURLRequest(_ restRequest: REST.Request, endpoint: AnyIPEndpoint) {\n dispatchPrecondition(condition: .onQueue(dispatchQueue))\n\n guard let transport = transportProvider.makeTransport() else {\n logger.error("Failed to obtain transport.")\n finish(result: .failure(REST.Error.transport(InternalTransportError.noTransport)))\n return\n }\n\n logger.debug(\n """\n Send request to \(restRequest.pathTemplate.templateString) via \(endpoint) \\n using \(transport.name).\n """\n )\n\n networkTask = transport.sendRequest(restRequest.urlRequest) { [weak self] data, response, error in\n guard let self else { return }\n dispatchQueue.async {\n if let error {\n let restError: REST.Error = (error as? URLError).map { .network($0) } ?? .transport(error)\n\n self.didReceiveError(restError, transport: transport, endpoint: endpoint)\n } else if let httpResponse = response as? HTTPURLResponse {\n self.didReceiveURLResponse(httpResponse, data: data ?? Data(), endpoint: endpoint)\n } else {\n self.didReceiveError(\n .transport(InternalTransportError.invalidResponse(response)),\n transport: transport,\n endpoint: endpoint\n )\n }\n }\n }\n }\n\n private func didFailToCreateURLRequest(_ error: REST.Error) {\n dispatchPrecondition(condition: .onQueue(dispatchQueue))\n\n logger.error(error: error, message: "Failed to create URLRequest.")\n\n finish(result: .failure(error))\n }\n\n private func didReceiveError(_ error: REST.Error, transport: RESTTransport, endpoint: AnyIPEndpoint) {\n dispatchPrecondition(condition: .onQueue(dispatchQueue))\n\n if case .network(URLError.cancelled) = error {\n finish(result: .failure(OperationError.cancelled))\n } else {\n logger.error(error: error, message: "Failed to perform request to \(endpoint) using \(transport.name).")\n retryRequest(with: error)\n }\n }\n\n private func didReceiveURLResponse(_ response: HTTPURLResponse, data: Data, endpoint: AnyIPEndpoint) {\n dispatchPrecondition(condition: .onQueue(dispatchQueue))\n\n logger.debug("Response: \(response.statusCode).")\n\n let handlerResult = responseHandler.handleURLResponse(response, data: data)\n\n switch handlerResult {\n case let .success(output):\n // Response handler produced value.\n finish(result: .success(output))\n\n case let .decoding(decoderBlock):\n // Response handler returned a block decoding value.\n let decodeResult = Result { try decoderBlock() }\n .mapError { error -> REST.Error in\n .decodeResponse(error)\n }\n finish(result: decodeResult.mapError { $0 })\n\n case let .unhandledResponse(serverErrorResponse):\n // Response handler couldn't handle the response.\n if serverErrorResponse?.code == .invalidAccessToken,\n requiresAuthorization,\n retryInvalidAccessTokenError {\n logger.debug("Received invalid access token error. Retry once.")\n retryInvalidAccessTokenError = false\n startRequest()\n } else {\n finish(result: .failure(\n REST.Error.unhandledResponse(response.statusCode, serverErrorResponse)\n ))\n }\n }\n }\n\n private func retryRequest(with error: REST.Error) {\n // Check if retry count is not exceeded.\n guard retryCount < retryStrategy.maxRetryCount else {\n if retryStrategy.maxRetryCount > 0 {\n logger.debug("Ran out of retry attempts (\(retryStrategy.maxRetryCount))")\n }\n finish(result: .failure(error))\n return\n }\n\n // Increment retry count.\n retryCount += 1\n\n // Retry immediately if retry delay is set to never.\n guard retryStrategy.delay != .never else {\n startRequest()\n return\n }\n\n guard let waitDelay = retryDelayIterator.next() else {\n logger.debug("Retry delay iterator failed to produce next value.")\n\n finish(result: .failure(error))\n return\n }\n\n logger.debug("Retry in \(waitDelay.logFormat()).")\n\n // Create timer to delay retry.\n let timer = DispatchSource.makeTimerSource(queue: dispatchQueue)\n\n timer.setEventHandler { [weak self] in\n self?.startRequest()\n }\n\n timer.setCancelHandler { [weak self] in\n self?.finish(result: .failure(OperationError.cancelled))\n }\n\n timer.schedule(wallDeadline: .now() + waitDelay.timeInterval)\n timer.activate()\n\n retryTimer = timer\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTNetworkOperation.swift
RESTNetworkOperation.swift
Swift
10,154
0.95
0.051282
0.063348
node-utils
843
2024-10-07T05:00:30.819805
GPL-3.0
false
be44bac51688179dcb20795603976142
//\n// RESTProxy.swift\n// MullvadREST\n//\n// Created by pronebird on 20/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadRustRuntime\nimport MullvadTypes\nimport Operations\n\npublic typealias ProxyCompletionHandler<Success: Sendable> = @Sendable (Result<Success, Swift.Error>) -> Void\n\nextension REST {\n public class Proxy<ConfigurationType: ProxyConfiguration>: @unchecked Sendable {\n /// Synchronization queue used by network operations.\n let dispatchQueue: DispatchQueue\n\n /// Operation queue used for running network operations.\n let operationQueue = AsyncOperationQueue()\n\n /// Proxy configuration.\n let configuration: ConfigurationType\n\n /// URL request factory.\n let requestFactory: REST.RequestFactory\n\n /// URL response decoder.\n let responseDecoder: JSONDecoder\n\n init(\n name: String,\n configuration: ConfigurationType,\n requestFactory: REST.RequestFactory,\n responseDecoder: JSONDecoder\n ) {\n dispatchQueue = DispatchQueue(label: "REST.\(name).dispatchQueue")\n operationQueue.name = "REST.\(name).operationQueue"\n\n self.configuration = configuration\n self.requestFactory = requestFactory\n self.responseDecoder = responseDecoder\n }\n\n func makeRequestExecutor<Success: Sendable>(\n name: String,\n requestHandler: RESTRequestHandler,\n responseHandler: some RESTResponseHandler<Success>\n ) -> any RESTRequestExecutor<Success> {\n let operationFactory = NetworkOperationFactory(\n dispatchQueue: dispatchQueue,\n configuration: configuration,\n name: name,\n requestHandler: requestHandler,\n responseHandler: responseHandler\n )\n\n return RequestExecutor(operationFactory: operationFactory, operationQueue: operationQueue)\n }\n }\n\n /// Factory object producing instances of `NetworkOperation`.\n private struct NetworkOperationFactory<Success: Sendable, ConfigurationType: ProxyConfiguration> {\n let dispatchQueue: DispatchQueue\n let configuration: ConfigurationType\n\n let name: String\n let requestHandler: RESTRequestHandler\n let responseHandler: any RESTResponseHandler<Success>\n\n /// Creates new network operation but does not schedule it for execution.\n func makeOperation(\n retryStrategy: REST.RetryStrategy,\n completionHandler: ProxyCompletionHandler<Success>? = nil\n ) -> NetworkOperation<Success> {\n return NetworkOperation(\n name: getTaskIdentifier(name: name),\n dispatchQueue: dispatchQueue,\n configuration: configuration,\n retryStrategy: retryStrategy,\n requestHandler: requestHandler,\n responseHandler: responseHandler,\n completionHandler: completionHandler\n )\n }\n }\n\n /// Network request executor that supports block-based and async execution flows.\n private struct RequestExecutor<Success: Sendable, ConfigurationType: ProxyConfiguration>: RESTRequestExecutor {\n let operationFactory: NetworkOperationFactory<Success, ConfigurationType>\n let operationQueue: AsyncOperationQueue\n\n func execute(\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping ProxyCompletionHandler<Success>\n ) -> Cancellable {\n let operation = operationFactory.makeOperation(\n retryStrategy: retryStrategy,\n completionHandler: completionHandler\n )\n\n operationQueue.addOperation(operation)\n\n return operation\n }\n\n func execute(retryStrategy: REST.RetryStrategy) async throws -> Success {\n let operation = operationFactory.makeOperation(retryStrategy: retryStrategy)\n\n return try await withTaskCancellationHandler {\n return try await withCheckedThrowingContinuation { continuation in\n operation.completionHandler = { result in\n continuation.resume(with: result)\n }\n operationQueue.addOperation(operation)\n }\n } onCancel: {\n operation.cancel()\n }\n }\n\n func execute(completionHandler: @escaping @Sendable ProxyCompletionHandler<Success>) -> Cancellable {\n return execute(retryStrategy: .noRetry, completionHandler: completionHandler)\n }\n\n func execute() async throws -> Success {\n return try await execute(retryStrategy: .noRetry)\n }\n }\n\n public class ProxyConfiguration: @unchecked Sendable {\n public let transportProvider: RESTTransportProvider\n public let apiTransportProvider: APITransportProviderProtocol\n public let addressCacheStore: AddressCache\n\n public init(\n transportProvider: RESTTransportProvider,\n apiTransportProvider: APITransportProviderProtocol,\n addressCacheStore: AddressCache\n ) {\n self.transportProvider = transportProvider\n self.apiTransportProvider = apiTransportProvider\n self.addressCacheStore = addressCacheStore\n }\n }\n\n public class AuthProxyConfiguration: ProxyConfiguration, @unchecked Sendable {\n public let accessTokenManager: RESTAccessTokenManagement\n\n public init(\n proxyConfiguration: ProxyConfiguration,\n accessTokenManager: RESTAccessTokenManagement\n ) {\n self.accessTokenManager = accessTokenManager\n\n super.init(\n transportProvider: proxyConfiguration.transportProvider,\n apiTransportProvider: proxyConfiguration.apiTransportProvider,\n addressCacheStore: proxyConfiguration.addressCacheStore\n )\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTProxy.swift
RESTProxy.swift
Swift
6,088
0.95
0.048485
0.108696
awesome-app
394
2024-06-14T07:24:06.603571
BSD-3-Clause
false
00da72ba96732544eff1cb15e8386ffb
//\n// RESTProxyFactory.swift\n// MullvadREST\n//\n// Created by pronebird on 19/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadRustRuntime\n\npublic protocol ProxyFactoryProtocol {\n var configuration: REST.AuthProxyConfiguration { get }\n\n func createAPIProxy() -> APIQuerying\n func createAccountsProxy() -> RESTAccountHandling\n func createDevicesProxy() -> DeviceHandling\n\n static func makeProxyFactory(\n transportProvider: RESTTransportProvider,\n apiTransportProvider: APITransportProviderProtocol,\n addressCache: REST.AddressCache\n ) -> ProxyFactoryProtocol\n}\n\nextension REST {\n public final class ProxyFactory: ProxyFactoryProtocol {\n public var configuration: AuthProxyConfiguration\n\n public static func makeProxyFactory(\n transportProvider: any RESTTransportProvider,\n apiTransportProvider: any APITransportProviderProtocol,\n addressCache: REST.AddressCache\n ) -> any ProxyFactoryProtocol {\n let basicConfiguration = REST.ProxyConfiguration(\n transportProvider: transportProvider,\n apiTransportProvider: apiTransportProvider,\n addressCacheStore: addressCache\n )\n\n let authenticationProxy = REST.AuthenticationProxy(\n configuration: basicConfiguration\n )\n let accessTokenManager = REST.AccessTokenManager(\n authenticationProxy: authenticationProxy\n )\n\n let authConfiguration = REST.AuthProxyConfiguration(\n proxyConfiguration: basicConfiguration,\n accessTokenManager: accessTokenManager\n )\n\n return ProxyFactory(configuration: authConfiguration)\n }\n\n public init(configuration: AuthProxyConfiguration) {\n self.configuration = configuration\n }\n\n public func createAPIProxy() -> APIQuerying {\n REST.APIProxy(configuration: configuration)\n }\n\n public func createAccountsProxy() -> RESTAccountHandling {\n REST.AccountsProxy(configuration: configuration)\n }\n\n public func createDevicesProxy() -> DeviceHandling {\n REST.DevicesProxy(configuration: configuration)\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTProxyFactory.swift
RESTProxyFactory.swift
Swift
2,334
0.95
0.013889
0.118644
awesome-app
783
2025-04-02T01:04:22.708528
MIT
false
3029a05272c5dbbd204c3f9294de36e1
//\n// RESTRequestExecutor.swift\n// MullvadREST\n//\n// Created by pronebird on 21/08/2023.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport protocol MullvadTypes.Cancellable\n\npublic protocol RESTRequestExecutor<Success> {\n associatedtype Success: Sendable\n\n /// Execute new network request with `.noRetry` strategy and receive the result in a completion handler on main queue.\n func execute(completionHandler: @escaping @Sendable (Result<Success, Swift.Error>) -> Void) -> Cancellable\n\n /// Execute new network request and receive the result in a completion handler on main queue.\n func execute(\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping @Sendable (Result<Success, Swift.Error>) -> Void\n ) -> Cancellable\n\n /// Execute new network request with `.noRetry` strategy and receive the result back via async flow.\n func execute() async throws -> Success\n\n /// Execute new network request and receive the result back via async flow.\n func execute(retryStrategy: REST.RetryStrategy) async throws -> Success\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTRequestExecutor.swift
RESTRequestExecutor.swift
Swift
1,109
0.95
0
0.478261
react-lib
527
2023-08-05T04:36:08.416315
GPL-3.0
false
f954377ff925641854531bfa0f8cad13
//\n// RESTRequestFactory.swift\n// MullvadREST\n//\n// Created by pronebird on 16/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n\nextension REST {\n final class RequestFactory {\n let hostname: String\n let pathPrefix: String\n let networkTimeout: Duration\n let bodyEncoder: JSONEncoder\n\n static func withDefaultAPICredentials(\n pathPrefix: String,\n bodyEncoder: JSONEncoder\n ) -> RequestFactory {\n RequestFactory(\n hostname: defaultAPIHostname,\n pathPrefix: pathPrefix,\n networkTimeout: defaultAPINetworkTimeout,\n bodyEncoder: bodyEncoder\n )\n }\n\n init(\n hostname: String,\n pathPrefix: String,\n networkTimeout: Duration,\n bodyEncoder: JSONEncoder\n ) {\n self.hostname = hostname\n self.pathPrefix = pathPrefix\n self.networkTimeout = networkTimeout\n self.bodyEncoder = bodyEncoder\n }\n\n func createRequest(\n endpoint: AnyIPEndpoint,\n method: HTTPMethod,\n pathTemplate: URLPathTemplate\n ) throws -> REST.Request {\n var urlComponents = URLComponents()\n urlComponents.scheme = "https"\n urlComponents.path = pathPrefix\n urlComponents.host = "\(endpoint.ip)"\n urlComponents.port = Int(endpoint.port)\n\n let pathString = try pathTemplate.pathString()\n let requestURL = urlComponents.url!.appendingPathComponent(pathString)\n\n var request = URLRequest(\n url: requestURL,\n cachePolicy: .useProtocolCachePolicy,\n timeoutInterval: networkTimeout.timeInterval\n )\n request.httpShouldHandleCookies = false\n request.addValue(hostname, forHTTPHeaderField: HTTPHeader.host)\n request.addValue("application/json", forHTTPHeaderField: HTTPHeader.contentType)\n request.addValue("mullvad-app", forHTTPHeaderField: HTTPHeader.userAgent)\n request.httpMethod = method.rawValue\n\n let prefixedPathTemplate = URLPathTemplate(stringLiteral: pathPrefix) + pathTemplate\n\n return REST.Request(\n urlRequest: request,\n pathTemplate: prefixedPathTemplate\n )\n }\n\n func createRequestBuilder(\n endpoint: AnyIPEndpoint,\n method: HTTPMethod,\n pathTemplate: URLPathTemplate\n ) throws -> RequestBuilder {\n let request = try createRequest(\n endpoint: endpoint,\n method: method,\n pathTemplate: pathTemplate\n )\n\n return RequestBuilder(\n restRequest: request,\n bodyEncoder: bodyEncoder\n )\n }\n }\n\n struct RequestBuilder {\n private var restRequest: REST.Request\n private let bodyEncoder: JSONEncoder\n\n init(restRequest: REST.Request, bodyEncoder: JSONEncoder) {\n self.restRequest = restRequest\n self.bodyEncoder = bodyEncoder\n }\n\n mutating func setHTTPBody(value: some Encodable) throws {\n restRequest.urlRequest.httpBody = try bodyEncoder.encode(value)\n }\n\n mutating func setETagHeader(etag: String) {\n var etag = etag\n // Enforce weak validator to account for some backend caching quirks.\n if etag.starts(with: "\"") {\n etag.insert(contentsOf: "W/", at: etag.startIndex)\n }\n restRequest.urlRequest.setValue(etag, forHTTPHeaderField: HTTPHeader.ifNoneMatch)\n }\n\n mutating func setAuthorization(_ authorization: REST.Authorization) {\n restRequest.urlRequest.addValue(\n "Bearer \(authorization)",\n forHTTPHeaderField: HTTPHeader.authorization\n )\n }\n\n mutating func addValue(_ value: String, forHTTPHeaderField: String) {\n restRequest.urlRequest.addValue(\n value,\n forHTTPHeaderField: forHTTPHeaderField\n )\n }\n\n func getRequest() -> REST.Request {\n restRequest\n }\n }\n\n struct URLPathTemplate: ExpressibleByStringLiteral {\n enum Component {\n case literal(String)\n case placeholder(String)\n }\n\n enum Error: LocalizedError {\n /// Replacement value is not provided for placeholder.\n case noReplacement(_ name: String)\n\n /// Failure to perecent encode replacement value.\n case percentEncoding\n\n var errorDescription: String? {\n switch self {\n case let .noReplacement(placeholder):\n return "Replacement is not provided for \(placeholder)."\n\n case .percentEncoding:\n return "Failed to percent encode replacement value."\n }\n }\n }\n\n private var components: [Component]\n private var replacements = [String: String]()\n\n init(stringLiteral value: StringLiteralType) {\n let slashCharset = CharacterSet(charactersIn: "/")\n\n components = value.split(separator: "/").map { subpath -> Component in\n if subpath.hasPrefix("{"), subpath.hasSuffix("}") {\n let name = String(subpath.dropFirst().dropLast())\n\n return .placeholder(name)\n } else {\n return .literal(\n subpath.trimmingCharacters(in: slashCharset)\n )\n }\n }\n }\n\n private init(components: [Component]) {\n self.components = components\n }\n\n mutating func addPercentEncodedReplacement(\n name: String,\n value: String,\n allowedCharacters: CharacterSet\n ) throws {\n let encoded = value.addingPercentEncoding(\n withAllowedCharacters: allowedCharacters\n )\n\n if let encoded {\n replacements[name] = encoded\n } else {\n throw Error.percentEncoding\n }\n }\n\n var templateString: String {\n var combinedString = ""\n\n for component in components {\n combinedString += "/"\n\n switch component {\n case let .literal(string):\n combinedString += string\n case let .placeholder(name):\n combinedString += "{\(name)}"\n }\n }\n\n return combinedString\n }\n\n func pathString() throws -> String {\n var combinedPath = ""\n\n for component in components {\n combinedPath += "/"\n\n switch component {\n case let .literal(string):\n combinedPath += string\n\n case let .placeholder(name):\n if let string = replacements[name] {\n combinedPath += string\n } else {\n throw Error.noReplacement(name)\n }\n }\n }\n\n return combinedPath\n }\n\n static func + (lhs: URLPathTemplate, rhs: URLPathTemplate) -> URLPathTemplate {\n URLPathTemplate(components: lhs.components + rhs.components)\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTRequestFactory.swift
RESTRequestFactory.swift
Swift
7,607
0.95
0.06639
0.049751
python-kit
529
2025-03-04T03:43:11.987265
Apache-2.0
false
69d8ddb273c4e007407fbfb1c8e28257
//\n// RESTRequestHandler.swift\n// MullvadREST\n//\n// Created by pronebird on 20/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n\nprotocol RESTRequestHandler {\n func createURLRequest(\n endpoint: AnyIPEndpoint,\n authorization: REST.Authorization?\n ) throws -> REST.Request\n\n var authorizationProvider: RESTAuthorizationProvider? { get }\n}\n\nextension REST {\n struct Request {\n var urlRequest: URLRequest\n var pathTemplate: URLPathTemplate\n }\n\n final class AnyRequestHandler: RESTRequestHandler {\n private let _createURLRequest: (AnyIPEndpoint, REST.Authorization?) throws -> REST.Request\n\n let authorizationProvider: RESTAuthorizationProvider?\n\n init(createURLRequest: @escaping @Sendable (AnyIPEndpoint) throws -> REST.Request) {\n _createURLRequest = { endpoint, _ in\n try createURLRequest(endpoint)\n }\n authorizationProvider = nil\n }\n\n init(\n createURLRequest: @escaping @Sendable (AnyIPEndpoint, REST.Authorization) throws -> REST.Request,\n authorizationProvider: RESTAuthorizationProvider\n ) {\n _createURLRequest = { endpoint, authorization in\n try createURLRequest(endpoint, authorization!)\n }\n self.authorizationProvider = authorizationProvider\n }\n\n func createURLRequest(\n endpoint: AnyIPEndpoint,\n authorization: REST.Authorization?\n ) throws -> REST.Request {\n try _createURLRequest(endpoint, authorization)\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTRequestHandler.swift
RESTRequestHandler.swift
Swift
1,656
0.95
0.071429
0.148936
node-utils
298
2024-04-13T22:22:37.597307
GPL-3.0
false
bfacf7e899b578ba5994c56b055f6d2a
//\n// RESTResponseHandler.swift\n// MullvadREST\n//\n// Created by pronebird on 25/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadRustRuntime\nimport MullvadTypes\n\nprotocol RESTResponseHandler<Success> {\n associatedtype Success\n\n func handleURLResponse(_ response: HTTPURLResponse, data: Data) -> REST.ResponseHandlerResult<Success>\n}\n\nprotocol RESTRustResponseHandler<Success> {\n associatedtype Success\n\n func handleResponse(_ resonse: ProxyAPIResponse) -> REST.ResponseHandlerResult<Success>\n}\n\nextension REST {\n // TODO: We could probably remove the `decoding` case when network requests are fully merged to Mullvad API.\n /// Responser handler result type.\n enum ResponseHandlerResult<Success> {\n /// Response handler succeeded and produced a value.\n case success(Success)\n\n /// Response handler succeeded and returned a block that decodes the value.\n case decoding(_ decoderBlock: () throws -> Success)\n\n /// Response handler received the response that it cannot handle.\n /// Server error response is attached when available.\n case unhandledResponse(ServerErrorResponse?)\n }\n\n final class AnyResponseHandler<Success>: RESTResponseHandler {\n typealias HandlerBlock = (HTTPURLResponse, Data) -> REST.ResponseHandlerResult<Success>\n\n private let handlerBlock: HandlerBlock\n\n init(_ block: @escaping HandlerBlock) {\n handlerBlock = block\n }\n\n func handleURLResponse(_ response: HTTPURLResponse, data: Data) -> REST\n .ResponseHandlerResult<Success> {\n handlerBlock(response, data)\n }\n }\n\n /// Returns default response handler that parses JSON response into the\n /// given `Decodable` type when it encounters HTTP `2xx` code, otherwise\n /// attempts to decode the server error.\n static func defaultResponseHandler<T: Decodable>(\n decoding type: T.Type,\n with decoder: JSONDecoder\n ) -> AnyResponseHandler<T> {\n AnyResponseHandler { response, data in\n if HTTPStatus.isSuccess(response.statusCode) {\n return .decoding {\n try decoder.decode(type, from: data)\n }\n } else {\n return .unhandledResponse(\n try? decoder.decode(\n ServerErrorResponse.self,\n from: data\n )\n )\n }\n }\n }\n\n final class RustResponseHandler<Success>: RESTRustResponseHandler {\n typealias HandlerBlock = (ProxyAPIResponse) -> REST.ResponseHandlerResult<Success>\n\n private let handlerBlock: HandlerBlock\n\n init(_ block: @escaping HandlerBlock) {\n handlerBlock = block\n }\n\n func handleResponse(_ response: ProxyAPIResponse) -> REST.ResponseHandlerResult<Success> {\n handlerBlock(response)\n }\n }\n\n /// Returns default response handler that parses JSON response into the\n /// given `Decodable` type if possible, otherwise attempts to decode\n /// the server error.\n static func rustResponseHandler<T: Decodable>(\n decoding type: T.Type,\n with decoder: JSONDecoder\n ) -> RustResponseHandler<T> {\n RustResponseHandler { (response: ProxyAPIResponse) in\n guard let data = response.data else {\n return .unhandledResponse(nil)\n }\n\n do {\n let decoded = try decoder.decode(type, from: data)\n return .decoding { decoded }\n } catch {\n return .unhandledResponse(ServerErrorResponse(code: .parsingError, detail: error.localizedDescription))\n }\n }\n }\n\n static func rustCustomResponseHandler<T: Decodable>(\n conversion: @escaping (_ data: Data, _ etag: String?) -> T?\n ) -> RustResponseHandler<T> {\n RustResponseHandler { (response: ProxyAPIResponse) in\n guard let data = response.data else {\n return .unhandledResponse(nil)\n }\n\n return if let convertedResponse = conversion(data, response.etag) {\n .decoding { convertedResponse }\n } else {\n .unhandledResponse(nil)\n }\n }\n }\n\n /// Response handler for reponses where the body is empty.\n static func rustEmptyResponseHandler() -> RustResponseHandler<Void> {\n RustResponseHandler { _ in\n .success(())\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTResponseHandler.swift
RESTResponseHandler.swift
Swift
4,548
0.95
0.074074
0.176991
node-utils
2
2025-05-15T15:00:26.484933
MIT
false
ff4e57e16b86b6c73b5539f0a75f55c0
//\n// RESTRustNetworkOperation.swift\n// MullvadREST\n//\n// Created by Jon Petersson on 2025-01-29.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadLogging\nimport MullvadRustRuntime\nimport MullvadTypes\nimport Operations\n\nextension REST {\n class MullvadApiNetworkOperation<Success: Sendable>: ResultOperation<Success>, @unchecked Sendable {\n private let logger: Logger\n\n private let requestHandler: MullvadApiRequestHandler\n private var responseDecoder: JSONDecoder\n private let responseHandler: any RESTRustResponseHandler<Success>\n private var networkTask: MullvadApiCancellable?\n\n init(\n name: String,\n dispatchQueue: DispatchQueue,\n requestHandler: @escaping MullvadApiRequestHandler,\n responseDecoder: JSONDecoder,\n responseHandler: some RESTRustResponseHandler<Success>,\n completionHandler: CompletionHandler? = nil\n ) {\n self.responseDecoder = responseDecoder\n self.requestHandler = requestHandler\n self.responseHandler = responseHandler\n\n var logger = Logger(label: "REST.RustNetworkOperation")\n logger[metadataKey: "name"] = .string(name)\n self.logger = logger\n\n super.init(\n dispatchQueue: dispatchQueue,\n completionQueue: .main,\n completionHandler: completionHandler\n )\n }\n\n override public func operationDidCancel() {\n networkTask?.cancel()\n networkTask = nil\n }\n\n override public func main() {\n startRequest()\n }\n\n func startRequest() {\n dispatchPrecondition(condition: .onQueue(dispatchQueue))\n\n guard !isCancelled else {\n finish(result: .failure(OperationError.cancelled))\n return\n }\n\n networkTask = requestHandler { [weak self] response in\n guard let self else { return }\n\n if let error = response.restError() {\n finish(result: .failure(error))\n return\n }\n\n let decodedResponse = responseHandler.handleResponse(response)\n\n switch decodedResponse {\n case let .success(value):\n finish(result: .success(value))\n case let .decoding(block):\n finish(result: .success(try block()))\n case let .unhandledResponse(error):\n finish(result: .failure(REST.Error.unhandledResponse(Int(response.statusCode), error)))\n }\n }\n }\n }\n}\n\nextension MullvadApiResponse {\n public func restError() -> REST.Error? {\n guard !success else {\n return nil\n }\n\n guard let serverResponseCode else {\n return .transport(MullvadApiTransportError.connectionFailed(description: errorDescription))\n }\n\n let response = REST.ServerErrorResponse(\n code: REST.ServerResponseCode(rawValue: serverResponseCode),\n detail: errorDescription\n )\n return .unhandledResponse(Int(statusCode), response)\n }\n}\n\nenum MullvadApiTransportError: Error {\n case connectionFailed(description: String?)\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTRustNetworkOperation.swift
RESTRustNetworkOperation.swift
Swift
3,357
0.95
0.037383
0.078652
awesome-app
538
2023-09-29T19:03:48.799720
Apache-2.0
false
5bb1af7fc8afc805276703449d485089
//\n// RESTTaskIdentifier.swift\n// MullvadREST\n//\n// Created by pronebird on 16/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\n\nextension REST {\n private static let nslock = NSLock()\n nonisolated(unsafe) private static var taskCount: UInt32 = 0\n\n static func getTaskIdentifier(name: String) -> String {\n nslock.lock()\n defer { nslock.unlock() }\n\n let (partialValue, isOverflow) = taskCount.addingReportingOverflow(1)\n let nextValue = isOverflow ? 1 : partialValue\n taskCount = nextValue\n\n return "\(name).\(nextValue)"\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTTaskIdentifier.swift
RESTTaskIdentifier.swift
Swift
623
0.95
0
0.35
python-kit
397
2024-02-11T18:07:12.167887
BSD-3-Clause
false
df4ca5f9007ac1f0609f4e360d752b16
//\n// RESTURLSession.swift\n// MullvadREST\n//\n// Created by pronebird on 18/04/2022.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport Network\n\nextension REST {\n public static func makeURLSession(addressCache: AddressCache) -> URLSession {\n let certificatePath = Bundle(for: SSLPinningURLSessionDelegate.self)\n .path(forResource: "le_root_cert", ofType: "cer")!\n let data = FileManager.default.contents(atPath: certificatePath)!\n let secCertificate = SecCertificateCreateWithData(nil, data as CFData)!\n\n let sessionDelegate = SSLPinningURLSessionDelegate(\n sslHostname: defaultAPIHostname,\n trustedRootCertificates: [secCertificate],\n addressCache: addressCache\n )\n\n let sessionConfiguration = URLSessionConfiguration.ephemeral\n\n let session = URLSession(\n configuration: sessionConfiguration,\n delegate: sessionDelegate,\n delegateQueue: nil\n )\n\n return session\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\RESTURLSession.swift
RESTURLSession.swift
Swift
1,053
0.95
0.028571
0.241379
node-utils
989
2025-04-07T14:16:45.690745
Apache-2.0
false
7a1c1e521da3092abbb8732eb4613fcc
//\n// ServerRelaysResponse.swift\n// MullvadREST\n//\n// Created by pronebird on 27/07/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\nimport Network\n\nextension REST {\n public struct ServerLocation: Codable, Equatable, Sendable {\n public let country: String\n public let city: String\n public let latitude: Double\n public let longitude: Double\n\n public init(country: String, city: String, latitude: Double, longitude: Double) {\n self.country = country\n self.city = city\n self.latitude = latitude\n self.longitude = longitude\n }\n }\n\n public struct BridgeRelay: Codable, Equatable, Sendable {\n public let hostname: String\n public let active: Bool\n public let owned: Bool\n public let location: LocationIdentifier\n public let provider: String\n public let ipv4AddrIn: IPv4Address\n public let weight: UInt64\n public let includeInCountry: Bool\n public var daita: Bool?\n\n public func override(ipv4AddrIn: IPv4Address?) -> Self {\n BridgeRelay(\n hostname: hostname,\n active: active,\n owned: owned,\n location: location,\n provider: provider,\n ipv4AddrIn: ipv4AddrIn ?? self.ipv4AddrIn,\n weight: weight,\n includeInCountry: includeInCountry\n )\n }\n }\n\n public struct ServerRelay: Codable, Equatable, Sendable {\n public let hostname: String\n public let active: Bool\n public let owned: Bool\n public let location: LocationIdentifier\n public let provider: String\n public let weight: UInt64\n public let ipv4AddrIn: IPv4Address\n public let ipv6AddrIn: IPv6Address\n public let publicKey: Data\n public let includeInCountry: Bool\n public let daita: Bool?\n public let shadowsocksExtraAddrIn: [String]?\n\n public func override(ipv4AddrIn: IPv4Address?, ipv6AddrIn: IPv6Address?) -> Self {\n ServerRelay(\n hostname: hostname,\n active: active,\n owned: owned,\n location: location,\n provider: provider,\n weight: weight,\n ipv4AddrIn: ipv4AddrIn ?? self.ipv4AddrIn,\n ipv6AddrIn: ipv6AddrIn ?? self.ipv6AddrIn,\n publicKey: publicKey,\n includeInCountry: includeInCountry,\n daita: daita,\n shadowsocksExtraAddrIn: shadowsocksExtraAddrIn?.filter { address in\n return switch address {\n case let ip where IPv4Address(ip) != nil:\n ipv4AddrIn == nil\n case let ip where IPv6Address(ip) != nil:\n ipv6AddrIn == nil\n default:\n true\n }\n }\n )\n }\n\n public func override(daita: Bool) -> Self {\n ServerRelay(\n hostname: hostname,\n active: active,\n owned: owned,\n location: location,\n provider: provider,\n weight: weight,\n ipv4AddrIn: ipv4AddrIn,\n ipv6AddrIn: ipv6AddrIn,\n publicKey: publicKey,\n includeInCountry: includeInCountry,\n daita: daita,\n shadowsocksExtraAddrIn: shadowsocksExtraAddrIn\n )\n }\n }\n\n public struct ServerWireguardTunnels: Codable, Equatable, Sendable {\n public let ipv4Gateway: IPv4Address\n public let ipv6Gateway: IPv6Address\n public let portRanges: [[UInt16]]\n public let relays: [ServerRelay]\n public let shadowsocksPortRanges: [[UInt16]]\n\n public init(\n ipv4Gateway: IPv4Address,\n ipv6Gateway: IPv6Address,\n portRanges: [[UInt16]],\n relays: [ServerRelay],\n shadowsocksPortRanges: [[UInt16]]\n ) {\n self.ipv4Gateway = ipv4Gateway\n self.ipv6Gateway = ipv6Gateway\n self.portRanges = portRanges\n self.relays = relays\n self.shadowsocksPortRanges = shadowsocksPortRanges\n }\n }\n\n public struct ServerShadowsocks: Codable, Equatable, Sendable {\n public let `protocol`: String\n public let port: UInt16\n public let cipher: String\n public let password: String\n }\n\n public struct ServerBridges: Codable, Equatable, Sendable {\n public let shadowsocks: [ServerShadowsocks]\n public let relays: [BridgeRelay]\n }\n\n public struct ServerRelaysResponse: Codable, Equatable, Sendable {\n public let locations: [String: ServerLocation]\n public let wireguard: ServerWireguardTunnels\n public let bridge: ServerBridges\n\n public init(\n locations: [String: ServerLocation],\n wireguard: ServerWireguardTunnels,\n bridge: ServerBridges\n ) {\n self.locations = locations\n self.wireguard = wireguard\n self.bridge = bridge\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\ServerRelaysResponse.swift
ServerRelaysResponse.swift
Swift
5,282
0.95
0.00625
0.047945
python-kit
397
2024-03-06T15:29:09.269453
GPL-3.0
false
47bef1afd229c43f4b3dc637fafb7471
//\n// SSLPinningURLSessionDelegate.swift\n// MullvadREST\n//\n// Created by pronebird on 17/05/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadLogging\nimport Network\nimport Security\n\nfinal class SSLPinningURLSessionDelegate: NSObject, URLSessionDelegate, @unchecked Sendable {\n private let sslHostname: String\n private let trustedRootCertificates: [SecCertificate]\n private let addressCache: REST.AddressCache\n\n private let logger = Logger(label: "SSLPinningURLSessionDelegate")\n\n init(sslHostname: String, trustedRootCertificates: [SecCertificate], addressCache: REST.AddressCache) {\n self.sslHostname = sslHostname\n self.trustedRootCertificates = trustedRootCertificates\n self.addressCache = addressCache\n }\n\n // MARK: - URLSessionDelegate\n\n func urlSession(\n _ session: URLSession,\n didReceive challenge: URLAuthenticationChallenge,\n completionHandler: @escaping @Sendable (URLSession.AuthChallengeDisposition, URLCredential?) -> Void\n ) {\n if challenge.protectionSpace.authenticationMethod == NSURLAuthenticationMethodServerTrust,\n let serverTrust = challenge.protectionSpace.serverTrust {\n /// If a request is going through a local shadowsocks proxy, the host would be a localhost address,`\n /// which would not appear in the list of valid host names in the root certificate.\n /// The same goes for direct connections to the API, the host would be the IP address of the endpoint.\n /// Certificates, cannot be signed for IP addresses, in such case, specify that the host name is `defaultAPIHostname`\n var hostName = challenge.protectionSpace.host\n let overridenHostnames = [\n "\(IPv4Address.loopback)",\n "\(IPv6Address.loopback)",\n "\(REST.defaultAPIEndpoint.ip)",\n "\(addressCache.getCurrentEndpoint().ip)",\n ]\n if overridenHostnames.contains(hostName) {\n hostName = sslHostname\n }\n\n if verifyServerTrust(serverTrust, for: hostName) {\n completionHandler(.useCredential, URLCredential(trust: serverTrust))\n return\n }\n }\n completionHandler(.rejectProtectionSpace, nil)\n }\n\n // MARK: - Private\n\n private func verifyServerTrust(_ serverTrust: SecTrust, for sslHostname: String) -> Bool {\n var secResult: OSStatus\n\n // Set SSL policy\n let sslPolicy = SecPolicyCreateSSL(true, sslHostname as CFString)\n secResult = SecTrustSetPolicies(serverTrust, sslPolicy)\n guard secResult == errSecSuccess else {\n logger.error("SecTrustSetPolicies failure: \(formatErrorMessage(code: secResult))")\n return false\n }\n\n // Set trusted root certificates\n secResult = SecTrustSetAnchorCertificates(serverTrust, trustedRootCertificates as CFArray)\n guard secResult == errSecSuccess else {\n logger.error(\n "SecTrustSetAnchorCertificates failure: \(formatErrorMessage(code: secResult))"\n )\n return false\n }\n\n // Tell security framework to only trust the provided root certificates\n secResult = SecTrustSetAnchorCertificatesOnly(serverTrust, true)\n guard secResult == errSecSuccess else {\n logger.error(\n "SecTrustSetAnchorCertificatesOnly failure: \(formatErrorMessage(code: secResult))"\n )\n return false\n }\n\n var error: CFError?\n if SecTrustEvaluateWithError(serverTrust, &error) {\n return true\n } else {\n logger.error(\n "SecTrustEvaluateWithError failure: \(error?.localizedDescription ?? "<nil>")"\n )\n return false\n }\n }\n\n private func formatErrorMessage(code: OSStatus) -> String {\n let message = SecCopyErrorMessageString(code, nil) as String? ?? "<nil>"\n\n return "\(message) (code: \(code))"\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\ApiHandlers\SSLPinningURLSessionDelegate.swift
SSLPinningURLSessionDelegate.swift
Swift
4,095
0.95
0.084906
0.175824
vue-tools
874
2023-12-22T13:43:03.337146
Apache-2.0
false
454bb5d90cbea920cb36d47f68ca333a
//\n// UInt+Counting.swift\n// MullvadVPN\n//\n// Created by Jon Petersson on 2024-11-05.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\n\nextension UInt {\n /// Determines whether a number has a specific order in a given set.\n /// Eg. `6.isOrdered(nth: 3, forEverySetOf: 4)` -> "Is a 6 ordered third in an arbitrary\n /// amount of sets of four?". The result of this is `true`, since in a range of eg. 0-7 a six\n /// would be considered third if the range was divided into sets of 4.\n public func isOrdered(nth: UInt, forEverySetOf set: UInt) -> Bool {\n guard nth > 0, set > 0 else {\n assertionFailure("Both 'nth' and 'set' must be positive")\n return false\n }\n\n return self % set == nth - 1\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Extensions\UInt+Counting.swift
UInt+Counting.swift
Swift
788
0.95
0.041667
0.52381
react-lib
382
2024-03-18T06:14:12.704200
GPL-3.0
false
037713cacda0b346886ca49abebc2b41
//\n// MullvadApiNetworkOperation.swift\n// MullvadREST\n//\n// Created by Jon Petersson on 2025-01-29.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadLogging\nimport MullvadRustRuntime\nimport MullvadTypes\nimport Operations\n\nprivate enum MullvadApiTransportError: Error {\n case connectionFailed(description: String?)\n}\n\nextension REST {\n class MullvadApiNetworkOperation<Success: Sendable>: ResultOperation<Success>, @unchecked Sendable {\n private let logger: Logger\n\n private let request: APIRequest\n private let transportProvider: APITransportProviderProtocol\n private var responseDecoder: JSONDecoder\n private let responseHandler: any RESTRustResponseHandler<Success>\n private var networkTask: Cancellable?\n\n init(\n name: String,\n dispatchQueue: DispatchQueue,\n request: APIRequest,\n transportProvider: APITransportProviderProtocol,\n responseDecoder: JSONDecoder,\n responseHandler: some RESTRustResponseHandler<Success>,\n completionHandler: CompletionHandler? = nil\n ) {\n self.request = request\n self.transportProvider = transportProvider\n self.responseDecoder = responseDecoder\n self.responseHandler = responseHandler\n\n var logger = Logger(label: "REST.RustNetworkOperation")\n\n logger[metadataKey: "name"] = .string(name)\n self.logger = logger\n\n super.init(\n dispatchQueue: dispatchQueue,\n completionQueue: .main,\n completionHandler: completionHandler\n )\n }\n\n override public func operationDidCancel() {\n networkTask?.cancel()\n networkTask = nil\n }\n\n override public func main() {\n startRequest()\n }\n\n func startRequest() {\n dispatchPrecondition(condition: .onQueue(dispatchQueue))\n\n guard !isCancelled else {\n finish(result: .failure(OperationError.cancelled))\n return\n }\n\n let transport = transportProvider.makeTransport()\n networkTask = transport?.sendRequest(request) { [weak self] response in\n guard let self else { return }\n\n if let apiError = response.error {\n finish(result: .failure(restError(apiError: apiError)))\n return\n }\n\n let decodedResponse = responseHandler.handleResponse(response)\n\n switch decodedResponse {\n case let .success(value):\n finish(result: .success(value))\n case let .decoding(block):\n do {\n finish(result: .success(try block()))\n } catch {\n finish(result: .failure(REST.Error.unhandledResponse(0, nil)))\n }\n case let .unhandledResponse(error):\n finish(result: .failure(REST.Error.unhandledResponse(0, error)))\n }\n }\n }\n\n private func restError(apiError: APIError) -> Error {\n guard let serverResponseCode = apiError.serverResponseCode else {\n return .transport(MullvadApiTransportError.connectionFailed(description: apiError.errorDescription))\n }\n\n let response = REST.ServerErrorResponse(\n code: REST.ServerResponseCode(rawValue: serverResponseCode),\n detail: apiError.errorDescription\n )\n return .unhandledResponse(apiError.statusCode, response)\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\MullvadAPI\MullvadApiNetworkOperation.swift
MullvadApiNetworkOperation.swift
Swift
3,729
0.95
0.045455
0.076087
awesome-app
338
2023-10-18T10:08:12.632830
BSD-3-Clause
false
fbea45561411fca9a7fbf98ed01972a8
//\n// MullvadApiRequestFactory.swift\n// MullvadVPN\n//\n// Created by Jon Petersson on 2025-02-07.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadRustRuntime\nimport MullvadTypes\n\npublic struct MullvadApiRequestFactory: Sendable {\n public let apiContext: MullvadApiContext\n\n public init(apiContext: MullvadApiContext) {\n self.apiContext = apiContext\n }\n\n public func makeRequest(_ request: APIRequest) -> REST.MullvadApiRequestHandler {\n { completion in\n let completionPointer = MullvadApiCompletion { apiResponse in\n try? completion?(apiResponse)\n }\n\n let rawCompletionPointer = Unmanaged.passRetained(completionPointer).toOpaque()\n\n switch request {\n case let .getAddressList(retryStrategy):\n return MullvadApiCancellable(handle: mullvad_ios_get_addresses(\n apiContext.context,\n rawCompletionPointer,\n retryStrategy.toRustStrategy()\n ))\n\n case let .getRelayList(retryStrategy, etag: etag):\n return MullvadApiCancellable(handle: mullvad_ios_get_relays(\n apiContext.context,\n rawCompletionPointer,\n retryStrategy.toRustStrategy(),\n etag\n ))\n case let .sendProblemReport(retryStrategy, problemReportRequest):\n let rustRequest = RustProblemReportRequest(from: problemReportRequest)\n return MullvadApiCancellable(handle: mullvad_ios_send_problem_report(\n apiContext.context,\n rawCompletionPointer,\n retryStrategy.toRustStrategy(),\n rustRequest.toRust()\n ))\n case let .getAccount(retryStrategy, accountNumber: accountNumber):\n return MullvadApiCancellable(handle: mullvad_ios_get_account(\n apiContext.context,\n rawCompletionPointer,\n retryStrategy.toRustStrategy(),\n accountNumber\n ))\n case let .createAccount(retryStrategy):\n return MullvadApiCancellable(handle: mullvad_ios_create_account(\n apiContext.context,\n rawCompletionPointer,\n retryStrategy.toRustStrategy()\n ))\n case let .deleteAccount(retryStrategy, accountNumber: accountNumber):\n return MullvadApiCancellable(handle: mullvad_ios_delete_account(\n apiContext.context,\n rawCompletionPointer,\n retryStrategy.toRustStrategy(),\n accountNumber\n ))\n }\n }\n }\n}\n\nextension REST {\n public typealias MullvadApiRequestHandler = (((MullvadApiResponse) throws -> Void)?) -> MullvadApiCancellable\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\MullvadAPI\MullvadApiRequestFactory.swift
MullvadApiRequestFactory.swift
Swift
2,961
0.95
0.025974
0.101449
python-kit
654
2023-08-09T16:45:01.181258
BSD-3-Clause
false
bb2870591e1793270caf5057a1ffe0c9
//\n// MullvadAccountProxy.swift\n// MullvadVPN\n//\n// Created by Jon Petersson on 2025-03-31.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadRustRuntime\nimport MullvadTypes\nimport Operations\nimport WireGuardKitTypes\n\npublic protocol RESTAccountHandling: Sendable {\n func createAccount(\n retryStrategy: REST.RetryStrategy,\n completion: @escaping @Sendable ProxyCompletionHandler<NewAccountData>\n ) -> Cancellable\n\n func getAccountData(\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping @Sendable ProxyCompletionHandler<Account>\n ) -> Cancellable\n\n func deleteAccount(\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Void>\n ) -> Cancellable\n}\n\nextension REST {\n public final class MullvadAccountProxy: RESTAccountHandling, @unchecked Sendable {\n let transportProvider: APITransportProviderProtocol\n let dispatchQueue: DispatchQueue\n let operationQueue = AsyncOperationQueue()\n let responseDecoder: JSONDecoder\n\n public init(\n transportProvider: APITransportProviderProtocol,\n dispatchQueue: DispatchQueue,\n responseDecoder: JSONDecoder\n ) {\n self.transportProvider = transportProvider\n self.dispatchQueue = dispatchQueue\n self.responseDecoder = responseDecoder\n }\n\n public func createAccount(\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<NewAccountData>\n ) -> Cancellable {\n let responseHandler = rustResponseHandler(\n decoding: NewAccountData.self,\n with: responseDecoder\n )\n\n return createNetworkOperation(\n request: .createAccount(retryStrategy),\n responseHandler: responseHandler,\n completionHandler: completion\n )\n }\n\n public func getAccountData(\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Account>\n ) -> Cancellable {\n let responseHandler = rustResponseHandler(\n decoding: Account.self,\n with: responseDecoder\n )\n\n return createNetworkOperation(\n request: .getAccount(retryStrategy, accountNumber: accountNumber),\n responseHandler: responseHandler,\n completionHandler: completion\n )\n }\n\n public func deleteAccount(\n accountNumber: String,\n retryStrategy: RetryStrategy,\n completion: @escaping ProxyCompletionHandler<Void>\n ) -> Cancellable {\n let request = APIRequest.deleteAccount(retryStrategy, accountNumber: accountNumber)\n\n let networkOperation = MullvadApiNetworkOperation(\n name: request.name,\n dispatchQueue: dispatchQueue,\n request: request,\n transportProvider: transportProvider,\n responseDecoder: responseDecoder,\n responseHandler: rustEmptyResponseHandler(),\n completionHandler: completion\n )\n\n operationQueue.addOperation(networkOperation)\n\n return networkOperation\n }\n\n private func createNetworkOperation<Success: Decodable>(\n request: APIRequest,\n responseHandler: RustResponseHandler<Success>,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<Success>\n ) -> MullvadApiNetworkOperation<Success> {\n let networkOperation = MullvadApiNetworkOperation(\n name: request.name,\n dispatchQueue: dispatchQueue,\n request: request,\n transportProvider: transportProvider,\n responseDecoder: responseDecoder,\n responseHandler: responseHandler,\n completionHandler: completionHandler\n )\n\n operationQueue.addOperation(networkOperation)\n\n return networkOperation\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\MullvadAPI\APIHandlers\MullvadAccountProxy.swift
MullvadAccountProxy.swift
Swift
4,255
0.95
0.008
0.064815
python-kit
347
2023-09-28T08:12:41.288938
BSD-3-Clause
false
53d9e22d359aecbbe43b8a5e7e9e426d
//\n// MullvadAPIProxy.swift\n// MullvadVPN\n//\n// Created by Jon Petersson on 2025-03-19.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadRustRuntime\nimport MullvadTypes\nimport Operations\nimport WireGuardKitTypes\n\npublic protocol APIQuerying: Sendable {\n func getAddressList(\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<[AnyIPEndpoint]>\n ) -> Cancellable\n\n func getRelays(\n etag: String?,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<REST.ServerRelaysCacheResponse>\n ) -> Cancellable\n\n func createApplePayment(\n accountNumber: String,\n receiptString: Data\n ) -> any RESTRequestExecutor<REST.CreateApplePaymentResponse>\n\n func sendProblemReport(\n _ body: ProblemReportRequest,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<Void>\n ) -> Cancellable\n\n func submitVoucher(\n voucherCode: String,\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<REST.SubmitVoucherResponse>\n ) -> Cancellable\n}\n\nextension REST {\n public final class MullvadAPIProxy: APIQuerying, @unchecked Sendable {\n let transportProvider: APITransportProviderProtocol\n let dispatchQueue: DispatchQueue\n let operationQueue = AsyncOperationQueue()\n let responseDecoder: JSONDecoder\n\n public init(\n transportProvider: APITransportProviderProtocol,\n dispatchQueue: DispatchQueue,\n responseDecoder: JSONDecoder\n ) {\n self.transportProvider = transportProvider\n self.dispatchQueue = dispatchQueue\n self.responseDecoder = responseDecoder\n }\n\n public func getAddressList(\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<[AnyIPEndpoint]>\n ) -> Cancellable {\n let responseHandler = rustResponseHandler(\n decoding: [AnyIPEndpoint].self,\n with: responseDecoder\n )\n\n return createNetworkOperation(\n request: .getAddressList(retryStrategy),\n responseHandler: responseHandler,\n completionHandler: completionHandler\n )\n }\n\n public func getRelays(\n etag: String?,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<REST.ServerRelaysCacheResponse>\n ) -> Cancellable {\n if var etag {\n // Enforce weak validator to account for some backend caching quirks.\n if etag.starts(with: "\"") {\n etag.insert(contentsOf: "W/", at: etag.startIndex)\n }\n }\n\n let responseHandler = rustCustomResponseHandler { [weak self] data, responseEtag in\n if let responseEtag, responseEtag == etag {\n return REST.ServerRelaysCacheResponse.notModified\n } else {\n // Discarding result since we're only interested in knowing that it's parseable.\n let canDecodeResponse = (try? self?.responseDecoder.decode(\n REST.ServerRelaysResponse.self,\n from: data\n )) != nil\n\n return canDecodeResponse ? REST.ServerRelaysCacheResponse.newContent(responseEtag, data) : nil\n }\n }\n\n return createNetworkOperation(\n request: .getRelayList(retryStrategy, etag: etag),\n responseHandler: responseHandler,\n completionHandler: completionHandler\n )\n }\n\n public func createApplePayment(\n accountNumber: String,\n receiptString: Data\n ) -> any RESTRequestExecutor<REST.CreateApplePaymentResponse> {\n RESTRequestExecutorStub<REST.CreateApplePaymentResponse>(success: {\n .timeAdded(42, .distantFuture)\n })\n }\n\n public func sendProblemReport(\n _ body: ProblemReportRequest,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping ProxyCompletionHandler<Void>\n ) -> Cancellable {\n createNetworkOperation(\n request: .sendProblemReport(retryStrategy, problemReportRequest: body),\n responseHandler: rustEmptyResponseHandler(),\n completionHandler: completionHandler\n )\n }\n\n public func submitVoucher(\n voucherCode: String,\n accountNumber: String,\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping ProxyCompletionHandler<REST.SubmitVoucherResponse>\n ) -> Cancellable {\n AnyCancellable()\n }\n\n private func createNetworkOperation<Success: Any>(\n request: APIRequest,\n responseHandler: RustResponseHandler<Success>,\n completionHandler: @escaping @Sendable ProxyCompletionHandler<Success>\n ) -> MullvadApiNetworkOperation<Success> {\n let networkOperation = MullvadApiNetworkOperation(\n name: request.name,\n dispatchQueue: dispatchQueue,\n request: request,\n transportProvider: transportProvider,\n responseDecoder: responseDecoder,\n responseHandler: responseHandler,\n completionHandler: completionHandler\n )\n\n operationQueue.addOperation(networkOperation)\n\n return networkOperation\n }\n }\n\n // MARK: - Response types\n\n public enum ServerRelaysCacheResponse: Sendable, Decodable {\n case notModified\n case newContent(_ etag: String?, _ rawData: Data)\n }\n\n private struct CreateApplePaymentRequest: Encodable, Sendable {\n let receiptString: Data\n }\n\n public enum CreateApplePaymentResponse: Sendable {\n case noTimeAdded(_ expiry: Date)\n case timeAdded(_ timeAdded: Int, _ newExpiry: Date)\n\n public var newExpiry: Date {\n switch self {\n case let .noTimeAdded(expiry), let .timeAdded(_, expiry):\n return expiry\n }\n }\n\n public var timeAdded: TimeInterval {\n switch self {\n case .noTimeAdded:\n return 0\n case let .timeAdded(timeAdded, _):\n return TimeInterval(timeAdded)\n }\n }\n\n /// Returns a formatted string for the `timeAdded` interval, i.e "30 days"\n public var formattedTimeAdded: String? {\n let formatter = DateComponentsFormatter()\n formatter.allowedUnits = [.day, .hour]\n formatter.unitsStyle = .full\n\n return formatter.string(from: self.timeAdded)\n }\n }\n\n private struct CreateApplePaymentRawResponse: Decodable, Sendable {\n let timeAdded: Int\n let newExpiry: Date\n }\n}\n\n// TODO: Remove when "createApplePayment" func is implemented.\nprivate struct RESTRequestExecutorStub<Success: Sendable>: RESTRequestExecutor {\n var success: (() -> Success)?\n\n func execute(completionHandler: @escaping (Result<Success, Error>) -> Void) -> Cancellable {\n if let result = success?() {\n completionHandler(.success(result))\n }\n return AnyCancellable()\n }\n\n func execute(\n retryStrategy: REST.RetryStrategy,\n completionHandler: @escaping (Result<Success, Error>) -> Void\n ) -> Cancellable {\n if let result = success?() {\n completionHandler(.success(result))\n }\n return AnyCancellable()\n }\n\n func execute() async throws -> Success {\n try await execute(retryStrategy: .noRetry)\n }\n\n func execute(retryStrategy: REST.RetryStrategy) async throws -> Success {\n guard let success = success else { throw POSIXError(.EINVAL) }\n\n return success()\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\MullvadAPI\APIHandlers\MullvadAPIProxy.swift
MullvadAPIProxy.swift
Swift
8,218
0.95
0.050209
0.058824
awesome-app
340
2023-11-30T01:13:40.593529
MIT
false
1908dc3cdad613961c2f513a26a92b9b
//\n// APIError.swift\n// MullvadVPN\n//\n// Created by Jon Petersson on 2025-02-24.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\npublic struct APIError: Error, Codable, Sendable {\n public let statusCode: Int\n public let errorDescription: String\n public let serverResponseCode: String?\n\n public init(statusCode: Int, errorDescription: String, serverResponseCode: String?) {\n self.statusCode = statusCode\n self.errorDescription = errorDescription\n self.serverResponseCode = serverResponseCode\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\MullvadAPI\APIRequest\APIError.swift
APIError.swift
Swift
550
0.8
0
0.411765
awesome-app
892
2024-10-29T06:15:19.068182
MIT
false
e642b4ac4669a71a256d35fc52a46a7c
//\n// APIRequest.swift\n// MullvadVPN\n//\n// Created by Jon Petersson on 2025-02-24.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\nimport MullvadTypes\n\npublic enum APIRequest: Codable, Sendable {\n case getAddressList(_ retryStrategy: REST.RetryStrategy)\n case getRelayList(_ retryStrategy: REST.RetryStrategy, etag: String?)\n case sendProblemReport(_ retryStrategy: REST.RetryStrategy, problemReportRequest: ProblemReportRequest)\n\n case createAccount(_ retryStrategy: REST.RetryStrategy)\n case getAccount(_ retryStrategy: REST.RetryStrategy, accountNumber: String)\n case deleteAccount(_ retryStrategy: REST.RetryStrategy, accountNumber: String)\n\n var name: String {\n switch self {\n case .getAddressList:\n "get-address-list"\n case .getRelayList:\n "get-relay-list"\n case .sendProblemReport:\n "send-problem-report"\n case .createAccount:\n "create-account"\n case .getAccount:\n "get-account"\n case .deleteAccount:\n "delete-account"\n }\n }\n\n var retryStrategy: REST.RetryStrategy {\n switch self {\n case\n let .getAddressList(strategy),\n let .getRelayList(strategy, _),\n let .sendProblemReport(strategy, _),\n let .createAccount(strategy),\n let .getAccount(strategy, _),\n let .deleteAccount(strategy, _):\n strategy\n }\n }\n}\n\npublic struct ProxyAPIRequest: Codable, Sendable {\n public let id: UUID\n public let request: APIRequest\n\n public init(id: UUID, request: APIRequest) {\n self.id = id\n self.request = request\n }\n}\n\npublic struct ProxyAPIResponse: Codable, Sendable {\n public let data: Data?\n public let error: APIError?\n public let etag: String?\n\n public init(data: Data?, error: APIError?, etag: String? = nil) {\n self.data = data\n self.error = error\n self.etag = etag\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\MullvadAPI\APIRequest\APIRequest.swift
APIRequest.swift
Swift
1,997
0.95
0.028571
0.112903
awesome-app
414
2024-10-08T20:29:40.309477
BSD-3-Clause
false
1a058fcb118245563849ffce918b784c
//\n// APIRequestProxy.swift\n// MullvadVPN\n//\n// Created by Jon Petersson on 2025-02-13.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadRustRuntime\nimport MullvadTypes\n\npublic protocol APIRequestProxyProtocol {\n func sendRequest(_ proxyRequest: ProxyAPIRequest, completion: @escaping @Sendable (ProxyAPIResponse) -> Void)\n func sendRequest(_ proxyRequest: ProxyAPIRequest) async -> ProxyAPIResponse\n func cancelRequest(identifier: UUID)\n}\n\n/// Network request proxy capable of passing serializable requests and responses over the given transport provider.\npublic final class APIRequestProxy: APIRequestProxyProtocol, @unchecked Sendable {\n /// Serial queue used for synchronizing access to class members.\n private let dispatchQueue: DispatchQueue\n\n private let transportProvider: APITransportProviderProtocol\n\n /// List of all proxied network requests bypassing VPN.\n private var proxiedRequests: [UUID: Cancellable] = [:]\n\n public init(\n dispatchQueue: DispatchQueue,\n transportProvider: APITransportProviderProtocol\n ) {\n self.dispatchQueue = dispatchQueue\n self.transportProvider = transportProvider\n }\n\n public func sendRequest(\n _ proxyRequest: ProxyAPIRequest,\n completion: @escaping @Sendable (ProxyAPIResponse) -> Void\n ) {\n dispatchQueue.async {\n guard let transport = self.transportProvider.makeTransport() else {\n // Cancel old task, if there's one scheduled.\n self.cancelRequest(identifier: proxyRequest.id)\n\n completion(ProxyAPIResponse(data: nil, error: nil))\n return\n }\n\n let cancellable = transport.sendRequest(proxyRequest.request) { [weak self] response in\n guard let self else { return }\n\n // Use `dispatchQueue` to guarantee thread safe access to `proxiedRequests`\n dispatchQueue.async {\n _ = self.removeRequest(identifier: proxyRequest.id)\n completion(response)\n }\n }\n\n // Cancel old task, if there's one scheduled.\n let oldTask = self.addRequest(identifier: proxyRequest.id, task: cancellable)\n oldTask?.cancel()\n }\n }\n\n public func sendRequest(_ proxyRequest: ProxyAPIRequest) async -> ProxyAPIResponse {\n return await withCheckedContinuation { continuation in\n sendRequest(proxyRequest) { proxyResponse in\n continuation.resume(returning: proxyResponse)\n }\n }\n }\n\n public func cancelRequest(identifier: UUID) {\n dispatchQueue.async {\n let task = self.removeRequest(identifier: identifier)\n task?.cancel()\n }\n }\n\n private func addRequest(identifier: UUID, task: Cancellable) -> Cancellable? {\n dispatchPrecondition(condition: .onQueue(dispatchQueue))\n return proxiedRequests.updateValue(task, forKey: identifier)\n }\n\n private func removeRequest(identifier: UUID) -> Cancellable? {\n dispatchPrecondition(condition: .onQueue(dispatchQueue))\n return proxiedRequests.removeValue(forKey: identifier)\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\MullvadAPI\APIRequest\APIRequestProxy.swift
APIRequestProxy.swift
Swift
3,226
0.95
0.05618
0.175676
python-kit
17
2024-05-09T04:36:24.043202
BSD-3-Clause
false
b8a0b2a67d5edb46886d17964256c21d
//\n// AnyRelay.swift\n// MullvadREST\n//\n// Created by Jon Petersson on 2024-01-31.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadTypes\nimport Network\n\npublic protocol AnyRelay {\n var hostname: String { get }\n var owned: Bool { get }\n var location: REST.LocationIdentifier { get }\n var provider: String { get }\n var weight: UInt64 { get }\n var active: Bool { get }\n var includeInCountry: Bool { get }\n var daita: Bool? { get }\n\n func override(ipv4AddrIn: IPv4Address?, ipv6AddrIn: IPv6Address?) -> Self\n}\n\nextension REST.ServerRelay: AnyRelay {}\nextension REST.BridgeRelay: AnyRelay {\n public func override(ipv4AddrIn: IPv4Address?, ipv6AddrIn: IPv6Address?) -> REST.BridgeRelay {\n override(ipv4AddrIn: ipv4AddrIn)\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\AnyRelay.swift
AnyRelay.swift
Swift
792
0.95
0
0.269231
vue-tools
316
2024-02-04T14:13:48.342408
GPL-3.0
false
752100a2a2e40acaf9d02245d8c03fbb
//\n// CachedRelays.swift\n// CachedRelays\n//\n// Created by pronebird on 27/07/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\n\n/// A struct that represents the relay cache in memory\npublic struct CachedRelays: Codable, Equatable {\n /// E-tag returned by server\n public let etag: String?\n\n /// The relay list stored within the cache entry\n public let relays: REST.ServerRelaysResponse\n\n /// The date when this cache was last updated\n public let updatedAt: Date\n\n public init(etag: String? = nil, relays: REST.ServerRelaysResponse, updatedAt: Date) {\n self.etag = etag\n self.relays = relays\n self.updatedAt = updatedAt\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\CachedRelays.swift
CachedRelays.swift
Swift
708
0.95
0
0.5
python-kit
4
2025-02-21T20:51:22.418120
MIT
false
72ebccb2bd250185431cb29aa9578c1e
//\n// Haversine.swift\n// RelaySelector\n//\n// Created by Marco Nikic on 2023-06-29.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n\npublic enum Haversine {\n /// Approximation of the radius of the average circumference,\n /// where the boundaries are the meridian (6367.45 km) and the equator (6378.14 km).\n static let earthRadiusInKm = 6372.8\n\n /// Implemented as per https://rosettacode.org/wiki/Haversine_formula#Swift\n /// Computes the great circle distance between two points on a sphere.\n ///\n /// The inputs are converted to radians, and the output is in kilometers.\n /// - Parameters:\n /// - lat1: The first point's latitude\n /// - lon1: The first point's longitude\n /// - lat2: The second point's latitude\n /// - lon2: The second point's longitude\n /// - Returns: The haversine distance between the two points.\n static func distance(\n _ latitude1: Double,\n _ longitude1: Double,\n _ latitude2: Double,\n _ longitude2: Double\n ) -> Double {\n let dLat = latitude1.toRadians - latitude2.toRadians\n let dLon = longitude1.toRadians - longitude2.toRadians\n\n let haversine = sin(dLat / 2).squared + sin(dLon / 2)\n .squared * cos(latitude1.toRadians) * cos(latitude2.toRadians)\n let c = 2 * asin(sqrt(haversine))\n\n return Self.earthRadiusInKm * c\n }\n}\n\nextension Double {\n var toRadians: Double { self * Double.pi / 180.0 }\n var toDegrees: Double { self * 180.0 / Double.pi }\n var squared: Double { pow(self, 2.0) }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\Haversine.swift
Haversine.swift
Swift
1,610
0.95
0
0.452381
node-utils
665
2024-04-15T18:59:47.886407
BSD-3-Clause
false
2e59eb7b007d078943f45ad88c7d38e9
//\n// IPOverrideWrapper.swift\n// MullvadREST\n//\n// Created by Jon Petersson on 2024-02-05.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadSettings\nimport MullvadTypes\n\npublic final class IPOverrideWrapper: RelayCacheProtocol {\n private let relayCache: RelayCacheProtocol\n private let ipOverrideRepository: any IPOverrideRepositoryProtocol\n\n public init(relayCache: RelayCacheProtocol, ipOverrideRepository: any IPOverrideRepositoryProtocol) {\n self.relayCache = relayCache\n self.ipOverrideRepository = ipOverrideRepository\n }\n\n public func read() throws -> StoredRelays {\n let cache = try relayCache.read()\n let relayResponse = apply(overrides: ipOverrideRepository.fetchAll(), to: cache.relays)\n let rawData = try REST.Coding.makeJSONEncoder().encode(relayResponse)\n\n return try StoredRelays(etag: cache.etag, rawData: rawData, updatedAt: cache.updatedAt)\n }\n\n public func readPrebundledRelays() throws -> StoredRelays {\n let prebundledRelays = try relayCache.readPrebundledRelays()\n let relayResponse = apply(overrides: ipOverrideRepository.fetchAll(), to: prebundledRelays.relays)\n let rawData = try REST.Coding.makeJSONEncoder().encode(relayResponse)\n\n return try StoredRelays(etag: prebundledRelays.etag, rawData: rawData, updatedAt: prebundledRelays.updatedAt)\n }\n\n public func write(record: StoredRelays) throws {\n try relayCache.write(record: record)\n }\n\n private func apply(\n overrides: [IPOverride],\n to relayResponse: REST.ServerRelaysResponse\n ) -> REST.ServerRelaysResponse {\n let wireguard = relayResponse.wireguard\n let bridge = relayResponse.bridge\n\n let overridenWireguardRelays = wireguard.relays.map { relay in\n return apply(overrides: overrides, to: relay)\n }\n let overridenBridgeRelays = bridge.relays.map { relay in\n return apply(overrides: overrides, to: relay)\n }\n\n return REST.ServerRelaysResponse(\n locations: relayResponse.locations,\n wireguard: REST.ServerWireguardTunnels(\n ipv4Gateway: wireguard.ipv4Gateway,\n ipv6Gateway: wireguard.ipv6Gateway,\n portRanges: wireguard.portRanges,\n relays: overridenWireguardRelays,\n shadowsocksPortRanges: wireguard.shadowsocksPortRanges\n ),\n bridge: REST.ServerBridges(\n shadowsocks: bridge.shadowsocks,\n relays: overridenBridgeRelays\n )\n )\n }\n\n private func apply<T: AnyRelay>(overrides: [IPOverride], to relay: T) -> T {\n return overrides\n .first { $0.hostname == relay.hostname }\n .flatMap {\n relay.override(\n ipv4AddrIn: $0.ipv4Address,\n ipv6AddrIn: $0.ipv6Address\n )\n }\n ?? relay\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\IPOverrideWrapper.swift
IPOverrideWrapper.swift
Swift
2,981
0.95
0.097561
0.1
awesome-app
41
2024-03-16T22:42:12.729426
Apache-2.0
false
de29d27508c8746361d48ddcbdea6aef
//\n// LocationIdentifier.swift\n// MullvadVPN\n//\n// Created by Andrew Bulhak on 2025-01-24.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nextension REST {\n // locations are currently always "aa-bbb" for some country code aa and city code bbb. Should this change, this type can be extended.\n public struct LocationIdentifier: Sendable {\n public let country: Substring\n public let city: Substring\n\n fileprivate static func parse(_ input: String) -> (Substring, Substring)? {\n let components = input.split(separator: "-")\n guard components.count == 2 else { return nil }\n return (components[0], components[1])\n }\n }\n}\n\nextension REST.LocationIdentifier: RawRepresentable {\n public var rawValue: String { country.base }\n\n public init?(rawValue: String) {\n guard let parsed = Self.parse(rawValue) else { return nil }\n (country, city) = parsed\n }\n}\n\nextension REST.LocationIdentifier: ExpressibleByStringLiteral {\n public init(stringLiteral value: StringLiteralType) {\n guard let parsed = Self.parse(value) else {\n // this is ugly, but it will only ever be called for\n // code initialised from a literal in code, and\n // never from real-world input, so it'll have to do.\n fatalError("Invalid LocationIdentifier: \(value)")\n }\n (country, city) = parsed\n }\n}\n\n// Allow LocationIdentifier to code to/from JSON Strings\nextension REST.LocationIdentifier: Codable {\n enum ParsingError: Error {\n case malformed\n }\n\n public init(from decoder: any Decoder) throws {\n let container = try decoder.singleValueContainer()\n guard let parsed = Self.parse(try container.decode(String.self)) else {\n throw ParsingError.malformed\n }\n (country, city) = parsed\n }\n\n public func encode(to encoder: any Encoder) throws {\n var container = encoder.singleValueContainer()\n try container.encode(rawValue)\n }\n}\n\n// As the location's values are Substrings of the same String, to which they maintain references, we use the base String for holistic operations such as equality and hashing\nextension REST.LocationIdentifier: Hashable {\n public static func == (lhs: REST.LocationIdentifier, rhs: REST.LocationIdentifier) -> Bool {\n lhs.rawValue == rhs.rawValue\n }\n\n public func hash(into hasher: inout Hasher) {\n hasher.combine(rawValue)\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\LocationIdentifier.swift
LocationIdentifier.swift
Swift
2,492
0.8
0.082192
0.206349
awesome-app
980
2023-10-08T01:23:36.025640
BSD-3-Clause
false
491dce0dcf08e3718285cd378b9fd81c
//\n// Midpoint.swift\n// RelaySelector\n//\n// Created by Marco Nikic on 2023-07-11.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport CoreLocation\nimport Foundation\nimport MullvadTypes\n\npublic enum Midpoint {\n /// Computes the approximate midpoint of a set of locations.\n ///\n /// This works by calculating the mean Cartesian coordinates, and converting them\n /// back to spherical coordinates. This is approximate, because the semi-minor (polar)\n /// axis is assumed to equal the semi-major (equatorial) axis.\n ///\n /// https://en.wikipedia.org/wiki/Spherical_coordinate_system#Cartesian_coordinates\n static func location(in coordinates: [CLLocationCoordinate2D]) -> CLLocationCoordinate2D {\n var x = 0.0, y = 0.0, z = 0.0\n var count = 0\n\n coordinates.forEach { coordinate in\n let cos_lat = cos(coordinate.latitude.toRadians)\n let sin_lat = sin(coordinate.latitude.toRadians)\n let cos_lon = cos(coordinate.longitude.toRadians)\n let sin_lon = sin(coordinate.longitude.toRadians)\n\n x += cos_lat * cos_lon\n y += cos_lat * sin_lon\n z += sin_lat\n\n count += 1\n }\n\n let inv_total_weight = 1.0 / Double(count)\n x *= inv_total_weight\n y *= inv_total_weight\n z *= inv_total_weight\n\n let longitude = atan2(y, x)\n let hypotenuse = sqrt(x * x + y * y)\n let latitude = atan2(z, hypotenuse)\n\n return CLLocationCoordinate2D(latitude: latitude.toDegrees, longitude: longitude.toDegrees)\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\Midpoint.swift
Midpoint.swift
Swift
1,596
0.95
0
0.341463
node-utils
288
2023-09-17T21:55:07.649581
MIT
false
3a9b85718fd0a0e288c1051875788167
//\n// MultihopDecisionFlow.swift\n// MullvadREST\n//\n// Created by Jon Petersson on 2024-06-14.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\n\nprotocol MultihopDecisionFlow {\n typealias RelayCandidate = RelayWithLocation<REST.ServerRelay>\n init(next: MultihopDecisionFlow?, relayPicker: RelayPicking)\n func canHandle(entryCandidates: [RelayCandidate], exitCandidates: [RelayCandidate]) -> Bool\n func pick(\n entryCandidates: [RelayCandidate],\n exitCandidates: [RelayCandidate],\n daitaAutomaticRouting: Bool\n ) throws -> SelectedRelays\n}\n\nstruct OneToOne: MultihopDecisionFlow {\n let next: MultihopDecisionFlow?\n let relayPicker: RelayPicking\n\n init(next: (any MultihopDecisionFlow)?, relayPicker: RelayPicking) {\n self.next = next\n self.relayPicker = relayPicker\n }\n\n func pick(\n entryCandidates: [RelayCandidate],\n exitCandidates: [RelayCandidate],\n daitaAutomaticRouting: Bool\n ) throws -> SelectedRelays {\n guard canHandle(entryCandidates: entryCandidates, exitCandidates: exitCandidates) else {\n guard let next else {\n throw NoRelaysSatisfyingConstraintsError(.multihopInvalidFlow)\n }\n return try next.pick(\n entryCandidates: entryCandidates,\n exitCandidates: exitCandidates,\n daitaAutomaticRouting: daitaAutomaticRouting\n )\n }\n\n guard entryCandidates.first != exitCandidates.first else {\n throw NoRelaysSatisfyingConstraintsError(.entryEqualsExit)\n }\n\n let exitMatch = try relayPicker.findBestMatch(from: exitCandidates, useObfuscatedPortIfAvailable: false)\n let entryMatch = try relayPicker.findBestMatch(\n from: entryCandidates,\n closeTo: daitaAutomaticRouting ? exitMatch.location : nil,\n useObfuscatedPortIfAvailable: true\n )\n\n return SelectedRelays(entry: entryMatch, exit: exitMatch, retryAttempt: relayPicker.connectionAttemptCount)\n }\n\n func canHandle(entryCandidates: [RelayCandidate], exitCandidates: [RelayCandidate]) -> Bool {\n entryCandidates.count == 1 && exitCandidates.count == 1\n }\n}\n\nstruct OneToMany: MultihopDecisionFlow {\n let next: MultihopDecisionFlow?\n let relayPicker: RelayPicking\n\n init(next: (any MultihopDecisionFlow)?, relayPicker: RelayPicking) {\n self.next = next\n self.relayPicker = relayPicker\n }\n\n func pick(\n entryCandidates: [RelayCandidate],\n exitCandidates: [RelayCandidate],\n daitaAutomaticRouting: Bool\n ) throws -> SelectedRelays {\n guard let multihopPicker = relayPicker as? MultihopPicker else {\n fatalError("Could not cast picker to MultihopPicker")\n }\n\n guard canHandle(entryCandidates: entryCandidates, exitCandidates: exitCandidates) else {\n guard let next else {\n throw NoRelaysSatisfyingConstraintsError(.multihopInvalidFlow)\n }\n return try next.pick(\n entryCandidates: entryCandidates,\n exitCandidates: exitCandidates,\n daitaAutomaticRouting: daitaAutomaticRouting\n )\n }\n\n let entryMatch = try multihopPicker.findBestMatch(from: entryCandidates, useObfuscatedPortIfAvailable: true)\n let exitMatch = try multihopPicker.exclude(\n relay: entryMatch,\n from: exitCandidates,\n useObfuscatedPortIfAvailable: false\n )\n\n return SelectedRelays(entry: entryMatch, exit: exitMatch, retryAttempt: relayPicker.connectionAttemptCount)\n }\n\n func canHandle(entryCandidates: [RelayCandidate], exitCandidates: [RelayCandidate]) -> Bool {\n entryCandidates.count == 1 && exitCandidates.count > 1\n }\n}\n\nstruct ManyToOne: MultihopDecisionFlow {\n let next: MultihopDecisionFlow?\n let relayPicker: RelayPicking\n\n init(next: (any MultihopDecisionFlow)?, relayPicker: RelayPicking) {\n self.next = next\n self.relayPicker = relayPicker\n }\n\n func pick(\n entryCandidates: [RelayCandidate],\n exitCandidates: [RelayCandidate],\n daitaAutomaticRouting: Bool\n ) throws -> SelectedRelays {\n guard let multihopPicker = relayPicker as? MultihopPicker else {\n fatalError("Could not cast picker to MultihopPicker")\n }\n\n guard canHandle(entryCandidates: entryCandidates, exitCandidates: exitCandidates) else {\n guard let next else {\n throw NoRelaysSatisfyingConstraintsError(.multihopInvalidFlow)\n }\n return try next.pick(\n entryCandidates: entryCandidates,\n exitCandidates: exitCandidates,\n daitaAutomaticRouting: daitaAutomaticRouting\n )\n }\n\n let exitMatch = try multihopPicker.findBestMatch(from: exitCandidates, useObfuscatedPortIfAvailable: false)\n let entryMatch = try multihopPicker.exclude(\n relay: exitMatch,\n from: entryCandidates,\n closeTo: daitaAutomaticRouting ? exitMatch.location : nil,\n useObfuscatedPortIfAvailable: true\n )\n\n return SelectedRelays(entry: entryMatch, exit: exitMatch, retryAttempt: relayPicker.connectionAttemptCount)\n }\n\n func canHandle(entryCandidates: [RelayCandidate], exitCandidates: [RelayCandidate]) -> Bool {\n entryCandidates.count > 1 && exitCandidates.count == 1\n }\n}\n\nstruct ManyToMany: MultihopDecisionFlow {\n let next: MultihopDecisionFlow?\n let relayPicker: RelayPicking\n\n init(next: (any MultihopDecisionFlow)?, relayPicker: RelayPicking) {\n self.next = next\n self.relayPicker = relayPicker\n }\n\n func pick(\n entryCandidates: [RelayCandidate],\n exitCandidates: [RelayCandidate],\n daitaAutomaticRouting: Bool\n ) throws -> SelectedRelays {\n guard let multihopPicker = relayPicker as? MultihopPicker else {\n fatalError("Could not cast picker to MultihopPicker")\n }\n\n guard canHandle(entryCandidates: entryCandidates, exitCandidates: exitCandidates) else {\n guard let next else {\n throw NoRelaysSatisfyingConstraintsError(.multihopInvalidFlow)\n }\n return try next.pick(\n entryCandidates: entryCandidates,\n exitCandidates: exitCandidates,\n daitaAutomaticRouting: daitaAutomaticRouting\n )\n }\n\n let exitMatch = try multihopPicker.findBestMatch(from: exitCandidates, useObfuscatedPortIfAvailable: false)\n let entryMatch = try multihopPicker.exclude(\n relay: exitMatch,\n from: entryCandidates,\n closeTo: daitaAutomaticRouting ? exitMatch.location : nil,\n useObfuscatedPortIfAvailable: true\n )\n\n return SelectedRelays(entry: entryMatch, exit: exitMatch, retryAttempt: relayPicker.connectionAttemptCount)\n }\n\n func canHandle(entryCandidates: [RelayCandidate], exitCandidates: [RelayCandidate]) -> Bool {\n entryCandidates.count > 1 && exitCandidates.count > 1\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\MultihopDecisionFlow.swift
MultihopDecisionFlow.swift
Swift
7,199
0.95
0.060606
0.041667
awesome-app
996
2024-10-28T20:53:43.080687
MIT
false
e2fefd8cf601918003e3aab2bd8174c0
//\n// NoRelaysSatisfyingConstraintsError.swift\n// MullvadREST\n//\n// Created by Mojgan on 2024-04-26.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\n\npublic enum NoRelaysSatisfyingConstraintsReason: Sendable {\n case filterConstraintNotMatching\n case invalidPort\n case entryEqualsExit\n case multihopInvalidFlow\n case noActiveRelaysFound\n case noDaitaRelaysFound\n case noObfuscatedRelaysFound\n case relayConstraintNotMatching\n}\n\npublic struct NoRelaysSatisfyingConstraintsError: LocalizedError, Sendable {\n public let reason: NoRelaysSatisfyingConstraintsReason\n\n public var errorDescription: String? {\n switch reason {\n case .filterConstraintNotMatching:\n "Filter yields no matching relays"\n case .invalidPort:\n "Invalid port selected by RelaySelector"\n case .entryEqualsExit:\n "Entry and exit relays are the same"\n case .multihopInvalidFlow:\n "Invalid multihop decision flow"\n case .noActiveRelaysFound:\n "No active relays found"\n case .noDaitaRelaysFound:\n "No DAITA relays found"\n case .noObfuscatedRelaysFound:\n "No obfuscated relays found"\n case .relayConstraintNotMatching:\n "Invalid constraint created to pick a relay"\n }\n }\n\n public init(_ reason: NoRelaysSatisfyingConstraintsReason) {\n self.reason = reason\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\NoRelaysSatisfyingConstraintsError.swift
NoRelaysSatisfyingConstraintsError.swift
Swift
1,461
0.95
0.020408
0.159091
vue-tools
807
2024-09-29T14:12:43.344862
GPL-3.0
false
88048a09c93e06ffbcd70692df6acefd
//\n// ObfuscationMethodSelector.swift\n// MullvadREST\n//\n// Created by Jon Petersson on 2024-11-01.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadSettings\n\npublic struct ObfuscationMethodSelector {\n /// This retry logic used is explained at the following link:\n /// https://github.com/mullvad/mullvadvpn-app/blob/main/docs/relay-selector.md#default-constraints-for-tunnel-endpoints\n public static func obfuscationMethodBy(\n connectionAttemptCount: UInt,\n tunnelSettings: LatestTunnelSettings\n ) -> WireGuardObfuscationState {\n if tunnelSettings.wireGuardObfuscation.state == .automatic {\n if connectionAttemptCount.isOrdered(nth: 3, forEverySetOf: 4) {\n .shadowsocks\n } else if connectionAttemptCount.isOrdered(nth: 4, forEverySetOf: 4) {\n .udpOverTcp\n } else {\n .off\n }\n } else {\n tunnelSettings.wireGuardObfuscation.state\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\ObfuscationMethodSelector.swift
ObfuscationMethodSelector.swift
Swift
1,015
0.95
0.133333
0.321429
node-utils
965
2024-10-01T18:01:42.735197
MIT
false
d240eabd615805a87ddbc91f9be02fca
//\n// ObfuscatorPortSelector.swift\n// MullvadVPN\n//\n// Created by Jon Petersson on 2024-11-01.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport MullvadSettings\nimport MullvadTypes\n\nstruct ObfuscatorPortSelection {\n let entryRelays: REST.ServerRelaysResponse\n let exitRelays: REST.ServerRelaysResponse\n let unfilteredRelays: REST.ServerRelaysResponse\n let port: RelayConstraint<UInt16>\n let method: WireGuardObfuscationState\n\n var wireguard: REST.ServerWireguardTunnels {\n exitRelays.wireguard\n }\n}\n\nstruct ObfuscatorPortSelector {\n let relays: REST.ServerRelaysResponse\n\n func obfuscate(\n tunnelSettings: LatestTunnelSettings,\n connectionAttemptCount: UInt\n ) throws -> ObfuscatorPortSelection {\n var entryRelays = relays\n var exitRelays = relays\n\n var port = tunnelSettings.relayConstraints.port\n let obfuscationMethod = ObfuscationMethodSelector.obfuscationMethodBy(\n connectionAttemptCount: connectionAttemptCount,\n tunnelSettings: tunnelSettings\n )\n\n switch obfuscationMethod {\n case .udpOverTcp:\n port = obfuscateUdpOverTcpPort(\n tunnelSettings: tunnelSettings,\n connectionAttemptCount: connectionAttemptCount\n )\n case .shadowsocks:\n let filteredRelays = obfuscateShadowsocksRelays(tunnelSettings: tunnelSettings)\n if tunnelSettings.tunnelMultihopState.isEnabled {\n entryRelays = filteredRelays\n } else {\n exitRelays = filteredRelays\n }\n\n port = obfuscateShadowsocksPort(\n tunnelSettings: tunnelSettings,\n shadowsocksPortRanges: relays.wireguard.shadowsocksPortRanges\n )\n default:\n break\n }\n\n return ObfuscatorPortSelection(\n entryRelays: entryRelays,\n exitRelays: exitRelays,\n unfilteredRelays: relays,\n port: port,\n method: obfuscationMethod\n )\n }\n\n private func obfuscateShadowsocksRelays(tunnelSettings: LatestTunnelSettings) -> REST.ServerRelaysResponse {\n let relays = relays\n let wireGuardObfuscation = tunnelSettings.wireGuardObfuscation\n\n return wireGuardObfuscation.state == .shadowsocks\n ? filterShadowsocksRelays(from: relays, for: wireGuardObfuscation.shadowsocksPort)\n : relays\n }\n\n private func filterShadowsocksRelays(\n from relays: REST.ServerRelaysResponse,\n for port: WireGuardObfuscationShadowsocksPort\n ) -> REST.ServerRelaysResponse {\n let portRanges = RelaySelector.parseRawPortRanges(relays.wireguard.shadowsocksPortRanges)\n\n // If the selected port is within the shadowsocks port ranges we can select from all relays.\n guard\n case let .custom(port) = port,\n !portRanges.contains(where: { $0.contains(port) })\n else {\n return relays\n }\n\n let filteredRelays = relays.wireguard.relays.filter { relay in\n relay.shadowsocksExtraAddrIn != nil\n }\n\n return REST.ServerRelaysResponse(\n locations: relays.locations,\n wireguard: REST.ServerWireguardTunnels(\n ipv4Gateway: relays.wireguard.ipv4Gateway,\n ipv6Gateway: relays.wireguard.ipv6Gateway,\n portRanges: relays.wireguard.portRanges,\n relays: filteredRelays,\n shadowsocksPortRanges: relays.wireguard.shadowsocksPortRanges\n ),\n bridge: relays.bridge\n )\n }\n\n private func obfuscateUdpOverTcpPort(\n tunnelSettings: LatestTunnelSettings,\n connectionAttemptCount: UInt\n ) -> RelayConstraint<UInt16> {\n switch tunnelSettings.wireGuardObfuscation.udpOverTcpPort {\n case .automatic:\n return [.only(80), .only(5001)].randomElement()!\n case .port5001:\n return .only(5001)\n case .port80:\n return .only(80)\n }\n }\n\n private func obfuscateShadowsocksPort(\n tunnelSettings: LatestTunnelSettings,\n shadowsocksPortRanges: [[UInt16]]\n ) -> RelayConstraint<UInt16> {\n let wireGuardObfuscation = tunnelSettings.wireGuardObfuscation\n\n let shadowsockPort: () -> UInt16? = {\n switch wireGuardObfuscation.shadowsocksPort {\n case let .custom(port):\n port\n default:\n RelaySelector.pickRandomPort(rawPortRanges: shadowsocksPortRanges)\n }\n }\n\n guard\n wireGuardObfuscation.state == .shadowsocks,\n let port = shadowsockPort()\n else {\n return tunnelSettings.relayConstraints.port\n }\n\n return .only(port)\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\ObfuscatorPortSelector.swift
ObfuscatorPortSelector.swift
Swift
4,847
0.95
0.040268
0.062016
node-utils
367
2024-01-08T01:20:55.456724
BSD-3-Clause
false
b0f1bf2553cdbac1e22d25e01cbd9a15
//\n// RelayCache.swift\n// RelayCache\n//\n// Created by pronebird on 06/09/2021.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n\npublic protocol RelayCacheProtocol: Sendable {\n /// Reads from a cached list,\n /// which falls back to reading from prebundled relays if there was no cache hit\n func read() throws -> StoredRelays\n /// Reads the relays file that were prebundled with the app installation.\n ///\n /// > Warning: Prefer `read()` over this unless there is an explicit need to read\n /// relays from the bundle, because those might contain stale data.\n func readPrebundledRelays() throws -> StoredRelays\n func write(record: StoredRelays) throws\n}\n\n/// - Warning: `RelayCache` should not be used directly. It should be used through `IPOverrideWrapper` to have\n/// ip overrides applied.\npublic final class RelayCache: RelayCacheProtocol, Sendable {\n private let fileURL: URL\n nonisolated(unsafe) private let fileCache: any FileCacheProtocol<StoredRelays>\n\n /// Designated initializer\n public init(cacheDirectory: URL) {\n fileURL = cacheDirectory.appendingPathComponent("relays.json", isDirectory: false)\n fileCache = FileCache(fileURL: fileURL)\n }\n\n /// Initializer that accepts a custom FileCache implementation. Used in tests.\n init(fileCache: some FileCacheProtocol<StoredRelays>) {\n fileURL = FileManager.default.temporaryDirectory.appendingPathComponent("relays.json", isDirectory: false)\n self.fileCache = fileCache\n }\n\n /// Safely read the cache file from disk using file coordinator and fallback in the following manner:\n /// 1. If there is a file but it's not decodable, try to parse into the old cache format. If it's still\n /// not decodable, read the pre-bundled data.\n /// 2. If there is no file, read from the pre-bundled data.\n public func read() throws -> StoredRelays {\n do {\n return try fileCache.read()\n } catch is DecodingError {\n do {\n let oldFormatFileCache = FileCache<CachedRelays>(fileURL: fileURL)\n return try StoredRelays(cachedRelays: try oldFormatFileCache.read())\n } catch {\n return try readPrebundledRelays()\n }\n } catch {\n return try readPrebundledRelays()\n }\n }\n\n /// Safely write the cache file on disk using file coordinator.\n public func write(record: StoredRelays) throws {\n try fileCache.write(record)\n }\n\n /// Read pre-bundled relays file from disk.\n public func readPrebundledRelays() throws -> StoredRelays {\n guard let prebundledRelaysFileURL = Bundle(for: Self.self).url(forResource: "relays", withExtension: "json")\n else { throw CocoaError(.fileNoSuchFile) }\n\n let data = try Data(contentsOf: prebundledRelaysFileURL)\n\n return try StoredRelays(\n rawData: data,\n updatedAt: Date(timeIntervalSince1970: 0)\n )\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\RelayCache.swift
RelayCache.swift
Swift
3,025
0.95
0.192308
0.338235
vue-tools
647
2025-05-17T12:21:28.437678
Apache-2.0
false
7ef59590abf00381ae2f82f9e07edc74
//\n// RelayCandidates.swift\n// MullvadVPN\n//\n// Created by Mojgan on 2025-03-03.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\npublic struct RelayCandidates: Equatable, Sendable {\n public let entryRelays: [RelayWithLocation<REST.ServerRelay>]?\n public let exitRelays: [RelayWithLocation<REST.ServerRelay>]\n public init(\n entryRelays: [RelayWithLocation<REST.ServerRelay>]?,\n exitRelays: [RelayWithLocation<REST.ServerRelay>]\n ) {\n self.entryRelays = entryRelays\n self.exitRelays = exitRelays\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\RelayCandidates.swift
RelayCandidates.swift
Swift
560
0.8
0
0.388889
python-kit
858
2024-05-24T00:09:25.455112
GPL-3.0
false
889b65c474a61468cfdceb7299bfa327
//\n// RelaySelector+Shadowsocks.swift\n// MullvadREST\n//\n// Created by Mojgan on 2024-05-17.\n// Copyright © 2025 Mullvad VPN AB. All rights reserved.\n//\n\nimport Foundation\nimport MullvadTypes\n\nextension RelaySelector {\n public enum Shadowsocks {\n /**\n Returns random shadowsocks TCP bridge, otherwise `nil` if there are no shadowdsocks bridges.\n */\n public static func tcpBridge(from relays: REST.ServerRelaysResponse) -> REST.ServerShadowsocks? {\n relays.bridge.shadowsocks.filter { $0.protocol == "tcp" }.randomElement()\n }\n\n /// Return a random Shadowsocks bridge relay, or `nil` if no relay were found.\n ///\n /// Non `active` relays are filtered out.\n /// - Parameter relays: The list of relays to randomly select from.\n /// - Returns: A Shadowsocks relay or `nil` if no active relay were found.\n public static func relay(from relaysResponse: REST.ServerRelaysResponse) -> REST.BridgeRelay? {\n relaysResponse.bridge.relays.filter { $0.active }.randomElement()\n }\n\n /// Returns the closest Shadowsocks relay using the given `location`, or a random relay if `constraints` were\n /// unsatisfiable.\n ///\n /// - Parameters:\n /// - location: The user selected `location`\n /// - port: The user selected port\n /// - filter: The user filtered criteria\n /// - relays: The list of relays to randomly select from.\n /// - Returns: A Shadowsocks relay or `nil` if no active relay were found.\n public static func closestRelay(\n location: RelayConstraint<UserSelectedRelays>,\n port: RelayConstraint<UInt16>,\n filter: RelayConstraint<RelayFilter>,\n in relaysResponse: REST.ServerRelaysResponse\n ) -> REST.BridgeRelay? {\n let mappedBridges = RelayWithLocation.locateRelays(\n relays: relaysResponse.bridge.relays,\n locations: relaysResponse.locations\n )\n let filteredRelays = (try? applyConstraints(\n location,\n filterConstraint: filter,\n daitaEnabled: false,\n relays: mappedBridges\n )) ?? []\n guard filteredRelays.isEmpty == false else { return relay(from: relaysResponse) }\n\n // Compute the midpoint location from all the filtered relays\n // Take *either* the first five relays, OR the relays below maximum bridge distance\n // sort all of them by Haversine distance from the computed midpoint location\n // then use the roulette selection to pick a bridge\n\n let midpointDistance = Midpoint.location(in: filteredRelays.map { $0.serverLocation.geoCoordinate })\n let maximumBridgeDistance = 1500.0\n let relaysWithDistance = filteredRelays.map {\n RelayWithDistance(\n relay: $0.relay,\n distance: Haversine.distance(\n midpointDistance.latitude,\n midpointDistance.longitude,\n $0.serverLocation.latitude,\n $0.serverLocation.longitude\n )\n )\n }.sorted {\n $0.distance < $1.distance\n }.filter {\n $0.distance <= maximumBridgeDistance\n }.prefix(5)\n\n var greatestDistance = 0.0\n relaysWithDistance.forEach {\n if $0.distance > greatestDistance {\n greatestDistance = $0.distance\n }\n }\n\n let randomRelay = rouletteSelection(relays: Array(relaysWithDistance), weightFunction: { relay in\n UInt64(1 + greatestDistance - relay.distance)\n })\n\n return randomRelay?.relay ?? filteredRelays.randomElement()?.relay\n }\n }\n}\n
dataset_sample\swift\mullvad_mullvadvpn-app\ios\MullvadREST\Relay\RelaySelector+Shadowsocks.swift
RelaySelector+Shadowsocks.swift
Swift
3,930
0.95
0.074468
0.317647
python-kit
394
2024-09-17T15:58:38.222474
Apache-2.0
false
25c8773534744af52afcbf3240bb922a