blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 2
625
| content_id
stringlengths 40
40
| detected_licenses
listlengths 0
47
| license_type
stringclasses 2
values | repo_name
stringlengths 5
116
| snapshot_id
stringlengths 40
40
| revision_id
stringlengths 40
40
| branch_name
stringclasses 643
values | visit_date
timestamp[ns] | revision_date
timestamp[ns] | committer_date
timestamp[ns] | github_id
int64 80.4k
689M
⌀ | star_events_count
int64 0
209k
| fork_events_count
int64 0
110k
| gha_license_id
stringclasses 16
values | gha_event_created_at
timestamp[ns] | gha_created_at
timestamp[ns] | gha_language
stringclasses 85
values | src_encoding
stringclasses 7
values | language
stringclasses 1
value | is_vendor
bool 1
class | is_generated
bool 1
class | length_bytes
int64 4
6.44M
| extension
stringclasses 17
values | content
stringlengths 4
6.44M
| duplicates
listlengths 1
9.02k
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0ecb28982c16bcbf4c1a5d889dcbb608a091c363
|
73c03fdfc270bb3b17103d5de36bbf1f429ef075
|
/ISParseBind/Classes/Components/ISParseBindTextField.swift
|
01d859eb15f57c87bbe7fabdb4499d224bc7d3ce
|
[
"MIT"
] |
permissive
|
mingsai/ISParseBind
|
4ed078c50fe43bb34516c29aea1d7cfe432f1f98
|
58bf125dc178a5fcb49382d25ee61c3f2e467b62
|
refs/heads/master
| 2021-01-20T07:47:20.607867 | 2017-05-08T14:31:51 | 2017-05-08T14:31:51 | 90,044,863 | 0 | 0 |
MIT
| 2019-12-17T15:45:04 | 2017-05-02T14:49:16 |
Swift
|
UTF-8
|
Swift
| false | false | 1,660 |
swift
|
//
// ISTextField.swift
// ISParse
//
// Created by Daniel Amaral on 30/04/16.
// Copyright © 2016 ilhasoft. All rights reserved.
//
import Foundation
import UIKit
open class ISParseBindTextField: UITextField, ISParseBindable {
public override init(frame: CGRect) {
super.init(frame: frame)
}
required public init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
}
open override func layoutSubviews() {
super.layoutSubviews()
setupLayoutWithUnderline(color: underlineColor)
}
@IBInspectable open var required: Bool = false
@IBInspectable open var underlineColor: UIColor = UIColor.clear {
didSet {
setupLayoutWithUnderline(color: underlineColor)
}
}
@IBInspectable open var requiredError: String = ""
@IBInspectable open var fieldType: String = ""
@IBInspectable open var fieldTypeError: String = ""
@IBInspectable open var fieldPath: String = ""
@IBInspectable open var persist: Bool = true
func setupLayoutWithUnderline(color:UIColor) {
if color == UIColor.clear {
let index = self.layer.sublayers?.index {($0.frame.height == 1)}
if let index = index {
self.layer.sublayers?.remove(at: index)
}
}else {
let bottomLine = CALayer()
bottomLine.frame = CGRect(x: 0, y: self.frame.height - 1, width: self.frame.width, height: 1)
bottomLine.backgroundColor = color.cgColor
self.borderStyle = UITextBorderStyle.none
self.layer.addSublayer(bottomLine)
}
}
}
|
[
-1
] |
a63a48137b8532346d54b6a80412944608bcfe97
|
3e7d1b28d11dcbd7a937dfd1729689519851b438
|
/examples/SolarBattery.swift
|
60b611b22c5beacd082d45cbab940f5b1a749025
|
[
"MIT"
] |
permissive
|
jptmoore/lifx-dsl
|
ae3830ab4a431b8d4878390d63657229c4c0ce1e
|
6b1a69db1c31b32949b9bee3e07aa57aec280748
|
refs/heads/master
| 2021-01-20T17:26:14.491989 | 2016-07-05T12:37:08 | 2016-07-05T12:37:08 | 61,058,928 | 1 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 4,240 |
swift
|
//
// SolarBattery.swift
// lifx
//
// Created by John Moore on 01/07/2016.
// Copyright © 2016 John P. T. Moore. All rights reserved.
//
class SolarBattery {
var token: String
var selector: String
init(token: String, selector: String = "all") {
self.token = token
self.selector = selector
let poweron = Light.Bulb(💡.Power(on: true))
let poweroff = Light.Bulb(💡.Power(on: false))
let wait1 = Light.Bulb(💡.Wait(duration: 3))
let wait2 = Light.Bulb(💡.Wait(duration: 7))
let wait3 = Light.Bulb(💡.Wait(duration: 10))
let red1 = Light.Bulb(💡.Color(name: .Red, brightness: 0.02))
let red2 = Light.Bulb(💡.Color(name: .Red, brightness: 0.04))
let red3 = Light.Bulb(💡.Color(name: .Red, brightness: 0.06))
let red4 = Light.Bulb(💡.Color(name: .Red, brightness: 0.08))
let red5 = Light.Bulb(💡.Color(name: .Red, brightness: 0.10))
let orange1 = Light.Bulb(💡.Color(name: .Orange, brightness: 0.10))
let orange2 = Light.Bulb(💡.Color(name: .Orange, brightness: 0.12))
let orange3 = Light.Bulb(💡.Color(name: .Orange, brightness: 0.14))
let orange4 = Light.Bulb(💡.Color(name: .Orange, brightness: 0.16))
let orange5 = Light.Bulb(💡.Color(name: .Orange, brightness: 0.18))
let yellow1 = Light.Bulb(💡.Color(name: .Yellow, brightness: 0.18))
let yellow2 = Light.Bulb(💡.Color(name: .Yellow, brightness: 0.20))
let yellow3 = Light.Bulb(💡.Color(name: .Yellow, brightness: 0.22))
let yellow4 = Light.Bulb(💡.Color(name: .Yellow, brightness: 0.24))
let yellow5 = Light.Bulb(💡.Color(name: .Yellow, brightness: 0.26))
let white1 = Light.Bulb(💡.Color(name: .White, brightness: 0.26))
let white2 = Light.Bulb(💡.Color(name: .White, brightness: 0.28))
let white3 = Light.Bulb(💡.Color(name: .White, brightness: 0.30))
let white4 = Light.Bulb(💡.Color(name: .White, brightness: 0.32))
let white5 = Light.Bulb(💡.Color(name: .White, brightness: 0.34))
let white6 = Light.Bulb(💡.Color(name: .White, brightness: 0.36))
let white7 = Light.Bulb(💡.Color(name: .White, brightness: 0.38))
let white8 = Light.Bulb(💡.Color(name: .White, brightness: 0.40))
let white9 = Light.Bulb(💡.Color(name: .White, brightness: 0.42))
let white10 = Light.Bulb(💡.Color(name: .White, brightness: 0.44))
let start = Light.Scheme([red1, wait1, poweron])
let end = Light.Scheme([wait1, poweroff])
let reds1 = Light.Scheme([wait1, red1, wait1, red2, wait1, red3, wait1, red4, wait1, red5])
let reds2 = Light.Scheme([wait1, red5, wait1, red4, wait1, red3, wait1, red2, wait1, red1])
let oranges1 = Light.Scheme([wait1, orange1, wait1, orange2, wait1, orange3, wait1, orange4, wait1, orange5])
let oranges2 = Light.Scheme([wait1, orange5, wait1, orange4, wait1, orange3, wait1, orange2, wait1, orange1])
let yellows1 = Light.Scheme([wait1, yellow1, wait1, yellow2, wait1, yellow3, wait1, yellow4, wait1, yellow5])
let yellows2 = Light.Scheme([wait1, yellow5, wait1, yellow4, wait1, yellow3, wait1, yellow2, wait1, yellow1])
let whites1 = Light.Scheme([wait1, white1, wait1, white2, wait1, white3, wait1, white4, wait1, white5, wait1, white6, wait1, white7, wait1, white8, wait1, white9, wait1, white10])
let whites2 = Light.Scheme([wait1, white10, wait1, white9, wait1, white8, wait1, white7, wait1, white6, wait1, white5, wait1, white4, wait1, white3, wait1, white2, wait1, white1])
let breathe1 = Light.Bulb(💡.Breathe(color: .White, period: 3, cycles: 100))
let forward = Light.Scheme([reds1, wait1, breathe1, wait2, oranges1, wait1, yellows1, wait1, whites1, wait3])
let backward = Light.Scheme([whites2, wait1, yellows2, wait1, oranges2, wait1, breathe1, wait2, reds2, wait3])
let lifx = Lifx(token: token)
lifx.play(Light.Scheme([start, forward, backward, end]))
}
}
|
[
-1
] |
f9d64b4ff1fa2a92fa3931f44bb06158d2670561
|
af53c0687d09ef4e62472d6cd4cf2ef12ef18f61
|
/Code/CATBean/Commodity/CATCommodityBean.swift
|
215a02fd156dd2a39e548b4f2f8554a6b7f96e79
|
[
"MIT"
] |
permissive
|
StoneStoneStoneWang/CATKit
|
a884a8acc7fc2078597eaaba36d9458ca774e178
|
d9acf989a2ab1e7e01ab88e6dd3c87f5db531517
|
refs/heads/master
| 2021-05-25T22:03:35.799255 | 2020-04-25T09:11:18 | 2020-04-25T09:11:18 | 253,939,092 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,177 |
swift
|
//
// CATCommodityBean.swift
// DStoreDemo
//
// Created by three stone 王 on 2019/7/18.
// Copyright © 2019 three stone 王. All rights reserved.
//
import Foundation
import ObjectMapper
import RxDataSources
import WLToolsKit
@objc (CATCommodityBean)
public class CATCommodityBean: NSObject, Mappable , IdentifiableType{
public var identity: String = ""
public typealias Identity = String
required public init?(map: Map) { }
public func mapping(map: Map) {
identity <- map["encoded"]
intime <- map["intime"]
content <- map["content"]
isLaud <- map["isLaud"]
countLaud <- map["countLaud"]
tag <- map["tag"]
users <- map["users"]
countComment <- map["countComment"]
projectId <- map["projectId"]
encoded <- map["encoded"]
}
@objc public var projectId: String = ""
@objc public var encoded: String = ""
@objc public var intime: Int = Int.max
@objc public var content: String = ""
@objc public var isLaud: Bool = false
@objc public var countLaud: Int = Int.max
@objc public var tag: String = ""
@objc public var users: CATUserBean!
@objc public var countComment: Int = Int.max
@objc public var contentMap: [CATKeyValueBean] {
let res = WLJsonCast.cast(argu: content) as! [[String: String]]
return res.map({ CATKeyValueBean(JSON: $0)! })
}
@objc public var imgs: [CATKeyValueBean] {
var result: [CATKeyValueBean] = []
for item in contentMap {
if item.type == "image" {
result += [item]
}
}
if result.isEmpty {
for item in contentMap {
if item.type == "txt" && item.value.contains("Image:") {
result += [item]
}
}
}
return result
}
}
|
[
-1
] |
79b241f8f5c425c7bc2ecb9d0adc0ad9389174e2
|
3b8e4df7ac33300ed99db900e3abb33ba5b0b17d
|
/iDine/ContentView.swift
|
05bcb427b7c584076f57ba5d85ee56b991064ba3
|
[] |
no_license
|
shalkovy/iDine
|
935088573ab5629029ec168cf13559d82e483ab4
|
2cae8d0576601eea5aead3721204345ddd84d1c2
|
refs/heads/master
| 2022-10-25T18:22:38.827830 | 2020-06-10T05:29:12 | 2020-06-10T05:29:12 | 271,185,820 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 824 |
swift
|
//
// ContentView.swift
// iDine
//
// Created by Dima Shelkov on 5/14/20.
// Copyright © 2020 Dima Shelkov. All rights reserved.
//
import SwiftUI
struct ContentView: View {
let menu = Bundle.main.decode([MenuSection].self, from: "menu.json")
var body: some View {
NavigationView {
List {
ForEach(menu) { section in
Section(header: Text(section.name)) {
ForEach(section.items) { item in
ItemRow(item: item)
}
}
}
}
.navigationBarTitle("Menu")
.listStyle(GroupedListStyle())
}
}
}
struct ContentView_Previews: PreviewProvider {
static var previews: some View {
ContentView()
}
}
|
[
333409,
343241
] |
4e5bb5af4cbe3633b4598626c15f599dc943a141
|
483b7761e97514ded364231dd1ef35d8aa19a80c
|
/deleteStoryboard/MealTableViewCell.swift
|
0b9b4a2bfaaed27a2ab9fdf3a810c7816cce12ef
|
[] |
no_license
|
tomoakiWeb/FoodTrackerNoStoryboard
|
7c77fcc5b987515c94df225a70632063561d0be6
|
cde4c711ba388df10baac8f372eb0c142efebee2
|
refs/heads/master
| 2023-07-08T00:07:35.871052 | 2020-01-05T12:16:21 | 2020-01-05T12:16:21 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,022 |
swift
|
//
// MealTableViewCell.swift
// deleteStoryboard
//
// Created by 三浦 知明 on 2020/01/03.
// Copyright © 2020 三浦 知明. All rights reserved.
//
import UIKit
class MealTableViewCell: UITableViewCell {
lazy var photoImageView = self.createImageView()
lazy var namelabel = self.createNameLabel()
//RatingControl.swiftのratingControlのインスタンスを生成
let ratingControl: RatingControl = {
let stackView = RatingControl()
stackView.axis = .horizontal
stackView.spacing = 8
stackView.alignment = .center
stackView.distribution = .fill
stackView.translatesAutoresizingMaskIntoConstraints = false
return stackView
} ()
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
self.contentView.addSubview(photoImageView)
self.contentView.addSubview(namelabel)
self.contentView.addSubview(ratingControl)
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func layoutSubviews() {
super.layoutSubviews()
ratingControl.topAnchor.constraint(equalTo: namelabel.bottomAnchor, constant: 15).isActive = true
ratingControl.leadingAnchor.constraint(equalTo: photoImageView.trailingAnchor, constant: 10).isActive = true
}
private func createNameLabel() -> UILabel {
let nameLabel = UILabel(frame: CGRect(x: photoImageView.frame.maxX + 15, y: 0, width: self.frame.width - (100+10), height: 30))
nameLabel.textAlignment = .left
nameLabel.font = UIFont.boldSystemFont(ofSize: 20)
return nameLabel
}
private func createImageView() -> UIImageView {
let photoImageView = UIImageView(image: UIImage(named: "defaultPhoto"))
photoImageView.frame = CGRect(x: 0, y: 0, width: 100, height: 100)
return photoImageView
}
}
|
[
-1
] |
5eab1d53648528a551211550d6809f704d680ef3
|
b1c07df60bab7682e6d7784471d17141923dc797
|
/clemmessenger/clemmessenger/ViewController.swift
|
1fb9a606dc6db7e142920383312e3899dff853d6
|
[] |
no_license
|
clementckm/clem-messenger
|
d8a3aa719dceb5703ffd51c3b98fd2a3fbbbda7b
|
2ef249957aeb7f74d6dedaa91a89e72dc3019a8c
|
refs/heads/master
| 2020-03-12T01:48:17.786512 | 2018-04-21T10:13:29 | 2018-04-21T10:13:29 | 130,384,727 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,263 |
swift
|
//
// ViewController.swift
// clemmessenger
//
// Created by chan clement on 7/1/2017.
// Copyright © 2017 clement. All rights reserved.
//
import UIKit
class FriendsController: UICollectionViewController {
private let cellId = "cellId"
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
collectionView?.backgroundColor = UIColor.red
collectionView?.register(FriendCell.self, forCellWithReuseIdentifier: cellId)
}
override func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return 3
}
override func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
return collectionView.dequeueReusableCell(withReuseIdentifier: cellId, for: indexPath)
}
}
class FriendCell: UICollectionViewCell {
override init(frame: CGRect) {
super.init(frame: frame)
setupViews()
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
func setupViews() {
backgroundColor = UIColor.blue
}
}
|
[
-1
] |
4939e34eb5f43475afbd5a1a0b9efa85c3cf650b
|
fa67af6f2ffd896c4cc079bbbedfca66f27a0ee6
|
/BuyBookBack/Viewcontroller/ViewController.swift
|
af7149f3b905deb42f6fe1f5d09737a96d35304c
|
[] |
no_license
|
Bilalfakhro/BuyBookBack
|
30e91df514106f6daa89533757a0623eaa4f0abe
|
748c945dce1d328d38c0b60d74ea9624d4e1e9a8
|
refs/heads/master
| 2022-12-19T01:24:35.479928 | 2020-09-19T22:21:38 | 2020-09-19T22:21:38 | 296,604,075 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,860 |
swift
|
//
// ViewController.swift
// BuyBookBack
//
// Created by Bilal Fakhro on 2020-09-18.
// Copyright © 2020 Bilal Fakhro. All rights reserved.
//
import UIKit
import AVKit
class ViewController: UIViewController {
var videoPlayer:AVPlayer?
var videoPlayerLayer:AVPlayerLayer?
@IBOutlet weak var signUpButton: UIButton!
@IBOutlet weak var loginButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
setUpElements()
}
override func viewWillAppear(_ animated: Bool) {
// Set up video in the background
setUpVideo()
}
func setUpElements() {
Utilities.styleFilledButton(signUpButton)
Utilities.styleHollowButton(loginButton)
}
func setUpVideo() {
// Get the path to the resource in the bundle
let bundlePath = Bundle.main.path(forResource: "loginbg", ofType: "mp4")
guard bundlePath != nil else {
return
}
// Create a URL from it
let url = URL(fileURLWithPath: bundlePath!)
// Create the video player item
let item = AVPlayerItem(url: url)
// Create the player
videoPlayer = AVPlayer(playerItem: item)
// Create the layer
videoPlayerLayer = AVPlayerLayer(player: videoPlayer!)
// Adjust the size and frame
videoPlayerLayer?.frame = CGRect(x: -self.view.frame.size.width*1.5, y: 0, width: self.view.frame.size.width*4, height: self.view.frame.size.height)
view.layer.insertSublayer(videoPlayerLayer!, at: 0)
// Add it to the view and play it
videoPlayer?.playImmediately(atRate: 0.3)
}
}
|
[
374123
] |
8a1e0bca3a0ff3137bd0f75eceeccb962961ec74
|
84f3da414a2bcf6448f8fba612a240f72fa107e5
|
/animation(loading)/layers/WaveLayer.swift
|
ba6a3f3a5351920a99a44f67f88b0901b945d189
|
[] |
no_license
|
HectorLiuk/loadingAnimation
|
ef38b34a1e0606a9bd962bfc74aeb4603f324c08
|
db07f0e9d787166995b6340a730bb871a336d7e1
|
refs/heads/master
| 2020-12-03T15:32:44.873141 | 2017-02-08T02:18:53 | 2017-02-08T02:18:53 | 66,611,242 | 13 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 5,685 |
swift
|
//
// WaveLayer.swift
// animation(loading)
//
// Created by lk on 16/7/19.
// Copyright © 2016年 LK. All rights reserved.
//
import UIKit
class WaveLayer: CAShapeLayer {
let KAnimationDuration: CFTimeInterval = 0.18
override init() {
super.init()
fillColor = UIColor.orangeColor().CGColor
path = wavePathStarting.CGPath
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
var wavePathPre: UIBezierPath {
let arcPath = UIBezierPath()
arcPath.moveToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: 99.0))
arcPath.addLineToPoint(CGPoint(x: 100.0, y: 99.0))
arcPath.addLineToPoint(CGPoint(x: 100.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.closePath()
return arcPath
}
var wavePathStarting: UIBezierPath {
let arcPath = UIBezierPath()
arcPath.moveToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: 80.0))
arcPath.addCurveToPoint(CGPoint(x: 100.0, y: 80.0), controlPoint1: CGPoint(x: 30.0, y: 70.0), controlPoint2: CGPoint(x: 40.0, y: 90.0))
arcPath.addLineToPoint(CGPoint(x: 100.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.closePath()
return arcPath
}
var wavePathLow: UIBezierPath {
let arcPath = UIBezierPath()
arcPath.moveToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: 60.0))
arcPath.addCurveToPoint(CGPoint(x: 100.0, y: 60.0), controlPoint1: CGPoint(x: 30.0, y: 65.0), controlPoint2: CGPoint(x: 40.0, y: 50.0))
arcPath.addLineToPoint(CGPoint(x: 100.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.closePath()
return arcPath
}
var wavePathMid: UIBezierPath {
let arcPath = UIBezierPath()
arcPath.moveToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: 40.0))
arcPath.addCurveToPoint(CGPoint(x: 100.0, y: 40.0), controlPoint1: CGPoint(x: 30.0, y: 30.0), controlPoint2: CGPoint(x: 40.0, y: 50.0))
arcPath.addLineToPoint(CGPoint(x: 100.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.closePath()
return arcPath
}
var wavePathHigh: UIBezierPath {
let arcPath = UIBezierPath()
arcPath.moveToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: 20.0))
arcPath.addCurveToPoint(CGPoint(x: 100.0, y: 20.0), controlPoint1: CGPoint(x: 30.0, y: 25.0), controlPoint2: CGPoint(x: 40.0, y: 10.0))
arcPath.addLineToPoint(CGPoint(x: 100.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.closePath()
return arcPath
}
var wavePathComplete: UIBezierPath {
let arcPath = UIBezierPath()
arcPath.moveToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: -5.0))
arcPath.addLineToPoint(CGPoint(x: 100.0, y: -5.0))
arcPath.addLineToPoint(CGPoint(x: 100.0, y: 100.0))
arcPath.addLineToPoint(CGPoint(x: 0.0, y: 100.0))
arcPath.closePath()
return arcPath
}
func animate() {
/// 1
let waveAnimationPre: CABasicAnimation = CABasicAnimation(keyPath: "path")
waveAnimationPre.fromValue = wavePathPre.CGPath
waveAnimationPre.toValue = wavePathStarting.CGPath
waveAnimationPre.beginTime = 0.0
waveAnimationPre.duration = KAnimationDuration
/// 2
let waveAnimationLow: CABasicAnimation = CABasicAnimation(keyPath: "path")
waveAnimationLow.fromValue = wavePathStarting.CGPath
waveAnimationLow.toValue = wavePathLow.CGPath
waveAnimationLow.beginTime = waveAnimationPre.beginTime + waveAnimationPre.duration
waveAnimationLow.duration = KAnimationDuration
/// 3
let waveAnimationMid: CABasicAnimation = CABasicAnimation(keyPath: "path")
waveAnimationMid.fromValue = wavePathLow.CGPath
waveAnimationMid.toValue = wavePathMid.CGPath
waveAnimationMid.beginTime = waveAnimationLow.beginTime + waveAnimationLow.duration
waveAnimationMid.duration = KAnimationDuration
/// 4
let waveAnimationHigh: CABasicAnimation = CABasicAnimation(keyPath: "path")
waveAnimationHigh.fromValue = wavePathMid.CGPath
waveAnimationHigh.toValue = wavePathHigh.CGPath
waveAnimationHigh.beginTime = waveAnimationMid.beginTime + waveAnimationMid.duration
waveAnimationHigh.duration = KAnimationDuration
/// 5
let waveAnimationComplete: CABasicAnimation = CABasicAnimation(keyPath: "path")
waveAnimationComplete.fromValue = wavePathHigh.CGPath
waveAnimationComplete.toValue = wavePathComplete.CGPath
waveAnimationComplete.beginTime = waveAnimationHigh.beginTime + waveAnimationHigh.duration
waveAnimationComplete.duration = KAnimationDuration
/// group animation
let arcAnimationGroup: CAAnimationGroup = CAAnimationGroup()
arcAnimationGroup.animations = [waveAnimationPre, waveAnimationLow, waveAnimationMid, waveAnimationHigh, waveAnimationComplete]
arcAnimationGroup.duration = waveAnimationComplete.beginTime + waveAnimationComplete.duration
arcAnimationGroup.fillMode = kCAFillModeForwards
arcAnimationGroup.removedOnCompletion = false
addAnimation(arcAnimationGroup, forKey: nil)
}
}
|
[
-1
] |
a958b43a3b1059545f62a3ff08ff958c9578c1f0
|
04bf6af61e217795d67fb0b808b71b9b40af08df
|
/VeetoAppUITests/VeetoAppUITests.swift
|
e6d2bf99f4260bfa46ae4bf8c5a6a86775cc9256
|
[] |
no_license
|
Levi-Moreira/Veeto
|
3efbc640051c13c6d9e0deb38a5e74d3130bc6c1
|
f9b6fae8b7c950dadc6876fdb3624fdadf912f83
|
refs/heads/master
| 2020-12-02T16:42:03.591449 | 2017-08-07T17:30:19 | 2017-08-07T17:30:19 | 96,570,251 | 2 | 1 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,234 |
swift
|
//
// VeetoAppUITests.swift
// VeetoAppUITests
//
// Created by IFCE on 03/07/17.
// Copyright © 2017 IFCE. All rights reserved.
//
import XCTest
class VeetoAppUITests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
// In UI tests it is usually best to stop immediately when a failure occurs.
continueAfterFailure = false
// UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method.
XCUIApplication().launch()
// In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// Use recording to get started writing UI tests.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
}
|
[
333827,
243720,
282634,
313356,
305173,
241695,
237599,
223269,
354342,
315431,
229414,
102441,
354346,
325675,
292901,
315433,
124974,
102446,
278571,
229425,
282671,
243763,
321589,
241717,
229431,
180279,
215095,
319543,
213051,
288829,
325695,
286787,
288835,
307269,
237638,
313415,
239689,
233548,
315468,
311373,
196687,
278607,
311377,
354386,
315477,
223317,
323678,
315488,
321632,
45154,
280676,
313446,
215144,
217194,
194667,
233578,
278637,
307306,
319599,
288878,
278642,
284789,
131190,
249976,
288890,
292987,
215165,
131199,
194692,
235661,
241809,
323730,
278676,
311447,
327834,
284827,
329884,
299166,
278690,
233635,
215204,
311459,
284840,
284843,
278703,
278707,
125108,
180409,
280761,
295099,
223418,
227517,
299197,
280767,
258233,
299202,
139459,
309443,
176325,
131270,
227525,
299208,
301255,
280779,
233678,
282832,
321744,
227536,
301270,
301271,
280792,
356575,
311520,
325857,
280803,
182503,
338151,
319719,
317676,
286957,
125166,
125170,
313595,
184574,
125184,
309504,
125192,
125197,
125200,
194832,
227601,
325904,
125204,
319764,
278805,
334104,
315674,
282908,
311582,
125215,
299294,
282912,
233761,
278817,
211239,
282920,
125225,
317738,
325930,
311596,
321839,
315698,
98611,
125236,
282938,
168251,
278843,
307514,
287040,
319812,
311622,
227655,
280903,
323914,
201037,
282959,
229716,
289109,
168280,
379224,
323934,
391521,
239973,
381286,
285031,
416103,
313703,
280938,
242027,
242028,
321901,
278895,
354672,
354671,
227702,
199030,
315769,
291194,
291193,
248188,
313726,
211327,
291200,
311679,
158087,
313736,
227721,
242059,
311692,
285074,
227730,
240020,
190870,
315798,
190872,
291225,
285083,
293275,
317851,
242079,
283039,
285089,
227743,
293281,
289185,
156069,
305572,
301482,
289195,
377265,
338359,
299449,
311739,
319931,
293309,
278974,
311744,
317889,
291266,
278979,
278988,
289229,
281038,
326093,
278992,
283089,
373196,
281039,
283088,
279000,
242138,
285152,
369121,
160224,
279009,
195044,
291297,
279014,
188899,
319976,
279017,
311787,
281071,
319986,
236020,
279030,
293368,
311800,
279033,
279042,
283138,
233987,
287237,
377352,
342537,
309770,
322057,
279053,
303634,
303635,
279060,
279061,
182802,
188954,
279066,
291359,
227881,
293420,
289328,
236080,
283185,
279092,
23093,
234037,
244279,
244280,
338491,
301635,
322119,
55880,
377419,
281165,
303693,
301647,
281170,
326229,
287319,
309847,
115287,
189016,
111197,
295518,
287327,
242274,
244326,
279143,
279150,
281200,
287345,
287348,
301688,
189054,
287359,
291455,
297600,
303743,
301702,
164487,
279176,
311944,
334473,
316044,
184974,
311950,
316048,
336531,
287379,
227991,
295575,
289435,
303772,
221853,
205469,
285348,
279207,
295591,
248494,
318127,
293552,
295598,
285362,
285360,
342705,
299698,
287412,
166581,
154295,
287418,
314043,
303802,
66243,
291529,
287434,
363212,
242385,
303826,
279253,
158424,
230105,
299737,
322269,
342757,
295653,
289511,
234216,
330473,
285419,
330476,
289517,
279278,
170735,
215790,
312046,
125683,
230133,
199415,
234233,
279293,
205566,
289534,
291584,
322302,
299777,
228099,
285443,
291591,
295688,
346889,
285450,
322312,
312076,
285457,
295698,
166677,
291605,
283418,
285467,
221980,
281378,
234276,
283431,
262952,
262953,
279337,
318247,
318251,
262957,
293673,
164655,
328495,
289580,
301872,
303921,
234290,
285493,
230198,
285496,
301883,
201534,
281407,
222017,
295745,
293702,
318279,
283466,
281426,
279379,
295769,
201562,
281434,
234330,
322396,
230238,
275294,
301919,
279393,
349025,
230239,
303973,
279398,
177002,
242540,
242542,
310132,
295797,
201590,
207735,
228214,
177018,
269179,
279418,
308093,
314240,
291713,
158594,
330627,
240517,
287623,
299912,
416649,
279434,
236427,
228232,
320394,
234382,
189327,
308111,
316299,
308113,
293780,
310166,
289691,
209820,
240543,
283551,
289699,
189349,
289704,
293801,
279465,
177074,
304050,
289720,
289723,
189373,
213956,
281541,
345030,
19398,
326602,
279499,
56270,
191445,
183254,
304086,
234469,
340967,
314343,
324587,
183276,
289773,
203758,
234476,
320492,
320495,
287730,
240631,
320504,
214009,
312313,
312317,
234499,
293894,
320520,
230411,
320526,
330766,
234513,
238611,
140311,
293911,
238617,
197658,
316441,
330789,
248871,
132140,
113710,
189487,
281647,
322609,
312372,
203829,
238646,
300087,
238650,
320571,
21567,
308288,
336962,
160834,
314437,
349254,
238663,
300109,
207954,
234578,
205911,
296023,
314458,
281698,
281699,
230500,
285795,
322664,
228457,
279659,
318571,
234606,
300145,
230514,
238706,
279666,
312435,
187508,
302202,
285819,
314493,
285823,
150656,
234626,
222344,
318602,
285834,
234635,
228492,
337037,
177297,
162962,
187539,
308375,
324761,
285850,
296091,
119965,
302239,
330912,
234655,
300192,
306339,
339106,
234662,
300200,
249003,
208044,
238764,
3243,
322733,
294069,
300215,
294075,
339131,
228541,
64699,
283841,
148674,
283846,
312519,
279752,
283849,
148687,
290001,
189651,
316628,
279766,
189656,
279775,
304352,
310496,
304353,
298209,
279780,
228587,
279789,
290030,
251124,
234741,
316661,
279803,
208123,
292092,
228608,
320769,
234756,
322826,
242955,
312588,
177420,
318732,
126229,
245018,
320795,
318746,
320802,
304422,
130342,
130344,
292145,
298290,
312628,
345398,
300342,
159033,
222523,
286012,
181568,
279872,
279874,
300354,
300355,
193858,
294210,
372039,
304457,
345418,
230730,
296269,
234830,
224591,
222542,
296274,
314708,
318804,
283990,
314711,
357720,
300378,
300379,
316764,
294236,
314721,
292194,
230757,
281958,
314727,
134504,
306541,
314734,
284015,
234864,
312688,
316786,
296304,
314740,
230772,
314742,
327030,
314745,
290170,
224637,
306558,
290176,
243073,
314752,
179586,
306561,
294278,
314759,
296328,
296330,
298378,
368012,
318860,
314765,
304523,
279955,
306580,
314771,
224662,
234902,
282008,
314776,
318876,
282013,
290206,
148899,
314788,
314790,
282023,
333224,
298406,
241067,
279980,
314797,
279979,
286128,
173492,
279988,
286133,
284090,
310714,
228796,
302523,
54719,
415170,
292291,
280003,
302530,
228804,
306630,
300488,
310725,
306634,
339403,
280011,
300490,
234957,
310731,
302539,
312785,
327122,
222674,
280020,
310735,
280025,
310747,
239069,
144862,
286176,
320997,
310758,
187877,
280042,
280043,
191980,
300526,
337391,
308722,
296434,
306678,
40439,
191991,
288248,
286201,
300539,
288252,
312830,
290304,
228868,
292359,
218632,
323079,
230922,
323083,
294413,
329231,
304655,
323088,
282132,
230933,
302613,
316951,
282135,
374297,
302620,
313338,
282147,
306730,
312879,
230960,
288305,
239159,
290359,
323132,
157246,
288319,
288322,
280131,
349764,
310853,
124486,
194118,
288328,
286281,
292426,
292424,
282182,
224848,
230999,
196184,
239192,
306777,
128600,
235096,
290391,
212574,
99937,
204386,
323171,
345697,
300643,
282214,
300645,
312937,
204394,
224874,
243306,
312941,
206447,
310896,
294517,
314997,
288377,
290425,
325246,
333438,
235136,
280193,
282244,
239238,
288391,
323208,
282248,
179853,
286351,
188049,
239251,
229011,
323226,
179868,
229021,
302751,
198304,
282272,
245413,
282279,
298664,
212649,
298666,
317102,
286387,
337590,
286392,
302778,
306875,
280252,
296636,
282302,
280253,
286400,
323265,
321217,
280259,
333508,
296649,
239305,
306891,
280266,
212684,
302798,
9935,
241360,
282321,
333522,
286419,
241366,
280279,
18139,
280285,
294621,
282336,
325345,
321250,
294629,
153318,
333543,
12009,
282347,
288492,
282349,
34547,
67316,
323315,
284410,
282366,
286463,
319232,
288515,
280326,
282375,
323335,
284425,
300810,
116491,
216844,
280333,
282379,
284430,
161553,
124691,
284436,
278292,
278294,
282390,
116502,
118549,
325403,
321308,
321309,
282399,
241440,
282401,
325411,
186148,
186149,
315172,
241447,
333609,
294699,
284460,
280367,
282418,
280373,
282424,
280377,
321338,
319289,
413500,
280381,
345918,
241471,
280386,
325444,
280391,
153416,
325449,
315209,
159563,
280396,
307024,
337746,
317268,
325460,
307030,
18263,
237397,
241494,
188250,
284508,
300893,
237411,
284515,
276326,
282471,
296807,
282476,
292719,
296815,
313200,
313204,
317305,
124795,
317308,
339840,
182145,
315265,
280451,
325508,
333700,
243590,
282503,
67464,
243592,
279215,
327556,
188293,
315272,
315275,
184207,
311183,
282517,
294806,
214936,
337816,
329627,
239515,
214943,
298912,
319393,
294820,
219046,
333734,
294824,
298921,
284584,
313257,
292783,
126896,
343993,
288698,
294849,
214978,
280517,
280518,
214983,
282572,
282573,
153553,
24531,
231382,
329696,
323554,
292835,
190437,
292838,
294887,
317416,
313322,
278507,
329707,
298987,
296942,
311277,
124912,
327666,
278515,
325620,
239610
] |
d4eca8514dcc97d3ed15c21388cd9728a11a87a8
|
38495d57f8697f1df24d1a5f1e75f49b9d47a68e
|
/CarouselTests/CarouselTests.swift
|
bc4a28b4e17fbc25e680c7727346e826e0b55a60
|
[] |
no_license
|
yl335/Week2-HW-Carousel
|
b09d09e15c97a09e83782fd9d341d9be25c68867
|
0a7e86a2173647268ae241ed1f6f950e993a3e32
|
refs/heads/master
| 2021-01-15T21:34:31.830224 | 2015-05-17T19:05:36 | 2015-05-17T19:05:36 | 35,542,281 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 897 |
swift
|
//
// CarouselTests.swift
// CarouselTests
//
// Created by Sara Lin on 5/12/15.
// Copyright (c) 2015 Sara Lin. All rights reserved.
//
import UIKit
import XCTest
class CarouselTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
XCTAssert(true, "Pass")
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measureBlock() {
// Put the code you want to measure the time of here.
}
}
}
|
[
276481,
276484,
276489,
276492,
278541,
278544,
278550,
305179,
276509,
278558,
307231,
313375,
278561,
102437,
227370,
360491,
276533,
276534,
241720,
276543,
159807,
286788,
280649,
223316,
315476,
223318,
227417,
278618,
288857,
194652,
194653,
194656,
276577,
309345,
227428,
276581,
276582,
43109,
276585,
223340,
276589,
278638,
227439,
276592,
131189,
227446,
223350,
276603,
276606,
292992,
276613,
141450,
311435,
215178,
311438,
276627,
276631,
276632,
184475,
227492,
196773,
227495,
129203,
299187,
131256,
176314,
280762,
223419,
299198,
309444,
227528,
276682,
276684,
276687,
278742,
278746,
155867,
280802,
276709,
276710,
276715,
233715,
227576,
211193,
157944,
168188,
227585,
276737,
227592,
276748,
276753,
157970,
276760,
309529,
278810,
276764,
299293,
276774,
282919,
262450,
276787,
276792,
315706,
278846,
164162,
311621,
280902,
278856,
227658,
276813,
278862,
278863,
6481,
6482,
276821,
276822,
6489,
276831,
323935,
276835,
321894,
276839,
416104,
276847,
285040,
278898,
278908,
280961,
178571,
227725,
178578,
190871,
293274,
61857,
61859,
276900,
278951,
278954,
278961,
278965,
276919,
276920,
278969,
293303,
33211,
276925,
278978,
278985,
281037,
111056,
278993,
279002,
276958,
287198,
227809,
358882,
227813,
279013,
279019,
279022,
281072,
279039,
276998,
287241,
279050,
186893,
279054,
303631,
223767,
277017,
223769,
291358,
277029,
293419,
277048,
277049,
301634,
369220,
277066,
277083,
295519,
66150,
277094,
166507,
189036,
277101,
189037,
295535,
189042,
287346,
189043,
277111,
279164,
277118,
291454,
184962,
303746,
152203,
225933,
277133,
133774,
225936,
277138,
277141,
277142,
225943,
230040,
225944,
164512,
225956,
285353,
225962,
209581,
205487,
285361,
303793,
154291,
299699,
293556,
154294,
342706,
277176,
166580,
285371,
285372,
285374,
277190,
199366,
225997,
226001,
164563,
226004,
277204,
203478,
203477,
279252,
119513,
226007,
201442,
226019,
279269,
285415,
342762,
277227,
226035,
230134,
234234,
209660,
279294,
234238,
234241,
226051,
234245,
277254,
209670,
226058,
234250,
234253,
234256,
234263,
369432,
234268,
105246,
228129,
234277,
234280,
277289,
279336,
234283,
289576,
234286,
234289,
226097,
234294,
230199,
162621,
234301,
289598,
277312,
234304,
162626,
281408,
293693,
277316,
234305,
234311,
234312,
299849,
234317,
277325,
277327,
293711,
234323,
234326,
277339,
234331,
301918,
234335,
279392,
297822,
349026,
297826,
234340,
174949,
234343,
277354,
234346,
234349,
277360,
234355,
213876,
277366,
234360,
234361,
226170,
279417,
209785,
177019,
277370,
234367,
234366,
158593,
234372,
226181,
213894,
113542,
226184,
234377,
277381,
228234,
226189,
234381,
295824,
226194,
234387,
234386,
234392,
324507,
234395,
279456,
234400,
277410,
234404,
226214,
289703,
234409,
275371,
234412,
236461,
226222,
226223,
234419,
226227,
234425,
277435,
234427,
287677,
234430,
226241,
234436,
275397,
234438,
226249,
52172,
234444,
234445,
183248,
275410,
234450,
234451,
234454,
234457,
275418,
234463,
234466,
277479,
277480,
179176,
234472,
234473,
234477,
234482,
287731,
277492,
314355,
234492,
234495,
277505,
234498,
234500,
277509,
277510,
234503,
234506,
230410,
275469,
277518,
197647,
234509,
295953,
277517,
277523,
234517,
230423,
281625,
197657,
281626,
175132,
234530,
234531,
234534,
275495,
234539,
275500,
310317,
277550,
234542,
275505,
275506,
234548,
277563,
234555,
156733,
277566,
7229,
7230,
7231,
234560,
238651,
230463,
234565,
277574,
207938,
281666,
234569,
300111,
207953,
277585,
296018,
234577,
296019,
234583,
234584,
275547,
277596,
234594,
277603,
230499,
281700,
300135,
234603,
281707,
275565,
156785,
312434,
275571,
234612,
300151,
234616,
398457,
234622,
300158,
285828,
302213,
275590,
234631,
253063,
277640,
302217,
234632,
275591,
234642,
277651,
226452,
226451,
308372,
275607,
119963,
234652,
234656,
330913,
306338,
234659,
277665,
275620,
234663,
275625,
300201,
208043,
275628,
226479,
238769,
226481,
277686,
277690,
208058,
230588,
277694,
283840,
279747,
279760,
290000,
189652,
203989,
275671,
363744,
195811,
298212,
304356,
285929,
279792,
298228,
204022,
120055,
234742,
228600,
120056,
208124,
204041,
292107,
277792,
339234,
259363,
199971,
304421,
277800,
113962,
277803,
113966,
277806,
226608,
226609,
277809,
277814,
277815,
300343,
277821,
277824,
277825,
226624,
15686,
277831,
226632,
277834,
294218,
177484,
222541,
277838,
142669,
277841,
296273,
222548,
277845,
277844,
314709,
283991,
357719,
277852,
224605,
224606,
218462,
142689,
230756,
277862,
163175,
281962,
277866,
173420,
277868,
284014,
277871,
279919,
226675,
277878,
275831,
275832,
181625,
277882,
277883,
142716,
275838,
275839,
277890,
277891,
226694,
275847,
277896,
277897,
281992,
277900,
230799,
318864,
112017,
296338,
277907,
206228,
306579,
277911,
226711,
226712,
277919,
277920,
310692,
277925,
279974,
277927,
282024,
370091,
277936,
277939,
277940,
279989,
296375,
277943,
277946,
277949,
277952,
296387,
415171,
277957,
163269,
296391,
300487,
277962,
282060,
277965,
280013,
312782,
284116,
277974,
228823,
228824,
277977,
277980,
226781,
277983,
277988,
310757,
316902,
277993,
277994,
296425,
277997,
278002,
278005,
306677,
278008,
300542,
306693,
153095,
175625,
192010,
280077,
149007,
65041,
282136,
204313,
278056,
278060,
286254,
228917,
226875,
194110,
128583,
226888,
276040,
366154,
276045,
276046,
286288,
226897,
276050,
280147,
300630,
226906,
243292,
147036,
370271,
282213,
317032,
222832,
276085,
276088,
278140,
188031,
276097,
192131,
276100,
276101,
229001,
310923,
312972,
278160,
278162,
282259,
276116,
276117,
276120,
278170,
280220,
276126,
276129,
282273,
282276,
278191,
276146,
278195,
276148,
296628,
198324,
286388,
278201,
276156,
278214,
323276,
276173,
302797,
212688,
302802,
276179,
276180,
286423,
216795,
216796,
276195,
153319,
313065,
280300,
419569,
276210,
276211,
276219,
194303,
171776,
288512,
311042,
288516,
278285,
276238,
227091,
184086,
294678,
284442,
278299,
276253,
276257,
278307,
288547,
278316,
159533,
165677,
276279,
276282,
276283,
288574,
276287,
345919,
276294,
282438,
276298,
296779,
216918,
276311,
307031,
188246,
276318,
237408,
276325,
282474,
288619,
276332,
173936,
110452,
276344,
194429,
227199,
40850,
40853,
44952,
247712,
276385,
227238,
294823,
276394,
276400,
276401,
276408,
161722,
290746,
276413,
276421,
276422,
276430,
231375,
153552,
153554,
276444,
280541,
276450,
276451,
276454,
276459,
296941,
276463,
276468,
276469,
278518,
276475,
276478
] |
309f98c406d816d75e94f824f59acde0f06cc447
|
42eac3db192a7aa6116c093fdd33f692b4177e34
|
/MultiEduca/MultiEduca/Core/Providers/Home/HomeDataProvider.swift
|
77442df89c0096e2850972dbddef310d2753cdc4
|
[] |
no_license
|
SandraBasquero/multiEduca
|
af2b9efaccdb15ec59cb1e52169494af266e48d7
|
f010bcaaa09568bb6bc0c0c2a76153d6f043d582
|
refs/heads/develop
| 2021-03-30T23:26:48.315899 | 2019-12-06T16:48:29 | 2019-12-06T16:48:29 | 124,933,228 | 0 | 0 | null | 2019-12-06T16:48:30 | 2018-03-12T18:27:19 |
Swift
|
UTF-8
|
Swift
| false | false | 981 |
swift
|
//
// Provider.swift
// MultiEduca
//
// Created by Sandra on 31/3/18.
// Copyright © 2018 Sandra. All rights reserved.
//
import Foundation
class HomeDataProvider {
let fileManager:FilesManagerContract = FilesManager()
let cache:HomeDataCacheContract = HomeDataCache()
}
extension HomeDataProvider: HomeDataProviderContract {
func getHomeData(completion: @escaping ([HomeDataModel]?, NSError?) -> Void)
{
var data:[HomeDataModel]? = nil
var error:NSError? = nil
if !fileManager.readHomeDataFile().isEmpty {
cache.saveData(fileManager.readHomeDataFile(), forKey: Constants.homeData)
data = cache.getData(forKey: Constants.homeData)
} else {
if (cache.getData(forKey: Constants.homeData) != nil) {
data = cache.getData(forKey: Constants.homeData)
} else {
error = NSError()
}
}
completion(data, error)
}
}
|
[
-1
] |
13532a4770ce732facb1736c3d99c3d8aba983df
|
3ae4d344fad2bf4ceed90c843eca94c3c66f8f32
|
/BmobSDK/BmobRequestWork.swift
|
61b6505835f362a61915532016bcfc2c2e7853db
|
[] |
no_license
|
bmob/Bmob-iOS-Swift
|
d28cdf154a0a9d3ee1c427bd0a0a03d2de615e98
|
fddc9551c5c3ae66d3da4848f39e8b9e68740887
|
refs/heads/master
| 2021-03-19T18:46:10.337768 | 2017-10-18T07:17:21 | 2017-10-18T07:17:21 | 94,194,625 | 2 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 4,680 |
swift
|
//
// BmobRequestWork.swift
// BmobSMS
//
// Created by ybon on 2017/6/5.
// Copyright © 2017年 ybon. All rights reserved.
//
import UIKit
class BmobRequestWork: NSObject {
/**
* GET
*/
class func zyGETWithURLSession(_ urlString:String,parmas:NSDictionary,_ mathFunction: @escaping zymathFuncation){
let session = URLSession.shared;
let str = BmobRequestConfig.parmasStringWithParmas(parmas);
let resultstr = str.addingPercentEncoding(withAllowedCharacters: CharacterSet.urlQueryAllowed);
let url = URL.init(string: urlString+"?"+resultstr!);
var request = URLRequest(url: url!);
request.httpMethod = "GET";
request = BmobRequestConfig.setRequestHeader(request: request);
let task = session.dataTask(with:request, completionHandler: { (data, respons, error) -> Void in
let bmconfig = BmobRequestConfig().requestTask(data: data, response: respons, error: error);
mathFunction(bmconfig.anyObject,bmconfig.isSuccess,bmconfig.zyError);
})
task.resume();
}
/**
* POST
*/
class func zyPOSTwithURLSession(_ urlString:String,parmas:NSDictionary,_ mathFunction: @escaping zymathFuncation){
let session = URLSession.shared;
let str = BmobRequestConfig.parmasStringWithParmas(parmas);
let url = URL(string: urlString);
var request = URLRequest(url: url!);
request.httpMethod = "POST";
request.httpBody = str.data(using: String.Encoding(rawValue: String.Encoding.utf8.rawValue));
request = BmobRequestConfig.setRequestHeader(request: request);
let task = session.dataTask(with:request, completionHandler: { (data, respons, error) -> Void in
let bmconfig = BmobRequestConfig().requestTask(data: data, response: respons, error: error);
mathFunction(bmconfig.anyObject,bmconfig.isSuccess,bmconfig.zyError);
})
task.resume();
}
/**
* update
*/
class func zyUpwithURLSession(_ urlString:String,parmas:Dictionary<String,Any>,mathFunction:@escaping (_ responObject:AnyObject,_ isSuccess:Bool,_ zyError:Error?)->Void){
let session = URLSession.shared;
let url = URL(string: urlString);
var request = URLRequest(url: url!);
request.httpMethod = "PUT";
request = BmobRequestConfig.setRequestHeader(request: request);
let jsonData = try?JSONSerialization.data(withJSONObject: parmas, options: JSONSerialization.WritingOptions.prettyPrinted);
request.httpBody = jsonData! as Data;
let task = session.dataTask(with:request, completionHandler: { (data, respons, error) -> Void in
let bmconfig = BmobRequestConfig().requestTask(data: data, response: respons, error: error);
mathFunction(bmconfig.anyObject,bmconfig.isSuccess,bmconfig.zyError);
})
task.resume();
}
/**
* delete
*/
class func zyDeletewithURLSession(_ urlString:String,_ mathFunction: @escaping zymathFuncation){
let session = URLSession.shared;
let url = URL(string: urlString);
var request = URLRequest(url: url!);
request.httpMethod = "DELETE";
request = BmobRequestConfig.setRequestHeader(request: request);
let task = session.dataTask(with:request, completionHandler: { (data, respons, error) -> Void in
let bmconfig = BmobRequestConfig().requestTask(data: data, response: respons, error: error);
mathFunction(bmconfig.anyObject,bmconfig.isSuccess,bmconfig.zyError);
})
task.resume();
}
/**
* POST ROW请求格式请求
*/
class func zyRowPOSTwithURLSession(_ urlString:String,parmas:Dictionary<String,Any>,_ mathFunction: @escaping zymathFuncation){
let session = URLSession.shared;
let url = URL(string: urlString);
var request = URLRequest(url: url!);
request.httpMethod = "POST";
let jsonData = try?JSONSerialization.data(withJSONObject: parmas, options: JSONSerialization.WritingOptions.prettyPrinted);
request.httpBody = jsonData;
request = BmobRequestConfig.setRequestHeader(request: request);
let task = session.dataTask(with:request, completionHandler: { (data, respons, error) -> Void in
let bmconfig = BmobRequestConfig().requestTask(data: data, response: respons, error: error);
mathFunction(bmconfig.anyObject,bmconfig.isSuccess,bmconfig.zyError);
})
task.resume();
}
}
|
[
-1
] |
13c8abe7f0fe20ca0734d2b844f87db5bb053aeb
|
e892839b2a0a885384498a4a736b6bbe34c90782
|
/Demo/UMParallaxView Demo/TableViewController.swift
|
7a80cf5de8b123985ffb11376e6c35a31db3ad57
|
[
"MIT"
] |
permissive
|
sarathraveendran/UMParallaxView
|
d1bd7598773320181a6bb82a7536548ae5cdb0ff
|
34eb3c9d82dd378e213ee9271fed01d7459c77f4
|
refs/heads/master
| 2021-01-13T16:42:15.311438 | 2016-04-07T06:12:35 | 2016-04-07T06:12:35 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,132 |
swift
|
//
// TableViewController.swift
// UMParallaxView Demo
//
// Created by Ramon Vicente on 4/7/16.
// Copyright © 2016 Umobi. All rights reserved.
//
import UIKit
class TableViewController: UITableViewController {
var headerView: UMParallaxView?
var fixed: Bool = true
override func viewDidLoad() {
super.viewDidLoad()
headerView = UMParallaxView(height: 200, fixed: fixed)
headerView?.image = UIImage(named: "photo1")
headerView?.attachTo(self.tableView)
headerView?.maxHeight = 999
}
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return 100
}
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier("cell", forIndexPath: indexPath)
cell.textLabel?.text = "Row \(indexPath.row )"
return cell
}
override func scrollViewDidScroll(scrollView: UIScrollView) {
headerView?.scrollViewDidScroll(scrollView)
}
}
|
[
-1
] |
a52e38f37e51e8b4b91059968b0ebe809b43a6b6
|
74a7949454d556757ead08c2cea1c7ab68957dbf
|
/WeatherApp/Module/Weather/Protocols/WeatherProtocols.swift
|
75f6315da3236b1d34a7854aa45082012dac5684
|
[] |
no_license
|
gsabatie/WeatherApp
|
0e9509d03e8f038a2658f8f0e62417709d3702c8
|
eba45f0c7d43be2fef72bd336fa757e2417483d3
|
refs/heads/master
| 2020-12-19T15:51:00.185629 | 2020-01-23T11:24:51 | 2020-01-23T11:24:51 | 235,780,146 | 0 | 0 | null | 2020-01-23T11:24:52 | 2020-01-23T11:22:39 |
Swift
|
UTF-8
|
Swift
| false | false | 1,789 |
swift
|
//
// WeatherWeatherProtocols.swift
// WeatherApp
//
// Created by Guillaume on 14/01/2020.
// Copyright © 2020 gsabatie. All rights reserved.
//
import UIKit
import CoreLocation
import MapKit
typealias ForecastBlock = (_ forecast: Forecast?, _ error: Error?) -> ()
typealias AutoCompletionBlock = (_ matchedText: [MKLocalSearchCompletion]?, _ error: Error?) -> ()
//sourcery: AutoMockable
protocol WeatherViewProtocol: class{
var output: WeatherViewEventResponderProtocol? {get set}
var forecast: Forecast? {get set}
var matchedAddresses: [MKLocalSearchCompletion]? {get set}
var isLoading: Bool { get set }
func display(errorMessage: String)
}
//sourcery: AutoMockable
protocol WeatherViewEventResponderProtocol: SearchResultTableViewControllerDelegate {
func viewDidLoad()
func viewWillAppear()
func searchLocality(text: String)
}
//sourcery: AutoMockable
protocol WeatherPresentationProtocol: class {
func presentWeatherFromCurrentLocation()
}
//sourcery: AutoMockable
protocol WeatherUseCaseProtocol: class {
func getMatchedLocalitiesFrom(text: String, completion: @escaping AutoCompletionBlock)
func getStoredForecast() -> Forecast?
func getForecast(
localSearchCompletion: MKLocalSearchCompletion,
completion: @escaping ForecastBlock)
func getLatestForecast(completion: @escaping ForecastBlock)
func getForecast(locality: String, completion: @escaping ForecastBlock)
func getForecast(location: CLLocation, completion: @escaping ForecastBlock)
}
//sourcery: AutoMockable
protocol WeatherInteractorOutputProtocol: class {
}
//sourcery: AutoMockable
protocol WeatherRouterProtocol: class {
func present(from viewController:UIViewController)
}
|
[
-1
] |
6fc5bd9b3893006de86e1edfd067ae57eab3b05f
|
2a67e6787df36d274a6c85a92d224d2a040dfd75
|
/FirebaseTutorial/AppDelegate.swift
|
49ef54777dc264884f4c129e0a62c62ae399f65a
|
[] |
no_license
|
jimmylid12/FirebaseTutorial
|
66ea9a9997d4d33fba50d355138c5ac29ef36733
|
4d2615546498ebbea66fc91bfe9c82f580eace24
|
refs/heads/master
| 2020-03-31T10:30:39.680812 | 2019-03-12T20:51:32 | 2019-03-12T20:51:32 | 152,137,301 | 1 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,182 |
swift
|
//
// AppDelegate.swift
// FirebaseTutorial
//
// Created by James Dacombe on 15/11/2016.
// Copyright © 2016 AppCoda. All rights reserved.
//
import UIKit
import Firebase
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
FirebaseApp.configure()
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
|
[
229380,
229383,
229385,
294924,
229388,
229391,
327695,
229394,
229397,
229399,
229402,
229405,
294950,
229415,
229417,
327722,
237613,
229422,
360496,
237618,
229426,
229428,
286774,
286776,
319544,
286778,
204856,
229432,
352318,
286791,
237640,
286797,
237646,
311375,
196692,
319573,
311383,
311400,
303212,
131192,
237693,
303230,
327814,
303241,
131209,
303244,
311436,
319633,
286873,
286876,
311460,
311469,
32944,
327862,
286906,
327866,
180413,
286910,
286924,
286926,
319694,
131278,
131281,
155872,
131299,
319716,
237807,
303345,
286962,
303347,
229622,
327930,
237826,
319751,
286987,
319757,
286999,
319770,
287003,
287006,
287009,
287012,
287014,
287016,
287019,
311598,
287023,
262448,
311601,
319809,
319810,
319814,
311623,
319818,
311628,
229709,
319822,
287054,
229717,
196969,
139638,
213367,
106872,
319872,
311683,
311693,
65943,
319898,
319903,
311719,
139689,
278957,
311728,
311741,
319938,
319945,
188895,
172512,
287202,
172520,
319978,
172526,
311791,
172529,
319989,
172534,
180727,
287230,
303617,
287234,
172550,
303623,
172552,
320007,
172558,
303632,
303637,
172572,
172577,
295459,
172581,
295461,
172591,
172598,
172607,
172609,
172612,
172614,
213575,
172618,
303690,
33357,
303696,
172634,
262752,
254563,
172644,
311911,
172656,
352880,
295538,
172660,
287349,
287355,
295553,
172675,
295557,
311942,
303751,
352905,
311946,
287371,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
230045,
172702,
172705,
287394,
172707,
303780,
287398,
287400,
172714,
295595,
189102,
172721,
287409,
66227,
287419,
303804,
328381,
287423,
328384,
172737,
287427,
312006,
172748,
287436,
107212,
172751,
287440,
295633,
172755,
303827,
287450,
303835,
189149,
303838,
312035,
295654,
230128,
312048,
312050,
189169,
303871,
230146,
328453,
312077,
295695,
295701,
230169,
295707,
328476,
295710,
295720,
303914,
230202,
312124,
328508,
222018,
295755,
287569,
230237,
230241,
303976,
336744,
303981,
303985,
303987,
328563,
303991,
303997,
295806,
295808,
295813,
304005,
320391,
304007,
304009,
304011,
304013,
295822,
189329,
295825,
304019,
189331,
58262,
304023,
304027,
279461,
304042,
213931,
230327,
304055,
287675,
197564,
230334,
304063,
304065,
295873,
156612,
197580,
312272,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
295945,
230413,
320528,
140312,
295961,
238620,
304164,
304170,
304175,
238641,
312374,
238652,
238655,
238658,
336964,
296004,
320584,
238666,
296021,
402518,
336987,
230497,
296036,
296040,
361576,
205931,
312432,
337018,
66690,
205968,
296084,
238745,
304285,
238756,
222377,
165035,
238766,
165038,
230576,
238770,
304311,
230592,
312518,
230600,
230607,
148690,
320727,
304348,
279777,
304354,
296163,
320740,
304360,
320748,
304370,
296189,
320771,
312585,
296202,
296205,
230674,
320786,
230677,
214294,
296213,
320792,
230681,
296215,
230689,
173350,
312622,
296243,
312630,
296253,
230718,
296255,
312639,
296259,
296262,
230727,
238919,
296264,
320840,
296267,
296271,
312663,
222556,
337244,
230752,
312676,
230760,
148843,
230763,
230768,
296305,
312692,
230773,
304505,
304506,
181626,
312711,
312712,
296331,
288140,
288144,
304533,
173472,
288164,
304555,
173488,
288176,
312755,
312759,
288185,
222652,
312766,
173507,
230860,
312783,
288208,
230865,
148946,
222676,
329177,
239070,
288229,
288232,
296435,
288244,
288250,
296446,
321022,
402942,
296450,
230916,
230919,
230923,
304651,
304653,
222752,
108066,
296486,
296488,
157229,
230961,
157236,
288320,
288325,
124489,
288338,
288344,
239194,
312938,
116354,
419489,
190118,
321195,
296622,
321200,
337585,
296634,
296637,
419522,
313027,
419525,
206536,
206539,
206541,
206543,
263888,
313044,
321239,
313052,
288478,
313055,
419555,
321252,
313066,
288494,
321266,
419570,
288502,
288510,
124671,
67330,
198405,
288519,
198416,
296723,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
321336,
296767,
288576,
345921,
304968,
173907,
313171,
313176,
321381,
296812,
313201,
305028,
247688,
124817,
239510,
124827,
214940,
247709,
214944,
321458,
124853,
214966,
296890,
288700,
296894,
190403,
296900,
337862,
165831,
296921,
354265,
354270,
239586,
313320,
354281,
124913,
165876,
239612,
313340,
288764,
239617,
313347,
313358,
305176,
321560,
313371,
305191,
223273,
313386,
124978,
215090,
124980,
288824,
288826,
321595,
313406,
288831,
288836,
215123,
288859,
280669,
149599,
280671,
149601,
321634,
149603,
280681,
280687,
149618,
215154,
313458,
313464,
329850,
321659,
288895,
321670,
215175,
280725,
313498,
100520,
280747,
288947,
321717,
313548,
321740,
313557,
338147,
280804,
125171,
182517,
280825,
280831,
125187,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
280891,
289087,
305480,
305485,
305489,
248153,
354653,
313700,
313705,
280940,
190832,
313720,
313731,
199051,
240011,
289166,
240017,
297363,
240021,
297365,
297372,
297377,
289186,
289201,
240052,
289207,
289210,
305594,
281024,
289218,
281045,
166378,
305647,
174580,
240124,
305662,
305664,
240129,
305666,
305668,
223749,
240132,
223752,
150025,
338440,
223757,
322074,
150066,
158266,
289342,
322115,
199262,
338528,
338532,
199273,
19053,
158317,
313973,
297594,
158347,
264845,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
174764,
314029,
314033,
240309,
133817,
314045,
314047,
314051,
297671,
158409,
256716,
289493,
363234,
289513,
289522,
289532,
322303,
322310,
264969,
322314,
322318,
322341,
215850,
289601,
240458,
240468,
322393,
297818,
224110,
207733,
207737,
158596,
183172,
338823,
322440,
314249,
183184,
289687,
240535,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
289762,
322534,
297961,
183277,
281581,
322550,
134142,
322563,
314372,
330764,
175134,
322599,
322610,
314421,
281654,
314427,
314433,
314441,
322642,
314456,
314461,
248995,
306341,
306344,
306347,
322734,
306354,
199877,
289997,
249045,
363742,
363745,
330988,
216303,
322801,
388350,
257302,
363802,
199976,
199978,
314671,
298292,
298294,
216376,
380226,
224587,
224594,
216404,
306517,
150870,
314714,
314718,
265568,
314723,
150890,
306539,
314732,
314736,
290161,
216436,
306549,
314743,
306552,
290171,
314747,
298365,
306555,
290174,
224641,
298372,
314756,
224647,
298377,
314763,
142733,
314768,
224657,
306581,
314773,
314779,
314785,
314793,
241068,
241070,
241072,
150966,
306618,
323015,
306635,
306640,
290263,
290270,
290275,
339431,
191985,
290291,
241142,
191992,
290298,
151036,
290302,
290305,
306694,
192008,
323084,
290321,
290325,
241175,
290332,
241181,
290344,
306731,
290349,
290351,
290356,
224849,
282199,
306778,
314979,
323176,
224875,
241260,
323181,
315016,
290445,
175770,
298651,
282269,
323229,
298655,
323231,
306856,
323260,
323266,
241362,
306904,
52959,
241380,
323318,
306945,
323330,
241412,
323333,
323345,
323349,
315167,
315169,
315174,
323367,
241448,
315176,
241450,
306991,
315184,
323376,
315190,
241464,
159545,
298811,
118593,
307009,
413506,
307012,
298822,
315211,
307027,
315221,
315223,
241496,
241498,
307035,
307040,
110433,
241509,
110438,
110445,
315249,
315251,
315253,
315255,
339838,
315267,
241544,
241546,
241548,
298896,
298898,
241556,
298901,
241560,
241563,
241565,
241567,
241569,
241574,
241581,
241583,
323504,
241586,
241588,
241590,
241592,
241598,
290751,
241600,
241605,
241610,
298975,
241632,
298984,
241643,
298988,
241646,
241649,
241652,
323574,
299003,
241661,
299006,
315396,
241669,
315397,
290835,
241693,
241701,
102438,
217127,
323630,
290877,
315463,
315466,
192589,
192596,
307287,
307290,
217179,
315482,
192605,
315483,
233567,
299105,
217188,
299109,
307303,
315495,
356457,
45163,
307307,
315502,
192624,
307314,
299126,
233591,
299136,
307329,
315524,
307338,
241813,
307352,
299164,
241821,
299167,
315552,
315557,
184486,
307370,
168107,
307372,
307374,
307376,
299185,
323763,
184503,
299191,
307385,
258235,
307388,
307390,
307394,
299204,
307396,
184518,
307399,
323784,
233679,
307409,
307411,
299225,
233701,
307432,
184586,
323854,
291104,
307508,
315701,
332086,
307510,
307512,
307515,
307518,
282942,
323917,
110926,
233808,
323921,
315733,
323926,
315739,
299357,
242018,
242024,
299373,
250231,
242043,
315771,
291197,
299391,
291202,
242057,
291212,
299405,
291222,
315801,
242075,
61855,
291231,
291241,
127405,
291247,
299440,
127407,
127413,
291254,
291260,
283069,
127424,
299457,
127434,
315856,
176592,
315860,
283095,
299481,
176605,
160221,
242143,
127455,
127457,
291299,
127463,
242152,
291305,
127466,
127469,
127474,
291314,
291317,
127480,
135672,
291323,
233979,
127485,
291330,
127494,
135689,
233994,
127500,
233998,
127506,
234006,
127511,
152087,
234010,
135707,
242202,
135710,
242206,
242208,
291361,
242220,
291378,
152118,
234041,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
135805,
135808,
373383,
299655,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
135839,
225954,
299684,
135844,
242343,
242345,
373421,
299706,
135873,
135876,
135879,
299720,
299723,
299726,
299740,
201444,
234219,
381677,
316151,
242431,
299778,
234242,
242436,
234246,
234252,
291601,
234258,
242452,
201496,
234264,
234266,
234269,
234272,
152355,
299814,
234281,
234287,
185138,
234296,
160572,
234302,
234307,
316233,
316235,
234319,
185173,
201557,
308063,
234336,
242530,
349027,
234341,
234344,
234347,
234350,
324464,
152435,
177011,
234356,
234358,
234364,
291711,
291714,
234370,
291716,
234373,
201603,
308105,
324504,
234393,
209818,
308123,
324508,
291742,
291748,
234405,
291750,
324518,
324520,
324522,
291754,
291756,
324527,
291760,
324531,
234422,
275384,
324536,
291773,
242623,
324544,
234431,
234434,
324546,
324548,
234437,
234443,
291788,
234446,
234449,
234452,
234455,
234464,
168935,
324585,
234478,
316400,
234481,
316403,
234485,
234487,
316416,
234496,
308231,
234504,
300054,
316439,
234520,
234519,
234526,
234528,
300066,
300069,
234535,
234540,
144430,
234546,
300085,
234549,
234553,
316479,
234561,
316483,
160835,
234563,
308291,
316491,
234572,
300108,
234574,
300115,
242777,
234593,
234597,
300133,
300139,
234605,
160879,
234610,
300148,
144506,
234620,
234634,
275594,
234640,
234643,
308373,
324757,
234647,
234648,
234650,
308379,
300189,
324766,
119967,
234653,
324768,
242852,
300197,
177318,
234667,
316596,
308414,
234687,
300223,
300226,
308418,
234692,
300229,
308420,
308422,
283844,
300234,
283850,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
300263,
300265,
300267,
161003,
300270,
300272,
300278,
275703,
316663,
300284,
275710,
300287,
292097,
300289,
161027,
300292,
300294,
275719,
234760,
177419,
300299,
242957,
300301,
275725,
349451,
177424,
349464,
415009,
300344,
243003,
300357,
283973,
283983,
316758,
357722,
316766,
218464,
316768,
292197,
316774,
218473,
136562,
333178,
275836,
316803,
316806,
316811,
316814,
300433,
234899,
300436,
357783,
316824,
316826,
144796,
300448,
144807,
144810,
284076,
144812,
144814,
144820,
374196,
292279,
144826,
144828,
144830,
144832,
144837,
144839,
144841,
144844,
144847,
144852,
144855,
103899,
300507,
333280,
218597,
292329,
300523,
300527,
308720,
292338,
316917,
292343,
300537,
300543,
316933,
316947,
308757,
308762,
316959,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
194101,
284213,
316983,
194103,
284215,
308790,
284218,
284223,
284226,
284228,
243268,
284231,
284234,
366155,
317004,
284238,
284241,
194130,
284243,
300628,
284245,
284247,
235097,
243290,
284249,
292452,
292454,
292458,
292461,
284272,
284274,
284278,
292470,
292473,
284283,
284286,
292479,
284288,
284290,
325250,
284292,
292485,
284297,
317066,
284299,
317068,
284301,
276109,
284303,
284306,
284308,
284312,
284316,
284320,
284327,
284329,
317098,
284331,
284333,
284335,
300726,
284343,
284346,
284350,
358080,
284354,
358083,
284358,
358089,
284362,
284365,
284368,
284370,
358098,
284372,
317138,
284377,
276187,
358114,
358116,
276197,
317158,
358119,
325353,
358122,
358126,
358128,
358133,
358135,
358138,
300795,
358140,
358142,
358146,
317187,
317189,
317191,
300816,
300819,
317207,
300830,
300832,
325408,
300834,
317221,
358183,
300845,
243504,
300850,
325436,
358206,
366406,
292681,
153417,
358224,
178006,
317271,
292700,
317279,
292715,
300912,
292721,
300915,
292729,
317306,
292734,
325512,
317332,
358292,
399252,
284572,
358312,
317353,
292784,
358326,
358330,
301009,
301011,
301013,
292823,
358360,
301017,
301015,
292828,
153568,
292839,
292843,
178161,
325624,
317435,
317446,
350218,
350222,
317456,
317458,
178195,
243733,
243740,
317468,
317472,
325666,
243751,
243762,
309298,
325685,
325689,
235579,
325692,
235581,
178238,
243779,
325700,
292934,
243785,
350293,
350295,
309337,
350299,
350302,
350304,
178273,
309346,
194660,
350308,
309350,
309348,
292968,
309352,
309354,
301163,
350313,
350316,
301167,
350321,
350325,
252022,
350328,
292985,
292989,
301185,
317570,
350339,
317573,
350342,
350345,
350349,
301199,
317584,
325777,
350354,
350357,
350359,
350362,
350366,
276638,
153765,
350375,
350379,
350381,
350383,
350385,
350387,
350389,
350395,
350397,
350399,
350402,
301252,
350406,
301258,
309450,
309455,
309462,
301272,
194780,
309468,
309471,
317672,
317674,
325867,
309491,
309494,
243960,
325910,
309530,
342298,
211232,
317729,
211241,
325937,
325943,
211260,
235853,
235858,
391523,
293227,
293232,
186744,
211324,
366983,
317833,
227738,
317853,
317858,
342434,
317864,
235955,
293304,
293314,
309707,
317910,
293336,
235996,
317917,
293343,
358880,
293352,
236013,
293364,
301562,
317951,
309764,
301575,
293387,
342541,
113167,
309779,
317971,
309781,
227882,
309804,
236082,
23094,
219714,
301636,
318020,
301639,
301643,
309844,
309849,
326244,
318055,
309871,
121458,
309885,
309888,
301706,
318092,
326285,
334476,
318094,
318108,
318110,
137889,
383658,
318128,
293555,
318132,
342745,
137946,
342747,
342749,
113378,
342760,
56043,
56059,
310015,
285441,
310020,
310029,
293659,
326430,
285474,
293666,
228135,
318248,
318253,
301876,
293685,
301880,
301884,
310080,
293706,
310100,
301911,
301921,
236397,
162671,
326514,
310134,
236408,
15224,
416639,
416640,
113538,
310147,
416648,
187274,
424853,
277411,
310179,
293798,
293802,
236460,
293817,
293820,
203715,
326603,
342994,
318442,
228332,
326638,
351217,
318450,
293876,
285686,
302073,
121850,
293882,
302075,
56313,
293899,
293908,
293917,
293939,
318516,
310336,
293956,
293960,
310344,
203857,
293971,
310355,
310359,
236632,
138332,
203872,
203879,
310376,
228460,
318573,
367737,
302205,
392326,
294026,
162964,
384148,
187542,
302231,
285849,
302233,
285852,
302237,
285854,
285856,
302241,
302248,
294063,
302258,
294072,
318651,
318657,
244930,
302275,
130244,
302277,
302282,
310476,
302285,
302288,
310481,
302290,
302292,
302294,
310486,
302296,
310498,
318698,
302315,
294132,
138485,
204026,
64768,
310531,
285958,
285999,
318773,
318776,
286010,
417086,
302403,
384328,
294221,
294223,
326991,
294246,
327015,
310632,
327017,
351594,
351607,
310648,
310651,
310657,
351619,
294276,
310659,
327046,
310665,
318858,
310672,
351633,
310689,
130468,
310703,
310710,
130486,
310712,
310715,
302526,
302534,
310727,
163272,
302541,
302543,
310737,
286169,
310749,
310755,
310764,
310772,
40440,
212472,
40443,
310780,
286203,
40448,
286214,
302603,
302614,
302621,
286240,
146977,
187939,
40484,
40486,
286246,
294440,
40488,
294439,
294443,
40491,
294445,
278057,
310831,
286248,
245288,
40499,
40502,
212538,
40507,
40511,
40513,
40521,
286283,
40525,
40527,
212560,
400976,
40533,
40537,
40539,
40541,
40544,
40548,
40550,
40552,
40554,
40557,
40560,
294521,
343679,
294537,
310925,
302740,
179870,
327333,
229030,
302764,
278192,
319153,
302781,
319171,
294601,
302793,
343757,
212690,
319187,
229076,
286420,
286425,
319194,
294625,
294634,
302838,
319226,
286460,
171774,
302852,
278277,
302854,
294664,
311048,
319243,
311053,
302862,
319251,
294682,
188199,
294701,
319280,
319290,
229192,
302925,
188247,
188252,
237409,
360317,
294785,
327554,
360322,
40851,
237470,
319390,
40865,
319394,
294821,
311209,
180142,
343983,
188340,
40886,
294844,
294847,
24528,
393177,
294876,
294879,
393190,
294890,
311279,
237555,
311283,
237562
] |
c508d2af21a3fcebb3f2c12db08591d6175dca6b
|
c4b603c3b7c5505c276c243c0d9ace9e194624a8
|
/VContactTests/VContactTests.swift
|
47a8ba3cec500f99f2f3cf01b4c05a91eb628a0f
|
[] |
no_license
|
TuanVuDao/Contact-Swift
|
24118d79703e47cf57c9e4a526814d590fbb6bff
|
dba4aeaa5d48c3f0d14f335c71384d26367495f6
|
refs/heads/master
| 2021-01-10T15:20:11.933061 | 2015-10-02T16:03:10 | 2015-10-02T16:03:10 | 43,562,199 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 968 |
swift
|
//
// VContactTests.swift
// VContactTests
//
// Created by Vu Dao on 9/30/15.
// Copyright © 2015 Vu Dao. All rights reserved.
//
import XCTest
@testable import VContact
class VContactTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measureBlock {
// Put the code you want to measure the time of here.
}
}
}
|
[
333828,
282633,
313357,
317467,
241692,
98333,
278558,
102437,
292902,
354343,
229413,
354345,
278570,
227370,
233517,
309295,
282672,
229424,
237620,
229430,
319542,
180280,
288828,
325694,
288833,
288834,
286788,
254027,
311372,
311374,
223316,
315476,
280661,
278615,
180311,
307289,
354393,
180312,
315487,
237663,
309345,
45153,
280675,
227428,
280677,
307299,
313447,
329829,
131178,
278634,
278638,
319598,
288879,
204916,
284788,
223350,
131191,
280694,
288889,
215164,
131198,
278655,
292992,
280712,
215178,
311438,
278670,
317587,
278677,
284825,
284826,
278685,
311458,
299174,
284841,
284842,
153776,
278704,
239793,
299187,
323762,
131256,
184505,
280762,
227513,
295098,
278714,
223419,
280768,
227524,
309444,
280778,
282831,
280795,
227548,
301279,
311519,
317664,
280802,
356576,
176362,
321772,
286958,
184570,
227578,
184575,
278797,
319763,
309529,
282909,
299293,
278816,
282913,
233762,
237857,
211235,
217380,
211238,
282919,
227616,
98610,
280887,
315706,
282939,
278842,
287041,
260418,
287043,
139589,
280902,
227654,
311621,
332101,
6481,
278869,
289110,
168281,
379225,
323935,
106847,
391520,
321894,
416104,
280939,
285040,
242033,
199029,
291192,
313727,
311681,
311685,
227725,
240016,
178582,
190871,
293274,
285084,
61857,
285090,
61859,
246178,
289189,
289194,
108972,
377264,
293303,
283064,
278970,
293306,
319930,
278978,
291267,
283075,
127427,
127428,
324039,
278989,
281037,
317901,
281040,
278993,
373197,
326100,
328152,
176601,
369116,
285150,
188894,
279008,
358882,
279013,
279018,
291311,
309744,
281072,
279029,
279032,
233978,
279039,
291333,
287241,
279050,
303631,
283153,
279057,
303636,
279062,
279065,
291358,
182817,
180771,
293419,
244269,
283182,
283184,
234036,
289332,
279094,
23092,
338490,
242237,
70209,
115270,
309830,
293448,
55881,
377418,
281166,
281171,
287318,
309846,
297560,
285271,
295519,
242273,
279144,
111208,
279146,
313966,
281199,
295536,
287346,
287352,
301689,
279164,
291454,
189057,
152203,
287374,
311954,
330387,
330388,
117397,
227990,
230040,
295576,
289434,
303771,
221852,
314009,
205471,
279206,
279210,
287404,
295599,
205487,
303793,
279217,
285361,
342706,
299699,
166582,
289462,
314040,
287417,
230072,
285371,
285372,
285373,
285374,
287422,
303803,
158394,
66242,
287433,
225995,
287439,
242386,
279252,
287452,
289502,
279269,
285415,
234217,
342762,
330474,
293612,
230125,
289518,
312047,
279280,
199414,
230134,
228088,
154359,
299770,
234234,
221948,
279294,
205568,
242433,
295682,
299776,
285444,
291585,
322313,
295697,
285458,
166676,
310036,
285466,
283419,
291612,
293664,
326433,
234277,
283430,
262951,
289576,
293672,
279336,
312108,
353069,
285487,
262962,
234294,
230199,
285497,
293693,
289598,
160575,
281408,
342847,
295746,
318278,
353095,
299849,
201551,
281427,
281433,
230234,
234331,
301918,
279392,
295776,
293730,
242529,
303972,
230248,
201577,
400239,
246641,
174963,
207732,
310131,
295798,
228215,
209783,
209785,
279417,
177019,
308092,
246648,
269178,
291712,
158593,
287622,
113542,
228234,
308107,
56208,
308112,
234386,
295824,
293781,
324506,
277403,
324507,
310178,
289698,
189348,
283558,
310182,
293800,
279464,
289703,
236461,
353197,
189374,
289727,
353216,
213960,
279498,
316364,
183248,
50143,
340961,
314342,
234472,
234473,
52200,
326635,
324586,
203757,
304110,
287731,
277492,
316405,
295927,
312314,
293886,
330754,
234500,
277509,
134150,
230410,
330763,
324625,
234514,
277524,
140310,
293910,
320536,
197657,
281626,
175132,
189474,
300068,
330788,
238639,
238651,
308287,
238664,
300111,
234577,
353367,
234587,
277597,
304222,
113760,
281697,
302177,
230499,
281700,
300135,
322663,
228458,
207979,
279660,
15471,
144496,
234609,
312434,
285814,
300151,
279672,
291959,
160891,
285820,
300158,
187521,
150657,
234625,
285828,
279685,
285830,
302213,
302216,
330888,
228491,
234638,
162961,
308372,
185493,
296086,
238743,
187544,
283802,
300187,
296092,
285851,
339102,
302240,
330913,
234663,
300202,
281771,
249002,
238765,
3246,
279728,
238769,
294074,
208058,
64700,
228540,
228542,
339130,
283840,
322749,
302274,
279747,
283847,
353479,
283852,
279760,
228563,
189652,
189653,
279765,
333011,
316627,
296153,
279774,
304351,
310497,
304356,
298212,
290022,
228588,
234733,
298221,
328940,
279792,
302325,
228600,
216315,
208124,
316669,
228609,
234755,
322824,
312587,
292107,
328971,
130338,
339234,
130343,
279854,
298291,
222524,
286013,
333117,
286018,
113987,
279875,
193859,
304456,
230729,
224586,
372043,
177484,
222541,
296270,
238927,
296273,
120148,
314709,
318805,
357719,
283991,
222559,
234850,
230756,
281957,
163175,
134506,
230765,
306542,
296303,
279920,
284014,
243056,
327024,
181625,
290173,
306559,
224640,
179587,
148867,
294275,
298374,
142729,
368011,
296335,
112017,
306579,
9619,
282007,
357786,
318875,
290207,
310692,
333220,
282022,
279974,
282024,
316842,
310701,
279984,
286129,
173491,
304564,
279989,
284089,
228795,
292283,
292292,
306631,
296392,
300489,
310732,
280013,
312782,
64975,
302540,
306639,
310736,
222675,
329173,
212442,
228827,
239068,
286172,
280032,
187878,
316902,
280041,
306673,
296433,
308723,
333300,
306677,
191990,
280055,
300536,
300535,
286202,
333303,
290300,
286205,
228861,
302590,
290301,
296448,
230913,
306692,
306693,
329225,
296461,
304656,
282129,
308756,
282136,
282141,
302623,
333343,
230943,
306723,
286244,
286254,
230959,
288309,
290358,
312889,
280130,
349763,
288326,
282183,
288327,
218696,
292425,
243274,
333388,
286288,
280147,
290390,
128599,
235095,
300630,
306776,
239198,
333408,
286306,
300644,
282213,
325231,
222832,
314998,
288378,
325245,
294529,
282245,
282246,
286343,
288392,
229001,
290443,
310923,
323217,
302739,
282259,
229020,
298654,
282271,
282273,
302754,
282276,
40613,
40614,
40615,
282280,
229029,
300714,
298667,
323236,
286391,
321207,
296632,
306874,
280251,
286399,
282303,
280257,
218819,
282312,
306890,
280267,
302797,
282318,
333517,
212688,
245457,
302802,
241361,
333521,
241365,
280278,
286423,
280280,
282327,
278233,
278234,
67292,
298712,
294622,
18138,
278240,
282339,
153319,
12010,
288491,
280300,
239341,
282348,
284401,
282355,
323316,
282358,
229113,
313081,
286459,
300794,
194304,
278272,
288512,
311042,
288516,
319233,
323331,
216839,
280327,
280329,
282378,
300811,
323332,
321295,
284431,
278291,
278293,
294678,
116505,
284442,
282400,
313120,
241442,
315171,
333610,
284459,
280366,
282417,
200498,
296755,
280372,
280374,
319288,
321337,
282427,
280380,
345919,
282434,
307011,
280390,
282438,
280392,
323406,
304977,
18262,
280410,
284507,
188251,
300894,
284512,
284514,
296806,
276327,
292712,
282474,
288619,
288620,
280430,
313199,
282480,
296814,
313203,
300918,
317304,
194429,
305026,
241540,
67463,
282504,
315273,
315274,
325515,
243597,
184208,
110480,
282518,
282519,
294807,
214937,
239514,
294809,
214938,
298909,
294814,
311199,
292771,
298920,
284587,
292782,
323507,
282549,
288697,
290746,
294843,
280514,
294850,
280519,
284619,
344013,
301008,
24532,
280541,
329695,
292836,
298980,
294886,
247785,
296941,
278512,
311282,
282612,
292858,
290811
] |
63592ad2802ab7499cdda29ef3b3c3a896c780f1
|
0f56d9bb0a69f2422f9639af85bbdb25e67f88b2
|
/Breathe/SceneDelegate.swift
|
361ae3dda5819541131877f3afaec2480fb84a3c
|
[] |
no_license
|
diti223/BreatheFlower
|
6b50c347b20476a4f4a5bc5d9b143156c2035b9e
|
5302ef6e0a635193bcb90ef1f0c9c7d0a5753a16
|
refs/heads/master
| 2021-02-16T13:32:58.665461 | 2020-03-04T22:43:25 | 2020-03-04T22:43:25 | 245,010,873 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,762 |
swift
|
//
// SceneDelegate.swift
// Breathe
//
// Created by Adrian-Dieter Bilescu on 3/4/20.
// Copyright © 2020 Bilescu. All rights reserved.
//
import UIKit
import SwiftUI
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
// Create the SwiftUI view that provides the window contents.
let contentView = ContentView()
// Use a UIHostingController as window root view controller.
if let windowScene = scene as? UIWindowScene {
let window = UIWindow(windowScene: windowScene)
window.rootViewController = UIHostingController(rootView: contentView)
self.window = window
window.makeKeyAndVisible()
}
}
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
func sceneWillResignActive(_ scene: UIScene) {
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}
func sceneWillEnterForeground(_ scene: UIScene) {
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}
func sceneDidEnterBackground(_ scene: UIScene) {
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
}
|
[
268299,
186388,
352294,
163892,
16444,
254020,
217158,
286804,
368736,
342113,
286833,
368753,
192640,
268435,
286880,
333989,
286889,
350411,
346317,
180432,
350417,
368854,
350423,
350426,
334047,
356580,
350449,
387314,
375027,
350459,
336124,
321787,
350462,
336129,
350465,
350469,
389381,
325895,
350477,
194829,
43279,
350481,
350487,
350491,
325915,
381212,
350494,
325918,
182559,
258333,
350500,
194854,
350505,
350510,
395567,
248112,
307507,
340276,
264502,
332098,
201030,
190797,
334162,
418135,
250201,
332126,
258399,
332130,
250211,
250217,
182642,
268669,
194942,
250239,
389507,
393613,
383375,
340380,
268702,
416159,
326059,
373169,
342453,
266688,
338387,
334306,
338411,
162289,
328178,
199165,
266757,
164362,
199182,
334359,
334364,
381483,
334386,
188990,
244309,
340580,
174696,
375401,
191085,
346736,
268922,
336517,
119432,
213642,
330384,
326291,
340639,
332455,
271018,
389806,
385714,
336568,
373450,
418508,
139998,
183006,
338661,
332521,
338665,
418540,
330479,
342769,
418555,
207620,
336644,
191240,
326417,
338712,
199455,
328498,
152371,
326452,
326455,
348983,
340792,
326463,
326468,
127815,
336712,
326474,
326479,
355151,
326486,
136024,
326494,
439138,
326503,
375657,
326508,
201580,
201583,
326511,
355185,
330612,
201589,
359296,
351105,
252801,
373635,
342921,
236432,
361361,
330643,
252838,
252846,
187335,
398280,
347082,
340940,
248799,
386023,
359411,
330750,
265215,
338951,
326669,
330769,
361490,
349203,
209944,
209948,
250915,
357411,
158759,
347178,
209966,
209973,
386102,
209976,
209988,
209991,
347208,
197708,
341072,
345172,
156762,
343132,
322660,
326764,
210028,
326767,
187503,
386168,
210042,
210045,
361599,
351366,
330886,
351382,
337048,
210078,
210081,
251045,
210085,
337072,
210096,
337076,
345268,
210100,
249015,
367801,
343232,
210116,
244934,
326858,
333003,
322763,
343246,
333010,
146644,
210139,
66783,
328933,
388348,
115973,
343307,
333079,
251161,
245021,
208167,
263464,
245032,
245042,
251190,
44343,
386366,
372035,
343366,
126279,
337224,
251211,
357710,
331089,
437588,
263509,
331094,
197987,
208228,
343399,
345449,
99692,
333164,
234867,
249210,
175484,
245128,
361869,
136591,
245137,
245146,
343453,
245149,
245152,
263585,
396706,
245155,
40358,
245158,
245163,
337330,
210357,
146878,
361922,
54724,
339401,
327116,
327118,
208338,
343509,
181717,
343545,
423424,
253445,
339464,
249355,
405017,
345626,
339504,
349748,
206397,
214594,
333387,
366173,
343650,
333415,
327276,
245358,
222831,
333423,
138865,
339572,
372354,
159375,
339602,
333472,
345763,
345766,
425639,
155323,
333499,
337601,
210632,
333512,
339664,
358100,
419543,
212700,
181982,
153311,
337643,
339696,
245495,
141052,
337661,
333566,
366349,
249617,
116512,
210720,
362274,
372533,
345916,
399166,
384831,
247618,
341835,
323404,
354124,
337743,
339795,
354132,
341852,
413539,
399208,
339818,
339827,
358260,
341877,
399222,
182136,
243584,
333699,
333709,
337814,
329625,
382898,
184245,
350153,
346059,
311244,
212945,
419810,
247790,
204785,
380919
] |
f9684de8803e4e6a4e4cf4e5b05c50d9efaef4b5
|
200a321f963e9e98444a9f0c9c8792fb3f8d8113
|
/get coin/StageSelectViewController.swift
|
01d1abb00b371cd3547191c48fe650f2c5663480
|
[] |
no_license
|
sei1204/getCoin
|
ff3ce053f8f23b870835ee9f4e149275c69bcc8d
|
44f6336d995acc8be73dcf53ea63c9aa6f8c91f0
|
refs/heads/master
| 2021-01-10T22:36:10.314452 | 2017-01-15T03:16:50 | 2017-01-15T03:16:50 | 70,380,494 | 1 | 1 | null | 2017-01-15T02:27:40 | 2016-10-09T05:59:50 |
Swift
|
UTF-8
|
Swift
| false | false | 1,321 |
swift
|
//
// StageSelectViewController.swift
// get coin
//
// Created by 三城聖 on 2016/07/10.
// Copyright © 2016年 三城聖. All rights reserved.
//
import UIKit
class StageSelectViewController: UIViewController {
var stageNum: Int!
var appDelegate:AppDelegate = UIApplication.shared.delegate as! AppDelegate
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func back(){
self.dismiss(animated: true, completion: nil)
}
func performSegueToGameScene() {
performSegue(withIdentifier: "toGameScene", sender: nil)
}
@IBAction func stageSelect(sender: UIButton){
print(sender.tag)
stageNum = sender.tag
self.performSegueToGameScene()
}
override func prepare(for segue: UIStoryboardSegue, sender: Any!) {
if (segue.identifier == "toGameScene") {
let GameView = segue.destination as! GameViewController
// GameViewControllerのstageにstageを代入
GameView.stage = self.stageNum
}
}
}
|
[
-1
] |
90f864dbb016a6a2b00c48ae7043b18a2a192f6b
|
7c1fd5ec985d196673cd55bed3da2f0ab8ec3e84
|
/desafio-ios/desafio-ios/Common/Identifable/Identifiable.swift
|
57bdf71bb4fdc13c0c32db23f767e5a3d567b5dd
|
[] |
no_license
|
lazaro10/GitHub
|
1e2c03946c0b26b8b7426266ca82c105fba20140
|
ceae761b7918f48a997094ad2a81925a96c9d270
|
refs/heads/master
| 2020-03-25T22:47:08.678298 | 2018-08-10T05:45:45 | 2018-08-10T05:45:45 | 144,242,055 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 964 |
swift
|
//
// Identifiable.swift
// desafio-ios
//
// Created by Lázaro Lima dos Santos on 30/11/17.
// Copyright © 2017 Lázaro Lima dos Santos. All rights reserved.
//
import UIKit
public protocol Identifiable: class {
static var identifier: String { get }
static var bundle: Bundle { get }
static var nibName: String { get }
}
extension Identifiable where Self: UIView {
public static var identifier: String {
return String(describing: self)
}
public static var bundle: Bundle {
return Bundle(for: self)
}
public static var nibName: String {
return identifier
}
}
extension Identifiable where Self: UIViewController {
public static var identifier: String {
return String(describing: self)
}
public static var bundle: Bundle {
return Bundle(for: self)
}
public static var nibName: String {
return identifier
}
}
|
[
-1
] |
5db21ba35f23204546b0847b7968d5a04ed79a07
|
b1002f55c4e3a1117400b485736f4b56acd07932
|
/alWin/AppDelegate.swift
|
85a76670b535c2df3e8891aa6de95b5e8c07ee37
|
[] |
no_license
|
pershanti/algwynevere
|
2f322e2d5a048df7492b77292adabb553136f612
|
c5609022e95874f19ac35337c388c92d135974f8
|
refs/heads/master
| 2021-07-07T02:41:11.016023 | 2017-09-27T03:09:57 | 2017-09-27T03:09:57 | 104,255,389 | 0 | 2 | null | 2017-09-20T19:13:48 | 2017-09-20T18:51:19 |
Swift
|
UTF-8
|
Swift
| false | false | 2,173 |
swift
|
//
// AppDelegate.swift
// alWin
//
// Created by Shantini Vyas on 9/19/17.
// Copyright © 2017 Shantini Vyas. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
|
[
229380,
229383,
229385,
278539,
294924,
229388,
278542,
229391,
327695,
278545,
229394,
278548,
229397,
229399,
229402,
352284,
229405,
278556,
278559,
229408,
278564,
294950,
229415,
229417,
327722,
237613,
229422,
360496,
229426,
237618,
229428,
311349,
286774,
286776,
319544,
286778,
229432,
204856,
352318,
286791,
237640,
286797,
278605,
311375,
163920,
237646,
196692,
319573,
311383,
278623,
278626,
319590,
311400,
278635,
303212,
278639,
131192,
278648,
237693,
303230,
327814,
303241,
131209,
417930,
303244,
311436,
319633,
286873,
286876,
311460,
311469,
32944,
327862,
286906,
327866,
180413,
286910,
131264,
286916,
295110,
286922,
286924,
286926,
319694,
286928,
131281,
131278,
278743,
278747,
295133,
155872,
131299,
319716,
237807,
303345,
286962,
131314,
229622,
327930,
278781,
278783,
278785,
237826,
319751,
278792,
286987,
319757,
311569,
286999,
319770,
287003,
287006,
287009,
287012,
287014,
287016,
287019,
311598,
287023,
262448,
311601,
295220,
287032,
155966,
319809,
319810,
278849,
319814,
311623,
319818,
311628,
229709,
319822,
287054,
278865,
229717,
196963,
196969,
139638,
213367,
106872,
319872,
311683,
319879,
311693,
65943,
319898,
311719,
278952,
139689,
278957,
311728,
278967,
180668,
311741,
278975,
319938,
278980,
98756,
278983,
319945,
278986,
319947,
278990,
278994,
311767,
279003,
279006,
188895,
172512,
287202,
279010,
279015,
172520,
319978,
279020,
172526,
311791,
279023,
172529,
279027,
319989,
172534,
180727,
164343,
279035,
311804,
287230,
279040,
303617,
287234,
279045,
172550,
303623,
172552,
287238,
320007,
279051,
172558,
279055,
303632,
279058,
303637,
279063,
279067,
172572,
279072,
172577,
295459,
172581,
295461,
279082,
311850,
279084,
172591,
172598,
279095,
172607,
172609,
172612,
377413,
172614,
172618,
303690,
33357,
287309,
303696,
279124,
172634,
262752,
254563,
172644,
311911,
189034,
295533,
172655,
172656,
352880,
295538,
189039,
172660,
287349,
189040,
189044,
287355,
287360,
295553,
172675,
295557,
287365,
311942,
303751,
352905,
279178,
287371,
311946,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
230045,
172702,
164509,
303773,
172705,
287394,
172707,
303780,
287390,
287398,
205479,
279208,
287400,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
287423,
328384,
172737,
279231,
287427,
312005,
312006,
107208,
172748,
287436,
107212,
172751,
287440,
295633,
172755,
303827,
279255,
172760,
287450,
303835,
279258,
189149,
303838,
213724,
312035,
279267,
295654,
279272,
230128,
312048,
312050,
230131,
189169,
205564,
303871,
230146,
328453,
295685,
230154,
33548,
312077,
295695,
295701,
230169,
369433,
295707,
328476,
295710,
230175,
295720,
303914,
279340,
205613,
279353,
230202,
312124,
328508,
222018,
295755,
377676,
148302,
287569,
303959,
230237,
279390,
230241,
279394,
303976,
336744,
303985,
328563,
303987,
279413,
303991,
303997,
295806,
295808,
295813,
304005,
320391,
213895,
304007,
304009,
304011,
230284,
304013,
295822,
279438,
189325,
189329,
295825,
304019,
213902,
189331,
58262,
304023,
304027,
279452,
410526,
279461,
279462,
304042,
213931,
230327,
304055,
287675,
230334,
304063,
238528,
304065,
213954,
189378,
156612,
295873,
213963,
197580,
312272,
304084,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
312321,
295945,
230413,
295949,
197645,
320528,
140312,
295961,
238620,
197663,
304164,
304170,
304175,
238641,
312374,
238652,
238655,
230465,
238658,
336964,
296004,
205895,
320584,
238666,
296021,
402518,
336987,
230497,
296036,
296040,
361576,
205931,
296044,
279661,
205934,
164973,
312432,
279669,
337018,
189562,
279679,
304258,
279683,
222340,
66690,
205968,
296084,
238745,
304285,
238756,
205991,
222377,
165035,
337067,
238766,
165038,
230576,
238770,
304311,
230592,
312518,
279750,
230600,
230607,
148690,
320727,
279769,
304348,
279777,
304354,
296163,
320740,
279781,
304360,
320748,
279788,
279790,
304370,
296189,
320771,
312585,
296202,
296205,
230674,
320786,
230677,
296213,
296215,
320792,
230681,
230679,
214294,
304416,
230689,
173350,
312622,
296243,
312630,
222522,
296253,
222525,
296255,
312639,
230718,
296259,
378181,
296262,
230727,
238919,
296264,
320840,
296267,
296271,
222545,
230739,
312663,
222556,
337244,
230752,
312676,
230760,
173418,
148843,
410987,
230763,
230768,
296305,
312692,
230773,
304505,
304506,
181626,
279929,
181631,
148865,
312711,
312712,
296331,
288140,
288144,
230800,
304533,
337306,
288154,
288160,
173472,
288162,
288164,
279975,
304555,
370092,
279983,
173488,
288176,
279985,
312755,
296373,
312759,
279991,
288185,
337335,
222652,
312766,
173507,
296389,
222665,
230860,
312783,
288208,
230865,
288210,
370130,
288212,
222676,
148946,
288214,
239064,
288217,
329177,
280027,
288220,
288218,
239070,
288224,
280034,
288226,
280036,
288229,
280038,
288230,
288232,
370146,
288234,
320998,
288236,
288238,
288240,
288242,
296435,
288244,
288250,
296446,
321022,
402942,
148990,
296450,
206336,
230916,
230919,
214535,
230923,
304651,
304653,
370187,
402969,
230940,
222752,
108066,
296486,
296488,
157229,
239152,
230961,
157236,
288320,
288325,
124489,
280140,
280145,
288338,
280149,
288344,
280152,
239194,
280158,
403039,
370272,
181854,
239202,
370279,
312938,
280183,
280185,
280188,
280191,
116354,
280194,
280208,
280211,
288408,
280218,
280222,
419489,
190118,
321195,
296622,
321200,
337585,
296626,
296634,
296637,
419522,
313027,
280260,
419525,
206536,
280264,
206539,
206541,
206543,
263888,
313044,
280276,
321239,
280283,
313052,
288478,
313055,
419555,
321252,
313066,
288494,
280302,
280304,
313073,
321266,
288499,
419570,
288502,
280314,
288510,
124671,
67330,
280324,
198405,
288519,
280331,
198416,
280337,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
280363,
141101,
165678,
280375,
321336,
296767,
288576,
345921,
280388,
337732,
304968,
280393,
280402,
173907,
313171,
313176,
42842,
280419,
321381,
296809,
296812,
313201,
1920,
255873,
305028,
280454,
247688,
280464,
124817,
280468,
239510,
280473,
124827,
214940,
247709,
214944,
280487,
313258,
321458,
296883,
124853,
214966,
296890,
10170,
288700,
296894,
190403,
296900,
280515,
337862,
165831,
280521,
231379,
296921,
354265,
354270,
239586,
313320,
354281,
231404,
124913,
165876,
321528,
239612,
313340,
288764,
239617,
313347,
288773,
313358,
305176,
321560,
313371,
354338,
305191,
223273,
313386,
354348,
124978,
215090,
124980,
288824,
288826,
321595,
378941,
313406,
288831,
288836,
67654,
280651,
354382,
288848,
280658,
215123,
354390,
288855,
288859,
280669,
313438,
149599,
280671,
149601,
321634,
149603,
223327,
329830,
280681,
313451,
223341,
280687,
149618,
215154,
313458,
280691,
313464,
329850,
321659,
280702,
288895,
321670,
215175,
141446,
141455,
141459,
280725,
313498,
100520,
288936,
280747,
288940,
288947,
280755,
321717,
280759,
280764,
280769,
280771,
280774,
280776,
313548,
321740,
280783,
280786,
280788,
313557,
280793,
280796,
280798,
338147,
280804,
280807,
157930,
280811,
280817,
125171,
157940,
280819,
182517,
280823,
280825,
280827,
280830,
280831,
280833,
125187,
280835,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
280888,
305464,
280891,
289087,
280897,
280900,
305480,
239944,
280906,
239947,
305485,
305489,
379218,
280919,
248153,
215387,
354653,
354656,
313700,
280937,
313705,
190832,
280946,
223606,
313720,
280956,
239997,
280959,
313731,
199051,
240011,
289166,
240017,
297363,
190868,
240021,
297365,
297368,
297372,
141725,
297377,
289186,
297391,
289201,
240052,
289207,
289210,
305594,
281024,
289218,
289221,
289227,
436684,
281045,
281047,
215526,
166378,
305647,
281075,
174580,
240124,
281084,
305662,
305664,
240129,
305666,
305668,
223749,
240132,
281095,
223752,
150025,
338440,
330244,
223757,
281102,
223763,
223765,
281113,
322074,
281116,
281121,
182819,
289317,
281127,
281135,
150066,
158262,
158266,
289342,
281154,
322115,
158283,
281163,
281179,
338528,
338532,
281190,
199273,
281196,
19053,
158317,
313973,
297594,
281210,
158347,
264845,
182926,
133776,
182929,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
133801,
174764,
314029,
314033,
240309,
133817,
314045,
314047,
314051,
199364,
297671,
158409,
256716,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
289537,
322310,
264969,
322314,
322318,
281361,
281372,
322341,
215850,
281388,
289593,
281401,
289601,
281410,
281413,
281414,
240458,
281420,
240468,
281430,
322393,
297818,
281435,
281438,
281442,
174955,
224110,
207733,
207737,
158596,
183172,
240519,
322440,
314249,
338823,
183184,
142226,
289687,
224151,
240535,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
420829,
281567,
289762,
322534,
297961,
183277,
281581,
322550,
134142,
322563,
314372,
330764,
175134,
322599,
322610,
314421,
281654,
314427,
314433,
207937,
314441,
207949,
322642,
314456,
281691,
314461,
281702,
281704,
314474,
281708,
281711,
289912,
248995,
306341,
306344,
306347,
322734,
306354,
142531,
199877,
289991,
306377,
289997,
249045,
363742,
363745,
298216,
330988,
126190,
216303,
322801,
388350,
257302,
363802,
199976,
199978,
314671,
298292,
298294,
257334,
216376,
380226,
298306,
224584,
224587,
224594,
216404,
306517,
150870,
314714,
224603,
159068,
314718,
265568,
314723,
281960,
150890,
306539,
314732,
314736,
290161,
216436,
306549,
298358,
314743,
306552,
290171,
314747,
298365,
290174,
306555,
224641,
281987,
298372,
314756,
281990,
224647,
265604,
298377,
314763,
142733,
298381,
314768,
224657,
306581,
314773,
314779,
314785,
314793,
282025,
282027,
241068,
241070,
241072,
282034,
241077,
150966,
298424,
306618,
282044,
323015,
306635,
306640,
290263,
290270,
290275,
339431,
282089,
191985,
282098,
290291,
282101,
241142,
191992,
290298,
151036,
290302,
282111,
290305,
175621,
306694,
192008,
323084,
257550,
282127,
290321,
282130,
323090,
290325,
282133,
241175,
290328,
282137,
290332,
241181,
282142,
282144,
290344,
306731,
290349,
290351,
290356,
282186,
224849,
282195,
282199,
282201,
306778,
159324,
159330,
314979,
298598,
323176,
224875,
241260,
323181,
257658,
315016,
282249,
290445,
282255,
282261,
175770,
298651,
282269,
323229,
298655,
323231,
61092,
282277,
306856,
196133,
282295,
282300,
323260,
323266,
282310,
323273,
282319,
306897,
241362,
306904,
282328,
298714,
52959,
216801,
282337,
241380,
216806,
323304,
282345,
12011,
282356,
323318,
282364,
282367,
306945,
241412,
323333,
282376,
216842,
323345,
282388,
323349,
282392,
184090,
315167,
315169,
282402,
315174,
323367,
241448,
315176,
241450,
282410,
306988,
306991,
315184,
323376,
315190,
241464,
159545,
282425,
298811,
118593,
307009,
413506,
307012,
241475,
315211,
282446,
307027,
315221,
323414,
315223,
241496,
241498,
307035,
307040,
110433,
282465,
241509,
110438,
298860,
110445,
282478,
315249,
110450,
315251,
282481,
315253,
315255,
339838,
315267,
282499,
315269,
241544,
282505,
241546,
241548,
298896,
298898,
282514,
241556,
44948,
298901,
241560,
282520,
241563,
241565,
241567,
241569,
282531,
241574,
282537,
298922,
36779,
241581,
282542,
241583,
323504,
241586,
282547,
241588,
290739,
241590,
241592,
241598,
290751,
241600,
241605,
151495,
241610,
298975,
241632,
298984,
241640,
241643,
298988,
241646,
241649,
241652,
323574,
290807,
299003,
241661,
299006,
282623,
315396,
241669,
315397,
282632,
307211,
282639,
290835,
282645,
241693,
282654,
241701,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
192596,
176213,
307287,
307290,
217179,
315482,
192605,
315483,
233567,
299105,
200801,
217188,
299109,
307303,
315495,
356457,
45163,
307307,
315502,
192624,
307314,
323700,
299126,
233591,
299136,
307329,
307338,
233613,
241813,
307352,
299164,
241821,
299167,
315552,
184479,
184481,
315557,
184486,
307370,
307372,
184492,
307374,
307376,
299185,
323763,
184503,
176311,
299191,
307385,
307386,
307388,
258235,
307390,
176316,
299200,
184512,
307394,
299204,
307396,
184518,
307399,
323784,
233679,
307409,
307411,
176343,
299225,
233701,
307432,
184572,
282881,
184579,
282893,
291089,
282906,
291104,
233766,
295583,
176435,
307508,
315701,
332086,
307510,
307512,
168245,
307515,
307518,
282942,
282947,
323917,
110926,
282957,
233808,
323921,
315733,
323926,
233815,
276052,
315739,
323932,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
299388,
299391,
291202,
299398,
242057,
291212,
299405,
291222,
315801,
283033,
242075,
291226,
194654,
61855,
291231,
283042,
291238,
291241,
127403,
127405,
291247,
299440,
127407,
299444,
127413,
283062,
291254,
127417,
291260,
283069,
127421,
127424,
299457,
127429,
127431,
127434,
315856,
176592,
127440,
315860,
176597,
127447,
283095,
299481,
127449,
176605,
242143,
127455,
127457,
291299,
127460,
340454,
127463,
242152,
291305,
127466,
176620,
127469,
127474,
291314,
291317,
127480,
135672,
291323,
233979,
127485,
291330,
127490,
283142,
127494,
127497,
233994,
135689,
127500,
291341,
233998,
127506,
234003,
127509,
234006,
127511,
152087,
283161,
242202,
234010,
135707,
242206,
135710,
242208,
291361,
242220,
291378,
234038,
152118,
234041,
315961,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
291456,
135808,
373383,
299655,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
299677,
225948,
135839,
299680,
225954,
299684,
135844,
242343,
209576,
242345,
373421,
135870,
135873,
135876,
135879,
299720,
299723,
299726,
225998,
226002,
119509,
226005,
226008,
299740,
242396,
201444,
299750,
283368,
234219,
283372,
185074,
226037,
283382,
316151,
234231,
234236,
226045,
242431,
234239,
209665,
234242,
299778,
242436,
226053,
234246,
226056,
234248,
291593,
242443,
234252,
242445,
234254,
291601,
234258,
242450,
242452,
234261,
348950,
201496,
234264,
234266,
234269,
283421,
234272,
234274,
152355,
299814,
234278,
283432,
234281,
234284,
234287,
283440,
185138,
242483,
234292,
234296,
234298,
160572,
283452,
234302,
234307,
242499,
234309,
292433,
316233,
234313,
316235,
234316,
283468,
234319,
242511,
234321,
234324,
185173,
201557,
234329,
234333,
308063,
234336,
242530,
349027,
234338,
234341,
234344,
234347,
177004,
234350,
324464,
234353,
152435,
177011,
234356,
234358,
234362,
226171,
291711,
234368,
291714,
234370,
291716,
234373,
201603,
226182,
234375,
226185,
308105,
234379,
324490,
234384,
234388,
234390,
324504,
234393,
209818,
308123,
324508,
234396,
291742,
226200,
234398,
234401,
291747,
291748,
234405,
291750,
234407,
324520,
324518,
324522,
234410,
291756,
226220,
291754,
324527,
291760,
234417,
201650,
324531,
234414,
234422,
226230,
275384,
324536,
234428,
291773,
242623,
324544,
234431,
234434,
324546,
324548,
226245,
234437,
234439,
226239,
234443,
291788,
234446,
275406,
193486,
234449,
316370,
193488,
234452,
234455,
234459,
234461,
234464,
234467,
234470,
168935,
5096,
324585,
234475,
234478,
316400,
234481,
316403,
234484,
234485,
234487,
324599,
234490,
234493,
316416,
234496,
234501,
275462,
308231,
234504,
234507,
234510,
234515,
300054,
316439,
234520,
234519,
234523,
234526,
234528,
300066,
234532,
300069,
234535,
234537,
234540,
144430,
234543,
234546,
275508,
300085,
234549,
300088,
234553,
234556,
234558,
316479,
234561,
316483,
160835,
234563,
308291,
234568,
234570,
316491,
234572,
300108,
234574,
300115,
234580,
234581,
242777,
234585,
275545,
234590,
234593,
234595,
234597,
300133,
234601,
300139,
234605,
160879,
234607,
275569,
234610,
316530,
300148,
234614,
398455,
144506,
234618,
234620,
275579,
234623,
226433,
234627,
275588,
234629,
242822,
234634,
234636,
177293,
234640,
275602,
234643,
308373,
226453,
234647,
275606,
275608,
234650,
234648,
324757,
300189,
324766,
119967,
234653,
308379,
324768,
283805,
234657,
300197,
234661,
283813,
234664,
242852,
275626,
234667,
177318,
316596,
308414,
234687,
300223,
300226,
308418,
234692,
300229,
308420,
308422,
226500,
283844,
300234,
283850,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
234726,
300263,
300265,
300267,
161003,
300270,
300272,
120053,
300278,
275703,
316663,
300284,
275710,
300287,
292097,
300289,
161027,
300292,
300294,
275719,
234760,
177419,
300299,
242957,
300301,
283917,
177424,
349451,
275725,
349464,
415009,
283939,
259367,
292143,
283951,
300344,
226617,
243003,
283963,
226628,
300357,
283973,
177482,
283983,
316758,
357722,
316766,
292192,
316768,
218464,
292197,
316774,
243046,
218473,
284010,
136562,
324978,
275834,
333178,
275836,
275840,
316803,
316806,
226696,
316811,
226699,
316814,
226703,
300433,
234899,
300436,
226709,
357783,
316824,
316826,
144796,
300448,
144807,
144810,
144812,
284076,
144814,
144820,
374196,
284084,
292279,
284087,
144826,
144828,
144830,
144832,
144835,
144837,
38342,
144839,
144841,
144844,
144847,
144852,
144855,
103899,
300507,
333280,
226787,
218597,
292329,
300523,
259565,
300527,
308720,
259567,
292338,
226802,
227440,
316917,
308727,
292343,
300537,
316933,
316947,
308757,
308762,
284191,
316959,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
194101,
284213,
316983,
194103,
284215,
308790,
284218,
226877,
292414,
284223,
284226,
284228,
292421,
226886,
284231,
128584,
243268,
284234,
276043,
317004,
366155,
284238,
226895,
284241,
194130,
284243,
300628,
284245,
276053,
284247,
317015,
284249,
243290,
284251,
235097,
284253,
300638,
284255,
243293,
284258,
292452,
292454,
284263,
177766,
284265,
292458,
284267,
292461,
284272,
284274,
284278,
292470,
276086,
292473,
284283,
276093,
284286,
292479,
284288,
292481,
284290,
325250,
284292,
292485,
325251,
276095,
276098,
284297,
317066,
284299,
317068,
284301,
276109,
284303,
284306,
276114,
284308,
284312,
284314,
284316,
276127,
284320,
284322,
284327,
284329,
317098,
284331,
276137,
284333,
284335,
276144,
284337,
284339,
300726,
284343,
284346,
284350,
276160,
358080,
284354,
358083,
284358,
276166,
358089,
284362,
276170,
284365,
276175,
284368,
276177,
284370,
358098,
284372,
317138,
284377,
276187,
284379,
284381,
284384,
358114,
284386,
358116,
276197,
317158,
358119,
284392,
325353,
358122,
284394,
284397,
358126,
284399,
358128,
276206,
358133,
358135,
276216,
358138,
300795,
358140,
284413,
358142,
358146,
317187,
284418,
317189,
317191,
284428,
300816,
300819,
317207,
284440,
300828,
300830,
276255,
300832,
325408,
300834,
317221,
227109,
358183,
186151,
276268,
300845,
243504,
300850,
284469,
276280,
325436,
358206,
276291,
366406,
276295,
300872,
292681,
153417,
358224,
284499,
276308,
284502,
317271,
178006,
276315,
292700,
317279,
284511,
227175,
292715,
300912,
292721,
284529,
300915,
284533,
292729,
317306,
284540,
292734,
325512,
169868,
276365,
317332,
358292,
284564,
399252,
284566,
350106,
284572,
276386,
284579,
276388,
358312,
317353,
284585,
276395,
292776,
292784,
276402,
358326,
161718,
358330,
276410,
276411,
276418,
276425,
301009,
301011,
301013,
292823,
358360,
301017,
301015,
292828,
276446,
153568,
276448,
276452,
292839,
276455,
350186,
292843,
276460,
292845,
276464,
178161,
227314,
276466,
325624,
350200,
276472,
317435,
276476,
276479,
276482,
350210,
276485,
317446,
178181,
276490,
350218,
292876,
350222,
317456,
276496,
317458,
178195,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
276528,
178224,
243762,
309298,
325685,
325689,
235579,
325692,
235581,
178238,
276539,
276544,
243779,
325700,
284739,
292934,
243785,
276553,
350293,
350295,
309337,
194649,
227418,
350299,
350302,
227423,
350304,
178273,
309346,
194657,
194660,
350308,
309350,
309348,
292968,
309352,
227426,
276579,
227430,
276583,
309354,
301167,
276590,
350321,
350313,
350316,
284786,
350325,
252022,
276595,
350328,
292985,
301178,
350332,
292989,
301185,
292993,
350339,
317570,
317573,
350342,
350345,
350349,
301199,
317584,
325777,
350354,
350357,
350359,
350362,
350366,
276638,
284837,
153765,
350375,
350379,
350381,
350383,
129200,
350385,
350387,
350389,
350395,
350397,
350399,
227520,
350402,
227522,
301252,
350406,
227529,
301258,
309450,
276685,
309455,
276689,
309462,
301272,
276699,
194780,
309468,
309471,
301283,
317672,
317674,
325867,
243948,
194801,
227571,
309491,
309494,
243960,
276735,
227583,
227587,
276739,
211204,
276742,
227593,
227596,
325910,
309530,
342298,
211232,
317729,
276775,
211241,
325937,
325943,
211260,
260421,
276809,
285002,
276811,
235853,
276816,
235858,
276829,
276833,
391523,
276836,
293227,
276843,
293232,
276848,
186744,
211324,
227709,
285061,
366983,
317833,
178572,
285070,
285077,
178583,
227738,
317853,
276896,
317858,
342434,
285093,
317864,
285098,
276907,
235955,
276917,
293304,
293307,
293314,
309707,
293325,
129486,
317910,
293336,
235996,
317917,
293343,
358880,
276961,
227810,
293346,
276964,
293352,
236013,
293364,
301562,
293370,
317951,
309764,
301575,
121352,
293387,
236043,
342541,
317963,
113167,
55822,
309779,
317971,
309781,
277011,
55837,
227877,
227879,
293417,
227882,
309804,
293421,
105007,
236082,
285236,
23094,
277054,
244288,
219714,
129603,
301636,
318020,
301639,
301643,
277071,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
309871,
121458,
277106,
170618,
170619,
309885,
309888,
277122,
227975,
277128,
285320,
301706,
318092,
326285,
334476,
318094,
277136,
277139,
227992,
334488,
318108,
285340,
318110,
227998,
137889,
383658,
285357,
318128,
277170,
293555,
342707,
154292,
277173,
318132,
285368,
277177,
277181,
318144,
277187,
277191,
277194,
277196,
277201,
342745,
137946,
342747,
342749,
113378,
203491,
228069,
277223,
342760,
285417,
56041,
56043,
56045,
277232,
228081,
56059,
310015,
285441,
310020,
285448,
310029,
228113,
285459,
277273,
293659,
326430,
228128,
285474,
293666,
228135,
318248,
277291,
318253,
293677,
285489,
301876,
293685,
285494,
301880,
285499,
301884,
310080,
293696,
277317,
277322,
277329,
162643,
310100,
301911,
301913,
277337,
301921,
400236,
236397,
162671,
326514,
310134,
236408,
15224,
277368,
416639,
416640,
113538,
310147,
416648,
39817,
187274,
277385,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
293811,
293817,
293820,
203715,
326603,
342994,
276586,
293849,
293861,
228327,
228328,
318442,
228330,
228332,
326638,
277486,
351217,
318450,
293876,
293877,
285686,
302073,
121850,
293882,
302075,
285690,
244731,
293887,
277504,
277507,
277511,
293899,
277519,
293908,
302105,
293917,
293939,
318516,
277561,
277564,
310336,
7232,
293956,
277573,
228422,
293960,
310344,
277577,
277583,
203857,
293971,
310355,
310359,
236632,
277594,
138332,
277598,
203872,
277601,
285792,
310374,
203879,
310376,
228460,
318573,
203886,
187509,
285815,
367737,
285817,
302205,
285821,
392326,
285831,
253064,
294026,
302218,
285835,
162964,
384148,
187542,
302231,
285849,
302233,
285852,
302237,
285854,
285856,
302241,
285862,
277671,
302248,
64682,
277678,
294063,
294065,
302258,
277687,
294072,
318651,
294076,
277695,
318657,
244930,
302275,
130244,
302277,
228550,
302282,
310476,
302285,
302288,
310481,
302290,
203987,
302292,
302294,
310486,
302296,
384222,
310498,
285927,
318698,
302315,
195822,
228592,
294132,
138485,
228601,
204026,
228606,
204031,
64768,
310531,
285958,
138505,
228617,
318742,
204067,
277798,
130345,
277801,
113964,
285997,
384302,
285999,
277804,
113969,
277807,
277811,
318773,
318776,
277816,
286010,
277819,
294204,
417086,
277822,
286016,
302403,
294211,
384328,
277832,
277836,
294221,
146765,
294223,
326991,
277839,
277842,
277847,
277850,
179547,
277853,
146784,
277857,
302436,
277860,
294246,
327015,
310632,
327017,
351594,
277864,
277869,
277872,
351607,
310648,
277880,
310651,
277884,
277888,
310657,
351619,
294276,
310659,
327046,
277892,
253320,
310665,
318858,
277894,
277898,
277903,
310672,
351633,
277905,
277908,
277917,
310689,
277921,
130468,
228776,
277928,
277932,
310703,
277937,
310710,
130486,
310712,
277944,
310715,
277947,
302526,
228799,
277950,
277953,
302534,
310727,
64966,
245191,
163272,
277959,
277963,
302541,
277966,
302543,
310737,
277971,
228825,
163290,
277978,
310749,
277981,
277984,
310755,
277989,
277991,
187880,
277995,
310764,
286188,
278000,
228851,
310772,
278003,
278006,
40440,
212472,
278009,
40443,
286203,
40448,
228864,
286214,
228871,
302603,
65038,
302614,
286233,
302617,
302621,
286240,
146977,
187936,
187939,
40484,
294435,
40486,
286246,
294440,
40488,
294439,
294443,
40491,
294445,
278057,
310831,
245288,
286248,
40499,
40502,
212538,
40507,
40511,
40513,
228933,
327240,
40521,
286283,
40525,
40527,
212560,
400976,
228944,
40533,
147032,
40537,
40539,
40541,
278109,
40544,
40548,
40550,
40552,
286313,
40554,
286312,
310892,
40557,
40560,
188022,
122488,
294521,
343679,
294537,
310925,
286354,
278163,
302740,
122517,
278168,
179870,
327333,
229030,
212648,
278188,
302764,
278192,
319153,
278196,
302781,
319171,
302789,
294599,
278216,
294601,
302793,
343757,
212690,
319187,
278227,
286420,
229076,
286425,
319194,
278235,
301163,
278238,
229086,
286432,
294625,
294634,
302838,
319226,
286460,
278274,
302852,
278277,
302854,
294664,
311048,
352008,
319243,
311053,
302862,
319251,
294682,
278306,
188199,
294701,
278320,
319280,
319290,
229192,
302925,
188247,
280021,
188252,
237409,
229233,
294776,
360317,
294785,
327554,
360322,
40840,
294803,
40851,
188312,
294811,
237470,
319390,
40865,
319394,
294817,
294821,
311209,
180142,
343983,
294831,
188340,
40886,
319419,
294844,
294847,
393177,
294876,
294879,
294883,
393190,
294890,
311279,
278513,
237555,
278516,
311283,
278519,
237562
] |
458affedb96437231ba51530ad78f2d02398f2e9
|
cb360a4f2b70688b15db15b461b0c47bfe3db2e6
|
/MovieViewer/AppDelegate.swift
|
f8b3584954c66954b9c39d6d12938ae93d5b3a2b
|
[
"Apache-2.0"
] |
permissive
|
Farhad33/TheMovieDatabase
|
0ee92a21eb36cb4fd0cbc77c29a196bdcb40175c
|
bd28cacd6786870aa47c8aac2bf16e0c84e28493
|
refs/heads/master
| 2021-01-10T17:16:30.363229 | 2016-02-01T12:23:26 | 2016-02-01T12:23:26 | 49,490,304 | 0 | 2 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,147 |
swift
|
//
// AppDelegate.swift
// MovieViewer
//
// Created by Majid Rahimi on 1/9/16.
// Copyright © 2016 Majid Rahimi. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
func applicationDidEnterBackground(application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
|
[
229380,
229383,
229385,
278539,
229388,
294924,
278542,
229391,
327695,
278545,
229394,
278548,
229397,
229399,
229402,
278556,
229405,
352284,
278559,
278564,
229415,
229417,
327722,
237613,
229426,
237618,
229428,
286774,
229432,
286776,
286778,
319544,
204856,
286791,
237640,
278605,
286797,
311375,
196692,
319573,
311383,
278623,
278626,
319590,
311400,
278635,
303212,
278639,
278648,
131192,
237693,
327814,
131209,
417930,
303241,
311436,
303244,
319633,
286873,
286876,
311460,
311469,
32944,
327862,
286906,
327866,
180413,
286910,
286916,
286922,
286924,
286926,
286928,
131281,
278743,
278747,
295133,
155872,
319716,
278760,
237807,
303345,
286962,
229622,
327930,
278781,
278783,
278785,
237826,
278792,
286987,
319757,
311569,
286999,
319770,
287003,
287006,
287009,
287012,
287014,
287016,
287019,
311598,
287023,
262448,
311601,
155966,
278849,
319809,
319810,
319814,
311623,
319818,
311628,
287054,
319822,
278865,
196963,
196969,
139638,
213367,
106872,
319872,
311683,
319879,
311693,
65943,
319898,
311719,
278952,
139689,
278957,
311728,
278967,
180668,
311741,
278975,
319938,
278980,
278983,
319945,
278986,
278990,
278994,
311767,
279003,
279006,
188895,
279010,
287202,
279015,
172520,
279020,
279023,
311791,
172529,
279027,
319989,
164343,
180727,
279035,
311804,
287230,
279040,
303617,
287234,
279045,
287238,
172550,
172552,
303623,
320007,
279051,
172558,
279055,
303632,
279058,
303637,
279063,
279067,
172572,
279072,
172577,
295459,
172581,
295461,
279082,
279084,
172591,
172598,
279095,
172607,
172609,
172612,
377413,
172614,
172618,
303690,
33357,
279124,
172634,
262752,
172644,
311911,
189034,
295533,
189039,
189040,
172655,
172656,
295538,
189044,
172660,
287349,
352880,
287355,
287360,
295553,
287365,
311942,
303751,
295557,
352905,
279178,
287371,
311946,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
164509,
287390,
295583,
303773,
172702,
287394,
230045,
303780,
172705,
287398,
172707,
287400,
279208,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
328381,
279231,
287423,
328384,
287427,
107208,
279241,
107212,
172748,
287436,
287440,
295633,
172755,
303827,
279255,
279258,
303835,
213724,
189149,
303838,
287450,
279267,
295654,
279272,
230128,
312048,
312050,
230131,
205564,
303871,
230146,
328453,
295685,
230154,
33548,
312077,
295695,
295701,
369433,
230169,
295707,
328476,
295710,
230175,
303914,
279340,
279353,
230202,
312124,
222018,
295755,
377676,
148302,
287569,
279383,
303959,
230237,
279390,
230241,
279394,
303976,
336744,
303985,
328563,
303987,
279413,
303991,
303997,
295806,
295808,
304005,
320391,
213895,
304007,
304009,
304011,
304013,
213902,
279438,
295822,
189329,
295825,
304019,
279445,
58262,
279452,
279461,
279462,
304042,
213931,
230327,
304055,
287675,
197564,
304063,
238528,
304065,
189378,
213954,
156612,
312272,
304084,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
295945,
197645,
295949,
230413,
320528,
140312,
295961,
238620,
304164,
189479,
304170,
238641,
238652,
238655,
230465,
238658,
296004,
336964,
205895,
320584,
238666,
296021,
402518,
336987,
230497,
296036,
296040,
361576,
205931,
296044,
164973,
205934,
279661,
312432,
279669,
337018,
189562,
279679,
279683,
222340,
205968,
296084,
238745,
304285,
238756,
205991,
222377,
165035,
337067,
165038,
238766,
230576,
238770,
304311,
350308,
230592,
279750,
230600,
230607,
148690,
320727,
279769,
304348,
279777,
304354,
296163,
320740,
279781,
304360,
279788,
320748,
279790,
304370,
296189,
320771,
312585,
296202,
296205,
230674,
320786,
230677,
296213,
296215,
320792,
230681,
214294,
304416,
230689,
173350,
312622,
296243,
312630,
222522,
222525,
296253,
312639,
296255,
296259,
378181,
230727,
238919,
320840,
296264,
296267,
296271,
222545,
230739,
337244,
222556,
230752,
312676,
230760,
173418,
410987,
230763,
230768,
296305,
312692,
230773,
279929,
181626,
304506,
304505,
181631,
312711,
312712,
296331,
288140,
230800,
288144,
337306,
288160,
173472,
288162,
288164,
279975,
304555,
370092,
279983,
288176,
279985,
312755,
296373,
279991,
312759,
288185,
337335,
222652,
312766,
173507,
296389,
222665,
230860,
312783,
288208,
230865,
288210,
370130,
288212,
280021,
288214,
222676,
239064,
288217,
288218,
280027,
288220,
329177,
239070,
288224,
288226,
370146,
280036,
288229,
280038,
288230,
288232,
280034,
288234,
288236,
288238,
288240,
291754,
288242,
296435,
288244,
296439,
288250,
402942,
148990,
296446,
206336,
296450,
230916,
230919,
370187,
304651,
304653,
230940,
222752,
108066,
296486,
296488,
157229,
230961,
288320,
288325,
124489,
280140,
280145,
288338,
280149,
280152,
288344,
239194,
280158,
403039,
370272,
312938,
280183,
280185,
280188,
280191,
280194,
116354,
280208,
280211,
288408,
280218,
280222,
321195,
296622,
321200,
337585,
296626,
296634,
296637,
313027,
280260,
280264,
206536,
206539,
206541,
206543,
280276,
321239,
280283,
313052,
288478,
313055,
321252,
313066,
280302,
288494,
419570,
321266,
288499,
288502,
280314,
288510,
124671,
67330,
280324,
198405,
288519,
280331,
198416,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
280363,
141101,
165678,
280375,
321336,
288576,
345921,
280388,
304968,
280393,
280402,
313176,
42842,
280419,
321381,
296812,
313201,
1920,
255873,
305028,
280454,
247688,
280458,
280464,
124817,
280468,
239510,
280473,
124827,
247709,
214944,
280487,
313258,
296883,
124853,
10170,
296890,
288700,
296894,
280515,
190403,
296900,
337862,
165831,
280521,
231379,
296921,
239586,
313320,
231404,
124913,
165876,
321528,
239612,
313340,
288764,
239617,
313347,
288773,
313358,
321560,
305176,
313371,
354338,
305191,
223273,
313386,
354348,
124978,
124980,
288824,
288826,
321595,
378941,
313406,
288831,
288836,
67654,
223303,
280651,
354382,
288848,
280658,
215123,
354390,
288855,
288859,
280669,
313438,
280671,
223327,
149599,
321634,
149601,
149603,
280681,
313451,
223341,
280687,
313458,
280691,
313464,
329850,
321659,
280702,
288895,
321670,
215175,
141455,
141459,
280725,
313498,
288936,
100520,
280747,
288940,
280755,
288947,
321717,
280759,
280764,
280769,
280771,
280774,
280776,
313548,
321740,
280783,
280786,
280788,
313557,
280793,
280796,
280798,
338147,
280804,
280807,
157930,
280811,
280817,
280819,
157940,
125171,
182517,
280823,
280825,
280827,
280830,
280831,
280833,
280835,
125187,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
280888,
280891,
289087,
280897,
280900,
239944,
305480,
280906,
239947,
305485,
305489,
280919,
354653,
313700,
280937,
313705,
280940,
190832,
280946,
313720,
280956,
239997,
280959,
313731,
199051,
240011,
289166,
240017,
297363,
190868,
297365,
240021,
297368,
297372,
141725,
297377,
289186,
297391,
289201,
240052,
289207,
305594,
289210,
281024,
289218,
289221,
289227,
281045,
281047,
215526,
166378,
305647,
281075,
174580,
281084,
240124,
305662,
305664,
240129,
305666,
305668,
240132,
223749,
281095,
338440,
150025,
223752,
223757,
281102,
223763,
223765,
281113,
322074,
281116,
281121,
182819,
281127,
281135,
150066,
158262,
158266,
289342,
281154,
322115,
158283,
281163,
281179,
199262,
338532,
281190,
199273,
281196,
158317,
313973,
281210,
158347,
133776,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
133801,
314029,
314033,
240309,
133817,
314047,
314051,
199364,
297671,
199367,
158409,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
322310,
264969,
322314,
322318,
281361,
281372,
322341,
215850,
281388,
207661,
289593,
281401,
289601,
281410,
281413,
281414,
240458,
281420,
240468,
281430,
322393,
297818,
281435,
281438,
281442,
174955,
224110,
207737,
183172,
240519,
322440,
338823,
314249,
183184,
289687,
240535,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
281567,
289762,
322534,
297961,
281581,
183277,
322550,
134142,
175134,
322599,
322610,
314421,
281654,
314427,
207937,
314433,
207949,
322642,
314456,
281691,
314461,
281702,
281704,
281708,
281711,
289912,
248995,
306341,
306347,
306354,
142531,
199877,
289991,
306377,
289997,
363742,
363745,
298216,
330988,
216303,
322801,
388350,
363802,
199976,
199978,
314671,
298292,
298294,
216376,
298306,
380226,
224584,
224587,
224594,
216404,
306517,
314714,
224603,
159068,
314718,
314723,
281960,
150890,
306539,
314732,
314736,
290161,
216436,
306549,
298358,
314743,
306552,
290171,
314747,
306555,
290174,
224641,
281987,
298372,
314756,
281990,
224647,
298377,
314763,
224657,
306581,
314779,
314785,
282025,
314793,
282027,
241068,
241070,
241072,
282034,
150966,
298424,
306618,
282044,
323015,
306635,
306640,
290263,
290270,
290275,
339431,
282089,
191985,
282098,
282101,
241142,
191992,
290298,
151036,
290302,
282111,
290305,
175621,
192008,
323084,
282127,
290321,
282130,
282133,
290325,
241175,
290328,
290332,
241181,
282142,
282144,
290344,
306731,
290349,
290351,
290356,
282186,
224849,
282195,
282201,
306778,
159324,
159330,
314979,
298598,
323176,
224875,
241260,
257658,
315016,
282249,
290445,
324757,
282261,
298651,
282269,
323229,
298655,
323231,
61092,
282277,
282295,
282300,
323260,
323266,
282310,
323273,
282319,
306897,
241362,
282328,
298714,
52959,
216801,
282337,
241380,
216806,
323304,
282345,
12011,
282356,
323318,
282364,
282367,
306945,
241412,
323333,
282376,
216842,
323345,
282388,
282392,
184090,
315167,
315169,
282402,
315174,
323367,
241448,
315176,
282410,
241450,
306988,
306991,
315184,
315190,
241464,
282425,
159545,
298811,
307009,
413506,
307012,
315211,
307027,
315221,
282454,
315223,
241496,
241498,
307035,
307040,
282465,
241509,
110438,
298860,
110445,
282478,
282481,
110450,
315251,
315249,
315253,
315255,
339838,
282499,
315267,
315269,
241544,
282505,
241546,
241548,
298896,
282514,
298898,
44948,
298901,
241556,
282520,
241560,
241563,
241565,
241567,
241569,
282531,
241574,
282537,
298922,
241581,
241583,
323504,
241586,
282547,
241588,
241590,
241592,
241598,
290751,
241600,
241605,
151495,
241610,
298975,
241632,
298984,
241643,
298988,
241646,
241649,
241652,
323574,
290807,
241661,
299006,
282623,
315396,
241669,
315397,
282632,
282639,
282645,
241693,
282654,
241701,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
307287,
315482,
217179,
315483,
192605,
200801,
299105,
217188,
299109,
307303,
315495,
356457,
45163,
307307,
315502,
192624,
307314,
323700,
299126,
233591,
307329,
307338,
233613,
241813,
307352,
299164,
184479,
299167,
184481,
184486,
307370,
307372,
307374,
307376,
323763,
176311,
299191,
307385,
307386,
258235,
176316,
307388,
307390,
184503,
299200,
307394,
307396,
184518,
307399,
323784,
307409,
307411,
176343,
299225,
233701,
307432,
282881,
282893,
291089,
282906,
291104,
233766,
282931,
307508,
315701,
307510,
332086,
151864,
307512,
307515,
282942,
307518,
151874,
282947,
282957,
323917,
110926,
233808,
323921,
315733,
323926,
233815,
315739,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
299391,
291202,
299398,
242057,
291212,
299405,
291222,
283033,
291226,
242075,
315801,
291231,
283042,
291238,
291241,
127403,
127405,
291247,
127407,
299440,
299444,
127413,
283062,
291254,
127417,
291260,
283069,
127421,
127424,
299457,
127431,
283080,
176592,
315856,
315860,
176597,
283095,
127447,
299481,
176605,
242143,
291299,
127463,
242152,
291305,
127466,
176620,
127474,
291314,
291317,
135672,
233979,
291323,
291330,
283142,
127497,
233994,
135689,
233998,
234003,
234006,
152087,
127511,
283161,
242202,
234010,
135707,
242206,
135710,
242208,
291361,
291378,
234038,
152118,
234041,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
291456,
135808,
373383,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
299677,
135839,
299680,
225954,
299684,
242343,
209576,
242345,
373421,
135870,
135873,
135876,
135879,
299720,
299723,
225998,
299726,
226002,
226005,
119509,
226008,
201444,
299750,
283368,
234219,
283372,
381677,
226037,
283382,
234231,
316151,
234236,
226045,
234239,
242431,
209665,
234242,
299778,
242436,
226053,
234246,
226056,
234248,
291593,
242443,
234252,
242445,
234254,
291601,
234258,
242450,
242452,
234261,
348950,
201496,
234264,
234266,
283421,
234269,
234272,
234274,
152355,
234278,
299814,
283432,
234281,
234284,
234287,
283440,
185138,
242483,
234292,
234296,
234298,
283452,
160572,
234302,
234307,
242499,
234309,
292433,
234313,
316233,
316235,
234316,
283468,
242511,
234319,
234321,
234324,
185173,
201557,
234329,
234333,
308063,
234336,
234338,
242530,
349027,
234341,
234344,
234347,
177004,
234350,
324464,
234353,
152435,
177011,
234356,
234358,
234362,
226171,
234364,
291711,
234368,
234370,
201603,
234373,
226182,
234375,
226185,
308105,
234379,
234384,
234388,
234390,
226200,
324504,
234393,
209818,
308123,
324508,
234398,
234396,
291742,
234401,
291747,
291748,
234405,
291750,
234407,
324518,
324520,
234410,
324522,
226220,
291756,
234414,
324527,
291760,
234417,
201650,
324531,
226230,
234422,
275384,
324536,
234428,
291773,
234431,
242623,
324544,
324546,
226239,
324548,
226245,
234437,
234439,
234434,
234443,
193486,
275406,
193488,
234446,
234449,
316370,
234452,
234455,
234459,
234461,
234467,
234470,
168935,
5096,
324585,
234475,
234478,
316400,
234481,
316403,
234484,
234485,
324599,
234487,
234490,
234493,
234496,
316416,
234501,
275462,
308231,
234504,
234507,
234510,
234515,
300054,
234519,
316439,
234520,
234523,
234526,
234528,
300066,
234532,
300069,
234535,
234537,
234540,
144430,
234543,
234546,
275508,
234549,
300085,
300088,
234553,
234556,
234558,
316479,
234561,
316483,
234563,
308291,
234568,
234570,
316491,
300108,
234572,
234574,
300115,
234580,
234581,
275545,
242777,
234585,
234590,
234593,
234595,
300133,
234597,
234601,
300139,
234605,
234607,
160879,
275569,
234610,
300148,
234614,
398455,
144506,
275579,
234618,
234620,
234623,
226433,
234627,
275588,
234629,
242822,
234634,
234636,
177293,
234640,
275602,
234643,
226453,
275606,
234647,
275608,
308373,
234650,
234648,
308379,
283805,
234653,
324766,
119967,
234657,
300189,
324768,
242852,
283813,
234661,
300197,
234664,
275626,
234667,
316596,
308414,
234687,
316610,
300226,
226500,
234692,
300229,
308420,
283844,
308418,
283850,
300234,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
234726,
300263,
300265,
161003,
300267,
300270,
300272,
120053,
300278,
316663,
275703,
300284,
275710,
300287,
283904,
300289,
292097,
300292,
300294,
275719,
300299,
177419,
283917,
300301,
242957,
177424,
275725,
349464,
283939,
259367,
283951,
292143,
300344,
226617,
283963,
243003,
226628,
283973,
300357,
283983,
316758,
357722,
316766,
292192,
316768,
218464,
292197,
316774,
284010,
136562,
324978,
275834,
275836,
275840,
316803,
316806,
316811,
316814,
226703,
300433,
234899,
226709,
357783,
316824,
316826,
144796,
300448,
144807,
144810,
284076,
144812,
144814,
144820,
284084,
284087,
292279,
144826,
144828,
144830,
144832,
284099,
144835,
144837,
38342,
144839,
144841,
144844,
144847,
144852,
144855,
103899,
300507,
333280,
226787,
218597,
292329,
300523,
259565,
259567,
300527,
308720,
226802,
316917,
308727,
292343,
300537,
316947,
308757,
284191,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
284213,
284215,
194103,
284218,
226877,
284223,
284226,
243268,
292421,
226886,
284231,
128584,
284228,
284234,
366155,
276043,
317004,
284238,
226895,
284241,
194130,
284243,
276052,
276053,
284245,
284247,
317015,
284249,
243290,
284251,
300628,
284253,
235097,
284255,
300638,
284258,
292452,
292454,
284263,
284265,
292458,
284267,
292461,
284272,
284274,
276086,
284278,
292470,
292473,
284283,
276093,
284286,
276095,
284288,
292481,
276098,
284290,
325250,
284292,
292479,
292485,
284297,
317066,
284299,
317068,
276109,
284301,
284303,
276114,
284306,
284308,
284312,
284314,
284316,
276127,
284320,
284322,
284327,
276137,
284329,
284331,
317098,
284333,
284335,
276144,
284337,
284339,
300726,
284343,
284346,
284350,
276160,
358080,
284354,
358083,
276166,
284358,
358089,
276170,
284362,
276175,
284368,
276177,
284370,
317138,
284372,
358098,
284377,
276187,
284379,
284381,
284384,
284386,
358114,
358116,
276197,
317158,
358119,
284392,
325353,
284394,
358122,
284397,
276206,
284399,
358126,
358128,
358133,
358135,
276216,
358140,
284413,
358142,
284418,
358146,
317187,
317189,
317191,
284428,
300816,
300819,
317207,
284440,
186139,
300828,
300830,
276255,
325408,
284449,
300834,
300832,
227109,
317221,
358183,
276268,
300845,
194351,
243504,
284469,
276280,
325436,
276291,
366406,
276295,
153417,
276308,
284502,
317271,
276315,
292700,
284511,
227175,
292715,
300912,
284529,
292721,
300915,
292729,
317306,
284540,
292734,
325512,
276365,
284564,
358292,
284566,
350106,
284572,
276386,
284579,
276388,
358312,
284585,
317353,
276395,
292784,
276402,
358326,
161718,
276410,
276411,
358330,
276418,
276425,
301009,
301011,
301013,
292823,
301015,
301017,
358360,
292828,
276446,
153568,
276448,
276452,
276455,
292839,
292843,
276460,
276464,
178161,
276466,
227314,
276472,
317435,
276476,
276479,
276482,
276485,
317446,
276490,
292876,
276496,
317456,
317458,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
276528,
243762,
309298,
325685,
325689,
276539,
235579,
235581,
325692,
178238,
276544,
284739,
292934,
276553,
243785,
350293,
350295,
194649,
227418,
309337,
194654,
227423,
350302,
194657,
227426,
276579,
178273,
194660,
227430,
276583,
309346,
309348,
276586,
309350,
309352,
309354,
276590,
350313,
227440,
350316,
284786,
350321,
276595,
301167,
350325,
350328,
292985,
301178,
292989,
292993,
301185,
350339,
317570,
317573,
350342,
227463,
350345,
350349,
301199,
317584,
325777,
350354,
350357,
350359,
350362,
276638,
350366,
284837,
350375,
350379,
350381,
350383,
129200,
350385,
350387,
350389,
350395,
350397,
350399,
227520,
350402,
227522,
301252,
350406,
227529,
309450,
301258,
276685,
276689,
227540,
309462,
301272,
309468,
309471,
301283,
317672,
276713,
317674,
325867,
227571,
309491,
276725,
309494,
243960,
227583,
276735,
227587,
276739,
276742,
227593,
227596,
325910,
309530,
342298,
276766,
211232,
317729,
276775,
325937,
276789,
325943,
211260,
260421,
276809,
285002,
276811,
235853,
276816,
235858,
276829,
276833,
391523,
276836,
276843,
293227,
276848,
293232,
186744,
285051,
211324,
227709,
285061,
317833,
178572,
285070,
285077,
227738,
317853,
276896,
317858,
342434,
285093,
317864,
285098,
276907,
235955,
276917,
293304,
293307,
293314,
309707,
317910,
293336,
235996,
317917,
293343,
358880,
276961,
227810,
293346,
276964,
293352,
236013,
293364,
301562,
317951,
309764,
301575,
121352,
236043,
342541,
113167,
277011,
317971,
309781,
309779,
227877,
227879,
293417,
227882,
309804,
293421,
105007,
236082,
285236,
277054,
129603,
318020,
301636,
301639,
301643,
277071,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
277106,
121458,
170618,
170619,
309885,
309888,
277122,
227975,
285320,
277128,
301706,
318092,
326285,
318094,
334476,
277136,
277139,
227992,
285340,
318108,
227998,
318110,
137889,
383658,
285357,
318128,
277170,
342707,
154292,
277173,
293555,
318132,
285368,
277177,
277181,
277187,
277191,
277194,
277196,
277201,
137946,
113378,
228069,
277223,
342760,
285417,
56043,
277232,
228081,
56059,
310015,
285441,
310020,
285448,
310029,
285453,
228113,
285459,
277273,
293659,
326430,
228128,
285474,
293666,
228135,
318248,
277291,
293677,
318253,
285489,
293685,
285494,
301880,
301884,
310080,
293696,
277314,
277317,
277322,
301911,
301913,
277337,
301921,
400236,
236397,
162671,
310134,
277368,
15224,
236408,
416639,
416640,
113538,
416648,
39817,
187274,
277385,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
293811,
293820,
203715,
293849,
293861,
228327,
228328,
228330,
318442,
228332,
277486,
326638,
318450,
293876,
293877,
285686,
302073,
285690,
244731,
121850,
302075,
293882,
293887,
277504,
277507,
277511,
277519,
293908,
293917,
293939,
277561,
277564,
310336,
293956,
277573,
228422,
310344,
277577,
293960,
277583,
203857,
310355,
293971,
310359,
236632,
277594,
138332,
277598,
285792,
277601,
203872,
310374,
203879,
310376,
228460,
318573,
203886,
187509,
285815,
285817,
367737,
285821,
302205,
285824,
392326,
285831,
253064,
302218,
285835,
384148,
162964,
187542,
302231,
285849,
302233,
285852,
302237,
285854,
285856,
277671,
302248,
64682,
277678,
228526,
294063,
294065,
302258,
277687,
294072,
318651,
294076,
277695,
318657,
244930,
302275,
130244,
302277,
228550,
302282,
310476,
302285,
302288,
310481,
302290,
203987,
302292,
302294,
302296,
384222,
310498,
285927,
318698,
302315,
195822,
228592,
294132,
138485,
204023,
228601,
228606,
204031,
64768,
310531,
285958,
228617,
138505,
318742,
204067,
277798,
130345,
113964,
285997,
285999,
113969,
277811,
318773,
318776,
277816,
286010,
417086,
277822,
286016,
294211,
302403,
277832,
384328,
277836,
294221,
326991,
294223,
277839,
277850,
179547,
277853,
146784,
277857,
302436,
294246,
327015,
310632,
327017,
351594,
351607,
310648,
310651,
277888,
310657,
351619,
294276,
310659,
277892,
327046,
253320,
310665,
318858,
277898,
277903,
310672,
351633,
277905,
277908,
277917,
310689,
277921,
277923,
130468,
228776,
277932,
310703,
277937,
310710,
130486,
310712,
310715,
302526,
228799,
277953,
64966,
245191,
163272,
302534,
310727,
277959,
302541,
277966,
302543,
310737,
277975,
286169,
228825,
163290,
310749,
277981,
310755,
277989,
187880,
286188,
310764,
278003,
310772,
212472,
278009,
40443,
286203,
228864,
40448,
286214,
228871,
302603,
65038,
302614,
286233,
302617,
302621,
146977,
187939,
294435,
286246,
294439,
286248,
278057,
294440,
294443,
294445,
310831,
212538,
40507,
228933,
286283,
40525,
228944,
212560,
400976,
147032,
40537,
40539,
278109,
40550,
286312,
286313,
40554,
310892,
40557,
188022,
294521,
343679,
310925,
286354,
278163,
122517,
278168,
327333,
229030,
278188,
278192,
319153,
278196,
302781,
319171,
302789,
294599,
278216,
294601,
302793,
343757,
212690,
278227,
229076,
286420,
319187,
286425,
319194,
278235,
229086,
278238,
286432,
294625,
294634,
302838,
319226,
286460,
171774,
278274,
302852,
278277,
302854,
294664,
311048,
352008,
319243,
311053,
302862,
294682,
278306,
188199,
294701,
278320,
319280,
319290,
229192,
302925,
188247,
237409,
294776,
294785,
327554,
40851,
294811,
319390,
294817,
319394,
40865,
311209,
180142,
294831,
188340,
40886,
294844,
294847,
393177,
294876,
294879,
294883,
311279,
278513,
237555,
278516,
311283,
278519,
237562
] |
b31de8dfd9a0818779d54d6d87834796388ab613
|
2a21065ade827303e4c00b60350606172234eb8b
|
/OnlineShopping/SwitClasses/verifyValidations.swift
|
5f876cd8084ec5771bef5963a87bcadd207a2f79
|
[] |
no_license
|
manindertuli126/Group7_W2019_MAD3115_FP
|
c21e110aa546b11bc86773462d71d11b118694c1
|
42a1cf87924a934bafc761bddb2384fe3afd9f87
|
refs/heads/master
| 2020-04-29T06:46:48.306612 | 2019-03-25T02:55:25 | 2019-03-25T02:55:25 | 175,929,391 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 861 |
swift
|
//
// verifyValidations.swift
// OnlineShopping
//
// Created by Macbook on 2019-03-18.
// Copyright © 2019 Macbook. All rights reserved.
//
import Foundation
extension String {
func verifyEmail() -> Bool{
let emailRegEx = "[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,64}"
let emailTest = NSPredicate(format:"SELF MATCHES %@", emailRegEx)
return emailTest.evaluate(with: self)
}
func verifyPassword() -> Bool{
// at least one uppercase,
// at least one digit
// at least one lowercase
// 8 characters total
let passwordTest = NSPredicate(format: "SELF MATCHES %@", "(?=.*[A-Z])(?=.*[0-9])(?=.*[a-z]).{8,}")
return passwordTest.evaluate(with: self)
}
func addDollar() ->String{
return ("$\(self)")
}
}
|
[
-1
] |
fcfa03467ec83d9dc3d6ad716a83a61217b31804
|
897beea605338a1cb9aa7053e3d5c872ce730150
|
/BathroomBuddyTests/BathroomBuddyTests.swift
|
51437b0e16fb70fc921655ef9e871db0868f8d14
|
[] |
no_license
|
isyang1223/BathroomBuddy
|
1f0165d269255ba1177e3db5f75d58d6aa66a2b2
|
40c1d7bc29ccbbbbd7eea45fcfbc457457048942
|
refs/heads/master
| 2020-03-09T07:59:44.261720 | 2018-03-29T20:31:41 | 2018-03-29T20:31:41 | 128,678,478 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 987 |
swift
|
//
// BathroomBuddyTests.swift
// BathroomBuddyTests
//
// Created by Ian Yang on 3/29/18.
// Copyright © 2018 Ian Yang. All rights reserved.
//
import XCTest
@testable import BathroomBuddy
class BathroomBuddyTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}
|
[
360462,
98333,
16419,
229413,
204840,
278570,
344107,
155694,
253999,
237620,
229430,
319542,
180280,
163896,
376894,
286788,
352326,
311372,
196691,
278615,
385116,
237663,
254048,
319591,
131178,
221290,
278634,
278638,
319598,
352368,
204916,
131191,
237689,
131198,
278655,
278677,
196760,
426138,
278685,
311458,
278691,
49316,
32941,
278704,
377009,
278708,
131256,
295098,
139479,
254170,
229597,
311519,
205035,
286958,
327929,
344313,
147717,
368905,
180493,
254226,
368916,
262421,
377114,
237856,
237857,
278816,
311597,
98610,
180535,
336183,
278842,
287041,
287043,
319813,
311621,
139589,
319821,
254286,
344401,
377169,
368981,
155990,
368984,
106847,
98657,
270701,
246127,
270706,
139640,
246136,
246137,
311685,
106888,
385417,
385422,
213403,
385454,
377264,
278970,
311738,
33211,
319930,
336317,
336320,
311745,
278978,
254406,
188871,
278989,
278993,
278999,
328152,
369116,
188894,
287198,
279008,
279013,
279018,
319981,
279029,
254456,
279032,
377338,
377343,
279039,
254465,
287241,
279050,
139792,
303636,
393751,
279065,
377376,
180771,
377386,
197167,
385588,
352829,
115270,
377418,
385615,
426576,
369235,
139872,
66150,
344680,
295536,
287346,
139892,
287352,
344696,
279164,
189057,
311941,
336518,
311945,
369289,
344715,
279177,
311949,
287374,
377489,
311954,
352917,
230040,
271000,
377497,
303771,
221852,
377500,
205471,
344738,
139939,
279206,
295590,
287404,
295599,
205487,
303793,
336564,
164533,
287417,
303803,
287422,
66242,
377539,
287433,
164560,
385747,
279252,
361176,
418520,
287452,
295652,
369385,
230125,
312052,
230134,
172792,
344827,
221948,
279294,
205568,
295682,
197386,
434957,
426774,
197399,
426775,
336671,
344865,
197411,
262951,
279336,
312108,
295724,
197422,
353070,
164656,
295729,
262962,
353069,
328499,
353078,
230199,
197431,
353079,
336702,
295746,
353094,
353095,
353109,
377686,
230234,
189275,
435039,
279392,
295776,
303972,
385893,
246641,
246643,
295798,
246648,
361337,
279417,
254850,
369538,
287622,
295824,
189348,
353195,
140204,
377772,
353197,
304051,
230332,
377790,
353215,
353216,
213957,
213960,
345033,
279498,
386006,
418776,
50143,
123881,
304110,
320494,
287731,
271350,
295927,
312314,
304122,
328700,
320507,
328706,
410627,
320516,
295942,
386056,
230410,
353290,
377869,
320527,
238610,
418837,
140310,
197657,
238623,
336929,
369701,
345132,
238639,
312373,
238651,
377926,
238664,
353367,
156764,
156765,
304222,
230499,
173166,
312434,
377972,
353397,
377983,
279685,
402565,
222343,
386189,
296086,
238743,
296092,
238765,
279728,
238769,
402613,
279747,
353479,
353481,
402634,
353482,
189652,
189653,
419029,
148696,
296153,
279774,
304351,
304356,
222440,
328940,
279792,
353523,
386294,
386301,
320770,
386306,
279814,
328971,
312587,
353551,
320796,
222494,
353584,
345396,
386359,
116026,
378172,
222524,
279875,
312648,
230729,
337225,
304456,
222541,
296270,
238927,
353616,
296273,
222559,
378209,
230756,
386412,
230765,
296303,
279920,
312689,
296307,
116084,
337281,
148867,
378244,
296329,
296335,
9619,
370071,
279974,
173491,
304564,
353719,
361927,
296392,
370123,
148940,
280013,
312782,
222675,
353750,
280032,
271843,
280041,
361963,
296433,
321009,
280055,
288249,
296448,
230913,
329225,
230921,
296461,
304656,
329232,
370197,
402985,
394794,
230959,
288309,
312889,
288318,
280130,
124485,
288326,
288327,
239198,
99938,
312940,
222832,
247416,
337534,
337535,
263809,
288392,
239250,
419478,
345752,
255649,
337591,
321207,
296632,
280251,
321219,
280267,
403148,
9936,
9937,
370388,
272085,
345814,
280278,
280280,
18138,
67292,
345821,
321247,
321249,
345833,
345834,
288491,
280300,
239341,
67315,
173814,
313081,
124669,
288512,
288516,
280329,
321295,
321302,
345879,
116505,
321310,
255776,
247590,
362283,
378668,
296755,
321337,
345919,
436031,
403267,
345929,
18262,
362327,
280410,
370522,
345951,
362337,
345955,
296806,
288619,
288620,
280430,
214895,
313199,
362352,
313203,
124798,
182144,
305026,
67463,
329622,
337815,
124824,
214937,
436131,
354212,
436137,
362417,
124852,
288697,
362431,
214977,
280514,
214984,
362443,
247757,
280541,
329695,
436191,
313319,
337895,
247785,
296941,
436205,
362480,
313339,
43014,
354316,
313357,
182296,
305179,
354345,
223274,
124975,
346162,
124984,
288828,
436285,
288833,
288834,
436292,
403525,
436301,
338001,
354385,
338003,
223316,
280661,
329814,
338007,
354393,
280675,
280677,
43110,
321637,
313447,
436329,
288879,
223350,
280694,
215164,
313469,
215166,
280712,
215178,
346271,
436383,
362659,
239793,
125109,
182456,
379071,
149703,
338119,
346314,
321745,
387296,
280802,
379106,
338150,
346346,
321772,
125169,
338164,
436470,
125183,
149760,
411906,
125188,
313608,
125193,
125198,
272658,
125203,
125208,
305440,
125217,
338218,
321840,
379186,
125235,
280887,
125240,
321860,
182598,
289110,
305495,
215385,
272729,
379225,
321894,
280939,
354676,
199029,
436608,
362881,
240002,
436611,
248194,
395659,
395661,
240016,
108944,
190871,
149916,
420253,
141728,
289189,
108972,
272813,
338356,
436661,
281037,
289232,
281040,
256477,
281072,
174593,
420369,
289304,
207393,
182817,
289332,
174648,
338489,
338490,
322120,
281166,
297560,
354911,
436832,
436834,
191082,
313966,
420463,
281199,
346737,
313971,
346740,
420471,
330379,
330387,
117396,
117397,
346772,
330388,
264856,
289434,
346779,
338613,
166582,
289462,
314040,
158394,
363211,
289502,
363230,
264928,
338662,
330474,
346858,
289518,
199414,
35583,
363263,
322313,
117517,
322319,
166676,
207640,
289576,
191283,
273207,
289598,
420677,
281427,
281433,
330609,
207732,
158593,
240518,
224145,
355217,
256922,
289690,
420773,
289703,
363438,
347055,
289727,
273344,
330689,
363458,
379844,
19399,
338899,
248796,
248797,
207838,
347103,
314342,
289774,
347123,
240630,
314362,
257024,
330754,
330763,
281626,
248872,
322612,
314448,
339030,
314467,
281700,
257125,
322663,
207979,
273515,
404593,
363641,
363644,
150657,
248961,
330888,
363669,
339100,
380061,
429214,
199839,
339102,
330913,
265379,
249002,
306346,
3246,
421048,
339130,
265412,
290000,
298208,
298212,
298213,
290022,
330984,
298221,
298228,
216315,
208124,
363771,
388349,
437505,
322824,
257305,
126237,
339234,
372009,
412971,
298291,
306494,
216386,
224586,
372043,
331090,
314709,
314710,
372054,
159066,
314720,
281957,
306542,
380271,
314739,
208244,
249204,
290173,
306559,
306560,
314751,
298374,
314758,
314760,
142729,
388487,
314766,
306579,
282007,
290207,
314783,
314789,
282022,
314791,
396711,
396712,
282024,
241066,
380337,
380338,
150965,
380357,
339398,
306631,
306639,
413137,
429542,
191981,
290300,
290301,
282114,
372227,
306692,
323080,
323087,
175639,
388632,
396827,
282141,
134686,
282146,
306723,
347694,
290358,
265798,
282183,
265804,
396882,
290390,
306776,
44635,
396895,
323172,
282213,
323178,
224883,
314998,
323196,
175741,
339584,
224901,
282245,
282246,
290443,
323217,
282259,
282271,
282276,
298661,
323236,
282280,
224946,
306874,
110268,
224958,
282303,
274115,
306890,
241361,
282327,
298712,
298720,
12010,
282348,
323316,
282358,
175873,
339715,
323331,
323332,
216839,
339720,
282378,
372496,
323346,
249626,
282400,
339745,
241441,
257830,
421672,
282417,
200498,
282427,
315202,
307011,
282438,
307025,
216918,
241495,
282474,
241528,
339841,
315273,
315274,
110480,
372626,
380821,
282518,
282519,
298909,
118685,
298920,
323507,
290745,
274371,
151497,
372701,
298980,
380908,
282633,
241692,
102437,
315432,
102445,
233517,
176175,
282672,
241716,
225351,
315465,
315476,
307289,
200794,
315487,
356447,
45153,
307301,
438377,
315498,
299121,
233589,
266357,
422019,
241808,
381073,
323729,
233636,
299174,
405687,
184505,
299198,
258239,
389313,
299203,
299209,
372941,
282831,
266449,
356576,
176362,
307435,
438511,
381172,
184570,
184575,
381208,
282909,
299293,
151839,
282913,
233762,
217380,
151847,
282919,
332083,
332085,
332089,
315706,
282939,
241986,
438596,
332101,
323913,
348492,
323916,
323920,
250192,
348500,
168281,
332123,
323935,
332127,
242023,
242029,
160110,
242033,
291192,
340357,
225670,
242058,
373134,
291224,
242078,
283038,
61857,
315810,
61859,
315811,
381347,
340398,
61873,
61880,
283064,
291267,
127427,
127428,
283075,
324039,
373197,
176601,
242139,
160225,
242148,
291311,
233978,
291333,
340490,
283153,
258581,
291358,
283184,
234036,
315960,
348732,
242237,
70209,
348742,
70215,
348749,
381517,
332378,
201308,
111208,
184940,
373358,
389745,
209530,
373375,
152195,
348806,
152203,
184973,
316049,
111253,
316053,
111258,
111259,
176808,
299699,
299700,
422596,
422599,
291530,
225995,
242386,
422617,
422626,
234217,
299759,
299776,
242433,
291585,
430849,
291592,
62220,
422673,
430865,
291604,
422680,
283419,
152365,
422703,
422709,
152374,
242485,
160571,
430910,
160575,
160580,
299849,
283467,
381773,
201551,
242529,
349026,
357218,
275303,
308076,
242541,
209785,
177019,
185211,
308092,
398206,
291712,
381829,
316298,
308107,
308112,
349072,
209817,
324506,
324507,
390045,
185250,
324517,
283558,
185254,
316333,
316343,
373687,
349121,
373706,
316364,
340955,
340961,
324586,
340974,
316405,
349175,
201720,
127992,
357379,
324625,
308243,
316437,
201755,
300068,
357414,
300084,
324666,
308287,
21569,
218186,
300111,
341073,
439384,
250981,
300135,
316520,
300136,
357486,
316526,
144496,
300150,
291959,
300151,
160891,
341115,
300158,
349316,
349318,
373903,
169104,
177296,
308372,
119962,
300187,
300188,
300201,
300202,
373945,
259268,
283847,
62665,
283852,
283853,
259280,
316627,
333011,
357595,
234733,
234742,
128251,
316669,
242954,
292107,
439562,
414990,
251153,
177428,
349462,
382258,
300343,
382269,
193859,
177484,
406861,
259406,
234831,
251213,
120148,
357719,
283991,
374109,
292195,
333160,
243056,
316787,
357762,
112017,
234898,
259475,
275859,
112018,
357786,
251298,
333220,
316842,
374191,
210358,
284089,
292283,
415171,
292292,
300487,
300489,
366037,
210390,
210391,
210393,
144867,
54765,
251378,
308723,
300536,
210433,
366083,
259599,
316946,
308756,
398869,
374296,
374299,
308764,
349726,
431649,
349741,
169518,
431663,
194110,
235070,
349763,
218696,
292425,
243274,
128587,
333388,
333393,
300630,
128599,
235095,
333408,
300644,
374372,
415338,
243307,
54893,
325231,
366203,
325245,
194180,
415375,
153251,
300714,
210603,
300728,
415420,
333503,
218819,
259781,
333517,
333520,
333521,
333523,
325346,
153319,
325352,
284401,
300794,
325371,
194303,
284429,
243472,
366360,
284442,
325404,
325410,
341796,
399147,
431916,
317232,
300848,
259899,
325439,
325445,
153415,
341836,
415567,
325457,
317269,
341847,
350044,
300894,
128862,
284514,
292712,
325484,
423789,
292720,
325492,
276341,
300918,
341879,
317304,
333688,
194429,
112509,
55167,
325503,
333701,
243591,
243597,
325518,
333722,
350109,
292771,
415655,
333735,
284587,
292782,
243637,
301008,
153554,
219101,
292836,
292837,
317415,
325619,
432116,
333817,
292858,
415741,
333828,
358410,
399373,
317467,
145435,
292902,
325674,
129076,
243767,
358456,
309345,
227428,
194666,
260207,
432240,
284788,
333940,
292992,
333955,
415881,
104587,
235662,
325776,
317587,
284826,
333991,
333992,
284842,
153776,
227513,
301251,
309444,
194782,
301279,
317664,
227578,
243962,
375039,
309503,
375051,
325905,
325912,
211235,
432421,
211238,
358703,
358709,
260418,
227654,
6481,
366930,
366929,
6489,
391520,
383332,
416104,
383336,
211326,
317831,
227725,
252308,
317852,
121245,
285090,
375207,
342450,
293303,
293306,
293310,
416197,
129483,
342476,
317901,
326100,
285150,
358882,
342498,
334309,
195045,
391655,
432618,
375276,
309744,
301571,
342536,
342553,
416286,
375333,
293419,
244269,
375343,
23092,
375351,
244281,
301638,
309830,
293448,
55881,
416341,
309846,
244310,
416351,
268899,
39530,
244347,
326287,
375440,
334481,
227990,
318106,
318107,
342682,
318130,
383667,
293556,
342713,
285371,
285372,
285373,
285374,
39614,
318173,
375526,
285415,
342762,
342763,
293612,
154359,
228088,
432893,
162561,
285444,
383754,
310036,
326429,
293664,
326433,
400166,
293672,
318250,
318252,
285487,
375609,
293693,
252741,
293711,
244568,
244570,
293730,
351077,
342887,
228215,
269178,
400252,
359298,
359299,
260996,
113542,
228233,
392074,
228234,
56208,
318364,
310176,
310178,
310182,
293800,
236461,
326581,
326587,
326601,
359381,
433115,
343005,
130016,
64485,
326635,
203757,
187374,
383983,
318461,
293886,
277509,
293893,
433165,
384016,
146448,
277524,
293910,
433174,
252958,
252980,
203830,
359478,
302139,
359495,
277597,
392290,
253029,
285798,
228458,
351344,
187506,
285814,
285820,
392318,
187521,
384131,
285828,
302213,
285830,
302216,
228491,
228493,
285838,
162961,
326804,
187544,
351390,
302240,
343203,
253099,
253100,
318639,
367799,
294074,
113850,
64700,
228542,
302274,
367810,
343234,
244940,
228563,
195808,
310497,
228588,
253167,
302325,
228600,
261377,
228609,
245019,
253216,
130338,
130343,
261425,
351537,
286013,
286018,
113987,
146762,
294218,
294219,
318805,
425304,
294243,
163175,
327024,
327025,
327031,
318848,
294275,
253317,
384393,
368011,
318864,
318868,
318875,
310692,
245161,
310701,
286129,
286132,
228795,
425405,
302529,
302531,
163268,
425418,
310732,
64975,
327121,
228827,
286172,
310757,
187878,
343542,
343543,
286202,
359930,
286205,
302590,
228867,
253451,
253452,
359950,
146964,
253463,
286244,
245287,
245292,
286254,
196164,
56902,
179801,
196187,
343647,
310889,
204397,
138863,
188016,
294529,
229001,
310923,
188048,
425626,
229020,
302754,
245412,
229029,
40614,
40613,
40615,
286391,
384695,
319162,
327358,
286399,
212685,
384720,
212688,
302802,
245457,
286423,
278233,
278234,
294622,
278240,
212716,
212717,
360177,
229113,
286459,
278272,
319233,
360195,
278291,
294678,
286494,
409394,
319292,
360252,
360264,
188251,
376669,
245599,
425825,
425833,
417654,
188292,
253829,
294807,
376732,
311199,
319392,
294823,
327596,
294843,
188348,
237504,
294850,
384964,
163781,
344013,
212942,
212946,
24532,
294886,
253929,
327661,
311281,
311282
] |
012a59709efac034752cdfc5af14e34fc8d9265f
|
6664ef2e9835d5802f405a560ba8a6000830094e
|
/test/IRGen/lazy_globals.swift
|
953d0afa2b70fd7d501fac107a8a99f912c47e1b
|
[
"Apache-2.0",
"Swift-exception"
] |
permissive
|
danielpunkass/swift
|
20a42e0e922c594449901bf02c138de06d857881
|
f7bff6317386839333ded386969ac0e9736bbf71
|
refs/heads/master
| 2021-01-23T00:44:57.662673 | 2017-05-30T14:29:58 | 2017-05-30T14:29:58 | 92,840,463 | 1 | 0 | null | 2017-05-30T14:17:31 | 2017-05-30T14:17:31 | null |
UTF-8
|
Swift
| false | false | 2,255 |
swift
|
// RUN: %target-swift-frontend -assume-parsing-unqualified-ownership-sil -parse-as-library -emit-ir -primary-file %s | %FileCheck %s
// REQUIRES: CPU=x86_64
// CHECK: @globalinit_[[T:.*]]_token0 = internal global i64 0, align 8
// CHECK: @_T012lazy_globals1xSiv = hidden global %TSi zeroinitializer, align 8
// CHECK: @_T012lazy_globals1ySiv = hidden global %TSi zeroinitializer, align 8
// CHECK: @_T012lazy_globals1zSiv = hidden global %TSi zeroinitializer, align 8
// CHECK: define internal swiftcc void @globalinit_[[T]]_func0() {{.*}} {
// CHECK: entry:
// CHECK: store i64 1, i64* getelementptr inbounds (%TSi, %TSi* @_T012lazy_globals1xSiv, i32 0, i32 0), align 8
// CHECK: store i64 2, i64* getelementptr inbounds (%TSi, %TSi* @_T012lazy_globals1ySiv, i32 0, i32 0), align 8
// CHECK: store i64 3, i64* getelementptr inbounds (%TSi, %TSi* @_T012lazy_globals1zSiv, i32 0, i32 0), align 8
// CHECK: ret void
// CHECK: }
// CHECK: define hidden swiftcc i8* @_T012lazy_globals1xSifau() {{.*}} {
// CHECK: entry:
// CHECK: call void @swift_once(i64* @globalinit_[[T]]_token0, i8* bitcast (void ()* @globalinit_[[T]]_func0 to i8*), i8* undef)
// CHECK: ret i8* bitcast (%TSi* @_T012lazy_globals1xSiv to i8*)
// CHECK: }
// CHECK: define hidden swiftcc i8* @_T012lazy_globals1ySifau() {{.*}} {
// CHECK: entry:
// CHECK: call void @swift_once(i64* @globalinit_[[T]]_token0, i8* bitcast (void ()* @globalinit_[[T]]_func0 to i8*), i8* undef)
// CHECK: ret i8* bitcast (%TSi* @_T012lazy_globals1ySiv to i8*)
// CHECK: }
// CHECK: define hidden swiftcc i8* @_T012lazy_globals1zSifau() {{.*}} {
// CHECK: entry:
// CHECK: call void @swift_once(i64* @globalinit_[[T]]_token0, i8* bitcast (void ()* @globalinit_[[T]]_func0 to i8*), i8* undef)
// CHECK: ret i8* bitcast (%TSi* @_T012lazy_globals1zSiv to i8*)
// CHECK: }
var (x, y, z) = (1, 2, 3)
// CHECK: define hidden swiftcc i64 @_T012lazy_globals4getXSiyF() {{.*}} {
// CHECK: entry:
// CHECK: %0 = call swiftcc i8* @_T012lazy_globals1xSifau()
// CHECK: %1 = bitcast i8* %0 to %TSi*
// CHECK: %._value = getelementptr inbounds %TSi, %TSi* %1, i32 0, i32 0
// CHECK: %2 = load i64, i64* %._value, align 8
// CHECK: ret i64 %2
// CHECK: }
func getX() -> Int { return x }
|
[
83666,
71781
] |
b0ba5d4a4bc20ad6d00ed4dd401c649a90e8e537
|
d5c950a1cb5d46de78618970d8e225e371e4aa3b
|
/genetalStoryboard/loginView/around Friends/TestView2.swift
|
4540382608950607348da86a841a9b019cc00d31
|
[] |
no_license
|
TheMacte/UI_iOS
|
fefee254971fb7fa77d32416d2ad9917356b491f
|
2f4a5696c4479ead4a498303af939420a132da2a
|
refs/heads/master
| 2020-12-22T13:08:27.627077 | 2020-03-11T10:40:50 | 2020-03-11T10:40:50 | 236,792,586 | 0 | 0 | null | 2020-03-11T18:10:50 | 2020-01-28T17:17:52 |
Swift
|
UTF-8
|
Swift
| false | false | 333 |
swift
|
//
// TestView2.swift
// loginView
//
// Created by Олег Дмитриев on 13.02.2020.
// Copyright © 2020 DAN. All rights reserved.
//
import UIKit
class TestView2: UIView {
func configure(){
layer.borderWidth = 10
layer.borderColor = UIColor.red.cgColor
layer.masksToBounds = false
}
}
|
[
-1
] |
1f719b38aaffa5a691c5cf764e9a4f07c0fbcb06
|
db3e15cc4de4ee7eb22c435afdf426cabc7b06f8
|
/03-example-app/KooberApp/KooberKit/DataLayer/Repositories/Persistence/UserSessionStore/Implementations/Keychain/KeychainItem.swift
|
5b2d3a1e0e41a4f302a33abbb1ccbe7e0494e9ed
|
[] |
no_license
|
yegorskikh/IOS-App-Architecture
|
fea843c4bf9b459eabd2d5e99d02a2d09fd887ff
|
d6d59a1ac68f3c5196ff8d5c396c13ad6f8b239d
|
refs/heads/main
| 2023-06-19T04:52:43.619157 | 2021-07-08T10:19:25 | 2021-07-08T10:19:25 | 379,761,775 | 1 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 3,485 |
swift
|
/// Copyright (c) 2020 Razeware LLC
///
/// 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, distribute, sublicense, and/or sell
/// copies of the Software, and to permit persons to whom the Software is
/// furnished to do so, subject to the following conditions:
///
/// The above copyright notice and this permission notice shall be included in
/// all copies or substantial portions of the Software.
///
/// Notwithstanding the foregoing, you may not use, copy, modify, merge, publish,
/// distribute, sublicense, create a derivative work, and/or sell copies of the
/// Software in any work that is designed, intended, or marketed for pedagogical or
/// instructional purposes related to programming, coding, application development,
/// or information technology. Permission for such use, copying, modification,
/// merger, publication, distribution, sublicensing, creation of derivative works,
/// or sale is expressly withheld.
///
/// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
/// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
/// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
/// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
/// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
/// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
/// THE SOFTWARE.
import Foundation
class KeychainItem {
// MARK: - Properties
let service: NSString = "KooberCloud"
let itemClass = kSecClass as String
let itemService = kSecAttrService as String
// MARK: - Methods
func asDictionary() -> CFDictionary {
let item: [String: AnyObject] = [itemClass: kSecClassGenericPassword,
itemService: service]
return item as CFDictionary
}
}
class KeychainItemWithData: KeychainItem {
// MARK: - Properties
let data: AnyObject
let itemData = kSecValueData as String
// MARK: - Methods
init(data: Data) {
self.data = data as AnyObject
}
override func asDictionary() -> CFDictionary {
let item: [String: AnyObject] = [itemClass: kSecClassGenericPassword,
itemService: service,
itemData: data]
return item as CFDictionary
}
func attributesAsDictionary() -> CFDictionary {
let attributes: [String: AnyObject] = [itemClass: kSecClassGenericPassword,
itemService: service]
return attributes as CFDictionary
}
func dataAsDictionary() -> CFDictionary {
let justData: [String: AnyObject] = [itemData: data]
return justData as CFDictionary
}
}
class KeychainItemQuery: KeychainItem {
// MARK: - Properties
let matchLimit = kSecMatchLimit as String
let returnData = kSecReturnData as String
// MARK: - Methods
override func asDictionary() -> CFDictionary {
let query: [String: AnyObject] = [itemClass: kSecClassGenericPassword,
itemService: service,
matchLimit: kSecMatchLimitOne,
returnData: kCFBooleanTrue]
return query as CFDictionary
}
}
|
[
379393,
379394,
415242,
379404,
379405,
415244,
379407,
415245,
415248,
415250,
415253,
415254,
379415,
379425,
379426,
379431,
379436,
379437,
379438,
379439,
379444,
379449,
379454,
379459,
411715,
379462,
379466,
379470,
379472,
379473,
379474,
379476,
379477,
379482,
379483,
379485,
379487,
379490,
379492,
379495,
379504,
379509,
379513,
379514,
379515,
379520,
339591,
379527,
379528,
379531,
379532,
379535,
379536,
379538,
373403,
379547,
379551,
339617,
379554,
339619,
379558,
379562,
225963,
225965,
379565,
379566,
225968,
379573,
379575,
225976,
379577,
225983,
225984,
307404,
307405,
307408,
226011,
226012,
309981,
309983,
309984,
309985,
309986,
379625,
379631,
367870,
379649,
367874,
379652,
379653,
379655,
367881,
367882,
367883,
367884,
379660,
379662,
367887,
379664,
379665,
379667,
379669,
379670,
379672,
270631,
270635,
270636,
379691,
379694,
379695,
379698,
379700,
270645,
379703,
379704,
333629,
333631,
379715,
379718,
379720,
379721,
379722,
379725,
333648,
379735,
379737,
379738,
329563,
319330,
309605,
309606,
309607,
309608,
309611,
309612,
309615,
379250,
319349,
379263,
319360,
319362,
379270,
379271,
319370,
319377,
319379,
319381,
379285,
319383,
319384,
319385,
379287,
379289,
379290,
379291,
379298,
379306,
379307,
379308,
379309,
379311,
379312,
379314,
379315,
379316,
379318,
379332,
379333,
379336,
353738,
353740,
353744,
353745,
353749,
379351,
379354,
379369,
379373,
379386,
379388
] |
bee6420729a76186f167e89877804786533649c7
|
1e140c6499c9a5985133e04841556aa5902401fb
|
/studio/LonaStudio/Controls/Picker/PickerProtocol.swift
|
f9d4c1e3653bb94668bc4d26de4acfeb332c4028
|
[
"MIT"
] |
permissive
|
davo/Lona
|
19416c779174e55932b7a3984685cffd91a039e3
|
b4e924aed7b0a30c4909718eeadf8abe1decf263
|
refs/heads/master
| 2020-06-16T10:29:01.806450 | 2019-07-06T01:02:53 | 2019-07-06T01:02:53 | 195,539,721 | 1 | 0 |
MIT
| 2019-07-06T12:58:20 | 2019-07-06T12:58:20 | null |
UTF-8
|
Swift
| false | false | 437 |
swift
|
//
// PickerProtocol.swift
// LonaStudio
//
// Created by Nghia Tran on 12/24/17.
// Copyright © 2017 Devin Abbott. All rights reserved.
//
import Cocoa
protocol Identify {
var id: String { get }
}
protocol Searchable {
var name: String { get }
}
protocol PickerRowViewHoverable {
func onHover(_ hover: Bool)
}
typealias PickerItemType = Identify & Searchable
typealias PickerRowViewType = PickerRowViewHoverable
|
[
-1
] |
0cdf7a6c9696d158aae86045a92817ffc03417e8
|
5f7cb176473b78992ef215d1c62aaac13d196a1f
|
/Sources/ResponsiveView.swift
|
4bb5afbe5b20fff2d9eb56f32c342d757a8e8b80
|
[
"MIT"
] |
permissive
|
shnhrrsn/ResponsiveKit
|
09c632206e396fd2bfbef16bc64519908d3d1f24
|
16f8117462545170076ea58ea7b4b81160d8f1e1
|
refs/heads/master
| 2021-01-18T21:13:24.867371 | 2016-04-19T02:38:50 | 2016-04-19T02:38:50 | 42,022,732 | 0 | 1 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,979 |
swift
|
//
// ResponsiveView.swift
// ResponsiveKit
//
// Copyright (c) 2015 Shaun Harrison
//
// 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, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
import UIKit
public class ResponsiveView: UIView, Responsive, ResponsiveViewProtocol {
internal var responsiveSizeLastBoundsSizeCheck = CGSizeZero
public final var responsiveSize: ResponsiveSize {
didSet {
self.responsiveSizeDidChange(self.responsiveSize)
}
}
public override init(frame: CGRect) {
self.responsiveSize = ResponsiveLength.responsiveSizeForCGSize(frame.size)
super.init(frame: frame)
}
public required init?(coder aDecoder: NSCoder) {
self.responsiveSize = (.Medium, .Medium)
super.init(coder: aDecoder)
self.responsiveSize = ResponsiveLength.responsiveSizeForCGSize(self.bounds.size)
}
public override func layoutSubviews() {
super.layoutSubviews()
self.updateResponsiveSize()
}
public func responsiveSizeDidChange(size: ResponsiveSize) { }
}
|
[
395267,
196612,
395271,
395274,
395278,
395280,
395281,
395282,
395283,
395286,
395287,
395289,
395290,
196638,
395295,
395296,
196641,
98341,
61478,
98344,
98345,
98349,
124987,
174139,
174141,
354364,
229438,
229440,
229441,
395328,
174148,
229444,
395332,
327751,
174152,
395333,
395334,
174155,
174159,
229456,
112721,
106580,
106582,
106585,
106586,
106587,
112730,
174171,
235658,
229524,
303255,
303256,
125087,
215205,
215211,
215212,
241846,
241852,
241859,
241862,
317640,
241864,
241866,
241870,
241877,
106720,
241894,
241897,
241901,
241903,
241904,
241907,
241908,
241910,
260342,
241916,
141565,
141569,
241923,
241928,
141577,
141578,
241930,
241934,
241936,
241937,
141586,
141588,
12565,
227604,
241944,
227608,
12569,
141593,
141594,
141595,
141596,
141597,
141598,
141599,
141600,
141603,
241952,
241957,
141606,
141607,
141608,
289062,
241962,
289067,
141612,
289068,
12592,
289074,
289078,
141627,
141629,
141632,
141633,
241989,
213319,
141640,
141641,
141642,
227610,
141643,
213320,
241992,
241996,
241998,
241999,
242002,
141651,
242006,
141655,
215384,
282967,
141660,
168285,
141663,
141664,
141670,
141677,
141681,
141684,
190840,
190841,
430456,
190843,
190844,
430458,
375168,
141700,
141702,
141707,
430476,
141711,
430483,
217492,
217494,
197018,
197019,
197021,
295330,
295331,
197029,
430502,
168359,
303550,
160205,
381398,
305638,
223741,
61971,
191006,
191007,
57893,
57896,
328232,
420394,
57899,
57900,
295467,
57905,
57906,
336445,
336446,
336450,
336451,
336454,
336455,
336457,
336460,
336465,
336469,
336471,
336472,
336473,
336474,
336478,
336479,
336480,
336482,
336483,
336489,
297620,
297636,
135854,
135861,
242361,
244419,
66247,
244427,
248524,
127693,
244430,
66261,
127702,
127703,
334562,
127716,
334564,
62183,
127727,
127729,
318199,
318200,
142073,
164601,
334590,
318207,
244480,
334591,
334596,
334600,
318218,
334603,
318220,
334602,
334606,
318223,
334607,
318231,
318233,
318234,
318236,
318237,
318241,
187174,
187175,
318246,
187177,
187179,
187180,
314167,
316216,
396088,
396089,
396091,
396092,
396094,
148287,
316224,
396098,
314179,
279367,
396104,
396110,
396112,
396114,
396115,
396118,
396119,
396120,
396122,
396123,
396125,
396126,
396127,
396128,
396129,
299880,
396137,
162668,
299884,
187248,
396147,
396151,
248696,
396153,
187258,
187259,
322430,
185258,
185259,
23469,
185262,
23470,
23472,
23473,
23474,
23475,
23476,
185267,
23479,
287674,
23483,
23487,
281539,
23492,
23494,
228306,
23508,
23515,
23517,
23523,
23531,
23533,
152560,
23552,
171008,
23559,
23561,
23572,
23574,
23575,
23580,
23581,
23585,
23590,
23591,
23594,
23596,
23599,
189488,
97327,
187442,
189490,
187444,
189492,
189493,
187447,
189491,
23601,
97329,
144435,
23607,
144437,
144438,
144441,
97339,
23612,
144442,
144443,
144444,
23616,
144445,
341057,
341060,
222278,
341062,
341063,
341066,
341068,
203862,
285782,
285785,
115805,
115806,
115807,
293982,
115809,
115810,
185446,
115817,
242794,
115819,
115820,
185452,
185454,
115823,
185455,
115825,
115827,
242803,
115829,
242807,
294016,
205959,
40088,
312473,
189594,
208026,
40092,
208027,
189598,
40095,
208029,
208033,
27810,
228512,
228513,
312476,
312478,
189607,
189608,
189609,
189610,
312482,
189612,
312489,
312493,
189617,
312497,
189619,
312498,
189621,
312501,
189623,
189626,
322751,
292041,
292042,
181455,
292049,
152789,
152821,
152825,
294137,
294138,
206094,
206097,
206098,
294162,
206102,
206104,
27931,
206108,
206109,
181533,
294181,
27943,
181544,
294183,
27948,
181553,
173368,
206138,
312479,
173379,
312480,
152906,
152907,
152908,
152909,
152910,
290123,
290125,
290126,
290127,
290130,
312483,
290135,
290136,
245081,
290137,
290139,
378208,
222562,
222563,
222566,
228717,
228721,
222587,
222590,
222591,
222596,
177543,
222599,
222601,
222603,
222604,
54669,
222605,
222606,
222607,
54673,
329120,
54692,
152998,
54698,
54701,
54703,
298431,
370118,
157151,
222689,
222692,
222693,
112111,
112115,
112120,
362020,
362022,
116267,
282156,
34362,
173634,
173635,
316995,
316997,
106085,
319081,
319085,
319088,
300660,
300661,
300662,
300663,
394905,
394908,
394910,
394912,
339622,
147115,
292544,
108230,
341052,
108240,
108245,
212694,
34531,
192230,
192231,
192232,
296681,
34538,
34540,
34541,
216812,
216814,
216815,
216816,
216818,
216819,
296684,
296687,
216822,
296688,
296691,
296692,
216826,
296698,
216828,
216829,
296699,
296700,
216832,
216833,
216834,
296703,
216836,
216837,
216838,
296707,
296708,
296710,
296712,
296713,
313101,
313104,
313108,
313111,
313112,
149274,
149275,
149280,
159523,
321342,
210755,
210756,
210757,
210758,
321353,
218959,
218963,
218964,
223065,
180058,
229209,
223069,
229213,
169824,
229217,
169826,
237413,
169830,
292709,
128873,
169835,
128876,
169837,
128878,
223086,
223087,
128881,
128882,
128883,
128884,
141181,
327550,
108419,
141198,
108431,
108432,
219033,
108448,
219040,
141219,
219043,
219044,
141223,
141228,
141229,
108460,
108462,
229294,
229295,
141235,
141264,
40931,
40932,
141284,
141290,
40940,
40941,
141293,
141295,
174063,
231406,
174066,
174067,
237559,
174074
] |
c0be057132f436a05b8ce3aaaa6d2af6f087e268
|
fae8818ea670fd2f0f24795b8c23c53ac815ca43
|
/MadDemoTests/MadDemoTests.swift
|
ec6300c7e38d31196d8516c2f0292ea1cc10cca4
|
[] |
no_license
|
Dedzed101/Codepath-iOS-Mobile-App-Development
|
db43c589647b74e13ebfcde1b8beac301d4f1be3
|
1b55f84d023316a134d508f4b689535fdd05c7a8
|
refs/heads/main
| 2023-01-30T01:18:45.840707 | 2020-12-15T22:17:33 | 2020-12-15T22:17:33 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 900 |
swift
|
//
// MadDemoTests.swift
// MadDemoTests
//
// Created by Daniel Bracamontes on 12/15/20.
//
import XCTest
@testable import MadDemo
class MadDemoTests: XCTestCase {
override func setUpWithError() throws {
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDownWithError() throws {
// Put teardown code here. This method is called after the invocation of each test method in the class.
}
func testExample() throws {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() throws {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}
|
[
360462,
98333,
16419,
229413,
204840,
278570,
344107,
155694,
253999,
229430,
319542,
163896,
180280,
376894,
352326,
311372,
196691,
278615,
385116,
237663,
254048,
319591,
221290,
278634,
319598,
352368,
204916,
131191,
237689,
278655,
278677,
196760,
426138,
278685,
311458,
278691,
49316,
173,
32941,
278704,
377009,
278708,
131256,
295098,
417988,
417994,
139479,
254170,
229597,
311519,
205035,
286958,
344313,
327929,
147717,
368905,
180493,
254226,
368916,
262421,
377114,
237856,
237857,
278816,
254251,
311597,
98610,
180535,
336183,
278842,
287041,
319821,
254286,
344401,
377169,
368981,
155990,
368984,
106847,
98657,
270701,
246127,
270706,
139640,
246137,
106874,
246136,
311685,
106888,
385417,
311691,
385422,
213403,
385454,
377264,
311738,
33211,
278970,
319930,
336317,
336320,
311745,
278978,
254406,
188871,
278993,
278999,
328152,
369116,
287198,
279008,
279013,
279018,
319981,
279029,
254456,
279032,
377338,
377343,
279039,
254465,
287241,
279050,
139792,
303636,
393751,
279065,
377376,
377386,
197167,
385588,
352829,
115270,
385615,
426576,
369235,
139872,
66150,
344680,
139892,
344696,
287352,
279164,
189057,
311941,
336518,
369289,
311945,
344715,
279177,
311949,
287374,
377489,
311954,
352917,
230040,
271000,
377497,
303771,
377500,
205471,
344738,
139939,
279206,
295590,
287404,
205487,
303793,
336564,
164533,
287417,
287422,
66242,
377539,
164560,
385747,
279252,
361176,
418520,
287452,
295652,
369385,
312052,
172792,
344827,
221948,
205568,
295682,
197386,
434957,
426774,
197399,
426775,
336671,
344865,
197411,
279336,
295724,
312108,
197422,
353070,
164656,
295729,
353069,
328499,
353078,
197431,
230199,
353079,
336702,
353094,
353095,
353109,
377686,
230234,
189275,
435039,
295776,
303972,
385893,
246641,
246643,
295798,
246648,
361337,
279417,
254850,
369538,
287622,
295824,
189348,
353195,
140204,
377772,
353197,
304051,
230332,
377790,
353215,
353216,
213957,
213960,
345033,
279498,
386006,
418776,
50143,
123881,
304110,
320494,
271350,
295927,
304122,
320507,
328700,
328706,
410627,
320516,
295942,
386056,
353290,
254987,
230410,
377869,
320527,
238610,
418837,
140310,
197657,
336929,
369701,
345132,
238639,
312373,
238651,
361535,
377926,
238664,
353367,
156764,
156765,
361566,
304222,
173166,
377972,
353397,
377983,
402565,
279685,
222343,
386189,
296086,
238743,
296092,
238765,
279728,
238769,
402613,
353479,
353481,
353482,
402634,
189653,
419029,
148696,
296153,
279774,
304351,
304356,
222440,
328940,
279792,
353523,
386294,
386301,
320770,
386306,
279814,
328971,
312587,
353551,
320796,
222494,
353584,
345396,
386359,
116026,
378172,
222524,
279875,
312648,
337225,
304456,
230729,
238927,
353616,
296273,
222559,
378209,
230756,
386412,
230765,
279920,
312689,
296307,
116084,
337281,
148867,
378244,
296329,
296335,
9619,
370071,
279974,
173491,
304564,
353719,
361927,
370123,
148940,
280013,
312782,
222675,
353750,
271843,
280041,
361963,
296433,
321009,
280055,
288249,
329225,
230921,
296461,
304656,
329232,
370197,
402985,
394794,
230959,
288309,
312889,
288318,
124485,
288326,
288327,
239198,
99938,
312940,
222832,
247416,
370296,
337534,
337535,
263809,
288392,
239250,
419478,
345752,
255649,
337591,
321207,
296632,
280251,
321219,
280267,
403148,
9936,
9937,
313041,
370388,
272085,
345814,
280278,
280280,
18138,
345821,
321247,
321249,
345833,
345834,
280300,
67315,
173814,
313081,
124669,
288512,
288516,
280329,
321302,
345879,
116505,
321310,
255776,
247590,
362283,
378668,
296755,
321337,
345919,
436031,
403267,
345929,
337745,
255829,
18262,
362327,
370522,
345951,
362337,
345955,
296806,
288619,
214895,
362352,
313199,
313203,
124798,
182144,
305026,
67463,
329622,
337815,
124824,
214937,
436131,
354212,
436137,
362417,
124852,
288697,
362431,
214977,
174019,
214984,
362443,
247757,
346067,
354269,
280541,
329695,
436191,
337895,
354280,
247785,
313319,
436205,
247791,
362480,
313339,
43014,
354316,
313357,
182296,
354345,
223274,
124975,
346162,
124984,
288828,
436285,
288833,
288834,
436292,
403525,
436301,
338001,
354385,
338003,
280661,
329814,
338007,
354393,
280675,
280677,
43110,
321637,
313447,
436329,
288879,
280694,
215164,
313469,
215166,
329859,
280712,
215178,
346271,
436383,
362659,
239793,
125109,
182456,
379071,
149703,
338119,
346314,
321745,
387296,
280802,
379106,
338150,
346346,
321772,
125169,
338164,
436470,
125183,
149760,
411906,
125188,
313608,
125193,
125198,
272658,
125203,
272660,
125208,
305440,
125217,
338218,
321840,
379186,
125235,
280887,
125240,
321860,
182598,
289110,
272729,
215385,
379225,
321894,
280939,
354676,
354677,
436608,
362881,
240002,
436611,
248194,
395659,
395661,
108944,
240016,
190871,
149916,
420253,
141728,
289189,
108972,
272813,
338356,
436661,
289232,
281040,
256477,
281072,
174593,
420369,
289304,
207393,
182817,
289332,
174648,
338489,
338490,
322120,
281166,
297560,
354911,
436832,
436834,
191082,
313966,
420463,
281199,
346737,
313971,
346740,
420471,
330379,
330387,
117396,
346772,
330388,
264856,
289434,
363163,
346779,
338613,
314040,
158394,
363211,
363230,
289502,
264928,
338662,
330474,
346858,
289518,
199414,
363263,
35583,
117517,
322319,
166676,
207640,
289576,
191283,
273207,
289598,
420677,
281427,
281433,
207727,
207729,
330609,
207732,
158593,
240518,
224145,
355217,
256922,
289690,
420773,
289703,
363438,
347055,
289727,
273344,
330689,
363458,
379844,
19399,
338899,
248796,
248797,
207838,
347103,
314342,
289774,
347123,
240630,
314362,
257024,
330754,
330763,
281626,
248872,
322612,
314436,
257094,
314448,
339030,
314467,
281700,
257125,
322663,
273515,
207979,
404593,
363641,
363644,
248961,
150657,
330888,
363669,
339100,
380061,
429214,
199839,
339102,
265379,
249002,
306346,
3246,
421048,
339130,
265412,
290000,
298208,
298212,
298213,
330984,
298221,
298228,
216315,
208124,
363771,
388349,
437505,
322824,
257305,
126237,
339234,
372009,
412971,
306494,
216386,
224586,
372043,
331090,
314710,
372054,
159066,
314720,
380271,
314739,
208244,
249204,
290173,
306559,
314751,
298374,
314758,
314760,
142729,
388487,
314766,
306579,
282007,
290207,
314783,
314789,
314791,
396711,
396712,
282024,
241066,
380337,
380338,
150965,
380357,
339398,
306639,
413137,
429542,
191981,
290301,
282114,
372227,
323080,
323087,
175639,
388632,
396827,
134686,
282146,
306723,
355876,
347694,
290358,
265798,
265804,
396882,
290390,
44635,
396895,
323172,
282213,
323178,
224883,
314998,
323196,
175741,
339584,
339585,
224901,
282245,
282246,
323217,
282259,
323236,
298661,
282280,
61101,
224946,
110268,
224958,
282303,
274115,
306890,
241361,
298712,
298720,
12010,
282348,
282358,
175873,
339715,
323331,
323332,
339720,
372496,
323346,
249626,
282400,
339745,
241441,
257830,
421672,
282417,
282427,
315202,
307011,
216918,
241495,
307039,
241528,
339841,
315273,
315274,
372626,
380821,
282518,
282519,
118685,
298909,
323507,
290745,
274371,
151497,
372701,
298980,
380908,
282633,
241692,
102437,
315432,
102445,
233517,
176175,
241716,
225351,
315465,
315476,
307289,
200794,
356447,
315487,
438377,
315498,
299121,
233589,
266357,
422019,
241808,
381073,
323729,
233636,
299174,
405687,
184505,
299198,
258239,
389313,
299203,
299209,
372941,
282831,
266449,
356576,
176362,
307435,
438511,
381172,
184570,
184575,
381208,
299293,
151839,
233762,
217380,
151847,
282919,
332083,
332085,
332089,
315706,
282939,
241986,
438596,
332101,
323913,
348492,
323916,
323920,
250192,
348500,
168281,
332123,
332127,
323935,
242023,
242029,
160110,
242033,
291192,
340357,
225670,
242058,
373134,
291224,
242078,
283038,
61857,
315810,
315811,
381347,
61859,
340398,
61873,
61880,
283064,
127427,
127428,
283075,
324039,
373197,
176601,
242139,
160225,
242148,
291311,
233978,
291333,
348682,
340490,
258581,
291358,
283184,
234036,
315960,
348732,
242237,
70209,
348742,
70215,
348749,
381517,
332378,
201308,
111208,
184940,
373358,
389745,
209530,
356989,
373375,
152195,
348806,
184973,
316049,
111253,
316053,
111258,
111259,
176808,
299699,
299700,
422596,
422599,
291530,
225995,
242386,
422617,
422626,
234217,
299759,
348920,
299776,
291585,
430849,
291592,
62220,
422673,
430865,
291604,
422680,
152365,
422703,
422709,
152374,
242485,
160571,
430910,
160575,
160580,
299849,
283467,
381773,
201551,
242529,
357218,
349026,
275303,
308076,
242541,
209785,
177019,
185211,
308092,
398206,
291712,
381829,
316298,
308107,
349072,
308112,
209817,
324506,
324507,
390045,
185250,
324517,
185254,
316333,
373687,
316343,
349121,
373706,
316364,
340955,
340961,
324586,
340974,
316405,
349175,
201720,
127992,
357379,
324625,
308243,
316437,
201755,
300068,
357414,
300084,
324666,
308287,
21569,
218186,
300111,
341073,
439384,
250981,
300135,
316520,
300136,
357486,
316526,
144496,
300150,
291959,
300151,
160891,
341115,
300158,
349316,
349318,
373903,
169104,
177296,
308372,
119962,
300187,
300188,
300201,
300202,
373945,
259268,
283847,
62665,
283852,
283853,
259280,
316627,
333011,
357595,
234733,
234742,
128251,
316669,
439562,
292107,
242954,
414990,
251153,
177428,
349462,
382258,
300343,
382269,
193859,
177484,
406861,
259406,
234831,
251213,
120148,
283991,
374109,
292195,
333160,
243056,
316787,
382330,
357762,
112017,
234898,
259475,
275859,
112018,
357786,
251298,
333220,
316842,
374191,
210358,
284089,
292283,
415171,
300487,
300489,
366037,
210390,
210391,
210393,
144867,
54765,
251378,
308723,
300536,
210433,
366083,
259599,
316946,
308756,
398869,
374296,
374299,
308764,
349726,
431649,
349741,
169518,
431663,
194110,
235070,
349763,
218696,
292425,
243274,
128587,
333388,
333393,
349781,
300630,
128599,
235095,
333408,
374372,
300644,
415338,
243307,
54893,
325231,
366203,
325245,
194180,
415375,
153251,
300714,
210603,
415420,
333503,
218819,
259781,
333517,
333520,
333521,
333523,
325346,
153319,
325352,
284401,
325371,
194303,
284429,
243472,
366360,
284442,
325404,
325410,
341796,
399147,
431916,
300848,
317232,
259899,
325439,
325445,
153415,
341836,
415567,
325457,
317269,
341847,
350044,
128862,
284514,
292712,
325484,
423789,
292720,
325492,
276341,
341879,
317304,
333688,
112509,
194429,
55167,
325503,
333701,
243591,
317323,
243597,
325518,
333722,
350109,
292771,
415655,
333735,
284587,
243637,
301008,
153554,
219101,
292836,
292837,
317415,
325619,
432116,
333817,
292858,
415741,
333828,
358410,
399373,
317467,
145435,
292902,
325674,
129076,
243767,
358456,
309345,
194666,
260207,
432240,
284788,
333940,
292992,
333955,
415881,
104587,
235662,
325776,
317587,
284826,
333991,
333992,
284842,
301251,
309444,
194782,
301279,
317664,
243962,
375039,
309503,
375051,
325905,
325912,
211235,
432421,
211238,
358703,
358709,
260418,
383311,
6481,
366930,
366929,
6489,
391520,
383332,
383336,
211326,
317831,
227725,
252308,
39324,
121245,
317852,
285090,
375207,
342450,
293303,
293310,
416197,
129483,
342476,
317901,
334290,
326100,
285150,
342498,
358882,
334309,
195045,
391655,
432618,
375276,
342536,
342553,
416286,
375333,
358954,
244269,
375343,
23092,
375351,
244281,
301638,
309830,
293448,
55881,
416341,
244310,
416351,
268899,
39530,
244347,
326287,
375440,
334481,
227990,
318106,
318107,
342682,
318130,
383667,
293556,
342713,
285373,
39614,
318173,
375526,
285415,
342762,
342763,
293612,
154359,
432893,
162561,
285444,
383754,
310036,
326429,
293664,
326433,
342820,
400166,
293672,
318250,
318252,
375609,
252741,
293711,
244568,
244570,
293730,
351077,
342887,
269178,
400252,
359298,
359299,
260996,
113542,
228233,
392074,
228234,
56208,
318364,
310176,
310178,
293800,
236461,
252847,
326581,
326587,
326601,
359381,
433115,
359387,
343005,
130016,
64485,
326635,
187374,
383983,
318461,
293886,
293893,
433165,
384016,
146448,
433174,
252958,
252980,
359478,
203830,
302139,
359495,
392290,
253029,
228458,
351344,
187506,
285814,
392318,
187521,
384131,
302216,
228491,
228493,
285838,
162961,
326804,
351390,
302240,
343203,
253099,
253100,
318639,
367799,
113850,
294074,
64700,
302274,
367810,
343234,
253125,
244940,
228563,
359647,
195808,
310497,
228588,
253167,
302325,
261377,
351490,
228609,
245019,
253216,
130338,
130343,
351537,
261425,
286013,
286018,
146762,
294218,
294219,
318805,
425304,
294243,
163175,
327024,
327025,
327031,
318848,
253317,
384393,
368011,
318864,
318868,
310692,
245161,
286129,
286132,
228795,
425405,
302529,
302531,
163268,
425418,
310732,
64975,
327121,
228827,
286172,
310757,
187878,
343542,
343543,
359930,
286202,
286205,
302590,
228867,
253451,
253452,
359950,
146964,
253463,
286244,
245287,
245292,
286254,
425535,
196164,
56902,
179801,
196187,
343647,
310889,
204397,
138863,
188016,
294529,
229001,
310923,
188048,
425626,
229020,
302754,
245412,
40613,
40614,
40615,
229029,
384695,
319162,
327358,
286399,
212685,
384720,
245457,
302802,
278234,
294622,
278240,
212716,
212717,
360177,
286459,
278272,
319233,
360195,
278291,
294678,
286494,
409394,
319292,
360252,
360264,
188251,
376669,
245599,
425825,
425833,
417654,
188292,
253829,
294807,
376732,
311199,
319392,
294823,
327596,
294843,
188348,
237504,
294850,
384964,
163781,
344013,
212942,
212946,
24532,
212951,
294886,
253929,
327661,
311281,
311282
] |
26403ed968d7570fbad6bf1be5858f4553c443b9
|
496fdb369c371d6b260d07fbcf1eb7e090e494a3
|
/DHSportRecorder/Class/ViewController/BaseViewController.swift
|
e20366b1a2929211c7f6b2d6fcd229dde082ddcb
|
[] |
no_license
|
DarrenHsu/DHSportRecorder
|
b53777b32989dc453d63ac0dfdcebcf73d45aaf4
|
4c0c714258fd62c22fe3f2a9510564439030977d
|
refs/heads/master
| 2021-07-04T15:38:46.259524 | 2018-12-10T12:40:44 | 2018-12-10T12:40:44 | 111,933,001 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,798 |
swift
|
//
// BaseViewController.swift
// DHYoutube
//
// Created by Darren Hsu on 17/10/2017.
// Copyright © 2017 D.H. All rights reserved.
//
import UIKit
import NVActivityIndicatorView
class BaseViewController: UIViewController, NVActivityIndicatorViewable {
let applicaiton = UIApplication.shared.delegate as! AppDelegate
let ui = UIManager.sharedInstance()
let gi = GIDSignInManager.sharedInstance()
let feed = FeedManager.sharedInstance()
let line = LineManager.sharedInstance()
let app = AppManager.sharedInstance()
let history = HistoryManager.sharedInstance()
let health = HealthManager.sharedInstance()
var editingView: UIView!
deinit {
NotificationCenter.default.removeObserver(self)
}
override func viewDidLoad() {
super.viewDidLoad()
self.view.endEditing(false)
NVActivityIndicatorView.DEFAULT_TYPE = .lineScale
NVActivityIndicatorView.DEFAULT_BLOCKER_SIZE = CGSize(width: 100, height: 100)
NotificationCenter.default.addObserver(self, selector: #selector(self.keyboardWillShow), name: .UIKeyboardWillShow, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(self.keyboardWillHide), name: .UIKeyboardWillHide, object: nil)
}
func setGeneralStyle(_ v: UIView) {
v.layer.cornerRadius = 15
v.layer.borderWidth = 1
v.layer.masksToBounds = true
v.layer.borderColor = #colorLiteral(red: 0.8320333958, green: 0.8320333958, blue: 0.8320333958, alpha: 1)
}
// MARK: - KeyboardNotification
@objc func keyboardWillShow(notification: Notification) {
guard editingView != nil else { return }
let frame: CGRect = self.view.convert(editingView.frame, from: editingView.superview)
let eFrame: CGRect = (applicaiton.window?.convert(frame, from: self.view))!
let sFrame: CGRect = (applicaiton.window?.convert(self.view.frame, from: self.view.superview))!
let kbFrame = notification.userInfo![UIKeyboardFrameEndUserInfoKey] as! CGRect
guard eFrame.origin.y + eFrame.size.height >= kbFrame.origin.y else { return }
let height: CGFloat = CGFloat(-(eFrame.origin.y + eFrame.size.height - kbFrame.origin.y - sFrame.origin.y + 20))
UIView.animate(withDuration: 0.25) {
self.view.frame = CGRect(x: 0.0, y: height, width: self.view.frame.width, height: self.view.frame.height)
self.editingView = nil
}
}
@objc func keyboardWillHide(notification: Notification) {
UIView.animate(withDuration: 0.25) {
self.view.frame = CGRect(x: 0, y: 0, width: self.view.frame.width, height: self.view.frame.height)
}
}
}
|
[
-1
] |
053a0d0d593defc9074bf401340afb31dd409465
|
0ed3482314e04a0a3efd03fee51034ccfa0e1867
|
/FirebaseLogin/AppDelegate.swift
|
4fca9673c6098a2fcf446e221406f76980ab7c0c
|
[] |
no_license
|
YanPaingHein/Testing
|
69d535642d3950a9ab6a9b4f72c167e21a2a1b43
|
db72e2de57fdd6c3975c96e1efc5dc1b59daa9c6
|
refs/heads/master
| 2021-01-10T14:38:58.469905 | 2016-03-15T02:59:36 | 2016-03-15T02:59:36 | 53,906,690 | 0 | 0 | null | 2016-10-04T02:41:55 | 2016-03-15T02:04:46 |
Swift
|
UTF-8
|
Swift
| false | false | 2,156 |
swift
|
//
// AppDelegate.swift
// FirebaseLogin
//
// Created by Nu Wai Thu on 3/10/16.
// Copyright © 2016 Nu Wai Thu. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
func applicationDidEnterBackground(application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
|
[
229380,
229383,
229385,
278539,
229388,
294924,
278542,
229391,
327695,
278545,
229394,
278548,
229397,
229399,
229402,
278556,
229405,
352284,
278559,
229408,
278564,
294950,
229415,
229417,
327722,
237613,
229422,
360496,
229426,
237618,
229428,
286774,
229432,
286776,
286778,
319544,
204856,
286791,
237640,
278605,
286797,
311375,
163920,
237646,
196692,
319573,
311383,
278623,
278626,
319590,
311400,
278635,
303212,
278639,
278648,
131192,
237693,
327814,
131209,
417930,
303241,
303244,
311436,
319633,
286873,
286876,
311460,
311469,
32944,
327862,
286906,
327866,
180413,
286910,
131264,
286916,
286922,
286924,
286926,
319694,
286928,
131281,
278743,
278747,
295133,
155872,
319716,
278760,
237807,
303345,
286962,
131314,
229622,
327930,
278781,
278783,
278785,
237826,
319751,
278792,
286987,
319757,
311569,
286999,
319770,
287003,
287006,
287009,
287012,
287014,
287016,
287019,
311598,
287023,
262448,
311601,
287032,
155966,
278849,
319809,
319810,
319814,
311623,
319818,
311628,
229709,
287054,
319822,
278865,
229717,
196963,
196969,
139638,
213367,
106872,
319872,
311683,
319879,
311693,
65943,
319898,
311719,
278952,
139689,
278957,
311728,
278967,
180668,
311741,
278975,
319938,
278980,
98756,
278983,
319945,
278986,
319947,
278990,
278994,
311767,
279003,
279006,
188895,
172512,
279010,
287202,
279015,
172520,
319978,
279020,
172526,
279023,
311791,
172529,
279027,
319989,
164343,
180727,
279035,
311804,
287230,
279040,
303617,
287234,
279045,
172550,
287238,
172552,
303623,
320007,
279051,
172558,
279055,
303632,
279058,
303637,
279063,
279067,
172572,
279072,
172577,
295459,
172581,
295461,
279082,
311850,
279084,
172591,
172598,
279095,
172607,
172609,
172612,
377413,
172614,
172618,
303690,
33357,
287309,
279124,
172634,
262752,
172644,
311911,
189034,
295533,
189039,
189040,
172655,
172656,
295538,
189044,
172660,
287349,
352880,
287355,
287360,
295553,
287365,
311942,
303751,
295557,
352905,
279178,
287371,
311946,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
164509,
303773,
295583,
172702,
230045,
287394,
287390,
303780,
172705,
287398,
172707,
279208,
287400,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
279231,
287423,
328384,
287427,
312006,
107208,
172748,
287436,
107212,
172751,
287440,
295633,
172755,
303827,
279255,
172760,
279258,
303835,
213724,
189149,
303838,
287450,
279267,
312035,
295654,
279272,
230128,
312048,
312050,
230131,
205564,
303871,
230146,
328453,
295685,
230154,
33548,
312077,
295695,
295701,
369433,
230169,
295707,
328476,
295710,
230175,
303914,
279340,
205613,
279353,
230202,
312124,
222018,
295755,
377676,
148302,
287569,
279383,
303959,
230237,
279390,
230241,
279394,
303976,
336744,
303985,
328563,
303987,
279413,
303991,
303997,
295806,
295808,
304005,
295813,
213895,
320391,
304007,
304009,
304011,
230284,
304013,
213902,
279438,
295822,
189329,
295825,
304019,
189331,
279445,
58262,
279452,
410526,
279461,
279462,
304042,
213931,
230327,
304055,
287675,
197564,
304063,
238528,
304065,
189378,
213954,
156612,
295873,
213963,
312272,
304084,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
312321,
295945,
197645,
295949,
230413,
320528,
140312,
295961,
238620,
197663,
304164,
189479,
304170,
238641,
312374,
238652,
238655,
230465,
238658,
336964,
296004,
205895,
320584,
238666,
296021,
402518,
336987,
230497,
296036,
296040,
361576,
205931,
296044,
164973,
279661,
205934,
312432,
279669,
337018,
189562,
279679,
279683,
222340,
205968,
296084,
238745,
304285,
238756,
205991,
222377,
165035,
337067,
238766,
165038,
230576,
238770,
304311,
350308,
230592,
279750,
312518,
230600,
230607,
148690,
320727,
279769,
304348,
279777,
304354,
296163,
320740,
279781,
304360,
279788,
320748,
279790,
304370,
296189,
320771,
312585,
296202,
296205,
230674,
320786,
230677,
296213,
296215,
320792,
230681,
230679,
214294,
304416,
230689,
173350,
312622,
296243,
312630,
222522,
222525,
296253,
312639,
296255,
230718,
296259,
378181,
230727,
238919,
320840,
296264,
296267,
296271,
222545,
230739,
312663,
337244,
222556,
230752,
312676,
230760,
173418,
410987,
230763,
230768,
296305,
312692,
230773,
279929,
304506,
304505,
181626,
181631,
312711,
312712,
296331,
288140,
288144,
230800,
304533,
337306,
288154,
288160,
173472,
288162,
288164,
279975,
304555,
370092,
279983,
288176,
279985,
173488,
312755,
296373,
279991,
312759,
288185,
337335,
222652,
312766,
173507,
296389,
222665,
230860,
280014,
312783,
288208,
230865,
370130,
288210,
288212,
280021,
288214,
222676,
239064,
288217,
288218,
280027,
329177,
288220,
239070,
288224,
370146,
280034,
280036,
288226,
280038,
288229,
288230,
288232,
288234,
320998,
288236,
288238,
288240,
291754,
288242,
296435,
288244,
296439,
288250,
402942,
148990,
296446,
206336,
296450,
321022,
230916,
230919,
214535,
370187,
304651,
304653,
230940,
222752,
108066,
296486,
296488,
157229,
230961,
288320,
288325,
124489,
280140,
280145,
288338,
280149,
280152,
288344,
239194,
280158,
403039,
370272,
181854,
239202,
312938,
280183,
280185,
280188,
280191,
280194,
116354,
280208,
280211,
288408,
280218,
280222,
190118,
321195,
296622,
321200,
337585,
296626,
296634,
296637,
313027,
280260,
206536,
280264,
206539,
206541,
206543,
280276,
313044,
321239,
280283,
313052,
288478,
313055,
321252,
313066,
280302,
288494,
280304,
313073,
321266,
419570,
288499,
288502,
280314,
288510,
124671,
67330,
280324,
198405,
288519,
280331,
198416,
280337,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
280363,
141101,
165678,
280375,
321336,
296767,
288576,
345921,
280388,
304968,
280393,
280402,
313176,
42842,
280419,
321381,
296812,
313201,
1920,
255873,
305028,
280454,
247688,
280458,
280464,
124817,
280468,
239510,
280473,
124827,
214940,
247709,
214944,
280487,
313258,
321458,
296883,
124853,
214966,
10170,
296890,
288700,
296894,
280515,
190403,
296900,
337862,
165831,
280521,
231379,
296921,
239586,
313320,
231404,
124913,
165876,
321528,
239612,
313340,
288764,
239617,
313347,
288773,
313358,
321560,
305176,
313371,
354338,
305191,
223273,
313386,
354348,
124978,
215090,
124980,
288824,
288826,
321595,
378941,
313406,
288831,
288836,
67654,
223303,
280651,
354382,
288848,
280658,
215123,
354390,
288855,
288859,
280669,
313438,
223327,
280671,
149599,
321634,
149601,
149603,
329830,
280681,
313451,
223341,
280687,
313458,
280691,
215154,
313464,
329850,
321659,
280702,
288895,
321670,
215175,
141446,
141455,
141459,
280725,
313498,
288936,
100520,
280747,
288940,
280755,
288947,
321717,
280759,
280764,
280769,
280771,
280774,
280776,
313548,
321740,
280783,
280786,
280788,
313557,
280793,
280796,
280798,
338147,
280804,
280807,
157930,
280811,
280817,
280819,
157940,
125171,
182517,
280823,
280825,
280827,
280830,
280831,
280833,
280835,
125187,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
280888,
280891,
289087,
280897,
280900,
239944,
305480,
280906,
239947,
305485,
305489,
379218,
280919,
354653,
313700,
280937,
313705,
280940,
190832,
280946,
223606,
313720,
280956,
239997,
280959,
313731,
199051,
240011,
289166,
240017,
297363,
190868,
297365,
240021,
297368,
297372,
141725,
297377,
289186,
297391,
289201,
240052,
289207,
305594,
289210,
281024,
289218,
289221,
289227,
281045,
281047,
215526,
166378,
305647,
281075,
174580,
281084,
240124,
305662,
305664,
240129,
305666,
305668,
240132,
223749,
281095,
338440,
150025,
223752,
223757,
281102,
223763,
223765,
281113,
322074,
281116,
281121,
182819,
281127,
281135,
150066,
158262,
158266,
289342,
281154,
322115,
158283,
281163,
281179,
199262,
338528,
338532,
281190,
199273,
281196,
158317,
19053,
313973,
281210,
297594,
158347,
133776,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
133801,
174764,
314029,
314033,
240309,
133817,
314045,
314047,
314051,
199364,
297671,
199367,
158409,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
289537,
322310,
264969,
322314,
322318,
281361,
281372,
322341,
215850,
281388,
281401,
289593,
289601,
281410,
281413,
281414,
240458,
281420,
240468,
281430,
322393,
297818,
281435,
281438,
281442,
174955,
224110,
207733,
207737,
183172,
158596,
240519,
322440,
338823,
314249,
183184,
289687,
240535,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
281567,
289762,
322534,
297961,
281581,
183277,
322550,
134142,
322563,
175134,
322599,
322610,
314421,
281654,
314427,
207937,
314433,
314441,
207949,
322642,
314456,
281691,
314461,
281702,
281704,
314474,
281708,
281711,
289912,
248995,
306341,
306344,
306347,
306354,
142531,
199877,
289991,
306377,
289997,
249045,
363742,
363745,
298216,
330988,
126190,
216303,
322801,
388350,
257302,
363802,
199976,
199978,
314671,
298292,
298294,
257334,
216376,
298306,
380226,
281923,
224584,
224587,
224594,
216404,
306517,
150870,
314714,
224603,
159068,
314718,
265568,
314723,
281960,
150890,
306539,
314732,
314736,
290161,
216436,
306549,
298358,
314743,
306552,
290171,
314747,
306555,
290174,
298365,
224641,
281987,
298372,
314756,
281990,
224647,
265604,
298377,
314763,
142733,
298381,
224657,
306581,
314779,
314785,
282025,
314793,
282027,
241068,
241070,
241072,
282034,
241077,
150966,
298424,
306618,
282044,
323015,
306635,
306640,
290263,
290270,
290275,
339431,
282089,
191985,
282098,
290291,
282101,
241142,
191992,
290298,
151036,
290302,
282111,
290305,
175621,
192008,
323084,
257550,
282127,
290321,
282130,
323090,
282133,
290325,
241175,
290328,
282137,
290332,
241181,
282142,
282144,
290344,
306731,
290349,
290351,
290356,
282186,
224849,
282195,
282199,
282201,
306778,
159324,
159330,
314979,
298598,
323176,
224875,
241260,
323181,
257658,
315016,
282249,
290445,
324757,
282261,
298651,
282269,
323229,
298655,
323231,
61092,
282277,
306856,
282295,
282300,
323260,
323266,
282310,
323273,
282319,
306897,
241362,
282328,
298714,
52959,
216801,
282337,
241380,
216806,
323304,
282345,
12011,
282356,
323318,
282364,
282367,
306945,
241412,
323333,
282376,
216842,
323345,
282388,
323349,
282392,
184090,
315167,
315169,
282402,
315174,
323367,
241448,
315176,
282410,
241450,
306988,
306991,
315184,
323376,
315190,
241464,
282425,
159545,
298811,
307009,
413506,
241475,
307012,
148946,
315211,
282446,
307027,
315221,
282454,
315223,
241496,
323414,
241498,
307035,
307040,
282465,
110433,
241509,
110438,
298860,
110445,
282478,
315249,
110450,
315251,
282481,
315253,
315255,
339838,
282499,
315267,
315269,
241544,
282505,
241546,
241548,
298896,
298898,
282514,
44948,
298901,
241556,
282520,
241560,
241563,
241565,
241567,
241569,
282531,
241574,
282537,
298922,
36779,
241581,
282542,
241583,
323504,
241586,
282547,
241588,
290739,
241590,
241592,
241598,
290751,
241600,
241605,
151495,
241610,
298975,
241632,
298984,
241640,
241643,
298988,
241646,
241649,
241652,
323574,
290807,
241661,
299006,
282623,
315396,
241669,
315397,
282632,
282639,
290835,
282645,
241693,
282654,
241701,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
192596,
176213,
307287,
315482,
315483,
217179,
192605,
233567,
200801,
299105,
217188,
299109,
307303,
315495,
356457,
45163,
307307,
315502,
192624,
307314,
323700,
299126,
233591,
299136,
307329,
307338,
233613,
241813,
307352,
299164,
184479,
299167,
184481,
315557,
184486,
307370,
307372,
184492,
307374,
307376,
323763,
176311,
299191,
307385,
307386,
258235,
176316,
307388,
307390,
184503,
299200,
184512,
307394,
307396,
299204,
184518,
307399,
323784,
307409,
307411,
176343,
299225,
233701,
307432,
184572,
282881,
184579,
282893,
291089,
282906,
291104,
233766,
282931,
307508,
315701,
307510,
332086,
307512,
151864,
176435,
307515,
168245,
282942,
307518,
151874,
282947,
282957,
323917,
110926,
233808,
323921,
315733,
323926,
233815,
315739,
323932,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
299388,
299391,
291202,
299398,
242057,
291212,
299405,
291222,
283033,
291226,
242075,
315801,
291231,
61855,
283042,
291238,
291241,
127403,
127405,
291247,
127407,
299440,
299444,
127413,
283062,
291254,
127417,
291260,
283069,
127421,
127424,
299457,
127429,
127431,
283080,
176592,
315856,
315860,
176597,
127447,
283095,
299481,
176605,
242143,
291299,
127463,
242152,
291305,
127466,
176620,
127474,
291314,
291317,
135672,
233979,
291323,
291330,
283142,
127497,
233994,
135689,
291341,
233998,
234003,
234006,
152087,
127511,
283161,
242202,
234010,
135707,
242206,
135710,
242208,
291361,
242220,
291378,
234038,
152118,
234041,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
291456,
135808,
373383,
299655,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
299677,
225948,
135839,
299680,
225954,
299684,
242343,
209576,
242345,
373421,
135870,
135873,
135876,
135879,
299720,
299723,
225998,
299726,
226002,
226005,
119509,
226008,
242396,
299740,
201444,
299750,
283368,
234219,
283372,
381677,
226037,
283382,
234231,
316151,
234236,
226045,
234239,
242431,
209665,
234242,
299778,
242436,
226053,
234246,
226056,
234248,
291593,
242443,
234252,
242445,
234254,
291601,
234258,
242450,
242452,
234261,
348950,
201496,
234264,
234266,
234269,
283421,
234272,
234274,
152355,
234278,
299814,
283432,
234281,
234284,
234287,
283440,
185138,
242483,
234292,
234296,
234298,
283452,
160572,
234302,
234307,
242499,
234309,
292433,
234313,
316233,
316235,
234316,
283468,
242511,
234319,
234321,
234324,
185173,
201557,
234329,
234333,
308063,
234336,
234338,
242530,
349027,
234341,
234344,
234347,
177004,
234350,
324464,
234353,
152435,
177011,
234356,
234358,
234362,
226171,
234364,
291711,
234368,
234370,
201603,
291714,
234373,
226182,
234375,
291716,
226185,
308105,
234379,
234384,
234388,
234390,
226200,
324504,
234393,
209818,
308123,
324508,
234398,
234396,
291742,
234401,
291747,
291748,
234405,
291750,
234407,
324518,
324520,
234410,
324522,
226220,
291756,
234414,
324527,
291760,
234417,
201650,
324531,
226230,
234422,
275384,
324536,
234428,
291773,
234431,
242623,
324544,
324546,
226239,
324548,
226245,
234437,
234439,
234434,
234443,
291788,
275406,
234446,
193486,
234449,
316370,
193488,
234452,
234455,
234459,
234461,
234464,
234467,
234470,
168935,
5096,
324585,
234475,
234478,
316400,
234481,
316403,
234484,
234485,
324599,
234487,
234490,
234493,
234496,
316416,
234501,
275462,
308231,
234504,
234507,
234510,
234515,
300054,
234519,
316439,
234520,
234523,
234526,
234528,
300066,
234532,
300069,
234535,
234537,
234540,
144430,
234543,
234546,
275508,
234549,
300085,
300088,
234553,
234556,
234558,
316479,
234561,
316483,
234563,
308291,
234568,
234570,
316491,
300108,
234572,
234574,
300115,
234580,
234581,
275545,
242777,
234585,
234590,
234593,
234595,
300133,
234597,
234601,
300139,
234605,
234607,
160879,
275569,
234610,
300148,
234614,
398455,
144506,
275579,
234618,
234620,
234623,
226433,
234627,
275588,
234629,
242822,
234634,
275594,
234636,
177293,
234640,
275602,
234643,
226453,
275606,
234647,
275608,
308373,
234650,
234648,
308379,
283805,
234653,
324766,
119967,
234657,
300189,
324768,
242852,
283813,
234661,
300197,
234664,
275626,
234667,
316596,
308414,
234687,
300226,
308418,
226500,
234692,
300229,
308420,
283844,
283850,
300234,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
234726,
300263,
300265,
161003,
300267,
300270,
300272,
120053,
300278,
316663,
275703,
300284,
275710,
300287,
283904,
300289,
292097,
300292,
300294,
275719,
300299,
177419,
283917,
300301,
242957,
177424,
275725,
349464,
283939,
259367,
283951,
292143,
300344,
226617,
283963,
243003,
226628,
283973,
300357,
177482,
283983,
316758,
357722,
316766,
292192,
316768,
218464,
292197,
316774,
243046,
218473,
284010,
136562,
324978,
275834,
333178,
275836,
275840,
316803,
316806,
226696,
316811,
226699,
316814,
226703,
300433,
234899,
226709,
357783,
316824,
316826,
144796,
300448,
144807,
144810,
284076,
144812,
144814,
144820,
284084,
284087,
292279,
144826,
144828,
144830,
144832,
144835,
284099,
144837,
38342,
144839,
144841,
144844,
144847,
144852,
144855,
103899,
300507,
333280,
226787,
218597,
292329,
300523,
259565,
300527,
308720,
259567,
226802,
316917,
308727,
292343,
300537,
316947,
308757,
308762,
284191,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
284213,
194101,
284215,
194103,
284218,
226877,
284223,
284226,
243268,
292421,
226886,
284231,
128584,
284228,
284234,
276043,
317004,
366155,
284238,
226895,
284241,
194130,
284243,
276052,
276053,
284245,
284247,
317015,
284249,
243290,
284251,
300628,
284253,
235097,
284255,
300638,
243293,
284258,
292452,
292454,
284263,
177766,
284265,
292458,
284267,
292461,
284272,
284274,
276086,
284278,
292470,
292473,
284283,
276093,
284286,
276095,
284288,
292481,
276098,
284290,
325250,
284292,
292479,
292485,
284297,
317066,
284299,
317068,
276109,
284301,
284303,
276114,
284306,
284308,
284312,
284314,
284316,
276127,
284320,
284322,
284327,
276137,
284329,
284331,
317098,
284333,
284335,
276144,
284337,
284339,
300726,
284343,
284346,
284350,
276160,
358080,
284354,
358083,
276166,
284358,
358089,
276170,
284362,
276175,
284368,
276177,
284370,
317138,
284372,
358098,
284377,
276187,
284379,
284381,
284384,
284386,
358114,
358116,
276197,
317158,
358119,
284392,
325353,
284394,
358122,
284397,
276206,
284399,
358126,
358128,
358133,
358135,
276216,
358138,
300795,
358140,
284413,
358142,
284418,
358146,
317187,
317189,
317191,
284428,
300816,
300819,
317207,
284440,
186139,
300828,
300830,
276255,
325408,
284449,
300834,
300832,
227109,
317221,
358183,
186151,
276268,
300845,
194351,
243504,
300850,
284469,
276280,
325436,
358206,
276291,
366406,
276295,
300872,
153417,
284499,
276308,
284502,
317271,
178006,
276315,
292700,
284511,
227175,
292715,
300912,
284529,
292721,
300915,
284533,
292729,
317306,
284540,
292734,
325512,
169868,
276365,
284564,
358292,
284566,
350106,
284572,
276386,
284579,
276388,
358312,
284585,
317353,
276395,
292776,
292784,
276402,
358326,
161718,
276410,
276411,
358330,
276418,
276425,
301009,
301011,
301013,
292823,
301015,
301017,
358360,
292828,
276446,
153568,
276448,
276452,
276455,
292839,
292843,
276460,
276464,
178161,
227314,
276466,
276472,
325624,
317435,
276476,
276479,
276482,
276485,
317446,
276490,
292876,
276496,
317456,
317458,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
276528,
243762,
309298,
325685,
325689,
276539,
235579,
235581,
325692,
178238,
276544,
284739,
292934,
276553,
243785,
350293,
350295,
194649,
227418,
309337,
350302,
227423,
194654,
194657,
178273,
276579,
227426,
194660,
227430,
276583,
309346,
309348,
276586,
309350,
309352,
309354,
276590,
350313,
350316,
350321,
284786,
276595,
227440,
301167,
350325,
350328,
292985,
301178,
292989,
292993,
301185,
350339,
317570,
317573,
350342,
227463,
350345,
350349,
301199,
317584,
325777,
350354,
350357,
350359,
350362,
276638,
350366,
284837,
153765,
350375,
350379,
350381,
350383,
129200,
350385,
350387,
350389,
350395,
350397,
350399,
227520,
350402,
227522,
301252,
350406,
227529,
309450,
301258,
276685,
276689,
309462,
301272,
276699,
309468,
194780,
309471,
301283,
317672,
276713,
317674,
325867,
243948,
194801,
227571,
309491,
276725,
309494,
243960,
276735,
227583,
227587,
276739,
211204,
276742,
227593,
227596,
325910,
309530,
342298,
276766,
211232,
317729,
276775,
211241,
325937,
276789,
325943,
211260,
260421,
276809,
285002,
276811,
235853,
276816,
235858,
276829,
276833,
391523,
276836,
276843,
293227,
276848,
293232,
186744,
285051,
211324,
227709,
285061,
317833,
178572,
285070,
178575,
285077,
178583,
227738,
317853,
276896,
317858,
342434,
285093,
317864,
285098,
276907,
235955,
276917,
293304,
293307,
293314,
309707,
293325,
317910,
293336,
235996,
317917,
293343,
358880,
276961,
227810,
293346,
276964,
293352,
236013,
293364,
301562,
317951,
309764,
301575,
121352,
236043,
317963,
342541,
55822,
113167,
277011,
317971,
309781,
309779,
55837,
227877,
227879,
293417,
227882,
309804,
293421,
105007,
236082,
285236,
23094,
277054,
244288,
129603,
318020,
301636,
301639,
301643,
277071,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
277106,
121458,
170618,
170619,
309885,
309888,
277122,
227975,
277128,
285320,
301706,
318092,
326285,
318094,
334476,
277136,
277139,
227992,
285340,
318108,
227998,
318110,
137889,
383658,
285357,
318128,
277170,
342707,
154292,
277173,
293555,
318132,
285368,
277177,
277181,
318144,
277187,
277191,
277194,
277196,
277201,
137946,
113378,
203491,
228069,
277223,
342760,
285417,
56041,
56043,
277232,
228081,
56059,
310015,
285441,
310020,
285448,
310029,
228113,
285459,
277273,
293659,
326430,
228128,
293666,
285474,
228135,
318248,
277291,
293677,
318253,
285489,
293685,
285494,
301880,
285499,
301884,
310080,
293696,
277314,
277317,
277322,
277329,
162643,
310100,
301911,
277337,
301913,
301921,
400236,
236397,
162671,
326514,
310134,
277368,
15224,
236408,
416639,
416640,
113538,
310147,
416648,
277385,
39817,
187274,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
293811,
293817,
293820,
203715,
326603,
293849,
293861,
228327,
228328,
228330,
318442,
228332,
277486,
326638,
318450,
293876,
293877,
285686,
302073,
285690,
121850,
302075,
244731,
293882,
293887,
277504,
277507,
277511,
277519,
293908,
277526,
293917,
293939,
318516,
277561,
277564,
310336,
7232,
293956,
277573,
228422,
310344,
277577,
293960,
277583,
203857,
310355,
293971,
310359,
236632,
277594,
138332,
277598,
285792,
277601,
203872,
310374,
203879,
277608,
310376,
228460,
318573,
203886,
187509,
285815,
285817,
367737,
285821,
302205,
285824,
392326,
285831,
253064,
302218,
285835,
294026,
384148,
162964,
187542,
302231,
285849,
302233,
285852,
302237,
285854,
285856,
285862,
277671,
302248,
64682,
277678,
228526,
294063,
294065,
302258,
277687,
294072,
318651,
294076,
277695,
318657,
244930,
302275,
130244,
302277,
228550,
302282,
310476,
302285,
302288,
310481,
302290,
203987,
302292,
302294,
302296,
384222,
310498,
285927,
318698,
302315,
195822,
228592,
294132,
138485,
204023,
228601,
204026,
228606,
204031,
64768,
310531,
285958,
228617,
138505,
318742,
204067,
277798,
130345,
277801,
113964,
285997,
277804,
285999,
277807,
113969,
277811,
318773,
318776,
277816,
286010,
277819,
294204,
417086,
277822,
286016,
294211,
302403,
384328,
277832,
277836,
294221,
326991,
294223,
277839,
277842,
277847,
277850,
179547,
277853,
146784,
277857,
302436,
277860,
294246,
327015,
310632,
327017,
351594,
277864,
277869,
277872,
351607,
310648,
277880,
310651,
277884,
277888,
310657,
351619,
294276,
310659,
277892,
327046,
253320,
310665,
318858,
277898,
277894,
277903,
310672,
351633,
277905,
277908,
277917,
310689,
277921,
277923,
130468,
228776,
277928,
277932,
310703,
277937,
310710,
130486,
310712,
277944,
310715,
277947,
302526,
228799,
277950,
277953,
64966,
245191,
163272,
302534,
310727,
277959,
292968,
302541,
277966,
302543,
277963,
310737,
277971,
277975,
228825,
163290,
277978,
310749,
277981,
277984,
310755,
277989,
277991,
187880,
277995,
286188,
310764,
278000,
278003,
310772,
228851,
278006,
40440,
278009,
212472,
40443,
286203,
228864,
40448,
286214,
228871,
302603,
65038,
302614,
286233,
302617,
302621,
286240,
146977,
187939,
294435,
40484,
286246,
294439,
286248,
278057,
294440,
294443,
40486,
294445,
40488,
310831,
40491,
40499,
40502,
212538,
40507,
40511,
40513,
228933,
40521,
286283,
40525,
40527,
228944,
212560,
400976,
40533,
147032,
40537,
40539,
278109,
40541,
40544,
40548,
40550,
286312,
286313,
40554,
40552,
310892,
40557,
40560,
188022,
122488,
294521,
343679,
278150,
310925,
286354,
278163,
302740,
122517,
278168,
327333,
229030,
212648,
278188,
302764,
278192,
319153,
278196,
302781,
319171,
302789,
294599,
278216,
294601,
302793,
343757,
212690,
278227,
229076,
286420,
319187,
286425,
319194,
278235,
301163,
229086,
278238,
286432,
294625,
294634,
302838,
319226,
286460,
171774,
278274,
302852,
278277,
302854,
294664,
311048,
352008,
319243,
311053,
302862,
319251,
294682,
278306,
188199,
294701,
278320,
319280,
319290,
229192,
302925,
188247,
237409,
294776,
360317,
294785,
327554,
40840,
40851,
294803,
188312,
294811,
319390,
294817,
319394,
40865,
294821,
311209,
180142,
294831,
188340,
40886,
319419,
294844,
294847,
393177,
294876,
294879,
294883,
294890,
311279,
278513,
237555,
278516,
311283,
278519,
237562
] |
4ee7529b984adab9a8f129149b33a2d25f4072d2
|
6a76e6b164c9d4c07e70d6b751ff6cdf44c908fd
|
/Quizzler/QuestionBank.swift
|
7464ac0063e0337f2b31d5aa6743defa4894a6e7
|
[] |
no_license
|
melbin/Quizzler
|
96b7da744c11c5a1180463343138b5fe5de4af0d
|
e2fe544b1cec554f85f8479633d5984f6142e88d
|
refs/heads/master
| 2021-05-06T03:03:43.623515 | 2017-12-19T22:55:52 | 2017-12-19T22:55:52 | 114,782,903 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,181 |
swift
|
//
// QuestionBank.swift
// Quizzler
//
// Created by Mauricio Portal on 12/19/17.
// Copyright © 2017 London App Brewery. All rights reserved.
//
import Foundation
class QuestionBank {
var list = [Question]()
init() {
// Creating a quiz item and appending it to the list
let item = Question(text: "Valentine\'s day is banned in Saudi Arabia.", correctAnswer: true)
// Add the Question to the list of questions
list.append(item)
// skipping one step and just creating the quiz item inside the append function
list.append(Question(text: "A slug\'s blood is green.", correctAnswer: true))
list.append(Question(text: "Approximately one quarter of human bones are in the feet.", correctAnswer: true))
list.append(Question(text: "The total surface area of two human lungs is approximately 70 square metres.", correctAnswer: true))
list.append(Question(text: "In West Virginia, USA, if you accidentally hit an animal with your car, you are free to take it home to eat.", correctAnswer: true))
list.append(Question(text: "In London, UK, if you happen to die in the House of Parliament, you are technically entitled to a state funeral, because the building is considered too sacred a place.", correctAnswer: false))
list.append(Question(text: "It is illegal to pee in the Ocean in Portugal.", correctAnswer: true))
list.append(Question(text: "You can lead a cow down stairs but not up stairs.", correctAnswer: false))
list.append(Question(text: "Google was originally called \"Backrub\".", correctAnswer: true))
list.append(Question(text: "Buzz Aldrin\'s mother\'s maiden name was \"Moon\".", correctAnswer: true))
list.append(Question(text: "The loudest sound produced by any animal is 188 decibels. That animal is the African Elephant.", correctAnswer: false))
list.append(Question(text: "No piece of square dry paper can be folded in half more than 7 times.", correctAnswer: false))
list.append(Question(text: "Chocolate affects a dog\'s heart and nervous system; a few ounces are enough to kill a small dog.", correctAnswer: true))
}
}
|
[
302279
] |
07660864ce4459160bbf75895e327175f8976f57
|
ff613d66ddfd6e5449ee7e4b1634a74a0cfeb47d
|
/UI-Showcase/Today.swift
|
0b543b722a0a36dfe0c3628df22887108a76dec6
|
[] |
no_license
|
chenbao-cn/UI-Showcase
|
8b97c37ee7c3a0bcf7c8ce800d3bdbe35345b2a7
|
67ec3c0925d5d4758549ffe86c9a2e7f193054dd
|
refs/heads/master
| 2022-06-17T09:44:29.350667 | 2019-12-26T03:24:27 | 2019-12-26T03:24:27 | 228,183,554 | 1 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 4,111 |
swift
|
//
// Today.swift
// BaoIdea
//
// Created by 陈宝 on 2019/9/11.
// Copyright © 2019 chenbao. All rights reserved.
//
import SwiftUI
/// : MARK: app Strore 这个动画对知识水平有要求, 改日在做
struct Today: View {
@State var cardActived = false
@State var index: Double = 2
@State var c = Card(a: false, b: 0)
@State var counter = 0
var body: some View {
ZStack {
ScrollView {
VStack {
ForEach(0..<10, id: \.self) { _ in
Card(a: true, b: 1).frame(width: UIScreen.main.bounds.width)
.padding(0)
.onTapGesture {
self.c = Card(a: true, b: -1)
self.index = 100; self.cardActived.toggle()
}
.frame(height: 400)
}
.frame(width: UIScreen.main.bounds.width)
滑动加载.font(.largeTitle).foregroundColor(.blue)
}
}.frame(width: UIScreen.main.bounds.width)
.animation(.default)
.zIndex(10)
if self.cardActived {
self.c
.zIndex(self.index)
.background(Color.white)
.onTapGesture {
self.index = 2
withAnimation {
self.cardActived.toggle()
}
}
}
}
}
@State var x: CGFloat = 0
@State var y: CGFloat = 0
var 滑动加载: some View {
GeometryReader { g -> Text in
let frame = g.frame(in: CoordinateSpace.global)
self.x = frame.origin.x
self.y = frame.origin.y
return Text("x: \(self.x) y: \(self.y)")
}
}
}
struct Card: View {
@State var a: Bool
var b: Int
var body: some View {
ZStack(alignment: .topLeading) {
article().disabled(self.a).zIndex(10)
}
.padding(0)
.frame(width: self.a ? 300 : UIScreen.main.bounds.width, height: self.a ? 400 : UIScreen.main.bounds.height, alignment: .topLeading)
// .onTapGesture { withAnimation { self.a.toggle() } }
.clipped()
.transition(.moveAndScale)
.onAppear {
DispatchQueue(label: "haha").asyncAfter(deadline: DispatchTime.now()) {
if self.b < 0 { withAnimation { self.a.toggle() } }
}
}
}
}
struct DetalView_Previews: PreviewProvider {
static var previews: some View {
Card(a: false, b: 1)
}
}
struct article: View {
let a = UIImage(named: "p1")!
var body: some View {
GeometryReader { _ in
ScrollView(showsIndicators: false) {
ZStack(alignment: .topLeading) {
VStack(alignment: .leading) {
Text(" ")
Text(" ")
HStack { Text("hello").zIndex(100); Spacer() }
HStack { Text("I'm Good").font(.largeTitle).zIndex(100); Spacer() }
}.zIndex(10)
.padding(0)
Image(uiImage: self.a)
.resizable()
// .scaleEffect(g.size.width / self.a.size.width * 2)
}
Text(someText())
}
}
.padding(0)
.frame(width: UIScreen.main.bounds.width, alignment: .topLeading)
}
}
func someText() -> String {
var resault: String = " "
for _ in 0...1000 {
resault = resault + "adf"
}
return resault
}
import SwiftUI
// MARK: - Setup
extension AnyTransition {
static var moveAndScale: AnyTransition {
AnyTransition.move(edge: .bottom).combined(with: .scale)
}
}
|
[
-1
] |
1a8b6dc16b4f05dc5b7add8a45aadc767f5e86ea
|
004789715104ab83915bbc6946536bd18317a9d9
|
/SnapClient/AppDelegate.swift
|
3ec83dd8407dfc91d100c24fc77d8491421ce499
|
[] |
no_license
|
djethani/SnapKitDemo
|
ada3efd5793c60170f0cf24922eb0dc18f0f8d0b
|
a29b0832eaf41d21b893fb62f36ff0b242e38f1c
|
refs/heads/master
| 2020-05-25T08:55:52.270946 | 2019-04-07T15:13:50 | 2019-04-07T15:13:50 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,162 |
swift
|
//
// AppDelegate.swift
// SnapClient
//
// Created by ruubyan on 4/6/19.
// Copyright © 2019 GST. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
|
[
229380,
229383,
229385,
278539,
294924,
229388,
278542,
229391,
327695,
278545,
229394,
278548,
229397,
229399,
229402,
352284,
229405,
278556,
278559,
229408,
278564,
294950,
229415,
229417,
327722,
237613,
229422,
360496,
229426,
237618,
229428,
311349,
286774,
286776,
319544,
286778,
204856,
229432,
352318,
286791,
237640,
286797,
278605,
311375,
163920,
237646,
196692,
319573,
311383,
278623,
278626,
319590,
311400,
278635,
303212,
278639,
131192,
278648,
237693,
303230,
327814,
303241,
131209,
417930,
303244,
311436,
319633,
286873,
286876,
311460,
311469,
32944,
327862,
286906,
327866,
180413,
286910,
131264,
286916,
295110,
286922,
286924,
286926,
319694,
286928,
131281,
278743,
278747,
295133,
155872,
319716,
237807,
303345,
286962,
303347,
131314,
229622,
327930,
278781,
278783,
278785,
237826,
319751,
278792,
286987,
319757,
311569,
286999,
319770,
287003,
287006,
287009,
287012,
287014,
287016,
287019,
311598,
287023,
262448,
311601,
295220,
287032,
155966,
319809,
319810,
278849,
319814,
311623,
319818,
311628,
229709,
319822,
287054,
278865,
229717,
196963,
196969,
139638,
213367,
106872,
319872,
311683,
319879,
311693,
65943,
319898,
311719,
278952,
139689,
278957,
311728,
278967,
180668,
311741,
278975,
319938,
278980,
98756,
278983,
319945,
278986,
319947,
278990,
278994,
311767,
279003,
279006,
188895,
172512,
287202,
279010,
279015,
172520,
319978,
279020,
172526,
311791,
279023,
172529,
279027,
319989,
172534,
180727,
164343,
279035,
311804,
287230,
279040,
303617,
287234,
279045,
172550,
303623,
172552,
320007,
287238,
279051,
172558,
279055,
303632,
279058,
303637,
279063,
279067,
172572,
279072,
172577,
295459,
172581,
295461,
279082,
311850,
279084,
172591,
172598,
279095,
172607,
172609,
172612,
377413,
172614,
213575,
172618,
303690,
33357,
287309,
303696,
279124,
172634,
262752,
254563,
172644,
311911,
189034,
295533,
172655,
172656,
352880,
295538,
189039,
172660,
287349,
189040,
189044,
287355,
287360,
295553,
172675,
295557,
311942,
303751,
287365,
352905,
311946,
279178,
287371,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
230045,
172702,
287390,
303773,
172705,
287394,
172707,
303780,
164509,
287398,
205479,
279208,
287400,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
287423,
328384,
172737,
279231,
287427,
312005,
312006,
107208,
172748,
287436,
107212,
172751,
287440,
295633,
172755,
303827,
279255,
172760,
287450,
303835,
279258,
189149,
303838,
213724,
312035,
279267,
295654,
279272,
230128,
312048,
312050,
230131,
189169,
205564,
303871,
230146,
328453,
295685,
230154,
33548,
312077,
295695,
295701,
230169,
369433,
295707,
328476,
295710,
230175,
295720,
303914,
279340,
205613,
279353,
230202,
312124,
328508,
222018,
295755,
377676,
148302,
287569,
303959,
230237,
279390,
230241,
279394,
303976,
336744,
303981,
303985,
303987,
328563,
279413,
303991,
303997,
295806,
295808,
295813,
304005,
320391,
304007,
213895,
304009,
304011,
230284,
304013,
295822,
279438,
189325,
189329,
295825,
304019,
189331,
213902,
58262,
304023,
304027,
279452,
234648,
410526,
279461,
279462,
304042,
213931,
230327,
304055,
287675,
197564,
230334,
304063,
238528,
304065,
213954,
189378,
156612,
295873,
213963,
197580,
312272,
304084,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
312321,
295945,
230413,
295949,
197645,
320528,
140312,
295961,
238620,
197663,
304164,
304170,
304175,
238641,
312374,
238652,
238655,
230465,
238658,
336964,
132165,
296004,
205895,
320584,
238666,
296021,
402518,
336987,
230497,
296036,
296040,
361576,
205931,
296044,
279661,
205934,
164973,
312432,
279669,
337018,
189562,
279679,
304258,
279683,
222340,
66690,
205968,
296084,
238745,
304285,
238756,
205991,
222377,
165035,
337067,
238766,
165038,
230576,
238770,
304311,
230592,
312518,
279750,
230600,
230607,
148690,
320727,
279769,
304348,
279777,
304354,
296163,
320740,
279781,
304360,
320748,
279788,
279790,
304370,
296189,
320771,
312585,
296202,
296205,
230674,
320786,
230677,
296213,
296215,
320792,
230681,
230679,
214294,
304416,
230689,
173350,
312622,
296243,
312630,
222522,
296253,
222525,
296255,
312639,
230718,
296259,
378181,
296262,
230727,
238919,
296264,
320840,
296267,
296271,
222545,
230739,
312663,
222556,
337244,
230752,
312676,
230760,
173418,
148843,
410987,
230763,
230768,
296305,
312692,
230773,
304505,
304506,
181626,
279929,
181631,
148865,
312711,
312712,
296331,
288140,
288144,
230800,
304533,
337306,
288154,
288160,
173472,
288162,
288164,
279975,
304555,
370092,
279983,
173488,
288176,
279985,
312755,
296373,
312759,
337335,
288185,
279991,
222652,
312766,
173507,
296389,
222665,
230860,
312783,
288208,
230865,
288210,
370130,
288212,
222676,
148946,
288214,
239064,
329177,
288217,
280027,
288220,
288218,
239070,
288224,
280034,
288226,
280036,
288229,
280038,
288230,
288232,
370146,
288234,
320998,
288236,
288238,
288240,
288242,
296435,
288244,
288250,
296446,
321022,
402942,
148990,
296450,
206336,
230916,
230919,
214535,
230923,
304651,
304653,
370187,
402969,
230940,
222752,
108066,
296486,
296488,
157229,
239152,
230961,
157236,
288320,
288325,
124489,
280140,
280145,
288338,
280149,
288344,
280152,
239194,
280158,
403039,
370272,
181854,
239202,
370279,
312938,
280183,
280185,
280188,
280191,
116354,
280194,
280208,
280211,
288408,
280218,
280222,
419489,
190118,
321195,
296622,
321200,
337585,
296626,
296634,
296637,
419522,
313027,
280260,
419525,
206536,
280264,
206539,
206541,
206543,
263888,
313044,
280276,
321239,
280283,
313052,
18140,
288478,
313055,
419555,
321252,
313066,
288494,
280302,
280304,
313073,
321266,
419570,
288499,
288502,
280314,
288510,
124671,
67330,
280324,
198405,
288519,
280331,
198416,
280337,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
280363,
141101,
165678,
280375,
321336,
296767,
288576,
345921,
280388,
337732,
304968,
280393,
280402,
173907,
313171,
313176,
42842,
280419,
321381,
296809,
296812,
313201,
1920,
255873,
305028,
280454,
247688,
280464,
124817,
280468,
239510,
280473,
124827,
214940,
247709,
214944,
280487,
313258,
321458,
296883,
124853,
214966,
296890,
10170,
288700,
296894,
190403,
296900,
280515,
337862,
165831,
280521,
231379,
296921,
354265,
354270,
239586,
313320,
354281,
231404,
124913,
165876,
321528,
239612,
313340,
288764,
239617,
313347,
288773,
313358,
305176,
321560,
313371,
354338,
305191,
223273,
313386,
354348,
124978,
215090,
124980,
288824,
288826,
321595,
378941,
313406,
288831,
288836,
67654,
280651,
354382,
288848,
280658,
215123,
354390,
288855,
288859,
280669,
313438,
149599,
280671,
149601,
321634,
149603,
223327,
329830,
280681,
313451,
223341,
280687,
149618,
215154,
313458,
280691,
313464,
329850,
321659,
280702,
288895,
321670,
215175,
141446,
288909,
141455,
141459,
280725,
313498,
100520,
288936,
280747,
288940,
288947,
280755,
321717,
280759,
280764,
280769,
280771,
280774,
280776,
313548,
321740,
280783,
280786,
280788,
313557,
280793,
280796,
280798,
338147,
280804,
280807,
157930,
280811,
280817,
125171,
157940,
280819,
182517,
280823,
280825,
280827,
280830,
280831,
280833,
125187,
280835,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
280888,
280891,
289087,
280897,
280900,
305480,
239944,
280906,
239947,
305485,
305489,
379218,
280919,
248153,
215387,
354653,
354656,
313700,
313705,
280937,
190832,
280946,
223606,
313720,
280956,
239997,
280959,
313731,
199051,
240011,
289166,
240017,
297363,
190868,
240021,
297365,
297368,
297372,
141725,
297377,
289186,
297391,
289201,
240052,
289207,
289210,
305594,
281024,
289218,
289221,
289227,
436684,
281045,
281047,
215526,
166378,
305647,
281075,
174580,
240124,
281084,
305662,
305664,
240129,
305666,
305668,
223749,
330244,
281095,
223752,
150025,
338440,
240132,
223757,
281102,
223763,
223765,
281113,
322074,
281116,
281121,
182819,
281127,
281135,
150066,
158262,
158266,
289342,
281154,
322115,
158283,
281163,
281179,
338528,
338532,
281190,
199273,
281196,
19053,
158317,
313973,
297594,
281210,
158347,
264845,
182926,
133776,
182929,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
133801,
174764,
314029,
314033,
240309,
133817,
314045,
314047,
314051,
199364,
297671,
158409,
256716,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
289537,
322310,
264969,
322314,
322318,
281361,
281372,
322341,
215850,
281388,
289593,
281401,
289601,
281410,
281413,
281414,
240458,
281420,
240468,
281430,
322393,
297818,
281435,
281438,
281442,
174955,
224110,
207733,
207737,
158596,
183172,
338823,
322440,
314249,
240519,
183184,
142226,
289687,
240535,
224151,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
420829,
281567,
289762,
322534,
297961,
183277,
281581,
322550,
134142,
322563,
314372,
330764,
175134,
322599,
322610,
314421,
281654,
314427,
314433,
207937,
314441,
207949,
322642,
314456,
281691,
314461,
281702,
281704,
314474,
281708,
281711,
289912,
248995,
306341,
306344,
306347,
322734,
306354,
142531,
199877,
289991,
306377,
289997,
249045,
363742,
363745,
298216,
330988,
126190,
216303,
322801,
388350,
257302,
363802,
199976,
199978,
314671,
298292,
298294,
257334,
216376,
380226,
298306,
224584,
224587,
224594,
216404,
306517,
150870,
314714,
224603,
159068,
314718,
265568,
314723,
281960,
150890,
306539,
314732,
314736,
290161,
216436,
306549,
298358,
314743,
306552,
290171,
314747,
306555,
298365,
290174,
224641,
281987,
298372,
314756,
281990,
224647,
265604,
298377,
314763,
142733,
298381,
314768,
224657,
306581,
314773,
314779,
314785,
314793,
282025,
282027,
241068,
241070,
241072,
282034,
241077,
150966,
298424,
306618,
282044,
323015,
306635,
306640,
290263,
290270,
290275,
339431,
282089,
191985,
282098,
290291,
282101,
241142,
191992,
290298,
151036,
290302,
282111,
290305,
175621,
306694,
192008,
323084,
257550,
282127,
290321,
282130,
323090,
290325,
282133,
241175,
290328,
282137,
290332,
241181,
282142,
282144,
290344,
306731,
290349,
290351,
290356,
28219,
282186,
224849,
282195,
282199,
282201,
306778,
159324,
159330,
314979,
298598,
323176,
224875,
241260,
323181,
257658,
315016,
282249,
290445,
282255,
282261,
175770,
298651,
282269,
323229,
298655,
323231,
61092,
282277,
306856,
196133,
282295,
323260,
282300,
323266,
282310,
323273,
282319,
306897,
241362,
306904,
282328,
298714,
52959,
216801,
282337,
241380,
216806,
323304,
282345,
12011,
282356,
323318,
282364,
282367,
306945,
241412,
323333,
282376,
216842,
323345,
282388,
323349,
282392,
184090,
315167,
315169,
282402,
315174,
323367,
241448,
315176,
241450,
282410,
306988,
306991,
315184,
323376,
315190,
241464,
159545,
282425,
298811,
118593,
307009,
413506,
307012,
241475,
298822,
315211,
282446,
307027,
315221,
323414,
315223,
241496,
241498,
307035,
307040,
110433,
282465,
241509,
110438,
298860,
110445,
282478,
315249,
110450,
315251,
282481,
315253,
315255,
339838,
315267,
282499,
315269,
241544,
282505,
241546,
241548,
298896,
298898,
282514,
241556,
298901,
44948,
241560,
282520,
241563,
241565,
241567,
241569,
282531,
241574,
282537,
298922,
36779,
241581,
282542,
241583,
323504,
241586,
282547,
241588,
290739,
241590,
241592,
241598,
290751,
241600,
241605,
151495,
241610,
298975,
241632,
298984,
241640,
241643,
298988,
241646,
241649,
241652,
323574,
290807,
299003,
241661,
299006,
282623,
315396,
241669,
315397,
282632,
282639,
290835,
282645,
241693,
282654,
241701,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
192596,
176213,
307287,
307290,
217179,
315482,
192605,
315483,
233567,
299105,
200801,
217188,
299109,
307303,
315495,
356457,
45163,
307307,
315502,
192624,
307314,
323700,
299126,
233591,
299136,
307329,
315524,
307338,
233613,
241813,
307352,
299164,
241821,
299167,
315552,
184479,
184481,
315557,
184486,
307370,
307372,
184492,
307374,
307376,
299185,
323763,
184503,
176311,
299191,
307386,
258235,
307388,
307385,
307390,
176316,
299200,
184512,
307394,
299204,
307396,
184518,
307399,
323784,
233679,
307409,
307411,
176343,
299225,
233701,
307432,
184572,
282881,
184579,
282893,
323854,
291089,
282906,
291104,
233766,
295583,
176435,
307508,
315701,
332086,
307510,
307512,
168245,
307515,
307518,
282942,
282947,
323917,
110926,
282957,
233808,
323921,
315733,
323926,
233815,
276052,
315739,
323932,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
299388,
299391,
291202,
299398,
242057,
291212,
299405,
291222,
315801,
283033,
242075,
291226,
194654,
61855,
291231,
283042,
291238,
291241,
127403,
127405,
291247,
299440,
127407,
299444,
127413,
283062,
291254,
127417,
291260,
283069,
127421,
127424,
299457,
127429,
127431,
127434,
315856,
176592,
127440,
315860,
176597,
283095,
127447,
299481,
127449,
176605,
242143,
127455,
127457,
291299,
340454,
127463,
242152,
291305,
127466,
176620,
127469,
127474,
291314,
291317,
127480,
135672,
291323,
233979,
127485,
291330,
283142,
127494,
127497,
233994,
135689,
127500,
291341,
233998,
127506,
234003,
234006,
127511,
152087,
283161,
242202,
234010,
135707,
135710,
242206,
242208,
291361,
242220,
291378,
152118,
234038,
234041,
315961,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
135808,
291456,
373383,
299655,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
299677,
225948,
135839,
299680,
225954,
299684,
135844,
242343,
209576,
242345,
373421,
135870,
135873,
135876,
135879,
299720,
299723,
299726,
225998,
226002,
119509,
226005,
226008,
299740,
242396,
201444,
299750,
283368,
234219,
283372,
185074,
226037,
283382,
316151,
234231,
234236,
226045,
242431,
234239,
209665,
234242,
299778,
242436,
226053,
234246,
226056,
234248,
291593,
242443,
234252,
242445,
234254,
291601,
234258,
242450,
242452,
234261,
348950,
201496,
234264,
234266,
234269,
283421,
234272,
234274,
152355,
299814,
234278,
283432,
234281,
234284,
234287,
283440,
185138,
242483,
234292,
234296,
234298,
160572,
283452,
234302,
234307,
242499,
234309,
316233,
234313,
316235,
234316,
283468,
234319,
242511,
234321,
234324,
185173,
201557,
234329,
234333,
308063,
234336,
242530,
349027,
234338,
234341,
234344,
234347,
177004,
234350,
324464,
234353,
152435,
177011,
234356,
234358,
234362,
226171,
234364,
291711,
234368,
291714,
234370,
291716,
234373,
316294,
201603,
226182,
308105,
234375,
226185,
234379,
324490,
234384,
234388,
234390,
324504,
234393,
209818,
308123,
324508,
234396,
291742,
226200,
234398,
234401,
291747,
291748,
234405,
291750,
234407,
324520,
324518,
324522,
234410,
291756,
291754,
226220,
324527,
291760,
234417,
201650,
324531,
234414,
234422,
226230,
324536,
275384,
234428,
291773,
242623,
324544,
234431,
234434,
324546,
324548,
234437,
226245,
234439,
226239,
234443,
291788,
234446,
275406,
193486,
234449,
316370,
193488,
234452,
234455,
234459,
234461,
234464,
234467,
234470,
168935,
5096,
324585,
234475,
234478,
316400,
234481,
316403,
234484,
234485,
234487,
324599,
234490,
234493,
316416,
234496,
234501,
275462,
308231,
234504,
234507,
234510,
234515,
300054,
316439,
234520,
234519,
234523,
234526,
234528,
300066,
234532,
300069,
234535,
234537,
234540,
144430,
234543,
234546,
275508,
300085,
234549,
300088,
234553,
234556,
234558,
316479,
234561,
316483,
160835,
234563,
308291,
234568,
234570,
316491,
234572,
300108,
234574,
300115,
234580,
234581,
242777,
234585,
275545,
234590,
234593,
234595,
234597,
300133,
234601,
300139,
234605,
160879,
234607,
275569,
234610,
316530,
300148,
234614,
398455,
144506,
234618,
234620,
275579,
234623,
226433,
234627,
275588,
234629,
242822,
234634,
234636,
177293,
234640,
275602,
234643,
308373,
226453,
234647,
275606,
275608,
234650,
308379,
324757,
300189,
324766,
119967,
234653,
324768,
283805,
234657,
242852,
300197,
234661,
283813,
234664,
177318,
275626,
234667,
316596,
308414,
234687,
300223,
300226,
308418,
234692,
300229,
308420,
308422,
283844,
226500,
300234,
283850,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
234726,
300263,
300265,
300267,
161003,
300270,
300272,
120053,
300278,
275703,
316663,
300284,
275710,
300287,
292097,
300289,
161027,
300292,
300294,
275719,
234760,
177419,
300299,
242957,
300301,
283917,
177424,
349451,
275725,
349464,
415009,
283939,
259367,
292143,
283951,
300344,
226617,
243003,
283963,
226628,
300357,
283973,
177482,
283983,
316758,
357722,
316766,
316768,
292192,
218464,
292197,
316774,
243046,
218473,
284010,
136562,
324978,
275834,
333178,
275836,
275840,
316803,
316806,
226696,
316811,
226699,
316814,
226703,
300433,
234899,
300436,
226709,
357783,
316824,
316826,
144796,
300448,
144807,
144810,
144812,
284076,
144814,
227426,
144820,
374196,
284084,
292279,
284087,
144826,
144828,
144830,
144832,
144835,
144837,
38342,
144839,
144841,
144844,
144847,
144852,
144855,
103899,
300507,
333280,
226787,
218597,
292329,
300523,
259565,
300527,
308720,
259567,
292338,
226802,
316917,
292343,
308727,
300537,
316933,
316947,
308757,
308762,
284191,
316959,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
194101,
284213,
316983,
194103,
284215,
308790,
284218,
226877,
292414,
284223,
284226,
284228,
292421,
226886,
284231,
128584,
243268,
284234,
366155,
317004,
276043,
284238,
226895,
284241,
194130,
284243,
300628,
284245,
292433,
284247,
317015,
235097,
243290,
276053,
284249,
284251,
300638,
284253,
284255,
243293,
284258,
292452,
292454,
284263,
177766,
284265,
292458,
284267,
292461,
284272,
284274,
284278,
292470,
276086,
292473,
284283,
276093,
284286,
292479,
284288,
292481,
284290,
325250,
284292,
292485,
325251,
276095,
276098,
284297,
317066,
284299,
317068,
284301,
276109,
284303,
284306,
276114,
284308,
284312,
284314,
284316,
276127,
284320,
284322,
284327,
284329,
317098,
284331,
276137,
284333,
284335,
276144,
284337,
284339,
300726,
284343,
284346,
284350,
358080,
276160,
284354,
358083,
284358,
276166,
358089,
284362,
276170,
284365,
276175,
284368,
276177,
284370,
358098,
284372,
317138,
284377,
276187,
284379,
284381,
284384,
358114,
284386,
358116,
276197,
317158,
358119,
284392,
325353,
358122,
284394,
284397,
358126,
284399,
358128,
276206,
358133,
358135,
276216,
358138,
300795,
358140,
284413,
358142,
358146,
317187,
284418,
317189,
317191,
284428,
300816,
300819,
317207,
284440,
300828,
300830,
276255,
300832,
325408,
300834,
317221,
227109,
358183,
186151,
276268,
300845,
243504,
300850,
284469,
276280,
325436,
358206,
276291,
366406,
276295,
300872,
292681,
153417,
358224,
284499,
276308,
284502,
317271,
178006,
276315,
292700,
317279,
284511,
227175,
292715,
300912,
292721,
284529,
300915,
284533,
292729,
317306,
284540,
292734,
325512,
169868,
276365,
317332,
358292,
284564,
399252,
284566,
350106,
284572,
276386,
284579,
276388,
358312,
317353,
284585,
276395,
292776,
292784,
276402,
358326,
161718,
358330,
276410,
276411,
276418,
276425,
301009,
301011,
301013,
292823,
358360,
301017,
301015,
292828,
276446,
153568,
276448,
276452,
292839,
276455,
350186,
292843,
276460,
292845,
276464,
178161,
227314,
276466,
325624,
350200,
276472,
317435,
276476,
276479,
276482,
350210,
276485,
317446,
178181,
276490,
350218,
292876,
350222,
317456,
276496,
317458,
178195,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
276528,
178224,
243762,
309298,
325685,
325689,
235579,
325692,
235581,
178238,
276539,
276544,
243779,
325700,
284739,
292934,
243785,
276553,
350293,
350295,
309337,
194649,
227418,
350299,
350302,
227423,
350304,
178273,
309346,
194657,
194660,
350308,
309350,
309348,
292968,
309352,
309354,
301163,
350313,
350316,
227430,
301167,
276583,
350321,
276590,
284786,
276595,
350325,
252022,
227440,
350328,
292985,
301178,
350332,
292989,
301185,
292993,
350339,
317570,
317573,
350342,
350345,
350349,
301199,
317584,
325777,
350354,
350357,
350359,
350362,
350366,
276638,
284837,
153765,
350375,
350379,
350381,
350383,
129200,
350385,
350387,
350389,
350395,
350397,
350399,
227520,
350402,
227522,
301252,
350406,
227529,
301258,
309450,
276685,
309455,
276689,
309462,
301272,
276699,
194780,
309468,
309471,
301283,
317672,
317674,
325867,
243948,
194801,
309491,
227571,
309494,
243960,
276735,
227583,
227587,
276739,
211204,
276742,
227593,
227596,
325910,
309530,
342298,
211232,
317729,
276775,
211241,
325937,
325943,
211260,
260421,
276809,
285002,
276811,
235853,
276816,
235858,
276829,
276833,
391523,
276836,
293227,
276843,
293232,
276848,
186744,
211324,
227709,
285061,
366983,
317833,
178572,
285070,
285077,
178583,
227738,
317853,
276896,
317858,
342434,
285093,
317864,
285098,
276907,
235955,
276917,
293304,
293307,
293314,
309707,
293325,
129486,
317910,
293336,
235996,
317917,
293343,
358880,
276961,
227810,
293346,
276964,
293352,
236013,
293364,
301562,
293370,
317951,
309764,
301575,
121352,
293387,
236043,
342541,
317963,
113167,
55822,
309779,
317971,
309781,
277011,
55837,
227877,
227879,
293417,
227882,
309804,
293421,
105007,
236082,
285236,
23094,
277054,
244288,
219714,
129603,
301636,
318020,
301639,
301643,
277071,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
309871,
121458,
277106,
170618,
170619,
309885,
309888,
277122,
227975,
277128,
285320,
301706,
318092,
326285,
334476,
318094,
277136,
277139,
227992,
334488,
318108,
285340,
318110,
227998,
137889,
383658,
285357,
318128,
277170,
293555,
318132,
342707,
154292,
277173,
285368,
277177,
277181,
318144,
277187,
277191,
277194,
277196,
277201,
342745,
137946,
342747,
342749,
113378,
203491,
228069,
277223,
342760,
285417,
56041,
56043,
56045,
277232,
228081,
56059,
310015,
285441,
310020,
285448,
310029,
228113,
285459,
277273,
293659,
326430,
228128,
285474,
293666,
228135,
318248,
277291,
318253,
293677,
285489,
301876,
293685,
285494,
301880,
285499,
301884,
310080,
293696,
277317,
277322,
293706,
277329,
162643,
310100,
301911,
301913,
277337,
301921,
400236,
236397,
162671,
326514,
310134,
236408,
15224,
277368,
416639,
416640,
113538,
310147,
416648,
39817,
187274,
277385,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
276579,
293811,
293817,
293820,
203715,
326603,
342994,
276586,
293849,
293861,
228327,
228328,
318442,
228330,
228332,
326638,
277486,
351217,
318450,
293876,
293877,
285686,
302073,
121850,
293882,
302075,
285690,
244731,
293887,
277504,
277507,
277511,
293899,
277519,
293908,
302105,
293917,
293939,
318516,
277561,
277564,
310336,
7232,
293956,
277573,
228422,
293960,
310344,
277577,
277583,
203857,
293971,
310355,
310359,
236632,
277594,
138332,
277598,
203872,
277601,
285792,
310374,
203879,
310376,
228460,
318573,
203886,
187509,
285815,
367737,
285817,
302205,
285821,
392326,
285831,
253064,
294026,
302218,
285835,
162964,
384148,
187542,
302231,
285849,
302233,
285852,
302237,
285854,
285856,
302241,
285862,
277671,
302248,
64682,
277678,
294063,
294065,
302258,
277687,
294072,
318651,
294076,
277695,
318657,
244930,
302275,
130244,
302277,
228550,
302282,
310476,
302285,
302288,
310481,
302290,
203987,
302292,
302294,
310486,
302296,
384222,
310498,
285927,
318698,
302315,
195822,
228592,
294132,
138485,
228601,
204026,
228606,
204031,
64768,
310531,
285958,
138505,
228617,
318742,
204067,
277798,
130345,
277801,
113964,
285997,
384302,
285999,
277804,
113969,
277807,
277811,
318773,
318776,
277816,
286010,
277819,
294204,
417086,
277822,
286016,
302403,
294211,
384328,
277832,
277836,
294221,
146765,
294223,
326991,
277839,
277842,
277847,
277850,
179547,
277853,
146784,
277857,
302436,
277860,
294246,
327015,
310632,
327017,
351594,
277864,
277869,
277872,
351607,
310648,
277880,
310651,
277884,
277888,
310657,
351619,
294276,
310659,
327046,
277892,
253320,
310665,
318858,
277894,
277898,
277903,
310672,
351633,
277905,
277908,
277917,
310689,
277921,
130468,
228776,
277928,
277932,
310703,
277937,
310710,
130486,
310712,
277944,
310715,
277947,
302526,
228799,
277950,
277953,
302534,
310727,
245191,
64966,
163272,
277959,
277963,
302541,
277966,
302543,
310737,
277971,
228825,
163290,
277978,
310749,
277981,
277984,
310755,
277989,
277991,
187880,
277995,
310764,
286188,
278000,
228851,
310772,
278003,
278006,
40440,
212472,
278009,
40443,
286203,
310780,
40448,
228864,
286214,
228871,
302603,
65038,
302614,
302617,
286233,
302621,
286240,
146977,
187936,
187939,
40484,
294435,
40486,
286246,
294440,
40488,
294439,
294443,
40491,
294445,
278057,
310831,
245288,
286248,
40499,
40502,
212538,
40507,
40511,
40513,
228933,
327240,
40521,
286283,
40525,
40527,
212560,
400976,
228944,
40533,
147032,
40537,
40539,
40541,
278109,
40544,
40548,
40550,
40552,
286312,
40554,
286313,
310892,
40557,
40560,
188022,
122488,
294521,
343679,
294537,
310925,
286354,
278163,
302740,
122517,
278168,
179870,
327333,
229030,
212648,
278188,
302764,
278192,
319153,
278196,
319163,
302781,
319171,
302789,
294599,
278216,
294601,
302793,
343757,
212690,
319187,
286420,
278227,
229076,
286425,
319194,
278235,
278238,
229086,
286432,
294625,
294634,
302838,
319226,
286460,
278274,
302852,
278277,
302854,
294664,
311048,
352008,
319243,
311053,
302862,
319251,
294682,
278306,
188199,
294701,
319280,
278320,
319290,
229192,
302925,
188247,
280021,
188252,
237409,
229233,
294776,
360317,
294785,
327554,
360322,
40840,
40851,
294803,
188312,
294811,
237470,
319390,
40865,
319394,
294817,
294821,
311209,
180142,
343983,
294831,
188340,
40886,
319419,
294844,
294847,
237508,
393177,
294876,
294879,
294883,
393190,
294890,
311279,
278513,
237555,
311283,
278516,
278519,
237562
] |
773a3e722d598eb2cdd2b5c218edaf7801d7050e
|
291dac3d16b1a64ef644a5582313a2bb2714fc44
|
/YFSwiftFrameworkTests/YFSwiftFrameworkTests.swift
|
48b2ca83d08f493c19c4bf262d46bf545f0853ec
|
[
"MIT"
] |
permissive
|
yeziahehe/YFSwiftFramework
|
6ca9cc0eb71bdb46e6c9be56b64a2cc0d91e57e6
|
e93f80ef30be44c092000aa9b049e6b8e760a92a
|
refs/heads/master
| 2021-01-09T20:29:35.595353 | 2016-08-11T08:42:02 | 2016-08-11T08:42:02 | 64,282,241 | 2 | 4 | null | 2016-08-11T08:42:02 | 2016-07-27T06:14:19 |
Swift
|
UTF-8
|
Swift
| false | false | 1,045 |
swift
|
//
// YFSwiftFrameworkTests.swift
// YFSwiftFrameworkTests
//
// Created by 叶帆 on 16/7/27.
// Copyright © 2016年 Suzhou Coryphaei Information&Technology Co., Ltd. All rights reserved.
//
import XCTest
@testable import YFSwiftFramework
class YFSwiftFrameworkTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measureBlock {
// Put the code you want to measure the time of here.
}
}
}
|
[
-1
] |
20ce783217903edff9fe533cbfdc7cca8be2d71e
|
ddd7c2666d60ff65fadecb24e8a92c6cf1abddbf
|
/HighTime/Features/Pass lesson test/Controllers/PassLessonTestVC.swift
|
4ba06d99fdd2ad58bbed8ae1a2fa73b6ba811f48
|
[] |
no_license
|
Santineet/HighTime
|
928c44cc759f513a86f4e9a340fe1532db9c3e73
|
bbdfa1c4ae5573098a2f8a69e472736f84458753
|
refs/heads/master
| 2020-07-15T09:21:26.160424 | 2019-11-09T10:35:32 | 2019-11-09T10:35:32 | 205,531,082 | 4 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 10,263 |
swift
|
//
// PassLessonTestVC.swift
// HighTime
//
// Created by Mairambek on 28/08/2019.
// Copyright © 2019 Sunrise. All rights reserved.
//
import UIKit
import MBRadioButton
class PassLessonTestVC: UIViewController {
@IBOutlet weak var lessonNum: UILabel!
@IBOutlet weak var tableView: UITableView!
@IBOutlet weak var doneButton: UIButton!
var test = VideosModel()
override func viewDidLoad() {
super.viewDidLoad()
tableView.allowsSelection = false
lessonNum.text = test.name
tableView.delegate = self
tableView.dataSource = self
self.tableView.tableFooterView = UIView()
doneButton.addTarget(self, action: #selector(doneButtonClicked(sender:)), for: .touchUpInside)
}
//MARK: Button Clicked
func didTappedAnswerButton(answerButton:RadioButton, cell:UITableViewCell){
guard let indexPathTapped = tableView.indexPath(for: cell) else {return}
test.tests[indexPathTapped.row].isSelected = answerButton.tag
let answerIndex = answerButton.tag - 1
if test.tests[indexPathTapped.row].answers[answerIndex].correct == true {
test.tests[indexPathTapped.row].isCorrect = true
} else {
test.tests[indexPathTapped.row].isCorrect = false
}
}
@objc func doneButtonClicked(sender: UIButton){
var corectAnswersNum = 0
for i in 0..<test.tests.count{
test.tests[i].isSelected = 0
if test.tests[i].isCorrect == true {
corectAnswersNum += 1
} else if test.tests[i].isCorrect == false {
} else if test.tests[i].isCorrect == nil {
Alert.displayAlert(title: "Ошибка", message: "Ответьте на все вопросы", vc: self)
return
}
}
guard let navCont = navigationController else {return}
Alert.alertForTests(title: "", message: "Количество правильных ответов: \(corectAnswersNum)", vc: self, navCont: navCont)
}
}
extension PassLessonTestVC: UITableViewDelegate, UITableViewDataSource{
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return test.tests.count
}
//MARK: cellForRowAt
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if self.test.tests[indexPath.row].answers[0].thumbnail == "" {
let cell = tableView.dequeueReusableCell(withIdentifier: "PassLessonTestTVCell", for: indexPath) as! PassLessonTestTVCell
cell.link = self
let question = self.test.tests[indexPath.row]
question.content = question.content.replacingOccurrences(of: "&", with: " ")
question.content = question.content.replacingOccurrences(of: "amp;", with: " ")
question.content = question.content.replacingOccurrences(of: "nbsp;", with: " ")
question.content = question.content.replacingOccurrences(of: "ndash;", with: " ")
question.content = question.content.replacingOccurrences(of: "rsquo;", with: " ")
question.content = question.content.replacingOccurrences(of: " ", with: " ")
cell.content.text = question.content
//присваивание title button'aм
for i in 0..<5{
if i < question.answers.count {
var buttonText = question.answers[i].name.replacingOccurrences(of: "&", with: " ")
buttonText = buttonText.replacingOccurrences(of: "amp;", with: " ")
buttonText = buttonText.replacingOccurrences(of: "rsquo;", with: " ")
buttonText = buttonText.replacingOccurrences(of: " ", with: " ")
cell.answersButtonArray[i].setTitle(buttonText, for: .normal)
cell.answersButtonArray[i].isHidden = false
} else {
cell.answersButtonArray[i].isHidden = true
}
}
self.tableView(tableView, willDisplay: cell, forRowAt: indexPath)
return cell
} else if self.test.tests[indexPath.row].answers[0].thumbnail != "" {
let cell = tableView.dequeueReusableCell(withIdentifier: "TestWithImagesTVCell", for: indexPath) as! TestWithImagesTVCell
cell.link = self
let question = self.test.tests[indexPath.row]
cell.content.text = question.content
//присваивание title button'aм
for i in 0..<4{
if i < question.answers.count {
let imageURL = question.answers[i].thumbnail
var buttonText = question.answers[i].name.replacingOccurrences(of: "&", with: " ")
buttonText = buttonText.replacingOccurrences(of: "amp;", with: " ")
buttonText = buttonText.replacingOccurrences(of: "rsquo;", with: " ")
buttonText = buttonText.replacingOccurrences(of: " ", with: " ")
cell.answersButtonArray[i].setTitle(buttonText, for: .normal)
cell.answersButtonArray[i].isHidden = false
cell.imagesArray[i].isHidden = false
cell.imagesArray[i].sd_setImage(with: URL(string: imageURL), placeholderImage: UIImage(named: ""))
} else {
cell.answersButtonArray[i].isHidden = true
cell.imagesArray[i].isHidden = true
}
}
self.tableView(tableView, willDisplay: cell, forRowAt: indexPath)
return cell
}
return UITableViewCell()
}
//MARK: willDisplay
func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath){
if let cell = cell as? TestWithImagesTVCell {
let question = self.test.tests[indexPath.row]
question.content = question.content.replacingOccurrences(of: "&", with: " ")
question.content = question.content.replacingOccurrences(of: "amp;", with: " ")
question.content = question.content.replacingOccurrences(of: "nbsp;", with: " ")
question.content = question.content.replacingOccurrences(of: "ndash;", with: " ")
question.content = question.content.replacingOccurrences(of: "rsquo;", with: " ")
question.content = question.content.replacingOccurrences(of: " ", with: " ")
cell.content.text = question.content
if question.isSelected != 0 {
let selectNum = question.isSelected - 1
cell.viewContainerCell.selectedButton = cell.answersButtonArray[selectNum]
} else {
cell.viewContainerCell.selectedButton = nil
}
} else {
guard let cell = cell as? PassLessonTestTVCell else {return}
let question = self.test.tests[indexPath.row]
cell.content.text = question.content
if question.isSelected != 0 {
let selectNum = question.isSelected - 1
cell.viewContainerCell.selectedButton = cell.answersButtonArray[selectNum]
} else {
cell.viewContainerCell.selectedButton = nil
}
}
}
//MARK: heightForRowAt
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
let questionText = test.tests[indexPath.row].content
let stringSizeAsText: CGSize = getStringSizeForFont(font: UIFont(name: "Avenir", size: 14.0)!, myText: questionText)
let labelWidth: CGFloat = UIScreen.main.bounds.width - 42.0
let originalLabelHeight: CGFloat = 14.0
let labelLines: CGFloat = CGFloat(ceil(Float(stringSizeAsText.width/labelWidth)))
let question = self.test.tests[indexPath.row]
//MARK: Answers with image
if question.answers[0].thumbnail != "" {
if question.answers.count == 2 {
let height = 319 - originalLabelHeight + CGFloat(labelLines*stringSizeAsText.height)
return height
} else if question.answers.count == 3 {
let height = 439 - originalLabelHeight + CGFloat(labelLines*stringSizeAsText.height)
return height
} else if question.answers.count == 4 {
let height = 559 - originalLabelHeight + CGFloat(labelLines*stringSizeAsText.height)
return height
} else {
let height = 559 - originalLabelHeight + CGFloat(labelLines*stringSizeAsText.height)
return height
}
}
//MARK: Answers without image
if question.answers.count == 2 {
let height = 134 - originalLabelHeight + CGFloat(labelLines*stringSizeAsText.height)
return height
} else if question.answers.count == 3 {
let height = 175 - originalLabelHeight + CGFloat(labelLines*stringSizeAsText.height)
return height
} else if question.answers.count == 4 {
let height = 216 - originalLabelHeight + CGFloat(labelLines*stringSizeAsText.height)
return height
} else if question.answers.count == 5 {
let height = 277 - originalLabelHeight + CGFloat(labelLines*stringSizeAsText.height)
return height
} else {
return 100
}
}
// Метод для рассчета размера Cell
func getStringSizeForFont(font: UIFont, myText: String) -> CGSize {
let fontAttributes = [NSAttributedString.Key.font: font]
let size = (myText as NSString).size(withAttributes: fontAttributes)
return size
}
}
|
[
-1
] |
8ac758ce47c16e884972a6a6d3158d407d2fe8c0
|
2074f0fdfd5113bfbaa9d9e76b102c88186e404e
|
/Example/CocoaPods-AppStoreConnect-Swift-SDK/Tests/JWTRequestsAuthenticatorTests.swift
|
864d9977e16e8187b12b773ff7c69dd8f7e1eef3
|
[
"MIT"
] |
permissive
|
phimage/appstoreconnect-swift-sdk
|
50635aa2bff7c5fce2f80e08a7cd19ef71dae0b5
|
15368d8e22ae87a10b9b7d5aec678ad99af33f0b
|
refs/heads/master
| 2020-04-09T17:47:38.649898 | 2018-12-04T07:28:08 | 2018-12-04T07:28:08 | 160,491,395 | 0 | 0 |
MIT
| 2018-12-05T09:13:10 | 2018-12-05T09:13:09 | null |
UTF-8
|
Swift
| false | false | 2,790 |
swift
|
//
// JWTRequestsAuthenticatorTests.swift
// AppStoreConnect-Swift-SDK_Tests
//
// Created by Antoine van der Lee on 10/11/2018.
// Copyright © 2018 CocoaPods. All rights reserved.
//
import XCTest
@testable import AppStoreConnect_Swift_SDK
final class JWTRequestsAuthenticatorTests: XCTestCase {
private let configuration = APIConfiguration(issuerID: UUID().uuidString, privateKeyID: UUID().uuidString, privateKey: "MIGTAgEAMBMGByqGSM49AgEGCCqGSM49AwEHBHkwdwIBAQQgPaXyFvZfNydDEjxgjUCUxyGjXcQxiulEdGxoVbasV3GgCgYIKoZIzj0DAQehRANCAASflx/DU3TUWAoLmqE6hZL9A7i0DWpXtmIDCDiITRznC6K4/WjdIcuMcixy+m6O0IrffxJOablIX2VM8sHRscdr")
private lazy var urlRequest = URLRequest(url: URL(string: "www.avanderlee.com")!)
/// It should correctly set the authorization header.
func testAuthorizationHeader() {
let authenticator = JWTRequestsAuthenticator(apiConfiguration: configuration)
let jwtCreator = MockJWTCreator(token: UUID().uuidString)
authenticator.jwtCreator = jwtCreator
let request = try! authenticator.adapt(urlRequest)
XCTAssertTrue(request.allHTTPHeaderFields?["Authorization"] == "Bearer \(jwtCreator.token)")
}
/// It should return the cached bearer if it's not expired.
func testCachedBearer() {
let authenticator = JWTRequestsAuthenticator(apiConfiguration: configuration)
let firstJWTCreator = MockJWTCreator(token: try! authenticator.jwtCreator.signedToken(using: configuration.privateKey))
let secondJWTCreator = MockJWTCreator(token: UUID().uuidString)
authenticator.jwtCreator = firstJWTCreator
_ = try! authenticator.adapt(urlRequest)
authenticator.jwtCreator = secondJWTCreator
let request = try! authenticator.adapt(urlRequest)
XCTAssertEqual(request.allHTTPHeaderFields!["Authorization"], "Bearer \(firstJWTCreator.token)")
}
/// It should return a new token if the cached token is expired.
func testExpiredBearer() {
let authenticator = JWTRequestsAuthenticator(apiConfiguration: configuration)
let firstJWTCreator = JWT(keyIdentifier: configuration.privateKeyID, issuerIdentifier: configuration.issuerID, expireDuration: -10)
let secondJWTCreator = MockJWTCreator(token: UUID().uuidString)
authenticator.jwtCreator = firstJWTCreator
_ = try! authenticator.adapt(urlRequest)
authenticator.jwtCreator = secondJWTCreator
let request = try! authenticator.adapt(urlRequest)
XCTAssertEqual(request.allHTTPHeaderFields!["Authorization"], "Bearer \(secondJWTCreator.token)")
}
}
private struct MockJWTCreator: JWTCreatable {
let token: JWT.Token
func signedToken(using privateKey: JWT.P8PrivateKey) throws -> JWT.Token {
return token
}
}
|
[
-1
] |
fe6a2694b2ed2a5ba5ee286d8ca902996925c3f7
|
64ccd7d0e665fdd8eef559494a13502ef62cd45c
|
/SwiftProductStudy/HomeViewController.swift
|
869bc380e728013c3d341cbbbed9f3351279865f
|
[] |
no_license
|
VVinciYang/SwiftProductStudy
|
6400179b80c980fc3a8fba77498e74c5e548e25a
|
826d5e533f578e70480f3f51b0427b1be2b793e9
|
refs/heads/master
| 2020-12-02T21:13:29.395003 | 2017-07-14T08:30:28 | 2017-07-14T08:30:28 | 96,274,756 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,213 |
swift
|
//
// HomeViewController.swift
// SwiftProductStudy
//
// Created by vinci on 2017/7/12.
// Copyright © 2017年 vinci. All rights reserved.
//
import UIKit
class HomeViewController: UIViewController {
var backgroundImageView: UIImageView!
var collectionView: UICollectionView!
fileprivate var interests = Interset.createInterests()
fileprivate struct Storyboard {
static let cellIndentifier = "Interest Cell"
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
override var preferredStatusBarStyle: UIStatusBarStyle {
return .lightContent
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
//MARK : - UICollectionViewDataSource
extension HomeViewController: UICollectionViewDataSource {
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return interests.count
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: Storyboard.cellIndentifier, for: indexPath) as! InterestCollectionViewCell
cell.interest = interests[(indexPath as NSIndexPath).item]
return cell
}
}
extension HomeViewController: UICollectionViewDelegate {
func scrollViewWillEndDragging(_ scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer<CGPoint>) {
let layout = self.collectionView.collectionViewLayout as! UICollectionViewFlowLayout
let cellWidthWithSpace = layout.itemSize.width + layout.minimumLineSpacing
var offset = targetContentOffset.pointee
let index = (offset.x + scrollView.contentInset.left) / cellWidthWithSpace
let roundedIndex = round(index)
offset = CGPoint(x: roundedIndex * cellWidthWithSpace - scrollView.contentInset.left, y: -scrollView.contentInset.top)
}
}
|
[
-1
] |
70349bcb92489a2523e9395ed3a4d0bc32ed874a
|
eeedb99363adb586621e7388b28765b19d5e16d0
|
/Twitter/MenuViewController.swift
|
2fd4da11760fefe0ee4d384e12f7e049bbe8d5e6
|
[] |
no_license
|
ogklacodepath/TwitterRedux
|
17ee397cd396e510cb7873e0c09b90a224998419
|
81bd679e7f1f5abc2fe78724706a39f2e764b53a
|
refs/heads/master
| 2021-01-20T20:57:27.626237 | 2015-09-22T16:10:11 | 2015-09-22T16:10:11 | 42,942,520 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,907 |
swift
|
//
// MenuViewController.swift
// Twitter
//
// Created by Golak Sarangi on 9/21/15.
// Copyright © 2015 Golak Sarangi. All rights reserved.
//
import UIKit
class MenuViewController: UIViewController, UITableViewDataSource, UITableViewDelegate {
@IBOutlet weak var menuTableView: UITableView!
var viewControllers: [UIViewController] = []
var mainViewController : MainWindowViewController?
var menuItem = [
"TimeLine", "Profile"
]
override func viewDidLoad() {
self.menuTableView.delegate = self
self.menuTableView.dataSource = self
let storyboard = UIStoryboard(name: "Main", bundle: nil)
let TweetsViewNavigationController = storyboard.instantiateViewControllerWithIdentifier("TweetsViewNavigationController")
viewControllers.append(TweetsViewNavigationController)
let ProfileViewController = storyboard.instantiateViewControllerWithIdentifier("ProfileViewController")
viewControllers.append(ProfileViewController)
mainViewController?.contentViewController = TweetsViewNavigationController
}
func numberOfSectionsInTableView(tableView: UITableView) -> Int {
return 1
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return self.menuItem.count
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
print("startingwith cell")
let cell = menuTableView.dequeueReusableCellWithIdentifier("menuCell", forIndexPath: indexPath) as! MenuCell
cell.menuTitleLabel.text = menuItem[indexPath.row]
return cell
}
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
menuTableView.deselectRowAtIndexPath(indexPath, animated: true)
mainViewController?.contentViewController = viewControllers[indexPath.row]
}
func tableView(tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 100
}
func tableView(tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let headerCell = tableView.dequeueReusableCellWithIdentifier("menuHeaderCell") as! MenuHeaderCell
headerCell.profileImageView!.setImageWithURL(NSURL(string: User.currentUser!.profileImageUrl!))
headerCell.nameLabel.text = User.currentUser!.name
headerCell.handleLabel.text = User.currentUser!.screenName
return headerCell
}
}
class MenuCell: UITableViewCell {
@IBOutlet weak var menuTitleLabel: UILabel!
}
class MenuHeaderCell: UITableViewCell {
@IBOutlet weak var profileImageView: UIImageView!
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var handleLabel: UILabel!
}
|
[
-1
] |
a41e42a34ba0a80e00bbccce4d3afb2015a08209
|
45ad810796b62cf7c550f752760728b453ff914d
|
/Project/SwiftLeetcode/SwiftLeetcode/Solutions/Easy104.swift
|
901002876c086520aa77fdc3d1421e59ba82c64f
|
[
"Apache-2.0"
] |
permissive
|
praja4267/SwiftLeetcode
|
44ee02788dbe81b6222e683c1848729fa6e345c0
|
2404f14d4c4978cbefd89e0e6226f0b5af45b1a2
|
refs/heads/master
| 2022-11-26T21:07:05.149834 | 2020-07-29T04:36:00 | 2020-07-29T04:36:00 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 479 |
swift
|
//
// Easy104.swift
// SwiftLeetcode
//
// Created by roosky on 12/26/18.
// Copyright © 2018 K W. All rights reserved.
//
/**
https://leetcode.com/problems/maximum-depth-of-binary-tree/
104. Maximum Depth of Binary Tree
Time: O(N)
Space: O(N)
**/
import UIKit
class Easy104: NSObject {
func maxDepth(_ root: TreeNode?) -> Int {
if root == nil {
return 0
}
return max(maxDepth(root?.left), maxDepth(root?.right)) + 1;
}
}
|
[
-1
] |
5e9b9e249c84e29df767a6a2e187234af8560a9d
|
60da5652c86cbc121b9b3b29c5f7d3116bcc0293
|
/GifRecorderTests/WindowManagerTests.swift
|
724050112aa41cd1bd69c4a18298cc0fe672bd91
|
[] |
no_license
|
yegorsch/Window-to-GIF-Recorder
|
badfe03ae9c1f4a5bdf5753eecb112160f4e9c8e
|
2679b73d4519bbb255c5fd2f7e4b0c5486aac682
|
refs/heads/master
| 2023-01-31T07:09:49.969089 | 2020-12-07T11:26:52 | 2020-12-07T11:26:52 | 91,222,015 | 2 | 2 | null | null | null | null |
UTF-8
|
Swift
| false | false | 459 |
swift
|
//
// WindowManagerTests.swift
// GifRecorderTests
//
// Created by Егор on 8/1/18.
// Copyright © 2018 Yegor's Mac. All rights reserved.
//
@testable import Wind
import XCTest
class WindowManagerTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
func testWindows() {
WindowManager.windows()
}
}
|
[
-1
] |
397bde59205ebcf9167df633f96819c64eb88a0f
|
ec67e760591ca91aa1e1dd94820342c3e45f5103
|
/swift/Array/15_3Sum.swift
|
188d64c758bfedf694c9ea0a0e51d3e969f7d49f
|
[] |
no_license
|
LiuLongyang0305/LeetCode
|
651b40218018a0af016be3ded346947e5103f3d3
|
7a40ef7a98b29d406c6dab04be5706143fafdc9b
|
refs/heads/master
| 2022-12-17T06:24:28.247430 | 2022-11-25T00:34:15 | 2022-11-25T00:34:15 | 173,130,194 | 4 | 1 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,177 |
swift
|
//https://leetcode.com/problems/3sum/
class Solution {
func threeSum(_ nums: [Int]) -> [[Int]] {
let length = nums.count
var ans = [[Int]]()
if length < 3 {
return ans
}
var sortedNums = nums.sorted()
for i in 0..<(length - 1) {
if i > 0 && sortedNums[i] == sortedNums[i - 1] {
continue
}
var j = i + 1
var k = length - 1
let target = -sortedNums[i]
while j < k {
if sortedNums[j] + sortedNums[k] == target {
ans.append([sortedNums[i],sortedNums[j],sortedNums[k]])
j += 1
k -= 1
while j < k && sortedNums[j] == sortedNums[j - 1] {
j += 1
}
while j < k && sortedNums[k] == sortedNums[k + 1] {
k -= 1
}
} else if sortedNums[j] + sortedNums[k] > target {
k -= 1
} else {
j += 1
}
}
}
return ans
}
}
|
[
-1
] |
f8c8e08d0a014478eff019ebec1cc576ad40d893
|
3908a20f69b77476794d41caec28d65b53f96faa
|
/iOS-Customer/iOS-Customer/Control/RoomTypePage/RoomDetailTableViewCell.swift
|
e0b08e60a84b477ae8c085fb7894e241cbb22ec2
|
[] |
no_license
|
shrimpshell/iOS-Customer
|
b5a04c95dcf46f7d93e598a9c7baf742bdc1692c
|
c72f8bd70dc3d846ce67276f6053a0c0e6fbcd0a
|
refs/heads/develop
| 2020-03-30T08:53:30.381201 | 2018-12-20T02:51:12 | 2018-12-20T02:51:12 | 151,047,364 | 0 | 0 | null | 2018-12-20T02:54:59 | 2018-10-01T06:50:02 |
Swift
|
UTF-8
|
Swift
| false | false | 587 |
swift
|
//
// RoomDetailTableViewCell.swift
// Employee
//
// Created by Lucy on 2018/11/8.
// Copyright © 2018 Lucy. All rights reserved.
//
import UIKit
class RoomDetailTableViewCell: UITableViewCell {
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var typeLabel: UILabel!
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
}
override func setSelected(_ selected: Bool, animated: Bool) {
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
|
[
317952,
431104,
320001,
337412,
227845,
333831,
227849,
418826,
227852,
333837,
372750,
372753,
196114,
372754,
327190,
196119,
328214,
287258,
370207,
243746,
287266,
281636,
199212,
305202,
289336,
327224,
327225,
307277,
327248,
235604,
235611,
339039,
340582,
302183,
213095,
213097,
340589,
310894,
302195,
213109,
340599,
148600,
230522,
403068,
410751,
100480,
300672,
288390,
373908,
373913,
148637,
148638,
276639,
148648,
300206,
327344,
361651,
327360,
379078,
223437,
273105,
291544,
306907,
337627,
176358,
375532,
271087,
271088,
271089,
325874,
338682,
271112,
276746,
271117,
276756,
203542,
123678,
261406,
349470,
396065,
111912,
369458,
369461,
282934,
342850,
342851,
151881,
430412,
283471,
283472,
270679,
287066,
287067,
228188,
287071,
37215,
265569,
350049,
270691,
317283,
355170,
350050,
257898,
330602,
317296,
308081,
179568,
113524,
262518,
317302,
244600,
244602,
179578,
179580,
211843,
213891,
36743,
225159,
209803,
302475,
227219,
334231,
276390,
211370,
288690,
281014,
276406,
299965,
306623,
299968,
306625,
306626,
323530,
323532,
323536,
430546,
430547,
358868,
384982,
180695,
180696,
358875,
358876,
384988,
155614,
384995,
284131,
344039,
196076,
302573,
237551,
310778,
305661
] |
6bbd32b660d88b2c7c48415f436ad911ea11ec21
|
9492fefc2fc284b1fdafe94bcdb967f8e848815c
|
/Source/RSThemeKit/Views/ThemeTableView.swift
|
9b2bce63f120d53105d724f4ec13711d1fd88ba9
|
[
"MIT"
] |
permissive
|
byLXS/RSThemeKit
|
d2e0f9a8527a141e8a0461a010bbb6a0b13428d5
|
73c67f493355ae5db1e587d996c191b3c7a7a5c8
|
refs/heads/master
| 2021-01-01T09:02:21.076497 | 2020-06-27T22:59:59 | 2020-06-27T22:59:59 | 239,209,347 | 3 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 680 |
swift
|
import UIKit
open class ThemeTableView: UITableView {
override public func awakeFromNib() {
super.awakeFromNib()
addThemeObserver()
}
public func addThemeObserver() {
ThemeManager.addThemeObserver(self, selector: #selector(changedTheme))
changedTheme()
}
@objc func changedTheme() {
decorator(theme: ThemeManager.currentTheme)
}
open func decorator(theme: ThemeModel) {
backgroundColor = theme.tableViewColor
separatorColor = theme.separatorColor
indicatorStyle = theme.indicatorStyle
}
deinit {
NotificationCenter.default.removeObserver(self)
}
}
|
[
-1
] |
bae23cdb50f9e9227ecc50478d04ff995e964111
|
e2d5aff226f9de4c944effcc87b6dc7b32d722a5
|
/NewsTestProject/Networking/API/PlayerInfoApi.swift
|
181d651045fa0bcc2c203fe27ce5fdc9722ea4f9
|
[] |
no_license
|
madlax19/TestSwiftProject
|
d4509bd12d32889907a3b72ca2da7073fd761fce
|
8638f6f531c8d6d70e68d71ee91b8f7723332c9d
|
refs/heads/master
| 2020-03-16T07:08:52.684643 | 2018-04-03T10:06:37 | 2018-04-03T10:06:37 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,310 |
swift
|
//
// PlayerInfoApi.swift
// NewsTestProject
//
// Created by Sergei on 3/24/18.
// Copyright © 2018 Sergei. All rights reserved.
//
import Foundation
import Moya
enum PlayerInfoApi {
case playerInfo(playerName:String, game:GameInfo)
}
extension PlayerInfoApi: TargetType {
var baseURL: URL {
switch self {
case .playerInfo(_ , let game):
let gameApiType = game.rawValue.uppercased()
let urlPath = "\(Bundle.main.object(forInfoDictionaryKey: "PLAYER_INFO_\(gameApiType)_API")!)"
return URL(string: urlPath)!
}
}
var path: String {
switch self {
case .playerInfo(_, _):
return "playerInfo"
}
}
var method: Moya.Method {
switch self {
case .playerInfo(_, _):
return .get
}
}
var sampleData: Data {
switch self {
case .playerInfo(_, _):
return NSDataAsset(name: "PlayerStats")!.data
}
}
var task: Task {
switch self {
case .playerInfo(let playerName, _):
return .requestParameters(parameters: ["plat":"pc", "name":playerName], encoding: URLEncoding.default)
}
}
var headers: [String : String]? {
return [:]
}
}
|
[
-1
] |
af350dbfb050c0e60430793283acf09dc14bd1b0
|
94ffe52eaad035abc79371f8e357baf3ba844cba
|
/MovieFinder/StoryboardIdentifiable.swift
|
b25c61cdc8eb0bb04f6148bac5d6ab9af3532b5e
|
[] |
no_license
|
ianrahman/MovieFinder
|
4c9c1679dd2544213e4694b4006dae3a0180fe3b
|
e20481c71e9e523ad5ba25e5e30d0c84e45b2bfb
|
refs/heads/master
| 2021-01-01T17:59:01.021132 | 2018-05-18T20:46:25 | 2018-05-18T20:46:25 | 98,211,300 | 1 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 706 |
swift
|
//
// StoryboardIdentifiable.swift
// MovieFinder
//
// Created by Ian Rahman on 7/20/17.
// Copyright © 2017 Evergreen Labs. All rights reserved.
//
import UIKit
// MARK: - Storyboard Identifiable Protocol
protocol StoryboardIdentifiable {
static var storyboardIdentifier: String { get }
}
// MARK: - View Controller
extension StoryboardIdentifiable where Self: UIViewController {
static var storyboardIdentifier: String {
return String(describing: self)
}
}
// MARK: - Table View Cell
extension StoryboardIdentifiable where Self: UITableViewCell {
static var storyboardIdentifier: String {
return String(describing: self)
}
}
|
[
-1
] |
39a0d324d4215bcaaadca61383032a8d5fa7d89e
|
ebb3c5f92a165bc227744096178ae8f1d029dcbb
|
/Eduky/TableViewController.swift
|
6b95db335906a1ac54f9465acf6548b68333b66b
|
[] |
no_license
|
jpablortiz96/eduky_ios
|
99c2aade075f86ee1cf696a29a51d4b40fca38d0
|
d24d7eb5c754833b0dc01f66bd5cb624ad1d9fa6
|
refs/heads/main
| 2023-08-30T09:57:39.808835 | 2021-10-15T22:51:17 | 2021-10-15T22:51:17 | 417,656,975 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 9,300 |
swift
|
//
// TableViewController.swift
// Pods
//
// Created by Juan Pablo Enriquez on 1/06/19.
//
//
import UIKit
import Firebase
import CoreLocation
class TableViewController: UITableViewController, CLLocationManagerDelegate, UISearchBarDelegate {
@IBOutlet weak var searchBar: UISearchBar!
var educaList:[Educador] = [Educador]()
var actualEducaList:[Educador] = [Educador]()
var nombre: String = ""
var apellido: String = ""
var asignaturas: String = ""
var descripcion: String = ""
var celular: String = ""
var correo: String = ""
var edad: String = ""
var imagen: String = ""
var latitud_gen: String = ""
var longitud_gen: String = ""
var ocupacion: String = ""
override func viewDidLoad() {
super.viewDidLoad()
setUpSearchBar()
// Uncomment the following line to preserve selection between presentations
self.clearsSelectionOnViewWillAppear = false
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
//self.navigationItem.rightBarButtonItem = self.editButtonItem
self.navigationItem.title = "Educadores"
educaList = [Educador]()
(UIApplication.shared.delegate as! AppDelegate).fireBaseRef.child("Profesores").child("Informacion").observe(.value, with: { (snapchot) in
if snapchot.childrenCount > 0 {
self.educaList.removeAll()
for educadores in snapchot.children.allObjects as! [DataSnapshot] {
let educaObject = educadores.value as? [String: AnyObject]
let educaApe = educaObject?["apePro"]
let educaaAsig = educaObject?["asigPro"]
let educaCel = educaObject?["celPro"]
let educaContra = educaObject?["contraPro"]
let educaCorreo = educaObject?["correoPro"]
let educaDescri = educaObject?["descriPro"]
let educaEdad = educaObject?["edadPro"]
let educaImagen = educaObject?["imagenPro"]
let educaLat = educaObject?["latitudPro"]
let educaLon = educaObject?["longitudPro"]
let educaNom = educaObject?["nomPro"]
let educaOcupa = educaObject?["ocupaPro"]
let educador = Educador(apePro: educaApe as! String, asigPro: educaaAsig as! String, celPro: educaCel as! String, contraPro: educaContra as! String,correoPro: educaCorreo as! String, descriPro: educaDescri as! String, edadPro: educaEdad as! String, imagenPro: educaImagen as! String, latitudPro: educaLat as! String, longitudPro: educaLon as! String, nomPro: educaNom as! String, ocupaPro: educaOcupa as! String)
self.educaList.append(educador)
self.actualEducaList = self.educaList.shuffled()
}
}
self.tableView.reloadData()
})
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
// MARK: - Table view data source
override func numberOfSections(in tableView: UITableView) -> Int {
// #warning Incomplete implementation, return the number of sections
return 1
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// #warning Incomplete implementation, return the number of rows
return actualEducaList.count;
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
performSegue(withIdentifier: "SegueFromTable", sender: self)
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
// Trick to get static variable in Swift
struct staticVariable { static var tableIdentifier = "TableIdentifier" }
let cell = tableView.dequeueReusableCell( withIdentifier: "cell", for: indexPath) as! ViewControllerTableViewCell
let eachEdu = actualEducaList[indexPath.row]
cell.nombre.text = eachEdu.nomPro + " " + eachEdu.apePro
cell.profesion.text = eachEdu.ocupaPro
cell.asignaturas.text = eachEdu.asigPro
if let imagenPro = eachEdu.imagenPro {
let url = NSURL(string: imagenPro)
URLSession.shared.dataTask(with: url as! URL, completionHandler: { (data, response, error) in
if error != nil{
print(error)
return
}
cell.imagenPerfil.image = UIImage(data: data!)
}).resume()
}
let latitud = (eachEdu.latitudPro as NSString).doubleValue
let longitud = (eachEdu.longitudPro as NSString).doubleValue
let location = CLLocation(latitude: latitud, longitude: longitud)
location.geocode(completion: { placemark, error in
if let error = error as? CLError {
print("CLError:", error)
return
} else if let placemark = placemark?.first {
// you should always update your UI in the main thread
DispatchQueue.main.async {
// update UI here
if let lines = placemark.addressDictionary?["FormattedAddressLines"] as? [String] {
let placeString = lines.joined(separator: ", ")
cell.direccion.text = placeString
}
}
}
})
nombre = eachEdu.nomPro
apellido = eachEdu.apePro
asignaturas = eachEdu.asigPro
descripcion = eachEdu.descriPro
celular = eachEdu.celPro
correo = eachEdu.correoPro
edad = eachEdu.edadPro
imagen = eachEdu.imagenPro!
latitud_gen = eachEdu.latitudPro
longitud_gen = eachEdu.longitudPro
ocupacion = eachEdu.ocupaPro
return cell
}
func geocode(latitude: Double, longitude: Double, completion: @escaping (_ placemark: [CLPlacemark]?, _ error: Error?) -> Void) {
CLGeocoder().reverseGeocodeLocation(CLLocation(latitude: latitude, longitude: longitude)) { placemark, error in
guard let placemark = placemark, error == nil else {
completion(nil, error)
return
}
completion(placemark, nil)
}
}
private func setUpSearchBar(){
searchBar.delegate = self
}
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String){
guard !searchText.isEmpty else {
self.actualEducaList = self.educaList
self.tableView.reloadData()
return
}
actualEducaList = educaList.filter({ (educador) -> Bool in
educador.asigPro.lowercased().contains(searchText.lowercased()) || educador.ocupaPro.lowercased().contains(searchText.lowercased()) || educador.nomPro.lowercased().contains(searchText.lowercased())
}).shuffled()
self.tableView.reloadData()
}
func searchBar(_ searchBar: UISearchBar, selectedScopeButtonIndexDidChange selectedScope: Int){
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?){
if segue.identifier == "SegueFromTable"{
let perfilEducador = segue.destination as! ViewControllerPerfilEducador
perfilEducador.nombre = nombre
perfilEducador.apellido = apellido
perfilEducador.asignaturas = asignaturas
perfilEducador.descripcion = descripcion
perfilEducador.celular = celular
perfilEducador.correo = correo
perfilEducador.edad = edad
perfilEducador.imagen = imagen
perfilEducador.latitud_gen = latitud_gen
perfilEducador.longitud_gen = longitud_gen
perfilEducador.ocupacion = ocupacion
}
}
}
extension CLLocation {
func geocode(completion: @escaping (_ placemark: [CLPlacemark]?, _ error: Error?) -> Void) {
CLGeocoder().reverseGeocodeLocation(self, completionHandler: completion)
}
}
extension MutableCollection where Index == Int {
/// Shuffle the elements of `self` in-place.
mutating func shuffle() {
// empty and single-element collections don't shuffle
if count < 2 { return }
for i in startIndex ..< endIndex - 1 {
let j = Int(arc4random_uniform(UInt32(endIndex - i))) + i
if i != j {
swap(&self[i], &self[j])
}
}
}
}
extension Collection {
/// Return a copy of `self` with its elements shuffled
func shuffled() -> [Iterator.Element] {
var list = Array(self)
list.shuffle()
return list
}
}
|
[
-1
] |
95dffc3972e25268095f60c3bb838aba7a210516
|
b3ec12e82eacf416b7d891f01b3e5333266f1447
|
/SignInSwiftUI/LandingView.swift
|
6a4ebd9883245e8a68b939082c8b359f660a5f48
|
[
"MIT"
] |
permissive
|
hcanfly/SignInSwiftUI
|
fef3b900629d8f133a7fea4fbe4eeeaef16ca04b
|
400207060557beea3fee7bd04f5e1545602a6d2b
|
refs/heads/master
| 2020-12-26T23:27:25.079514 | 2020-04-06T18:46:01 | 2020-04-06T18:46:01 | 237,685,614 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,024 |
swift
|
//
// LandingView.swift
// SignInSwiftUI
//
// Created by Gary on 2/5/20.
// Copyright © 2020 Gary Hanson. All rights reserved.
//
import SwiftUI
struct LandingView: View {
var body: some View {
NavigationView {
ZStack {
Image("Clouds")
Text("We have a great product. Please be a dear and sign up.")
.font(.title)
.foregroundColor(.white)
.frame(width: 360)
.offset(y: -140)
NavigationLink(destination: SignupView()) {
Text("Sign up")
.frame(width: 160, height: 40)
.font(.title)
.foregroundColor(.white)
.background(Capsule().stroke(lineWidth: 2).fill(Color.white))
}
.offset(y: -40)
}
}
}
}
struct LandingView_Previews: PreviewProvider {
static var previews: some View {
LandingView()
}
}
|
[
-1
] |
57539522fdc5598fb875b9d5d3500bb50d3f12a9
|
326ece43f9a59d4a3670c2a594beb8fe87b9b2ae
|
/Videos/Beginning_iOS_Debugging/Shmecklists/Shmecklists/ItemDetailViewController.swift
|
a73ce86fe446cb99026a1c1e1f4af3dc9b990594
|
[
"MIT",
"LicenseRef-scancode-warranty-disclaimer"
] |
permissive
|
WooRaZil-Boy/Raywenderlich_iOS
|
4329124c0386660c20f3473e0149a892c5c5422c
|
132b488b7e7afef975cbe1d151f8232293952fdf
|
refs/heads/master
| 2023-02-03T03:15:45.909314 | 2021-11-25T04:23:31 | 2021-11-25T04:23:31 | 101,336,220 | 15 | 4 | null | 2023-01-25T03:25:52 | 2017-08-24T20:43:30 |
Jupyter Notebook
|
UTF-8
|
Swift
| false | false | 3,686 |
swift
|
/**
* Copyright (c) 2018 Razeware LLC
*
* 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, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
*
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
*
* Notwithstanding the foregoing, you may not use, copy, modify, merge, publish,
* distribute, sublicense, create a derivative work, and/or sell copies of the
* Software in any work that is designed, intended, or marketed for pedagogical or
* instructional purposes related to programming, coding, application development,
* or information technology. Permission for such use, copying, modification,
* merger, publication, distribution, sublicensing, creation of derivative works,
* or sale is expressly withheld.
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
* THE SOFTWARE.
*/
import UIKit
protocol ItemDetailViewControllerDelegate: class {
func addItemViewControllerDidCancel(_ controller: ItemDetailV)
func addItemViewController(_ controller: ItemDetailV, didFinishAdding item: ShmecklistItem)
func addItemViewController(_ controller: ItemDetailV, didFinishEditing item: ShmecklistItem)
}
class ItemDetailV: UITableViewController, UITextFieldDelegate {
@IBOutlet weak var doneBarButton: UIBarButtonItem!
@IBOutlet weak var textField: UITextField!
@IBOutlet weak var cancelBarButton: UIBarButtonItem!
var itemToEdit: ShmecklistItem?
weak var delegate: ItemDetailViewControllerDelegate?
override func viewDidLoad() {
super.viewDidLoad()
navigationItem.largeTitleDisplayMode = .never
if let item = itemToEdit {
title = "Edit Item"
textField.text = item.text
doneBarButton.isEnabled = true
}
}
override func viewWillAppear(_ animated: Bool) {
textField.becomeFirstResponder()
}
@IBAction func cancel() {
navigationController?.popViewController(animated: true)
delegate?.addItemViewControllerDidCancel(self)
}
@IBAction func done() {
if let itemToEdit = itemToEdit {
itemToEdit.text = textField.text!
delegate?.addItemViewController(self, didFinishEditing: itemToEdit)
} else {
let item = ShmecklistItem()
item.text = textField.text!
item.checked = false
delegate?.addItemViewController(self, didFinishAdding: item)
}
}
override func tableView(_ tableView: UITableView, willSelectRowAt indexPath: IndexPath) -> IndexPath? {
return nil
}
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
let oldText = textField.text!
let stringRange = Range(range, in:oldText)
let newText = oldText.replacingCharacters(in: stringRange!, with: string)
if newText.isEmpty {
doneBarButton.isEnabled = false
} else {
doneBarButton.isEnabled = true
}
return true
}
}
|
[
-1
] |
7ec6981ca1a927bbd64d7e20470302cefed2d3d8
|
7d16d4de4248b84b163ca9949cd92d550f7ab627
|
/MapOverlayAnimation/Modules/FlightMap/FlightMapViewModel.swift
|
84119231f4d16c58935ff5f6e9a6bde5605e18bd
|
[] |
no_license
|
Ipomoea/MapOverlayAnimation
|
0170de5397f8167e1ee155f10819d4248e09677c
|
9ae40792a8d5b00e2cf47a46d869ddc64e5ccf5e
|
refs/heads/master
| 2020-06-12T23:06:00.006459 | 2019-07-02T18:30:25 | 2019-07-02T18:30:25 | 194,455,114 | 1 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,437 |
swift
|
//
// FlightMapViewModel.swift
// MapOverlayAnimation
//
// Created by Pavel Lukandiy on 30.06.2019.
// Copyright © 2019 Pavel Lukandiy. All rights reserved.
//
import Foundation
import CoreLocation
import RxSwift
final class FlightMapViewModel: ControllerViewModel {
var title: String {
return "flight_map_title".localized()
}
var pinViewModels: [AirportPinViewModel] {
return [
startPointViewModel,
endPointViewModel
]
}
private let mapPoints: MapPoints
private let curveCalculator = CurveCalculator()
var startPointViewModel: AirportPinViewModel {
return AirportPinViewModel(airport: mapPoints.start)
}
var endPointViewModel: AirportPinViewModel {
return AirportPinViewModel(airport: mapPoints.end)
}
init(mapPoints: MapPoints) {
self.mapPoints = mapPoints
}
func calculateCurve() -> Single<[CLLocationCoordinate2D]> {
return .create { [curveCalculator, mapPoints] subscriber -> Disposable in
DispatchQueue.global(qos: .default).async {
let coordinates = curveCalculator.calculateSinusoidalWaveBetween(
mapPoints.start.location.clCoordinates,
mapPoints.end.location.clCoordinates
)
subscriber(.success(coordinates))
}
return Disposables.create()
}
}
}
|
[
-1
] |
8842a8b3efe9d462c13bfb89926e1cd42b31d29f
|
55c9c041f721e1040b77136c05d2ce856e914ca1
|
/SwiftGoal/Models/Changeset.swift
|
8019db39a7037f42951a0da91d0fda527dca88a0
|
[
"MIT"
] |
permissive
|
lab4utest/SwiftGoal
|
692f4d7836b61a0ab255bd4dfa6e7ccaea999fd8
|
479415bec0366deca5f203037ff30556c7ddd827
|
refs/heads/master
| 2021-01-16T21:59:12.792206 | 2015-08-10T07:19:12 | 2015-08-10T07:19:12 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,189 |
swift
|
//
// Changeset.swift
// SwiftGoal
//
// Created by Martin Richter on 01/06/15.
// Copyright (c) 2015 Martin Richter. All rights reserved.
//
import Foundation
public struct Changeset {
public let deletions: [NSIndexPath]
public let insertions: [NSIndexPath]
public init<T: Equatable>(oldItems: [T], newItems: [T]) {
// Find index paths for deleted items
var deletions: [NSIndexPath] = []
for (index, item) in enumerate(oldItems) {
if !contains(newItems, item) {
deletions.append(NSIndexPath(forRow: index, inSection: 0))
}
}
// TODO: Compare edited changes within matches
// Find index paths for newly inserted items
var insertions: [NSIndexPath] = []
for (index, item) in enumerate(newItems) {
if !contains(oldItems, item) {
insertions.append(NSIndexPath(forRow: index, inSection: 0))
}
}
self.init(deletions: deletions, insertions: insertions)
}
private init(deletions: [NSIndexPath], insertions: [NSIndexPath]) {
self.deletions = deletions
self.insertions = insertions
}
}
|
[
-1
] |
2bcdacdae146ffe62595fb835382af0fc13c3212
|
94911d44025a9203ad7ef6bd663872d2041f12d3
|
/MeshTools/Ellipse.swift
|
af966479cf5fef7398dc31ab22c6815e795d2687
|
[
"Apache-2.0"
] |
permissive
|
CeranPaul/MeshTools
|
7d9debc5922d65de545cd3e58670a2c006d0234e
|
e889a3645e8fd395d947e4b89e7b9e963783d533
|
refs/heads/master
| 2020-12-03T08:50:57.537180 | 2020-01-04T21:33:59 | 2020-01-04T21:33:59 | 231,261,086 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 10,272 |
swift
|
//
// Ellipse.swift
// MeshTools
//
// Created by Paul on 1/26/16.
// Copyright © 2018 Ceran Digital Media. See LICENSE.md
//
import UIKit
/// An elliptical arc, either whole, or a portion.
/// More of a distorted circle rather than the path of an orbiting body
/// Not ready for prime time!
open class Ellipse {
/// Point around which the ellipse is swept
/// As contrasted with focii for an orbital ellipse
fileprivate var ctr: Point3D
/// Length of the major axis
fileprivate var a: Double
/// Length of the minor axis
fileprivate var b: Double
/// Orientation (in radians) of the long axis
fileprivate var azimuth: Double
/// Transform to the global coordinate system
var toGlobal: Transform
/// Transform to the local coordinate system
var toLocal: Transform
/// Beginning point
var start: Point3D
/// End point
var finish: Point3D
/// Angle of the endpoint
var sweepAngle: Double
/// Whether or not this is closed
var isFull: Bool
/// Which direction should be swept?
var isClockwise: Bool
/// The enum that hints at the meaning of the curve
open var usage: PenTypes
open var parameterRange: ClosedRange<Double>
/// Basic constructor. Really needs some input checks!
/// - Parameters:
/// - retnec: Center
/// - a: Length of the major axis
/// - b: Length of the minor axis
/// - azimuth: Angle (radians) of the long axis
/// - normal: Vector perpendicular to the plane of the ellipse
public init(retnec: Point3D, a: Double, b: Double, azimuth: Double, start: Point3D, finish: Point3D, normal: Vector3D) {
self.ctr = retnec
self.a = a
self.b = b
self.azimuth = azimuth
self.start = start
self.finish = finish
self.isFull = true
self.isClockwise = true
self.usage = PenTypes.Ordinary
self.parameterRange = ClosedRange<Double>(uncheckedBounds: (lower: 0.0, upper: 1.0))
let horiz = Vector3D.built(from: self.ctr, towards: self.start, unit: true)
let vert = try! Vector3D.crossProduct(lhs: normal, rhs: horiz)
let localCSYS = try! CoordinateSystem(spot: self.ctr, direction1: horiz, direction2: vert, useFirst: true, verticalRef: false)
self.toGlobal = Transform.genToGlobal(csys: localCSYS)
self.toLocal = Transform.genFromGlobal(csys: localCSYS)
// Find the angle of the end point
let delta = Vector3D.built(from: self.ctr, towards: self.finish)
self.sweepAngle = acos(delta.i / a)
}
/// Attach new meaning to the curve
open func setIntent(purpose: PenTypes) {
self.usage = purpose
}
/// Simple getter for the center point
open func getCenter() -> Point3D {
return self.ctr
}
/// Simple getter for the beginning point
open func getOneEnd() -> Point3D { // This may not give the correct answer, depend on 'isClockwise'
return self.start
}
/// Simple getter for the ending point
open func getOtherEnd() -> Point3D { // This may not give the correct answer, depend on 'isClockwise'
return self.finish
}
/// Find the point along this ellipse specified by the parameter 't'
/// - Parameters:
/// - t: Curve parameter value. Assumed 0 < t < 1.
/// - Returns: Point location at the parameter value
open func pointAt(t: Double) throws -> Point3D {
let theta = t * self.sweepAngle
let x = cos(theta) * a
var y = findY(x: x)
if theta > Double.pi {
y *= -1.0
}
let localSpot = Point3D(x: x, y: y, z: 0.0)
let spot = self.toGlobal.alter(pip: localSpot)
return spot
}
/// This currently returns a useless value
public func getExtent() -> OrthoVol {
return try! OrthoVol(corner1: self.start, corner2: self.finish)
}
/// Determine an X value from a given angle (in radians)
/// - Parameters:
/// - ang: Desired angle (radians)
/// - Returns: Local X value for the angle
open func findX(ang: Double) -> Double {
let base = cos(ang)
let alongX = base * self.a
return alongX
}
/// Determine a Y value from a given X
/// - Returns: Y value for the given X
open func findY(x: Double) -> Double {
let y = sqrt(b * b * (1 - (x * x) / (a * a)))
return y
}
/// Finds the new parameter that meets the crown requirement.
/// - Parameters:
/// - allowableCrown: Acceptable deviation from curve
/// - currentT: Present value of the driving parameter
/// - increasing: Whether the change in parameter should be up or down
/// - Returns: New value for driving parameter
public func findStep(allowableCrown: Double, currentT: Double, increasing: Bool) -> Double {
/// How quickly to refine the parameter guess
let factor = 1.25
/// Change in parameter - constantly refined.
var step = 0.9999 - currentT
if !increasing {
step = -0.9999 * currentT
}
/// Working value of the parameter
var trialT: Double
/// Calculated crown
var deviation: Double
/// Counter to prevent loop runaway
var safety = 0
repeat {
if increasing {
trialT = currentT + step
if currentT > (1.0 - step) { // Prevent parameter value > 1.0
trialT = 1.0
}
} else {
trialT = currentT - step
if currentT < step { // Prevent parameter value < 0.0
trialT = 0.0
}
}
deviation = self.findCrown(smallerT: currentT, largerT: trialT) // Why originally reversed?
step = step / factor // Prepare for the next iteration
safety += 1
} while deviation > allowableCrown && safety < 12 // Fails ugly!
return trialT
}
/// Calculate the crown over a small segment
/// - Parameters:
/// - smallerT: One location on the curve
/// - largerT: One location on the curve
/// - Returns: Maximum separation.
public func findCrown(smallerT: Double, largerT: Double) -> Double {
let delta = (largerT - smallerT) / 16.0
var crownDots = [Point3D]()
let anchorA = try! self.pointAt(t: smallerT)
crownDots.append(anchorA)
for g in 1...15 {
let pip = try! self.pointAt(t: smallerT + Double(g) * delta)
crownDots.append(pip)
}
let anchorB = try! self.pointAt(t: largerT)
crownDots.append(anchorB)
let deviation = self.crownCalcs(dots: crownDots)
return deviation
}
/// Caluclate deviation from a LineSeg
/// - Parameters:
/// - dots: Array of Point3D. Order is assumed.
/// - Returns: Maximum separation.
/// Does not check for an Array length < 3.
/// Is a duplicate to the version in Cubic
public func crownCalcs(dots: [Point3D]) -> Double {
let bar = try! LineSeg(end1: dots.first!, end2: dots.last!)
let seps = dots.map( { bar.resolveRelativeVec(speck: $0).perp.length() } )
let curCrown = seps.max()!
return curCrown
}
/// Move, rotate, and scale by a matrix
/// This probably doesn't work!
/// - Throws: CoincidentPointsError if it was scaled to be very small
open func transform(xirtam: Transform) -> Ellipse {
let tAlpha = xirtam.alter(pip: self.start)
let tOmega = xirtam.alter(pip: self.finish)
let tCent = xirtam.alter(pip: self.ctr)
let outward = Vector3D(i: 0.0, j: 0.0, k: 1.0)
let transformed = Ellipse(retnec: tCent, a: self.a, b: self.b, azimuth: self.azimuth, start: tAlpha, finish: tOmega, normal: outward)
transformed.setIntent(purpose: self.usage) // Copy setting instead of having the default
return transformed
}
/// Plot the curve segment. This will be called by the UIView 'drawRect' function
public func draw(context: CGContext, tform: CGAffineTransform) {
var xCG: CGFloat = CGFloat(self.start.x) // Convert to "CGFloat", and throw out Z coordinate
var yCG: CGFloat = CGFloat(self.start.y)
let startModel = CGPoint(x: xCG, y: yCG)
let screenStart = startModel.applying(tform)
context.move(to: screenStart)
for g in 1...20 {
let stepU = Double(g) * 0.05 // Gee, this is brittle!
xCG = CGFloat(try! pointAt(t: stepU).x)
yCG = CGFloat(try! pointAt(t: stepU).y)
// print(String(describing: xCG) + " " + String(describing: yCG))
let midPoint = CGPoint(x: xCG, y: yCG)
let midScreen = midPoint.applying(tform)
context.addLine(to: midScreen)
}
context.strokePath()
}
/// Change the traversal direction of the curve so it can be aligned with other members of Perimeter
open func reverse() {
// TODO: Make this something besides a cop-out
}
/// Figure how far the point is off the curve, and how far along the curve it is. Useful for picks
open func resolveRelative(speck: Point3D) -> (along: Double, away: Double) {
// TODO: Make this return something besides dummy values
return (1.0, 1.0)
}
} // End of definition for class Ellipse
|
[
-1
] |
ab2d3615049f70620ef22c229efb007bd2ddda6b
|
740d45a54c38030463c5fbced071753b9e4e165b
|
/AllTheBasics/ViewController.swift
|
b73bba4e273612ae5ba8a1d5cba3ef6118ee33cf
|
[
"LicenseRef-scancode-unknown-license-reference",
"LicenseRef-scancode-public-domain"
] |
permissive
|
RGero215/swift-mathBoolOpConSwitch-lab-swift-intro-000
|
687e5f2019af5c50a8060586921a48e43f732eb0
|
dbb16a61846964419703153965357169c54fe3f2
|
refs/heads/master
| 2021-01-11T01:54:45.135536 | 2016-10-13T23:00:54 | 2016-10-13T23:00:54 | 70,836,546 | 0 | 0 | null | 2016-10-13T18:34:31 | 2016-10-13T18:34:31 | null |
UTF-8
|
Swift
| false | false | 1,313 |
swift
|
//
// ViewController.swift
// AllTheBasics
//
// Created by James Campagno on 6/28/16.
// Copyright © 2016 Flatiron School. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
}
// Implement your functions here!
func averageIsAbove(_ x:Double, _ y:Double, _ z:Double) -> Bool {
switch (x + y + z) / 3.0 > 75.0 {
case true:
return true
default:
return false
}
}
func passwordCombo(username:String, password:Int) -> String {
switch username {
case "Jerry", "Elaine", "Michael":
switch password % 3 == 0 {
case true:
return "Welcome!"
default:
return "Access Denied"
}
default:
return "Access Denied"
}
}
func describe(emoji:String) -> String {
switch emoji {
case "💋":
return "Kiss"
case "🐈":
return "Cat"
case "🐢":
return "Turtle"
case "🍕":
return "Pizza"
case "👻":
return "Ghost"
default:
return "Unknown"
}
}
}
|
[
-1
] |
9f6602a6201c2599cc97f853ef93dd4365beedda
|
9cc1c7fbfedd081432655725f6281958d2380890
|
/Tests/MapboxMapsTests/Ornaments/ScaleBar/MapboxScaleBarOrnamentViewTests.swift
|
b7b9ad74e99bb9f0fbcc3bacdbfcf2abfde4eda8
|
[
"ISC",
"BSL-1.0",
"BSD-2-Clause",
"MIT",
"LicenseRef-scancode-object-form-exception-to-mit",
"BSD-3-Clause",
"Zlib"
] |
permissive
|
6122617139/mapbox-maps-ios
|
041c4522f5efa030144d45003f83770b380a0b5d
|
6c415bc1e6614da7cf97f18d6919dfe2169d9a3c
|
refs/heads/main
| 2023-08-22T03:44:25.871699 | 2021-09-24T14:22:40 | 2021-09-24T14:22:40 | 410,054,754 | 1 | 0 |
NOASSERTION
| 2021-09-24T17:51:49 | 2021-09-24T17:51:47 | null |
UTF-8
|
Swift
| false | false | 6,462 |
swift
|
import XCTest
@testable import MapboxMaps
class MapboxScaleBarOrnamentViewTests: XCTestCase {
func testImperialScaleBar() {
let scaleBar = MockMapboxScaleBarOrnamentView()
scaleBar._isMetricLocale = false
for row in ScaleBarTestValues.imperialValues {
scaleBar.metersPerPoint = row.metersPerPoint
let numberOfBars = scaleBar.preferredRow().numberOfBars
XCTAssertEqual(Int(numberOfBars), row.numberOfBars, "The number of scale bars should be \(row.numberOfBars) when there are \(scaleBar.metersPerPoint) feet per point.")
}
}
func testMetricScaleBar() {
let scaleBar = MockMapboxScaleBarOrnamentView()
for row in ScaleBarTestValues.metricValues {
scaleBar.metersPerPoint = row.metersPerPoint
let numberOfBars = scaleBar.preferredRow().numberOfBars
XCTAssertEqual(Int(numberOfBars), row.numberOfBars, "The number of scale bars should be \(row.numberOfBars) when there are \(row.metersPerPoint) meters per point.")
}
}
func testImperialVisibleBars() {
let scaleBar = MockMapboxScaleBarOrnamentView()
scaleBar._isMetricLocale = false
for row in ScaleBarTestValues.imperialValues {
scaleBar.metersPerPoint = row.metersPerPoint
scaleBar.layoutSubviews()
let numberOfBars = row.numberOfBars
let visibleBars = scaleBar.dynamicContainerView.subviews
XCTAssertEqual(visibleBars.count, Int(numberOfBars), "\(numberOfBars) should be visible at \(row.metersPerPoint), distance: \(scaleBar.row.distance).")
}
}
func testMetricVisibleBars() {
let scaleBar = MockMapboxScaleBarOrnamentView()
for row in ScaleBarTestValues.metricValues {
scaleBar.metersPerPoint = row.metersPerPoint
scaleBar.layoutSubviews()
let numberOfBars = row.numberOfBars
let visibleBars = scaleBar.dynamicContainerView.subviews
XCTAssertEqual(visibleBars.count, Int(numberOfBars), "\(numberOfBars) should be visible at \(row.metersPerPoint), distance: \(scaleBar.row.distance).")
}
}
}
final class MockMapboxScaleBarOrnamentView: MapboxScaleBarOrnamentView {
override var maximumWidth: CGFloat {
return 200
}
internal var _isMetricLocale: Bool = true
override var isMetricLocale: Bool {
return _isMetricLocale
}
}
internal struct ScaleBarTestValues {
// Provide test values where the metersPerPoint results in a distance slightly greater than the distance in MapboxScaleBarOrnamentView.Constants.imperialTable
static let imperialValues = [
(metersPerPoint: 0.006267938260964437, numberOfBars: 2),
(metersPerPoint: 0.009394092007081363, numberOfBars: 2),
(metersPerPoint: 0.015646399499315216, numberOfBars: 2),
(metersPerPoint: 0.03127716822989985, numberOfBars: 2),
(metersPerPoint: 0.04690793696048448, numberOfBars: 2),
(metersPerPoint: 0.07816947442165374, numberOfBars: 2),
(metersPerPoint: 0.11724639624811534, numberOfBars: 3),
(metersPerPoint: 0.15632331807457692, numberOfBars: 2),
(metersPerPoint: 0.3126310053804232, numberOfBars: 2),
(metersPerPoint: 0.46893869268626953, numberOfBars: 3),
(metersPerPoint: 0.6252463799921159, numberOfBars: 2),
(metersPerPoint: 0.9378617546038085, numberOfBars: 3),
(metersPerPoint: 1.2504771292155012, numberOfBars: 2),
(metersPerPoint: 1.563092503827194, numberOfBars: 2),
(metersPerPoint: 2.063277103205902, numberOfBars: 2),
(metersPerPoint: 4.126538575643074, numberOfBars: 2),
(metersPerPoint: 8.253061520517416, numberOfBars: 2),
(metersPerPoint: 16.5061074102661, numberOfBars: 2),
(metersPerPoint: 24.759153300014788, numberOfBars: 3),
(metersPerPoint: 33.01219918976347, numberOfBars: 2),
(metersPerPoint: 66.02438274875821, numberOfBars: 2),
(metersPerPoint: 99.03656630775295, numberOfBars: 2),
(metersPerPoint: 123.79570397699901, numberOfBars: 3),
(metersPerPoint: 165.06093342574243, numberOfBars: 2),
(metersPerPoint: 247.5913923232293, numberOfBars: 3),
(metersPerPoint: 330.12185122071617, numberOfBars: 2),
(metersPerPoint: 660.2436868106636, numberOfBars: 2),
(metersPerPoint: 990.365522400611, numberOfBars: 2),
(metersPerPoint: 1650.609193580506, numberOfBars: 2),
(metersPerPoint: 2475.9137825553744, numberOfBars: 3),
(metersPerPoint: 3301.218371530242, numberOfBars: 2)
]
// Provide test values where the metersPerPoint results in a distance slightly greater than the distance in MapboxScaleBarOrnamentView.Constants.metricTable
static let metricValues = [
(metersPerPoint: 0.00505, numberOfBars: 2),
(metersPerPoint: 0.010049999999999998, numberOfBars: 2),
(metersPerPoint: 0.02005, numberOfBars: 2),
(metersPerPoint: 0.05005, numberOfBars: 2),
(metersPerPoint: 0.10005000000000001, numberOfBars: 2),
(metersPerPoint: 0.25005, numberOfBars: 2),
(metersPerPoint: 0.37505000000000005, numberOfBars: 3),
(metersPerPoint: 0.50005, numberOfBars: 2),
(metersPerPoint: 0.75005, numberOfBars: 2),
(metersPerPoint: 1.0000499999999999, numberOfBars: 2),
(metersPerPoint: 1.5000499999999999, numberOfBars: 3),
(metersPerPoint: 2.50005, numberOfBars: 2),
(metersPerPoint: 5.00005, numberOfBars: 2),
(metersPerPoint: 7.50005, numberOfBars: 2),
(metersPerPoint: 15.000050000000002, numberOfBars: 3),
(metersPerPoint: 25.00005, numberOfBars: 2),
(metersPerPoint: 50.00005, numberOfBars: 2),
(metersPerPoint: 100.00004999999999, numberOfBars: 2),
(metersPerPoint: 150.00005, numberOfBars: 3),
(metersPerPoint: 250.00005000000002, numberOfBars: 2),
(metersPerPoint: 500.00005, numberOfBars: 2),
(metersPerPoint: 1000.0000500000001, numberOfBars: 2),
(metersPerPoint: 1500.00005, numberOfBars: 3),
(metersPerPoint: 2000.00005, numberOfBars: 2),
(metersPerPoint: 2500.00005, numberOfBars: 2),
(metersPerPoint: 3000.00005, numberOfBars: 3),
(metersPerPoint: 4000.00005, numberOfBars: 2)
]
}
|
[
-1
] |
b6454071b7454c0d2acdf49f19bd44913adc702a
|
049db9f03094656ab7588454087be8c11aaccd36
|
/Sprint 6/Module 2-Custom Controls/UserStarRating/UserStarRating/AppDelegate.swift
|
8cc5fddf37c0367a72195b51733b2885e11782d5
|
[] |
no_license
|
bhakes/ios-projects
|
362e63516b8add3f3d334dbb854501b3b5dc02fb
|
0eca8880ffd8084a40e9114f60a59003036df961
|
refs/heads/master
| 2020-04-15T13:46:10.180815 | 2019-03-04T23:56:17 | 2019-03-04T23:56:17 | 164,729,167 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,184 |
swift
|
//
// AppDelegate.swift
// UserStarRating
//
// Created by Benjamin Hakes on 1/8/19.
// Copyright © 2019 Benjamin Hakes. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
|
[
229380,
229383,
229385,
278539,
294924,
229388,
278542,
229391,
327695,
278545,
229394,
278548,
229397,
229399,
229402,
352284,
229405,
278556,
278559,
229408,
278564,
294950,
229415,
229417,
327722,
237613,
229422,
360496,
229426,
237618,
229428,
311349,
286774,
286776,
319544,
286778,
229432,
204856,
352318,
286791,
237640,
286797,
278605,
311375,
163920,
237646,
196692,
319573,
311383,
278623,
278626,
319590,
311400,
278635,
303212,
278639,
131192,
278648,
237693,
303230,
327814,
303241,
131209,
417930,
303244,
311436,
319633,
286873,
286876,
311460,
311469,
32944,
327862,
286906,
327866,
180413,
286910,
131264,
286916,
295110,
286922,
286924,
286926,
319694,
286928,
131281,
278743,
278747,
295133,
155872,
319716,
237807,
303345,
286962,
131314,
229622,
327930,
278781,
278783,
278785,
237826,
319751,
278792,
286987,
319757,
311569,
286999,
319770,
287003,
287006,
287009,
287012,
287014,
287016,
287019,
311598,
287023,
262448,
311601,
295220,
287032,
155966,
319809,
319810,
278849,
319814,
311623,
319818,
311628,
229709,
319822,
287054,
278865,
229717,
196963,
196969,
139638,
213367,
106872,
319872,
311683,
319879,
311693,
65943,
319898,
311719,
278952,
139689,
278957,
311728,
278967,
180668,
311741,
278975,
319938,
278980,
98756,
278983,
319945,
278986,
319947,
278990,
278994,
311767,
279003,
279006,
188895,
172512,
287202,
279010,
279015,
172520,
319978,
279020,
172526,
311791,
279023,
172529,
279027,
319989,
172534,
180727,
164343,
279035,
311804,
287230,
279040,
303617,
287234,
279045,
172550,
303623,
172552,
287238,
320007,
279051,
172558,
279055,
303632,
279058,
303637,
279063,
279067,
172572,
279072,
172577,
295459,
172581,
295461,
279082,
311850,
279084,
172591,
172598,
279095,
172607,
172609,
172612,
377413,
172614,
172618,
303690,
33357,
287309,
303696,
279124,
172634,
262752,
172644,
311911,
189034,
295533,
172655,
172656,
352880,
295538,
189039,
172660,
287349,
189040,
189044,
287355,
287360,
295553,
172675,
295557,
287365,
311942,
303751,
352905,
279178,
287371,
311946,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
230045,
172702,
164509,
303773,
172705,
287394,
172707,
303780,
287390,
287398,
205479,
279208,
287400,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
287423,
328384,
172737,
279231,
287427,
312005,
312006,
107208,
172748,
287436,
107212,
172751,
287440,
295633,
172755,
303827,
279255,
172760,
287450,
303835,
279258,
189149,
303838,
213724,
312035,
279267,
295654,
279272,
230128,
312048,
312050,
230131,
205564,
303871,
230146,
328453,
295685,
230154,
33548,
312077,
295695,
295701,
230169,
369433,
295707,
328476,
295710,
230175,
295720,
303914,
279340,
205613,
279353,
230202,
312124,
328508,
222018,
295755,
377676,
148302,
287569,
303959,
230237,
279390,
230241,
279394,
303976,
336744,
303985,
328563,
303987,
279413,
303991,
303997,
295806,
295808,
295813,
304005,
320391,
213895,
304007,
304009,
304011,
230284,
304013,
295822,
279438,
189325,
189329,
295825,
304019,
213902,
189331,
58262,
304023,
304027,
279452,
234648,
410526,
279461,
279462,
304042,
213931,
230327,
304055,
287675,
230334,
304063,
238528,
304065,
213954,
189378,
156612,
295873,
213963,
197580,
312272,
304084,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
312321,
295945,
230413,
295949,
197645,
320528,
140312,
295961,
238620,
197663,
304164,
304170,
304175,
238641,
312374,
238652,
238655,
230465,
238658,
336964,
296004,
205895,
320584,
238666,
296021,
402518,
336987,
230497,
296036,
296040,
361576,
205931,
296044,
279661,
205934,
164973,
312432,
279669,
337018,
189562,
279679,
304258,
279683,
222340,
205968,
296084,
238745,
304285,
238756,
205991,
222377,
165035,
337067,
238766,
165038,
230576,
238770,
304311,
230592,
312518,
279750,
230600,
230607,
148690,
320727,
279769,
304348,
279777,
304354,
296163,
320740,
279781,
304360,
320748,
279788,
279790,
304370,
296189,
320771,
312585,
296202,
296205,
230674,
320786,
230677,
296213,
296215,
320792,
230681,
230679,
214294,
304416,
230689,
173350,
312622,
296243,
312630,
222522,
296253,
222525,
296255,
312639,
230718,
296259,
378181,
296262,
230727,
238919,
296264,
320840,
296267,
296271,
222545,
230739,
312663,
222556,
337244,
230752,
312676,
230760,
173418,
148843,
410987,
230763,
230768,
296305,
312692,
230773,
304505,
304506,
181626,
279929,
181631,
148865,
312711,
312712,
296331,
288140,
288144,
230800,
304533,
337306,
288154,
288160,
173472,
288162,
288164,
279975,
304555,
370092,
279983,
173488,
288176,
279985,
312755,
296373,
312759,
279991,
288185,
337335,
222652,
312766,
173507,
296389,
222665,
230860,
312783,
288208,
230865,
288210,
370130,
288212,
222676,
148946,
288214,
239064,
288217,
329177,
280027,
288220,
288218,
239070,
288224,
280034,
288226,
280036,
288229,
280038,
288230,
288232,
370146,
288234,
320998,
288236,
288238,
288240,
288242,
296435,
288244,
288250,
296446,
321022,
402942,
148990,
296450,
206336,
230916,
230919,
214535,
230923,
304651,
304653,
370187,
402969,
230940,
222752,
108066,
296486,
296488,
157229,
239152,
230961,
157236,
288320,
288325,
124489,
280140,
280145,
288338,
280149,
288344,
280152,
239194,
280158,
403039,
370272,
181854,
239202,
370279,
312938,
280183,
280185,
280188,
280191,
116354,
280194,
280208,
280211,
288408,
280218,
280222,
419489,
190118,
321195,
296622,
321200,
337585,
296626,
296634,
296637,
419522,
313027,
280260,
419525,
206536,
280264,
206539,
206541,
206543,
313044,
280276,
321239,
280283,
313052,
288478,
313055,
321252,
313066,
288494,
280302,
280304,
313073,
321266,
288499,
419570,
288502,
280314,
288510,
124671,
67330,
280324,
198405,
288519,
280331,
198416,
280337,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
280363,
141101,
165678,
280375,
321336,
296767,
288576,
345921,
280388,
337732,
304968,
280393,
280402,
173907,
313171,
313176,
42842,
280419,
321381,
296809,
296812,
313201,
1920,
255873,
305028,
280454,
247688,
280464,
124817,
280468,
239510,
280473,
124827,
214940,
247709,
214944,
280487,
313258,
321458,
296883,
124853,
214966,
296890,
10170,
288700,
296894,
190403,
296900,
280515,
337862,
165831,
280521,
231379,
296921,
354265,
354270,
239586,
313320,
354281,
231404,
124913,
165876,
321528,
239612,
313340,
288764,
239617,
313347,
288773,
313358,
305176,
321560,
313371,
354338,
305191,
223273,
313386,
354348,
124978,
215090,
124980,
288824,
288826,
321595,
378941,
313406,
288831,
288836,
67654,
280651,
354382,
288848,
280658,
215123,
354390,
288855,
288859,
280669,
313438,
149599,
280671,
149601,
321634,
149603,
223327,
329830,
280681,
313451,
223341,
280687,
149618,
215154,
313458,
280691,
313464,
329850,
321659,
280702,
288895,
321670,
215175,
141446,
141455,
141459,
280725,
313498,
100520,
288936,
280747,
288940,
288947,
280755,
321717,
280759,
280764,
280769,
280771,
280774,
280776,
313548,
321740,
280783,
280786,
280788,
313557,
280793,
280796,
280798,
338147,
280804,
280807,
157930,
280811,
280817,
125171,
157940,
280819,
182517,
280823,
280825,
280827,
280830,
280831,
280833,
125187,
280835,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
280888,
305464,
280891,
289087,
280897,
280900,
305480,
239944,
280906,
239947,
305485,
305489,
379218,
280919,
248153,
215387,
354653,
354656,
313700,
280937,
313705,
190832,
280946,
223606,
313720,
280956,
239997,
280959,
313731,
199051,
240011,
289166,
240017,
297363,
190868,
240021,
297365,
297368,
297372,
141725,
297377,
289186,
297391,
289201,
240052,
289207,
289210,
305594,
281024,
289218,
289221,
289227,
436684,
281045,
281047,
215526,
166378,
305647,
281075,
174580,
240124,
281084,
305662,
305664,
240129,
305666,
305668,
223749,
330244,
281095,
223752,
150025,
338440,
240132,
223757,
281102,
223763,
223765,
281113,
322074,
281116,
281121,
182819,
281127,
281135,
150066,
158262,
158266,
289342,
281154,
322115,
158283,
281163,
281179,
338528,
338532,
281190,
199273,
281196,
19053,
158317,
313973,
297594,
281210,
158347,
264845,
182926,
133776,
182929,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
133801,
174764,
314029,
314033,
240309,
133817,
314045,
314047,
314051,
199364,
297671,
158409,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
289537,
322310,
264969,
322314,
322318,
281361,
281372,
322341,
215850,
281388,
289593,
281401,
289601,
281410,
281413,
281414,
240458,
281420,
240468,
281430,
322393,
297818,
281435,
281438,
281442,
174955,
224110,
207733,
207737,
158596,
183172,
240519,
322440,
314249,
338823,
183184,
142226,
289687,
224151,
240535,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
420829,
281567,
289762,
322534,
297961,
183277,
281581,
322550,
134142,
322563,
314372,
330764,
175134,
322599,
322610,
314421,
281654,
314427,
314433,
207937,
314441,
207949,
322642,
314456,
281691,
314461,
281702,
281704,
314474,
281708,
281711,
289912,
248995,
306341,
306344,
306347,
322734,
306354,
142531,
199877,
289991,
306377,
289997,
249045,
363742,
363745,
298216,
330988,
126190,
216303,
322801,
388350,
257302,
363802,
199976,
199978,
314671,
298292,
298294,
257334,
216376,
380226,
298306,
224584,
224587,
224594,
216404,
306517,
150870,
314714,
224603,
159068,
314718,
265568,
314723,
281960,
150890,
306539,
314732,
314736,
290161,
216436,
306549,
298358,
314743,
306552,
290171,
314747,
298365,
290174,
306555,
224641,
281987,
298372,
314756,
281990,
224647,
265604,
298377,
314763,
142733,
298381,
314768,
224657,
306581,
314773,
314779,
314785,
314793,
282025,
282027,
241068,
241070,
241072,
282034,
241077,
150966,
298424,
306618,
282044,
323015,
306635,
306640,
290263,
290270,
290275,
339431,
282089,
191985,
282098,
290291,
282101,
241142,
191992,
290298,
151036,
290302,
282111,
290305,
175621,
306694,
192008,
323084,
257550,
282127,
290321,
323090,
282130,
290325,
282133,
241175,
290328,
282137,
290332,
241181,
282142,
282144,
290344,
306731,
290349,
290351,
290356,
282186,
224849,
282195,
282199,
282201,
306778,
159324,
159330,
314979,
298598,
323176,
224875,
241260,
323181,
257658,
315016,
282249,
290445,
282255,
282261,
175770,
298651,
282269,
323229,
298655,
323231,
61092,
282277,
306856,
196133,
282295,
282300,
323260,
323266,
282310,
323273,
282319,
306897,
241362,
306904,
282328,
298714,
52959,
216801,
282337,
241380,
216806,
323304,
282345,
12011,
282356,
323318,
282364,
282367,
306945,
241412,
323333,
282376,
216842,
323345,
282388,
323349,
282392,
184090,
315167,
315169,
282402,
315174,
323367,
241448,
315176,
241450,
282410,
306988,
306991,
315184,
323376,
315190,
241464,
159545,
282425,
298811,
118593,
307009,
413506,
307012,
241475,
315211,
282446,
307027,
315221,
323414,
315223,
241496,
241498,
307035,
307040,
110433,
282465,
241509,
110438,
298860,
110445,
282478,
315249,
110450,
315251,
282481,
315253,
315255,
339838,
315267,
282499,
315269,
241544,
282505,
241546,
241548,
298896,
298898,
282514,
241556,
44948,
298901,
241560,
282520,
241563,
241565,
241567,
241569,
282531,
241574,
282537,
298922,
36779,
241581,
282542,
241583,
323504,
241586,
282547,
241588,
290739,
241590,
241592,
241598,
290751,
241600,
241605,
151495,
241610,
298975,
241632,
298984,
241640,
241643,
298988,
241646,
241649,
241652,
323574,
290807,
299003,
241661,
299006,
282623,
315396,
241669,
315397,
282632,
307211,
282639,
290835,
282645,
241693,
282654,
241701,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
192596,
176213,
307287,
307290,
217179,
315482,
192605,
315483,
233567,
299105,
200801,
217188,
299109,
307303,
315495,
356457,
45163,
307307,
315502,
192624,
307314,
323700,
299126,
233591,
299136,
307329,
307338,
233613,
241813,
307352,
299164,
299167,
315552,
184479,
184481,
315557,
184486,
307370,
307372,
184492,
307374,
307376,
299185,
323763,
184503,
176311,
299191,
307385,
307386,
307388,
258235,
307390,
176316,
299200,
184512,
307394,
299204,
307396,
184518,
307399,
323784,
233679,
307409,
307411,
176343,
299225,
233701,
307432,
184572,
282881,
184579,
282893,
291089,
282906,
291104,
233766,
295583,
176435,
307508,
315701,
332086,
307510,
307512,
168245,
307515,
307518,
282942,
282947,
323917,
110926,
282957,
233808,
323921,
315733,
323926,
233815,
276052,
315739,
323932,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
299388,
299391,
291202,
299398,
242057,
291212,
299405,
291222,
315801,
283033,
242075,
291226,
194654,
61855,
291231,
283042,
291238,
291241,
127403,
127405,
291247,
299440,
127407,
299444,
127413,
283062,
291254,
127417,
291260,
283069,
127421,
127424,
299457,
127429,
127431,
127434,
315856,
176592,
127440,
315860,
176597,
283095,
127447,
299481,
127449,
176605,
242143,
127455,
127457,
291299,
340454,
127463,
242152,
291305,
127466,
176620,
127469,
127474,
291314,
291317,
127480,
135672,
291323,
233979,
127485,
291330,
127490,
283142,
127494,
127497,
233994,
135689,
127500,
291341,
233998,
127506,
234003,
127509,
234006,
127511,
152087,
283161,
242202,
234010,
135707,
242206,
135710,
242208,
291361,
242220,
291378,
234038,
152118,
234041,
315961,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
291456,
135808,
373383,
299655,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
299677,
225948,
135839,
299680,
225954,
299684,
135844,
242343,
209576,
242345,
373421,
135870,
135873,
135876,
135879,
299720,
299723,
299726,
225998,
226002,
119509,
226005,
226008,
299740,
242396,
201444,
299750,
283368,
234219,
283372,
185074,
226037,
283382,
316151,
234231,
234236,
226045,
242431,
234239,
209665,
234242,
299778,
242436,
226053,
234246,
226056,
234248,
291593,
242443,
234252,
242445,
234254,
291601,
234258,
242450,
242452,
234261,
348950,
201496,
234264,
234266,
234269,
283421,
234272,
234274,
152355,
299814,
234278,
283432,
234281,
234284,
234287,
283440,
185138,
242483,
234292,
234296,
234298,
160572,
283452,
234302,
234307,
242499,
234309,
292433,
316233,
234313,
316235,
234316,
283468,
234319,
242511,
234321,
234324,
185173,
201557,
234329,
234333,
308063,
234336,
242530,
349027,
234338,
234341,
234344,
234347,
177004,
234350,
324464,
234353,
152435,
177011,
234356,
234358,
234362,
226171,
291711,
234368,
291714,
234370,
291716,
234373,
201603,
226182,
234375,
308105,
226185,
234379,
324490,
234384,
234388,
234390,
324504,
234393,
209818,
308123,
324508,
234396,
291742,
226200,
234398,
234401,
291747,
291748,
234405,
291750,
234407,
324520,
324518,
324522,
234410,
291756,
226220,
291754,
324527,
291760,
234417,
201650,
324531,
234414,
234422,
226230,
275384,
324536,
234428,
291773,
242623,
324544,
234431,
234434,
324546,
324548,
226245,
234437,
234439,
226239,
234443,
291788,
234446,
275406,
193486,
234449,
316370,
193488,
234452,
234455,
234459,
234461,
234464,
234467,
234470,
168935,
5096,
324585,
234475,
234478,
316400,
234481,
316403,
234484,
234485,
234487,
324599,
234490,
234493,
316416,
234496,
234501,
275462,
308231,
234504,
234507,
234510,
234515,
300054,
316439,
234520,
234519,
234523,
234526,
234528,
300066,
234532,
300069,
234535,
234537,
234540,
144430,
234543,
234546,
275508,
300085,
234549,
300088,
234553,
234556,
234558,
316479,
234561,
316483,
160835,
234563,
308291,
234568,
234570,
316491,
234572,
300108,
234574,
300115,
234580,
234581,
242777,
234585,
275545,
234590,
234593,
234595,
234597,
300133,
234601,
300139,
234605,
160879,
234607,
275569,
234610,
316530,
300148,
234614,
398455,
144506,
234618,
234620,
275579,
234623,
226433,
234627,
275588,
234629,
242822,
234634,
234636,
177293,
234640,
275602,
234643,
308373,
226453,
234647,
275606,
275608,
234650,
324757,
308379,
300189,
324766,
119967,
234653,
324768,
283805,
234657,
242852,
300197,
234661,
283813,
234664,
275626,
234667,
316596,
308414,
234687,
300223,
300226,
308418,
234692,
300229,
308420,
308422,
226500,
283844,
300234,
283850,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
234726,
300263,
300265,
300267,
161003,
300270,
300272,
120053,
300278,
275703,
316663,
300284,
275710,
300287,
292097,
300289,
161027,
300292,
300294,
275719,
234760,
177419,
300299,
242957,
300301,
283917,
177424,
349451,
275725,
349464,
415009,
283939,
259367,
292143,
283951,
300344,
226617,
243003,
283963,
226628,
300357,
283973,
177482,
283983,
316758,
357722,
316766,
292192,
316768,
218464,
292197,
316774,
243046,
218473,
284010,
136562,
324978,
275834,
333178,
275836,
275840,
316803,
316806,
226696,
316811,
226699,
316814,
226703,
300433,
234899,
300436,
226709,
357783,
316824,
316826,
144796,
300448,
144807,
144810,
144812,
284076,
144814,
144820,
374196,
284084,
292279,
284087,
144826,
144828,
144830,
144832,
144835,
144837,
38342,
144839,
144841,
144844,
144847,
144852,
144855,
103899,
300507,
333280,
226787,
218597,
292329,
300523,
259565,
300527,
308720,
259567,
292338,
226802,
227440,
316917,
308727,
292343,
300537,
316933,
316947,
308757,
308762,
284191,
316959,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
194101,
284213,
316983,
194103,
284215,
308790,
284218,
226877,
292414,
284223,
284226,
284228,
292421,
226886,
284231,
128584,
243268,
284234,
276043,
317004,
366155,
284238,
226895,
284241,
194130,
284243,
300628,
284245,
276053,
284247,
317015,
284249,
243290,
284251,
235097,
284253,
300638,
284255,
243293,
284258,
292452,
292454,
284263,
177766,
284265,
292458,
284267,
292461,
284272,
284274,
284278,
292470,
276086,
292473,
284283,
276093,
284286,
292479,
284288,
292481,
284290,
325250,
284292,
292485,
325251,
276095,
276098,
284297,
317066,
284299,
317068,
284301,
276109,
284303,
284306,
276114,
284308,
284312,
284314,
284316,
276127,
284320,
284322,
284327,
284329,
317098,
284331,
276137,
284333,
284335,
276144,
284337,
284339,
300726,
284343,
284346,
284350,
276160,
358080,
284354,
358083,
284358,
276166,
358089,
284362,
276170,
284365,
276175,
284368,
276177,
284370,
358098,
284372,
317138,
284377,
276187,
284379,
284381,
284384,
358114,
284386,
358116,
276197,
317158,
358119,
284392,
325353,
358122,
284394,
284397,
358126,
284399,
358128,
276206,
358133,
358135,
276216,
358138,
300795,
358140,
284413,
358142,
358146,
317187,
284418,
317189,
317191,
284428,
300816,
300819,
317207,
284440,
300828,
300830,
276255,
300832,
325408,
300834,
317221,
227109,
358183,
186151,
276268,
300845,
243504,
300850,
284469,
276280,
325436,
358206,
276291,
366406,
276295,
300872,
292681,
153417,
358224,
284499,
276308,
284502,
317271,
178006,
276315,
292700,
317279,
284511,
227175,
292715,
300912,
292721,
284529,
300915,
284533,
292729,
317306,
284540,
292734,
325512,
169868,
276365,
317332,
358292,
284564,
399252,
284566,
350106,
284572,
276386,
284579,
276388,
358312,
317353,
284585,
276395,
292776,
292784,
276402,
358326,
161718,
358330,
276410,
276411,
276418,
276425,
301009,
301011,
301013,
292823,
358360,
301017,
301015,
292828,
276446,
153568,
276448,
276452,
292839,
276455,
350186,
292843,
276460,
292845,
276464,
178161,
227314,
276466,
325624,
350200,
276472,
317435,
276476,
276479,
276482,
350210,
276485,
317446,
178181,
276490,
350218,
292876,
350222,
317456,
276496,
317458,
178195,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
276528,
178224,
243762,
309298,
325685,
325689,
235579,
325692,
235581,
178238,
276539,
276544,
243779,
325700,
284739,
292934,
243785,
276553,
350293,
350295,
309337,
194649,
227418,
350299,
350302,
227423,
350304,
178273,
309346,
194657,
194660,
350308,
309350,
309348,
292968,
309352,
227426,
276579,
227430,
276583,
309354,
301167,
276590,
350321,
350313,
350316,
284786,
350325,
252022,
276595,
350328,
292985,
301178,
350332,
292989,
301185,
292993,
350339,
317570,
317573,
350342,
350345,
350349,
301199,
317584,
325777,
350354,
350357,
350359,
350362,
350366,
276638,
284837,
153765,
350375,
350379,
350381,
350383,
129200,
350385,
350387,
350389,
350395,
350397,
350399,
227520,
350402,
227522,
301252,
350406,
227529,
301258,
309450,
276685,
309455,
276689,
309462,
301272,
276699,
194780,
309468,
309471,
301283,
317672,
317674,
325867,
243948,
194801,
227571,
309491,
309494,
243960,
276735,
227583,
227587,
276739,
211204,
276742,
227593,
227596,
325910,
309530,
342298,
211232,
317729,
276775,
211241,
325937,
325943,
211260,
260421,
276809,
285002,
276811,
235853,
276816,
235858,
276829,
276833,
391523,
276836,
293227,
276843,
293232,
276848,
186744,
211324,
227709,
285061,
366983,
317833,
178572,
285070,
285077,
178583,
227738,
317853,
276896,
317858,
342434,
285093,
317864,
285098,
276907,
235955,
276917,
293304,
293307,
293314,
309707,
293325,
129486,
317910,
293336,
235996,
317917,
293343,
358880,
276961,
227810,
293346,
276964,
293352,
236013,
293364,
301562,
293370,
317951,
309764,
301575,
121352,
293387,
236043,
342541,
317963,
113167,
55822,
309779,
317971,
309781,
277011,
55837,
227877,
227879,
293417,
227882,
309804,
293421,
105007,
236082,
285236,
23094,
277054,
244288,
219714,
129603,
301636,
318020,
301639,
301643,
277071,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
121458,
277106,
170618,
170619,
309885,
309888,
277122,
227975,
277128,
285320,
301706,
318092,
326285,
334476,
318094,
277136,
277139,
227992,
334488,
318108,
285340,
318110,
227998,
137889,
383658,
285357,
318128,
277170,
293555,
342707,
154292,
277173,
318132,
285368,
277177,
277181,
318144,
277187,
277191,
277194,
277196,
277201,
342745,
137946,
342747,
113378,
203491,
228069,
277223,
342760,
285417,
56041,
56043,
56045,
277232,
228081,
56059,
310015,
285441,
310020,
285448,
310029,
228113,
285459,
277273,
293659,
326430,
228128,
285474,
293666,
228135,
318248,
277291,
318253,
293677,
285489,
301876,
293685,
285494,
301880,
285499,
301884,
310080,
293696,
277317,
277322,
277329,
162643,
310100,
301911,
301913,
277337,
301921,
400236,
236397,
162671,
326514,
310134,
236408,
15224,
277368,
416639,
416640,
113538,
310147,
416648,
39817,
187274,
277385,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
293811,
293817,
293820,
203715,
326603,
342994,
276586,
293849,
293861,
228327,
228328,
318442,
228330,
228332,
326638,
277486,
351217,
318450,
293876,
293877,
285686,
302073,
121850,
293882,
302075,
285690,
244731,
293887,
277504,
277507,
277511,
293899,
277519,
293908,
302105,
293917,
293939,
318516,
277561,
277564,
310336,
7232,
293956,
277573,
228422,
293960,
310344,
277577,
277583,
203857,
293971,
310355,
310359,
236632,
277594,
138332,
277598,
203872,
277601,
285792,
310374,
203879,
310376,
228460,
318573,
203886,
187509,
285815,
367737,
285817,
302205,
285821,
392326,
285831,
253064,
294026,
302218,
285835,
162964,
384148,
187542,
302231,
285849,
302233,
285852,
302237,
285854,
285856,
302241,
285862,
277671,
302248,
64682,
277678,
294063,
294065,
302258,
277687,
294072,
318651,
294076,
277695,
318657,
244930,
302275,
130244,
302277,
228550,
302282,
310476,
302285,
302288,
310481,
302290,
203987,
302292,
302294,
310486,
302296,
384222,
310498,
285927,
318698,
302315,
195822,
228592,
294132,
138485,
228601,
204026,
228606,
204031,
64768,
310531,
285958,
138505,
228617,
318742,
204067,
277798,
130345,
277801,
113964,
285997,
384302,
285999,
277804,
113969,
277807,
277811,
318773,
318776,
277816,
286010,
277819,
294204,
417086,
277822,
286016,
302403,
294211,
384328,
277832,
277836,
294221,
146765,
294223,
326991,
277839,
277842,
277847,
277850,
179547,
277853,
146784,
277857,
302436,
277860,
294246,
327015,
310632,
327017,
351594,
277864,
277869,
277872,
351607,
310648,
277880,
310651,
277884,
277888,
310657,
351619,
294276,
310659,
327046,
277892,
253320,
310665,
318858,
277894,
277898,
277903,
310672,
351633,
277905,
277908,
277917,
310689,
277921,
130468,
228776,
277928,
277932,
310703,
277937,
310710,
130486,
310712,
277944,
310715,
277947,
302526,
228799,
277950,
277953,
302534,
310727,
64966,
245191,
163272,
277959,
277963,
302541,
277966,
302543,
310737,
277971,
228825,
163290,
277978,
310749,
277981,
277984,
310755,
277989,
277991,
187880,
277995,
310764,
286188,
278000,
228851,
310772,
278003,
278006,
40440,
212472,
278009,
40443,
286203,
310780,
40448,
228864,
286214,
228871,
302603,
65038,
302614,
286233,
302617,
302621,
286240,
146977,
187936,
187939,
40484,
294435,
40486,
286246,
294440,
40488,
294439,
294443,
40491,
294445,
278057,
310831,
245288,
286248,
40499,
40502,
212538,
40507,
40511,
40513,
228933,
327240,
40521,
286283,
40525,
40527,
212560,
400976,
228944,
40533,
147032,
40537,
40539,
40541,
278109,
40544,
40548,
40550,
40552,
286313,
40554,
286312,
310892,
40557,
40560,
188022,
122488,
294521,
343679,
294537,
310925,
286354,
278163,
302740,
122517,
278168,
179870,
327333,
229030,
212648,
278188,
302764,
278192,
319153,
278196,
319163,
302781,
319171,
302789,
294599,
278216,
294601,
302793,
343757,
212690,
319187,
278227,
286420,
229076,
286425,
319194,
278235,
301163,
278238,
229086,
286432,
294625,
294634,
302838,
319226,
286460,
278274,
302852,
278277,
302854,
294664,
311048,
352008,
319243,
311053,
302862,
319251,
294682,
278306,
188199,
294701,
278320,
319280,
319290,
229192,
302925,
188247,
280021,
188252,
237409,
229233,
294776,
360317,
294785,
327554,
360322,
40840,
40851,
294803,
188312,
294811,
237470,
319390,
40865,
319394,
294817,
294821,
311209,
180142,
343983,
294831,
188340,
40886,
319419,
294844,
294847,
393177,
294876,
294879,
294883,
393190,
294890,
311279,
278513,
237555,
278516,
311283,
278519,
237562
] |
c27250a0c279bb8c26c58ae85d761fe3079e2fa7
|
74c6e87c0b7200b6df9e669f0a37411507b86833
|
/DiscourseClient/DiscourseClient/Model/Responses/SingleTopicResponse.swift
|
fbdcd02a3a265e815d2943d2097002d6a074e18a
|
[] |
no_license
|
miandelatorre/PracticaConcurrenciaYRed
|
3c620e0a244b223ca89a0e839714caa552a21775
|
965b0c8befbda1b55246314910a5ad8022a8975c
|
refs/heads/master
| 2022-04-19T15:41:15.298273 | 2020-04-10T12:07:04 | 2020-04-10T12:07:04 | 254,624,244 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 722 |
swift
|
import Foundation
// TODO: Implementar aquí el modelo de la respuesta.
// Puedes echar un vistazo en https://docs.discourse.org
struct SingleTopicResponse: Codable {
let id: Int
let title: String
let postsCount: Int
let details: Details
enum CodingKeys: String, CodingKey {
case id = "id"
case title = "title"
case postsCount = "posts_count"
case details = "details"
}
}
struct Details: Codable {
let createdBy: CreatedBy
enum CodingKeys: String, CodingKey {
case createdBy = "created_by"
}
}
struct CreatedBy: Codable {
let username: String
enum CodingKeys: String, CodingKey {
case username = "username"
}
}
|
[
-1
] |
b1813ae240a7121a31b6320bdffb5fd64713a769
|
3407832836d09262ad1caa573cba848ea74a02ed
|
/Example/oldies/ViewController.swift
|
cae285d75504813804866f8e46f86d71d8993096
|
[
"MIT"
] |
permissive
|
Coeur/CocoaPods7608
|
faf64abafe19e2f03dea3f9b4cf3ec4530adc471
|
76d03f73d5225a9a460f3a6bfff61ca06397d819
|
refs/heads/master
| 2020-03-09T11:36:15.083065 | 2018-04-09T12:04:27 | 2018-04-09T12:04:27 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 494 |
swift
|
//
// ViewController.swift
// oldies
//
// Created by coeur on 04/09/2018.
// Copyright (c) 2018 coeur. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
|
[
278543,
309264,
317473,
286775,
237624,
288827,
286786,
159812,
284740,
243786,
278606,
237655,
307288,
200802,
309347,
276580,
309351,
309353,
356458,
356460,
307311,
278657,
276612,
303242,
311437,
278675,
299165,
278686,
278693,
100521,
307379,
280760,
227523,
280772,
280775,
280777,
313550,
229585,
307410,
280797,
278752,
280808,
286963,
280821,
286965,
280824,
280832,
276736,
278791,
287005,
287007,
282917,
282922,
282926,
287055,
289120,
227688,
313704,
313706,
313708,
299374,
199024,
276849,
278897,
311684,
313733,
227740,
285087,
289187,
305582,
285103,
278968,
127418,
278973,
289224,
281042,
279011,
276965,
281073,
281078,
236022,
287231,
279046,
277006,
279064,
236057,
295460,
279096,
277057,
129604,
158285,
311913,
281202,
277108,
287350,
281218,
281221,
285321,
227984,
303760,
117399,
228000,
225955,
326311,
287399,
277180,
285377,
287437,
226009,
277224,
234223,
312049,
289524,
226038,
234232,
230147,
226055,
299786,
295696,
281373,
295711,
228127,
281380,
234279,
283433,
289578,
312107,
293682,
289596,
283453,
289600,
279360,
283461,
279380,
295766,
279386,
308064,
293742,
207738,
291709,
183173,
324491,
304012,
234380,
304015,
226196,
275358,
277406,
289697,
234402,
283556,
291755,
277420,
277422,
297903,
324528,
230323,
277429,
277430,
234423,
277432,
277433,
277434,
281530,
291774,
295874,
168936,
183278,
277487,
293874,
277502,
293888,
277508,
234511,
277527,
197677,
300086,
234551,
300089,
293961,
300107,
300116,
164974,
312433,
300149,
279684,
253066,
285837,
234641,
349332,
226454,
226455,
226456,
226458,
302235,
285855,
234665,
283839,
277696,
228548,
228551,
279754,
230604,
298189,
230608,
290004,
290006,
189655,
302295,
298202,
298204,
298207,
290016,
363743,
298211,
290020,
228585,
120054,
333048,
300288,
312586,
296216,
277797,
130346,
113972,
300358,
238920,
234829,
296272,
306540,
216433,
290166,
333179,
290175,
275842,
224643,
300432,
310673,
226705,
288165,
144811,
279982,
286126,
277935,
292277,
296374,
130487,
306633,
288205,
280015,
163289,
280028,
280029,
286175,
286189,
282095,
308721,
302580,
292341,
310773,
296436,
288251,
286204,
290303,
282128,
286234,
282143,
282145,
284197,
296487,
286249,
286257,
226878,
288321,
228932,
226887,
288331,
288332,
226896,
212561,
284242,
284240,
280146,
300629,
276054,
228945,
282202,
212573,
292451,
284261,
286314,
284275,
284276,
284277,
294518,
314996,
284279,
284287,
284289,
276099,
284293,
284298,
282262,
280219,
284315,
284317,
282270,
284323,
284328,
284336,
276150,
300727,
282301,
302788,
282311,
284361,
282320,
284373,
282338,
284391,
282346,
294636,
358127,
288501,
358137,
358139,
282365,
286462,
282368,
358147,
300817,
282389,
278298,
329499,
315170,
304933,
315177,
282411,
159541,
282426,
288577,
288579,
298830,
298843,
188253,
200549,
292730,
294812,
284580,
284586,
276396,
282548,
298951,
165832,
301012,
298989,
227315,
237556,
237564
] |
628961f11d99eef2547800625accb744b115045f
|
677ab7d345eda9f58bec7755e7fef3065e1e1f02
|
/KinopoiskSwift/Pages/MoviesPage/Presenter/ListItemsPresenter.swift
|
3a1765ef53d6d248cff5bd19318172652c12bcab
|
[] |
no_license
|
chakifenix/kinopoisk
|
e12f4392e60ed0d004993ab23ec1e13bddff0c35
|
d2ab77d00bc584ad2a3991e040a198535fa58776
|
refs/heads/master
| 2023-05-04T00:24:24.350146 | 2021-05-24T16:21:08 | 2021-05-24T16:21:08 | 370,414,352 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 3,133 |
swift
|
//
// AppDelegate.swift
// KinopoiskSwift
//
// Created by Zhalgas on 11/10/20.
// Copyright © 2020 zhalgas.yegizgarin. All rights reserved.
//
import Foundation
class ListItemsPresenter {
weak var view: ListItemsViewInput!
private let networkService = NetworkAdapter()
private var listType: TmdbPageableListType
private var models = [TmdbModel]()
init(view: ListItemsViewInput, listType: TmdbPageableListType) {
self.view = view
self.listType = listType
}
}
extension ListItemsPresenter: ListItemsPresenterInput {
func loadItems(page: Int) {
let networkContext = listType.getNetworkContext(page: page)
switch listType.modelType {
case .actor:
networkService.loadDecodable(
context: networkContext,
type: TmdbResult<Person>.self
) { [weak self] result in
guard let strongSelf = self else { return }
switch result {
case .success(let tmdbResult):
if let results = tmdbResult.results, !results.isEmpty {
strongSelf.models += results
strongSelf.view.set(models: strongSelf.models)
strongSelf.view.set(maxResult: tmdbResult.total_results ?? -1)
}
case .error(let error):
strongSelf.view.showError(message: error.description)
}
}
case .movie:
networkService.loadDecodable(
context: networkContext,
type: TmdbResult<Movie>.self
) { [weak self] result in
guard let strongSelf = self else { return }
switch result {
case .success(let tmdbResult):
if let results = tmdbResult.results, !results.isEmpty {
strongSelf.models += results
strongSelf.view.set(models: strongSelf.models)
strongSelf.view.set(maxResult: tmdbResult.total_results ?? -1)
}
case .error(let error):
strongSelf.view.showError(message: error.description)
}
}
case .tvShow:
networkService.loadDecodable(
context: networkContext,
type: TmdbResult<TVShow>.self
) { [weak self] result in
guard let strongSelf = self else { return }
switch result {
case .success(let tmdbResult):
if let results = tmdbResult.results, !results.isEmpty {
strongSelf.models += results
strongSelf.view.set(models: strongSelf.models)
strongSelf.view.set(maxResult: tmdbResult.total_results ?? -1)
}
case .error(let error):
strongSelf.view.showError(message: error.description)
}
}
}
}
private func sww() {
}
}
|
[
-1
] |
43c987031f3602d40e686a3f11edf19a0368ac58
|
4ada647361ae21ecf187427d44b8c809d0a2ebfc
|
/AnimatedFormFieldDemo/AnimatedFormFieldDemo/ViewController.swift
|
9a3fa089db88512597372653ae983e577426b86d
|
[
"MIT"
] |
permissive
|
datree-intuit-org/AnimatedFormFieldTableViewCell
|
a5c60f31875afb87db5e10916ed2b11d69a5ecc7
|
bb181563a11ae977dda8a68070df081685143270
|
refs/heads/master
| 2020-04-20T03:52:24.121980 | 2017-01-29T21:23:38 | 2017-01-29T21:23:38 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 416 |
swift
|
//
// ViewController.swift
// AnimatedFormFieldDemo
//
// Created by Zaltzberg, Ido on 29/01/2017.
// Copyright © 2017 Zaltzberg, Ido. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBAction func demoTapped(sender: AnyObject) {
let viewController = FormViewController()
self.presentViewController(viewController, animated: true, completion: nil)
}
}
|
[
-1
] |
72f6a42753da1463765277999fab8ba678088cd0
|
6eb37eeddd2539daa983670de4aa243c5049a434
|
/luix5540_a6/AppDelegate.swift
|
cb269e90d2cdfe94d29b8c7f38e9949dc2628c18
|
[] |
no_license
|
Edmund-Lui98/IOSWebApp
|
9ec10082a3da7bd5eeff66a8972c60ebc7fec7e8
|
423b8475ccb301d73c7cd41dc196a4298bcee107
|
refs/heads/master
| 2022-04-15T03:20:24.160465 | 2020-04-11T04:56:19 | 2020-04-11T04:56:19 | 254,413,332 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 3,713 |
swift
|
//
// AppDelegate.swift
// luix5540_a6
//
// Created by Prism Student on 2020-04-08.
// Copyright © 2020 Edmund Lui. All rights reserved.
//
import UIKit
import CoreData
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
// MARK: UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
// MARK: - Core Data stack
lazy var persistentContainer: NSPersistentContainer = {
/*
The persistent container for the application. This implementation
creates and returns a container, having loaded the store for the
application to it. This property is optional since there are legitimate
error conditions that could cause the creation of the store to fail.
*/
let container = NSPersistentContainer(name: "luix5540_a6")
container.loadPersistentStores(completionHandler: { (storeDescription, error) in
if let error = error as NSError? {
// Replace this implementation with code to handle the error appropriately.
// fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
/*
Typical reasons for an error here include:
* The parent directory does not exist, cannot be created, or disallows writing.
* The persistent store is not accessible, due to permissions or data protection when the device is locked.
* The device is out of space.
* The store could not be migrated to the current model version.
Check the error message to determine what the actual problem was.
*/
fatalError("Unresolved error \(error), \(error.userInfo)")
}
})
return container
}()
// MARK: - Core Data Saving support
func saveContext () {
let context = persistentContainer.viewContext
if context.hasChanges {
do {
try context.save()
} catch {
// Replace this implementation with code to handle the error appropriately.
// fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
let nserror = error as NSError
fatalError("Unresolved error \(nserror), \(nserror.userInfo)")
}
}
}
}
|
[
199680,
379906,
253443,
418820,
328199,
384007,
249351,
377866,
372747,
326668,
379914,
199180,
329233,
349202,
186387,
350738,
262677,
330774,
324121,
245274,
377371,
345630,
340511,
384032,
362529,
349738,
394795,
404523,
245293,
262701,
349744,
361524,
337975,
343609,
375867,
333373,
418366,
152127,
339009,
413250,
214087,
352840,
337994,
377930,
370253,
330319,
200784,
173647,
436306,
333395,
244308,
374358,
329815,
254042,
402522,
326239,
322658,
340579,
244329,
333422,
349295,
204400,
173169,
339571,
330868,
344693,
268921,
343167,
192639,
344707,
330884,
336516,
266374,
385670,
346768,
268434,
409236,
333988,
336548,
356520,
377001,
379048,
361644,
402614,
361655,
339132,
325308,
343231,
403138,
337092,
244933,
322758,
337606,
367816,
257738,
342736,
245460,
257751,
385242,
366300,
350433,
345826,
328931,
395495,
363755,
343276,
346348,
338158,
325358,
212722,
251122,
350453,
338679,
393465,
351482,
264961,
115972,
268552,
346890,
362251,
328460,
336139,
333074,
356628,
257814,
333592,
397084,
342813,
257824,
362272,
377120,
334631,
336680,
389416,
384298,
254252,
204589,
271150,
366383,
328497,
257842,
339768,
326969,
257852,
384828,
204606,
386365,
375615,
339792,
358737,
389970,
361299,
155476,
366931,
257880,
330584,
361305,
362843,
429406,
374112,
353633,
439137,
355184,
361333,
332156,
337277,
260992,
245120,
380802,
389506,
264583,
337290,
155020,
348565,
250262,
337813,
155044,
333221,
373671,
333736,
252845,
356781,
288174,
268210,
370610,
210356,
342452,
370102,
338362,
327612,
358335,
380352,
201157,
187334,
333766,
336325,
339400,
349128,
358347,
393670,
347081,
272848,
379856,
155603,
219091,
399317,
249302,
379863,
372697,
155102,
329182,
182754,
360429,
338927,
330224,
379895,
201723,
257020,
254461
] |
245d1cfc06181c549576863ec8f813334756a91c
|
18641d9d52e7f45068eed69031e837081b9ad9ae
|
/Turkcell_Odev3/ArtTableView.swift
|
7372806be7c0ec638f296bb5162b6d27420cc6a9
|
[] |
no_license
|
gulsah-altiparmak/Turkcell_Odev3
|
b51046b8fbeed9624932c572e6d6cd65b3e173b6
|
91c3e799045df422a581764226859bd31f39b85e
|
refs/heads/main
| 2023-03-17T17:19:56.061045 | 2021-03-06T15:38:34 | 2021-03-06T15:38:34 | 345,129,237 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 3,583 |
swift
|
//
// ArtTableView.swift
// Turkcell_Odev3
//
// Created by Gulsah Altiparmak on 17.01.2021.
//
import UIKit
class ArtTableView: UITableViewController {
var item:[Art] = []
override func viewDidLoad() {
super.viewDidLoad()
// Uncomment the following line to preserve selection between presentations
// self.clearsSelectionOnViewWillAppear = false
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem
}
// MARK: - Table view data source
override func numberOfSections(in tableView: UITableView) -> Int {
// #warning Incomplete implementation, return the number of sections
return 1
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// #warning Incomplete implementation, return the number of rows
return item.count
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath)
as! CustomCell
let data = item[indexPath.row]
cell.artTitle.text = data.title
cell.artPrice.text = "\(data.price) ₺"
cell.artImage.image = data.image
return cell
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
print("Click: \(indexPath.row)")
let sended = item[indexPath.row]
performSegue(withIdentifier: "detail", sender: sended)
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if (segue.identifier == "detail"){
let vc = segue.destination as! ArtDetail
vc.art = sender as! Art
}
}
/*
// Override to support conditional editing of the table view.
override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
// Return false if you do not want the specified item to be editable.
return true
}
*/
/*
// Override to support editing the table view.
override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
if editingStyle == .delete {
// Delete the row from the data source
tableView.deleteRows(at: [indexPath], with: .fade)
} else if editingStyle == .insert {
// Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
}
}
*/
/*
// Override to support rearranging the table view.
override func tableView(_ tableView: UITableView, moveRowAt fromIndexPath: IndexPath, to: IndexPath) {
}
*/
/*
// Override to support conditional rearranging of the table view.
override func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool {
// Return false if you do not want the item to be re-orderable.
return true
}
*/
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
|
[
-1
] |
1604ded6b33f7fb4c6d3bae753d5aa2e3b660e6c
|
a847bcb5e01193c6b386c09f1f7907fad0d93081
|
/ATFTest/User Stories/Movies List/ViewModels/MoviesListViewModel.swift
|
d36993ccf5846b026a6833d1b081518df2eb66b5
|
[] |
no_license
|
BurumbayS/ATF-Test-Project
|
0aaf1d0bd35ac8878e15fbadab920a008c8c0c03
|
5ba2e9f4e048eb2c1396d840e0b43705066bfa7c
|
refs/heads/master
| 2022-12-03T17:48:25.587262 | 2020-08-18T22:18:24 | 2020-08-18T22:18:24 | 288,576,011 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,447 |
swift
|
//
// MoviesListViewModel.swift
// ATFTest
//
// Created by Sanzhar Burumbay on 8/19/20.
// Copyright © 2020 burumbays. All rights reserved.
//
import Alamofire
import SwiftyJSON
class MoviesListViewModel {
var moviesList = [Movie]()
var page = 1
func loadMovies(completion: ( (RequestStatus, String) -> () )? ) {
let url = Network.movies + "?page=\(page)"
Alamofire.request(url, method: .get, parameters: nil, encoding: JSONEncoding.default, headers: Network.headers)
.responseJSON { [weak self] (response) in
switch response.result {
case .success(let value):
let json = JSON(value)
let results = json["results"]
print(json)
for item in results.arrayValue {
let movie = Movie(json: item)
self?.moviesList.append(movie)
}
completion?(.success, "")
case .failure(let error):
print(error.localizedDescription)
completion?(.error, "")
}
}
}
func turnPage(completion: ( (RequestStatus, String) -> () )? ) {
page += 1
loadMovies(completion: completion)
}
}
|
[
-1
] |
7eb7dff257db87b92c313d87e784c7344884a0db
|
48aba12c76cef278ef4c07f69b315c031d903b52
|
/Tests/JSONAPITests/Poly/PolyProxyTests.swift
|
3d122596a72f117495d946f1d7fbd71e50d0fc01
|
[
"MIT"
] |
permissive
|
abinrm/JSONAPI
|
8bf535033bcf0b5232ab0f038f8de35f6eb85885
|
cf8d409fdedd3cbb5fb60d7498fa9d7403559214
|
refs/heads/master
| 2020-08-05T13:26:49.368950 | 2019-10-03T11:27:25 | 2019-10-03T11:27:25 | 212,104,741 | 0 | 0 |
MIT
| 2019-10-01T13:35:31 | 2019-10-01T13:35:31 | null |
UTF-8
|
Swift
| false | false | 4,376 |
swift
|
//
// PolyProxyTests.swift
// JSONAPITests
//
// Created by Mathew Polzin on 11/29/18.
//
import XCTest
import JSONAPI
import Poly
public class PolyProxyTests: XCTestCase {
func test_generalReasonableness() {
XCTAssertNotEqual(decoded(type: User.self, data: poly_user_stub_1), decoded(type: User.self, data: poly_user_stub_2))
XCTAssertEqual(User.jsonType, "users")
}
func test_UserADecode() {
let polyUserA = decoded(type: User.self, data: poly_user_stub_1)
let userA = decoded(type: UserA.self, data: poly_user_stub_1)
XCTAssertEqual(polyUserA.userA, userA)
XCTAssertNil(polyUserA.userB)
XCTAssertEqual(polyUserA[\.name], "Ken Moore")
XCTAssertEqual(polyUserA.id, "1")
XCTAssertEqual(polyUserA.relationships, .none)
XCTAssertEqual(polyUserA[direct: \.x], .init(x: "y"))
}
func test_UserAAndBEncodeEquality() {
test_DecodeEncodeEquality(type: User.self, data: poly_user_stub_1)
test_DecodeEncodeEquality(type: User.self, data: poly_user_stub_2)
}
func test_AsymmetricEncodeDecodeUserA() {
let userA = decoded(type: UserA.self, data: poly_user_stub_1)
let polyUserA = decoded(type: User.self, data: poly_user_stub_1)
let encodedPoly = try! JSONEncoder().encode(polyUserA)
XCTAssertEqual(decoded(type: UserA.self, data: encodedPoly), userA)
}
func test_AsymmetricEncodeDecodeUserB() {
let userB = decoded(type: UserB.self, data: poly_user_stub_2)
let polyUserB = decoded(type: User.self, data: poly_user_stub_2)
let encodedPoly = try! JSONEncoder().encode(polyUserB)
XCTAssertEqual(decoded(type: UserB.self, data: encodedPoly), userB)
}
func test_UserBDecode() {
let polyUserB = decoded(type: User.self, data: poly_user_stub_2)
let userB = decoded(type: UserB.self, data: poly_user_stub_2)
XCTAssertEqual(polyUserB.userB, userB)
XCTAssertNil(polyUserB.userA)
XCTAssertEqual(polyUserB[\.name], "Ken Less")
XCTAssertEqual(polyUserB.id, "2")
XCTAssertEqual(polyUserB.relationships, .none)
XCTAssertEqual(polyUserB[direct: \.x], .init(x: "y"))
}
}
// MARK: - Test types
public extension PolyProxyTests {
enum UserDescription1: ResourceObjectDescription {
public static var jsonType: String { return "users" }
public struct Attributes: JSONAPI.Attributes {
let firstName: Attribute<String>
let lastName: Attribute<String>
}
public typealias Relationships = NoRelationships
}
enum UserDescription2: ResourceObjectDescription {
public static var jsonType: String { return "users" }
public struct Attributes: JSONAPI.Attributes {
let name: Attribute<[String]>
}
public typealias Relationships = NoRelationships
}
typealias UserA = BasicEntity<UserDescription1>
typealias UserB = BasicEntity<UserDescription2>
typealias User = Poly2<UserA, UserB>
}
extension Poly2: ResourceObjectProxy, JSONTyped where A == PolyProxyTests.UserA, B == PolyProxyTests.UserB {
public var userA: PolyProxyTests.UserA? {
return a
}
public var userB: PolyProxyTests.UserB? {
return b
}
public var id: Id<EntityRawIdType, PolyProxyTests.User> {
switch self {
case .a(let a):
return Id(rawValue: a.id.rawValue)
case .b(let b):
return Id(rawValue: b.id.rawValue)
}
}
public var attributes: SharedUserDescription.Attributes {
switch self {
case .a(let a):
return .init(name: .init(value: "\(a[\.firstName]) \(a[\.lastName])"), x: .init(x: "y"))
case .b(let b):
return .init(name: .init(value: b[\.name].joined(separator: " ")), x: .init(x: "y"))
}
}
public var relationships: NoRelationships {
return .none
}
public enum SharedUserDescription: ResourceObjectProxyDescription {
public static var jsonType: String { return A.jsonType }
public struct Attributes: Equatable {
let name: Attribute<String>
let x: SomeRandomThingThatIsNotCodable
}
public typealias Relationships = NoRelationships
public struct SomeRandomThingThatIsNotCodable: Equatable {
let x: String
}
}
public typealias Description = SharedUserDescription
public typealias EntityRawIdType = A.EntityRawIdType
}
// MARK: - Test stubs
private let poly_user_stub_1 = """
{
"id": "1",
"type": "users",
"attributes": {
"firstName": "Ken",
"lastName": "Moore"
}
}
""".data(using: .utf8)!
private let poly_user_stub_2 = """
{
"id": "2",
"type": "users",
"attributes": {
"name": ["Ken", "Less"]
}
}
""".data(using: .utf8)!
|
[
-1
] |
e0277b26e6b58412bda2f0957096c2ba8a3dc70b
|
a9bf7b25dbaa02b4b4295a1d0f1995897276af64
|
/FisherMan/VeiwModels/SearchSceneViewModel.swift
|
1c8c4bf245861a9acb826b06591e152a6d3edeef
|
[] |
no_license
|
Macostik/FisherMan
|
8137286461843d1506d3281de3e03fd981ab2560
|
d7ccb438041aba6aa2802c5880a41190806964bc
|
refs/heads/master
| 2020-09-14T20:50:50.329464 | 2020-02-17T19:12:26 | 2020-02-17T19:12:26 | 223,250,829 | 1 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 264 |
swift
|
//
// SearchSceneViewModel.swift
// FisherMan
//
// Created by Yura Granchenko on 20.01.2020.
// Copyright © 2020 GYS. All rights reserved.
//
import Foundation
import RxSwift
import RxCocoa
final class SearchSceneViewModel: BaseViewModel<SearchModel> {}
|
[
-1
] |
af7befb26936846425ba6a5fc4dd1b84f2f8ecf8
|
ddd45ba19f3b591499a942251df7a6452619fbad
|
/Multiwords/Model/DataGloss.swift
|
f4f76f230eab024f196cb7be503bc796e38384cb
|
[] |
no_license
|
Alina7/Multiwords
|
49f6e99596a263377d5dfc401c12cdb837f2f783
|
04eed78780748651a6845c994f40532466e94dc5
|
refs/heads/master
| 2021-05-15T23:51:10.997699 | 2017-12-21T21:51:20 | 2017-12-21T21:51:20 | 106,947,009 | 0 | 1 | null | 2017-12-02T21:07:55 | 2017-10-14T17:11:30 |
Swift
|
UTF-8
|
Swift
| false | false | 998 |
swift
|
//
// DataGloss.swift
// Multiwords
//
// Created by Алина Князева on 26.11.2017.
// Copyright © 2017 Алина Князева. All rights reserved.
//
import Foundation
import Gloss
struct defArray: JSONDecodable {
let textDef: String?
let posDef: String?
let tsDef: String?
init? (json: JSON) {
self.textDef = "text" <~~ json
self.posDef = "pos" <~~ json
self.tsDef = "ts" <~~ json
}
}
struct ArrayTr: JSONDecodable {
let textTr: String?
let posTr: String?
let gen: String?
init? (json: JSON){
self.textTr = "text" <~~ json
self.posTr = "pos" <~~ json
self.gen = "gen" <~~ json
}
}
struct meanArray: JSONDecodable {
let textMean: String?
init? (json: JSON){
self.textMean = "text" <~~ json
}
}
struct exArray: JSONDecodable {
let textEx: String?
init? (json: JSON){
self.textEx = "text" <~~ json
}
}
|
[
-1
] |
01e1df0a4b531e1c19078951f33808087bc448c6
|
f17fef50c07f1ffe829fb0bd78a538815612c202
|
/barSwitchTest/AppDelegate.swift
|
7517ee3d475e18307da46eec049b6a10eaf2d205
|
[] |
no_license
|
c1800054work/barSwitchTest
|
8818f6e8c1068198e7dfb7a256bf32710fef5c64
|
55142411e31df2d79d80ae307de68ddb4f73d9c5
|
refs/heads/main
| 2023-03-29T06:10:09.164815 | 2021-03-29T02:43:37 | 2021-03-29T02:43:37 | 341,869,295 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,350 |
swift
|
//
// AppDelegate.swift
// barSwitchTest
//
// Created by Peggy Tsai on 2021/2/24.
//
import UIKit
@main
class AppDelegate: UIResponder, UIApplicationDelegate {
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
// MARK: UISceneSession Lifecycle
func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration {
// Called when a new scene session is being created.
// Use this method to select a configuration to create the new scene with.
return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role)
}
func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) {
// Called when the user discards a scene session.
// If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions.
// Use this method to release any resources that were specific to the discarded scenes, as they will not return.
}
}
|
[
393222,
393224,
393230,
393250,
344102,
393261,
393266,
213048,
385081,
376889,
393275,
376905,
327756,
254030,
286800,
368727,
180313,
368735,
180320,
376931,
286831,
368752,
286844,
417924,
262283,
286879,
286888,
377012,
164028,
327871,
180416,
377036,
180431,
377046,
418007,
418010,
377060,
327914,
205036,
393456,
393460,
418043,
336123,
385280,
336128,
262404,
180490,
164106,
368911,
262416,
262422,
377117,
262436,
336180,
262454,
393538,
262472,
344403,
213332,
65880,
262496,
418144,
262499,
213352,
246123,
262507,
262510,
213372,
385419,
393612,
262550,
262552,
385440,
385443,
262566,
385451,
262573,
393647,
385458,
262586,
344511,
262592,
360916,
369118,
328177,
328179,
328182,
328189,
328192,
164361,
410128,
393747,
254490,
188958,
385570,
33316,
377383,
197159,
352821,
197177,
418363,
188987,
369223,
385609,
385616,
352864,
369253,
262760,
352874,
352887,
254587,
377472,
148105,
377484,
352918,
98968,
344744,
361129,
336555,
385713,
434867,
164534,
336567,
328378,
164538,
328386,
352968,
344776,
352971,
418507,
352973,
385742,
385748,
361179,
189153,
369381,
361195,
418553,
344831,
336643,
344835,
344841,
361230,
336659,
418580,
418585,
434970,
369435,
418589,
262942,
418593,
336675,
328484,
418598,
418605,
336696,
361273,
328515,
336708,
328519,
361288,
336711,
328522,
336714,
426841,
254812,
361309,
197468,
361315,
361322,
328573,
377729,
369542,
361360,
222128,
345035,
386003,
345043,
386011,
386018,
386022,
435187,
328702,
328714,
361489,
386069,
386073,
336921,
336925,
345118,
377887,
345133,
345138,
386101,
361536,
197707,
189520,
345169,
156761,
361567,
148578,
345199,
386167,
361593,
410745,
361598,
214149,
345222,
386186,
337047,
345246,
214175,
337071,
337075,
345267,
386258,
328924,
66782,
222437,
386285,
328941,
386291,
345376,
353570,
345379,
410917,
345382,
337205,
345399,
378169,
369978,
337222,
337229,
337234,
263508,
402791,
345448,
271730,
378227,
271745,
181638,
353673,
181643,
181649,
181654,
230809,
181670,
181673,
181678,
181681,
337329,
181684,
181690,
361917,
181696,
337349,
181703,
337365,
271839,
329191,
361960,
329194,
116210,
337398,
337415,
329226,
419339,
419343,
419349,
345625,
419355,
370205,
419359,
394786,
419362,
370213,
419368,
419376,
206395,
214593,
419400,
419402,
353867,
419406,
419410,
394853,
345701,
222830,
370297,
403070,
353919,
403075,
345736,
198280,
403091,
345749,
419483,
345757,
345762,
419491,
345765,
419497,
419501,
370350,
419506,
419509,
419512,
337592,
419517,
337599,
419527,
419530,
419535,
272081,
419542,
394966,
419544,
181977,
345818,
419547,
419550,
419559,
337642,
419563,
337645,
370415,
337659,
141051,
337668,
362247,
395021,
362255,
116509,
345887,
378663,
345905,
354106,
354111,
247617,
354117,
370503,
329544,
345930,
370509,
354130,
247637,
337750,
370519,
313180,
354142,
354150,
354156,
345964,
345967,
345970,
345974,
403320,
354172,
247691,
337808,
247700,
329623,
436126,
436132,
337833,
362413,
337844,
346057,
247759,
346063,
329697,
354277,
190439,
247789,
354313,
346139,
436289,
378954,
395339,
338004,
100453,
329832,
329855,
329867,
329885,
411805,
346272,
362660,
100524,
387249,
379066,
387260,
256191,
395466,
346316,
411861,
411864,
411868,
411873,
379107,
411876,
387301,
346343,
338152,
387306,
387312,
346355,
436473,
321786,
379134,
411903,
411916,
379152,
395538,
387349,
338199,
387352,
182558,
338211,
395566,
248111,
362822,
436555,
190796,
379233,
354673,
321910,
248186,
420236,
379278,
272786,
354727,
338352,
330189,
338381,
338386,
256472,
338403,
338409,
248308,
199164,
330252,
199186,
420376,
330267,
354855,
10828,
199249,
346721,
174695,
248425,
191084,
338543,
191092,
346742,
330383,
354974,
150183,
174774,
248504,
174777,
223934,
355024,
273108,
355028,
264918,
183005,
256734,
436962,
338660,
338664,
264941,
363251,
207619,
264964,
338700,
256786,
199452,
363293,
396066,
346916,
396069,
215853,
355122,
355131,
355140,
355143,
338763,
355150,
330580,
355166,
265055,
265058,
355175,
387944,
355179,
330610,
330642,
355218,
412599,
207808,
379848,
396245,
330710,
248792,
248798,
347105,
257008,
183282,
265207,
330748,
265214,
330760,
330768,
248862,
396328,
347176,
158761,
199728,
396336,
330800,
396339,
339001,
388154,
388161,
347205,
248904,
330826,
248914,
412764,
339036,
257120,
265320,
248951,
420984,
330889,
347287,
248985,
339097,
44197,
380070,
339112,
249014,
126144,
330958,
330965,
265432,
265436,
388319,
388347,
175375,
159005,
175396,
208166,
273708,
347437,
372015,
347441,
372018,
199988,
44342,
175415,
396600,
437566,
175423,
437570,
437575,
437583,
331088,
437587,
331093,
396633,
175450,
437595,
175457,
208227,
175460,
175463,
265580,
437620,
175477,
249208,
175483,
175486,
249214,
175489,
249218,
249224,
249227,
249234,
175513,
175516,
396705,
175522,
355748,
380332,
396722,
208311,
388542,
372163,
216517,
380360,
216522,
339404,
372176,
208337,
339412,
413141,
339417,
339420,
249308,
339424,
249312,
339428,
339434,
249328,
69113,
372228,
208398,
380432,
175635,
265778,
265795,
396872,
265805,
224853,
224857,
257633,
224870,
372327,
257646,
372337,
224884,
224887,
224890,
224894,
224897,
372353,
216707,
126596,
421508,
224904,
224909,
11918,
159374,
224913,
126610,
339601,
224916,
224919,
126616,
224922,
208538,
224926,
224929,
224932,
224936,
257704,
224942,
257712,
224947,
257716,
257720,
224953,
257724,
224959,
257732,
224965,
224969,
339662,
224975,
257747,
224981,
224986,
257761,
224993,
257764,
224999,
339695,
225012,
257787,
225020,
339710,
257790,
225025,
257794,
339721,
257801,
257804,
225038,
257807,
225043,
372499,
167700,
225048,
257819,
225053,
184094,
225058,
257833,
225066,
257836,
413484,
225070,
225073,
372532,
257845,
225079,
397112,
225082,
397115,
225087,
225092,
225096,
323402,
257868,
225103,
257871,
397139,
225108,
225112,
257883,
257886,
225119,
257890,
339814,
225127,
274280,
257896,
257901,
225137,
339826,
257908,
225141,
257912,
225148,
257916,
257920,
225155,
339844,
225165,
397200,
225170,
380822,
225175,
225180,
118691,
184244,
372664,
372702,
372706,
356335,
380918,
372738,
405533,
430129,
266294,
266297,
421960,
356439,
430180,
421990,
266350,
356466,
266362,
381068,
225423,
250002,
250004,
225429,
356506,
225437,
135327,
225441,
438433,
225444,
438436,
225447,
438440,
225450,
258222,
225455,
430256,
225458,
225461,
225466,
389307,
225470,
381120,
372929,
430274,
225475,
389320,
225484,
225487,
225490,
225493,
266453,
225496,
225499,
225502,
225505,
356578,
225510,
217318,
225514,
225518,
372976,
381176,
397571,
389380,
61722,
356637,
356640,
356643,
356646,
266536,
356649,
356655,
332080,
340275,
356660,
397622,
332090,
225597,
332097,
201028,
348488,
332106,
332117,
348502,
250199,
250202,
332125,
250210,
348522,
348525,
348527,
332152,
389502,
250238,
332161,
356740,
332172,
373145,
340379,
389550,
324030,
266687,
160234,
127471,
340472,
381436,
324094,
266754,
324099,
324102,
324111,
340500,
324117,
324131,
332324,
381481,
356907,
324139,
324142,
356916,
324149,
324155,
348733,
324164,
356934,
348743,
381512,
324170,
324173,
324176,
389723,
332380,
373343,
381545,
340627,
373398,
184982,
258721,
332453,
332459,
389805,
332463,
381617,
332471,
332483,
332486,
373449,
332493,
357069,
357073,
332511,
332520,
340718,
332533,
348924,
389892,
373510,
389926,
348978,
152370,
340789,
348982,
398139,
127814,
357201,
357206,
389978,
430939,
357211,
357214,
201579,
201582,
349040,
340849,
201588,
430965,
381813,
324472,
398201,
340858,
324475,
430972,
340861,
324478,
119674,
324481,
373634,
398211,
324484,
324487,
381833,
324492,
324495,
324498,
430995,
324501,
324510,
422816,
324513,
398245,
201637,
324524,
340909,
324533,
324538,
324541,
398279,
340939,
340941,
209873,
340957,
431072,
398306,
340963,
209895,
201711,
349172,
381946,
349180,
439294,
431106,
209943,
357410,
250914,
185380,
357418,
209965,
209968,
209971,
209975,
209979,
209987,
209990,
209995,
341071,
349267,
250967,
210010,
341091,
210025,
210027,
210030,
210036,
210039,
349308,
210044,
349311,
160895,
152703,
210052,
349319,
210055,
218247,
210067,
210071,
210077,
210080,
251044,
210084,
185511,
210088,
210095,
210098,
210107,
210115,
332997,
210127,
333009,
210131,
333014,
210138,
210143,
218354,
218360,
251128,
275706,
275712,
275715,
275721,
349459,
333078,
251160,
349484,
349491,
251189,
415033,
251210,
357708,
210260,
365911,
259421,
365921,
333154,
251235,
374117,
333162,
234866,
390516,
333175,
357755,
251271,
136590,
374160,
112020,
349590,
357792,
259515,
415166,
415185,
366034,
366038,
415191,
415193,
415196,
415199,
423392,
333284,
415207,
366056,
366061,
415216,
210420,
415224,
423423,
415257,
415263,
366117,
415270,
144939,
415278,
415281,
415285,
210487,
415290,
415293,
349761,
415300,
333386,
366172,
333413,
423528,
423532,
210544,
415353,
333439,
415361,
267909,
153227,
333498,
210631,
333511,
259788,
358099,
153302,
333534,
366307,
366311,
431851,
366318,
210672,
366321,
366325,
210695,
268041,
210698,
366348,
210706,
399128,
333594,
210719,
358191,
366387,
210739,
399159,
358200,
325440,
366401,
341829,
325446,
46920,
341834,
341838,
341843,
415573,
358234,
341851,
350045,
399199,
259938,
399206,
268143,
358255,
399215,
358259,
341876,
333689,
243579,
325504,
333698,
333708,
333724,
382890,
350146,
333774,
358371,
350189,
350193,
350202,
333818,
350206,
350213,
268298,
350224,
350231,
333850,
350237,
350240,
350244,
350248,
178218,
350251,
350256,
350259,
350271,
243781,
350285,
374864,
342111,
342133,
374902,
432271,
333997,
334011,
260289,
260298,
350410,
350416,
350422,
211160,
350425,
268507,
334045,
350445,
375026,
358644,
350458,
350461,
350464,
325891,
350467,
350475,
375053,
268559,
350480,
432405,
350486,
325914,
350490,
325917,
350493,
325919,
350498,
194852,
350504,
358700,
391468,
350509,
358704,
358713,
358716,
383306,
334161,
383321,
383330,
383333,
391530,
383341,
334203,
268668,
194941,
391563,
366990,
416157,
342430,
268701,
375208,
326058,
375216,
334262,
334275,
326084,
358856,
195039,
334304,
334311,
375277,
334321,
350723,
186897,
342545,
334358,
342550,
342554,
334363,
358941,
350761,
252461,
334384,
383536,
358961,
334394,
252482,
219718,
334407,
334420,
350822,
375400,
334465,
334468,
162445,
326290,
342679,
342683,
260766,
342710,
244409,
260797,
260801,
350917,
154317,
391894,
154328,
416473,
64230,
113388,
342766,
375535,
203506,
342776,
391937,
391948,
375568,
326416,
375571,
375574,
162591,
326441,
383793,
326451,
326454,
326460,
260924,
375612,
244540,
326467,
244551,
326473,
326477,
326485,
416597,
326490,
342874,
326502,
375656,
433000,
326507,
326510,
211825,
211831,
351097,
392060,
359295,
351104,
342915,
400259,
236430,
342930,
252822,
392091,
400285,
252836,
359334,
211884,
400306,
351168,
359361,
326598,
359366,
359382,
359388,
383967,
343015,
359407,
261108,
244726,
261111,
383997,
261129,
359451,
261147,
211998,
261153,
261159,
359470,
359476,
343131,
384098,
384101,
384107,
367723,
187502,
343154,
384114,
212094,
351364,
384135,
384139,
384143,
351381,
384160,
384168,
367794,
384181,
367800,
384191,
351423,
384198,
326855,
244937,
253130,
343244,
146642,
359649,
343270,
351466,
351479,
384249,
343306,
261389,
359694,
384269,
253200,
261393,
384275,
245020,
245029,
171302,
351534,
376110,
245040,
384314,
425276,
384323,
212291,
343365,
212303,
367965,
343393,
343398,
367980,
425328,
343409,
253303,
154999,
343417,
327034,
245127,
384397,
245136,
245142,
245145,
343450,
245148,
245151,
245154,
245157,
245162,
327084,
359865,
384443,
146876,
327107,
384453,
327110,
327115,
327117,
359886,
359890,
343507,
368092,
343534,
343539,
368119,
343544,
368122,
409091,
359947,
359955,
359983,
343630,
179802,
155239,
327275,
245357,
138864,
155254,
155273,
368288,
245409,
425638,
425649,
155322,
425662,
155327,
155351,
155354,
212699,
155363,
245475,
155371,
245483,
409335,
155393,
155403,
155422,
360223,
155438,
155442,
155447,
417595,
155461,
360261,
376663,
155482,
261981,
425822,
155487,
376671,
155490,
155491,
327531,
261996,
376685,
261999,
262002,
327539,
262005,
147317,
425845,
262008,
262011,
155516,
155521,
155525,
360326,
376714,
155531,
262027,
262030,
262033,
262036,
262039,
262042,
155549,
262045,
262048,
262051,
327589,
155559,
155562,
155565,
393150,
393169,
384977,
155611,
155619,
253923,
155621,
253926,
327654,
204784,
393203,
360438,
253943,
393206,
393212,
155646
] |
a483485097e6cc4138a0cd987ff7db59b2c8ef55
|
ab3b2bf1574db206f994f3be9a7e06c0b1caf89b
|
/Trible/Classes/Explore/View/HotExperienceCollectionCell.swift
|
a21aab8f1c2585ab61de83aa5da8e29d95e46095
|
[] |
no_license
|
applepeopletsai/Trible
|
ad1b315667746690d82b9dfe766be4108b0b8710
|
c8ee35189978f7834d0f37ace3a5622779660378
|
refs/heads/master
| 2020-12-30T11:01:43.468064 | 2017-07-31T12:34:00 | 2017-07-31T12:34:00 | 83,551,049 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 303 |
swift
|
//
// HotExperienceCollectionCell.swift
// Trible
//
// Created by Daniel on 2017/7/29.
// Copyright © 2017年 Daniel. All rights reserved.
//
import UIKit
class HotExperienceCollectionCell: UICollectionViewCell {
override func awakeFromNib() {
super.awakeFromNib()
}
}
|
[
-1
] |
51f57e19bc457e75293ce50fb31c2de510d0c494
|
98d2211510a9ec4aec281ac47c24cb9039086f9c
|
/TwitchSwiftUI/Network/API/BTTVGlobalEmotesMethod.swift
|
1b90035f5df65458f22bd7f97d17ed86e4a40540
|
[] |
no_license
|
Banannzza/TwitchSwiftUI
|
0dce71c68d4b71166ea0e557ca2a9e6749089656
|
0f802a00b959e7c01bf991b8159cefc07d150542
|
refs/heads/master
| 2023-02-18T12:08:05.666648 | 2021-01-18T11:27:01 | 2021-01-18T11:27:01 | 330,632,787 | 2 | 1 | null | null | null | null |
UTF-8
|
Swift
| false | false | 375 |
swift
|
//
// BTTVGlobalEmotesMethod.swift
// Twitch
//
// Created by Aleksey Ostapenko on 17.01.2021.
//
import Foundation
struct BTTVGlobalEmotesMethod: ApiMethod {
let response = [BTTVEmote].self
let authorized: Bool = false
let method: HTTPMethod = .get
let params: [String : String] = [:]
let host = "https://api.betterttv.net/3/cached/emotes/global"
}
|
[
-1
] |
22ad80096cf7603c318fd8aec6f2eb802a85d3aa
|
f8e494d8c73a973aa184ba4b2d2d59df9a76b2ea
|
/NewPodcast/Extensions/RSSFeed.swift
|
9036ccf2b00027462787650a25a38db991c61a27
|
[] |
no_license
|
Shakhboz89/podcast
|
8a96df8adc08f1ff6c433e79702e7f63de4be14e
|
35a211b2caa9e61147bd74e6e0238506e2f31514
|
refs/heads/master
| 2020-06-10T12:01:05.088514 | 2019-06-25T06:38:27 | 2019-06-25T06:38:27 | 193,643,213 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 616 |
swift
|
//
// RSSFeed.swift
// NewPodcast
//
// Created by MacBook on 6/22/19.
// Copyright © 2019 Shakhboz. All rights reserved.
//
import FeedKit
extension RSSFeed {
func toEpisode() -> [Episode] {
let imageUrl = iTunes?.iTunesImage?.attributes?.href
var episodes = [Episode]() // Blank Episode Array
items?.forEach({ (feedItem) in
var episode = Episode(feedItem: feedItem)
if episode.imageUrl == nil {
episode.imageUrl = imageUrl
}
episodes.append(episode)
})
return episodes
}
}
|
[
-1
] |
be29f427e4ebba7d8a637ce6ec442e6e1c255cea
|
ebb0fe375ca2d03ddd675b52177cc9b8c0b2ec13
|
/Diet/Subscription/SubscriptionNetworkService.swift
|
a8de5d590c832b8887a995bc0bf05955b2427743
|
[] |
no_license
|
nersonSwift/Diet
|
734ee68c29cdae97f7e9c99b9a56b5e8f01de3fd
|
79a63d2f252b6ff8db170800c0ea6fcae0d126a6
|
refs/heads/master
| 2020-04-28T16:28:45.975491 | 2019-06-24T09:32:27 | 2019-06-24T09:32:27 | 175,412,747 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 3,400 |
swift
|
//
// SubscriptionNetworkService.swift
// Diet
//
// Created by Даниил on 10/12/2018.
// Copyright © 2018 Даниил. All rights reserved.
//
import Foundation
import Alamofire
import SwiftyJSON
//enum Result<T> {
// case failure(SubscriptionServiceError)
// case success(T)
//}
enum RecieptStatus: Int {
case sandboxUsedInProduction = 21007
case correctStatus = 0
}
enum SubscriptionServiceError {
case internalError
case missingAccountSecret
case invalidSession
case noActiveSubscription
case wrongEnviroment
case purchaseFailed
case restoreFailed
case other(Error)
}
typealias UploadReceiptCompletion = (_ result: Result<Session>) -> Void
typealias SessionId = String
class SubscriptionNetworkService {
public static let shared = SubscriptionNetworkService()
let simulatedStartDate: Date
private var sessions = [SessionId: Session]()
private var productionUrl = "https://buy.itunes.apple.com/verifyReceipt"
private var sandboxUrl = "https://sandbox.itunes.apple.com/verifyReceipt"
private var currentUrl: String = ""
init() {
let persistedDateKey = "SimulatedStartDate"
currentUrl = productionUrl
if let persistedDate = UserDefaults.standard.object(forKey: persistedDateKey) as? Date {
simulatedStartDate = persistedDate
} else {
let date = Date().addingTimeInterval(-30) // 30 second difference to account for server/client drift.
UserDefaults.standard.set(date, forKey: "SimulatedStartDate")
simulatedStartDate = date
}
}
public func upload(receipt data: Data, completion: @escaping UploadReceiptCompletion) {
// let body = [
// "receipt-data": data.base64EncodedString(),
// "password": itcAccountSecret
// ]
let body = ["":""]
request(currentUrl, method: .post, parameters: body, encoding: JSONEncoding.default, headers: nil).responseJSON { (response) in
// guard let responseValue = response.result.value else { completion(.failure(.internalError)); return }
// switch response.result {
// case .success(_):
//
// guard let json = JSON(responseValue).dictionaryObject else { completion(.failure(.internalError)); return }
// let status = JSON(responseValue)["status"].intValue
// guard let recieptStatus = RecieptStatus(rawValue: status) else { completion(.failure(.internalError)); return }
// let session = Session(receiptData: data, parsedReceipt: json)
// self.sessions[session.id] = session
//
// if JSON(responseValue)["latest_expired_receipt_info"]["is_trial_period"] == "true" {
// EventManager.subscriptionExpired(with: "TEST EVENT. User has canceled trial.")
// }
//
// if recieptStatus == .correctStatus {
// completion(.success(session))
// } else {
// self.currentUrl = self.sandboxUrl
// completion(.failure(.wrongEnviroment))
// }
//
// case .failure(let error):
// completion(.failure(.other(error)))
// }
}
}
}
|
[
-1
] |
ea6dfb3c5689ec1c1ca16c134449bcfb5c043322
|
4da4c8aa2506f32950ed35370b332710e72b8270
|
/TwitterApp/HTLtweetsViewController.swift
|
becd3f3f2f0cbfa84bfae77a4aab22dfff15ccdb
|
[] |
no_license
|
mdaviscph/CodeFellowsD40w1
|
bdcf3d67a2b1a0baebfc84e27acb0c5ae6f8ad1b
|
bbbfbea0e0b9e68c61347949c7317740bb80958f
|
refs/heads/master
| 2016-09-06T00:53:31.043077 | 2015-10-02T01:21:31 | 2015-10-02T01:21:31 | 40,137,563 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 4,310 |
swift
|
//
// HomeTimelineTweetsViewController.swift
// TwitterApp
//
// Created by mike davis on 8/3/15.
// Copyright (c) 2015 mike davis. All rights reserved.
//
import UIKit
class HomeTimelineTweetsViewController: UIViewController {
var tweets = [[Tweet]]() {
didSet {
updateUI()
}
}
@IBOutlet weak var tableView: UITableView! {
didSet {
tableView.estimatedRowHeight = 140 //change from setting to tableView.rowHeight due to using Nib
tableView.rowHeight = UITableViewAutomaticDimension
}
}
@IBAction func homeTapped(sender: AnyObject) {
let indexPath = NSIndexPath(forRow: 0, inSection: 0)
tableView?.scrollToRowAtIndexPath(indexPath, atScrollPosition: .Top, animated: true)
}
@IBOutlet weak var busyIndicator: UIActivityIndicatorView!
override func viewDidLoad() {
super.viewDidLoad()
updateUI()
let nib = UINib(nibName: StoryboardConsts.TimelineCellNibName, bundle: NSBundle.mainBundle())
tableView.registerNib(nib, forCellReuseIdentifier: StoryboardConsts.TimelineCellReuseIdentifier)
//if let jsonData = TweetJSONFile.loadJSONFileInBundle("tweet", fileType: "json"),
// latestTweets = TweetJSONParser.parseJSONData(jsonData) {
// tweets.insert(latestTweets, atIndex: 0)
//}
print("request: \(TwitterURLConsts.statusesHomeTimeline)")
busyIndicator.startAnimating()
TwitterJSONRequest.tweetsFromTimeline(TwitterURLConsts.statusesHomeTimeline, parameters: nil) { (errorMessage, latestTweets) -> Void in
if let latestTweets = latestTweets {
NSOperationQueue.mainQueue().addOperationWithBlock { () -> Void in
self.busyIndicator.stopAnimating()
self.tweets.insert(latestTweets, atIndex: 0)
}
}
if let errorMessage = errorMessage {
// need to alert user via mainQueue alert popover
print(errorMessage)
}
}
}
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
startObservingNotifications()
}
override func viewWillDisappear(animated: Bool) {
super.viewWillDisappear(animated)
stopObservingNotifications()
}
func updateUI() {
tableView?.reloadData()
}
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
if segue.identifier == StoryboardConsts.HomeTimelineDetailSegueIdentifier, let detailVC = segue.destinationViewController as? HomeTimelineTweetDetailViewController, indexPath = tableView.indexPathForSelectedRow {
detailVC.imagesDownloadedDelegate = self
detailVC.tweet = tweets[indexPath.section][indexPath.row]
}
}
}
extension HomeTimelineTweetsViewController {
func startObservingNotifications() {
NSNotificationCenter.defaultCenter().addObserver(self, selector:Selector("updateUI"),
name: UIContentSizeCategoryDidChangeNotification, object:nil)
}
func stopObservingNotifications() {
NSNotificationCenter.defaultCenter().removeObserver(self, name: UIContentSizeCategoryDidChangeNotification, object: nil)}
}
extension HomeTimelineTweetsViewController: UITableViewDelegate {
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
performSegueWithIdentifier(StoryboardConsts.HomeTimelineDetailSegueIdentifier, sender: tableView)
}
}
extension HomeTimelineTweetsViewController: UITableViewDataSource {
func numberOfSectionsInTableView(tableView: UITableView) -> Int {
return tweets.count
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return tweets[section].count
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCellWithIdentifier(StoryboardConsts.TimelineCellReuseIdentifier, forIndexPath: indexPath) as! TweetTableViewCell
cell.imagesDownloadedDelegate = self // must do this before assigning to cell.tweet due to didSet calling updateUI
cell.tweet = tweets[indexPath.section][indexPath.row]
cell.selectionStyle = .None
return cell
}
}
extension HomeTimelineTweetsViewController: RefreshWhenImagesDownloaded {
func refreshUIThatUsesImage(stringURL: String) {
print("refreshing due to image: \(stringURL)")
updateUI()
}
}
|
[
-1
] |
d5e098fe04860e385f236881ee0a5a689d37bc8a
|
fd304288d3e5127dd304618fffb55a11004c67d6
|
/ProjectGO/WalkthroughContentViewController.swift
|
0cfcb84277cf87b63cac6bee8c0ad0f00324a552
|
[] |
no_license
|
LiChunChen/ConvenientStoreGo
|
c615564d6b9bde948844bdf6a6a9ee1e043a5ce8
|
7195081dd32db3235a3dbbf2aeeb82cde53f6682
|
refs/heads/master
| 2021-07-22T00:19:33.237859 | 2017-11-01T12:09:01 | 2017-11-01T12:09:01 | 104,314,305 | 0 | 1 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,774 |
swift
|
//
// WalkthroughContentViewController.swift
// GoGoGo
//
// Created by gnoocl on 2017/9/9.
// Copyright © 2017年 gnoocl. All rights reserved.
//
import UIKit
class WalkthroughContentViewController: UIViewController {
@IBOutlet weak var contentTextLabel: UILabel!
@IBOutlet weak var contentImageView: UIImageView!
@IBOutlet weak var headingLabel: UILabel!
@IBOutlet weak var pageControl: UIPageControl!
@IBOutlet weak var forwardBtn: UIButton!
var index=0
var heading = ""
var content = ""
var imageFile = ""
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
headingLabel.text = heading
contentTextLabel.text = content
contentImageView.image = UIImage(named: imageFile)
pageControl.currentPage = index
switch index{
case 0,1,2 : forwardBtn.isHidden = true
case 3 : forwardBtn.setTitle("Start!", for: .normal)
default:break
}
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
@IBAction func nextBtn(_ sender: Any) {
let userDefaults = UserDefaults.standard
userDefaults.set(true, forKey: "onOK")
userDefaults.synchronize()
}
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
//}
|
[
-1
] |
5f8e2f4211e08e4ff8813589b406541cf5cd9f14
|
84f9c9502c8298c7ef22c446020adcbd2e8a53ee
|
/cryptocurrencyIOS/Controllers/Other/PortifolioController.swift
|
51756cfe6ad0bf123fbbf38503d5e01e645eeb23
|
[] |
no_license
|
AlanSoaresDeOliveira/crypto-currency-ios-app
|
3c781a24e044bcde2580b532153035fa41572a72
|
bfedcc197d1a97c96f3718d8e1d30a563b93c35f
|
refs/heads/main
| 2023-03-08T14:44:38.757372 | 2021-02-26T20:05:32 | 2021-02-26T20:05:32 | 340,995,298 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 5,967 |
swift
|
//
// PortifolioController.swift
// cryptocurrencyIOS
//
// Created by Alan Soares de Oliveira on 21/02/21.
//
import UIKit
import Charts
private let reuseIdentifier = "ChartCell"
class PortifolioController: UIViewController {
// MARK: - Lifecycle
let pages = [1, 2 ,3]
private lazy var chartCollection: UICollectionView = {
let layout = UICollectionViewFlowLayout()
layout.scrollDirection = .horizontal
let cv = UICollectionView(frame: .zero, collectionViewLayout: layout)
cv.translatesAutoresizingMaskIntoConstraints = false
cv.register(ChartViewCell.self, forCellWithReuseIdentifier: reuseIdentifier)
cv.isPagingEnabled = true
return cv
}()
private lazy var previusButton: UIButton = {
let button = UIButton(type: .system)
button.setTitle("PREV", for: .normal)
// button.translatesAutoresizingMaskIntoConstraints = false
button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 14)
button.setTitleColor(.systemPink, for: .normal)
button.addTarget(self, action: #selector(hadlePrev), for: .touchUpInside)
return button
}()
private lazy var pageControl: UIPageControl = {
let pc = UIPageControl()
pc.currentPage = 0
pc.numberOfPages = pages.count
pc.currentPageIndicatorTintColor = .systemPink
pc.pageIndicatorTintColor = UIColor(red: 249/255, green: 207/255, blue: 224/255, alpha: 1)
return pc
}()
private lazy var nextButton: UIButton = {
let button = UIButton(type: .system)
button.setTitle("NEXT", for: .normal)
// button.translatesAutoresizingMaskIntoConstraints = false
button.titleLabel?.font = UIFont.boldSystemFont(ofSize: 14)
button.setTitleColor(.systemPink, for: .normal)
button.addTarget(self, action: #selector(hadleNext), for: .touchUpInside)
return button
}()
// MARK: - Lifecycle
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .systemGray6
let bottomControlsStackView = UIStackView(arrangedSubviews: [previusButton, pageControl, nextButton])
bottomControlsStackView.distribution = .fillEqually
view.addSubview(bottomControlsStackView)
view.addSubview(chartCollection)
chartCollection.backgroundColor = UIColor.clear
chartCollection.delegate = self
chartCollection.dataSource = self
chartCollection.showsHorizontalScrollIndicator = false
chartCollection.anchor(top: view.topAnchor, left: view.leftAnchor, right: view.rightAnchor,
paddingTop: 100, paddingLeft: 12, paddingRight: 12, height: 350)
bottomControlsStackView.anchor( top: chartCollection.bottomAnchor, left: view.leftAnchor, right: view.rightAnchor,
paddingTop: 20, height: 50)
}
func scrollViewWillEndDragging(_ scrollView: UIScrollView, withVelocity velocity: CGPoint, targetContentOffset: UnsafeMutablePointer<CGPoint>) {
let x = targetContentOffset.pointee.x
pageControl.currentPage = Int((x / view.frame.width).rounded())
}
// MARK: - Helpers
fileprivate func setupBottomControlls() {
let bottomControlsStackView = UIStackView(arrangedSubviews: [previusButton, pageControl, nextButton])
bottomControlsStackView.translatesAutoresizingMaskIntoConstraints = false
bottomControlsStackView.distribution = .fillEqually
view.addSubview(bottomControlsStackView)
NSLayoutConstraint.activate([
bottomControlsStackView.bottomAnchor.constraint(equalTo: view.safeAreaLayoutGuide.bottomAnchor),
bottomControlsStackView.leadingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.leadingAnchor),
bottomControlsStackView.trailingAnchor.constraint(equalTo: view.safeAreaLayoutGuide.trailingAnchor),
bottomControlsStackView.heightAnchor.constraint(equalToConstant: 50)
])
}
// MARK: - Actions
@objc func hadleNext() {
print("Trying to the next page")
let nextIndex = min(pageControl.currentPage + 1, pages.count - 1)
let indexPath = IndexPath(item: nextIndex, section: 0)
pageControl.currentPage = nextIndex
chartCollection.scrollToItem(at: indexPath, at: .centeredHorizontally, animated: true)
}
@objc func hadlePrev() {
print("Trying to the next page")
let nextIndex = max(pageControl.currentPage - 1, 0)
let indexPath = IndexPath(item: nextIndex, section: 0)
pageControl.currentPage = nextIndex
chartCollection.scrollToItem(at: indexPath, at: .centeredHorizontally, animated: true)
}
}
// MARK: - UICollectionViewDataSourcefecycle
extension PortifolioController: UICollectionViewDataSource {
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
return pages.count
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionView.dequeueReusableCell(withReuseIdentifier: reuseIdentifier, for: indexPath) as! ChartViewCell
return cell
}
}
// MARK: - UICollectionViewDelegateFlowLayout
extension PortifolioController: UICollectionViewDelegateFlowLayout {
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize {
return CGSize(width: view.frame.width - 24, height: 300)
}
func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, minimumLineSpacingForSectionAt section: Int) -> CGFloat {
return 0
}
}
|
[
-1
] |
027703b890f13d097d9177455fe77b0bfb9f1790
|
e962328db479b549daad7e30b43bc9444a5c8d63
|
/Project/custom TableView Cells/SixthCustom.swift
|
16c98138cd638177c16b3721944351b3ad7ec35a
|
[] |
no_license
|
darshitha15/Student-Planner-Application
|
a33b66a52294d785579407b657c6646ec52d0696
|
76131fd7e0e5eca5f7cec0eac51e3492b2146472
|
refs/heads/master
| 2022-11-28T06:54:49.198798 | 2020-07-30T21:17:14 | 2020-07-30T21:17:14 | 283,878,544 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 3,005 |
swift
|
//
// SixthCustom.swift
// Project
//
// Created by Peethambaram, Lavanya on 10/29/19.
// Copyright © 2019 Peethambaram, Lavanya. All rights reserved.
//
import UIKit
class sixthCustom : UITableViewCell {
}
class SixthCustom: UITableViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Uncomment the following line to preserve selection between presentations
// self.clearsSelectionOnViewWillAppear = false
// Uncomment the following line to display an Edit button in the navigation bar for this view controller.
// self.navigationItem.rightBarButtonItem = self.editButtonItem
}
// MARK: - Table view data source
override func numberOfSections(in tableView: UITableView) -> Int {
// #warning Incomplete implementation, return the number of sections
return 0
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
// #warning Incomplete implementation, return the number of rows
return 0
}
/*
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "reuseIdentifier", for: indexPath)
// Configure the cell...
return cell
}
*/
/*
// Override to support conditional editing of the table view.
override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
// Return false if you do not want the specified item to be editable.
return true
}
*/
/*
// Override to support editing the table view.
override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) {
if editingStyle == .delete {
// Delete the row from the data source
tableView.deleteRows(at: [indexPath], with: .fade)
} else if editingStyle == .insert {
// Create a new instance of the appropriate class, insert it into the array, and add a new row to the table view
}
}
*/
/*
// Override to support rearranging the table view.
override func tableView(_ tableView: UITableView, moveRowAt fromIndexPath: IndexPath, to: IndexPath) {
}
*/
/*
// Override to support conditional rearranging of the table view.
override func tableView(_ tableView: UITableView, canMoveRowAt indexPath: IndexPath) -> Bool {
// Return false if you do not want the item to be re-orderable.
return true
}
*/
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destination.
// Pass the selected object to the new view controller.
}
*/
}
|
[
124670,
336148,
303542
] |
cde4809f1ed41284c3b2c500791e1793e95af391
|
030a063c936347657c0dc43e69f35ed5767a0430
|
/Saferoute/ViewController.swift
|
6613863e3a5d93c1e444065731e86148f0433669
|
[] |
no_license
|
liqixian19970305/AngelhackIOS
|
0679959fa85869a1eb359ad072992a69f387edac
|
35ff5b7a3e27d2628772bf29ef65386488027f13
|
refs/heads/master
| 2021-01-09T20:14:21.147447 | 2016-08-11T04:40:57 | 2016-08-11T04:40:57 | 62,462,939 | 1 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 8,923 |
swift
|
//
// ViewController.swift
// Saferoute
//
// Created by Tony Li on 6/21/16.
// Copyright © 2016 Tony Li. All rights reserved.
//
import UIKit
import ArcGIS
let kBasemapLayerName = "Basemap Tiled Layer"
let kRouteTaskUrl = "http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Network/USA/NAServer/Route"
class ViewController: UIViewController, AGSMapViewLayerDelegate, AGSRouteTaskDelegate,AGSLayerCalloutDelegate, UIAlertViewDelegate, UISearchBarDelegate, AGSLocatorDelegate, AGSFeatureLayerQueryDelegate {
@IBOutlet weak var sketchModeSegCtrl: UISegmentedControl!
@IBOutlet weak var addBtn: UIBarButtonItem!
@IBOutlet weak var mapView: AGSMapView!
var graphicLayer:AGSGraphicsLayer!
var locator:AGSLocator!
var calloutTemplate:AGSCalloutTemplate!
var sketchLayer:AGSSketchGraphicsLayer!
var routeTask:AGSRouteTask!
var routeTaskParams:AGSRouteTaskParameters!
var currentStopGraphic:AGSStopGraphic!
var selectedGraphic:AGSGraphic!
var currentDirectionGraphic:AGSDirectionGraphic!
var stopCalloutView:UIView!
var routeResult:AGSRouteResult!
var numStops:Int = 0
var numBarriers:Int = 0
var directionIndex:Int = 0
override func prefersStatusBarHidden() -> Bool {
return true
}
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
//Add a basemap tiled layer
let url = NSURL(string: "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer")
let tiledLayer = AGSTiledMapServiceLayer(URL: url)
self.mapView.addMapLayer(tiledLayer, withName: "Basemap Tiled Layer")
//Set the map view's layer delegate
self.mapView.layerDelegate = self
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
//MARK: map view layer delegate methods
func mapViewDidLoad(mapView: AGSMapView!) {
//do something now that the map is loaded
//for example, show the current location on the map
mapView.locationDisplay.startDataSource()
}
@IBAction func basemapChanged(sender: UISegmentedControl) {
var basemapURL:NSURL!
switch sender.selectedSegmentIndex {
case 0: //gray
basemapURL = NSURL(string: "http://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Light_Gray_Base/MapServer")
/*basemapURL=NSURL(string: "http://services1.arcgis.com/p84PN4WZvOWzi2j2/arcgis/rest/services/StreetLights/FeatureServer/0")*/
case 1: //oceans
basemapURL = NSURL(string: "http://services.arcgisonline.com/ArcGIS/rest/services/Ocean_Basemap/MapServer")
case 2: //nat geo
basemapURL = NSURL(string: "http://services.arcgisonline.com/ArcGIS/rest/services/NatGeo_World_Map/MapServer")
case 3: //topo
basemapURL = NSURL(string: "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer")
default: //sat
basemapURL = NSURL(string: "http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer")
}
self.mapView.removeMapLayerWithName(kBasemapLayerName)
//add new Layer
let newBasemapLayer = AGSTiledMapServiceLayer(URL: basemapURL)
self.mapView.insertMapLayer(newBasemapLayer, withName: kBasemapLayerName, atIndex: 0);
}
@IBAction func showStreetLights(sender: AnyObject) {
//CLOUD DATA
let testPoint=AGSPoint(fromDecimalDegreesString: "34.0522 N, 118.2437 W", withSpatialReference: mapView.spatialReference)
mapView.zoomToScale(10000, withCenterPoint: testPoint, animated: true)
let featureLayerURL = NSURL(string: "http://services1.arcgis.com/p84PN4WZvOWzi2j2/arcgis/rest/services/StreetLights/FeatureServer/0")
//let featureLayerURL = NSURL(string: "http://services.arcgis.com/oKgs2tbjK6zwTdvi/arcgis/rest/services/Major_World_Cities/FeatureServer/0")
let featureLayer = AGSFeatureLayer(URL: featureLayerURL, mode: .OnDemand)
self.mapView.addMapLayer(featureLayer, withName: "Street Lights")
//SYMBOLOGY
/*let featureSymbol = AGSSimpleMarkerSymbol(color:UIColor(red: 0, green: 0.46, blue: 0.68, alpha: 1))
featureSymbol.size = CGSizeMake(7, 7)
featureSymbol.style = .Circle
featureSymbol.outline = nil
featureLayer.renderer = AGSSimpleRenderer(symbol: featureSymbol)*/
}
func searchBarSearchButtonClicked(searchBar: UISearchBar) {
//Hide the keyboard
searchBar.resignFirstResponder()
if self.graphicLayer == nil {
//Add a graphics layer to the map. This layer will hold geocoding results
self.graphicLayer = AGSGraphicsLayer()
self.mapView.addMapLayer(self.graphicLayer, withName:"Results")
//Assign a simple renderer to the layer to display results as pushpins
let pushpin = AGSPictureMarkerSymbol(imageNamed: "BluePushpin.png")
pushpin.offset = CGPointMake(9, 16)
pushpin.leaderPoint = CGPointMake(-9, 11)
let renderer = AGSSimpleRenderer(symbol: pushpin)
self.graphicLayer.renderer = renderer
}
else {
//Clear out previous results if we already have a graphics layer
self.graphicLayer.removeAllGraphics()
}
if self.locator == nil {
//Create the AGSLocator pointing to the geocode service on ArcGIS Online
//Set the delegate so that we are informed through AGSLocatorDelegate methods
let url = NSURL(string: "http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer")
self.locator = AGSLocator(URL: url)
self.locator.delegate = self
}
//Set the parameters
let params = AGSLocatorFindParameters()
params.text = searchBar.text
params.outFields = ["*"]
params.outSpatialReference = self.mapView.spatialReference
params.location = AGSPoint(x: 0, y: 0, spatialReference: nil)
//Kick off the geocoding operation
//This will invoke the geocode service on a background thread
self.locator.findWithParameters(params)
}
//MARK: AGSLocator delegate methods
func locator(locator: AGSLocator!, operation op: NSOperation!, didFind results: [AnyObject]!) {
if results == nil || results.count == 0 {
//show alert if we didn't get results
UIAlertView(title: "No Results", message: "No Results Found", delegate: nil, cancelButtonTitle: "OK").show()
}
else {
//Create a callout template if we haven't done so already
if self.calloutTemplate == nil {
self.calloutTemplate = AGSCalloutTemplate()
self.calloutTemplate.titleTemplate = "${Match_addr}"
self.calloutTemplate.detailTemplate = "${DisplayY}\u{00b0} ${DisplayX}\u{00b0}"
//Assign the callout template to the layer so that all graphics within this layer
//display their information in the callout in the same manner
self.graphicLayer.calloutDelegate = self.calloutTemplate
}
//Add a graphic for each result
for result in results as! [AGSLocatorFindResult] {
self.graphicLayer.addGraphic(result.graphic)
}
//Zoom in to the results
let extent = self.graphicLayer.fullEnvelope.mutableCopy() as! AGSMutableEnvelope
extent.expandByFactor(1.5)
self.mapView.zoomToEnvelope(extent, animated: true)
}
}
func locator(locator: AGSLocator!, operation op: NSOperation!, didFailLocationsForAddress error: NSError!) {
UIAlertView(title: "Locator Failed", message: error.localizedDescription, delegate: nil, cancelButtonTitle: "OK").show()
}
func featureLayer(featureLayer: AGSFeatureLayer!, operation op: NSOperation!, didSelectFeaturesWithFeatureSet featureSet: AGSFeatureSet!) {
//ZOOM TO SELECTED DATA
var env:AGSMutableEnvelope!
for selectedFeature in featureSet.features as! [AGSGraphic]{
if env != nil {
env.unionWithEnvelope(selectedFeature.geometry.envelope)
}
else {
env = selectedFeature.geometry.envelope.mutableCopy() as! AGSMutableEnvelope
}
}
self.mapView.zoomToGeometry(env, withPadding: 20, animated: true)
}
}
|
[
-1
] |
091ceec5931deefe157fbc8f287475fcc247fc00
|
f75f7f308f7eb166415feaaab58bf832462b5180
|
/PracticeFeedTests/Feed API/URLSesssionHTTPClientTests.swift
|
e15519e08d394d8b14b3e3fb0c29fe6f7e7bf7c6
|
[] |
no_license
|
manivelnagarajan/practice_feed
|
65477ecd3a6680464fcfa406e6ce3458a6bea267
|
cb065eeec9870d7fbed43f46e44670cb3187b226
|
refs/heads/main
| 2023-06-22T03:46:37.109765 | 2021-07-24T18:56:03 | 2021-07-24T18:56:03 | 336,581,218 | 1 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 7,138 |
swift
|
//
// URLSesssionHTTPClientTests.swift
// PracticeFeedTests
//
// Created by Manivel Nagarajan on 13/02/21.
//
import Foundation
import PracticeFeed
import XCTest
class URLSesssionHTTPClientTests: XCTestCase {
override func setUp() {
super.setUp()
URLProtocolStub.startInterceptingRequests()
}
override func tearDown() {
super.tearDown()
URLProtocolStub.stopInterceptingRequests()
}
func test_getFromURL_performGetRequestWithURL() {
let url = anyURL()
let exp = expectation(description: "waiting for the request load")
URLProtocolStub.observeRequests { request in
XCTAssertEqual(request.url, url)
XCTAssertEqual(request.httpMethod, "GET")
exp.fulfill()
}
makeSUT().get(from: url) { _ in }
wait(for: [exp], timeout: 1)
}
func test_getFromURL_dataTaskWithURL_Failure() {
let error = anyNSError()
let receivedError = resultErrorFor(data: nil, response: nil, error: error)
XCTAssertEqual((receivedError as NSError?)?.code, error.code)
XCTAssertEqual((receivedError as NSError?)?.domain, error.domain)
}
func test_getFromURL_failsOnUnrepresentedStateErrors() {
XCTAssertNotNil(resultErrorFor(data: nil, response: nil, error: nil))
XCTAssertNotNil(resultErrorFor(data: nil, response: nonHTTPURLResponse(), error: nil))
XCTAssertNotNil(resultErrorFor(data: anyData(), response: nil, error: nil))
XCTAssertNotNil(resultErrorFor(data: anyData(), response: nil, error: anyNSError()))
XCTAssertNotNil(resultErrorFor(data: nil, response: nonHTTPURLResponse(), error: anyNSError()))
XCTAssertNotNil(resultErrorFor(data: nil, response: anyHTTPURLResponse(), error: anyNSError()))
XCTAssertNotNil(resultErrorFor(data: anyData(), response: nonHTTPURLResponse(), error: anyNSError()))
XCTAssertNotNil(resultErrorFor(data: anyData(), response: anyHTTPURLResponse(), error: anyNSError()))
XCTAssertNotNil(resultErrorFor(data: anyData(), response: nonHTTPURLResponse(), error: nil))
}
func test_getFromURL_succeedsWithEmptyDataOnHTTPURLResponseWithNilData() {
let httpURLResponse = anyHTTPURLResponse()
let receivedResult = resultValueFor(data: nil, response: httpURLResponse)
let emptyData = Data()
XCTAssertEqual(receivedResult?.data, emptyData)
XCTAssertEqual(receivedResult?.response.url, httpURLResponse.url)
XCTAssertEqual(receivedResult?.response.statusCode, httpURLResponse.statusCode)
}
func test_getFromURL_succeedsWithHTTPURLResponseAndData() {
let data = anyData()
let httpURLResponse = anyHTTPURLResponse()
let receivedResult = resultValueFor(data: data, response: httpURLResponse)
XCTAssertEqual(receivedResult?.response.url, httpURLResponse.url)
XCTAssertEqual(receivedResult?.response.statusCode, httpURLResponse.statusCode)
XCTAssertEqual(receivedResult?.data, data)
}
//MARK: Helpers
func resultValueFor(data: Data?, response: URLResponse?) -> (data: Data, response: HTTPURLResponse)? {
let result = resultFor(data: data, response: response, error: nil)
switch result {
case let .success(response, data):
return (data, response)
default:
XCTFail("Expected success, but got \(String(describing: result)) instead")
}
return nil
}
func resultErrorFor(data: Data?, response: URLResponse?, error: Error?) -> Error? {
let result = resultFor(data: data, response: response, error: error)
switch result {
case let .failure(error):
return error
default:
XCTFail("Expected failure, but got \(String(describing: result)) instead")
}
return nil
}
func resultFor(data: Data?, response: URLResponse?, error: Error?) -> HTTPClientResult? {
URLProtocolStub.stub(data: data, response: response, error: error)
let exp = expectation(description: "wait to get value")
var receivedResult: HTTPClientResult?
makeSUT().get(from: anyURL()) { result in
receivedResult = result
exp.fulfill()
}
wait(for: [exp], timeout: 1.0)
return receivedResult
}
private func makeSUT() -> HTTPClient {
let sut = URLSessionHTTPClient()
trackForMemoryLeak(sut)
return sut
}
private func anyData() -> Data {
"any data".data(using: .utf8)!
}
private func anyURL() -> URL {
URL(string: "https://any-url.com/")!
}
private func anyNSError() -> NSError {
NSError(domain: "Test", code: 1, userInfo: nil)
}
private func anyHTTPURLResponse() -> HTTPURLResponse {
HTTPURLResponse(url: anyURL(), statusCode: 403, httpVersion: nil, headerFields: nil)!
}
private func nonHTTPURLResponse() -> URLResponse {
URLResponse(url: anyURL(), mimeType: nil, expectedContentLength: 0, textEncodingName: nil)
}
private class URLProtocolStub: URLProtocol {
private static var stub: Stub?
private static var requestObserver: ((URLRequest) -> ())?
private struct Stub {
var data: Data?
var response: URLResponse?
var error: Error?
}
static func stub(data: Data? = nil, response: URLResponse? = nil, error: Error? = nil) {
stub = Stub(data: data, response: response, error: error)
}
static func observeRequests(observer: @escaping (URLRequest) -> ()) {
requestObserver = observer
}
static func startInterceptingRequests() {
URLProtocol.registerClass(URLProtocolStub.self)
}
static func stopInterceptingRequests() {
URLProtocol.unregisterClass(URLProtocolStub.self)
stub = nil
requestObserver = nil
}
override class func canInit(with request: URLRequest) -> Bool {
return true
}
override class func canonicalRequest(for request: URLRequest) -> URLRequest {
return request
}
override func startLoading() {
if let requestObserver = URLProtocolStub.requestObserver {
client?.urlProtocolDidFinishLoading(self)
return requestObserver(request)
}
if let data = URLProtocolStub.stub?.data {
client?.urlProtocol(self, didLoad: data)
}
if let response = URLProtocolStub.stub?.response {
client?.urlProtocol(self, didReceive: response, cacheStoragePolicy: .notAllowed)
}
if let error = URLProtocolStub.stub?.error {
client?.urlProtocol(self, didFailWithError: error)
}
client?.urlProtocolDidFinishLoading(self)
}
override func stopLoading() {
}
}
}
|
[
-1
] |
c5fdef091321bb61ae33055b16855f9b155a728b
|
cf2484f891e83917fbef27b4c94e015b5191e6c2
|
/Tests/LicensePlistTests/Entity/SwiftPackageManagerTests.swift
|
6d8c3b6aba1ec4fb5fc214651787562cd1075845
|
[
"MIT"
] |
permissive
|
wrutkowski/LicensePlist
|
a65c2b70be2674049e203c4c0d9a96c37b8c6dcb
|
53dba18472396a2f082e958a64f3895ac9d2a307
|
refs/heads/master
| 2020-12-27T23:53:51.523988 | 2020-01-21T02:14:06 | 2020-01-21T02:14:06 | 238,111,736 | 0 | 0 |
MIT
| 2020-02-04T03:06:13 | 2020-02-04T03:06:12 | null |
UTF-8
|
Swift
| false | false | 6,277 |
swift
|
//
// SwiftPackageManagerTests.swift
// APIKit
//
// Created by Matthias Buchetics on 20.09.19.
//
import Foundation
import XCTest
@testable import LicensePlistCore
class SwiftPackageManagerTests: XCTestCase {
func testDecoding() {
let jsonString = """
{
"package": "APIKit",
"repositoryURL": "https://github.com/ishkawa/APIKit.git",
"state": {
"branch": null,
"revision": "86d51ecee0bc0ebdb53fb69b11a24169a69097ba",
"version": "4.1.0"
}
}
"""
let data = jsonString.data(using: .utf8)!
let package = try! JSONDecoder().decode(SwiftPackage.self, from: data)
XCTAssertEqual(package.package, "APIKit")
XCTAssertEqual(package.repositoryURL, "https://github.com/ishkawa/APIKit.git")
XCTAssertEqual(package.state.revision, "86d51ecee0bc0ebdb53fb69b11a24169a69097ba")
XCTAssertEqual(package.state.version, "4.1.0")
}
func testDecodingOfURLWithDots() {
let jsonString = """
{
"package": "R.swift.Library",
"repositoryURL": "https://github.com/mac-cain13/R.swift.Library",
"state": {
"branch": "master",
"revision": "3365947d725398694d6ed49f2e6622f05ca3fc0f",
"version": null
}
}
"""
let data = jsonString.data(using: .utf8)!
let package = try! JSONDecoder().decode(SwiftPackage.self, from: data)
XCTAssertEqual(package.package, "R.swift.Library")
XCTAssertEqual(package.repositoryURL, "https://github.com/mac-cain13/R.swift.Library")
XCTAssertEqual(package.state.revision, "3365947d725398694d6ed49f2e6622f05ca3fc0f")
XCTAssertEqual(package.state.version, nil)
}
func testDecodingOptionalVersion() {
let jsonString = """
{
"package": "APIKit",
"repositoryURL": "https://github.com/ishkawa/APIKit.git",
"state": {
"branch": "master",
"revision": "86d51ecee0bc0ebdb53fb69b11a24169a69097ba",
"version": null
}
}
"""
let data = jsonString.data(using: .utf8)!
let package = try! JSONDecoder().decode(SwiftPackage.self, from: data)
XCTAssertEqual(package.package, "APIKit")
XCTAssertEqual(package.repositoryURL, "https://github.com/ishkawa/APIKit.git")
XCTAssertEqual(package.state.revision, "86d51ecee0bc0ebdb53fb69b11a24169a69097ba")
XCTAssertEqual(package.state.branch, "master")
XCTAssertEqual(package.state.version, nil)
}
func testConvertToGithub() {
let package = SwiftPackage(package: "Commander",
repositoryURL: "https://github.com/kylef/Commander.git",
state: SwiftPackage.State(branch: nil, revision: "e5b50ad7b2e91eeb828393e89b03577b16be7db9", version: "0.8.0"))
let result = package.toGitHub(renames: [:])
XCTAssertEqual(result, GitHub(name: "Commander", nameSpecified: nil, owner: "kylef", version: "0.8.0"))
}
func testConvertToGithubNameWithDots() {
let package = SwiftPackage(package: "R.swift.Library",
repositoryURL: "https://github.com/mac-cain13/R.swift.Library",
state: SwiftPackage.State(branch: nil, revision: "3365947d725398694d6ed49f2e6622f05ca3fc0f", version: nil))
let result = package.toGitHub(renames: [:])
XCTAssertEqual(result, GitHub(name: "R.swift.Library", nameSpecified: nil, owner: "mac-cain13", version: nil))
}
func testRename() {
let package = SwiftPackage(package: "Commander",
repositoryURL: "https://github.com/kylef/Commander.git",
state: SwiftPackage.State(branch: nil,
revision: "e5b50ad7b2e91eeb828393e89b03577b16be7db9", version: "0.8.0"))
let result = package.toGitHub(renames: ["Commander": "RenamedCommander"])
XCTAssertEqual(result, GitHub(name: "Commander", nameSpecified: "RenamedCommander", owner: "kylef", version: "0.8.0"))
}
func testInvalidURL() {
let package = SwiftPackage(package: "Google", repositoryURL: "http://www.google.com", state: SwiftPackage.State(branch: nil, revision: "", version: "0.0.0"))
let result = package.toGitHub(renames: [:])
XCTAssertNil(result)
}
func testNonGithub() {
let package = SwiftPackage(package: "Bitbucket",
repositoryURL: "https://[email protected]/mbuchetics/adventofcode2018.git",
state: SwiftPackage.State(branch: nil, revision: "", version: "0.0.0"))
let result = package.toGitHub(renames: [:])
XCTAssertNil(result)
}
func testParse() {
let path = "https://raw.githubusercontent.com/mono0926/LicensePlist/master/Package.resolved"
//let path = "https://raw.githubusercontent.com/mono0926/LicensePlist/master/Tests/LicensePlistTests/Resources/Package.resolved"
let content = try! String(contentsOf: URL(string: path)!)
let packages = SwiftPackage.loadPackages(content)
XCTAssertFalse(packages.isEmpty)
XCTAssertEqual(packages.count, 8)
let packageFirst = packages.first!
XCTAssertEqual(packageFirst, SwiftPackage(package: "APIKit",
repositoryURL: "https://github.com/ishkawa/APIKit.git",
state: SwiftPackage.State(branch: nil, revision: "86d51ecee0bc0ebdb53fb69b11a24169a69097ba", version: "4.1.0")))
let packageLast = packages.last!
XCTAssertEqual(packageLast, SwiftPackage(package: "Yaml",
repositoryURL: "https://github.com/behrang/YamlSwift.git",
state: SwiftPackage.State(branch: nil, revision: "287f5cab7da0d92eb947b5fd8151b203ae04a9a3", version: "3.4.4")))
}
}
|
[
-1
] |
6bb42dbc91cab0c2d369f411e812ca0593307d35
|
43130b352f548620c364f95c9c6328d46a959aa4
|
/ios/Exomind/protos/exomind/base.pb.swift
|
8324fda41cb251c643b95b031166e9a8b73247f8
|
[
"LicenseRef-scancode-warranty-disclaimer",
"Apache-2.0"
] |
permissive
|
mmimeault/exomind
|
14c419da28cd86cc38a70aceb49056f094c20277
|
7a6ffdc4c193e4b362b04aeeca61a2c90f41d365
|
refs/heads/master
| 2023-06-06T04:05:00.121513 | 2020-11-04T01:09:53 | 2020-11-04T01:09:53 | 291,321,053 | 0 | 0 |
Apache-2.0
| 2020-08-29T17:51:37 | 2020-08-29T17:51:36 | null |
UTF-8
|
Swift
| false | false | 38,625 |
swift
|
// DO NOT EDIT.
// swift-format-ignore-file
//
// Generated by the Swift generator plugin for the protocol buffer compiler.
// Source: exomind/base.proto
//
// For information on using the generated types, please see the documentation:
// https://github.com/apple/swift-protobuf/
import Foundation
import SwiftProtobuf
import Exocore
// If the compiler emits an error on this type, it is because this file
// was generated by a version of the `protoc` Swift plug-in that is
// incompatible with the version of SwiftProtobuf to which you are linking.
// Please ensure that you are building against the same version of the API
// that was used to generate this file.
fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
typealias Version = _2
}
enum Exomind_Base_AccountType: SwiftProtobuf.Enum {
typealias RawValue = Int
case invalid // = 0
case gmail // = 1
case UNRECOGNIZED(Int)
init() {
self = .invalid
}
init?(rawValue: Int) {
switch rawValue {
case 0: self = .invalid
case 1: self = .gmail
default: self = .UNRECOGNIZED(rawValue)
}
}
var rawValue: Int {
switch self {
case .invalid: return 0
case .gmail: return 1
case .UNRECOGNIZED(let i): return i
}
}
}
#if swift(>=4.2)
extension Exomind_Base_AccountType: CaseIterable {
// The compiler won't synthesize support with the UNRECOGNIZED case.
static var allCases: [Exomind_Base_AccountType] = [
.invalid,
.gmail,
]
}
#endif // swift(>=4.2)
enum Exomind_Base_AccountScope: SwiftProtobuf.Enum {
typealias RawValue = Int
case invalid // = 0
case email // = 1
case UNRECOGNIZED(Int)
init() {
self = .invalid
}
init?(rawValue: Int) {
switch rawValue {
case 0: self = .invalid
case 1: self = .email
default: self = .UNRECOGNIZED(rawValue)
}
}
var rawValue: Int {
switch self {
case .invalid: return 0
case .email: return 1
case .UNRECOGNIZED(let i): return i
}
}
}
#if swift(>=4.2)
extension Exomind_Base_AccountScope: CaseIterable {
// The compiler won't synthesize support with the UNRECOGNIZED case.
static var allCases: [Exomind_Base_AccountScope] = [
.invalid,
.email,
]
}
#endif // swift(>=4.2)
struct Exomind_Base_Collection {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var name: String = String()
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct Exomind_Base_CollectionChild {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var collection: Exocore.Exocore_Store_Reference {
get {return _collection ?? Exocore.Exocore_Store_Reference()}
set {_collection = newValue}
}
/// Returns true if `collection` has been explicitly set.
var hasCollection: Bool {return self._collection != nil}
/// Clears the value of `collection`. Subsequent reads from it will return its default value.
mutating func clearCollection() {self._collection = nil}
var weight: UInt64 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _collection: Exocore.Exocore_Store_Reference? = nil
}
struct Exomind_Base_Snoozed {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var untilDate: SwiftProtobuf.Google_Protobuf_Timestamp {
get {return _untilDate ?? SwiftProtobuf.Google_Protobuf_Timestamp()}
set {_untilDate = newValue}
}
/// Returns true if `untilDate` has been explicitly set.
var hasUntilDate: Bool {return self._untilDate != nil}
/// Clears the value of `untilDate`. Subsequent reads from it will return its default value.
mutating func clearUntilDate() {self._untilDate = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _untilDate: SwiftProtobuf.Google_Protobuf_Timestamp? = nil
}
struct Exomind_Base_Account {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var key: String = String()
var name: String = String()
var type: Exomind_Base_AccountType = .invalid
var scopes: [Exomind_Base_AccountScope] = []
var data: Dictionary<String,String> = [:]
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct Exomind_Base_EmailThread {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
/// TODO: These 2 fields should probably be into a "source" object ?
var account: Exocore.Exocore_Store_Reference {
get {return _account ?? Exocore.Exocore_Store_Reference()}
set {_account = newValue}
}
/// Returns true if `account` has been explicitly set.
var hasAccount: Bool {return self._account != nil}
/// Clears the value of `account`. Subsequent reads from it will return its default value.
mutating func clearAccount() {self._account = nil}
var sourceID: String = String()
var from: Exomind_Base_Contact {
get {return _from ?? Exomind_Base_Contact()}
set {_from = newValue}
}
/// Returns true if `from` has been explicitly set.
var hasFrom: Bool {return self._from != nil}
/// Clears the value of `from`. Subsequent reads from it will return its default value.
mutating func clearFrom() {self._from = nil}
var subject: String = String()
var snippet: String = String()
var lastEmail: Exocore.Exocore_Store_Reference {
get {return _lastEmail ?? Exocore.Exocore_Store_Reference()}
set {_lastEmail = newValue}
}
/// Returns true if `lastEmail` has been explicitly set.
var hasLastEmail: Bool {return self._lastEmail != nil}
/// Clears the value of `lastEmail`. Subsequent reads from it will return its default value.
mutating func clearLastEmail() {self._lastEmail = nil}
var read: Bool = false
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _account: Exocore.Exocore_Store_Reference? = nil
fileprivate var _from: Exomind_Base_Contact? = nil
fileprivate var _lastEmail: Exocore.Exocore_Store_Reference? = nil
}
struct Exomind_Base_Email {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var account: Exocore.Exocore_Store_Reference {
get {return _account ?? Exocore.Exocore_Store_Reference()}
set {_account = newValue}
}
/// Returns true if `account` has been explicitly set.
var hasAccount: Bool {return self._account != nil}
/// Clears the value of `account`. Subsequent reads from it will return its default value.
mutating func clearAccount() {self._account = nil}
var sourceID: String = String()
var from: Exomind_Base_Contact {
get {return _from ?? Exomind_Base_Contact()}
set {_from = newValue}
}
/// Returns true if `from` has been explicitly set.
var hasFrom: Bool {return self._from != nil}
/// Clears the value of `from`. Subsequent reads from it will return its default value.
mutating func clearFrom() {self._from = nil}
var receivedDate: SwiftProtobuf.Google_Protobuf_Timestamp {
get {return _receivedDate ?? SwiftProtobuf.Google_Protobuf_Timestamp()}
set {_receivedDate = newValue}
}
/// Returns true if `receivedDate` has been explicitly set.
var hasReceivedDate: Bool {return self._receivedDate != nil}
/// Clears the value of `receivedDate`. Subsequent reads from it will return its default value.
mutating func clearReceivedDate() {self._receivedDate = nil}
var to: [Exomind_Base_Contact] = []
var cc: [Exomind_Base_Contact] = []
var bcc: [Exomind_Base_Contact] = []
var subject: String = String()
var snippet: String = String()
var parts: [Exomind_Base_EmailPart] = []
var attachments: [Exomind_Base_EmailAttachment] = []
var read: Bool = false
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _account: Exocore.Exocore_Store_Reference? = nil
fileprivate var _from: Exomind_Base_Contact? = nil
fileprivate var _receivedDate: SwiftProtobuf.Google_Protobuf_Timestamp? = nil
}
struct Exomind_Base_DraftEmail {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var account: Exocore.Exocore_Store_Reference {
get {return _account ?? Exocore.Exocore_Store_Reference()}
set {_account = newValue}
}
/// Returns true if `account` has been explicitly set.
var hasAccount: Bool {return self._account != nil}
/// Clears the value of `account`. Subsequent reads from it will return its default value.
mutating func clearAccount() {self._account = nil}
var inReplyTo: Exocore.Exocore_Store_Reference {
get {return _inReplyTo ?? Exocore.Exocore_Store_Reference()}
set {_inReplyTo = newValue}
}
/// Returns true if `inReplyTo` has been explicitly set.
var hasInReplyTo: Bool {return self._inReplyTo != nil}
/// Clears the value of `inReplyTo`. Subsequent reads from it will return its default value.
mutating func clearInReplyTo() {self._inReplyTo = nil}
var to: [Exomind_Base_Contact] = []
var cc: [Exomind_Base_Contact] = []
var bcc: [Exomind_Base_Contact] = []
var subject: String = String()
var parts: [Exomind_Base_EmailPart] = []
var attachments: [Exomind_Base_EmailAttachment] = []
var sendingDate: SwiftProtobuf.Google_Protobuf_Timestamp {
get {return _sendingDate ?? SwiftProtobuf.Google_Protobuf_Timestamp()}
set {_sendingDate = newValue}
}
/// Returns true if `sendingDate` has been explicitly set.
var hasSendingDate: Bool {return self._sendingDate != nil}
/// Clears the value of `sendingDate`. Subsequent reads from it will return its default value.
mutating func clearSendingDate() {self._sendingDate = nil}
var sentDate: SwiftProtobuf.Google_Protobuf_Timestamp {
get {return _sentDate ?? SwiftProtobuf.Google_Protobuf_Timestamp()}
set {_sentDate = newValue}
}
/// Returns true if `sentDate` has been explicitly set.
var hasSentDate: Bool {return self._sentDate != nil}
/// Clears the value of `sentDate`. Subsequent reads from it will return its default value.
mutating func clearSentDate() {self._sentDate = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _account: Exocore.Exocore_Store_Reference? = nil
fileprivate var _inReplyTo: Exocore.Exocore_Store_Reference? = nil
fileprivate var _sendingDate: SwiftProtobuf.Google_Protobuf_Timestamp? = nil
fileprivate var _sentDate: SwiftProtobuf.Google_Protobuf_Timestamp? = nil
}
struct Exomind_Base_EmailPart {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var mimeType: String = String()
var body: String = String()
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct Exomind_Base_EmailAttachment {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var key: String = String()
var name: String = String()
var mimeType: String = String()
var size: UInt64 = 0
var inlinePlaceholder: String = String()
var data: Dictionary<String,String> = [:]
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct Exomind_Base_Note {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var title: String = String()
var body: String = String()
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct Exomind_Base_Contact {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var name: String = String()
var email: String = String()
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct Exomind_Base_Task {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var title: String = String()
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct Exomind_Base_Link {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var url: String = String()
var title: String = String()
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
// MARK: - Code below here is support for the SwiftProtobuf runtime.
fileprivate let _protobuf_package = "exomind.base"
extension Exomind_Base_AccountType: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
0: .same(proto: "ACCOUNT_TYPE_INVALID"),
1: .same(proto: "ACCOUNT_TYPE_GMAIL"),
]
}
extension Exomind_Base_AccountScope: SwiftProtobuf._ProtoNameProviding {
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
0: .same(proto: "ACCOUNT_SCOPE_INVALID"),
1: .same(proto: "ACCOUNT_SCOPE_EMAIL"),
]
}
extension Exomind_Base_Collection: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Collection"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "name"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.name)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.name.isEmpty {
try visitor.visitSingularStringField(value: self.name, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_Collection, rhs: Exomind_Base_Collection) -> Bool {
if lhs.name != rhs.name {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_CollectionChild: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".CollectionChild"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "collection"),
2: .same(proto: "weight"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &self._collection)
case 2: try decoder.decodeSingularUInt64Field(value: &self.weight)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if let v = self._collection {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if self.weight != 0 {
try visitor.visitSingularUInt64Field(value: self.weight, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_CollectionChild, rhs: Exomind_Base_CollectionChild) -> Bool {
if lhs._collection != rhs._collection {return false}
if lhs.weight != rhs.weight {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_Snoozed: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Snoozed"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2: .standard(proto: "until_date"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 2: try decoder.decodeSingularMessageField(value: &self._untilDate)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if let v = self._untilDate {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_Snoozed, rhs: Exomind_Base_Snoozed) -> Bool {
if lhs._untilDate != rhs._untilDate {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_Account: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Account"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "key"),
2: .same(proto: "name"),
3: .same(proto: "type"),
4: .same(proto: "scopes"),
5: .same(proto: "data"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.key)
case 2: try decoder.decodeSingularStringField(value: &self.name)
case 3: try decoder.decodeSingularEnumField(value: &self.type)
case 4: try decoder.decodeRepeatedEnumField(value: &self.scopes)
case 5: try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: &self.data)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.key.isEmpty {
try visitor.visitSingularStringField(value: self.key, fieldNumber: 1)
}
if !self.name.isEmpty {
try visitor.visitSingularStringField(value: self.name, fieldNumber: 2)
}
if self.type != .invalid {
try visitor.visitSingularEnumField(value: self.type, fieldNumber: 3)
}
if !self.scopes.isEmpty {
try visitor.visitPackedEnumField(value: self.scopes, fieldNumber: 4)
}
if !self.data.isEmpty {
try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: self.data, fieldNumber: 5)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_Account, rhs: Exomind_Base_Account) -> Bool {
if lhs.key != rhs.key {return false}
if lhs.name != rhs.name {return false}
if lhs.type != rhs.type {return false}
if lhs.scopes != rhs.scopes {return false}
if lhs.data != rhs.data {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_EmailThread: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".EmailThread"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "account"),
2: .standard(proto: "source_id"),
3: .same(proto: "from"),
4: .same(proto: "subject"),
5: .same(proto: "snippet"),
6: .standard(proto: "last_email"),
7: .same(proto: "read"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &self._account)
case 2: try decoder.decodeSingularStringField(value: &self.sourceID)
case 3: try decoder.decodeSingularMessageField(value: &self._from)
case 4: try decoder.decodeSingularStringField(value: &self.subject)
case 5: try decoder.decodeSingularStringField(value: &self.snippet)
case 6: try decoder.decodeSingularMessageField(value: &self._lastEmail)
case 7: try decoder.decodeSingularBoolField(value: &self.read)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if let v = self._account {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if !self.sourceID.isEmpty {
try visitor.visitSingularStringField(value: self.sourceID, fieldNumber: 2)
}
if let v = self._from {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
}
if !self.subject.isEmpty {
try visitor.visitSingularStringField(value: self.subject, fieldNumber: 4)
}
if !self.snippet.isEmpty {
try visitor.visitSingularStringField(value: self.snippet, fieldNumber: 5)
}
if let v = self._lastEmail {
try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
}
if self.read != false {
try visitor.visitSingularBoolField(value: self.read, fieldNumber: 7)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_EmailThread, rhs: Exomind_Base_EmailThread) -> Bool {
if lhs._account != rhs._account {return false}
if lhs.sourceID != rhs.sourceID {return false}
if lhs._from != rhs._from {return false}
if lhs.subject != rhs.subject {return false}
if lhs.snippet != rhs.snippet {return false}
if lhs._lastEmail != rhs._lastEmail {return false}
if lhs.read != rhs.read {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_Email: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Email"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "account"),
2: .standard(proto: "source_id"),
3: .same(proto: "from"),
4: .standard(proto: "received_date"),
5: .same(proto: "to"),
6: .same(proto: "cc"),
7: .same(proto: "bcc"),
8: .same(proto: "subject"),
9: .same(proto: "snippet"),
10: .same(proto: "parts"),
11: .same(proto: "attachments"),
14: .same(proto: "read"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &self._account)
case 2: try decoder.decodeSingularStringField(value: &self.sourceID)
case 3: try decoder.decodeSingularMessageField(value: &self._from)
case 4: try decoder.decodeSingularMessageField(value: &self._receivedDate)
case 5: try decoder.decodeRepeatedMessageField(value: &self.to)
case 6: try decoder.decodeRepeatedMessageField(value: &self.cc)
case 7: try decoder.decodeRepeatedMessageField(value: &self.bcc)
case 8: try decoder.decodeSingularStringField(value: &self.subject)
case 9: try decoder.decodeSingularStringField(value: &self.snippet)
case 10: try decoder.decodeRepeatedMessageField(value: &self.parts)
case 11: try decoder.decodeRepeatedMessageField(value: &self.attachments)
case 14: try decoder.decodeSingularBoolField(value: &self.read)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if let v = self._account {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if !self.sourceID.isEmpty {
try visitor.visitSingularStringField(value: self.sourceID, fieldNumber: 2)
}
if let v = self._from {
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
}
if let v = self._receivedDate {
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
}
if !self.to.isEmpty {
try visitor.visitRepeatedMessageField(value: self.to, fieldNumber: 5)
}
if !self.cc.isEmpty {
try visitor.visitRepeatedMessageField(value: self.cc, fieldNumber: 6)
}
if !self.bcc.isEmpty {
try visitor.visitRepeatedMessageField(value: self.bcc, fieldNumber: 7)
}
if !self.subject.isEmpty {
try visitor.visitSingularStringField(value: self.subject, fieldNumber: 8)
}
if !self.snippet.isEmpty {
try visitor.visitSingularStringField(value: self.snippet, fieldNumber: 9)
}
if !self.parts.isEmpty {
try visitor.visitRepeatedMessageField(value: self.parts, fieldNumber: 10)
}
if !self.attachments.isEmpty {
try visitor.visitRepeatedMessageField(value: self.attachments, fieldNumber: 11)
}
if self.read != false {
try visitor.visitSingularBoolField(value: self.read, fieldNumber: 14)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_Email, rhs: Exomind_Base_Email) -> Bool {
if lhs._account != rhs._account {return false}
if lhs.sourceID != rhs.sourceID {return false}
if lhs._from != rhs._from {return false}
if lhs._receivedDate != rhs._receivedDate {return false}
if lhs.to != rhs.to {return false}
if lhs.cc != rhs.cc {return false}
if lhs.bcc != rhs.bcc {return false}
if lhs.subject != rhs.subject {return false}
if lhs.snippet != rhs.snippet {return false}
if lhs.parts != rhs.parts {return false}
if lhs.attachments != rhs.attachments {return false}
if lhs.read != rhs.read {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_DraftEmail: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".DraftEmail"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "account"),
2: .standard(proto: "in_reply_to"),
3: .same(proto: "to"),
4: .same(proto: "cc"),
5: .same(proto: "bcc"),
6: .same(proto: "subject"),
7: .same(proto: "parts"),
8: .same(proto: "attachments"),
9: .standard(proto: "sending_date"),
10: .standard(proto: "sent_date"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularMessageField(value: &self._account)
case 2: try decoder.decodeSingularMessageField(value: &self._inReplyTo)
case 3: try decoder.decodeRepeatedMessageField(value: &self.to)
case 4: try decoder.decodeRepeatedMessageField(value: &self.cc)
case 5: try decoder.decodeRepeatedMessageField(value: &self.bcc)
case 6: try decoder.decodeSingularStringField(value: &self.subject)
case 7: try decoder.decodeRepeatedMessageField(value: &self.parts)
case 8: try decoder.decodeRepeatedMessageField(value: &self.attachments)
case 9: try decoder.decodeSingularMessageField(value: &self._sendingDate)
case 10: try decoder.decodeSingularMessageField(value: &self._sentDate)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if let v = self._account {
try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
}
if let v = self._inReplyTo {
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
}
if !self.to.isEmpty {
try visitor.visitRepeatedMessageField(value: self.to, fieldNumber: 3)
}
if !self.cc.isEmpty {
try visitor.visitRepeatedMessageField(value: self.cc, fieldNumber: 4)
}
if !self.bcc.isEmpty {
try visitor.visitRepeatedMessageField(value: self.bcc, fieldNumber: 5)
}
if !self.subject.isEmpty {
try visitor.visitSingularStringField(value: self.subject, fieldNumber: 6)
}
if !self.parts.isEmpty {
try visitor.visitRepeatedMessageField(value: self.parts, fieldNumber: 7)
}
if !self.attachments.isEmpty {
try visitor.visitRepeatedMessageField(value: self.attachments, fieldNumber: 8)
}
if let v = self._sendingDate {
try visitor.visitSingularMessageField(value: v, fieldNumber: 9)
}
if let v = self._sentDate {
try visitor.visitSingularMessageField(value: v, fieldNumber: 10)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_DraftEmail, rhs: Exomind_Base_DraftEmail) -> Bool {
if lhs._account != rhs._account {return false}
if lhs._inReplyTo != rhs._inReplyTo {return false}
if lhs.to != rhs.to {return false}
if lhs.cc != rhs.cc {return false}
if lhs.bcc != rhs.bcc {return false}
if lhs.subject != rhs.subject {return false}
if lhs.parts != rhs.parts {return false}
if lhs.attachments != rhs.attachments {return false}
if lhs._sendingDate != rhs._sendingDate {return false}
if lhs._sentDate != rhs._sentDate {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_EmailPart: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".EmailPart"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .standard(proto: "mime_type"),
2: .same(proto: "body"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.mimeType)
case 2: try decoder.decodeSingularStringField(value: &self.body)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.mimeType.isEmpty {
try visitor.visitSingularStringField(value: self.mimeType, fieldNumber: 1)
}
if !self.body.isEmpty {
try visitor.visitSingularStringField(value: self.body, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_EmailPart, rhs: Exomind_Base_EmailPart) -> Bool {
if lhs.mimeType != rhs.mimeType {return false}
if lhs.body != rhs.body {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_EmailAttachment: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".EmailAttachment"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "key"),
2: .same(proto: "name"),
3: .standard(proto: "mime_type"),
4: .same(proto: "size"),
5: .standard(proto: "inline_placeholder"),
6: .same(proto: "data"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.key)
case 2: try decoder.decodeSingularStringField(value: &self.name)
case 3: try decoder.decodeSingularStringField(value: &self.mimeType)
case 4: try decoder.decodeSingularUInt64Field(value: &self.size)
case 5: try decoder.decodeSingularStringField(value: &self.inlinePlaceholder)
case 6: try decoder.decodeMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: &self.data)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.key.isEmpty {
try visitor.visitSingularStringField(value: self.key, fieldNumber: 1)
}
if !self.name.isEmpty {
try visitor.visitSingularStringField(value: self.name, fieldNumber: 2)
}
if !self.mimeType.isEmpty {
try visitor.visitSingularStringField(value: self.mimeType, fieldNumber: 3)
}
if self.size != 0 {
try visitor.visitSingularUInt64Field(value: self.size, fieldNumber: 4)
}
if !self.inlinePlaceholder.isEmpty {
try visitor.visitSingularStringField(value: self.inlinePlaceholder, fieldNumber: 5)
}
if !self.data.isEmpty {
try visitor.visitMapField(fieldType: SwiftProtobuf._ProtobufMap<SwiftProtobuf.ProtobufString,SwiftProtobuf.ProtobufString>.self, value: self.data, fieldNumber: 6)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_EmailAttachment, rhs: Exomind_Base_EmailAttachment) -> Bool {
if lhs.key != rhs.key {return false}
if lhs.name != rhs.name {return false}
if lhs.mimeType != rhs.mimeType {return false}
if lhs.size != rhs.size {return false}
if lhs.inlinePlaceholder != rhs.inlinePlaceholder {return false}
if lhs.data != rhs.data {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_Note: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Note"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "title"),
2: .same(proto: "body"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.title)
case 2: try decoder.decodeSingularStringField(value: &self.body)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.title.isEmpty {
try visitor.visitSingularStringField(value: self.title, fieldNumber: 1)
}
if !self.body.isEmpty {
try visitor.visitSingularStringField(value: self.body, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_Note, rhs: Exomind_Base_Note) -> Bool {
if lhs.title != rhs.title {return false}
if lhs.body != rhs.body {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_Contact: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Contact"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "name"),
2: .same(proto: "email"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.name)
case 2: try decoder.decodeSingularStringField(value: &self.email)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.name.isEmpty {
try visitor.visitSingularStringField(value: self.name, fieldNumber: 1)
}
if !self.email.isEmpty {
try visitor.visitSingularStringField(value: self.email, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_Contact, rhs: Exomind_Base_Contact) -> Bool {
if lhs.name != rhs.name {return false}
if lhs.email != rhs.email {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_Task: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Task"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "title"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.title)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.title.isEmpty {
try visitor.visitSingularStringField(value: self.title, fieldNumber: 1)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_Task, rhs: Exomind_Base_Task) -> Bool {
if lhs.title != rhs.title {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
extension Exomind_Base_Link: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
static let protoMessageName: String = _protobuf_package + ".Link"
static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1: .same(proto: "url"),
2: .same(proto: "title"),
]
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
while let fieldNumber = try decoder.nextFieldNumber() {
switch fieldNumber {
case 1: try decoder.decodeSingularStringField(value: &self.url)
case 2: try decoder.decodeSingularStringField(value: &self.title)
default: break
}
}
}
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
if !self.url.isEmpty {
try visitor.visitSingularStringField(value: self.url, fieldNumber: 1)
}
if !self.title.isEmpty {
try visitor.visitSingularStringField(value: self.title, fieldNumber: 2)
}
try unknownFields.traverse(visitor: &visitor)
}
static func ==(lhs: Exomind_Base_Link, rhs: Exomind_Base_Link) -> Bool {
if lhs.url != rhs.url {return false}
if lhs.title != rhs.title {return false}
if lhs.unknownFields != rhs.unknownFields {return false}
return true
}
}
|
[
-1
] |
f60069a3c094e80788ff83b8bfbdd0cd24d4ca96
|
723933121dd3f41041102c7ef0b27a351ed2c9a7
|
/FlickerComponentsCoord.swift
|
f86e785587d7c1ed545fea1c6621f6c7dd924d98
|
[] |
no_license
|
basmaamahmoud/virtual-tourist
|
9806b7ae0915c21d5f1aeec250a60128a7dc6989
|
08b702fb9236c3ab573809ced00fb44c5b7a24aa
|
refs/heads/master
| 2020-03-17T12:00:27.244784 | 2018-12-05T09:07:30 | 2018-12-05T09:07:30 | 133,571,089 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 4,756 |
swift
|
//
// FlickerComponents.swift
// Virtual Tourist
//
// Created by Basma Ahmed Mohamed Mahmoud on 4/4/18.
// Copyright © 2018 Basma Ahmed Mohamed Mahmoud. All rights reserved.
//
import Foundation
class FlickerComponentsCoord{
private static let _instance = FlickerComponentsCoord()
static var Instance: FlickerComponentsCoord{
return _instance
}
func getComponentsCoordinate(latitude: Double,logitude: Double, handler:@escaping (_ error: String?) -> Void) {
var imageArray: [String] = []
let components = NSURLComponents()
components.scheme = Constants.Flickr.APIScheme
components.host = Constants.Flickr.APIHost
components.path = Constants.Flickr.APIPath
components.queryItems = [NSURLQueryItem() as URLQueryItem]
let queryitem1 = NSURLQueryItem(name: Constants.FlickrParameterKeys.Method, value: Constants.FlickrParameterValues.SearchMethod)
let queryitem2 = NSURLQueryItem(name: Constants.FlickrParameterKeys.APIKey, value: Constants.FlickrParameterValues.APIKey)
let queryitem3 = NSURLQueryItem(name: Constants.FlickrParameterKeys.BoundingBox, value: bboxString(latitude: latitude,longitude: logitude))
let queryitem4 = NSURLQueryItem(name: Constants.FlickrParameterKeys.SafeSearch, value: Constants.FlickrParameterValues.UseSafeSearch)
let queryitem5 = NSURLQueryItem(name: Constants.FlickrParameterKeys.Extras, value: Constants.FlickrParameterValues.MediumURL)
let queryitem6 = NSURLQueryItem(name: Constants.FlickrParameterKeys.Format, value: Constants.FlickrParameterValues.ResponseFormat)
let queryitem7 = NSURLQueryItem(name: Constants.FlickrParameterKeys.NoJSONCallback, value: Constants.FlickrParameterValues.DisableJSONCallback)
let queryItemArray = [queryitem1, queryitem2,queryitem3, queryitem4, queryitem5, queryitem6, queryitem7]
queryItemArray.map { components.queryItems?.append($0 as URLQueryItem) }
let url = components.url!
let request = URLRequest(url: url)
let task = URLSession.shared.dataTask(with: request) { (data, response, error) in
if error != nil{
handler("Connection Error")
}
if let data = data {
let parsedResult: [String:AnyObject]!
do {
parsedResult = try JSONSerialization.jsonObject(with: data, options: .allowFragments) as! [String:AnyObject]
} catch {
handler("Cant download Pictures")
return
}
guard let photosDictionary = parsedResult[Constants.FlickrResponseKeys.Photos] as? [String:AnyObject], let photoArray = photosDictionary[Constants.FlickrResponseKeys.Photo] as? [[String:AnyObject]] else{
return
}
if photoArray.count == 0 {
handler("There is no Pictures")
return
}else if photoArray.count < 30{
photoArray.map { imageArray.append(($0[Constants.FlickrResponseKeys.MediumURL] as? String)!) }
Pin.shared.albumPicturesURL = imageArray
handler(nil)
}else{
let pickImages = photoArray[randomPick: 10]
pickImages.map { imageArray.append(($0[Constants.FlickrResponseKeys.MediumURL] as? String)!) }
Pin.shared.albumPicturesURL = imageArray
handler(nil)
}
}
}
task.resume()
}
}
extension Array {
/// Picks `n` random elements (partial Fisher-Yates shuffle approach)
subscript (randomPick n: Int) -> [Element] {
var copy = self
for i in stride(from: count - 1, to: count - n - 1, by: -1) {
copy.swapAt(i, Int(arc4random_uniform(UInt32(i + 1))))
}
return Array(copy.suffix(n))
}
}
extension FlickerComponentsCoord {
func bboxString(latitude: Double, longitude: Double) -> String {
// ensure bbox is bounded by minimum and maximums
let minimumLon = max(longitude - Constants.Flickr.SearchBBoxHalfWidth, Constants.Flickr.SearchLonRange.0)
let minimumLat = max(latitude - Constants.Flickr.SearchBBoxHalfHeight, Constants.Flickr.SearchLatRange.0)
let maximumLon = min(longitude + Constants.Flickr.SearchBBoxHalfWidth, Constants.Flickr.SearchLonRange.1)
let maximumLat = min(latitude + Constants.Flickr.SearchBBoxHalfHeight, Constants.Flickr.SearchLatRange.1)
return "\(minimumLon),\(minimumLat),\(maximumLon),\(maximumLat)"
}
}
|
[
-1
] |
3e05bb5875ad6901faf1b873f8a8672bedea8a03
|
aa3cf37469489bdc1846b732aea91dd1688c2c38
|
/Reciplease/Controller/ViewController.swift
|
76dba94342ef07232c45992522aef8389b457f7c
|
[] |
no_license
|
sharingan23/Reciplease
|
ebb29f2894f0d726893886a55352859d89f2111c
|
e5211752791a6fefbf14eb55e029393ed92e04fb
|
refs/heads/master
| 2020-06-03T04:52:51.656534 | 2020-02-12T21:12:40 | 2020-02-12T21:12:40 | 191,446,350 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 320 |
swift
|
//
// ViewController.swift
// Reciplease
//
// Created by Vigneswaranathan Sugeethkumar on 05/06/2019.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
}
|
[
-1
] |
0b5687ba76e0cae74f9db99ae7789bc8ff8622bb
|
8c7356f1ae9ba71ddddc464b878e20562a7c31ae
|
/Set/Supporting Files/AppDelegate.swift
|
d6eb4cff842805f4855b4f685f31641bfae669f5
|
[] |
no_license
|
Ziangirov/CS193P.Assignment4.Set.Animated
|
429d7ecb287cd2a84d7da574c8ed209c418f9761
|
81b7f4ed766d330eb4de017b1c54babf3d2d8848
|
refs/heads/master
| 2020-03-22T22:15:19.577072 | 2018-07-13T06:33:22 | 2018-07-13T06:33:22 | 140,738,359 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,183 |
swift
|
//
// AppDelegate.swift
// Set
//
// Created by Evgeniy Ziangirov on 14/06/2018.
// Copyright © 2018 Evgeniy Ziangirov. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
|
[
229380,
229383,
229385,
278539,
229388,
294924,
278542,
229391,
327695,
229394,
278548,
229397,
229399,
229402,
352284,
229405,
278556,
278559,
229408,
278564,
294950,
229415,
229417,
327722,
237613,
229422,
360496,
229426,
237618,
229428,
311349,
286774,
286776,
319544,
204856,
229432,
286778,
352318,
286791,
237640,
278605,
286797,
311375,
163920,
237646,
196692,
319573,
311383,
278623,
278626,
319590,
311400,
278635,
303212,
278639,
131192,
278648,
237693,
303230,
327814,
131209,
303241,
417930,
303244,
311436,
319633,
286873,
286876,
311460,
311469,
32944,
327862,
286906,
327866,
180413,
286910,
131264,
286916,
286922,
286924,
286926,
319694,
286928,
131281,
278743,
278747,
295133,
155872,
319716,
237807,
303345,
286962,
303347,
131314,
229622,
327930,
278781,
278783,
278785,
237826,
319751,
278792,
286987,
319757,
311569,
286999,
319770,
287003,
287006,
287009,
287012,
287014,
287016,
287019,
311598,
287023,
262448,
311601,
295220,
287032,
155966,
319809,
319810,
278849,
319814,
311623,
319818,
311628,
229709,
319822,
287054,
278865,
229717,
196963,
196969,
139638,
213367,
106872,
319872,
311683,
319879,
311693,
65943,
319898,
311719,
278952,
139689,
278957,
311728,
278967,
180668,
311741,
278975,
319938,
278980,
98756,
278983,
319945,
278986,
319947,
278990,
278994,
311767,
279003,
279006,
188895,
172512,
287202,
279010,
279015,
172520,
319978,
279020,
172526,
311791,
279023,
172529,
279027,
319989,
180727,
164343,
279035,
311804,
287230,
279040,
303617,
287234,
279045,
172550,
303623,
320007,
287238,
172552,
279051,
172558,
279055,
303632,
279058,
303637,
279063,
279067,
172572,
279072,
172577,
295459,
172581,
295461,
279082,
311850,
279084,
172591,
172598,
279095,
172607,
172609,
172612,
377413,
172614,
213575,
172618,
303690,
33357,
287309,
303696,
279124,
172634,
262752,
254563,
172644,
311911,
189034,
295533,
172655,
172656,
352880,
189039,
295538,
172660,
189040,
189044,
287349,
287355,
287360,
295553,
172675,
295557,
311942,
303751,
287365,
352905,
311946,
279178,
287371,
311951,
287377,
172691,
311957,
287381,
221850,
287386,
230045,
287390,
303773,
164509,
172705,
287394,
172702,
303780,
172707,
287398,
205479,
279208,
287400,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
287423,
328384,
279231,
287427,
312005,
312006,
107208,
107212,
172748,
287436,
172751,
287440,
295633,
172755,
303827,
279255,
172760,
287450,
303835,
279258,
189149,
303838,
213724,
279267,
312035,
295654,
279272,
312048,
230128,
312050,
230131,
189169,
205564,
303871,
230146,
328453,
295685,
230154,
33548,
312077,
295695,
295701,
230169,
369433,
295707,
328476,
295710,
230175,
295720,
303914,
279340,
205613,
279353,
230202,
312124,
328508,
222018,
295755,
377676,
148302,
287569,
303959,
230237,
279390,
230241,
279394,
303976,
336744,
303981,
303985,
303987,
328563,
279413,
303991,
303997,
295806,
295808,
304005,
295813,
304007,
320391,
213895,
304009,
304011,
230284,
304013,
279438,
189325,
295822,
189329,
295825,
189331,
304019,
213902,
58262,
304023,
279452,
234648,
410526,
279461,
279462,
304042,
213931,
304055,
230327,
287675,
197564,
230334,
304063,
238528,
304065,
213954,
189378,
156612,
295873,
213963,
312272,
304084,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
312321,
295945,
295949,
230413,
197645,
320528,
140312,
295961,
238620,
197663,
304164,
304170,
304175,
238641,
312374,
238652,
238655,
230465,
238658,
296004,
132165,
336964,
205895,
320584,
238666,
296021,
402518,
336987,
230497,
296036,
361576,
296040,
205931,
296044,
279661,
205934,
164973,
312432,
279669,
337018,
189562,
279679,
304258,
279683,
222340,
66690,
205968,
296084,
238745,
304285,
238756,
205991,
222377,
165035,
337067,
165038,
238766,
230576,
238770,
304311,
230592,
312518,
279750,
230600,
230607,
148690,
320727,
279769,
304348,
279777,
304354,
296163,
320740,
279781,
304360,
320748,
279788,
279790,
304370,
296189,
320771,
312585,
296202,
296205,
230674,
320786,
230677,
296213,
296215,
320792,
230681,
230679,
214294,
304416,
230689,
173350,
312622,
296243,
312630,
222522,
296253,
222525,
296255,
312639,
230718,
296259,
378181,
296262,
230727,
296264,
238919,
320840,
296267,
296271,
222545,
230739,
312663,
337244,
222556,
230752,
312676,
230760,
173418,
230763,
410987,
148843,
230768,
296305,
312692,
230773,
304505,
181626,
304506,
279929,
181631,
148865,
312711,
312712,
296331,
288140,
288144,
230800,
304533,
337306,
288154,
288160,
173472,
288162,
288164,
279975,
304555,
370092,
279983,
173488,
288176,
279985,
312755,
296373,
312759,
337335,
288185,
279991,
222652,
312766,
173507,
296389,
222665,
230860,
312783,
288208,
230865,
288210,
370130,
288212,
222676,
148946,
288214,
239064,
329177,
288217,
280027,
288220,
288218,
239070,
288224,
280034,
288226,
280036,
288229,
280038,
288230,
288232,
370146,
288234,
320998,
288236,
288238,
288240,
288242,
296435,
288244,
288250,
148990,
321022,
206336,
402942,
296446,
296450,
230916,
230919,
214535,
304651,
370187,
304653,
230923,
402969,
230940,
222752,
108066,
296486,
296488,
157229,
230961,
157236,
288320,
288325,
124489,
280140,
280145,
288338,
280149,
288344,
280152,
239194,
280158,
403039,
370272,
181854,
239202,
370279,
312938,
280183,
280185,
280188,
280191,
116354,
280194,
280208,
280211,
288408,
280218,
280222,
419489,
190118,
198310,
321195,
296622,
321200,
337585,
296626,
296634,
296637,
419522,
313027,
280260,
419525,
206536,
280264,
206539,
206541,
206543,
263888,
280276,
313044,
321239,
280283,
18140,
313052,
288478,
313055,
419555,
321252,
313066,
280302,
288494,
280304,
313073,
419570,
288499,
321266,
288502,
280314,
288510,
124671,
67330,
280324,
198405,
288519,
280331,
198416,
280337,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
280363,
141101,
165678,
280375,
321336,
296767,
288576,
345921,
280388,
337732,
304968,
280393,
280402,
173907,
313176,
42842,
280419,
321381,
296809,
296812,
313201,
1920,
255873,
305028,
280454,
247688,
280464,
124817,
280468,
239510,
280473,
124827,
214940,
247709,
214944,
280487,
313258,
321458,
296883,
124853,
214966,
10170,
296890,
288700,
296894,
190403,
296900,
280515,
337862,
165831,
280521,
231379,
296921,
354265,
354270,
239586,
313320,
354281,
231404,
124913,
165876,
321528,
313340,
239612,
288764,
239617,
313347,
288773,
313358,
305176,
321560,
313371,
354338,
305191,
223273,
313386,
354348,
124978,
215090,
124980,
288824,
288826,
321595,
378941,
313406,
288831,
288836,
67654,
280651,
354382,
288848,
280658,
215123,
354390,
288855,
288859,
280669,
313438,
149599,
280671,
149601,
321634,
149603,
223327,
329830,
280681,
313451,
223341,
280687,
215154,
313458,
280691,
149618,
313464,
329850,
321659,
280702,
288895,
321670,
215175,
141446,
288909,
141455,
141459,
280725,
313498,
100520,
288936,
280747,
288940,
280755,
288947,
321717,
280759,
280764,
280769,
280771,
280774,
280776,
321740,
313548,
280783,
280786,
280788,
313557,
280793,
280796,
280798,
338147,
280804,
280807,
157930,
280811,
280817,
125171,
157940,
280819,
182517,
280823,
280825,
280827,
280830,
280831,
280833,
125187,
280835,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
280888,
305464,
280891,
289087,
280897,
280900,
239944,
305480,
280906,
239947,
305485,
305489,
379218,
280919,
248153,
215387,
354653,
354656,
313700,
313705,
280937,
190832,
280946,
223606,
313720,
280956,
239997,
280959,
313731,
240011,
199051,
289166,
240017,
297363,
190868,
297365,
240021,
297368,
297372,
141725,
297377,
289186,
297391,
289201,
240052,
289207,
305594,
289210,
281024,
289218,
289221,
289227,
436684,
281045,
281047,
215526,
166378,
305647,
281075,
174580,
240124,
281084,
305662,
305664,
240129,
305666,
305668,
223749,
330244,
281095,
223752,
338440,
150025,
240132,
223757,
281102,
223763,
223765,
281113,
322074,
281116,
281121,
182819,
281127,
281135,
150066,
158262,
158266,
289342,
281154,
322115,
158283,
281163,
281179,
338528,
338532,
281190,
199273,
281196,
158317,
19053,
313973,
297594,
281210,
158347,
264845,
182926,
133776,
182929,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
133801,
174764,
314029,
314033,
240309,
133817,
314045,
314047,
314051,
199364,
297671,
158409,
256716,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
289537,
322310,
264969,
322314,
322318,
281361,
281372,
322341,
215850,
281388,
289593,
281401,
289601,
281410,
281413,
281414,
240458,
281420,
240468,
281430,
322393,
297818,
281435,
281438,
281442,
174955,
224110,
207733,
207737,
183172,
158596,
338823,
322440,
314249,
240519,
183184,
240535,
289687,
224151,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
420829,
281567,
289762,
322534,
297961,
183277,
281581,
322550,
134142,
322563,
314372,
330764,
175134,
322599,
322610,
314421,
281654,
314427,
314433,
207937,
314441,
207949,
322642,
314456,
281691,
314461,
281702,
281704,
314474,
281708,
281711,
289912,
248995,
306341,
306344,
306347,
322734,
306354,
142531,
199877,
289991,
306377,
289997,
249045,
363742,
363745,
298216,
330988,
126190,
216303,
322801,
388350,
257302,
363802,
199976,
199978,
314671,
298292,
298294,
257334,
216376,
298306,
380226,
224584,
224587,
224594,
216404,
306517,
150870,
314714,
224603,
159068,
314718,
265568,
314723,
281960,
150890,
306539,
314732,
314736,
290161,
216436,
306549,
298358,
314743,
306552,
306555,
314747,
298365,
290171,
290174,
224641,
281987,
314756,
298372,
281990,
224647,
265604,
298377,
314763,
142733,
298381,
314768,
224657,
306581,
314773,
314779,
314785,
314793,
282025,
282027,
241068,
241070,
241072,
282034,
241077,
150966,
298424,
306618,
282044,
323015,
306635,
306640,
290263,
290270,
290275,
339431,
282089,
191985,
282098,
290291,
282101,
241142,
191992,
290298,
151036,
290302,
282111,
290305,
175621,
306694,
192008,
323084,
257550,
282127,
290321,
323090,
282130,
282133,
290325,
241175,
290328,
282137,
290332,
241181,
282142,
282144,
290344,
306731,
290349,
290351,
290356,
28219,
282186,
224849,
282195,
282199,
282201,
306778,
159324,
159330,
314979,
298598,
323176,
224875,
241260,
323181,
257658,
315016,
282249,
290445,
282255,
282261,
175770,
298651,
323229,
282269,
298655,
323231,
61092,
282277,
306856,
282295,
323260,
282300,
323266,
282310,
323273,
282319,
306897,
241362,
306904,
282328,
298714,
52959,
216801,
282337,
241380,
216806,
323304,
282345,
12011,
282356,
323318,
282364,
282367,
306945,
323330,
241412,
323333,
282376,
216842,
323345,
282388,
323349,
282392,
184090,
315167,
315169,
282402,
315174,
323367,
241448,
315176,
241450,
282410,
306988,
306991,
315184,
323376,
315190,
241464,
159545,
282425,
298811,
307009,
413506,
241475,
307012,
298822,
315211,
282446,
307027,
315221,
323414,
315223,
241496,
241498,
307035,
307040,
110433,
282465,
241509,
110438,
298860,
110445,
282478,
315249,
110450,
315251,
282481,
315253,
315255,
339838,
315267,
282499,
315269,
241544,
282505,
241546,
241548,
298896,
298898,
282514,
241556,
298901,
44948,
241560,
282520,
241563,
241565,
241567,
241569,
282531,
241574,
282537,
298922,
36779,
241581,
282542,
241583,
323504,
241586,
282547,
241588,
290739,
241590,
241592,
241598,
290751,
241600,
241605,
151495,
241610,
298975,
241632,
298984,
241640,
241643,
298988,
241646,
241649,
241652,
323574,
290807,
241661,
299006,
282623,
315396,
241669,
315397,
282632,
307211,
282639,
290835,
282645,
241693,
282654,
241701,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
192596,
176213,
307287,
315482,
217179,
315483,
192605,
233567,
200801,
299105,
217188,
299109,
307303,
315495,
356457,
307307,
45163,
315502,
192624,
307314,
323700,
299126,
233591,
299136,
307329,
315524,
307338,
233613,
241813,
307352,
299164,
241821,
184479,
299167,
184481,
315557,
184486,
307370,
307372,
184492,
307374,
307376,
299185,
323763,
176311,
299191,
307385,
307386,
258235,
307388,
176316,
307390,
184503,
299200,
184512,
307394,
307396,
299204,
184518,
307399,
323784,
233679,
307409,
307411,
176343,
299225,
233701,
307432,
184572,
282881,
184579,
282893,
323854,
291089,
282906,
291104,
233766,
295583,
176435,
307508,
315701,
332086,
307510,
307512,
168245,
307515,
307518,
282942,
282947,
323917,
110926,
282957,
233808,
323921,
315733,
323926,
233815,
276052,
315739,
323932,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
299388,
299391,
291202,
299398,
242057,
291212,
299405,
291222,
315801,
283033,
242075,
291226,
291231,
61855,
283042,
291238,
291241,
127403,
127405,
127407,
291247,
299440,
299444,
127413,
283062,
291254,
127417,
291260,
127421,
283069,
127424,
299457,
127429,
127431,
315856,
176592,
127440,
315860,
176597,
127447,
283095,
127449,
299481,
176605,
242143,
127455,
127457,
291299,
127460,
340454,
127463,
242152,
291305,
127466,
176620,
127469,
127474,
291314,
291317,
135672,
127480,
233979,
291323,
127485,
127490,
291330,
283142,
127494,
127497,
233994,
135689,
127500,
291341,
233998,
127506,
234003,
127509,
234006,
127511,
152087,
283161,
242202,
234010,
135707,
135710,
242206,
242208,
291361,
242220,
291378,
152118,
234038,
234041,
315961,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
135808,
291456,
373383,
299655,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
299677,
225948,
135839,
299680,
225954,
135844,
299684,
242343,
209576,
242345,
373421,
135870,
135873,
135876,
135879,
299720,
299723,
299726,
225998,
226002,
119509,
226005,
226008,
242396,
299740,
201444,
299750,
283368,
234219,
283372,
185074,
226037,
283382,
316151,
234231,
234236,
226045,
242431,
234239,
209665,
234242,
299778,
242436,
226053,
234246,
226056,
234248,
291593,
242443,
234252,
242445,
234254,
291601,
242450,
234258,
242452,
234261,
348950,
201496,
234264,
234266,
234269,
283421,
234272,
234274,
152355,
234278,
299814,
283432,
234281,
234284,
234287,
283440,
185138,
242483,
234292,
234296,
234298,
160572,
283452,
234302,
234307,
242499,
234309,
316233,
234313,
316235,
234316,
283468,
242511,
234319,
234321,
234324,
201557,
185173,
234329,
234333,
308063,
234336,
234338,
349027,
242530,
234341,
234344,
234347,
177004,
234350,
324464,
234353,
152435,
177011,
234356,
234358,
234362,
226171,
234364,
291711,
234368,
234370,
201603,
291714,
234373,
316294,
226182,
234375,
308105,
291716,
226185,
234379,
324490,
234384,
234388,
234390,
324504,
234393,
209818,
308123,
324508,
234396,
291742,
226200,
234398,
234401,
291747,
291748,
234405,
291750,
234407,
324520,
324518,
234410,
291754,
291756,
324522,
226220,
324527,
291760,
234417,
201650,
324531,
234414,
234422,
226230,
324536,
275384,
234428,
291773,
234431,
242623,
324544,
324546,
234434,
324548,
234437,
226245,
234439,
226239,
234443,
291788,
234446,
275406,
193486,
234449,
316370,
193488,
234452,
234455,
234459,
234461,
234464,
234467,
234470,
168935,
5096,
324585,
234475,
234478,
316400,
234481,
316403,
234484,
234485,
324599,
234487,
234490,
234493,
234496,
316416,
308226,
234501,
275462,
308231,
234504,
234507,
234510,
234515,
300054,
234519,
316439,
234520,
234523,
234526,
234528,
300066,
234532,
300069,
234535,
234537,
234540,
144430,
234543,
234546,
275508,
234549,
300085,
300088,
234553,
234556,
234558,
316479,
234561,
308291,
316483,
234563,
160835,
234568,
234570,
316491,
300108,
234572,
234574,
300115,
234580,
234581,
242777,
234585,
275545,
234590,
234593,
234595,
300133,
234597,
234601,
300139,
234605,
160879,
234607,
275569,
234610,
316530,
300148,
234614,
398455,
144506,
234618,
275579,
234620,
234623,
226433,
234627,
275588,
234629,
242822,
234634,
234636,
177293,
234640,
275602,
234643,
308373,
226453,
234647,
275606,
275608,
234650,
308379,
324757,
234653,
300189,
119967,
324766,
324768,
283805,
234657,
242852,
234661,
283813,
300197,
234664,
177318,
275626,
234667,
316596,
308414,
300223,
234687,
300226,
308418,
283844,
300229,
308420,
308422,
226500,
234692,
283850,
300234,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
234726,
300263,
300265,
300267,
161003,
300270,
300272,
120053,
300278,
316663,
275703,
300284,
275710,
300287,
300289,
292097,
161027,
300292,
300294,
275719,
234760,
177419,
300299,
242957,
283917,
300301,
177424,
349451,
275725,
349464,
415009,
283939,
259367,
292143,
283951,
300344,
226617,
243003,
283963,
226628,
283973,
300357,
177482,
283983,
316758,
357722,
316766,
316768,
292192,
218464,
292197,
316774,
243046,
218473,
284010,
324978,
136562,
275834,
333178,
275836,
275840,
316803,
316806,
226696,
316811,
226699,
316814,
226703,
300433,
234899,
226709,
357783,
316824,
316826,
144796,
300448,
144807,
144810,
144812,
284076,
144814,
144820,
284084,
284087,
292279,
144826,
144828,
144830,
144832,
144835,
144837,
38342,
144839,
144841,
144844,
144847,
144852,
144855,
103899,
300507,
333280,
226787,
218597,
292329,
300523,
259565,
300527,
308720,
259567,
226802,
292338,
316917,
292343,
308727,
300537,
316933,
316947,
308757,
308762,
284191,
316959,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
284213,
308790,
284215,
316983,
194103,
284218,
194101,
226877,
292414,
284223,
284226,
284228,
292421,
226886,
284231,
128584,
243268,
284234,
366155,
317004,
276043,
284238,
226895,
284241,
292433,
284243,
300628,
284245,
194130,
284247,
317015,
235097,
243290,
276053,
284249,
284251,
300638,
284253,
284255,
243293,
284258,
292452,
292454,
284263,
177766,
284265,
292458,
284267,
292461,
284272,
284274,
276086,
284278,
292470,
292473,
284283,
276093,
284286,
292479,
284288,
292481,
284290,
325250,
284292,
292485,
325251,
276095,
276098,
284297,
317066,
284299,
317068,
276109,
284301,
284303,
284306,
276114,
284308,
284312,
284314,
284316,
276127,
284320,
284322,
284327,
284329,
317098,
284331,
276137,
284333,
284335,
276144,
284337,
284339,
300726,
284343,
284346,
284350,
358080,
276160,
284354,
358083,
276166,
284358,
358089,
284362,
276170,
276175,
284368,
276177,
284370,
358098,
284372,
317138,
284377,
276187,
284379,
284381,
284384,
358114,
284386,
358116,
276197,
317158,
358119,
284392,
325353,
358122,
284394,
284397,
358126,
284399,
358128,
276206,
358133,
358135,
276216,
358138,
300795,
358140,
284413,
358142,
358146,
317187,
284418,
317189,
317191,
284428,
300816,
300819,
317207,
284440,
300828,
300830,
276255,
325408,
300832,
300834,
317221,
227109,
358183,
186151,
276268,
300845,
243504,
300850,
284469,
276280,
325436,
358206,
276291,
366406,
276295,
300872,
153417,
292681,
358224,
284499,
276308,
178006,
317271,
284502,
276315,
292700,
284511,
317279,
227175,
292715,
300912,
284529,
292721,
300915,
284533,
292729,
317306,
284540,
292734,
325512,
169868,
276365,
358292,
284564,
317332,
399252,
284566,
350106,
284572,
276386,
284579,
276388,
358312,
284585,
317353,
276395,
292776,
292784,
276402,
358326,
161718,
276410,
276411,
358330,
276418,
276425,
301009,
301011,
301013,
292823,
301015,
301017,
358360,
292828,
276446,
153568,
276448,
276452,
292839,
276455,
350186,
292843,
276460,
276464,
178161,
227314,
276466,
350200,
325624,
276472,
317435,
276476,
276479,
276482,
350210,
276485,
317446,
178181,
276490,
350218,
292876,
350222,
317456,
276496,
317458,
178195,
243733,
317468,
243740,
317472,
325666,
243751,
292904,
276528,
178224,
243762,
309298,
325685,
325689,
235579,
325692,
235581,
178238,
276539,
276544,
243779,
284739,
325700,
292934,
243785,
276553,
350293,
350295,
309337,
194649,
227418,
350299,
350302,
227423,
194654,
178273,
309346,
194657,
309348,
350308,
309350,
227426,
309352,
350313,
309354,
301163,
350316,
194660,
227430,
276583,
276590,
350321,
284786,
276595,
301167,
350325,
227440,
350328,
292985,
301178,
350332,
292989,
301185,
292993,
350339,
317570,
317573,
350342,
350345,
350349,
301199,
317584,
325777,
350354,
350357,
350359,
350362,
350366,
276638,
284837,
153765,
350375,
350379,
350381,
350383,
129200,
350385,
350387,
350389,
350395,
350397,
350399,
227520,
350402,
227522,
301252,
350406,
227529,
309450,
301258,
276685,
309455,
276689,
309462,
301272,
276699,
309468,
194780,
309471,
301283,
317672,
317674,
325867,
243948,
194801,
309491,
227571,
309494,
243960,
276735,
227583,
227587,
276739,
211204,
276742,
227593,
227596,
325910,
309530,
342298,
211232,
317729,
276775,
211241,
325937,
325943,
211260,
260421,
276809,
285002,
276811,
235853,
276816,
235858,
276829,
276833,
391523,
276836,
276843,
293227,
276848,
293232,
186744,
211324,
227709,
285061,
366983,
317833,
178572,
285070,
285077,
178583,
227738,
317853,
276896,
317858,
342434,
285093,
317864,
285098,
276907,
235955,
276917,
293304,
293307,
293314,
309707,
293325,
129486,
317910,
293336,
235996,
317917,
293343,
358880,
276961,
227810,
293346,
276964,
293352,
236013,
293364,
301562,
293370,
317951,
309764,
301575,
121352,
236043,
317963,
342541,
55822,
113167,
309779,
317971,
309781,
277011,
55837,
227877,
227879,
293417,
227882,
309804,
293421,
105007,
236082,
285236,
23094,
277054,
244288,
219714,
129603,
318020,
301636,
301639,
301643,
277071,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
309871,
121458,
277106,
170618,
170619,
309885,
309888,
277122,
227975,
277128,
285320,
301706,
318092,
326285,
334476,
318094,
277136,
277139,
227992,
318108,
285340,
318110,
227998,
137889,
383658,
285357,
318128,
277170,
342707,
318132,
154292,
293555,
277173,
277177,
277181,
318144,
277187,
277191,
277194,
277196,
277201,
342745,
137946,
342747,
342749,
113378,
203491,
228069,
277223,
342760,
285417,
56041,
56043,
56045,
277232,
228081,
56059,
310015,
285441,
310020,
285448,
310029,
228113,
285459,
277273,
293659,
326430,
228128,
293666,
285474,
228135,
318248,
277291,
318253,
293677,
285489,
301876,
293685,
285494,
301880,
285499,
301884,
310080,
293696,
277317,
277322,
293706,
277329,
162643,
310100,
301911,
301913,
277337,
301921,
400236,
236397,
162671,
326514,
310134,
15224,
236408,
277368,
416639,
416640,
113538,
310147,
416648,
39817,
187274,
277385,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
276579,
293811,
293817,
293820,
203715,
326603,
342994,
276586,
293849,
293861,
228327,
228328,
228330,
318442,
228332,
326638,
277486,
351217,
318450,
293876,
293877,
285686,
302073,
285690,
121850,
293882,
302075,
244731,
293887,
277504,
277507,
277511,
293899,
277519,
293908,
302105,
293917,
293939,
318516,
277561,
277564,
310336,
7232,
293956,
277573,
228422,
310344,
277577,
293960,
277583,
203857,
310355,
293971,
310359,
236632,
277594,
138332,
277598,
203872,
277601,
285792,
310374,
203879,
310376,
228460,
318573,
203886,
187509,
285815,
285817,
367737,
302205,
285821,
392326,
285831,
253064,
302218,
294026,
285835,
384148,
162964,
187542,
302231,
285849,
302233,
285852,
302237,
285854,
285856,
302241,
285862,
277671,
302248,
64682,
277678,
294063,
294065,
302258,
277687,
294072,
318651,
294076,
277695,
318657,
244930,
302275,
130244,
302277,
228550,
302282,
310476,
302285,
302288,
310481,
302290,
203987,
302292,
302294,
302296,
384222,
310498,
285927,
318698,
302315,
195822,
228592,
294132,
138485,
228601,
204026,
228606,
204031,
64768,
310531,
285958,
138505,
228617,
318742,
204067,
277798,
130345,
277801,
113964,
285997,
384302,
285999,
277804,
113969,
277807,
277811,
318773,
318776,
277816,
286010,
277819,
294204,
417086,
277822,
286016,
302403,
294211,
384328,
277832,
277836,
146765,
294221,
326991,
294223,
277839,
277842,
277847,
277850,
179547,
277853,
146784,
277857,
302436,
277860,
294246,
327015,
310632,
327017,
351594,
277864,
277869,
277872,
351607,
310648,
277880,
310651,
277884,
277888,
310657,
310659,
351619,
294276,
327046,
277892,
253320,
310665,
318858,
277894,
277898,
277903,
310672,
351633,
277905,
277908,
277917,
310689,
277921,
130468,
228776,
277928,
277932,
310703,
277937,
130486,
310710,
310712,
277944,
310715,
277947,
302526,
228799,
277950,
277953,
302534,
245191,
310727,
64966,
163272,
277959,
292968,
302541,
277963,
302543,
277966,
310737,
277971,
228825,
163290,
277978,
310749,
277981,
277984,
310755,
277989,
277991,
187880,
277995,
310764,
286188,
278000,
228851,
310772,
278003,
278006,
40440,
212472,
278009,
40443,
286203,
310780,
40448,
228864,
286214,
228871,
302603,
65038,
302614,
302617,
286233,
302621,
187936,
146977,
286240,
187939,
40484,
294435,
40486,
286246,
40488,
278057,
245288,
40491,
294439,
294440,
294443,
310831,
294445,
286248,
40499,
40502,
212538,
40507,
40511,
40513,
228933,
327240,
40521,
286283,
40525,
40527,
400976,
212560,
228944,
40533,
147032,
40537,
40539,
40541,
278109,
40544,
40548,
40550,
40552,
286312,
40554,
286313,
310892,
40557,
40560,
188022,
122488,
294521,
343679,
294537,
310925,
286354,
278163,
302740,
122517,
278168,
179870,
327333,
229030,
212648,
278188,
302764,
278192,
319153,
278196,
302781,
319171,
302789,
294599,
278216,
302793,
294601,
343757,
212690,
278227,
286420,
319187,
229076,
286425,
319194,
278235,
278238,
229086,
286432,
294625,
294634,
302838,
319226,
286460,
278274,
302852,
278277,
302854,
311048,
294664,
352008,
319243,
311053,
302862,
319251,
294682,
278306,
188199,
294701,
319280,
278320,
319290,
229192,
302925,
188247,
280021,
188252,
237409,
294776,
360317,
294785,
327554,
360322,
40840,
40851,
294803,
188312,
294811,
319390,
237470,
40865,
319394,
294817,
294821,
311209,
180142,
294831,
188340,
40886,
319419,
294844,
294847,
237508,
393177,
294876,
294879,
294883,
393190,
294890,
311279,
278513,
237555,
311283,
278516,
278519,
237562
] |
eda57a7a1218882298bed4158fa1560231cd0e0b
|
89ea3d2e97d6fd6d8ea33d04ea151fd1a679a76e
|
/Sources/Antlr4/LexerNoViableAltException.swift
|
392400e372c1b0dccdd2cce64f6c4ff4f4cbc344
|
[
"MIT"
] |
permissive
|
HeMet/ANTLR4Swift
|
622be970e34142a884898d36a12af1bface9b3f2
|
c4334f5c344e4844efc460df2cacf1f29bc9af9e
|
refs/heads/master
| 2021-01-11T15:03:09.327235 | 2017-05-21T07:25:39 | 2017-05-21T07:25:39 | 80,289,271 | 2 | 1 | null | 2017-05-21T07:25:40 | 2017-01-28T14:38:00 |
Swift
|
UTF-8
|
Swift
| false | false | 1,634 |
swift
|
/// Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
/// Use of this file is governed by the BSD 3-clause license that
/// can be found in the LICENSE.txt file in the project root.
public class LexerNoViableAltException: RecognitionException<LexerATNSimulator>, CustomStringConvertible {
/// Matching attempted at what input index?
private final var startIndex: Int
/// Which configurations did we try at input.index() that couldn't match input.LA(1)?
private final var deadEndConfigs: ATNConfigSet
public init(_ lexer: Lexer?,
_ input: CharStream,
_ startIndex: Int,
_ deadEndConfigs: ATNConfigSet) {
let ctx: ParserRuleContext? = nil
self.startIndex = startIndex
self.deadEndConfigs = deadEndConfigs
super.init(lexer, input as IntStream, ctx)
}
public func getStartIndex() -> Int {
return startIndex
}
public func getDeadEndConfigs() -> ATNConfigSet {
return deadEndConfigs
}
//override
// public func getInputStream() -> CharStream {
// return super.getInputStream() as! CharStream;
// }
public var description: String {
var symbol: String = ""
if startIndex >= 0 && startIndex < getInputStream().size() {
let charStream: CharStream = getInputStream() as! CharStream
let interval: Interval = Interval.of(startIndex, startIndex)
symbol = charStream.getText(interval)
symbol = Utils.escapeWhitespace(symbol, false)
}
return "\(LexerNoViableAltException.self)('\(symbol)')"
}
}
|
[
350537
] |
39e454616715e7986e6ff954ea4a375fb04bf64e
|
abcc69461337ee0c8372a0f440f0c251a15e78b2
|
/AgentZ/AgentProfileViewController.swift
|
7b79b9d481d6625a7ad7eb078802d3a0bbd5d349
|
[] |
no_license
|
foob26uk/AgentZ
|
8cedc7760464b634bc8349418f5b3e194fb4a865
|
0de3f40b7fb389b4da9fc15fea5c8429529c8009
|
refs/heads/master
| 2020-04-10T13:20:14.862723 | 2015-04-15T08:13:06 | 2015-04-15T08:13:06 | 33,977,328 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 3,913 |
swift
|
//
// AgentProfileViewController.swift
// AgentZ
//
// Created by Goldenbird Ventures on 3/31/15.
// Copyright (c) 2015 foobbar. All rights reserved.
//
import UIKit
class AgentProfileViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
var user: Agent!
var nameLabel: UILabel!
var userImageView: UIImageView!
var profileTableView: UITableView = UITableView()
override func viewDidAppear(animated: Bool) {
if let _profileImage = user.profileImage {
userImageView.image = UIImage(data: _profileImage)
}
}
override func viewDidLoad() {
super.viewDidLoad()
navBarMaxY = self.navigationController!.navigationBar.frame.maxY
userImageView = UIImageView(frame: CGRectMake(20, navBarMaxY + 20, 100, 100))
nameLabel = UILabel(frame: CGRectMake(userImageView.frame.maxX + 20, navBarMaxY + 40, screenWidth - userImageView.frame.width - 60 , 60))
nameLabel.text = user.name
nameLabel.font = UIFont.boldSystemFontOfSize(21)
nameLabel.textAlignment = NSTextAlignment.Center
nameLabel.numberOfLines = 2
self.view.addSubview(userImageView)
self.view.addSubview(nameLabel)
profileTableView.frame = CGRect(x: 20, y: userImageView.frame.maxY + 20, width: tableViewWidth - 20, height: screenHeight - navBarMaxY - userImageView.frame.height - 40)
profileTableView.dataSource = self
profileTableView.delegate = self
profileTableView.separatorStyle = UITableViewCellSeparatorStyle.None
profileTableView.backgroundColor = UIColor.clearColor()
self.view.addSubview(profileTableView)
self.view.backgroundColor = UIColor(red: 226/255, green: 233/255, blue: 226/255, alpha: 1.0)
userImageView.layer.borderWidth = 1
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return user.properties.count
}
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
var cell = profileTableView.dequeueReusableCellWithIdentifier("ProfileCell") as? ProfileCell
if cell == nil {cell = ProfileCell()}
return cell!
}
func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) {
let cell = cell as! ProfileCell
let property = user.properties[indexPath.row]
let tableWidth = profileTableView.frame.width
cell.keyLabel.text = property[0]
cell.keyLabel.frame = CGRectMake(0, 0, tableWidth, 20)
cell.valueLabel.numberOfLines = 1
if property[2] == "STANDARD" {
cell.valueLabel.text = property[1]
cell.valueLabel.frame = CGRectMake(0, cell.keyLabel.frame.maxY, tableWidth, 20.5)
} else if property[2] == "ADDRESS" {
cell.valueLabel.numberOfLines = 2
cell.valueLabel.text = Agent.getFormattedAddress(property[1])
cell.valueLabel.frame = CGRectMake(0, cell.keyLabel.frame.maxY, tableWidth, 41)
} else if property[2] == "PHONE" {
cell.valueLabel.text = Agent.getFormattedPhone(property[1])
cell.valueLabel.frame = CGRectMake(0, cell.keyLabel.frame.maxY, tableWidth, 20.5)
} else {
cell.valueLabel.text = property[1]
cell.valueLabel.frame = CGRectMake(0, cell.keyLabel.frame.maxY, tableWidth, 20.5)
}
}
func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat {
let property = user.properties[indexPath.row]
if property[2] == "ADDRESS" {
return 71
} else {
return 50.5
}
}
}
|
[
-1
] |
9893a4aec68af99cacae07f37da4399ab645a74e
|
d04118886a6e1a8167343b73feb49424975ab156
|
/Smarter Calculator/Supporting Files/AppDelegate.swift
|
19c53482eaafb67e7d7c37885627a4adb3e3932f
|
[] |
no_license
|
ahmed-alzahrani/Smarter-iOS-Calc
|
0bd274a955bfd7de9a98b7d77acf5dcf5903505d
|
b5d2bc0c7e01cc8a0059a9e222b0c871a9dd7b33
|
refs/heads/master
| 2020-03-16T06:50:43.050977 | 2018-05-08T06:52:08 | 2018-05-08T06:52:08 | 132,563,829 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,194 |
swift
|
//
// AppDelegate.swift
// Smarter Calculaor
//
// Created by Ahmed Al-Zahrani on 2018-05-07.
// Copyright © 2018 Ahmed Al-Zahrani. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(_ application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
}
func applicationDidEnterBackground(_ application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(_ application: UIApplication) {
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(_ application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(_ application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
|
[
229380,
229383,
229385,
278539,
294924,
229388,
278542,
229391,
327695,
229394,
278548,
229397,
229399,
229402,
352284,
229405,
278556,
278559,
278564,
294950,
229415,
229417,
327722,
237613,
229422,
360496,
229426,
237618,
229428,
311349,
286774,
286776,
319544,
286778,
229432,
204856,
352318,
286791,
237640,
286797,
278605,
311375,
163920,
237646,
196692,
319573,
311383,
278623,
278626,
319590,
311400,
278635,
303212,
278639,
131192,
278648,
237693,
303230,
327814,
303241,
131209,
417930,
303244,
311436,
319633,
286873,
286876,
311460,
311469,
32944,
327862,
286906,
327866,
180413,
286910,
286916,
286922,
286924,
286926,
319694,
286928,
131281,
278743,
278747,
295133,
155872,
319716,
237807,
303345,
286962,
303347,
229622,
327930,
278781,
278783,
278785,
237826,
319751,
286987,
319757,
311569,
286999,
319770,
287003,
287006,
287009,
287012,
287014,
287016,
287019,
311598,
287023,
262448,
311601,
295220,
155966,
319809,
319810,
278849,
319814,
311623,
319818,
311628,
229709,
319822,
287054,
278865,
229717,
196963,
196969,
139638,
213367,
106872,
319872,
311683,
319879,
311693,
65943,
319898,
311719,
278952,
139689,
278957,
311728,
278967,
180668,
311741,
278975,
319938,
278980,
278983,
319945,
278986,
278990,
278994,
311767,
279003,
279006,
188895,
172512,
287202,
279010,
279015,
172520,
319978,
279020,
172526,
311791,
279023,
172529,
279027,
319989,
172534,
180727,
164343,
279035,
311804,
287230,
279040,
303617,
287234,
279045,
172550,
303623,
172552,
287238,
320007,
279051,
172558,
279055,
303632,
279058,
303637,
279063,
279067,
172572,
279072,
172577,
295459,
172581,
295461,
279082,
311850,
279084,
172591,
172598,
279095,
172607,
172609,
172612,
377413,
172614,
213575,
172618,
303690,
33357,
303696,
279124,
172634,
262752,
254563,
172644,
311911,
189034,
295533,
172655,
172656,
352880,
295538,
189039,
172660,
287349,
189040,
189044,
287355,
287360,
295553,
172675,
295557,
287365,
311942,
303751,
352905,
279178,
287371,
311946,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
230045,
172702,
164509,
303773,
172705,
287394,
172707,
303780,
287390,
287398,
205479,
279208,
287400,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
287423,
328384,
172737,
279231,
287427,
312005,
312006,
107208,
172748,
287436,
172751,
287440,
295633,
172755,
303827,
279255,
287450,
303835,
279258,
189149,
303838,
213724,
312035,
279267,
295654,
279272,
230128,
312048,
312050,
230131,
189169,
205564,
303871,
230146,
328453,
295685,
230154,
33548,
312077,
295695,
295701,
230169,
369433,
295707,
328476,
295710,
230175,
295720,
303914,
279340,
279353,
230202,
312124,
328508,
222018,
295755,
377676,
148302,
287569,
303959,
230237,
279390,
230241,
279394,
303976,
336744,
303981,
303985,
328563,
303987,
303991,
303997,
295806,
295808,
295813,
304005,
320391,
213895,
304007,
304009,
304011,
304013,
295822,
279438,
189325,
189329,
295825,
304019,
213902,
189331,
58262,
304023,
304027,
279452,
279461,
279462,
304042,
213931,
230327,
304055,
287675,
197564,
230334,
304063,
238528,
304065,
213954,
189378,
156612,
197580,
312272,
304084,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
295945,
230413,
295949,
197645,
320528,
140312,
295961,
238620,
304164,
304170,
304175,
238641,
312374,
238652,
238655,
230465,
238658,
336964,
296004,
205895,
320584,
238666,
296021,
402518,
336987,
230497,
296036,
296040,
361576,
205931,
296044,
279661,
205934,
164973,
312432,
279669,
337018,
189562,
279679,
304258,
279683,
222340,
66690,
205968,
296084,
238745,
304285,
238756,
205991,
222377,
165035,
337067,
238766,
165038,
230576,
238770,
304311,
230592,
312518,
279750,
230600,
230607,
148690,
320727,
279769,
304348,
279777,
304354,
296163,
320740,
279781,
304360,
320748,
279788,
279790,
304370,
296189,
320771,
312585,
296202,
296205,
230674,
320786,
230677,
296213,
296215,
320792,
230681,
230679,
214294,
304416,
230689,
173350,
312622,
296243,
312630,
222522,
296253,
222525,
296255,
312639,
230718,
296259,
378181,
296262,
230727,
238919,
296264,
320840,
296267,
296271,
222545,
230739,
312663,
222556,
337244,
230752,
312676,
230760,
173418,
148843,
410987,
230763,
230768,
296305,
312692,
230773,
304505,
304506,
181626,
279929,
181631,
148865,
312711,
312712,
296331,
288140,
288144,
230800,
337306,
288154,
288160,
173472,
288162,
288164,
279975,
304555,
370092,
279983,
173488,
288176,
279985,
312755,
296373,
312759,
279991,
288185,
337335,
222652,
312766,
173507,
296389,
222665,
230860,
312783,
288208,
230865,
288210,
370130,
222676,
288212,
288214,
280021,
239064,
288217,
329177,
280027,
288220,
288218,
239070,
288224,
280034,
288226,
280036,
288229,
280038,
288230,
288232,
370146,
288234,
320998,
288236,
288238,
288240,
288242,
296435,
288244,
288250,
296446,
321022,
402942,
148990,
296450,
206336,
230916,
230919,
230923,
304651,
304653,
370187,
402969,
230940,
222752,
108066,
296486,
296488,
157229,
230961,
157236,
288320,
288325,
124489,
280145,
288338,
280149,
288344,
280152,
239194,
280158,
403039,
370272,
239202,
370279,
312938,
280183,
280185,
280191,
116354,
280194,
280208,
280211,
288408,
280222,
419489,
190118,
198310,
321195,
296622,
321200,
337585,
296626,
296634,
296637,
419522,
313027,
280260,
419525,
206536,
280264,
206539,
206541,
206543,
263888,
313044,
280276,
321239,
280283,
313052,
18140,
288478,
313055,
419555,
321252,
313066,
288494,
280302,
321266,
288499,
419570,
288502,
280314,
288510,
124671,
67330,
280324,
198405,
288519,
280331,
198416,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
280363,
141101,
165678,
280375,
321336,
296767,
288576,
345921,
280388,
337732,
304968,
280393,
280402,
173907,
313171,
313176,
42842,
280419,
321381,
296809,
296812,
313201,
1920,
255873,
305028,
280454,
247688,
124817,
280468,
239510,
280473,
124827,
214940,
247709,
214944,
313258,
321458,
296883,
124853,
214966,
296890,
10170,
288700,
296894,
190403,
296900,
280515,
337862,
165831,
280521,
231379,
296921,
354265,
354270,
239586,
313320,
354281,
231404,
124913,
165876,
321528,
239612,
313340,
288764,
239617,
313347,
288773,
313358,
305176,
321560,
313371,
354338,
305191,
223273,
313386,
354348,
124978,
215090,
124980,
288824,
288826,
321595,
378941,
313406,
288831,
288836,
67654,
280651,
354382,
288848,
280658,
215123,
354390,
288855,
288859,
280669,
313438,
149599,
280671,
149601,
321634,
149603,
223327,
280681,
313451,
223341,
280687,
149618,
215154,
313458,
280691,
313464,
329850,
321659,
288895,
321670,
215175,
141455,
141459,
280725,
313498,
100520,
288936,
280747,
288940,
288947,
280755,
321717,
280759,
280764,
280769,
280771,
280774,
280776,
313548,
321740,
280783,
280786,
280788,
313557,
280793,
280796,
280798,
338147,
280804,
280807,
157930,
280811,
280817,
125171,
157940,
280819,
182517,
280823,
280825,
280827,
280830,
280831,
280833,
125187,
280835,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
305464,
280888,
280891,
289087,
108865,
280897,
280900,
305480,
239944,
280906,
239947,
305485,
305489,
280919,
248153,
215387,
354653,
313700,
280937,
313705,
190832,
280946,
223606,
313720,
280956,
239997,
280959,
313731,
199051,
240011,
289166,
240017,
297363,
190868,
240021,
297365,
297368,
297372,
141725,
297377,
289186,
297391,
289201,
240052,
289207,
289210,
305594,
281024,
289218,
289227,
436684,
281047,
215526,
166378,
305647,
281075,
174580,
240124,
281084,
305662,
305664,
240129,
305666,
305668,
223749,
240132,
281095,
223752,
150025,
338440,
330244,
223757,
281102,
223763,
223765,
281113,
322074,
281116,
281121,
182819,
289317,
281127,
281135,
150066,
158262,
158266,
289342,
281154,
322115,
158283,
338528,
338532,
281190,
199273,
281196,
19053,
158317,
313973,
297594,
281210,
158347,
264845,
182926,
133776,
182929,
314003,
117398,
314007,
289436,
174754,
330404,
289448,
133801,
174764,
314029,
314033,
240309,
314045,
314047,
314051,
199364,
297671,
158409,
256716,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
289537,
322310,
264969,
322314,
322318,
281361,
281372,
322341,
215850,
281388,
289593,
281401,
289601,
281410,
281413,
281414,
240458,
281420,
240468,
281430,
322393,
297818,
281435,
281438,
174955,
224110,
207733,
207737,
158596,
183172,
240519,
322440,
314249,
338823,
183184,
289687,
224151,
240535,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
420829,
281567,
289762,
322534,
297961,
183277,
281581,
322550,
134142,
322563,
314372,
330764,
175134,
322599,
322610,
314421,
281654,
314427,
314433,
207937,
314441,
322642,
314456,
281691,
314461,
281702,
281704,
314474,
281711,
289912,
248995,
306341,
306344,
306347,
322734,
306354,
142531,
199877,
289991,
306377,
289997,
249045,
363742,
363745,
298216,
330988,
216303,
322801,
388350,
257302,
363802,
199976,
199978,
314671,
298292,
298294,
216376,
380226,
298306,
224587,
224594,
216404,
306517,
150870,
314714,
224603,
159068,
314718,
265568,
314723,
281960,
150890,
306539,
314732,
314736,
290161,
216436,
306549,
298358,
314743,
306552,
290171,
314747,
298365,
290174,
306555,
224641,
281987,
298372,
314756,
281990,
224647,
298377,
314763,
314768,
224657,
306581,
314773,
314779,
314785,
314793,
282025,
282027,
241068,
241070,
241072,
282034,
150966,
298424,
306618,
282044,
323015,
306635,
306640,
290263,
290270,
290275,
339431,
282089,
191985,
282098,
290291,
282101,
241142,
191992,
290298,
151036,
290302,
290305,
306694,
192008,
323084,
257550,
282127,
290321,
282130,
290325,
282133,
241175,
290328,
290332,
241181,
282142,
282144,
290344,
306731,
290349,
290351,
290356,
282186,
224849,
282195,
282201,
306778,
159324,
159330,
314979,
298598,
323176,
224875,
241260,
323181,
257658,
315016,
282249,
290445,
282255,
282261,
175770,
298651,
282269,
323229,
298655,
323231,
61092,
282277,
306856,
282295,
282300,
323260,
323266,
282310,
323273,
282319,
306897,
241362,
306904,
282328,
298714,
52959,
216801,
282337,
241380,
216806,
323304,
282345,
12011,
282356,
323318,
282364,
282367,
306945,
241412,
323333,
282376,
216842,
323345,
282388,
323349,
282392,
184090,
315167,
315169,
282402,
315174,
323367,
241448,
315176,
241450,
282410,
306988,
306991,
315184,
323376,
315190,
241464,
159545,
282425,
298811,
118593,
307009,
413506,
307012,
241475,
298822,
148946,
315211,
307027,
315221,
315223,
241496,
241498,
307035,
307040,
110433,
282465,
241509,
110438,
298860,
110445,
282478,
315249,
110450,
315251,
315253,
315255,
339838,
315267,
315269,
241544,
282505,
241546,
241548,
298896,
298898,
282514,
241556,
44948,
298901,
241560,
282520,
241563,
241565,
241567,
241569,
282531,
241574,
282537,
298922,
241581,
241583,
323504,
241586,
290739,
241588,
282547,
241590,
241592,
241598,
290751,
241600,
241605,
151495,
241610,
298975,
241632,
298984,
241643,
298988,
241646,
241649,
241652,
323574,
290807,
299003,
241661,
299006,
282623,
315396,
241669,
315397,
282632,
307211,
282639,
290835,
282645,
241693,
241701,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
192596,
307287,
307290,
217179,
315482,
192605,
315483,
233567,
299105,
200801,
217188,
299109,
307303,
315495,
356457,
45163,
307307,
315502,
192624,
307314,
323700,
299126,
233591,
299136,
307329,
315524,
307338,
233613,
241813,
307352,
299164,
241821,
299167,
315552,
184479,
184481,
315557,
184486,
307370,
307372,
307374,
307376,
299185,
323763,
184503,
299191,
176311,
307385,
307386,
307388,
258235,
307390,
176316,
299200,
307394,
299204,
307396,
184518,
307399,
323784,
233679,
307409,
307411,
299225,
233701,
307432,
282881,
184586,
282893,
323854,
291089,
282906,
291104,
233766,
299304,
295583,
307508,
315701,
332086,
307510,
307512,
307515,
307518,
282942,
282947,
323917,
110926,
282957,
233808,
323921,
315733,
323926,
233815,
276052,
315739,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
299391,
291202,
299398,
242057,
291212,
299405,
291222,
315801,
291226,
242075,
283033,
194654,
61855,
291231,
283042,
291238,
291241,
127403,
127405,
291247,
299440,
127407,
299444,
127413,
291254,
283062,
127417,
291260,
127421,
283069,
127424,
299457,
127429,
127431,
127434,
315856,
127440,
176592,
315860,
176597,
127447,
283095,
299481,
127449,
176605,
242143,
127455,
127457,
291299,
340454,
127463,
242152,
291305,
127466,
176620,
127469,
127474,
291314,
291317,
127480,
135672,
291323,
233979,
127485,
291330,
127490,
127494,
283142,
127497,
233994,
135689,
127500,
233998,
127506,
234003,
127509,
234006,
127511,
152087,
283161,
242202,
234010,
135707,
242206,
135710,
242208,
291361,
242220,
291378,
234038,
152118,
234041,
315961,
70213,
242250,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
291456,
135808,
373383,
299655,
135820,
316051,
225941,
316054,
299672,
135834,
373404,
299677,
135839,
299680,
225954,
299684,
135844,
242343,
209576,
242345,
373421,
299706,
135870,
135873,
135876,
135879,
299720,
299723,
299726,
225998,
226002,
119509,
226005,
299740,
201444,
299750,
283368,
234219,
283372,
185074,
226037,
283382,
316151,
234231,
234236,
226045,
242431,
234239,
209665,
234242,
299778,
242436,
226053,
234246,
226056,
291593,
234248,
242443,
234252,
242445,
234254,
291601,
234258,
242450,
242452,
234261,
348950,
201496,
234264,
234266,
234269,
283421,
234272,
234274,
152355,
299814,
234278,
283432,
234281,
234284,
234287,
283440,
185138,
242483,
234292,
234296,
234298,
160572,
283452,
234302,
234307,
242499,
234309,
292433,
316233,
234313,
316235,
234316,
283468,
234319,
242511,
234321,
234324,
185173,
201557,
234329,
234333,
308063,
234336,
242530,
349027,
234338,
234341,
234344,
234347,
177004,
234350,
324464,
234353,
152435,
177011,
234356,
234358,
234362,
226171,
234364,
291711,
234368,
291714,
234370,
291716,
234373,
201603,
226182,
234375,
308105,
226185,
234379,
324490,
234384,
234388,
234390,
324504,
234393,
209818,
308123,
234396,
324508,
291742,
226200,
234398,
234401,
291747,
291748,
234405,
291750,
234407,
324520,
324518,
324522,
234410,
291756,
226220,
291754,
324527,
291760,
234417,
201650,
324531,
234414,
234422,
226230,
275384,
324536,
234428,
291773,
242623,
324544,
234431,
234434,
324546,
324548,
226245,
234437,
234439,
226239,
234443,
291788,
234446,
275406,
193486,
234449,
316370,
193488,
234452,
234455,
234459,
234461,
234464,
234467,
234470,
168935,
5096,
324585,
234475,
234478,
316400,
234481,
316403,
234484,
234485,
234487,
324599,
234490,
234493,
316416,
234496,
308226,
234501,
275462,
308231,
234504,
234507,
234510,
234515,
300054,
316439,
234520,
234519,
234523,
234526,
234528,
300066,
234532,
300069,
234535,
234537,
234540,
144430,
234543,
234546,
275508,
300085,
234549,
300088,
234553,
234556,
234558,
316479,
234561,
316483,
160835,
234563,
308291,
234568,
234570,
316491,
234572,
300108,
234574,
300115,
234580,
234581,
242777,
234585,
275545,
234590,
234593,
234595,
234597,
300133,
234601,
300139,
234605,
160879,
234607,
275569,
234610,
316530,
300148,
234614,
398455,
144506,
234618,
234620,
275579,
234623,
226433,
234627,
275588,
234629,
242822,
234634,
234636,
177293,
234640,
275602,
234643,
308373,
226453,
234647,
234648,
275606,
234650,
275608,
324757,
300189,
324766,
119967,
234653,
308379,
283805,
234657,
242852,
300197,
234661,
283813,
234664,
324768,
275626,
234667,
177318,
316596,
308414,
234687,
300223,
300226,
308418,
234692,
300229,
308420,
308422,
226500,
283844,
300234,
283850,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
234726,
300263,
300265,
300267,
161003,
300270,
300272,
120053,
300278,
275703,
316663,
300284,
275710,
300287,
292097,
300289,
161027,
300292,
300294,
275719,
234760,
177419,
300299,
242957,
300301,
283917,
177424,
349451,
275725,
349464,
415009,
283939,
259367,
292143,
283951,
300344,
243003,
283963,
226628,
300357,
283973,
177482,
283983,
316758,
357722,
316766,
292192,
316768,
218464,
292197,
316774,
218473,
284010,
136562,
324978,
275834,
333178,
275836,
275840,
316803,
316806,
316811,
316814,
226703,
300433,
234899,
300436,
226709,
357783,
316824,
316826,
144796,
300448,
144807,
144810,
144812,
284076,
144814,
144820,
374196,
284084,
292279,
284087,
144826,
144828,
144830,
144832,
144835,
144837,
38342,
144839,
144841,
144844,
144847,
144852,
144855,
103899,
300507,
333280,
226787,
218597,
292329,
300523,
259565,
300527,
308720,
259567,
292338,
226802,
227440,
316917,
308727,
292343,
300537,
316933,
316947,
308757,
308762,
284191,
316959,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
194101,
284213,
316983,
194103,
284215,
308790,
284218,
226877,
292414,
284223,
284226,
284228,
292421,
226886,
284231,
128584,
243268,
284234,
276043,
317004,
366155,
284238,
226895,
284241,
194130,
284243,
300628,
284245,
276053,
284247,
317015,
284249,
243290,
284251,
235097,
284253,
300638,
284255,
284258,
292452,
292454,
284263,
284265,
292458,
284267,
292461,
284272,
284274,
284278,
292470,
276086,
292473,
284283,
276093,
284286,
292479,
284288,
292481,
284290,
325250,
284292,
292485,
276095,
276098,
284297,
317066,
284299,
317068,
284301,
276109,
284303,
284306,
276114,
284308,
284312,
284314,
284316,
276127,
284320,
284322,
284327,
284329,
317098,
284331,
276137,
284333,
284335,
276144,
284337,
284339,
300726,
284343,
284346,
284350,
276160,
358080,
284354,
358083,
284358,
276166,
358089,
284362,
276170,
284365,
276175,
284368,
276177,
284370,
358098,
284372,
317138,
284377,
276187,
284379,
284381,
284384,
358114,
284386,
358116,
276197,
317158,
358119,
284392,
325353,
358122,
284394,
284397,
358126,
284399,
358128,
276206,
358133,
358135,
276216,
358138,
300795,
358140,
284413,
358142,
358146,
317187,
284418,
317189,
317191,
284428,
300816,
300819,
317207,
284440,
300828,
300830,
276255,
300832,
325408,
300834,
284449,
317221,
227109,
358183,
276268,
300845,
243504,
300850,
284469,
276280,
325436,
358206,
276291,
366406,
276295,
292681,
153417,
358224,
276308,
178006,
317271,
284502,
276315,
292700,
317279,
284511,
227175,
292715,
300912,
292721,
284529,
300915,
292729,
317306,
284540,
292734,
325512,
276365,
317332,
358292,
284564,
399252,
284566,
350106,
284572,
276386,
284579,
276388,
358312,
317353,
292776,
284585,
276395,
292784,
358326,
161718,
358330,
276410,
276411,
276418,
301009,
301011,
301013,
292823,
358360,
301017,
301015,
292828,
276446,
153568,
276448,
276452,
292839,
276455,
350186,
292843,
276460,
292845,
276464,
178161,
227314,
276466,
325624,
350200,
276472,
317435,
276476,
276479,
276482,
350210,
276485,
317446,
178181,
276490,
350218,
292876,
350222,
317456,
276496,
317458,
178195,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
276528,
178224,
243762,
309298,
325685,
325689,
235579,
325692,
235581,
178238,
276539,
276544,
243779,
325700,
284739,
292934,
243785,
276553,
350293,
350295,
309337,
194649,
227418,
350299,
350302,
227423,
350304,
178273,
309346,
194657,
194660,
350308,
309350,
309348,
292968,
309352,
227426,
276579,
227430,
276583,
309354,
301167,
276590,
350321,
350313,
350316,
284786,
350325,
252022,
276595,
350328,
292985,
301178,
350332,
292989,
301185,
292993,
350339,
317570,
317573,
350342,
350345,
350349,
301199,
317584,
325777,
350354,
350357,
350359,
350362,
350366,
276638,
284837,
153765,
350375,
350379,
350381,
350383,
129200,
350385,
350387,
350389,
350395,
350397,
350399,
227520,
350402,
227522,
301252,
350406,
227529,
301258,
309450,
276685,
309455,
276689,
309462,
301272,
194780,
309468,
309471,
301283,
317672,
317674,
325867,
309491,
227571,
309494,
243960,
276735,
227583,
227587,
276739,
276742,
227593,
227596,
325910,
309530,
342298,
211232,
317729,
276775,
211241,
325937,
325943,
211260,
260421,
276809,
285002,
276811,
235853,
235858,
276829,
276833,
391523,
276836,
293227,
276843,
293232,
276848,
186744,
211324,
227709,
285061,
366983,
317833,
178572,
285070,
285077,
227738,
317853,
276896,
317858,
342434,
285093,
317864,
276907,
235955,
276917,
293304,
293307,
293314,
309707,
293325,
129486,
317910,
293336,
235996,
317917,
293343,
358880,
276961,
227810,
293346,
276964,
293352,
236013,
293364,
301562,
293370,
317951,
309764,
301575,
121352,
293387,
236043,
342541,
113167,
309779,
317971,
309781,
277011,
55837,
227877,
227879,
293417,
227882,
309804,
293421,
105007,
236082,
23094,
277054,
219714,
129603,
301636,
318020,
301639,
301643,
277071,
285265,
399955,
309844,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
309871,
121458,
277106,
170619,
309885,
309888,
277122,
277128,
285320,
301706,
318092,
326285,
334476,
318094,
277136,
277139,
227992,
318108,
285340,
318110,
227998,
137889,
383658,
285357,
318128,
277170,
293555,
342707,
154292,
318132,
277173,
277177,
277181,
318144,
277187,
277191,
277194,
277196,
277201,
342745,
137946,
342747,
342749,
113378,
228069,
277223,
342760,
285417,
56043,
56045,
277232,
228081,
56059,
310015,
285441,
310020,
285448,
310029,
228113,
285459,
277273,
293659,
326430,
228128,
285474,
293666,
228135,
318248,
277291,
318253,
293677,
285489,
301876,
293685,
285494,
301880,
301884,
293696,
310080,
277317,
277322,
293706,
162643,
310100,
301911,
301913,
277337,
301921,
400236,
236397,
162671,
326514,
310134,
236408,
15224,
277368,
416639,
416640,
113538,
310147,
416648,
39817,
187274,
277385,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
293811,
293817,
293820,
203715,
326603,
342994,
276586,
293849,
293861,
228327,
228328,
318442,
228330,
228332,
326638,
277486,
351217,
318450,
293876,
293877,
285686,
302073,
121850,
293882,
302075,
244731,
285690,
293887,
277504,
277507,
277511,
293899,
277519,
293908,
302105,
293917,
293939,
318516,
277561,
277564,
310336,
293956,
277573,
228422,
293960,
310344,
277577,
277583,
203857,
293971,
310355,
310359,
236632,
277594,
138332,
277598,
203872,
277601,
285792,
310374,
203879,
310376,
228460,
318573,
203886,
187509,
285815,
367737,
285817,
302205,
285821,
392326,
285831,
253064,
294026,
302218,
285835,
162964,
384148,
187542,
302231,
285849,
302233,
285852,
302237,
285854,
285856,
302241,
277671,
302248,
64682,
277678,
294063,
294065,
302258,
277687,
294072,
318651,
294076,
277695,
318657,
244930,
302275,
130244,
302277,
228550,
302282,
310476,
302285,
302288,
310481,
302290,
203987,
302292,
302294,
310486,
302296,
384222,
310498,
285927,
318698,
302315,
195822,
228592,
294132,
138485,
228601,
204026,
228606,
64768,
310531,
285958,
138505,
228617,
318742,
277798,
130345,
113964,
285997,
384302,
285999,
113969,
318773,
318776,
286010,
417086,
286016,
302403,
294211,
384328,
294221,
146765,
294223,
326991,
179547,
146784,
302436,
294246,
327015,
310632,
327017,
351594,
351607,
310648,
310651,
310657,
351619,
294276,
310659,
327046,
253320,
310665,
318858,
310672,
351633,
310689,
130468,
228776,
277932,
310703,
310710,
130486,
310712,
310715,
302526,
228799,
302534,
310727,
64966,
245191,
163272,
302541,
302543,
310737,
228825,
163290,
310749,
310755,
187880,
310764,
286188,
310772,
40440,
212472,
40443,
286203,
40448,
228864,
286214,
228871,
302603,
65038,
302614,
286233,
302617,
302621,
286240,
146977,
187936,
187939,
40484,
294435,
40486,
286246,
294440,
40488,
294439,
294443,
40491,
294445,
278057,
310831,
245288,
40499,
40502,
212538,
40507,
40511,
40513,
228933,
327240,
40521,
286283,
40525,
40527,
212560,
400976,
228944,
40533,
147032,
40537,
40539,
40541,
278109,
40544,
40548,
40550,
40552,
286313,
40554,
286312,
310892,
40557,
40560,
294521,
343679,
294537,
310925,
286354,
278163,
302740,
122517,
278168,
179870,
327333,
229030,
278188,
302764,
278192,
319153,
278196,
302781,
319171,
302789,
294599,
278216,
294601,
302793,
343757,
212690,
319187,
278227,
286420,
229076,
286425,
319194,
278235,
301163,
278238,
229086,
294625,
294634,
302838,
319226,
286460,
278274,
302852,
278277,
302854,
294664,
311048,
352008,
319243,
311053,
302862,
319251,
294682,
278306,
188199,
294701,
278320,
319280,
319290,
229192,
302925,
188247,
188252,
237409,
294776,
360317,
294785,
327554,
360322,
40851,
294811,
237470,
319390,
40865,
319394,
294817,
294821,
311209,
180142,
343983,
294831,
188340,
40886,
294844,
294847,
393177,
294876,
294879,
294883,
393190,
311279,
278513,
237555,
278516,
311283,
278519,
237562
] |
ed629a86ef024d02f7c2995ce717a73261e696e2
|
baf1ed68be9f58ec0382ca6f8381599f7d722457
|
/PokemonMasterKitTests/PokemonMasterKitTests.swift
|
4577d45cdc69f2fe92b4d4fbe0805d6f500553f3
|
[
"MIT"
] |
permissive
|
starhoshi/PokemonMasterKit
|
e302077da3618bd23cb776dcb9421e0120259899
|
704d6083ba1b8fffaa49276fab0eb63abc3c9173
|
refs/heads/master
| 2021-08-24T07:05:06.977342 | 2017-12-08T14:49:53 | 2017-12-08T14:49:53 | 113,059,803 | 15 | 1 |
MIT
| 2017-12-06T13:56:49 | 2017-12-04T15:27:14 |
Swift
|
UTF-8
|
Swift
| false | false | 1,017 |
swift
|
//
// PokemonMasterKitTests.swift
// PokemonMasterKitTests
//
// Created by kensuke-hoshikawa on 2017/12/05.
// Copyright © 2017年 star__hoshi. All rights reserved.
//
import XCTest
@testable import PokemonMasterKit
class PokemonMasterKitTests: XCTestCase {
override func setUp() {
super.setUp()
// Put setup code here. This method is called before the invocation of each test method in the class.
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct results.
}
func testPerformanceExample() {
// This is an example of a performance test case.
self.measure {
// Put the code you want to measure the time of here.
}
}
}
|
[
313357,
278558,
239650,
16419,
229413,
292902,
204840,
227370,
223274,
233517,
155694,
229424,
229430,
180280,
325694,
286788,
315465,
311372,
315476,
223316,
280661,
278615,
307289,
315487,
237663,
45153,
309345,
280675,
227428,
280677,
313447,
131178,
194666,
278634,
288879,
299121,
284788,
223350,
233590,
280694,
131191,
237689,
292988,
131198,
215166,
292992,
194691,
227460,
280712,
215178,
235662,
311438,
278677,
278691,
233636,
299174,
233642,
284842,
278714,
223419,
295098,
299198,
299203,
280778,
282831,
280795,
227548,
229597,
301279,
286958,
180493,
282909,
299293,
278816,
233762,
217380,
278842,
315706,
307517,
287041,
139589,
280902,
319813,
6481,
305495,
6489,
323935,
285040,
242033,
313713,
199029,
246136,
246137,
311681,
227725,
240016,
178582,
190871,
61857,
285090,
61859,
246178,
289189,
299441,
61880,
283064,
278970,
342466,
127427,
127428,
291267,
278989,
281040,
326100,
278999,
176601,
188894,
287198,
279008,
160225,
279018,
311786,
291311,
281072,
279029,
291333,
287241,
279050,
283153,
303636,
291358,
180771,
244269,
283182,
283184,
236081,
234036,
23092,
279094,
70209,
70215,
281171,
285271,
66150,
111208,
279146,
281199,
295536,
287352,
301689,
279164,
279177,
152203,
230040,
303771,
205471,
285361,
303793,
299699,
299700,
342706,
166582,
289462,
314040,
287417,
158394,
285373,
287422,
154316,
287439,
279252,
96984,
289502,
279269,
285415,
246503,
342762,
230125,
289518,
129773,
279280,
312053,
199414,
154359,
230134,
299770,
205568,
242433,
295682,
299776,
295697,
291604,
234277,
283430,
279336,
289576,
262954,
295724,
353069,
285487,
301871,
164656,
303920,
262962,
230199,
293693,
281408,
295744,
318278,
353095,
283467,
201551,
301918,
295776,
293730,
349026,
230248,
177001,
308076,
400239,
246641,
207732,
209783,
246648,
209785,
279417,
177019,
113542,
287622,
228233,
228234,
56208,
308112,
234386,
293781,
324507,
310176,
310178,
283558,
289703,
279464,
293800,
236461,
293806,
353197,
304051,
189374,
353216,
19399,
213960,
316364,
330708,
50143,
326635,
203757,
289774,
183279,
287731,
277492,
295927,
304122,
234500,
277509,
322570,
234514,
140310,
230423,
197657,
281626,
189474,
300068,
238639,
300084,
312373,
203830,
308287,
300111,
234577,
296019,
234587,
304222,
281697,
302177,
281700,
285798,
322663,
300135,
228458,
207979,
279660,
281706,
15471,
285814,
300151,
279672,
285820,
300158,
150657,
285828,
279685,
222343,
302216,
185493,
238743,
283802,
119962,
296092,
302240,
306338,
300202,
279728,
238769,
283840,
279747,
283852,
279760,
290000,
189652,
279765,
279774,
304351,
298208,
359647,
298212,
304356,
279785,
228588,
298221,
234733,
298228,
302325,
234742,
292091,
216315,
234755,
292107,
173334,
339234,
382255,
298291,
300359,
304456,
294218,
234827,
224586,
296270,
234831,
238927,
296273,
314709,
283991,
222559,
292195,
294243,
284014,
279920,
296307,
181625,
290173,
306559,
306560,
179587,
298374,
368011,
112017,
234898,
306579,
224661,
282007,
318875,
282024,
279989,
210358,
292283,
300487,
296392,
306631,
280010,
310732,
302540,
64975,
222675,
210392,
228827,
286172,
280032,
144867,
187878,
280041,
282096,
306673,
306677,
280055,
300535,
288249,
286202,
290300,
286205,
302590,
290301,
294400,
230913,
282114,
306692,
306693,
296461,
282129,
308756,
282136,
282141,
306723,
286244,
194110,
288318,
280130,
282183,
218696,
288327,
228943,
286288,
280147,
290390,
300630,
239198,
157281,
282213,
317032,
310889,
222832,
314998,
247416,
294529,
239237,
286343,
229001,
290443,
239250,
229020,
298654,
282271,
282273,
282276,
229029,
298661,
40613,
40614,
40615,
282280,
290471,
298667,
286388,
286391,
282303,
286399,
280257,
280267,
302797,
9936,
212688,
302802,
286423,
280280,
278233,
18138,
278234,
67292,
278240,
153319,
239341,
282355,
282358,
313081,
229113,
286459,
194303,
194304,
282369,
288512,
67332,
280327,
280329,
300811,
278293,
282391,
284442,
286494,
282400,
313120,
247590,
282409,
284459,
294700,
282417,
296755,
280380,
280390,
280392,
304977,
307025,
413521,
18262,
216918,
307031,
280410,
284507,
300894,
237408,
284512,
284514,
296806,
276327,
282474,
288620,
292720,
282480,
313203,
300918,
194429,
333701,
67463,
282504,
110480,
184208,
282518,
282519,
214937,
214938,
294809,
298909,
294814,
300963,
292771,
294823,
298920,
284587,
292782,
290746,
294843,
98239,
214977,
294850,
280514,
163781,
280519,
344013,
301008,
153554,
194515,
298980,
292837,
294886,
317415,
296941,
278512,
311282,
282612,
292858,
290811
] |
fbcb6cae0bfcbf2d242311a576dbe39140c1626a
|
d690adaa90fefed3572f50838afb6534d19c44c4
|
/Smarte/LoginViewController.swift
|
acb442d00bd862c910b1929e2a3c1a0479dd5b06
|
[] |
no_license
|
rakesh111/SmartE
|
a053411e38d1be500f4da85008f49689d82cc2ef
|
40e50fbe38ed3b2f5e8517dbb14842d561c819d5
|
refs/heads/master
| 2021-01-10T04:53:54.714178 | 2015-12-14T06:11:03 | 2015-12-14T06:11:03 | 43,793,952 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 7,917 |
swift
|
//
// LoginViewController.swift
// Smarte
//
// Created by Rakesh on 06/10/15.
// Copyright (c) 2015 sinergia. All rights reserved.
//
import UIKit
import CoreData
import CoreLocation
var KScreenWidth = UIScreen.mainScreen().bounds.size.width
var KScreenHeight = UIScreen.mainScreen().bounds.size.height
//import CoreLocation
class LoginViewController: UIViewController,UITextFieldDelegate,NSURLConnectionDataDelegate,CLLocationManagerDelegate {
var logUsername : NSString!
var logPassword : NSString!
var logRespData : NSMutableData!
var locationManager : CLLocationManager!
var logActivityIndicatorView = UIActivityIndicatorView()
let region = CLBeaconRegion(proximityUUID: NSUUID(UUIDString: "B9407F30-F5F8-466E-AFF9-25556B57FE6D"), identifier: "Smarte")
init() {
super.init(nibName : "LoginViewController", bundle:nil)
}
required init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func viewDidLoad() {
super.viewDidLoad()
locationManager = CLLocationManager()
locationManager.delegate = self
if(CLLocationManager.authorizationStatus() != CLAuthorizationStatus.AuthorizedWhenInUse){
locationManager.requestWhenInUseAuthorization()
}
configurePasswordTxtField()
configureUsernameTxtField()
}
@IBOutlet weak var usernameTxtField: UITextField!
@IBOutlet weak var passwordTxtField: UITextField!
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
view.alpha = 1
}
@IBAction func logInBackButtonAction(sender: AnyObject) {
let viewControllers: [UIViewController] = self.navigationController!.viewControllers as! [UIViewController];
self.navigationController!.popToViewController(viewControllers[viewControllers.count
- 2], animated: true);
}
func textField(textField: UITextField, shouldChangeCharactersInRange range: NSRange, replacementString string: String) -> Bool {
let length = count(textField.text.utf16) + count(string.utf16)-range.length
return length <= 100
}
@IBAction func loginPush(sender : AnyObject) {
if ((count(usernameTxtField.text) == 0 ) || (count(passwordTxtField.text) == 0))
{
var alert = UIAlertController(title: "Smarte", message: "All fields are mandatory", preferredStyle: UIAlertControllerStyle.Alert)
alert.addAction(UIAlertAction(title: "Ok", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alert, animated: true, completion: nil)
}
else
{
logSetRequest()
}
}
override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
view.endEditing(true)
}
func configurePasswordTxtField(){
//passwordTxtField = UITextField()
passwordTxtField.secureTextEntry = true
passwordTxtField.delegate = self
}
func logSetRequest(){
var urlString = "http://192.168.1.167:8090/Attendance/login"
var url = NSURL(string: urlString)
var theRequest = NSMutableURLRequest(URL: url!)
theRequest.HTTPMethod = "POST"
var parameters = [ "email": usernameTxtField.text,"password": passwordTxtField.text] as Dictionary<String, String>
var err: NSError?
theRequest.HTTPBody = NSJSONSerialization.dataWithJSONObject(parameters, options: nil, error: &err) // pass dictionary to nsdata object and set it as request body
theRequest.addValue("application/json", forHTTPHeaderField: "Content-Type")
theRequest.addValue("application/json", forHTTPHeaderField: "Accept")
var connectRequest = NSURLConnection(request: theRequest, delegate: self)
logActivityIndicatorView = UIActivityIndicatorView(activityIndicatorStyle: UIActivityIndicatorViewStyle.WhiteLarge)
logActivityIndicatorView.color = UIColor.whiteColor()
self.view.addSubview(logActivityIndicatorView)
logActivityIndicatorView.frame = CGRectMake(KScreenWidth/2-15, KScreenHeight/2-15, 30, 30)
logActivityIndicatorView.startAnimating()
}
func connection(connection: NSURLConnection, didReceiveResponse response: NSURLResponse) {
NSLog("received response\(response)")
logRespData = NSMutableData()
}
func connection(connection: NSURLConnection, didReceiveData data: NSData) {
logRespData.appendData(data)
}
func connectionDidFinishLoading(connection: NSURLConnection) {
NSLog("\(logRespData)")
logActivityIndicatorView.stopAnimating()
var strData = NSString(data: logRespData, encoding: NSUTF8StringEncoding)
println("Body: \(strData)")
var err: NSError?
var myResponseData = NSJSONSerialization.JSONObjectWithData(logRespData, options: .MutableContainers, error: &err) as? NSDictionary
logUsername = usernameTxtField.text
logPassword = passwordTxtField.text
var error: NSError?
let fetchRequest = NSFetchRequest(entityName: "SmarteModel")
fetchRequest.predicate = NSPredicate(format: "emailId like %@ and password like %@",logUsername,logPassword)
var result : [SmarteModel]? = managedContext.executeFetchRequest(fetchRequest, error: nil) as? [SmarteModel]
var arr = NSMutableArray();
if let array = result {
for currentPerson in array as [SmarteModel] {
arr .addObject(currentPerson)
println(arr.valueForKey("emailId"))
println(arr.valueForKey("password"))
println(arr.valueForKey("firstName"))
println(arr.valueForKey("lastName"))
println(arr.valueForKey("phoneNo"))
}
}
if (arr.count>0) {
var logPushVC = LoginPageViewController()
logPushVC.logUsername = usernameTxtField.text
logPushVC.logPassword = passwordTxtField.text
self.navigationController?.pushViewController(logPushVC, animated: true)
view.alpha = 0
}
else
{
var alert = UIAlertController(title: "Smarte", message: " Invalid credentials! Please register to login", preferredStyle: UIAlertControllerStyle.Alert)
alert.addAction(UIAlertAction(title: "Ok", style: UIAlertActionStyle.Default, handler: nil))
self.presentViewController(alert, animated: true, completion: nil)
}
}
func connection(connection: NSURLConnection, didFailWithError error: NSError) {
NSLog("\(error)")
}
func configureUsernameTxtField(){
usernameTxtField.delegate = self
}
func locationManager(manager: CLLocationManager!, didRangeBeacons beacons: [AnyObject]!, inRegion region: CLBeaconRegion!) {
}
}
|
[
-1
] |
294f36e593bc7ca6eee99d7f1a0bb3aec9219f02
|
535021e016c810f993d00ba2ead38d196fd22a49
|
/Happyling/Environment.swift
|
8a076e03230425aee4925f3309950c070bfdd991
|
[] |
no_license
|
ajcancado/happyling.ios
|
d0a1e7f2efbe230546065096a5f3d635d1255928
|
209bcc79ba712f96d1ee17862b8c764c3e6a0a4e
|
refs/heads/master
| 2020-06-19T18:04:12.495494 | 2017-07-28T04:58:19 | 2017-07-28T04:58:19 | 74,840,802 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 583 |
swift
|
//
// Environment.swift
// PostBeyond
//
// Created by Heberti Almeida on 4/7/16.
// Copyright © 2016 PostBeyond Inc. All rights reserved.
//
import UIKit
enum Environment: Int {
case Development
case Production
}
extension Environment {
static var current: Environment {
get {
return Environment(rawValue: UserDefaults.standard.integer(forKey: Constants.SessionKeys.environment))!
}
set (val) {
UserDefaults.standard.set(val.hashValue, forKey: Constants.SessionKeys.environment)
}
}
}
|
[
-1
] |
5e205496affff68de483eefe14f6fd8ab7b74345
|
44475045fb5e66109ae0a35d72041081e61d377a
|
/PokeDexObjC/PokeDexObjC/Controllers/MVPokemonViewController.swift
|
61db4cee11cf2ac24e99035c96cf3dcd6ca2ecda
|
[] |
no_license
|
markyvarna/Pokedex_ObjC
|
c5d606cca4e1303084e136211e1a05a98b851764
|
1e6298d68dd94f913705c981e9b88a3848b13a5f
|
refs/heads/master
| 2020-03-28T13:13:23.999149 | 2018-09-11T20:28:39 | 2018-09-11T20:28:39 | 148,376,088 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 1,586 |
swift
|
//
// MVPokemonViewController.swift
// PokeDexObjC
//
// Created by Markus Varner on 9/11/18.
// Copyright © 2018 Markus Varner. All rights reserved.
//
import UIKit
class MVPokemonViewController: UIViewController {
//MARK: - Properties
@IBOutlet var nameLabel: UILabel!
@IBOutlet var idLabel: UILabel!
@IBOutlet var abilitiesLabel: UILabel!
@IBOutlet var pokeSearchBar: UISearchBar!
var pokemon: MVPokemon?
override func viewDidLoad() {
super.viewDidLoad()
pokeSearchBar.delegate = self
MVPokemonController.fetchPokemon(forSearchTerm: "Dewgong") { (pokemon) in
self.pokemon = pokemon
self.updateViews()
}
}
func updateViews() {
guard let pokemon = pokemon else {return}
DispatchQueue.main.async {
self.nameLabel.text = pokemon.name
self.idLabel.text = "ID: \(String(describing: pokemon.identifier))"
self.abilitiesLabel.text = "Abilities: \(String(describing: pokemon.abilities.joined(separator: ", ")))"
}
}
//MARK: - Actions
}
extension MVPokemonViewController: UISearchBarDelegate {
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
var search = pokeSearchBar.text
MVPokemonController.fetchPokemon(forSearchTerm: searchText) { (pokemon) in
self.pokemon = pokemon
DispatchQueue.main.async {
self.updateViews()
}
}
}
}
|
[
-1
] |
95697d28fc3fc381a0f57cc390c106af732250b8
|
66f77ff492e2c70ac0db72a82b74da2453465f1f
|
/igClone/HashTagApi.swift
|
eb890e491b1a63277947c7a3f557164d2033a2be
|
[] |
no_license
|
kaneli8759/igClone
|
5bf310ec16868f216ff29b2613a6535d9987fc0d
|
731a8d58ca3f707b400797af0f91211b83a0dc99
|
refs/heads/master
| 2020-08-30T02:25:12.297045 | 2019-10-29T07:43:05 | 2019-10-29T07:43:05 | 218,234,309 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 512 |
swift
|
//
// HashTagApi.swift
// igClone
//
// Created by 李宗政 on 10/23/19.
// Copyright © 2019 LiTusngCheng. All rights reserved.
//
import Foundation
import FirebaseDatabase
class HashTagApi {
var REF_HASHTAG = Database.database().reference().child("hashTag")
func fetchPosts(withTag tag: String, completion: @escaping (String) -> Void) {
REF_HASHTAG.child(tag.lowercased()).observe(.childAdded, with: {
snapshot in
completion(snapshot.key)
})
}
}
|
[
-1
] |
f59a87ba73e23b12db7cb7abcf699b2e7a23bf2d
|
e844848166deb9f4a68c75c45386bb112e9a7312
|
/MVPCatalogueApp/SceneDelegate.swift
|
10ee54c06af353fb9bf0b8c804b67ce310b6f9e1
|
[] |
no_license
|
tiagogomez/MVPCatalogueApp
|
682ba9f6a11fc29bc1e7cbb2a3432cef88aa3270
|
0e23ee0d429c54ebf41603dbf888857c5c8f170f
|
refs/heads/master
| 2023-07-07T20:52:41.163202 | 2021-07-23T18:22:38 | 2021-07-23T18:22:38 | 381,765,372 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,329 |
swift
|
//
// SceneDelegate.swift
// MVPCatalogueApp
//
// Created by Santiago Gómez Giraldo - Ceiba Software on 30/06/21.
//
import UIKit
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
guard let windowScene = (scene as? UIWindowScene) else { return }
let window = UIWindow(windowScene: windowScene)
let navigationController = UINavigationController()
let mainViewController = CatalogueElementsViewController()
navigationController.viewControllers = [mainViewController]
window.rootViewController = navigationController
window.makeKeyAndVisible()
self.window = window
}
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not necessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
func sceneWillResignActive(_ scene: UIScene) {
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}
func sceneWillEnterForeground(_ scene: UIScene) {
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}
func sceneDidEnterBackground(_ scene: UIScene) {
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
}
|
[
372481,
210696,
342921,
264585,
391691,
432272,
271382,
386074,
380333,
262702,
370611,
208312,
418367,
358340,
415301,
214088,
396874,
370254,
343631,
264661,
383323,
423393,
197987,
340452,
328933,
346340,
155241,
274281,
418540,
210422,
373499
] |
5d0e2aa65297f973470130564a3f9903bfd2e84b
|
e7cf2354a46472f2bf2aa784b5564a53d05a7e4e
|
/HighLightingDemo/AppDelegate.swift
|
bb158e322119d14d8370e51367ca6dda7a07d7fb
|
[] |
no_license
|
drscotthawley/highlighting-demo
|
fcab948f779fd19c772f0da1815808c83d1d3701
|
bc41c36619d2fc21278ee78949a8b182321ed292
|
refs/heads/master
| 2021-01-20T05:58:25.038470 | 2015-09-09T05:31:24 | 2015-09-09T05:31:24 | 41,840,699 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 6,124 |
swift
|
//
// AppDelegate.swift
// HighLightingDemo
//
// Created by Scott Hawley on 9/2/15.
// Copyright © 2015 Scott Hawley. All rights reserved.
//
import UIKit
import CoreData
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
return true
}
func applicationWillResignActive(application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
func applicationDidEnterBackground(application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
// Saves changes in the application's managed object context before the application terminates.
self.saveContext()
}
// MARK: - Core Data stack
lazy var applicationDocumentsDirectory: NSURL = {
// The directory the application uses to store the Core Data store file. This code uses a directory named "com.scotthawley.com.HighLightingDemo" in the application's documents Application Support directory.
let urls = NSFileManager.defaultManager().URLsForDirectory(.DocumentDirectory, inDomains: .UserDomainMask)
return urls[urls.count-1]
}()
lazy var managedObjectModel: NSManagedObjectModel = {
// The managed object model for the application. This property is not optional. It is a fatal error for the application not to be able to find and load its model.
let modelURL = NSBundle.mainBundle().URLForResource("HighLightingDemo", withExtension: "momd")!
return NSManagedObjectModel(contentsOfURL: modelURL)!
}()
lazy var persistentStoreCoordinator: NSPersistentStoreCoordinator = {
// The persistent store coordinator for the application. This implementation creates and returns a coordinator, having added the store for the application to it. This property is optional since there are legitimate error conditions that could cause the creation of the store to fail.
// Create the coordinator and store
let coordinator = NSPersistentStoreCoordinator(managedObjectModel: self.managedObjectModel)
let url = self.applicationDocumentsDirectory.URLByAppendingPathComponent("SingleViewCoreData.sqlite")
var failureReason = "There was an error creating or loading the application's saved data."
do {
try coordinator.addPersistentStoreWithType(NSSQLiteStoreType, configuration: nil, URL: url, options: nil)
} catch {
// Report any error we got.
var dict = [String: AnyObject]()
dict[NSLocalizedDescriptionKey] = "Failed to initialize the application's saved data"
dict[NSLocalizedFailureReasonErrorKey] = failureReason
dict[NSUnderlyingErrorKey] = error as NSError
let wrappedError = NSError(domain: "YOUR_ERROR_DOMAIN", code: 9999, userInfo: dict)
// Replace this with code to handle the error appropriately.
// abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
NSLog("Unresolved error \(wrappedError), \(wrappedError.userInfo)")
abort()
}
return coordinator
}()
lazy var managedObjectContext: NSManagedObjectContext = {
// Returns the managed object context for the application (which is already bound to the persistent store coordinator for the application.) This property is optional since there are legitimate error conditions that could cause the creation of the context to fail.
let coordinator = self.persistentStoreCoordinator
var managedObjectContext = NSManagedObjectContext(concurrencyType: .MainQueueConcurrencyType)
managedObjectContext.persistentStoreCoordinator = coordinator
return managedObjectContext
}()
// MARK: - Core Data Saving support
func saveContext () {
if managedObjectContext.hasChanges {
do {
try managedObjectContext.save()
} catch {
// Replace this implementation with code to handle the error appropriately.
// abort() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development.
let nserror = error as NSError
NSLog("Unresolved error \(nserror), \(nserror.userInfo)")
abort()
}
}
}
}
|
[
283144,
277514,
277003,
280085,
278042,
276510,
281635,
194085,
277030,
228396,
277038,
223280,
278577,
280132,
162394,
282203,
189025,
292450,
285796,
279148,
285296,
227455,
278656,
228481,
276611,
278665,
280205,
225934,
278674,
188050,
276629,
283803,
278687,
282274,
277154,
278692,
228009,
287402,
278700,
284845,
278705,
276149,
278711,
279223,
278718,
283838,
228544,
279753,
229068,
227533,
280273,
201439,
278751,
226031,
159477,
280312,
279304,
181516,
203532,
277262,
280335,
284432,
278289,
278801,
284434,
321296,
278287,
276755,
278808,
278297,
282910,
281379,
282915,
280370,
277306,
278844,
280382,
282433,
237382,
164166,
226634,
276313,
278877,
280415,
277344,
276321,
227687,
334185,
279405,
278896,
277363,
281972,
278902,
280439,
276347,
228220,
279422,
278916,
284557,
293773,
191374,
277395,
283028,
288147,
214934,
278943,
282016,
283554,
230320,
230322,
281011,
283058,
286130,
278971,
276923,
282558,
299970,
280007,
288200,
284617,
287689,
286157,
326096,
281041,
283091,
282585,
294390
] |
7f6dcd086c1f31dcc25bf01bc75b2bd2789b457a
|
beb7b54b4d31bd91a14c17869031bf04d1c93fea
|
/Authen_Firebase_SwiftUI/SceneDelegate.swift
|
56fd2e25d088721e3ad2238128589d6e2c9fbcdc
|
[] |
no_license
|
trinhttt/Authen_Firebase_SwiftUI
|
ccf317f00eca28cecc75ebd2c15e8851381ab48a
|
dc36ec34b84f2f11940bdd677f197d32f94561e2
|
refs/heads/main
| 2023-01-04T08:49:50.962625 | 2020-11-04T16:19:39 | 2020-11-04T16:19:39 | 306,885,535 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,844 |
swift
|
//
// SceneDelegate.swift
// Authen_Firebase_SwiftUI
//
// Created by Trinh Thai on 10/24/20.
// Copyright © 2020 Trinh Thai. All rights reserved.
//
import UIKit
import SwiftUI
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
// Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`.
// If using a storyboard, the `window` property will automatically be initialized and attached to the scene.
// This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead).
// Create the SwiftUI view that provides the window contents.
let loginState = AuthState.shared
let contentView = ContentView().environmentObject(loginState)
// Use a UIHostingController as window root view controller.
if let windowScene = scene as? UIWindowScene {
let window = UIWindow(windowScene: windowScene)
window.rootViewController = UIHostingController(rootView: contentView)
self.window = window
window.makeKeyAndVisible()
}
}
func sceneDidDisconnect(_ scene: UIScene) {
// Called as the scene is being released by the system.
// This occurs shortly after the scene enters the background, or when its session is discarded.
// Release any resources associated with this scene that can be re-created the next time the scene connects.
// The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead).
}
func sceneDidBecomeActive(_ scene: UIScene) {
// Called when the scene has moved from an inactive state to an active state.
// Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive.
}
func sceneWillResignActive(_ scene: UIScene) {
// Called when the scene will move from an active state to an inactive state.
// This may occur due to temporary interruptions (ex. an incoming phone call).
}
func sceneWillEnterForeground(_ scene: UIScene) {
// Called as the scene transitions from the background to the foreground.
// Use this method to undo the changes made on entering the background.
}
func sceneDidEnterBackground(_ scene: UIScene) {
// Called as the scene transitions from the foreground to the background.
// Use this method to save data, release shared resources, and store enough scene-specific state information
// to restore the scene back to its current state.
}
}
|
[
268299,
186388,
352294,
163892,
16444,
254020,
217158,
286804,
368736,
342113,
286833,
368753,
192640,
268435,
286880,
333989,
286889,
350411,
346317,
180432,
350417,
368854,
350423,
350426,
334047,
356580,
350449,
387314,
375027,
321787,
336124,
350459,
350462,
336129,
350465,
350469,
389381,
325895,
194829,
350477,
43279,
350481,
350487,
325915,
350491,
381212,
325918,
182559,
350494,
258333,
350500,
194854,
350505,
350510,
395567,
248112,
307507,
264502,
332098,
201030,
190797,
334162,
418135,
250201,
332126,
258399,
332130,
250211,
250217,
182642,
268669,
194942,
250239,
389507,
393613,
383375,
340380,
268702,
416159,
326059,
373169,
342453,
266688,
336326,
338387,
334306,
162289,
328178,
199165,
266757,
164362,
199182,
334359,
334364,
381483,
334386,
244309,
174696,
375401,
191085,
346736,
268922,
336517,
119432,
213642,
330384,
326291,
340639,
332455,
271018,
389806,
385714,
336568,
373450,
418508,
183006,
139998,
338661,
338665,
332521,
418540,
330479,
342769,
418555,
207620,
191240,
326417,
338712,
199455,
336681,
328498,
152371,
326452,
326455,
340792,
348983,
326463,
326468,
127815,
326474,
326479,
355151,
326486,
136024,
326494,
439138,
326503,
375657,
201580,
326508,
201583,
326511,
355185,
330612,
201589,
359296,
351105,
252801,
373635,
342921,
236432,
361361,
330643,
252838,
252846,
187335,
398280,
347082,
340940,
248799,
386023,
338928,
359411,
330750,
265215,
326669,
361490,
349203,
250915,
357411,
158759,
347178,
386102,
347208,
197708,
341072,
345172,
156762,
343132,
322660,
326764,
326767,
187503,
386168,
361599,
330886,
351366,
351382,
337048,
251045,
337072,
337076,
345268,
249015,
367801,
244934,
326858,
322763,
333003,
343246,
333010,
66783,
328933,
388348,
115973,
343307,
333079,
251161,
208167,
263464,
251190,
44343,
386366,
372035,
343366,
126279,
337224,
251211,
357710,
331089,
437588,
331094,
365922,
197987,
208228,
343399,
345449,
333164,
99692,
234867,
249210,
175484,
361869,
136591,
343453,
263585,
396706,
40358,
245163,
337330,
210357,
146878,
361922,
54724,
339401,
327116,
327118,
208338,
343509,
181717,
343545,
423424,
253445,
339464,
249355,
405017,
339504,
349748,
206397,
214594,
333387,
366173,
343650,
333415,
327276,
245358,
333423,
222831,
138865,
339572,
372354,
159375,
339602,
333472,
345766,
425639,
155323,
333499,
337601,
333512,
210632,
339664,
358100,
419543,
212700,
181982,
153311,
339696,
245495,
141052,
337661,
366349,
116512,
210720,
362274,
372533,
345916,
399166,
384831,
247618,
341835,
323404,
354124,
337743,
339795,
354132,
341852,
413539,
399208,
339818,
339827,
341877,
399222,
182136,
243584,
333699,
337814,
329625,
382898,
184245,
333767,
350153,
346059,
311244,
212945,
419810,
247790,
204785
] |
9707b7c2c8d79591881b9234a84048637848bf2b
|
88a8852c7f9ac4f9b29c0716586f8c47dfbd15dc
|
/ginkgo/ginkgo/Models/UserData.swift
|
ee321ba4dc5838ffc1a1ec75b91d7df83ea2722d
|
[] |
no_license
|
junsora/wako-map
|
b252fbc15763ccd9197c16d0f62add80d0d6ac2e
|
ddc6e57a6a7b35cb5893969c4eac857276de12b9
|
refs/heads/master
| 2022-12-07T05:34:11.659894 | 2020-09-06T22:47:00 | 2020-09-06T22:47:00 | 293,372,458 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 237 |
swift
|
//
// UserData.swift
// ginkgo
//
// Created by Junichi Shimazaki on 2019/02/16.
// Copyright © 2019 JSBlueSky. All rights reserved.
//
import Foundation
struct UserData{
var nickName: String
var email: String
}
|
[
-1
] |
590dfd3fb77321096162c3d4f9beee3632668153
|
4e9be40f2c6a7bfbbee96c0d812e5ff054d0db3c
|
/Frontend-swift/hackathonglobo/Cells/HeaderView/SectionHeaderViewModel.swift
|
eb2073c4607cb98810dbecc6b04acb846a0f2be1
|
[
"MIT"
] |
permissive
|
FelipeCardoso89/HackathonGlobo
|
71ef88aaf178505afb52d3664ac7867fedfa4a03
|
549907d5e2ac244c448087391ca4506ab0e6018c
|
refs/heads/master
| 2020-05-15T04:49:32.043893 | 2019-04-21T17:03:46 | 2019-04-21T17:03:46 | 182,095,110 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 280 |
swift
|
//
// SectionHeaderViewModel.swift
// hackathonglobo
//
// Created by Felipe Antonio Cardoso on 21/04/19.
// Copyright © 2019 Felipe Antonio Cardoso. All rights reserved.
//
import Foundation
struct SectionHeaderViewModel {
let title: String
let subtitle: String
}
|
[
-1
] |
710185c761c1d4c3aae42e2ac30b3f568b7b5d7d
|
2cefee561107b80b3b0add60ec95b20412edeac7
|
/HQPwaDemo/Thirds/SWWebView/SubstituteWKComponents/SWNavigationResponse.swift
|
0ea9e0a5fb6a0651c064a56a4f3e57435ac9da70
|
[] |
no_license
|
YanboCoder/HQPwaDemo
|
a512524cb8f741a83efe7c94c49cc79b67a8003f
|
c1d3e54beb9e51f93619c59aafe7bb5bd062e475
|
refs/heads/main
| 2023-03-16T19:23:46.823527 | 2021-03-18T02:51:23 | 2021-03-18T02:51:23 | 344,442,741 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 855 |
swift
|
import Foundation
import WebKit
// 跳转响应信息,用于制定响应策略
class SWNavigationResponse: WKNavigationResponse {
// 标记 webkit 是否可以显示媒体类型
fileprivate let _canShowMIMEType: Bool
override var canShowMIMEType: Bool {
return self._canShowMIMEType
}
// 标记是否能跳转到主框架
fileprivate let _isForMainFrame: Bool
override var isForMainFrame: Bool {
return self._isForMainFrame
}
// 响应体
fileprivate let _response: URLResponse
override var response: URLResponse {
return self._response
}
// 初始化方法
init(response: URLResponse, isForMainFrame: Bool, canShowMIMEType: Bool) {
self._response = response
self._isForMainFrame = isForMainFrame
self._canShowMIMEType = canShowMIMEType
}
}
|
[
-1
] |
9d3c4529564152772f684929dbd6bf7846da0672
|
be67733437029e42a5d32c218aa6582501a9a5e5
|
/1971/View/CollectionViewCell/PopularVideoCollectionViewCell.swift
|
2b75ef27564823988b166b79903f2585da0e3073
|
[] |
no_license
|
Nibir00795/1971
|
64410504da06dde594c74fec637f79ff0f243f9d
|
2df845d29ded37919b7e4789a8a89f4a1701db5d
|
refs/heads/master
| 2022-03-29T16:31:01.120814 | 2020-01-12T02:10:15 | 2020-01-12T02:10:15 | 227,610,249 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 375 |
swift
|
//
// PopularVideoCollectionViewCell.swift
// 1971
//
// Created by Mobioapp on 11/12/19.
// Copyright © 2019 Mobioapp. All rights reserved.
//
import UIKit
class PopularVideoCollectionViewCell: UICollectionViewCell {
@IBOutlet weak var videoImg: UIImageView!
@IBOutlet weak var videoTitleLabel: UILabel!
@IBOutlet weak var videoTimeLabel: UILabel!
}
|
[
-1
] |
c9fba56d9e4bc833b304b5670b59fcb82c0e1424
|
a47c11be3580655610cab14c3e5410c7b98c021f
|
/GameOfThrones/GameOfThrones/Networking/Managers & Endpoints/Resources.swift
|
d193ac02fb3845a6c936d5e6325cb3942d7029fe
|
[] |
no_license
|
yiras46/gameOfThrones
|
4d8cc1fb0b1c0d9ca0d2fc155551cfb04e96c7b6
|
dc942215edfbb7a2df6b61f48ceaf91c226e6af3
|
refs/heads/main
| 2023-06-10T14:29:47.536345 | 2021-07-07T09:20:27 | 2021-07-07T09:20:27 | 383,738,952 | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 226 |
swift
|
//
// Resources.swift
// GameOfThrones
//
// Created by José Luis Fernández Mazaira on 06/07/21.
//
import Foundation
struct Resources{
static let BOOKS = 1
static let HOUSES = 2
static let CHARACTERS = 3
}
|
[
-1
] |
e28d912485a4e0dd3fb3fa34af2f7f6677ef27da
|
7dc6465871a927c1d6667e96e2f5352d91bb1b7b
|
/PtahRenderer/TGALoader.swift
|
995c68c87219d2a5093188368d660efab206e542
|
[
"MIT"
] |
permissive
|
erwincoumans/PtahRenderer
|
4daa285ae950baabd8ad078333f3e9afa3c76aca
|
e81f6174c682e0126a211268025048e5983e2fa8
|
refs/heads/master
| 2020-11-29T15:30:05.944244 | 2017-03-28T08:30:23 | 2017-03-28T08:30:23 | null | 0 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 2,666 |
swift
|
//
// TGALoader.swift
// PtahRenderer
//
// Created by Simon Rodriguez on 08/03/2016.
// Copyright © 2016 Simon Rodriguez. All rights reserved.
//
import Foundation
/*
pixelDepth:
- 24: BGR
- 32: BGRA
- 8: B
imageType:
- 0: Issue
- 1: Color map
- 2: Uncompressed, true-color
- 3: B&W
*/
public final class TGALoader {
public static func writeTGA(pixels: [Pixel], width: Int, height: Int, path: String){
let data = NSMutableData()
var header = [UInt8](repeating: 0, count: 18)
header[2] = 2
header[8] = 0
header[9] = 0
header[10] = 0
header[11] = 0
header[12] = UInt8(width % 256)
header[13] = UInt8(width / 256)
header[14] = UInt8(height % 256)
header[15] = UInt8(height / 256)
header[16] = 24; // bits per pixel
header[17] = 0; // image descriptor:
data.append(header, length: 18)
let imageLength = width*height*3
let pixeldata = pixels.flatMap({[$0.b, $0.g, $0.r]})
data.append(pixeldata, length: imageLength)
let _ = data.write(toFile: path.hasSuffix(".tga") ? path: (path + ".tga") , atomically: true)
}
public static func loadTGA(path: String) -> (Int, Int, [Pixel]){
guard let data = try? Data(contentsOf: URL(fileURLWithPath: path)) else {
assertionFailure("Couldn't load the tga")
return (0, 0, [])
}
var header: [UInt8] = [UInt8](repeating: 0, count: 18)
data.copyBytes(to: &header, from:Range(uncheckedBounds: (lower: 0, upper: 18)))
let useColorMap = header[1] != 0
let imageType = Int(header[2])
if useColorMap || ([0, 1, 3].contains(imageType)) {
assertionFailure("Not a color TGA")
return (0, 0, [])
}
let IDLength = header[0]
let width = Int(header[13])*256 + Int(header[12])
let height = Int(header[15])*256 + Int(header[14])
let pixelDepth = header[16]
let lengthImage = Int(pixelDepth) * width * height / 8
let range = Range(uncheckedBounds: (lower: 18+Int(IDLength), upper: 18+Int(IDLength)+lengthImage))
var content: [UInt8] = [UInt8](repeating: 0, count: lengthImage)
data.copyBytes(to: &content, from: range)
var pixels: [Pixel]
if pixelDepth == 8 {
pixels = content.map({Pixel($0, $0, $0)})
} else {
pixels = [Pixel](repeating: Pixel(0), count: width * height)
if pixelDepth == 24 {
for i in 0..<(width * height){
pixels[i].r = content[3*i+2]
pixels[i].g = content[3*i+1]
pixels[i].b = content[3*i]
}
} else if pixelDepth == 32 {
for i in 0..<(width * height){
pixels[i].r = content[4*i+2]
pixels[i].g = content[4*i+1]
pixels[i].b = content[4*i]
pixels[i].a = content[4*i+3]
}
}
}
return (width, height, pixels)
}
}
|
[
-1
] |
ebe4c143abd78783008975fbed23eb55b0f2ac58
|
fb1430582b152f0f977601555e82031023850677
|
/AppForGirlFriend/SecondVC/QuarrelViewController.swift
|
11a7657c84ee8b791d14832116c392a921cea3dd
|
[] |
no_license
|
trunghieult1807/My-Present
|
685060c8ecaebf71e38a7a90bbb0efcda7e5c077
|
4022d20067388143500eec43b1761cfaca92540e
|
refs/heads/master
| 2021-02-25T15:27:14.975647 | 2020-03-11T15:07:34 | 2020-03-11T15:07:34 | 245,458,184 | 2 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 4,560 |
swift
|
//
// PlayingScreenViewController.swift
// My Present
//
// Created by Apple on 3/1/20.
// Copyright © 2020 Hieu Le. All rights reserved.
//
import UIKit
class QuarrelViewController: UIViewController {
@IBOutlet weak var bunnyview1: UIImageView!
@IBOutlet weak var bunnyview2: UIImageView!
@IBOutlet weak var bunnyview3: UIImageView!
@IBOutlet weak var bunnyview4: UIImageView!
@IBOutlet weak var bunnyview5: UIImageView!
@IBOutlet weak var speedSlider: UISlider!
@IBOutlet weak var speedStepper: UIStepper!
@IBOutlet weak var hopsPerSecond: UILabel!
@IBOutlet weak var toggleButton: UIButton!
@IBAction func toggleAnimation(_ sender: AnyObject) {
if(bunnyview1.isAnimating){
bunnyview1.stopAnimating()
bunnyview2.stopAnimating()
bunnyview3.stopAnimating()
bunnyview4.stopAnimating()
bunnyview5.stopAnimating()
toggleButton.setTitle("Scroll!!", for: UIControl.State.normal)
}
else{
bunnyview1.startAnimating()
bunnyview2.startAnimating()
bunnyview3.startAnimating()
bunnyview4.startAnimating()
bunnyview5.startAnimating()
toggleButton.setTitle("Stop。。。", for: UIControl.State.normal)
}
}
@IBAction func setSpeed(_ sender: AnyObject?) {
bunnyview1.animationDuration=TimeInterval(2.0-speedSlider.value)
bunnyview2.animationDuration=bunnyview1.animationDuration+TimeInterval(arc4random_uniform(10))/10
bunnyview3.animationDuration=bunnyview1.animationDuration+TimeInterval(arc4random_uniform(10))/10
bunnyview4.animationDuration=bunnyview1.animationDuration+TimeInterval(arc4random_uniform(10))/10
bunnyview5.animationDuration=bunnyview1.animationDuration+TimeInterval(arc4random_uniform(10))/10
bunnyview1.startAnimating()
bunnyview2.startAnimating()
bunnyview3.startAnimating()
bunnyview4.startAnimating()
bunnyview5.startAnimating()
toggleButton.setTitle("Stop。。。", for: UIControl.State.normal)
let hopRateString=String(format: "%1.2f hps", 1/(2-self.speedSlider.value))
hopsPerSecond.text=hopRateString
}
@IBAction func incrementSpeed(_ sender: AnyObject) {
speedSlider.value=Float(speedStepper.value)
setSpeed(nil)
}
override func viewDidLoad() {
super.viewDidLoad()
let hopAnimation:[UIImage]=[
UIImage(named: "frame-1")!,
UIImage(named: "frame-2")!,
UIImage(named: "frame-3")!,
UIImage(named: "frame-4")!,
UIImage(named: "frame-5")!,
UIImage(named: "frame-6")!,
UIImage(named: "frame-7")!,
UIImage(named: "frame-8")!,
UIImage(named: "frame-9")!,
UIImage(named: "frame-10")!,
UIImage(named: "frame-11")!,
UIImage(named: "frame-12")!,
UIImage(named: "frame-13")!,
UIImage(named: "frame-14")!,
UIImage(named: "frame-15")!,
UIImage(named: "frame-16")!,
UIImage(named: "frame-17")!,
UIImage(named: "frame-18")!,
UIImage(named: "frame-19")!,
UIImage(named: "frame-20")!
]
bunnyview1.animationImages=hopAnimation
bunnyview2.animationImages=hopAnimation
bunnyview3.animationImages=hopAnimation
bunnyview4.animationImages=hopAnimation
bunnyview5.animationImages=hopAnimation
bunnyview5.animationDuration=1.0
bunnyview4.animationDuration=1.0
bunnyview3.animationDuration=1.0
bunnyview2.animationDuration=1.0
bunnyview1.animationDuration=1.0
// Do any additional setup after loading the view.
}
override func viewDidAppear(_ animated: Bool) {
let generator = UINotificationFeedbackGenerator()
generator.notificationOccurred(.warning)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
}
|
[
-1
] |
051e512752229f6425304ddc54d122f63bceb8f8
|
306a3f46e4de7657266bb4a3fedb685964ee91ab
|
/shensuo/shensuo/Community/viewController/SSReleaseSendSuccessView.swift
|
2f2062f2a8e1101a93b99a7271c9443d8e23e01c
|
[] |
no_license
|
roninsy/qmxt
|
7570b673011ff3c3e8337d37f0a8b440be483c0c
|
af38523e40a6ceccae51061414559d51c6baaeac
|
refs/heads/main
| 2023-08-07T01:44:56.465123 | 2021-09-10T05:50:14 | 2021-09-10T05:50:14 | 404,937,316 | 1 | 0 | null | null | null | null |
UTF-8
|
Swift
| false | false | 5,810 |
swift
|
//
// SSReleaseSendSuccessView.swift
// shensuo
//
// Created by yang on 2021/6/25.
//
import UIKit
class SSReleaseSendSuccessView: SSBaseViewController {
var badges: SSNotesBadgesModel?
override func viewDidLoad() {
super.viewDidLoad()
buildUI()
// Do any additional setup after loading the view.
}
func buildUI() {
let topBgV = UIImageView.initWithName(imgName: "send_success_bg")
view.insertSubview(topBgV, belowSubview: navView)
topBgV.backgroundColor = bgColor
let bgH: CGFloat = screenWid / 414 * 257
topBgV.snp.makeConstraints { make in
make.leading.trailing.top.equalToSuperview()
make.height.equalTo(bgH)
}
navView.backBtnWithTitle(title: "")
navView.backgroundColor = .clear
navView.backBtn.setImage(UIImage.init(named: "back_write"), for: .normal)
self.dontBack = true
self.navView.backBtn.reactive.controlEvents(.touchUpInside).observeValues { btn in
DispatchQueue.main.async {
self.navigationController?.popToRootViewController(animated: false)
}
}
let tipB = UIButton.initTitle(title: "动态发布成功", fontSize: 28, titleColor: .white)
tipB.titleLabel?.font = .MediumFont(size: 28)
topBgV.addSubview(tipB)
tipB.snp.makeConstraints { make in
make.top.equalTo(navView.snp.bottom).offset(16)
make.centerX.equalToSuperview()
}
let tipIcon = UIImageView.initWithName(imgName: "send_success")
topBgV.addSubview(tipIcon)
tipIcon.snp.makeConstraints { make in
make.trailing.equalTo(tipB.snp.leading).offset(-10)
make.centerY.equalTo(tipB)
}
let badgeV = UIView.init()
badgeV.backgroundColor = .white
view.addSubview(badgeV)
badgeV.layer.cornerRadius = 6
badgeV.layer.masksToBounds = true
badgeV.snp.makeConstraints { make in
make.leading.equalTo(20)
make.trailing.equalTo(-20)
make.height.equalTo(316)
make.top.equalTo(topBgV.snp.bottom).offset(-30)
}
let titleL = UILabel.initSomeThing(title: "恭喜您获得1枚徽章", fontSize: 16, titleColor: color33)
badgeV.addSubview(titleL)
titleL.font = UIFont.MediumFont(size: 16)
titleL.snp.makeConstraints { make in
make.leading.top.equalTo(16)
}
let badgeIcon = UIImageView.init()
badgeV.addSubview(badgeIcon)
badgeIcon.kf.setImage(with: URL(string: badges?.badgeImageUrl ?? ""))
badgeIcon.snp.makeConstraints { make in
make.height.equalTo(152)
make.width.equalTo(167)
make.center.equalToSuperview()
}
let badgeName = UILabel.initSomeThing(title: badges?.badgeTypeName ?? "", fontSize: 14, titleColor: color33)
badgeV.addSubview(badgeName)
badgeName.snp.makeConstraints { make in
make.top.equalTo(badgeIcon.snp.bottom).offset(14)
make.centerY.equalToSuperview()
}
let goMy = UIButton.init()
goMy.reactive.controlEvents(.touchUpInside).observeValues { btn in
DispatchQueue.main.async {
let vc = SSPersionDetailViewController.init()
vc.cid = UserInfo.getSharedInstance().userId ?? ""
self.navigationController?.popToRootViewController(animated: false)
HQPush(vc: vc, style: .lightContent)
DispatchQueue.main.asyncAfter(deadline: .now() + 0.5) {
vc.segmentedView.defaultSelectedIndex = 0
vc.segmentedView.reloadData()
}
}
}
commonBtn(btn: goMy, title: "返回我的主页", titleColor: .white, bordColor: btnColor, bgColor: btnColor)
view.addSubview(goMy)
goMy.snp.makeConstraints { make in
make.leading.equalTo(badgeV)
make.top.equalTo(badgeV.snp.bottom).offset(24)
make.width.equalTo((screenWid - 85)/2)
make.height.equalTo(45)
}
let shareBtn = UIButton.init()
commonBtn(btn: shareBtn, title: "分享", titleColor: color33, bordColor: color33, bgColor: .white)
view.addSubview(shareBtn)
shareBtn.snp.makeConstraints { make in
make.trailing.equalTo(badgeV)
make.width.top.height.equalTo(goMy)
}
goMy.reactive.controlEvents(.touchUpInside).observe({[weak self] btn in
self?.tabBarController?.tabBar.isHidden = false
self?.tabBarController?.selectedIndex = 4
})
shareBtn.reactive.controlEvents(.touchUpInside).observe({[weak self] btn in
let vc = ShareVC()
vc.type = 2
vc.medalModel = self?.badges ?? SSNotesBadgesModel()
vc.setupMainView()
HQPush(vc: vc, style: .lightContent)
})
}
func commonBtn(btn: UIButton,title: String,titleColor: UIColor,bordColor: UIColor,bgColor: UIColor) {
btn.setTitle(title, for: .normal)
btn.setTitleColor(titleColor, for: .normal)
btn.backgroundColor = bgColor
btn.layer.cornerRadius = 22.5
btn.layer.masksToBounds = true
btn.layer.borderWidth = 0.5
btn.layer.borderColor = bordColor.cgColor
btn.titleLabel?.font = UIFont.systemFont(ofSize: 18)
}
}
|
[
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.