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
dclelland/AudioKit
AudioKit/Common/Nodes/Effects/Filters/Low Pass Butterworth Filter/AKLowPassButterworthFilter.swift
1
3848
// // AKLowPassButterworthFilter.swift // AudioKit // // Created by Aurelius Prochazka, revision history on Github. // Copyright (c) 2016 Aurelius Prochazka. All rights reserved. // import AVFoundation /// These filters are Butterworth second-order IIR filters. They offer an almost /// flat passband and very good...
mit
63c4e8b1ff65657aa89dd6153c81705f
31.066667
99
0.632796
5.568741
false
false
false
false
justindarc/firefox-ios
Account/SyncAuthState.swift
2
7000
/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import Foundation import Shared import XCGLogger import SwiftyJSON private let CurrentSyncAuthStateCacheVersion =...
mpl-2.0
d1cc62665ac8c6af3d25a90f32b00fe0
45.052632
193
0.595429
5.422153
false
false
false
false
STShenZhaoliang/iOS-GuidesAndSampleCode
精通Swift设计模式/Chapter 20/Command/Command/Calculator.swift
1
1341
import Foundation; class Calculator { private(set) var total = 0; typealias CommandClosure = (Calculator -> Void); private var history = [CommandClosure](); private var queue = dispatch_queue_create("arrayQ", DISPATCH_QUEUE_SERIAL); func add(amount:Int) { addMacro(Calculator.add, amoun...
mit
1a020ef4ff500f2e4fd600d6193c7bd7
26.9375
79
0.545116
4.396721
false
false
false
false
optimizely/swift-sdk
Sources/Data Model/Audience/SemanticVersion.swift
1
4941
// // Copyright 2020-2021, Optimizely, Inc. and 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 a...
apache-2.0
7dc8d55a3491485fb5892401906ae265
35.330882
145
0.608176
4.678977
false
false
false
false
slightair/iOSArchitectures
Architectures.playground/Sources/ColorItemCell.swift
1
958
import Foundation import UIKit public class ColorItemCell: UITableViewCell { let colorView = UIView() let nameLabel = UILabel() override public init(style: UITableViewCellStyle, reuseIdentifier: String?) { super.init(style: style, reuseIdentifier: reuseIdentifier) addSubview(colorView) ...
mit
681ccfc20bec46a55af55a842da6d47e
28.9375
113
0.663883
4.394495
false
false
false
false
bigL055/SPKit
Sources/UIControl/UIControl.swift
1
9905
// // SPKit // // Copyright (c) 2017 linhay - https:// github.com/linhay // // 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 righ...
apache-2.0
eef0e1514dcdd80239650cc78d6aa15b
36.380228
107
0.661784
4.557719
false
false
false
false
SmallElephant/FEAlgorithm-Swift
11-GoldenInterview/11-GoldenInterview/Tree/BinaryTree.swift
1
3077
// // BinaryTree.swift // 11-GoldenInterview // // Created by keso on 2017/5/13. // Copyright © 2017年 FlyElephant. All rights reserved. // import Foundation class BinaryTree { func treeNodeHeight(treeNode:TreeNode?) -> Int { if treeNode == nil { return 0 } ret...
mit
4322b65b3919621114b46cb80159c255
23.290323
120
0.500664
4.584475
false
false
false
false
xuephil/Perfect
Connectors/PostgreSQL/PostgreSQLTests/PostgreSQLTests.swift
2
3536
// // PostgreSQLTests.swift // PostgreSQLTests // // Created by Kyle Jessup on 2015-10-19. // Copyright © 2015 PerfectlySoft. All rights reserved. // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU Affero General Public License as // published by the Free Sof...
agpl-3.0
d9cbec62b60f9a1f90df7b91d43d74a3
29.474138
118
0.691372
3.231261
false
true
false
false
vulgur/WeeklyFoodPlan
WeeklyFoodPlan/WeeklyFoodPlan/Models/Managers/FoodManager.swift
1
2059
// // FoodManager.swift // WeeklyFoodPlan // // Created by vulgur on 2017/3/15. // Copyright © 2017年 MAD. All rights reserved. // import Foundation import RealmSwift class FoodManager { static let shared = FoodManager() let realm = try! Realm() func randomFood(of when: Food.When) -> Food { ...
mit
99120022bb446174d828a3c994afe30a
31.634921
109
0.588035
4.031373
false
false
false
false
MobileToolkit/Tesseract
TesseractTests/RestfulClient+PUT_Tests.swift
2
1678
// // RestfulClient+PUT_Tests.swift // Tesseract // // Created by Sebastian Owodzin on 10/09/2015. // Copyright © 2015 mobiletoolkit.org. All rights reserved. // import XCTest @testable import Tesseract class RestfulClient_PUT_Tests: XCTestCase { override func setUp() { super.setUp() ...
mit
5943801d2452a3076ae4e03f16615fa0
31.25
134
0.537865
4.805158
false
true
false
false
domenicosolazzo/practice-swift
Views/NavigationController/Fonts/FontSizesViewController.swift
1
1478
// // FontSizesViewController.swift // Fonts // // Created by Domenico on 23.04.15. // Copyright (c) 2015 Domenico Solazzo. All rights reserved. // import UIKit class FontSizesViewController: UITableViewController { var font: UIFont! fileprivate var pointSizes: [CGFloat] { struct Constants { ...
mit
8ebe637786837f31a15b133292bae5bc
29.791667
101
0.61908
5.010169
false
false
false
false
Athlee/ATHKit
Examples/ATHImagePickerController/Storyboard/TestPicker/Pods/Material/Sources/iOS/CollectionReusableView.swift
1
9170
/* * Copyright (C) 2015 - 2016, Daniel Dahan and CosmicMind, Inc. <http://cosmicmind.com>. * All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * * * Redistributions of source code must retain t...
mit
e965a243df0d8862f7f2a3e3ff2b336a
27.746082
99
0.680153
4.690537
false
false
false
false
nathantannar4/Parse-Dashboard-for-iOS-Pro
Pods/BiometricAuthentication/BiometricAuthentication/BiometricAuthentication/Authentication/BioMetricAuthenticator.swift
1
5321
// // BioMetricAuthenticator.swift // BiometricAuthentication // // Copyright (c) 2017 Rushi Sangani // // 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...
mit
3b2ad72845db5e6116844ac77519aa56
42.260163
223
0.697989
5.363911
false
false
false
false
itsaboutcode/WordPress-iOS
WordPress/WordPressTest/ReaderReblogActionTests.swift
1
5205
@testable import WordPress import CoreData import XCTest class MockReblogPresenter: ReaderReblogPresenter { var presentReblogExpectation: XCTestExpectation? override func presentReblog(blogService: BlogService, readerPost: ReaderPost, origin: UIViewController) { presentReblogExpectation?.fulfill() ...
gpl-2.0
ab68e1a2c4fd96fa62a71b3fcdabd796
33.019608
136
0.648415
4.995202
false
true
false
false
cocoascientist/Jetstream
JetstreamCore/Controllers/DarkSkyAPI.swift
1
1475
// // DarkSkyAPI.swift // Jetstream // // Created by Andrew Shepard on 2/19/15. // Copyright (c) 2015 Andrew Shepard. All rights reserved. // import Foundation import CoreLocation public enum DarkSkyAPI { case forecast(CLLocation) } extension DarkSkyAPI { private var apiKey: String { // register ...
mit
8534b1dddc1dd1aadb3787f75a8d6abb
24.877193
113
0.604068
4.287791
false
false
false
false
kaich/CKAlertView
CKAlertView/Classes/Core/Category/NSAttributeString+Alert.swift
1
2389
// // NSAttributeString+Alert.swift // Pods // // Created by mac on 16/11/8. // // import Foundation public enum CKIndentStyle { case firstLine , headIndent , tailIndent } extension NSAttributedString : CKAlertViewStringable { public func ck_string() -> String { return string } ...
mit
35c04877532045f848406939a95249cb
32.180556
116
0.663039
5.517321
false
false
false
false
rsyncOSX/RsyncOSX
RsyncOSX/extensionDate.swift
1
6899
// // extension Date // RsyncOSX // // Created by Thomas Evensen on 08/12/2018. // Copyright © 2018 Thomas Evensen. All rights reserved. // // swiftlint:disable line_length import Foundation extension Date { func weekday(date _: Date) -> Int { let calendar = Calendar.current let dateComponent ...
mit
1a7b7e08d1fe2a64014b80506341823f
32.485437
123
0.636416
4.617135
false
false
false
false
sonsongithub/reddift
application/ImageViewController.swift
1
14176
// // ImageViewController.swift // UZImageCollectionView // // Created by sonson on 2015/06/05. // Copyright (c) 2015年 sonson. All rights reserved. // import UIKit import FLAnimatedImage let ImageViewControllerDidChangeCurrentImageName = Notification.Name(rawValue: "ImageViewControllerDidChangeCurrentImage") cla...
mit
2618db304f7a05e6ffc6d8c8ca566c30
39.381766
226
0.646042
5.483172
false
false
false
false
CocoaheadsSaar/Treffen
Treffen2/Autolayout Teil 2/AutolayoutTests2/AutolayoutTests/MainView.swift
1
1858
// // MainView.swift // AutolayoutTests // // Created by Markus Schmitt on 12.01.16. // Copyright © 2016 My - Markus Schmitt. All rights reserved. // import UIKit class MainView: UIView { var textLabel: UILabel var textField: UITextField override init(frame: CGRect) { // vie...
gpl-2.0
20e48b8ae55884e8244161683ecdca28
39.369565
181
0.676898
4.761538
false
false
false
false
pauljohanneskraft/Algorithms-and-Data-structures
AlgorithmsDataStructures/Classes/Graphs/Graph.swift
1
3475
// // Graph.swift // Algorithms&DataStructures // // Created by Paul Kraft on 09.08.16. // Copyright © 2016 pauljohanneskraft. All rights reserved. // // swiftlint:disable trailing_whitespace public protocol Graph { init() var vertices: Set<Int> { get } var edges: Set<GraphEdge> { get set } subscript(start: I...
mit
2569a5d25e69b6037bd9be03ffdaeeb1
22.958621
87
0.574266
2.897415
false
false
false
false
krzysztofzablocki/Sourcery
SourceryRuntime/Sources/Extensions.swift
1
7607
import Foundation public extension StringProtocol { /// Trimms leading and trailing whitespaces and newlines var trimmed: String { self.trimmingCharacters(in: .whitespacesAndNewlines) } } public extension String { /// Returns nil if string is empty var nilIfEmpty: String? { if isE...
mit
fcca854e1bad6df6bb72ab1d9f6fabc3
32.511013
150
0.572368
4.684113
false
false
false
false
arn00s/caralho
Sources/CaralhoText.swift
1
830
// // CaralhoText.swift // caralho // // Created by Arnaud Schloune on 20/10/2017. // Copyright © 2017 Arnaud Schloune. All rights reserved. // import Foundation import UIKit class CaralhoText { var text: String = "" var time: Double = 0.0 var backgroundImage: UIImage? var position: Int var in...
mit
3cefa786efffb4e22af26ffe8a7792ef
24.121212
59
0.648975
4.273196
false
false
false
false
Brightify/DataMapper
Source/Core/Map/DeserializableMappableDataWrapper.swift
1
5695
// // DeserializableMappableDataWrapper.swift // DataMapper // // Created by Filip Dolnik on 23.10.16. // Copyright © 2016 Brightify. All rights reserved. // public struct DeserializableMappableDataWrapper: MappableData { public let delegate: DeserializableData public init(delegate: Deserializabl...
mit
559461535e66c01aa3655867ce531d30
35.974026
140
0.620829
4.217778
false
false
false
false
onevcat/CotEditor
CotEditor/Sources/DraggableArrayController.swift
2
3835
// // DraggableArrayController.swift // // CotEditor // https://coteditor.com // // Created by 1024jp on 2014-08-18. // // --------------------------------------------------------------------------- // // © 2014-2021 1024jp // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use...
apache-2.0
34d0f50fa3cd30b73ce3558b8b6bfbb1
35.169811
186
0.603547
5.071429
false
false
false
false
snakajima/remoteio
ios/remoteio/remoteio/RoomPicker.swift
1
2186
// // RoomPicker // ioswall // // Created by satoshi on 10/20/16. // Copyright © 2016 UIEvolution Inc. All rights reserved. // import UIKit class RoomPicker: UITableViewController { var handler:SocketHandler! var rooms = [[String:Any]]() var room:[String:Any]? let notificationManger = SNNotificati...
mit
b0e1f4cb57b1cbdd1c71f368a6a50723
33.140625
147
0.646682
4.760349
false
false
false
false
syd24/DouYuZB
DouYu/DouYu/classes/main/view/PageContentView.swift
1
5011
// // PageContentView.swift // DouYu // // Created by Kobe24 on 16/10/23. // Copyright © 2016年 ADMIN. All rights reserved. // import UIKit protocol PageContentViewDelegate:class { func pageContentView(pageContentView: PageContentView , progress: CGFloat , sourceIndex: Int, targetIndex: Int); } private let ce...
mit
cb826be2d7d386e78c4a04cca0f3754b
27.820809
129
0.613718
6.029021
false
false
false
false
YouareMylovelyGirl/Sina-Weibo
新浪微博/新浪微博/Classes/Tools(工具)/RefreshControl/RefreshView.swift
1
2335
// // RefreshView.swift // 刷新控件 // // Created by 阳光 on 2017/6/13. // Copyright © 2017年 YG. All rights reserved. // import UIKit /// 刷新视图 - 负责刷新相关的 UI 显示和动画 class RefreshView: UIView { /// 刷新状态 /** iOS 系统中 UIView 封装的旋转动画 - 默认顺时针旋转 - 就近原则 - ...
apache-2.0
ebe1ee2857d7b4f2d0a18a4e77f137dc
26.753425
110
0.457058
4.89372
false
false
false
false
xeecos/motionmaker
GIFMaker/SettingViewController.swift
1
5973
// // SettingViewController.swift // GIFMaker // // Created by indream on 15/9/20. // Copyright © 2015年 indream. All rights reserved. // import UIKit class SettingViewController: UIViewController,UITableViewDataSource,UITableViewDelegate { @IBOutlet weak var videoView: UIView! @IBOutlet weak var titleLab...
mit
70c106818f033dbe3d83c6605bcefc87
35.851852
119
0.61139
5.098207
false
false
false
false
Raizlabs/Anchorage
AnchorageDemo/Cells/EqualSpaceViewCell.swift
1
2749
// // EqualSpaceViewCell.swift // AnchorageDemo // // Created by Connor Neville on 9/21/16. // Copyright © 2016 Connor Neville. All rights reserved. // import UIKit import Anchorage class EqualSpaceViewCell: BaseCell { override class func reuseId() -> String { return "EqualSpaceViewCell" } le...
mit
bd23411d34ac9f7649f7754164c75fe3
32.108434
173
0.639738
4.907143
false
false
false
false
vmanot/swift-package-manager
Sources/Build/llbuild.swift
1
9340
/* This source file is part of the Swift.org open source project Copyright 2015 - 2016 Apple Inc. and the Swift project authors Licensed under Apache License v2.0 with Runtime Library Exception See http://swift.org/LICENSE.txt for license information See http://swift.org/CONTRIBUTORS.txt for Swift project author...
apache-2.0
16d3fdf7e8b0fd17a71af619f30cb533
37.278689
105
0.599358
4.73151
false
true
false
false
bamzy/goQueer-iOS
GoQueer/RadioButtonController.swift
1
3465
// // RadioButtonController.swift // GoQueer // // Created by Circa Lab on 2017-11-04. // Copyright © 2017 Kode. All rights reserved. // import Foundation import UIKit /// RadioButtonControllerDelegate. Delegate optionally implements didSelectButton that receives selected button. @objc protocol RadioButtonControl...
mit
99821d5a25512d77215eed6c66423d3a
32.631068
138
0.643476
5.193403
false
false
false
false
blerchy/EssenceOfDesign
Essence/ViewController.swift
1
6239
// // ViewController.swift // Essence // // Created by Matt Lebl on 2015-08-10. // Copyright (c) 2015 Matt Lebl. All rights reserved. // // // ______ __ _____ _ // | ____| / _| | __ \ (_) // | |__ ___ ___ ___ _ _...
gpl-3.0
d3a13ddd430841a7dd1c400519c4ec71
33.661111
215
0.493989
4.766234
false
false
false
false
DarkSupremo/CircleSlider
Pod/Classes/TrackLayer.swift
1
2429
// // TrackLayer.swift // Pods // // Created by shushutochako on 11/17/15. // Copyright © 2015 shushutochako. All rights reserved. // import UIKit internal class TrackLayer: CAShapeLayer { struct Setting { var startAngle = Double() var barWidth = CGFloat() var barColor = UIColor() var trackingCo...
mit
fc53bbacb54ee4c355d1d2514db1bef4
30.128205
88
0.688221
3.960848
false
false
false
false
jigneshsheth/Datastructures
DataStructure/DataStructure/TowSum.swift
1
1408
// // TowSum.swift // DataStructure // // Created by Jigs Sheth on 11/2/21. // Copyright © 2021 jigneshsheth.com. All rights reserved. // import Foundation /** Given an array of integers nums and an integer target, return indices of the two numbers such that they add up to target. You may assume that ea...
mit
7c341b41995a4e24f57b6766a71a949e
18.816901
122
0.597726
2.913043
false
false
false
false
m-alani/contests
leetcode/pascalsTriangleII.swift
1
905
// // pascalsTriangleII.swift // // Practice solution - Marwan Alani - 2017 // // Check the problem (and run the code) on leetCode @ https://leetcode.com/problems/pascals-triangle-ii/ // Note: make sure that you select "Swift" from the top-left language menu of the code editor when testing this code // class Solut...
mit
87384abc65b2a02ccf395d9f578c27ad
27.28125
117
0.61326
3.441065
false
false
false
false
mssun/passforios
passExtension/Controllers/ExtensionViewController.swift
2
5724
// // ExtensionViewController.swift // passExtension // // Created by Yishi Lin on 13/6/17. // Copyright © 2017 Bob Sun. All rights reserved. // import Foundation import MobileCoreServices import passKit class ExtensionViewController: UIViewController { private lazy var passcodelock: PasscodeExtensionDisplay ...
mit
3e657af87833e3a2d28337de13e5d124
33.065476
165
0.631487
5.476555
false
false
false
false
pixyzehn/AirbnbViewController
AirbnbViewController-Sample/AirbnbViewController-Sample/ViewController.swift
1
1207
// // ViewController.swift // AirbnbViewController-Sample // // Created by pixyzehn on 1/27/15. // Copyright (c) 2015 pixyzehn. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() self.view.backgroundColor = ...
mit
205f364765d4868dc284a4b3fb923235
32.527778
111
0.681856
4.714844
false
false
false
false
yytong/ReactiveCocoa
ReactiveCocoaTests/Swift/BagSpec.swift
148
1346
// // BagSpec.swift // ReactiveCocoa // // Created by Justin Spahr-Summers on 2014-07-13. // Copyright (c) 2014 GitHub. All rights reserved. // import Nimble import Quick import ReactiveCocoa class BagSpec: QuickSpec { override func spec() { var bag = Bag<String>() beforeEach { bag = Bag() } it("sho...
mit
8a12f3fde3f3420eb49e8802955f86af
23.925926
61
0.640416
3.12297
false
false
false
false
scottkawai/sendgrid-swift
Sources/SendGrid/API/V3/Mail/Send/Settings/Tracking/OpenTracking.swift
1
3240
import Foundation /// The `OpenTracking` class is used to toggle the open tracking setting for an /// email. public struct OpenTracking: Encodable { // MARK: - Properties /// A bool indicating if the setting should be toggled on or off. public let enable: Bool /// An optional tag to specify w...
mit
27b65185ef45090665518988f0a30733
38.512195
79
0.59784
4.778761
false
false
false
false
scottkawai/sendgrid-swift
Tests/SendGridTests/API/V3/Mail/Send/Settings/Tracking/SubscriptionTrackingTests.swift
1
2065
@testable import SendGrid import XCTest class SubscriptionTrackingTests: XCTestCase, EncodingTester { typealias EncodableObject = SubscriptionTracking func testEncoding() { let templateSetting = SubscriptionTracking(plainText: "Unsubscribe: <% %>", html: "<% Unsubscribe %>") let templateEx...
mit
f08542d4e79debcf9ae6360bde2275cb
35.22807
110
0.579177
5.214646
false
true
false
false
fanyinan/ImagePickerProject
ImagePicker/Camera/CameraHelper.swift
1
2796
// // CameraHelper.swift // ImagePickerProject // // Created by 范祎楠 on 16/3/3. // Copyright © 2016年 fyn. All rights reserved. // import UIKit import Photos class CameraHelper: NSObject { static let cropViewControllerTranlateType_Push = 0 static let cropViewControllerTranlateType_Present = 1 fileprivate we...
bsd-2-clause
bc6be878e087038688ca2cbfe20aa3c6
29.670455
117
0.714339
5.240777
false
false
false
false
pabloroca/NewsApp
NewsApp/Controllers/DataControllers/FeedDataController.swift
1
2753
// // FeedDataController.swift // NewsApp // // Created by Pablo Roca Rozas on 28/03/2017. // Copyright © 2017 PR2Studio. All rights reserved. // import Foundation import SWXMLHash import RealmSwift open class FeedDataController { var realm: Realm = try! Realm() public func processxml(feedid: Int, x...
mit
90421222aca821a9e3aabd3eb62ff565
35.210526
324
0.567951
4.347551
false
false
false
false
getsocial-im/getsocial-ios-sdk
example/GetSocialDemo/Views/Communities/Polls/CreatePoll/CreatePollView.swift
1
6501
// // CreatePollView.swift // GetSocialDemo // // Created by Gábor Vass on 26/04/2021. // Copyright © 2021 GrambleWorld. All rights reserved. // import Foundation import UIKit class CreatePollView: UIViewController { private let textLabel = UILabel() private let endDateLabel = UILabel() private let selectDate...
apache-2.0
dda02f6c77144d2f03cf7946b49c1e0b
32.158163
203
0.770426
3.987117
false
false
false
false
supermarin/Swifternalization
Swifternalization/TranslatablePair.swift
1
2051
// // Pairs.swift // Swifternalization // // Created by Tomasz Szulc on 27/06/15. // Copyright (c) 2015 Tomasz Szulc. All rights reserved. // import Foundation /** Represents key-value pair from Localizable.strings files. It contains key, value and expression if exists for the key. It can also validate if text ma...
mit
2b1edb332e576f8ad8c9ed3872b0b7f8
28.724638
101
0.663579
4.497807
false
false
false
false
DaveChambers/SuperCrack
SuperCrack!/PegboardViewController.swift
1
2971
// // PegboardViewController.swift // Pegs in the Head // // Created by Dave Chambers on 04/07/2017. // Copyright © 2017 Dave Chambers. All rights reserved. // import UIKit class PegboardViewController: UIViewController { var memoryVC: MemoryViewController? let game = GameModel() var pegBoardView: PegB...
mit
13b4a4bcb5d4b343edd633619ab59154
32.370787
157
0.710438
4.153846
false
false
false
false
nuan-nuan/Socket.IO-Client-Swift
SocketIO-MacTests/SocketBasicPacketTest.swift
1
5373
// // SocketBasicPacketTest.swift // Socket.IO-Client-Swift // // Created by Erik Little on 10/7/15. // // import XCTest class SocketBasicPacketTest: XCTestCase { let data = "test".dataUsingEncoding(NSUTF8StringEncoding)! let data2 = "test2".dataUsingEncoding(NSUTF8StringEncoding)! func testEmpyEm...
apache-2.0
0afa3151c07b9226a1a6eb5baa95083d
37.654676
138
0.599665
4.187841
false
true
false
false
illusionofchaos/swift-package-optionalAssignment
Sources/assignment.swift
1
557
infix operator ?= { associativity right precedence 90 assignment } infix operator ??= { associativity right precedence 90 assignment } public func ?=<T:Any>(inout lhs:T,rhs:Any?) { if let rhs = rhs as? T { lhs = rhs } } public func ?=<T:Any>(inout lhs:T?,rhs:Any?) { if let rhs = rhs as? T { ...
mit
d32b0a19d0d5080e162eeba14bbf5e9c
16.4375
78
0.599641
3.417178
false
false
false
false
gribozavr/swift
test/IRGen/prespecialized-metadata/class-inmodule-0argument-within-class-1argument-1distinct_use.swift
1
1065
// RUN: %swift -target %module-target-future -parse-stdlib -emit-ir -prespecialize-generic-metadata %s | %FileCheck %s -DINT=i%target-ptrsize -DALIGNMENT=%target-alignment // UNSUPPORTED: CPU=i386 && OS=ios // UNSUPPORTED: CPU=armv7 && OS=ios // UNSUPPORTED: CPU=armv7s && OS=ios precedencegroup AssignmentPrecedence {...
apache-2.0
f8cd220d468882af0eea3c192df90fda
31.272727
171
0.692019
3.359621
false
false
false
false
ios-ximen/DYZB
斗鱼直播/斗鱼直播/Classes/Main/Controllers/CustomNavigationViewController.swift
1
1735
// // CustomNavigationViewController.swift // 斗鱼直播 // // Created by niujinfeng on 2017/10/2. // Copyright © 2017年 niujinfeng. All rights reserved. // import UIKit class CustomNavigationViewController: UINavigationController { override func viewDidLoad() { super.viewDidLoad() // 1.获取系统的Pop手势 ...
mit
bfa12f2528c05d03f73fd18d231ec9e9
28.563636
90
0.611931
4.567416
false
false
false
false
MxABC/LBXAlertAction
TestSwiftAlertAction/ViewController.swift
1
2201
// // ViewController.swift // TestSwiftAlertAction // // Created by lbxia on 16/6/17. // Copyright © 2016年 lbx. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, t...
mit
7c1dc5328ba0c2eb933fb1c47d265b31
24.439024
206
0.555129
4.719457
false
false
false
false
rambler-digital-solutions/rambler-it-ios
Carthage/Checkouts/rides-ios-sdk/source/UberRides/RequestDeeplink.swift
1
1867
// // RequestDeeplink.swift // UberRides // // Copyright © 2015 Uber Technologies, Inc. All rights reserved. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, i...
mit
f8a9b7cbdf99ec3c8a890c60632fe878
41.409091
89
0.730975
4.607407
false
false
false
false
jay18001/brickkit-ios
Tests/Cells/AsynchronousResizableBrick.swift
1
1739
// // DummyAsynchronousResizableCell.swift // BrickKit // // Created by Ruben Cagnie on 10/1/16. // Copyright © 2016 Wayfair LLC. All rights reserved. // import UIKit import BrickKit class AsynchronousResizableBrick: Brick { var didChangeSizeCallBack: (() -> Void)? var newHeight: CGFloat = 200 } class As...
apache-2.0
c479feb431e8ba022e89d6c44b2db89e
28.965517
161
0.729574
4.841226
false
false
false
false
AlexeyGolovenkov/DocGenerator
DocGenerator/DocGenerator/Data/ClassObject.swift
1
768
// // ClassObject.swift // DocGenerator // // Created by Alexey Golovenkov on 02.04.16. // Copyright © 2016 Alex & Igor. All rights reserved. // import Cocoa /// Documented class class ClassObject: DocumentableObject { /// Array of methods of the class var methods: [MethodObject] = [] // TODO: Change type ...
mit
28aa0fba9e9997f39d38a603d454f972
17.707317
58
0.657106
3.454955
false
false
false
false
dreamsxin/swift
test/Interpreter/generics.swift
3
3312
// RUN: %target-run-simple-swift | FileCheck %s // REQUIRES: executable_test struct BigStruct { var a,b,c,d,e,f,g,h:Int } // FIXME: missing symbol for Object destructor? //class SomeClass : Object { } func id<T>(_ x: T) -> T { return x } var int = id(1) var bigStruct = id(BigStruct(a: 1, b: 2,c: 3, d: 4, e: 5, f:...
apache-2.0
aa83969e756d69f83b26215dbb7efe3f
22
77
0.60628
2.890052
false
false
false
false
shadanan/mado
Antlr4Runtime/Sources/Antlr4/RuleContext.swift
1
9328
/* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved. * Use of this file is governed by the BSD 3-clause license that * can be found in the LICENSE.txt file in the project root. */ /** A rule context is a record of a single rule invocation. * * We form a stack of these context objects using the paren...
mit
05780d8c1a4269f16fc0951d294e605e
31.961131
101
0.613958
4.203695
false
false
false
false
nextcloud/ios
Widget/Dashboard/DashboardWidgetView.swift
1
9637
// // DashboardWidgetView.swift // Widget // // Created by Marino Faggiana on 20/08/22. // Copyright © 2022 Marino Faggiana. All rights reserved. // // Author Marino Faggiana <marino.faggiana@nextcloud.com> // // This program is free software: you can redistribute it and/or modify // it under the terms of the GN...
gpl-3.0
988115c61f389535eb8b50fbb3bd2ddf
45.776699
236
0.374948
6.537313
false
false
false
false
rlisle/Patriot-iOS
IntegrationTests/PhotonIntegrationTests.swift
1
6510
// // PhotonIntegrationTests.swift // Patriot // // This is an integration test for the Photon hardware. // // History: major refactor 4/17/16 // // Created by Ron Lisle on 11/13/16. // Copyright © 2016 Ron Lisle. All rights reserved. // import XCTest import Particle_SDK import PromiseKit class PhotonIntegrati...
bsd-3-clause
4d670968cb7ef7f5471e978504f66f01
27.056034
103
0.480873
5.101097
false
true
false
false
imojiengineering/imoji-ios-sdk-ui
Source/Editor/IMCameraViewController.swift
2
17853
// // ImojiSDKUI // // Created by Alex Hoang // Copyright (C) 2016 Imoji // // 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
cc091f041d46f7dc949596471c53a7c1
43.081481
188
0.669355
5.803966
false
false
false
false
bwoods/SQLite.swift
SQLite/Extensions/FTS4.swift
3
11713
// // SQLite.swift // https://github.com/stephencelis/SQLite.swift // Copyright © 2014-2015 Stephen Celis. // // 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...
mit
d421828b15f8763e2bd8ef742b50fe63
33.233918
181
0.635463
4.378459
false
false
false
false
bjvanlinschoten/Pala
Pala/Pala/WallCollectionViewController.swift
1
7623
// // WallCollectionViewController.swift // Pala // // Created by Boris van Linschoten on 09-06-15. // Copyright (c) 2015 bjvanlinschoten. All rights reserved. // import UIKit class WallCollectionViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate, UICollectionViewDelegateFlowLa...
mit
ff658871c4649350fe59cf6a8b0650ba
41.121547
169
0.650794
5.164634
false
false
false
false
voyages-sncf-technologies/Collor
Example/Tests/CollectionDatasTest.swift
1
2920
// // CollectionDataTest.swift // Collor // // Created by Guihal Gwenn on 03/05/17. // Copyright (c) 2017-present, Voyages-sncf.com. All rights reserved.. All rights reserved. // import XCTest @testable import Collor class CollectionDataTest: XCTestCase { var data:TestData! override func setUp()...
bsd-3-clause
11970500861977c48f970672aba070dc
27.627451
92
0.608904
4.794745
false
true
false
false
michael-lehew/swift-corelibs-foundation
Foundation/ProgressFraction.swift
2
11442
// 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
49bf615f152fc007c337bd1784669613
40.456522
323
0.586349
4.803526
false
false
false
false
addisflava/iSub
Classes/BookmarksViewController.swift
2
21604
// // BookmarksViewController.swift // iSub // // Created by Ben Baron on 5/10/10. // Copyright 2010 Ben Baron. All rights reserved. // import Foundation import UIKit public class BookmarksViewController: CustomUITableViewController { private let _database = DatabaseSingleton.sharedInstance() private...
gpl-3.0
fe5f55b2792acff6cad9190442ebf932
46.170306
223
0.616506
5.598342
false
false
false
false
prebid/prebid-mobile-ios
InternalTestApp/PrebidMobileDemoRendering/ViewControllers/Configuration/NativeAdConfigEditor/Extensions/FormViewController+RowBuildHelpers.swift
1
17569
/*   Copyright 2018-2021 Prebid.org, Inc.  Licensed under the Apache License, Version 2.0 (the "License");  you may not use this file except in compliance with the License.  You may obtain a copy of the License at  http://www.apache.org/licenses/LICENSE-2.0  Unless required by applicable law or agreed to in writing,...
apache-2.0
587bc0d178b41785689fd35b2655bd86
47.502762
166
0.480636
5.161082
false
false
false
false
wordpress-mobile/WordPress-iOS
WordPress/WordPressTest/StockPhotosMediaGroupTests.swift
2
1337
import XCTest @testable import WordPress final class StockPhotosMediaGroupTests: XCTestCase { private var mediaGroup: StockPhotosMediaGroup? private struct Constants { static let name = String.freePhotosLibrary static let mediaRequestID: WPMediaRequestID = 0 static let baseGroup = "" ...
gpl-2.0
2ce082b9a4ab5a312bb6a974992a421e
27.446809
92
0.682124
4.97026
false
true
false
false
wordpress-mobile/WordPress-iOS
WordPress/Classes/ViewRelated/Site Creation/Shared/ShadowView.swift
2
1400
final class ShadowView: UIView { private let shadowLayer = CAShapeLayer() private let shadowMaskLayer = CAShapeLayer() private enum Appearance { static let shadowColor: UIColor = .black static let shadowOpacity: Float = 0.20 static let shadowRadius: CGFloat = 8.0 static let ...
gpl-2.0
fa1af8c4016f6cd4b7b59f997e8a65a4
34
98
0.685
5.223881
false
false
false
false
Aaron-zheng/yugioh
yugioh/DeckViewEntity.swift
1
639
// // DeckView.swift // yugioh // // Created by Aaron on 6/8/2017. // Copyright © 2017 sightcorner. All rights reserved. // import Foundation class DeckViewEntity { // 卡组的唯一标识 public var id: String = "" // 卡组名称 public var title: String = "" // 卡组介绍 public var introduction: String = "" ...
agpl-3.0
dd5d9b8e9b5e27f41fd5a9f72ffa11fb
17.75
73
0.56
3.614458
false
false
false
false
aidos9/my-notes
My notes/notesTableVC.swift
1
5036
// // notesTableVC.swift // My notes // // Created by Aidyn Malojer on 13/12/16. // Copyright © 2016 Aidyn Malojer. All rights reserved. // import UIKit import CoreData class notesTableVC: UITableViewController { var notebook: Notebook? { didSet{ self.navigationItem.title = notebook!.titl...
mit
d0aca55a98bb7f2c0630832cff3b4b05
33.486301
144
0.639921
5.158811
false
false
false
false
algolia/algoliasearch-client-swift
Sources/AlgoliaSearchClient/Transport/URLSession/URLRequest+APIKey.swift
1
2135
// // URLRequest+APIKey.swift // // // Created by Vladislav Fitc on 20/07/2022. // import Foundation #if canImport(FoundationNetworking) import FoundationNetworking #endif extension URLRequest { static let maxHeaderAPIKeyLength = 500 internal mutating func setAPIKey(_ apiKey: APIKey?) throws { guard le...
mit
fa81631b08345ce06bddd580d2da1cca
26.025316
118
0.695082
4.581545
false
false
false
false
phuongvnc/CPConfettiView
CPConfettiView/CPConfettiView.swift
1
2406
// // CPConfettiView.swift // CPConfettiViewExample // // Created by framgia on 3/3/17. // Copyright © 2017 Vo Nguyen Chi Phuong. All rights reserved. // import Foundation import UIKit import QuartzCore public enum CPConfettiDirection { case Top case Bottom } public class CPConfettiView: UIView { v...
mit
5af9a18ee078e2f0d1d42cf2b1f1b2cb
25.141304
83
0.609979
4.412844
false
false
false
false
t2421/iOS-snipet
iOS-snipets/samples/FontNameViewController.swift
1
1851
// // FontNameViewController.swift // iOS-snipets // // Created by taigakiyotaki on 2015/07/21. // Copyright (c) 2015年 taigakiyotaki. All rights reserved. // @see https://github.com/shu223/iOS8-Sampler/blob/master/iOS8Sampler/Samples/FontsViewController.m // import UIKit class FontNameViewController: UIViewContro...
mit
6c2d04220c849f2d8917d000f0220b10
33.240741
114
0.689562
4.753213
false
false
false
false
Urinx/SublimeCode
Sublime/Pods/AlamofireRSSParser/Pod/Classes/RSSFeed.swift
1
1391
// // RSSFeed.swift // AlamofireRSSParser // // Created by Donald Angelillo on 3/1/16. // Copyright © 2016 Donald Angelillo. All rights reserved. // import Foundation /** RSS gets deserialized into an instance of `RSSFeed`. Top-level RSS elements are housed here. Item-level elements are deserialized...
gpl-3.0
9acf95bf4f4588ee9dd8ac8c179db575
37.638889
383
0.693525
3.787466
false
false
false
false
AymenFarrah/PlayAir
PlayAir/PARadio.swift
1
901
// // PARadio.swift // PlayAir // // Created by Aymen on 14/02/2016. // Copyright © 2016 Farrah. All rights reserved. // import Foundation class PARadio: NSObject { var radioId : Int! var name : String! var url : NSURL! var picto : String! var desc : String! var categories : Array<String>!...
mit
664ae878a3f51f1f415bb10ac18a8cb9
21.525
106
0.546667
3.557312
false
false
false
false
shajrawi/swift
test/decl/nested/type_in_type.swift
1
9618
// RUN: %target-typecheck-verify-swift struct OuterNonGeneric { struct MidNonGeneric { struct InnerNonGeneric {} struct InnerGeneric<A> {} } struct MidGeneric<B> { struct InnerNonGeneric {} struct InnerGeneric<C> {} func flock(_ b: B) {} } } struct OuterGeneric<D> { struct MidNonGeneri...
apache-2.0
5612f5f49a9cdbd63a653b23cb551536
21.845606
176
0.635787
3.536029
false
false
false
false
nathawes/swift
test/diagnostics/Localization/fr_localization.swift
3
851
// RUN: %empty-directory(%t) // RUN: swift-serialize-diagnostics --input-file-path=%S/Inputs/fr.yaml --output-directory=%t/ // RUN: swift-serialize-diagnostics --input-file-path=%S/Inputs/en.yaml --output-directory=%t/ 2>&1 | %FileCheck %s // RUN: %target-typecheck-verify-swift -localization-path %t -locale fr // CHEC...
apache-2.0
20eec9f726b1819f3dc4d9d17045081a
64.076923
175
0.713948
3.087591
false
false
false
false
Acidburn0zzz/firefox-ios
Shared/Extensions/UIImageExtensions.swift
7
2160
/* 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 SDWebImage private let imageLock = NSLock() extension CGRect { public init(width: CGFloa...
mpl-2.0
bc0ffef3e27955065275d90972d0dcd8
32.230769
99
0.634259
4.044944
false
false
false
false
Sroik/FunLayout
src/FunLayout/FunLayoutModule/FunLayoutConstraintsActivation.swift
1
2907
// // FunnyLayout.swift // FunLayout // // Created by Sroik on 4/27/16. // Copyright © 2016 Sroik. All rights reserved. // import UIKit internal func fun_activateConstraints(var leftLayoutAttribute leftLayoutAttribute: FunLayoutAttribute, right: FunLayoutable, relation: NSLayoutRelation) -> [NSLayoutConstraint] {...
mit
90acb145db11c9758b3f6f670e3cef5f
36.25641
191
0.731246
5.535238
false
false
false
false
randallli/material-components-ios
components/NavigationBar/tests/unit/NavigationBarColorThemerTests.swift
1
2354
/* Copyright 2018-present the Material Components for iOS 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 requ...
apache-2.0
ce9de187b25f5da965e43e4ce378e51d
36.967742
100
0.7774
5.423963
false
true
false
false
blockchain/My-Wallet-V3-iOS
Modules/FeatureApp/Sources/FeatureAppUI/Handlers/BlurVisualEffectHandler.swift
1
1650
// Copyright © Blockchain Luxembourg S.A. All rights reserved. import UIKit /// Types adopting to `BlurVisualEffectHandlerAPI` should provide a way to apply a blur effect to the given view public protocol BlurVisualEffectHandlerAPI { /// Applies a blur effect /// - Parameter view: A `UIView` for the effect t...
lgpl-3.0
2735787dc836e5adfcb5f65add1a7376
30.113208
112
0.611886
5.012158
false
false
false
false
qinting513/Learning-QT
2016 Plan/5月/数据持久化/CoreDataSw/CoreDataSw/ViewController.swift
1
1842
// // ViewController.swift // CoreDataSw // // Created by Qinting on 16/5/9. // Copyright © 2016年 Qinting. All rights reserved. // import UIKit import CoreData class ViewController: UIViewController { var context : NSManagedObjectContext? override func viewDidLoad() { super.viewDidLoad() ...
apache-2.0
ead38bc28633db0780e9d82f3dfe4e6b
27.169231
128
0.614418
4.922043
false
false
false
false
gerbot150/SwiftyFire
swift/SwiftyFire/main.swift
1
2918
// // main.swift // SwiftyJSONModelMaker // // Created by Gregory Bateman on 2017-03-03. // Copyright © 2017 Gregory Bateman. All rights reserved. // import Foundation func main() { var name: String? let tokenizer = Tokenizer() let parser = Parser() let swiftifier = Swiftifier() do { ...
mit
13f65019bed869b6d9bbf8176df4e206
30.365591
107
0.605074
4.373313
false
false
false
false
Conche/Conche
ConcheSpecs/VersionSpec.swift
2
3846
import Spectre import Conche public func ~> <E: ExpectationType where E.ValueType == Version>(lhs: E, rhs: E.ValueType) throws { if let value = try lhs.expression() { guard value ~> rhs else { throw lhs.failure("\(value) is not ~> \(rhs)") } } else { throw lhs.failure("nil is not ~> \(rhs)") } ...
bsd-2-clause
9863023a2c5fd8ba42bb4ef84bc0a6ad
31.59322
99
0.585023
3.335646
false
false
false
false
iachievedit/moreswift
translator/main.swift
1
1337
// Copyright 2015 iAchieved.it LLC // // 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
debdab828448585614cac11a3bce353c
30.093023
75
0.706806
3.920821
false
false
false
false
epayco/sdk-ios
Epayco/Encription/CryptoJS.swift
1
24121
// // CryptoJS.swift // // Created by Emartin on 2015-08-25. // Copyright (c) 2015 Emartin. All rights reserved. // import Foundation import JavaScriptCore private var cryptoJScontext = JSContext() internal class CryptoJS{ class AES: CryptoJS{ fileprivate var encryptFunction: JSValue! ...
mit
67e356807cf786738d6db64bd77c4161
35.54697
155
0.456656
5.564245
false
false
false
false
CapstoneTeamA/Mobile-Test-Runner-for-Jama
Mobile Test Runner for Jama/Mobile Test Runner for Jama/ItemTypes.swift
1
2761
// // ItemTypes.swift // Mobile Test Runner for Jama // // Created by Meghan McBee on 9/4/17. // Copyright © 2017 Jaca. All rights reserved. // import Foundation class ItemTypes { var endpointString: String = "" var totalItemTypesReturned: Int = 0 var username: String = "" var password: Strin...
mit
7c9b22d8ab420be6c9dabee65085484d
35.315789
242
0.61087
4.367089
false
false
false
false
CatchChat/Yep
FayeClient/FayeMessage.swift
1
2067
// // FayeMessage.swift // Yep // // Created by NIX on 16/5/17. // Copyright © 2016年 Catch Inc. All rights reserved. // import Foundation public struct FayeMessage { let ID: String? let channel: String let clientID: String? public let successful: Bool let authSuccessful: Bool let version:...
mit
9f07f52b21c9921aa3e1b1cecb4f3bcf
37.943396
332
0.650194
4.212245
false
false
false
false
psharanda/LayoutOps
Sources/CALayer+LX.swift
1
2209
// // Created by Pavel Sharanda on 09.02.2018. // Copyright © 2018 LayoutOps. All rights reserved. // #if os(macOS) import Cocoa #else import UIKit #endif private var key: UInt8 = 0 private var viewPortInsetsKey: UInt8 = 0 extension CALayer: Layoutable { public var lx_frame: CGRect { get { ...
mit
3f02999c749143a9005b26ddbb479555
23.533333
140
0.533967
4.262548
false
false
false
false
cnoon/swift-compiler-crashes
crashes-duplicates/05422-swift-sourcemanager-getmessage.swift
11
2532
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing } class func i(" typealias e : a { class c, class protocol A : BooleanType, A { class let t: a { { let i: e : e : P } protocol A { typealias e : c { pr...
mit
0eb83c41256f7ba4cb8f7d15a097da17
12.98895
87
0.601106
2.58104
false
false
false
false
svanimpe/around-the-table
Sources/AroundTheTable/Models/User.swift
1
3171
import BSON import Foundation /** A user. */ final class User { /// The user's ID. /// If set to nil, an ID is assigned when the instance is persisted. var id: Int? /// The user's display name. var name: String /// The user's profile picture. /// A default picture will be u...
bsd-2-clause
5a8d58663c584091fb2894fc03778a3e
26.336207
115
0.561652
4.279352
false
false
false
false
mobilabsolutions/jenkins-ios
JenkinsiOS/Service/FavoritesLoader.swift
1
2551
// // Created by Robert on 22.06.17. // Copyright (c) 2017 MobiLab Solutions. All rights reserved. // import Foundation protocol FavoritesLoading: class { func didLoadFavorite(favoritable: Favoratible, from favorite: Favorite) func didFailToLoad(favorite: Favorite, reason: FavoriteLoadingFailure) } enum Favo...
mit
166942a53a595fc94b9dc286fb473e0c
33.945205
103
0.625245
4.724074
false
false
false
false
Rochester-Ting/XMLY
XMLY/XMLY/Classes/Main(主要)/View/RRTabBar.swift
1
2153
// // RRTabBar.swift // XMLY // // Created by Rochester on 17/1/17. // Copyright © 2017年 Rochester. All rights reserved. // import UIKit let kScreenW : CGFloat = UIScreen.main.bounds.width // 定义一个闭包 typealias btnTag = (_ tag : Int) -> Void class RRTabBar: UITabBar { lazy var selectedBtn = UIButton(type:.custom...
mit
f463e44c27deecde121b03ef74acb1d4
34.79661
259
0.581913
4.07722
false
false
false
false
lumenlunae/SwiftSpriter
SwiftSpriter/Classes/Model/SpriterTimeline.swift
1
778
// // SpriterTimeline.swift // SwiftSpriter // // Created by Matt on 8/27/16. // Copyright © 2016 BiminiRoad. All rights reserved. // import Foundation struct SpriterTimeline: SpriterParseable { var id: Int var name: String var objectType: SpriterObjectType? var keys: [SpriterTimelineKey] = [...
mit
9ff550b36a870209713a80aae90a3601
21.852941
67
0.564994
3.904523
false
false
false
false
niunaruto/DeDaoAppSwift
testSwift/Pods/RxSwift/RxSwift/Observables/SingleAsync.swift
14
3648
// // SingleAsync.swift // RxSwift // // Created by Junior B. on 09/11/15. // Copyright © 2015 Krunoslav Zaher. All rights reserved. // extension ObservableType { /** The single operator is similar to first, but throws a `RxError.noElements` or `RxError.moreThanOneElement` if the source Observable d...
mit
ffd9be774a4b7c2bdbead591c20a7267
34.067308
171
0.623526
4.805007
false
false
false
false
huang1988519/WechatArticles
WechatArticles/WechatArticles/Library/Loggerithm/Loggerithm.swift
1
13122
// // Loggerithm.swift // Loggerithm // // Created by Honghao Zhang on 2014-12-10. // Copyright (c) 2015 Honghao Zhang (张宏昊) // // 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 witho...
apache-2.0
ddf6dcff7f52bd611f5845a8ec6c42e5
34.836066
181
0.609332
4.646121
false
false
false
false
Rapid-SDK/ios
Examples/RapiChat - Chat client/RapiChat shared/Message.swift
1
606
// // Message.swift // RapiChat // // Created by Jan on 27/06/2017. // Copyright © 2017 Rapid. All rights reserved. // import Foundation import Rapid struct Message: Codable { let id: String let channelID: String let text: String? let sender: String let sentDate: Date enum Coding...
mit
1fcffc6bce6386885ab23e3bd865b44e
18.516129
53
0.601653
4.033333
false
false
false
false
alblue/swift
stdlib/public/core/StringBridge.swift
1
10115
//===----------------------------------------------------------------------===// // // 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
a169d49be3bc3e322f342c24fcb4a475
30.027607
80
0.710035
4.167697
false
false
false
false
jum/Charts
ChartsDemo-macOS/ChartsDemo-macOS/Demos/RadarDemoViewController.swift
5
1463
// // RadarDemoViewController.swift // ChartsDemo-OSX // // Copyright 2015 Daniel Cohen Gindi & Philipp Jahoda // A port of MPAndroidChart for iOS // Licensed under Apache License 2.0 // // https://github.com/danielgindi/ios-charts import Foundation import Cocoa import Charts open class RadarDemoViewController:...
apache-2.0
6bcea37ad414f27b45220177d5e8fc07
30.12766
88
0.636364
3.932796
false
false
false
false
codestergit/LTMorphingLabel
LTMorphingLabel/LTMorphingLabel+Sparkle.swift
1
5893
// // LTMorphingLabel+Sparkle.swift // https://github.com/lexrus/LTMorphingLabel // // The MIT License (MIT) // Copyright (c) 2014 Lex Tang, http://LexTang.com // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the “Software”)...
mit
dc6ef12b1e065758b1d2f4190d540508
39.034014
121
0.598131
4.908257
false
false
false
false
gogunskiy/The-Name
NameMe/Classes/UserInterface/ViewControllers/NMOriginsListViewController/NMOriginsListViewController.swift
1
2935
// // NMNamesListViewController // NameMe // // Created by Vladimir Gogunsky on 1/3/15. // Copyright (c) 2015 Volodymyr Hohunskyi. All rights reserved. // import UIKit class NMOriginsListViewController: NMBaseViewController { @IBOutlet var tableView : UITableView! @IBOutlet var searchBar : UISearchBar!...
mit
cb7297f411078fa812a35dfb7c5856a6
27.495146
124
0.613969
5.445269
false
false
false
false
walkingsmarts/ReactiveCocoa
ReactiveCocoa/ObjC+Runtime.swift
13
665
/// Search in `class` for any method that matches the supplied selector without /// propagating to the ancestors. /// /// - parameters: /// - class: The class to search the method in. /// - selector: The selector of the method. /// /// - returns: The matching method, or `nil` if none is found. internal func class_g...
mit
a20283856e93706a2ef5a0f2203dd46f
27.913043
94
0.67218
3.63388
false
false
false
false