repo_name
stringlengths
6
91
path
stringlengths
6
999
copies
stringclasses
283 values
size
stringlengths
1
7
content
stringlengths
3
1.05M
license
stringclasses
15 values
cnoon/swift-compiler-crashes
crashes-duplicates/08370-swift-sourcemanager-getmessage.swift
11
272
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing enum b { var _ = { class B { func b: Int -> { for { extension g { protocol e { struct g { class case ,
mit
huonw/swift
test/ClangImporter/clang_builtins.swift
1
2844
// RUN: not %target-swift-frontend -swift-version 3 -typecheck %s 2> %t.3.txt // RUN: %FileCheck -check-prefix=CHECK-3 -check-prefix=CHECK-%target-runtime-3 %s < %t.3.txt // RUN: not %target-swift-frontend -swift-version 4 -typecheck %s 2> %t.4.txt // RUN: %FileCheck -check-prefix=CHECK-4 -check-prefix=CHECK-%target-ru...
apache-2.0
plushcube/Learning
Swift/Functional Swift Book/CoreImageFilter.playground/Contents.swift
1
1931
import UIKit typealias Filter = (CIImage) -> CIImage func blur(radius: Double) -> Filter { return { image in let parameters: [String: Any] = [ kCIInputRadiusKey: radius, kCIInputImageKey: image ] guard let filter = CIFilter(name: "CIGaussianBlur", withInputParameter...
mit
ukitaka/FPRealm
Tests/AnyRealmIOSpec.swift
2
2430
// // AnyRealmIOSpec.swift // RealmIO // // Created by ukitaka on 2017/05/31. // Copyright © 2017年 waft. All rights reserved. // import RealmSwift import RealmIO import XCTest import Quick import Nimble class AnyRealmIOSpec: QuickSpec { let realm = try! Realm(configuration: Realm.Configuration(fileURL: nil, i...
mit
pawan007/SmartZip
SmartZip/Controllers/History/HistoryVC.swift
1
5387
// // HistoryVC.swift // SmartZip // // Created by Pawan Dhawan on 21/07/16. // Copyright © 2016 Pawan Kumar. All rights reserved. // import UIKit class HistoryVC: UIViewController { // don't forget to hook this up from the storyboard @IBOutlet var tableView: UITableView! // D...
mit
mauryat/firefox-ios
StorageTests/TestSQLiteHistory.swift
1
69873
/* 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 @testable import Storage import Deferred import XCTest let threeMonthsInMillis: ...
mpl-2.0
MrDeveloper4/TestProject-GitHubAPI
TestProject-GitHubAPI/Pods/RealmSwift/RealmSwift/SortDescriptor.swift
10
4018
//////////////////////////////////////////////////////////////////////////// // // Copyright 2015 Realm Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/li...
mit
tardieu/swift
validation-test/compiler_crashers_fixed/00121-swift-diagnosticengine-diagnose.swift
65
521
// 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/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the li...
apache-2.0
maqinjun/CoreDataStack
CustomCoreDataStack/CustomCoreDataStackTests/CoreDataTest.swift
1
1359
// // CoreDataTest.swift // CustomCoreDataStack // // Created by maqj on 5/6/16. // Copyright © 2016 maqj. All rights reserved. // import XCTest import CoreData class CoreDataTest: XCTestCase { var coreDataStack: CoreDataStackTest! override func setUp() { super.setUp() // Put set...
mit
antonselyanin/ListenerManagerGenerator
ListenerManagerGenerator/ExampleListener.swift
1
422
// // Created by Anton Selyanin on 04/02/2017. // Copyright (c) 2017 Anton Selyanin. All rights reserved. // import Foundation struct Event1 {} struct Event2 {} protocol ExampleListener: class, AutoListenerManageable { func notify1(event1: Event1) func notify2(event2: Event2) func notify3() func n...
mit
MateuszKarwat/Napi
Napi/Models/Subtitle Format/Supported Subtitle Formats/TMPlayerSubtitleFormat.swift
1
2581
// // Created by Mateusz Karwat on 06/02/16. // Copyright © 2016 Mateusz Karwat. All rights reserved. // import Foundation /// Represents TMPlayer Subtitle Format. /// TMPlayer Subtitle Format looks like this: /// /// 01:12:33:First line of a text.|Seconds line of a text. struct TMPlayerSubtitleFormat: Subtitle...
mit
lerigos/music-service
iOS_9/Pods/ImagePicker/Source/ImageGallery/ImageGalleryView.swift
1
7732
import UIKit import Photos protocol ImageGalleryPanGestureDelegate: class { func panGestureDidStart() func panGestureDidChange(translation: CGPoint) func panGestureDidEnd(translation: CGPoint, velocity: CGPoint) } public class ImageGalleryView: UIView { struct Dimensions { static let galleryHeight: CGFl...
apache-2.0
Reality-Virtually-Hackathon/Team-2
WorkspaceAR/Connectivity/ConnectivityManager.swift
1
5951
// // ConnectivityManager.swift // WorkspaceAR // // Created by Joe Crotchett on 10/7/17. // Copyright © 2017 Apple. All rights reserved. // import Foundation import MultipeerConnectivity protocol ConnectivityManagerDelegate { // Called when a peer has changed it's connection status func connectedDev...
mit
pauljohanneskraft/Math
CoreMath/Classes/Numbers/Numbers.swift
1
968
// // Numbers.swift // Math // // Created by Paul Kraft on 03.08.16. // Copyright © 2016 pauljohanneskraft. All rights reserved. // import Foundation // swiftlint:disable type_name public typealias R = Double public typealias N = UInt public typealias Z = Int // swiftlint:enable type_name public func Z_(_ v: UIn...
mit
gradyzhuo/GZImageLayoutView
GZImageEditorPositionView.swift
1
7499
// // GZImageEditorPositionView.swift // Flingy // // Created by Grady Zhuo on 7/2/15. // Copyright (c) 2015 Skytiger Studio. All rights reserved. // import Foundation import UIKit internal let GZImageEditorDefaultZoomScale : CGFloat = 1.0 public class GZImageEditorPositionView:GZPositionView { public v...
apache-2.0
kaxilisi/DouYu
DYZB/DYZB/Classes/Home/ViewModel/RecommendViewModel.swift
1
3633
// // RecommendViewModel.swift // DYZB // // Created by apple on 2016/10/29. // Copyright © 2016年 apple. All rights reserved. // import UIKit class RecommendViewModel{ lazy var anchorGroups : [AnchorGroup] = [AnchorGroup]() lazy var cycleModels : [CycleModel] = [CycleModel]() fileprivate lazy var bigD...
mit
jairoeli/Habit
Zero/Sources/Utils/Reorder/ReorderController+DestinationRow.swift
1
4789
// // Copyright (c) 2016 Adam Shin // // 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, publish, ...
mit
openxc/openxc-ios-framework
openxc-ios-framework/VehicleMessageUnit.swift
1
1957
// // VehicleMessageUnit.swift // openxc-ios-framework // // Created by Ranjan, Kumar sahu (K.) on 12/03/18. // Copyright © 2018 Ford Motor Company. All rights reserved. // import UIKit open class VehicleMessageUnit: NSObject { static let sharedNetwork = VehicleMessageUnit() // Initialization static ...
bsd-3-clause
wess/reddift
reddiftSample/UserViewController.swift
1
4883
// // UserViewController.swift // reddift // // Created by sonson on 2015/04/14. // Copyright (c) 2015年 sonson. All rights reserved. // import Foundation import reddift class UserViewController: UITableViewController { var session:Session? @IBOutlet var expireCell:UITableViewCell! override func viewD...
mit
recurly/recurly-client-ios
RecurlySDK-iOSTests/RecurlySDK-iOSTests.swift
1
5631
// // RecurlySDK-iOSTests.swift // RecurlySDK-iOSTests // // Created by George Andrew Shoemaker on 8/20/22. // import XCTest @testable import RecurlySDK_iOS class RecurlySDK_iOSTests: XCTestCase { // If you are running these tests in Xcode // you should set your public key here. // Otherwise PUBLI...
mit
taku0/swift3-mode
test/swift-files/declarations.swift
1
4884
// swift3-mode:test:eval (setq-local swift3-mode:basic-offset 4) // swift3-mode:test:eval (setq-local swift3-mode:parenthesized-expression-offset 2) // swift3-mode:test:eval (setq-local swift3-mode:multiline-statement-offset 2) // swift3-mode:test:eval (setq-local swift3-mode:switch-case-offset 0) // Constant declarat...
gpl-3.0
Takanu/Pelican
Sources/Pelican/API/Types/FileDownload.swift
1
857
// // FileDownload.swift // Pelican // // Created by Ido Constantine on 22/03/2018. // import Foundation /** Represents a file ready to be downloaded. Use the API method `getFile` to request a FileDownload type. */ public struct FileDownload: Codable { /// Unique identifier for the file. var fileID: String ...
mit
FuckBoilerplate/RxCache
Tests/internal/persistence/DiskTest.swift
1
5463
// DiskOMTest.swift // RxCache // // Copyright (c) 2016 Victor Albertos https://github.com/VictorAlbertos // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including ...
mit
redlock/JAYSON
JAYSON/Classes/Reflection/Get.swift
2
631
/// Get value for key from instance public func get(_ key: String, from instance: Any) throws -> Any! { // guard let value = try properties(instance).first(where: { $0.key == key })?.value else { // throw ReflectionError.instanceHasNoKey(type: type(of: instance), key: key) // } // return value retur...
mit
WhisperSystems/Signal-iOS
Signal/test/util/ImageCacheTest.swift
1
2268
// // Copyright (c) 2018 Open Whisper Systems. All rights reserved. // import XCTest @testable import Signal class ImageCacheTest: SignalBaseTest { var imageCache: ImageCache! let firstVariation = UIImage() let secondVariation = UIImage() let otherImage = UIImage() let cacheKey1 = "cache-key-1...
gpl-3.0
shhuangtwn/ProjectLynla
Pods/FacebookLogin/Sources/Login/LoginButtonDelegateBridge.swift
2
2085
// Copyright (c) 2016-present, Facebook, Inc. All rights reserved. // // You are hereby granted a non-exclusive, worldwide, royalty-free license to use, // copy, modify, and distribute this software in source code or binary form for use // in connection with the web services and APIs provided by Facebook. // // As with...
mit
shahmishal/swift
test/SILGen/closure_self_recursion.swift
5
703
// RUN: %target-swift-emit-silgen -module-name foo %s | %FileCheck %s // RUN: %target-swift-emit-sil -module-name foo -verify %s // CHECK-LABEL: sil [ossa] @main // CHECK-LABEL: sil private [ossa] @$s3foo5recuryycvgyycfU_ var recur : () -> () { // CHECK-LABEL: function_ref @$s3foo5recuryycvg return { recur() } //...
apache-2.0
slxl/ReactKit
ReactKit/Error.swift
1
764
// // Error.swift // ReactKit // // Created by Yasuhiro Inami on 2014/12/02. // Copyright (c) 2014年 Yasuhiro Inami. All rights reserved. // import Foundation public enum ReactKitError: Int { public static let Domain = "ReactKitErrorDomain" case cancelled = 0 case cancelledByDeinit = 1 case ca...
mit
Lightstreamer/Lightstreamer-example-MPNStockList-client-ios
Shared/ChartViewDelegate.swift
1
1083
// Converted to Swift 5.4 by Swiftify v5.4.24488 - https://swiftify.com/ // // ChartViewDelegate.swift // StockList Demo for iOS // // Copyright (c) Lightstreamer Srl // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may o...
apache-2.0
nathawes/swift
test/SILGen/cf_members.swift
8
14727
// RUN: %target-swift-emit-silgen -I %S/../IDE/Inputs/custom-modules %s -enable-objc-interop -I %S/Inputs/usr/include | %FileCheck %s import ImportAsMember func makeMetatype() -> Struct1.Type { return Struct1.self } // CHECK-LABEL: sil [ossa] @$s10cf_members17importAsUnaryInityyF public func importAsUnaryInit() { ...
apache-2.0
MChainZhou/DesignPatterns
Facede/Facede/ViewController.swift
1
496
// // ViewController.swift // Facede // // Created by apple on 2017/8/30. // Copyright © 2017年 apple. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically fr...
mit
ngageoint/mage-ios
MageTests/Authentication/SignupViewControllerTests.swift
1
15743
// // SignupViewControllerTests.swift // MAGETests // // Created by Daniel Barela on 10/7/20. // Copyright © 2020 National Geospatial Intelligence Agency. All rights reserved. // import Foundation import Quick import Nimble import OHHTTPStubs import Kingfisher @testable import MAGE @available(iOS 13.0, *) class...
apache-2.0
iOSDevLog/iOSDevLog
169. Camera/Camera/ExposureViewController.swift
1
3008
// // ExposureViewController.swift // Camera // // Created by Matteo Caldari on 05/02/15. // Copyright (c) 2015 Matteo Caldari. All rights reserved. // import UIKit import CoreMedia class ExposureViewController: UIViewController, CameraControlsViewControllerProtocol, CameraSettingValueObserver { @IBOutlet var m...
mit
X140Yu/Lemon
Lemon/Library/Protocol/SharebleViewController.swift
1
1241
import UIKit import RxSwift import RxCocoa protocol Shareble { var shareButton: UIButton { get } var shareItems: [Any] { get set } } class SharebleViewControllerProvider: Shareble { var shareItems = [Any]() private weak var viewController: UIViewController? private let bag = DisposeBag() var shareButto...
gpl-3.0
keyeMyria/edx-app-ios
Source/CourseCardViewModel.swift
4
1879
// // CourseCardViewModel.swift // edX // // Created by Michael Katz on 8/31/15. // Copyright (c) 2015 edX. All rights reserved. // import Foundation @objc class CourseCardViewModel : NSObject { class func applyCourse(course: OEXCourse, to infoView: CourseDashboardCourseInfoView) { infoView.course = ...
apache-2.0
cuappdev/eatery
Eatery Watch App Extension/UI/Eateries/CampusEateriesView.swift
1
6277
// // CampusEateriesView.swift // Eatery Watch App Extension // // Created by William Ma on 1/5/20. // Copyright © 2020 CUAppDev. All rights reserved. // import Combine import CoreLocation import SwiftUI private class CampusEateriesData: ObservableObject { @Published var campusEateries: [CampusEatery] = [] ...
mit
kstaring/swift
validation-test/compiler_crashers_fixed/27721-swift-typebase-getcanonicaltype.swift
11
462
// This source file is part of the Swift.org open source project // Copyright (c) 2014 - 2016 Apple Inc. and the Swift project authors // Licensed under Apache License v2.0 with Runtime Library Exception // // See http://swift.org/LICENSE.txt for license information // See http://swift.org/CONTRIBUTORS.txt for the list...
apache-2.0
Mayfleet/SimpleChat
Frontend/iOS/SimpleChat/SimpleChat/Views/CircleButton.swift
1
715
// // Created by Maxim Pervushin on 11/03/16. // Copyright (c) 2016 Maxim Pervushin. All rights reserved. // import UIKit @IBDesignable class CircleButton: UIButton { override func layoutSubviews() { layer.cornerRadius = min(frame.height, frame.width) / 2 super.layoutSubviews() } private...
mit
wikimedia/wikipedia-ios
Wikipedia/Code/ColumnarCollectionViewControllerLayoutCache.swift
1
3193
private extension CGFloat { var roundedColumnWidth: Int { return Int(self*100) } } class ColumnarCollectionViewControllerLayoutCache { private var cachedHeights: [String: [Int: CGFloat]] = [:] private var cacheKeysByGroupKey: [WMFInMemoryURLKey: Set<String>] = [:] private var cacheKeysByArti...
mit
ikesyo/Swiftz
Swiftz/Arrow.swift
3
6437
// // Arrow.swift // Swiftz // // Created by Robert Widmann on 1/18/15. // Copyright (c) 2015 TypeLift. All rights reserved. // /// An Arrow is most famous for being a "Generalization of a Monad". They're probably better /// described as a more general view of computation. Where a monad M<A> yields a value of ty...
bsd-3-clause
systers/PowerUp
Powerup/OOC-Event-Classes/StorySequences.swift
2
18598
import Foundation /** Struct is responsible for retrieving and parsing StorySequences.json into a Swift datatype. It describes all instances of StorySequence. - Author: Cadence Holmes 2018 */ struct StorySequences { // bundle needs to be able to be changed in order to automate testing var bundle = Bundle.m...
gpl-2.0
bcylin/QuickTableViewController
Source/Views/SwitchCell.swift
1
4032
// // SwitchCell.swift // QuickTableViewController // // Created by Ben on 03/09/2015. // Copyright (c) 2015 bcylin. // // 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 restr...
mit
Daniel-Lopez/EZSwiftExtensions
Sources/UIViewControllerExtensions.swift
1
8271
// // UIViewControllerExtensions.swift // EZSwiftExtensions // // Created by Goktug Yilmaz on 15/07/15. // Copyright (c) 2015 Goktug Yilmaz. All rights reserved. // import UIKit extension UIViewController { // MARK: - Notifications //TODO: Document this part public func addNotificationObserver(name: S...
mit
wircho/SwiftyNotification
SwiftyNotification/SwiftyNotification.swift
1
1979
//--- import Foundation // MARK: Notification Protocol public protocol Notification { associatedtype P static var name:String { get } static func note(params:P) throws -> NSNotification static func parameters(note:NSNotification) throws -> P } extension Notification { public static func note(par...
mit
eburns1148/CareKit
testing/OCKTest/OCKTest/LoremIpsum.swift
2
11419
/* Copyright (c) 2016, Apple Inc. 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 conditions and the follow...
bsd-3-clause
kingslay/KSJSONHelp
Core/Source/PropertyData.swift
1
5102
// // PropertyData.swift // SwiftyDB // // Created by Øyvind Grimnes on 20/12/15. // import Foundation internal struct PropertyData { internal let isOptional: Bool internal var type: Any.Type internal var bindingType: Binding.Type? internal var name: String? lazy internal var bindingValue:...
mit
hoowang/SWiftQRScanner
SWiftQRScanner/SWiftQRScanner/QRCodeScanner/QRCodeScannerController.swift
1
1129
// // QRCodeScannerController.swift // WKWeibo // // Created by hooge on 15/9/16. // Copyright © 2015年 hoowang. All rights reserved. // import UIKit class QRCodeScannerController: UIViewController { @IBOutlet weak var scanLineView: UIImageView! @IBOutlet weak var scanLineTopConstraint: NSLayoutConstraint...
mit
kirsteins/BigInteger
Source/Operators.swift
1
4810
// // Operators.swift // BigInteger // // Created by Jānis Kiršteins on 17/09/14. // Copyright (c) 2014 Jānis Kiršteins. All rights reserved. // // MARK: - comparison public func == (lhs: Int, rhs: BigInteger) -> Bool { return BigInteger(lhs) == rhs } public func == (lhs: BigInteger, rhs: Int) -> Bool { ...
mit
square/wire
wire-library/wire-runtime-swift/src/main/swift/ProtoCodable.swift
1
2699
/* * Copyright 2020 Square Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in w...
apache-2.0
moozzyk/SignalR-Client-Swift
Examples/Playground/Playground.playground/Contents.swift
1
1762
import Cocoa import SignalRClient let hubConnection = HubConnectionBuilder(url: URL(string: "http://localhost:5000/playground")!) .withLogging(minLogLevel: .info) .build() hubConnection.on(method: "AddMessage") {(user: String, message: String) in print(">>> \(user): \(message)") } hubConnection.start() /...
mit
Eonil/EditorLegacy
Modules/EditorFileTreeNavigationFeature/EditorFileTreeNavigationFeature/FileNavigating/FileTreeViewController.swift
2
4019
//// //// FileTreeViewController.swift //// RustCodeEditor //// //// Created by Hoon H. on 11/11/14. //// Copyright (c) 2014 Eonil. All rights reserved. //// // //import Foundation //import AppKit // //class FileTreeViewController : NSViewController, NSOutlineViewDataSource, NSOutlineViewDelegate { // // let userI...
mit
benlangmuir/swift
validation-test/compiler_crashers_fixed/00962-swift-protocoltype-canonicalizeprotocols.swift
65
505
// 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/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the li...
apache-2.0
benlangmuir/swift
validation-test/compiler_crashers_fixed/28033-swift-configureconstructortype.swift
65
483
// 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/LICENSE.txt for license information // See https://swift.org/CONTRIBUTORS.txt for the li...
apache-2.0
malaonline/iOS
mala-ios/View/OrderForm/OrderFormOperatingView.swift
1
9522
// // OrderFormOperatingView.swift // mala-ios // // Created by 王新宇 on 16/5/13. // Copyright © 2016年 Mala Online. All rights reserved. // import UIKit public protocol OrderFormOperatingViewDelegate: class { /// 立即支付 func orderFormPayment() /// 再次购买 func orderFormBuyAgain() /// 取消订单 func...
mit
futomtom/DynoOrder
Dyno/DynoOrder/ItemCell.swift
1
907
// // ItemCell.swift // DynoOrder // // Created by alexfu on 10/20/16. // Copyright © 2016 Alex. All rights reserved. // import UIKit class ItemCell: UICollectionViewCell { @IBOutlet weak var imageV: UIImageView! @IBOutlet weak var name: UILabel! @IBOutlet weak var stepper: UIStepper! @IBOut...
mit
polymr/polymyr-api
Sources/App/Utility/Sanitizable.swift
1
200
import Vapor /// A request-extractable `Model`. public protocol Sanitizable { /// Fields that are permitted to be deserialized from a Request's JSON. static var permitted: [String] { get } }
mit
mbeloded/beaconDemo
PassKitApp/PassKitApp/Classes/Managers/CoreDataManager/CoreDataManager.swift
1
12527
// // CoreDataManager.swift // PassKitApp // // Created by Alexandr Chernyy on 10/6/14. // Copyright (c) 2014 Alexandr Chernyy. All rights reserved. // import UIKit import CoreData class CoreDataManager: NSManagedObject { class var sharedManager : CoreDataManager { struct Static { static var onceT...
gpl-2.0
malaonline/iOS
mala-ios/Extension/Extension+UIColor.swift
1
742
// // Extension+UIColor.swift // mala-ios // // Created by Elors on 15/12/20. // Copyright © 2015年 Mala Online. All rights reserved. // import UIKit // MARK: - Convenience extension UIColor { /// Convenience Function to Create UIColor With Hex RGBValue /// /// - parameter rgbHexValue: Hex RGBVal...
mit
wireapp/wire-ios
Wire-iOS/Sources/UserInterface/Components/Controllers/DefaultNavigationBar.swift
1
3776
// // Wire // Copyright (C) 2016 Wire Swiss GmbH // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This progr...
gpl-3.0
wireapp/wire-ios
Wire-iOS Tests/FilePreviewGeneratorTests.swift
1
2125
// // Wire // Copyright (C) 2017 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
danbennett/DBRepo
DBRepo/Repo/CoreData/NSManagedObjectContext+RepoLifetimeType.swift
1
1035
// // NSManagedObjectContext+RepoLifetimeType.swift // DBRepo // // Created by Daniel Bennett on 09/07/2016. // Copyright © 2016 Dan Bennett. All rights reserved. // import Foundation import CoreData extension NSManagedObjectContext : RepoLifetimeType { public func addEntity<T : EntityType>(type : T.Type...
mit
steelwheels/KiwiControls
UnitTest/iOS/UTTerminal/ViewController.swift
1
263
// // ViewController.swift // UTTerminal // // Created by Tomoo Hamada on 2020/09/21. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } }
lgpl-2.1
EasySwift/EasySwift
Carthage/Checkouts/YXJXibView/testYXJXibView/testYXJXibView/TestXibView1.swift
2
446
// // TestXibView1.swift // testYXJXibView // // Created by yuanxiaojun on 16/7/5. // Copyright © 2016年 袁晓钧. All rights reserved. // import UIKit import YXJXibView class TestXibView1: YXJXibView { /* // Only override drawRect: if you perform custom drawing. // An empty implementation adversely affe...
apache-2.0
jatoben/RocksDB
Tests/RocksDBTests/AllTests.swift
1
3772
/* * AllTests.swift * Copyright (c) 2016 Ben Gollmer. * * 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 applicabl...
apache-2.0
davidf2281/ColorTempToRGB
Sample Project/AppDelegate.swift
1
398
// // Created by David Fearon on 13/12/2015. // Copyright © 2015 David Fearon. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions:[U...
mit
eTilbudsavis/native-ios-eta-sdk
Sources/EventsTracker/UniqueViewTokenizer.swift
1
2944
// // ┌────┬─┐ ┌─────┐ // │ ──┤ └─┬───┬───┤ ┌──┼─┬─┬───┐ // ├── │ ╷ │ · │ · │ ╵ │ ╵ │ ╷ │ // └────┴─┴─┴───┤ ┌─┴─────┴───┴─┴─┘ // └─┘ // // Copyright (c) 2018 ShopGun. All rights reserved. import Foundation /// The signature of a Tokenize function, for converting a string to a different...
mit
phatblat/realm-cocoa
examples/installation/ios/swift/CarthageExample/CarthageExample/AppDelegate.swift
1
1347
//////////////////////////////////////////////////////////////////////////// // // Copyright 2014 Realm Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/li...
apache-2.0
tomokitakahashi/ParallaxPagingViewController
ParallaxPagingViewControllerExample/ParallaxPagingViewControllerExample/AppDelegate.swift
1
2228
// // AppDelegate.swift // ParallaxPagingViewControllerExample // // Created by takahashi tomoki on 2017/07/06. // Copyright © 2017年 TomokiTakahashi. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ ...
mit
jhabbbbb/ClassE
ClassETests/ClassETests.swift
1
967
// // ClassETests.swift // ClassETests // // Created by JinHongxu on 2016/12/14. // Copyright © 2016年 JinHongxu. All rights reserved. // import XCTest @testable import ClassE class ClassETests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is calle...
mit
woodcockjosh/FastContact
FastContact/Constant.swift
1
766
// // Constant.swift // FastContact // // Created by Josh Woodcock on 8/23/15. // Copyright (c) 2015 Connecting Open Time, LLC. All rights reserved. // import UIKit public struct FastContactConstant { public static let IOS_MAIN_VERSION: Double = { var systemVersion = UIDevice.currentDevice().systemVer...
mit
tsolomko/SWCompression
Sources/swcomp/Archives/LZ4Command.swift
1
3901
// Copyright (c) 2022 Timofey Solomko // Licensed under MIT License // // See LICENSE for license information import Foundation import SWCompression import SwiftCLI final class LZ4Command: Command { let name = "lz4" let shortDescription = "Creates or extracts a LZ4 archive" @Flag("-c", "--compress", des...
mit
muukii/NextGrowingTextView
Package.swift
1
442
// swift-tools-version:5.5 // The swift-tools-version declares the minimum version of Swift required to build this package. import PackageDescription let package = Package( name: "NextGrowingTextView", platforms: [ .iOS(.v10) ], products: [ .library(name: "NextGrowingTextView", targets: ["NextGrowingTe...
mit
vivekvpandya/GetSwifter
FunChallengeDetailsVC.swift
2
5106
// // FunChallengeDetailsVC.swift // GetSwifter // // Created by Vivek Pandya on 9/20/14. // Copyright (c) 2014 Vivek Pandya. All rights reserved. // import UIKit import Alamofire class FunChallengeDetailsVC: UIViewController, UIAlertViewDelegate { @IBOutlet weak var activityIndicator: UIActivityIndicat...
mit
natecook1000/swift-compiler-crashes
crashes-duplicates/15012-swift-sourcemanager-getmessage.swift
11
266
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing if true { { { end as S ( { [ { { protocol b { extension Array { var b { { { { { { } class case ,
mit
airspeedswift/swift-compiler-crashes
crashes-fuzzing/00907-c-t.swift
1
235
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing var b { { } println , { { } } protocol A { func f typealias e : e
mit
airspeedswift/swift-compiler-crashes
crashes-duplicates/00214-swift-typebase-gettypeofmember.swift
12
2557
// Distributed under the terms of the MIT license // Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case found by fuzzing func f<m>() -> (m, m -> m) -> m { e c e.i = { } { m) { n } } protocol f { class func i() } class e: f{ class func i {} func n<j>() ...
mit
liufengting/FTChatMessageDemoProject
FTChatMessage/FTChatMessageHeader/FTChatMessageHeader.swift
1
3018
// // FTChatMessageHeader.swift // FTChatMessage // // Created by liufengting on 16/2/28. // Copyright © 2016年 liufengting <https://github.com/liufengting>. All rights reserved. // import UIKit protocol FTChatMessageHeaderDelegate { func ft_chatMessageHeaderDidTappedOnIcon(_ messageSenderModel : FTChatMessage...
mit
xcadaverx/ABPlayer
Example/Example/ViewController.swift
1
1583
// // ViewController.swift // Example // // Copyright © 2016 Dandom. All rights reserved. // import UIKit import ABPlayer import AVFoundation class ViewController: UIViewController { @IBOutlet weak var abPlayerView: ABPlayerView! @IBAction func tap(sender: UIButton) { // let config = ABPlayerC...
mit
iscriptology/swamp
Example/Pods/CryptoSwift/Sources/CryptoSwift/CSArrayType+Extensions.swift
2
2133
// // _ArrayType+Extensions.swift // CryptoSwift // // Created by Marcin Krzyzanowski on 08/10/15. // Copyright © 2015 Marcin Krzyzanowski. All rights reserved. // public protocol CSArrayType: Collection, RangeReplaceableCollection { func cs_arrayValue() -> [Iterator.Element] } extension Array: CSArrayType { ...
mit
tinmnguyen/swiftLIFX
SwiftLifx/DetailViewController.swift
1
3776
// // DetailViewController.swift // SwiftLifx // // Created by Tin Nguyen on 10/4/14. // Copyright (c) 2014 Tin Nguyen. All rights reserved. // import UIKit public class DetailViewController: UIViewController, LFXLightObserver { public var light: LFXLight! @IBOutlet var brightnessSlider: UISlider! ...
mit
zhixingxi/JJA_Swift
JJA_Swift/JJA_Swift/AppDelegate/AppDelegate.swift
1
3863
// // AppDelegate.swift // JJA_Swift // // Created by MQL-IT on 2017/5/16. // Copyright © 2017年 MQL-IT. All rights reserved. // // _ooOoo_ // o8888888o // 88" . "88 // (| -_- |) // O\ ...
mit
jkolb/midnightbacon
MidnightBacon/Modules/Submit/TextFieldCell.swift
1
4072
// // TextFieldTableViewCell.swift // MidnightBacon // // Copyright (c) 2015 Justin Kolb - http://franticapparatus.net // // 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 restrict...
mit
thisjeremiah/all-ashore
AllAshore/AppDelegate.swift
1
6224
// // AppDelegate.swift // AllAshore // // Created by Jeremiah Montoya on 4/24/15. // Copyright (c) 2015 Jeremiah Montoya. All rights reserved. // import UIKit import CoreData // declare globals var taxonomy : [String: [String:[String]]] = Taxonomy().model @UIApplicationMain class AppDelegate: UIResponder, UIApp...
mit
pmlbrito/WeatherExercise
WeatherExercise/Presentation/Map/AddLocationMapPresenter.swift
1
1137
// // AddLocationMapPresenter.swift // WeatherExercise // // Created by Pedro Brito on 11/05/2017. // Copyright © 2017 BringGlobal. All rights reserved. // import Foundation import MapKit import UIKit protocol AddLocationPresenterProtocol: BasePresenterProtocol { func saveLocation(location: LocationModel) } ...
mit
Gunmer/EmojiLog
EmojiLog/Classes/EmojiMap.swift
1
674
public protocol EmojiMap { init() func map(level: LogLevel) -> String } class EmojiMapDefault: EmojiMap { required init() {} func map(level: LogLevel) -> String { switch level { case .debug: return "💬" case .info: return "🖥" case .waring: return "⚠️" case...
mit
artemkalinovsky/JSQCoreDataKit
JSQCoreDataKit/JSQCoreDataKit/CoreDataExtensions.swift
1
6098
// // Created by Jesse Squires // http://www.jessesquires.com // // // Documentation // http://www.jessesquires.com/JSQCoreDataKit // // // GitHub // https://github.com/jessesquires/JSQCoreDataKit // // // License // Copyright (c) 2015 Jesse Squires // Released under an MIT license: http://opensource.org/licen...
mit
fl0549/UberManagerSwift
Pod/Classes/Models/Payment.swift
1
1058
// // Payment.swift // UberManagerSwift // // Created by Florian Pygmalion on 25/02/2016. // Copyright © 2016 Florian Pygmalion. All rights reserved. // import UIKit import SwiftyJSON public class Payment { public var description = "" public var payment_method_id = "" public var type = "" } ext...
mit
posix88/AMDragDrop
AMDragDropExample/ViewController.swift
1
1010
// // ViewController.swift // AMDragDrop // // Created by Antonino Francesco Musolino on 11/15/2016. // Copyright (c) 2016 Antonino Francesco Musolino. All rights reserved. // import UIKit class ViewController: UIViewController, AMDragDropDelegate { @IBOutlet weak var otherDropView: AMDragDropView! @IBOutlet ...
mit
kzaher/RxFeedback
Examples/Examples/Todo.swift
1
2736
// // Todo.swift // RxFeedback // // Created by Krunoslav Zaher on 5/11/17. // Copyright © 2017 Krunoslav Zaher. All rights reserved. // import struct Foundation.UUID import struct Foundation.Date enum SyncState { case syncing case success case failed(Error) } struct Task { let id: UUID let c...
mit
AlexLittlejohn/ALCameraViewController
ALCameraViewController/Utilities/Utilities.swift
1
4214
// // ALUtilities.swift // ALCameraViewController // // Created by Alex Littlejohn on 2015/06/25. // Copyright (c) 2015 zero. All rights reserved. // import UIKit import AVFoundation internal func radians(_ degrees: CGFloat) -> CGFloat { return degrees / 180 * .pi } internal func localizedString(_ key: Strin...
mit
GerryLaplante/Emoji-Dictionary
Emoji Dictionary/AppDelegate.swift
1
2154
// // AppDelegate.swift // Emoji Dictionary // // Created by Paul Wright on 9/25/15. // Copyright © 2015 Gerry Laplante. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, did...
unlicense
crexista/KabuKit
KabuKitTests/Mock/MockTransitionRequest.swift
1
148
// // Copyright © 2017年 DWANGO Co., Ltd. // import Foundation import KabuKit class MockTransitionRequest: TransitionRequest<String, String>{}
mit
werner-freytag/DockTime
ClockBundle-Subway/ClockView.swift
1
3240
// The MIT License // // Copyright 2012-2021 Werner Freytag // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy,...
mit
schluchter/berlin-transport
berlin-transport/berlin-trnsprtTests/BTConReqBuilderTests.swift
1
1077
import Quick import Nimble import berlin_trnsprt class BTConReqBuilderTests: QuickSpec { override func spec() { describe("The date and time printer") { context("when given my birthday") { let comps = NSDateComponents() let calendar = NSCalendar.currentCalendar() ...
mit
CUITCHE/printc
Tests/printcTests/printcTests.swift
1
398
import XCTest @testable import printc class printcTests: XCTestCase { func testExample() { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct // results. XCTAssertEqual(printc().text, "Hello, World!") ...
mit
shu223/watchOS-2-Sampler
watchOS2Sampler WatchKit Extension/SwipeInterfaceController.swift
1
510
// // SwipeInterfaceController.swift // watchOS2Sampler // // Created by Shuichi Tsutsumi on 1/7/16. // Copyright © 2016 Shuichi Tsutsumi. All rights reserved. // import WatchKit import Foundation class SwipeInterfaceController: WKInterfaceController { override func awake(withContext context: Any?) { ...
mit
siuying/SignalKit
SignalKit/Utilities/IncrementalKeyGenerator.swift
1
1193
// // IncrementalKeyGenerator.swift // SignalKit // // Created by Yanko Dimitrov on 7/15/15. // Copyright (c) 2015 Yanko Dimitrov. All rights reserved. // import Foundation /** Generates an incremental unique sequence of tokens based on the number of generated tokens and a step limit. For example a ge...
mit
KrishMunot/swift
test/DebugInfo/prologue.swift
6
531
// RUN: %target-swift-frontend -primary-file %s -S -g -o - | FileCheck %s // REQUIRES: CPU=x86_64 func markUsed<T>(_ t: T) {} // CHECK: .file [[F:[0-9]+]] "{{.*}}prologue.swift" func bar<T, U>(_ x: T, y: U) { markUsed("bar") } // CHECK: _TF8prologue3baru0_rFTx1yq__T_: // CHECK: .loc [[F]] 0 0 prologue_end // Make su...
apache-2.0
evering7/iSpeak8
Pods/FeedKit/Sources/FeedKit/Dates/ISO8601DateFormatter.swift
2
2082
// // ISO8601DateFormatter.swift // // Copyright (c) 2017 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 rig...
mit
tonyarnold/Differ
Sources/Differ/ExtendedDiff.swift
1
7629
/// A sequence of deletions, insertions, and moves where deletions point to locations in the source and insertions point to locations in the output. /// Examples: /// ``` /// "12" -> "": D(0)D(1) /// "" -> "12": I(0)I(1) /// ``` /// - SeeAlso: Diff public struct ExtendedDiff: DiffProtocol { public typealias Index ...
mit