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_...
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 ...
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#endi...
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...
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...
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 te...
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 sim...
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 sim...
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 Except...
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 : ...
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<...
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...
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: UnsafeP...
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) -> NonFrozenStru...
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 ...
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 ...
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 ...
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: UI...
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) -> CX...
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 pr...
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 .pack...
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 sim...
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 sim...
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 ...
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)...
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 ...
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{0...
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 NS...
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 .pack...
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 .pack...
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 setAttributes...
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 logL...
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/yy...
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 m...
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: "Log...
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 () ->...
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 osLogOut...
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 creatio...
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 log...
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....
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 pub...
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(\...
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 {\...
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 ...
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...
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: ProxyFactoryP...
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 -> MullvadRE...
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 ...
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 su...
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(\...
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 wireg...
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: "accoun...
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 ...
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: U...
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 ...
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 ...
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 getAcce...
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...
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: ...
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...
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 (Re...
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...
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...
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 acco...
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, Sen...
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>: ResultOperat...
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<S...
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 cr...
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 ///...
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 ...
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: R...
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 handleURL...
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 MullvadApi...
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...
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 certificatePa...
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 ...
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, ...
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: ...
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 MullvadApiTransportErro...
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...
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 cr...
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...
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...
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(_ retryStrateg...
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: ...
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.LocationIden...
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 ...
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 a...
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 ...
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.\...
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 ...
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: MultihopDecision...
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 ...
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 /// http...
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: RES...
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 pr...
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: [RelayWithLocatio...
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 br...
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