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
cuappdev/tempo
Tempo/Player.swift
1
3329
// // Player.swift // Tempo // // Created by Alexander Zielenski on 3/22/15. // Copyright (c) 2015 CUAppDev. All rights reserved. // import UIKit import AVFoundation class Player: NSObject, AVAudioPlayerDelegate { fileprivate var currentTask: URLSessionDataTask? fileprivate static var currentPlayer: Player? {...
mit
8c49c8584086d569d7c1c60251889b39
21.646259
114
0.583659
4.363041
false
false
false
false
Esri/arcgis-runtime-samples-ios
arcgis-ios-sdk-samples/Maps/Display a map SwiftUI/DisplayMapSwiftUIView.swift
1
3516
// Copyright 2021 Esri // // 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 // // https://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing,...
apache-2.0
9460d2839367ef12ff807c1ced0b8229
38.505618
111
0.595279
5.162996
false
false
false
false
mattrubin/Bases
Sources/Base16/Base16.swift
1
4817
// // Base16.swift // Bases // // Copyright (c) 2016-2019 Matt Rubin and the Bases authors // // 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 l...
mit
c8079de9df608129f536641e21ef9713
43.601852
104
0.676977
4.996888
false
false
false
false
steelwheels/KiwiControls
Source/Controls/KCButtonCore.swift
1
2239
/* * @file KCButtonCore.swift * @brief Define KCButtonCore class * @par Copyright * Copyright (C) 2016 Steel Wheels Project */ #if os(iOS) import UIKit #else import Cocoa #endif import CoconutData public enum KCButtonSymbol { case leftArrow case rightArrow public var description: String { get { let res...
lgpl-2.1
d5f4c60cd18fa6664ac50def0c245391
18.991071
65
0.685574
3.118384
false
false
false
false
laurennicoleroth/Tindergram
Tindergram/ProfileViewController.swift
1
939
import UIKit class ProfileViewController: UIViewController { @IBOutlet weak var imageView: UIImageView! @IBOutlet weak var nameLabel: UILabel! override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) navigationItem.titleView = UIImageView(image: UIImage(named: "profile...
mit
03e59eb2fa82c8ff6d4c0e81b931d1b7
25.828571
137
0.705005
4.890625
false
false
false
false
brentdax/swift
benchmark/single-source/Radix2CooleyTukey.swift
6
8609
// Radix2CooleyTukey benchmark // // Originally written by @owensd. Used with his permission. import Foundation import TestsUtils public var Radix2CooleyTukey = [ BenchmarkInfo( name: "Radix2CooleyTukey", runFunction: run_Radix2CooleyTukey, tags: [.validation, .algorithm], setUpFunction: setUpRadix2...
apache-2.0
35c87cfc642824369bf206352a3d1f5e
32.368217
80
0.677663
3.666525
false
false
false
false
Pretz/SwiftGraphics
SwiftGraphics/CoreTypes/CGPoint+Trigonometry.swift
2
7251
// // CGPoint+Trigonometry.swift // SwiftGraphics // // Created by Jonathan Wight on 2/5/15. // Contibutions by Zhang Yungui <https: //github.com/rhcad> on 15/1/14. // Copyright (c) 2015 schwa.io. All rights reserved. // import CoreGraphics public func dotProduct(lhs: CGPoint, _ rhs: CGPoint) -> CGFloat { re...
bsd-2-clause
98da02250d2ce7790c58bd37c6264d65
30.120172
138
0.588884
3.667678
false
false
false
false
HongliYu/firefox-ios
Client/Frontend/Home/BookmarksPanel.swift
1
25395
/* 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 Storage import Shared import XCGLogger private let log = Logger.browserLogger // MARK: - Pla...
mpl-2.0
4a26b2a26717ff31670834ecefd62e02
40.49183
278
0.673965
5.537069
false
false
false
false
robrix/Hammer.swift
Hammer/Fixpoint.swift
1
2376
// Copyright (c) 2014 Rob Rix. All rights reserved. func fixpoint<Parameter : Identifiable, Result> (initial: Result, body: (Parameter -> Result, Parameter) -> Result) -> Parameter -> Result { return fixpoint(initial, { $0.identity }, body) } func fixpoint<Parameter : Identifiable, Result> (initial: Result, body: (...
mit
28de4bb1910f1c7901fba86cb386893a
37.885246
244
0.713744
3.723705
false
false
false
false
narner/AudioKit
Examples/iOS/AnalogSynthX/AnalogSynthX/SynthViewController.swift
1
24947
// // SynthViewController.swift // Swift Synth // // Created by Matthew Fecher on 1/8/16. // Copyright © 2016 AudioKit. All rights reserved. // import AudioKit import AudioKitUI import UIKit class SynthViewController: UIViewController { // ********************************************************* // MARK...
mit
813aa04e412b4096bcd608e231b81785
32.877717
97
0.589396
4.993791
false
false
false
false
garricn/secret
Pods/Cartography/Cartography/Property.swift
4
7569
// // Property.swift // Cartography // // Created by Robert Böhnke on 17/06/14. // Copyright (c) 2014 Robert Böhnke. All rights reserved. // #if os(iOS) || os(tvOS) import UIKit #else import AppKit #endif public protocol Property { var attribute: NSLayoutAttribute { get } var context: Context { get } ...
mit
7d262401a0d9f6cec60a47b104f19dbb
33.395455
138
0.690895
4.046524
false
false
false
false
Rapid-SDK/ios
Source/RapidClasses/RapidServerEvents.swift
1
3603
// // RapidSocketError.swift // Rapid // // Created by Jan Schwarz on 17/03/2017. // Copyright © 2017 Rapid. All rights reserved. // import Foundation /// Acknowledgement event object /// /// This acknowledgement is sent by server as a response to a client request class RapidServerAcknowledgement: RapidServerResp...
mit
538560f860bcfa2b7c9fe077493bd159
26.496183
120
0.658245
4.796272
false
false
false
false
alblue/swift
test/SILGen/closures.swift
1
42205
// RUN: %target-swift-emit-silgen -module-name closures -enable-sil-ownership -parse-stdlib -parse-as-library %s | %FileCheck %s // RUN: %target-swift-emit-silgen -module-name closures -enable-sil-ownership -parse-stdlib -parse-as-library %s | %FileCheck %s --check-prefix=GUARANTEED import Swift var zero = 0 // <r...
apache-2.0
9166e342e0033e52870924419809109a
48.975118
296
0.604353
3.368392
false
false
false
false
OverSwift/VisualReader
MangaReader/Classes/Presentation/Scenes/Reader/ReaderCollectionViewController.swift
1
3427
// // ReaderCollectionViewController.swift // MangaReader // // Created by Sergiy Loza on 25.01.17. // Copyright (c) 2017 Serhii Loza. All rights reserved. // import UIKit protocol ReaderCollectionViewProtocol: class { } class ReaderCollectionViewController: UICollectionViewController { // MARK: - Public...
bsd-3-clause
19c1bef44c041bf562f1a40704a465d1
27.090164
140
0.730376
5.379906
false
false
false
false
morbrian/udacity-nano-onthemap
OnTheMap/OnTheMapBaseViewController.swift
1
9521
// // OnTheMapBaseViewController.swift // OnTheMap // // Created by Brian Moriarty on 4/29/15. // Copyright (c) 2015 Brian Moriarty. All rights reserved. // import UIKit import FBSDKLoginKit // OnTheMapBaseViewController // Base class for each view of the On The Map TabBar Controller. // Configures top-bar button...
mit
a4b2edf8a00b11d89a7aceb932831c64
44.555024
190
0.652663
5.516222
false
false
false
false
yasuoza/graphPON
graphPON iOS/ViewControllers/ErrorAlertController.swift
1
2001
import UIKit import GraphPONDataKit class ErrorAlertController: UIAlertController { class func initWithError(error: NSError) -> ErrorAlertController { let (title, message) = self.buildTitleAndMessageFromError(error) let alert = ErrorAlertController( title: title, message: m...
mit
de8f92b2738a5c9a390d5f71bba1e6b4
47.804878
145
0.662169
5.452316
false
false
false
false
blue42u/swift-t
stc/tests/1672-autowrap-struct.swift
4
1100
// Check returning structs with nested arrays type person { string name; int age; } type megastruct { person people[]; person person; } type uberstruct { person person; megastruct mega; } (megastruct o) fmt(person person, person ppl[]) "turbine" "0" [ "set <<o>> [ dict create person <<person>> people <...
apache-2.0
5e8a7a945f491fd65c4386ee9dfe80ac
22.913043
101
0.618182
2.702703
false
false
false
false
caicai0/ios_demo
Broadcast/BroadcastStarter/BroadcastStarter/ViewController.swift
1
1934
// // ViewController.swift // BroadcastStarter // // Created by 李玉峰 on 2018/4/24. // Copyright © 2018年 cai. All rights reserved. // import UIKit import ReplayKit class ViewController: UIViewController,RPBroadcastActivityViewControllerDelegate { var broadcastActivityController:RPBroadcastActivityViewContr...
mit
291d066edfeb2b0fa207db083478735e
32.77193
186
0.641558
5.437853
false
false
false
false
dnevera/ImageMetalling
ImageMetalling-05/ImageMetalling-05/IMPHistogramRangeSolver.swift
1
1851
// // IMPHistogramRangeSolver.swift // ImageMetalling-05 // // Created by denis svinarchuk on 01.12.15. // Copyright © 2015 IMetalling. All rights reserved. // import UIKit /// /// Солвер вычисляет диапазон интенсивностей для интересных нам условий клиппинга. /// class IMPHistogramRangeSolver: IMPHistogramSolver...
mit
ae0778da2e0732af604493deaa8133b0
29.018519
104
0.61358
3.360996
false
false
false
false
pennlabs/penn-mobile-ios
PennMobile/Login/PennCashNetworkManager.swift
1
4115
// // PennCashNetworkManager.swift // PennMobile // // Created by Josh Doman on 5/14/19. // Copyright © 2019 PennLabs. All rights reserved. // import Foundation class PennCashNetworkManager { static let instance = PennCashNetworkManager() private init() {} typealias TransactionHandler = (_ csvData: D...
mit
3b2aa5649bf2059d4bf6204973219f03
33.864407
150
0.546913
4.138833
false
false
false
false
iCodeForever/ifanr
ifanr/ifanr/Controllers/Base/BasePageController.swift
1
2706
// // BasePageController.swift // ifanr // // Created by sys on 16/7/4. // Copyright © 2016年 ifanrOrg. All rights reserved. // import UIKit import Alamofire class BasePageController: UIViewController, ScrollViewControllerReusable { //MARK: --------------------------- life cycle --------------------------...
mit
bd6dcfd478854baab8a591af0c904861
26.585106
102
0.595064
5.84009
false
false
false
false
fletcher89/SwiftyRC
Sources/SwiftyRC/Types/Client/Commands/Client+PART.swift
1
1710
// // Client+PART.swift // SwiftyRC // // Created by Christian on 12.08.17. // public extension IRC.Client { // MARK: PART Methods /// Leaves a number of Channels with an optional message. /// /// - Parameters: /// - channel: Channels to leave /// - message: Part Message func part(_...
mit
0080306b0766b02c790e9824681bb7bb
27.5
89
0.553216
4.201474
false
false
false
false
gizmosachin/VolumeBar
Sources/VolumeBarStyle+Presets.swift
1
4820
// // VolumeBarStyle+Presets.swift // // Copyright (c) 2016-Present Sachin Patel (http://gizmosachin.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, inclu...
mit
a2fcbddd8bf95dafda8acadd19df27cc
42.035714
118
0.735477
3.654284
false
false
false
false
huangboju/Moots
算法学习/LeetCode/LeetCode/BackPack.swift
1
5740
// // BackPack.swift // LeetCode // // Created by xiAo_Ju on 2018/11/1. // Copyright © 2018 伯驹 黄. All rights reserved. // import Foundation /// 单次选择+最大体积 /// Given n items with size Ai, an integer m denotes the size of a backpack. How full you can fill this backpack? /// Notice /// You can not divide any item i...
mit
5c316a09a6499a8387290d35dad7d914
30.494318
240
0.566119
2.98814
false
false
false
false
grpc/grpc-swift
Sources/protoc-gen-grpc-swift/options.swift
1
5733
/* * Copyright 2017, gRPC Authors 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 appli...
apache-2.0
fd5f26b10a47286c6f95ec9dba7827d3
31.573864
88
0.648177
4.468433
false
false
false
false
grigaci/RateMyTalkAtMobOS
RateMyTalkAtMobOS/Classes/Helpers/Extensions/NSUserDefaults+Extra.swift
1
840
// // NSUserDefaults+Extra.swift // RateMyTalkAtMobOS // // Created by Bogdan Iusco on 10/12/14. // Copyright (c) 2014 Grigaci. All rights reserved. // import Foundation extension NSUserDefaults { var userUUID: String { get { let uuid = self.objectForKey("userUUID") as? String ...
bsd-3-clause
6a360e49efab3af14472a13b8be07d0b
23
70
0.544048
4.565217
false
false
false
false
VladislavJevremovic/WebcamViewer
WebcamViewer/Common/Extensions/UIKit/UIImageView+Extensions.swift
1
1282
// // Copyright © 2019 Vladislav Jevremović. All rights reserved. // import UIKit extension UIImageView { internal enum ImageError: Error { case download } func download( from url: URL, contentMode mode: UIView.ContentMode = .scaleAspectFit, completion: ((Result<UIImage, Error>) -> Void)? = ni...
mit
fc8447efc04b0af745d65f65350b44e1
25.666667
94
0.619531
4.398625
false
false
false
false
arcontrerasa/SwiftParseRestClient
ParseRestClient/ParseGenericResponse.swift
1
2238
// // ParseGenericResponse.swift // Pods // // Created by Armando Contreras on 9/15/15. // // import Foundation class ParseGenericResponse<T: ParseModelProtocol> { var response = [T]() var networkResponseState: NetworkResponseState = .Loading func parseJSON(data: NSData) -> [String: AnyO...
mit
70ca8614d2a08baa655daec9c44d6abb
27.705128
140
0.545576
5.192575
false
false
false
false
itsaboutcode/WordPress-iOS
WordPress/Classes/ViewRelated/What's New/Data store/AnnouncementsStore.swift
1
5360
import WordPressFlux import WordPressKit /// Genric type that renders announcements upon requesting them by calling `getAnnouncements()` protocol AnnouncementsStore: Observable { var announcements: [WordPressKit.Announcement] { get } var versionHasAnnouncements: Bool { get } func getAnnouncements() } prot...
gpl-2.0
5702a9adf68727d68e489a6122cb9ba4
31.095808
145
0.593657
5.59499
false
false
false
false
abunur/quran-ios
Quran/QuranImageHighlightingView.swift
1
3779
// // QuranImageHighlightingView.swift // Quran // // Created by Mohamed Afifi on 4/24/16. // // Quran for iOS is a Quran reading application for iOS. // Copyright (C) 2017 Quran.com // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public Licens...
gpl-3.0
ec0f19f8af7f46018dd597d87b3553c9
33.354545
125
0.622122
4.619804
false
false
false
false
netguru/inbbbox-ios
Inbbbox/Source Files/Views/Custom/FlashMessageView.swift
1
10384
// // FlasMessage.swift // Inbbbox // // Created by Blazej Wdowikowski on 11/2/16. // Copyright © 2016 Netguru Sp. z o.o. All rights reserved. // import UIKit final class FlashMessageView: UIView { fileprivate let defaultPadding:CGFloat = 15.0 /// Struct for styling message struct Style { ...
gpl-3.0
fd118efde858efe17da7dc9adad8fb76
39.877953
244
0.657036
5.519936
false
false
false
false
cburrows/swift-protobuf
Sources/SwiftProtobuf/BinaryDecoder.swift
1
55465
// Sources/SwiftProtobuf/BinaryDecoder.swift - Binary decoding // // 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/main/LICENSE.txt // // ---...
apache-2.0
ee89f0c1d728c2cf18ec3a226b837cc3
36.451047
216
0.562643
5.220727
false
false
false
false
movabletype/mt-data-api-sdk-swift
SDK/DataAPI.swift
1
85941
// // DataAPI.swift // MTDataAPI // // Created by CHEEBOW on 2015/03/23. // Copyright (c) 2015年 Six Apart, Ltd. All rights reserved. // import UIKit import Foundation import Alamofire import SwiftyJSON public class DataAPI: NSObject { //MARK: - Properties fileprivate(set) var token = "" fileprivate(s...
mit
ad25539d417e36d2d31f41ae8d6ecbaa
52.002468
252
0.61244
4.174781
false
false
false
false
swipe-org/swipe
sample/sample/SwipeVideoController.swift
3
11283
// // SwipeVideoController.swift // iheadunit // // Created by satoshi on 11/22/16. // Copyright © 2016 Satoshi Nakajima. All rights reserved. // import UIKit import AVFoundation class SwipeVideoController: UIViewController { static var playerItemContext = "playerItemContext" fileprivate var document = [S...
mit
5cc1359224846ef153192a65ae3944e6
38.725352
152
0.500709
5.51687
false
false
false
false
lorentey/swift
benchmark/single-source/Walsh.swift
18
2478
//===--- Walsh.swift ------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See https://swift.org/L...
apache-2.0
f0375fe4dc780bd3b614942c1b1d5c7c
25.645161
103
0.59887
3.308411
false
false
false
false
migue1s/habitica-ios
HabitRPG/Interactors/Tasks/TaskRepeatablesSummaryInteractor.swift
2
10462
// // TaskRepeatablesSummaryInteractor.swift // Habitica // // Created by Phillip Thelen on 20/03/2017. // Copyright © 2017 Phillip Thelen. All rights reserved. // import Foundation import ReactiveSwift private enum RepeatType { case never case daily case weekly case monthly case yearly f...
gpl-3.0
6478ee9f013cc0674aa60d596a5ffe5a
33.524752
126
0.539432
5.212257
false
false
false
false
kaich/CKAlertView
CKAlertView/Classes/Extension/CKCircularProgressAlertView.swift
1
6952
// // CKAlertView+MajorAction.swift // Pods // // Created by mac on 16/10/12. // // import Foundation import DACircularProgress public class CKCircularProgressAlertView : CKAlertView { public var alertTitle = "" { didSet { if let componentMaker = self.componentMaker as? CKAlertViewComponent...
mit
a8e6659e033059c8beace5bbd9ca9f14
30.318182
213
0.618287
5.176559
false
false
false
false
xedin/swift
stdlib/public/core/Hasher.swift
7
15028
//===----------------------------------------------------------------------===// // // This source file is part of the Swift.org open source project // // Copyright (c) 2014 - 2018 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
5dd23abf1842973a35456a269f6584b5
31.669565
80
0.63222
4.152528
false
false
false
false
andr3a88/TryNetworkLayer
TryNetworkLayer/Controllers/Users/UsersCoordinator.swift
1
1101
// // UsersCoordinator.swift // TryNetworkLayer // // Created by Andrea Stevanato on 13/03/2020. // Copyright © 2020 Andrea Stevanato. All rights reserved. // import UIKit final class UsersCoordinator: Coordinator { var window: UIWindow var navigationController: UINavigationController! var userDetai...
mit
e07e18b44832933b9fa156deef29d75b
28.72973
109
0.741818
5.5
false
false
false
false
LouZhuang/Test
hard/hard/AppDelegate.swift
1
4581
// // AppDelegate.swift // hard // // Created by huanglch on 2017/3/9. // Copyright © 2017年 huanglch. All rights reserved. // import UIKit import CoreData @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didF...
mit
8f3554962e77dafa8c37a225a42a68bc
48.225806
285
0.685234
5.831847
false
false
false
false
zhiquan911/chance_btc_wallet
chance_btc_wallet/chance_btc_wallet/viewcontrollers/public/RootNavigationController.swift
1
1621
// // RootNavigationController.swift // Chance_wallet // // Created by Chance on 15/11/16. // Copyright © 2015年 Chance. All rights reserved. // import UIKit class RootNavigationController: UINavigationController { override func viewDidLoad() { super.viewDidLoad() self.setupNavigationBar() ...
mit
cb7a7ac9dc8830af82b83a02e1fcd7ec
27.321429
77
0.634931
5.60424
false
false
false
false
aiqiuqiu/Tuan
Tuan/Deal/HMRegionsViewController.swift
2
3550
// // HMRegionsViewController.swift // Tuan // // Created by nero on 15/5/16. // Copyright (c) 2015年 nero. All rights reserved. // import UIKit class HMRegionsViewController: UIViewController { lazy var menu:HMDropdownMenu = { // 顶部的view var topView = self.view.subviews.first! ...
mit
c5f5692df51c3448db2964b2d2537936
32.455446
180
0.622854
4.504
false
false
false
false
natecook1000/swift
test/SILGen/reabstract_lvalue.swift
3
2893
// RUN: %target-swift-emit-silgen -module-name reabstract_lvalue -enable-sil-ownership %s | %FileCheck %s struct MyMetatypeIsThin {} // CHECK-LABEL: sil hidden @$S17reabstract_lvalue19consumeGenericInOut{{[_0-9a-zA-Z]*}}F : $@convention(thin) <T> (@inout T) -> () func consumeGenericInOut<T>(_ x: inout T) {} // CHEC...
apache-2.0
205642e7526212b4780c36f5e0efc63b
59.270833
208
0.66298
3.379673
false
false
false
false
kstaring/swift
stdlib/public/SDK/Foundation/DateComponents.swift
4
16295
//===----------------------------------------------------------------------===// // // 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
69eba34dc452cfe8dd3894a5c1b12245
44.901408
544
0.625713
4.399298
false
false
false
false
Polidea/RxBluetoothKit
ExampleApp/ExampleApp/Screens/PeripheralRead/PeripheralReadView.swift
2
1769
import UIKit class PeripheralReadView: UIView { init() { super.init(frame: .zero) backgroundColor = .systemBackground setupLayout() } required init?(coder: NSCoder) { nil } // MARK: - Subviews let serviceUuidTextField: UITextField = { let textField = UITextField(...
apache-2.0
5e350d90bf013dbf6c164087d470625c
28
130
0.654042
5.443077
false
false
false
false
Google-IO-Extended-Grand-Rapids/conference_ios
ConferenceApp/ConferenceApp/SessionDetailViewController.swift
1
2264
// // SessionDetailViewController.swift // ConferenceApp // // Created by Dan McCracken on 4/2/15. // Copyright (c) 2015 GR OpenSource. All rights reserved. // import UIKit class SessionDetailViewController: UITableViewController { var conferencesDao: ConferencesDao! var detailItem: Session? { ...
apache-2.0
0c7642bc67b9401125fa35b1d0d6cdc3
30.887324
128
0.611307
5.16895
false
false
false
false
Geor9eLau/WorkHelper
Carthage/Checkouts/SwiftCharts/SwiftCharts/ChartLineModel.swift
1
1413
// // ChartLineModel.swift // swift_charts // // Created by ischuetz on 11/04/15. // Copyright (c) 2015 ivanschuetz. All rights reserved. // import UIKit /// Models a line to be drawn in a chart based on an array of chart points. public struct ChartLineModel<T: ChartPoint> { /// The array of chart points...
mit
f2b0de4ce53b724a6b6c3989c2222f1a
29.717391
155
0.665251
4.71
false
false
false
false
dcunited001/Spectra
Pod/Classes/EncodableData.swift
1
7188
// // InputGroup.swift // Spectra // // Created by David Conner on 9/30/15. // Copyright © 2015 Spectra. All rights reserved. // import Metal import simd public struct InputParams { public var index:Int public var offset:Int = 0 } public typealias SceneEncodableDataMap = [String: EncodableData] //static...
mit
5b0010751cb0ef982889d2fe2377a9f3
43.91875
141
0.715737
4.390348
false
false
false
false
taqun/TodoEver
TodoEver/Classes/Model/Managed/TDEMNote.swift
1
2417
// // TDEMNote.swift // TodoEver // // Created by taqun on 2015/06/01. // Copyright (c) 2015年 envoixapp. All rights reserved. // import UIKit import CoreData import SWXMLHash @objc(TDEMNote) class TDEMNote: NSManagedObject { @NSManaged var title: String @NSManaged var guid: String @NSManaged var...
mit
e22683024943c5239d7eef01fa37c0f4
21.361111
90
0.522567
4.375
false
false
false
false
lintaoSuper/Kingfisher
Kingfisher/KingfisherOptions.swift
25
3914
// // KingfisherOptions.swift // Kingfisher // // Created by Wei Wang on 15/4/6. // // Copyright (c) 2015 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 Soft...
mit
7143836e60fb59ec23324a359541ba5c
44.511628
307
0.718191
4.698679
false
false
false
false
Dimillian/HackerSwifter
Hacker Swifter/Hacker Swifter/HTTP/Cache.swift
1
5270
// // Cache.swift // HackerSwifter // // Created by Thomas Ricouard on 16/07/14. // Copyright (c) 2014 Thomas Ricouard. All rights reserved. // import Foundation private let _Cache = Cache() private let _MemoryCache = MemoryCache() private let _DiskCache = DiskCache() public typealias cacheCompletion = (AnyObjec...
mit
6652a989d9f461c55dc0f7d7fb57baad
28.606742
120
0.605123
5.171737
false
false
false
false
NickAger/NADocumentPicker
Example/Pods/BrightFutures/Sources/BrightFutures/SequenceType+BrightFutures.swift
1
6322
// The MIT License (MIT) // // Copyright (c) 2014 Thomas Visser // // 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, c...
mit
ff7f69a976d9746a4717b7f90d69463f
49.576
234
0.655805
4.439607
false
false
false
false
wireapp/wire-ios
Wire-iOS/Sources/UserInterface/ConnectRequests/IncomingConnectionView.swift
1
6804
// // Wire // Copyright (C) 2016 Wire Swiss GmbH // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This progr...
gpl-3.0
0ce445ebe10896c0698a4684d8c9a356
42.615385
121
0.721046
5.408585
false
false
false
false
mattgallagher/CwlSignal
Sources/CwlSignal/CwlSignalReactive.swift
1
154005
// // CwlSignalReactive.swift // CwlSignal // // Created by Matt Gallagher on 2016/09/08. // Copyright © 2016 Matt Gallagher ( https://www.cocoawithlove.com ). All rights reserved. // // Permission to use, copy, modify, and/or distribute this software for any // purpose with or without fee is hereby granted, prov...
isc
1a3b3c9e93aacbf75b5c0f3a7ca99717
49.02924
660
0.693311
3.626024
false
false
false
false
mercadopago/px-ios
MercadoPagoSDK/MercadoPagoSDK/Core/PaymentMethodSelector/ViewModel/PXPaymentSelectorViewModel+InitFlow.swift
1
2580
import Foundation // MARK: Init Flow extension PXPaymentMethodSelectorViewModel { func createInitFlow() { // Create init flow props. let initFlowProperties: InitFlowProperties initFlowProperties.checkoutPreference = checkoutPreference initFlowProperties.paymentData = paymentData ...
mit
e2f422139501b6c9192ae57305860876
39.952381
132
0.722481
5.058824
false
true
false
false
infobip/mobile-messaging-sdk-ios
Classes/Vendor/PSOperations/OperationCondition.swift
1
3908
/* Copyright (C) 2015 Apple Inc. All Rights Reserved. See LICENSE.txt for this sample’s licensing information Abstract: This file contains the fundamental logic relating to Operation conditions. */ import Foundation public let OperationConditionKey = "OperationCondition" /** A protocol for defining conditions t...
apache-2.0
9bad6b9e936b64bfa0cc6b5ddb25f7fb
33.875
127
0.649258
5.285521
false
false
false
false
johnno1962c/swift-corelibs-foundation
Foundation/XMLElement.swift
5
11483
// 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
41bceaf01fe6d8ba35aa8fee9ed6867c
33.175595
179
0.617086
4.639596
false
false
false
false
AngryLi/Onmyouji
Carthage/Checkouts/IQKeyboardManager/Demo/Swift_Demo/ViewController/TextFieldViewController.swift
1
5324
// // TextFieldViewController.swift // IQKeyboard // // Created by Iftekhar on 23/09/14. // Copyright (c) 2014 Iftekhar. All rights reserved. // import UIKit import IQKeyboardManagerSwift import IQDropDownTextField class TextFieldViewController: UIViewController, UITextViewDelegate, UIPopoverPresentationControlle...
mit
ed6c3f587145f8bf3ddae688776a98c7
38.437037
130
0.675056
5.988751
false
false
false
false
QuazerTV/TinyPlayer
Examples/Demo/TinyPlayerDemo/RootViewModel.swift
2
2775
// // RootViewModel.swift // TinyPlayerDemo // // Created by Xi Chen on 2017/2/26. // Copyright © 2017年 CocoaPods. All rights reserved. // import Foundation import UIKit import TinyPlayer class RootViewModel { internal weak var viewDelegate: RootViewUpdateDelegate? internal var playButtonDisplay...
mit
39bf21a6c1c1d4e7b24b4073f5083d79
22.692308
93
0.67316
5.067642
false
false
false
false
filipealva/WWDC15-Scholarship
Filipe Alvarenga/View/GreetingsView.swift
1
1925
// // GreetingsView.swift // Filipe Alvarenga // // Created by Filipe Alvarenga on 23/04/15. // Copyright (c) 2015 Filipe Alvarenga. All rights reserved. // import UIKit class GreetingsView: UIView { @IBOutlet weak var shimmeringView: FBShimmeringView! @IBOutlet weak var scrollDownArrow: UIImageView! ...
mit
b59eafcc5cc4ff46b391ee1db6215125
31.627119
126
0.698701
5.106101
false
false
false
false
infakt/DrawerController
KitchenSink/ExampleFiles/VisualStateManager/ExampleDrawerVisualStateManager.swift
4
4193
// Copyright (c) 2014 evolved.io (http://evolved.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 rights // to use, copy, modify...
mit
38321b06a3365e4bde325e0b594d2723
42.226804
125
0.664202
5.767538
false
false
false
false
ahoppen/swift
test/Generics/sr16040.swift
5
1548
// RUN: %target-swift-frontend -typecheck %s -disable-availability-checking -debug-generic-signatures 2>&1 | %FileCheck %s public protocol View { associatedtype Body : View var body: Body { get } } public struct Text : View { public init(_: String) {} public var body: Self { return self } } public protocol D...
apache-2.0
bb5c09dd470ed1981a61e45ae536ea62
34.181818
214
0.76938
4.461095
false
false
false
false
dreamsxin/swift
test/1_stdlib/Runtime.swift
2
43754
// RUN: rm -rf %t && mkdir %t // // RUN: %target-build-swift -parse-stdlib -module-name a %s -o %t.out // RUN: %target-run %t.out // REQUIRES: executable_test import Swift import StdlibUnittest import SwiftShims @warn_unused_result @_silgen_name("swift_demangle") public func _stdlib_demangleImpl( mangledName: Un...
apache-2.0
702516af2522fe11188bdf711431abe3
26.554924
158
0.655051
3.744595
false
false
false
false
jawwad/swift-algorithm-club
Segment Tree/LazyPropagation/LazyPropagation.playground/Contents.swift
3
5062
public class LazySegmentTree { private var value: Int private var leftBound: Int private var rightBound: Int private var leftChild: LazySegmentTree? private var rightChild: LazySegmentTree? // Interval Update Lazy Element private var lazyValue: Int // M...
mit
78f5d6f58dbee2c2a7f62b69ffcb61b1
38.248062
124
0.629593
4.503559
false
false
false
false
dst-hackathon/socialradar-ios
SocialRadar/SocialRadar/SignupViewController.swift
1
6956
// // SignupViewController.swift // SocialRadar // // Created by Sasitorn Aramcharoenrat on 10/31/2557 BE. // Copyright (c) 2557 dsthackathon. All rights reserved. // import UIKit class SignupViewController: UIViewController { @IBOutlet weak var txtUsername: UITextField! @IBOutlet weak var txtPassword: U...
mit
6c0b18437e49ae4c8a4a1947b82f37ce
36.397849
172
0.543416
5.753515
false
false
false
false
VKoskiv/NoMansCanvas
Sources/App/Models/Canvas.swift
1
3978
// // Canvas.swift // place // // Created by Valtteri Koskivuori on 18/06/2017. // // import Vapor import MySQLProvider class Canvas { //Connection is a key-val pair; User:WebSocket var connections: [User: WebSocket] var tiles: [Tile] = [] var width: Int = 250 var height: Int = 250 //Colors, people may add...
mit
1c0eaa7c7c2bacae01565709563d06c7
28.466667
95
0.629965
3.0553
false
false
false
false
lioonline/Swift
SpriteKit/SpriteKit/GameViewController.swift
1
2021
// // GameViewController.swift // SpriteKit // // Created by Carlos Butron on 07/12/14. // Copyright (c) 2014 Carlos Butron. // // This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public // License as published by the Free Software Foundation, either versi...
gpl-3.0
65bc55bed52c85175018ebec1c3d94e5
32.7
121
0.676398
4.929268
false
false
false
false
RocketChat/Rocket.Chat.iOS
Rocket.ChatTests/Controllers/MessagesSizingViewModelSpec.swift
1
1736
// // MessagesSizingViewModelSpec.swift // Rocket.ChatTests // // Created by Rafael Streit on 25/09/18. // Copyright © 2018 Rocket.Chat. All rights reserved. // import Foundation import XCTest @testable import Rocket_Chat final class MessagesSizingViewModelSpec: XCTestCase { func testInitialState() { ...
mit
022a7ece5553e52b5e7a68c2fda9a56a
30.545455
80
0.655331
3.979358
false
true
false
false
frootloops/swift
test/DebugInfo/thunks.swift
1
876
// RUN: %target-swift-frontend -emit-ir -g %s -o - | %FileCheck %s // RUN: %target-swift-frontend -emit-sil -emit-verbose-sil -g %s -o - | %FileCheck %s --check-prefix=SIL-CHECK // REQUIRES: objc_interop import Foundation class Foo : NSObject { dynamic func foo(_ f: (Int64) -> Int64, x: Int64) -> Int64 { return ...
apache-2.0
1ea392cf33c8cfe665e36f61d163899e
32.692308
110
0.579909
2.825806
false
false
false
false
NathanE73/Blackboard
Sources/BlackboardFramework/Storyboards/StoryboardSegue.swift
1
2697
// // Copyright (c) 2022 Nathan E. Walczak // // MIT License // // 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...
mit
62bac1529b57f1b63728329b10386021
29.303371
99
0.651094
4.903636
false
false
false
false
itsjingun/govhacknz_mates
Mates/Data/Models/MTSParseGroup.swift
1
980
// // MTSParseGroup.swift // Mates // // Created by Jingun Lee on 4/07/15. // Copyright (c) 2015 Governmen. All rights reserved. // import UIKit class MTSParseGroup: PFObject, PFSubclassing { static let kKeyOwner = "owner" static let kKeyUsers = "users" static let kKeyLocation = "location" st...
gpl-2.0
7d9f6e9e2d810fc26f673a3a9dea7f28
22.902439
61
0.626531
4.298246
false
false
false
false
klesh/cnodejs-swift
CNode/Options/UserViewController.swift
1
2644
// // UserViewController.swift // CNode // // Created by Klesh Wong on 1/11/16. // Copyright © 2016 Klesh Wong. All rights reserved. // import UIKit import SwiftyJSON class UserViewController : UITableViewController { var header: UserHeaderView! var loginname: String! var user: JSON! let menuItems...
apache-2.0
9173fc1ac6a22df38e759e9b65f8bf6e
32.714286
118
0.665125
5.128458
false
false
false
false
mownier/Umalahokan
Umalahokan/Source/UI/Chat/ChatDisplayData.swift
1
1466
// // ChatData.swift // Umalahokan // // Created by Mounir Ybanez on 17/03/2017. // Copyright © 2017 Ner. All rights reserved. // import UIKit protocol ChatDisplayData { var message: String { set get } var isMe: Bool { set get } var isAnimatable: Bool { set get } } struct ChatDisplayDataItem: ChatDi...
mit
a82896ff761622fc968fd0f44bf50da2
26.641509
274
0.588396
4.185714
false
false
false
false
qingpengchen2011/Cosmos
Cosmos/CosmosAccessibility.swift
1
2788
/** Functions for making cosmos view accessible. */ struct CosmosAccessibility { /** Makes the view accesible by settings its label and using rating as value. */ static func update(view: UIView, rating: Double, text: String?, settings: CosmosSettings) { view.isAccessibilityElement = true vi...
mit
4ae78634d0ff4d6cde387a5652fb287c
28.041667
100
0.658537
4.701518
false
false
false
false
watr/SwiftString-VersionNumberComparison
String+VersionNumber.swift
1
1025
// // String+VersionNumber.swift // // Created by hashimoto wataru on 2017/02/28. // Copyright © 2017年 wataruhash.info. All rights reserved. // import Foundation extension String { func compareVersion(with anotherVersionString: String) -> ComparisonResult { let string1 = self let string2 = anot...
unlicense
695c1c41fd2722fc898addd9ec231596
29.969697
80
0.59002
4.367521
false
false
false
false
bm842/Brokers
Sources/OandaRestV1Trade.swift
2
3241
/* The MIT License (MIT) Copyright (c) 2016 Bertrand Marlier 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
a370e1031ba345dbc1eae2611218afc6
32.071429
113
0.595495
5.079937
false
false
false
false
yasuoza/graphPON
GraphPonDataKit/Models/GPUserDefaults.swift
1
1215
import Foundation public class GPUserDefaults: NSObject { static let suiteName = NSBundle(forClass: GPUserDefaults.self).objectForInfoDictionaryKey("GraphPonAppGroupID") as! String private static let defaults = NSUserDefaults(suiteName: suiteName)! public class func sharedDefaults() -> NSUserDefaults { ...
mit
0252be6144df09adbd1e02050c53d22f
34.735294
126
0.671605
5.67757
false
false
false
false
tkremenek/swift
test/SILGen/objc_bridging_peephole.swift
13
30307
// RUN: %target-swift-emit-silgen(mock-sdk: %clang-importer-sdk) -module-name objc_bridging_peephole %s | %FileCheck %s // REQUIRES: objc_interop import Foundation import OtherSubscripts import objc_generics func useNS(_ : NSString) {} func useOptNS(_ : NSString?) {} func makeNS() -> NSString { return "help" as NSSt...
apache-2.0
01ca527b2d71697dc035c16c25bc8b92
50.194257
148
0.627974
3.871615
false
true
false
false
flypaper0/ethereum-wallet
ethereum-wallet/Classes/BusinessLayer/Services/Channel/Channel.swift
1
1067
// Copyright © 2018 Conicoin LLC. All rights reserved. // Created by Artur Guseinov import Foundation class Channel<SignalData> { private var observers: Set<Observer<SignalData>> private var queue: DispatchQueue init(queue: DispatchQueue) { self.queue = queue self.observers = Set<Observer<SignalData...
gpl-3.0
13cd666a94770e8a4c2080929e9c3801
22.173913
71
0.679174
4.19685
false
false
false
false
sivu22/AnyTracker
AnyTracker/ItemSumViewController.swift
1
7458
// // ItemSumViewController.swift // AnyTracker // // Created by Cristian Sava on 27/08/16. // Copyright © 2016 Cristian Sava. All rights reserved. // import UIKit class ItemSumViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, UITextFieldDelegate, NotifyItemUpdate, CellKeyboardEvent { ...
mit
0d65b802988f27b6d17226b784fb53de
33.845794
163
0.611908
5.487123
false
false
false
false
TakuSemba/DribbbleSwiftApp
Carthage/Checkouts/RxSwift/Rx.playground/Pages/Error_Handling_Operators.xcplaygroundpage/Contents.swift
1
4217
/*: > # IMPORTANT: To use **Rx.playground**: 1. Open **Rx.xcworkspace**. 1. Build the **RxSwift-OSX** scheme (**Product** → **Build**). 1. Open **Rx** playground in the **Project navigator**. 1. Show the Debug Area (**View** → **Debug Area** → **Show Debug Area**). ---- [Previous](@previous) - [Table of Contents...
apache-2.0
a6ecd58046c54123743f0be976cbfcac
30.641221
195
0.64029
4.764368
false
false
false
false
WeirdMath/TimetableSDK
Sources/Room.swift
1
3479
// // Room.swift // TimetableSDK // // Created by Sergej Jaskiewicz on 07.03.2017. // // import Foundation import SwiftyJSON /// A room. Every `Event` takes place in some room. public final class Room : JSONRepresentable, TimetableEntity { public enum Seating : Int { case theater = 0, amphitheater, ro...
mit
4c99386966c9b344572559bf823c1d5b
31.514019
106
0.579477
4.506477
false
false
false
false
a2/arex-7
ArexKit/Models/Pistachio/MessagePackAdapter.swift
1
2275
import MessagePack import Pistachio import Result import ValueTransformer private let dictionaryTransformer: ReversibleValueTransformer<[String : MessagePackValue], MessagePackValue, ErrorType> = { let transformClosure: [String : MessagePackValue] -> Result<MessagePackValue, ErrorType> = { dictionary in va...
mit
de2b49113ad4115fe491b57a045136c5
40.363636
139
0.699341
5.455635
false
false
false
false
EZ-NET/CodePiece
XcodeSourceEditorExtension/SendToCodePieceCommand.swift
1
1685
// // SendToCodePieceCommand.swift // XcodeSourceEditorExtension // // Created by Tomohiro Kumagai on 2020/02/21. // Copyright © 2020 Tomohiro Kumagai. All rights reserved. // import AppKit import XcodeKit import CodePieceCore class SendToCodePieceCommand: NSObject, XCSourceEditorCommand { func perform(w...
gpl-3.0
ceec4313a25e52e01260129a897f1af1
22.388889
124
0.702494
4.137592
false
false
false
false
RyanTech/SwinjectMVVMExample
ExampleViewModelTests/ImageDetailViewModelSpec.swift
1
3257
// // ImageDetailViewModelSpec.swift // SwinjectMVVMExample // // Created by Yoichi Tagaya on 8/25/15. // Copyright © 2015 Swinject Contributors. All rights reserved. // import Quick import Nimble import ReactiveCocoa import ExampleModel @testable import ExampleViewModel class ImageDetailViewModelSpec: QuickSpec ...
mit
ced522a97e63966619e91c0f4445be7e
35.58427
117
0.601966
4.896241
false
false
false
false
acalvomartinez/RandomUser
RandomUserTests/AcceptanceTestCase.swift
1
891
// // AcceptanceTestCase.swift // RandomUser // // Created by Toni on 03/07/2017. // Copyright © 2017 Random User Inc. All rights reserved. // import Foundation import KIF class AcceptanceTestCase: KIFTestCase { fileprivate var originalRootViewController: UIViewController? fileprivate var rootViewControlle...
apache-2.0
d60a543c268159533096f7cb9ea6e69a
23.722222
80
0.740449
5.426829
false
true
false
false
younata/RSSClient
TethysKit/Services/FeedService/RealmFeedService.swift
1
7926
import Result import CBGPromise import RealmSwift struct RealmFeedService: FeedService { private let realmProvider: RealmProvider private let updateService: UpdateService private let mainQueue: OperationQueue private let workQueue: OperationQueue init(realmProvider: RealmProvider, updateS...
mit
1a3c3b575eb7458f524fce460ad42d89
36.742857
120
0.556901
4.926041
false
false
false
false
StephenTurton/RWPickFlavor
RWPickFlavor/PickFlavorViewController.swift
1
2734
// // ViewController.swift // IceCreamShop // // Created by Joshua Greene on 2/8/15. // Copyright (c) 2015 Razeware, LLC. All rights reserved. // import UIKit import Alamofire import MBProgressHUD public class PickFlavorViewController: UIViewController, UICollectionViewDelegate { // MARK: Instance Variables ...
mit
0eb4c726e36a01f74d30831a9e24cfd1
23.19469
113
0.629115
5.081784
false
false
false
false
rajeejones/SavingPennies
Pods/IBAnimatable/IBAnimatable/FlipAnimator.swift
5
8864
// // Created by Tom Baranes on 05/05/16. // Copyright © 2016 IBAnimatable. All rights reserved. // import UIKit public class FlipAnimator: NSObject, AnimatedTransitioning { // MARK: - AnimatorProtocol public var transitionAnimationType: TransitionAnimationType public var transitionDuration: Duration = defaul...
gpl-3.0
505f2f1910156a0a224feb79ae883441
40.806604
160
0.727068
4.244732
false
false
false
false
bigxodus/candlelight
candlelight/screen/main/controller/ConfigController.swift
1
5073
// // ConfigureController.swift // candlelight // // Created by Lawrence on 2017. 1. 2.. // Copyright © 2017년 Waynlaw. All rights reserved. // import UIKit class ConfigController: UIViewController { static let collectionReuseIdentifier = "collectionCell" let pieMenuLocManager: PieMenuLocationMan...
apache-2.0
c71e0abf618ed77f66807be07d38a2f5
34.230769
135
0.6447
4.630515
false
false
false
false
hironytic/Moltonf-iOS
Moltonf/ViewModel/TalkViewModel.swift
1
3942
// // TalkViewModel.swift // Moltonf // // Copyright (c) 2016 Hironori Ichimiya <hiron@hironytic.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 with...
mit
8721839ae300b0f19c8e91cba3bce618
40.93617
117
0.669457
4.648585
false
false
false
false
Otbivnoe/Framezilla
Tests/ContainerTests.swift
1
12660
// // ContainerTests.swift // FramezillaTests // // Created by Nikita Ermolenko on 26/12/2017. // import XCTest import Framezilla class ContainerTests: BaseTest { func testContainerConfigurationFromTopToBottom() { let content1 = UIView() let content2 = UIView() let content3 = UIView() ...
mit
16ad574012541f19c7ec866c22c118da
37.247734
136
0.559479
4.093113
false
true
false
false
marty-suzuki/QiitaApiClient
QiitaApiClient/Extension/NSHTTPURLResponse+QiitaApiClient.swift
1
695
// // NSHTTPURLResponse+QiitaApiClient.swift // QiitaApiClient // // Created by Taiki Suzuki on 2016/08/21. // // import Foundation extension NSHTTPURLResponse { enum StatusCodeType: Int { case Unknown = 0 case OK = 200 case Created = 201 case NoContent = 204 case BadReq...
mit
4b8a49b4f1be2e45a12ba43b9bc53c55
21.451613
67
0.614388
4.633333
false
false
false
false
dbgrandi/EulerKit
euler/EulerKit/BigNum.swift
1
1599
enum BigNumSign { case Negative case Positive } struct BigNum : CustomDebugStringConvertible { let sign:BigNumSign let digits:[Int] init(sign:BigNumSign, digits:[Int]) { self.sign = sign self.digits = digits } init(i:Int) { if i==0 { self.init(sign:BigN...
mit
23c274b855930d184a9208e6ab029fd9
22.514706
104
0.50469
3.967742
false
false
false
false
silt-lang/silt
Sources/Drill/Invocation.swift
1
6786
/// Invocation.swift /// /// Copyright 2017-2018, The Silt Language Project. /// /// This project is released under the MIT license, a copy of which is /// available in the repository. import Foundation import Rainbow import Lithosphere import Crust import Moho import Mantle import Seismography import OuterCore impor...
mit
df03ee7e142d2186635627acd89df224
32.594059
80
0.607427
4.35279
false
false
false
false
yangyueguang/MyCocoaPods
CarryOn/SwiftNotice.swift
1
15570
import UIKit import Foundation private let sn_topBar: Int = 1001 public enum NoticeType{ case success case error case info } public extension UIResponder { @discardableResult func pleaseWaitWithImages(_ imageNames: Array<UIImage>, timeInterval: Int) -> UIWindow{ return SwiftNotice.wait(im...
mit
b54510717eb9ee60a079ca7647f01092
40.631016
153
0.626654
4.636689
false
false
false
false
bizz84/MVCoreDataStack
MVCoreDataStackDemo/Classes/ViewController.swift
1
2871
// // ViewController.swift // MVCoreDataStack // // Created by Andrea Bizzotto on 19/10/2015. // Copyright © 2015 musevisions. All rights reserved. // import UIKit import CoreData import MVCoreDataStack class ViewController: UIViewController { @IBOutlet var tableView: UITableView! @IBOutlet var segmented...
mit
03a478d19a680cde0a2ee57874117d49
26.075472
197
0.609756
5.717131
false
false
false
false
Pyroh/CoreGeometry
Sources/CoreGeometry/Extensions/CGSizeExtension.swift
1
19599
// // CGSizeExtension.swift // // CoreGeometry // // MIT License // // Copyright (c) 2020 Pierre Tacchi // // 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, inclu...
mit
08be40c69489f07d723f6f1e978c5cc3
35.979245
138
0.624216
3.932384
false
false
false
false
icanzilb/EventBlankApp
EventBlank/EventBlank/ViewControllers/Schedule/SessionDetails/SessionDetailsViewController.swift
2
3808
// // SessionDetailsViewController.swift // EventBlank // // Created by Marin Todorov on 6/25/15. // Copyright (c) 2015 Underplot ltd. All rights reserved. // import UIKit import SQLite class SessionDetailsViewController: UIViewController, UITableViewDataSource, UITableViewDelegate { var session: Row! //set ...
mit
d25c6f10b29af037d763816a27bb191f
36.712871
131
0.589023
5.760968
false
false
false
false
PSSWD/psswd-ios
psswd/AuthSigninConfirmVC.swift
1
2844
// // AuthSigninConfirmVC.swift // psswd // // Created by Daniil on 09.01.15. // Copyright (c) 2015 kirick. All rights reserved. // import UIKit class AuthSigninConfirmVC: UITableViewController { @IBOutlet weak var confirmCode_field: UITextField! var masterpass = "" override func viewDidLoad() { super.vi...
gpl-2.0
f14b30f7c2ae6d54c9d559b677bc87b1
31.494118
175
0.679218
3.388957
false
false
false
false