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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
anirudh24seven/wikipedia-ios | Wikipedia/Code/SavedPageSpotlightManager.swift | 1 | 3499 | import UIKit
import MobileCoreServices
import CoreSpotlight
public extension NSURL {
@available(iOS 9.0, *)
func searchableItemAttributes() -> CSSearchableItemAttributeSet? {
guard wmf_isWikiResource else {
return nil
}
guard let title = wmf_title else {
return n... | mit | 8d0ddac64e35cec6a918cc0faeb4bd94 | 34.704082 | 150 | 0.653044 | 5.43323 | false | false | false | false |
LYM-mg/DemoTest | indexView/indexView/Two/XibViewController.swift | 1 | 2363 | //
// XibViewController.swift
// indexView
//
// Created by i-Techsys.com on 2017/7/17.
// Copyright © 2017年 i-Techsys. All rights reserved.
//
import UIKit
class XibViewController: UIViewController {
fileprivate lazy var titleLabel: UILabel = UILabel()
var timer: Timer?
override func viewDidLoad() {... | mit | 6e8c2ca71637fa2d6489e9039099ebec | 32.970149 | 265 | 0.655975 | 4.168498 | false | false | false | false |
cristianames92/PortalView | Sources/Components/Collection.swift | 1 | 4774 | //
// CollectionView.swift
// PortalView
//
// Created by Argentino Ducret on 4/4/17.
// Copyright © 2017 Guido Marucci Blas. All rights reserved.
//
import Foundation
import UIKit
public class SectionInset {
public static let zero = SectionInset(top: 0, left: 0, bottom: 0, right: 0)
public var botto... | mit | 0635df70996a4f778617d17f10acf1f6 | 33.839416 | 171 | 0.701865 | 5.285714 | false | false | false | false |
natecook1000/swift | test/DebugInfo/uninitialized.swift | 3 | 1104 | // RUN: %target-swift-frontend %s -emit-ir -g -o - | %FileCheck %s
// RUN: %target-swift-frontend %s -O -emit-ir -g -o - | %FileCheck %s --check-prefix=OPT
class MyClass {}
// CHECK-LABEL: define {{.*}} @"$S13uninitialized1fyyF"
// OPT-LABEL: define {{.*}} @"$S13uninitialized1fyyF"
public func f() {
var object: MyCl... | apache-2.0 | 38abdb4b648acc9c1384c733531b3576 | 39.888889 | 88 | 0.571558 | 3.163324 | false | false | false | false |
pixio/PXImageView | Example/PXImageView/AppDelegate.swift | 1 | 1158 | //
// PXSwiftAppDelegate.swift
// PXImageView
//
// Created by Dave Heyborne on 2.17.16.
// Copyright © 2016 Dave Heyborne. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplicat... | mit | 0b8697029214d05fad1fbfd896ce6917 | 30.27027 | 144 | 0.722558 | 6.187166 | false | false | false | false |
overtake/TelegramSwift | Telegram-Mac/NewThemeController.swift | 1 | 6434 | //
// NewThemeController.swift
// Telegram
//
// Created by Mikhail Filimonov on 28/08/2019.
// Copyright © 2019 Telegram. All rights reserved.
//
import Cocoa
import TGUIKit
import SwiftSignalKit
import TelegramCore
import ColorPalette
import ThemeSettings
import Postbox
private let _id_input_name = InputDataIde... | gpl-2.0 | a034532eca48a5bc9dfaa67aee91e9a0 | 37.291667 | 273 | 0.602052 | 5.05739 | false | false | false | false |
dusanIntellex/backend-operation-layer | BackendServiceAdapter/Classes/Adapter/Executor/BackendFirebaseExecutor.swift | 1 | 10385 | //
// BackendFirebaseExecutor.swift
// AuthorizationApp
//
// Created by Vladimir Djokanovic on 8/16/17.
// Copyright © 2017 Intellex. All rights reserved.
//
import UIKit
import Firebase
import FirebaseDatabase
import FirebaseStorage
class BackendFirebaseExecutor: NSObject, BackendExecutorProtocol {
var... | mit | ed218f66edef48a7b58474d965d64b13 | 33.384106 | 222 | 0.521283 | 5.77852 | false | false | false | false |
zclongjie/ZCDouYu | ZCDouYu/ZCDouYu/Classes/Main/View/PageTitleView.swift | 1 | 6249 | //
// PageTitleView.swift
// ZCDouYu
//
// Created by 赵隆杰 on 16/9/18.
// Copyright © 2016年 赵隆杰. All rights reserved.
//
import UIKit
//定义协议
protocol PageTitleViewDelegate : class {
func pageTitleView(titleView : PageTitleView, selectIndex index : Int)
}
//定义常量
private let kScrollLineH : CGFloat = 2
private l... | mit | 8d109075ef1f8292156d5cb0749f9e6e | 27.396135 | 174 | 0.611432 | 4.64297 | false | false | false | false |
rbeeger/WebStats | WebStatsCommons/DateUtil.swift | 1 | 3704 | // Copyright (c) 2015 Robert F. Beeger
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publi... | mit | e38b7cd4b802ac0b7c47fc8d6ead0337 | 40.155556 | 96 | 0.650918 | 5.02578 | false | false | false | false |
atrick/swift | test/stdlib/StringIndex.swift | 1 | 31067 | // RUN: %target-run-stdlib-swift %S/Inputs/
// REQUIRES: executable_test
// UNSUPPORTED: freestanding
import StdlibUnittest
#if _runtime(_ObjC)
import Foundation
import StdlibUnicodeUnittest
#endif
var suite = TestSuite("StringIndexTests")
defer { runAllTests() }
enum SimpleString: String {
case smallASCII = "abcd... | apache-2.0 | 230260cbb56618d3aa6480b205a92224 | 31.484688 | 84 | 0.64376 | 3.527867 | false | false | false | false |
jpush/jchat-swift | JChat/Src/ChatModule/Input/InputView/Emoticon/JCEmoticonGroup.swift | 1 | 614 | //
// JCEmoticonGroup.swift
// JChat
//
// Created by JIGUANG on 2017/3/9.
// Copyright © 2017年 HXHG. All rights reserved.
//
import UIKit
public enum JCEmoticonType: Int {
case small = 0
case large = 1
public var isSmall: Bool {
return self == .small
}
public var isLarge: Bo... | mit | 2056e2c2bc8bdb97d9f1ab0802e13f8d | 17.515152 | 48 | 0.612111 | 3.771605 | false | false | false | false |
peaks-cc/iOS11_samplecode | chapter_02/02_PlaneDetection/PlaneDetection/ViewController.swift | 1 | 3240 | //
// ViewController.swift
// PlaneDetection
//
// Created by Shuichi Tsutsumi on 2017/07/17.
// Copyright © 2017 Shuichi Tsutsumi. All rights reserved.
//
import UIKit
import ARKit
class ViewController: UIViewController, ARSCNViewDelegate, ARSessionDelegate {
@IBOutlet var sceneView: ARSCNView!
ove... | mit | 7187f27d032b968f52f1402c9db788ea | 32.494382 | 101 | 0.621268 | 4.503021 | false | false | false | false |
austinzheng/swift | test/decl/class/classes.swift | 42 | 2499 | // RUN: %target-typecheck-verify-swift -parse-as-library
class B : A {
override init() { super.init() }
override func f() {}
func g() -> (B, B) { return (B(), B()) } // expected-error {{declaration 'g()' cannot override more than one superclass declaration}}
override func h() -> (A, B) { return (B(), B()) } //... | apache-2.0 | 7c9503c7d28819e165c310f94cc3af2b | 22.35514 | 135 | 0.540616 | 2.953901 | false | false | false | false |
Avtolic/ACAlertController | ACAlertController/ACAlertControllerCore.swift | 1 | 20847 | //
// ACAlertControllerCore.swift
// ACAlertControllerDemo
//
// Created by Yury on 21/09/16.
// Copyright © 2016 Avtolic. All rights reserved.
//
import Foundation
import UIKit
public var alertLinesColor = UIColor(red:220/256, green:220/256, blue:224/256, alpha:1.0)
public protocol ACAlertListViewProtocol {
... | mit | b862ddb198a9d421db50b7d5a0223eaf | 41.456212 | 239 | 0.659359 | 4.93981 | false | false | false | false |
caodong1991/SwiftStudyNote | Swift.playground/Pages/27 - AdvancedOperators.xcplaygroundpage/Contents.swift | 1 | 8803 | import Foundation
// 高级运算符
// 位运算符
/*
位运算符可以操作数据结构中每个独立的比特位。
*/
// 按位取反运算符
/*
~: 按位取反运算符,对一个数值的全部比特位进行取反。
按位取反运算符是一个前缀运算符,直接放在运算数之前,并且它们之间不能添加任何空格。
*/
let initialBits: UInt8 = 0b0000_1111
let invertedBits = ~initialBits // 等于 0b1111_0000
// 按位与运算符
/*
&: 按位与运算符,对两个数的比特位进行合并。
返回一个新的数,只有两个数的对应位都为1的时候,新数对应位才为1。
*... | mit | 092e8bc1dd4f62cd3db0b53f4f0286ab | 21.771429 | 82 | 0.698154 | 2.172508 | false | false | false | false |
jmgc/swift | test/Driver/Dependencies/independent-parseable-fine.swift | 1 | 4124 | // RUN: %empty-directory(%t)
// RUN: cp -r %S/Inputs/independent-fine/* %t
// RUN: touch -t 201401240005 %t/*
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -incremental -driver-always-rebuild-dep... | apache-2.0 | 53b08a980d552f4e5fb9133b0aa3acd9 | 51.871795 | 337 | 0.640155 | 3.114804 | false | false | true | false |
artkirillov/DesignPatterns | Singleton.playground/Contents.swift | 1 | 578 | final class Singleton {
static let shared = Singleton()
private init() {
}
var value: Int = 0
func doSomething() {
print("Doing something with value \(value)")
}
}
var object = Singleton.shared
object.value = 1000
var secondObject = Singleton.shared
secondO... | mit | 9f4bc33635124eaad9875db1a3627185 | 17.645161 | 52 | 0.6609 | 4.158273 | false | false | false | false |
firebase/SwiftLint | Source/SwiftLintFramework/Rules/NumberSeparatorRuleExamples.swift | 2 | 2563 | //
// NumberSeparatorRuleExamples.swift
// SwiftLint
//
// Created by Marcelo Fabri on 12/29/16.
// Copyright © 2016 Realm. All rights reserved.
//
import Foundation
internal struct NumberSeparatorRuleExamples {
static let nonTriggeringExamples: [String] = {
return ["-", "+", ""].flatMap { (sign: Str... | mit | e51a6b895b485969344c3f61792bc988 | 36.5 | 103 | 0.486667 | 3.517241 | false | false | false | false |
tao6/TaoAutoLayout | TaoAutoLayout/UIView+AutoLayout.swift | 1 | 14313 | //
// UIView+Extension.swift
// TaoAutoLayout
//
// Created by 刘涛 on 16/7/6.
// Copyright © 2016年 tao6. All rights reserved.
//
import UIKit
/// 对齐类型枚举,设置控件相对于父视图的位置
///
/// - TopLeft: 左上
/// - TopRight: 右上
/// - TopCenter: 中上
/// - BottomLeft: 左下
/// - BottomRight: 右下
/// - BottomCenter: 中下... | mit | 669017dfb656c0375c9e6daa3c109529 | 38.241983 | 222 | 0.61575 | 4.427632 | false | false | false | false |
pauljohanneskraft/Math | Example/CoreMath/Cocoa/NSMenu.swift | 1 | 2155 | //
// NSMenu.swift
// Math
//
// Created by Paul Kraft on 09.12.17.
// Copyright © 2017 pauljohanneskraft. All rights reserved.
//
import Cocoa
extension NSMenu {
static func makeAppMenuItem(for app: NSApplication, name: String) -> NSMenuItem {
let hideOthers = NSMenuItem(title: "Hide Others",
... | mit | 5a68c04d72333c3b71036b570c4c56b6 | 32.138462 | 109 | 0.553853 | 4.632258 | false | false | false | false |
FranDepascuali/ProyectoAlimentar | ProyectoAlimentar/Resources/Resource.swift | 1 | 1654 | //
// Resource.swift
// ProyectoAlimentar
//
// Created by Francisco Depascuali on 9/21/16.
// Copyright © 2016 Alimentar. All rights reserved.
//
import UIKit
public protocol Resource {
var identifier: String { get }
}
public enum ImageAssetIdentifier: String {
case OrderPin = "order_pin"
case Sel... | apache-2.0 | df381f0302f144b58975f86536c9051c | 28 | 150 | 0.727768 | 4.504087 | false | false | false | false |
Yogayu/EmotionNote | EmotionNote/EmotionNote/EmotionTableViewController.swift | 1 | 7173 | //
// EmotionTableViewController.swift
// EmotionNote
//
// Created by youxinyu on 15/12/1.
// Copyright © 2015年 yogayu.github.io. All rights reserved.
//
import UIKit
class EmotionTableViewController: UITableViewController {
var notes = [Note]()
override func viewDidLoad() {
super.viewD... | mit | 0db7a9dc2e23724ea584e3900df0acf8 | 43.521739 | 278 | 0.64495 | 4.906229 | false | false | false | false |
SuperAwesomeLTD/sa-mobile-sdk-ios | Pod/Classes/Common/Components/UserAgent.swift | 1 | 1196 | //
// WebAgent.swift
// SuperAwesome
//
// Created by Gunhan Sancar on 01/04/2020.
//
import WebKit
/**
* Class that returns the current User Agent using WKWebView object.
*/
@objc(SAUserAgentType)
public protocol UserAgentType {
@objc(name) var name: String { get }
}
@objc(SAUserAgent)
public class UserAgent... | lgpl-3.0 | dd30d4587f22136126e72151452803aa | 26.181818 | 98 | 0.643813 | 4.582375 | false | false | false | false |
apple/swift | test/expr/primary/literal/collection_upcast_opt.swift | 30 | 1227 | // RUN: %target-typecheck-verify-swift -dump-ast > %t.ast
// RUN: %FileCheck %s < %t.ast
// Verify that upcasts of array literals upcast the individual elements in place
// rather than introducing a collection_upcast_expr.
protocol P { }
struct X : P { }
struct TakesArray<T> {
init(_: [(T) -> Void]) { }
}
// CHEC... | apache-2.0 | 52437ce165e403e63acba86ac481147d | 31.289474 | 81 | 0.625102 | 3 | false | false | false | false |
pksprojects/ElasticSwift | Tests/ElasticSwiftQueryDSLTests/CompoundQueriesTests.swift | 1 | 9375 | //
// CompoundQuriesTests.swift
// ElasticSwiftQueryDSLTests
//
// Created by Prafull Kumar Soni on 9/2/19.
//
import Logging
import UnitTestSettings
import XCTest
@testable import ElasticSwiftCodableUtils
@testable import ElasticSwiftQueryDSL
class CompoundQueriesTest: XCTestCase {
let logger = Logger(label:... | mit | 772aca3e0def3e1304b5faf92fc077a6 | 33.981343 | 278 | 0.51328 | 4.294549 | false | true | false | false |
skyfe79/SwiftImageProcessing | 06_SplitRGBColorSpace_2.playground/Sources/ByteImage.swift | 1 | 4410 | import UIKit
/**
* 1byte크기의 화소 배열로 이뤄진 이미지
*/
public struct BytePixel {
private var value: UInt8
public init(value : UInt8) {
self.value = value
}
//red
public var C: UInt8 {
get { return value }
set { value = newValue }
}
public var Cf: Double {
... | mit | cbebf9a071595b22396251be37164e75 | 29.402878 | 235 | 0.564363 | 4.196624 | false | false | false | false |
vector-im/vector-ios | Riot/Modules/Room/TimelineCells/Styles/Bubble/BubbleRoomCellLayoutConstants.swift | 1 | 2410 | //
// Copyright 2021 New Vector Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to ... | apache-2.0 | 82c311633eae487a96220ed49949eac1 | 37.870968 | 193 | 0.711203 | 4.381818 | false | false | false | false |
halonsoluis/MiniRev | MiniRev/MiniRev/Social/MenuHandlers.swift | 1 | 3158 | //
// MenuHandlers.swift
// MiniRev
//
// Created by Hugo on 11/24/15.
// Copyright © 2015 Hugo Alonso. All rights reserved.
//
import Foundation
import Social
enum SubjectOptions : String {
case WhatIlove = "WhatIlove", Suggestions = "Suggestions", BugReport = "BugReport", Other = "Other", WhatIDontLike = "... | mit | 8ef883dd52de986d0aca0b9337cafc74 | 36.141176 | 136 | 0.677225 | 4.783333 | false | false | false | false |
kickstarter/ios-oss | Library/ViewModels/BackerDashboardViewModelTests.swift | 1 | 10368 | @testable import KsApi
@testable import Library
import Prelude
import ReactiveExtensions_TestHelpers
import ReactiveSwift
import XCTest
internal final class BackerDashboardViewModelTests: TestCase {
private let vm: BackerDashboardViewModelType = BackerDashboardViewModel()
private let avatarURL = TestObserver<Stri... | apache-2.0 | 8da2cbb6983c89340e5eab25b319cc42 | 42.563025 | 110 | 0.753376 | 4.470893 | false | true | false | false |
lorentey/GlueKit | Sources/SetSortingByMappingToComparable.swift | 1 | 4064 | //
// SetSortingByMappingToComparable.swift
// GlueKit
//
// Created by Károly Lőrentey on 2016-08-15.
// Copyright © 2015–2017 Károly Lőrentey.
//
import BTree
extension ObservableSetType {
/// Given a transformation into a comparable type, return an observable array containing transformed
/// versions o... | mit | 1917e1e8eb70bbcff331c90fa524056f | 36.564815 | 149 | 0.595514 | 4.971814 | false | false | false | false |
Onetaway/iOS8-day-by-day | 19-core-image-kernels/FilterBuilder/FilterBuilder/ChromaKeyFilter.swift | 3 | 1806 | //
// Copyright 2014 Scott Logic
//
// 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 w... | apache-2.0 | 37b8c26ad3ed45781319565491f80240 | 29.1 | 94 | 0.660576 | 3.883871 | false | false | false | false |
apple/swift-corelibs-foundation | Tests/Foundation/FixtureValues.swift | 1 | 18356 | // This source file is part of the Swift.org open source project
//
// Copyright (c) 2019 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 list of ... | apache-2.0 | b28b53c71ec4011b77221bd25ef71207 | 37.162162 | 203 | 0.665504 | 5.055357 | false | false | false | false |
LuckyResistor/FontToBytes | FontToBytes/MainViewController.swift | 1 | 16167 | //
// Lucky Resistor's Font to Byte
// ---------------------------------------------------------------------------
// (c)2015 by Lucky Resistor. See LICENSE for details.
//
// 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
// ... | gpl-2.0 | c8f3401c84b0dde245853434615f76ab | 39.211443 | 229 | 0.614538 | 5.402741 | false | false | false | false |
silt-lang/silt | Sources/InnerCore/IRGenerator.swift | 1 | 4895 | /// IRGenerator.swift
///
/// Copyright 2019, The Silt Language Project.
///
/// This project is released under the MIT license, a copy of which is
/// available in the repository.
import LLVM
import OuterCore
import Seismography
public enum IRGen {
public static func emit(_ module: GIRModule) -> Module {
let i... | mit | e8284f675e485d9e357fc70decc65b79 | 31.417219 | 80 | 0.628192 | 3.91287 | false | false | false | false |
oacastefanita/PollsFramework | Example/PollsFramework-mac/ViewObjectsViewController.swift | 1 | 5698 | //
// ViewObjectsViewController.swift
// PollsFramework
//
// Created by Stefanita Oaca on 29/08/2017.
// Copyright © 2017 CocoaPods. All rights reserved.
//
import Cocoa
import PollsFramework
class ViewObjectsListViewController: NSViewController, NSTableViewDataSource, NSTableViewDelegate {
var objects ... | mit | 08a528fca2ad35aa60940591b868e812 | 49.866071 | 208 | 0.657364 | 5.314366 | false | false | false | false |
uber/rides-ios-sdk | source/UberRides/Model/RideRequestLocation.swift | 1 | 3866 | //
// RideRequestLocation.swift
// UberRides
//
// Copyright © 2016 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 restrictio... | mit | ea6c9bff4fdc5770463392055960e33d | 37.63 | 92 | 0.674087 | 4.414857 | false | false | false | false |
SomaticLabs/SwiftMomentSDK | SwiftyZorb/Public/SwiftyZorb.swift | 1 | 10419 | //
// SwiftyZorb.swift
// SwiftyZorb
//
// Created by Jacob Rockland on 2/22/17.
// Copyright © 2017 Somatic Technologies, Inc. All rights reserved.
//
import SwiftyBluetooth
import Alamofire
import SwiftyJSON
// MARK: Bluetooth Management Methods
/**
Scans for and retrieves a collection of available Zorb devic... | mit | 259ff72a3a51e7faf89bd702b62cdc6d | 27.930556 | 186 | 0.71109 | 4.149402 | false | false | false | false |
TOWNTHON/Antonym | iOS/Antonym/Networking/NetworkEngine.swift | 1 | 2756 | //
// HttpMethod.swift
// Antonym
//
// Created by 広瀬緑 on 2016/10/29.
// Copyright © 2016年 midori hirose. All rights reserved.
//
import UIKit
import AVFoundation
final class NetworkEngine {
var antonym = ""
private let talker = AVSpeechSynthesizer()
func getAsync(text: String) {
let urlStrin... | mit | 5cf95efaef99467d30dfdca7f40093ce | 32.5 | 120 | 0.544594 | 4.42351 | false | false | false | false |
dobnezmi/EmotionNote | EmotionNote/WeeklyViewCell.swift | 1 | 4426 | //
// WeeklyViewCell.swift
// EmotionNote
//
// Created by Shingo Suzuki on 2016/09/29.
// Copyright © 2016年 dobnezmi. All rights reserved.
//
import UIKit
import RxSwift
class WeeklyViewCell: ChartViewCell {
@IBOutlet weak var scrollView: UIScrollView!
let disposeBag = DisposeBag()
// Cell ... | apache-2.0 | 7539be692f3a499d8cb90621336fd089 | 34.991803 | 120 | 0.618766 | 4.804158 | false | false | false | false |
dhf/SwiftForms | SwiftForms/cells/FormSegmentedControlCell.swift | 1 | 3276 | //
// FormSegmentedControlCell.swift
// SwiftForms
//
// Created by Miguel Angel Ortuno on 21/08/14.
// Copyright (c) 2014 Miguel Angel Ortuño. All rights reserved.
//
import UIKit
public class FormSegmentedControlCell: FormBaseCell {
/// MARK: Cell views
public let titleLabel = UILabel()
pu... | mit | 08d4b58bf2f2007f0dda8ff9b29dcdda | 34.989011 | 191 | 0.663511 | 5.560272 | false | false | false | false |
ps2/rileylink_ios | MinimedKitUI/Setup/MinimedPumpSetupCompleteViewController.swift | 1 | 884 | //
// MinimedPumpSetupCompleteViewController.swift
// Loop
//
// Copyright © 2018 LoopKit Authors. All rights reserved.
//
import UIKit
import LoopKitUI
class MinimedPumpSetupCompleteViewController: SetupTableViewController {
@IBOutlet private var pumpImageView: UIImageView!
var pumpImage: UIImage? {
... | mit | eb84f812207e35073014159cfc5174fe | 22.864865 | 101 | 0.669309 | 5.417178 | false | false | false | false |
yonadev/yona-app-ios | Yona/Yona/Others/AVPageViewController.swift | 1 | 3702 | //
// AVPageViewController.swift
// AVLighterPageViewController
//
// Created by Angel Vasa on 13/01/16.
// Copyright © 2016 Angel Vasa. All rights reserved.
//
import UIKit
class AVPageViewController: UIPageViewController, UIPageViewControllerDataSource, UIPageViewControllerDelegate {
var contentViews: ... | mpl-2.0 | 29fcde4f3ca39e375a98c54021110b51 | 40.58427 | 204 | 0.65739 | 6.047386 | false | false | false | false |
Josscii/iOS-Demos | ScrollTableViewDemo/ScrollTableViewDemo/ViewController4.swift | 1 | 2535 | //
// ViewController4.swift
// ScrollTableViewDemo
//
// Created by Josscii on 2017/11/26.
// Copyright © 2017年 Josscii. All rights reserved.
//
import UIKit
class CollaborativeScrollView: UIScrollView, UIGestureRecognizerDelegate {
var lastContentOffset: CGPoint = CGPoint(x: 0, y: 0)
// func ges... | mit | 2f4cafa7fba7f2bb40574957e47b8e5c | 33.684932 | 159 | 0.657188 | 5.125506 | false | false | false | false |
laurentVeliscek/AudioKit | AudioKit/Common/Playgrounds/Synthesis.playground/Pages/Dripping Sounds.xcplaygroundpage/Contents.swift | 1 | 2356 | //: ## Dripping Sounds
//: ### Physical model of a water drop letting hitting a pool.
//: ### What's this good for? We don't know, but hey it's cool. :)
import AudioKit
import XCPlayground
var playRate = 2.0
let drip = AKDrip(intensity: 1)
drip.intensity = 100
let reverb = AKReverb(drip)
AudioKit.output = reverb
A... | mit | 8dcea60f9baeb7724b148c198add5c31 | 29.217949 | 67 | 0.592105 | 5.034188 | false | false | false | false |
lilongcnc/Swift-weibo2015 | ILWEIBO04/ILWEIBO04/Classes/UI/Main/TabBar.swift | 1 | 2397 | //
// TabBar.swift
// ILWEIBO04
//
// Created by 李龙 on 15/3/6.
// Copyright (c) 2015年 Lauren. All rights reserved.
//
import UIKit
class TabBar: UITabBar {
//MARK: 创建回调到视图控制器中的闭包
var composedButtonClicked: (() -> ())?
override func awakeFromNib() {
self.addSubview(Composebutton!)
}... | mit | f733aa08debf633fc6bcccc0449a68fe | 25.402439 | 121 | 0.549654 | 4.436475 | false | false | false | false |
whiteath/ReadFoundationSource | Foundation/Decimal.swift | 2 | 71162 | // This source file is part of the Swift.org open source project
//
// Copyright (c) 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 list of ... | apache-2.0 | 42449945433f93ba8f6f7285ab8fcd09 | 32.191231 | 233 | 0.562027 | 4.12366 | false | false | false | false |
exponent/exponent | packages/expo-dev-launcher/ios/EXDevLauncherURLHelper.swift | 2 | 903 | // Copyright 2015-present 650 Industries. All rights reserved.
import Foundation
@objc
public class EXDevLauncherURLHelper: NSObject {
@objc
public static func isDevLauncherURL(_ url: URL?) -> Bool {
return url?.host == "expo-development-client"
}
@objc
public static func replaceEXPScheme(_ url: URL, t... | bsd-3-clause | 59c2b340c6b91e74f4c92c8816061ed5 | 27.21875 | 82 | 0.678848 | 4.180556 | false | false | false | false |
JJMoon/MySwiftCheatSheet | UI_Extension/HtAudioPlayer.swift | 1 | 4708 | //
// HtAudioPlayer.swift
// Trainer
//
// Created by Jongwoo Moon on 2016. 1. 27..
// Copyright © 2016년 IMLab. All rights reserved.
//
import Foundation
import AVFoundation
class HtAudioPlayer: NSObject {
var log = HtLog(cName: "HtAudioPlayer")
var counter = 0, pausing = false, repeatLmt = 1 // 기본은 한번만..... | apache-2.0 | 5d156075fc66db42782434b96615f344 | 24.785311 | 112 | 0.489371 | 3.933621 | false | false | false | false |
GetZero/Give-Me-One | MyOne/问题/ViewController/QuestionViewController.swift | 1 | 3463 | //
// ArticleViewController.swift
// MyOne
//
// Created by 韦曲凌 on 16/8/24.
// Copyright © 2016年 Wake GetZero. All rights reserved.
//
import UIKit
class QuestionViewController: UIViewController, UICollectionViewDelegate, UICollectionViewDataSource {
// MARK: Life circle and property
var questionMode... | apache-2.0 | 40299ce9cea600ef3924ec32b8e7e5e8 | 35.357895 | 157 | 0.665605 | 5.491256 | false | false | false | false |
jkolb/Swiftish | Sources/Swiftish/Plane.swift | 1 | 1861 | /*
The MIT License (MIT)
Copyright (c) 2015-2017 Justin Kolb
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 | 9d5e552636fc19d2161bf936eb39b6ea | 39.456522 | 85 | 0.727566 | 4.747449 | false | false | false | false |
esttorhe/SlackTeamExplorer | SlackTeamExplorer/SlackTeamCoreDataProxy/ViewModels/MembersViewModel.swift | 1 | 8417 | //
// MembersViewModel.swift
// SlackTeamCoreDataProxy
//
// Created by Esteban Torres on 29/6/15.
// Copyright (c) 2015 Esteban Torres. All rights reserved.
//
// Native Frameworks
import CoreData
// Pods
import ReactiveViewModel
import ReactiveCocoa
import ReachabilitySwift
public class MembersViewModel: RVMVi... | mit | bef4b755a98f87d746c068306eac263e | 42.611399 | 145 | 0.58168 | 5.317119 | false | false | false | false |
cavalcantedosanjos/ND-OnTheMap | OnTheMap/OnTheMap/ViewControllers/SearchLocationViewController.swift | 1 | 4899 | //
// SearchLocationViewController.swift
// OnTheMap
//
// Created by Joao Anjos on 14/02/17.
// Copyright © 2017 Joao Anjos. All rights reserved.
//
import UIKit
import CoreLocation
protocol SearchLocationViewControllerDelegate {
func didFinishedPostLocation()
}
class SearchLocationViewController: UIViewCon... | mit | 47b67bb24d0baccc0bbaba7c3fdefe7f | 31.872483 | 146 | 0.644753 | 5.347162 | false | false | false | false |
ryanbooker/Swiftz | Tests/SwiftzTests/ReaderSpec.swift | 1 | 2810 | //
// ReaderSpec.swift
// Swiftz
//
// Created by Matthew Purland on 11/25/15.
// Copyright © 2015-2016 TypeLift. All rights reserved.
//
import XCTest
import Swiftz
import SwiftCheck
class ReaderSpec : XCTestCase {
func testReader() {
func addOne() -> Reader<Int, Int> {
return asks { $0 + 1 }
... | bsd-3-clause | e6a53413e683ee12528548ad6a66fc73 | 33.256098 | 99 | 0.56141 | 4.430599 | false | false | false | false |
Jackysonglanlan/Scripts | swift/xunyou_accelerator/Tests/xunyou_acceleratorTests/helpers/AwaitExtension.swift | 1 | 1490 |
import Quick
import Nimble
// see https://www.swiftbysundell.com/posts/asyncawait-in-swift-unit-tests
class AwaitError : Error {}
extension QuickSpec {
/**
* Usage:
* let reValue = try await{ (callback: (String) -> Void) -> Void in
* // async op ...
* callback("result value")
... | unlicense | 7e890d45c780a40aff8075587b23a574 | 22.650794 | 99 | 0.521477 | 3.860104 | false | false | false | false |
kildevaeld/FASlideView | Example/Pods/Nimble/Nimble/Matchers/RaisesException.swift | 1 | 10050 | import Foundation
internal struct RaiseExceptionMatchResult {
var success: Bool
var nameFailureMessage: FailureMessage?
var reasonFailureMessage: FailureMessage?
var userInfoFailureMessage: FailureMessage?
}
internal func raiseExceptionMatcher(matches: (NSException?, SourceLocation) -> RaiseExceptionM... | mit | 7b70a43872f9b5eed54b5fd7c0d1a1eb | 41.584746 | 128 | 0.639801 | 5.911765 | false | false | false | false |
Mclarenyang/medicine_aid | medicine aid/VisitingRecordTableViewController.swift | 1 | 5535 | //
// VisitingRecordTableViewController.swift
// medicine aid
//
// Created by nexuslink mac 2 on 2017/7/16.
// Copyright © 2017年 NMID. All rights reserved.
//
import UIKit
import RealmSwift
class VisitingRecordTableViewController: UITableViewController {
// 显示列表参数
var list :[(String,String)] = [("",... | apache-2.0 | ae2a27ccad0c7c13970ef9b2cf17b8a3 | 29.761364 | 136 | 0.621167 | 5.088346 | false | false | false | false |
sourcebitsllc/Asset-Generator-Mac | XCAssetGenerator/StatusCrafter.swift | 1 | 1494 | //
// StatusViewModel.swift
// XCAssetGenerator
//
// Created by Bader on 5/26/15.
// Copyright (c) 2015 Bader Alabdulrazzaq. All rights reserved.
//
import Foundation
typealias Status = String
struct StatusCrafter {
static func postGeneration(catalog: Path, amount: Int) -> Status {
let s = pluraliz... | mit | 44e80574aa780d6b7b10f31041fb164f | 32.954545 | 104 | 0.608434 | 3.931579 | false | false | false | false |
rambler-ios/RamblerConferences | Carthage/Checkouts/rides-ios-sdk/examples/Swift SDK/Swift SDK/DeeplinkExampleViewController.swift | 1 | 4113 | //
// DeeplinkExampleViewController.swift
// Swift SDK
//
// 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 ... | mit | 9e175fd6f74c58e2d3e6da052e7babcf | 45.202247 | 189 | 0.730788 | 5.165829 | false | false | false | false |
craaron/ioscreator | SpriteKitSwiftAccelerometerTutorial/SpriteKitSwiftAccelerometerTutorial/GameScene.swift | 40 | 1356 | //
// GameScene.swift
// SpriteKitSwiftAccelerometerTutorial
//
// Created by Arthur Knopper on 10/12/14.
// Copyright (c) 2014 Arthur Knopper. All rights reserved.
//
import SpriteKit
import CoreMotion
class GameScene: SKScene {
var airplane = SKSpriteNode()
var motionManager = CMMotionManager()
var destX:... | mit | 61fcc224991421beb1ebf5dbb5fc20d4 | 24.584906 | 99 | 0.632743 | 4.374194 | false | false | false | false |
stakes/Frameless | Frameless/HistoryManager.swift | 2 | 6161 | //
// HistoryManager.swift
// Frameless
//
// Created by Jay Stakelon on 8/6/15.
// Copyright (c) 2015 Jay Stakelon. All rights reserved.
//
import WebKit
class HistoryManager: NSObject {
static let manager = HistoryManager()
let _maxHistoryItems = 50
var _fullHistory: Array<HistoryEntry>?
... | mit | 80ffeb2cd1910c7f6ef94551405599d6 | 37.748428 | 133 | 0.585132 | 5.100166 | false | false | false | false |
nostramap/nostra-sdk-sample-ios | IdentifySample/Swift/IdentifySample/IdentifyViewController.swift | 1 | 5490 | //
// ViewController.swift
// IdentifySample
//
// Copyright © 2559 Globtech. All rights reserved.
//
import UIKit
import NOSTRASDK
import ArcGIS
class IdentifyViewController: UIViewController, AGSMapViewLayerDelegate, AGSMapViewTouchDelegate, AGSLayerDelegate, AGSCalloutDelegate {
@IBOutlet weak var mapView: ... | apache-2.0 | 7c976d604aca0b84b364397c0fba4678 | 31.47929 | 136 | 0.559665 | 5.227619 | false | false | false | false |
benzhipeng/DFImageManager | DFImageManager.playground/section-1.swift | 1 | 827 | // Playground - noun: a place where people can play
import UIKit
import DFImageManagerKit
import XCPlayground
// WARNING: DFImageManager Swift interfaces are automatically generated by Xcode.
let manager = DFImageManager.sharedManager()
let imageURL = NSURL(string: "http://farm8.staticflickr.com/7315/16455839655_7d... | mit | d5e1aecd344e080a6e81a8704774c5ea | 33.458333 | 133 | 0.771463 | 4.094059 | false | false | false | false |
GreatfeatServices/gf-mobile-app | olivin-esguerra/ios-exam/Pods/RxSwift/RxSwift/Observables/Implementations/DelaySubscription.swift | 11 | 1458 | //
// DelaySubscription.swift
// RxSwift
//
// Created by Krunoslav Zaher on 6/14/15.
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
import Foundation
class DelaySubscriptionSink<O: ObserverType>
: Sink<O>, ObserverType {
typealias E = O.E
typealias Parent = DelaySubscription<E>
... | apache-2.0 | f2505bbaf8d5bfe35088da7fae9a5ee9 | 27.568627 | 145 | 0.641043 | 4.442073 | false | false | false | false |
icerockdev/IRPDFKit | IRPDFKit/Classes/IRPDFDocumentViewController.swift | 1 | 5499 | //
// Created by Aleksey Mikhailov on 10/10/16.
// Copyright © 2016 IceRock Development. All rights reserved.
//
import UIKit
import CoreGraphics
import JASON
public class IRPDFDocumentViewController: UIViewController {
@IBOutlet weak var pdfPagesScrollView: UIScrollView!
public var pdfDocumentUrl: NSURL? {
... | mit | a5960ce5a8d7ab077bc94dc110f0249c | 32.321212 | 110 | 0.721353 | 5.369141 | false | false | false | false |
Parallels-MIPT/Coconut-Kit | CoconutKit/CoconutKit/ICloudDirectoryManager.swift | 1 | 6794 | //
// ICloudDirectoryManager.swift
// ICDocumentsSync-IOS
//
// Created by Malyshev Alexander on 31.07.15.
// Copyright (c) 2015 SecurityQQ. All rights reserved.
//
import Foundation
struct Const {
static let documents = "Documents"
static let directoryOperationQueueName = "directory... | apache-2.0 | f624662685ac9d310cd55e6fedee073b | 43.411765 | 195 | 0.687077 | 5.555192 | false | false | false | false |
codeforgreenville/trolley-tracker-ios-client | TrolleyTracker/Dependencies/ConcurrentOperation.swift | 1 | 2103 | //
// GetETAOperation.swift
//
//
// Created by Austin Younts on 8/23/15.
//
//
import Foundation
class ConcurrentOperation: Operation {
override var isAsynchronous: Bool {
return true
}
override class func keyPathsForValuesAffectingValue(forKey key: String) -> Set<String> {
let keys... | mit | 581c2ca2adda44647236110233e8bbcf | 20.90625 | 93 | 0.504042 | 5.231343 | false | false | false | false |
ben-ng/swift | benchmark/single-source/Hanoi.swift | 1 | 1378 | //===--- Hanoi.swift ------------------------------------------------------===//
//
// 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 https://swift.org/L... | apache-2.0 | 2d42bf33f2b03e48cf21ea68453c9dd9 | 27.708333 | 80 | 0.582003 | 3.714286 | false | false | false | false |
adrfer/swift | test/SILGen/availability_query.swift | 1 | 2429 | // RUN: %target-swift-frontend -emit-silgen %s -target x86_64-apple-macosx10.50 | FileCheck %s
// REQUIRES: OS=macosx
// CHECK: [[MAJOR:%.*]] = integer_literal $Builtin.Word, 10
// CHECK: [[MINOR:%.*]] = integer_literal $Builtin.Word, 53
// CHECK: [[PATCH:%.*]] = integer_literal $Builtin.Word, 8
// CHECK: [[FUNC:%.*]... | apache-2.0 | 6c7875e6d23354bf9525b34f3d7e66c9 | 62.921053 | 170 | 0.650062 | 3.331962 | false | false | false | false |
hectoregm/ios_apprentice | Checklists/Checklists/DataModel.swift | 1 | 2890 | //
// DataModel.swift
// Checklists
//
// Created by Hector Enrique Gomez Morales on 12/30/14.
// Copyright (c) 2014 Hector Enrique Gomez Morales. All rights reserved.
//
import Foundation
class DataModel {
var lists = [Checklist]()
var indexOfSelectedChecklist: Int {
get {
return NSUs... | mit | fcbd85659094d40590aed86c757dc094 | 31.483146 | 115 | 0.621799 | 5.633528 | false | false | false | false |
codelynx/silvershadow | Silvershadow/Sequence+Z.swift | 1 | 1944 | //
// Sequence+Z.swift
// ZKit [swift 3]
//
// The MIT License (MIT)
//
// Copyright (c) 2016 Electricwoods LLC, Kaz Yoshikawa.
//
// 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 r... | mit | cca1bf52c70e0f524e67c9a1fbe586f5 | 32.517241 | 87 | 0.699074 | 3.521739 | false | false | false | false |
PatrickChow/Swift-Awsome | News/Modules/Channel..Listing/ViewController/ChannelListingsViewController.swift | 1 | 3501 | //
// Created by Patrick Chow on 2017/6/27.
// Copyright (c) 2017 JIEMIAN. All rights reserved.
import UIKit
import RxSwift
import RxCocoa
import RxDataSources
class ChannelListingsViewController: ViewController, UITableViewDelegate {
// typealias _SectionModelType = SectionModel<String, ChannelModel>
publi... | mit | 5a9fb163ba246aa5aa1b1b2245d62bdc | 33.77 | 125 | 0.606845 | 5.71875 | false | false | false | false |
Duraiamuthan/HybridWebRTC_iOS | WebRTCSupport/Pods/XWebView/XWebView/XWVMetaObject.swift | 1 | 9445 | /*
Copyright 2015 XWebView
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, software
dis... | gpl-3.0 | d151f9e788411a9785e66724558bf1fe | 35.608527 | 136 | 0.505558 | 5.30618 | false | false | false | false |
efremidze/Cluster | Sources/Annotation.swift | 1 | 4619 | //
// Annotation.swift
// Cluster
//
// Created by Lasha Efremidze on 4/15/17.
// Copyright © 2017 efremidze. All rights reserved.
//
import MapKit
open class Annotation: MKPointAnnotation {
// @available(swift, obsoleted: 6.0, message: "Please migrate to StyledClusterAnnotationView.")
open var style: Clu... | mit | 848af0d268f769df97634c8a69783b23 | 28.793548 | 245 | 0.614335 | 5.09151 | false | false | false | false |
wenghengcong/Coderpursue | BeeFun/BeeFun/ToolKit/JSToolKit/JSUI/TableViewCell/JSCellModelFactory.swift | 1 | 2592 | //
// JSCellModelFactory.swift
// BeeFun
//
// Created by WengHengcong on 25/06/2017.
// Copyright © 2017 JungleSong. All rights reserved.
//
import UIKit
/// Model工厂
class JSCellModelFactory {
// MARK: - Label
static func labelInit(type: String, id: String, key: String?, value: String?, discosure: B... | mit | 7508442439c2b54ad1471aac5802a91b | 41.409836 | 171 | 0.649014 | 3.716954 | false | false | false | false |
mottx/XCGLogger | Sources/XCGLogger/Destinations/FileDestination.swift | 1 | 8860 | //
// FileDestination.swift
// XCGLogger: https://github.com/DaveWoodCom/XCGLogger
//
// Created by Dave Wood on 2014-06-06.
// Copyright © 2014 Dave Wood, Cerebral Gardens.
// Some rights reserved: https://github.com/DaveWoodCom/XCGLogger/blob/master/LICENSE.txt
//
import Foundation
import Dispatch
// MARK: - F... | mit | a0bc8d3bad628741b54c6dc03e234f7d | 33.877953 | 284 | 0.57388 | 5.192849 | false | false | false | false |
khoren93/SwiftHub | SwiftHub/Application/AppDelegate.swift | 1 | 3746 | //
// AppDelegate.swift
// SwiftHub
//
// Created by Khoren Markosyan on 1/4/17.
// Copyright © 2017 Khoren Markosyan. All rights reserved.
//
import UIKit
import Toast_Swift
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
static var shared: AppDelegate? {
return UIApplicat... | mit | 164138ce4dcbe3fbffb15bbc4e475fb8 | 45.234568 | 285 | 0.68972 | 5.319602 | false | false | false | false |
spr/littleswiftsnippets | June-2014/SwappingValues.playground/section-1.swift | 1 | 226 | // Swapping in Swift
// Old way
func mySwap<T>(inout x: T, inout y: T) {
var hold = x
x = y
y = hold
}
var one = 1
var two = 2
mySwap(&one, &two)
one
two
// Swap with tuples
(two, one) = (one, two)
one
two
| unlicense | fb2cdafc9b6546cc1f1ccccba772f8a8 | 8.416667 | 40 | 0.553097 | 2.404255 | false | false | false | false |
AlexeyTyurenkov/NBUStats | NBUStatProject/FinstatLib/FinstatLib/Models/Sttring+Time.swift | 1 | 648 | //
// Sttring+Time.swift
// FinStat Ukraine
//
// Created by Aleksey Tyurenkov on 3/2/18.
// Copyright © 2018 Oleksii Tiurenkov. All rights reserved.
//
import Foundation
extension String
{
func UTCToLocal() -> String {
let dateFormatter = DateFormatter()
dateFormatter.dateFormat = "yyyy-MM-dd... | mit | fc0f726f836c342f7a55fcd6ed97e125 | 25.958333 | 74 | 0.647604 | 3.85119 | false | false | false | false |
narner/AudioKit | AudioKit/Common/Nodes/Generators/Oscillators/PWM Oscillator/AKPWMOscillator.swift | 1 | 6469 | //
// AKPWMOscillator.swift
// AudioKit
//
// Created by Aurelius Prochazka, revision history on Github.
// Copyright © 2017 Aurelius Prochazka. All rights reserved.
//
/// Pulse-Width Modulating Oscillator
///
open class AKPWMOscillator: AKNode, AKToggleable, AKComponent {
public typealias AKAudioUnitType = A... | mit | 71fc7014b4a5be9cc6d30f4954575957 | 32.863874 | 105 | 0.576685 | 5.769848 | false | false | false | false |
whiteshadow-gr/HatForIOS | HAT/Objects/File Upload Object/HATFileUploadStatus.swift | 1 | 2204 | /**
* Copyright (C) 2018 HAT Data Exchange Ltd
*
* SPDX-License-Identifier: MPL2
*
* This file is part of the Hub of All Things project (HAT).
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one... | mpl-2.0 | 2de87ec2ca87cc1b56f76a5cd99025ee | 21.958333 | 125 | 0.564882 | 4.434608 | false | false | false | false |
S2dentik/Taylor | TaylorFramework/Modules/caprices/ProccessingMessage/InformationalOptionsFactory.swift | 4 | 1851 | //
// InformationalOptionsFactory.swift
// Caprices
//
// Created by Alex Culeva on 11/2/15.
// Copyright © 2015 yopeso.dmitriicelpan. All rights reserved.
//
import Cocoa
import Foundation
typealias OutputReporter = [String: String]
typealias CustomizationRule = [String: Int]
struct InformationalOptionsFactory ... | mit | 3ba95e46fffa97828fc61fac424c5077 | 29.833333 | 98 | 0.659459 | 4.534314 | false | false | false | false |
glessard/swift-channels | ChannelsTests/SimpleChannel.swift | 1 | 1934 | //
// SimpleChannel.swift
// concurrency
//
// Created by Guillaume Lessard on 2014-12-08.
// Copyright (c) 2014 Guillaume Lessard. All rights reserved.
//
import Darwin
import Dispatch
@testable import Channels
/**
The simplest single-element buffered channel that can
fulfill the contract of ChannelType.
*/... | mit | 05b7a747665ca7e5583bb986e224cdf6 | 16.423423 | 71 | 0.624095 | 4.114894 | false | false | false | false |
DouglasHennrich/TextFieldEffects | TextFieldEffects/TextFieldEffects/KaedeTextField.swift | 3 | 4003 | //
// KaedeTextField.swift
// Swish
//
// Created by Raúl Riera on 20/01/2015.
// Copyright (c) 2015 com.raulriera.swishapp. All rights reserved.
//
import UIKit
@IBDesignable public class KaedeTextField: TextFieldEffects {
@IBInspectable public var placeholderColor: UIColor? {
didSet {
... | mit | 0744a39bd98e7289114a762ade1d8024 | 34.114035 | 160 | 0.638681 | 5.008761 | false | false | false | false |
txstate-etc/mobile-tracs-ios | mobile-tracs-ios/Data/Settings.swift | 1 | 2059 | //
// Settings.swift
// mobile-tracs-ios
//
// Created by Nick Wing on 3/26/17.
// Copyright © 2017 Texas State University. All rights reserved.
//
import Foundation
class Settings : JSONRepresentable {
var global_disable = false
var disabled_filters:[SettingsEntry] = []
init() {
}
... | mit | 7188b9b47decb295ceda9c24a9b341d1 | 27.985915 | 85 | 0.607386 | 4.278586 | false | false | false | false |
apptut/PhotoPicker | PhotoPicker/ViewController.swift | 1 | 11320 | //
// ViewController.swift
// PhotoPicker
//
// Created by liangqi on 16/3/4.
// Copyright © 2016年 dailyios. All rights reserved.
//
import UIKit
import Photos
import MobileCoreServices
class ViewController: UIViewController,PhotoPickerControllerDelegate, UIImagePickerControllerDelegate, UINavigationControllerDel... | apache-2.0 | 81d42e8daf29089bf20b2b89d580597e | 35.069079 | 218 | 0.587232 | 4.914836 | false | false | false | false |
Mioke/PlanB | PlanB/PlanB/Base/Kits/ModuleLoader/ModuleLoader.swift | 1 | 2218 | //
// ModuleLoader.swift
// swiftArchitecture
//
// Created by jiangkelan on 5/12/16.
// Copyright © 2016 KleinMioke. All rights reserved.
//
import UIKit
class ModuleLoader: NSObject {
enum OperationLevel: Int {
case High; case Low; case Default
}
private static var defaultLoader: M... | gpl-3.0 | 31add4da9af70c4023134e51b203d76d | 27.792208 | 99 | 0.529995 | 4.767742 | false | false | false | false |
Calvin-Huang/CHCarouselView | CHCarouselView/Views/CarouselView.swift | 1 | 9600 | //
// CarouselView.swift
// CHCarouselView
//
// Created by Calvin on 8/5/16.
// Copyright © 2016 CapsLock. All rights reserved.
//
import UIKit
open class CarouselView: UIScrollView {
@IBOutlet weak var pageControl: UIPageControl?
@IBOutlet open var views: [UIView] = [] {
willSet {
vi... | mit | ab93c0e00166e0d739ad0a4fb7fd6a3c | 29.667732 | 156 | 0.519012 | 5.119467 | false | false | false | false |
Bluthwort/Bluthwort | Sources/Classes/Core/Constants.swift | 1 | 1765 | //
// Constants.swift
//
// Copyright (c) 2018 Bluthwort
//
// 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, co... | mit | fc0b16145de0fe83ae395f8a7aab4525 | 44.25641 | 81 | 0.769972 | 4.423559 | false | false | false | false |
matthewpurcell/firefox-ios | Providers/NSUserDefaultsPrefs.swift | 9 | 4927 | /* 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
public class NSUserDefaultsPrefs: Prefs {
private let prefixWithDot: String
... | mpl-2.0 | 4771f8fee4ae47590ead42c5891276d7 | 36.325758 | 97 | 0.679724 | 4.971746 | false | false | false | false |
24/ios-o2o-c | gxc/Order/OrderDetailLeftViewController.swift | 1 | 12447 | //
// OrderDetailLeftViewController.swift
// gxc
//
// Created by gx on 14/12/8.
// Copyright (c) 2014年 zheng. All rights reserved.
//
import Foundation
class OrderDetailLeftViewController: UIViewController {
var leftView = UIView()
var lleftView = UIView()
var shopOrderDetail = GXViewState.Orde... | mit | f50303d1689da3fdb7f2b2dcc87439b6 | 36.654434 | 155 | 0.549501 | 4.601271 | false | false | false | false |
jhihguan/JSON2Realm | Pods/Gloss/Sources/Encoder.swift | 1 | 8371 | //
// Encoder.swift
// Gloss
//
// Copyright (c) 2015 Harlan Kellaway
//
// 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
// t... | mit | e520b819d2c5766745a976b81676f2bd | 28.37193 | 107 | 0.551189 | 5.400645 | false | false | false | false |
jeffreality/iOS-Swift-Camera | iOS Swift Camera/RecordVideoViewController.swift | 1 | 7826 | //
// RecordVideoViewController.swift
// iOS Swift Camera
//
// Created by Jeffrey Berthiaume on 9/18/15.
// Copyright © 2015 Jeffrey Berthiaume. All rights reserved.
//
import UIKit
import AVFoundation
class RecordVideoViewController: UIViewController {
var movieFileOutput:AVCaptureMovieFileOutput? = nil
... | gpl-2.0 | f077266bf3b44449cfcaead96e246c36 | 31.069672 | 178 | 0.698019 | 5.593281 | false | false | false | false |
jmgc/swift | stdlib/public/Concurrency/Task.swift | 1 | 14346 | ////===----------------------------------------------------------------------===//
////
//// This source file is part of the Swift.org open source project
////
//// Copyright (c) 2020 Apple Inc. and the Swift project authors
//// Licensed under Apache License v2.0 with Runtime Library Exception
////
//// See https://sw... | apache-2.0 | ecd298a0b3a6d5706aca47b4a1a0a760 | 33.157143 | 92 | 0.646522 | 4.37378 | false | false | false | false |
chenzhe555/core-ios-swift | core-ios-swift/Framework_swift/CustomView/custom/AdScrollView/BaseImageScrollView_s.swift | 1 | 8255 | //
// BaseImageScrollView_s.swift
// MeicaiStore_swift
//
// Created by mc962 on 16/3/2.
// Copyright © 2016年 陈哲是个好孩子. All rights reserved.
//
import UIKit
@objc public protocol BaseImageScrollViewDelegate {
func dlScrollImageClickedAtIndex(index: NSInteger);
}
class BaseImageScrollView_s: UIView,UIScrollVi... | mit | 13290300ab3ca1750c36598b410e71b5 | 37.878049 | 201 | 0.632246 | 4.572576 | false | false | false | false |
fabioalmeida/FAAutoLayout | FAAutoLayout/Classes/UIView+Fill.swift | 1 | 5184 | //
// UIView+Fill.swift
// FAAutoLayout
//
// Created by Fábio Almeida on 27/06/2017.
// Copyright (c) 2017 Fábio Almeida. All rights reserved.
//
import UIKit
// MARK: - Fill
public extension UIView {
/// Constrains all the view margins to its container view (i.e. the view **superview**).
///
/// Th... | mit | b548e4cc3e01e4d080fa2535b115f181 | 64.594937 | 169 | 0.712852 | 5.05561 | false | false | false | false |
Chris-Perkins/Lifting-Buddy | Lifting Buddy/ExercisesTableViewCell.swift | 1 | 12765 | //
// ExercisesTableViewCell.swift
// Lifting Buddy
//
// Created by Christopher Perkins on 11/1/17.
// Copyright © 2017 Christopher Perkins. All rights reserved.
//
import UIKit
import SwiftCharts
class ExerciseTableViewCell: UITableViewCell {
// MARK: View properties
// The multiplier of how m... | mit | 5e87a164dfc2194143a12c5203f20c55 | 45.926471 | 115 | 0.556174 | 7.190986 | false | false | false | false |
roecrew/AudioKit | AudioKit/Common/Playgrounds/Basics.playground/Pages/Balancing Nodes.xcplaygroundpage/Contents.swift | 1 | 1409 | //: [TOC](Table%20Of%20Contents) | [Previous](@previous) | [Next](@next)
//:
//: ---
//:
//: ## Balancing Nodes
//: Sometimes you want to ensure that an audio signal that you're processing
//: remains at a volume similar to where it started.
//: Such an application is perfect for the AKBalancer node.
import XCPlaygroun... | mit | 0edbd8b29d5bc4adc9a92e6ce8098dde | 31.022727 | 97 | 0.748758 | 4.295732 | false | false | false | false |
nmdias/FeedKit | Tests/RSS2Tests.swift | 1 | 11275 | //
// RSS2Tests.swift
//
// Copyright (c) 2016 - 2018 Nuno Manuel Dias
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
... | mit | 21db7677b72ac919066015bffd1a3e9e | 48.451754 | 285 | 0.612062 | 4.602041 | false | false | false | false |
derekcoder/SwiftDevHints | SwiftDevHints/Classes/DateExtensions.swift | 2 | 12001 | //
// DateExtensions.swift
// SwiftDevHints
//
// Created by ZHOU DENGFENG on 17/12/17.
// Copyright © 2017 ZHOU DENGFENG DEREK. All rights reserved.
//
import Foundation
public extension Date {
func next(of component: Calendar.Component) -> Date? {
let calendar = Calendar.current
switch compo... | mit | 326a832c27accb6c42b20e6a37e52b02 | 34.608309 | 127 | 0.576 | 4.210526 | false | false | false | false |
zmian/xcore.swift | Sources/Xcore/Cocoa/Components/Theme/Theme+Configure.swift | 1 | 2206 | //
// Xcore
// Copyright © 2016 Xcore
// MIT license, see LICENSE file for details
//
import UIKit
extension Theme {
/// A method to set system components default appearance using the given theme.
///
/// - Parameter theme: The theme to set.
public static func set(_ theme: Theme) {
self.defaul... | mit | a0b319a1291cd9a8146d91f36c1a7033 | 29.205479 | 88 | 0.61542 | 5.127907 | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.