CombinedText stringlengths 8 3.42M |
|---|
//
// RegistrationPageViewController.swift
// Latr
//
// Created by Apprentice on 7/8/17.
// Copyright © 2017 JackHowa. All rights reserved.
//
import UIKit
import Firebase
// need db for specifying the db call
import FirebaseDatabase
import FirebaseAuth
class RegistrationPageViewController: UIViewController {
... |
/**
* Copyright IBM Corporation 2016
*
* 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... |
//
// Rule.swift
// SwiftLint
//
// Created by JP Simard on 2015-05-16.
// Copyright (c) 2015 Realm. All rights reserved.
//
import SourceKittenFramework
public protocol OptInRule {}
public protocol Rule {
init() // Rules need to be able to be initialized with default values
static var description: RuleD... |
//
// UserInteractionFunctions.swift
// Pods
//
// Created by Jay Thomas on 2016-05-12.
//
//
extension JTAppleCalendarView {
/// Returns the cellStatus of a date that is visible on the screen. If the row and column for the date cannot be found, then nil is returned
/// - Paramater row: Int row of the date... |
//
// CLLocation.swift
// ZamzamKit
//
// Created by Basem Emara on 2/17/16.
// Copyright © 2016 Zamzam Inc. All rights reserved.
//
import CoreLocation
public extension CLLocationCoordinate2D {
/// Returns a location object.
var location: CLLocation {
return CLLocation(latitude: latitude, lo... |
//
// FunctionalAdditions.swift
// SwiftFormsApplication
//
// Created by Alan Skipp on 25/07/2015.
// Copyright (c) 2015 Alan Skipp. All rights reserved.
//
// Apply a function to an Optional value, or return a default value if the Optional is .None
// https://downloads.haskell.org/~ghc/latest/docs/html/librarie... |
controller -> elevationViewController
|
//
// ReactKit.swift
// ReactKit
//
// Created by Yasuhiro Inami on 2014/09/11.
// Copyright (c) 2014年 Yasuhiro Inami. All rights reserved.
//
import SwiftTask
public class Stream<T>: Task<T, Void, NSError>
{
public typealias Producer = Void -> Stream<T>
public override var description: String
{
... |
import TensorFlow
struct ConvBN: Layer {
var conv: Conv2D<Float>
var norm: BatchNorm<Float>
public init(filterShape: (Int, Int, Int, Int), strides: (Int, Int) = (1, 1), padding: Padding) {
self.conv = Conv2D(filterShape: filterShape, strides: strides, padding: padding)
self.norm = BatchNor... |
//
// Recorded.swift
// RxTest
//
// Created by Krunoslav Zaher on 2/14/15.
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
import RxSwift
import Swift
/// Record of a value including the virtual time it was produced on.
public struct Recorded<Value>
: CustomDebugStringConvertible {
/// Gets... |
//
// Decoder.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... |
/*
SBUtilS.swift
Copyright (c) 2014, Alice Atlas
Copyright (c) 2010, Atsushi Jike
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 notic... |
// Copyright (c) 2016, Yuji
// 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 an... |
//
// Copyright (c) 2016 Anton Mironov
//
// 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, ... |
//
// Spotify.swift
// SpotMenu
//
// Created by Miklós Kristyán on 02/09/16.
// Copyright © 2016 KM. All rights reserved.
//
import Foundation
open class Spotify: NSObject {
// MARK: - Variables
open static var currentTrack = Track()
open static var playerState: PlayerState {
get {
... |
//
// Drop.swift
// SwiftyDrop
//
// Created by MORITANAOKI on 2015/06/18.
//
import UIKit
public enum DropState {
case Default, Info, Success, Warning, Error
private func backgroundColor() -> UIColor? {
switch self {
case Default: return UIColor(red: 41/255.0, green: 128/255.0, blue: ... |
//
// Client.swift
// Tentacle
//
// Created by Matt Diephouse on 3/3/16.
// Copyright © 2016 Matt Diephouse. All rights reserved.
//
import Argo
import Foundation
import ReactiveCocoa
import Result
extension NSJSONSerialization {
internal static func deserializeJSON(data: NSData) -> Result<NSDictionary, NSE... |
// Copyright (c) 2017 Timofey Solomko
// Licensed under MIT License
//
// See LICENSE for license information
import Foundation
struct Constants {
/* Contents of test files:
- test1: text file with "Hello, World!\n".
- test2: text file with copyright free song lyrics from http://www.freesonglyrics.co.u... |
import XCTest
import MySQLTestSuite
var tests = [XCTestCaseEntry]()
tests += MySQLTestSuite.allTests()
XCTMain(tests)
Fixed Linux testing
import XCTest
@testable import MySQLTests
XCTMain([
testCase(MySQLTests.allTests),
])
|
import XCTest
import CoreTests
import FileTests
// import HTTPClientTests
// import HTTPFileTests
import HTTPServerTests
import HTTPTests
import IPTests
// import OpenSSLTests
import POSIXTests
import ReflectionTests
import TCPTests
import VeniceTests
var testCases = [
// POSIX
testCase(POSIXTests.allTests),
... |
//
// Decks.swift
// HSTracker
//
// Created by Benjamin Michotte on 17/04/16.
// Copyright © 2016 Benjamin Michotte. All rights reserved.
//
import Foundation
import CleanroomLogger
import RealmSwift
final class Decks {
static let instance = Decks()
private var _decks = [String: Deck]()
private var... |
//
// HardwareModel.swift
// Hardware
//
// Created by larryhou on 10/7/2017.
// Copyright © 2017 larryhou. All rights reserved.
//
import Foundation
import CoreTelephony
import AdSupport
import UIKit
import SystemConfiguration.CaptiveNetwork
import CoreBluetooth
enum CategoryType:Int
{
case telephony = 5, bl... |
//
// WebViewController.swift
// Helium
//
// Created by Jaden Geller on 4/9/15.
// Copyright (c) 2015 Jaden Geller. All rights reserved.
// Copyright © 2017 Carlos D. Santiago. All rights reserved.
//
import Cocoa
import WebKit
import AVFoundation
import Carbon.HIToolbox
extension WKWebViewConfiguration {
/... |
//
// ViewController.swift
// Helium
//
// Created by Jaden Geller on 4/9/15.
// Copyright (c) 2015 Jaden Geller. All rights reserved.
//
import Cocoa
import WebKit
class WebViewController: NSViewController, WKNavigationDelegate {
var trackingTag: NSTrackingRectTag?
// MARK: View lifecycle
override ... |
import UIKit
import SwifteriOS
import EventBox
class TimelineViewController: UIViewController, UIScrollViewDelegate {
// MARK: Properties
@IBOutlet weak var scrollWrapperView: UIView!
@IBOutlet weak var scrollView: UIScrollView!
@IBOutlet weak var iconImageView: UIImageView!
@IBOutlet wea... |
//
// KeyboardViewController.swift
// Keyboard
//
// Created by Alexei Baboulevitch on 6/9/14.
// Copyright (c) 2014 Apple. All rights reserved.
//
import UIKit
let metrics: [String:Double] = [
"topBanner": 30
]
func metric(name: String) -> CGFloat { return CGFloat(metrics[name]!) }
class KeyboardViewControl... |
//
// KeyboardViewController.swift
// Keyboard
//
// Created by Joon Park on 10/18/16.
//
import UIKit
import CoreMotion
import AudioToolbox
class KeyboardViewController: UIInputViewController {
var nextKeyboardButton: UIButton!
var hideKeyboardButton: UIButton!
var keyboardRows: [[UIButton]] = [] // A... |
// RUN: %target-swiftc_driver -O -Rpass-missed=sil-opt-remark-gen -Xllvm -sil-disable-pass=FunctionSignatureOpts -emit-sil %s -o /dev/null -Xfrontend -verify
// REQUIRES: optimized_stdlib
public class Klass {}
public var global = Klass()
@inline(never)
public func getGlobal() -> Klass {
return global // expected... |
import Aztec
import Foundation
public extension Element {
static let gutenpack = Element("gutenpack")
}
public class GutenpackConverter: ElementConverter {
// MARK: - ElementConverter
public func convert(
_ element: ElementNode,
inheriting attributes: [NSAttributedStringKey: Any]... |
// Copyright 2019 The TensorFlow 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... |
//
// TokenListViewController.swift
// breadwallet
//
// Created by Adrian Corscadden on 2018-04-08.
// Copyright © 2018 breadwallet LLC. All rights reserved.
//
import UIKit
enum TokenListType {
case manage
case add
var title: String {
switch self {
case .manage:
retu... |
//
// TransactionDetailCollectionViewCell.swift
// breadwallet
//
// Created by Adrian Corscadden on 2017-02-09.
// Copyright © 2017 breadwallet LLC. All rights reserved.
//
import UIKit
class TransactionDetailCollectionViewCell : UICollectionViewCell {
//MARK: - Public
override init(frame: CGRect) {
... |
//===----------------------------------------------------------------------===//
//
// 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... |
//
// MyConnectionRequestSpec.swift
// CreatubblesAPIClient
//
// Created by Nomtek on 04.07.2016.
// Copyright © 2016 Nomtek. All rights reserved.
//
import Quick
import Nimble
@testable import CreatubblesAPIClient
class MyConnectionsResponseHandlerSpec: QuickSpec
{
override func spec()
{
describ... |
//
// FloatingTitleTextField.swift
// FloatingTitleTextField
//
// Created by Gustavo Saume on 11/15/15.
// Copyright © 2015 BigPanza. All rights reserved.
//
import UIKit
@IBDesignable
public class FloatingTitleTextField: UITextField {
// Publics vars
@IBInspectable
public var title: String? {
didSet... |
//
// LSBook.swift
// LHiOSAccumulatesInSwift
//
// Created by 李辉 on 2017/8/11.
// Copyright © 2017年 Lihux. All rights reserved.
//
import Foundation
struct LSBook: Codable {
let rating: Rating
let subTitle: String
let publisher: String
let title: String
let price: String
let image: String... |
//
// BlockEditorTableViewController.swift
// MT_iOS
//
// Created by CHEEBOW on 2015/06/10.
// Copyright (c) 2015年 Six Apart, Ltd. All rights reserved.
//
import UIKit
class BlockEditorTableViewController: BaseTableViewController, AddAssetDelegate {
var blog: Blog!
var entry: BaseEntry!
var blocks: E... |
//
// VIMVideoTests.swift
// VimeoNetworkingExample-iOS
//
// Copyright © 2017 Vimeo. All rights reserved.
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, inc... |
//
// main.swift
// AudioKit
//
// Created by Nick Arner and Aurelius Prochazka on 12/22/14.
// Copyright (c) 2014 Aurelius Prochazka. All rights reserved.
//
import Foundation
let testDuration: Float = 10.0
class Instrument : AKInstrument {
var auxilliaryOutput = AKAudio()
override init() {
su... |
//
// fastqueue.swift
// QQ
//
// Created by Guillaume Lessard on 2014-08-16.
// Copyright (c) 2014 Guillaume Lessard. All rights reserved.
//
import Darwin
final class FastQueue<T>: QueueType, SequenceType, GeneratorType
{
private var head: UnsafeMutablePointer<Node<T>> = nil
private var tail: UnsafeMutableP... |
//
// ViewController.swift
// MyWKWebViewProto
//
// Created by Distributed on 06/12/2016.
// Copyright © 2016 Seven Years Later. All rights reserved.
//
import Cocoa
import WebKit
class ViewController: NSViewController, WKUIDelegate {
var webView: WKWebView?
override func viewDidLoad() {
sup... |
//
// PermissionScope.swift
// PermissionScope
//
// Created by Nick O'Neill on 4/5/15.
// Copyright (c) 2015 That Thing in Swift. All rights reserved.
//
import UIKit
import CoreLocation
import AddressBook
import AVFoundation
import Photos
import EventKit
import CoreBluetooth
import CoreMotion
import HealthKit
im... |
//
// RegularPlayer.swift
// Pods
//
// Created by King, Gavin on 3/7/17.
//
//
import UIKit
import Foundation
import AVFoundation
import AVKit
extension AVMediaSelectionOption: TextTrackMetadata
{
public var describesMusicAndSound: Bool
{
return self.hasMediaCharacteristic(.describesMusicAndSoundF... |
//
// JTAppleCalendarView.swift
// JTAppleCalendar
//
// Created by Jay Thomas on 2016-03-01.
// Copyright © 2016 OS-Tech. All rights reserved.
//
let cellReuseIdentifier = "JTDayCell"
let NUMBER_OF_DAYS_IN_WEEK = 7
let MAX_NUMBER_OF_DAYS_IN_WEEK = 7 // Should not be changed
let MIN_... |
/* 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 FirebaseRemoteConfig
protocol EventsProviderDelegate: class {
func eventsProvider(_... |
//
// Nib.swift
// R.swift
//
// Created by Mathijs Kadijk on 10-12-15.
// Copyright © 2015 Mathijs Kadijk. All rights reserved.
//
import Foundation
private let Ordinals = [
(number: 1, word: "first"),
(number: 2, word: "second"),
(number: 3, word: "third"),
(number: 4, word: "fourth"),
(number: 5, wor... |
//
// RuntimeChannelSpec.swift
// Runtime
//
// Created by Paul Young on 24/08/2014.
// Copyright (c) 2014 CocoaFlow. All rights reserved.
//
import Quick
import Nimble
import Runtime
import JSONLib
class RuntimeChannelSpec: QuickSpec {
override func spec() {
describe("Runtime channel") ... |
//
// EasyTipView.swift
//
// Copyright (c) 2015 Teodor Patraş
//
// 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... |
//
// MustacheParser3.swift
// Noze.io
//
// Created by Helge Heß on 6/1/16.
// Copyright © 2016-2021 ZeeZide GmbH. All rights reserved.
//
public struct MustacheParser {
public init() {}
enum MustacheToken {
case Text(String)
case Tag(String)
case UnescapedTag(String)
case SectionStart(S... |
// Scraped from http://www.freeformatter.com/mime-types-list.html
let mediaTypes = [
"aw": "application/applixware", // Applixware Vistasource
"atom": "application/atom+xml", // Atom Syndication Format RFC 4287
"atomcat": "application/atomcat+xml", // Atom Publishing Protocol RFC 5023
"atomsvc": "appli... |
//
// APIService.swift
// Stormpath
//
// Created by Adis on 18/11/15.
// Copyright © 2015 Stormpath. All rights reserved.
//
import Foundation
final class APIService: NSObject {
weak var stormpath: Stormpath!
init(withStormpath stormpath: Stormpath) {
self.stormpath = stormpath
}
... |
//
// CollectionViewLayout.swift
// SwiftBoard
//
// Created by Matt Daw on 2014-09-15.
// Copyright (c) 2014 Matt Daw. All rights reserved.
//
import UIKit
class CollectionViewLayout: UICollectionViewLayout {
let itemSize = CGFloat(96)
var itemFrames: [CGRect] = []
var numberOfItems = 0
var ... |
// Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing
class B<T where a:a{var d{class a{func g:d=var d=b
Mark as duplicate.
|
//
// ShiftImport.swift
// masamon
//
// Created by 岩見建汰 on 2015/11/04.
// Copyright © 2015年 Kenta. All rights reserved.
//
import UIKit
class ShiftImport: UIViewController{
let appDelegate:AppDelegate = UIApplication.sharedApplication().delegate as! AppDelegate //AppDelegateのインスタンスを取得
let notificationCe... |
//
// ShiftRegister.swift
// masamon
//
// Created by 岩見建汰 on 2015/12/06.
// Copyright © 2015年 Kenta. All rights reserved.
//
import UIKit
import RealmSwift
class Shiftmethod: UIViewController {
//cellの列(日付が記載されている範囲)
let cellrow = ["G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W",... |
// Copyright 2019 The TensorFlow 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 b... |
import UIKit
import WebKit
public protocol TLSessionDelegate: class {
func prepareWebViewConfiguration(configuration: WKWebViewConfiguration, forSession session: TLSession)
func session(session: TLSession, didInitializeWebView webView: WKWebView)
func session(session: TLSession, didProposeVisitToLocation ... |
import UIKit
import WMF
#if OSM
import Mapbox
#else
import MapKit
#endif
protocol ArticlePlaceViewDelegate: NSObjectProtocol {
func articlePlaceViewWasTapped(_ articlePlaceView: ArticlePlaceView)
}
class ArticlePlaceView: MapAnnotationView {
static let smallDotImage = #imageLiteral(resourceName: "places-dot-s... |
//
// denverrailUITests.swift
// denverrailUITests
//
// Created by Naomi Himley on 6/1/16.
// Copyright © 2016 Tack Mobile. All rights reserved.
//
import XCTest
class denverrailUITests: XCTestCase {
let app = XCUIApplication()
override func setUp() {
super.setUp()
continueAfterFailure =... |
//
// ViewController.swift
// SegmentedControlExample
//
// Created by Domenico Solazzo on 05/05/15.
// License MIT
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a ni... |
// RUN: %target-run-simple-swift(-Xfrontend -enable-experimental-concurrency %import-libdispatch -parse-as-library)
// REQUIRES: concurrency
// REQUIRES: libdispatch
// REQUIRES: executable_test
// UNSUPPORTED: use_os_stdlib
// rdar://78109470
// UNSUPPORTED: back_deployment_runtime
// https://bugs.swift.org/browse/... |
// REQUIRES: asan_runtime
// RUN: %empty-directory(%t)
// RUN: %target-build-swift %S/Inputs/ConcreteTypes.swift %S/Inputs/GenericTypes.swift %S/Inputs/Protocols.swift %S/Inputs/Extensions.swift %S/Inputs/Closures.swift -parse-as-library -emit-module -emit-library -module-name TypesToReflect -sanitize=address -o %t/%ta... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.