repo_name
stringlengths
7
91
path
stringlengths
8
658
copies
stringclasses
125 values
size
stringlengths
3
6
content
stringlengths
118
674k
license
stringclasses
15 values
hash
stringlengths
32
32
line_mean
float64
6.09
99.2
line_max
int64
17
995
alpha_frac
float64
0.3
0.9
ratio
float64
2
9.18
autogenerated
bool
1 class
config_or_test
bool
2 classes
has_no_keywords
bool
2 classes
has_few_assignments
bool
1 class
YaQiongLu/LYQdyzb
LYQdyzb/LYQdyzb/Classes/Home/Controller/RecommendVC.swift
1
4611
// // RecommendVC.swift // LYQdyzb // // Created by 芦亚琼 on 2017/8/3. // Copyright © 2017年 芦亚琼. All rights reserved. // import UIKit fileprivate let kItemMargin : CGFloat = 10 fileprivate let kItemW = (kScreenW - 3 * kItemMargin) / 2 fileprivate let kItemNormalH = kItemW * 3 / 4 fileprivate let kItemPrettyH = kIte...
mit
c2e411822cf9040b3a59c9e78124f843
30.591241
192
0.678835
5.195678
false
false
false
false
VirgilSecurity/virgil-sdk-keys-ios
Source/JsonWebToken/AccessProviders/CachingJwtProvider.swift
1
5220
// // Copyright (C) 2015-2020 Virgil Security Inc. // // All rights reserved. // // Redistribution and use in source and binary forms, with or without // modification, are permitted provided that the following conditions are // met: // // (1) Redistributions of source code must retain the above copyright // not...
bsd-3-clause
4622d8adf829a99409b6089dfe6c6d76
38.545455
109
0.650766
4.980916
false
false
false
false
paulsumit1993/DailyFeed
DailyFeed/Supporting Files/PullToReach/PullToReachTarget.swift
1
4076
// // PullToReachTarget.swift // PullToReach // // Created by Stefan Kofler on 17.02.19. // Copyright © 2019 QuickBird Studios GmbH. All rights reserved. // import UIKit // MARK: - PullToReachTarget public protocol PullToReachTarget { func callSelector() func applyStyle(isHighlighted: Bool, highlightColo...
gpl-3.0
edb6772b54c23be155b05d8e1f006f50
35.383929
110
0.659877
4.874402
false
false
false
false
groue/GRDB.swift
Tests/GRDBTests/TableRecordTests.swift
1
12248
import XCTest import GRDB private struct RecordStruct: TableRecord { } private struct CustomizedRecordStruct: TableRecord { static let databaseTableName = "CustomizedRecordStruct" } private class RecordClass: TableRecord { } private class RecordSubClass: RecordClass { } private class CustomizedRecordClass: TableRecord...
mit
aca1d16ab677e507077be97c376c33a0
48.991837
156
0.664598
5.128978
false
false
false
false
SwiftGen/SwiftGen
Tests/SwiftGenKitTests/StringPlaceholderTypeTests.swift
1
7891
// // SwiftGenKit UnitTests // Copyright © 2022 SwiftGen // MIT Licence // @testable import SwiftGenKit import XCTest final class StringPlaceholderTypeTests: XCTestCase { func testParseStringPlaceholder() throws { let placeholders = try Strings.PlaceholderType.placeholderTypes(fromFormat: "%@") XCTAssertEqu...
mit
da9094d2b4a3696efe4809e4f1003137
37.676471
111
0.63346
3.782359
false
true
false
false
AlexZd/SwiftUtils
Pod/Utils/UIView+Helpers/Init/UITextField+Init.swift
1
472
// // UITextField+Init.swift // Alamofire // // Created by Alex on 18.04.2018. // import Foundation import UIKit extension UITextField { public convenience init(background: UIColor? = nil, textColor: UIColor, font: UIFont?) { self.init() self.translatesAutoresizingMaskIntoConstraints = fal...
mit
c2803d11ac2575836475fab239ab99f9
20.454545
92
0.652542
4.538462
false
false
false
false
xPutnikx/ProvisioningFlow
ProvisioningFlow/poc/ProvisioningFlow.swift
1
1783
// // ProvisioningFlow.swift // ProvisioningFlow // // Created by Vladimir Hudnitsky on 9/18/17. // Copyright © 2017 Vladimir Hudnitsky. All rights reserved. // import Foundation import UIKit #if !RX_NO_MODULE import RxSwift import RxCocoa #endif class ProvisioningFlow: FlowOrchestrator { typealias FlowDat...
apache-2.0
d2c53737ad40492f7efe22f9da5031ed
32
115
0.685746
4.895604
false
false
false
false
Kagamine/LongjiangAgricultureCloud
iOSLongjiangAgricultureCloud/LongjiangAgricultureCloud/LongjiangAgricultureCloud/ViewController.swift
2
2383
// // ViewController.swift // LongjiangAgricultureCloud // // Created by Amamiya Yuuko on 15/6/21. // Copyright (c) 2015年 龙江县超越现代玉米种植农民专业合作社. All rights reserved. // import UIKit class ViewController: UIViewController, UIWebViewDelegate { @IBOutlet weak var webView: UIWebView! override func viewDidLoad()...
mit
fd1f9f64b9eb9740ca93ca02572daa35
33.485294
137
0.58678
4.96822
false
false
false
false
ScottRobbins/RxCocoaTouch
Pod/Classes/CALayer+Rx.swift
1
9934
import RxSwift extension CALayer { // MARK: - Accessing the Delegate public var rx_delegate: ObserverOf<AnyObject?> { return observerOfWithPropertySetter { [weak self] (delegate: AnyObject?) in self?.delegate = delegate } } // MARK: - Providing the Layer's Content...
mit
4e1575f9a2aac50cf66eb8414b97c388
32.447811
107
0.630662
5.091748
false
false
false
false
AbelSu131/SimpleMemo
Memo/印象便签 WatchKit Extension/MemoInterFaceController+WCSession.swift
1
1839
// // MemoInterFaceController+WCSession.swift // Memo // // Created by  李俊 on 15/9/27. // Copyright © 2015年  李俊. All rights reserved. // import WatchConnectivity import UIKit extension MemoInterfaceController: WCSessionDelegate { func sharedSession() -> WCSession? { let session: WCSessio...
mit
2e8cd33659db160a81a967435c115d45
22.410256
131
0.585433
4.805263
false
false
false
false
sdkshredder/SocialMe
SocialMe/SocialMe/FriendRequectTVCell.swift
1
5520
// // FriendRequectTVCell.swift // SocialMe // // Created by Kelsey Young on 5/24/15. // Copyright (c) 2015 new. All rights reserved. // import UIKit import Parse import Foundation class FriendRequectTVCell: UITableViewCell { @IBOutlet weak var profilePicture: UIImageView! @IBOutlet weak var usernameLab...
mit
7e4dac43e2a6a8949d5422dd5a8007b4
29
128
0.686775
3.838665
false
false
false
false
everald/JetPack
Sources/Core/Functional.swift
2
7362
import ObjectiveC @inline(__always) public func asObject(_ value: Any) -> AnyObject? { return isObject(value) ? value as AnyObject : nil } private func class_getInstanceMethodIgnoringSupertypes(_ clazz: AnyClass, _ name: Selector) -> Method? { let method = class_getInstanceMethod(clazz, name) if let superclass ...
mit
67d5cef482dd095ad5df99d73cc9d818
32.616438
206
0.732274
4.02515
false
false
false
false
XeresRazor/SwiftRaytracer
src/pathtracer/Sphere.swift
1
1935
// // Sphere.swift // Raytracer // // Created by David Green on 4/6/16. // Copyright © 2016 David Green. All rights reserved. // import simd func sphereUV(point: double4) -> (u: Double, v: Double) { let phi = atan2(point.z, point.x) let theta = asin(point.y) let u = 1.0 - (phi + M_PI) / (2 * M_PI) let v = (th...
mit
6a859c73a402a8e1ede1ea7bc8860d2e
25.493151
113
0.620993
2.782734
false
false
false
false
wenluma/swift
test/SILGen/objc_blocks_bridging.swift
8
11431
// RUN: %empty-directory(%t) // RUN: %build-silgen-test-overlays // RUN: %target-swift-frontend(mock-sdk: -sdk %S/Inputs -I %t) -verify -emit-silgen -I %S/Inputs -disable-objc-attr-requires-foundation-module %s | %FileCheck %s // REQUIRES: objc_interop import Foundation @objc class Foo { // CHECK-LABEL: sil hidden [...
mit
08d40ba5140b541b27369b1380bf08c9
60.789189
271
0.603097
3.363048
false
false
false
false
Maaimusic/BTree
Sources/BTreeMerger.swift
1
34100
// // BTreeMerger.swift // BTree // // Created by Károly Lőrentey on 2016-02-27. // Copyright © 2016–2017 Károly Lőrentey. // /// The matching strategy to use when comparing elements from two trees with duplicate keys. public enum BTreeMatchingStrategy { /// Use a matching strategy appropriate for a set. I.e....
mit
f1297f548febd75532d35573ccc16031
42.877735
142
0.591764
4.497757
false
false
false
false
debugsquad/nubecero
nubecero/Model/Session/MSession.swift
1
779
import Foundation class MSession { enum Status:Int { case unknown case active case banned } typealias UserId = String static let sharedInstance:MSession = MSession() let user:MSessionUser let settings:MSessionSettings let server:MSessionServer let v...
mit
d40387366eba792a4084286c6b11ff92
20.054054
83
0.581515
5.058442
false
false
false
false
0x0c/RDImageViewerController
RDImageViewerController/Classes/Extension/UIImageView+SizeFitting.swift
1
3495
// // UIImageView+SizeFitting.swift // RDImageViewerController // // Created by Akira Matsuda on 2020/11/02. // extension UIImageView { open var rd_contentClippingRect: CGRect { guard let image = image else { return bounds } guard contentMode == .scaleAspectFit else { return bounds } gua...
mit
6728ffa6f2b108083563881d8dffd7f4
29.929204
93
0.47897
5.094752
false
false
false
false
boztalay/TaskScheduler
TaskScheduler/GenericTaskTableViewCell.swift
1
3667
// // GenericTaskTableViewCell.swift // TaskScheduler // // Created by Ben Oztalay on 1/3/16. // Copyright © 2016 Ben Oztalay. All rights reserved. // import UIKit class GenericTaskTableViewCell: UITableViewCell { static let ReuseIdentifier = "GenericTaskTableViewCell" private static let NibName = Generic...
mit
3662ca4a96eb0bca55a9acc295fdff9a
34.941176
108
0.673213
4.7
false
false
false
false
antonio081014/LeetCode-CodeBase
Swift/find-smallest-letter-greater-than-target.swift
2
858
/** * https://leetcode.com/problems/find-smallest-letter-greater-than-target/ * * */ class Solution { /// /// The key part of this binary search is: /// 1. left will be the first possible valid choice. /// 2. right - left >= 1, then stop when left == right /// 3. In the case left move to all ...
mit
b85e5fc67762bfdc315d7b7876fdc5a1
30.777778
117
0.534965
4.085714
false
false
false
false
gbuela/kanjiryokucha
KanjiRyokucha/StartRequest.swift
1
2313
// // StartRequest.swift // KanjiRyokucha // // Created by German Buela on 12/9/16. // Copyright © 2016 German Buela. All rights reserved. // import Foundation extension ReviewType { var querystringParam: String { switch self { case .expired: return "due" case .new: ...
mit
f21128d3e1bb581979443c48adda6859
20.018182
61
0.567907
4.273567
false
false
false
false
lorentey/swift
test/IRGen/type_layout_dumper_resilient.swift
30
2237
// RUN: %empty-directory(%t) // RUN: %target-swift-frontend -emit-module -enable-library-evolution -emit-module-path=%t/type_layout_dumper_other.swiftmodule -module-name=type_layout_dumper_other %S/Inputs/type_layout_dumper_other.swift // RUN: %target-swift-frontend -dump-type-info -type-info-dump-filter=resilient -I...
apache-2.0
06692b102453f2657812d5c24ffd20e2
46.595745
206
0.629861
3.48986
false
false
false
false
AreejEssa/swift
Sources/Controller/Controller.swift
1
3642
/** * Copyright IBM Corporation 2016,2017 * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in ...
apache-2.0
909d422276667c1d6110b8ea6f744b8b
31.230088
115
0.683416
4.171821
false
false
false
false
gregomni/swift
test/IDE/complete_in_accessors.swift
1
14061
// RUN: %empty-directory(%t) // RUN: %target-swift-ide-test -batch-code-completion -source-filename %s -filecheck %raw-FileCheck -completion-output-dir %t //===--- Helper types that are used in this test struct FooStruct { var instanceVar: Int = 0 func instanceFunc0() {} static var staticVar: Int static func ...
apache-2.0
46ff2d205cf367afc720607e42e64239
31.776224
138
0.675201
3.477003
false
false
false
false
joostholslag/BNRiOS
iOSProgramming6ed/5 - ViewControllers/Solutions/WorldTrotter/WorldTrotter/ConversionViewController.swift
1
2155
// // Copyright © 2015 Big Nerd Ranch // import UIKit class ConversionViewController: UIViewController, UITextFieldDelegate { @IBOutlet var celsiusLabel: UILabel! @IBOutlet var textField: UITextField! var fahrenheitValue: Measurement<UnitTemperature>? { didSet { updateCelsiu...
gpl-3.0
9254490344396da778055b35654b3a84
27.342105
97
0.597957
5.594805
false
false
false
false
ljubinkovicd/Lingo-Chat
Lingo Chat/UserPasswordController.swift
1
5569
// // UserPasswordController.swift // Lingo Chat // // Created by Dorde Ljubinkovic on 8/30/17. // Copyright © 2017 Dorde Ljubinkovic. All rights reserved. // import UIKit import SkyFloatingLabelTextField import CryptoSwift class UserPasswordController: UIViewController { @IBOutlet weak var testLabe: UILabel...
mit
7f7fe10645833f23ec0fc38e9160edca
37.136986
158
0.667924
5.25283
false
false
false
false
marc-medley/004.45macOS_CotEditorSwiftScripting
scripts/02)Tidy/23)Tidy XML (xmllint, 2-space).swift
1
2043
#!/usr/bin/swift // %%%{CotEditorXInput=AllText}%%% // %%%{CotEditorXOutput=ReplaceAllText}%%% import Foundation func setEnvironmentVar(key: String, value: String, overwrite: Bool = false) { setenv(key, value, overwrite ? 1 : 0) } var xmlString: String = "" var i = 0 while true { let line = readLine(strippin...
mit
71ea98109e53f2984f05304393e004c9
26.608108
81
0.692119
3.559233
false
false
false
false
davefoxy/SwiftBomb
Example/SwiftBomb/DetailViewControllers/FranchiseViewController.swift
1
4595
// // FranchiseViewController.swift // SwiftBomb // // Created by David Fox on 07/05/2016. // Copyright © 2016 David Fox. All rights reserved. // import UIKit import SwiftBomb class FranchiseViewController: BaseResourceDetailViewController { var franchise: FranchiseResource? override func viewDi...
mit
9d76beef1db15895f61966ba2142ae7c
35.460317
211
0.563779
5.756892
false
false
false
false
reza-ryte-club/firefox-ios
StorageTests/TestSQLiteHistory.swift
2
23415
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Foundation import Shared import XCTest extension Site { func asPlace() -> Place { return Place...
mpl-2.0
2321272596d707c3ffa8f51cc39f30e9
39.372414
182
0.572582
4.808996
false
false
false
false
YMXian/Deliria
Deliria/Deliria/Crypto/Updatable.swift
1
2826
// // Updatable.swift // CryptoSwift // // Created by Marcin Krzyzanowski on 06/05/16. // Copyright © 2016 Marcin Krzyzanowski. All rights reserved. // // TODO: Consider if Updatable shoud use Collection rather than Sequence // /// A type that supports incremental updates. For example Digest or Cipher may be upda...
mit
b739ca07b35e61fe52110b606df13255
41.164179
160
0.669381
4.16053
false
false
false
false
aschwaighofer/swift
test/Driver/Dependencies/fail-added-fine.swift
2
1956
/// bad ==> main | bad --> other // RUN: %empty-directory(%t) // RUN: cp -r %S/Inputs/fail-simple-fine/* %t // RUN: touch -t 201401240005 %t/* // RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path "%{python};%S/Inputs/update-dependencies.py" -output-file-map %t/output.json -incremental -driver-always-rebuild-d...
apache-2.0
eb8d9a2d0ed234dfa34937a1ac782de1
60.125
303
0.701431
3.051482
false
false
false
false
Johennes/firefox-ios
Sync/BatchingClient.swift
1
8244
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Foundation import Alamofire import Shared import XCGLogger import Deferred public class SerializeRecordFai...
mpl-2.0
9eae7ead2d4429e7b0a094447c6e7e69
33.638655
160
0.643498
4.898396
false
false
false
false
huangboju/Moots
UICollectionViewLayout/SpreadsheetView-master/Framework/Sources/ReuseQueue.swift
3
1501
// // ReuseQueue.swift // SpreadsheetView // // Created by Kishikawa Katsumi on 4/16/17. // Copyright © 2017 Kishikawa Katsumi. All rights reserved. // import Foundation final class ReuseQueue<Reusable> where Reusable: NSObject { var reusableObjects = Set<Reusable>() func enqueue(_ reusableObject: Reusab...
mit
dbe43920c4ba2d5c70d0abecc0238779
23.193548
87
0.616667
4.573171
false
false
false
false
AdilVirani/WWDC-2015
Adil Virani/AdilVirani/Adil Virani/ContactViewController.swift
2
3759
// // ContactViewController.swift // Adil Virani // // Created by Adil Virani on 4/24/15. // Copyright (c) 2015 Adil Virani. All rights reserved. // import UIKit class ContactViewController: UIViewController { var contacts = [] override func viewDidLoad() { super.viewDidLoad() ...
apache-2.0
b9e745a293242b6255dafa2f597093c7
38.166667
113
0.639266
4.469679
false
false
false
false
hsusmita/MultiStepSlider
MultiStepSlider/ViewController.swift
1
2304
// // ViewController.swift // MultiStepSlider // // Created by Susmita Horrow on 11/01/16. // Copyright © 2016 hsusmita. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var minimumLabel: UILabel! @IBOutlet weak var maximimLabel: UILabel! @IBOutlet weak var slider: ...
mit
98d1803e800cbadbdeabeb2ca396a67b
28.525641
109
0.707772
3.342525
false
false
false
false
gaurav1981/Nuke
Sources/Loader.swift
1
5241
// The MIT License (MIT) // // Copyright (c) 2017 Alexander Grebenyuk (github.com/kean). import Foundation /// Loads images. public protocol Loading { /// Loads an image with the given request. /// /// Loader doesn't make guarantees on which thread the completion /// closure is called and whether it g...
mit
c405fe9c04b7f014c658c50a496bf269
39.315385
129
0.642053
4.593339
false
false
false
false
noppoMan/aws-sdk-swift
Sources/Soto/Services/MachineLearning/MachineLearning_Error.swift
1
3477
//===----------------------------------------------------------------------===// // // This source file is part of the Soto for AWS open source project // // Copyright (c) 2017-2020 the Soto project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See CONTRIBUTORS.txt for t...
apache-2.0
e7e86980ea55d66e206981eb5e05251b
44.75
172
0.704918
5.341014
false
false
false
false
tjw/swift
test/expr/cast/nil_value_to_optional.swift
2
901
// RUN: %target-typecheck-verify-swift var t = true var f = false func markUsed<T>(_ t: T) {} markUsed(t != nil) // expected-warning {{comparing non-optional value of type 'Bool' to nil always returns true}} markUsed(f != nil) // expected-warning {{comparing non-optional value of type 'Bool' to nil always returns tr...
apache-2.0
487870ba2aa6745c67ba5576c99caca4
28.064516
113
0.665927
3.324723
false
true
false
false
recoveryrecord/SurveyNative
SurveyNative/Classes/TableViewCells/DatePickerViewController.swift
1
2055
// // DatePickerViewController.swift // SurveyNative // // Created by Nora Mullaney on 1/31/17. // Copyright © 2017 Recovery Record. All rights reserved. // import UIKit class DatePickerViewController: UIViewController { @IBOutlet var datePickerView: UIDatePicker? var controllerDelegate: DatePickerVi...
mit
5f3b676203a1bbfc6b4b1c3a646c5885
26.756757
91
0.618793
5.581522
false
false
false
false
atrick/swift
benchmark/single-source/SIMDReduceInteger.swift
7
7085
//===--- SIMDReduceInteger.swift ------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE....
apache-2.0
93839c83116e503e37472481700e2670
27.684211
96
0.642343
3.407888
false
false
false
false
LeonardoCardoso/SwiftLinkPreview
SwiftLinkPreviewTests/URLs.swift
1
3949
// // URLs.swift // SwiftLinkPreview // // Created by Leonardo Cardoso on 16/07/2016. // Copyright © 2016 leocardz.com. All rights reserved. // import Foundation struct URLs { // Please add the text in the format: // [text, expectation, canonical] // ["xxx https://your.url.com/etc#something?else=true...
mit
f919502a163ed0f68a640636d72d4966
29.604651
155
0.486829
3.079563
false
false
false
false
breadwallet/breadwallet-ios
breadwallet/AppDelegate.swift
1
3713
// // AppDelegate.swift // breadwallet // // Created by Aaron Voisine on 10/5/16. // Copyright (c) 2016-2019 Breadwinner AG. All rights reserved. // import UIKit import LocalAuthentication class AppDelegate: UIResponder, UIApplicationDelegate { private var window: UIWindow? { return applicationContro...
mit
d1d9b5e1f682643a285ba026b62e7713
41.193182
167
0.72502
5.93131
false
false
false
false
apple/swift
validation-test/compiler_crashers_2_fixed/0022-rdar21625478.swift
1
11446
// RUN: %target-swift-frontend %s -emit-silgen // rdar://80395274 tracks getting this to pass with the requirement machine. // XFAIL: * // The test hangs in a noassert build: // REQUIRES: asserts import StdlibUnittest public struct MyRange<Bound : ForwardIndex> { var startIndex: Bound var endIndex: Bound } pub...
apache-2.0
8d856cdbe55e22c14f3e4e96985e8f82
25.312644
96
0.68714
4.362043
false
false
false
false
danielsaidi/iExtra
iExtraTests/Files/AppFileManagerDefaultTests.swift
1
6406
// // AppFileManagerDefaultTests.swift // iExtra // // Created by Daniel Saidi on 2016-12-19. // Copyright © 2018 Daniel Saidi. All rights reserved. // import Quick import Nimble import iExtra class AppFileManagerDefaultTests: QuickSpec { override func spec() { describe("default global f...
mit
8d1ba6dc6ccc7bbd88e74df78ff442d0
37.353293
98
0.453084
5.66313
false
false
false
false
hooman/swift
test/Concurrency/Runtime/async_let_fibonacci.swift
2
1278
// RUN: %target-run-simple-swift( -Xfrontend -disable-availability-checking %import-libdispatch -parse-as-library) // REQUIRES: executable_test // REQUIRES: concurrency // REQUIRES: libdispatch // rdar://76038845 // UNSUPPORTED: use_os_stdlib // UNSUPPORTED: back_deployment_runtime func fib(_ n: Int) -> Int { var ...
apache-2.0
57cc35efe70625e8b713846172959a97
21.821429
114
0.658059
3.372032
false
false
false
false
noppoMan/aws-sdk-swift
Sources/Soto/Services/Inspector/Inspector_Paginator.swift
1
28065
//===----------------------------------------------------------------------===// // // This source file is part of the Soto for AWS open source project // // Copyright (c) 2017-2020 the Soto project authors // Licensed under Apache License v2.0 // // See LICENSE.txt for license information // See CONTRIBUTORS.txt for t...
apache-2.0
85f32b500ed5dd11a2c4b14fa5cf13d4
43.127358
196
0.650383
5.055846
false
false
false
false
vbudhram/firefox-ios
Storage/SQL/BrowserSchema.swift
2
59541
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Foundation import Shared import XCGLogger let BookmarksFolderTitleMobile: String = NSLocalizedString("Mobi...
mpl-2.0
1f3c25a248908ac2edcbeb5c9bcddd02
42.171139
246
0.605597
4.784842
false
false
false
false
venticake/RetricaImglyKit-iOS
RetricaImglyKit/Classes/Frontend/Views/TextButton.swift
1
2347
// This file is part of the PhotoEditor Software Development Kit. // Copyright (C) 2016 9elements GmbH <contact@9elements.com> // All rights reserved. // Redistribution and use in source and binary forms, without // modification, are permitted provided that the following license agreement // is approved and a leg...
mit
23a4b598e8fe19235156e0e8d66f949a
25.670455
108
0.622071
4.487572
false
false
false
false
jvesala/teknappi
teknappi/Pods/RxSwift/RxSwift/Observables/Implementations/Concat.swift
29
1523
// // Concat.swift // Rx // // Created by Krunoslav Zaher on 3/21/15. // Copyright (c) 2015 Krunoslav Zaher. All rights reserved. // import Foundation class ConcatSink<S: SequenceType, O: ObserverType where S.Generator.Element : ObservableType, S.Generator.Element.E == O.E> : TailRecursiveSink<S, O> { typeal...
gpl-3.0
1a55de5e184768a36aecdf52bf6a3c10
25.736842
151
0.592252
4.138587
false
false
false
false
respan/ChainableSwift
ChainableSwift/Classes/UIViewExtensions.swift
1
8910
// // UIViewExtensions.swift // Pods // // Created by Denis Sushko on 17.04.16. // // public extension UIView { /// ChainableSwift func userInteractionEnabled(_ userInteractionEnabled: Bool) -> Self { self.isUserInteractionEnabled = userInteractionEnabled return self } /// Chainabl...
mit
35c9b705a1013145351358f075e42d08
23.211957
111
0.647138
5.348139
false
false
false
false
soapyigu/LeetCode_Swift
Stack/ValidParentheses.swift
1
1009
/** * Question Link: https://leetcode.com/problems/valid-parentheses/ * Primary idea: Use a stack to see whether the peek left brace is correspond to the current right one * Time Complexity: O(n), Space Complexity: O(n) */ class ValidParentheses { func isValid(_ s: String) -> Bool { var stack = [Charac...
mit
67514e46f7c7e8a436908af7d9dfb743
31.580645
102
0.445986
4.827751
false
false
false
false
skunkmb/donut-mayhem
Donut Mayhem/Donut Mayhem/ShopViewController.swift
1
18226
/* ShopViewController.swift Donut Mayhem Created by skunkmb on 2/16/17. Copyright © 2017 skunkmb. All rights reserved. */ import UIKit import QuartzCore class ShopViewController: UIViewController { let selectedBorderColor = UIColor(red:0.89, green:0.00, blue:0.02, alpha:1.0).cgColor let selectedBorderWidth: CG...
mit
51a6f15bd1cb0f5b4a08e3b3250ecfe2
35.679435
105
0.77233
3.561668
false
false
false
false
miracl/amcl
version3/swift/fp4.swift
1
13229
/* Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use ...
apache-2.0
7e798c988402de4fa886bf92f6b6454c
19.605919
97
0.390279
3.147514
false
false
false
false
mitchtreece/Bulletin
Example/Pods/Espresso/Espresso/Classes/Core/Foundation/DataSource.swift
1
2187
// // DataSource.swift // Espresso // // Created by Mitch Treece on 3/10/19. // // NOTE: Still working on this. // Will uncomment and release when ready. //import Foundation // //public protocol DataSourceDelegate: class { // // func dataSourceWillFetchData<T>(_ dataSource: DataSource<T>) // func dataSource<...
mit
ebd627053d301261ed32828ffdb26205
24.137931
83
0.598994
3.713073
false
false
false
false
NorthernRealities/ColorSenseRainbow
ColorSenseRainbow/RainbowHexStringBuilder.swift
1
3529
// // RainbowHexStringBuilder.swift // ColorSenseRainbow // // Created by Reid Gravelle on 2015-05-28. // Copyright (c) 2015 Northern Realities Inc. All rights reserved. // import AppKit class RainbowHexStringBuilder: ColorBuilder { /** Generates a String containing the code required to create a colo...
mit
3823ed70b2373df71d787c668096cf2f
44.24359
475
0.665628
5.619427
false
false
false
false
iAugux/Zoom-Contacts
Phonetic/PolyphonicCharacters.swift
1
5941
// // PolyphonicCharacters.swift // Phonetic // // Created by Augus on 2/2/16. // Copyright © 2016 iAugus. All rights reserved. // import Foundation /// Add following code to Xcode Playground and replace "重" with your new polyphonic character /// to test whether the result is completely correct. /// Note: guaran...
mit
ded268eb3a811cd760151c50d6a2972b
33.369697
100
0.627403
3.222159
false
false
false
false
JasonPan/ADSSocialFeedScrollView
ADSSocialFeedScrollView/Providers/Youtube/Data/YoutubeVideo.swift
1
1543
// // YoutubeVideo.swift // ADSSocialFeedScrollView // // Created by Jason Pan on 14/02/2016. // Copyright © 2016 ANT Development Studios. All rights reserved. // import UIKit class YoutubeVideo: PostProtocol { private(set) var playlist: YoutubePlaylist! var id: String! var title: String! ...
mit
461b4103a39c3966a404f29956cda7d6
32.521739
142
0.465629
6.39834
false
false
false
false
MA806P/SwiftDemo
SwiftTestDemo/SwiftTestDemo/main.swift
1
11758
// // main.swift // SwiftTestDemo // // Created by MA806P on 2018/7/11. // Copyright © 2018年 myz. All rights reserved. // import Foundation //var enumerationTest = EnumerationsTestObject() //enumerationTest.enmerationsDemo() //var structClassTest = StructClassTest() //structClassTest.structClassFuncTest() ...
apache-2.0
a8871c88c97d80b38a515660c170eeb9
23.845339
386
0.610301
3.390286
false
false
false
false
wikimedia/wikipedia-ios
WMF Framework/EventLoggingService.swift
1
17248
import Foundation import CocoaLumberjackSwift enum EventLoggingError { case generic case network } @objc(WMFEventLoggingService) public class EventLoggingService : NSObject, URLSessionDelegate { private struct Key { static let isEnabled = "SendUsageReports" static let appInstallID = "WMFAp...
mit
6a48a3ac68b25b9077b87bb1af4aa364
35.854701
172
0.573458
5.821127
false
false
false
false
wilbert/Inflection
Source/Pluralize.swift
1
8859
// // Pluralize.swift // // usage: // "Tooth".pluralize // "Nutrtion".pluralize // "House".pluralize(count: 1) // "Person".pluralize(count: 2, with: "Persons") // // Copyright (c) 2014 Joshua Arvin Lat // // MIT License // // Permission is hereby granted, free of charge, to any person obtaining // a cop...
mit
879a190aa428179f0e3b43d669541aec
40.990521
118
0.558415
3.614443
false
false
false
false
sunlijian/sinaBlog_repository
sinaBlog_sunlijian/sinaBlog_sunlijian/AppDelegate.swift
1
3684
// // AppDelegate.swift // sinaBlog_sunlijian // // Created by sunlijian on 15/10/9. // Copyright © 2015年 myCompany. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func hasNewVersion() -> Bool { window = U...
apache-2.0
cd9fcae22414a445d774480074c57533
39.494253
285
0.693443
5.556782
false
false
false
false
sammyd/Concurrency-VideoSeries
projects/010_GCDDelights/010_ChallengeComplete/Pollster.playground/Contents.swift
2
1211
import Foundation import XCPlayground XCPlaygroundPage.currentPage.needsIndefiniteExecution = true //: # Pollster //: __Challenge:__ Complete the following class to simulate a polling mechanism using `dispatch_after()` class Pollster { let callback: (String) -> () private var active: Bool = false private let i...
mit
7027864908f8b6b1c4f1d7d654611d9a
20.625
115
0.661437
4.063758
false
false
false
false
Arcovv/CleanArchitectureRxSwift
CleanArchitectureRxSwift/Application/Application.swift
1
2328
import Foundation import Domain import Network import CoreDataPlatform import RealmPlatform final class Application { static let shared = Application() private let coreDataUseCaseProvider: Domain.UseCaseProvider private let realmUseCaseProvider: Domain.UseCaseProvider private let networkUseCaseProvide...
mit
80900616f90452f69499cf35d7703ef8
39.137931
86
0.688574
6.224599
false
false
false
false
dtrauger/Charts
Source/Charts/Renderers/XAxisRendererRadarChart.swift
1
3190
// // XAxisRendererRadarChart.swift // Charts // // Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda // A port of MPAndroidChart for iOS // Licensed under Apache License 2.0 // // https://github.com/danielgindi/Charts // import Foundation import CoreGraphics #if !os(OSX) import UIKit #endif open class XA...
apache-2.0
9f7b5c4799be6f147ec7e75a0068906a
30.9
199
0.607524
5.238095
false
false
false
false
normand1/TDDWeatherApp
TDDWeatherApp/CacheAccess.swift
1
1454
// // CacheAccess.swift // TDDWeatherApp // // Created by David Norman on 6/25/15. // Copyright (c) 2015 David Norman. All rights reserved. // import Foundation let weatherAppKey = "com.monsoonco.weatherapp" class CacheAccess { class func cacheJsonDict(_ zip: String, dictionary : NSDictionary)->Bool { ...
mit
1df0d0a47fa7e30e9777aa9926866499
26.961538
100
0.603164
4.675241
false
false
false
false
Eonil/EditorLegacy
Modules/EditorWorkspaceNavigationFeature/EditorWorkspaceNavigationFeature/Internals/ContextMenuController.swift
1
1456
// // ContextMenuController.swift // EditorWorkspaceNavigationFeature // // Created by Hoon H. on 2015/02/22. // Copyright (c) 2015 Eonil. All rights reserved. // import Foundation import AppKit import EditorCommon import EditorUIComponents final class ContextMenuController: MenuController { let showInFinder ...
mit
04c4fde8ebd241b95d5ff189d46e467a
24.12069
77
0.71772
3.316629
false
false
false
false
bitjammer/swift
test/SILGen/call_chain_reabstraction.swift
14
846
// RUN: %target-swift-frontend -emit-silgen %s | %FileCheck %s struct A { func g<U>(_ recur: (A, U) -> U) -> (A, U) -> U { return { _, x in return x } } // CHECK-LABEL: sil hidden @_T024call_chain_reabstraction1AV1f{{[_0-9a-zA-Z]*}}F // CHECK: [[G:%.*]] = functio...
apache-2.0
96be978e80e6c941ccbd489a0141580e
48.764706
119
0.470449
3.317647
false
false
false
false
aliabbas90/DraggableDynamicModal
Example/DraggableDynamicModal/ViewController.swift
1
2948
// // ViewController.swift // DecathlonDraggableView // // Created by Ali ABBAS on 12/05/2017. // Copyright © 2017 Decathlon. All rights reserved. // import UIKit import DraggableDynamicModal enum ModalVCType: String { case labelModalVC = "Modal", scrollableModalVC = "ScrollableViewController", naviga...
mit
e5ea52645a5109d48405145f5b57beec
35.382716
158
0.705124
5.234458
false
false
false
false
toggl/superday
teferi/UI/Modules/Goals/GoalList/GoalViewModel.swift
1
8423
import Foundation import RxSwift class GoalViewModel { //MARK: Public Properties var goalsObservable: Observable<[Goal]> { return self.goals.asObservable() } var todaysGoal: Observable<Goal?> { return self.goals.asObservable() .map(toTodaysGoal) } var lastGoal: Observable<Goal?>...
bsd-3-clause
9500dd23dacaa2b20fcd46fbf2692016
38.544601
147
0.627924
4.905649
false
false
false
false
vimeo/VimeoUpload
VimeoUpload/Upload/Model/VideoSettings.swift
1
3875
// // VideoSettings.swift // VimeoUpload // // Created by Alfred Hanssen on 10/3/15. // Copyright © 2015 Vimeo. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Softwa...
mit
bfcdbd030dfb85810bbe8cae4c645fb7
30.754098
114
0.615901
4.367531
false
false
false
false
luosheng/Swocket
Pod/Extensions/Transmittable+Async.swift
1
2173
// The MIT License (MIT) // // Copyright (c) 2015 Joakim Gyllström // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use...
mit
9d0e7c46f9cda4edd664fa418c20d14b
38.509091
95
0.619705
4.891892
false
false
false
false
butterproject/butter-ios
Butter/Local Database/MovieFavorites.swift
1
1566
// // MovieFavorites.swift // Butter // // Created by Moorice on 28-09-15. // Copyright (c) 2015 Butter Project. All rights reserved. // import Foundation import SQLite public class MovieFavorites { private static let movieFavorites = Table("MovieFavorites") private static let imdb_id = Expression<String>("im...
gpl-3.0
7e766bdc93e8d10f4e9403543babd34b
22.029412
108
0.684547
3.289916
false
false
false
false
iscriptology/swamp
Swamp/SwampSession.swift
1
16105
// // SwampSession.swift // import Foundation import SwiftyJSON // MARK: Call callbacks public typealias CallCallback = (_ details: [String: Any], _ results: [Any]?, _ kwResults: [String: Any]?) -> Void public typealias ErrorCallCallback = (_ details: [String: Any], _ error: String, _ args: [Any]?, _ kwargs: [String...
mit
0e678a823f2c5b4dfa321947e758f456
43.123288
193
0.636262
4.90408
false
false
false
false
minsOne/DigitClockInSwift
MainFeature/MainFeature/Dependencies/Clock/Clock/Source/ViewController.swift
1
9649
// // ViewController.swift // DigitClockinSwift // // Created by minsOne on 2015. 4. 22.. // Copyright (c) 2015년 minsOne. All rights reserved. // import UIKit import Resources import Library import Settings import ClockTimer import RIBs private let spaceViewAlpha: CGFloat = 0.5 public enum PresentableListenerAct...
mit
bc6e995a14be8e38d791859d001f36b8
27.883234
103
0.611382
4.651398
false
false
false
false
rockgarden/swift_language
Playground/Design-Patterns.playground/Design-Patterns.playground/Pages/Behavioral.xcplaygroundpage/Contents.swift
1
16886
//: Behavioral | //: [Creational](Creational) | //: [Structural](Structural) /*: Behavioral ========== >In software engineering, behavioral design patterns are design patterns that identify common communication patterns between objects and realize these patterns. By doing so, these patterns increase flexibility in car...
mit
3dabfcc93a176f5ff3e43ebf550800a9
24.233533
245
0.675012
3.916357
false
false
false
false
johnno1962c/swift-corelibs-foundation
Foundation/PersonNameComponents.swift
9
7494
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LI...
apache-2.0
b4669f84e4ace396f9606f862d95c181
42.569767
152
0.65479
4.764145
false
false
false
false
andreacremaschi/CopyPaper
CopyPaper/UIViewController+CopyPaper.swift
1
1161
import Foundation import UIKit var isOverlaidAssociationKey: UInt8 = 0 extension UIViewController { override public class func initialize() { guard self === UIViewController.self else { return } swizzleMethodSelector("viewDidLoad", withSelector: "cp_viewDidLoad", forClass: self) } ...
mit
e586ff64cfe54ec1b193cf82d2d0a5fd
31.277778
115
0.656331
5.114537
false
false
false
false
clarenceji/Clarence-Ji
Clarence Ji/CJProjectDetailPopupView.swift
1
9888
// // CJProjectDetailPopupView.swift // Clarence Ji // // Created by Clarence Ji on 4/21/15. // Copyright (c) 2015 Clarence Ji. All rights reserved. // import UIKit class CJProjectDetailPopupView: UIView, UIScrollViewDelegate, UITableViewDelegate, UITableViewDataSource { @IBOutlet var scrollView_Images: ...
gpl-3.0
977b13044beced56cc44570dca311c4d
38.230159
166
0.615112
4.789729
false
false
false
false
swifteroid/reactiveoauth
source/ReactiveOAuth/Auth/Auth.Credential.swift
1
680
import Foundation import OAuthSwift public struct Credential { public var accessToken: String public var refreshToken: String? public var expireDate: Date? public init(accessToken: String, refreshToken: String? = nil, expireDate: Date? = nil) { self.accessToken = accessToken self.refre...
mit
b16104532be6fe5454c97e2c875127ad
29.909091
98
0.679412
5.44
false
false
false
false
hmuronaka/SwiftlySalesforce
Pod/Classes/Model.swift
1
3214
// // Model.swift // SwiftlySalesforce // // For license & details see: https://www.github.com/mike4aday/SwiftlySalesforce // Copyright (c) 2016. All rights reserved. // /// Holds the result of a SOQL query /// See https://developer.salesforce.com/docs/atlas.en-us.api_rest.meta/api_rest/dome_query.htm public struc...
mit
80633255c47aa0994bdb09f66672c411
25.561983
143
0.702551
3.463362
false
false
false
false
chengxianghe/MissGe
MissGe/MissGe/Class/Helper/XHImageGifHelper.swift
1
4745
// // XHImageGifHelper.swift // MissGe // // Created by chengxianghe on 2017/5/18. // Copyright © 2017年 cn. All rights reserved. // import Foundation import AssetsLibrary import Photos import MobileCoreServices typealias kGIFCheckClosure = (_ isGif: Bool, _ gifData: Data?) -> Void typealias kGetImageDataClosure =...
mit
0bf2f54da761e1079ad6c4df44ab114e
41.234234
137
0.526664
5.18011
false
false
false
false
emilstahl/swift
test/decl/class/override.swift
11
14943
// RUN: %target-parse-verify-swift -parse-as-library class A { func ret_sametype() -> Int { return 0 } func ret_subclass() -> A { return self } func ret_subclass_rev() -> B { return B() } func ret_nonclass_optional() -> Int? { return .None } func ret_nonclass_optional_rev() -> Int { return 0 } func ret_cla...
apache-2.0
a3357fcb4e6b84a8bace171bcbed5a26
65.119469
331
0.677374
3.817833
false
false
false
false
ZhangZhiyuanZZY/emtionLittleTest
表情测试/表情测试/ViewController.swift
1
931
// // ViewController.swift // 表情测试 // // Created by 章芝源 on 15/11/10. // Copyright © 2015年 ZZY. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var label: UILabel! override func viewDidLoad() { super.viewDidLoad() let str = "0x1...
mit
e2822a5e966105d5fbb09ea93bc6f842
17.26087
48
0.520238
4.137931
false
false
false
false
ben-ng/swift
validation-test/compiler_crashers_fixed/01695-swift-pattern-operator.swift
1
1931
// This source file is part of the Swift.org open source project // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the li...
apache-2.0
d3167905e337c7edcec4b140a0a07286
14.325397
79
0.617297
2.648834
false
false
false
false
wyzzarz/SwiftCollection
SwiftCollection/SwiftCollection/SCOrderedSet.swift
1
35352
// // SCOrderedSet.swift // // Copyright 2017 Warner Zee // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by...
apache-2.0
9b19700630cfb7d7512fd4c53b1d003b
35.748441
169
0.615382
4.354231
false
false
false
false
breadwallet/breadwallet-core
Swift/BRCryptoTests/BRCryptoWalletManagerTests.swift
1
16606
// // BRCryptoWalletManagerTests.swift // BRCryptoTests // // Created by Ed Gamble on 1/11/19. // Copyright © 2019 Breadwallet AG. All rights reserved. // // See the LICENSE file at the project root for license information. // See the CONTRIBUTORS file at the project root for a list of contributors. // import XC...
mit
11f7e723725750f2410328595491a7f5
41.796392
152
0.614694
5.229921
false
true
false
false
OSzhou/MyTestDemo
17_SwiftTestCode/TestCode/OtherPro/MeetupTableViewHeader.swift
1
1582
// // MeetupTableViewHeader.swift // TestCode // // Created by Zhouheng on 2020/7/16. // Copyright © 2020 tataUFO. All rights reserved. // import UIKit import SnapKit class MeetupTableViewHeader: UIView { override init(frame: CGRect) { super.init(frame: frame) setupUI() } private...
apache-2.0
1004ba7f13d6723e48e6b689add4061c
24.095238
59
0.56926
4.284553
false
false
false
false
waywalker/HouseWarmer
HouseWarmer/GatewayListViewController.swift
1
2926
import Siesta import UIKit final class GatewayListViewController: UITableViewController { fileprivate let gatewayResource = NeviWebAPI.shared.gateway fileprivate var selectedGatewayID: String? fileprivate var gateways: [Gateway] = [] { didSet { tableView.reloadData() ...
unlicense
8ddf0574df3203cb85ef10946acc3098
21
109
0.590909
5.794059
false
false
false
false
mattfenwick/TodoRx
TodoRx/TodoFlowDefaultInteractor.swift
1
4169
// // TodoFlowDefaultInteractor.swift // TodoRx // // Created by Matt Fenwick on 7/19/17. // Copyright © 2017 mf. All rights reserved. // import Foundation import RxSwift import CoreData private let dateFormatter = ISO8601DateFormatter() private extension CDTodo { // MARK: - priority func setPriority(p...
mit
c24d24328297da8b4bb21537f54fc5dc
34.322034
128
0.56166
5.039903
false
false
false
false
yasuoza/graphPON
graphPON iOS/Views/ChartInformationView.swift
1
1028
import UIKit class ChartInformationView: UIView { @IBOutlet private var titleLabel: UILabel! = UILabel() private let kJBChartValueViewPadding = CGFloat(0.0) private let kJBChartValueViewSeparatorSize = CGFloat(0.5) private let kJBChartValueViewTitleHeight = CGFloat(50.0) func setHidden(hidden: Bo...
mit
95fead2c26f5965143a80dd412f2c0eb
33.266667
127
0.610895
4.651584
false
false
false
false
naokits/my-programming-marathon
RxSwiftDemo/Carthage/Checkouts/RxSwift/RxExample/RxExample/Examples/SimpleTableViewExampleSectioned/SimpleTableViewExampleSectionedViewController.swift
6
2177
// // SimpleTableViewExampleSectionedViewController.swift // RxExample // // Created by Krunoslav Zaher on 12/6/15. // Copyright © 2015 Krunoslav Zaher. All rights reserved. // import Foundation import UIKit #if !RX_NO_MODULE import RxSwift import RxCocoa #endif class SimpleTableViewExampleSectionedViewController...
mit
751d9657d195946981f280b61d39cd44
27.644737
92
0.556985
5.320293
false
false
false
false
WalterCreazyBear/Swifter30
VedioDemo/VedioDemo/VideoCutter.swift
1
2724
// // VideoCutter.swift // VedioDemo // // Created by Bear on 2017/6/29. // Copyright © 2017年 Bear. All rights reserved. // import UIKit import AVFoundation extension String { var convert: NSString { return (self as NSString) } } class VideoCutter: NSObject { /** Block based method for crop video u...
mit
dd0ff4395e85b8ebaef8263644d50749
38.434783
151
0.594267
5.656965
false
false
false
false
SpriteKitAlliance/SKAControlSprite
Example/SKAControlExample/SKAControlExample/Sprites/SKASprite.swift
1
3208
// // SKASprite.swift // SKAControlExample // // Created by Marc Vandehey on 4/20/17. // Copyright © 2017 SpriteKit Alliance. All rights reserved. // import SpriteKit class SKASprite : SKSpriteNode { private let atlas = SKTextureAtlas(named: "SKA") private var currentState = SKASpriteState.Standing init() ...
mit
33f1941f2bb0328af3def427c5437d22
25.94958
104
0.705644
4.069797
false
false
false
false
EclipseSoundscapes/EclipseSoundscapes
EclipseSoundscapes/Features/About/Settings/Sections/Language/LanguageSettingItem.swift
1
741
// // LanguageSettingItem.swift // EclipseSoundscapes // // Created by Arlindo on 12/26/20. // Copyright © 2020 Eclipse Soundscapes. All rights reserved. // import RxCocoa class LanguageSettingItem: SettingItem, ReactiveViewModel, EventViewModel { let cellIdentifier: String = LanguageCell.identifier let i...
gpl-3.0
98340f4848ed9b9400c2004692fe37e8
29.833333
83
0.710811
4.457831
false
false
false
false
LiwxCoder/Swift-Weibo
Weibo/Weibo/Classes/Home(首页)/StatusViewModel.swift
1
3310
// // StatusViewModel.swift // Weibo // // Created by liwx on 16/3/2. // Copyright © 2016年 liwx. All rights reserved. // import UIKit class StatusViewModel { // MARK: ====================================================================== // MARK: - Property (懒加载,属性监听) // MARK: - 微博对象属性 var s...
mit
d82a600a2e09aa3569375fb8a98a066b
28.95
117
0.52621
4.236209
false
false
false
false
milseman/swift
test/DebugInfo/mangling.swift
14
1940
// RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s // Type: // Swift.Dictionary<Swift.Int64, Swift.String> func markUsed<T>(_ t: T) {} // Variable: // mangling.myDict : Swift.Dictionary<Swift.Int64, Swift.String> // CHECK: !DIGlobalVariable(name: "myDict", // CHECK-SAME: linkageName: "_T08mangl...
apache-2.0
17af8b82317818bf6a8a623af542ce88
45.190476
98
0.623196
2.899851
false
false
false
false
allenlinli/Wildlife-League
Wildlife League/Board.swift
1
1889
// // Board.swift // Wildlife League // // Created by allenlin on 7/9/14. // Copyright (c) 2014 Raccoonism. All rights reserved. // import Foundation let NumColumns = 6 let NumRows = 5 class Board { var grid :Array2D<Beed> var chains = Set<Chain>() init(){ self.grid = Array2D<Beed>(colu...
apache-2.0
639f7ae20ad18fbfe07a9b778c97203a
22.04878
102
0.463208
4.053648
false
false
false
false
nodes-vapor/admin-panel
Sources/AdminPanel/Tags/AvatarURLTag.swift
1
683
import Leaf import TemplateKit public final class AvatarURLTag: TagRenderer { public func render(tag: TagContext) throws -> Future<TemplateData> { var identifier = "" var url: String? for index in 0...1 { if let param = tag.parameters[safe: index]?.string, ...
mit
f2f4c98b6350d56cd4c86dc99b9f6a43
25.269231
86
0.502196
4.776224
false
false
false
false
notohiro/NowCastMapView
NowCastMapView/BaseTime.swift
1
3361
// // BaseTime.swift // NowCastMapView // // Created by Hiroshi Noto on 9/15/15. // Copyright © 2015 Hiroshi Noto. All rights reserved. // import Foundation /** A `BaseTime` structure contains a set of indexes represents forecast timeline as of specific forecast time. A `BaseTime` instances are parsed and instant...
mit
d6cf3024a2a83481181af667f51d6be8
27.474576
107
0.6625
4.019139
false
false
false
false
Istered/FrameManager
Source/Extensions/CustomCacheableState+Extensions.swift
1
834
// // Created by Anton Romanov on 12.03.17. // Copyright (c) 2017 Istered. All rights reserved. // import Foundation internal extension CustomCacheableState { func asHashableKey() -> HashSetKey { let keys = Self.customKeys() let mirror = Mirror(reflecting: self) return HashSetKey(hashes: ...
mit
03b7fda8a3ac56363a4b3a7f88856042
28.821429
86
0.583933
4.233503
false
false
false
false
belatrix/iOSAllStars
AllStarsV2/AllStarsV2/CommonClasses/CoredataMedia/CDMWebResponse.swift
1
3089
// // CDMWebResponse.swift // // // Created by Kenyi Rodriguez on 8/04/16. // Copyright © 2016 Core Data Media. All rights reserved. // import UIKit public class CDMWebResponse: NSObject { public var JSON : Any? public var statusCode : Int = 404 public var respuestaNSData : Data? ...
apache-2.0
eec08014faa278965396f2028c636cba
22.386364
85
0.429219
5.188235
false
false
false
false