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
michael-r-may/CatsAndDogsiOS
CatsAndDogs/RFC3339DateFormatter.swift
1
866
// // Created by Developer on 2017/03/26. // // Note: this is copied straight from the backend service import Foundation public extension TimeZone { static var Polish = TimeZone(identifier: "Europe/Warsaw") static var California = TimeZone(identifier: "US/Pacific") } public extension Locale { static va...
mit
76998b0ce605d19c3e049fae484489ac
26.0625
64
0.676674
4.084906
false
false
false
false
barbosa/clappr-ios
Pod/Classes/Base/Options.swift
1
372
public typealias Options = [String : AnyObject] public let kPosterUrl = "posterUrl" public let kSourceUrl = "sourceUrl" public let kMediaControl = "mediaControl" public let kFullscreen = "fullscreen" public let kStartAt = "startAt" public let kAutoPlay = "autoplay" public let kPlaybackNotSupportedMessage = "playbackNo...
bsd-3-clause
32d495522bf08c107c026706b5587496
36.3
71
0.798387
4.179775
false
false
false
false
ZhaoBingDong/CYPhotosLibrary
CYPhotoKit/Controller/CYPhotoNavigationController.swift
1
4001
// // CYPhotoNavigationController.swift // CYPhotosKit // // Created by 董招兵 on 2017/8/7. // Copyright © 2017年 大兵布莱恩特. All rights reserved. // import UIKit /** * 相册选择器的导航控制器 */ public class CYPhotoNavigationController: UINavigationController { /** * 选取完照片的后的回调 */ public typealias PhotosCompl...
apache-2.0
4b08539cd599f7fb8969a74afd95a132
36.56
170
0.690096
5.103261
false
false
false
false
KaiCode2/swift-corelibs-foundation
TestFoundation/TestNSPropertyList.swift
2
2097
// 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/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the l...
apache-2.0
865c5f961598c2b88de1668a2e108467
30.772727
137
0.62041
4.71236
false
true
false
false
soapyigu/LeetCode_Swift
Sort/MergeSortedArray.swift
1
605
/** * Question Link: https://leetcode.com/problems/merge-sorted-array/ * Primary idea: Merge from tail to head to avoid override * Time Complexity: O(n), Space Complexity: O(1) */ class MergeSortedArray { func merge(_ nums1: inout [Int], _ m: Int, _ nums2: [Int], _ n: Int) { var i = m - 1, j = n - 1 ...
mit
f7a2f6be277beed62928666a5b39db1a
27.857143
74
0.431405
3.306011
false
false
false
false
Andruschenko/SeatTreat
SeatTreat/BackendAPI.swift
1
3692
// // BackendAPI.swift // SeatTreat // // Created by Jan Erik Herrmann on 17.10.15. // Copyright © 2015 André Kovac. All rights reserved. // import Foundation import Alamofire import SwiftyJSON class BackendAPI { class func loadAvailableSeats(completionHandler: (seatArray: [Seat]) -> Void){ print("run lo...
gpl-2.0
f34c3e549d181ca86c01b45a90a25d99
44
442
0.580488
4.836173
false
false
false
false
miracl/amcl
version3/swift/hash256.swift
2
5699
/* 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
5719d36b8399ce14748c06357e2c8bf6
29.31383
92
0.581155
2.655638
false
false
false
false
J3D1-WARR10R/WikiRaces
WKRKit/WKRKit/Players/Single/WKRPlayer.swift
2
1587
// // WKRPlayer.swift // WKRKit // // Created by Andrew Finke on 8/5/17. // Copyright © 2017 Andrew Finke. All rights reserved. // import WKRUIKit final public class WKRPlayer: Codable, Hashable { // MARK: - Properties [Must not break] internal let isHost: Bool internal var hasReceivedPointsForCurr...
mit
7658f5830470541c6cc0e436a4465b89
21.985507
80
0.647541
4.056266
false
false
false
false
drumnart/Papyrus
Papyrus/Reusable.swift
1
10207
// // Reusable.swift // Papyrus // // Created by Sergey Gorin on 31.03.17. // Copyright © 2017 Drumnart. All rights reserved. // public protocol Reusable: class { static var reuseIdentifier: String { get } } extension Reusable { public static var reuseIdentifier: String { return String(describing: self) ...
mit
6ac809e3232db4ac16001896684f2b9d
41.525
121
0.68009
5.23922
false
false
false
false
russbishop/swift
test/SILGen/expressions.swift
1
16388
// RUN: rm -rf %t // RUN: mkdir %t // RUN: echo "public var x = Int()" | %target-swift-frontend -module-name FooBar -emit-module -o %t - // RUN: %target-swift-frontend -parse-stdlib -emit-silgen %s -I%t -disable-access-control | FileCheck %s import Swift import FooBar struct SillyString : _BuiltinStringLiteralConvert...
apache-2.0
730468bdeeb7eb8f89bae074a605e363
27.395147
131
0.617188
3.177657
false
false
false
false
gerardogrisolini/Webretail
Sources/Webretail/Models/Amazon.swift
1
1735
// // Amazon.swift // Webretail // // Created by Gerardo Grisolini on 07/05/18. // import Foundation class Amazon : Codable { public var endpoint: String = "mws-eu.amazonservices.com" public var marketplaceId: String = "" public var sellerId: String = "" public var accessKey: String = "" p...
apache-2.0
6bb28d3b9694d0a4c5e4a57ab096ff9b
28.913793
88
0.537752
4.294554
false
false
false
false
andykkt/BFWControls
BFWControls/Modules/NibView/View/NibCellView.swift
1
2174
// // NibCellView.swift // // Created by Tom Brodhurst-Hill on 18/03/2016. // Copyright © 2016 BareFeetWare. Free to use and modify, without warranty. // import UIKit open class NibCellView: NibView, TextLabelProvider { // MARK: - IBOutlets @IBOutlet open weak var textLabel: UILabel? @IBOutle...
mit
3425d3e2a18f64ea0f160212151496b8
26.858974
101
0.583065
5.515228
false
false
false
false
Nana-Muthuswamy/AadhuEats
AadhuEats/Model/LogSummary.swift
1
2476
// // LogSummary.swift // AadhuEats // // Created by Nana on 10/26/17. // Copyright © 2017 Nana. All rights reserved. // import Foundation struct LogSummary: Exportable, DateFormatable { var date: Date var logs: Array<Log> var totalFeedVolume: Int { return logs.filter{$0.type != LogType.pumpS...
mit
67cb8308e20d9a92f3753f2b369cfe1f
29.182927
152
0.620202
3.807692
false
false
false
false
JGiola/swift-package-manager
Sources/Utility/Version.swift
1
8748
/* 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 http://swift.org/LICENSE.txt for license information See http://swift.org/CONTRIBUTORS.txt for Swift project au...
apache-2.0
4e8b10cb74d51ea1b79d484f7dc75516
33.305882
105
0.639118
4.93401
false
false
false
false
keyOfVv/KEYUI
Demo/ViewController.swift
1
3320
// // ViewController.swift // Demo // // Created by Ke Yang on 23/03/2017. // Copyright © 2017 com.keyofvv. All rights reserved. // import UIKit import KEYUI let margin = CGFloat(10.0) class ViewController: UIViewController, UITextFieldDelegate { lazy var clearNeverTextField: KEYAutoResizeTextField = { let t...
mit
9ff29ba7c3b326f837f9684e6a36ff09
37.149425
193
0.75113
4.082411
false
false
false
false
JyerZ/BeiDou-iOS
BeiDou/ApplicationViewController.swift
1
3882
// // ApplicationViewController.swift // BeiDou // // Created by Jyer on 2017/1/22. // Copyright © 2017年 zjyzbfxgxzh. All rights reserved. // import UIKit class ApplicationViewController: UITableViewController { private let applicationCell = "ApplicationCell" var titles: [[String:String]]! var co...
unlicense
79b820c15230df55dd607badfa8c644e
35.942857
137
0.668729
5.117414
false
false
false
false
benlangmuir/swift
test/stdlib/Strideable.swift
7
9253
//===--- Strideable.swift - Tests for strided iteration -------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2020 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
79b07a081469740ca6913af4a0f8d87f
31.928826
95
0.619475
3.031782
false
true
false
false
PokeMapCommunity/PokeMap-iOS
Pods/Permission/Source/PermissionTypes/Notifications.swift
1
2908
// // Notifications.swift // // Copyright (c) 2015-2016 Damien (http://delba.io) // // 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 ri...
mit
259c5ec6f406e7bddd63148a592989e2
44.4375
158
0.733838
5.486792
false
false
false
false
EasySwift/EasySwift
EasySwift_iOS/Core/EZPrintln.swift
2
496
// // EZPrintln.swift // EasySwift // // Created by YXJ on 16/7/3. // Copyright (c) 2016年 YXJ. All rights reserved. // import Foundation public var DEBUG = true public func EZPrintln<T>(_ message: T, fileName: String = #file, methodName: String = #function, lineNumber: Int = #line) { if DEBUG { let f...
apache-2.0
e28d5250ad3082858bd94d91cdb5aece
26.444444
123
0.647773
3.503546
false
false
false
false
L550312242/SinaWeiBo-Switf
weibo 1/Class/Model(全局模型)/CZStatus.swift
1
10459
import UIKit import SDWebImage class CZStatus: NSObject { /// 微博创建时间 var created_at: String? /// 微博ID var id: Int = 0 /// 微博信息内容 var text: String? /// 微博来源 var source: String? // 通过分析微博返回的数据 是一个数组,数组里面是一个字典["thumbnail_pic": url] /// 微博的配图 var pic_urls:...
apache-2.0
9d739c0e2e2957f079ef263df2775f8b
31.072202
189
0.428234
4.638642
false
false
false
false
eTilbudsavis/native-ios-eta-sdk
Sources/EventsTracker/LegacyEventsPool/EventsCache_v1.swift
1
7625
// // ┌────┬─┐ ┌─────┐ // │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐ // ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │ // └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘ // └─┘ // // Copyright (c) 2018 ShopGun. All rights reserved. import Foundation /// A class that handles the Caching of the events to disk class EventsCache_v1:...
mit
3ec1376adaa5771925cfcf0df56f866e
37.564767
181
0.554749
4.985265
false
false
false
false
BeezleLabs/HackerTracker-iOS
hackertracker/PongScene.swift
1
4063
// // PongScene.swift // hackertracker // // Created by Benjamin Humphries on 7/20/17. // Copyright © 2017 Beezle Labs. All rights reserved. // import SpriteKit class PongScene: SKScene, SKPhysicsContactDelegate { let xPos: CGFloat = 135.0 var left: SKSpriteNode? var right: SKSpriteNode? var skul...
gpl-2.0
8e9816d8d1fe640feba8dea3233ab2e0
29.088889
119
0.526588
4.174717
false
false
false
false
Wolox/wolmo-core-ios
WolmoCore/Extensions/Foundation/String.swift
1
7120
// // String.swift // WolmoCore // // Created by Guido Marucci Blas on 5/7/16. // Copyright © 2016 Wolox. All rights reserved. // import Foundation public extension String { /** Returns a localized representation of the string. - parameter bundle: Bundle were to search for localization. -...
mit
fd011ae053b9ae102ffc3691d1aaf9fa
33.726829
160
0.633235
4.781061
false
false
false
false
RemyDCF/tpg-offline
tpg offline/Routes/FavoriteRouteTableViewCell.swift
1
2583
// // FavoriteRouteTableViewCell.swift // tpg offline // // Created by Rémy Da Costa Faro on 24/09/2017. // Copyright © 2018 Rémy Da Costa Faro. All rights reserved. // import UIKit class FavoriteRouteTableViewCell: UITableViewCell, UITableViewDelegate, ...
mit
f8ef41f450c5107a04cb7453720051c6
30.851852
96
0.63062
4.708029
false
false
false
false
ztyjr888/WeChat
WeChat/Discover/ScanViewController.swift
1
13702
// // DiscoverScanViewController.swift // WeChat // // Created by Smile on 16/7/19. // Copyright © 2016年 smile.love.tao@gmail.com. All rights reserved. // import UIKit import AVFoundation //扫一扫功能,使用AVFoundation框架,需要实现AVCaptureMetadataOutputObjectsDelegate协议 class ScanViewController: UIViewController,AVCaptureMeta...
apache-2.0
e27c694447b47aa590b710a2030753f2
36.092219
183
0.621941
4.820599
false
false
false
false
Fenrikur/ef-app_ios
Eurofurence/Modules/Dealers/Presenter/DealersPresenter.swift
1
6218
import Foundation class DealersPresenter: DealersSceneDelegate, DealersViewModelDelegate, DealersSearchViewModelDelegate { private struct AllDealersBinder: DealersBinder { var binder: DealerGroupsBinder func bind(_ component: DealerGroupHeader, toDealerGroupAt index: Int) { binder.bi...
mit
f3abf29958505113f7e2cd8de5fffeca
34.129944
106
0.671116
5.444834
false
false
false
false
mitsuaki1229/BeaconDetection
BeaconDetection/Simulator/SimulatorView.swift
1
4540
// // SimulatorView.swift // BeaconDetection // // Created by Mitsuaki Ihara on 2017/08/01. // Copyright © 2017年 Mitsuaki Ihara. All rights reserved. // import SnapKit import UIKit class SimulatorView: UIView, CustomView { let backgroundScrollView = UIScrollView() private let contentView = UIView() ...
mit
def8d78708234a4b2e16fa396ff0df93
30.075342
91
0.623981
5.440048
false
false
false
false
kitasuke/SwiftProtobufSample
Client/Carthage/Checkouts/swift-protobuf/Sources/SwiftProtobuf/TextFormatEncodingVisitor.swift
1
20408
// Sources/SwiftProtobuf/TextFormatEncodingVisitor.swift - Text format encoding support // // Copyright (c) 2014 - 2016 Apple Inc. and the project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See LICENSE.txt for license information: // https://github.com/apple/swift-protobuf/blob/m...
mit
5c3afcea27d1cc192473f869b7736673
37.946565
135
0.666797
4.715342
false
false
false
false
hilen/TSWeChat
TSWeChat/Classes/Chat/ChatHelper/UIScrollView+ChatAdditions.swift
1
3566
// // UIScrollView+ChatAdditions.swift // TSWeChat // // Created by Hilen on 12/16/15. // Copyright © 2015 Hilen. All rights reserved. // import Foundation extension UIScrollView { fileprivate struct AssociatedKeys { static var kKeyScrollViewVerticalIndicator = "_verticalScrollIndicator" stati...
mit
a8d607a3bba336d4e378aba6974b767a
33.61165
178
0.647686
4.798116
false
false
false
false
KeithPiTsui/Pavers
Pavers/Sources/FRP/Guitar/Guitar.swift
2
3269
// // Guitar.swift // GuitarExample // // Created by Sabintsev, Arthur on 3/9/17. // Copyright © 2017 Arthur Ariel Sabintsev. All rights reserved. // import Foundation // MARK: - Guitar public struct Guitar { /// Regular expression pattern that will be used to evaluate a specific string. let pattern: Str...
mit
33fde33134c9a0c7199b0951cabf8009
35.311111
133
0.634027
4.501377
false
false
false
false
jay18001/brickkit-ios
Example/Source/Examples/Sticking/StackingFooterViewController.swift
1
2987
// // StackingFooterViewController.swift // BrickKit // // Created by Ruben Cagnie on 9/23/16. // Copyright © 2016 Wayfair LLC. All rights reserved. // import BrickKit private let StickySection = "Sticky Section" private let BuyButton = "BuyButton" private let BuySection = "BuySection" private let TotalLabel = "T...
apache-2.0
f23b9674f7f8c1ec00cfcbf8cdc95380
32.177778
238
0.681514
5.018487
false
false
false
false
Diuit/DUMessagingUIKit-iOS
DUMessagingUIKit/DUChatSettingViewController.swift
1
7612
// // DUChatSettingViewController.swift // DUMessagingUI // // Created by Pofat Diuit on 2016/5/30. // Copyright © 2016年 duolC. All rights reserved. // import UIKit import DUMessaging import DTTableViewManager // global constant public let DUTableViewCellReuseIdentifier = "DUTableViewCellReuseIdentifier" /** ...
mit
666a1110b1c1cdf86d8d16f6ff989c4a
41.988701
156
0.662768
4.986239
false
false
false
false
jasnig/DouYuTVMutate
DouYuTVMutate/DouYuTV/Live/Controller/AllListController.swift
1
3972
// // AllListController.swift // DouYuTVMutate // // Created by ZeroJ on 16/7/16. // Copyright © 2016年 ZeroJ. All rights reserved. // import UIKit class AllListController: BaseViewController { struct ConstantValue { static let sectionHeaderHeight = CGFloat(44.0) static let anchorCellHeigh...
mit
a0e63a5b800a897b8b491688404da732
29.896825
196
0.659132
5.325581
false
false
false
false
takecian/SwiftRoutes
Sources/SwiftRoutes.swift
1
4948
// // SwiftRoutes.swift // SwiftRoutes // // Created by FUJIKI TAKESHI on 2016/08/27. // Copyright © 2016年 takecian. All rights reserved. // import UIKit public typealias SwiftRoutesHandler = ((Dictionary<String, String>) -> Bool) let globalScheme = "SwiftRoutesGlobalScheme" let keyAbsoluteString = "absoluteStri...
mit
02eba1cb9dbf8f4083ccf755b60a0e8f
27.918129
184
0.603033
4.73659
false
false
false
false
haskellswift/swift-package-manager
Sources/Get/Fetcher.swift
2
3743
/* This source file is part of the Swift.org open source project Copyright 2015 - 2016 Apple Inc. and the Swift project authors Licensed under Apache License v2.0 with Runtime Library Exception See http://swift.org/LICENSE.txt for license information See http://swift.org/CONTRIBUTORS.txt for Swift project author...
apache-2.0
0df83f5d08dd9c6cd4cc8ab394eae1bb
35.676471
157
0.560011
5.375
false
false
false
false
chenzilu1990/Who
who/who/Classes/M/SBPlayer.swift
1
1201
// // SBPalyer.swift // who // // Created by chenzilu on 16/7/16. // Copyright © 2016年 chenzilu. All rights reserved. // import UIKit class SBPlayer: NSObject { var name : String? var word : String? var isWD : Bool? var isRead : Bool? init(name : String?, word : String?) { self.nam...
mit
418b5695ab284bf9389bc898f6ff07ed
23.958333
65
0.534224
3.374648
false
false
false
false
instacrate/Subber-api
Sources/App/Controllers/OrderController.swift
2
6482
// // OrderController.swift // subber-api // // Created by Hakon Hanesand on 11/15/16. // // import Foundation import HTTP import Vapor import Fluent // TODO : Change to how stripe does it by just having one parameter that specifies to and from enum OrderTimeRange: String, TypesafeOptionsParameter, QueryModifiabl...
mit
e48b35ac983404775f05058de27a3bbc
28.330317
149
0.579142
4.467264
false
false
false
false
fingerco/neural-net-swift-snake-2
NeuralNetwork/NeuralNet.swift
1
2930
// // NeuralNet.swift // NeuralNetwork // // Created by Cory Finger on 9/21/15. // Copyright © 2015 Cory Finger. All rights reserved. // import Foundation class NeuralNet { var inputLayer : NeuralNetLayer var hiddenLayer : NeuralNetLayer var outputLayer : NeuralNetLayer init(nNodesInput : Int...
apache-2.0
b78e3bea65231a618a48409859e8a09a
28.59596
93
0.627518
4.464939
false
false
false
false
mrdepth/Neocom
Legacy/Neocom/Neocom/AssetsSearchResultsPresenter.swift
2
2671
// // AssetsSearchResultsPresenter.swift // Neocom // // Created by Artem Shimanski on 11/8/18. // Copyright © 2018 Artem Shimanski. All rights reserved. // import Foundation import Futures import CloudData import TreeController class AssetsSearchResultsPresenter: TreePresenter { typealias View = AssetsSearchRes...
lgpl-2.1
d05e6d3f0acb46981a7dee79185c0f2a
30.785714
200
0.720225
3.979136
false
false
false
false
kusl/swift
validation-test/compiler_crashers_fixed/1141-swift-parser-parseexprcallsuffix.swift
12
863
// RUN: not %target-swift-frontend %s -parse // Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing func j<f: l: e -> e = { { l) { m } } protocol k { } class e: k{ class func j protocol d : b { func b f...
apache-2.0
1160260c11cae01397e77f74773f9788
12.698413
87
0.507532
2.229974
false
false
false
false
BrobotDubstep/BurningNut
BurningNut/BurningNut/Scenes/GameSceneLocal.swift
1
15721
// // GameScene.swift // BurningNut // // Created by Tim Olbrich on 21.09.17. // Copyright © 2017 Tim Olbrich. All rights reserved. // import SpriteKit import GameplayKit class GameSceneLocal: SKScene, SKPhysicsContactDelegate { var bombCounter = 0 var rightPointLbl = SKLabelNode() var leftPoint...
mit
6d3a381bba5aeff230b9f0f29d1e0a2b
38.898477
168
0.588422
4.914036
false
false
false
false
joerocca/GitHawk
Classes/Models/Authorization.swift
1
4872
import Foundation final class Authorization: NSObject, NSCoding { enum Keys { static let note = "note" static let updated_at = "updated_at" static let id = "id" static let app = "app" static let token = "token" static let scopes = "scopes" static let created_at = "created_at" static l...
mit
0f95fd9b2e6127aedb797303c2ef110c
37.0625
116
0.66523
3.622305
false
false
false
false
Aquaware/LaSwift
iOS/LaSwift/RMatrix.swift
1
13074
// // RMatrix.swift // LaSwift // // Created by Ikuo Kudo on March,16,2016 // Copyright © 2016 Aquaware. All rights reserved. // import Accelerate public let EPS: Double = 1e-50 public class RMatrix { public var la: la_object_t! = nil private var rows_: Int = 0 private var cols_: Int = 0 init() ...
apache-2.0
673d12b5ae5b68886f06e2075ced2a26
33.13577
122
0.446187
4.233484
false
false
false
false
spinach/GDImage
Source/GDImage/UIImageView+GDImage.swift
1
1197
// // UIImageView+GDImage.swift // GDImage // // Created by Guy Daher on 10/23/16. // Copyright © 2016 guydaher. All rights reserved. // import Foundation private var gdImageAssociationKey: UInt8 = 0 extension UIImageView { var gdImage: GDImage? { get { return objc_getAssociatedObjec...
mit
a775175e7e9713a58f80ec521c7fd228
31.324324
124
0.67893
4.226148
false
false
false
false
vazexqi/ScrollViewExample
ScrollViewExample/ViewController.swift
1
4186
// // ViewController.swift // ScrollViewExample // // Created by Nick Chen on 9/19/15. // Copyright © 2015 Nick Chen. All rights reserved. // import UIKit class ViewController: UIViewController, UITextFieldDelegate { @IBOutlet weak var scrollView: UIScrollView! @IBOutlet weak var contentView: UIView! ...
bsd-3-clause
9ec1385f768beaade61a8d4dff28ab84
33.875
189
0.67503
5.725034
false
false
false
false
mparrish91/gifRecipes
application/SearchController.swift
1
9923
// // SearchController.swift // reddift // // Created by sonson on 2016/03/23. // Copyright © 2016年 sonson. All rights reserved. // import reddift import UIKit let SearchControllerDidOpenSubredditName = Notification.Name(rawValue: "SearchControllerDidOpenSubredditName") let SearchControllerDidSearchSubredditName ...
mit
e710b104a8668ba7f122d54024ea5913
36.718631
182
0.579335
5.204617
false
false
false
false
andrewBatutin/tripmemories
TravelMemories/TravelMemories/WikiLocationSearchEngine.swift
1
933
// // WikiLocationSearchEngine.swift // TravelMemories // // Created by Batutin, Andriy on 1/5/15. // Copyright (c) 2015 Batutin, Andriy. All rights reserved. // import Foundation public class WikiLocationSearchEngine : NSObject{ public func makeRequestToWikiByLocation(location:String) -> NSDictionary{ ...
mit
f70d46b05ac04f983a3ebfe35db23430
36.36
163
0.722401
4.962766
false
false
false
false
stephentyrone/swift
test/Incremental/PrivateDependencies/reference-dependencies-members-fine.swift
5
3794
// REQUIRES: shell // Also uses awk: // XFAIL OS=windows // RUN: %empty-directory(%t) // RUN: cp %s %t/main.swift // Need -fine-grained-dependency-include-intrafile to be invarient wrt type-body-fingerprints enabled/disabled // RUN: %target-swift-frontend -fine-grained-dependency-include-intrafile -typecheck -primary...
apache-2.0
531ed023b82a1e407d96baa3a7e68421
55.626866
262
0.75224
3.658631
false
false
false
false
radvansky-tomas/NutriFacts
nutri-facts/nutri-facts/Helpers/Theme.swift
1
1826
// // Theme.swift // nutri-facts // Theme file -> global colors // Created by Tomas Radvansky on 23/05/2015. // Copyright (c) 2015 Tomas Radvansky. All rights reserved. // import UIKit let AppBaseColor:UIColor = UIColor(red: 74.0/255, green: 217.0/255, blue: 242.0/255, alpha: 1.0) let ControlBcgSolidColor:UIColor...
gpl-2.0
ceb2bed68b5183c4e0165dd2344c7920
56.0625
205
0.713034
2.705185
false
false
false
false
swipesight/BWWalkthrough
BWWalkthrough/BWWalkthroughViewController.swift
1
12564
/* The MIT License (MIT) Copyright (c) 2015 Yari D'areglia @bitwaker 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, copy, mod...
mit
3e3de5f2589a7719738d71302ee306dc
40.88
211
0.655922
5.29903
false
false
false
false
lkzhao/Hero
Sources/HeroPlugin.swift
1
6067
// The MIT License (MIT) // // Copyright (c) 2016 Luke Zhao <me@lkzhao.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 without restriction, including without limitation the rights ...
mit
9ec1b374b41c7b3d6a0d71b682b6a721
33.668571
222
0.709906
4.624238
false
false
false
false
shajrawi/swift
test/Sema/implementation-only-import-library-evolution.swift
1
5425
// RUN: %empty-directory(%t) // RUN: %target-swift-frontend -emit-module -o %t/NormalLibrary.swiftmodule %S/Inputs/implementation-only-import-in-decls-public-helper.swift // RUN: %target-swift-frontend -emit-module -o %t/BADLibrary.swiftmodule %S/Inputs/implementation-only-import-in-decls-helper.swift -I %t // RUN: %t...
apache-2.0
4a671f5b329a539d253496e202c4bf6c
68.551282
188
0.764977
4.144385
false
false
false
false
evermeer/EVWordPressAPI
EVWordPressAPI/EVWordPressAPI_Comments.swift
1
3717
// // EVWordpressAPI_Comments.swift // EVWordPressAPI // // Created by Edwin Vermeer on 9/21/15. // Copyright © 2015 evict. All rights reserved. // import Alamofire import AlamofireOauth2 import AlamofireJsonToObjects import EVReflection public extension EVWordPressAPI { // MARK: - Comments /**...
bsd-3-clause
2e779e7c37b9e54cf8c1efeda7a6571d
43.238095
137
0.717438
4.520681
false
false
false
false
hirohisa/ImageLoaderSwift
Example/ImageLoaderExample/BlockingMainThreadPerfomanceTestViewController.swift
1
2260
// // BlockingMainThreadPerfomanceTestViewController.swift // ImageLoaderExample // // Created by Hirohisa Kawasaki on 11/23/15. // Copyright © 2015 Hirohisa Kawasaki. All rights reserved. // import UIKit import ImageLoader class BlockingMainThreadPerfomanceTestViewController: CollectionViewController { var ...
mit
520b4a902611d563edb4751215ef984b
31.185714
135
0.62095
5.085779
false
false
false
false
DumbDuck/VecodeKit
iOS_Mac/QuartzPicture/swift/ext/VKQuartzPictureImage.swift
1
2735
import Foundation #if os(iOS) import UIKit private func createImageWithSize(_ size: CGSize, drawer: (CGContext) -> Void) -> UIImage { UIGraphicsBeginImageContextWithOptions(size, false, UIScreen.main.scale) defer { UIGraphicsEndImageContext() } let context = UIGrap...
mit
4672c782b84f2258e346d2e26f35a3dc
35.466667
120
0.610969
4.781469
false
false
false
false
practicalswift/swift
test/SILGen/availability_query.swift
15
3592
// RUN: %target-swift-emit-sil %s -target x86_64-apple-macosx10.50 -verify // RUN: %target-swift-emit-silgen %s -target x86_64-apple-macosx10.50 | %FileCheck %s // REQUIRES: OS=macosx // CHECK-LABEL: sil{{.+}}@main{{.*}} { // CHECK: [[MAJOR:%.*]] = integer_literal $Builtin.Word, 10 // CHECK: [[MINOR:%.*]] = integer_...
apache-2.0
b79947be0b811b0edd0a59858448b058
38.472527
170
0.640869
3.417697
false
false
false
false
blockchain/My-Wallet-V3-iOS
Modules/Platform/Sources/PlatformUIKit/Components/SelectionScreen/TableHeaderView/SelectionScreenTableHeaderView.swift
1
1764
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import RxSwift public final class SelectionScreenTableHeaderView: UIView { private static let verticalPadding: CGFloat = 32.0 private static let horizontalPadding: CGFloat = 64.0 private var disposeBag = DisposeBag() // MARK: - Public P...
lgpl-3.0
1a35e7bd707715739067c1c8ba5e69c9
24.926471
108
0.604651
5.185294
false
false
false
false
fitpay/fitpay-ios-sdk
FitpaySDK/Notifications/EventStream/UserEventStreamManager.swift
1
1439
import Foundation public class UserEventStreamManager { public static let sharedInstance = UserEventStreamManager() public var client: RestClient? private var userEventStreams: [String: UserEventStream] = [:] public typealias userEventStreamHandler = (_ event: StreamEvent) -> Void pu...
mit
48edb8fdb80c013a6608afd712963f5d
38.972222
152
0.632384
5.290441
false
true
false
false
faimin/ZDOpenSourceDemo
ZDOpenSourceSwiftDemo/ZDOpenSourceSwiftDemo/ViewModels/ZDMovieViewModel.swift
1
1193
// // ZDMovieViewModel.swift // ZDOpenSourceSwiftDemo // // Created by Zero.D.Saber on 2018/6/14. // Copyright © 2018年 Zero.D.Saber. All rights reserved. // import Foundation class ZDMovieViewModel { // 没有自定义初始化的类,其属性需要设置为option var dataTask: URLSessionDataTask? func fetchMovieList(completaion: @...
mit
b4931f9b2a89111dd87a604c2c3af043
30.135135
143
0.571181
4.55336
false
false
false
false
zmian/xcore.swift
Sources/Xcore/Cocoa/Components/AnimationRunLoop.swift
1
1707
// // Xcore // Copyright © 2019 Xcore // MIT license, see LICENSE file for details // import UIKit /// A class to report in-flight animation progress. /// /// `UIView.animate(withDuration:)` doesn't provide any way for us to observe /// "in-flight" animation value for the animated properties. Without "in-flight" /// ...
mit
abf87863978619df8bcce458a3d11cc9
27.915254
80
0.629543
4.805634
false
false
false
false
ldt25290/MyInstaMap
ThirdParty/AlamofireImage/Tests/ImageDownloaderTests.swift
4
36922
// // ImageDownloaderTests.swift // // Copyright (c) 2015-2016 Alamofire Software Foundation (http://alamofire.org/) // // 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 restric...
mit
48c6bd176987a559803396451f7dc29b
35.811565
120
0.654434
4.997564
false
false
false
false
devxoul/Drrrible
Drrrible/Sources/Models/Comment.swift
1
479
// // Comment.swift // Drrrible // // Created by Suyeol Jeon on 21/03/2017. // Copyright © 2017 Suyeol Jeon. All rights reserved. // import Foundation struct Comment: ModelType { enum Event { } var id: Int var body: String var createdAt: Date var likeCount: Int var user: User enum CodingKeys: St...
mit
de600db84231061f086e7f9cded2ff7e
16.071429
54
0.638075
3.489051
false
false
false
false
Alexiuce/Tip-for-day
iFeiBo/Pods/Kingfisher/Sources/ImageView+Kingfisher.swift
8
14753
// // ImageView+Kingfisher.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 S...
mit
c68a049bf017b8bd9c4de53e402d6779
44.393846
173
0.598861
5.584027
false
false
false
false
LiulietLee/Pick-Color
Pick Color/MKActivityIndicator.swift
1
4540
// // MKProgressView.swift // Cityflo // // Created by Rahul Iyer on 03/11/15. // Copyright © 2015 Cityflo. All rights reserved. // import UIKit @IBDesignable open class MKActivityIndicator: UIView { fileprivate let drawableLayer = CAShapeLayer() fileprivate var animating = false @IBInspectable open...
mit
7bafcf566bc2333b6edf86eb338c5b17
30.303448
107
0.649703
4.891164
false
false
false
false
bitboylabs/selluv-ios
selluv-ios/selluv-ios/Classes/Controller/UI/Seller/views/SLVUserProductCell.swift
1
6111
// // SLVUserProductCell.swift // selluv-ios // // Created by 조백근 on 2017. 1. 31.. // Copyright © 2017년 BitBoy Labs. All rights reserved. // import Foundation import UIKit class SLVUserProductCell: UICollectionViewCell, NTTansitionWaterfallGridViewProtocol { static let infoHeight:CGFloat = 95.0 stati...
mit
d9f6c98f0f1f64dd936d8ab57774a215
29.502513
151
0.560132
4.469809
false
false
false
false
rocketmade/rockauth-ios
RockauthiOS/Providers/InstagramProvider.swift
1
6333
// // InstagramProvider.swift // Pods // // Created by Daniel Gubler on 10/29/15. // // import UIKit public class InstagramProvider :SocialProvider, IGViewControllerDelegate { public static var sharedProvider: SocialProvider? public var name: String = "instagram" public var secret :String? public var...
mit
ec07e22ff612bb8c478c78ce31780e08
34.58427
233
0.652455
4.909302
false
false
false
false
tkester/swift-algorithm-club
Rabin-Karp/Rabin-Karp.playground/Contents.swift
1
2821
//: Taking our rabin-karp algorithm for a walk // last checked with Xcode 9.0b4 #if swift(>=4.0) print("Hello, Swift 4!") #endif import UIKit struct Constants { static let hashMultiplier = 69069 } precedencegroup PowerPrecedence { higherThan: MultiplicationPrecedence } infix operator ** : PowerPrecedence func *...
mit
8b60edb08ef2747a6b863aca5a7cbee4
26.930693
94
0.637717
3.88033
false
false
false
false
yisimeng/YSMFactory-swift
YSMFactory-swift/Vendor/YSMCustomFlowLayout/YSMCardFlowLayout.swift
1
1059
// // YSMCardFlowLayout.swift // YSMFactory-swift // // Created by 忆思梦 on 2016/12/20. // Copyright © 2016年 忆思梦. All rights reserved. // import UIKit class YSMCardFlowLayout: UICollectionViewFlowLayout { override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? { ...
mit
8f23c7e6d568cff666eb50f9879ce228
28
104
0.664751
4.578947
false
false
false
false
CatchChat/Yep
Yep/Extensions/UIImageView+Yep.swift
1
7593
// // UIImageView+Yep.swift // Yep // // Created by nixzhu on 15/12/3. // Copyright © 2015年 Catch Inc. All rights reserved. // import UIKit import CoreLocation import YepKit // MARK: - ActivityIndicator private var activityIndicatorAssociatedKey: Void? private var showActivityIndicatorWhenLoadingAssociatedKey: V...
mit
4fa61da3670f7442459af50e69574346
33.035874
179
0.675889
5.511983
false
false
false
false
hweetty/PE-Swift
Solutions/P57.swift
1
376
// // Project Euler Solutions // Problem 56: Powerful digit sum // Jerry Yu // import Foundation func p57() { var num = BigInt(n: 3, precision:390), den = BigInt(n: 2, precision:390), count = 0 for _ in 2...1000 { let newNum = num + den*2 den += num num = newNum if num.numDigits > den.numDigits { count++ }...
gpl-2.0
5b1f0ad951b186b7ee76e52cd04b8172
16.904762
84
0.611702
2.764706
false
false
false
false
RobertGummesson/BuildTimeAnalyzer-for-Xcode
BuildTimeAnalyzer/DirectoryMonitor.swift
1
2480
// // DirectoryMonitor.swift // BuildTimeAnalyzer // import Foundation protocol DirectoryMonitorDelegate: class { func directoryMonitorDidObserveChange(_ directoryMonitor: DirectoryMonitor, isDerivedData: Bool) } class DirectoryMonitor { var dispatchQueue: DispatchQueue weak var delegate: Director...
mit
5633b9f215adf7c68409bb4209b60e61
30
137
0.62379
5.030426
false
false
false
false
debugsquad/nubecero
nubecero/View/Main/VSpinner.swift
1
1259
import UIKit class VSpinner:UIImageView { private let kAnimationDuration:TimeInterval = 2 init() { super.init(frame:CGRect.zero) let images:[UIImage] = [ #imageLiteral(resourceName: "assetLoader0"), #imageLiteral(resourceName: "assetLoader1"), ...
mit
22753c535f751eef2ad7a6dfb962a6fe
31.282051
57
0.621128
5.570796
false
false
false
false
dilizarov/realm-cocoa
RealmSwift-swift2.0/List.swift
31
15534
//////////////////////////////////////////////////////////////////////////// // // Copyright 2014 Realm Inc. // // 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/li...
apache-2.0
65036660b8ed49c18cc5eea7953a4aac
35.636792
139
0.674456
4.656475
false
false
false
false
Quick/Quick
Sources/Quick/ExampleGroup.swift
2
3175
import Foundation /** Example groups are logical groupings of examples, defined with the `describe` and `context` functions. Example groups can share setup and teardown code. */ final public class ExampleGroup: NSObject { weak internal var parent: ExampleGroup? internal let hooks = ExampleHooks() ...
apache-2.0
2530c7d96bd67ca89c9fc0c82659ce4e
28.95283
102
0.640315
5.071885
false
false
false
false
niunaruto/DeDaoAppSwift
DeDaoSwift/DeDaoSwift/Home/View/DDHomeHotAndGustCell.swift
1
3074
// // DDHomeHotAndGustCell.swift // DeDaoSwift // // Created by niuting on 2017/3/15. // Copyright © 2017年 niuNaruto. All rights reserved. // import UIKit class DDHomeHotAndGustCell: DDBaseTableViewCell { //dataMiningAduioOrBook override func setCellsViewModel(_ model: Any?) { if let modelT = model as...
mit
c153650d80313f44def7803e19aa618b
27.174312
99
0.560729
4.631976
false
false
false
false
kvvzr/Twinkrun-iOS
Twinkrun/Controllers/PlayerSelectViewController.swift
2
6560
// // PlayerSelectViewController.swift // Twinkrun // // Created by Kawazure on 2014/10/14. // Copyright (c) 2014年 Twinkrun. All rights reserved. // import UIKit import CoreBluetooth class PlayerSelectViewController: UITableViewController, CBCentralManagerDelegate, CBPeripheralManagerDelegate { @IBOutlet wea...
mit
acdde95cfa8323d222e3ce52ff6dc987
34.84153
157
0.622751
5.824156
false
false
false
false
eyaldar/CameraEngine
CameraEngineExample/CameraEngineExample/ViewController.swift
1
7605
// // ViewController.swift // CameraEngineExample // // Created by Remi Robert on 16/09/16. // Copyright © 2016 Remi Robert. All rights reserved. // import UIKit import CameraEngine enum ModeCapture { case Photo case Video } class ViewController: UIViewController { private var cameraEngine = Cam...
mit
0649fc062b789d350981fe6a08667661
44.807229
151
0.604682
4.953746
false
false
false
false
zybug/firefox-ios
Client/Frontend/Widgets/TabsButton.swift
7
4619
/* 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 SnapKit struct TabsButtonUX { static let TitleColor: UIColor = UIColor.blackColor() ...
mpl-2.0
e0dba5bd6113a688d3d83ab7c1c28020
32.478261
86
0.67179
5.37093
false
false
false
false
whiteshadow-gr/HatForIOS
HAT/Objects/External Apps/HATApplicationsSetup.swift
1
1616
// /** * Copyright (C) 2018 HAT Data Exchange Ltd * * SPDX-License-Identifier: MPL2 * * This file is part of the Hub of All Things project (HAT). * * 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 ...
mpl-2.0
02a5fcd0ea73576d7b9233f650920e63
30.686275
114
0.649134
4.186528
false
false
false
false
rene-dohan/CS-IOS
Renetik/Renetik/Classes/TableController/CSTablePagerController+CSJsonData.swift
1
1023
// // Created by Rene Dohan on 1/9/20. // import Foundation import RenetikObjc //public extension CSTablePagerController where Row: CSJsonObject, Data: CSListServerJsonData<Row> { // @discardableResult // public func construct(by controller: CSTableController<Row, Data>, // operation: @...
mit
da879b54f65d7bdf9e1d8693bb1f294b
35.571429
100
0.627566
4.011765
false
false
false
false
jonnyleeharris/ento
Ento/entoTests/Tests.swift
1
5249
// // Created by Jonathan Harris on 29/06/2015. // Copyright © 2015 Jonathan Harris. All rights reserved. // import XCTest class Tests: XCTestCase { // Tests need work. // Need separating into separate tests etc. override func setUp() { super.setUp() // Put setup code here. This metho...
mit
27e77c14c11f80930cdc0c022e23867d
23.754717
111
0.667302
3.77554
false
true
false
false
hejunbinlan/swiftmi-app
swiftmi/swiftmi/SwiftCodeController.swift
4
8600
// // SwiftCodeController.swift // swiftmi // // Created by yangyin on 15/4/1. // Copyright (c) 2015年 swiftmi. All rights reserved. // import UIKit import Alamofire import SwiftyJSON import Kingfisher let reuseIdentifier = "CodeCell" class SwiftCodeController: UICollectionViewController,UICollectionViewDelegateF...
mit
c7ca37652b92fac329c63e0fba6a5bea
29.464539
185
0.578463
6.118234
false
false
false
false
sharath-cliqz/browser-ios
Client/Application/WebServer.swift
2
3493
/* 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 GCDWebServers class WebServer { static let WebServerSharedInstance = WebServer() ...
mpl-2.0
846292797b40008a59d07d68f7c6bb99
44.960526
171
0.679072
4.694892
false
false
false
false
joostholslag/BNRiOS
iOSProgramming6ed/15 - Camera/Solutions/Homepwner/Homepwner/DetailViewController.swift
1
3767
// // Copyright © 2015 Big Nerd Ranch // import UIKit class DetailViewController: UIViewController, UITextFieldDelegate, UINavigationControllerDelegate, UIImagePickerControllerDelegate { @IBOutlet var nameField: UITextField! @IBOutlet var serialNumberField: UITextField! @IBOutlet var valueField: UIT...
gpl-3.0
be2ed94ee26fc46f332cad412604b9d2
31.465517
132
0.612055
5.776074
false
false
false
false
wordpress-mobile/WordPress-iOS
WordPress/Classes/ViewRelated/Reader/ReaderPostCellActions.swift
1
7940
/// Action commands in Reader cells class ReaderPostCellActions: NSObject, ReaderPostCellDelegate { private let context: NSManagedObjectContext private weak var origin: UIViewController? private let topic: ReaderAbstractTopic? private var followCommentsService: FollowCommentsService? var imageReque...
gpl-2.0
f998db2c5fd1fd5b1d7117f173b68a62
34.446429
138
0.65063
5.343203
false
false
false
false
coderQuanjun/PigTV
GYJTV/GYJTV/Classes/Rank/ViewModel/WeeklyRankViewModel.swift
1
1849
// // WeeklyRankViewModel.swift // GYJTV // // Created by zcm_iOS on 2017/6/20. // Copyright © 2017年 Quanjun. All rights reserved. // import UIKit class WeeklyRankViewModel { lazy var weeklyArray : [[WeeklyModel]] = [[WeeklyModel]]() } extension WeeklyRankViewModel{ func loadWeeklyRequestData(_ rankType...
mit
a047be69493905929d93fd168b213f07
34.96
177
0.586763
3.603206
false
false
false
false
kstaring/swift
stdlib/public/core/Sequence.swift
1
54871
//===----------------------------------------------------------------------===// // // 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
20df8b403658d5b35f60bb45f6acf2f9
36.789945
149
0.632629
4.286462
false
false
false
false
iCodeForever/ifanr
ifanr/ifanr/Views/NewsFlashView/NewsFlashTableViewCell.swift
1
5728
// // NewsFlashTableViewCell.swift // ifanr // // Created by sys on 16/6/30. // Copyright © 2016年 ifanrOrg. All rights reserved. // import UIKit class NewsFlashTableViewCell: UITableViewCell, Reusable { //MARK:-----init----- override init(style: UITableViewCellStyle, reuseIdentifier: String?) { ...
mit
7ba3448ed6ce3ded471295ea455960bb
36.516556
154
0.607237
4.813084
false
false
false
false
Cristian-A/tigress.cli
Tigress/Library/Tigress.swift
1
5350
// + -------------------------------------- + // | Tigress.swift | // | | // | Class Tigress | // | | // | Created by Cristian A. | // | Copyright © cr. All rights reserved. ...
mit
7d7d8dcecfbdae171adc70251987be9b
22.659292
69
0.539555
2.928258
false
false
false
false
MobileToolkit/Tesseract
Tesseract/RestfulClient+PATCH.swift
2
2114
// // RestfulClient+PATCH.swift // Tesseract // // Created by Sebastian Owodzin on 08/09/2015. // Copyright © 2015 mobiletoolkit.org. All rights reserved. // import Foundation extension RestfulClient { public func PATCH<T where T: RestfulCollection, T: RestfulCollectionObject>(objectType: T.Type, objectI...
mit
ee713ba2839b0bb2c2cac7b1c9530678
41.26
223
0.572646
5.37659
false
false
false
false
brentdax/swift
test/stdlib/Metal.swift
3
11710
// RUN: %empty-directory(%t) // RUN: %target-build-swift %s -o %t/a.out4 -swift-version 4 && %target-codesign %t/a.out4 && %target-run %t/a.out4 // REQUIRES: objc_interop // UNSUPPORTED: OS=watchos // REQUIRES: executable_test import StdlibUnittest import Metal var MetalTests = TestSuite("Metal") if #available(OSX...
apache-2.0
1f065280c4ff22bb4439e7efe3635470
34.592705
196
0.667378
4.450779
false
true
false
false
badoo/Chatto
ChattoAdditions/Tests/Chat Items/BaseMessage/BaseMessagePresenterTests.swift
1
5039
/* 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
5c50e6596aba0b1f0c78744229d95b49
55.617978
238
0.789045
5.567956
false
true
false
false
noppoMan/aws-sdk-swift
CodeGenerator/Sources/CodeGenerator/Models/Paginator.swift
1
3575
//===----------------------------------------------------------------------===// // // 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
3e535b4afd901ad76bfaa9c25169c6df
36.239583
127
0.566713
4.654948
false
false
false
false
vector-im/vector-ios
Riot/Modules/Threads/ThreadList/ThreadListViewController.swift
1
14920
// File created from ScreenTemplate // $ createScreen.sh Threads/ThreadList ThreadList /* Copyright 2021 New Vector Ltd 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/...
apache-2.0
0f47892235b8eea93bde8ce20144c3b6
38.786667
137
0.619303
5.965614
false
false
false
false
RylynnLai/V2EX_sf
V2EXData/RLNodesHelper.swift
1
1566
// // RLNodesHelper.swift // V2EX // // Created by LLZ on 16/5/13. // Copyright © 2016年 LLZ. All rights reserved. // import Foundation import Alamofire class RLNodesHelper: NSObject { static let shareNodesHelper = RLNodesHelper()//单例 private override init() {}//防止外部用init()或者()来初始化这个单例 func nodeWi...
mit
9b85ce9006686c97961df89c3d730f36
32.111111
96
0.580255
4.315942
false
false
false
false
honghaoz/CrackingTheCodingInterview
Swift/LeetCode/Two Pointers/244_Shortest Word Distance II.swift
1
2289
// 244_Shortest Word Distance II // https://leetcode.com/problems/shortest-word-distance-ii/ // // Created by Honghao Zhang on 10/18/19. // Copyright © 2019 Honghaoz. All rights reserved. // // Description: // Design a class which receives a list of words in the constructor, and implements a method that takes two words...
mit
25d1ee1ecc95a0ea5e31d2a5212ae03e
28
275
0.630268
3.400651
false
true
false
false
emilletfr/domo-server-vapor
Sources/App/Model/IndoorTempService.swift
2
1312
// // IndoorTempManager.swift // VaporApp // // Created by Eric on 26/09/2016. // // import Dispatch import RxSwift final class IndoorTempService : IndoorTempServicable { let temperatureObserver = PublishSubject<Double>() let humidityObserver = PublishSubject<Int>() let httpClient : HttpClientable ...
mit
4774d0c6b4c862ea4f34a6691583ec46
30.238095
140
0.655488
4.138801
false
false
false
false
Chantalisima/Spirometry-app
EspiroGame/InstruccionViewController.swift
1
2343
// // InstruccionViewController.swift // BLEgame5 // // Created by Chantal de Leste on 1/4/17. // Copyright © 2017 Universidad de Sevilla. All rights reserved. // import UIKit import CoreBluetooth class InstruccionViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, CBPeripheralDelegate {...
apache-2.0
ac84057ebf7d30b19010e1dab3d4cf66
28.64557
222
0.625107
5.334852
false
true
false
false
shridharmalimca/iOSDev
iOS/Components/ShoppingCart/ShoppingCart/AppDelegate.swift
2
4594
// // AppDelegate.swift // ShoppingCart // // Created by Shridhar Mali on 12/26/16. // Copyright © 2016 TIS. All rights reserved. // import UIKit import CoreData @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplicatio...
apache-2.0
e44553e63c2a57e0b6c154cb17404f00
48.387097
285
0.686044
5.880922
false
false
false
false
ramki1979/OAuthSDK
OAuthSDK/OAuth2.swift
1
8688
// // OAuth2.swift // OAuthSDK // // Created by RamaKrishna Mallireddy on 18/04/15. // Copyright (c) 2015 VUContacts. All rights reserved. // import UIKit public class OAuth2: OAuthClient { public override init(config: [String : String]) { super.init(config: config) if keychainHelper.chec...
mit
d772ebe07bcdaf97c4e17df0bd4d32e8
32.548263
126
0.530502
5.265455
false
false
false
false