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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
CoderXiaoming/Ronaldo | SaleManager/SaleManager/Sales/Model/SAMSaleOrderDetailListModel.swift | 1 | 1292 | //
// SAMSaleOrderDetailListModel.swift
// SaleManager
//
// Created by apple on 16/12/9.
// Copyright © 2016年 YZH. All rights reserved.
//
import UIKit
class SAMSaleOrderDetailListModel: NSObject {
///明细项id
var id: String?
///产品编号id
var productID: String?
///产品编号名称
var productIDName: Str... | apache-2.0 | 87059bc82a7c7d75197ff9d183dda3f4 | 22.54 | 71 | 0.491079 | 3.772436 | false | false | false | false |
tavultesoft/keymanweb | ios/engine/KMEI/KeymanEngineTests/KeyboardScaleTests.swift | 1 | 3607 | //
// KeyboardScaleTests.swift
// KeymanEngineTests
//
// Created by Joshua Horton on 2/20/20.
// Copyright © 2020 SIL International. All rights reserved.
//
import XCTest
@testable import KeymanEngine
import DeviceKit
extension KeyboardSize: Equatable {
public static func == (lhs: KeyboardSize, rhs: KeyboardSi... | apache-2.0 | 319e7d45b29f2ef8b78a878a6ff9fd93 | 39.977273 | 138 | 0.615641 | 5.064607 | false | true | false | false |
pinterest/tulsi | src/TulsiGenerator/TulsiProjectInfoExtractor.swift | 1 | 4709 | // Copyright 2016 The Tulsi Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by ap... | apache-2.0 | 3526756d92a4c3c28ca9f85b2f03676b | 47.05102 | 106 | 0.580803 | 6.44186 | false | true | false | false |
devandsev/theTVDB-iOS | tvShows/Source/Services/API/APIResources/SeriesAPI.swift | 1 | 1481 | //
// SeriesAPI.swift
// tvShows
//
// Created by Andrey Sevrikov on 22/07/2017.
// Copyright © 2017 devandsev. All rights reserved.
//
import Foundation
import ObjectMapper
class SeriesAPI: HasDependencies {
typealias Dependencies = HasApiService
var di: Dependencies!
let endpoint = "/serie... | mit | 7acd6d1b59f4c0a1d8a8121d76c0d755 | 27.461538 | 112 | 0.530405 | 4.66877 | false | false | false | false |
cuzv/ExtensionKit | Sources/Extension/CoreGraphics+Extension.swift | 1 | 18342 | //
// CoreGraphics+Extension.swift
// Copyright (c) 2015-2016 Red Rain (http://mochxiao.com).
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without... | mit | c2dc4a526e16a84789703b930ddc1f4a | 29.465116 | 139 | 0.618321 | 4.172924 | false | false | false | false |
rishi420/SearchTableView | SearchTable/SearchTableView.swift | 1 | 4278 | //
// SearchTableView.swift
// Genops
//
// Created by Warif Akhand Rishi on 4/11/16.
// Copyright © 2016 Genweb2. All rights reserved.
//
import UIKit
public protocol SearchTableViewDataSource : NSObjectProtocol {
func searchPropertyName() -> String
}
class SearchTableView : UITableView {
var itemList ... | mit | 41060e8e58471b3217e1dc41b078b5b8 | 37.531532 | 207 | 0.663082 | 5.965132 | false | false | false | false |
Bouke/HAP | Sources/HAP/Base/Predefined/Characteristics/Characteristic.RelativeHumidityHumidifierThreshold.swift | 1 | 2199 | import Foundation
public extension AnyCharacteristic {
static func relativeHumidityHumidifierThreshold(
_ value: Float = 0,
permissions: [CharacteristicPermission] = [.read, .write, .events],
description: String? = "Relative Humidity Humidifier Threshold",
format: CharacteristicForm... | mit | 585828b918c69b1c3d2480c30c9defdd | 35.04918 | 75 | 0.602092 | 5.389706 | false | false | false | false |
icecrystal23/ios-charts | ChartsDemo-iOS/Swift/Demos/LineChart2ViewController.swift | 2 | 7625 | //
// LineChart2ViewController.swift
// ChartsDemo-iOS
//
// Created by Jacob Christie on 2017-07-09.
// Copyright © 2017 jc. All rights reserved.
//
import UIKit
import Charts
class LineChart2ViewController: DemoBaseViewController {
@IBOutlet var chartView: LineChartView!
@IBOutlet var sliderX: UISlider... | apache-2.0 | c5299778dc9f3773b96eeb1a27865ce4 | 37.12 | 186 | 0.585519 | 4.791955 | false | false | false | false |
FoodMob/FoodMob-iOS | FoodMob/Networking/FoodMobService.swift | 1 | 11923 | //
// FoodMobService.swift
// FoodMob
//
// Created by Jonathan Jemson on 2/5/16.
// Copyright © 2016 Jonathan Jemson. All rights reserved.
//
import Foundation
import Alamofire
import SwiftyJSON
import UIKit.UIImage
import AlamofireImage
/**
The actual FoodMob service data source. Requires network access in o... | mit | 6557457fd08c22225440031dcd6b821e | 43.823308 | 331 | 0.539004 | 5.578849 | false | false | false | false |
abstractmachine/Automatic.Writer | AutomaticWriter/Views/OutlineView/FileSystemItem.swift | 1 | 4740 | //
// FileSystemItem.swift
// AutomaticWriter
//
// Created by Raphael on 19.01.15.
// Copyright (c) 2015 HEAD Geneva. All rights reserved.
//
import Cocoa
let leafNode:[FileSystemItem] = []
/*
func ==(left:FileSystemItem, right:FileSystemItem) -> Bool {
return left.relativePath == right.relativePath
}
*/
c... | mit | 0913dfbf51ed9627a082da68fe24bf18 | 29.191083 | 118 | 0.551266 | 5.313901 | false | false | false | false |
lemberg/connfa-ios | Connfa/Stores/Firebase/UserFirebase.swift | 1 | 6509 | //
// UserFirebaseManager.swift
// Connfa
//
// Created by Marian Fedyk on 12/15/17.
// Copyright © 2017 Lemberg Solution. All rights reserved.
//
import Foundation
import Firebase
import SVProgressHUD
extension UserDefaults {
private var timezoneAlertHasBeenShownKey: String {
return "com.connfa.timezoneAle... | apache-2.0 | 22d7ad7957634487fcbdbe3d247244d2 | 28.447964 | 169 | 0.650738 | 4.267541 | false | false | false | false |
narner/AudioKit | AudioKit/Common/Nodes/Generators/Oscillators/Phase Distortion Oscillator/AKPhaseDistortionOscillator.swift | 1 | 6940 | //
// AKPhaseDistortionOscillator.swift
// AudioKit
//
// Created by Aurelius Prochazka, revision history on Github.
// Copyright © 2017 Aurelius Prochazka. All rights reserved.
//
/// Phase Distortion Oscillator
///
open class AKPhaseDistortionOscillator: AKNode, AKToggleable, AKComponent {
public typealias A... | mit | 7ca97d445edb9024eaf6903f6ee23b9c | 33.695 | 105 | 0.583946 | 5.66449 | false | false | false | false |
stephentyrone/swift | stdlib/public/core/StringObject.swift | 6 | 40706 | //===----------------------------------------------------------------------===//
//
// 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 | be009c62dd1e38175c7c4813752f8303 | 32.018341 | 80 | 0.669418 | 4.066036 | false | false | false | false |
congncif/SiFUtilities | Foundation/Data/DataConvert.swift | 1 | 1418 | //
// DataConvert.swift
//
//
// Created by NGUYEN CHI CONG on 12/18/20.
//
import Foundation
extension String {
public func data() -> Data? {
data(using: .utf8)
}
public func jsonDictionary(encoding: String.Encoding = .utf8) -> [String: Any]? {
data(using: encoding)?.jsonDictionary()... | mit | 8220ea6b1b98eeb38a8d6a64e3c2e46b | 24.321429 | 85 | 0.621298 | 3.960894 | false | false | false | false |
exyte/Macaw | Source/MCAMediaTimingFunctionName_macOS.swift | 1 | 565 | //
// MCAMediaTimingFunctionName_macOS.swift
// MacawOSX
//
// Created by Anton Marunko on 27/09/2018.
// Copyright © 2018 Exyte. All rights reserved.
//
import Foundation
#if os(OSX)
import AppKit
public struct MCAMediaTimingFunctionName {
static let linear = CAMediaTimingFunctionName.default
static let... | mit | 397f40c12cc1f2d32961d55fcd3aef41 | 24.636364 | 70 | 0.774823 | 4.7 | false | false | false | false |
blinker13/Canvas | Sources/Text/Text+Nesting.swift | 2 | 763 |
public extension Text {
//
// init(attributes:Attributes, separator:String? = " ", _ texts:[Text]) {
//
// var string = ""
// var runs = [Run]()
//
// for text in texts {
//
// if let separation = separator && !separation.isEmpty && !string.isEmpty {
// let location = string.characters.count
// let length =... | mit | d165f350e3f0dc975659ee305f7be02c | 25.310345 | 78 | 0.623853 | 3.076613 | false | false | false | false |
skedgo/tripkit-ios | Sources/TripKitInterApp/TKInterAppCommunicator+TurnByTurn.swift | 1 | 9400 | //
// TKInterAppCommunicator+TurnByTurn.swift
// TripKitInterApp-iOS
//
// Created by Adrian Schönig on 05.04.18.
// Copyright © 2018 SkedGo. All rights reserved.
//
import UIKit
import TripKit
import MapKit
extension TKInterAppCommunicator {
@objc(canOpenInMapsApp:)
public static func canOpenInMapsApp(_ ... | apache-2.0 | 6235ab543a8d7e265c9c900a4108b636 | 34.330827 | 135 | 0.673228 | 4.348913 | false | false | false | false |
steve-holmes/music-app-2 | MusicApp/Modules/Rank/RankSongViewController.swift | 1 | 4330 | //
// RankSongViewController.swift
// MusicApp
//
// Created by Hưng Đỗ on 6/30/17.
// Copyright © 2017 HungDo. All rights reserved.
//
import UIKit
import RxSwift
import RxCocoa
import Action
import RxDataSources
import NSObject_Rx
class RankSongViewController: UIViewController {
@IBOutlet weak var tabl... | mit | eb2e0f3d15ae2230574a7e90928e0399 | 29.034722 | 132 | 0.600231 | 5.192077 | false | false | false | false |
Davidde94/StemCode_iOS | StemCode/StemCode/Code/Window/File Editor/FileStrategyStem.swift | 1 | 1029 | //
// FileStrategyStem.swift
// StemCode
//
// Created by David Evans on 14/07/2018.
// Copyright © 2018 BlackPoint LTD. All rights reserved.
//
import UIKit
import StemProjectKit
class FileStrategyStem: UIView, FileStrategy {
@IBOutlet var iconImageView: UIImageView!
@IBOutlet var nameTextField: UIT... | mit | 34f1c613a263278202a349d992f6ba9a | 18.769231 | 84 | 0.571012 | 4.528634 | false | false | false | false |
xedin/swift | test/NameBinding/scope_map_top_level.swift | 1 | 3916 | // Note: test of the scope map. All of these tests are line- and
// column-sensitive, so any additions should go at the end.
struct S0 { }
let a: Int? = 1
guard let b = a else {
}
func foo() {} // to interrupt the TopLevelCodeDecl
let c = b
typealias T = Int
extension Int {
func my_identity() -> Int { return s... | apache-2.0 | c63695f46f5d1469afff2833179135bd | 60.1875 | 143 | 0.53141 | 3.701323 | false | false | false | false |
eCrowdMedia/MooApi | Sources/Response/TagResponse.swift | 1 | 3234 | import Foundation
public struct TagResponse: Codable {
public let meta : Meta?
public let links : Links?
public let data : [Data]
public let included: [Included]?
}
// MARK: - Meta
extension TagResponse {
public struct Meta: Codable {
public struct Page: Codable {
public let cou... | mit | 426a883c5e58cc8b546e50a04c9e1e2c | 19.730769 | 97 | 0.55504 | 4.769912 | false | false | false | false |
barrymcandrews/aurora-ios | Aurora/ContextManager.swift | 1 | 1069 | //
// ContextManager.swift
// Aurora
//
// Created by Barry McAndrews on 5/21/17.
// Copyright © 2017 Barry McAndrews. All rights reserved.
//
import UIKit
public class ContextManager: NSObject {
static var context: [String: Any] {
get {
let context = [
"hostname": Requ... | bsd-2-clause | 799dd6040a1efe103bbbbec39c4b0f2a | 26.384615 | 114 | 0.523408 | 4.876712 | false | false | false | false |
davidhariri/done | Done/RootViewController.swift | 1 | 3200 | //
// ViewController.swift
// Done
//
// Created by David Hariri on 2017-03-08.
// Copyright © 2017 David Hariri. All rights reserved.
//
/*
RootViewController handles:
- Scrolling through TodoLists
- Mounting the TodoListProvider
- Mounting TodoListViewControllers with their TodoLists
- Creating... | apache-2.0 | dd0cc596fbe457a7183f3aaa1bd27e48 | 27.5625 | 81 | 0.60769 | 5.077778 | false | false | false | false |
icanzilb/EventBlankApp | EventBlank/EventBlank/Shared.swift | 2 | 409 | //
// Shared.swift
// EventBlank
//
// Created by Marin Todorov on 9/23/15.
// Copyright (c) 2015 Underplot ltd. All rights reserved.
//
import UIKit
let shortStyleDateFormatter: NSDateFormatter = {
let formatter = NSDateFormatter()
formatter.locale = NSLocale(localeIdentifier: "en_US_POSIX")
formatte... | mit | 9f888722ad6241ff834886de7a56d4eb | 21.722222 | 64 | 0.696822 | 4.049505 | false | false | false | false |
huang1988519/WechatArticles | WechatArticles/WechatArticles/Library/MonkeyKing/AnyActivity.swift | 2 | 1242 | //
// AnyActivity.swift
// MonkeyKing
//
// Created by NIX on 15/9/11.
// Copyright © 2015年 nixWork. All rights reserved.
//
import UIKit
public class AnyActivity: UIActivity {
let type: String
let title: String
let image: UIImage
let message: MonkeyKing.Message
let finish: MonkeyKing.Finish... | apache-2.0 | cd4477672b1c113659cf1dded06007d3 | 20.736842 | 118 | 0.642454 | 4.605948 | false | false | false | false |
knchst0704/Walhalla | Pod/Classes/Walhalla.swift | 1 | 12861 | //
// Walhalla.swift
// Walhalla
//
// Created by Kenichi Saito on 2/5/15.
// Copyright (c) 2015 Kenichi Saito. All rights reserved.
//
import UIKit
public class Walhalla {
public enum AnimationType {
case BounceLeft
case BounceRight
case BounceUp
case BounceDown
c... | mit | 2a76d921c2a35085ab5eaec942a24390 | 57.199095 | 154 | 0.594277 | 5.965213 | false | false | false | false |
WhisperSystems/Signal-iOS | SignalMessaging/ViewControllers/Stickers/StickerPackViewController.swift | 1 | 17481 | //
// Copyright (c) 2019 Open Whisper Systems. All rights reserved.
//
import Foundation
import SignalServiceKit
import YYImage
@objc
public class StickerPackViewController: OWSViewController {
// MARK: - Dependencies
private var databaseStorage: SDSDatabaseStorage {
return SDSDatabaseStorage.share... | gpl-3.0 | 1fa73be2774c3d3dd59b332d7d1f9926 | 38.020089 | 223 | 0.611292 | 6.048789 | false | false | false | false |
EZ-NET/ESSwim | Sources/State.swift | 1 | 7125 | //
// State.swift
// ESSwim
//
// Created by 熊谷 友宏 on H26/12/25.
//
//
// MARK: - Comparison State
/**
A Type that means comparison state of two values.
The type can convert from SignedIntegerType.
value == 0: .Same
value < 0: .Ascending
value > 0: .Descending
*/
public enum CompareState : IntegerLiteralConver... | mit | 85edf7a51ec035c19c9886591a87ed36 | 15.248858 | 100 | 0.678376 | 3.366604 | false | false | false | false |
boxcast/boxcast-sdk-apple | Source/Models/Broadcast.swift | 1 | 2823 | //
// Broadcast.swift
// BoxCast
//
// Created by Camden Fullmer on 5/13/17.
// Copyright © 2017 BoxCast, Inc. All rights reserved.
//
import Foundation
/// The struct that represents a BoxCast broadcast.
public struct Broadcast {
/// The unique identifier for the broadcast.
public let id: String
... | mit | 1327bd16608ddcc4eeea36a4bb348c6a | 30.707865 | 152 | 0.620128 | 4.679934 | false | false | false | false |
nikriek/gesundheit.space | Carthage/Checkouts/RxDataSources/Example/Example1_CustomizationUsingTableViewDelegate.swift | 2 | 2359 | //
// CustomizationUsingTableViewDelegate.swift
// RxDataSources
//
// Created by Krunoslav Zaher on 4/19/16.
// Copyright © 2016 kzaher. All rights reserved.
//
import Foundation
import UIKit
import RxSwift
import RxCocoa
import RxDataSources
struct MySection {
var header: String
var items: [Item]
}
ext... | mit | e7204775a56bc1a247f76c41512490b6 | 24.354839 | 130 | 0.621713 | 5.092873 | false | false | false | false |
KIPPapp/KIPPapp | kippapp/Student.swift | 1 | 965 | //
// Student.swift
// kippapp
//
// Created by isai on 10/12/14.
// Copyright (c) 2014 kippgroup. All rights reserved.
//
import Foundation
class Student
{
var name: String = ""
var id: String = ""
var grade: String = ""
var teacher: String = ""
var mastery: Float = 0.0
var progress: Floa... | mit | 25975c29dc6f8b21fd644250b469a52f | 14.836066 | 54 | 0.52228 | 3.754864 | false | false | false | false |
VirgilSecurity/virgil-sdk-pfs-x | Source/SecureChat/Models/InitiationMessage.swift | 1 | 2971 | //
// InitiationMessage.swift
// VirgilSDKPFS
//
// Created by Oleksandr Deundiak on 6/20/17.
// Copyright © 2017 VirgilSecurity. All rights reserved.
//
import Foundation
struct InitiationMessage {
let initiatorIcId: String
let responderIcId: String
let responderLtcId: String
let responderOtcId: ... | bsd-3-clause | 03b8459dc8a0f4e2312b7e9fab050adb | 36.594937 | 251 | 0.662626 | 4.261119 | false | false | false | false |
boolkybear/iOS-Challenge | CatViewer/CatViewer/xml/CategoryParserDelegate.swift | 1 | 3760 | //
// CategoryParserDelegate.swift
// CatViewer
//
// Created by Boolky Bear on 6/2/15.
// Copyright (c) 2015 ByBDesigns. All rights reserved.
//
import UIKit
class CategoryParserDelegate: NSObject {
private enum Tag: String {
case Response = "response"
case Data = "data"
case Categories = "categories"
... | mit | 3dfd56e6b0ba116732fdcf84c451c002 | 18.899471 | 178 | 0.661702 | 3.577545 | false | false | false | false |
PrajeetShrestha/ioshubgsheetwrite | ioshubSheets/AppDelegate.swift | 1 | 3158 | //
// AppDelegate.swift
// ioshubSheets
//
// Created by Eeposit1 on 8/12/16.
// Copyright © 2016 eeposit. All rights reserved.
//
import UIKit
import IQKeyboardManagerSwift
import GoogleAPIClient
import GTMOAuth2
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWi... | apache-2.0 | bcf3db032c4f6c86b7a3c594a00cc6ee | 43.464789 | 285 | 0.717453 | 5.750455 | false | false | false | false |
Shedward/SwiftyNotificationCenter | Example/SwiftyNotificationCenter/ViewController.swift | 1 | 2274 | //
// ViewController.swift
// SwiftyNotificationCenter
//
// Created by Vladislav Maltsev on 12/04/2016.
// Copyright (c) 2016 Vladislav Maltsev.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// ... | mit | 1bf9e7ca434b32c2e0da51cc89d87e39 | 35.677419 | 91 | 0.6781 | 4.807611 | false | false | false | false |
Kamaros/ELDeveloperKeyboard | Keyboard/Custom Views/Buttons/KeyButton.swift | 1 | 2052 | //
// KeyButton.swift
// ELDeveloperKeyboard
//
// Created by Eric Lin on 2014-07-02.
// Copyright (c) 2014 Eric Lin. All rights reserved.
//
import Foundation
import UIKit
import QuartzCore
/**
KeyButton is a UIButton subclass with keyboard button styling.
*/
class KeyButton: UIButton {
// MARK: Con... | apache-2.0 | f0690ef278e8ba26da091578eb09f02b | 39.254902 | 207 | 0.666179 | 4.170732 | false | false | false | false |
ello/ello-ios | Sources/Extensions/NumberExtensions.swift | 1 | 1457 | ////
/// NumberExtensions.swift
//
let billion = 1_000_000_000.0
let million = 1_000_000.0
let thousand = 1_000.0
extension Int {
func numberToHuman(rounding: Int = 1, showZero: Bool = false) -> String {
if self == 0 && !showZero { return "" }
let roundingFactor: Double = pow(10, Double(roundin... | mit | 2c1b253c019472514c348c17356e3f00 | 27.568627 | 83 | 0.543583 | 4.024862 | false | false | false | false |
immanuel/radio-scanner | RadioScanner/Station.swift | 1 | 2092 | //
// Station.swift
// RadioScanner
//
// Created by Immanuel Thomas on 9/3/16.
// Copyright © 2016 Immanuel Thomas. All rights reserved.
//
import UIKit
class Station {
var name: String
var url: String
var artistXPath: String
var songXPath: String
var currentSong: String?
var current... | mit | 206d760f0c4987c0485c966587bffd1a | 28.041667 | 93 | 0.545672 | 4.667411 | false | false | false | false |
PrashantMangukiya/SwiftUIDemo | Demo33-UIScreenEdgePanGesture/Demo33-UIScreenEdgePanGesture/ViewController.swift | 1 | 1930 | //
// ViewController.swift
// Demo33-UIScreenEdgePanGesture
//
// Created by Prashant on 15/10/15.
// Copyright © 2015 PrashantKumar Mangukiya. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
// outlet - status label
@IBOutlet var statusLabel: UILabel!
// creat... | mit | 433de281edfead69c2f49a023cd06ff6 | 27.791045 | 103 | 0.680145 | 5.464589 | false | false | false | false |
Noders/NodersCL-App | StrongLoopForiOS/ConversionUtility.swift | 1 | 1384 | //
// ConversionUtility.swift
// Noders
//
// Created by Jose Vildosola on 22-05-15.
// Copyright (c) 2015 DevIn. All rights reserved.
//
import UIKit
class ConversionUtility: NSObject {
class func parseISO8601Time(duration: String) -> NSString{
var dur:NSString = duration
var hours:NSInteger ... | gpl-2.0 | 9f222e200ab81b4f8ff2245f72fefbbb | 36.405405 | 118 | 0.619942 | 4.493506 | false | false | false | false |
DylanModesitt/Verb | Verb/Verb/Extensions.swift | 1 | 4409 | //
// Extensions.swift
// Verb
//
// Created by dcm on 12/24/15.
// Copyright © 2015 Verb. All rights reserved.
//
import Foundation
import UIKit
extension UITableViewController {
func setupAutomaticCellSizing() {
tableView.rowHeight = UITableViewAutomaticDimension
tableView.estimatedRowH... | apache-2.0 | d45c2ba29ab00d1cedf3758f674ddd85 | 30.71223 | 155 | 0.645644 | 5.37561 | false | false | false | false |
sathyavijayan/SchemaValidator | Pod/Classes/Utils.swift | 1 | 1130 | //
// Utils.swift
// SchemaValidator
//
// Created by Sathyavijayan Vittal on 05/06/2015.
// Copyright (c) 2015 CocoaPods. All rights reserved.
//
import Foundation
internal func < (left: NSNumber, right: NSNumber) -> Bool {
var comparisonResult:NSComparisonResult = left.compare(right)
return (comparisonR... | mit | 0b76ba8013d3e0d6dcf11240afd91c86 | 37.965517 | 137 | 0.749558 | 4.574899 | false | false | false | false |
bhajian/raspi-remote | Carthage/Checkouts/ios-sdk/Examples/SpeechToText/SpeechToText/ViewController.swift | 1 | 13594 | /**
* Copyright IBM Corporation 2015
*
* 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... | mit | 2c87ad1c63bc6767bc37218e94c41282 | 35.154255 | 100 | 0.621304 | 5.343553 | false | false | false | false |
machelix/ios9-splitscreen-sample | ios9/MainViewController_iPhone.swift | 2 | 1777 | //
// MainViewController_iPhone.swift
// ios9
//
// Created by Ono Masashi on 2015/06/15.
// Copyright © 2015年 akisute. All rights reserved.
//
import UIKit
class MainViewController_iPhone: UIViewController, UITableViewDelegate, UITableViewDataSource {
@IBOutlet var tableView: UITableView!
var l... | mit | 11c0bc2bbdd7fd00b9b0a5b6da0c1846 | 32.471698 | 136 | 0.699549 | 5.425076 | false | false | false | false |
hydrantwiki/hwIOSApp | hwIOSApp/hwIOSApp/PositionDTO.swift | 1 | 1302 | //
// PositionDTO.swift
// hwIOSApp
//
// Created by Brian Nelson on 11/2/15.
// Copyright © 2015 Brian Nelson. All rights reserved.
//
import Foundation
import ObjectMapper
public struct PositionDTO : Mappable
{
var Latitude:Double?
var Longitude:Double?
var Altitude:Double?
var Accuracy:Double?
... | mit | ee8d854f023cad0d9c8a53b3b66a9553 | 25.04 | 95 | 0.588778 | 4.251634 | false | false | false | false |
ozpopolam/DoctorBeaver | DoctorBeaver/ImagePickerOptionsPopoverController.swift | 1 | 2052 | //
// ImagePickerOptionsPopoverController.swift
//
// Created by Anastasia Stepanova-Kolupakhina on 23.04.16.
// Copyright © 2016 Anastasia Stepanova-Kolupakhina. All rights reserved.
//
import UIKit
protocol ImagePickerOptionsPopoverControllerDelegate: class {
func popoverDidPickTakingPhotoWithCamera()
func p... | mit | 9dea977b6c0c42fe433dadf760cd6a47 | 26.739726 | 105 | 0.725296 | 4.819048 | false | false | false | false |
bestwpw/VoiceMemos | VoiceMemos/View/KMVoiceRecordHUD.swift | 2 | 1559 | //
// KMVoiceRecordHUD.swift
// VoiceMemos
//
// Created by Zhouqi Mo on 2/24/15.
// Copyright (c) 2015 Zhouqi Mo. All rights reserved.
//
import UIKit
@IBDesignable
class KMVoiceRecordHUD: UIView {
@IBInspectable var rate: CGFloat = 0.0
@IBInspectable var fillColor: UIColor = UIColor.greenColor() {
... | mit | ccc4779fa76cda1687ef2b796ff8ab70 | 26.350877 | 108 | 0.625401 | 4.653731 | false | false | false | false |
yujinjcho/movie_recommendations | ios_ui/MovieRec/Classes/Modules/Recommend/Application Logic/Manager/RecommendDataManager.swift | 1 | 3207 | //
// RecommendDataManager.swift
// MovieRec
//
// Created by Yujin Cho on 10/8/17.
// Copyright © 2017 Yujin Cho. All rights reserved.
//
import Foundation
class RecommendDataManager : NSObject {
var rateDataManager : RateDataManager?
var networkManager : NetworkManager?
let host = "https://movi... | mit | b59db8bcfd6bb57b13800782a292dcb1 | 35.022472 | 110 | 0.626014 | 4.835596 | false | false | false | false |
antonio081014/LeeCode-CodeBase | Swift/roman-to-integer.swift | 2 | 887 | /**
* Problem Link: https://leetcode.com/problems/roman-to-integer/
*
*
*/
class Solution {
func romanToInt(_ s: String) -> Int {
let currency = [
"M" : 1000,
"CM" : 900,
"D" : 500,
"CD" : 400,
"C" : 100,
"XC" : 90,
"L" ... | mit | be90dbb37221ebde328882b6d41c9db8 | 23.638889 | 98 | 0.335964 | 3.505929 | false | false | false | false |
wireapp/wire-ios | Wire-iOS/Sources/UserInterface/Conversation/Create/Sections/ConversationCreateGuestsSectionController.swift | 1 | 1600 | //
// Wire
// Copyright (C) 2018 Wire Swiss GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This progr... | gpl-3.0 | cc45a6335bd6ae791c0ab135fe4ae532 | 34.555556 | 130 | 0.735625 | 4.804805 | false | false | false | false |
salemoh/GoldenQuraniOS | GoldenQuranSwift/GoldenQuranSwift/Constants.swift | 1 | 5487 | //
// Constants.swift
// GoldenQuranSwift
//
// Created by Omar Fraiwan on 2/12/17.
// Copyright © 2017 Omar Fraiwan. All rights reserved.
//
import Foundation
import UIKit
struct Constants {
static let iOS_LANGUAGES_KEY = "AppleLanguages"
static let CURRENT_MUSHAF_KEY = "CurrentMushafGUID"
... | mit | 7263b1a3c9f3747b10335877620a30f6 | 41.527132 | 129 | 0.671163 | 4.427764 | false | false | false | false |
wireapp/wire-ios-sync-engine | Source/Synchronization/Strategies/LabelDownstreamRequestStrategy.swift | 1 | 6049 | //
// Wire
// Copyright (C) 2019 Wire Swiss GmbH
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This progr... | gpl-3.0 | f7cf5d89f1eefbc6b36dcdf98b435fb8 | 38.796053 | 176 | 0.685403 | 4.999174 | false | false | false | false |
victorpimentel/SwiftLint | Source/SwiftLintFramework/Rules/RuleConfigurations/PrivateUnitTestConfiguration.swift | 2 | 2796 | //
// PrivateUnitTestConfiguration.swift
// SwiftLint
//
// Created by Cristian Filipov on 8/5/16.
// Copyright © 2016 Realm. All rights reserved.
//
import Foundation
import SourceKittenFramework
public struct PrivateUnitTestConfiguration: RuleConfiguration, Equatable, CacheDescriptionProvider {
public let i... | mit | d448bec3837638f4523bfa7d9aae8769 | 34.379747 | 100 | 0.658318 | 5.008961 | false | true | false | false |
BackNotGod/localizationCommand | Sources/localizationCommand/main.swift | 1 | 3241 | import Foundation
import CommandLineKit
import PathKit
import Spectre
import Rainbow
import commandService
/**
Description
- exceptPath: drop path without scan
- projectPath: path
- help: help infomataion
- version: version
- a / -r : defalut is -r (append or replace)
*/
let cli = CommandLineKit.Co... | mit | 4062e1798a1be027d5f8cf01344cb3c3 | 29.866667 | 197 | 0.663684 | 3.881437 | false | false | false | false |
dclelland/Ursus | Ursus/Models/Serialization/UrsusDecoder.swift | 1 | 2608 | //
// UrsusDecoder.swift
// Alamofire
//
// Created by Daniel Clelland on 13/06/20.
//
import Foundation
public class UrsusDecoder: JSONDecoder {
public override init() {
super.init()
self.dateDecodingStrategy = .millisecondsSince1970
self.dataDecodingStrategy = .jsonObject
... | mit | 657ac42027044ed83b6102b4fbc18460 | 26.744681 | 114 | 0.616181 | 4.958175 | false | false | false | false |
elationfoundation/Reporta-iOS | IWMF/Modal/Circle.swift | 1 | 1858 | //
// Circle.swift
// IWMF
//
// This class is used for Store circle detail.
//
//
import Foundation
enum CircleType: Int {
case Private = 1
case Public = 2
case Social = 3
}
class Circle: NSObject {
var circleName: String!
var circleType: CircleType!
var contactsList: NSMutableArray!
... | gpl-3.0 | beb603eae722021aa535c58f9f28859e | 26.746269 | 91 | 0.617869 | 4.487923 | false | false | false | false |
ioscreator/ioscreator | SwiftUIPreviewDevicesTutorial/SwiftUIPreviewDevicesTutorial/SceneDelegate.swift | 1 | 2788 | //
// SceneDelegate.swift
// SwiftUIPreviewDevicesTutorial
//
// Created by Arthur Knopper on 18/09/2019.
// Copyright © 2019 Arthur Knopper. All rights reserved.
//
import UIKit
import SwiftUI
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, ... | mit | 0a051e8cf441be1d2dfc6ebeefb8ee8e | 42.546875 | 147 | 0.706494 | 5.359615 | false | false | false | false |
coderQuanjun/PigTV | GYJTV/GYJTV/Classes/Main/TQJPageView/TQJCollectionView.swift | 1 | 6719 | //
// TQJCollectionView.swift
// GYJTV
//
// Created by 田全军 on 2017/5/15.
// Copyright © 2017年 Quanjun. All rights reserved.
//
import UIKit
protocol TQJCollectionViewDateSource : class {
func numberOfSections(in pageCollectionView : TQJCollectionView) -> Int
func pageCollectionView(_ collectionView ... | mit | 7e38fe4b3f8901e6ad53264dac0ead26 | 40.468354 | 197 | 0.709707 | 4.98251 | false | false | false | false |
wangjianquan/wjq-weibo | weibo_wjq/Tool/Common.swift | 1 | 994 | //
// Common.swift
// weibo_wjq
//
// Created by landixing on 2017/5/28.
// Copyright © 2017年 WJQ. All rights reserved.
//
import Foundation
/// OAuth授权需要的key
let WB_App_Key = "53729570"
/// OAuth授权需要的Secret
let WB_App_Secret = "cc23ae6e7f115b52c6c944a0d81057c0"
/// OAuth授权需要的重定向地址
let WB_Redirect_uri = "http://w... | apache-2.0 | f0ca8ce083b4f87d0d2aba2bc4c21ac2 | 19.568182 | 83 | 0.790055 | 3.351852 | false | false | false | false |
leotao2014/RTPhotoBrowser | RTPhotoBrowser/RTPhotoModel.swift | 1 | 1148 | //
// RTPhotoModel.swift
// RTPhotoBrowser
//
// Created by leotao on 2017/2/26.
// Copyright © 2017年 leotao. All rights reserved.
//
import UIKit
enum RTImageDownloadPriority {
case high
case low
case cancel
}
class RTPhotoModel: NSObject {
var picUrl:String = ""; // 图片地址
var originalPicU... | apache-2.0 | 5d11e2d9962e8dad6ebaf8afe79a3c4b | 23.717391 | 71 | 0.557608 | 4.424125 | false | false | false | false |
CosmicMind/Algorithm | Tests/SortedDictionaryTests.swift | 1 | 5758 | /*
* The MIT License (MIT)
*
* Copyright (C) 2019, CosmicMind, Inc. <http://cosmicmind.com>.
* 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 restricti... | mit | 71b17d62d61755ea0c35949222e16b37 | 35.675159 | 118 | 0.617055 | 3.290286 | false | true | false | false |
laszlokorte/reform-swift | ReformCore/ReformCore/DefaultAnalyzer.swift | 1 | 3415 | //
// DefaultAnalyzer.swift
// ReformCore
//
// Created by Laszlo Korte on 17.08.15.
// Copyright © 2015 Laszlo Korte. All rights reserved.
//
import ReformExpression
public struct InstructionOutlineRow {
public let node : InstructionNode
public let label : String
public let depth : Int
public let... | mit | 35e062f308cb8f3d3d87086f6654bf09 | 29.482143 | 115 | 0.640305 | 4.676712 | false | false | false | false |
avalanched/Rex | Source/Foundation/NSUserDefaults.swift | 2 | 1273 | //
// NSUserDefaults.swift
// Rex
//
// Created by Neil Pankey on 5/28/15.
// Copyright (c) 2015 Neil Pankey. All rights reserved.
//
import Foundation
import ReactiveCocoa
extension NSUserDefaults {
/// Sends value of `key` whenever it changes. Attempts to filter out repeats
/// by casting to NSObject an... | mit | 4888421949d5720e5d5d58923c441e2e | 33.405405 | 85 | 0.616654 | 5.071713 | false | false | false | false |
LightweightInTouch/LITSwiftToolkit | LITSwiftToolkit/Tools/Extensions/UIKit/UIViewControllerExtensions.swift | 2 | 1438 | //
// UIViewControllerExtensions.swift
// LITSwiftToolkit
//
// Created by Lobanov Dmitry on 02.11.15.
// Copyright © 2015 LightweightInTouch. All rights reserved.
//
import Foundation
import UIKit
public extension UIViewController {
//MARK: Initialization
public static func nibName() -> String {
return N... | mit | cb974bd9c39ce85979a28a415fc5181b | 30.955556 | 92 | 0.738344 | 4.938144 | false | false | false | false |
barteljan/VISPER | Example/VISPER-Sourcery-Example/States/UserState.swift | 1 | 782 | //
// UserState.swift
// VISPER-Redux-Sourcery-Example
//
// Created by bartel on 24.03.18.
// Copyright © 2018 Jan Bartel. All rights reserved.
//
import Foundation
import VISPER_Sourcery
struct UserState: WithAutoInitializers, WithAutoGeneralInitializer, AutoReducer, Equatable {
var firstName: String?... | mit | e411d20bc8b5d6929c41c076d2db6d8d | 25.033333 | 105 | 0.679898 | 4.221622 | false | false | false | false |
austinzheng/swift | stdlib/public/core/SetVariant.swift | 2 | 10154 | //===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2018 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/L... | apache-2.0 | c56c0de57edad2edc1ea6ce4181a6699 | 26.443243 | 80 | 0.665747 | 4.168309 | false | false | false | false |
kang77649119/DouYuDemo | DouYuDemo/DouYuDemo/Classes/Home/View/RecommendCarouselView.swift | 1 | 4162 | //
// RecommendCarouselView.swift
// DouYuDemo
//
// Created by 也许、 on 16/10/12.
// Copyright © 2016年 K. All rights reserved.
//
import UIKit
private let carouselCellId = "carouselCellId"
class RecommendCarouselView: UIView {
@IBOutlet weak var collectionView: UICollectionView!
@IBOutlet weak var p... | mit | 06b1e4d1968502127a98b1b60d8cb79c | 27.148936 | 151 | 0.649534 | 5.154545 | false | false | false | false |
jonathanhogan/receptionkit | ReceptionKit/Helpers/Text.swift | 3 | 2057 | //
// Text.swift
// ReceptionKit
//
// Created by Andy Cho on 2015-04-23.
// Copyright (c) 2015 Andy Cho. All rights reserved.
//
let TextEnglish = [
"delivery": "delivery",
"signature": "i need a signature",
"left at reception": "i left a package at the reception",
"visitor": "i'm a visitor",
... | mit | e24ea9b59944ee118e31fa06697b5f30 | 28.753623 | 70 | 0.581588 | 3.3711 | false | false | false | false |
tuyenbq/Moya | Demo/DemoTests/RxSwiftMoyaProviderTests.swift | 1 | 5184 | import Quick
import Nimble
import RxMoya
import RxSwift
import Alamofire
class RxSwiftMoyaProviderSpec: QuickSpec {
override func spec() {
var provider: RxMoyaProvider<GitHub>!
beforeEach {
provider = RxMoyaProvider(stubBehavior: MoyaProvider.ImmediateStubbingBehaviour)
}
... | mit | 5f6403337cf2d524fe8842a117bb7942 | 32.230769 | 200 | 0.602816 | 4.858482 | false | false | false | false |
kalvish21/AndroidMessenger | AndroidMessengerMacDesktopClient/AndroidMessenger/Classes/LeftMessageHandler.swift | 1 | 13526 | //
// LeftMessageHandler.swift
// AndroidMessenger
//
// Created by Kalyan Vishnubhatla on 3/29/16.
// Copyright © 2016 Kalyan Vishnubhatla. All rights reserved.
//
import Cocoa
class LeftMessageHandler: NSObject, NSTableViewDataSource, NSTableViewDelegate, NSSearchFieldDelegate {
var compose_results: Array<A... | mit | 8733c5d89a82ed7577eecd61d131a502 | 42.770227 | 144 | 0.592754 | 5.322708 | false | false | false | false |
eure/ReceptionApp | iOS/Pods/RxSwift/RxSwift/Disposables/BinaryDisposable.swift | 34 | 1341 | //
// BinaryDisposable.swift
// RxSwift
//
// Created by Krunoslav Zaher on 6/12/15.
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
import Foundation
/**
Represents two disposable resources that are disposed together.
*/
public final class BinaryDisposable : DisposeBase, Cancelable {
private va... | mit | 6c0cb610e52a8b47f53f4b805bdb06c5 | 22.928571 | 91 | 0.631343 | 4.66899 | false | false | false | false |
wbaumann/SmartReceiptsiOS | SmartReceipts/Common/UI/Style/Styles.swift | 2 | 1437 | //
// Styles.swift
// SmartReceipts
//
// Created by Bogdan Evsenev on 01/08/2019.
// Copyright © 2019 Will Baumann. All rights reserved.
//
import UIKit
// MARK: - View
struct ViewStyle: Making, BaseViewStyle {
var backgroundColor: UIColor = .black
var cornerRadius: CGFloat = 4
var shadowColor: UICo... | agpl-3.0 | ed8b700926200d7e287de07e4abf8028 | 23.758621 | 115 | 0.60585 | 3.819149 | false | false | false | false |
welbesw/BigcommerceApi | Example/BigcommerceApi/ProductDetailsViewController.swift | 1 | 2496 | //
// ProductDetailsViewController.swift
// BigcommerceApi
//
// Created by William Welbes on 10/1/15.
// Copyright © 2015 CocoaPods. All rights reserved.
//
import UIKit
import BigcommerceApi
class ProductDetailsViewController: UIViewController {
@IBOutlet weak var textView:UITextView!
var product:... | mit | b51df3cef2b51c15fe281eb372fafa15 | 30.582278 | 117 | 0.600401 | 5.342612 | false | false | false | false |
NordicSemiconductor/IOS-nRF-Toolbox | nRF Toolbox/Profiles/UART/LoggViewController/CheckmarkTableViewCell.swift | 1 | 2826 | /*
* Copyright (c) 2020, Nordic Semiconductor
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification,
* are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of condit... | bsd-3-clause | 8d59a2e389067d3e29e83cc438c3986c | 36.184211 | 105 | 0.701699 | 4.797963 | false | false | false | false |
malczak/hashids | Hashids.swift | 1 | 10774 | //
// HashIds.swift
// http://hashids.org
//
// Author https://github.com/malczak
// Licensed under the MIT license.
//
import Foundation
// MARK: Hashids options
public struct HashidsOptions {
static let VERSION = "1.1.0"
static var MIN_ALPHABET_LENGTH: Int = 16
static var SEP_DIV: Double = 3.5
stat... | mit | 7ab7d342e45688955c4f24b706f49eee | 27.578249 | 232 | 0.628457 | 3.493515 | false | false | false | false |
leaderWangShaoming/SimpleNetwork | SimpleNetwork.swift | 1 | 10731 | //
// SimpleNetwork.swift
// SimpleNetwork
//
// Created by apple on 15/3/2.
// Copyright (c) 2015年 All rights reserved.
//
import Foundation
/// 常用的网络访问方法
enum HTTPMethod: String {
case GET = "GET"
case POST = "POST"
}
class SimpleNetwork {
// 定义闭包类型,类型别名-> 首字母一定要大写
typealias Completion = (re... | mit | 1250cefc6e98ce4340371cca58549dcc | 30.824373 | 154 | 0.517063 | 4.369587 | false | false | false | false |
badoo/Chatto | ChattoAdditions/sources/Chat Items/BaseMessage/BaseMessageViewModel.swift | 1 | 6049 | /*
The MIT License (MIT)
Copyright (c) 2015-present Badoo Trading Limited.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to us... | mit | b24f96d28fa2ac8fd5410c99274deb2b | 30.670157 | 126 | 0.693172 | 5.444644 | false | false | false | false |
arkuhn/SkiFree-iOS | SkiFreeiOS/SkiFreeiOS/Obstacle.swift | 1 | 2078 | //
// Obstacle.swift
// SkiFreeiOS
//
// Created by ark9719 on 2/7/17.
// Copyright © 2017 ark9719. All rights reserved.
//
import Foundation
import SpriteKit
class Obstacle: SKSpriteNode{
let textureArray: [SKTexture] = [SKTexture(imageNamed: "skifreetree"),
SKTextu... | mit | 74005495243a82a9fc2bd8c636da44a6 | 29.101449 | 94 | 0.571016 | 4.466667 | false | false | false | false |
devlucky/Kakapo | Tests/SerializationTransformerTests.swift | 1 | 8717 | //
// SerializationTransformerTests.swift
// Kakapo
//
// Created by Alex Manzella on 27/06/16.
// Copyright © 2016 devlucky. All rights reserved.
//
import Foundation
import Quick
import Nimble
import SwiftyJSON
@testable import Kakapo
struct UppercaseTransformer<Wrapped: Serializable>: SerializationTransformer ... | mit | 6fbf185811c5c29a9e2ccb1d9e59c083 | 39.165899 | 126 | 0.519734 | 5.327628 | false | false | false | false |
MillmanY/MMPlayerView | Example/MMPlayerView/Swift/DetailViewController.swift | 1 | 4382 | //
// DetailViewController.swift
// MMPlayerView
//
// Created by Millman YANG on 2017/8/23.
// Copyright © 2017年 CocoaPods. All rights reserved.
//
import UIKit
import MMPlayerView
import AVFoundation
class DetailViewController: UIViewController {
var downloadObservation: MMPlayerObservation?
var data: D... | mit | dd41796ad39fb2f9007c2ae127354183 | 31.924812 | 115 | 0.609272 | 4.887277 | false | false | false | false |
xedin/swift | validation-test/stdlib/StringMemoryTest.swift | 21 | 1784 | // RUN: %empty-directory(%t)
// RUN: %target-build-swift -O %s -o %t/StringMemoryTest
// RUN: %target-codesign %t/StringMemoryTest
// RUN: %target-run %t/StringMemoryTest | %FileCheck %s
// REQUIRES: optimized_stdlib
// REQUIRES: executable_test
// REQUIRES: objc_interop
import Foundation
let str = "abcdefg\u{A758}h... | apache-2.0 | 2c168a74627d4110307fa97fd028c6cb | 21.024691 | 107 | 0.667601 | 3.261426 | false | true | false | false |
Moya/Moya | Tests/MoyaTests/Single+MoyaSpec.swift | 1 | 26010 | import Quick
import Moya
import RxSwift
import Nimble
import Foundation
final class SingleMoyaSpec: QuickSpec {
override func spec() {
describe("status codes filtering") {
it("filters out unrequested status codes closed range upperbound") {
let data = Data()
let ... | mit | 0892e3c1d26778d5a3af81ea2cd2c479 | 43.385666 | 150 | 0.495771 | 5.695205 | false | false | false | false |
dimitardanailov/Stanford-CS193P-Spring-2015-Cassini | Cassini/ViewController.swift | 1 | 859 | //
// ViewController.swift
// Cassini
//
// Created by dimitar on 9/3/15.
// Copyright (c) 2015 dimityr.danailov. All rights reserved.
//
import UIKit
class ViewController: UIViewController
{
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if let ivc = segue.destinationVi... | mit | b4cb3cf48a57e850708e23de9930cf9d | 25.84375 | 81 | 0.527357 | 4.880682 | false | false | false | false |
ibm-bluemix-mobile-services/bms-clientsdk-swift-analytics | Tests/Test Apps/TestApp iOS/LoggerViewController.swift | 1 | 14194 | /*
* Copyright 2016 IBM Corp.
* 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 ... | apache-2.0 | 4dcc58c4306b52e5bd2e6778aee02124 | 30.405765 | 157 | 0.596089 | 5.498447 | false | false | false | false |
vinsan/presteasymo | presteasymo/presteasymo/Login.swift | 1 | 602 | //
// Login.swift
// presteasymo
//
// Created by Fabio Mazzotta on 06/04/17.
// Copyright © 2017 Team 2.4. All rights reserved.
//
import UIKit
class Login: NSObject {
var gestoreprelievi:GestoreCoreDataPrelievo=GestoreCoreDataPrelievo()
var gestAccess: CoreDataController=CoreDataController()
fu... | apache-2.0 | adac218d0d6c3123e5e32bebc13382d4 | 24.041667 | 75 | 0.637271 | 3.687117 | false | false | false | false |
llwei/LWPickerView | LWPickerView/PickerView.swift | 1 | 32086 | //
// PickerView.swift
// PickerView
//
// Created by lailingwei on 16/4/28.
// Copyright © 2016年 lailingwei. All rights reserved.
//
import UIKit
typealias PickerAllCancelHandler = (() -> Void)
typealias PickerTypeDataSourceDoneHandler = ((_ selectedRows: [Int], _ results: [String]) -> Void)
typealias PickerType... | gpl-3.0 | 3296860f4038cfd497339511b1c94341 | 32.48984 | 129 | 0.492799 | 6.037987 | false | false | false | false |
Gregsen/okapi | MXStatusMenu/StatusController.swift | 1 | 1440 | import Cocoa
/// The StatusController manages the status item in the menu bar
class StatusController {
/// The cpu stats
let cpu = CPU()
/// The latest cpu load
var cpuLoad: [Double]
/// The network stats
let network = Network(maximumThroughput: MaximumNetworkThroughput)
/// The latest network load
var ... | mit | 69cc1ee3bf3eee8b696aab0f652e9c8b | 29 | 123 | 0.725 | 4.044944 | false | true | false | false |
iAugux/Zoom-Contacts | Phonetic/AppIconImageView.swift | 1 | 954 | //
// AppIconImageView.swift
// Phonetic
//
// Created by Augus on 1/30/16.
// Copyright © 2016 iAugus. All rights reserved.
//
import UIKit
class AppIconImageView: UIImageView {
required init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
image = UIImage(named: "iTr... | mit | a0c11fc7415b1ce4a883ae804ea720a7 | 28.78125 | 93 | 0.613851 | 4.64878 | false | false | false | false |
SnowdogApps/Project-Needs-Partner | CooperationFinder/Controllers/SDWelcomeViewController.swift | 1 | 4072 | //
// SDWelcomeViewController.swift
// CooperationFinder
//
// Created by Radoslaw Szeja on 25.02.2015.
// Copyright (c) 2015 Snowdog. All rights reserved.
//
import UIKit
class SDWelcomeViewController: UIViewController, UITextFieldDelegate {
@IBOutlet weak var searchField: UITextField?
@IBOutlet weak var... | apache-2.0 | 11772789be2526210535075ee1d02e7f | 33.508475 | 141 | 0.615668 | 5.386243 | false | false | false | false |
nferocious76/NFImageView | Example/Pods/NFImageView/NFImageView/Classes/NFImageViewConfiguration.swift | 1 | 1964 | //
// NFImageViewConfiguration.swift
// Pods
//
// Created by Neil Francis Hipona on 23/07/2016.
// Copyright (c) 2016 Neil Francis Ramirez Hipona. All rights reserved.
//
import Foundation
import UIKit
extension NFImageView {
// MARK: - UIActivityIndicatorView Configuration
/**
* Set load... | mit | 0a18a68756b91c564095c29e51192120 | 26.291667 | 108 | 0.680244 | 5.516854 | false | false | false | false |
russbishop/swift | stdlib/public/SDK/Foundation/AffineTransform.swift | 1 | 9711 | //===----------------------------------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LI... | apache-2.0 | 86e4be80260b28c77d0d7b440b0141ac | 31.374582 | 123 | 0.546798 | 3.919028 | false | false | false | false |
bencochran/LLVM.swift | LLVM/Type.swift | 1 | 7603 | //
// Created by Ben Cochran on 11/13/15.
// Copyright © 2015 Ben Cochran. All rights reserved.
//
public protocol TypeType {
var ref: LLVMValueRef { get }
init(ref: LLVMValueRef)
var kind: LLVMTypeKind { get }
var isSized: Bool { get }
var string: String? { get }
}
extension TypeType {
... | mit | 4244f4c601cf1599239928ebf73575cd | 26.543478 | 119 | 0.644699 | 4.100324 | false | false | false | false |
lcepy/Mockingbird | MockingbirdDemo/ViewController.swift | 2 | 1709 | //
// ViewController.swift
// Mockingbird
//
// Created by xiangwenwen on 15/6/15.
// Copyright (c) 2015年 xiangwenwen. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var scancode: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
// D... | mit | 81461cc4bf4154eb6aea91c847b6e12c | 34.229167 | 146 | 0.673566 | 4.671271 | false | false | false | false |
max9631/Piskvorky | Piškvorky/Policko.swift | 1 | 5956 | //
// Policko.swift
// Piškvorky
//
// Created by Adam Salih on 10/03/15.
// Copyright (c) 2015 Adam Salih. All rights reserved.
//
import UIKit
class Policko: UIView {
var database:PlayedFieldDatabase!
var cross:Bool?
var osaX:Int!
var osaY:Int!
var img:UIView!
// var label... | gpl-2.0 | 33c2326c1a49df10089ca18c4bb8e1b5 | 38.673333 | 119 | 0.53386 | 4.238604 | false | false | false | false |
andyshep/GROCloudStore | Sources/GROChangeToken.swift | 1 | 3417 | //
// GROChangeToken.swift
// GROCloudStore
//
// Created by Andrew Shepard on 6/22/16.
// Copyright © 2016 Andrew Shepard. All rights reserved.
//
import CoreData
import CloudKit
@objc(GROChangeToken)
internal class GROChangeToken: NSManagedObject {
@NSManaged var content: Data
@NSManaged var zoneName: S... | mit | 8cfeedee14d313bbb708b122eaf9bcc8 | 33.16 | 146 | 0.669204 | 4.77095 | false | false | false | false |
thombles/Flyweight | Flyweight/Views/ContentView.swift | 1 | 3920 | // Flyweight - iOS client for GNU social
// Copyright 2017 Thomas Karpiniec
//
// 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
//
// Unle... | apache-2.0 | a3d5b1b24f7273b5a9e23fab1de3cc62 | 44.581395 | 142 | 0.633673 | 5.384615 | false | false | false | false |
thongtran715/Find-Friends | MapKitTutorial/FriendSearchTableViewCell.swift | 1 | 1474 | //
// FriendSearchTableViewCell.swift
// MapKitTutorial
//
// Created by Thong Tran on 7/8/16.
// Copyright © 2016 Thorn Technologies. All rights reserved.
//
import UIKit
import Parse
class FriendSearchTableViewCell: UITableViewCell {
@IBOutlet var userName: UILabel!
@IBOutlet var sendMessageOutlet: UIBu... | mit | 844688c800bc403e11de1b7e5de6c3e5 | 23.966102 | 74 | 0.577733 | 4.976351 | false | false | false | false |
tinpay/BeaconAttendanceManagement | BeaconAttendanceManagement/OreKin/ViewController.swift | 1 | 8511 | //
// ViewController.swift
// OreOre Kintai
//
// Created by tinpay on 2014/11/24.
// Copyright (c) 2014年 ChatWork. All rights reserved.
//
import UIKit
import Foundation
import CoreLocation
class ViewController: UIViewController, CLLocationManagerDelegate{
@IBOutlet weak var timeLabel: UILabel!
... | mit | f7a02599631c6520f721d14be781627d | 33.363265 | 150 | 0.594251 | 5.557096 | false | false | false | false |
grandiere/box | box/View/Boards/VBoards.swift | 1 | 4325 | import UIKit
class VBoards:VView, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout
{
private weak var controller:CBoards!
private weak var viewBar:VBoardsBar!
private weak var collectionView:VCollection!
private weak var spinner:VSpinner!
private let kBarHeig... | mit | 3befca36d4be9b0e67ab6d5663627233 | 28.222973 | 155 | 0.631676 | 5.587855 | false | false | false | false |
rudkx/swift | test/type/opaque_generic_superclass_constraint.swift | 1 | 504 | // RUN: %target-swift-frontend -disable-availability-checking -emit-ir -verify -requirement-machine-abstract-signatures=verify %s
// rdar://problem/53318811
class Foo<T> {
var x: T { fatalError() }
}
func foo<T>(_: T) -> some Foo<T> {
let localProp: some Foo<T> = Foo()
return localProp
}
class C<T> {
func b... | apache-2.0 | 5083ddf034a16aae1480b991f04d2ded | 17 | 129 | 0.59127 | 2.754098 | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.