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
HassanEskandari/Eureka
Source/Rows/PickerInlineRow.swift
6
3213
// PickerInlineRow.swift // Eureka ( https://github.com/xmartlabs/Eureka ) // // Copyright (c) 2016 Xmartlabs SRL ( 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 S...
mit
6cbc6de280dcbf079687c4a0e3664cfb
33.548387
120
0.687208
4.767062
false
false
false
false
jhwayne/Brew
DNApp/Spring/SpringTextView.swift
1
1639
// // SpringTextView.swift // SpringApp // // Created by James Tang on 15/1/15. // Copyright (c) 2015 Meng To. All rights reserved. // import UIKit public class SpringTextView: UITextView, Springable { @IBInspectable public var autostart: Bool = false @IBInspectable public var autohide: Bool = false @...
mit
4f6988503ecd3d19ba02eaa66b948101
27.77193
53
0.670531
4.552778
false
false
false
false
pixyzehn/SnowFalling
SnowFalling/SnowFallingView.swift
1
4294
// // SnowFallingView.swift // SnowFalling // // Created by pixyzehn on 2/11/15. // Copyright (c) 2015 pixyzehn. All rights reserved. // import UIKit public let kDefaultFlakeFileName = "snowflake" public let kDefaultFlakesCount = 200 public let kDefaultFlakeWidth: Float = 4...
mit
b4b7291c8ac5f4698784eb15844f3d0b
35.700855
119
0.615044
4.57295
false
false
false
false
LoopKit/LoopKit
LoopKitUI/Views/ChartTableViewCell.swift
1
1747
// // ChartTableViewCell.swift // Naterade // // Created by Nathan Racklyeft on 2/19/16. // Copyright © 2016 Nathan Racklyeft. All rights reserved. // import UIKit public final class ChartTableViewCell: UITableViewCell { @IBOutlet weak var chartContentView: ChartContainerView! @IBOutlet weak var titleL...
mit
2d43534b3a5d4d12daeee7772c1d3e68
22.594595
70
0.631157
5.017241
false
false
false
false
gottesmm/swift
test/Generics/invalid.swift
5
2680
// RUN: %target-typecheck-verify-swift func bet() where A : B {} // expected-error {{'where' clause cannot be attached to a non-generic declaration}} typealias gimel where A : B // expected-error {{'where' clause cannot be attached to a non-generic declaration}} // expected-error@-1 {{expected '=' in typealias declar...
apache-2.0
f12fbe254db7acc60a2be9b9b15d394f
28.450549
234
0.689925
3.867244
false
false
false
false
Fenrikur/ef-app_ios
EurofurenceTests/Presenter Tests/Dealers/Presenter Tests/WhenBindingDealerSearchResultGroupHeading_DealersPresenterShould.swift
1
820
@testable import Eurofurence import EurofurenceModel import XCTest class WhenBindingDealerSearchResultGroupHeading_DealersPresenterShould: XCTestCase { func testBindTheGroupHeadingOntoTheComponent() { let groups = [DealersGroupViewModel].random let randomGroup = groups.randomElement() let ...
mit
d234e0c5c1d0ed28e3e367512ee89a81
40
101
0.77561
5.857143
false
true
false
false
qbalsdon/br.cd
brcd/Pods/RSBarcodes_Swift/Source/RSCode93Generator.swift
1
3849
// // RSCode93Generator.swift // RSBarcodesSample // // Created by R0CKSTAR on 6/11/14. // Copyright (c) 2014 P.D.Q. All rights reserved. // import UIKit // http://www.barcodeisland.com/code93.phtml public class RSCode93Generator: RSAbstractCodeGenerator, RSCheckDigitGenerator { let CODE93_ALPHABET_STRING ...
mit
f1a413c04b024889f08867d00f439732
27.301471
91
0.546895
4.434332
false
false
false
false
JGiola/swift
test/Reflection/typeref_decoding_imported.swift
2
5190
// XFAIL: OS=windows-msvc // SR-12893 // XFAIL: OS=openbsd // RUN: %empty-directory(%t) // RUN: %target-build-swift %S/Inputs/ImportedTypes.swift %S/Inputs/ImportedTypesOther.swift -parse-as-library -emit-module -emit-library -module-name TypesToReflect -o %t/%target-library-name(TypesToReflect) -I %S/Inputs // RUN:...
apache-2.0
a4d3ee522da72259a847def0b05870b7
28.827586
263
0.655106
3.052941
false
false
false
false
ontouchstart/swift3-playground
Learn to Code 1.playgroundbook/Contents/Chapters/Document7.playgroundchapter/Pages/Challenge4.playgroundpage/Sources/SetUp.swift
1
2793
// // SetUp.swift // // Copyright (c) 2016 Apple Inc. All Rights Reserved. // import Foundation // MARK: Globals let width = Int(arc4random_uniform(4)) + 5 let height = Int(arc4random_uniform(4)) + 4 // we can't use this dressed world because the size of this world is random // let world = loadGridWorld(named: "7....
mit
eeadbe7c09025205645f7614eb91d992
26.653465
90
0.627999
3.539924
false
false
false
false
Ricky-Choi/AppUIKit
AppUIKit/View/AUIBarButtonItem.swift
1
8070
// // AUIBarButtonItem.swift // AppUIKit // // Created by ricky on 2016. 12. 5.. // Copyright © 2016년 appcid. All rights reserved. // import Cocoa public enum AUIBarButtonSystemItem: Int, CustomStringConvertible { case done case cancel case edit case save case add case flexibleSpace ca...
mit
49b5c69ac1d3555d9190cdb5dc3ea7fc
39.949239
222
0.660593
4.332438
false
false
false
false
dave256/SwiftPlaygrounds
old-Structures.playground/Contents.swift
1
2073
//: ## Structures (value types and no inheritance) struct Person { var firstName: String var lastName = "" // no func in front of init // if initialized all instance variables during declaration (as did with lastName above), a default initializer is automatically created init(firstName: String, l...
mit
454918368c72b214e7fd4ebe800cf718
27.39726
140
0.688857
4.327766
false
false
false
false
tottakai/RxSwift
Tests/PerformanceTests/PerformanceTools.swift
8
6215
// // PerformanceTools.swift // Tests // // Created by Krunoslav Zaher on 9/27/15. // Copyright © 2015 Krunoslav Zaher. All rights reserved. // import Foundation #if os(Linux) import Dispatch #endif fileprivate var mallocFunctions: [(@convention(c) (UnsafeMutablePointer<_malloc_zone_t>?, Int) -> UnsafeMutableRawP...
mit
aa4c52e69acd8c8da8f1a713cc978b76
27.117647
129
0.628902
3.864428
false
false
false
false
JGiola/swift-corelibs-foundation
Foundation/RunLoop.swift
2
5558
// 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
7e3a8afa31309f607970467fd58b5675
32.281437
140
0.670565
4.975828
false
false
false
false
slash-hq/slash
Sources/TLSSocket.swift
1
4024
// // slash // // Copyright © 2016 slash Corp. All rights reserved. // import Foundation #if os(OSX) || os(iOS) enum TLSSocketError: Error { case error(String) } class TLSSocket { private var socket: Int32 private let sslContext: SSLContext init(_ address: String, port: Int = 443) throws...
apache-2.0
e49fdc54b533e2f807a90bdd52617b5f
29.24812
127
0.566493
4.164596
false
false
false
false
yeahdongcn/RSBarcodes_Swift
RSBarcodesSample/RSBarcodesSample/BarcodeDisplayViewController.swift
1
1469
// // BarcodeDisplayViewController.swift // RSBarcodesSample // // Created by R0CKSTAR on 15/1/17. // // Updated by Jarvie8176 on 01/21/2016 // // Copyright (c) 2015年 P.D.Q. All rights reserved. // import UIKit import AVFoundation import RSBarcodes class BarcodeDisplayViewController: UIViewController { @IBOu...
mit
ac770ed7adbc974b090827edd642f5f2
31.6
176
0.693933
4.809836
false
false
false
false
tluquet3/MonTennis
MonTennis/Palmares/ModifierTextController.swift
1
2322
// // ModifierTextController.swift // MonTennis // // Created by Thomas Luquet on 03/07/2015. // Copyright (c) 2015 Thomas Luquet. All rights reserved. // import UIKit class ModifierTextController: UITableViewController { internal var textValue: String! internal var textType: String! @IBOutlet weak v...
apache-2.0
b5f566c096671a5fad24ea99a6f5d6bc
28.379747
106
0.602327
5.02381
false
false
false
false
brokenhandsio/vapor-oauth
Tests/VaporOAuthTests/GrantTests/AuthorizationCodeTokenTests.swift
1
21700
import XCTest import VaporOAuth import Vapor import Foundation class AuthorizationCodeTokenTests: XCTestCase { // MARK: - All Tests static var allTests = [ ("testLinuxTestSuiteIncludesAllTests", testLinuxTestSuiteIncludesAllTests), ("testThatResponseTypeMustBeSentInAuthCodeRequest", t...
mit
4bd913076e60ea18db2f6c4b86b95027
44.780591
264
0.688894
5.272109
false
true
false
false
timsawtell/SwiftAppStarter
App/Controller/ViewControllers/DemoViewController.swift
1
1697
// // DemoViewController.swift // TSBoilerplateSwift // // Created by Tim Sawtell on 9/07/2014. // Copyright (c) 2014 Sawtell Software. All rights reserved. // import UIKit class DemoViewController: TSViewController { @IBOutlet var tf1: UITextField? @IBOutlet var tf2: UITextField? @IBOutlet var tf3: U...
mit
e426a84e31d3b78a7d26313ca839317f
31.634615
101
0.584561
4.489418
false
false
false
false
RocketJourney/RaceTracker
Source/RunSpanishSpeaker.swift
1
2993
// // RunSpanishSpeaker.swift // RJv1 // // Created by Ernesto Cambuston on 5/2/15. // Copyright (c) 2015 Ernesto Cambuston. All rights reserved. // import Foundation class RunSpanishSpeaker : RunTrackerSpeechLanguageProvider { private var _unitSystem = false var unitSystem:Bool { set(value) { _unit...
mit
175e0ef55631a215f4517af8e10c81e0
31.172043
107
0.615513
3.829706
false
false
false
false
MxABC/oclearning
swiftLearning/Pods/ObjectMapper/ObjectMapper/Core/ToJSON.swift
8
6044
// // ToJSON.swift // ObjectMapper // // Created by Tristan Himmelman on 2014-10-13. // // The MIT License (MIT) // // Copyright (c) 2014-2015 Hearst // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal...
mit
ca72f9b3c2499ff47a98009c04e9498b
29.836735
160
0.683819
3.397414
false
false
false
false
crossroadlabs/Swirl
Sources/Swirl/SQL.swift
1
2000
//===--- SQL.swift ------------------------------------------------------===// //Copyright (c) 2017 Crossroad Labs s.r.o. // //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.apac...
apache-2.0
5cd4f1cba51420f54d76b05f582181fd
31.258065
81
0.631
4.237288
false
false
false
false
Roommate-App/roomy
roomy/Pods/IBAnimatable/Sources/Protocols/Designable/PlaceholderDesignable.swift
2
2854
// // Created by Jake Lin on 11/19/15. // Copyright © 2015 IBAnimatable. All rights reserved. // import UIKit public protocol PlaceholderDesignable: class { /** `color` within `::-webkit-input-placeholder`, `::-moz-placeholder` or `:-ms-input-placeholder` */ var placeholderColor: UIColor? { get set } va...
mit
32c2c404ba3e89fd8af025bb1b8fb3b1
41.58209
119
0.626358
6.425676
false
false
false
false
li1024316925/Swift-TimeMovie
Swift-TimeMovie/Swift-TimeMovie/LLQTabBarController.swift
1
6392
// // LLQTabBarController.swift // Swift-TimeMovie // // Created by DahaiZhang on 16/10/13. // Copyright © 2016年 LLQ. All rights reserved. // import UIKit func kTabBarWidth(object: UITabBarController) -> CGFloat {return object.tabBar.frame.size.width} func kTabBarHeight(object: UITabBarController) -> CGFloat {ret...
apache-2.0
b98203e7c288c7c3cd22cf04774d7560
31.965714
263
0.617091
4.596813
false
false
false
false
wisonlin/HackingDesigner
Pods/Kingfisher/Sources/Image.swift
1
11011
// // Image.swift // Kingfisher // // Created by Wei Wang on 16/1/6. // // Copyright (c) 2016 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 Software without...
mit
4fb2972097cc2cb98c939c58c3d8acdf
32.165663
151
0.636636
4.584097
false
false
false
false
IvanVorobei/RateApp
SPRateApp - project/SPRateApp/sparrow/ui/views/views/SPAligmentView.swift
1
8754
// The MIT License (MIT) // Copyright © 2017 Ivan Vorobei (hello@ivanvorobei.by) // // 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
e430ddc550dcca8b792cf07d6f246533
35.623431
186
0.536845
4.670758
false
false
false
false
openHPI/xikolo-ios
iOS/Data/Model/Actions/Actions.swift
1
4058
// // Created for xikolo-ios under GPL-3.0 license. // Copyright © HPI. All rights reserved. // import UIKit struct Action { let title: String let image: UIImage? let handler: () -> Void init(title: String, image: UIImage? = nil, handler: @escaping (() -> Void)) { self.title = title ...
gpl-3.0
5a52038527063c65f2f3fbda004580f2
23.737805
85
0.468326
4.663218
false
false
false
false
pierreg256/ticTacSprite
ticTacSprite/GameController.swift
1
3300
// // GameController.swift // ticTacSprite // // Created by Gilot, Pierre on 29/09/2015. // Copyright © 2015 Pierre Gilot. All rights reserved. // import UIKit import XCGLogger import GameplayKit class GameController: GameSceneDelegate { private var board = BoardController() private var minMax = GKMinmaxS...
mit
a30dcc4027f6e5a0370b83316639563a
34.858696
136
0.591088
4.880178
false
false
false
false
aitorbf/Curso-Swift
Is It Prime/Is It Prime/ViewController.swift
1
2010
// // ViewController.swift // Is It Prime // // Created by Aitor Baragaño Fernández on 22/9/15. // Copyright © 2015 Aitor Baragaño Fernández. All rights reserved. // import UIKit class ViewController: UIViewController { @IBOutlet weak var number: UITextField! @IBOutlet weak var resultLabel: UILabel! ...
mit
e3a97e2c232b99c81502288680290bc0
24.0625
80
0.450374
6.246106
false
false
false
false
oxozle/oxkit-swift
Sources/Core/Localization.swift
1
2429
// // Localization.swift // OXKit // // Created by Dmitriy Azarov on 29/12/2016. // Copyright © 2016 Oxozle. All rights reserved. // import Foundation final class LocalizeTableKeysCache { static let i = LocalizeTableKeysCache() fileprivate var dict: [String: String] fileprivate init() { ...
mit
4a24b9dc0038a2cbb87d48d83b1a4e3a
28.609756
90
0.525124
4.924949
false
false
false
false
jvivas/OraChallenge
OraChallenge/OraChallenge/ViewControllers/BaseViewController.swift
1
2010
// // BaseViewController.swift // OraChallenge // // Created by Jorge Vivas on 3/6/17. // Copyright © 2017 JorgeVivas. All rights reserved. // import UIKit import SwiftMessages import EGGProgressHUD class BaseViewController: UIViewController { let progressHud = EGGProgressHUD() override func viewDid...
apache-2.0
2a0d321496ff45d5c54ee928ca98cc8d
26.148649
78
0.650075
4.80622
false
true
false
false
ceozhu/lesson_ios_mvp
Pods/Genome/Genome/Source/SettableOperator.swift
3
9594
// // Genome // // Created by Logan Wright // Copyright © 2016 lowriDevs. All rights reserved. // // MIT // import PureJsonSerializer // MARK: Casting prefix operator <~ {} // MARK: Settable Transform // MARK: Extraction extension Map { // MARK: Transforms public func extract<T, JsonInputTyp...
apache-2.0
1f31b75cd616fb1a59931409c144ca23
34.010949
137
0.659231
3.890105
false
false
false
false
Romdeau4/16POOPS
iOS_app/Help's Kitchen/HostSeatingController.swift
1
4281
// // HostSeatingController.swift // Help's Kitchen // // Created by Stephen Ulmer on 2/15/17. // Copyright © 2017 Stephen Ulmer. All rights reserved. // import UIKit import Firebase class HostSeatingController: CustomTableViewController { let ref = FIRDatabase.database().reference(fromURL: "https://help...
mit
1c06c580ca31ba3cdb9769c35d3dfbcb
32.968254
137
0.601636
5.251534
false
false
false
false
superpeteblaze/BikeyProvider
Code/Providers/CityProvider.swift
1
7350
// // Created by Pete Smith // http://www.petethedeveloper.com // // // License // Copyright © 2016-present Pete Smith // Released under an MIT license: http://opensource.org/licenses/MIT // import CoreLocation /** ### CityProvider Provides methods for fetching the nearest bike station cities, based on t...
mit
a869aed1f4254d992e3da8fa701ba52b
37.883598
170
0.549326
5.5548
false
false
false
false
evolutional/flatbuffers
swift/Sources/FlatBuffers/Constants.swift
1
3015
/* * Copyright 2021 Google Inc. All rights reserved. * * 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 applica...
apache-2.0
250c25c90c34271ab04614f55d393644
25.447368
127
0.751244
4.34438
false
false
false
false
dongdonggaui/BiblioArchiver
Carthage/Checkouts/Fuzi/Fuzi/Error.swift
1
1961
// Error.swift // Copyright (c) 2015 Ce Zheng // // 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, modify, merge...
mit
dc94b1b2f3238dca7ec1f482159b926b
39.854167
123
0.742478
4.560465
false
false
false
false
mypalal84/GoGoGithub
GoGoGithub/GoGoGithub/FoundationExtensions.swift
1
1210
// // FoundationExtensions.swift // GoGoGithub // // Created by A Cahn on 4/3/17. // Copyright © 2017 A Cahn. All rights reserved. // import Foundation extension UserDefaults { //get access token func getAccessToken() -> String? { guard let token = UserDefaults.standard.string(forKey: "access...
mit
8af64afdbb1fdc557c867193b5e8a3e6
22.705882
99
0.543424
4.759843
false
false
false
false
gtranchedone/FlickrParty
FlickrParty/PhotosViewController.swift
1
5900
// // PhotosViewController.swift // FlickrParty // // Created by Gianluca Tranchedone on 04/05/2015. // Copyright (c) 2015 Gianluca Tranchedone. All rights reserved. // import UIKit import Haneke let ThumbailsFormatName = "thumbnails" let PhotoCellReuseIdentifier = "PhotoCellReuseIdentifier" public class PhotosV...
mit
5d388054d2975d201004b45e40645d81
43.029851
176
0.679322
5.882353
false
false
false
false
wordpress-mobile/AztecEditor-iOS
Aztec/Classes/Extensions/NSTextingResult+Helpers.swift
2
1018
import Foundation public extension NSTextCheckingResult { /// Returns the match for the corresponding capture group position in a text /// /// - Parameters: /// - position: the capture group position /// - text: the string where the match was detected /// - Returns: the string with the cap...
mpl-2.0
4c4d8c29b386ed62540cea337f2fa16e
26.513514
80
0.566798
4.847619
false
false
false
false
practicalswift/swift
stdlib/public/core/Join.swift
5
5811
//===--- Join.swift - Protocol and Algorithm for concatenation ------------===// // // 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
26c55d1876e92608ba7e084acaa0c7ae
31.283333
80
0.643779
4.611905
false
false
false
false
nathantannar4/Parse-Dashboard-for-iOS-Pro
Pods/BiometricAuthentication/BiometricAuthentication/BiometricAuthentication/Constants/BiometricAuthenticationConstants.swift
1
1847
// // BiometricAuthenticationConstants.swift // BiometricAuthentication // // Created by Rushi on 27/10/17. // Copyright © 2017 Rushi Sangani. All rights reserved. // import Foundation import LocalAuthentication /// success block public typealias AuthenticationSuccess = (() -> ()) /// failure block public typeal...
mit
7cc1dd32a1bf8f07c517885973cfddfe
47.578947
162
0.755146
4.794805
false
false
false
false
lukevanin/OCRAI
CardScanner/UIAlertController+Document.swift
1
4663
// // UIAlertController+Document.swift // CardScanner // // Created by Luke Van In on 2017/03/12. // Copyright © 2017 Luke Van In. All rights reserved. // import UIKit import MessageUI import Contacts class DocumentMailComposerDelegate: NSObject, MFMailComposeViewControllerDelegate { private var viewCont...
mit
88ab83f4c37affd7a0d2f6b285bcd34e
31.375
133
0.556628
5.603365
false
false
false
false
benjamincongdon/TubeSync
TubeSync/ContentViewController.swift
1
6029
// // ContentViewController.swift // Playlist Sync // // Created by Benjamin Congdon on 1/11/16. // Copyright © 2016 Benjamin Congdon. All rights reserved. // import Cocoa class ContentViewController: NSViewController, NSTableViewDelegate, NSTableViewDataSource { var delegate:AppDelegate? @IBOutlet ...
mit
664183cdd78526657a00598e68fae4f5
37.394904
158
0.646151
5.670743
false
false
false
false
yoonhg84/CPSelectionManager
Source/CPSelectionManager.swift
1
2310
// // Created by Chope on 2016. 4. 27.. // Copyright (c) 2016 Chope. All rights reserved. // import UIKit public enum CPSelectionType { case single case multiple case limitedMultiple(Int) } public enum CPSelectionErrorType: Error { case wrongSelectionType } open class CPSelectionManager { open v...
mit
2e1c692e594774e0aefeda68c3312805
25.860465
106
0.58961
4.925373
false
false
false
false
marcw/volte-ios
VolteCore/TimelineDownloader.swift
1
6170
// // TimelineContentProvider.swift // Volte // // Created by Romain Pouclet on 2016-10-11. // Copyright © 2016 Perfectly-Cooked. All rights reserved. // import Foundation import ReactiveSwift import SwiftyJSON import Result import MailCore import CoreData public enum TimelineError: Error { case internalError...
agpl-3.0
767dc55fa1ae68c60afdc5138d1f54cb
39.854305
121
0.586643
5.158027
false
false
false
false
AnarchyTools/atpkg
src/parsing/Tokenization.swift
1
7033
// Copyright (c) 2016 Anarchy Tools Contributors. // // 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 la...
apache-2.0
7387fbd4079c7a9e2c4372b2bd0eecfb
32.980676
117
0.523105
4.605763
false
false
false
false
nixzhu/Wormhole
Remote WatchKit Extension/InterfaceController.swift
2
1934
// // InterfaceController.swift // Remote WatchKit Extension // // Created by NIX on 15/5/20. // Copyright (c) 2015年 nixWork. All rights reserved. // import WatchKit import Wormhole import RemoteKit class InterfaceController: WKInterfaceController { @IBOutlet weak var lightStateSwitch: WKInterfaceSwitch! ...
mit
7c5ea966b940cfaa2743b8d4fc988e49
27.835821
143
0.666667
4.77037
false
true
false
false
newtonstudio/cordova-plugin-device
imgly-sdk-ios-master/imglyKit/Frontend/Editor/IMGLYFocusEditorViewController.swift
1
9249
// // IMGLYFocusEditorViewController.swift // imglyKit // // Created by Sascha Schwabbauer on 13/04/15. // Copyright (c) 2015 9elements GmbH. All rights reserved. // import UIKit public class IMGLYFocusEditorViewController: IMGLYSubEditorViewController { // MARK: - Properties public private(set) laz...
apache-2.0
c7f5ac549046b8032c19750c3efb3ec0
36.75102
222
0.656503
5.489021
false
false
false
false
PasDeChocolat/LearningSwift
PLAYGROUNDS/LSB_D005_MapFilterReduce.playground/section-2.swift
2
4274
import UIKit /* // Let's implement Map, Filter, & Reduce // // I got the inspiration for this from a // book or a paper, I'll try to remember // which and post it here. /==========================================*/ let nums = [1,2,3,4,5] /*----------------------------------------/ // Map: Imperative Style ...
gpl-3.0
11bf4712f7b14e1fd106cc9f940daec0
19.742718
85
0.493215
3.424679
false
false
false
false
tilltue/FSCalendar
Example-Swift/SwiftExample/DIVExampleViewController.swift
1
8380
// // DIVViewController.swift // SwiftExample // // Created by dingwenchao on 06/11/2016. // Copyright © 2016 wenchao. All rights reserved. // import Foundation enum SelectionType : Int { case none case single case leftBorder case middle case rightBorder } class DIVExampleViewController: UIVi...
mit
743cae0ae57095c398504e5b988144b8
42.404145
271
0.631013
4.962678
false
false
false
false
EstefaniaGilVaquero/ciceIOS
AppTestSpotify/AppTestSpotify/ViewController.swift
1
2390
// // ViewController.swift // AppTestSpotify // // Created by CICE on 28/10/16. // Copyright © 2016 CICE. All rights reserved. // import UIKit import Alamofire class ViewController: UITableViewController { //MARK: - VARIABLES LOCALES GLOBALES var busquedaURLSpotify = "https://api.spotify.com/v1/searc...
apache-2.0
b82fa147dc2e1b6f9ab11381d3e6beed
28.8625
123
0.602344
4.768463
false
false
false
false
TeamProxima/predictive-fault-tracker
mobile/SieHack/Pods/Charts/Source/Charts/Renderers/CandleStickChartRenderer.swift
17
13451
// // CandleStickChartRenderer.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 ...
mit
12fb220eaf03a0bd0b083142ed30f8ec
35.452575
130
0.477065
5.959681
false
false
false
false
steelwheels/KiwiControls
Source/Basic/KCType.swift
1
2474
/** * @file KCType.swift * @brief Define KCType class * @par Copyright * Copyright (C) 2017 Steel Wheels Project */ #if os(iOS) import UIKit #else import AppKit #endif #if os(iOS) public typealias KCResponder = UIResponder public typealias KCTextViewDelegate = UITextViewDelegate public typealias KCLayout...
lgpl-2.1
7594e75685afffe0491644b0772a5e74
24.770833
85
0.735651
3.539342
false
false
false
false
steelwheels/Coconut
CoconutData/Source/Value/CNMutableArray.swift
1
7854
/* * @file CNMutableArrayValue.swift * @brief Define CNMutableArrayValue class * @par Copyright * Copyright (C) 2022 Steel Wheels Project */ import Foundation public class CNMutableArrayValue: CNMutableValue { private var mValues: Array<CNMutableValue> public init(sourceDirectory srcdir: URL, cacheDirectory...
lgpl-2.1
87577ff4176e17b926c9341e5066a3ac
31.057143
150
0.656099
3.280702
false
false
false
false
czechboy0/XcodeServerSDK
XcodeServerSDK/Server Entities/LiveUpdateMessage.swift
1
3217
// // LiveUpdateMessage.swift // XcodeServerSDK // // Created by Honza Dvorsky on 26/09/2015. // Copyright © 2015 Honza Dvorsky. All rights reserved. // import Foundation public class LiveUpdateMessage: XcodeServerEntity { public enum MessageType: String { //bots case BotCreated ...
mit
3ca1ffb167182228f5d84250ad526f1b
29.056075
69
0.575249
4.947692
false
false
false
false
srn214/Floral
Floral/Pods/Hue/Source/iOS+tvOS/UIImage+Hue.swift
4
6017
import UIKit class CountedColor { let color: UIColor let count: Int init(color: UIColor, count: Int) { self.color = color self.count = count } } extension UIImage { fileprivate func resize(to newSize: CGSize) -> UIImage { UIGraphicsBeginImageContextWithOptions(newSize, false, 2) draw(in: ...
mit
0b2b9dff53f0023e39cfb4647a5987ea
33.1875
173
0.634702
4.527464
false
false
false
false
mansoor92/MaksabComponents
MaksabComponents/Classes/Trips/cells/UserInfoTableViewCell.swift
1
1296
// // UserInfoTableViewCell.swift // Maksab // // Created by Incubasys on 16/08/2017. // Copyright © 2017 Incubasys. All rights reserved. // import UIKit import StylingBoilerPlate public class UserInfoTableViewCell: UITableViewCell, NibLoadableView { @IBOutlet weak public var userPhoto: RoundImageView! @...
mit
40546f3e204e33230a4544943f9b785c
29.833333
96
0.694981
4.480969
false
false
false
false
antonio081014/LeetCode-CodeBase
Swift/arranging-coins.swift
2
1561
/** * https://leetcode.com/problems/arranging-coins/ * * */ class Solution { func arrangeCoins(_ n: Int) -> Int { if n == 1 {return 1} var left = 1 var right = n while left < right { let mid = (left + right) / 2 if mid * mid + mid <= 2 * n { ...
mit
5a82c09cb4c8c651f9a4eac0334aa663
22.298507
88
0.432415
3.364224
false
false
false
false
treejames/firefox-ios
SharedTests/RollingFileLoggerTests.swift
2
4919
/* 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 XCTest import Shared class RollingFileLoggerTests: XCTestCase { var logger: RollingF...
mpl-2.0
14b8a438c352d10811c3d16fb434fd62
46.757282
168
0.707867
4.822549
false
true
false
false
HongliYu/firefox-ios
Client/Frontend/Intro/IntroViewController.swift
1
19087
/* 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 import SnapKit import Shared struct IntroUX { static let Width = 375 static let Height = 667...
mpl-2.0
32531bdd9028ec77ef28d8ed267d7955
39.87152
215
0.67009
4.951232
false
false
false
false
ReactiveKit/ReactiveUIKit
Sources/UITextView.swift
1
3882
// // 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 restriction, including without limitation the...
mit
44460afb8679721eaff42b7031f074ce
36.68932
146
0.698351
4.774908
false
false
false
false
frtlupsvn/Vietnam-To-Go
VietNamToGo/Models/Places/Places.swift
1
3293
// // Places.swift // Fuot // // Created by Zoom Nguyen on 1/3/16. // Copyright © 2016 Zoom Nguyen. All rights reserved. // import Foundation import CoreData import Parse @objc(Places) class Places: NSManagedObject { // Insert code here to add functionality to your managed object subclass /* SYNC D...
mit
48005ffc381cfb2e9b5a6843a166c48d
29.201835
95
0.547388
5.57022
false
false
false
false
hooman/swift
stdlib/public/core/Indices.swift
13
4396
//===----------------------------------------------------------------------===// // // 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
66ce508ef561a5d9cee05298e000b598
28.503356
80
0.670382
4.426989
false
false
false
false
J-Mendes/Bliss-Assignement
Bliss-Assignement/Bliss-Assignement/QuestionDetailsViewController.swift
1
3924
// // QuestionDetailsViewController.swift // Bliss-Assignement // // Created by Jorge Mendes on 13/10/16. // Copyright © 2016 Jorge Mendes. All rights reserved. // import UIKit import AlamofireImage class QuestionDetailsViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { internal v...
lgpl-3.0
1997660a6a40bdb8621092bbdee60948
35.324074
136
0.673464
5.155059
false
false
false
false
TruckMuncher/TruckMuncher-iOS
TruckMuncher/api/RUser.swift
1
1539
// // RUser.swift // TruckMuncher // // Created by Josh Ault on 10/28/14. // Copyright (c) 2014 TruckMuncher. All rights reserved. // import UIKit import Realm class RUser: RLMObject { dynamic var id = "" dynamic var fbUsername = "" dynamic var twUsername = "" dynamic var hasFb = false // realm do...
gpl-2.0
a0f446073e38cd820d96ffed3a060d58
33.2
118
0.614035
4.093085
false
false
false
false
steverichey/leddit
leddit/StoryListController.swift
1
3602
// // StoryListController.swift // leddit // // Created by dev on 8/17/15. // Copyright © 2015 STVR. All rights reserved. // import Foundation import UIKit class StoryListController : UITableViewController { var stories:[Story] = [] let number_of_stories = 10 override func viewDidLoad() { ...
mit
59717841b19637f7b198207ac8ab5ff6
36.134021
132
0.521244
5.626563
false
false
false
false
D8Ge/Jchat
Jchat/Pods/SwiftProtobuf/Sources/SwiftProtobuf/Google_Protobuf_Timestamp_Extensions.swift
1
11220
// ProtobufRuntime/Sources/Protobuf/Google_Protobuf_Timestamp_Extensions.swift - Timestamp extensions // // 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 // // Se...
mit
28d5c26f4d3e82821887ad1dc398b1c9
33.84472
122
0.580481
3.822828
false
false
false
false
mozilla-mobile/firefox-ios
Storage/Rust/RustPlaces.swift
2
23314
// 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 @_exported import MozillaAppServices private let log = Logger.syncLogger public proto...
mpl-2.0
74908d92189c130cb330ab893e17edee
36.908943
171
0.593334
5.337454
false
false
false
false
yopeso/Taylor
TaylorFramework/Taylor/CLIReporter.swift
4
2163
// // ResultPrinter.swift // Taylor // // Created by Alex Culeva on 11/10/15. // Copyright © 2015 YOPESO. All rights reserved. // import Foundation typealias ResultOutput = (path: String, warnings: Int) struct CLIReporter { let results: [ResultOutput] init(results: [ResultOutput]) { self.res...
mit
8fe718c1dac5b19a91c3f2f9af5a71cc
32.169231
117
0.608534
4.114504
false
false
false
false
hoobaa/nkbd
Keyboard/mKeyboardModel.swift
7
4816
// // KeyboardModel.swift // TransliteratingKeyboard // // Created by Alexei Baboulevitch on 7/10/14. // Copyright (c) 2014 Apple. All rights reserved. // import Foundation var counter = 0 enum ShiftState { case Disabled case Enabled case Locked func uppercase() -> Bool { switch self...
bsd-3-clause
88222a742a73a9cc0559240adf039626
22.153846
89
0.487542
5.107105
false
false
false
false
nickoneill/Pantry
Pantry/Pantry.swift
2
7172
// // Pantry.swift // Pantry // // Created by Nick O'Neill on 10/29/15. // Copyright © 2015 That Thing in Swift. All rights reserved. // import Foundation /** # Pantry Pantry is a lightweight way to persist structs containing user data, cached content or other relevant objects for later retrieval. ### S...
mit
c12ac9baa7edaf6904bf55e211533387
28.632231
114
0.612746
4.451273
false
false
false
false
inkyfox/SwiftySQL
Sources/SQLPrefixUnaryExprGenerator.swift
3
1411
// // SQLPrefixUnaryExprGenerator.swift // SwiftySQL // // Created by indy on 2016. 10. 23.. // Copyright © 2016년 Gen X Hippies Company. All rights reserved. // import Foundation private let trimmedUnaryOperators = Set<String>(["+", "-", "~"]) class SQLPrefixUnaryExprGenerator: SQLElementGenerator<SQLPrefixUnary...
mit
7c9e8b68eec0e1441bc6692c3f291de8
28.333333
84
0.524858
5.195572
false
false
false
false
esttorhe/MammutAPI
Sources/MammutAPI/Mappers/TagMapper.swift
1
700
// // Created by Esteban Torres on 23.04.17. // Copyright (c) 2017 Esteban Torres. All rights reserved. // import Foundation internal class TagMapper: ModelMapping { typealias Model = Tag func map(json: ModelMapping.JSONDictionary) -> Result<Model, MammutAPIError.MappingError> { guard ...
mit
76e55db06bcd88017c545956d9d82763
25.923077
95
0.57
4.375
false
false
false
false
gaurav1981/Swiftz
SwiftzTests/StringExtSpec.swift
1
3856
// // StringExtSpec.swift // swiftz // // Created by Robert Widmann on 1/19/15. // Copyright (c) 2015 TypeLift. All rights reserved. // import XCTest import Swiftz import SwiftCheck class StringExtSpec : XCTestCase { func testProperties() { property["unlines • lines === ('\n' • id)"] = forAll { (x : String) in...
bsd-3-clause
47d8d78ff23907074acb4e1a0a7b9567
30.52459
184
0.613365
3.101613
false
false
false
false
KeithPiTsui/Pavers
Pavers/Sources/FRP/ReactiveSwift/SignalProducer.swift
2
125539
import Dispatch import Foundation /// A SignalProducer creates Signals that can produce values of type `Value` /// and/or fail with errors of type `Error`. If no failure should be possible, /// `Never` can be specified for `Error`. /// /// SignalProducers can be used to represent operations or tasks, like network /// ...
mit
0807dff5a4d400d86b2f3937a311570e
42.048354
733
0.674737
3.834937
false
false
false
false
arvedviehweger/swift
validation-test/stdlib/CollectionDiagnostics.swift
1
5826
// RUN: %target-typecheck-verify-swift -verify-ignore-unknown import StdlibUnittest import StdlibCollectionUnittest // // Check that Collection.SubSequence is constrained to Collection. // // expected-error@+3 {{type 'CollectionWithBadSubSequence' does not conform to protocol 'Collection'}} // expected-error@+2 {{ty...
apache-2.0
924e951dedcaa08a76f806b6d2a40095
40.028169
151
0.7046
4.108604
false
false
false
false
STShenZhaoliang/iOS-GuidesAndSampleCode
精通Swift设计模式/Chapter 04/SportsStore/SportsStore/Product.swift
1
917
class Product { private(set) var name:String; private(set) var description:String; private(set) var category:String; private var stockLevelBackingValue:Int = 0; private var priceBackingValue:Double = 0; init(name:String, description:String, category:String, price:Double, stockL...
mit
24f0df31d3fb4787e5f4f00508aaf539
26.787879
72
0.591058
4.451456
false
false
false
false
huangboju/Moots
Examples/UIScrollViewDemo/UIScrollViewDemo/Controllers/WindowVC.swift
1
1130
// // WindowVC.swift // UIScrollViewDemo // // Created by xiAo_Ju on 2019/2/20. // Copyright © 2019 伯驹 黄. All rights reserved. // import UIKit // https://medium.com/@evicoli/creating-custom-notification-ios-banner-sliding-over-status-bar-4a7b5f842307 class WindowVC: UIViewController { let bannerView = UIVie...
mit
5c20daa0342057727fbea7436d8db576
29.351351
107
0.653606
3.968198
false
false
false
false
ProcedureKit/ProcedureKit
Sources/ProcedureKitCoreData/MakeFetchedResultController.swift
2
3053
// // ProcedureKit // // Copyright © 2015-2018 ProcedureKit. All rights reserved. // #if SWIFT_PACKAGE import ProcedureKit import Foundation #endif import CoreData /** Makes a FetchResultsController, using the viewContext from a NSPersistenContainer which is injected before execution, but after initialization. F...
mit
dda86f6e2913f62015893e34a5780915
43.231884
198
0.737877
5.190476
false
false
false
false
xusader/firefox-ios
Sync/Record.swift
3
3118
/* 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 let ONE_YEAR_IN_SECONDS = 365 * 24 * 60 * 60; /** * Immutable representation fo...
mpl-2.0
bdc724d4f7689507070263e7f6e6d290
31.14433
130
0.624759
4.242177
false
false
false
false
TeamDeverse/BC-Agora
BC-Agora/DataManager.swift
1
1899
// // DataManager.swift // TopApps // // Created by Dani Arnaout on 9/2/14. // Edited by Eric Cerney on 9/27/14. // Copyright (c) 2014 Ray Wenderlich All rights reserved. // import Foundation let TopAppURL = "https://itunes.apple.com/us/rss/topgrossingipadapplications/limit=25/json" class DataManager { ...
mit
0fba5196aa569dcdb9d5badb7e9a67a6
37
184
0.598736
4.783375
false
false
false
false
benlangmuir/swift
validation-test/compiler_crashers_2_fixed/0191-sr9508.swift
28
247
// RUN: %target-swift-frontend -typecheck %s protocol P { associatedtype A } struct S1: P { typealias A = Int } struct S2<G: P>: P { typealias A = G.A } struct S3<G: P> { } extension S3 where G == S2<S1> { typealias B = G.A }
apache-2.0
62293a21b57b5419a7c7f6f12d73abea
11.35
44
0.582996
2.546392
false
false
false
false
magnetsystems/max-ios
Tests/Tests/MMUserSpec.swift
1
4897
/* * Copyright (c) 2015 Magnet Systems, Inc. * All rights reserved. * * 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 require...
apache-2.0
125222f70a4d3642ff2fdc0fe56bb0da
41.582609
117
0.539514
5.193001
false
false
false
false
yannickl/QRCodeReader.swift
Sources/ReaderOverlayView.swift
1
3674
/* * QRCodeReader.swift * * Copyright 2014-present Yannick Loriot. * http://yannickloriot.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 ...
mit
3d168e4b0ea4219f0a94bcd3bd3df049
28.869919
87
0.704954
4.519065
false
false
false
false
ReiVerdugo/uikit-fundamentals
Click Counter/Click Counter/AppDelegate.swift
1
4597
// // AppDelegate.swift // Click Counter // // Created by devstn5 on 2016-09-28. // Copyright © 2016 Rverdugo. All rights reserved. // import UIKit import CoreData @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplicat...
mit
2ef52eab21f0cd7434a8a9880be7e6c3
48.419355
285
0.686031
5.832487
false
false
false
false
Mioke/PlanB
PlanB/PlanB/Base/KMViewController/UIViewController+TaskManager.swift
1
2241
// // UIViewController+TaskManager.swift // swiftArchitecture // // Created by Klein Mioke on 15/11/27. // Copyright © 2015年 KleinMioke. All rights reserved. // import UIKit extension UIViewController: sender, receiver { typealias receiveDataType = AnyObject func doTask(task: () throws -> receiv...
gpl-3.0
3e97010d52eb36f83b42cf0ad11fd332
30.333333
134
0.541628
4.639485
false
false
false
false
rain2540/Swift_100_Examples
CollatzConjecture.playground/Contents.swift
1
1009
import UIKit /*: 考拉兹猜想:一个正整数,如果它是奇数,则对它乘3再加1,如果它是偶数,则对它除以2,如此循环,最终都能够得到1 */ typealias CollatzInfo = (number: Int, step: Int, path: [Int]) func collatzConjecture(_ number: Int) -> CollatzInfo { guard number > 0 else { return (number, 0, []) } var step = 0 var pathNumbers: [Int] = [number] ...
mit
e60e6f4e1cef9f5c9cd35274eb012297
18.717391
61
0.586549
3.013289
false
false
false
false
mightydeveloper/swift
validation-test/compiler_crashers_fixed/1031-getselftypeforcontainer.swift
10
453
// RUN: not %target-swift-frontend %s -parse // REQUIRES: asserts // Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing protocol b : C { } let start = b, let t.c { typealias d>(n: b { protocol C = 0] = ""...
apache-2.0
f1559df9da42ad6f02bb221c4fb61996
18.695652
87
0.620309
3
false
true
false
false
petester42/Moya
Demo/Tests/RxSwiftMoyaProviderTests.swift
6
3190
import Quick import Nimble import Moya import RxSwift import Alamofire class RxSwiftMoyaProviderSpec: QuickSpec { override func spec() { describe("provider with Observable") { var provider: RxMoyaProvider<GitHub>! beforeEach { provi...
mit
1362be3b01f17573ee0c21a5bd0eb732
35.25
133
0.47837
6.444444
false
false
false
false
vector-im/vector-ios
Riot/Modules/Room/TimelineCells/Styles/Bubble/BubbleRoomCellLayoutUpdater.swift
1
9986
// // 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/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to ...
apache-2.0
13b2a3617c6e1f64f9e63922b9693c6c
35.713235
172
0.680352
5.856891
false
false
false
false
evenCoder/VRPhoto
VRPhoto/VRPhoto/VRPhotoLib/MMPhotoViewController.swift
1
1589
// // MMPhotoViewController.swift // VR图片浏览 // // Created by 黄进文 on 2017/2/25. // Copyright © 2017年 evenCoder. All rights reserved. // import UIKit class MMPhotoViewController: UIViewController { fileprivate var photoUrl: String? init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle...
mit
37fa0fb627bb4c27af4b312369e401f8
20.162162
122
0.60728
4.660714
false
false
false
false
xiandan/diaobaoweibo-swift
XWeibo-swift/Classes/Library/PhotoSelector/UIImage+Scale.swift
1
803
// // UIImage+Scale.swift // PhotoSelector // // Created by Apple on 15/11/11. // Copyright © 2015年 Apple. All rights reserved. // import UIKit extension UIImage { func scaleImage(newWidth: CGFloat = 300) -> UIImage { //图片的尺寸小于300 if size.width <= newWidth { retu...
apache-2.0
390803304d10ece9bd962429f57a3a72
18.65
70
0.566158
5.038462
false
false
false
false
burningmantech/ranger-ims-mac
IncidentsTests/AddressTests.swift
1
12106
// // AddressTests.swift // Incidents // // © 2015 Burning Man and its contributors. All rights reserved. // See the file COPYRIGHT.md for terms. // import XCTest class AddressDescriptionTests: XCTestCase { func test_description_full() { let address = Address(textDescription: "Camp with tents")...
apache-2.0
81baf1cffff044b358e0dbf3905513cb
25.144708
75
0.532838
4.659353
false
true
false
false
visenze/visearch-sdk-swift
ViSearchSDK/ViSearchSDK/Classes/ViSearch.swift
1
5226
import Foundation import ViSenzeAnalytics /// wrapper for various API calls /// create shared client open class ViSearch: NSObject { public static let sharedInstance = ViSearch() public var client : ViSearchClient? private override init(){ super.init() } /// Check i...
mit
e960a418795af3f3f0919d814a5fc668
37.145985
157
0.591083
5.793792
false
false
false
false
Pstoppani/swipe
network/SwipeConnection.swift
2
3983
// // SwipeConnection.swift // sample // // Created by satoshi on 10/9/15. // Copyright © 2015 Satoshi Nakajima. All rights reserved. // #if os(OSX) import Cocoa #else import UIKit #endif import CoreData private func MyLog(_ text:String, level:Int = 0) { let s_verbosLevel = 0 if level <= s_verbosLevel { ...
mit
238958f0df63e31d4987267722daf2b7
35.87037
122
0.534907
5.072611
false
false
false
false
kuangniaokuang/Cocktail-Pro
smartmixer/smartmixer/Common/WebView.swift
1
2550
// // PhoneWeb.swift // smartmixer // // Created by 姚俊光 on 14/10/1. // Copyright (c) 2014年 smarthito. All rights reserved. // import UIKit class WebView: UIViewController,UIWebViewDelegate{ //网页的控件 @IBOutlet var webPage:UIWebView! //显示的标题 @IBOutlet var webTitle:UINavigationItem! ...
apache-2.0
527c89ee31267924d5102b74c1981809
26.133333
148
0.635545
4.678161
false
false
false
false
hemangshah/printer
PrinterExampleApp/PrinterExampleApp/ViewController.swift
1
3530
// // ViewController.swift // PrinterExampleApp // // Created by Hemang Shah on 4/27/17. // Copyright © 2017 Hemang Shah. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading th...
mit
3627006149d2b3967a3d2d9adaafc15b
36.126316
165
0.605614
4.574578
false
false
false
false
crazypoo/PTools
PooToolsSource/CheckDirtyWord/PTCheckFWords.swift
1
4728
// // PTCheckFWords.swift // PooTools_Example // // Created by jax on 2022/9/28. // Copyright © 2022 crazypoo. All rights reserved. // import UIKit import Foundation import SwifterSwift let EXIST = "isExists" @objcMembers public class PTCheckFWords: NSObject { public static let share = PTCheckFWords() ...
mit
3f5dda0a672af8b7a0a74ba54ebdd12f
30.513333
115
0.480855
4.949738
false
false
false
false
SwiftGit2/SwiftGit2
SwiftGit2/Pointers.swift
1
1919
// // Pointers.swift // SwiftGit2 // // Created by Matt Diephouse on 12/23/14. // Copyright (c) 2014 GitHub, Inc. All rights reserved. // import Clibgit2 /// A pointer to a git object. public protocol PointerType: Hashable { /// The OID of the referenced object. var oid: OID { get } /// The libgit2 `git_objec...
mit
06c95292fdd74a8a1093415f81490f87
17.103774
65
0.642522
2.872754
false
false
false
false
wuzhenli/MyDailyTestDemo
swiftTest/swifter-tips+swift+3.0/Swifter.playground/Pages/reflect.xcplaygroundpage/Contents.swift
2
1164
import Foundation struct Person { let name: String let age: Int } let xiaoMing = Person(name: "XiaoMing", age: 16) let r = Mirror(reflecting: xiaoMing) // r 是 MirrorType print("xiaoMing 是 \(r.displayStyle!)") print("属性个数:\(r.children.count)") for child in r.children { print("属性名:\(child.label),值:\(chi...
apache-2.0
ed421dbae9d66ec202e8bb2383aadd4c
18.163636
66
0.608159
3.011429
false
false
false
false
luosheng/OpenSim
OpenSim/FileInfo.swift
1
2759
// // FileInfo.swift // Markdown // // Created by Luo Sheng on 15/11/1. // Copyright © 2015年 Pop Tap. All rights reserved. // import Foundation struct FileInfo { static let prefetchedProperties: [URLResourceKey] = [ .nameKey, .isDirectoryKey, .creationDateKey, .contentModi...
mit
ca4cd3a7cf27e72d8f0addbe7fa3b57b
28.010526
117
0.619739
4.593333
false
false
false
false