repo_name stringlengths 6 91 | path stringlengths 8 968 | copies stringclasses 202
values | size stringlengths 2 7 | content stringlengths 61 1.01M | license stringclasses 15
values | hash stringlengths 32 32 | line_mean float64 6 99.8 | line_max int64 12 1k | alpha_frac float64 0.3 0.91 | ratio float64 2 9.89 | autogenerated bool 1
class | config_or_test bool 2
classes | has_no_keywords bool 2
classes | has_few_assignments bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
FuckBoilerplate/RxCache | watchOS/Pods/RxSwift/RxSwift/DataStructures/Bag.swift | 12 | 7470 | //
// Bag.swift
// Rx
//
// Created by Krunoslav Zaher on 2/28/15.
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
import Foundation
import Swift
let arrayDictionaryMaxSize = 30
/**
Class that enables using memory allocations as a means to uniquely identify objects.
*/
class Identity {
// weird ... | mit | e97e8b50c9bc581f43e4f2839c508cdd | 21.229167 | 99 | 0.544383 | 4.246163 | false | false | false | false |
Q42/NoticeWindow | Pod/Classes/NoticeView.swift | 1 | 2780 | //
// NoticeView.swift
// Pods
//
// Created by Tim van Steenis on 09/12/15.
//
//
import Foundation
import UIKit
class NoticeView: UIView {
@IBOutlet weak var horizontalStackView: UIStackView!
@IBOutlet weak var leftImage: UIImageView!
@IBOutlet weak var rightImage: UIImageView!
@IBOutlet weak var left... | mit | ade02138ed007fd54ccc2b1ac695f3e3 | 26.524752 | 147 | 0.713309 | 5.063752 | false | false | false | false |
Brightify/ReactantUI | Sources/Tokenizer/Properties/AssignableProperty.swift | 1 | 3261 | //
// AssignablePropertyDescription.swift
// ReactantUI
//
// Created by Tadeas Kriz.
// Copyright © 2017 Brightify. All rights reserved.
//
import Foundation
#if canImport(UIKit)
import UIKit
#endif
/**
* Standard typed property obtained from an XML attribute.
*/
public struct AssignableProperty<T: AttributeS... | mit | d5cff34220c9fdac380e03cc3400d03f | 34.053763 | 124 | 0.654294 | 4.865672 | false | false | false | false |
mownier/pyrobase | Pyrobase/Pyrobase.swift | 1 | 2029 | //
// Pyrobase.swift
// Pyrobase
//
// Created by Mounir Ybanez on 01/05/2017.
// Copyright © 2017 Ner. All rights reserved.
//
public class Pyrobase {
internal var path: RequestPathProtocol
internal var request: RequestProtocol
public var baseURL: String {
return path.baseURL
}
... | mit | b32ea17f27966b0a373e97cf7eecb516 | 32.8 | 124 | 0.642505 | 4.38013 | false | false | false | false |
lukejmann/FBLA2017 | Pods/Instructions/Sources/Helpers/CoachMarkLayoutHelper.swift | 1 | 9860 | // CoachMarkLayoutHelper.swift
//
// Copyright (c) 2016 Frédéric Maquin <fred@ephread.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 limitat... | mit | 7fdccdfcd965ef43f7c5ba5fbd1a879f | 44.851163 | 311 | 0.638771 | 6.130597 | false | false | false | false |
keyeMyria/edx-app-ios | Source/OEXStyles+Swift.swift | 4 | 3515 | //
// OEXStyles+Swift.swift
// edX
//
// Created by Ehmad Zubair Chughtai on 25/05/2015.
// Copyright (c) 2015 edX. All rights reserved.
//
import Foundation
import UIKit
extension OEXStyles {
var navigationTitleTextStyle : OEXTextStyle {
return OEXTextStyle(weight: .SemiBold, size: .Base, color ... | apache-2.0 | edc461ffa186f25450b182ac5b367538 | 38.066667 | 136 | 0.676814 | 5.230655 | false | false | false | false |
relayr/apple-sdk | Sources/common/services/API/APIUsers.swift | 1 | 7530 | import ReactiveSwift
import Result
import Foundation
internal extension API {
/// User entity as represented on the relayr API platform.
struct User: JSONable {
let identifier: String
var email: String?
var nickname: String?
var name: (first: String?, last: String?)
var ... | mit | 0be95a152765dc0a5ccd308ef878da96 | 53.963504 | 193 | 0.684329 | 4.458259 | false | false | false | false |
dnosk/Explore | Example/Explore/ViewController.swift | 1 | 1164 | //
// ViewController.swift
// Explore
//
// Created by dnosk on 04/26/2017.
// Copyright (c) 2017 dnosk. All rights reserved.
//
import Explore
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var tableView: UITableView!
var appsDownloaded = [String]()
override func view... | mit | 5f0de78f81567cdd2699c4a3f8098caf | 23.25 | 100 | 0.646048 | 5.173333 | false | false | false | false |
bm842/TradingLibrary | Sources/OandaRestV1Instrument.swift | 2 | 9009 | /*
The MIT License (MIT)
Copyright (c) 2016 Bertrand Marlier
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, mer... | mit | 0ed0ff9ff97bd8abe6524c5b70220f67 | 37.5 | 133 | 0.487734 | 5.869055 | false | false | false | false |
pocketworks/Dollar.swift | Cent/Cent/Int.swift | 1 | 2807 | //
// Int.swift
// Cent
//
// Created by Ankur Patel on 6/30/14.
// Copyright (c) 2014 Encore Dev Labs LLC. All rights reserved.
//
import Foundation
extension Int {
/// Invoke a callback n times
///
/// :param callback The function to invoke that accepts the index
public func times(callback:... | mit | 9070a125d16521f2339d81c148398aef | 23.840708 | 82 | 0.530816 | 4.379095 | false | false | false | false |
natecook1000/swift | test/PlaygroundTransform/high_performance.swift | 7 | 1253 | // RUN: %empty-directory(%t)
// RUN: cp %s %t/main.swift
// RUN: %target-build-swift -Xfrontend -playground -Xfrontend -playground-high-performance -o %t/main %S/Inputs/PlaygroundsRuntime.swift %t/main.swift
// RUN: %target-codesign %t/main
// RUN: %target-run %t/main | %FileCheck %s
// RUN: %target-build-swift -Xfront... | apache-2.0 | d179622ada08036ee51d59e0127cbe28 | 28.139535 | 209 | 0.592179 | 2.962175 | false | false | false | false |
danfsd/FolioReaderKit | Example/Example/ViewController.swift | 1 | 1987 | //
// ViewController.swift
// Example
//
// Created by Heberti Almeida on 08/04/15.
// Copyright (c) 2015 Folio Reader. All rights reserved.
//
import UIKit
import FolioReaderKit
class ViewController: UIViewController {
@IBOutlet var bookOne: UIButton!
@IBOutlet var bookTwo: UIButton!
let epubSampleF... | bsd-3-clause | ce6ce0d71999c9a27aaba194bb77f96c | 31.57377 | 130 | 0.645194 | 4.485327 | false | true | false | false |
codercd/DPlayer | DPlayer/Model.swift | 1 | 1721 | //
// Model.swift
// DPlayer
//
// Created by LiChendi on 16/4/19.
// Copyright © 2016年 LiChendi. All rights reserved.
//
import UIKit
class Model: NSObject {
}
enum LiveBaseURL:String {
case rtmp = "rtmp://live.quanmin.tv/live/1456011"
case hls = "http://hls.quanmin.tv/live/1456011/playlist.m3u8"
c... | mit | 33dc39063638b30d5f30014ddc75bfcc | 20.475 | 77 | 0.525029 | 3.571726 | false | false | false | false |
ociata/OCIKeyboardAdjuster | OCIKeyboardAdjuster.swift | 1 | 7643 | //
// KeyboardAdjuster.swift
//
//
// Created by Hristo Todorov - Oci on 6/5/15.
// Copyright (c) 2015
//
import UIKit
class OCIKeyboardAdjuster: NSObject
{
static let sharedKeyboardAdjuster = OCIKeyboardAdjuster()
weak var focusedControl: UIView?
private override init() {
//this way ... | mit | 561c2b437bbbff08384fa7aeca0021c0 | 45.603659 | 209 | 0.568887 | 6.986289 | false | false | false | false |
RCacheaux/BitbucketKit | Carthage/Checkouts/Swinject/Sources/SwinjectStoryboard/Container+SwinjectStoryboard.swift | 1 | 2302 | //
// Container+SwinjectStoryboard.swift
// Swinject
//
// Created by Yoichi Tagaya on 11/28/15.
// Copyright © 2015 Swinject Contributors. All rights reserved.
//
#if os(iOS) || os(OSX) || os(tvOS)
extension Container {
/// Adds a registration of the specified view or window controller that is configured in a... | apache-2.0 | 9d7ea5cf5edf5bce1301df0b168b9915 | 49.021739 | 139 | 0.679704 | 4.773859 | false | false | false | false |
adamnemecek/SortedArray.swift | Cmdline/main.swift | 1 | 931 | //
// main.swift
// Cmdline
//
// Created by Adam Nemecek on 5/6/17.
//
//
import Foundation
import SortedArray
let s = SortedSet([5,2,1,2,3,6,7,8])
let a = [1,2,3,4,5,6]
let b = [1, 2, 2, 3, 3, 5, 6]
print(b)
//var u = UnionIterator(a: a, b: b) { $0 < $1 }
//print(s.contains(1))
//while let n = u.next() {
//... | mit | 74a3837179a3dd1ff29794093f81f149 | 17.254902 | 76 | 0.538131 | 2.690751 | false | false | false | false |
KBryan/SwiftFoundation | Darwin Support/NSUUID.swift | 1 | 1268 | //
// NSUUID.swift
// SwiftFoundation
//
// Created by Alsey Coleman Miller on 7/4/15.
// Copyright © 2015 PureSwift. All rights reserved.
//
import Foundation
public extension NSUUID {
convenience init(byteValue: uuid_t) {
var value = byteValue
let buffer = withUnsafeMu... | mit | 1023223f8088c42049b746835267a916 | 23.365385 | 134 | 0.561168 | 4.891892 | false | false | false | false |
EstebanVallejo/sdk-ios | MercadoPagoSDK/MercadoPagoSDK/MercadoPago.swift | 1 | 17199 |
//
// MercadoPago.swift
// MercadoPagoSDK
//
// Created by Matias Gualino on 28/12/14.
// Copyright (c) 2014 com.mercadopago. All rights reserved.
//
import Foundation
import UIKit
public class MercadoPago : NSObject {
public class var PUBLIC_KEY : String {
return "public_key"
}
public c... | mit | 03de915deb85beca28b7b6b05d95b922 | 45.736413 | 341 | 0.589603 | 5.089672 | false | false | false | false |
xmartlabs/XLSlidingContainer | Example/Example/ScrollViewController.swift | 1 | 1800 | //
// ScrollViewController.swift
//
// Copyright (c) 2017 Xmartlabs ( http://xmartlabs.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 | 76c16078fe4dec4f78599e3cf6f925aa | 35 | 80 | 0.729444 | 4.675325 | false | false | false | false |
abdullahselek/SwiftyNotifications | Sample/Sample/ViewController.swift | 1 | 2983 | //
// ViewController.swift
// Sample
//
// Created by Abdullah Selek on 03/04/2017.
// Copyright © 2017 Abdullah Selek. All rights reserved.
//
import UIKit
import SwiftyNotifications
class ViewController: UIViewController, SwiftyNotificationsDelegate {
private var notification: SwiftyNotifications!
priv... | mit | 4ba557ef5e2e6bd0df2cbc38a191927d | 27.951456 | 151 | 0.57277 | 5.881657 | false | false | false | false |
wireapp/wire-ios | Wire-iOS Tests/DeviceManagement/CoreDataFixture+MockUserClient.swift | 1 | 1530 | //
// 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 | a3410644d49cd1688a58e23709109c7c | 33.772727 | 126 | 0.711111 | 4.409222 | false | false | false | false |
novi/i2c-swift-example | Sources/I2CDeviceModule/SHT21.swift | 1 | 1397 | //
// SHT21.swift
// I2CDeviceModule
//
// Created by Yusuke Ito on 3/1/17.
// Copyright © 2017 Yusuke Ito. All rights reserved.
//
import Foundation
import I2C
public final class SHT21 {
public let address: UInt8
public let device: I2CDevice
public init(device: I2CDevice, address: UInt8 = 0x40) {
... | mit | 6647d0ed733129788e5abfb9c1537916 | 23.491228 | 98 | 0.606017 | 3.607235 | false | false | false | false |
HasanEdain/NPCColorPicker | NPCColorPicker/NPCPaleteUtility.swift | 1 | 4578 | //
// NPCPaleteUtility.swift
// NPCColorPicker
//
// Created by Hasan D Edain and Andrew Bush on 12/6/15.
// Copyright © 2015-2017 NPC Unlimited. All rights reserved.
//
import UIKit
open class NPCPaleteUtility {
open static func twelveColorWheel()->[UIColor] {
let colorArray =
[NPCColorUtili... | mit | a3df61595c574825edbf2506c1150447 | 36.211382 | 110 | 0.629233 | 4.884739 | false | false | false | false |
ByteriX/BxInputController | BxInputController/Sources/Rows/Boolean/View/BxInputCheckRowBinder.swift | 1 | 1126 | /**
* @file BxInputCheckRowBinder.swift
* @namespace BxInputController
*
* @details Binder for check box row subclasses
* @date 17.03.2017
* @author Sergey Balalaev
*
* @version last in https://github.com/ByteriX/BxInputController.git
* @copyright The MIT License (MIT) https://opensource.org/licenses/MIT
* C... | mit | 4524d134178bdc3d45cd42285ff23c16 | 27.871795 | 102 | 0.674067 | 4.217228 | false | false | false | false |
LunaGao/cnblogs-Mac-Swift | CNBlogsForMac/WebApi/BaseWebApi.swift | 1 | 1904 | //
// BaseWebApi.swift
// CNBlogsForMac
//
// Created by Luna Gao on 15/11/16.
// Copyright © 2015年 gao.luna.com. All rights reserved.
//
import Foundation
class BaseWebApi : NSObject {
func basicRequest(callback:(String?)->Void){
let basicAuth = "Basic 这个值是根据ClientId和ClientSercret计算得来,这里隐藏"
... | mit | f60ff12f936f92dc73c4c8c7b585015c | 33.735849 | 142 | 0.555676 | 4.672589 | false | false | false | false |
q231950/appwatch | AppWatch/ViewControllers/TimeTableViewController.swift | 1 | 1268 | //
// TimeTableViewController.swift
// AppWatch
//
// Created by Martin Kim Dung-Pham on 25.08.15.
// Copyright © 2015 Martin Kim Dung-Pham. All rights reserved.
//
import AppKit
class TimeTableViewController: NSViewController {
@IBOutlet weak var collectionView: NSCollectionView!
override func ... | mit | f58453514cd32b3c8d5c19ddc6cdce77 | 28.465116 | 145 | 0.648777 | 4.727612 | false | false | false | false |
praca-japao/156 | PMC156Inteligente/MyProfileTableViewController.swift | 1 | 3269 | //
// MyProfileTableViewController.swift
// PMC156Inteligente
//
// Created by Giovanni Pietrangelo on 11/29/15.
// Copyright © 2015 Sigma Apps. All rights reserved.
//
import UIKit
class MyProfileTableViewController: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
... | gpl-2.0 | a4c6d543bbda53199ba57cdbef76256a | 33.4 | 157 | 0.690024 | 5.576792 | false | false | false | false |
tdscientist/ShelfView-iOS | Example/Pods/Kingfisher/Sources/General/ImageSource/ImageDataProvider.swift | 1 | 5571 | //
// ImageDataProvider.swift
// Kingfisher
//
// Created by onevcat on 2018/11/13.
//
// Copyright (c) 2018 Wei Wang <onevcat@gmail.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 S... | mit | 968c0e7519d64e9a12ef46d66b5dff30 | 37.42069 | 115 | 0.680129 | 4.496368 | false | false | false | false |
therealbnut/swift | stdlib/public/SDK/Foundation/NSString.swift | 9 | 4420 | //===----------------------------------------------------------------------===//
//
// 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 | 2d7638467eddfa465fb0cb69a0bba20e | 32.740458 | 97 | 0.659955 | 4.851811 | false | false | false | false |
Fenrikur/ef-app_ios | EurofurenceTests/Presenter Tests/Dealer Detail/Presenter Tests/WhenBindingAboutTheArtistComponent_DealerDetailPresenterShould.swift | 1 | 1348 | @testable import Eurofurence
import EurofurenceModel
import XCTest
class WhenBindingAboutTheArtistComponent_DealerDetailPresenterShould: XCTestCase {
func testBindTheArtistDescriptionOntoTheComponent() {
let aboutTheArtistViewModel = DealerDetailAboutTheArtistViewModel.random
let viewModel = FakeD... | mit | e76b55b76698623a595eea851280ea45 | 45.482759 | 130 | 0.793027 | 6.912821 | false | true | false | false |
grandiere/box | box/Metal/Texture/MetalTexture.swift | 1 | 1392 | import UIKit
import MetalKit
class MetalTexture
{
let totalFrames:Int
var currentFrame:Int
private var frameTick:Int
private let frames:[MTLTexture]
private let ticksPerFrame:Int
init(
ticksPerFrame:Int,
images:[UIImage],
textureLoader:MTKTextureLoader)
{
... | mit | cddadf31969df21e35d795e9584c88dd | 17.810811 | 77 | 0.475575 | 5.8 | false | false | false | false |
serieuxchat/SwiftySRP | SwiftySRP/SRPData+BigIntType.swift | 1 | 9367 | //
// SRPData+BigIntType.swift
// SwiftySRP
//
// Created by Sergey A. Novitsky on 20/03/2017.
// Copyright © 2017 Flock of Files. 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 dea... | mit | 0ffc35fd5a580d9ccd033be597b69b8b | 33.307692 | 216 | 0.623425 | 5.008556 | false | false | false | false |
tokyovigilante/CesiumKit | CesiumKit/Core/EllipsoidGeodesic.swift | 1 | 14805 | //
// EllipsoidGeodesic.swift
// CesiumKit
//
// Created by Ryan Walklin on 2/11/2015.
// Copyright © 2015 Test Toast. All rights reserved.
//
import Foundation
/**
* Initializes a geodesic on the ellipsoid connecting the two provided planetodetic points.
*
* @alias EllipsoidGeodesic
* @constructor
*
* @par... | apache-2.0 | b0b90ae8d322df29746dac6160cefefb | 37.855643 | 208 | 0.596663 | 4.13058 | false | false | false | false |
3drobotics/SwiftIO | Sources/UDPChannel.swift | 1 | 9242 | //
// UDPMavlinkReceiver.swift
// SwiftIO
//
// Created by Jonathan Wight on 4/22/15.
//
// Copyright (c) 2014, Jonathan Wight
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are met:
//
// * R... | mit | 620890acea87fea54837254886f27626 | 31.42807 | 154 | 0.59143 | 4.651233 | false | false | false | false |
jisudong/study | MyPlayground.playground/Pages/可选链式调用.xcplaygroundpage/Contents.swift | 1 | 1812 | //: [Previous](@previous)
import Foundation
class Person {
var residence: Residence?
}
class Residence {
var rooms = [Room]()
var address: Address?
var numberOfRooms: Int {
return rooms.count
}
subscript(i: Int) -> Room{
get {
return rooms[i]
}
set ... | mit | 313678c8e211e0d19402b9f62c2d931c | 21.625 | 87 | 0.596133 | 4.049217 | false | false | false | false |
STShenZhaoliang/Swift2Guide | Swift2Guide/Swift100Tips/Swift100Tips/ErrorController.swift | 1 | 3869 | //
// ErrorController.swift
// Swift100Tips
//
// Created by 沈兆良 on 16/5/30.
// Copyright © 2016年 ST. All rights reserved.
//
import UIKit
class ErrorController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
let path = NSBundle.mainBundle().pathForResource("", ofType: ... | mit | 5ae8aec70819aa3815fe0d599929e09c | 22.068702 | 279 | 0.592323 | 3.610514 | false | false | false | false |
AaronMT/firefox-ios | Client/Frontend/AuthenticationManager/PagingPasscodeViewController.swift | 9 | 3110 | /* 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
private let PaneSwipeDuration: TimeInterval = 0.3
/// Base class for implementing a Passcode co... | mpl-2.0 | 4507c007c889d6b3e1dec35f7693579d | 33.94382 | 117 | 0.667524 | 4.960128 | false | false | false | false |
djq993452611/YiYuDaoJia_Swift | YiYuDaoJia/YiYuDaoJia/Classes/Main/Controller/BaseViewController.swift | 1 | 2249 | //
// BaseViewController.swift
// YiYuDaoJia
//
// Created by 蓝海天网Djq on 2017/4/25.
// Copyright © 2017年 蓝海天网Djq. All rights reserved.
//
import UIKit
class BaseViewController: UIViewController {
// MARK: 定义属性
var contentView : UIView?
var baseVM : BaseViewModel!
// MARK: 懒加载属性
filep... | mit | f5150ca70d079a567cca399132d57cee | 20.353535 | 169 | 0.613529 | 4.848624 | false | false | false | false |
piv199/LocalisysChat | LocalisysChat/Sources/Modules/Common/Chat/Views/Inputs/AutoTextView.swift | 1 | 5792 | //
// ALTextView.swift
// ALTextInputBar
//
// Created by Alex Littlejohn on 2015/04/24.
// Copyright (c) 2015 zero. All rights reserved.
//
import UIKit
public protocol AutoTextViewDelegate: UITextViewDelegate {
/**
Notifies the receiver of a change to the contentSize of the textView
The receiver is re... | unlicense | 774bc41b3204ccedfb4a8d3907e0bfce | 28.105528 | 126 | 0.710117 | 5.00605 | false | false | false | false |
te-th/xID3 | Tests/xID3Tests/WithFilesTests.swift | 1 | 1814 | /*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this f... | apache-2.0 | 600176efee8ee7d638c3171d6a45b298 | 36.791667 | 109 | 0.68688 | 4.308789 | false | true | false | false |
MarvinNazari/ICSPullToRefresh.Swift | ICSPullToRefresh/NVActivityIndicatorAnimationBallPulseRise.swift | 1 | 3984 | //
// NVActivityIndicatorAnimationBallPulseRise.swift
// NVActivityIndicatorViewDemo
//
// Created by Nguyen Vinh on 7/24/15.
// Copyright (c) 2015 Nguyen Vinh. All rights reserved.
//
import UIKit
class NVActivityIndicatorAnimationBallPulseRise: NVActivityIndicatorAnimationDelegate {
func setUpAnimation... | mit | 0799c7876c929d3978b3c612e614659f | 40.936842 | 139 | 0.646586 | 5.304927 | false | false | false | false |
neotron/SwiftBot-Discord | DiscordAPI/Source/API/Utility/URLEndpoints.swift | 1 | 727 | //
// Created by David Hedbor on 2/12/16.
// Copyright (c) 2016 NeoTron. All rights reserved.
//
import Foundation
import Alamofire
enum URLEndpoint: String {
case Login = "auth/login",
Logout = "auth/logout",
Gateway = "gateway",
Channel = "channels",
User = "users"
}
class ... | gpl-3.0 | 74117925a32497bf72326f993237c1e7 | 24.068966 | 72 | 0.609354 | 3.972678 | false | false | false | false |
syoutsey/swift-corelibs-foundation | Foundation/NSScanner.swift | 2 | 23943 | // This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2015 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See http://swift.org/LICENSE.txt for license information
// See http://swift.org/CONTRIBUTORS.txt for the l... | apache-2.0 | 601fa2a2f22362f39712a962204ac363 | 35.949074 | 239 | 0.586852 | 5.043817 | false | false | false | false |
MrAlek/PagedArray | Sources/PagedArray.swift | 1 | 6848 | //
// PagedArray.swift
//
// Created by Alek Åström on 2015-02-14.
// Copyright (c) 2015 Alek Åström. (https://github.com/MrAlek)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without... | mit | 584c1b4f4e242adc468da296e9b5a0b8 | 31.436019 | 100 | 0.631064 | 4.819718 | false | false | false | false |
danielsaidi/Vandelay | VandelayDemo/ViewController.swift | 1 | 2514 | //
// ViewController.swift
// VandelayExample
//
// Created by Daniel Saidi on 2018-09-12.
// Copyright © 2018 Daniel Saidi. All rights reserved.
//
import UIKit
import Vandelay
class ViewController: UITableViewController {
// MARK: - View lifecycle
override func viewWillAppear(_ animated: ... | mit | c87c0c9c8992a19f399bb2545441fc3e | 27.556818 | 92 | 0.664942 | 4.898635 | false | false | false | false |
xuzhuoyi/EmbControl | embcontrol/yudpsocket.swift | 1 | 6170 | /*
Copyright (c) <2014>, skysent
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 following discla... | gpl-3.0 | 2a35a9dd327611987e78583c8ed242cf | 38.551282 | 158 | 0.626418 | 3.929936 | false | false | false | false |
haldun/MapleBacon | MapleBaconExample/MapleBaconExample/ImageManagerExample.swift | 2 | 2419 | //
// Copyright (c) 2015 Zalando SE. All rights reserved.
//
import UIKit
import MapleBacon
class ImageCell: UICollectionViewCell {
@IBOutlet weak var imageView: UIImageView?
override func prepareForReuse() {
self.imageView?.image = nil
}
}
class ImageExampleViewController: UICollectionViewCont... | mit | 7a139de23ed3f7b4281ae9f387900dfd | 30.415584 | 139 | 0.640761 | 5.135881 | false | false | false | false |
spitzgoby/Tunits | Pod/Classes/TimeUnit+DateTraversal.swift | 1 | 22034 | //
// TimeUnit+DateTraversal.swift
// Pods
//
// Created by Tom on 12/27/15.
//
// 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 | 14728e7a601ab64afa74eebe989fc7be | 31.546529 | 105 | 0.628529 | 4.630937 | false | false | false | false |
iosdevelopershq/code-challenges | CodeChallenge/Challenges/LetterCombinationsOfPhoneNumber/LetterCombinationsOfPhoneNumberChallenge.swift | 1 | 1597 | //
// LetterCombinationsOfPhoneNumberChallenge.swift
// CodeChallenge
//
// Created by Ryan Arana on 11/1/15.
// Copyright © 2015 iosdevelopers. All rights reserved.
//
import Foundation
/**
https://leetcode.com/problems/letter-combinations-of-a-phone-number/
Letter Combinations of a Phone Number
Given a digit s... | mit | 53dd8591ccbfaf642bc8887cf4aea09f | 32.25 | 121 | 0.696742 | 4.050761 | false | false | false | false |
milseman/swift | stdlib/public/core/Reverse.swift | 10 | 19479 | //===--- Reverse.swift - Sequence and collection reversal -----------------===//
//
// 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 | b4e6a183684f3c031449ead6006aea91 | 31.300166 | 93 | 0.6692 | 4.355322 | false | false | false | false |
skedgo/tripkit-ios | Sources/TripKit/model/API/LocationAPIModel.swift | 1 | 12686 | //
// TKHelperTypes.swift
// TripKit
//
// Created by Adrian Schoenig on 28/10/16.
// Copyright © 2016 SkedGo. All rights reserved.
//
import Foundation
import CoreLocation
protocol RealTimeUpdatable {
var hasRealTime: Bool { get }
}
extension TKAPI {
public struct BikePodInfo: Codable, Hashable, RealTime... | apache-2.0 | 3b8f98a3bfdaec6d16985a3b6eb6ec53 | 30.633416 | 109 | 0.670162 | 4.733209 | false | false | false | false |
franklinsch/usagi | iOS/usagi-iOS/usagi-iOS/AddTaskTableViewController.swift | 1 | 4095 | //
// AddTaskTableViewController.swift
// usagi-iOS
//
// Created by Franklin Schrans on 31/01/2016.
// Copyright © 2016 Franklin Schrans. All rights reserved.
//
import UIKit
class AddTaskTableViewController: UITableViewController {
var projectName: String?
var tasks = [Project]()
override func... | mit | 84715c10776f2ef80808fe9e8338bf01 | 35.553571 | 249 | 0.685149 | 5.662517 | false | false | false | false |
cooliean/CLLKit | XLForm/Examples/Swift/SwiftExample/PredicateExamples/PredicateFormViewController.swift | 14 | 5028 | //
// PredicateFormViewController.swift
// XLForm ( https://github.com/xmartlabs/XLForm )
//
// Copyright (c) 2014-2015 Xmartlabs ( http://xmartlabs.com )
//
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to... | mit | cfb41015a96d1da59839b5dbf1699315 | 40.553719 | 262 | 0.66965 | 4.939096 | false | false | false | false |
jmgc/swift | test/Driver/Dependencies/driver-show-incremental-mutual-fine.swift | 1 | 1665 | /// main <==> other
// RUN: %empty-directory(%t)
// RUN: cp -r %S/Inputs/mutual-with-swiftdeps-fine/* %t
// RUN: touch -t 201401240005 %t/*
// RUN: cd %t && %swiftc_driver -c -driver-use-frontend-path "%{python.unquoted};%S/Inputs/update-dependencies.py;%swift-dependency-tool" -output-file-map %t/output.json -increme... | apache-2.0 | f2fbfce1516d6a05a99ee7d0d0579841 | 86.631579 | 341 | 0.72973 | 3.27112 | false | false | true | false |
quadro5/swift3_L | Swift_api.playground/Pages/Pass Reference Value.xcplaygroundpage/Contents.swift | 1 | 1261 | //: [Previous](@previous)
import Foundation
var str = "Hello, playground"
//: [Next](@next)
func test() {
var num = 1
func passRef(_ input: inout Int) {
print("input: \(input)")
print("num: \(num)")
input = 2
print("input: \(input)")
print("num: \(num)... | unlicense | 07c3794ae661c5649404afe912a077a6 | 16.040541 | 40 | 0.485329 | 3.572238 | false | true | false | false |
yangyueguang/MyCocoaPods | Extension/Collection+Extension.swift | 1 | 6247 | //
// Collection+Extension.swift
// MyCocoaPods
//
// Created by Chao Xue 薛超 on 2018/12/12.
// Copyright © 2018 Super. All rights reserved.
//
import Foundation
public extension Array{
/// 返回对象数组对应的json数组 前提element一定是AnyObject类型
func jsonArray() -> [[String: Any]] {
var jsonObjects: [[String: Any]... | mit | 4ef3c420857e3fdbeb36ed68776aaf82 | 28.048077 | 126 | 0.542039 | 4.228132 | false | false | false | false |
SummerHF/SinaPractice | sina/Pods/LTMorphingLabel/LTMorphingLabel/LTMorphingLabel+Anvil.swift | 5 | 11271 | //
// LTMorphingLabel+Anvil.swift
// https://github.com/lexrus/LTMorphingLabel
//
// The MIT License (MIT)
// Copyright (c) 2016 Lex Tang, http://lexrus.com
//
// Permission is hereby granted, free of charge, to any person obtaining a
// copy of this software and associated documentation files
// (the “Software”... | mit | 6da6d37573c58c59aebbe0ab8dbb82d3 | 40.714815 | 84 | 0.464974 | 5.401918 | false | false | false | false |
sschiau/swift | test/Sema/enum_raw_representable.swift | 2 | 6816 | // RUN: %target-typecheck-verify-swift
enum Foo : Int {
case a, b, c
}
var raw1: Int = Foo.a.rawValue
var raw2: Foo.RawValue = raw1
var cooked1: Foo? = Foo(rawValue: 0)
var cooked2: Foo? = Foo(rawValue: 22)
enum Bar : Double {
case a, b, c
}
func localEnum() -> Int {
enum LocalEnum : Int {
case a, b, c
... | apache-2.0 | cdf8ff186ef94f857072cf6b86759404 | 34.5 | 216 | 0.675763 | 3.421687 | false | false | false | false |
GrandCentralBoard/GrandCentralBoard | Pods/Operations/Sources/Features/Shared/Reachability.swift | 2 | 10679 | //
// Reachability.swift
// Operations
//
// Created by Daniel Thorpe on 24/07/2015.
// Copyright (c) 2015 Daniel Thorpe. All rights reserved.
//
import Foundation
import SystemConfiguration
// swiftlint:disable variable_name
public struct Reachability {
/// Errors which can be thrown or returned.
publi... | gpl-3.0 | e21bd7db78b912509c04a5f2bd5aee9b | 28.337912 | 151 | 0.664763 | 5.5389 | false | false | false | false |
sggtgb/Sea-Cow | seaCow/ReadingList.swift | 1 | 1925 | //
// ReadingList.swift
// seaCow
//
// Created by Scott Gavin on 5/7/15.
// Copyright (c) 2015 Scott G Gavin. All rights reserved.
//
import UIKit
import Foundation
class ReadingList: NSObject , NSCoding {
var articles: [ArticleData]! = []
override init() {
println("Initalizing Reading List")
... | mpl-2.0 | baad0b48f5641fd2c2fb75122d445ad0 | 25.736111 | 100 | 0.593766 | 4.861111 | false | false | false | false |
huonw/swift | validation-test/compiler_crashers_fixed/00875-getselftypeforcontainer.swift | 65 | 874 | // 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 | 8565a3e8527a2985d4fa20d282a92405 | 14.333333 | 79 | 0.617849 | 2.748428 | false | false | false | false |
vector-im/riot-ios | Riot/Modules/KeyBackup/Recover/Passphrase/KeyBackupRecoverFromPassphraseViewController.swift | 2 | 9609 | /*
Copyright 2019 New Vector Ltd
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, soft... | apache-2.0 | b66c93cfdacf0e0f1b3fbda6a2139bcf | 40.418103 | 211 | 0.706837 | 6.215395 | false | false | false | false |
eofster/Telephone | ReceiptValidation/DeviceGUID.swift | 1 | 1901 | //
// DeviceGUID.swift
// Telephone
//
// Copyright © 2008-2016 Alexey Kuznetsov
// Copyright © 2016-2021 64 Characters
//
// Telephone 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... | gpl-3.0 | 01d5a0bb39909d1ad09fa26b871e3549 | 30.131148 | 150 | 0.681411 | 4.006329 | false | false | false | false |
simonnarang/Fandom | Desktop/Fandom-IOS-master/Fandomm/ShareToFandomTableViewController.swift | 1 | 8471 | //
// ShareToFandomTableViewController.swift
// Fandomm
//
// Created by Simon Narang on 1/9/16.
// Copyright © 2016 Simon Narang. All rights reserved.
//
import UIKit
class ShareToFandomTableViewController: UITableViewController {
@IBOutlet weak var labell: UILabel!
var counter = Int()
let redisClien... | unlicense | 16ffd1e0f5d047ddd0fa1e3034f5fe06 | 43.303665 | 259 | 0.60813 | 5.417414 | false | false | false | false |
rayho/CodePathTwitter | CodePathTwitter/DetailController.swift | 1 | 7136 | //
// DetailController.swift
// CodePathTwitter
//
// Created by Ray Ho on 9/29/14.
// Copyright (c) 2014 Prime Rib Software. All rights reserved.
//
import UIKit
class DetailController: UIViewController, TweetActionButtonsDelegate {
var tweet: Tweet!
var avatarView: UIImageView!
var tweetTextView: UI... | mit | db0e6d0041a357b2ce110a5185496515 | 45.640523 | 359 | 0.705437 | 5.485012 | false | false | false | false |
mattiasjahnke/arduino-projects | matrix-painter/iOS/PixelDrawer/Carthage/Checkouts/flow/Flow/Delegate.swift | 1 | 1951 | //
// Delegate.swift
// Flow
//
// Created by Måns Bernhardt on 2017-01-16.
// Copyright © 2017 iZettle. All rights reserved.
//
import Foundation
/// Helper to manage the life time of a delegate `(Arg) -> Ret`.
public final class Delegate<Arg, Ret> {
private var callbackAndDisposable: (callback: (Arg) -> Re... | mit | 11c4637167b55179f2a593beb5b41169 | 34.436364 | 117 | 0.633145 | 4.340757 | false | false | false | false |
cactis/SwiftEasyKit | Source/Classes/Scrollable2ViewController.swift | 1 | 2443 | //
// Scrollable2ViewController.swift
import UIKit
open class Scrollable2ViewController: DefaultViewController {
public var contentView = UIScrollView()
override open func viewDidLoad() {
super.viewDidLoad()
}
override open func layoutUI() {
super.layoutUI()
contentView = view.addScrollView()
... | mit | 44064170ed73972a32760f52f0b43c96 | 29.924051 | 138 | 0.714695 | 4.945344 | false | false | false | false |
chatappcodepath/ChatAppSwift | LZChat/SignInViewController.swift | 1 | 3116 | //
//
// License
// Copyright (c) 2017 chatappcodepath
// Released under an MIT license: http://opensource.org/licenses/MIT
//
import UIKit
import Firebase
@objc(SignInViewController)
class SignInViewController: UIViewController, GIDSignInUIDelegate {
@IBOutlet weak var emailField: UITextField!
@IBOutlet wea... | mit | 722e8ee38a32ee1a1a370c2a3be72087 | 30.474747 | 94 | 0.660141 | 4.678679 | false | false | false | false |
Keenan144/SpaceKase | SpaceKase/GameScene.swift | 1 | 9887 | //
// GameScene.swift
// SpaceKase
//
// Created by Keenan Sturtevant on 5/29/16.
// Copyright (c) 2016 Keenan Sturtevant. All rights reserved.
//
import SpriteKit
class GameScene: SKScene, SKPhysicsContactDelegate {
let shipCategory: UInt32 = 0x1 << 1
let rockCategory: UInt32 = 0x1 << 2
let boun... | mit | 1ee1da34752c2f13dc23fc9a751cdb62 | 30.790997 | 179 | 0.585213 | 4.926258 | false | false | false | false |
eurofurence/ef-app_ios | Packages/EurofurenceComponents/Tests/ScheduleComponentTests/Presenter Tests/Share Command/SchedulePresenterShareCommandTests.swift | 1 | 1207 | import EurofurenceModel
import ScheduleComponent
import XCTest
import XCTScheduleComponent
class SchedulePresenterShareCommandTests: XCTestCase {
func testShareCommand() throws {
let eventViewModel = StubScheduleEventViewModel.random
let eventGroupViewModel = ScheduleEventGroupViewModel(title: .ra... | mit | c0edd12233b622635a9b7bc5da39605a | 39.233333 | 111 | 0.722452 | 5.587963 | false | true | false | false |
Yalantis/EatFit | EatFit/Vendors/YALPageController/YALPageController.swift | 1 | 5547 | //
// YALPageController.swift
// EatFit
//
// Created by Dmitriy Demchenko on 7/12/16.
// Copyright © 2016 aleksey chernish. All rights reserved.
//
import UIKit
fileprivate func < <T : Comparable>(lhs: T?, rhs: T?) -> Bool {
switch (lhs, rhs) {
case let (l?, r?):
return l < r
case (nil, _?):
return ... | mit | 4c7206dac071d93b369f928a97b5f128 | 29.472527 | 190 | 0.61053 | 6.231461 | false | false | false | false |
ted005/Qiu_Suo | Qiu Suo/Qiu Suo/TWNodeSearchTableViewController.swift | 2 | 5132 | //
// TWNodeSearchTableViewController.swift
// V2EX Explorer
//
// Created by Robbie on 15/8/23.
// Copyright (c) 2015年 Ted Wei. All rights reserved.
//
import UIKit
import Alamofire
import SwiftyJSON
class TWNodeSearchTableViewController: UITableViewController, UISearchResultsUpdating, UISearchBarDelegate{
... | gpl-2.0 | a13ae1d1946ca60b77ee6137ad9b24c2 | 35.642857 | 156 | 0.635478 | 5.883028 | false | false | false | false |
RocketChat/Rocket.Chat.iOS | Rocket.ChatTests/Models/SubscriptionQueriesSpec.swift | 1 | 2506 | //
// SubscriptionQueriesSpec.swift
// Rocket.ChatTests
//
// Created by Rafael Kellermann Streit on 23/04/18.
// Copyright © 2018 Rocket.Chat. All rights reserved.
//
import XCTest
import RealmSwift
@testable import Rocket_Chat
class SubscriptionManagerQueriesSpec: XCTestCase {
override func tearDown() {
... | mit | 642fc4c87e7f2c7b2b3bf6b16a607b6d | 26.527473 | 102 | 0.612375 | 4.027331 | false | true | false | false |
MaartenBrijker/project | project/External/AudioKit-master/AudioKit/iOS/AudioKit/AudioKit.playground/Pages/Moog Ladder Filter.xcplaygroundpage/Contents.swift | 2 | 2635 | //: [TOC](Table%20Of%20Contents) | [Previous](@previous) | [Next](@next)
//:
//: ---
//:
//: ## Moog Ladder Filter
//: ### One of the coolest filters available in AudioKit is the Moog Ladder. It's based off of Robert Moog's iconic ladder filter, which was the first implementation of a voltage - controlled filter used i... | apache-2.0 | 4c1b077d2b41455a58f54936a60b2028 | 37.75 | 612 | 0.712334 | 4.398998 | false | false | false | false |
hevertonrodrigues/HRSideBar | HRSideBar/HRSideBarView.swift | 1 | 1079 | //
// HRSideBarView.swift
// HRSideBar
//
// Created by Heverton Rodrigues on 23/09/14.
// Copyright (c) 2014 Heverton Rodrigues. All rights reserved.
//
import Foundation
import UIKit
class HRSideBarView :UIView
{
private var width :Double = Double()
private var height :Double = Double()
overrid... | mit | 7d54d65ad2346aeb3da7e0145c950b1a | 21.5 | 108 | 0.584801 | 3.785965 | false | false | false | false |
apple/swift | test/refactoring/ConvertAsync/convert_params_single.swift | 7 | 17585 | // RUN: %empty-directory(%t)
// REQUIRES: concurrency
func withError() async throws -> String { "" }
func withError(_ completion: @escaping (String?, Error?) -> Void) { }
func notOptional() async throws -> String { "" }
func notOptional(_ completion: @escaping (String, Error?) -> Void) { }
func errorOnly() async th... | apache-2.0 | 4cd61c095263a35fa49abd9730e1997d | 31.869159 | 164 | 0.610634 | 3.466391 | false | false | false | false |
apple/swift | test/Parse/operator_decl.swift | 4 | 5205 | // RUN: %target-typecheck-verify-swift
prefix operator +++ {} // expected-error {{operator should no longer be declared with body}} {{20-23=}}
postfix operator +++ {} // expected-error {{operator should no longer be declared with body}} {{21-24=}}
infix operator +++ {} // expected-error {{operator should no longer be ... | apache-2.0 | ba79c06fad8cedb3a375535e6bb13665 | 43.470085 | 159 | 0.708437 | 4.278783 | false | false | false | false |
anasmeister/nRF-Coventry-University | nRF Toolbox/MainViewController/NORMainViewController.swift | 1 | 3369 | //
// NORMainViewController.swift
// nRF Toolbox
//
// Created by Mostafa Berg on 27/04/16.
// Copyright © 2016 Nordic Semiconductor. All rights reserved.
// Edited by Anastasios Panagoulias on 11/01/07
import UIKit
class NORMainViewController: UIViewController, UICollectionViewDataSource, UIAlertViewDelegate {
... | bsd-3-clause | f9659390bb63536dfe4b58e018f1e1ad | 43.315789 | 766 | 0.703979 | 5.03438 | false | false | false | false |
brentdax/swift | test/Driver/multi-threaded.swift | 1 | 4722 | // RUN: %empty-directory(%t)
// RUN: %target-swiftc_driver -driver-print-jobs -module-name=ThisModule -wmo -num-threads 4 %S/Inputs/main.swift %s -emit-module -o test.swiftmodule | %FileCheck -check-prefix=MODULE %s
// RUN: echo "{\"%s\": {\"assembly\": \"/build/multi-threaded.s\"}, \"%S/Inputs/main.swift\": {\"assembl... | apache-2.0 | 718dadc81a2f4dd600d8848ec782b193 | 50.89011 | 202 | 0.645489 | 3 | false | false | false | false |
DaiYue/HAMLeetcodeSwiftSolutions | solutions/31_Next_Permutation.playground/Contents.swift | 1 | 1792 | // #31 Next Permutation https://leetcode.com/problems/next-permutation/
// 代码写起来很简单,数学推导稍微多一些。方法如下:
// 从右往左找第一个比右边小的数字(如果找不到,逆转整个数组即可),其 index 为 leftNumIndex。再找它右边比它大的数字(一定存在)里最小的,由于右边是降序,从右往左找的第一个即是,index 为 rightNumIndex。swap 两个 index 的 num。
// leftNumIndex 左边是不变的,下面看右边。右边本来是降序,能保证 swap 过后也是(不严格的)降序。换成升序,只需逆转这部分。
// 时... | mit | d6b00b5ce992a767456af9f8b39306f4 | 30.630435 | 142 | 0.560523 | 3.590123 | false | false | false | false |
midoks/Swift-Learning | GitHubStar/GitHubStar/GitHubStar/Vendor/MDDropDownList/MDDropDownList.swift | 1 | 7663 | //
//
// Created by midoks on 15/12/30.
// Copyright © 2015年 midoks. All rights reserved.
//
import UIKit
class MDDropDownBackView:UIView {
var _backView:UIView?
override init(frame: CGRect) {
super.init(frame: frame)
self.backgroundColor = UIColor.clear
/... | apache-2.0 | 647c7b6177578bcf52d4dfe4b86b7f87 | 31.299145 | 176 | 0.581106 | 4.306553 | false | false | false | false |
cdmx/MiniMancera | miniMancera/View/Option/TamalesOaxaquenos/Physic/VOptionTamalesOaxaquenosPhysicFinish.swift | 1 | 1597 | import SpriteKit
class VOptionTamalesOaxaquenosPhysicFinish:ViewGameNode<MOptionTamalesOaxaquenos>
{
private let positionX:CGFloat
private let height:CGFloat
private let width_2:CGFloat
private let height_2:CGFloat
private let kWidth:CGFloat = 250
override init(controller:ControllerGame<MO... | mit | 57a21df79db764d85f11c424d9ac330a | 28.574074 | 85 | 0.649343 | 5.151613 | false | false | false | false |
lieonCX/Live | Live/View/Home/Room/CollectionLiveTagView.swift | 1 | 2317 | //
// CollectionLiveTagView.swift
// Live
//
// Created by fanfans on 2017/7/4.
// Copyright © 2017年 ChengDuHuanLeHui. All rights reserved.
//
import UIKit
class CollectionLiveTagView: UIView {
fileprivate lazy var bgView: UIView = {
let bgView = UIView()
self.backgroundColor = UIColor.black .... | mit | b8655e7ba33cd7ea6ea2099cde6dc46e | 30.108108 | 80 | 0.59861 | 4.426923 | false | false | false | false |
ddddxxx/LyricsX | LyricsX/Controller/MenuBarLyricsController.swift | 2 | 5172 | //
// MenuBarLyrics.swift
// LyricsX - https://github.com/ddddxxx/LyricsX
//
// 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 https://mozilla.org/MPL/2.0/.
//
import Cocoa
import CXExtension... | mpl-2.0 | c55877d95dbe4d93778d2455511ff0b6 | 30.730061 | 103 | 0.615429 | 4.973077 | false | false | false | false |
luckymore0520/GreenTea | Loyalty/Cards/Model/Card.swift | 1 | 3017 | //
// Card.swift
// Loyalty
//
// Created by WangKun on 16/4/29.
// Copyright © 2016年 WangKun. All rights reserved.
//
import UIKit
import AVOSCloud
class Card: AVObject,AVSubclassing {
@NSManaged var activity:Activity
@NSManaged var ownerId:String
@NSManaged var currentCount:Int
func getFull... | mit | d6998b388be2674614525d77b6319126 | 29.561224 | 107 | 0.566132 | 4.965174 | false | false | false | false |
Rapid-SDK/ios | Examples/RapiDO - ToDo list/RapiDO iOS/ListViewController.swift | 1 | 9786 | //
// ListViewController.swift
// ExampleApp
//
// Created by Jan on 05/05/2017.
// Copyright © 2017 Rapid. All rights reserved.
//
import UIKit
import Rapid
class ListViewController: UIViewController {
var searchedTerm = ""
var searchTimer: Timer?
@IBOutlet weak var tableView: UITableView!
... | mit | b337f26192b1a8ab960eb130b1e98cef | 34.711679 | 142 | 0.646602 | 5.715537 | false | false | false | false |
alblue/swift | test/SILGen/global_resilience.swift | 1 | 4303 | // RUN: %empty-directory(%t)
// RUN: %target-swift-frontend -emit-module -enable-sil-ownership -enable-resilience -emit-module-path=%t/resilient_global.swiftmodule -module-name=resilient_global %S/../Inputs/resilient_global.swift
// RUN: %target-swift-emit-silgen -I %t -enable-resilience -enable-sil-ownership -parse-as... | apache-2.0 | 295a78d5d0d5175f221686822eae0dec | 43.822917 | 200 | 0.752033 | 4.055608 | false | false | false | false |
mozilla-mobile/firefox-ios | Client/Frontend/Login Management/LoginListSelectionHelper.swift | 2 | 1472 | // 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
/// Helper that keeps track of selected indexes for LoginListViewController
public class LoginListSe... | mpl-2.0 | 615553e470bb5de32519eae2fda07dba | 31 | 135 | 0.677989 | 4.939597 | false | false | false | false |
mozilla-mobile/firefox-ios | Client/Frontend/TabContentsScripts/NightModeHelper.swift | 2 | 2141 | // 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 WebKit
import Shared
struct NightModePrefsKey {
static let NightModeButtonIsInMenu = Pref... | mpl-2.0 | 0db62944221785dbace48c0b0cdf2e4a | 32.453125 | 132 | 0.706679 | 4.888128 | false | false | false | false |
paymentez/paymentez-ios | PaymentSDK/SkyFloatingLabelTextField.swift | 1 | 19615 | // Copyright 2016-2017 Skyscanner Ltd
//
// Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance
// with the License. You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed... | mit | 1cc2fb9bf384995dc31a68bf5fd07578 | 30.586151 | 125 | 0.628703 | 5.408051 | false | false | false | false |
biohazardlover/NintendoEverything | Pods/SwiftSoup/Sources/Attribute.swift | 1 | 4267 | //
// Attribute.swift
// SwifSoup
//
// Created by Nabil Chatbi on 29/09/16.
// Copyright © 2016 Nabil Chatbi.. All rights reserved.
//
import Foundation
open class Attribute {
/// The element type of a dictionary: a tuple containing an individual
/// key-value pair.
static let booleanAttributes: [St... | mit | f00026db41789bae02922f73f2126766 | 27.824324 | 113 | 0.600797 | 4.278837 | false | false | false | false |
borglab/SwiftFusion | Sources/SwiftFusion/Inference/PCAEncoder.swift | 1 | 2929 | // Copyright 2020 The SwiftFusion 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 ... | apache-2.0 | c9316e7ed0cf253dbc1460397c1792b5 | 31.186813 | 117 | 0.638102 | 3.503589 | false | false | false | false |
AlexLittlejohn/OMDBMovies | OMDBMovies/Models/MovieResult.swift | 1 | 615 | //
// MovieResult.swift
// OMDBMovies
//
// Created by Alex Littlejohn on 2016/04/04.
// Copyright © 2016 Alex Littlejohn. All rights reserved.
//
import UIKit
struct MovieResult {
let title: String
let year: String
let poster: String
let imdbID: String
let type: String
}
extension MovieResul... | mit | a7fa54cb32d9a3a678faea26b3df66ee | 21.777778 | 58 | 0.596091 | 3.721212 | false | false | false | false |
kstaring/swift | test/IRGen/closure.swift | 4 | 3284 | // RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -primary-file %s -emit-ir | %FileCheck %s
// REQUIRES: CPU=x86_64
// -- partial_apply context metadata
// CHECK: [[METADATA:@.*]] = private constant %swift.full_boxmetadata { void (%swift.refcounted*)* @objectdestroy, i8** null, %swift.type { i... | apache-2.0 | 3d34eaa1daa406e5cd99f2c869b6e94c | 55.62069 | 244 | 0.629111 | 3.121673 | false | false | false | false |
diegosanchezr/Chatto | ChattoAdditions/Source/Input/ChatInputBarAppearance.swift | 1 | 1481 | /*
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 | 101422b08dccf6abbc199d7e57e3038e | 42.558824 | 78 | 0.774477 | 4.936667 | false | false | false | false |
natecook1000/swift | validation-test/Sema/type_checker_perf/slow/rdar22770433.swift | 2 | 333 | // RUN: %target-typecheck-verify-swift -solver-expression-time-threshold=1
// REQUIRES: tools-release,no_asserts
func test(n: Int) -> Int {
return n == 0 ? 0 : (0..<n).reduce(0) {
// expected-error@-1 {{reasonable time}}
($0 > 0 && $1 % 2 == 0) ? ((($0 + $1) - ($0 + $1)) / ($1 - $0)) + (($0 + $1) / ($1 - $0)... | apache-2.0 | b76a708f1e4b005d8c18dc68c82b7574 | 36 | 98 | 0.495495 | 2.561538 | false | true | false | false |
ResearchSuite/ResearchSuiteAppFramework-iOS | Source/Core/Classes/RSAFCoreState.swift | 1 | 2949 | //
// RSAFReduxState.swift
// Pods
//
// Created by James Kizer on 3/22/17.
//
//
import UIKit
import ReSwift
import ResearchKit
import ResearchSuiteTaskBuilder
import ResearchSuiteResultsProcessor
public final class RSAFCoreState: RSAFBaseState {
let loggedIn: Bool
public typealias ActivityQueueElem... | apache-2.0 | e7359df0ac8caca458b0005d2c749d23 | 32.134831 | 84 | 0.646999 | 5.256684 | false | false | false | false |
wangjianquan/wjKeyBoard | wjKeyBoard/PhotoBrowersViewController.swift | 1 | 2003 | //
// PhotoBrowersViewController.swift
// CustomKeyboard
//
// Created by landixing on 2017/6/16.
// Copyright © 2017年 WJQ. All rights reserved.
//
import UIKit
class PhotoBrowersViewController: UIViewController {
var imageView : UIImageView = {
let imageview : UIImageView = UIImageView()
imag... | apache-2.0 | 03b0d2999ff8ac0a5bfa5a7ad7517711 | 17.348624 | 164 | 0.5995 | 5.319149 | false | false | false | false |
artkirillov/DesignPatterns | Iterator.playground/Pages/2.xcplaygroundpage/Contents.swift | 1 | 1500 | final class Destination {
let name: String
init(name: String) {
self.name = name
}
}
final class DestinationList: Sequence {
var destinations: [Destination]
init(destinations: [Destination]) {
self.destinations = destinations
}
func makeIterator() -> Destinati... | mit | ad9a612a1b8de7ec4ea4198e23dd2435 | 22.809524 | 77 | 0.647333 | 4.672897 | false | false | false | false |
blockchain/My-Wallet-V3-iOS | Modules/Platform/Sources/PlatformUIKit/NewActivity/ActivityItemViewModel.swift | 1 | 16355 | // Copyright © Blockchain Luxembourg S.A. All rights reserved.
import BlockchainComponentLibrary
import Localization
import PlatformKit
import RxDataSources
import ToolKit
public final class ActivityItemViewModel: IdentifiableType, Hashable {
typealias AccessibilityId = Accessibility.Identifier.Activity
type... | lgpl-3.0 | db707f4d75b1cdcd2434267cd8dc2e54 | 39.480198 | 103 | 0.533937 | 5.629604 | false | false | false | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.