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
chris-al-brown/alchemy-csa
Demo.playground/Contents.swift
1
3491
// ----------------------------------------------------------------------------- // Copyright (c) 2016, Christopher A. Brown (chris-al-brown) // // 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 Soft...
mit
ac6872b51d958f7ad2dba3e51db1758c
35.726316
98
0.674692
3.929054
false
false
false
false
steve-holmes/music-app-2
MusicApp/Modules/Player/PlayerModule.swift
1
4454
// // PlayerModule.swift // MusicApp // // Created by Hưng Đỗ on 6/9/17. // Copyright © 2017 HungDo. All rights reserved. // import Swinject class PlayerModule: Module { override func register() { // MARK: Controllers container.register(PlayerViewController.self) { resol...
mit
8c10ede0a2f2c8578e36769ea4b764fa
33.757813
101
0.589346
5.56821
false
false
false
false
queueit/QueueIT.iOS.Sdk
QueueItSDK/QueueITEngine.swift
1
8364
import Foundation public class QueueITEngine { let MAX_RETRY_SEC = 10 let INITIAL_WAIT_RETRY_SEC = 1 var customerId: String var eventId: String var configId: String var layoutName: String var language: String var widgets = [WidgetRequest]() var deltaSec: Int var onQueu...
lgpl-3.0
a4fd0a6bf989a1b1e7201f9a3610170e
33.705394
180
0.587398
4.613348
false
false
false
false
Syerram/asphalos
asphalos/DataManager.swift
1
4065
// // DataManager.swift // asphalos // // Created by Saikiran Yerram on 12/28/14. // Copyright (c) 2014 Blackhorn. All rights reserved. // import Foundation import UIKit import CoreData extension NSManagedObject { ///Save all of the changes class func save() { let appDelegate = UIApplication.shar...
mit
12a84f71c7013160302481e9495b3979
37.358491
139
0.662485
5.553279
false
false
false
false
lyimin/EyepetizerApp
EyepetizerApp/EyepetizerApp/Constant/EYEConstant.swift
1
1229
// // EYEConstant.swift // EyepetizerApp // // Created by 梁亦明 on 16/3/11. // Copyright © 2016年 xiaoming. All rights reserved. // import UIKit struct UIConstant { // 屏幕宽高 static let IPHONE6_WIDTH : CGFloat = 375 static let IPHONE6_HEIGHT : CGFloat = 667 static let IPHONE5_WIDTH : CGFloat = 320 ...
mit
825c8bf06b4a12bb267ce80637901844
27.487805
76
0.65411
3.518072
false
false
false
false
pennlabs/penn-mobile-ios
PennMobile/GSR-Booking/Model/GSRGroupUser.swift
1
984
// // GSRGroupUser.swift // PennMobile // // Created by Daniel Salib on 11/8/19. // Copyright © 2019 PennLabs. All rights reserved. // import Foundation struct GSRGroupUser: Decodable { let pennkey: String! let groups: [GSRGroup]? enum CodingKeys: String, CodingKey { case pennkey = "username"...
mit
1fe32458993471b0f91acff2e459d443
22.97561
85
0.669379
3.766284
false
false
false
false
lucasmpaim/LPaimiOSUtils
Pod/Classes/LPaimUtilsImages.swift
1
2894
// // Images.swift // LPaimUtils // // Created by LPaimUtils on 21/03/15. // Copyright (c) 2015 LPaimUtils. All rights reserved. // import Foundation enum SuportedImages{ case PNG, JPEG } class LPaimUtilsImages{ /** Generate UIImage with a BezierPath Obs: Don't call .setStroke or .stroke method...
mit
ab7c808586c95b80980eac933cbee877
28.242424
157
0.599171
5.167857
false
false
false
false
IBM-Swift/Kitura
Sources/Kitura/CodableRouter+TypeSafeMiddleware.swift
1
115917
/* * Copyright IBM Corporation 2018 * * 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 ...
apache-2.0
a04ffaccf355dd54c34c35b25bb6d866
55.379864
210
0.654494
4.644855
false
false
false
false
Ethenyl/JAMFKit
JamfKit/Sources/Models/Policy/PolicyGeneral.swift
1
6449
// // Copyright © 2017-present JamfKit. All rights reserved. // Licensed under the MIT License. See LICENSE file in the project root for full license information. // @objc(JMFKPolicyGeneral) public final class PolicyGeneral: BaseObject { // MARK: - Constants static let EnabledKey = "enabled" static let...
mit
dd6bc54c01083dd8c246a7ee685c6701
34.234973
111
0.698976
4.622222
false
false
false
false
jekahy/Adoreavatars
Adoravatars/DownloadsVC.swift
1
1266
// // DownloadsVC.swift // Adoravatars // // Created by Eugene on 21.06.17. // Copyright © 2017 Eugene. All rights reserved. // import Foundation import UIKit import RxSwift import RxCocoa import Then class DownloadsVC: UIViewController { let cellIdentifier = "downloadCell" @IBOutlet weak var ta...
mit
6ae9bf57d6a0412e6634adc7c9698834
23.803922
119
0.666403
5.100806
false
false
false
false
Antondomashnev/Sourcery
SourceryTests/Stub/Performance-Code/Kiosk/Bid Fulfillment/KeypadContainerView.swift
2
1392
import UIKit import Foundation import RxSwift import Action import FLKAutoLayout //@IBDesignable class KeypadContainerView: UIView { fileprivate var keypad: KeypadView! fileprivate let viewModel = KeypadViewModel() var stringValue: Observable<String>! var intValue: Observable<Int>! var deleteActio...
mit
cbfc16ca65ab9bac44f191b44cc2b04c
29.933333
120
0.700431
4.93617
false
false
false
false
rcwchew/swiftScan
swiftScan/ScanResultController.swift
1
2340
// // ScanResultController.swift // swiftScan // // Created by xialibing on 15/12/11. // Copyright © 2015年 xialibing. All rights reserved. // import UIKit class ScanResultController: UIViewController { @IBOutlet weak var codeImg: UIImageView! @IBOutlet weak var codeTypeLabel: UILabel! @IBOutlet weak...
mit
ddae0f21e8a8c77f922a648541aeb09e
23.956989
121
0.535976
4.330224
false
false
false
false
shyn/cs193p
Psychologist/Psychologist/TextViewController.swift
1
866
// // TextViewController.swift // Psychologist // // Created by deepwind on 5/1/17. // Copyright © 2017 deepwind. All rights reserved. // import UIKit class TextViewController: UIViewController { @IBOutlet weak var textView: UITextView! { didSet { textView.text = text } } ...
mit
a91a5396cda56df756693a49ae1374b5
21.179487
88
0.557225
5.05848
false
false
false
false
February12/YLPhotoBrowser
Pods/Kingfisher/Sources/ImageDownloader.swift
8
26245
// // ImageDownloader.swift // Kingfisher // // Created by Wei Wang on 15/4/6. // // Copyright (c) 2017 Wei Wang <onevcat@gmail.com> // // 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
2fac17c5a2e865ca3e1ba1866ede86ea
43.634354
227
0.661726
5.7104
false
false
false
false
jspahrsummers/Pistachio
Pistachio/Lens.swift
1
4236
// // Lens.swift // Pistachio // // Created by Robert Böhnke on 1/17/15. // Copyright (c) 2015 Robert Böhnke. All rights reserved. // import LlamaKit public struct Lens<A, B> { private let get: A -> B private let set: (A, B) -> A public init(get: A -> B, set: (A, B) -> A) { self.get = get ...
mit
00e0325d089832b968a5e9ac29775adf
22.786517
156
0.526925
2.628181
false
false
false
false
tombuildsstuff/swiftcity
SwiftCity/Entities/BuildAgent.swift
1
1365
public struct BuildAgent { public let agent: BuildAgentSummary public let connected: Bool public let enabled: Bool public let authorized: Bool public let upToDate: Bool public let ip: String? public let properties: Parameters? public let pool: BuildAgentPoolSummary ini...
mit
0c492697e6a41656196f3855d74d7931
34.025641
88
0.606593
5.055556
false
false
false
false
JustinM1/S3SignerAWS
Sources/Payload.swift
1
2863
import OpenCrypto import Foundation /// The Payload associated with a request. /// /// - data: The data of the request. /// - none: No payload is in the request. i.e. GET request. /// - unsigned: The size of payload will not go into signature calcuation. Useful if size is unknown at time of signature creation. Less se...
mit
6deed1bee3e0ad8f64fbe052d4ec0066
27.63
210
0.582256
3.900545
false
false
false
false
mike4aday/SwiftlySalesforce
Sources/SwiftlySalesforce/Errors/ResponseError.swift
1
845
import Foundation public struct ResponseError: Error { public var code: String? = nil public var message: String? = nil public var fields: [String]? = nil public let metadata: HTTPURLResponse private let na = "N/A" // 'Not Applicable' or 'Not Available' } extension ResponseError: Localiz...
mit
5fcdf847d59aad86d8c2a4aa081f8eef
30.296296
154
0.653254
4.447368
false
false
false
false
red-spotted-newts-2014/Im-In
im-in-ios/im-in-ios/untitled folder/APIProfileController.swift
1
2494
// // APIController.swift // // Created by fahia mohamed on 2014-08-14. // Copyright (c) 2014 fahia mohamed. All rights reserved. // // import Foundation protocol APIProfileControllerProtocol { func didReceiveAPIResults(results: NSDictionary) func didLogOut(results: NSDictionary) } class ...
mit
290e8e24e390cb908339437b17503325
36.80303
151
0.60425
4.899804
false
false
false
false
christophhagen/Signal-iOS
Signal/src/Jobs/MultiDeviceProfileKeyUpdateJob.swift
1
2732
// // Copyright (c) 2017 Open Whisper Systems. All rights reserved. // import Foundation import PromiseKit import SignalServiceKit import SignalMessaging /** * Used to distribute our profile key to legacy linked devices, newly linked devices will have our profile key as part of provisioning. * Syncing is accomplis...
gpl-3.0
bc5c8a516841a6a826351775ccc6466c
43.064516
150
0.685944
5.453094
false
false
false
false
pyconjp/pyconjp-ios
PyConJP/Protocol/DummyJSON/DummyTalksProtocol.swift
1
980
// // DummyTalksProtocol.swift // PyConJP // // Created by Yutaro Muta on 2017/06/14. // Copyright © 2017 PyCon JP. All rights reserved. // import Foundation import Result protocol DummyTalksProtocol { func getTalksFromLocalDummyJSON(completionHandler: ((Result<[TalkObject], NSError>) -> Void)) } e...
mit
3232a92f45f3fafc3efe59ae210f82c7
30.580645
115
0.673136
4.219828
false
false
false
false
ZwxWhite/V2EX
V2EX/V2EX/Class/Controller/Other(其他)/UserInfoViewController.swift
1
2562
// // UserInfoViewController.swift // V2EX // // Created by wenxuan.zhang on 16/3/7. // Copyright © 2016年 张文轩. All rights reserved. // import UIKit import Alamofire import SwiftyJSON class UserInfoViewController: UIViewController { var username: String? var user: V2UserModel? @IBOutlet weak var t...
mit
5ef3fbbe5faa6eff98d8ff5293d7559c
32.5
170
0.646365
4.980431
false
false
false
false
ProfileCreator/ProfileCreator
ProfileCreator/ProfileCreator/Profile Editor TableView CellViews/PayloadCellViewFooter.swift
1
7468
// // PayloadCellViewPadding.swift // ProfileCreator // // Created by Erik Berglund. // Copyright © 2018 Erik Berglund. All rights reserved. // import Cocoa import ProfilePayloads class PayloadCellViewFooter: NSTableCellView, ProfileCreatorCellView { // MARK: - // MARK: PayloadCellView Variables var...
mit
3d9bbddf8958d578474566a04ece0655
42.16185
122
0.37284
7.327772
false
false
false
false
xusader/firefox-ios
Client/Frontend/Settings/SearchSettingsTableViewController.swift
3
8717
/* 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 UIKit class SearchSettingsTableViewController: UITableViewController { private let SectionDefault = 0 ...
mpl-2.0
f322c19547e3750ee398aa9b23bb8ae0
42.80402
202
0.673167
5.901828
false
false
false
false
sergdort/CleanArchitectureRxSwift
CleanArchitectureRxSwiftTests/Scenes/AllPosts/PostsUseCaseMock.swift
1
702
@testable import CleanArchitectureRxSwift import RxSwift import Domain class PostsUseCaseMock: Domain.PostsUseCase { var posts_ReturnValue: Observable<[Post]> = Observable.just([]) var posts_Called = false var save_ReturnValue: Observable<Void> = Observable.just(()) var save_Called = false var delete_ReturnV...
mit
2b1a9b3dce5985cb83fb4c35ad587e86
25
65
0.706553
4.129412
false
false
false
false
DeliciousRaspberryPi/ShameGame
Sources/ShameGame/LionlyProgressTracker.swift
1
4147
import Kitura import KituraNet import LoggerAPI import SwiftyJSON import Dispatch import Foundation public class LionlyProgressTracker { public let router = Router() let queue = DispatchQueue(label: "com.pridelands.lionlyProgressTracker") public init() { router.all("/", middleware: BodyParser()) ...
apache-2.0
7cda0cdb15f7658a35a00450a419ef79
38.875
134
0.616349
4.659551
false
false
false
false
taewan0530/TWPageEmbed
TWPageEmbedViewControllerDemo/TWPageEmbedViewControllerDemo/ViewController.swift
1
1211
// // ViewController.swift // TWPageEmbedViewControllerDemo // // Created by kimtaewan on 2015. 12. 24.. // Copyright © 2015년 prnd. All rights reserved. // import UIKit class ViewController: TWContainerEmbedController { // var containerEmbedController: TWContainerEmbedController! override func viewDi...
mit
4b27c2ca8a64d1054596b69ae03a577f
27.093023
108
0.663907
4.490706
false
false
false
false
waterskier2007/NVActivityIndicatorView
NVActivityIndicatorView/Animations/NVActivityIndicatorAnimationBallTrianglePath.swift
1
5255
// // NVActivityIndicatorAnimationBallTrianglePath.swift // NVActivityIndicatorViewDemo // // The MIT License (MIT) // Copyright (c) 2016 Vinh Nguyen // 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...
mit
78e84b89954dc2c57bfc177edca700db
50.519608
144
0.707136
4.621812
false
false
false
false
cheft/30DaysofDesign
05-Life/code/Life/Life/ViewController.swift
1
1411
// // ViewController.swift // Life // // Created by chenhaifeng on 16/10/26. // Copyright © 2016年 cheft. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var lifeTime: UILabel! @IBOutlet weak var lifeTip: UILabel! var timer = Timer() var count = 10...
mit
b5fc5f9a5e0a40b76ec2f4d5cbbe6926
24.163636
147
0.58526
4.464516
false
false
false
false
antonio081014/LeetCode-CodeBase
Swift/find-duplicate-file-in-system.swift
2
1164
/** * https://leetcode.com/problems/find-duplicate-file-in-system/ * * */ // Date: Tue May 18 14:06:06 PDT 2021 class Solution { func findDuplicate(_ paths: [String]) -> [[String]] { var dict = [String : [String]]() for path in paths { let fileList = pathToFile(path) f...
mit
386dad54d1a8807ea85b18c7d0ecdea9
30.486486
86
0.524914
4.311111
false
false
false
false
mittenimraum/CVGenericDataSource
Example/CVGenericDataSourceExample/Classes/Coordination/LoadingCoordinator.swift
1
1233
// // LoadingCoordinator.swift // CVGenericDataSourceExample // // Created by Stephan Schulz on 22.04.17. // Copyright © 2017 Stephan Schulz. All rights reserved. // import Foundation import UIKit import CVGenericDataSource class LoadingCoordinator: NSObject, CoordinatorProtocol { // MARK: - Variables <C...
mit
eb6ad20287aac9e8d6f1deb0ed58452c
28.333333
123
0.715097
5.703704
false
false
false
false
diegosanchezr/Chatto
ChattoApp/ChattoApp/ChatItemsDemoDecorator.swift
1
3926
/* The MIT License (MIT) Copyright (c) 2015-present Badoo Trading Limited. 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 us...
mit
f918df55c324fb9b66fb36d74716888f
42.142857
136
0.682374
5.437673
false
false
false
false
GargoyleSoft/RFC5545
RFC5545/EKRecurrenceRule.swift
1
13386
// // EKRecurrenceRule.swift // // Copyright © 2016 Gargoyle Software, LLC. // // 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 right...
mit
376aed242544e995c858a7f9fc72e1e2
34.884718
336
0.557266
4.68007
false
false
false
false
convergeeducacao/Charts
Source/Charts/Utils/ChartUtils.swift
3
10314
// // Utils.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 ChartUtils { fil...
apache-2.0
8ca8db7b6b8bfa3ab717840b7e527dd2
32.487013
216
0.573201
5.043521
false
false
false
false
Ryan-Vanderhoef/Antlers
AppIdea/Frameworks/Bond/Bond/Bond+UITextField.swift
1
4061
// // Bond+UITextField.swift // Bond // // The MIT License (MIT) // // Copyright (c) 2015 Srdan Rasic (@srdanrasic) // // 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 restri...
mit
927e9b8d69b617cb312c4570f3c54fcd
30.726563
129
0.710662
4.17369
false
false
false
false
hulinSun/MyRx
MyRx/MyRx/Classes/Topic/View/TopicTitleCell.swift
1
1493
// // TopicTitleCell.swift // MyRx // // Created by Hony on 2016/12/30. // Copyright © 2016年 Hony. All rights reserved. // import UIKit import ReusableKit class TopicTitleCell: UITableViewCell { override func awakeFromNib() { super.awakeFromNib() // Initialization code } @IBOutl...
mit
3ad0076e030ba45a7714c78658eeee66
25.981481
84
0.578586
4.223188
false
false
false
false
breadwallet/breadwallet-ios
breadwalletWidget/Views/ChartView/ChartViewModel.swift
1
3445
// // ChartViewModel.swift // ChartDemo // // Created by stringcode on 11/02/2021. // Copyright © 2021 Breadwinner AG. All rights reserved. // // See the LICENSE file at the project root for license information. // import Foundation import SwiftUI struct ChartViewModel { let candles: [Candle] let greenCa...
mit
ceb50046a4ab52c5c34f4f6c345bb5c0
28.435897
113
0.578688
4.004651
false
false
false
false
Jamnitzer/MBJ_CubeMapping
MBJ_CubeMapping/MBJ_CubeMapping/MBJViewController.swift
1
5802
// // MBEViewController.m // MetalCubeMapping // // Created by Warren Moore on 11/7/14. // Copyright (c) 2014 Metal By Example. All rights reserved. //------------------------------------------------------------------------ // converted to Swift by Jamnitzer (Jim Wrenholt) //---------------------------------------...
mit
674eaa9aba0e939b27c3742855cb2427
41.350365
97
0.417615
5.102902
false
false
false
false
ingresse/ios-sdk
IngresseSDKTests/URLBuilderTests.swift
1
3040
// // Copyright © 2017 Gondek. All rights reserved. // import XCTest import IngresseSDK class URLBuilderTests: XCTestCase { var builder: URLBuilder! override func setUp() { super.setUp() let client = IngresseClient(apiKey: "1234", userAgent: "", env: .prod) builder = URLBui...
mit
73248bbc2d9fe743480759febacad72b
23.909836
92
0.554788
4.549401
false
true
false
false
PJayRushton/stats
Stats/UIView+Helpers.swift
1
2982
/* | _ ____ ____ _ | | |‾| ⚈ |-| ⚈ |‾| | | | | ‾‾‾‾| |‾‾‾‾ | | | ‾ ‾ ‾ */ import UIKit public extension UIView { @IBInspectable public var cornerRadius: CGFloat { get { return layer.cornerRadius } set { layer.cornerRadius = newVal...
mit
3e3a1a1da9eb53c137d4667dc7ed65b5
34.566265
190
0.609079
4.863262
false
false
false
false
dobleuber/my-swift-exercises
Challenge3/Challenge3/ViewController.swift
1
2210
// // ViewController.swift // Challenge3 // // Created by Wbert Castro on 16/06/17. // Copyright © 2017 Wbert Castro. All rights reserved. // import UIKit import Social class ViewController: UITableViewController { var shoppingList = [String]() override func viewDidLoad() { super.viewDidLoad() ...
mit
66652701d7e9480423189556ec4343d3
32.469697
119
0.648257
4.87638
false
false
false
false
glennposadas/gpkit-ios
GPKit/Categories/UIViewContorller+GPKit.swift
1
12099
// // UIViewContorller+GPKit.swift // GPKit // // Created by Glenn Posadas on 5/10/17. // Copyright © 2017 Citus Labs. All rights reserved. // import UIKit public extension UIViewController { // MARK: - Properties public typealias GPKitAlertControllerCallBack = (_ sourceType: UIImagePickerContro...
mit
8cfb02e9664f2d2e5f0baadad9a41705
37.164038
147
0.656885
5.766444
false
false
false
false
ivlevAstef/DITranquillity
Samples/SampleChaos/SampleChaos/ViewController.swift
1
2282
// // ViewController.swift // SampleChaos // // Created by Alexander Ivlev on 09/06/16. // Copyright © 2016 Alexander Ivlev. All rights reserved. // import UIKit import DITranquillity class ViewController: UIViewController { internal var container: DIContainer! internal var injectGlobal: Inject? overr...
mit
d3d2db62f85ec1a62bf4b91b07bbd2e8
29.413333
114
0.649715
3.714984
false
false
false
false
JackEsad/Eureka
Source/Core/Section.swift
4
16499
// Section.swift // Eureka ( https://github.com/xmartlabs/Eureka ) // // Copyright (c) 2016 Xmartlabs ( http://xmartlabs.com ) // // // 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 with...
mit
63213d3a64ee673a8087c4d1a65c2399
36.412698
218
0.637554
4.757497
false
false
false
false
apple/swift
benchmark/single-source/StringComparison.swift
10
26520
//===--- StringComparison.swift -------------------------------------*- swift -*-===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift...
apache-2.0
6916c86224357a4b3f610ee52049fd75
28.811224
451
0.640852
3.09686
false
false
false
false
skela/SwiftyDropbox
TestSwiftyDropbox/TestSwiftyDropbox_iOS/AppDelegate.swift
1
4605
/// /// Copyright (c) 2016 Dropbox, Inc. All rights reserved. /// import UIKit import SwiftyDropbox @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaun...
mit
b21882b79fb8aec0902a842421a08b93
49.054348
285
0.654072
5.799748
false
true
false
false
grgcombs/PlayingCards-Swift
Pod/Classes/RandomNumber.swift
1
1822
// // RandomNumber.swift // PlayingCards (Swift) // // Created by Gregory Combs on 7/14/15. // import Foundation public extension Int { /** Returns a random number with the given lower and upper boundary integers :param: lower The lowest possible integer to return :param: upper The highest possibl...
mit
8d37251753dca3969e5ff5ec3117738c
24.305556
79
0.632272
4.004396
false
false
false
false
kickstarter/ios-oss
Kickstarter-iOS/Features/BackerDashboardProjects/Views/Cells/BackerDashboardProjectCell.swift
1
4005
import Foundation import KsApi import Library import Prelude import UIKit internal final class BackerDashboardProjectCell: UITableViewCell, ValueCell { fileprivate let viewModel: BackerDashboardProjectCellViewModelType = BackerDashboardProjectCellViewModel() @IBOutlet fileprivate var cardView: UIView! @IBOutlet...
apache-2.0
79410960f10130f467942d2f575e59b9
38.653465
108
0.724345
4.51522
false
false
false
false
the-blue-alliance/the-blue-alliance-ios
Frameworks/TBAData/Tests/Event/EventStatusAllianceTests.swift
1
6074
import CoreData import TBADataTesting import TBAKit import XCTest @testable import TBAData class EventStatusAllianceTestCase: TBADataTestCase { func test_name() { let status = EventStatusAlliance.init(entity: EventStatusAlliance.entity(), insertInto: persistentContainer.viewContext) XCTAssertNil(s...
mit
a55ef83d308af7f657c77a9000eebe1a
41.774648
143
0.714356
4.878715
false
true
false
false
uasys/swift
benchmark/single-source/StrToInt.swift
11
1889
//===--- StrToInt.swift ---------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
apache-2.0
e3accc221e39c3f5121fc8078edc533c
39.191489
80
0.520911
3.440801
false
false
false
false
uasys/swift
test/SILGen/generic_literals.swift
3
2454
// RUN: %target-swift-frontend -emit-silgen -enable-sil-ownership %s | %FileCheck %s // CHECK-LABEL: sil hidden @_T016generic_literals0A14IntegerLiteralyx1x_ts013ExpressibleBycD0RzlF func genericIntegerLiteral<T : ExpressibleByIntegerLiteral>(x: T) { var x = x // CHECK: [[TCONV:%.*]] = witness_method $T, #Expressi...
apache-2.0
73daf1cb71f2eb8f0c8bc73999bac80c
72.818182
246
0.667488
3.373961
false
false
false
false
abunur/quran-ios
Quran/QuranTranslationAyahSectionDataSource.swift
1
3921
// // QuranTranslationAyahSectionDataSource.swift // Quran // // Created by Mohamed Afifi on 4/4/17. // // Quran for iOS is a Quran reading application for iOS. // Copyright (C) 2017 Quran.com // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Pub...
gpl-3.0
1081ddf57d873e6cbff8ea96ec7e01f5
34.645455
142
0.647539
5.007663
false
false
false
false
erichoracek/Carthage
Source/carthage/Environment.swift
2
987
// // Environment.swift // Carthage // // Created by J.D. Healy on 2/6/15. // Copyright (c) 2015 Carthage. All rights reserved. // import CarthageKit import Foundation import Result internal func getEnvironmentVariable(variable: String) -> Result<String, CarthageError> { let environment = NSProcessInfo.processIn...
mit
f6780ccc3070bc3fc8b75385a6703b26
24.307692
89
0.729483
3.724528
false
false
false
false
salavert/vainglory-api
VaingloryAPI/Resources/RosterResource.swift
1
1325
// // RosterResource.swift // Pods // // Created by Jose Salavert on 26/03/2017. // // import Foundation import Mapper import Treasure public struct RosterResource: Resource { public let id: String public let type: String public let acesEarned: Int? public let gold: Int? public let heroKi...
mit
b55c795548fb38bb47c033a2fa427ccc
29.813953
108
0.667925
3.88563
false
false
false
false
naturaln0va/Doodler_iOS
UIImage+Addtions.swift
1
2625
import UIKit extension UIImage { func imageByTintingWithColor(color: UIColor) -> UIImage? { UIGraphicsBeginImageContextWithOptions(size, false, 0.0) color.setFill() let bounds = CGRect(x: 0, y: 0, width: size.width, height: size.height) UIRectFill(bounds) draw...
mit
34a1534e2c862d9ebcd807457d61276a
33.090909
92
0.59581
4.888268
false
false
false
false
Sherlouk/monzo-vapor
Tests/MonzoTests/WebhookTests.swift
1
2328
import XCTest @testable import Monzo class WebhookTests: XCTestCase { func testListWebhooks() { let client = MonzoClient(publicKey: "", privateKey: "", httpClient: MockResponder()) let user = client.createUser(userId: "", accessToken: "", refreshToken: nil) guard let account = (try? us...
mit
ccaf85bc4c57dde34255f135616c2e5f
44.647059
92
0.648625
4.319109
false
true
false
false
clwm01/RTKitDemo
RCToolsDemo/RCToolsDemo/AnimationTableViewController.swift
2
2578
// // AnimationTableViewController.swift // RCToolsDemo // // Created by Rex Tsao on 19/4/2016. // Copyright © 2016 rexcao. All rights reserved. // import UIKit class AnimationTableViewController: UITableViewController { let actions = ["circle", "gravity", "attachment", "snap", "push", "catScroll", "chart"] ...
mit
3dd302572aba2e8640c22dcff787d9c4
38.045455
118
0.681801
5.436709
false
false
false
false
EstebanVallejo/sdk-ios
MercadoPagoSDK/MercadoPagoSDK/PayerCost.swift
2
2397
// // PayerCost.swift // MercadoPagoSDK // // Created by Matias Gualino on 28/12/14. // Copyright (c) 2014 com.mercadopago. All rights reserved. // import Foundation public class PayerCost : NSObject { public var installments : Int = 0 public var installmentRate : Double = 0 public var labels : [Strin...
mit
bbfcb61c2bc8f493e0cb174018ed3ab5
38.311475
140
0.672507
4.015075
false
false
false
false
benlangmuir/swift
test/Compatibility/exhaustive_switch.swift
4
30910
// RUN: %target-typecheck-verify-swift -swift-version 4 -enable-library-evolution func foo(a: Int?, b: Int?) -> Int { switch (a, b) { case (.none, _): return 1 case (_, .none): return 2 case (.some(_), .some(_)): return 3 } switch (a, b) { case (.none, _): return 1 case (_, .none): return 2 case...
apache-2.0
a93f0454062ccae2816dd9fcd3418e7d
24.336066
191
0.63342
3.590429
false
false
false
false
mshhmzh/firefox-ios
Client/Frontend/Home/HomePanels.swift
3
3053
/* 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 UIKit /** * Data for identifying and constructing a HomePanel. */ struct HomePanelDesc...
mpl-2.0
38c97d65ff8662fbf897e170a1efdabf
43.897059
150
0.644284
6.118236
false
false
false
false
poisonedslo/CGOverloads
CGOverloads.swift
1
3176
// // CGOverloads.swift // // //The MIT License (MIT) // //Copyright (c) 2014 Nejc Pintar // //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 limitati...
mit
50e0d58c7d5813f86f525830ee9c4d18
22.525926
79
0.685139
3.521064
false
false
false
false
Adorkable/StoryboardKit
StoryboardKitTests/ViewInstanceInfoTests.swift
1
3984
// // ViewInstanceInfoTests.swift // StoryboardKit // // Created by Ian on 6/30/15. // Copyright (c) 2015 Adorkable. All rights reserved. // import XCTest import StoryboardKit class ViewInstanceInfoTests: XCTestCase { var applicationInfo : ApplicationInfo? var viewInstanceInfoId = "IKn-pG-61R" v...
mit
54f3d40072f9394c87327e774dea7576
40.5
176
0.694026
4.870416
false
true
false
false
ZXVentures/ZXFoundation
Sources/ZXFoundation/Networking/Attributes/HTTPStatus.swift
1
1379
// // HTTPStatus.swift // ZXFoundation // // Created by Wyatt McBain on 8/30/16. // Copyright © 2016 ZX Ventures. All rights reserved. // import Foundation /** `HTTPStatus` provides a typed representation of a http status. */ public enum HTTPStatus { /// Informational response. case info /// Su...
mit
3252fa7ef566d89b166abcf40b046bcc
22.758621
78
0.587083
4.503268
false
false
false
false
sendyhalim/iYomu
Yomu/Screens/Root/YomuNavigationController.swift
1
1811
// // YomuRootViewController.swift // Yomu // // Created by Sendy Halim on 6/3/17. // Copyright © 2017 Sendy Halim. All rights reserved. // import UIKit import RxSwift enum NavigationTarget { case searchManga case chapterCollection(String) case chapterPageCollection(ChapterViewModel) } enum NavigationData ...
mit
7be67ed000cb156a983455cfdaba58b3
27.28125
93
0.734807
4.641026
false
false
false
false
jwfriese/FrequentFlyer
FrequentFlyer/Logs/LogsStylingParser.swift
1
1240
import Foundation class LogsStylingParser { fileprivate var stylingDescriptorBuilder: StylingDescriptorBuilder fileprivate var hasOpenStylingElement: Bool = false init() { stylingDescriptorBuilder = StylingDescriptorBuilder() } func stripStylingCoding(originalString: String) -> String { ...
apache-2.0
89e23731beb6e94fa1cefaf1a6189eba
33.444444
90
0.616935
6.019417
false
false
false
false
gaoleegin/SwiftLianxi
ReactiveSecondLianXi/Pods/ReactiveCocoa/ReactiveCocoa/Swift/Disposable.swift
33
5613
// // Disposable.swift // ReactiveCocoa // // Created by Justin Spahr-Summers on 2014-06-02. // Copyright (c) 2014 GitHub. All rights reserved. // /// Represents something that can be “disposed,” usually associated with freeing /// resources or canceling work. public protocol Disposable { /// Whether this disposa...
apache-2.0
60756623a64d563db3aefb2cf0ff442c
23.072961
100
0.699412
3.889736
false
false
false
false
SASAbus/SASAbus-ios
SASAbus/Sync/TripSyncHelper.swift
1
1686
import Foundation import RxSwift import RxCocoa import SwiftyJSON import RealmSwift class TripSyncHelper { static func upload(trips: [CloudTrip], scheduler: SchedulerType) { Log.warning("Uploading \(trips.count) trips") _ = CloudApi.uploadTrips(trips: trips) .subscribeOn(scheduler...
gpl-3.0
1fb9992cd27a975ac2171ec4277891b5
36.466667
100
0.424081
6.064748
false
false
false
false
grandiere/box
box/Controller/Support/CSettings.swift
1
2366
import UIKit class CSettings:CController { let model:MSettings private weak var viewSettings:VSettings! private let urlMap:[String:String]? private let kResourceName:String = "ResourceURL" private let kResourceExtension:String = "plist" private let kReviewKey:String = "review" private let k...
mit
3b95928ffd2d24404dfd055f8a939c6f
23.142857
95
0.542265
5.515152
false
false
false
false
acecilia/SugarEdges
Sources/ExpressibleByEdgesDictionaryLiteral.swift
1
1513
/// A type that can be initialized using a dictionary of Edges, and their associated value public protocol ExpressibleByEdgesDictionaryLiteral: ExpressibleByDictionaryLiteral { init(top: CGFloat, left: CGFloat, bottom: CGFloat, right: CGFloat) } extension ExpressibleByEdgesDictionaryLiteral { public init(dicti...
mit
e6b698dd5c896a8861438f040d8c98ef
41.027778
90
0.608724
4.179558
false
false
false
false
onevcat/APNGKit
Source/APNGKit/APNGImageView.swift
1
20375
// // APNGImageView.swift // // // Created by Wang Wei on 2021/10/12. // #if canImport(UIKit) || canImport(AppKit) import Delegate import Foundation import CoreGraphics /// A view object that displays an `APNGImage` and perform the animation. /// /// To display an APNG image on the screen, you first create an `APN...
mit
c4593bed3297fab653b7ad6640238fc4
43.584245
165
0.65173
5.103958
false
false
false
false
polischouckserg/tutu-test
RoutePicker/RoutePicker/Sources/View models/ScheduleViewModel.swift
1
1024
// // ScheduleViewModel.swift // RoutePicker // // Created by Sergey Polischouck on 04/11/16. // Copyright © 2016 Sergey Polischouck. All rights reserved. // import Foundation class ScheduleViewModel { var pickedStationFrom: Station? var pickedStationTo: Station? var pickedDate: Date? var pi...
apache-2.0
1b5270e08cb42d077f64bf3c4e88a17e
25.230769
113
0.648094
4.506608
false
false
false
false
rayfix/RAFIntMath
RAFIntMath/Rational.swift
1
2809
// // Rational.swift // // Created by Ray Fix on 6/21/14. // Copyright (c) 2014 Pelfunc, Inc. All rights reserved. // import Foundation public struct Rational : Printable, Comparable, Hashable { public let numerator:Int public let denominator:Int public init(_ v:Int) { self.init(v,1) ...
mit
1491c387a550cd9b07b1ff7f52df3870
18.921986
72
0.546102
3.995733
false
false
false
false
ahoppen/swift
benchmark/single-source/ObserverPartiallyAppliedMethod.swift
10
1252
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
apache-2.0
322b0c58dc3d243b77df3085cdf7d439
24.55102
80
0.595048
4.536232
false
false
false
false
patrick-sheehan/cwic
Source/User.swift
1
2137
// // User.swift // cwic // // Created by Patrick Sheehan on 6/14/17. // Copyright © 2017 Síocháin Solutions. All rights reserved. // import UIKit class Profile { var avatar: String var birthdate: String var gender: String var hometown: String var how_discovered: String var phone_number: String v...
gpl-3.0
590864334059b863cf2def20c98cc255
22.711111
65
0.598875
3.156805
false
false
false
false
ontouchstart/swift3-playground
playground2book/Deal/Deal.playgroundbook/Contents/Chapters/Deal.playgroundchapter/Pages/Deal.playgroundpage/Contents.swift
1
3884
import Darwin public func random (_ seed: Int) -> Int { return Int(arc4random_uniform(UInt32(seed))) } extension MutableCollection where Index == Int, IndexDistance == Int { mutating func shuffle() { guard count > 1 else { return } for i in 0..<count - 1 { let j = random(count...
mit
df5e07c7cd995a3f58692e303fe87074
20.752809
119
0.573605
3.837463
false
false
false
false
flodolo/firefox-ios
Client/Frontend/Reader/ReaderMode.swift
1
11799
// 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 WebKit private let log = Logger.browserLogger let ReaderModeProfileKeyStyle = "...
mpl-2.0
0a254bb53de4f01368ade9fbceed27cd
32.143258
149
0.614883
4.976381
false
false
false
false
tottokotkd/ColorPack
ColorPack/src/iOS/UIColor.swift
1
483
// // File.swift // ColorPack // // Created by Shusuke Tokuda on 2016/10/22. // // import UIKit extension ColorProtocol { public var toUIColor: UIColor { let (r, g, b) = toDoubleRGBData let red = r / percentageMax let green = g / percentageMax let blue = b / percentageMax ...
mit
3b44225c7c7f303e596cf4691d0d2125
23.15
115
0.627329
3.926829
false
false
false
false
ufogxl/MySQLTest
Sources/Time.swift
1
3802
// // getTime.swift // GoodStudent // // Created by ufogxl on 2016/11/26. // // import Foundation //用来标示时间的全局变量 var time = Time() struct Time{ var numberOfWeek:Int! var numberOfClass:Int! var presentedTime:String! var date:Date! init() { numberOfWeek = 1 numberOfClass =...
apache-2.0
78be08707e58be91c4b551a949464f7d
24.916084
115
0.549649
3.601555
false
false
false
false
instacrate/tapcrate-api
Sources/api/Controllers/DescriptionCollection.swift
1
1959
// // DescriptionController.swift // polymr-api // // Created by Hakon Hanesand on 3/19/17. // // import Vapor import HTTP import Fluent import FluentProvider import Routing import Node import JWT import AuthProvider import Foundation fileprivate func handle(upload request: Request, for product: Int) throws -> Str...
mit
01e681932ce450811f188ab96bae33fa
28.238806
139
0.646759
4.472603
false
false
false
false
SusanDoggie/DoggieGP
Sources/OpenCL/clCommandQueue.swift
1
6040
// // clCommandQueue.swift // // The MIT License // Copyright (c) 2015 - 2018 Susan Cheng. 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 Software without restriction...
mit
5e73e7ceacbfa17c89cb2c4527987d1e
37.471338
242
0.615232
4.715066
false
false
false
false
monisun/warble
Warble/ComposeTweetViewController.swift
1
7175
// // ComposeTweetViewController.swift // Warble // // Created by Monica Sun on 5/22/15. // Copyright (c) 2015 Monica Sun. All rights reserved. // import UIKit class ComposeTweetViewController: UIViewController, UITextViewDelegate { var user = User(dict: NSDictionary()) var replyToTweetId: Int? v...
mit
9bfa7099ad3e30dbc92987479054789a
44.125786
158
0.567387
6.059966
false
false
false
false
nathantannar4/NTComponents
NTComponents Demo/MaterialColors.swift
1
16556
// // MaterialColors.swift // NTComponents // // Created by Nathan Tannar on 4/15/17. // Copyright © 2017 Nathan Tannar. All rights reserved. // import NTComponents protocol PropertyLoopable { func allProperties() throws -> [String: Any] } extension PropertyLoopable { func allProperties() throws -> [Stri...
mit
5aff54066dab9596fee95c34a1ee9cb8
41.017766
58
0.635156
3.141366
false
false
false
false
Nukersson/Swift_iOS_Tutorial
FoodTracker/FoodTracker/MealViewController.swift
1
5449
// // MealViewController.swift // FoodTracker // // Created by nuke on 08.05.17. // Copyright © 2017 nuke. All rights reserved. // import UIKit import os.log class MealViewController: UIViewController, UITextFieldDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate { ...
gpl-3.0
721b4ed69c48a537cc2d7b0a81a69aa3
34.828947
111
0.667095
5.631851
false
false
false
false
kwkhaw/SwiftAnyPic
SwiftAnyPic/PAPAccountViewController.swift
1
13775
import UIKit import ParseUI class PAPAccountViewController: PAPPhotoTimelineViewController { var user: PFUser? private var headerView: UIView? // MARK:- Initialization init(user aUser: PFUser) { super.init(style: UITableViewStyle.Plain, className: nil) self.user = aUser } ...
cc0-1.0
d3f11ea96354c215d0e613dacaaf9af9
46.829861
202
0.667151
5.287908
false
false
false
false
LoveZYForever/HXWeiboPhotoPicker
Pods/HXPHPicker/Sources/HXPHPicker/Picker/View/Cell/PhotoPickerWeChatViewCell.swift
1
1070
// // PhotoPickerWeChatViewCell.swift // HXPHPicker // // Created by Slience on 2021/10/25. // import UIKit open class PhotoPickerWeChatViewCell: PhotoPickerSelectableViewCell { lazy var titleLb: UILabel = { let titleLb = UILabel() titleLb.textAlignment = .center titleLb.textColor ...
mit
78f0de5e206d4c2c4cac21aa6f3b22c3
26.435897
78
0.646729
4.798206
false
false
false
false
mcrollin/safecaster
safecaster/SCRLogParser.swift
1
5824
// // SCRParser.swift // safecaster // // Created by Marc Rollin on 3/23/15. // Copyright (c) 2015 safecast. All rights reserved. // import Foundation class SCRLogParser { /* We recieve two types of messages: one begins with BNRDD, the other one with BNXSTS. BNRDD contains radiation data, and BNXSTS cont...
cc0-1.0
c2d11eb1523a4e058a38cb6e035db61f
43.458015
180
0.625794
4.225689
false
false
false
false
noppoMan/aws-sdk-swift
Sources/Soto/Services/WorkMail/WorkMail_Paginator.swift
1
24532
//===----------------------------------------------------------------------===// // // 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
a2d23057c16fe268492e8b170256c705
41.813264
168
0.642222
5.107641
false
false
false
false
Finb/V2ex-Swift
View/LogoutTableViewCell.swift
1
1274
// // LogoutTableViewCell.swift // V2ex-Swift // // Created by huangfeng on 2/12/16. // Copyright © 2016 Fin. All rights reserved. // import UIKit class LogoutTableViewCell: UITableViewCell { override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIden...
mit
2493c32cebd28a98e377389447480998
30.825
86
0.64729
4.530249
false
false
false
false
Eliothu/WordPress-iOS
WordPress/WordPressTodayWidget/TodayViewController.swift
6
5119
import UIKit import NotificationCenter class TodayViewController: UIViewController, NCWidgetProviding { @IBOutlet var siteNameLabel: UILabel! @IBOutlet var visitorsCountLabel: UILabel! @IBOutlet var visitorsLabel: UILabel! @IBOutlet var viewsCountLabel: UILabel! @IBOutlet var viewsLabel: UILabel! ...
gpl-2.0
4181b785c5387d58e326049e15592ba1
45.126126
246
0.692518
5.637665
false
false
false
false
bradhilton/SwiftCollection
SwiftCollection/Collection/MultiCollection/MultiCollection.swift
1
4663
// // MultiCollection.swift // SwiftCollection // // Created by Bradley Hilton on 5/13/16. // Copyright © 2016 Brad Hilton. All rights reserved. // import AssociatedValues import OrderedObjectSet public protocol MultiCollection : CollectionSource, ParentInterface { var collections: OrderedObjectSet<Collection...
mit
6ab44be55a41a2cb25001f83c5440e8a
40.625
142
0.672244
4.986096
false
false
false
false
rstoner19/iOSStockProject
StockApp/Store.swift
1
721
// // Store.swift // StockApp // // Created by Rick on 7/4/16. // Copyright © 2016 Rick . All rights reserved. // import Foundation class Store: StoreProtocol { static let shared = Store() var symbols = Set<String>() private init() { if let storedItems = NSKeyedUnarchiver.unarchiveO...
mit
a3b3f788ad1bcefec0ae2ca602a1eb54
23.862069
123
0.644444
4.705882
false
false
false
false
jacobwhite/firefox-ios
Shared/AppConstants.swift
2
6510
/* 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 UIKit public enum AppBuildChannel: String { case release = "release" case beta = "beta" case d...
mpl-2.0
ec29ddb4383741867b94f8f86de99a94
28.457014
144
0.593856
4.562018
false
false
false
false
lhc70000/iina
iina/AssrtSubtitle.swift
2
8576
// // AssrtSubtitle.swift // iina // // Created by Collider LI on 26/2/2018. // Copyright © 2018 lhc. All rights reserved. // import Foundation import Just import PromiseKit fileprivate let subsystem = Logger.Subsystem(rawValue: "assrt") final class AssrtSubtitle: OnlineSubtitle { struct File { var url: U...
gpl-3.0
a6fb5c43914c4d4723ba183a34d2ad52
30.068841
124
0.599067
4.201372
false
false
false
false
proversity-org/edx-app-ios
Source/BulkDownloadHelper.swift
2
3187
// // BulkDownloadHelper.swift // edX // // Created by Muhammad Zeeshan Arif on 18/01/2018. // Copyright © 2018 edX. All rights reserved. // import Foundation enum BulkDownloadState { case new case downloading case partial case downloaded case none // if course has no `downloadable` videos. } ...
apache-2.0
8424cdba23731151840dfa31546e0292
25.114754
112
0.549278
4.462185
false
false
false
false
wordpress-mobile/WordPress-iOS
WordPress/Classes/Models/Blog+Media.swift
1
1377
import Foundation extension Blog { /// Get the number of items in a blog media library that are of a certain type. /// /// - Parameter mediaTypes: set of media type values to be considered in the counting. /// - Returns: Number of media assets matching the criteria. @objc(mediaLibraryCountForTypes...
gpl-2.0
47d1103ead4b56ad1ca88651e03c1da5
36.216216
108
0.557734
5.643443
false
false
false
false
pabloroca/PR2StudioSwift
Source/Networking/HTTPMethod.swift
1
441
// // HTTPMethod.swift // PR2StudioSwift // // Created by Pablo Roca on 07/02/2019. // Copyright © 2019 PR2Studio. All rights reserved. // import Foundation public enum HTTPMethod: String { case connect = "CONNECT" case delete = "DELETE" case get = "GET" case head = "HEAD" case options...
mit
fba3fdb7f2ce447a5a4aaabe92b16733
19.952381
52
0.595455
3.333333
false
false
false
false
realm/SwiftLint
Tests/SwiftLintFrameworkTests/TrailingWhitespaceRuleTests.swift
1
1604
@testable import SwiftLintFramework import XCTest class TrailingWhitespaceRuleTests: XCTestCase { func testWithIgnoresEmptyLinesEnabled() { // Perform additional tests with the ignores_empty_lines setting enabled. // The set of non-triggering examples is extended by a whitespace-indented empty line...
mit
115548a8d02d1c710c3f1e06cd65c200
49.125
96
0.688279
6.098859
false
true
false
false
narner/AudioKit
Examples/iOS/AnalogSynthX/AnalogSynthX/AudioSystem/GeneratorBank.swift
1
6151
// // GeneratorBank.swift // AnalogSynthX // // Created by Aurelius Prochazka on 6/25/16. // Copyright © 2016 AudioKit. All rights reserved. // import AudioKit class GeneratorBank: AKPolyphonicNode { func updateWaveform1() { vco1.index = (0...3).clamp(waveform1 + morph) } func updateWaveform...
mit
0bc111134b305046e7031d8999eb6c0d
28.854369
103
0.601789
4.450072
false
false
false
false
openHPI/xikolo-ios
iOS/SceneDelegate.swift
1
3612
// // Created for xikolo-ios under GPL-3.0 license. // Copyright © HPI. All rights reserved. // import Common import UIKit @available(iOS 13.0, *) class SceneDelegate: UIResponder, UIWindowSceneDelegate { private lazy var tabBarController: UITabBarController = { let tabBarController = XikoloTabBarContr...
gpl-3.0
3a9efb0b2365eb26336c1952c21e54cf
33.066038
155
0.702852
5.572531
false
false
false
false
hughbe/swift
test/IDE/print_ast_tc_decls.swift
8
52796
// RUN: %empty-directory(%t) // // Build swift modules this test depends on. // RUN: %target-swift-frontend -emit-module -o %t %S/Inputs/foo_swift_module.swift // // FIXME: BEGIN -enable-source-import hackaround // RUN: %target-swift-frontend(mock-sdk: -sdk %S/../Inputs/clang-importer-sdk -I %t) -emit-module -o %t %S...
apache-2.0
2813f80dba145be72c9ff39847ac23b6
37.706745
364
0.645863
3.654967
false
false
false
false