blob_id
stringlengths 40
40
| directory_id
stringlengths 40
40
| path
stringlengths 2
625
| content_id
stringlengths 40
40
| detected_licenses
sequencelengths 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
sequencelengths 1
9.02k
|
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
cc27e71b45e049c3675b992ee3e9c23882845268 | c93816abaea8d443e6344c9cdf852a7adf22e5f0 | /NavigationForiOS/BeaconLoggerController.swift | ea5c7a3ba0f55bc6e5f8a0c25471a56a7b2a7b47 | [] | no_license | tsukuba-pbl/PrepareNavigationFor_iOS | b020995286de477dfa9d7a6f1b2bfd2c4ef425f2 | 00ecf4ed4d4b2fa1f87bdc0b7fa1cdd71ac99dfa | refs/heads/develop | 2021-08-24T05:41:24.342162 | 2017-12-06T11:39:24 | 2017-12-06T11:39:24 | 107,985,400 | 1 | 0 | null | 2017-12-08T07:37:18 | 2017-10-23T13:23:13 | Swift | UTF-8 | Swift | false | false | 5,888 | swift | //
// BeaconLoggerController.swift
// NavigationForiOS
//
// Created by みなじゅん on 2017/09/08.
// Copyright © 2017年 UmeSystems. All rights reserved.
//
import Foundation
import UIKit
import AVFoundation
protocol BeaconLoggerVCDelegate {
func updateView()
}
class BeaconLoggerController : NSObject, AVSpeechSynthesizerDelegate{
var navigations : NavigationEntity = NavigationEntity()
var beaconManager : BeaconManager = BeaconManager()
var trainData : Array<Dictionary<Int, Int>> = []
var timer : Timer!
var getCounter = 0
var state = false
var delegate: BeaconLoggerVCDelegate?
var routeId = 1
let appDelegate = UIApplication.shared.delegate as! AppDelegate
var audioPlayerInstance : AVAudioPlayer! = nil // 再生するサウンドのインスタンス
/// イニシャライザ
///
/// - Parameters:
/// - navigations: 使用するビーコン情報の入ったナビゲーション情報
/// - delegate: デリゲート
/// - routeId: 観測を行う場所のroute id
init(navigations: NavigationEntity, delegate: BeaconLoggerVCDelegate){
//効果音の読み込み
// サウンドファイルのパスを生成
let soundFilePath = Bundle.main.path(forResource: "se2", ofType: "mp3")!
let sound:URL = URL(fileURLWithPath: soundFilePath)
// AVAudioPlayerのインスタンスを作成
do {
audioPlayerInstance = try AVAudioPlayer(contentsOf: sound, fileTypeHint:nil)
} catch {
SlackService.postError(error: "AVAudioPlayerインスタンス作成失敗", tag: "SpeechService")
}
// バッファに保持していつでも再生できるようにする
audioPlayerInstance.prepareToPlay()
//使用するビーコン情報を格納
self.navigations = navigations
//デリゲートの設定
self.delegate = delegate
//受信するビーコンの情報を与え、受信を開始する
beaconManager.startBeaconReceiver(navigations: self.navigations)
}
/// トレーニングデータの計測を開始する
func startBeaconLogger(routeId: Int){
//route idの設定
self.routeId = routeId
// 1秒ごとにビーコンの情報を取得する
getCounter = 0
//格納配列を初期化
trainData.removeAll()
//スレッドの開始
timer = Timer.scheduledTimer(timeInterval: 1, target: self, selector: #selector(self.getBeaconRssi), userInfo: nil, repeats: true)
state = true
}
//Loggerの状況を取得するメソッド
func getLoggerState() -> (state: Bool, counter: Int){
return (state, getCounter)
}
/// ビーコンの電波を受信するメソッド
/// tapStartButton内のスレッド呼び出しによって、1秒ごとに呼ばれる
func getBeaconRssi(){
//効果音をならす
audioPlayerInstance.play()
//取得した回数をカウント
getCounter += 1
//ビーコンの電波強度の計測
let receivedBeaconsRssiList = beaconManager.getReceivedBeaconsRssi()
//トレーニングデータに追加
trainData.append(receivedBeaconsRssiList)
//ビューを更新
//テスト実行時には、呼び出さない
#if DEBUG
if(TestService.isTesting() == false){
delegate?.updateView()
}
#else
delegate?.updateView()
#endif
}
/// 終了時に呼ぶ
func stopBeaconLogger(){
state = false
//テスト実行時には、呼び出さない
#if DEBUG
if(TestService.isTesting() == false){
//スレッドを終了させる
if(timer.isValid){
timer.invalidate()
}
//トレーニングデータを格納する
appDelegate.navigationDataEntity.addTrainData(routeId: appDelegate.currentRouteId!, trainData: trainData)
//トレーニングデータを送信する
//sendTrainData()
}
#else
//スレッドを終了させる
if(timer.isValid){
timer.invalidate()
}
//トレーニングデータを格納する
appDelegate.navigationDataEntity.addTrainData(routeId: appDelegate.currentRouteId!, trainData: trainData)
//トレーニングデータを送信する
//sendTrainData()
#endif
}
//トレーニングデータを外部に送信する
func sendTrainData(){
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd' 'HH:mm:ss"
let now = Date()
var message = "Beacon Logger Train Data \n Date: \(formatter.string(from: now))\n"
message += "route id, \(routeId)\n"
SlackService.postBeaconLog(log: message, tag: "Beacon Logger")
for value in self.getMessages() {
SlackService.postBeaconLog(log: value, tag: "Beacon Logger")
}
}
func getMessages() -> [String] {
var messageList = [String]()
var tmpMessage = ""
// message += "[\n"
for (key, i) in trainData.enumerated(){
tmpMessage += "\t[\n"
for j in navigations.getMinorIdList(){
tmpMessage += "\t\t{\"minorId\": \(j), \"rssi\": \(i[j] ?? -100)},\n"
}
tmpMessage += "\t],\n"
if key%10 == 0 {
messageList.append(tmpMessage)
tmpMessage = ""
}
}
// message += "],\n"
return messageList
}
}
| [
-1
] |
d441af8890f8d30034627001c1c6b4d5b19a9614 | bb788f6c7c0d96b3c56baf4265d35c4f4358e296 | /EmojiReader/EmojiReader/ViewController.swift | 851b44416a5a579048d8c52134673668bd7e9fe5 | [] | no_license | Filatov-Oleg/SwiftBook | 58ba91b55e0fb15effcf95daec4a8bf36b79b7ac | 522eb41e730fcaa8107f0800b404ae0fad7fc01d | refs/heads/master | 2023-04-23T03:48:05.858164 | 2021-05-10T08:58:21 | 2021-05-10T08:58:21 | 360,161,482 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 293 | swift | //
// ViewController.swift
// EmojiReader
//
// Created by Олег Филатов on 10.10.2020.
//
import UIKit
class ViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view.
}
}
| [
245024,
209953,
250212,
346918,
209963,
11920,
346065,
210043
] |
4e7807b276f32c2749cda17fa39393f97e9f85f5 | fa45f1cebf31f41d6380d0c6a9013f54a6189335 | /functional-reactive-intuition/Project/RFP/ReactiveViewController.swift | 175636639bc83b828f4a264badaf804a351a39c4 | [] | no_license | morgz/talks | 15e9f2c2612846cc697a90e2257fec2c71e770ae | 479453e03a1aa374a4e24bf6a654103e21e3d830 | refs/heads/master | 2020-12-25T11:15:17.966905 | 2016-02-17T13:28:52 | 2016-02-17T13:28:52 | 51,303,519 | 0 | 0 | null | 2016-02-08T14:45:55 | 2016-02-08T14:45:54 | null | UTF-8 | Swift | false | false | 2,666 | swift | //
// ViewController.swift
// RFP
//
// Created by Mark Aron Szulyovszky on 11/01/2016.
// Copyright © 2016 Mark Aron Szulyovszky. All rights reserved.
//
import UIKit
import RxSwift
import RxCocoa
class ReactiveViewController: UIViewController, SetStatus, GestureReactorDelegate {
@IBOutlet weak var draggableView: UIView!
@IBOutlet weak var statusLabel: UILabel!
@IBOutlet weak var centerXConstraint: NSLayoutConstraint! //For updating the position of the box when dragging
@IBOutlet weak var centerYConstraint: NSLayoutConstraint!
private var gestureReactor: GestureReactor = ReactiveGestureReactor(timerCreator: { interval in ReactiveTimerFactory.reactiveTimer(interval: interval) })
private let disposeBag = DisposeBag()
override func viewDidLoad() {
super.viewDidLoad()
gestureReactor.delegate = self
let pan = UIPanGestureRecognizer(target: self, action: "handlePan:")
pan.delegate = self
let rotate = UIRotationGestureRecognizer(target: self, action: "handleRotate:")
rotate.delegate = self
self.draggableView.gestureRecognizers = [pan, rotate]
///
///
/// Extra Code to manipulate move and rotate the subview.
///
/// Uses custom infix on CGPoint to '-' or '+' two together.
let panLocation = pan.rx_event.map { $0.locationInView(self.view) - self.view.center }
panLocation.map { $0.x }
.bindTo(self.centerXConstraint.rx_constant)
.addDisposableTo(self.disposeBag)
panLocation.map { $0.y }
.bindTo(self.centerYConstraint.rx_constant)
.addDisposableTo(self.disposeBag)
rotate.rx_event
.map { ($0 as! UIRotationGestureRecognizer).rotation }
.bindTo(self.draggableView.rx_rotate)
.addDisposableTo(self.disposeBag)
}
override func viewWillAppear(animated: Bool) {
super.viewWillAppear(animated)
self.setStatus("Status: Waiting for Rotate & Pan")
}
@objc private func handlePan(panGesture: UIPanGestureRecognizer) {
gestureReactor.handlePan(panGesture)
}
@objc private func handleRotate(rotationGesture: UIRotationGestureRecognizer) {
gestureReactor.handleRotate(rotationGesture)
}
func didStart() {
self.setStatus("Started")
}
func didTick(secondsLeft: Int) {
self.setStatus("Tick: \(secondsLeft)")
}
func didComplete() {
self.setStatus("Completed")
}
}
extension ReactiveViewController: UIGestureRecognizerDelegate {
func gestureRecognizer(gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWithGestureRecognizer otherGestureRecognizer: UIGestureRecognizer) -> Bool {
return true
}
}
| [
-1
] |
170ad47dcb8b5f07a47d01e18f81c755108089b2 | 657dfa75c013ec82172710a2499ff7d7b27e4edd | /WishLister/Item+CoreDataClass.swift | cb5e3766f7c5357d27175f2ecfa54d241b44655f | [] | no_license | ABahadori156/WishLister | 95ceeedc792096d90d7177a428f931248952a75b | 9b576a74cee4d2412d36fb4c3f4c857d1bfba921 | refs/heads/master | 2020-12-06T13:32:24.357304 | 2016-09-11T19:43:05 | 2016-09-11T19:43:05 | 67,572,191 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,167 | swift | //
// Item+CoreDataClass.swift
// WishLister
//
// Created by Pasha Bahadori on 9/6/16.
// Copyright © 2016 Pelican. All rights reserved.
//
import Foundation
import CoreData
public class Item: NSManagedObject {
public override func awakeFromInsert() {
super.awakeFromInsert()
self.created = NSDate()
}
}
func generateItemData() {
let item = Item(context: context)
let itemType = ItemType(context: context)
item.title = "MacBook Pro"
item.price = 1800.00
item.details = "I can't wait until the September event, I hope they release new MPBs"
itemType.type = "Electronics"
let item2 = Item(context: context)
let itemType2 = ItemType(context: context)
item2.title = "Bose Heaphones"
item2.price = 300.00
item2.details = "Noise cancelling technology"
itemType2.type = "Electronics"
let item3 = Item(context: context)
let itemType3 = ItemType(context: context)
item3.title = "Tesla Model S"
item3.price = 110000.00
item3.details = "Dream car"
itemType3.type = "Car"
appDelegate.saveContext()
}
| [
-1
] |
90c6f5795f7829156247ece7a1f9df2da165be76 | 5830060cfe0ba52ba2fdb6290669279fcc365846 | /Sounity/PlaylistTableViewCell.swift | 95b35dda7c2f4b2bf451cdeae8a63798dd747879 | [] | no_license | Raphabel/sounity-eip-2017 | 7ebf9b2d3895a9774cb3b4ada1d6f7c4493574e8 | 6bb7cab7dc6a14bdd6710c9ecf2205512e5581b1 | refs/heads/master | 2021-01-09T06:06:15.652697 | 2017-01-29T13:30:19 | 2017-01-29T13:30:19 | 80,914,726 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,133 | swift | //
// Playlist.swift
// Sounity
//
// Created by Alix FORNIELES on 01/09/16.
// Copyright © 2016 Degraeve Raphaël. All rights reserved.
//
import UIKit
import SwiftMoment
class PlaylistTableViewCell: UITableViewCell {
var playlist: Playlist! {
didSet {
self.updateUI()
}
}
// MARK: Properties
@IBOutlet weak var nameLabel: UILabel!
@IBOutlet weak var date: UILabel!
@IBOutlet weak var descriptionPlaylist: UILabel!
@IBOutlet weak var picturePlaylist: UIImageView!
func updateUI() {
nameLabel.text = playlist.name
descriptionPlaylist.text = playlist.desc
date.text = moment(playlist.create_date)?.format("YYYY-MM-dd HH:mm")
picturePlaylist.load.request(with: playlist.picture, onCompletion: { image, error, operation in
if (self.picturePlaylist.image?.size == nil) {
self.picturePlaylist.image = UIImage(named: "unknownCoverMusic")
}
MakeElementRounded().makeElementRounded(self.picturePlaylist, newSize: self.picturePlaylist.frame.width)
})
}
}
| [
-1
] |
74ba0e0d8d3cd959538bd287042b55fc57416626 | e7682b658428feaa17fa44e0dbd224c5a4013b20 | /WirexUtils/CryptoCurrency/Waves/WavesHelperUrls.swift | 0ff2663002fc19cb7e4bbad19e95d7c21ebc6716 | [
"MIT"
] | permissive | Darch1tect/WirexUtils | c01a5a80be2bf128cb29c401e21f3fa763c4886a | 2fec2339b2cbde781b9e4cb1646447cbe27dd4e9 | refs/heads/master | 2020-04-14T17:11:24.390456 | 2019-01-03T14:57:16 | 2019-01-03T14:57:16 | 163,972,137 | 0 | 0 | null | 2019-01-03T12:47:08 | 2019-01-03T12:47:08 | null | UTF-8 | Swift | false | false | 887 | swift | //
// WavesHelperUrls.swift
// WirexUtils
//
// Created by Yevhenii Hutorov on 11/28/18.
// Copyright © 2018 wirex. All rights reserved.
//
import Foundation
private enum WavesHelperUrlsConstants {
static let wavesBaseTxUrl = "https://wavesexplorer.com/tx/"
static let testnetBaseTxUrl = "https://testnet.wavesexplorer.com/tx/"
static let wavesScheme = "waves:"
}
public struct WavesHelperUrls {
public static func wavesTx(hash: String) -> URL? {
return URL(string: WavesHelperUrlsConstants.wavesBaseTxUrl + hash)
}
public static func wavesTestnetTx(hash: String) -> URL? {
return URL(string: WavesHelperUrlsConstants.testnetBaseTxUrl + hash)
}
public static func wavesLink(address: String) -> String {
return WavesHelperUrlsConstants.wavesScheme + address.trimmingCharacters(in: .whitespacesAndNewlines)
}
}
| [
-1
] |
8159652e6227bb68853a1bc1358ced02b5388804 | 21a4df2282119db5a3a99ad04dc7689268fa2b0a | /Carthage/Checkouts/tiny-kit/Sources/UIKit/Component/UIItemComponent.swift | 44cf33c6275a5f52f4258bba0c3bddae0bf20b58 | [
"MIT"
] | permissive | joseewu/JSAlertComponent | 53d73ee1e94dc639e2f9b5b6220cc4c400f30e17 | 4652784ce50d450ebc60c70369a28d23149ce0dd | refs/heads/master | 2021-01-24T10:16:20.205557 | 2018-02-27T00:21:14 | 2018-02-27T00:21:14 | 123,048,064 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,855 | swift | //
// UIItemComponent.swift
// TinyKit
//
// Created by Roy Hsu on 16/02/2018.
// Copyright © 2018 TinyWorld. All rights reserved.
//
// MARK: - UIItemComponent
public final class UIItemComponent<ItemView: UIView>: Component {
public final let itemView: ItemView
public init(
contentMode: ComponentContentMode = .automatic,
itemView: ItemView
) {
self.contentMode = contentMode
self.itemView = itemView
}
// MARK: Component
public final var contentMode: ComponentContentMode
public final func render() {
itemView.removeFromSuperview()
itemView.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(itemView)
NSLayoutConstraint.activate(
[
view
.leadingAnchor
.constraint(equalTo: itemView.leadingAnchor),
view
.topAnchor
.constraint(equalTo: itemView.topAnchor),
view
.trailingAnchor
.constraint(equalTo: itemView.trailingAnchor)
]
)
let size: CGSize
switch contentMode {
case .size(let width, let height):
size = CGSize(
width: width,
height: height
)
case .automatic:
size = itemView.bounds.size
}
view.frame.size = size
itemView.frame.size = size
NSLayoutConstraint.activate(
[
view
.bottomAnchor
.constraint(equalTo: itemView.bottomAnchor)
]
)
}
// MARK: ViewRenderable
public final let view = View()
public final var preferredContentSize: CGSize { return view.bounds.size }
}
| [
-1
] |
2b4b18d521822a7539ff191fbe898d600dab1f95 | 2e6f7efbe6771a001dd5a60f00c2fe3e15776493 | /Sources/ModelsR4/SubstanceReferenceInformation.swift | bf5adaab7305bf9a0da545402f0930bb7d2d9ec0 | [
"Apache-2.0"
] | permissive | lightspeedretail/FHIRModels | b84aab57d62d89f4f81fe3857110201ddf1a8b7e | c91e5bb74397136f79656bebdfda76a523d3e88c | refs/heads/main | 2023-01-13T11:10:12.661475 | 2020-11-18T00:06:17 | 2020-11-18T00:06:17 | 383,225,321 | 0 | 0 | Apache-2.0 | 2021-07-05T18:00:39 | 2021-07-05T18:00:38 | null | UTF-8 | Swift | false | false | 17,572 | swift | //
// SubstanceReferenceInformation.swift
// HealthSoftware
//
// Generated from FHIR 4.0.1-9346c8cc45 (http://hl7.org/fhir/StructureDefinition/SubstanceReferenceInformation)
// Copyright 2020 Apple Inc.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import FMCore
/**
Todo.
*/
open class SubstanceReferenceInformation: DomainResource {
override open class var resourceType: ResourceType { return .substanceReferenceInformation }
/// Todo
public var comment: FHIRPrimitive<FHIRString>?
/// Todo
public var gene: [SubstanceReferenceInformationGene]?
/// Todo
public var geneElement: [SubstanceReferenceInformationGeneElement]?
/// Todo
public var classification: [SubstanceReferenceInformationClassification]?
/// Todo
public var target: [SubstanceReferenceInformationTarget]?
/// Designated initializer taking all required properties
override public init() {
super.init()
}
/// Convenience initializer
public convenience init(
classification: [SubstanceReferenceInformationClassification]? = nil,
comment: FHIRPrimitive<FHIRString>? = nil,
contained: [ResourceProxy]? = nil,
`extension`: [Extension]? = nil,
gene: [SubstanceReferenceInformationGene]? = nil,
geneElement: [SubstanceReferenceInformationGeneElement]? = nil,
id: FHIRPrimitive<FHIRString>? = nil,
implicitRules: FHIRPrimitive<FHIRURI>? = nil,
language: FHIRPrimitive<FHIRString>? = nil,
meta: Meta? = nil,
modifierExtension: [Extension]? = nil,
target: [SubstanceReferenceInformationTarget]? = nil,
text: Narrative? = nil)
{
self.init()
self.classification = classification
self.comment = comment
self.contained = contained
self.`extension` = `extension`
self.gene = gene
self.geneElement = geneElement
self.id = id
self.implicitRules = implicitRules
self.language = language
self.meta = meta
self.modifierExtension = modifierExtension
self.target = target
self.text = text
}
// MARK: - Codable
private enum CodingKeys: String, CodingKey {
case classification
case comment; case _comment
case gene
case geneElement
case target
}
/// Initializer for Decodable
public required init(from decoder: Decoder) throws {
let _container = try decoder.container(keyedBy: CodingKeys.self)
// Decode all our properties
self.classification = try [SubstanceReferenceInformationClassification](from: _container, forKeyIfPresent: .classification)
self.comment = try FHIRPrimitive<FHIRString>(from: _container, forKeyIfPresent: .comment, auxiliaryKey: ._comment)
self.gene = try [SubstanceReferenceInformationGene](from: _container, forKeyIfPresent: .gene)
self.geneElement = try [SubstanceReferenceInformationGeneElement](from: _container, forKeyIfPresent: .geneElement)
self.target = try [SubstanceReferenceInformationTarget](from: _container, forKeyIfPresent: .target)
try super.init(from: decoder)
}
/// Encodable
public override func encode(to encoder: Encoder) throws {
var _container = encoder.container(keyedBy: CodingKeys.self)
// Encode all our properties
try classification?.encode(on: &_container, forKey: .classification)
try comment?.encode(on: &_container, forKey: .comment, auxiliaryKey: ._comment)
try gene?.encode(on: &_container, forKey: .gene)
try geneElement?.encode(on: &_container, forKey: .geneElement)
try target?.encode(on: &_container, forKey: .target)
try super.encode(to: encoder)
}
// MARK: - Equatable & Hashable
public override func isEqual(to _other: Any?) -> Bool {
guard let _other = _other as? SubstanceReferenceInformation else {
return false
}
guard super.isEqual(to: _other) else {
return false
}
return classification == _other.classification
&& comment == _other.comment
&& gene == _other.gene
&& geneElement == _other.geneElement
&& target == _other.target
}
public override func hash(into hasher: inout Hasher) {
super.hash(into: &hasher)
hasher.combine(classification)
hasher.combine(comment)
hasher.combine(gene)
hasher.combine(geneElement)
hasher.combine(target)
}
}
/**
Todo.
*/
open class SubstanceReferenceInformationClassification: BackboneElement {
/// Todo
public var domain: CodeableConcept?
/// Todo
public var classification: CodeableConcept?
/// Todo
public var subtype: [CodeableConcept]?
/// Todo
public var source: [Reference]?
/// Designated initializer taking all required properties
override public init() {
super.init()
}
/// Convenience initializer
public convenience init(
classification: CodeableConcept? = nil,
domain: CodeableConcept? = nil,
`extension`: [Extension]? = nil,
id: FHIRPrimitive<FHIRString>? = nil,
modifierExtension: [Extension]? = nil,
source: [Reference]? = nil,
subtype: [CodeableConcept]? = nil)
{
self.init()
self.classification = classification
self.domain = domain
self.`extension` = `extension`
self.id = id
self.modifierExtension = modifierExtension
self.source = source
self.subtype = subtype
}
// MARK: - Codable
private enum CodingKeys: String, CodingKey {
case classification
case domain
case source
case subtype
}
/// Initializer for Decodable
public required init(from decoder: Decoder) throws {
let _container = try decoder.container(keyedBy: CodingKeys.self)
// Decode all our properties
self.classification = try CodeableConcept(from: _container, forKeyIfPresent: .classification)
self.domain = try CodeableConcept(from: _container, forKeyIfPresent: .domain)
self.source = try [Reference](from: _container, forKeyIfPresent: .source)
self.subtype = try [CodeableConcept](from: _container, forKeyIfPresent: .subtype)
try super.init(from: decoder)
}
/// Encodable
public override func encode(to encoder: Encoder) throws {
var _container = encoder.container(keyedBy: CodingKeys.self)
// Encode all our properties
try classification?.encode(on: &_container, forKey: .classification)
try domain?.encode(on: &_container, forKey: .domain)
try source?.encode(on: &_container, forKey: .source)
try subtype?.encode(on: &_container, forKey: .subtype)
try super.encode(to: encoder)
}
// MARK: - Equatable & Hashable
public override func isEqual(to _other: Any?) -> Bool {
guard let _other = _other as? SubstanceReferenceInformationClassification else {
return false
}
guard super.isEqual(to: _other) else {
return false
}
return classification == _other.classification
&& domain == _other.domain
&& source == _other.source
&& subtype == _other.subtype
}
public override func hash(into hasher: inout Hasher) {
super.hash(into: &hasher)
hasher.combine(classification)
hasher.combine(domain)
hasher.combine(source)
hasher.combine(subtype)
}
}
/**
Todo.
*/
open class SubstanceReferenceInformationGene: BackboneElement {
/// Todo
public var geneSequenceOrigin: CodeableConcept?
/// Todo
public var gene: CodeableConcept?
/// Todo
public var source: [Reference]?
/// Designated initializer taking all required properties
override public init() {
super.init()
}
/// Convenience initializer
public convenience init(
`extension`: [Extension]? = nil,
gene: CodeableConcept? = nil,
geneSequenceOrigin: CodeableConcept? = nil,
id: FHIRPrimitive<FHIRString>? = nil,
modifierExtension: [Extension]? = nil,
source: [Reference]? = nil)
{
self.init()
self.`extension` = `extension`
self.gene = gene
self.geneSequenceOrigin = geneSequenceOrigin
self.id = id
self.modifierExtension = modifierExtension
self.source = source
}
// MARK: - Codable
private enum CodingKeys: String, CodingKey {
case gene
case geneSequenceOrigin
case source
}
/// Initializer for Decodable
public required init(from decoder: Decoder) throws {
let _container = try decoder.container(keyedBy: CodingKeys.self)
// Decode all our properties
self.gene = try CodeableConcept(from: _container, forKeyIfPresent: .gene)
self.geneSequenceOrigin = try CodeableConcept(from: _container, forKeyIfPresent: .geneSequenceOrigin)
self.source = try [Reference](from: _container, forKeyIfPresent: .source)
try super.init(from: decoder)
}
/// Encodable
public override func encode(to encoder: Encoder) throws {
var _container = encoder.container(keyedBy: CodingKeys.self)
// Encode all our properties
try gene?.encode(on: &_container, forKey: .gene)
try geneSequenceOrigin?.encode(on: &_container, forKey: .geneSequenceOrigin)
try source?.encode(on: &_container, forKey: .source)
try super.encode(to: encoder)
}
// MARK: - Equatable & Hashable
public override func isEqual(to _other: Any?) -> Bool {
guard let _other = _other as? SubstanceReferenceInformationGene else {
return false
}
guard super.isEqual(to: _other) else {
return false
}
return gene == _other.gene
&& geneSequenceOrigin == _other.geneSequenceOrigin
&& source == _other.source
}
public override func hash(into hasher: inout Hasher) {
super.hash(into: &hasher)
hasher.combine(gene)
hasher.combine(geneSequenceOrigin)
hasher.combine(source)
}
}
/**
Todo.
*/
open class SubstanceReferenceInformationGeneElement: BackboneElement {
/// Todo
public var type: CodeableConcept?
/// Todo
public var element: Identifier?
/// Todo
public var source: [Reference]?
/// Designated initializer taking all required properties
override public init() {
super.init()
}
/// Convenience initializer
public convenience init(
element: Identifier? = nil,
`extension`: [Extension]? = nil,
id: FHIRPrimitive<FHIRString>? = nil,
modifierExtension: [Extension]? = nil,
source: [Reference]? = nil,
type: CodeableConcept? = nil)
{
self.init()
self.element = element
self.`extension` = `extension`
self.id = id
self.modifierExtension = modifierExtension
self.source = source
self.type = type
}
// MARK: - Codable
private enum CodingKeys: String, CodingKey {
case element
case source
case type
}
/// Initializer for Decodable
public required init(from decoder: Decoder) throws {
let _container = try decoder.container(keyedBy: CodingKeys.self)
// Decode all our properties
self.element = try Identifier(from: _container, forKeyIfPresent: .element)
self.source = try [Reference](from: _container, forKeyIfPresent: .source)
self.type = try CodeableConcept(from: _container, forKeyIfPresent: .type)
try super.init(from: decoder)
}
/// Encodable
public override func encode(to encoder: Encoder) throws {
var _container = encoder.container(keyedBy: CodingKeys.self)
// Encode all our properties
try element?.encode(on: &_container, forKey: .element)
try source?.encode(on: &_container, forKey: .source)
try type?.encode(on: &_container, forKey: .type)
try super.encode(to: encoder)
}
// MARK: - Equatable & Hashable
public override func isEqual(to _other: Any?) -> Bool {
guard let _other = _other as? SubstanceReferenceInformationGeneElement else {
return false
}
guard super.isEqual(to: _other) else {
return false
}
return element == _other.element
&& source == _other.source
&& type == _other.type
}
public override func hash(into hasher: inout Hasher) {
super.hash(into: &hasher)
hasher.combine(element)
hasher.combine(source)
hasher.combine(type)
}
}
/**
Todo.
*/
open class SubstanceReferenceInformationTarget: BackboneElement {
/// All possible types for "amount[x]"
public enum AmountX: Hashable {
case quantity(Quantity)
case range(Range)
case string(FHIRPrimitive<FHIRString>)
}
/// Todo
public var target: Identifier?
/// Todo
public var type: CodeableConcept?
/// Todo
public var interaction: CodeableConcept?
/// Todo
public var organism: CodeableConcept?
/// Todo
public var organismType: CodeableConcept?
/// Todo
/// One of `amount[x]`
public var amount: AmountX?
/// Todo
public var amountType: CodeableConcept?
/// Todo
public var source: [Reference]?
/// Designated initializer taking all required properties
override public init() {
super.init()
}
/// Convenience initializer
public convenience init(
amount: AmountX? = nil,
amountType: CodeableConcept? = nil,
`extension`: [Extension]? = nil,
id: FHIRPrimitive<FHIRString>? = nil,
interaction: CodeableConcept? = nil,
modifierExtension: [Extension]? = nil,
organism: CodeableConcept? = nil,
organismType: CodeableConcept? = nil,
source: [Reference]? = nil,
target: Identifier? = nil,
type: CodeableConcept? = nil)
{
self.init()
self.amount = amount
self.amountType = amountType
self.`extension` = `extension`
self.id = id
self.interaction = interaction
self.modifierExtension = modifierExtension
self.organism = organism
self.organismType = organismType
self.source = source
self.target = target
self.type = type
}
// MARK: - Codable
private enum CodingKeys: String, CodingKey {
case amountQuantity
case amountRange
case amountString; case _amountString
case amountType
case interaction
case organism
case organismType
case source
case target
case type
}
/// Initializer for Decodable
public required init(from decoder: Decoder) throws {
let _container = try decoder.container(keyedBy: CodingKeys.self)
// Decode all our properties
var _t_amount: AmountX? = nil
if let amountQuantity = try Quantity(from: _container, forKeyIfPresent: .amountQuantity) {
if _t_amount != nil {
throw DecodingError.dataCorruptedError(forKey: .amountQuantity, in: _container, debugDescription: "More than one value provided for \"amount\"")
}
_t_amount = .quantity(amountQuantity)
}
if let amountRange = try Range(from: _container, forKeyIfPresent: .amountRange) {
if _t_amount != nil {
throw DecodingError.dataCorruptedError(forKey: .amountRange, in: _container, debugDescription: "More than one value provided for \"amount\"")
}
_t_amount = .range(amountRange)
}
if let amountString = try FHIRPrimitive<FHIRString>(from: _container, forKeyIfPresent: .amountString, auxiliaryKey: ._amountString) {
if _t_amount != nil {
throw DecodingError.dataCorruptedError(forKey: .amountString, in: _container, debugDescription: "More than one value provided for \"amount\"")
}
_t_amount = .string(amountString)
}
self.amount = _t_amount
self.amountType = try CodeableConcept(from: _container, forKeyIfPresent: .amountType)
self.interaction = try CodeableConcept(from: _container, forKeyIfPresent: .interaction)
self.organism = try CodeableConcept(from: _container, forKeyIfPresent: .organism)
self.organismType = try CodeableConcept(from: _container, forKeyIfPresent: .organismType)
self.source = try [Reference](from: _container, forKeyIfPresent: .source)
self.target = try Identifier(from: _container, forKeyIfPresent: .target)
self.type = try CodeableConcept(from: _container, forKeyIfPresent: .type)
try super.init(from: decoder)
}
/// Encodable
public override func encode(to encoder: Encoder) throws {
var _container = encoder.container(keyedBy: CodingKeys.self)
// Encode all our properties
if let _enum = amount {
switch _enum {
case .quantity(let _value):
try _value.encode(on: &_container, forKey: .amountQuantity)
case .range(let _value):
try _value.encode(on: &_container, forKey: .amountRange)
case .string(let _value):
try _value.encode(on: &_container, forKey: .amountString, auxiliaryKey: ._amountString)
}
}
try amountType?.encode(on: &_container, forKey: .amountType)
try interaction?.encode(on: &_container, forKey: .interaction)
try organism?.encode(on: &_container, forKey: .organism)
try organismType?.encode(on: &_container, forKey: .organismType)
try source?.encode(on: &_container, forKey: .source)
try target?.encode(on: &_container, forKey: .target)
try type?.encode(on: &_container, forKey: .type)
try super.encode(to: encoder)
}
// MARK: - Equatable & Hashable
public override func isEqual(to _other: Any?) -> Bool {
guard let _other = _other as? SubstanceReferenceInformationTarget else {
return false
}
guard super.isEqual(to: _other) else {
return false
}
return amount == _other.amount
&& amountType == _other.amountType
&& interaction == _other.interaction
&& organism == _other.organism
&& organismType == _other.organismType
&& source == _other.source
&& target == _other.target
&& type == _other.type
}
public override func hash(into hasher: inout Hasher) {
super.hash(into: &hasher)
hasher.combine(amount)
hasher.combine(amountType)
hasher.combine(interaction)
hasher.combine(organism)
hasher.combine(organismType)
hasher.combine(source)
hasher.combine(target)
hasher.combine(type)
}
}
| [
-1
] |
2f6744bfc65308d45141cae205bfca87dc1c4469 | 60b20d82310752b2130d0d16040897568ed8ac67 | /inventoryManagement/ViewControllers/FIndAProductVC.swift | af20b39c3b3a1b1c7d05cbdacc6d5a002ab2eee8 | [] | no_license | Sushobhitbuiltbyblank/InventoryManagement | 2efa8c4ce4310b696ff4e441a1a2518c43fe5e62 | 2ae5e811e36e6a24752590abd6f098c5776a7ef7 | refs/heads/master | 2020-12-31T00:55:04.612785 | 2017-02-01T07:03:37 | 2017-02-01T07:03:37 | 80,595,521 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,168 | swift | //
// FIndAProductVC.swift
// inventoryManagement
//
// Created by Sushobhit_BuiltByBlank on 1/31/17.
// Copyright © 2017 sushobhit. All rights reserved.
//
import UIKit
class FIndAProductVC: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
self.setUpUI()
// Do any additional setup after loading the view.
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
func setUpUI()
{
self.navigationItem.leftBarButtonItem = UIBarButtonItem.init(image: UIImage(named: "sliderMenu"), style: .plain, target: self, action: #selector(toggleLeft))
self.navigationItem.leftBarButtonItem?.tintColor = UIColor.black
}
/*
// 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.
}
*/
}
| [
288331,
288332,
282109
] |
d9a64e1d331e1aee0492f604f9f9a89e0b265f82 | c5019abfa2844f8fd12ba77e38e54228ed8d93f6 | /Package.swift | 9ff6a55f8309f3735c42c8eaf45590f560b68002 | [
"MIT"
] | permissive | sean-williams24/FoodForPlates | f2d5fbced45de9308b876dc276693c8990dff16f | 6e4c50d9efcd3d7643b81876c46912902c7ff216 | refs/heads/master | 2022-12-22T09:42:53.149303 | 2020-09-23T08:44:12 | 2020-09-23T08:44:12 | 210,835,261 | 2 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,165 | swift | // swift-tools-version:5.1
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "EastLondonGuide",
products: [
// Products define the executables and libraries produced by a package, and make them visible to other packages.
.library(
name: "EastLondonGuide",
targets: ["EastLondonGuide"]),
],
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/contentful/contentful.swift", .upToNextMajor(from: "5.0.0"))
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "EastLondonGuide",
dependencies: []),
.testTarget(
name: "EastLondonGuideTests",
dependencies: ["EastLondonGuide"]),
]
)
| [
324608,
340484,
415748,
304657,
35346,
237593,
154138,
369691,
192028,
217118,
159263,
425505,
201762,
224295,
159271,
352807,
140330,
201771,
372779,
201773,
402986,
102447,
321584,
201775,
201777,
321590,
33336,
321598,
242239,
173122,
389700,
159303,
339016,
389705,
187466,
151111,
332367,
254035,
341075,
327255,
296024,
385112,
384092,
395359,
160864,
261220,
374373,
345190,
139366,
258151,
205930,
66668,
194668,
362606,
373359,
333424,
2161,
192626,
431731,
298612,
2165,
253045,
273525,
339573,
346745,
2173,
201853,
339072,
245376,
160898,
2179,
204420,
339075,
339078,
357000,
204425,
201866,
339081,
339090,
258708,
339093,
330389,
162966,
176794,
380058,
2205,
44192,
393379,
2212,
343204,
334503,
248488,
315563,
222381,
258733,
336559,
240310,
108215,
173752,
225979,
256188,
222400,
225985,
357568,
153283,
389316,
315584,
211655,
66762,
66765,
159439,
256720,
253649,
339667,
366292,
385237,
266456,
340697,
352991,
317666,
411879,
177384,
211186,
337650,
194808,
353017,
205050,
379128,
356604,
388856,
393979,
395512,
425724,
425728,
388865,
388867,
162564,
388868,
388870,
374022,
208137,
343308,
249101,
136461,
347417,
321819,
150811,
336670,
259360,
311584,
342306,
334115,
201507,
255782,
52520,
248106,
325932,
341807,
328500,
388918,
188727,
255800,
388922,
377150,
250175,
388930,
244555,
325451,
323407,
384848,
134482,
339800,
253789,
341853,
253793,
244580,
211813,
246116,
357222,
431973,
251240,
253801,
391526,
253805,
21871,
151919,
1905,
243570,
260978,
337271,
388474,
249211,
153128,
299394,
420230,
43400,
373131,
349583,
215442,
355224,
1946,
1947,
355228,
321435,
1950,
200602,
1952,
355233,
1955,
1957,
354214,
1960,
1963,
222123,
258475,
355243,
305585,
235957,
1976,
201144,
398776,
326591,
329151,
136129,
344514,
324040,
432587,
1996,
1998,
373198,
340945,
184787,
338388,
380372,
2006,
45015,
2008,
363478,
2011,
262620,
319457,
241122,
208354,
416228,
380902,
164333,
347124,
247797,
411133
] |
847a972ef86101d69f43b70f2e47b0ba09410118 | 23d8a66cdc022d5664d92e4f9f2c72b524679b76 | /EventProject/EventProject/EventManager.swift | 76277adef64360668670e6af602c6329d5097524 | [] | no_license | Benny-iPhone/morning_ios_sep_2016 | 5538e6246bbadc6a1f2e8e2ac0a099a0fd6c0fb0 | ce9f7251b7e2d0876026403ca92b44db0f6c0e4e | refs/heads/master | 2021-01-12T13:58:39.747720 | 2016-12-26T09:39:32 | 2016-12-26T09:39:32 | 69,259,518 | 1 | 1 | null | null | null | null | UTF-8 | Swift | false | false | 1,424 | swift | //
// EventManager.swift
// EventProject
//
// Created by Benny Davidovitz on 26/12/2016.
// Copyright © 2016 xcoder.solutions. All rights reserved.
//
import UIKit
import EventKit
typealias EventManagerCompletion = (Error?) -> Void
class EventManager: NSObject {
static let manager = EventManager()
let store : EKEventStore
override init() {
store = EKEventStore()
super.init()
}
func addEvent(with name : String, startingAt startDate : Date, endingAt endDate : Date? = nil, completion : @escaping EventManagerCompletion){
store.requestAccess(to: .event, completion: {granted, error in
guard granted else {
completion(error)
return
}
let event = EKEvent(eventStore: self.store)
event.title = name
event.startDate = startDate
event.endDate = endDate ?? startDate.addingTimeInterval(3600) //hour
event.calendar = self.store.defaultCalendarForNewEvents
do {
try self.store.save(event, span: .thisEvent)
DispatchQueue.main.async {
completion(nil)
}
} catch {
DispatchQueue.main.async {
completion(error)
}
}
})
}
}
| [
-1
] |
3813a7324915f2868683059b9bd7a85fffdc1088 | 796c340370a37f9726e42bafc03804014e50e2f8 | /iOS/Pods/Kanna/Source/libxml/libxmlParserOption.swift | 3816e437cfe9a45d096a37cec4223c0629386b93 | [
"MIT"
] | permissive | igeorge0902/Gateway | 56066ef1e193b1595c21f4a01ed46329e7032da8 | 0a5e373816ef0651f92af87e9355632559f69129 | refs/heads/master | 2023-04-28T04:27:40.961787 | 2017-04-19T13:30:46 | 2017-04-19T13:30:46 | 55,803,511 | 0 | 1 | NOASSERTION | 2023-04-17T03:54:12 | 2016-04-08T19:12:22 | JavaScript | UTF-8 | Swift | false | false | 4,839 | swift | /**@file libxmlParserOption.swift
Kanna
Copyright (c) 2015 Atsushi Kiwaki (@_tid_)
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 libxml2
/*
Libxml2HTMLParserOptions
*/
public struct Libxml2HTMLParserOptions : OptionSetType {
public typealias RawValue = UInt
private var value: UInt = 0
init(_ value: UInt) { self.value = value }
private init(_ opt: htmlParserOption) { self.value = UInt(opt.rawValue) }
public init(rawValue value: UInt) { self.value = value }
public init(nilLiteral: ()) { self.value = 0 }
public static var allZeros: Libxml2HTMLParserOptions { return .init(0) }
static func fromMask(raw: UInt) -> Libxml2HTMLParserOptions { return .init(raw) }
public var rawValue: UInt { return self.value }
static let STRICT = Libxml2HTMLParserOptions(0)
static let RECOVER = Libxml2HTMLParserOptions(HTML_PARSE_RECOVER)
static let NODEFDTD = Libxml2HTMLParserOptions(HTML_PARSE_NODEFDTD)
static let NOERROR = Libxml2HTMLParserOptions(HTML_PARSE_NOERROR)
static let NOWARNING = Libxml2HTMLParserOptions(HTML_PARSE_NOWARNING)
static let PEDANTIC = Libxml2HTMLParserOptions(HTML_PARSE_PEDANTIC)
static let NOBLANKS = Libxml2HTMLParserOptions(HTML_PARSE_NOBLANKS)
static let NONET = Libxml2HTMLParserOptions(HTML_PARSE_NONET)
static let NOIMPLIED = Libxml2HTMLParserOptions(HTML_PARSE_NOIMPLIED)
static let COMPACT = Libxml2HTMLParserOptions(HTML_PARSE_COMPACT)
static let IGNORE_ENC = Libxml2HTMLParserOptions(HTML_PARSE_IGNORE_ENC)
}
/*
Libxml2XMLParserOptions
*/
public struct Libxml2XMLParserOptions: OptionSetType {
public typealias RawValue = UInt
private var value: UInt = 0
init(_ value: UInt) { self.value = value }
private init(_ opt: xmlParserOption) { self.value = UInt(opt.rawValue) }
public init(rawValue value: UInt) { self.value = value }
public init(nilLiteral: ()) { self.value = 0 }
public static var allZeros: Libxml2XMLParserOptions { return .init(0) }
static func fromMask(raw: UInt) -> Libxml2XMLParserOptions { return .init(raw) }
public var rawValue: UInt { return self.value }
static let STRICT = Libxml2XMLParserOptions(0)
static let RECOVER = Libxml2XMLParserOptions(XML_PARSE_RECOVER)
static let NOENT = Libxml2XMLParserOptions(XML_PARSE_NOENT)
static let DTDLOAD = Libxml2XMLParserOptions(XML_PARSE_DTDLOAD)
static let DTDATTR = Libxml2XMLParserOptions(XML_PARSE_DTDATTR)
static let DTDVALID = Libxml2XMLParserOptions(XML_PARSE_DTDVALID)
static let NOERROR = Libxml2XMLParserOptions(XML_PARSE_NOERROR)
static let NOWARNING = Libxml2XMLParserOptions(XML_PARSE_NOWARNING)
static let PEDANTIC = Libxml2XMLParserOptions(XML_PARSE_PEDANTIC)
static let NOBLANKS = Libxml2XMLParserOptions(XML_PARSE_NOBLANKS)
static let SAX1 = Libxml2XMLParserOptions(XML_PARSE_SAX1)
static let XINCLUDE = Libxml2XMLParserOptions(XML_PARSE_XINCLUDE)
static let NONET = Libxml2XMLParserOptions(XML_PARSE_NONET)
static let NODICT = Libxml2XMLParserOptions(XML_PARSE_NODICT)
static let NSCLEAN = Libxml2XMLParserOptions(XML_PARSE_NSCLEAN)
static let NOCDATA = Libxml2XMLParserOptions(XML_PARSE_NOCDATA)
static let NOXINCNODE = Libxml2XMLParserOptions(XML_PARSE_NOXINCNODE)
static let COMPACT = Libxml2XMLParserOptions(XML_PARSE_COMPACT)
static let OLD10 = Libxml2XMLParserOptions(XML_PARSE_OLD10)
static let NOBASEFIX = Libxml2XMLParserOptions(XML_PARSE_NOBASEFIX)
static let HUGE = Libxml2XMLParserOptions(XML_PARSE_HUGE)
static let OLDSAX = Libxml2XMLParserOptions(XML_PARSE_OLDSAX)
static let IGNORE_ENC = Libxml2XMLParserOptions(XML_PARSE_IGNORE_ENC)
static let BIG_LINES = Libxml2XMLParserOptions(XML_PARSE_BIG_LINES)
}
| [
295800,
319845,
135701
] |
0c99e735b50c2c7745595a5b5f655f44ebc39087 | 642aef60e4ed4dfde2f136864cbc3244e42a03ac | /Glastometer/IconBadge.swift | de93adb43173a29261d35da648038de8e2460924 | [] | no_license | mohsinalimat/iOS-Countdown-Timer | 1f13723c2c366dbb80d12e11e05f5bb23c563953 | 1a3e3dd5a7c20c9b5a0a2324feb85474f3f0b5f4 | refs/heads/master | 2021-06-12T08:46:36.167825 | 2017-01-15T21:51:48 | 2017-01-15T21:51:48 | 114,760,761 | 1 | 0 | null | 2017-12-19T12:07:09 | 2017-12-19T12:07:08 | null | UTF-8 | Swift | false | false | 4,400 | swift | //
// IconBadge.swift
// Glastometer
//
// This class handles everything to do with setting the apps icon badge - including local notification to
// update the badge when the app is not running.
//
// Created by Joe on 27/10/2014.
// Copyright (c) 2014 Joe. All rights reserved.
//
import Foundation
import UIKit
open class IconBadge
{
let thisCountdown = CountdownCalculator()
var defaults: UserDefaults = UserDefaults(suiteName: "group.glastometer.com")!
let MAXIMUM_NOTIFICATIONS = 365
func setBadge()
{
//create an oject of UIApplication, must remember to 'import UIKit' as we're not in a ViewController.
let application: UIApplication = UIApplication.shared
// Get the icon badge switch state from NSUserDefaults
let showIconBadge = SavedSettings().showIconBadge //defaults.objectForKey("showIconBadge") as? Bool
if (showIconBadge)
{
// Get the target date from NSUserDefaults
let targetDate = SavedSettings().targetDate //defaults.objectForKey("targetDate") as? String!
thisCountdown.Config(targetDate)
application.cancelAllLocalNotifications()
application.scheduledLocalNotifications = localNotificationsStartingTomorrow()
// Set the icon badge
//application.applicationIconBadgeNumber = thisCountdown.RemainingDays().days
application.applicationIconBadgeNumber = thisCountdown.RemainingDaysForBadge()
}
else
{
//Cancel all local notifications and set icon badge to 0 (hidden)
application.cancelAllLocalNotifications()
application.applicationIconBadgeNumber = 0 //Hide the badge if this option is turned off.
}
}
func localNotificationsStartingTomorrow() -> [UILocalNotification]
{
var localNotifications: [UILocalNotification] = []
//var daysRemaining: Int = thisCountdown.RemainingDays().days
let daysRemaining: Int = thisCountdown.RemainingDaysForBadge()
let date: Date = Date()
for i in 1..<MAXIMUM_NOTIFICATIONS {
//for var i = 1; i < MAXIMUM_NOTIFICATIONS; i += 1 {
let notification: UILocalNotification = UILocalNotification()
//Set the badge number for this notification
notification.applicationIconBadgeNumber = daysRemaining - i
//Create a firedate of midnight for this notification
let components = DateComponents()
(components as NSDateComponents).setValue(i, forComponent: NSCalendar.Unit.day);
var notificationFireDate = (Calendar.current as NSCalendar).date(byAdding: components, to: date, options: NSCalendar.Options(rawValue: 0))
notificationFireDate = (Calendar.current as NSCalendar).date(bySettingHour: 0, minute: 0, second: 0, of: notificationFireDate!, options: NSCalendar.Options())
NSLog("\(notificationFireDate) \(daysRemaining - i)")
//Set the fire date
notification.fireDate = notificationFireDate
//Add this notification to the array of notification to be returned from this function
localNotifications.append(notification)
//Stop adding notifications when the days remaining count reaches 0
if (daysRemaining - i == 0)
{
//i = MAXIMUM_NOTIFICATIONS
break
}
}
return localNotifications
}
//--- Test function to set the icon badge to the current time in HHmm - used to test frequency of BackgroundFetchIntervalMinimum
func testBackgroundFetch()
{
let now = Date()
let formatter = DateFormatter()
formatter.dateFormat = "HHmm"
formatter.string(from: now)
var myTime:Int
myTime = Int(formatter.string(from: now))!
let application: UIApplication = UIApplication.shared
application.applicationIconBadgeNumber = myTime
}
}
/*
//Notification called every 3 seconds
var notification: UILocalNotification = UILocalNotification()
notification.applicationIconBadgeNumber = i
notification.fireDate = NSDate(timeIntervalSinceNow: (NSTimeInterval)(1 + (3 * i)))
*/
| [
-1
] |
3e844b7ce5822cd26178d486dc762ffe8a83f720 | 5381b82de9177c1bce5de8469be45ad58cee6c8b | /qh001/qh001/Class/HomeModule/Views/WQBooksCell.swift | 1639323a8f667088b7e167713a048d674a363994 | [] | no_license | i5xia0/jianzhi | d9f38e997f98c206aeb32b429bfa8ea99c660775 | 1bdf7fa2333b5d0733b7f7cef3e4700c2cdb6c53 | refs/heads/main | 2023-04-09T02:55:32.754803 | 2021-04-22T07:24:29 | 2021-04-22T07:24:29 | 360,095,723 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 495 | swift | //
// WQBooksCell.swift
// qh001
//
// Created by linke50 on 4/22/21.
//
import UIKit
class WQBooksCell: UICollectionViewCell {
@IBOutlet weak var imageV: UIImageView!
@IBOutlet weak var titleLab: UILabel!
func setData(model:WQBookModel){
imageV.kf.setImage(with: URL(string: model.image!))
titleLab.text = model.title
}
override func awakeFromNib() {
super.awakeFromNib()
// Initialization code
self.cornerAll(10)
}
}
| [
-1
] |
58c182e202f0a61909412b5f122f1a802e9df12a | 25ddb4ce25a3293ec1b4f544c54d5defb65dc912 | /Cube Timer/StatisticsTVC.swift | 59719a84fa28df14295c5dd0f1b866c09089ffcc | [] | no_license | erkyy/Cube-Timer | 74c5440e81d2f8471b17d20718a9a6825e5dbdb7 | 89e3b021193e3495c40cfe72695737c8009523de | refs/heads/master | 2021-01-21T17:41:29.970780 | 2017-06-02T08:52:23 | 2017-06-02T08:52:23 | 91,265,176 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 5,761 | swift | //
// StatisticsTVC.swift
// Cube Timer
//
// Created by Erik Myhrberg on 2017-05-19.
// Copyright © 2017 Erik. All rights reserved.
//
import UIKit
class StatisticsTVC: UITableViewController, UITextFieldDelegate {
var stringArray = [String]()
var row = 0
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(true)
tableView.reloadData()
}
override func viewDidLoad() {
super.viewDidLoad()
let editBtn = editButtonItem
editBtn.tintColor = UIColor(red: 0.12, green: 0.12, blue: 0.12, alpha: 1)
self.navigationItem.rightBarButtonItem = editBtn
}
func averageOf(_ of: Int) -> String {
var result = "--"
if GlobalTimes.times.count >= of {
let lastOfSlice: ArraySlice<Double> = GlobalTimes.model.suffix(of)
let resultDouble = Array(lastOfSlice).reduce(0, +) / Double(of)
let resultDoubleRounded = Double(round(100*resultDouble)/100)
result = String(resultDoubleRounded)
if resultDouble > 60.0 {
let seconds = resultDouble.truncatingRemainder(dividingBy: 60)
let secondsRounded = Double(round(100*seconds)/100)
let minutes: Int? = Int((resultDouble / 60).truncatingRemainder(dividingBy: 60))
result = "\(minutes!):\(secondsRounded)"
if minutes != nil {
if seconds < 10.0 {
result = "\(minutes!):0\(secondsRounded)"
}
}
}
}
return result
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
if indexPath.section == 0 {
let averageCell = UITableViewCell(style: .default, reuseIdentifier: TableViewCellIdentifier.averageCell)
let averageTextHeader = ["Average of 5", "Average of 12"]
var averageTimesLabels = [averageOf(5), averageOf(12)]
averageCell.textLabel?.text = averageTextHeader[indexPath.row]
averageCell.textLabel?.font = UIFont(name: "AvenirNext-Regular", size: 17)
averageCell.textLabel?.textColor = UIColor.init(red: 20/255, green: 20/255, blue: 20/255, alpha: 1)
averageCell.isUserInteractionEnabled = false
let averageTimeLabel = UILabel(frame: CGRect(x: averageCell.frame.width - 120, y: 0, width: 160, height: averageCell.frame.height))
averageTimeLabel.text = averageTimesLabels[indexPath.row]
averageTimeLabel.textAlignment = .right
averageTimeLabel.font = UIFont(name: "AvenirNext-Medium", size: 18)
averageTimeLabel.textColor = UIColor.init(red: 50/255, green: 50/255, blue: 50/255, alpha: 1)
averageCell.addSubview(averageTimeLabel)
return averageCell
}
let allCell = UITableViewCell(style: .default, reuseIdentifier: TableViewCellIdentifier.allCell)
allCell.accessoryType = .disclosureIndicator
allCell.textLabel?.text = GlobalTimes.times[indexPath.row]
allCell.textLabel?.textColor = UIColor.init(red: 50/255, green: 50/255, blue: 50/255, alpha: 1)
allCell.textLabel?.font = UIFont(name: "AvenirNext-Medium", size: 18)
return allCell
}
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
row = indexPath.row
performSegue(withIdentifier: SegueIdentifier.toTimeDetailVC, sender: row)
tableView.deselectRow(at: indexPath, animated: true)
}
override func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCellEditingStyle, forRowAt indexPath: IndexPath) {
if editingStyle == .delete {
guard var timesKey = UserDefaults.standard.stringArray(forKey: Key.times) else { return }
GlobalTimes.times.remove(at: indexPath.row)
GlobalTimes.date.remove(at: indexPath.row)
GlobalTimes.scramble.remove(at: indexPath.row)
GlobalTimes.time.remove(at: indexPath.row)
GlobalTimes.model.remove(at: indexPath.row)
timesKey.remove(at: indexPath.row)
tableView.deleteRows(at: [indexPath], with: .automatic)
}
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if section == 0 {
return 2
}
return GlobalTimes.times.count
}
override func numberOfSections(in tableView: UITableView) -> Int {
return 2
}
override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
if section == 0 {
return "Average"
}
return "All"
}
override func tableView(_ tableView: UITableView, canEditRowAt indexPath: IndexPath) -> Bool {
if indexPath.section == 0 {
return false
}
return true
}
override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
if segue.identifier == SegueIdentifier.toTimeDetailVC {
if let dest = segue.destination as? TimeDetailVC {
dest.row = sender as! Int
}
}
setupBackButton()
}
func setupBackButton() {
navigationController?.navigationBar.tintColor = UIColor(red: 0.12, green: 0.12, blue: 0.12, alpha: 1)
}
}
| [
-1
] |
0c7fe4d3b4c29348b99fe7b6f7c025bdff90b706 | efcb73b59bee87a3fb6269410509a53cbd473ef1 | /Twitter4Birdz/User.swift | 4b23a6a58b1c2bbd8895ff5e7414b5352a313322 | [
"Apache-2.0"
] | permissive | toastking/twitter4birdz | 925a005a935d4185df8827cf53ef575ddf7e6e26 | 20ed419a84a8efe150ec81b55abe5a33d56a2590 | refs/heads/master | 2021-01-10T02:44:04.124175 | 2016-03-06T01:10:42 | 2016-03-06T01:10:42 | 52,249,140 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,535 | swift | //
// User.swift
// Twitter4Birdz
//
// Created by Matt on 2/23/16.
// Copyright © 2016 Matt Del Signore. All rights reserved.
//
import UIKit
class User: NSObject {
static let userDidLogoutStr = "UserDidLogout"
var name:NSString?
var screenName: NSString?
var profileUrl: NSURL?
var profileHeaderUrl: NSURL?
var profileDescription: NSString?
var dictionary: NSDictionary!
var tweetsCount: Int?
var followerCount: Int?
var followingCount: Int?
init(dictionary: NSDictionary) {
name = dictionary["name"] as? String
screenName = dictionary["screen_name"]as? String
let profileUrlString = dictionary["profile_image_url_https"] as? String
let profileHeaderString = dictionary["profile_background_image_url_https"] as? String
profileDescription = dictionary["description"] as? String
self.dictionary = dictionary
if let profileUrlString = profileUrlString{
profileUrl = NSURL(string: profileUrlString)
}
if let profileHeaderString = profileHeaderString{
profileHeaderUrl = NSURL(string: profileHeaderString)
}
tweetsCount = dictionary["statuses_count"] as? Int
followerCount = dictionary["follower_count"] as? Int
followingCount = dictionary["friends_count"] as? Int
}
static var cUser : User?
class var currentUser: User?{
get {
if cUser == nil{
let defaults = NSUserDefaults.standardUserDefaults()
let currentUserData = defaults.objectForKey("currentUser") as? NSData
if let currentUserData = currentUserData{
let dictionary = try! NSJSONSerialization.JSONObjectWithData(currentUserData, options: [])
cUser = User(dictionary: dictionary as! NSDictionary)
}
}
return cUser
}
set(user) {
cUser = user
let defaults = NSUserDefaults.standardUserDefaults()
if let user = user{
let data = try! NSJSONSerialization.dataWithJSONObject(user.dictionary, options: [])
defaults.setObject(data, forKey: "currentUser")
}else{
//store the nil in storage
defaults.setObject(nil, forKey: "currentUser")
}
//save the object
defaults.synchronize()
}
}
}
| [
-1
] |
3078b4083c193a4dfa003e471d8ee6d38ad8cf42 | 5190e003ad09dbdd75a47b587aa717786b440139 | /Party/CreatePartyViewController.swift | 3ef5523a4a90cbf3e55415bd4384740bea9d5bd2 | [] | no_license | kristinaSipka/Party | 4752cdba2b5a2fba6b04852550187360c10b68dd | d072dc5f509a1c44dcec48f4b07d3c24d3c18ea2 | refs/heads/master | 2020-04-22T11:01:41.509142 | 2019-02-12T13:59:15 | 2019-02-12T13:59:15 | 170,325,245 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 350 | swift | //
// ViewController.swift
// Party
//
// Created by mac on 2/11/19.
// Copyright © 2019 Kristina. All rights reserved.
//
import UIKit
class CreatePartyViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
}
| [
327555,
398203,
356742,
384145,
391441,
375576,
384153,
399130,
258589,
254494,
254495,
436128,
254497,
155551,
397091,
351400,
356652,
319284,
383797,
396725,
402616,
397114,
111292,
384447,
266816,
360903,
359368,
437582,
330960,
146645,
399958,
402524,
362845,
332513,
399201,
384103,
374122,
352876,
349297,
210674,
320506,
361595
] |
3b66cda02bd414d3f5619cfb7c0d71ba38a4f00e | 861a48b47cca096dc6d44dc17b05e72505b9311d | /hw3/SceneDelegate.swift | f70e44e515e455b34301db668312cf247588aab5 | [] | no_license | yoyo178134/hw3 | 8e2446fc16c05417ae43cbc9206cd223d684cf65 | 2d06c98f285f71d2a902d481b941f5f01a79c359 | refs/heads/master | 2022-04-27T11:14:31.532040 | 2020-05-01T10:40:47 | 2020-05-01T10:40:47 | 260,434,752 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,753 | swift | //
// SceneDelegate.swift
// hw3
//
// Created by 郭垣佑 on 2020/4/30.
// Copyright © 2020 郭垣佑. 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 = EditPhotoView()
// 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.
}
}
| [
325633,
325637,
163849,
268299,
333838,
186388,
346140,
352294,
163892,
16444,
337980,
254020,
217158,
243782,
395340,
327757,
200786,
286804,
329816,
217180,
368736,
342113,
180322,
329833,
286833,
368753,
252021,
342134,
286845,
192640,
286851,
329868,
268435,
250008,
329886,
286880,
135328,
192674,
333989,
286889,
430257,
180418,
350411,
346317,
180432,
350417,
368854,
350423,
350426,
385243,
334047,
356580,
346344,
327915,
350449,
387314,
375027,
338161,
350454,
321787,
336124,
350459,
350462,
336129,
350465,
350469,
389381,
325895,
194829,
350477,
43279,
350481,
350487,
356631,
338201,
325915,
350491,
381212,
325918,
182559,
350494,
258333,
325920,
350500,
194854,
350505,
350510,
395567,
248112,
332081,
307507,
340276,
336181,
356662,
264502,
332091,
332098,
201030,
332107,
190797,
334162,
332118,
418135,
321880,
250201,
332126,
258399,
332130,
250211,
340328,
250217,
348523,
348528,
182642,
321911,
332153,
334204,
268669,
194942,
250239,
332158,
332162,
389507,
348548,
393613,
383375,
332175,
160152,
340380,
268702,
416159,
326059,
373169,
342453,
334263,
338363,
266688,
324032,
336326,
338387,
248279,
369119,
334306,
338404,
334312,
338411,
104940,
375279,
162289,
328178,
328180,
248309,
328183,
340473,
199165,
328190,
324095,
328193,
98819,
324100,
266757,
324103,
164362,
248332,
199182,
328207,
324112,
330254,
186898,
342546,
340501,
324118,
334359,
342551,
324122,
334364,
330268,
340512,
191012,
332325,
324134,
197160,
381483,
324141,
324143,
334386,
324156,
334397,
188990,
324161,
324165,
219719,
324171,
324174,
324177,
244309,
334425,
326240,
340580,
174696,
375401,
248427,
191085,
346736,
338544,
268922,
334466,
336517,
344710,
119432,
213642,
148106,
162446,
330384,
326291,
340628,
342685,
340639,
336549,
332455,
271018,
332460,
336556,
389806,
332464,
385714,
164535,
336568,
174775,
248505,
174778,
244410,
328379,
332473,
223936,
328387,
332484,
332487,
373450,
418508,
154318,
332494,
342737,
154329,
183006,
139998,
189154,
338661,
338665,
332521,
418540,
330479,
342769,
340724,
332534,
338680,
342777,
418555,
344832,
207620,
336644,
191240,
328462,
326417,
336660,
338712,
199455,
336676,
336681,
334633,
326444,
215854,
328498,
152371,
326452,
271154,
326455,
340792,
348983,
244542,
326463,
326468,
328516,
336709,
127815,
244552,
328520,
326474,
328523,
336712,
342857,
326479,
355151,
330581,
326486,
136024,
330585,
326494,
439138,
326503,
375657,
201580,
326508,
201583,
326511,
355185,
211826,
340850,
330612,
201589,
340859,
324476,
328574,
340863,
359296,
351105,
252801,
373635,
324482,
324488,
342921,
236432,
361361,
324496,
330643,
324502,
252823,
324511,
324514,
252838,
201638,
211885,
252846,
324525,
5040,
5047,
324539,
324542,
187335,
398280,
347082,
340940,
345046,
330711,
248794,
340958,
248799,
340964,
386023,
338928,
328690,
359411,
244728,
330750,
265215,
328703,
199681,
328710,
338951,
330761,
328715,
326669,
330769,
361490,
349203,
209944,
336922,
209948,
248863,
345119,
250915,
357411,
250917,
158759,
347178,
328747,
209966,
209969,
330803,
209973,
386102,
209976,
339002,
339010,
209988,
209991,
347208,
248905,
330827,
197708,
330830,
341072,
248915,
345172,
183384,
156762,
343132,
339037,
322660,
326764,
210028,
326767,
187503,
345200,
330869,
361591,
386168,
210042,
210045,
361599,
152704,
160896,
351366,
330886,
384136,
384140,
351382,
337048,
210072,
248986,
384152,
210078,
384158,
210081,
384161,
251045,
210085,
210089,
339118,
337072,
210096,
337076,
210100,
345268,
249015,
324792,
367801,
339133,
384189,
343232,
384192,
210116,
244934,
326858,
322763,
333003,
384202,
343246,
384209,
333010,
146644,
330966,
210139,
328925,
66783,
384225,
328933,
343272,
351467,
328942,
251123,
384247,
384250,
388348,
242947,
206084,
115973,
343307,
384270,
333075,
384276,
333079,
251161,
384284,
245021,
384290,
208167,
263464,
171304,
245032,
245042,
251190,
44343,
345400,
208189,
386366,
372035,
343366,
126279,
337224,
251211,
357710,
337230,
331089,
337235,
437588,
263509,
331094,
365922,
175458,
208228,
343394,
175461,
343399,
337252,
345449,
175464,
197987,
333164,
99692,
343410,
234867,
331124,
175478,
155000,
378232,
249210,
175484,
337278,
249215,
245121,
249219,
245128,
249225,
181644,
361869,
249228,
136591,
245137,
181650,
249235,
112021,
181655,
245143,
175514,
245146,
343453,
245149,
245152,
263585,
396706,
245155,
355749,
40358,
181671,
245158,
333222,
245163,
181679,
337330,
327090,
210357,
146878,
181697,
361922,
54724,
327108,
181704,
339401,
327112,
384457,
327116,
327118,
208338,
366035,
343509,
181717,
337366,
249310,
249313,
333285,
329195,
343540,
343545,
423424,
253445,
339464,
337416,
249355,
329227,
175637,
405017,
345626,
366118,
339504,
349748,
206397,
214594,
333387,
214611,
333400,
366173,
339553,
343650,
333415,
327276,
245358,
333423,
222831,
138865,
339572,
372354,
126597,
159375,
339602,
126611,
333472,
245410,
345763,
345766,
425639,
245415,
337588,
155323,
333499,
337601,
337607,
333512,
210632,
339664,
358100,
419543,
245463,
212700,
181982,
153311,
333535,
225000,
337643,
245487,
339696,
337647,
245495,
141052,
337661,
333566,
339711,
225027,
337671,
339722,
366349,
249617,
321300,
245528,
333593,
116512,
210720,
362274,
184096,
339748,
358192,
372533,
345916,
399166,
384831,
325441,
247618,
325447,
341831,
329545,
341835,
323404,
354124,
337743,
339795,
354132,
341844,
247639,
337751,
358235,
341852,
313181,
413539,
399208,
339818,
327532,
339827,
358260,
341877,
399222,
325494,
182136,
186233,
1914,
333690,
243584,
325505,
333699,
339845,
247692,
333709,
247701,
337814,
329625,
327590,
333737,
382898,
184245,
337845,
190393,
327613,
333767,
350153,
346059,
311244,
358348,
247760,
212945,
333777,
219094,
419810,
329699,
358372,
327655,
247790,
204785,
380919,
333819
] |
29a4c8e08531138459dc144b8d369acdb92328fd | 36a875f65f21cf0b0dffcb1971db062cb3ac176d | /CleanSwiftApp/VIP/Modules/ProductDetails/ProductDetailInteractor.swift | 194a1681d55c3a7a1bb04e3f05c4813b343c4795 | [] | no_license | brvidal/VIPCleanSwift | 4a818c7d02db0c8182cb19376fef3244d9973f86 | c2cba5c4c913c0f87999e3e1a452f6ab83c713a0 | refs/heads/master | 2022-12-03T22:31:19.622895 | 2020-08-13T06:28:58 | 2020-08-13T06:28:58 | 282,229,792 | 1 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 863 | swift | //
// ProductDetailInteractor.swift
// CleanSwiftApp
//
// Created by Benjoe Vidal on 8/7/20.
// Copyright (c) 2020 BRV. All rights reserved.
//
// This file was generated by the Clean Swift Xcode Templates so
// you can apply clean architecture to your iOS and Mac projects,
// see http://clean-swift.com
//
import UIKit
protocol ProductDetailBusinessLogic
{
func getProduct()
}
protocol ProductDetailDataStore
{
var product: ProductEntity.Response! {get set}
}
class ProductDetailInteractor: ProductDetailBusinessLogic, ProductDetailDataStore
{
var product: ProductEntity.Response!
var presenter: ProductDetailPresentationLogic?
var worker: ProductDetailWorker?
// MARK: Do something
func getProduct()
{
// worker = ProductDetailWorker()
presenter?.presentProduct(response: product)
}
}
| [
-1
] |
2cf50d09a165dcf248dbca25e51c7b147be232aa | 0de2177aae2e421688aa67d32415ef20e5e8578c | /FinalDemo/Shared/Other/wu/WakeUppApp/Controllers/CustomCells/Feed/FeedVideoCell.swift | a6d9ad23dce46ba5592df2698d87074537e8feeb | [] | no_license | PujaGRathod/FinalDemo | a30e5f1b382da7d264701ce06ee6ee4ac9c67c25 | ddfa24c1184a096ee72c4ea4cab6b481173fd7a9 | refs/heads/master | 2020-08-27T16:46:08.764978 | 2019-10-25T02:40:47 | 2019-10-25T02:40:47 | 217,436,480 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,102 | swift | //
// FeedVideoCell.swift
// WakeUppApp
//
// Created by Admin on 01/06/18.
// Copyright © 2018 el. All rights reserved.
//
import UIKit
import AVFoundation
class FeedVideoCell: UICollectionViewCell {
@IBOutlet weak var imgVideoThumb: UIImageView!
@IBOutlet weak var btnPlay: UIButton!
@IBOutlet weak var videoContainer: ASPVideoPlayerView!
var post : PostImages!{
didSet{
//Set ThumbImage of Video
//New Suggested by Payal U.
var strURL : String = post.postImage!
if (strURL.count != 0) {
let arrDetectPostType : NSArray = strURL.components(separatedBy: ".") as NSArray
strURL = arrDetectPostType.firstObject as! String
strURL += "_thumb.jpg"
strURL = "\(PostImage_URL + "/" + strURL)"
//print("Video thumb Image : \(strURL)")
//imgVideoThumb.sd_setImage(with: URL.init(string: strURL), placeholderImage: SquarePlaceHolderImage)
}
videoContainer.gravity = .aspectFill//.aspectFit
videoContainer.stopVideo()
//videoContainer.videoURL = URL.init(string: post.imagePath!)
let url = URL.init(string: post.imagePath!)!
if isFileLocallySaved(fileUrl: url){
videoContainer.videoURL = getLocallySavedFileURL(with: url)
}
else{
videoContainer.videoAsset = AVURLAsset.init(url: url)
}
//videoContainer.playVideo()
btnPlay.addTarget(self, action: #selector(btnPlayClicked(_:)), for: .touchUpInside)
videoContainer.stoppedVideo = {
self.btnPlay.isHidden = false
}
}
}
@objc func btnPlayClicked(_ sender : UIButton){
if videoContainer.status == .readyToPlay || videoContainer.status == .stopped{
videoContainer.playVideo()
self.btnPlay.isHidden = true
}
}
}
| [
-1
] |
b9e699414068d6e8e4805b96324f53b5249feb02 | 07def902f3c1bce77d2fe0b9a3f3ff70ad5b08cf | /Sources/App/configure.swift | ccdde2ee4cb68d0d962da44cb8937346d21a7381 | [
"MIT"
] | permissive | JamesCoonce/CodeMobileWorkshop | 10c22c0f54f36a34c88c69ec93be3b29b19becdb | e884d8a2b2fef2d66a1a5badc13f0280bd2bc300 | refs/heads/master | 2020-03-14T11:46:37.067557 | 2018-04-04T15:39:56 | 2018-04-04T15:39:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,757 | swift | import FluentSQLite
import Vapor
/// Called before your application initializes.
///
/// https://docs.vapor.codes/3.0/getting-started/structure/#configureswift
public func configure(
_ config: inout Config,
_ env: inout Environment,
_ services: inout Services
) throws {
/// Register providers first
try services.register(FluentSQLiteProvider())
/// Register routes to the router
let router = EngineRouter.default()
try routes(router)
services.register(router, as: Router.self)
/// Register middleware
var middlewares = MiddlewareConfig() // Create _empty_ middleware config
/// middlewares.use(FileMiddleware.self) // Serves files from `Public/` directory
middlewares.use(DateMiddleware.self) // Adds `Date` header to responses
middlewares.use(ErrorMiddleware.self) // Catches errors and converts to HTTP response
services.register(middlewares)
// Configure a SQLite database
let sqlite: SQLiteDatabase
if env.isRelease {
/// Create file-based SQLite db using $SQLITE_PATH from process env
sqlite = try SQLiteDatabase(storage: .file(path: Environment.get("SQLITE_PATH")!))
} else {
/// Create an in-memory SQLite database
sqlite = try SQLiteDatabase(storage: .memory)
}
/// Register the configured SQLite database to the database config.
var databases = DatabaseConfig()
databases.add(database: sqlite, as: .sqlite)
services.register(databases)
/// Configure migrations
var migrations = MigrationConfig()
migrations.add(model: Todo.self, database: .sqlite)
migrations.add(model: User.self, database: .sqlite)
migrations.add(model: Reminder.self, database: .sqlite)
services.register(migrations)
}
| [
312307,
308716
] |
c9315909157b53ca9c190e3be6a4513093bfe452 | e65152cbfa5b1da62246346e3d803e62051cbf81 | /MacLandmarks/MacLandmarks/AppDelegate.swift | e35992b3239aacf3f9048e8ae0a082b648249bbd | [] | no_license | aniiskywalker-git/macLandmarks | 8a0669e0b1a0c84bbd13b93bd9e594b66fd32b0d | 23fadd20f0dbb841b9278fa8020eeaaeaafd5336 | refs/heads/master | 2022-11-18T15:06:10.032766 | 2020-07-08T17:52:12 | 2020-07-08T17:52:12 | 278,154,592 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,086 | swift | //
// AppDelegate.swift
// MacLandmarks
//
// Created by Ana Victoria Frias on 11/06/20.
// Copyright © 2020 Photoshelter. All rights reserved.
//
import Cocoa
import SwiftUI
@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {
var window: NSWindow!
func applicationDidFinishLaunching(_ aNotification: Notification) {
// Create the SwiftUI view that provides the window contents.
let contentView = ContentView()
// Create the window and set the content view.
window = NSWindow(
contentRect: NSRect(x: 0, y: 0, width: 480, height: 300),
styleMask: [.titled, .closable, .miniaturizable, .resizable, .fullSizeContentView],
backing: .buffered, defer: false)
window.center()
window.setFrameAutosaveName("Main Window")
window.contentView = NSHostingView(rootView: contentView)
window.makeKeyAndOrderFront(nil)
}
func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
}
}
| [
337537,
128533,
9622,
186903,
333081,
244890,
189209,
173725,
332448,
341793,
142121,
353583,
127288,
332988,
254667,
345816,
333020,
116833,
254051
] |
bb742439e00cb8a7382bc035e9c9408da2e25ca8 | 7c03ab1008f6055fd6b9ee13335bca059c112d0d | /GithubFollowers/Extensions/UIViewControllerExtension.swift | a569428d5c1895323fa1ef2d50db8b9cfec0f7aa | [] | no_license | Erxhan/githubfollowers | bfa4f6166377a3532409b449ee2db9786f790612 | 8114b9d1e7901eb2e95a6d12f560bffd849b3720 | refs/heads/master | 2023-02-24T04:23:08.327956 | 2021-01-18T07:49:24 | 2021-01-18T07:49:24 | 230,938,783 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 904 | swift | //
// UIViewControllerExtension.swift
// GithubFollowers
//
// Created by Erxhan Selmani on 01/01/2020.
// Copyright © 2020 Exrhan Selmani. All rights reserved.
//
import UIKit
import SafariServices
extension UIViewController {
func presentGFAlertOnMainThread(title: String, message: String, buttonTitle: String) {
DispatchQueue.main.async {
let alertVC = GFAlertVC(title: title, message: message, buttonTitle: buttonTitle)
alertVC.modalPresentationStyle = .overFullScreen
alertVC.modalTransitionStyle = .crossDissolve
self.present(alertVC, animated: true)
}
}
func presentSafariVC(with url: URL) {
let safariVC = SFSafariViewController(url: url)
safariVC.preferredControlTintColor = .systemGreen
present(safariVC, animated: true)
}
}
| [
-1
] |
a3f71db6e4f510f417bf215eb1045c7c37000a49 | 0073306b763f092a674075561aa3420767fd4b22 | /NMBasic/BasicExtentions/UIComponents/UIBarButtonItem+Utils.swift | b6d359574c3e0e5e7ab7f32d52dc9f60a930f2da | [
"MIT"
] | permissive | mohsinalimat/NMBasic | f47dd99eeb3a5ae278ae33d97e367cc71f9a3e4c | 61fb72028654c0387f6499a40e0517a458a852f5 | refs/heads/master | 2020-03-31T17:17:42.382940 | 2018-04-28T20:46:08 | 2018-04-28T20:46:08 | 152,417,053 | 1 | 0 | MIT | 2018-10-10T12:05:04 | 2018-10-10T12:05:04 | null | UTF-8 | Swift | false | false | 1,314 | swift | //
// UIBarButtonItem.swift
// BasicFramework
//
// Created by Nahla Mortada on 7/9/17.
// Copyright © 2017 Nahla Mortada. All rights reserved.
//
import Foundation
import UIKit
public extension UIBarButtonItem {
public func addAccessabilityData (label: String, value: String) {
self.accessibilityTraits = UIAccessibilityTraitButton
self.accessibilityLabel = label
}
public func changeAccessabilityValue(value: String) {
self.accessibilityValue = value
}
public class func getButton(backImage :UIImage, color :UIColor?, action: Selector) -> UIBarButtonItem {
let frame:CGRect = CGRect(x: 0,y: 5, width: 25,height: 25)
var image = backImage
if color != nil {
image = backImage.nm_tint(color: color!)
}
let button :UIButton = UIButton(frame: frame)
button.setBackgroundImage(image, for: UIControlState())
button.addTarget(self, action: action, for: UIControlEvents.touchUpInside)
button.showsTouchWhenHighlighted = true
let backButton:UIBarButtonItem = UIBarButtonItem(customView:button)
backButton.isAccessibilityElement = true
button.isAccessibilityElement = false
return backButton
}
}
| [
-1
] |
44a172091fcb27a6f005d31100f3ac7dc593e598 | 52565ceacbf0bcace81bd0f52787e4c5b28f289b | /About.swift | ee55c40b80ba928b111baaa6d4db835111084108 | [] | no_license | Traveler-Brian/EditNib-GUI | 0d014935c9479c5d1fbbc91cfce18f9a32a5abc1 | 017368fff43e6ea9fc4b17fa3f8b53971d6995ef | refs/heads/master | 2021-01-14T18:32:19.419931 | 2020-02-24T11:15:46 | 2020-02-24T11:15:46 | 242,713,310 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 707 | swift | //
// About.swift
// EditNib GUI
//
// Created by 黃浩源 on 2020/02/24.
// Copyright © 2020 黃浩源. All rights reserved.
//
import Cocoa
class About: NSViewController {
override func viewDidAppear() {
self.view.window?.styleMask.remove(NSWindow.StyleMask.resizable)
//Make the window not resizable
}
override func viewDidLoad() {
super.viewDidLoad()
// Do view setup here.
}
@IBAction func JohnSundell(_ sender: Any) {
try? shellOut(to: "open https://github.com/JohnSundell")
}
@IBAction func SeanZhu(_ sender: Any) {
try? shellOut(to: "https://github.com/szhu")
}
}
| [
-1
] |
3f3114eb7ba0e9d336aefd2d66e7e1aa37519fdf | 0466bd872faf25c62314da20b3283e15c48cd7f2 | /QuizPhone/QuizPhone/PhoneTableViewCell.swift | f164f8b109b8111ef412a4e461f1358566b9bc3c | [] | no_license | Fauzee26/QuizPhone | 52ac46aab00c57c0f0dabe8ed1a3c79bcc05cc56 | 489f3099abe950016eed663cc27d89a4a31da42d | refs/heads/master | 2021-05-08T03:30:49.903673 | 2017-10-25T03:58:52 | 2017-10-25T03:58:52 | 108,218,023 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 633 | swift | //
// PhoneTableViewCell.swift
// QuizPhone
//
// Created by Muhammad Hilmy Fauzi on 25/10/17.
// Copyright © 2017 Hilmy Corp. All rights reserved.
//
import UIKit
class PhoneTableViewCell: UITableViewCell {
@IBOutlet weak var LabelPhone: UILabel!
@IBOutlet weak var labelType: UILabel!
@IBOutlet weak var labelMerk: 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
}
}
| [
320001,
337412,
227845,
333831,
227849,
227852,
333837,
372750,
372753,
196114,
372754,
327190,
328214,
287258,
370207,
243746,
287266,
281636,
327224,
327225,
307277,
327248,
235604,
235611,
213095,
213097,
310894,
213109,
148600,
403068,
410751,
300672,
373913,
148637,
148638,
276639,
148644,
148648,
300206,
361651,
327360,
223437,
291544,
306907,
337627,
176358,
271087,
325874,
338682,
276746,
276756,
203542,
261406,
349470,
396065,
111912,
369458,
369461,
282934,
342850,
342851,
151881,
430412,
283471,
283472,
270679,
287067,
350050,
270691,
257898,
330602,
179568,
317296,
317302,
244600,
179578,
179580,
211843,
213891,
36743,
209803,
211370,
288690,
281014,
430546,
430547,
180695,
180696,
284131,
344039,
196076,
310778,
305661
] |
49fc11c0ac79159297b1645a6687e67ffc141fa6 | 0e25a25ce963469b77616a46ae707414c0a7ad50 | /Health Coach/UITableViewCell/HCDateSelectCell.swift | b1e7cf947ff5703cbb031a0ad7523eb025595451 | [] | no_license | AhmadDurrani579/Health-Coach | 63fbdc8dfa8b1a6d0318b5c3f5a19e819cc6567f | 2fa923b0e57872b984e55c27b4db108f7e9f7a6d | refs/heads/master | 2023-03-06T14:44:37.064193 | 2021-02-13T17:31:16 | 2021-02-13T17:31:16 | 246,100,301 | 1 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,411 | swift | //
// HCDateSelectCell.swift
// Health Coach
//
// Created by Ahmed Durrani on 20/11/2019.
// Copyright © 2019 WinSoft. All rights reserved.
//
import UIKit
protocol SelectDateAndTimeDelegate : class {
func selectTime(cell : HCDateSelectCell , index : IndexPath)
// func endTimeSelect(cell : HCDateSelectCell)
}
class HCDateSelectCell: UITableViewCell {
weak var delegate : SelectDateAndTimeDelegate?
@IBOutlet weak var lblCurrentDate: UILabel!
@IBOutlet weak var btnTime: UIButton!
@IBOutlet weak var viewOfBG: CardView!
var indexSelect : IndexPath?
// @IBOutlet weak var btnStartDate: UIButton!
// @IBOutlet weak var btnEndDateE: UIButton!
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
}
@IBAction func btnSelectTime(_ sender: UIButton) {
sender.isSelected = !sender.isSelected
delegate?.selectTime(cell: self, index: indexSelect!)
}
// @IBAction func btnStartTime_Pressed(_ sender: UIButton) {
// delegate?.selectStartTime(cell: self)
// }
// @IBAction func btnEndTime_Pressed(_ sender: UIButton) {
// delegate?.endTimeSelect(cell: self)
// }
}
| [
-1
] |
f440d056483e55b7a29c419593b04413f0e4bac2 | 3aaef28efecf8b428f566293b40aeb5948b4b75d | /AndrosCodemoCV/Modules/ProfessionalSummaryModule/PSRouter/PSRouter.swift | dabd5744718fb83de7009266f1c61ff54eabcc9a | [] | no_license | androscodemo/AndrosCodemoCV | e174595068e8b10744b8845fb4437d27d473122e | 379c594b7fac6cab9b017ed724cae13a1b11d6dc | refs/heads/master | 2020-07-02T13:52:55.883788 | 2019-08-11T08:43:52 | 2019-08-11T08:43:52 | 201,545,137 | 0 | 0 | null | 2019-08-11T05:54:07 | 2019-08-09T21:53:05 | Swift | UTF-8 | Swift | false | false | 430 | swift | //
// PSRouter.swift
// AndrosCodemoCV
//
// Created by Andros Codemo on 8/10/19.
// Copyright © 2019 Andros Codemo. All rights reserved.
//
import UIKit.UIViewController
protocol PSRouting {
}
class PSRouter {
private unowned var viewController: UIViewController
init(viewController: UIViewController) {
self.viewController = viewController
}
}
extension PSRouter: PSRouting {
}
| [
-1
] |
3cf2443f617977b9c17de072bca1bd80b78636cc | 823f07174a0501e622f72dbf351ace2068678d5e | /RxAlamoCodable/AppDelegate.swift | 64656bd5322af05279d725547fbab0e765e0c422 | [
"Apache-2.0"
] | permissive | kubatatami/RxAlamoCodable | c0573ba209e13314fb8a86b69d3d9215b523c05a | 59a7d3f2b2ea64248e392b41b291561ad5c73a58 | refs/heads/master | 2021-07-04T14:42:56.236971 | 2020-11-24T14:11:53 | 2020-11-24T14:11:53 | 203,016,967 | 0 | 1 | Apache-2.0 | 2020-11-24T14:11:54 | 2019-08-18T14:38:32 | Swift | UTF-8 | Swift | false | false | 2,186 | swift | //
// AppDelegate.swift
// RxAlamoCodable
//
// Created by Jakub Bogacki on 18/08/2019.
// Copyright © 2019 Jakub Bogacki. 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,
229394,
278548,
229397,
229399,
229402,
352284,
229405,
278556,
278559,
229408,
278564,
294950,
229415,
229417,
327722,
237613,
229422,
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,
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,
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,
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,
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,
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,
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,
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,
313044,
280276,
321239,
280283,
313052,
18140,
288478,
313055,
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,
305464,
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,
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,
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,
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,
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,
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,
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,
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,
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,
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,
318132,
342707,
154292,
277173,
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,
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,
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
] |
32dae0834bc2760e3000fc52c06c69ec31b4d117 | 058a04e0532fb96783bb55e0b6a0e41431b0abcb | /MovieSearcherApp/Views/DetailView/DetailViewModel.swift | 95a70273f32344278f3e0f5d0a9a5db48c8d108b | [] | no_license | ArtemisKS/MovieApp | 58a0a89254eb70a453065af31e89869c53f6caff | 8a29bc43089b6aa7dc9236892227f3c8d322f3db | refs/heads/main | 2023-04-16T13:09:30.451053 | 2021-04-22T13:50:24 | 2021-04-22T13:50:24 | 319,487,722 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,702 | swift | //
// DetailViewModel.swift
// MovieSearcherApp
//
// Created by Artem Kupriianets on 10.12.2020.
//
import UIKit
protocol DetailViewModelProtocol {
var genresLabelText: String { get }
var languageText: String { get }
var revenueText: String? { get }
var releaseDateText: String { get }
var runtimeText: String { get }
var titleText: String { get }
var overviewText: String { get }
var navBarTitle: String { get }
var isLangHidden: Bool { get }
var isRevenueHidden: Bool { get }
var isRuntimeHidden: Bool { get }
var isRatingsHidden: Bool { get }
var isOverviewHidden: Bool { get }
var isReleaseDateHidden: Bool { get }
var posterPath: String? { get }
var ratingsLevel: CGFloat { get }
func getBottomLabelText(_ botLabel: DetailViewController.BotLabels) -> String?
func isBottomLabelHidden(_ botLabel: DetailViewController.BotLabels) -> Bool
}
struct DetailViewModel: DetailViewModelProtocol {
private var movie: MovieDetail
var posterPath: String? {
movie.poster_path
}
var genresLabelText: String {
let genres = movie.genres
return genres.enumerated().map {
$0 == genres.count - 1 ? $1.name : "\($1.name), "
}.joined()
}
var languageText: String {
let langs = movie.spoken_languages
return langs.enumerated().map { $0 == langs.count - 1 ? $1.english_name : "\($1.english_name), "
}.joined()
}
var revenueText: String? {
let numberFormatter = NumberFormatter()
numberFormatter.numberStyle = .currency
numberFormatter.currencySymbol = "$"
let formattedNumber = numberFormatter.string(from: NSNumber(value: movie.revenue))
return formattedNumber
}
var releaseDateText: String {
movie.release_date
}
var runtimeText: String {
"\(movie.runtime ?? 0) min"
}
var titleText: String {
movie.original_title
}
var overviewText: String {
movie.overview
}
var navBarTitle: String {
movie.title
}
var isLangHidden: Bool {
languageText.trimmed.isEmpty
}
var isRevenueHidden: Bool {
movie.revenue == 0
}
var isRuntimeHidden: Bool {
movie.runtime == nil ||
movie.runtime == 0
}
var isRatingsHidden: Bool {
ratingsLevel == 0
}
var isReleaseDateHidden: Bool {
releaseDateText.trimmed.isEmpty
}
var isOverviewHidden: Bool {
overviewText.trimmed.isEmpty
}
var ratingsLevel: CGFloat {
CGFloat(movie.vote_average * 10)
}
func getBottomLabelText(_ botLabel: DetailViewController.BotLabels) -> String? {
var res: String?
switch botLabel {
case .date:
res = releaseDateText
case .lang:
res = languageText
case .revenue:
res = revenueText
case .runtime:
res = runtimeText
}
return res
}
func isBottomLabelHidden(_ botLabel: DetailViewController.BotLabels) -> Bool {
var res: Bool
switch botLabel {
case .date:
res = isReleaseDateHidden
case .lang:
res = isLangHidden
case .revenue:
res = isRevenueHidden
case .runtime:
res = isRuntimeHidden
}
return res
}
init?(movie: MovieDetail?) {
if let movie = movie {
self.movie = movie
} else {
return nil
}
}
}
| [
-1
] |
210a548d5d31f7d07633ac747e180dde0366cf0c | 2efd5de63ba7d395d60751a3ffe84a2332204c3b | /Boston Hacks/EventTableViewCell.swift | 7fae533d270d64f4e6b381ef9dd4cfc70f82cd52 | [] | no_license | uvarov916/BostonHacks-iOS | 834be501a281ba7906d4c130ff35d93cba24686e | 707592d8ab19cd1e8440cd8aa5d12a9112031fb0 | refs/heads/master | 2022-03-20T08:11:01.888931 | 2015-10-24T04:02:31 | 2015-10-24T04:02:31 | 44,426,950 | 0 | 1 | null | null | null | null | UTF-8 | Swift | false | false | 895 | swift | //
// EventTableViewCell.swift
// Boston Hacks
//
// Created by Иван Уваров on 10/13/15.
// Copyright © 2015 Ivan Uvarov. All rights reserved.
//
import UIKit
class EventTableViewCell: UITableViewCell {
@IBOutlet weak var eventTime: UILabel!
@IBOutlet weak var eventTitle: UILabel!
@IBOutlet weak var eventDayNight: UILabel!
@IBOutlet weak var eventLocation: UILabel!
@IBOutlet weak var locationBottomConstraint: NSLayoutConstraint!
@IBOutlet weak var locationHeightConstraint: NSLayoutConstraint!
@IBOutlet weak var locationTopConstraint: NSLayoutConstraint!
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
}
}
| [
211372
] |
1825065126ca4ff3891ad4591f94fa2ce9f48408 | b59b9885e248af47c15bdac1cbefdaee3ccfbcdb | /LadderGame/main.swift | 2b156d86508823b983d3a5121a66a2d911639314 | [] | no_license | devming/LadderGame | ab5667923c6ba9eb7bd2e0bdd4c96f093976a588 | 1ad84f35800918b3e8aa6f15ad886037ff8c3310 | refs/heads/master | 2020-12-18T17:09:06.525548 | 2020-06-01T02:35:25 | 2020-06-01T02:35:25 | 235,465,252 | 0 | 0 | null | 2020-01-21T23:59:48 | 2020-01-21T23:59:47 | null | UTF-8 | Swift | false | false | 165 | swift | //
// main.swift
// LadderGame
//
// Created by JK on 2019/11/11.
// Copyright © 2019 codesquad. All rights reserved.
let game = SingleLadderGame()
game.run()
| [
-1
] |
eb4e8b26cad8af1e202f428ca866691fe16a2fb5 | 3ddc3c98f898f49a6eb699b4216646ec5bb200f6 | /Sources/Extensions/Foundation/URLExtensions.swift | 8c1ed989596d1bdb5cb4aac2a34189eb4782e77d | [
"MIT",
"LicenseRef-scancode-unknown-license-reference"
] | permissive | ivanatshoal/SwifterSwift | b98867a60370c49499c9a8549298747f9658cdcc | 2e78957cc3d2448ae3cd300854e0247b1ed7a1ff | refs/heads/master | 2020-03-15T13:44:12.848812 | 2018-05-04T17:26:09 | 2018-05-04T17:26:09 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,916 | swift | //
// URLExtensions.swift
// SwifterSwift
//
// Created by Omar Albeik on 03/02/2017.
// Copyright © 2017 SwifterSwift
//
#if canImport(Foundation)
import Foundation
#if canImport(UIKit) && canImport(AVFoundation)
import UIKit
import AVFoundation
#endif
// MARK: - Properties
public extension URL {
/// SwifterSwift: Dictionary of the URL's query parameters
public var queryParameters: [String: String]? {
guard let components = URLComponents(url: self, resolvingAgainstBaseURL: false), let queryItems = components.queryItems else { return nil }
var items: [String: String] = [:]
for queryItem in queryItems {
items[queryItem.name] = queryItem.value
}
return items
}
}
// MARK: - Methods
public extension URL {
/// SwifterSwift: URL with appending query parameters.
///
/// let url = URL(string: "https://google.com")!
/// let param = ["q": "Swifter Swift"]
/// url.appendingQueryParameters(params) -> "https://google.com?q=Swifter%20Swift"
///
/// - Parameter parameters: parameters dictionary.
/// - Returns: URL with appending given query parameters.
public func appendingQueryParameters(_ parameters: [String: String]) -> URL {
var urlComponents = URLComponents(url: self, resolvingAgainstBaseURL: true)!
var items = urlComponents.queryItems ?? []
items += parameters.map({ URLQueryItem(name: $0, value: $1) })
urlComponents.queryItems = items
return urlComponents.url!
}
/// SwifterSwift: Append query parameters to URL.
///
/// var url = URL(string: "https://google.com")!
/// let param = ["q": "Swifter Swift"]
/// url.appendQueryParameters(params)
/// print(url) // prints "https://google.com?q=Swifter%20Swift"
///
/// - Parameter parameters: parameters dictionary.
public mutating func appendQueryParameters(_ parameters: [String: String]) {
self = appendingQueryParameters(parameters)
}
/// SwifterSwift: Returns a new URL by removing all the path components.
///
/// let url = URL(string: "https://domain.com/path/other")!
/// print(url.deletingAllPathComponents()) // prints "https://domain.com/"
///
/// - Returns: URL with all path components removed.
public func deletingAllPathComponents() -> URL {
var url: URL = self
for _ in 0..<pathComponents.count - 1 {
url.deleteLastPathComponent()
}
return url
}
/// SwifterSwift: Remove all the path components from the URL.
///
/// var url = URL(string: "https://domain.com/path/other")!
/// url.deleteAllPathComponents()
/// print(url) // prints "https://domain.com/"
public mutating func deleteAllPathComponents() {
for _ in 0..<pathComponents.count - 1 {
deleteLastPathComponent()
}
}
}
// MARK: - Methods
public extension URL {
#if os(iOS) || os(tvOS)
/// Generate a thumbnail image from given url. Returns nil if no thumbnail could be created. This function may take some time to complete. It's recommended to dispatch the call if the thumbnail is not generated from a local resource.
///
/// var url = URL(string: "https://video.golem.de/files/1/1/20637/wrkw0718-sd.mp4")!
/// var thumbnail = url.thumbnail()
/// thumbnail = url.thumbnail(fromTime: 5)
///
/// DisptachQueue.main.async {
/// someImageView.image = url.thumbnail()
/// }
///
/// - Parameter time: Seconds into the video where the image should be generated.
/// - Returns: The UIImage result of the AVAssetImageGenerator
public func thumbnail(fromTime time: Float64 = 0) -> UIImage? {
let imageGenerator = AVAssetImageGenerator(asset: AVAsset(url: self))
let time = CMTimeMakeWithSeconds(time, 1)
var actualTime = CMTimeMake(0, 0)
guard let cgImage = try? imageGenerator.copyCGImage(at: time, actualTime: &actualTime) else {
return nil
}
return UIImage(cgImage: cgImage)
}
#endif
}
#endif
| [
-1
] |
9f2a290c40379a113abaa0cfac2063f2d7a3e47a | e4605f1a81549fec165319af9d50fd5864d12c34 | /PrincessGuide/Settings/ViewController/SettingsViewController.swift | 6d44742e1bbe2ed1ac8620a7c8216979c692e060 | [
"Apache-2.0"
] | permissive | superk589/PrincessGuide | 6ea5338d5af25cc5f1ee94d064310361f233d3cc | cc729f8d227f36f2c48bb4c71ca7f2d304229eb2 | refs/heads/master | 2023-06-24T01:36:40.175092 | 2023-06-21T02:25:28 | 2023-06-21T02:29:28 | 128,905,214 | 169 | 23 | Apache-2.0 | 2021-07-14T06:26:38 | 2018-04-10T09:07:43 | Swift | UTF-8 | Swift | false | false | 10,781 | swift | //
// SettingsViewController.swift
// PrincessGuide
//
// Created by zzk on 2018/4/26.
// Copyright © 2018 zzk. All rights reserved.
//
import UIKit
import MessageUI
import Social
import AcknowList
import Eureka
class SettingsViewController: FormViewController {
override func viewDidLoad() {
super.viewDidLoad()
navigationItem.title = NSLocalizedString("Settings", comment: "")
NotificationCenter.default.addObserver(self, selector: #selector(handleUpdateEnd(_:)), name: .preloadEnd, object: nil)
NotificationCenter.default.addObserver(self, selector: #selector(handleDidBecameActive(_:)), name: UIApplication.didBecomeActiveNotification, object: nil)
tableView.cellLayoutMarginsFollowReadableWidth = true
func cellUpdate<T: RowType, U>(cell: T.Cell, row: T) where T.Cell.Value == U {
EurekaAppearance.cellUpdate(cell: cell, row: row)
}
func cellSetup<T: RowType, U>(cell: T.Cell, row: T) where T.Cell.Value == U {
EurekaAppearance.cellSetup(cell: cell, row: row)
}
func cellUpdateWithDisclosureIndicator<T: RowType, U>(cell: T.Cell, row: T) where T.Cell.Value == U {
EurekaAppearance.cellUpdate(cell: cell, row: row)
cell.accessoryType = .disclosureIndicator
}
func cellSetupWidthDisclosureIndicator<T: RowType, U>(cell: T.Cell, row: T) where T.Cell.Value == U {
EurekaAppearance.cellSetup(cell: cell, row: row)
cell.accessoryType = .disclosureIndicator
}
func onCellSelection<T>(cell: PickerInlineCell<T>, row: PickerInlineRow<T>) {
EurekaAppearance.onCellSelection(cell: cell, row: row)
}
func onExpandInlineRow<T>(cell: PickerInlineCell<T>, row: PickerInlineRow<T>, pickerRow: PickerRow<T>) {
EurekaAppearance.onExpandInlineRow(cell: cell, row: row, pickerRow: pickerRow)
}
form.inlineRowHideOptions = InlineRowHideOptions.AnotherInlineRowIsShown.union(.FirstResponderChanges)
form
+++ Section(NSLocalizedString("General", comment: ""))
<<< SwitchRow() { (row : SwitchRow) -> Void in
row.title = NSLocalizedString("Check for Updates at Launch", comment: "")
row.value = Defaults.downloadAtStart
}
.cellSetup(cellSetup(cell:row:))
.cellUpdate(cellUpdate(cell:row:))
.onChange { row in
Defaults.downloadAtStart = row.value ?? false
}
<<< LabelRow("current_language") {
if let identifier = Bundle.main.preferredLocalizations.first {
let locale = Locale(identifier: identifier)
$0.value = locale.localizedString(forIdentifier: identifier)
} else {
$0.value = nil
}
$0.title = NSLocalizedString("Current Language", comment: "")
}
.cellSetup(cellSetupWidthDisclosureIndicator(cell:row:))
.cellUpdate(cellUpdateWithDisclosureIndicator(cell:row:))
.onCellSelection { _, _ in
UIApplication.shared.open(URL(string: UIApplication.openSettingsURLString)!)
}
+++ Section(NSLocalizedString("Feedback", comment: ""))
<<< LabelRow() {
$0.title = NSLocalizedString("Email", comment: "")
}
.cellSetup(cellSetupWidthDisclosureIndicator(cell:row:))
.cellUpdate(cellUpdateWithDisclosureIndicator(cell:row:))
.onCellSelection { [unowned self] _, _ in
self.sendEmail()
}
<<< LabelRow() {
$0.title = NSLocalizedString("Review at App Store", comment: "")
}
.cellSetup(cellSetupWidthDisclosureIndicator(cell:row:))
.cellUpdate(cellUpdateWithDisclosureIndicator(cell:row:))
.onCellSelection { [unowned self] _, _ in
self.postReview()
}
<<< LabelRow() {
$0.title = NSLocalizedString("Twitter", comment: "")
}
.cellSetup(cellSetupWidthDisclosureIndicator(cell:row:))
.cellUpdate(cellUpdateWithDisclosureIndicator(cell:row:))
.onCellSelection { [unowned self] _, _ in
self.sendTweet()
}
+++ Section(NSLocalizedString("About", comment: ""))
<<< LabelRow() {
$0.title = NSLocalizedString("Show the Latest Notice", comment: "")
}
.cellSetup(cellSetupWidthDisclosureIndicator(cell:row:))
.cellUpdate(cellUpdateWithDisclosureIndicator(cell:row:))
.onCellSelection { [unowned self] _, _ in
self.showRecentNotice()
}
<<< LabelRow() {
$0.title = NSLocalizedString("Third-Party Licenses", comment: "")
}
.cellSetup(cellSetupWidthDisclosureIndicator(cell:row:))
.cellUpdate(cellUpdateWithDisclosureIndicator(cell:row:))
.onCellSelection { [unowned self] _, _ in
self.showAckListViewController()
}
<<< LabelRow() {
$0.title = NSLocalizedString("App Version", comment: "")
$0.value = "\(VersionManager.shared.appVersion)(\(VersionManager.shared.buildNumber))"
}
.cellSetup(cellSetup(cell:row:))
.cellUpdate(cellUpdate(cell:row:))
<<< LabelRow("data_version") {
$0.title = NSLocalizedString("Data Version", comment: "")
$0.value = VersionManager.shared.truthVersion
}
.cellSetup(cellSetup(cell:row:))
.cellUpdate(cellUpdate(cell:row:))
.onCellSelection({ [weak self] (cell, row) in
let vc = UIAlertController(title: NSLocalizedString("Reset Data Version?", comment: ""), message: NSLocalizedString("If the data version is not synchronized with the data, reset it and then you can retrieve the newest version again.", comment: ""), preferredStyle: .alert)
vc.addAction(.init(title: NSLocalizedString("OK", comment: ""), style: .default, handler: { [weak vc] _ in
VersionManager.shared.truthVersion = "0"
row.value = "0"
cell.update()
vc?.dismiss(animated: true, completion: nil)
}))
vc.addAction(.init(title: NSLocalizedString("Cancel", comment: ""), style: .cancel, handler: { [weak vc] _ in
vc?.dismiss(animated: true, completion: nil)
}))
self?.present(vc, animated: true, completion: nil)
})
}
@objc private func handleUpdateEnd(_ notification: Notification) {
let row = form.rowBy(tag: "data_version") as? LabelRow
row?.value = VersionManager.shared.truthVersion
row?.updateCell()
}
@objc private func handleDidBecameActive(_ notification: Notification) {
let row = form.rowBy(tag: "current_language")
row?.updateCell()
}
@objc private func showAckListViewController() {
let vc = AcknowListViewController()
vc.navigationItem.title = NSLocalizedString("Third-Party Licenses", comment: "")
vc.hidesBottomBarWhenPushed = true
navigationController?.pushViewController(vc, animated: true)
}
@objc private func showRecentNotice() {
VersionManager.shared.noticeVersion = ""
(UIApplication.shared.delegate as? AppDelegate)?.checkNotice(ignoresExpireDate: true)
}
@objc private func upgradeToProEdition() {
let vc = BuyProEditionViewController()
vc.hidesBottomBarWhenPushed = true
navigationController?.pushViewController(vc, animated: true)
}
@objc private func sendTweet() {
if let url = URL(string: "twitter://post?message=%23\(Constant.appNameHashtag)%0d"), UIApplication.shared.canOpenURL(url) {
print("open twitter using url scheme")
if #available(iOS 10.0, *) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
} else {
UIApplication.shared.openURL(url)
}
} else if let url = URL(string: "https://twitter.com/intent/tweet?text=%23\(Constant.appNameHashtag)%0d"), UIApplication.shared.canOpenURL(url) {
print("open twitter by openURL")
if #available(iOS 10.0, *) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
} else {
UIApplication.shared.openURL(url)
}
} else {
print("open twitter failed")
}
}
@objc private func sendEmail() {
if MFMailComposeViewController.canSendMail() {
let vc = MFMailComposeViewController()
vc.setSubject(String(format: NSLocalizedString("%@ Feedback", comment: ""), Constant.appName))
vc.mailComposeDelegate = self
vc.setToRecipients(["[email protected]"])
vc.addAttachmentData(DeviceInfo.default.description.data(using: .utf8)!, mimeType: "text/plain", fileName: "device_information.txt")
present(vc, animated: true, completion: nil)
} else {
let alert = UIAlertController(title: NSLocalizedString("Unable to open Mail", comment: ""), message: NSLocalizedString("There aren't any Mail accounts", comment: ""), preferredStyle: .alert)
alert.addAction(UIAlertAction(title: NSLocalizedString("OK", comment: ""), style: .default, handler: nil))
present(alert, animated: true, completion: nil)
}
}
@objc private func postReview() {
if let url = URL(string: "itms-apps://itunes.apple.com/app/id\(Constant.appID)?action=write-review") {
if #available(iOS 10.0, *) {
UIApplication.shared.open(url, options: [:], completionHandler: nil)
} else {
UIApplication.shared.openURL(url)
}
}
}
}
// MARK: MFMailComposeViewControllerDelegate
extension SettingsViewController: MFMailComposeViewControllerDelegate, UINavigationControllerDelegate {
func mailComposeController(_ controller: MFMailComposeViewController, didFinishWith result: MFMailComposeResult, error: Error?) {
controller.dismiss(animated: true, completion: nil)
}
}
| [
-1
] |
8054721f16deee9e6753e8259fa0c8e0de26284c | 5d13078f4c68cd5e515620bcb63ba19aecfe9e87 | /Sesion13/DemoServicios/DemoServicios/AppDelegate.swift | 8b3735b9acda600ec2ad9b391f3c349fd7cc94f7 | [] | no_license | KenyiRodriguez/ISIL-2614-2020 | dc349ebbcff6b738d8241fa2622827d56c649a55 | 397e5eb582ffa680f02baa34b6414a708202fbd8 | refs/heads/master | 2023-01-29T09:00:59.643078 | 2020-12-10T16:07:56 | 2020-12-10T16:07:56 | 291,164,539 | 1 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,429 | swift | //
// AppDelegate.swift
// DemoServicios
//
// Created by Kenyi Rodriguez on 26/11/20.
// Copyright © 2020 Kenyi Rodriguez. All rights reserved.
//
import UIKit
@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.
}
}
| [
393222,
393224,
393230,
393250,
344102,
393261,
393266,
163891,
213048,
376889,
385081,
393275,
376905,
327756,
254030,
286800,
368727,
368735,
180320,
376931,
417924,
262283,
377012,
327871,
180416,
377036,
180431,
377046,
327914,
205036,
393456,
393460,
336123,
418043,
385280,
336128,
262404,
180490,
368911,
262416,
262422,
377117,
262436,
336180,
262454,
393538,
262472,
344403,
213332,
65880,
262496,
418144,
262499,
213352,
246123,
262510,
213372,
385419,
393612,
262550,
262552,
385440,
385443,
385451,
262573,
393647,
385458,
262586,
344511,
262592,
360916,
369118,
328177,
328179,
328182,
328189,
328192,
164361,
328206,
410128,
393747,
254490,
188958,
385570,
33316,
377383,
197159,
352821,
188987,
418363,
369223,
385609,
385616,
352856,
352864,
369253,
262760,
352874,
352887,
254587,
377472,
336512,
148105,
377484,
352918,
98968,
344744,
336555,
434867,
164534,
336567,
164538,
328378,
328386,
352968,
344776,
352971,
352973,
385742,
385748,
361179,
189153,
369381,
361195,
418553,
344831,
336643,
344841,
361230,
336659,
418580,
418585,
434970,
369435,
418589,
262942,
418593,
336675,
328484,
418598,
418605,
336696,
361273,
328515,
336708,
328519,
336711,
328522,
336714,
426841,
197468,
361309,
361315,
361322,
328573,
369542,
222128,
345035,
386003,
345043,
386011,
386018,
386022,
435187,
328702,
328714,
361489,
386069,
336921,
386073,
336925,
345118,
377887,
345133,
345138,
386101,
361536,
197707,
345169,
156761,
361567,
148578,
345199,
386167,
361593,
410745,
214149,
386186,
337047,
345246,
214175,
337071,
337075,
345267,
386258,
328924,
66782,
222437,
328941,
386285,
386291,
345376,
353570,
345379,
410917,
345382,
337205,
345399,
378169,
369978,
337222,
337229,
337234,
263508,
402791,
345448,
271730,
378227,
271745,
181638,
353673,
181643,
181654,
230809,
181670,
181673,
337329,
181681,
181684,
181690,
361917,
181696,
337349,
181703,
337365,
271839,
329191,
361960,
329194,
116210,
337398,
337415,
329226,
419339,
419343,
419349,
345625,
419355,
370205,
419359,
419362,
394786,
370213,
419368,
419376,
206395,
214593,
419400,
419402,
353867,
419406,
419410,
345701,
394853,
222830,
370297,
353919,
403075,
198280,
345736,
403091,
345749,
345757,
345762,
419491,
345765,
419497,
419501,
370350,
419506,
419509,
337592,
337599,
419527,
419535,
272081,
394966,
419542,
419544,
181977,
345818,
419547,
419559,
337642,
419563,
337645,
370415,
141051,
337659,
337668,
362247,
395021,
362255,
321299,
116509,
345887,
378663,
345905,
354106,
354111,
247617,
354117,
370503,
329544,
370509,
354130,
247637,
337750,
370519,
313180,
354142,
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,
379152,
395538,
387349,
338199,
387352,
182558,
338211,
395566,
248111,
362822,
436555,
190796,
321879,
379233,
354673,
321910,
248186,
420236,
379278,
272786,
354727,
338352,
330189,
338381,
338386,
256472,
338403,
338409,
248308,
199164,
330252,
199186,
330267,
354855,
10828,
199249,
174695,
248425,
191084,
338543,
191092,
330383,
354974,
150183,
174774,
248504,
174777,
223934,
273108,
355028,
264918,
183005,
256734,
338660,
338664,
264941,
207619,
264964,
338700,
256786,
199452,
363293,
396066,
346916,
396069,
215853,
355122,
355131,
355140,
355143,
338763,
355150,
330580,
355166,
265055,
355175,
387944,
355179,
330610,
330642,
355218,
412599,
207808,
379848,
396245,
248792,
248798,
347105,
257008,
183282,
265207,
330748,
330760,
330768,
248862,
396328,
158761,
199728,
330800,
396336,
396339,
339001,
388154,
388161,
347205,
248904,
330826,
248914,
183383,
339036,
412764,
257120,
248951,
420984,
330889,
347287,
248985,
339097,
44197,
380070,
339112,
249014,
126144,
330958,
330965,
265432,
388319,
388347,
175375,
159005,
175396,
208166,
273708,
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,
249227,
249234,
175513,
175516,
396705,
175522,
355748,
380332,
396722,
208311,
372163,
216517,
380360,
216522,
339404,
372176,
208337,
339412,
339417,
249308,
339420,
339424,
339428,
339434,
249328,
69113,
372228,
339461,
208398,
380432,
175635,
339503,
265778,
265795,
396872,
265805,
224853,
224857,
257633,
224870,
372327,
257646,
372337,
224887,
224890,
224894,
372353,
224897,
216707,
339588,
126596,
421508,
224904,
224909,
159374,
11918,
339601,
126610,
224913,
224916,
224919,
126616,
208538,
224922,
224926,
224929,
224932,
257704,
224936,
224942,
257712,
224947,
257716,
257720,
224953,
257724,
224959,
257732,
224965,
224969,
339662,
224975,
257747,
224981,
224986,
224993,
257761,
257764,
224999,
339695,
225012,
257787,
225020,
339710,
257790,
225025,
257794,
339721,
257801,
257804,
225038,
257807,
225043,
167700,
372499,
225048,
257819,
225053,
225058,
339747,
339749,
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,
257896,
274280,
257901,
225137,
339826,
257908,
225141,
257912,
257916,
225148,
257920,
225155,
339844,
225165,
397200,
225170,
380822,
225175,
225180,
118691,
184244,
372664,
372702,
356335,
380918,
405533,
430129,
266294,
266297,
217157,
421960,
356439,
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,
217318,
225510,
225514,
225518,
372976,
381176,
61722,
356640,
356643,
356646,
266536,
356649,
356655,
332080,
340275,
356660,
397622,
332090,
225597,
332097,
201028,
348488,
332106,
332117,
250199,
250202,
332125,
250210,
348525,
332152,
250238,
389502,
332161,
356740,
332172,
373145,
340379,
389550,
324030,
266687,
340451,
160234,
127471,
340472,
324094,
266754,
324099,
324102,
324111,
340500,
324117,
324131,
332324,
381481,
324139,
356907,
324142,
356916,
324149,
324155,
348733,
324160,
324164,
348743,
381512,
324170,
324173,
324176,
389723,
332380,
381545,
340627,
184982,
373398,
258721,
332453,
332459,
389805,
332463,
381617,
332471,
332483,
332486,
373449,
332493,
357069,
357073,
332511,
332520,
340718,
332533,
348924,
389926,
152370,
348978,
340789,
348982,
398139,
127814,
357206,
389978,
430939,
357211,
357214,
201579,
201582,
349040,
340849,
201588,
430965,
324472,
398201,
119674,
324475,
430972,
340861,
324478,
340858,
324481,
373634,
398211,
324484,
324487,
381833,
324492,
324495,
324498,
430995,
324501,
324510,
422816,
324513,
398245,
201637,
324524,
340909,
324533,
5046,
324538,
324541,
398279,
340939,
340941,
340957,
431072,
398306,
340963,
201711,
349180,
439294,
209943,
209946,
250914,
357410,
185380,
357418,
209965,
209968,
209971,
209975,
209987,
209990,
341071,
349267,
250967,
341091,
210027,
210039,
341113,
210044,
349308,
152703,
160895,
349311,
210052,
349319,
210067,
210071,
210077,
210080,
210084,
251044,
185511,
210088,
210095,
210098,
210115,
332997,
333009,
333014,
210138,
218354,
251128,
218360,
275706,
275712,
275721,
349459,
333078,
251160,
349484,
349491,
251189,
415033,
251210,
357708,
210260,
259421,
365921,
333154,
251235,
333162,
234866,
390516,
333175,
357755,
251271,
136590,
112020,
349590,
357792,
259515,
415166,
415185,
366034,
366038,
415193,
415199,
423392,
333284,
415207,
366056,
415216,
210420,
423423,
415257,
415263,
366117,
415270,
144939,
415278,
415281,
415285,
210487,
415290,
415293,
349761,
415300,
333386,
333399,
366172,
333413,
423528,
423532,
210544,
415353,
333439,
415361,
267909,
153227,
333498,
333511,
210631,
259788,
358099,
333534,
366307,
366311,
431851,
366318,
210672,
366321,
366325,
210695,
210698,
366348,
399128,
333594,
210719,
358191,
210739,
366387,
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,
358339,
333774,
358371,
350189,
350193,
333818,
350202,
350206,
350213,
268298,
350224,
350231,
333850,
350237,
350240,
350244,
350248,
178218,
350251,
350256,
350259,
350271,
243781,
350285,
374864,
342111,
342133,
374902,
432271,
333997,
334011,
350410,
350416,
350422,
350425,
268507,
334045,
350445,
375026,
358644,
350458,
350461,
350464,
325891,
350467,
350475,
268559,
350480,
432405,
350486,
350490,
325914,
325917,
350493,
350498,
350504,
358700,
350509,
391468,
358704,
358713,
358716,
383306,
334161,
383321,
383330,
383333,
391530,
383341,
334203,
268668,
194941,
391563,
366990,
268701,
342430,
416157,
375208,
326058,
375216,
334262,
334275,
326084,
358856,
334304,
334311,
334321,
350723,
186897,
342545,
334358,
342550,
342554,
334363,
358941,
350761,
252461,
334384,
358961,
383536,
334394,
219718,
334407,
334420,
350822,
375400,
334465,
334468,
162445,
326290,
342679,
342683,
260766,
342710,
244409,
260797,
334528,
260801,
350917,
154317,
391894,
154328,
416473,
64230,
113388,
342766,
375535,
203506,
342776,
391937,
391948,
326416,
375568,
375571,
375574,
162591,
326441,
326451,
326454,
244540,
326460,
260924,
375612,
326467,
244551,
326473,
326477,
326485,
326490,
342874,
326502,
375656,
326507,
326510,
211825,
351097,
392060,
342915,
400259,
236430,
342930,
252822,
392091,
400285,
252836,
359334,
211884,
400306,
351168,
359361,
359366,
326598,
359382,
359388,
383967,
343015,
359407,
261108,
244726,
261111,
383997,
261129,
359451,
261147,
211998,
261153,
261159,
359476,
343131,
384098,
384101,
367723,
384107,
187502,
343154,
384114,
212094,
351364,
384135,
384139,
384143,
351381,
384151,
384160,
384168,
367794,
244916,
384181,
384188,
351423,
384191,
384198,
326855,
244937,
384201,
253130,
343244,
384208,
146642,
384224,
359649,
343270,
351466,
384246,
351479,
384249,
343306,
261389,
359694,
253200,
261393,
384275,
384283,
245020,
384288,
245029,
171302,
351534,
376110,
245040,
384314,
425276,
384323,
212291,
343365,
212303,
343393,
343398,
425328,
343409,
154999,
253303,
343417,
327034,
245127,
245136,
245142,
245145,
343450,
245148,
245151,
245154,
245157,
245162,
327084,
359865,
384443,
146876,
327107,
384453,
327110,
327115,
327117,
359886,
359890,
343507,
368092,
343534,
343539,
343544,
368122,
409091,
359947,
359955,
359983,
327275,
245357,
138864,
155254,
155273,
245409,
425638,
425649,
155322,
155327,
245460,
155351,
155354,
212699,
245475,
155363,
245483,
155371,
409335,
155393,
155403,
245525,
155422,
360223,
155438,
155442,
155447,
155461,
360261,
376663,
155482,
261981,
425822,
155487,
376671,
155490,
155491,
327531,
261996,
376685,
261999,
262002,
327539,
425845,
262005,
147317,
262008,
262011,
155516,
155521,
155525,
360326,
262027,
155531,
262030,
262033,
262036,
262039,
262042,
155549,
262045,
262048,
262051,
327589,
155559,
155562,
155565,
393150,
384977,
393169,
155611,
155619,
253923,
155621,
327654,
253926,
393203,
360438,
253943,
393206,
393212,
155646
] |
419af6530a680c4285f489ec3bb670daef182a86 | a9135e22215b93cd042a37429ad8be39f3b6c8ac | /Postcard/AppDelegate.swift | edce1e517a0e26ed2b72f5d73aba3eb829d2499f | [] | no_license | chromey/Postcard | ae0cc764407521612fb66c0c2ef1886379a46920 | 683274e5104ca8dd6a03c023403e2774d81c7d3c | refs/heads/master | 2016-09-05T09:58:47.190483 | 2014-11-16T13:18:28 | 2014-11-16T13:18:28 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,157 | swift | //
// AppDelegate.swift
// Postcard
//
// Created by Christian Romeyke on 15/11/14.
// Copyright (c) 2014 Christian Romeyke. 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,
237613,
229422,
229426,
237618,
229428,
286774,
204856,
229432,
286776,
319544,
286791,
237640,
278605,
286797,
311375,
237646,
163920,
196692,
319573,
311383,
278623,
278626,
319590,
311400,
278635,
303212,
278639,
131192,
278648,
237693,
327814,
131209,
417930,
303241,
311436,
303244,
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,
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,
287238,
320007,
172550,
172552,
303623,
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,
352880,
295538,
172655,
189044,
287349,
172656,
172660,
287355,
287360,
295553,
287365,
311942,
295557,
303751,
352905,
279178,
287371,
311946,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
303773,
164509,
287390,
295583,
172702,
230045,
172705,
303780,
287394,
172707,
287398,
287400,
279208,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
279231,
287423,
328384,
287427,
312006,
107208,
279241,
107212,
172748,
287436,
172751,
287440,
295633,
303827,
172755,
279255,
172760,
279258,
287450,
213724,
303835,
189149,
303838,
279267,
312035,
295654,
279272,
230128,
312048,
312050,
230131,
205564,
303871,
230146,
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,
320391,
213895,
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,
230413,
295949,
320528,
140312,
295961,
238620,
197663,
304164,
189479,
304170,
238641,
312374,
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,
304311,
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,
296255,
312639,
230718,
296259,
378181,
238919,
296264,
320840,
230727,
296267,
296271,
222545,
230739,
312663,
222556,
337244,
230752,
312676,
230760,
173418,
410987,
230763,
230768,
296305,
312692,
230773,
279929,
181626,
304505,
304506,
181631,
312711,
296331,
288140,
230800,
288144,
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,
288210,
370130,
288212,
280021,
288214,
222676,
239064,
288217,
288218,
280027,
288220,
329177,
239070,
288224,
288226,
370146,
280036,
288229,
280038,
288230,
288232,
280034,
288234,
320998,
288236,
288238,
288240,
288242,
296435,
288244,
296439,
288250,
148990,
296446,
402942,
206336,
296450,
321022,
230916,
230919,
214535,
370187,
304651,
304653,
230940,
222752,
108066,
296486,
296488,
157229,
230961,
288320,
288325,
124489,
280140,
280145,
288338,
280149,
288344,
280152,
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,
280260,
280264,
206536,
206539,
206541,
206543,
280276,
313044,
321239,
280283,
288478,
313055,
321252,
313066,
280302,
288494,
280304,
313073,
419570,
288499,
288502,
280314,
288510,
124671,
67330,
280324,
280331,
198416,
280337,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
321316,
304932,
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,
280487,
313258,
321458,
296883,
124853,
214966,
296890,
10170,
288700,
296894,
280515,
190403,
296900,
337862,
165831,
280521,
231379,
296921,
239586,
313320,
231404,
124913,
165876,
321528,
313340,
288764,
239612,
239617,
313347,
288773,
313358,
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,
280671,
223327,
149599,
149601,
149603,
321634,
329830,
280681,
313451,
223341,
280687,
313458,
280691,
215154,
313464,
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,
182517,
125171,
280823,
280825,
280827,
280830,
280831,
280833,
280835,
125187,
125191,
125207,
125209,
321817,
125218,
321842,
223539,
125239,
280888,
280891,
289087,
280897,
280900,
305480,
239944,
280906,
239947,
305485,
305489,
379218,
280919,
354653,
313700,
280937,
313705,
280940,
190832,
280946,
223606,
313720,
280956,
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,
240132,
223749,
305668,
281095,
223752,
150025,
338440,
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,
199367,
297671,
158409,
289493,
363234,
289513,
289522,
289525,
289532,
322303,
289537,
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,
207733,
207737,
183172,
158596,
338823,
322440,
314249,
240519,
183184,
240535,
289687,
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,
281923,
380226,
224584,
224587,
224594,
216404,
306517,
150870,
314714,
224603,
159068,
314718,
265568,
314723,
281960,
150890,
306539,
314732,
314736,
290161,
216436,
306549,
298358,
314743,
306552,
290171,
306555,
314747,
290174,
298365,
224641,
281987,
298372,
314756,
281990,
224647,
265604,
298377,
314763,
142733,
298381,
224657,
306581,
314779,
314785,
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,
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,
282261,
298651,
323229,
282269,
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,
323414,
241496,
315223,
241498,
307035,
307040,
282465,
110433,
241509,
110438,
298860,
110445,
282478,
282481,
110450,
315251,
315249,
315253,
315255,
339838,
282499,
315267,
315269,
241544,
282505,
241546,
241548,
298896,
282514,
298898,
241556,
44948,
298901,
282520,
241560,
241563,
241565,
241567,
241569,
282531,
241574,
282537,
298922,
178273,
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,
299006,
282623,
315396,
241669,
315397,
282632,
282639,
290835,
282645,
241693,
282654,
102438,
217127,
282669,
323630,
282681,
290877,
282687,
159811,
315463,
315466,
192589,
307278,
192596,
176213,
307287,
315482,
315483,
217179,
192605,
233567,
200801,
217188,
299109,
307303,
315495,
356457,
307307,
45163,
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,
184503,
307385,
307386,
258235,
176316,
307388,
307390,
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,
151864,
307512,
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,
291231,
61855,
283042,
291238,
291241,
127403,
127405,
291247,
127407,
299440,
299444,
127413,
283062,
291254,
194660,
127417,
291260,
283069,
127421,
127424,
127429,
127431,
283080,
176592,
315856,
315860,
176597,
283095,
127447,
299481,
176605,
242143,
291299,
127463,
242152,
291305,
127466,
176620,
291314,
291317,
135672,
233979,
291323,
291330,
283142,
127497,
135689,
233994,
291341,
233998,
234003,
234006,
127511,
152087,
283161,
234010,
135707,
242202,
135710,
242206,
242208,
291361,
242220,
291378,
234038,
152118,
234041,
70213,
111193,
242275,
299620,
242279,
168562,
184952,
135805,
291456,
135808,
299655,
373383,
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,
242436,
234246,
226056,
234248,
291593,
242443,
234252,
242445,
234254,
291601,
234258,
242450,
242452,
234261,
348950,
234264,
201496,
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,
234319,
242511,
234321,
234324,
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,
291714,
291716,
234373,
226182,
234375,
226185,
308105,
234379,
234384,
234388,
234390,
226200,
234393,
209818,
324504,
234396,
324508,
234398,
291742,
308123,
234401,
291747,
291748,
234405,
291750,
234407,
324518,
324520,
234410,
291754,
226220,
324522,
234414,
324527,
291760,
234417,
201650,
324531,
291756,
226230,
234422,
275384,
324536,
234428,
291773,
226239,
234431,
242623,
234434,
324544,
324546,
226245,
234437,
234439,
324548,
234443,
291788,
193486,
275406,
193488,
234446,
234449,
234452,
234455,
234459,
234461,
234464,
234467,
234470,
168935,
5096,
324585,
234475,
234478,
316400,
234481,
316403,
234484,
234485,
234487,
324599,
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,
234563,
316483,
308291,
234568,
234570,
316491,
234572,
300108,
234574,
300115,
234580,
234581,
275545,
234585,
242777,
234590,
234593,
234595,
234597,
300133,
234601,
300139,
234605,
234607,
160879,
275569,
234610,
300148,
234614,
398455,
234618,
275579,
144506,
234620,
234623,
226433,
234627,
275588,
234629,
275594,
234634,
234636,
177293,
234640,
275602,
234643,
226453,
275606,
308373,
275608,
234647,
234648,
234650,
308379,
283805,
324757,
234653,
300189,
234657,
324766,
324768,
119967,
283813,
234661,
242852,
234664,
300197,
275626,
234667,
316596,
308414,
234687,
316610,
300226,
226500,
234692,
283844,
300229,
308420,
308418,
283850,
300234,
300238,
300241,
316625,
300243,
300245,
316630,
300248,
300253,
300256,
300258,
300260,
234726,
300263,
300265,
161003,
300267,
300270,
300272,
120053,
300278,
275703,
316663,
300284,
275710,
300287,
283904,
292097,
300289,
300292,
300294,
275719,
300299,
177419,
283917,
242957,
275725,
177424,
300301,
349464,
283939,
259367,
283951,
292143,
300344,
226617,
283963,
243003,
226628,
283973,
300357,
177482,
283983,
316758,
357722,
316766,
218464,
316768,
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,
284084,
144820,
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,
308762,
284191,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
284213,
194101,
284215,
194103,
284218,
226877,
284223,
284226,
243268,
284228,
226886,
284231,
128584,
292421,
284234,
366155,
276043,
317004,
284238,
226895,
284241,
194130,
284243,
276052,
276053,
284245,
284247,
300628,
235097,
243290,
284251,
284249,
284253,
300638,
284255,
317015,
243293,
284258,
292452,
292454,
284263,
177766,
284265,
292458,
284267,
292461,
284272,
284274,
276086,
292470,
284278,
292473,
284283,
276093,
284286,
276095,
292479,
284288,
276098,
325250,
284290,
292485,
284292,
292481,
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,
317138,
358098,
284370,
284372,
284377,
276187,
284379,
284381,
284384,
284386,
358116,
276197,
317158,
284392,
325353,
284394,
358122,
284397,
276206,
284399,
358128,
358126,
358133,
358135,
276216,
358138,
300795,
358140,
284413,
358142,
284418,
317187,
358146,
317189,
317191,
284428,
300816,
300819,
317207,
284440,
186139,
300828,
300830,
276255,
300832,
284449,
300834,
325408,
227109,
317221,
358183,
186151,
276268,
300845,
194351,
243504,
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,
276466,
227314,
276472,
325624,
317435,
276476,
276479,
276482,
276485,
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,
309346,
309348,
227430,
276583,
350308,
309350,
276586,
309352,
350313,
350316,
276590,
301167,
227440,
350321,
284786,
276595,
301163,
350325,
350328,
292985,
301178,
292989,
301185,
317570,
350339,
292993,
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,
301258,
309450,
276685,
276689,
309462,
301272,
276699,
309468,
194780,
309471,
301283,
317672,
276713,
317674,
325867,
243948,
194801,
227571,
309491,
276725,
309494,
243960,
227583,
276735,
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,
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,
309779,
309781,
317971,
55837,
227877,
227879,
293417,
227882,
293421,
105007,
236082,
285236,
23094,
277054,
244288,
129603,
301636,
318020,
301639,
301643,
285265,
399955,
277080,
309849,
285277,
285282,
326244,
318055,
277100,
277106,
121458,
170618,
170619,
309885,
309888,
277122,
227975,
285320,
277128,
301706,
334476,
326285,
318094,
318092,
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,
285453,
228113,
285459,
277273,
293659,
326430,
228128,
285474,
293666,
228135,
318248,
277291,
293677,
318253,
285489,
293685,
285494,
301880,
285499,
301884,
293696,
310080,
277314,
277317,
277322,
277329,
162643,
310100,
301911,
301913,
277337,
301921,
400236,
236397,
162671,
326514,
310134,
277368,
236408,
15224,
416639,
416640,
113538,
310147,
416648,
39817,
187274,
277385,
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,
244731,
121850,
302075,
293882,
293887,
277504,
277507,
277511,
277519,
293908,
277526,
293917,
293939,
318516,
277561,
277564,
7232,
310336,
293956,
277573,
228422,
310344,
277577,
293960,
277583,
203857,
293971,
310355,
310359,
236632,
277594,
138332,
277598,
285792,
203872,
277601,
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,
277807,
285999,
113969,
277811,
318773,
277816,
318776,
286010,
277819,
294204,
417086,
277822,
286016,
294211,
302403,
277832,
384328,
277836,
294221,
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,
310659,
294276,
351619,
277892,
327046,
253320,
277894,
318858,
277898,
310665,
277903,
310672,
351633,
277905,
277908,
277917,
310689,
277921,
277923,
130468,
228776,
277928,
277932,
310703,
277937,
130486,
310710,
310712,
277944,
310715,
277947,
302526,
228799,
277950,
277953,
64966,
245191,
163272,
302534,
310727,
277959,
292968,
302541,
277966,
302543,
277963,
310737,
277971,
277975,
286169,
228825,
163290,
277978,
310749,
277981,
277984,
310755,
277989,
277991,
187880,
277995,
286188,
310764,
278000,
278003,
310772,
228851,
278006,
212472,
278009,
40440,
286203,
40443,
228864,
286214,
228871,
302603,
65038,
302614,
286233,
302617,
302621,
286240,
146977,
187939,
294435,
40484,
286246,
294439,
286248,
278057,
294440,
294443,
40486,
294445,
40488,
40491,
310831,
212538,
40507,
40511,
40513,
228933,
40521,
286283,
40525,
40527,
228944,
400976,
212560,
40533,
147032,
40537,
278109,
40541,
40544,
40548,
40550,
286312,
286313,
40552,
40554,
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,
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,
360317,
294785,
327554,
40840,
40851,
294803,
188312,
294811,
319390,
40865,
294817,
319394,
294821,
180142,
294831,
188340,
40886,
319419,
294844,
294847,
309354,
393177,
294876,
294879,
294883,
294890,
311279,
278513,
237555,
278516,
311283,
278519,
237562
] |
347ff540d621592b2946c37032e42e64fb08217b | 3d7262d266278677af718682479f483a9f37a9bc | /NewsApp/UIExtensions/UITableViewExtension.swift | ab45683cbe0b56c20f641ac361fe069e341d8df4 | [] | no_license | Stasievich/NewsApp | 3cfc590968b775f2af29961d4ea1665a4ae17989 | e256d7eee5d608c6a91ad4eaf4e50aba23697c6a | refs/heads/main | 2023-03-30T15:06:18.463695 | 2021-04-03T11:05:52 | 2021-04-03T11:05:52 | 354,224,598 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 304 | swift | //
// UITableViewExtension.swift
// NewsApp
//
// Created by Victor on 4/2/21.
//
import Foundation
import UIKit
extension UITableView {
func reloadDataWithAutoSizingCell() {
self.reloadData()
self.setNeedsLayout()
self.layoutIfNeeded()
self.reloadData()
}
}
| [
-1
] |
514a379f9373a2492d3328ae53c63b268d7a4259 | 929102265145a220951d84fe4ce35d47fdd8533a | /Sources/PDFDrawingView/Lines/Line.swift | 567ae5d470bd2b8e4d93604f6fe1e3cb7a66f444 | [
"MIT"
] | permissive | Dyldog/PDFDrawingView | 2c1c7111f07a00bc36999c30e12c742814602416 | e30e4ef098a80d3b81ea40b0a7988219530a8475 | refs/heads/master | 2020-09-16T15:58:33.286928 | 2019-11-25T00:37:37 | 2019-11-25T00:37:37 | 223,821,514 | 0 | 0 | null | 2019-11-24T22:45:52 | 2019-11-24T22:45:51 | null | UTF-8 | Swift | false | false | 1,900 | swift | //
// Line.swift
// DrawingPDF
//
// Created by Jack Rosen on 7/23/18.
// Copyright © 2018 Jack Rosen. All rights reserved.
//
import Foundation
import UIKit
class Line: Equatable{
static func == (lhs: Line, right: Line) -> Bool{
return lhs.points == right.points
}
var points: [CGPoint]
var layer = CAShapeLayer()
var _path = UIBezierPath()
var predicted = [CGPoint]()
var first: CGPoint?{
return points.first
}
var last: CGPoint? {
return points.last
}
var path: UIBezierPath{
let newPath = UIBezierPath()
var previousPoint = points.last!
newPath.append(_path)
for point in predicted{
newPath.addQuadCurve(to: point, controlPoint: previousPoint.midPoint(with: point))
previousPoint = point
}
return newPath
}
init(startingPoint: CGPoint){
points = [startingPoint]
layer.strokeColor = UIColor.blue.cgColor
layer.lineWidth = Constants.lineWidth + Constants.halfPointShift
}
func drawLine(path: UIBezierPath? = nil){}
// Performs a zoom operation on this line
@discardableResult
func zoom(scale: CGFloat, moveBy: CGVector?) -> CGVector{
let bounds = _path.bounds
_path.apply(CGAffineTransform(scaleX: scale, y: scale))
let move: CGVector
let newBounds = _path.bounds
move = moveBy ?? CGVector(dx: bounds.midX - newBounds.midX, dy: bounds.midY - newBounds.midY)
points = points.map({$0.applying(CGAffineTransform(scaleX: scale, y: scale))})
translate(by: move)
return move
}
// Performs a translate operation on this line
func translate(by vector: CGVector){
points = points.map({$0.moveBy(x: vector.dx, y: vector.dy)})
_path.apply(CGAffineTransform(translationX: vector.dx, y: vector.dy))
self.drawLine()
}
}
| [
-1
] |
3614cd0e2123bce68c22be734e9269c484aef00f | bf64f7bbdb26a4a618d62c9e0aa6e9b75dc15eab | /PocketLuggage/Source/Weather/File.swift | a1413cd8839e842255e04998e6f90755e0403c81 | [] | no_license | Cublax/Pocket_Luggage | 2ab8fc7006588cd2aad9ac784ead187fed105fd5 | 93aac171f86df8e306e0811c9567a36a190ebf7a | refs/heads/master | 2020-06-18T18:37:06.130606 | 2019-11-13T13:15:57 | 2019-11-13T13:15:57 | 196,403,443 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 173 | swift | //
// File.swift
// PocketLuggage
//
// Created by Alexandre Quiblier on 13/08/2019.
// Copyright © 2019 Alexandre Quiblier. All rights reserved.
//
import Foundation
| [
-1
] |
b59ed9ba93b28dd40bef95784ae0bcde98627e73 | 960d03d364ebc7f516f97097a56812b2dd65b6a8 | /WikipediaUnitTests/Manual Tests/ArticleManualPerformanceTests.swift | 8de9cbab5d8143c4244705391f746718f783cfb3 | [
"MIT"
] | permissive | GeekShy/wikipedia-ios | c64d7d69aab258ae8d874c5cf182f604a02b5cc0 | b3e9f7511a0043b45f0f955415997301114f434d | refs/heads/main | 2022-11-30T18:36:17.133212 | 2020-08-10T18:59:50 | 2020-08-10T18:59:50 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 4,054 | swift | import XCTest
@testable import Wikipedia
class MeasurableArticlePeekPreviewViewController: ArticlePeekPreviewViewController {
var displayCompletion: (() -> Void)?
override func updatePreferredContentSize(for contentWidth: CGFloat) {
super.updatePreferredContentSize(for: contentWidth)
displayCompletion?()
}
}
class ArticleManualPerformanceTests: XCTestCase {
private var articleURL: URL! = URL(string: "https://en.wikipedia.org/wiki/Dog")
private var appSchemeArticleURL: URL! = URL(string: "app://en.wikipedia.org/wiki/Dog")
override func setUp() {
super.setUp()
LSNocilla.sharedInstance().start()
ArticleTestHelpers.stubCompleteMobileHTMLResponse(inBundle: wmf_bundle())
}
override func tearDown() {
super.tearDown()
LSNocilla.sharedInstance().stop()
}
//represents the speed at which article content is seen on screen
func testArticleSetupTime() {
self.measure {
let dataStore = MWKDataStore.temporary()
guard let articleVC = ArticleViewController(articleURL: articleURL, dataStore: dataStore, theme: .light) else {
XCTFail("Unable to instantiate ArticleViewController")
return
}
let setupExpectation = expectation(description: "Waiting for article initial setup call")
articleVC.initialSetupCompletion = {
setupExpectation.fulfill()
UIApplication.shared.keyWindow?.rootViewController = nil
dataStore.clearTemporaryCache()
}
UIApplication.shared.keyWindow?.rootViewController = articleVC
wait(for: [setupExpectation], timeout: 3)
}
}
//represents the speed at which the context menu configuration is generated from a 3D touch on an article link
func testContextMenuConfigTime() {
let dataStore = MWKDataStore.temporary()
self.measure {
guard let articleVC = ArticleViewController(articleURL: articleURL, dataStore: dataStore, theme: .light) else {
XCTFail("Unable to instantiate ArticleViewController")
return
}
let contextExpectation = expectation(description: "Waiting for context menu configuration call")
if #available(iOS 13.0, *) {
articleVC.contextMenuConfigurationForLinkURL(appSchemeArticleURL) { (completionType, menuConfig) in
if completionType == .bail {
XCTFail("Menu config should not bail.")
}
if completionType == .timeout {
XCTFail("Menu config should not time out.")
}
contextExpectation.fulfill()
dataStore.clearTemporaryCache()
}
} else {
contextExpectation.fulfill()
}
wait(for: [contextExpectation], timeout: 3)
}
}
func testArticlePeekPreviewControllerDisplayTime() {
let dataStore = MWKDataStore.temporary()
self.measure {
let peekVC = MeasurableArticlePeekPreviewViewController(articleURL: articleURL, dataStore: dataStore, theme: .standard)
let displayExpectation = expectation(description: "Waiting for MeasurableArticlePeekPreviewViewController displayCompletion call")
peekVC.displayCompletion = {
displayExpectation.fulfill()
UIApplication.shared.keyWindow?.rootViewController = nil
dataStore.clearTemporaryCache()
}
UIApplication.shared.keyWindow?.rootViewController = peekVC
wait(for: [displayExpectation], timeout: 3)
}
}
}
| [
-1
] |
8e76a264fd80c26a5d6da16c9812638317760c52 | 8a6f4b9c3e7c0d4f10448c04bd7779eaf486ae54 | /Shopping List/View/ShoppingItemCollectionViewCell.swift | c8ab3c3e4011c9030b802fc5cec6dc82e7633f29 | [] | no_license | MarcJacques/SprintChallengeShoppingList | 86153a3715943752918f53f385f8b234f3baeca6 | 4f501e7b9756088945d0c2e73c7997ae84503fde | refs/heads/master | 2021-01-14T06:33:58.767715 | 2020-03-11T00:34:08 | 2020-03-11T00:34:08 | 242,628,078 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,172 | swift | //
// ShoppingItemCollectionViewCell.swift
// Shopping List
//
// Created by Marc Jacques on 2/23/20.
// Copyright © 2020 Lambda School. All rights reserved.
import UIKit
class ShoppingItemCollectionViewCell: UICollectionViewCell {
@IBOutlet weak var hasBeenAddedLabel: UILabel!
@IBOutlet weak var itemImage: UIImageView!
@IBOutlet weak var nameLabel: UILabel!
var shoppingItemsController: ShoppingItemsController?
var shoppingItem: ShoppingItem? {
didSet {
updateViews()
}
}
override var isSelected: Bool {
didSet {
guard let shoppingItemsController = shoppingItemsController, let item = shoppingItem else { return }
shoppingItemsController.Added(for: item)
shoppingItem?.hasBeenAdded = !item.hasBeenAdded
updateViews()
}
}
func updateViews() {
guard let shoppingItem = shoppingItem else { return }
itemImage.image = UIImage(named: shoppingItem.item)
nameLabel.text = shoppingItem.item
hasBeenAddedLabel.text = shoppingItem.hasBeenAdded ? "Added" : "Not Added"
}
}
| [
-1
] |
91d7bebe9fa9ed5d8a0677cd08ac759e475aaf71 | 3aa5fa38c4bac7800d3d8d544caacf039db23618 | /Swift5.1基础.playground/Pages/属性.xcplaygroundpage/Contents.swift | 46bdc546ee4ac7a46145da5eb6fba35b13c0573a | [] | no_license | w0shiliyang/Swift5.1 | e8a43985712650893aa6d086c5d76e3f868d94d3 | cdce64987acf47065725e9487079f1dac4f998df | refs/heads/master | 2020-09-14T07:42:44.910029 | 2020-08-20T05:32:29 | 2020-08-20T05:32:29 | 223,068,149 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 6,192 | swift | import Foundation
import UIKit
//: 属性
/// Swift中跟实例相关的属性可以分为2大类
/// 存储属性(Stored Property)
/// 类似于成员变量这个概念
/// 存储在实例的内存中
/// 结构体、类可以定义存储属性
/// 枚举不可以定义存储属性
/// 计算属性(Computed Property)
/// 本质就是方法(函数)
/// 不占用实例的内存
/// 枚举、结构体、类都可以定义计算属性
struct Circle {
/// 存储属性
var radius: Double
/// 计算属性
var diameter: Double {
set {
radius = newValue / 2
}
get {
radius * 2
}
}
}
var circle = Circle(radius: 5)
print(circle.radius)
print(circle.diameter)
//: 存储属性
/*
关于存储属性,Swift有个明确的规定
在创建类或结构体的实例时,必须为所有的存储属性设置一个合适的初始值
可以在初始化器里为存储属性设置一个初始值
可以分配一个默认的属性值作为属性定义的一部分
*/
//: 计算属性
/// set传入的新值叫做newValue, 也可以自定义
/// 定义计算属性只能用var, 不能用let,let代表常量:值是一成不变的
/// 计算属性的值是可能发生变化的(即使是只读计算属性)
/// 只读计算属性: 只有get,没有set
//: 枚举rawValue原理
///枚举原始值rawValue的本质是:只读计算属性
enum TestEnum : Int {
case test1 = 1, test2, test3
var rawValue: Int {
switch self {
case .test1:
return 10
case .test2:
return 11
case .test3:
return 12
}
}
}
print(TestEnum.test3.rawValue)
//: 延迟存储属性
/// 使用lazy可以定义一个延迟存储属性,在第一次用到属性的时候才会进行初始化
class Car {
init() {
print("Car init!")
}
func run() {
print("Car is running!")
}
}
class Person {
lazy var car = Car()
init() {
print("Person init!")
}
func goOut() {
car.run()
}
}
let p = Person()
print("---------")
p.goOut()
class PhotoView {
lazy var view: UIView = {
let redView = UIView()
redView.backgroundColor = .red
return redView
}()
}
/// lazy属性必须是var, 不能是let
/// let必须在实例的初始化方法完成之前就拥有值
/// 如果多条线程同时第一次访问lazy属性
/// 无法保证属性只被初始化1次
//: 延迟存储属性注意点
/// 当结构体包含一个延迟存储属性时,只有var才能访问延迟存储属性
/// 因为延迟属性初始化时需要改变结构体的内存
struct TestPoint {
var x = 0
var y = 0
lazy var z = 0
}
var tp = TestPoint()
print(tp.z)
//: 属性观察器
/// 可以为非lazy的var存储属性设置属性观察器
struct TestCircle {
var radius: Double {
willSet {
print("willSet", newValue)
}
didSet {
print("didSet", oldValue, radius)
}
}
init() {
self.radius = 1.0
print("Circle init!")
}
}
var testCircle = TestCircle()
testCircle.radius = 10.5
print(testCircle.radius)
/// willSet会传递新值,默认叫newValue
/// didSet会传递旧值,默认叫oldValue
/// 在初始化器中设置属性值不会触发willSet和didSet
/// 在属性定义时设置初始化值也不会触发willSet和didSet
//: 全局变量、局部变量
/// 属性观察器、计算属性的功能,同样可以应用在全局变量、局部变量身上
//: inout的再次研究
struct Shape {
var width: Int
var side: Int {
willSet {
print("willSide", newValue)
}
didSet {
print("didSetSide",oldValue, side)
}
}
var girth: Int {
set {
print("set girth")
width = newValue / side
}
get {
print("get girth")
return width * side
}
}
func show() {
print("width=\(width), side=\(side), girth=\(girth)")
}
}
func test(_ num: inout Int) {
num = 20
}
var s = Shape(width: 10, side: 4)
test(&s.width)
s.show()
print("----------")
test(&s.side)
s.show()
print("----------")
test(&s.girth)
s.show()
//: inout的本质总结
/// 如果实参有物理内存地址,且没有设置属性观察器
/// 直接将实参的内存地址传入函数(实参进行引用传递)
/// 如果实参是计算属性 或者 设置了属性观察器
/// 采用Copy In Copy Out的做法
/// 调用该函数时,先复制实参的值,产生副本 [get]
/// 将副本的内存地址传入函数(副本进行引用传递),在函数内部可以修改副本的值
/// 函数返回后,再将副本的值覆盖实参的值 [set]
/// 总结: inout的本质就是引用传递(地址传递)
//: 类型属性
/// 严格来说,属性可以分为
/// 实例属性:只能通过实例去访问
/// 存储实例属性:存储在实例的内存中,每个实例都有1份
/// 计算实例属性
/// 类型属性:只能通过类型去访问
/// 存储类型属性: 整个程序运行中,就只有1份内存(类似于全局变量)
/// 计算类型属性
/// 可以通过static定义类型属性
/// 如果是类,也可以用关键字class
struct TestCar {
static var count: Int = 0
init() {
TestCar.count += 1
}
}
let c1 = TestCar()
let c2 = TestCar()
let c3 = TestCar()
print(TestCar.count)
//: 类型属性细节
/// 不同于存储实例属性,你必须给存储类型属性设定初始值
/// 因为类型没有像实例那样的init初始化器来初始化存储属性
/// 存储类型属性默认就是lazy,会在第一次使用的时候才初始化
/// 就算被多个线程同时访问,保证只会初始化一次
/// 存储类型属性可以是let
/// 枚举类型也可以定义类型属性(存储类型属性、计算类型属性)
//: 单例模式
public class FileManager {
// public static let shared = FileManager()
public static let shared = {
return FileManager()
}()
private init() { }
}
//: [方法](@next)
| [
-1
] |
8e4b241c6b9e65a40b6f1ed77f3f13e6aa1b1b43 | 939942d850558e5c4e9777a9891809b9e9296ed7 | /KindleLBTA/KindleLBTA/BookCell.swift | ab15563559d9e09f8f5650dcdabb9b4252fef768 | [] | no_license | Eugeneberezin/kindleApp-swift | 0427342dd58616d6bd3e57cfde8f3a0fa4fce824 | 2e6aa6461aee30383cb383974167c4bf4c9485ab | refs/heads/master | 2020-06-12T15:19:36.762942 | 2019-08-25T23:23:19 | 2019-08-25T23:23:19 | 194,344,531 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,684 | swift | //
// BookCell.swift
// KindleLBTA
//
// Created by Eugene Berezin on 6/29/19.
// Copyright © 2019 Eugene Berezin. All rights reserved.
//
import UIKit
class BookCell: UITableViewCell {
var book: Book? {
didSet {
titleLabel.text = book?.title
authorLabel.text = book?.author
accessibilityIdentifier = "BOOK_CELL_ID_\(book?.author ?? "")"
guard let coverImageUrl = book?.coverImageUrl else { return }
guard let url = URL(string: coverImageUrl) else { return }
coverImageView.image = nil
URLSession.shared.dataTask(with: url) { (data, response, error) in
if let err = error {
print("Fail to fetch the image")
return
}
guard let imageData = data else { return }
let image = UIImage(data: imageData)
DispatchQueue.main.async {
self.coverImageView.image = image
}
}.resume()
}
}
private let coverImageView: UIImageView = {
let imageView = UIImageView()
imageView.backgroundColor = .red
imageView.translatesAutoresizingMaskIntoConstraints = false
imageView.image = #imageLiteral(resourceName: "steve_jobs")
return imageView
}()
private let titleLabel: UILabel = {
let label = UILabel()
label.text = "This is the text for the title for our book inside of our cell"
label.textColor = .white
label.font = UIFont.boldSystemFont(ofSize: 16)
label.translatesAutoresizingMaskIntoConstraints = false
return label
}()
private let authorLabel: UILabel = {
let lable = UILabel()
lable.text = "This is Label for Author title lable"
lable.textColor = UIColor.lightGray
lable.translatesAutoresizingMaskIntoConstraints = false
return lable
}()
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
backgroundColor = .clear
addSubview(coverImageView)
coverImageView.leftAnchor.constraint(equalTo: self.leftAnchor, constant: 8).isActive = true
coverImageView.topAnchor.constraint(equalTo: self.topAnchor, constant: 8).isActive = true
coverImageView.bottomAnchor.constraint(equalTo: self.bottomAnchor, constant: -8).isActive = true
coverImageView.widthAnchor.constraint(equalToConstant: 50).isActive = true
addSubview(titleLabel)
titleLabel.leftAnchor.constraint(equalTo: coverImageView.rightAnchor, constant: 8).isActive = true
titleLabel.rightAnchor.constraint(equalTo: self.rightAnchor, constant: -8).isActive = true
titleLabel.heightAnchor.constraint(equalToConstant: 20).isActive = true
titleLabel.centerYAnchor.constraint(equalTo: self.centerYAnchor, constant: -10).isActive = true
addSubview(authorLabel)
authorLabel.topAnchor.constraint(equalTo: titleLabel.bottomAnchor, constant: 4).isActive = true
authorLabel.leftAnchor.constraint(equalTo: coverImageView.rightAnchor, constant: 8).isActive = true
authorLabel.rightAnchor.constraint(equalTo: self.rightAnchor, constant: -8).isActive = true
authorLabel.heightAnchor.constraint(equalToConstant: 20).isActive = true
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
| [
-1
] |
1ea2f6054a43d6cd59dbd5bb865e12bfbe17586c | fa8fa25b1d686622f52ebe405dfc36b376681ad6 | /SPHTechIOSAppTest/SPHTechIOSAppTest/Modules/HomeScreen/Views/Controllers/HomeScreenVC.swift | 25a46488a74c6f3e470134d59ddf00b24a5d90f8 | [] | no_license | ganjmeng/SPHTechIOSAppTest | 1b84859d5e11bc278317f2c89825ca4c4998fcf7 | d7f7d599cc1cc4cc1fb07c90c0fec3f66454ec64 | refs/heads/master | 2020-07-22T08:20:25.195543 | 2019-01-30T06:33:37 | 2019-01-30T06:33:37 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 6,275 | swift | //
// HomeScreenVC.swift
// SPHTechIOSAppTest
//
// Created by Mukesh Verma on 29/01/19.
// Copyright © 2019 Mukesh Verma. All rights reserved.
//
import UIKit
class HomeScreenVC: UIViewController {
@IBOutlet weak var tblMobileConsumtion: UITableView!
private var viewModel = HomeViewModel()
var isRefreshInProgress = false
var actViewLoader: UIActivityIndicatorView!
var selectedSection : Int?
override func viewDidLoad() {
super.viewDidLoad()
view.accessibilityIdentifier = "onboardingView"
tblMobileConsumtion.accessibilityIdentifier = "tblMobileConsumtion"
self.prepareTableView()
self.setUpNavBar()
self.observeEvents()
self.getMobileDataList()
}
}
// Other useful methods for view setup
extension HomeScreenVC
{
// Function to observe various event call backs from the viewmodel as well as Notifications.
private func observeEvents() {
viewModel.updateUI = { [weak self] in
DispatchQueue.main.async {
self?.tblMobileConsumtion.reloadData()
self?.isRefreshInProgress = false
self?.actViewLoader.stopAnimating()
}
}
}
private func setUpNavBar()
{
actViewLoader = UIActivityIndicatorView(style: .gray)
actViewLoader.hidesWhenStopped = true
actViewLoader.frame = CGRect.init(x: 0, y: 0, width: 20, height: 20 )
let leftBarButton = UIBarButtonItem(customView: actViewLoader)
self.navigationItem.leftBarButtonItem = leftBarButton
}
/// Prepare the table view.
private func prepareTableView() {
self.tblMobileConsumtion.tableHeaderView = UIView.init()
QuaterInfoTableViewCell.registerWithTable(self.tblMobileConsumtion)
YearConsumptionView.registerHeaderWithTable(self.tblMobileConsumtion)
}
// MARK: Load Mobile Data
func getMobileDataList() {
if isRefreshInProgress
{
return
}
else if NetworkManager.isInterNetExist() == false {
let alert = UIAlertController(title: "No Internet connection", message: "Turn on mobile data or use Wi-Fi to access data.", preferredStyle: .alert)
alert.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))
self.present(alert, animated: true)
}
else
{
if viewModel.shouldLoadMoreData()
{
actViewLoader.startAnimating()
isRefreshInProgress = true
viewModel.loadMoreData()
}
}
}
func configureCellForIndexPath(indexPath : IndexPath, cell : QuaterInfoTableViewCell)
{
if let data = viewModel.getRecordBasedOnSection(section: indexPath.section, row: indexPath.row)
{
cell.prepareCell(record: data)
if indexPath.row > 0
{
let data1 = viewModel.getRecordBasedOnSection(section: indexPath.section, row: indexPath.row - 1)!
if viewModel.isFirstRecordIsGreaterThanSecondRecord(record1: data1, record2: data)
{
cell.lblVolume.textColor = .red
cell.lblQuarter.textColor = .red
}
else
{
cell.lblVolume.textColor = .blue
cell.lblQuarter.textColor = .blue
}
}
}
cell.accessibilityIdentifier = "cell\(indexPath.row)"
}
}
// MARK: UITableView Delegate and DataSource
extension HomeScreenVC : UITableViewDelegate, UITableViewDataSource
{
func numberOfSections(in tableView: UITableView) -> Int {
return viewModel.arrSortedYears.count
}
func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return viewModel.getNumberOfRowsForForSection(section: section)
}
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell : QuaterInfoTableViewCell! = tableView.dequeueReusableCell(withIdentifier: "QuaterInfoTableViewCell") as? QuaterInfoTableViewCell
cell.backgroundColor = .white
self.configureCellForIndexPath(indexPath: indexPath, cell: cell)
return cell
}
func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
if let hasSelectedSection = self.selectedSection, hasSelectedSection == indexPath.section
{
return 44
}
return 0
}
func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? {
let headerView : YearConsumptionView = tableView.dequeueReusableHeaderFooterView(withIdentifier: "YearConsumptionView") as! YearConsumptionView
headerView.delegate = self
headerView.setupUI(strTotalConsumtion: viewModel.getTotalConsumtionForSectionForYear(strYear: viewModel.arrSortedYears[section]), strYear: viewModel.arrSortedYears[section], section : section)
headerView.displayIconForExpCollapseForSection(intSection: self.selectedSection)
headerView.accessibilityIdentifier = "YearConsumptionView\(section)"
return headerView
}
func tableView(_ tableView: UITableView, heightForHeaderInSection section: Int) -> CGFloat {
return 60
}
}
extension HomeScreenVC : UIScrollViewDelegate
{
func scrollViewDidScroll(_ scrollView: UIScrollView) {
let isReachingEnd = scrollView.contentOffset.y >= 0
&& scrollView.contentOffset.y >= (scrollView.contentSize.height - scrollView.frame.size.height)
if isReachingEnd {
self.getMobileDataList()
}
}
}
extension HomeScreenVC:YearConsumptionViewDelegate
{
func didSelectHeaderInSection(section : Int)
{
if let hasSelectedSection = self.selectedSection, hasSelectedSection == section
{
self.selectedSection = nil
}
else
{
self.selectedSection = section
}
self.tblMobileConsumtion.reloadData()
}
}
| [
-1
] |
ef505a25fb59b16dd0ff7f24045589f80015ce01 | e0ff31d216980788136f4b7ca7009364294c97fb | /LNZCollectionLayouts/Layouts/LNZSnapToCenterCollectionViewLayout.swift | ce9afe58baa0205831976fe11013d07050c9c795 | [
"MIT"
] | permissive | PhanithNY/LNZCollectionLayouts | dac713752ddc6f8e990636270f181e27509a18e3 | 1dfbb73e940eeb6419b14c9f67bd3c46cf6a9a01 | refs/heads/master | 2020-04-14T17:13:39.267891 | 2018-09-20T17:43:47 | 2018-09-20T17:43:47 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 19,680 | swift | //
// LNZSnapToCenterCollectionViewLayout.swift
// LNZCollectionLayouts
//
// Created by Giuseppe Lanza on 18/07/17.
// Copyright © 2017 Gilt. All rights reserved.
//
import UIKit
///This methods will be called on the delegate whenever a centered element is changing. In fact as element in focus is to be intended
///as element currently centered
@objc public protocol FocusChangeDelegate: class {
///This method will signal to the delegate that the element in focus will change.
///- parameter container: The object that is tracking the focused element
///- parameter inFocus: The element currently in focus (before the change)
///- parameter newInFocus: The new element that will be in focus.
func focusContainer(_ container: FocusedContaining, willChangeElement inFocus: Int, to newInFocus: Int)
///This method will signal to the delegate that the element in fucs is changed.
///- parameter container: The object that is tracking the focused element
///- parameter inFocus: The element currently in focus
func focusContainer(_ container: FocusedContaining, didChangeElement inFocus: Int)
}
///An object conforming FocusContaining will track elements in focus in a collection and will alert the delegate for changes-
@objc public protocol FocusedContaining: class {
///The element currently in focus
var currentInFocus: Int { get }
///The delegate object to be notified for focus changes.
weak var focusChangeDelegate: FocusChangeDelegate? { get set }
}
/**
This collection view layout is an horizontal layout that will allow pagination for items smaller than collection.
The element currently on the center is trackable with delegate pattern through the FocusChangeDelegate protocol.
This collectionView layout handles just one section, of homogeneus elements, therefore just one itemSize is allowed.
It handles header and footer where the height is specified by the UICollectionViewFlowLayout delegate methods
collectionView(_: layout: referenceSizeForHeaderInSection) and collectionView(_: layout: referenceSizeForFooterInSection)
*/
@IBDesignable @objcMembers
open class LNZSnapToCenterCollectionViewLayout: UICollectionViewLayout, FocusedContaining {
//MARK: - Inspectable properties
///The spacing between consecutive items
@IBInspectable public var interitemSpacing: CGFloat = 8
///The space between the items and the top border of the collection view
@IBInspectable public var sectionInsetTop: CGFloat = 8
///The space between the items and the bottom border of the collection view
@IBInspectable public var sectionInsetBottom: CGFloat = 8
///The minimum space from the left border and the first item of the collection view.
///The real spacing will be determined in runtime and it will be computed to enforce the first item to be centered.
@IBInspectable public var minimumSectionInsetLeft: CGFloat = 8
///The minimum space from the right border and the last item of the collection view.
///The real spacing will be determined in runtime and it will be computed to enforce the last item to be centered.
@IBInspectable public var minimumSectionInsetRight: CGFloat = 8
///The size for each element in the collection
@IBInspectable public var itemSize: CGSize = CGSize(width: 100, height: 100)
///If this property is true, the left and right section spacing will be adapted to enforce the first and last element to be centered.
///This property is true by default.
@IBInspectable public var centerFirstItem: Bool = true
//MARK: - Utility properties
///This property represents the actual section inset left calculated in order to have the first element of the collection centered.
internal var sectionInsetLeft: CGFloat = 8
///This property represents the actual section inset right calculated in order to have the last element of the collection centered.
internal var sectionInsetRight: CGFloat = 8
///As in focus element is to be intended the element currently in the center,
///or the closest element to the center of the collection view.
///- seeAlso: FocusedContaining
public internal(set) var currentInFocus: Int = 0 {
willSet {
guard newValue != currentInFocus else { return }
focusChangeDelegate?.focusContainer(self, willChangeElement: currentInFocus, to: newValue)
}
didSet {
guard currentInFocus != oldValue else { return }
focusChangeDelegate?.focusContainer(self, didChangeElement: currentInFocus)
}
}
/**
This delegate will be called every time the element currently in focus changes.
- seeAlso: FocusChangeDelegate
*/
public weak var focusChangeDelegate: FocusChangeDelegate?
//MARK: - Cached properties
internal var itemCount: Int?
internal var headerHeight: CGFloat?
internal var footerHeight: CGFloat?
internal var headerAttributes: UICollectionViewLayoutAttributes?
internal var footerAttributes: UICollectionViewLayoutAttributes?
///This property will track changes in the collection view size. The prepare method can be called multiple times even when the collection is scrolling
///and there might be operations that in the prepare method we want to perform exclusively if the collection sie is changed.
internal var currentCollectionSize: CGSize = .zero
internal var resetOffset: Bool = true
//MARK: - Layout implementation
//MARK: Preparation
override open var collectionViewContentSize: CGSize {
guard let collection = collectionView else { return .zero }
//We can compute the size of the collectionView contentSize property by using the data source methods of the collectionView.dataSource
//All we need is the number of items in the section.
//We want to query for the itemCount just once. If there is a value of itemCount, the layout ws not invalidated, therefore we should not query
//the collectionView as we know that there are no changes.
if itemCount == nil {
let sections = collection.dataSource?.numberOfSections?(in: collection) ?? 0
guard sections < 2 else {
//This collection view layout can handle just one section.
fatalError("\(self) is a collection View Layout that just supports one section")
}
itemCount = collection.dataSource?.collectionView(collection, numberOfItemsInSection: 0) ?? 0
}
//To compute the height we need to know if there are heders and footers.
let delegate = collection.delegate as? UICollectionViewDelegateFlowLayout
if headerHeight == nil {
headerHeight = delegate?.collectionView?(collection, layout: self, referenceSizeForHeaderInSection: 0).height ?? 0
}
if footerHeight == nil {
footerHeight = delegate?.collectionView?(collection, layout: self, referenceSizeForFooterInSection: 0).height ?? 0
}
//This method is always called right after the prepare method, so at this point sectionInsetLeft + sectionInsetRight is already determined
let w: CGFloat = sectionInsetLeft + sectionInsetRight - interitemSpacing + (itemSize.width + interitemSpacing) * CGFloat(itemCount ?? 0)
let h: CGFloat = CGFloat(headerHeight ?? 0.0) + sectionInsetTop + sectionInsetBottom + itemSize.height + CGFloat(footerHeight ?? 0.0)
return CGSize(width: w, height: h)
}
open override func prepare() {
super.prepare()
guard let collection = collectionView else { return }
collection.decelerationRate = UIScrollView.DecelerationRate.fast
sectionInsetLeft = centerFirstItem ? max(minimumSectionInsetLeft, collection.bounds.width/2.0 - itemSize.width/2.0) : minimumSectionInsetLeft
sectionInsetRight = centerFirstItem ? max(minimumSectionInsetRight, sectionInsetLeft) : minimumSectionInsetRight
if resetOffset {
resetOffset = false
let currentInFocusXOffset = (itemSize.width + interitemSpacing) * CGFloat(currentInFocus)
let proposedOffset = CGPoint(x: currentInFocusXOffset, y: -collection.contentInset.top)
collection.contentOffset = proposedOffset
}
}
//MARK: Layouting and attributes generators
///Returns the items that should be found in a given frame. The frame is relative to the scrollView contentSize coordinate space, therefore
///the origin represents the offset of the scrollView. This method takes in consideration the items count.
///- parameter rect: The ract you want the object of.
///- returns: An array of tuples, where the first element represents the indexPath of the element, and the second is its rame.
internal func items(in rect: CGRect) -> [(index:IndexPath, frame: CGRect)] {
guard let itemCount = itemCount else { return [] }
let firstIndex = max(Int(floor((rect.origin.x - sectionInsetLeft) / (itemSize.width + interitemSpacing))), 0)
let lastIndex = min(Int(floor((rect.maxX - sectionInsetLeft) / (itemSize.width + interitemSpacing))), itemCount - 1)
var result = [(index:IndexPath, frame: CGRect)]()
guard firstIndex <= lastIndex else { return result }
for i in firstIndex...lastIndex {
let indexPath = IndexPath(item: i, section: 0)
let frame = frameForItem(at: indexPath)
result.append((indexPath, frame))
}
return result
}
///This method returns the frame for an item at a certain indexPath. This method performs pure math operations to compute the frame, therefore
///there are no checks in place in ordert o ensure that the equested tems is actually existing in the array of items.
///- parameter indexPath: The indexPath of the item you want to know the frame of.
///- returns: A CGRect representing the frame of the requested item.
///- warning: The item might not exist. This method performs no check around item counts and item existence. Using pure math, it computes the position
///and the hypotetical size of the item. It is developer's responsibility to ask for item that actually exists in their collection.
internal func frameForItem(at indexPath: IndexPath) -> CGRect {
let x = sectionInsetLeft + (itemSize.width + interitemSpacing) * CGFloat(indexPath.item)
let y = (headerHeight ?? 0) + sectionInsetTop
return CGRect(origin: CGPoint(x: x, y: y), size: itemSize)
}
open override func layoutAttributesForSupplementaryView(ofKind elementKind: String, at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? {
guard let collection = collectionView else { return nil }
var frame: CGRect!
let attributes = UICollectionViewLayoutAttributes(forSupplementaryViewOfKind: elementKind, with: indexPath)
if elementKind == UICollectionView.elementKindSectionFooter,
let height = footerHeight,
height != 0 {
frame = CGRect(x: collection.contentOffset.x, y: collectionViewContentSize.height - height, width: collection.bounds.width, height: height)
footerAttributes = attributes
} else if elementKind == UICollectionView.elementKindSectionHeader,
let height = headerHeight,
height != 0 {
frame = CGRect(x: collection.contentOffset.x, y: 0, width: collection.bounds.width, height: height)
headerAttributes = attributes
}
guard frame != nil else { return nil }
attributes.frame = frame
return attributes
}
open override func layoutAttributesForElements(in rect: CGRect) -> [UICollectionViewLayoutAttributes]? {
guard let itemCount = itemCount, itemCount > 0 else { return nil }
var result = [UICollectionViewLayoutAttributes]()
for item in items(in: rect) {
let indexPath = item.index
let attribute = UICollectionViewLayoutAttributes(forCellWith: indexPath)
attribute.frame = item.frame
result.append(attribute)
}
//move the headers and footers
result.append(contentsOf: attributesForHeaderAndFooter())
return result
}
internal func attributesForHeaderAndFooter() -> [UICollectionViewLayoutAttributes] {
var result = [UICollectionViewLayoutAttributes]()
if let header = headerAttributes ?? layoutAttributesForSupplementaryView(ofKind: UICollectionView.elementKindSectionHeader, at: IndexPath(item: 0, section: 0)) {
header.frame.origin.x = collectionView?.contentOffset.x ?? 0
result.append(header)
}
if let footer = footerAttributes ?? layoutAttributesForSupplementaryView(ofKind: UICollectionView.elementKindSectionFooter, at: IndexPath(item: 0, section: 0)) {
footer.frame.origin.x = collectionView?.contentOffset.x ?? 0
result.append(footer)
}
return result
}
open override func layoutAttributesForItem(at indexPath: IndexPath) -> UICollectionViewLayoutAttributes? {
let frame = frameForItem(at: indexPath)
let attribute = UICollectionViewLayoutAttributes(forCellWith: indexPath)
attribute.frame = frame
return attribute
}
internal func getAttributeForCenter(in rect: CGRect) -> (index: IndexPath, frame: CGRect)? {
let layoutAttributes = items(in: rect)
var candidateAttributes: (index: IndexPath, frame: CGRect)?
let proposedContentOffsetCenterX = rect.origin.x + rect.size.width / 2
for attributes in layoutAttributes {
guard let candidate = candidateAttributes else {
candidateAttributes = attributes
continue
}
if abs(attributes.frame.midX - proposedContentOffsetCenterX) < abs(candidate.frame.midX - proposedContentOffsetCenterX) {
candidateAttributes = attributes
}
}
return candidateAttributes
}
open override func targetContentOffset(forProposedContentOffset proposedContentOffset: CGPoint, withScrollingVelocity velocity: CGPoint) -> CGPoint {
guard let collection = collectionView else { return proposedContentOffset }
//This code allows the behavior of snap to center.
let collectionViewSize = collection.bounds.size
let proposedRect = CGRect(origin: CGPoint(x: proposedContentOffset.x, y: 0), size: collectionViewSize)
//Here we check for the existence of an alement at the center, and we assume that this is the right element to be snapped in the center.
guard let candidate = getAttributeForCenter(in: proposedRect) else { return proposedContentOffset }
var newOffsetX = candidate.frame.midX - collection.bounds.size.width / 2
let offset = newOffsetX - collection.contentOffset.x
if (velocity.x < 0 && offset > 0) || (velocity.x > 0 && offset < 0) {
//If the velocity of scroll tends to superate the element to go to the next item, or the previous, we correct the new offset by adding or removing
//the width of the "page"
let pageWidth = itemSize.width + interitemSpacing
newOffsetX += velocity.x > 0 ? pageWidth : -pageWidth
}
//If the offset is out f the contentSize boundaries on iOS 9 the scroll view will behave oddly, so we want to be sure that the new offset is not less
//than 0 and not more than the contentSize.width
newOffsetX = max(newOffsetX, 0)
newOffsetX = min(newOffsetX, collection.contentSize.width - collection.bounds.width)
return CGPoint(x: newOffsetX, y: proposedContentOffset.y)
}
open override func prepareForTransition(from oldLayout: UICollectionViewLayout) {
//This method will be called when this layout is applied to an existing collectionView with different layout.
//At this point the layout is still not changed for the collectionView, therefore we can query it to find out which would be the items that
//we must display. If the layout is a FocusedContaining, then we want to give focus to the element currently in focus in the old layout.
//If this is not the case then we will assume that the focused item is the central one in the array of visible elements.
if let centerLayout = oldLayout as? FocusedContaining {
currentInFocus = centerLayout.currentInFocus
} else if let collection = oldLayout.collectionView {
let visibleIndexes = collection.indexPathsForVisibleItems
guard !visibleIndexes.isEmpty else { return }
currentInFocus = collection.indexPathsForVisibleItems[visibleIndexes.count/2].item
}
invalidateLayout()
}
//MARK: Invalidation
open override func invalidationContext(forBoundsChange newBounds: CGRect) -> UICollectionViewLayoutInvalidationContext {
let delta = CGSize(width: newBounds.width - currentCollectionSize.width, height: newBounds.height - currentCollectionSize.height)
let context = super.invalidationContext(forBoundsChange: newBounds)
context.contentSizeAdjustment = delta
return context
}
open override func invalidateLayout(with context: UICollectionViewLayoutInvalidationContext) {
//we want to reload data just in the condition of important changes in data structure or in case of frame change.
if context.invalidateEverything || context.invalidateDataSourceCounts || context.contentSizeAdjustment != .zero {
itemCount = nil
headerHeight = nil
footerHeight = nil
headerAttributes = nil
footerAttributes = nil
resetOffset = true
currentCollectionSize = collectionView?.bounds.size ?? .zero
}
super.invalidateLayout(with: context)
}
///This method is intended to update the current element in focus.
internal func updateCurrentInFocus(in rect: CGRect? = nil) {
guard let collection = collectionView else { return }
let collectionViewSize = collection.bounds.size
let proposedRect = rect ?? CGRect(origin: CGPoint(x: collection.contentOffset.x, y: 0), size: collectionViewSize)
guard let candidate = getAttributeForCenter(in: proposedRect) else { return }
currentInFocus = candidate.index.item
}
open override func shouldInvalidateLayout(forBoundsChange newBounds: CGRect) -> Bool {
//This method is called everytime there is a change in the collection view size or in the collection view offset.
//The bounds in this case is to be intended as "current visible frame". We want to update the current in focus
//just in case of scroll events, and not if the size changes, because in that case we want to preserve the element
//in the center to be the same.
if currentCollectionSize == newBounds.size {
updateCurrentInFocus(in: newBounds)
}
return true
}
}
| [
-1
] |
fe392be8b181cf6fe2af3d59df3e13e09a4fdc24 | 8501cdc0201dd6e48d4d1b6855f5fe574d488f9e | /SRHelper/SRHelper/Classes/Extensions/Responder+Extensions.swift | aa84468d7a6b66231fba7d48d41d44c72a2b9257 | [
"MIT"
] | permissive | farabis4m/SRHelper | 427d038c7002075f26ab0a84a51581707dc2948c | 06e30479171a91deabd1792283dd968fde8935c3 | refs/heads/master | 2020-04-15T15:19:08.581443 | 2018-09-30T11:57:56 | 2018-09-30T11:57:56 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 504 | swift | //
// Responder+Extensions.swift
// SRHelper
//
// Created by Sajeev Raj on 9/26/18.
// Copyright © 2018 Sajeev. All rights reserved.
//
import UIKit
extension UIResponder {
public static var identifier: String {
return "\(self)"
}
var isRTL: Bool {
return (UIApplication.shared.userInterfaceLayoutDirection == UIUserInterfaceLayoutDirection.rightToLeft)
}
public static var nib: UINib {
return UINib(nibName: identifier, bundle: nil)
}
}
| [
-1
] |
e17212fa60b49f2ee6a900b3e1c676b1cf83c270 | 23b7e8e7a04d8a839f1133a09e0e1c2dd90a986e | /iOS-ImagePicker-Lab/AppDelegate.swift | 63559162f8afac7cc2c625a1371ca8f744ca89b2 | [] | no_license | aabudu16/iOS-ImagePicker-Lab | 5c178bf2b6697e45182e9f6abc8e7231c8ad14a9 | 888375d91eb7c6610322ceb90ece777c8d3b9848 | refs/heads/master | 2020-08-04T16:51:04.753889 | 2019-10-01T22:10:14 | 2019-10-01T22:10:14 | 212,209,100 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,186 | swift | //
// AppDelegate.swift
// iOS-ImagePicker-Lab
//
// Created by Mr Wonderful on 10/1/19.
// Copyright © 2019 Mr Wonderful. 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,
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,
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,
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,
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,
313044,
280276,
321239,
280283,
313052,
18140,
288478,
313055,
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,
289111,
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,
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,
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,
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,
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,
178006,
317271,
284502,
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,
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,
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,
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
] |
6f3b949872800a5f9d3ece06ffc299aaa9b0df1f | 4564a80c8fe01c33e70dc7eb8da51eaddbd2d040 | /kbia-stream/ViewController.swift | a76b7abc35684e342f3ea0615ee325b0ffece2a3 | [] | no_license | NathanLawrence/kbia-stream | 95e971dcdfbb7711e68efb63f99e0cd38e1bc5f8 | d385b4934c06ca4fb3b7f8ef3903c1a654236e1d | refs/heads/master | 2016-08-12T16:04:52.294727 | 2015-09-25T20:54:02 | 2015-09-25T20:54:02 | 43,096,909 | 1 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,868 | swift | //
// ViewController.swift
// kbia-stream
//
// Created by Nathan Lawrence on 9/24/15.
// Copyright © 2015 Nathan Lawrence. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
/*APPLICATION PROPERTIES/VARIABLES
This is where I put the things that need to be triggered by app events. */
var radioKeeper : RadioKeeper = RadioKeeper()
var stationSelected : String = "KBIA"
/* OUTLET SECTION
This is where I get access to the view elements to do the things. */
@IBOutlet weak var albumArtView: UIImageView! //The album art window at the top of the screen.
@IBOutlet weak var playStopButton: UIButton! //The play/stop button at the center of the screen.
@IBOutlet weak var segmentedStationSel: UISegmentedControl! //The segmented station selector at the bottom of the screen.
/*ACTION SECTION
This is where interface elements do things to trigger other things. */
@IBAction func playButtonTouchUpInside(sender: UIButton) { //When someone performs a typical iOS touch action on the "play" button.
print(radioKeeper.mkRadio(stationSelected))
playStopButton.setTitle("Stop", forState: UIControlState.Normal)
print(radioKeeper.playRadio("KBIA"))
}
@IBAction func segmentedStationSelValueChg(sender: UISegmentedControl) { //When someone changes the value of the station selector.
}
//These overrides are written into ViewController by default.
override func viewDidLoad() {
super.viewDidLoad()
print(radioKeeper.stationStack["KBIA"]!)
// 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.
}
}
| [
-1
] |
a8a4b3a67854a474f9d3581d7f51f76144098712 | 5c8ce8b3515e18583fd0ff56bfbdcef435394fd7 | /OzonioGame/OzonioGame/OGOzoneFactory.swift | 0e718318d1a81e8111ecf1b0f55b776bd35e9bb8 | [] | no_license | LeoRubio/OzonioGame | 48d28a5e20ab1c9b58fcd7dc4099d01dfe9e3241 | 8609b6e033da226b255086d24d2b2f812b07fd92 | refs/heads/master | 2021-01-10T16:55:10.614637 | 2015-06-19T23:07:08 | 2015-06-19T23:07:08 | 36,254,139 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,266 | swift | //
// OGOzoneFactory.swift
// OzonioGame
//
// Created by Victor D. Savariego on 12/6/15.
// Copyright (c) 2015 FantasyName. All rights reserved.
//
import UIKit
import SpriteKit
class OGOzoneFactory: OGFactory {
init(factoryPosition position: CGPoint){
super.init(imageNamed: "fabrica")
self.name = "OZONEFACTORY"
self.position.x = position.x
self.position.y = position.y
self.size.height *= 1.5
self.size.width *= 1.5
//Action de criação de moleculas
runAction(SKAction.repeatActionForever(SKAction.sequence([
SKAction.waitForDuration(11.0, withRange: 13.0),
SKAction.runBlock({
self.spawnMolecule()
}),
])))
}
override func spawnMolecule(){
if self.position.y < self.scene!.size.height{
let molecule = OGOzone()
molecule.position = CGPoint(x: 0.0, y: 0.0)
super.addChild(molecule)
}
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
}
| [
-1
] |
c3ab1a51bee82f8a14184882ebb4fd5a40a768a0 | 4f4764c21f2a3306b2163b30234ab375a5996412 | /Flow/PresentationLayer/Flows/FeedFlow/Module/Cart/Interactor/CartInteractor.swift | 62898a4dc67d3ef8eb07bdc33896b4cad0686312 | [
"MIT"
] | permissive | mohsinalimat/Flow-1 | 337e0bef9d6272f8a5ac4963f14b627b5f7ed98f | 2f62d3fa7a2000c66a41e903f5701e5b6b8b03df | refs/heads/master | 2020-04-23T06:09:49.154798 | 2019-01-08T15:49:12 | 2019-01-08T15:49:12 | 170,964,366 | 1 | 0 | MIT | 2019-02-16T04:56:20 | 2019-02-16T04:56:20 | null | UTF-8 | Swift | false | false | 229 | swift | //
// CartInteractor.swift
// Flow
//
// Created by Beslan Tularov on 27/07/2018.
// Copyright © 2018 Flow. All rights reserved.
//
class CartInteractor: CartInteractorInput {
weak var output: CartInteractorOutput!
}
| [
-1
] |
c442fcc21526542b09545a2dd7f854d32b6f86af | df1d282ba855fe501f9bf290cbdbbe4932c553de | /BMI Calculator/SceneDelegate.swift | 9f9e70856ec6ada6ac44302fef9db1f70f53990c | [] | no_license | mountainsofthemind/BMI-Calculator | cd09190edb08860d51a2d49972a91d35da6ee6f7 | 4548700a7e77bd24721d6123da9580f9f466e5cc | refs/heads/master | 2023-01-28T15:42:06.134197 | 2020-12-03T04:25:58 | 2020-12-03T04:25:58 | 318,074,258 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,298 | swift | //
// SceneDelegate.swift
// BMI Calculator
//
// Created by Field Employee on 12/2/20.
//
import UIKit
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).
guard let _ = (scene as? UIWindowScene) else { return }
}
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.
}
}
| [
393221,
163849,
393228,
393231,
393251,
352294,
344103,
393260,
393269,
213049,
376890,
385082,
393277,
376906,
327757,
254032,
368728,
180314,
254045,
180322,
376932,
286833,
286845,
286851,
417925,
262284,
360598,
286880,
377003,
377013,
164029,
327872,
180418,
377030,
377037,
377047,
418008,
418012,
377063,
327915,
205037,
393457,
393461,
393466,
418044,
385281,
336129,
262405,
180491,
336140,
164107,
262417,
368913,
262423,
377118,
377121,
262437,
254253,
336181,
262455,
393539,
262473,
344404,
213333,
418135,
270687,
262497,
418145,
262501,
213354,
246124,
262508,
262512,
213374,
385420,
393613,
262551,
262553,
385441,
385444,
262567,
385452,
262574,
393649,
385460,
262587,
344512,
262593,
360917,
369119,
328178,
328180,
328183,
328190,
254463,
328193,
164362,
328207,
410129,
393748,
262679,
377372,
188959,
385571,
377384,
197160,
33322,
352822,
270905,
197178,
418364,
188990,
369224,
385610,
270922,
352844,
385617,
352865,
262761,
352875,
344694,
352888,
336513,
377473,
385671,
148106,
213642,
377485,
352919,
98969,
344745,
361130,
336556,
385714,
434868,
164535,
336568,
164539,
328379,
328387,
352969,
344777,
418508,
385743,
385749,
139998,
189154,
369382,
361196,
418555,
344832,
336644,
344837,
344843,
328462,
361231,
394002,
336660,
418581,
418586,
434971,
369436,
262943,
369439,
418591,
418594,
336676,
418600,
418606,
369464,
361274,
328516,
336709,
328520,
336712,
361289,
328523,
336715,
361300,
213848,
426842,
361307,
197469,
361310,
254813,
361318,
344936,
361323,
361335,
328574,
369544,
361361,
222129,
345036,
115661,
386004,
345046,
386012,
386019,
386023,
328690,
435188,
328703,
328710,
418822,
377867,
328715,
361490,
386070,
271382,
336922,
345119,
377888,
214060,
345134,
345139,
361525,
386102,
361537,
377931,
345172,
189525,
156762,
402523,
361568,
148580,
345200,
361591,
386168,
361594,
410746,
214150,
345224,
386187,
345247,
361645,
345268,
402615,
361657,
337093,
402636,
328925,
165086,
66783,
165092,
328933,
222438,
328942,
386286,
386292,
206084,
328967,
345377,
345380,
353572,
345383,
263464,
337207,
345400,
378170,
369979,
386366,
337224,
337230,
337235,
263509,
353634,
337252,
402792,
271731,
378232,
337278,
271746,
181639,
353674,
181644,
361869,
181650,
181655,
230810,
181671,
181674,
181679,
181682,
337330,
181687,
370105,
181691,
181697,
361922,
337350,
181704,
337366,
271841,
329192,
361961,
329195,
116211,
337399,
402943,
337416,
329227,
419341,
419345,
329234,
419351,
345626,
419357,
345631,
419360,
370208,
394787,
419363,
370214,
419369,
394796,
419377,
419386,
206397,
214594,
419401,
353868,
419404,
173648,
419408,
214611,
419412,
403040,
345702,
222831,
370298,
353920,
403073,
403076,
345737,
198282,
403085,
403092,
345750,
419484,
345758,
345763,
419492,
345766,
419498,
419502,
370351,
419507,
337588,
419510,
419513,
419518,
337601,
403139,
337607,
419528,
419531,
419536,
272083,
394967,
419543,
419545,
345819,
419548,
419551,
345829,
419560,
337643,
419564,
337647,
370416,
337671,
362249,
362252,
395022,
362256,
321300,
345888,
362274,
378664,
354107,
345916,
354112,
370504,
329545,
345932,
370510,
354132,
247639,
337751,
370520,
313181,
182110,
354143,
354157,
345965,
345968,
345971,
345975,
403321,
1914,
354173,
395148,
247692,
337809,
247701,
329625,
436127,
436133,
247720,
337834,
362414,
337845,
190393,
346059,
247760,
346064,
346069,
419810,
329699,
354275,
190440,
354314,
346140,
436290,
395340,
378956,
436307,
338005,
100454,
329833,
329853,
329857,
329868,
411806,
329886,
346273,
362661,
100525,
387250,
379067,
387261,
256193,
395467,
346317,
411862,
256214,
411865,
411869,
411874,
379108,
411877,
387303,
346344,
395496,
338154,
387307,
346350,
338161,
387314,
436474,
321787,
379135,
411905,
411917,
379154,
395539,
387350,
387353,
338201,
182559,
338212,
395567,
248112,
362823,
436556,
321880,
362844,
379234,
354674,
321911,
420237,
379279,
272787,
354728,
338353,
338382,
272849,
248279,
256474,
182755,
338404,
338411,
330225,
248309,
248332,
330254,
199189,
420377,
330268,
191012,
330320,
199250,
191069,
346722,
248427,
191085,
338544,
346736,
191093,
346743,
346769,
150184,
174775,
248505,
174778,
363198,
223936,
355025,
273109,
355029,
264919,
256735,
338661,
264942,
363252,
338680,
264965,
338701,
256787,
363294,
199455,
396067,
346917,
396070,
215854,
355123,
355141,
355144,
338764,
355151,
330581,
330585,
387929,
355167,
265056,
265059,
355176,
355180,
355185,
412600,
207809,
379849,
347082,
396246,
330711,
248794,
248799,
347106,
437219,
257009,
265208,
265215,
199681,
338951,
330761,
330769,
330775,
248863,
158759,
396329,
347178,
404526,
396337,
330803,
396340,
339002,
388155,
339010,
347208,
248905,
330827,
248915,
183384,
339037,
412765,
257121,
322660,
265321,
248952,
420985,
330886,
330890,
347288,
248986,
44199,
380071,
339118,
249018,
339133,
126148,
322763,
330959,
330966,
265433,
265438,
388320,
363757,
388348,
339199,
396552,
175376,
175397,
273709,
372016,
437553,
347442,
199989,
175416,
396601,
208189,
437567,
175425,
437571,
126279,
437576,
437584,
331089,
437588,
331094,
396634,
175451,
437596,
429408,
175458,
175461,
175464,
265581,
331124,
175478,
249210,
175484,
175487,
249215,
175491,
249219,
249225,
249228,
249235,
175514,
175517,
396703,
396706,
175523,
355749,
396723,
388543,
380353,
216518,
380364,
339406,
372177,
339414,
249303,
413143,
339418,
339421,
249310,
339425,
249313,
339429,
339435,
249329,
69114,
372229,
208399,
380433,
175637,
405017,
134689,
339504,
265779,
421442,
413251,
265796,
265806,
224854,
224858,
339553,
257636,
224871,
372328,
257647,
372338,
224885,
224888,
224891,
224895,
372354,
126597,
421509,
224905,
11919,
224911,
224914,
126611,
224917,
224920,
126618,
208539,
224923,
224927,
224930,
224933,
257705,
224939,
224943,
257713,
224949,
257717,
257721,
224954,
257725,
224960,
257733,
224966,
224970,
257740,
224976,
257745,
339664,
257748,
224982,
257752,
224987,
257762,
224996,
225000,
225013,
257788,
225021,
339711,
257791,
225027,
257796,
339722,
257802,
257805,
225039,
257808,
249617,
225044,
167701,
372500,
257815,
225049,
257820,
225054,
184096,
397089,
257825,
225059,
339748,
225068,
257837,
413485,
225071,
225074,
257843,
225077,
257846,
225080,
397113,
225083,
397116,
257853,
225088,
225094,
225097,
257869,
257872,
225105,
397140,
225109,
225113,
257881,
257884,
257887,
225120,
257891,
413539,
225128,
257897,
339818,
225138,
339827,
257909,
225142,
372598,
257914,
257917,
225150,
257922,
380803,
225156,
339845,
257927,
225166,
397201,
225171,
380823,
225176,
225183,
372698,
372704,
372707,
356336,
380919,
393215,
372739,
405534,
266295,
266298,
217158,
421961,
200786,
356440,
217180,
430181,
266351,
356467,
266365,
192640,
266375,
381069,
225425,
250003,
225430,
250008,
356507,
250012,
225439,
135328,
192674,
225442,
438434,
225445,
438438,
225448,
438441,
356521,
225451,
258223,
225456,
430257,
225459,
225462,
225468,
389309,
225472,
372931,
225476,
430275,
389322,
225485,
225488,
225491,
266454,
225494,
225497,
225500,
225503,
225506,
356580,
225511,
217319,
225515,
225519,
381177,
397572,
389381,
381212,
356638,
356641,
356644,
356647,
266537,
389417,
356650,
356656,
332081,
307507,
340276,
356662,
397623,
332091,
225599,
201030,
348489,
332107,
151884,
430422,
348503,
332118,
250201,
250203,
250211,
340328,
250217,
348523,
348528,
332153,
356734,
389503,
332158,
438657,
332162,
389507,
348548,
356741,
250239,
332175,
160152,
373146,
340380,
373149,
70048,
356783,
373169,
266688,
324032,
201158,
340452,
127473,
217590,
340473,
324095,
324100,
324103,
324112,
340501,
324118,
324122,
340512,
332325,
324134,
381483,
356908,
324141,
324143,
356917,
324150,
324156,
168509,
348734,
324161,
324165,
356935,
348745,
381513,
324171,
324174,
324177,
389724,
332381,
373344,
340580,
348777,
381546,
119432,
340628,
184983,
373399,
258723,
332455,
332460,
389806,
332464,
332473,
381626,
332484,
332487,
332494,
357070,
357074,
332512,
332521,
340724,
332534,
373499,
348926,
389927,
348979,
152371,
348983,
340792,
398141,
357202,
389971,
357208,
389979,
430940,
357212,
357215,
439138,
201580,
201583,
349041,
340850,
381815,
430967,
324473,
398202,
119675,
340859,
324476,
430973,
324479,
340863,
324482,
373635,
324485,
324488,
185226,
381834,
324493,
324496,
324499,
430996,
324502,
324511,
422817,
324514,
201638,
398246,
373672,
324525,
5040,
111539,
324534,
5047,
324539,
324542,
398280,
349129,
340940,
340942,
209874,
340958,
431073,
398307,
340964,
209896,
201712,
209904,
349173,
381947,
201724,
349181,
431100,
431107,
349203,
209944,
209948,
357411,
250915,
250917,
169002,
357419,
209966,
209969,
209973,
209976,
209980,
209988,
209991,
431180,
209996,
341072,
349268,
177238,
250968,
210011,
373853,
341094,
210026,
210028,
210032,
349296,
210037,
210042,
210045,
349309,
152704,
349313,
160896,
210053,
210056,
349320,
259217,
373905,
210068,
210072,
210078,
210081,
210085,
210089,
210096,
210100,
324792,
210108,
357571,
210116,
210128,
210132,
333016,
210139,
210144,
218355,
218361,
275709,
128254,
275713,
242947,
275717,
275723,
333075,
349460,
333079,
251161,
349486,
349492,
415034,
210261,
365912,
259423,
374113,
251236,
374118,
333164,
234867,
390518,
357756,
374161,
112021,
349591,
357793,
333222,
259516,
415168,
366035,
415187,
366039,
415192,
415194,
415197,
415200,
333285,
415208,
366057,
366064,
415217,
415225,
423424,
415258,
415264,
366118,
415271,
382503,
349739,
144940,
415279,
415282,
415286,
210488,
415291,
415295,
349762,
333396,
374359,
333400,
366173,
423529,
423533,
210547,
415354,
333440,
267910,
267929,
333512,
259789,
366301,
333535,
153311,
366308,
366312,
431852,
399086,
366319,
210673,
366322,
399092,
366326,
333566,
268042,
210700,
366349,
210707,
399129,
333595,
210720,
366384,
358192,
210740,
366388,
358201,
325441,
366403,
325447,
341831,
341835,
341839,
341844,
415574,
358235,
341852,
350046,
399200,
399208,
268144,
358256,
358260,
341877,
399222,
325494,
333690,
325505,
333699,
399244,
333709,
333725,
333737,
382891,
382898,
350153,
358348,
333777,
219094,
399318,
358372,
350190,
350194,
333819,
350204,
350207,
325633,
325637,
350214,
219144,
268299,
333838,
350225,
186388,
350232,
333851,
350238,
350241,
374819,
350245,
350249,
350252,
178221,
350257,
350260,
350272,
243782,
350281,
350286,
374865,
342113,
252021,
342134,
374904,
268435,
333998,
334012,
260299,
350411,
350417,
350423,
211161,
350426,
350449,
375027,
358645,
350459,
350462,
350465,
350469,
268553,
350477,
268560,
350481,
432406,
350487,
325915,
350491,
325918,
350494,
325920,
350500,
194854,
350505,
358701,
391469,
350510,
358705,
358714,
358717,
383307,
358738,
334162,
383331,
383334,
391531,
383342,
334204,
268669,
194942,
391564,
366991,
334224,
268702,
342431,
375209,
375220,
334263,
326087,
358857,
195041,
334312,
104940,
375279,
416255,
350724,
186898,
342546,
350740,
342551,
334359,
342555,
334364,
416294,
350762,
252463,
358962,
334386,
334397,
358973,
252483,
219719,
399957,
334425,
326240,
375401,
334466,
334469,
391813,
162446,
326291,
342680,
342685,
260767,
342711,
244410,
260798,
334530,
260802,
350918,
154318,
342737,
391895,
154329,
416476,
64231,
113389,
342769,
203508,
375541,
342777,
391938,
391949,
375569,
326417,
375572,
375575,
375580,
162592,
334633,
326444,
383794,
326452,
326455,
375613,
244542,
260925,
375616,
326463,
326468,
342857,
326474,
326479,
326486,
416599,
342875,
244572,
326494,
433001,
400238,
326511,
211826,
211832,
392061,
351102,
359296,
252801,
260993,
351105,
400260,
211846,
342921,
342931,
252823,
400279,
392092,
400286,
252838,
359335,
211885,
252846,
400307,
351169,
359362,
351172,
170950,
187335,
326599,
359367,
359383,
359389,
383968,
343018,
359411,
261109,
261112,
244728,
383999,
261130,
261148,
359452,
211999,
261155,
261160,
261166,
359471,
375868,
343132,
384099,
384102,
384108,
367724,
187503,
343155,
384115,
212095,
351366,
384136,
384140,
384144,
351382,
384152,
384158,
384161,
351399,
384169,
367795,
244917,
384182,
367801,
384189,
384192,
351424,
343232,
367817,
244938,
384202,
253132,
326858,
384209,
146644,
351450,
384225,
359650,
343272,
351467,
359660,
384247,
351480,
384250,
351483,
351492,
343307,
384270,
359695,
261391,
253202,
261395,
384276,
384284,
245021,
384290,
253218,
245032,
171304,
384299,
351535,
376111,
245042,
326970,
384324,
343366,
212296,
212304,
367966,
343394,
367981,
343410,
155000,
327035,
245121,
245128,
253321,
155021,
384398,
245137,
245143,
245146,
245149,
343453,
245152,
245155,
155045,
245158,
40358,
245163,
114093,
327090,
343478,
359867,
384444,
146878,
327108,
327112,
384457,
359887,
359891,
368093,
155103,
343535,
343540,
368120,
343545,
409092,
253445,
359948,
359951,
245295,
359984,
343610,
400977,
400982,
179803,
155241,
245358,
155255,
155274,
368289,
245410,
425639,
425652,
425663,
155328,
245463,
155352,
155356,
212700,
155364,
245477,
155372,
245487,
212723,
409336,
155394,
155404,
245528,
155423,
360224,
155439,
204592,
155444,
155448,
417596,
384829,
384831,
360262,
155463,
155477,
376665,
155484,
261982,
425823,
155488,
376672,
155492,
327532,
261997,
376686,
262000,
262003,
425846,
262006,
147319,
262009,
327542,
262012,
155517,
155523,
155526,
360327,
376715,
155532,
262028,
262031,
262034,
262037,
262040,
262043,
155550,
253854,
262046,
262049,
262052,
327590,
155560,
155563,
155566,
327613,
393152,
311244,
393170,
155604,
155620,
253924,
155622,
253927,
327655,
360432,
393204,
360439,
253944,
393209,
155647
] |
10afafc3fbf058371741c14c185e9c0f94254dc3 | 5f538ab4fc9e10911561cb974133a17950dfab42 | /kojikenn/SecondViewController.swift | 5005959b4694124814f51af3e78a138d8632d30b | [] | no_license | minutoni/kojiken | 205a1076669569f1a634b3e2fba984d2d8697ea7 | 5be39853cf0cf371c83eecdbd06d01f9f0768b62 | refs/heads/master | 2020-04-12T10:09:33.781981 | 2016-11-19T07:35:01 | 2016-11-19T07:35:01 | 60,445,050 | 1 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 878 | swift | //
// SecondViewController.swift
// kojikenn
//
// Created by 所 紀彦 on 2016/04/03.
// Copyright © 2016年 norihiko tokoro. All rights reserved.
//
import UIKit
class SecondViewController: UIViewController{
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
}
@IBAction func meikeiHPLinkButton() {
let url = NSURL(string: "http://www.meikei.ac.jp")
if UIApplication.sharedApplication().canOpenURL(url!){
UIApplication.sharedApplication().openURL(url!)
}
}
@IBAction func QuestantLinkButton() {
let url = NSURL(string: "https://questant.jp/q/GE0S93C9")
if UIApplication.sharedApplication().canOpenURL(url!){
UIApplication.sharedApplication().openURL(url!)
}
}
}
| [
-1
] |
24c9c31a4fbbf4f3e23f4e9807a88490bbd0eefb | 5e20170d5955bcb7c47c47a042c42cb4092c7c0b | /Breakpoint/View/InsetTextField.swift | 22d1509916184705a7df5387472266906dff7ab2 | [] | no_license | dalalsunil1986/Breakpoint | 094d565bedead7b0d39060d70af9956daee5e452 | 0a688d85926cecd113f06d87827207a2114df9f3 | refs/heads/master | 2021-06-23T00:01:13.490078 | 2017-08-29T14:08:16 | 2017-08-29T14:08:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,050 | swift | //
// InsetTextField.swift
// Breakpoint
//
// Created by Marcus Ng on 8/26/17.
// Copyright © 2017 Marcus Ng. All rights reserved.
//
import UIKit
class InsetTextField: UITextField {
private var padding = UIEdgeInsets(top: 0, left: 20, bottom: 0, right: 0)
override func awakeFromNib() {
let placeholder = NSAttributedString(string: self.placeholder!, attributes: [NSAttributedStringKey.foregroundColor: #colorLiteral(red: 1.0, green: 1.0, blue: 1.0, alpha: 1.0)])
self.attributedPlaceholder = placeholder
super.awakeFromNib()
}
// Where text is held
override func textRect(forBounds bounds: CGRect) -> CGRect {
return UIEdgeInsetsInsetRect(bounds, padding)
}
// Editing
override func editingRect(forBounds bounds: CGRect) -> CGRect {
return UIEdgeInsetsInsetRect(bounds, padding)
}
// Placeholder
override func placeholderRect(forBounds bounds: CGRect) -> CGRect {
return UIEdgeInsetsInsetRect(bounds, padding)
}
}
| [
233685
] |
8d5295b318129c5552ae7e4ca5e09f10c2a8fbe3 | cd3b57b9c890a7844ec2c65e67916aa28bf3147d | /Pod/Classes/ui/CardKit/AccountSettingsModule/AccountSettingsPresenter.swift | d82e6cdbeb76826d72e5a90d3281a67e961d0414 | [
"MIT"
] | permissive | nejcpintar/apto-ui-sdk-ios | 7a414e28327b54833e33c37c15512e2015cce396 | 4a164cd225e90b7887c83e83486a2bf23d2fd79c | refs/heads/master | 2023-04-10T00:17:59.679800 | 2021-04-13T08:19:48 | 2021-04-13T08:19:48 | 357,475,387 | 0 | 0 | MIT | 2021-04-13T08:29:24 | 2021-04-13T08:14:55 | Swift | UTF-8 | Swift | false | false | 1,658 | swift | //
// AccountSettingsPresenter.swift
// AptoSDK
//
// Created by Takeichi Kanzaki on 17/08/2018.
//
//
import Foundation
import AptoSDK
class AccountSettingsPresenter: AccountSettingsPresenterProtocol {
let viewModel = AccountSettingsViewModel()
// swiftlint:disable implicitly_unwrapped_optional
var interactor: AccountSettingsInteractorProtocol!
weak var router: AccountSettingsRouterProtocol!
// swiftlint:enable implicitly_unwrapped_optional
private let config: AccountSettingsPresenterConfig
var analyticsManager: AnalyticsServiceProtocol?
init(config: AccountSettingsPresenterConfig) {
self.config = config
}
func viewLoaded() {
viewModel.showNotificationPreferences.send(config.showNotificationPreferences)
viewModel.showMonthlyStatements.send(config.showMonthlyStatements)
viewModel.showChangePasscode.send(config.showChangePIN)
viewModel.isBiometricEnabled.send(interactor.isBiometricEnabled())
viewModel.biometryType.send(config.biometryType)
analyticsManager?.track(event: Event.accountSettings)
}
func closeTapped() {
router.closeFromAccountSettings()
}
func logoutTapped() {
interactor.logoutCurrentUser()
}
func contactTapped() {
router.contactTappedInAccountSettings()
}
func notificationsTapped() {
router.notificationsTappedInAccountSettings()
}
func monthlyStatementsTapped() {
router.showMonthlyStatements()
}
func changePasscodeTapped() {
router.showChangePasscode()
}
func changeShowBiometricTapped(_ isEnabled: Bool) {
interactor.setIsBiometricEnabled(isEnabled)
viewModel.isBiometricEnabled.send(isEnabled)
}
}
| [
-1
] |
81ef83ea81006f48f398a05afef6ac1d953e6210 | bf963c34dbb0a0ca68b17f463020207b2986343a | /HomeWork8/HomeWork8/App/SceneDelegate.swift | 07ba0661e16840267c92f82414195bddee7febe4 | [] | no_license | 5851/StudyProjects | 19a87e3b3135ada6d0eb9a45956061687d2047ff | 322d82b08ef16df48af115ffdfe6fd943a1ccfa7 | refs/heads/master | 2023-02-18T07:15:57.036498 | 2021-01-17T02:46:42 | 2021-01-17T02:46:42 | 291,385,918 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,054 | swift | //
// SceneDelegate.swift
// HomeWork8
//
// Created by MAC on 13.12.2020.
//
import UIKit
import SwiftUI
class SceneDelegate: UIResponder, UIWindowSceneDelegate {
var window: UIWindow?
func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
let contentView = ContentView()
.environmentObject(ArticlesListViewModel())
.environmentObject(TopNewsViewModel())
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) {
}
func sceneDidBecomeActive(_ scene: UIScene) {
}
func sceneWillResignActive(_ scene: UIScene) {
}
func sceneWillEnterForeground(_ scene: UIScene) {
}
func sceneDidEnterBackground(_ scene: UIScene) {
}
}
| [
345960,
245362,
345465,
43291,
439295
] |
a6e4935b63b36b6983b2c87ff2b8f9217290706a | bfa571409e9f1b141f4f92ec2276a8462b36230f | /clacolator/ViewController.swift | e7447dc2a8dc8b74b0ca1e4976cecd5dc92f5dae | [] | no_license | zlazel/Calculator | a91a1cb46f9c5dd300b951fd89e98b28c7669999 | 720c2e598fc46d142b92e89d9b18d82bc8057e52 | refs/heads/master | 2020-03-24T11:01:39.873009 | 2018-07-31T14:53:47 | 2018-07-31T14:53:47 | 142,673,736 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,603 | swift | //
// ViewController.swift
// clacolator
//
// Created by AhmedZlazel on 5/16/18.
// Copyright © 2018 AhmedZlazel. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
@IBOutlet private weak var display: UILabel!
private var userInMiddleTypping = false
/* func Display(d:Double)->String{
get{return d}
set{
}
*/
@IBAction private func touchDigit(_ sender: UIButton) {
let digit = sender.currentTitle!
let displayedValue = display.text!
if userInMiddleTypping{
display.text = displayedValue + digit
}else{
display.text = digit
userInMiddleTypping = true
}
}
private var displayValue:Double {
get{
return Double(display.text!)!
}
set{
display.text = String(newValue)
}
}
private var brain = CalculatorBrain()
@IBAction private func performOperation(_ sender: UIButton) {
if userInMiddleTypping {
brain.setOperand(operand: displayValue)
userInMiddleTypping = false
}
if let mathSymbol = sender.currentTitle {
brain.performOperation(symbol: mathSymbol)
}
displayValue = brain.result
}
var savedProgram:CalculatorBrain.ProperityList?
@IBAction func save() {
savedProgram = brain.program
}
@IBAction func restore() {
if savedProgram != nil{
brain.program = savedProgram!
displayValue = brain.result
}
}
}
| [
-1
] |
83e1328ec72d8b76c776bec8bb091e2e987aa737 | 732e2f10df115f46ebe5a3e2f898baf1464b8f27 | /YSLeetCode5.playground/Contents.swift | 6c0e8803152bab04ddce1375bf31308c69fbc8f8 | [] | no_license | geys1991/YS_Algorithm_Practice | ea910ece24c98aa075201e45e94f74b0cc4f8992 | 71421f623703f91185ca0875b7c62baa8194c0bb | refs/heads/main | 2021-06-16T10:53:47.431969 | 2021-03-17T07:28:11 | 2021-03-17T07:28:11 | 167,152,493 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,308 | swift | import UIKit
/*
* @lc app=leetcode.cn id=5 lang=swift
*
* ref: https://leetcode-cn.com/problems/longest-palindromic-substring/description/
*
* [5] 最长回文子串
*/
// @lc code=start
class Solution {
// Solution 1: 中心扩散 不过超时了
// func longestPalindrome(_ s: String) -> String {
//
// if s.count <= 1 {
// return s
// }
//
// var startIndex = 0
// var endIndex = 0
// for index in 0..<s.count {
// let length1 = matchPalindrome(s, left: index, right: index)
// let length2 = matchPalindrome(s, left: index, right: index + 1)
// let length = max(length1, length2)
// if length > endIndex - startIndex {
// startIndex = index - (length - 1) / 2
// endIndex = index + length / 2
// }
// }
//
// let resStartIndex = s.index(s.startIndex, offsetBy: startIndex)
// let resEndIndex = s.index(s.startIndex, offsetBy: endIndex)
//
// return String(s[resStartIndex...resEndIndex])
// }
//
// func matchPalindrome(_ s: String, left: Int, right: Int) -> Int {
//
// var l = left
// var r = right
//
// while l >= 0 && r < s.count && s[s.index(s.startIndex, offsetBy: l)] == s[s.index(s.startIndex, offsetBy: r)] {
// l -= 1
// r += 1
// }
// return r - l - 1
// }
}
let r = Solution()
| [
-1
] |
138e8c2d43bfe82d4e08a428dfcd67fcd72b1432 | 8ec98894b94acb84741a5404ff129ed615668a87 | /Package.swift | 9df09cb56f815ecca6c8795652c44659fa982786 | [
"MIT"
] | permissive | DJRolls/LNPopupController | 1a35435e2e1d1504bf3a24ddb16f5e5d283d793b | bbdd9f33ec6efaecc574974a5818cdc8b25b15ad | refs/heads/master | 2022-12-09T09:09:48.384844 | 2020-09-11T19:13:40 | 2020-09-11T19:13:40 | 295,299,177 | 1 | 0 | MIT | 2020-09-14T04:00:01 | 2020-09-14T04:00:00 | null | UTF-8 | Swift | false | false | 689 | swift | // swift-tools-version:5.1
import PackageDescription
let package = Package(
name: "LNPopupController",
platforms: [
.iOS(.v12),
.macOS(.v10_15)
],
products: [
.library(
name: "LNPopupController",
type: .dynamic,
targets: ["LNPopupController"]),
.library(
name: "LNPopupController-Static",
type: .static,
targets: ["LNPopupController"]),
],
dependencies: [],
targets: [
.target(
name: "LNPopupController",
dependencies: [],
path: "LNPopupController",
exclude: [
"LNPopupControllerExample",
"Supplements"
],
publicHeadersPath: "include",
cSettings: [
.headerSearchPath("."),
.headerSearchPath("Private"),
]),
]
)
| [
-1
] |
ab0eac5f7c26942697f003765d840afc6789a948 | 3397a4941dec09233bc184ccfcb8f2316e673fbe | /podcast.mobile/AppDelegate.swift | 6f0c5316fb6f31b0ed567a03af2d39aeccd892ef | [] | no_license | anatolyefimov/ios-shit | fbc8aea21c0e7e3f1cb1707e4dde6af61aecc14c | 4dd5740530fb5afe961bac6cddeb6b5ff81a79d1 | refs/heads/master | 2022-12-14T23:52:06.373202 | 2020-09-17T02:28:58 | 2020-09-17T02:28:58 | 296,197,717 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,425 | swift | //
// AppDelegate.swift
// podcast.mobile
//
// Created by Анатолий on 16.09.2020.
// Copyright © 2020 Anatoly. All rights reserved.
//
import UIKit
@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.
}
}
| [
393222,
393224,
393230,
393250,
344102,
393261,
393266,
163891,
213048,
385081,
376889,
393275,
376905,
327756,
254030,
286800,
368735,
180320,
376931,
286831,
368752,
286844,
262283,
286879,
286888,
377012,
327871,
180416,
377036,
180431,
377046,
377060,
327914,
393456,
393460,
336123,
418043,
336128,
385280,
262404,
180490,
368911,
262416,
262422,
377117,
262436,
336180,
262454,
262472,
344403,
213332,
65880,
262496,
418144,
262499,
213352,
246123,
262507,
262510,
213372,
385419,
393612,
262550,
262552,
385440,
385443,
385451,
262573,
393647,
385458,
262586,
344511,
262592,
360916,
369118,
328177,
328179,
328182,
328189,
328192,
164361,
328206,
410128,
393747,
254490,
188958,
385570,
33316,
197159,
377383,
352821,
188987,
418363,
369223,
385609,
385616,
352856,
352864,
369253,
262760,
352874,
352887,
254587,
377472,
336512,
148105,
377484,
352918,
98968,
344744,
361129,
336555,
434867,
164534,
336567,
164538,
328378,
328386,
352968,
344776,
418507,
385742,
385748,
361179,
139997,
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,
336711,
328522,
336714,
426841,
197468,
254812,
361309,
361315,
361322,
328573,
369542,
222128,
345035,
345043,
386003,
386011,
386018,
386022,
435187,
328702,
328714,
361489,
386069,
336921,
386073,
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,
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,
181654,
230809,
181670,
181673,
181678,
337329,
181684,
181690,
361917,
181696,
337349,
181703,
337365,
271839,
329191,
361960,
329194,
116210,
337398,
337415,
329226,
419339,
419343,
419349,
345625,
419355,
370205,
419359,
419362,
394786,
370213,
419368,
419376,
206395,
214593,
419400,
419402,
353867,
419406,
419410,
345701,
394853,
222830,
370297,
403075,
345736,
198280,
345749,
345757,
345762,
419491,
345765,
419497,
419501,
370350,
419506,
419509,
337592,
419512,
337599,
419527,
419530,
419535,
272081,
394966,
419542,
419544,
181977,
345818,
419547,
419550,
419559,
337642,
419563,
337645,
141051,
337659,
337668,
362247,
395021,
362255,
321299,
116509,
345887,
378663,
345905,
354106,
354111,
247617,
354117,
370503,
329544,
370509,
354130,
247637,
337750,
370519,
313180,
354142,
345967,
345970,
345974,
354172,
247691,
337808,
247700,
329623,
436126,
436132,
337833,
362413,
337844,
346057,
247759,
346063,
329697,
354277,
190439,
247789,
354313,
346139,
436289,
378954,
395339,
338004,
329832,
329855,
329867,
329885,
411805,
346272,
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,
321879,
354673,
321910,
248186,
420236,
379278,
354727,
338352,
330189,
338381,
338386,
338403,
338409,
248308,
199164,
330252,
199186,
330267,
354855,
10828,
199249,
346721,
174695,
248425,
191084,
338543,
191092,
346742,
330383,
354974,
150183,
174774,
248504,
174777,
223934,
355024,
273108,
355028,
264918,
183005,
256734,
338660,
338664,
264941,
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,
330760,
330768,
248862,
396328,
158761,
396336,
199728,
330800,
396339,
339001,
388154,
388161,
347205,
248904,
330826,
248914,
183383,
339036,
412764,
257120,
265320,
248951,
420984,
330889,
347287,
248985,
339097,
44197,
380070,
339112,
249014,
126144,
330958,
330965,
265432,
265436,
388319,
388347,
175375,
159005,
175396,
208166,
372015,
347441,
372018,
199988,
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,
372163,
216517,
380360,
216522,
339404,
208337,
339412,
413141,
339417,
249308,
339420,
249312,
339424,
339428,
339434,
249328,
69113,
372228,
339461,
208398,
380432,
175635,
339503,
265778,
265795,
396872,
265805,
224853,
224857,
257633,
224870,
372327,
257646,
372337,
224884,
224887,
224890,
224894,
224897,
372353,
216707,
339588,
126596,
421508,
224904,
224909,
159374,
11918,
339601,
224913,
126610,
224916,
224919,
126616,
208538,
224922,
224926,
224929,
224932,
224936,
257704,
224942,
257712,
224947,
257716,
257720,
224953,
257724,
224959,
257732,
224965,
224969,
339662,
224975,
257747,
224981,
224986,
224993,
257761,
257764,
224999,
339695,
225012,
257787,
225020,
339710,
257790,
225025,
339721,
257801,
257804,
225038,
257807,
372499,
167700,
225048,
257819,
225053,
184094,
225058,
339747,
339749,
257833,
225066,
257836,
413484,
225070,
225073,
257845,
225079,
397112,
225082,
397115,
225087,
225092,
225096,
323402,
257868,
257871,
225103,
397139,
225108,
225112,
257883,
257886,
225119,
257890,
339814,
225127,
257896,
274280,
257901,
225137,
339826,
257908,
225141,
257912,
225148,
257916,
257920,
225155,
339844,
225165,
397200,
225170,
380822,
225175,
225180,
118691,
184244,
372664,
372702,
372706,
356335,
380918,
405533,
430129,
266294,
217157,
421960,
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,
266453,
225493,
225496,
225499,
225502,
225505,
356578,
225510,
217318,
225514,
225518,
372976,
381176,
397571,
389380,
356637,
356640,
356643,
356646,
266536,
356649,
356655,
332080,
340275,
356660,
397622,
332090,
225597,
332097,
201028,
348488,
332106,
332117,
250199,
250202,
332125,
250210,
348522,
348525,
348527,
332152,
250238,
389502,
332161,
356740,
332172,
373145,
340379,
389550,
324030,
340451,
160234,
127471,
340472,
324094,
266754,
324099,
324102,
324111,
340500,
324117,
324131,
332324,
381481,
324139,
356907,
324142,
356916,
324149,
324155,
348733,
324160,
324164,
356934,
348743,
381512,
324170,
324173,
324176,
389723,
332380,
373343,
381545,
340627,
184982,
373398,
258721,
332453,
332459,
389805,
332463,
381617,
332471,
332483,
332486,
332493,
357069,
357073,
332511,
332520,
340718,
332533,
348924,
373510,
389926,
152370,
348978,
340789,
348982,
398139,
127814,
357201,
357206,
389978,
357211,
430939,
357214,
201579,
201582,
349040,
340849,
201588,
430965,
324472,
398201,
119674,
324475,
340858,
340861,
324478,
430972,
324481,
373634,
398211,
324484,
324487,
381833,
324492,
324495,
324498,
430995,
324501,
324510,
422816,
324513,
398245,
201637,
324524,
340909,
324533,
5046,
324538,
324541,
398279,
340939,
340941,
209873,
340957,
431072,
398306,
340963,
201711,
349180,
439294,
209943,
209946,
250914,
357410,
185380,
357418,
209965,
209968,
209971,
209975,
209979,
209987,
209990,
341071,
349267,
250967,
210010,
341091,
210025,
210027,
210030,
210039,
341113,
210044,
349308,
152703,
160895,
349311,
210052,
210055,
349319,
210067,
210071,
210077,
210080,
210084,
251044,
185511,
210088,
210095,
210098,
210107,
210115,
332997,
210127,
333009,
210131,
333014,
210138,
210143,
218354,
251128,
218360,
275706,
275712,
275715,
275721,
349459,
333078,
251160,
349484,
251189,
415033,
251210,
357708,
210260,
259421,
365921,
333154,
251235,
374117,
333162,
234866,
390516,
333175,
357755,
251271,
136590,
112020,
349590,
357792,
259515,
415166,
415185,
366034,
366038,
415191,
415193,
415196,
415199,
423392,
333284,
415207,
366056,
210420,
415224,
423423,
415257,
415263,
366117,
415270,
144939,
415278,
415281,
415285,
415290,
415293,
349761,
415300,
333386,
333399,
366172,
333413,
423528,
423532,
210544,
415353,
333439,
415361,
267909,
333498,
333511,
210631,
358099,
333534,
366307,
366311,
431851,
366318,
210672,
366321,
210695,
268041,
210698,
366348,
210706,
399128,
333594,
210719,
358191,
366387,
399159,
358200,
325440,
366401,
341829,
325446,
46920,
341834,
341838,
341843,
415573,
358234,
341851,
350045,
399199,
259938,
399206,
358255,
399215,
268143,
358259,
341876,
333689,
243579,
325504,
333698,
333708,
333724,
382890,
350146,
358339,
333774,
358371,
350189,
350193,
333818,
350202,
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,
350410,
260298,
350416,
350422,
350425,
268507,
334045,
350445,
375026,
358644,
350458,
350461,
350464,
325891,
350467,
350475,
268559,
350480,
432405,
350486,
350490,
325914,
325917,
350493,
350498,
350504,
358700,
350509,
391468,
358704,
358713,
358716,
383306,
334161,
383321,
383330,
383333,
391530,
383341,
334203,
194941,
391563,
366990,
416157,
342430,
268701,
375208,
326058,
375216,
334262,
334275,
326084,
358856,
334304,
334311,
375277,
334321,
186897,
342545,
334358,
342550,
342554,
334363,
350761,
334384,
383536,
358961,
334394,
252482,
219718,
334407,
334420,
350822,
375400,
334465,
334468,
162445,
326290,
342679,
342683,
260766,
342710,
244409,
260797,
334528,
260801,
350917,
154317,
391894,
154328,
416473,
64230,
113388,
342766,
375535,
203506,
342776,
391937,
391948,
326416,
375568,
375571,
375574,
162591,
326441,
326451,
326454,
244540,
326460,
375612,
260924,
326467,
244551,
326473,
326477,
326485,
416597,
326490,
342874,
326502,
375656,
326507,
326510,
211825,
211831,
351097,
392060,
359295,
342915,
400259,
236430,
342930,
252822,
392091,
400285,
252836,
359334,
211884,
400306,
351168,
359361,
359366,
326598,
359382,
359388,
383967,
343015,
359407,
261108,
244726,
261111,
383997,
261129,
261147,
359451,
211998,
261153,
261159,
359470,
343131,
384098,
384101,
367723,
384107,
187502,
384114,
343154,
212094,
351364,
384135,
384139,
384143,
351381,
384151,
384160,
384168,
367794,
244916,
384188,
351423,
384191,
326855,
244937,
384201,
253130,
343244,
384208,
146642,
384224,
359649,
343270,
351466,
384246,
351479,
343306,
261389,
359694,
384275,
384283,
245020,
384288,
245029,
171302,
351534,
376110,
245040,
425276,
212291,
384323,
343365,
212303,
343393,
343398,
425328,
343409,
154999,
343417,
327034,
245127,
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,
327275,
245357,
138864,
155254,
155273,
368288,
245409,
425638,
425649,
155322,
425662,
155327,
253943,
245460,
155351,
155354,
212699,
245475,
155363,
245483,
155371,
409335,
155393,
155403,
245525,
155422,
360223,
155438,
155442,
155447,
155461,
376663,
155482,
261981,
425822,
155487,
376671,
155490,
155491,
327531,
261996,
376685,
261999,
262002,
327539,
262005,
147317,
425845,
262008,
262011,
155516,
155521,
155525,
360326,
155531,
262027,
262030,
262033,
262036,
262042,
155549,
262045,
262048,
262051,
327589,
155559,
155562,
155565,
393150,
393169,
384977,
155611,
155619,
253923,
155621,
327654,
253926,
204784,
393203,
360438,
393206,
393212,
155646
] |
94abd1c3eae59163c3e76dbd62acb078f44b915b | dea3f62413d6c703228c82a995e0cc8e2e2acb2a | /Down/Download/Overview/DownloadStatusTableController.swift | 87be2905b24716abdcb91e6c99ae32707e3eb093 | [] | no_license | RuudPuts/Down | e5c4c8fad24c9492ebf54a3aaab4012712794168 | 917744adbe22aa9c02c395246557682863fbf539 | refs/heads/rebuild | 2022-10-19T01:53:30.889416 | 2019-07-20T19:42:26 | 2019-07-20T19:42:26 | 133,563,380 | 1 | 0 | null | 2022-10-06T03:09:26 | 2018-05-15T19:26:33 | Swift | UTF-8 | Swift | false | false | 1,195 | swift | //
// DownloadStatusTableController.swift
// Down
//
// Created by Ruud Puts on 18/11/2018.
// Copyright © 2018 Mobile Sorcery. All rights reserved.
//
import UIKit
import DownKit
import RxSwift
import RxCocoa
class DownloadStatusTableController: SectionedTableController<DownloadItem>, Depending {
typealias Dependencies = DownloadApplicationDependency
let dependencies: Dependencies
init(dependencies: Dependencies) {
self.dependencies = dependencies
super.init(application: dependencies.downloadApplication)
}
override func prepare(_ tableView: UITableView) {
super.prepare(tableView)
tableView.registerCell(nibName: DownloadItemCell.reuseIdentifier)
}
override func cell(forItem item: DownloadItem, atIndexPath indexPath: IndexPath, inTableView tableView: UITableView) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: DownloadItemCell.reuseIdentifier, for: indexPath)
guard let itemCell = cell as? DownloadItemCell else {
return cell
}
itemCell.configure(with: self.dependencies.downloadApplication, andItem: item)
return cell
}
}
| [
-1
] |
101f14fb1caaaa64accbdf74743ade314e297ac2 | c4c59ae5d5d9f00d673c9e3a843d8f270aa95ce6 | /Spearmint/Model/Entities/Transaction/Transaction.swift | 607c0c97ba0d8eb1f2e2558df444bc9516a4de3d | [] | no_license | BrianIshii/Spearmint | 5552f25a147f928583387069636f9c3692aab581 | f7d88bbffdc324d08b88954fe212d5ea7ac257bd | refs/heads/master | 2020-05-16T07:16:53.489493 | 2019-09-15T20:21:08 | 2019-09-15T20:21:08 | 182,874,106 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,359 | swift | //
// Transaction.swift
// Spearmint
//
// Created by Brian Ishii on 4/24/19.
// Copyright © 2019 Brian Ishii. All rights reserved.
//
import Foundation
import CloudKit
class Transaction: Saveable {
let id: TransactionID
var name: String
var transactionType: TransactionType
var paymentType: String
var vendor: VendorID
var amount: Float
var date: TransactionDate
var location: String
var hasImage: Bool
var tags: [String]
var notes: String
var budgetDate: BudgetDate
var items: [BudgetItemID : [Item]]
init(id: TransactionID, name: String, transactionType: TransactionType, vendor: VendorID, amount: Float,
date: TransactionDate, location: String, image: Bool, tags: [String], notes: String, budgetDate: BudgetDate, items: [BudgetItemID : [Item]]) {
self.id = id
self.name = name
self.transactionType = transactionType
self.paymentType = ""
self.vendor = vendor
self.amount = amount
self.date = date
self.location = location
self.hasImage = image
self.tags = tags
self.notes = notes
self.budgetDate = budgetDate
self.items = items
}
init(name: String, transactionType: TransactionType, vendor: VendorID, amount: Float,
date: TransactionDate, location: String, image: Bool, notes: String, budgetDate: BudgetDate, items: [BudgetItemID : [Item]]) {
self.id = TransactionID()
self.name = name
self.transactionType = transactionType
self.paymentType = ""
self.vendor = vendor
self.amount = amount
self.date = date
self.location = location
self.hasImage = image
self.tags = []
self.notes = notes
self.budgetDate = budgetDate
self.items = items
}
init(name: String, transactionType: TransactionType, vendor: VendorID, amount: Float,
date: TransactionDate, location: String, image: Bool, tags: [String], notes: String, budgetDate: BudgetDate, items: [BudgetItemID : [Item]]) {
self.id = TransactionID()
self.name = name
self.transactionType = transactionType
self.paymentType = ""
self.vendor = vendor
self.amount = amount
self.date = date
self.location = location
self.hasImage = image
self.tags = tags
self.notes = notes
self.budgetDate = budgetDate
self.items = items
}
func mostExpensiveItem(_ budgetItem: BudgetItem) -> Item? {
var expensiveItem: Item?
for (_, v) in items {
for item in v {
if item.budgetItemName == budgetItem.name
&& item.budgetItemCategory == budgetItem.category {
if let currentExpensiveItem = expensiveItem {
if currentExpensiveItem.amount < item.amount {
expensiveItem = item
}
} else {
expensiveItem = item
}
}
}
}
return expensiveItem
}
var ID: String {
return id.id
}
static func > (left: Transaction, right: Transaction) -> Bool {
return left.date > right.date
}
}
| [
-1
] |
c9108e322d29f73cbaf4ae1bbbe038706123f5e2 | 09a704908924ccba104737326e4376aeeefcbcae | /Desired Vacations App/AppDelegate.swift | 968326dccd3db7222fccaff4815547a8dc5ccd07 | [] | no_license | viktorsgfs/Vacations-App | 97e09318fdb8cd48d069ad4d8884e66acae9c3bd | c5ca58cba2ef0eb769fec5d8211124186b5f4968 | refs/heads/main | 2023-07-04T19:49:47.160351 | 2021-08-28T14:48:47 | 2021-08-28T14:48:47 | 400,071,344 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,657 | swift | //
// AppDelegate.swift
// Desired Vacations App
//
// Created by Synergy on 23.08.21.
//
import UIKit
import CoreData
@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.
}
// 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: "Desired_Vacations_App")
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,
165085,
350433,
345826,
328931,
395495,
363755,
343276,
346348,
338158,
325358,
212722,
251122,
350453,
338679,
393465,
351482,
264961,
115972,
268552,
346890,
362251,
328460,
336139,
333074,
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,
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,
268210,
370610,
210356,
342452,
370102,
338362,
327612,
358335,
380352,
201157,
187334,
333766,
336325,
339400,
349128,
358347,
393670,
347081,
272848,
379856,
155603,
399317,
249302,
379863,
372697,
155102,
182754,
360429,
338927,
330224,
379895,
201723,
257020,
254461
] |
c91b220ad4cb78559c48a97c0d43b77fa42157cb | 06ca3a0589497958b35f651f9a14dd07178e48e2 | /playground/ThisIsMe/ThisIsMe/SectionViewController.swift | f2aec6f7c71953c28eaf1f8d811075400fd8f3e3 | [] | no_license | snymyn/workSpace | 7103649ab9f93cef1e5ba79115093c24e41f81c5 | 95909e55610b13027ebede6f060928474d1528be | refs/heads/master | 2020-04-19T14:34:12.379176 | 2019-02-17T22:37:11 | 2019-02-17T22:37:11 | 168,247,713 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,011 | swift | //
// SectionViewController.swift
// ThisIsMe
//
// Created by aa372953 on 2019/02/12.
// Copyright © 2019 snymyn. All rights reserved.
//
import UIKit
class SectionViewController: UIViewController {
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var captionLabel: UILabel!
@IBOutlet weak var coverImageView: UIImageView!
@IBOutlet weak var progressLabel: UILabel!
@IBOutlet weak var bodyLabel: UILabel!
var section: [String: String]!
var sections: [[String: String]]!
var indexPath: IndexPath!
override func viewDidLoad() {
super.viewDidLoad()
titleLabel.text = section["title"]
captionLabel.text = section["caption"]
bodyLabel.text = section["body"]
coverImageView.image = UIImage(named: section["image"]!)
progressLabel.text = "\(indexPath.row+1) / \(sections.count)"
}
@IBAction func closeBottunTapped(_ sender: Any) {
dismiss(animated: true, completion: nil)
}
}
| [
-1
] |
677e84de51ae8a7cd7160a9331678d824656ec3c | e00292269e4b0180629d3ffe3fd2746c6be0e81e | /FoodieSearch-rx/Protocols/ViewModelBlueprint.swift | 9fb476e0c5a784ce231023375dcbf639c4b0f628 | [] | no_license | MichelRMazzoni/FoodieSearch-rx | 59946f0c20a355e5d93bc72a06b3dd6ebd40d582 | ba812d0eacccf309ca3421dc5671953c94df86cf | refs/heads/master | 2022-04-13T01:46:21.148326 | 2020-03-26T22:19:02 | 2020-03-26T22:19:02 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 563 | swift | //
// ViewModelBlueprint.swift
// FoodieSearch-rx
//
// Created by Christian Leovido on 25/03/2020.
// Copyright © 2020 Christian Leovido. All rights reserved.
//
import Foundation
import Moya
import RxSwift
import RxCocoa
import RxMoya
protocol ViewModelBlueprint {
associatedtype AnyService: TargetType
associatedtype Model: Decodable
var disposeBag: DisposeBag { get }
var provider: MoyaProvider<AnyService> { get }
var dataSource: BehaviorRelay<[Model]> { get }
var errorDataSourcePublisher: PublishSubject<Error> { get }
}
| [
-1
] |
5571033f8e3e7517288975c167821b58defa4c2d | 85ee8cecc48d33af682d8dd5f97d1e98e944b25b | /MagazineLayout/LayoutCore/HeaderModel.swift | a52732ce4ad6074ed72977f7261ff68e32901662 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0"
] | permissive | airbnb/MagazineLayout | 604efef44ae591b6709de6989c300da059fc83d4 | 2503c402b35434bd85ee5bf32f6e09a5227e2a99 | refs/heads/master | 2023-08-14T11:31:42.580878 | 2023-04-01T06:07:38 | 2023-04-01T06:07:38 | 157,927,312 | 3,153 | 249 | Apache-2.0 | 2023-04-01T06:07:39 | 2018-11-16T22:16:03 | Swift | UTF-8 | Swift | false | false | 1,215 | swift | // Created by bryankeller on 10/16/18.
// Copyright © 2018 Airbnb, Inc.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import CoreGraphics
import Foundation
/// Represents the layout information for a header in a section.
struct HeaderModel {
// MARK: Lifecycle
init(heightMode: MagazineLayoutHeaderHeightMode, height: CGFloat, pinToVisibleBounds: Bool) {
self.heightMode = heightMode
self.pinToVisibleBounds = pinToVisibleBounds
originInSection = .zero
size = CGSize(width: 0, height: height)
}
// MARK: Internal
var heightMode: MagazineLayoutHeaderHeightMode
var pinToVisibleBounds: Bool
var originInSection: CGPoint
var size: CGSize
var preferredHeight: CGFloat?
}
| [
-1
] |
6cf8dce075114ed659aa81d8654f3d9eaea575f9 | e720cc3bb8fcdcd9cc052e40dc9441a25fda48e8 | /Weekly/Extensions/String+WordPressSwift.swift | 2fd96bc591de114163775236617095869177f9d6 | [] | no_license | theparkerweekly/Weekly-iOS | 1459b0c07efcde9072c75d17c5f315816e7b404f | 4e6bd5d6765f886bb7e65339034f4c39fd71a916 | refs/heads/master | 2020-12-29T12:14:33.364356 | 2020-03-18T19:14:06 | 2020-03-18T19:14:06 | 238,603,941 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 733 | swift | import Foundation
public extension String {
func clean() -> String {
// Remove URLs
var str = self.replacingOccurrences(of: "@(https?://([-\\w\\.]+[-\\w])+(:\\d+)?(/([\\w/_\\.#-]*(\\?\\S+)?[^\\.\\s])?)?)@", with: "", options: .regularExpression, range: self.startIndex ..< self.endIndex)
// Remove HTML
str = str.replacingOccurrences(of: "<[^>]+>", with: "", options: .regularExpression, range: str.startIndex ..< str.endIndex)
str = str.replacingOccurrences(of: "“", with: "“").replacingOccurrences(of: "”", with: "”")
str = str.replacingOccurrences(of: "‘", with: "‘").replacingOccurrences(of: "’", with: "’")
return str
}
}
| [
-1
] |
a00f12ef31903aa68384c5b6c3f65266339339c9 | 51d7df42ce65aa43da1a46a5cb8f92a3f78b3d25 | /Sources/Mac/Extensions/Delegate+Mac+Extensions.swift | 77a5da63443d0be3342a213eb1c1e57b1061e819 | [
"MIT"
] | permissive | orta/Spots | aab7fbd4105ef0a987ddfc562809522a967f4eef | ee2f9f3af37d1720313ecba8d1a4b57700136d77 | refs/heads/master | 2021-01-19T13:20:18.156101 | 2017-02-09T10:09:01 | 2017-02-09T10:09:01 | 82,387,933 | 2 | 0 | null | 2017-02-18T13:16:55 | 2017-02-18T13:16:55 | null | UTF-8 | Swift | false | false | 5,351 | swift | import Cocoa
extension Delegate: NSCollectionViewDelegate {
public func collectionView(_ collectionView: NSCollectionView, didSelectItemsAt indexPaths: Set<IndexPath>) {
/*
This delay is here to avoid an assertion that happens inside the collection view binding,
it tries to resolve the item at index but it no longer exists so the assertion is thrown.
This can probably be fixed in a more convenient way in the future without delays.
*/
Dispatch.delay(for: 0.1) { [weak self] in
guard let weakSelf = self, let first = indexPaths.first,
let spot = weakSelf.spot,
let item = spot.item(at: first.item), first.item < spot.items.count else { return }
spot.delegate?.didSelect(item: item, in: spot)
}
}
/// Notifies the delegate that the specified item is about to be displayed by the collection view.
///
/// - parameter collectionView: The collection view that is adding the item.
/// - parameter item: The item being added.
/// - parameter indexPath: The index path of the item.
public func collectionView(_ collectionView: NSCollectionView, willDisplay item: NSCollectionViewItem, forRepresentedObjectAt indexPath: IndexPath) {
let view = item
guard
let spot = spot,
let item = spot.item(at: indexPath)
else {
return
}
spot.delegate?.willDisplay(view: view, item: item, in: spot)
}
/// Notifies the delegate that the specified item was removed from the collection view.
///
/// - parameter collectionView: The collection view that removed the item.
/// - parameter item: The item that was removed.
/// - parameter indexPath: The index path of the item.
public func collectionView(_ collectionView: NSCollectionView, didEndDisplaying item: NSCollectionViewItem, forRepresentedObjectAt indexPath: IndexPath) {
let view = item
guard
let spot = spot,
let item = spot.item(at: indexPath)
else {
return
}
spot.delegate?.endDisplay(view: view, item: item, in: spot)
}
}
extension Delegate: NSCollectionViewDelegateFlowLayout {
public func collectionView(_ collectionView: NSCollectionView, layout collectionViewLayout: NSCollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> NSSize {
guard let spot = spot else {
return CGSize.zero
}
return spot.sizeForItem(at: indexPath)
}
}
extension Delegate: NSTableViewDelegate {
public func tableView(_ tableView: NSTableView, shouldSelectRow row: Int) -> Bool {
guard let spot = spot,
let item = spot.item(at: row),
row > -1 && row < spot.component.items.count
else {
return false
}
if spot.component.meta(ListSpot.Key.doubleAction, type: Bool.self) != true {
spot.delegate?.didSelect(item: item, in: spot)
}
return true
}
public func tableView(_ tableView: NSTableView, heightOfRow row: Int) -> CGFloat {
guard let spot = spot else {
return 1.0
}
spot.component.size = CGSize(
width: tableView.frame.width,
height: tableView.frame.height)
let height = row < spot.component.items.count
? spot.item(at: row)?.size.height ?? 0
: 1.0
if height == 0 { return 1.0 }
return height
}
public func tableView(_ tableView: NSTableView, rowViewForRow row: Int) -> NSTableRowView? {
guard let spot = spot, row >= 0 && row < spot.component.items.count else {
return nil
}
let reuseIdentifier = spot.identifier(at: row)
var useWrapper = false
var craftedView = spot.type.views.make(reuseIdentifier)
if craftedView == nil {
craftedView = Configuration.views.make(reuseIdentifier)
useWrapper = true
}
guard let cachedView = craftedView else {
return nil
}
var resolvedView: View? = nil
if let type = cachedView.type {
switch type {
case .regular:
resolvedView = cachedView.view
case .nib:
resolvedView = tableView.make(withIdentifier: reuseIdentifier, owner: nil)
}
}
switch resolvedView {
case let view as Composable:
let spots = spot.compositeSpots.filter { $0.itemIndex == row }
view.contentView.frame.size.width = tableView.frame.size.width
view.contentView.frame.size.height = spot.computedHeight
view.configure(&spot.component.items[row], compositeSpots: spots)
case let view as View:
let customView = view
if !(view is NSTableRowView) {
let wrapper = ListWrapper()
wrapper.configure(with: view)
resolvedView = wrapper
}
(customView as? SpotConfigurable)?.configure(&spot.component.items[row])
case let view as SpotConfigurable:
view.configure(&spot.component.items[row])
default: break
}
(resolvedView as? NSTableRowView)?.identifier = reuseIdentifier
return resolvedView as? NSTableRowView
}
public func tableView(_ tableView: NSTableView, willDisplayCell cell: Any, for tableColumn: NSTableColumn?, row: Int) {
guard
let spot = spot,
let item = spot.item(at: row),
let view = cell as? View
else {
return
}
spot.delegate?.willDisplay(view: view, item: item, in: spot)
}
public func tableView(_ tableView: NSTableView, viewFor tableColumn: NSTableColumn?, row: Int) -> NSView? {
return nil
}
}
| [
-1
] |
e52eb480981c273f528652ac6d974194c18e327c | 43772650e9e70c45e05dd10c6aca9e2f700ef197 | /DropTests/DropTests.swift | a3837ea436d89cf70544d215c306ec38ea166cb8 | [] | no_license | jul-stevenson/Drop | 3473b8a26f3b946ad476c2d9d25753f900f3f997 | ba8e8833c2a752252de3a063de0bd3abd4cb4a17 | refs/heads/master | 2021-01-10T09:26:55.343599 | 2015-11-22T16:22:34 | 2015-11-22T16:22:34 | 46,631,992 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 977 | swift | //
// DropTests.swift
// DropTests
//
// Created by Julianna Stevenson on 11/21/15.
// Copyright © 2015 Julianna Stevenson. All rights reserved.
//
import XCTest
@testable import Drop
class DropTests: 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.
}
}
}
| [
98333,
278558,
16419,
229413,
204840,
278570,
344107,
155694,
253999,
229424,
237620,
229430,
319542,
180280,
213052,
286788,
352326,
311372,
311374,
196691,
278615,
237663,
278634,
131178,
319598,
352368,
204916,
131191,
237689,
131198,
278655,
319629,
311438,
278677,
278685,
311458,
278691,
49316,
278699,
32941,
278704,
278708,
131256,
180408,
278714,
295098,
254170,
229597,
311519,
286958,
327929,
278797,
180493,
254226,
278816,
237857,
278842,
287041,
139589,
319813,
311621,
319821,
254286,
344401,
155990,
106847,
246127,
139640,
246136,
246137,
311681,
311691,
377264,
278970,
319930,
311738,
336317,
311745,
278978,
188871,
278989,
278993,
278999,
328152,
369116,
188894,
287198,
279008,
279013,
279018,
311786,
319987,
279029,
279032,
279039,
287241,
279050,
303631,
279057,
279062,
279065,
180771,
377386,
279094,
352829,
115270,
377418,
287318,
295519,
66150,
344680,
279146,
295536,
287346,
287352,
279164,
189057,
311941,
279177,
369289,
344715,
311949,
287374,
352917,
230040,
271000,
295576,
303771,
221852,
279206,
295590,
279210,
287404,
205487,
295599,
303793,
164533,
287417,
303803,
287422,
66242,
287433,
287439,
279252,
287452,
295652,
279269,
312047,
279280,
230134,
221948,
279294,
205568,
295682,
312079,
295697,
336671,
344865,
279336,
262954,
295724,
312108,
353069,
164656,
303920,
262962,
328499,
353078,
230199,
353079,
336702,
295746,
353094,
353095,
353109,
230234,
295776,
279392,
303972,
230248,
246641,
246648,
279417,
361337,
254850,
287622,
295824,
189348,
279464,
353195,
140204,
353197,
304051,
230332,
189374,
353215,
353216,
213960,
279498,
50143,
123881,
304110,
320494,
287731,
295927,
304122,
320507,
328700,
312314,
328706,
320516,
230410,
320527,
238610,
418837,
140310,
197657,
336929,
189474,
345132,
238639,
238651,
214086,
238664,
296019,
353367,
156764,
156765,
304222,
230499,
279660,
312434,
353397,
279672,
337017,
279685,
222343,
296086,
238743,
296092,
238765,
279728,
238769,
230588,
279747,
353479,
353481,
353482,
279760,
189652,
279765,
189653,
148696,
296153,
279774,
304351,
304356,
279785,
279792,
353523,
320770,
279814,
312587,
328971,
173334,
320796,
115998,
304421,
279854,
345396,
116026,
222524,
279875,
304456,
230729,
312648,
222541,
296270,
238927,
296273,
222559,
230756,
230765,
296303,
279920,
312689,
296307,
116084,
181625,
378244,
304524,
296335,
279974,
279984,
173491,
304564,
279989,
280004,
361927,
296392,
280010,
370123,
148940,
280013,
312782,
222675,
353750,
239068,
280032,
280041,
361963,
329200,
321009,
280055,
288249,
230913,
230921,
296461,
304656,
329232,
230959,
288309,
288318,
280130,
124485,
288326,
288327,
280147,
239198,
157281,
312940,
222832,
247416,
288378,
337535,
239237,
312965,
288392,
239250,
345752,
255649,
321199,
321207,
296632,
337591,
280251,
280257,
321219,
280267,
9936,
9937,
280278,
280280,
18138,
67292,
321247,
321249,
280300,
239341,
313081,
124669,
288512,
288516,
280327,
280329,
321295,
321302,
116505,
321310,
313120,
247590,
280366,
280372,
321337,
280380,
280390,
280392,
345929,
304977,
18262,
280410,
370522,
345951,
362337,
345955,
296806,
288619,
288620,
280430,
296814,
362352,
313203,
124798,
182144,
305026,
67463,
329622,
124824,
214937,
214938,
239514,
354212,
313254,
124852,
288697,
214977,
280514,
280519,
214984,
247757,
231375,
280541,
337895,
247785,
296941,
362480,
223218,
313339,
313357,
182296,
239650,
329765,
354343,
354345,
223274,
124975,
346162,
124984,
288828,
288833,
288834,
354385,
223316,
280661,
329814,
338007,
354393,
280675,
280677,
43110,
313447,
321637,
329829,
288879,
223350,
280694,
288889,
215164,
313469,
215166,
280712,
215178,
346271,
239793,
125109,
182456,
280762,
223419,
379071,
280768,
338119,
280778,
321745,
280795,
280802,
338150,
346346,
125169,
338164,
125183,
125188,
313608,
125193,
321800,
125198,
125203,
338197,
125208,
305440,
125217,
125235,
280887,
125240,
182597,
280902,
182598,
289110,
379225,
272729,
354655,
321894,
280939,
313713,
354676,
362881,
248194,
395659,
395661,
240016,
108944,
141728,
289189,
108972,
281037,
281040,
289232,
330218,
281072,
109042,
289304,
182817,
338490,
322120,
281166,
281171,
354911,
436832,
191082,
313966,
281199,
330379,
330387,
330388,
314009,
289434,
338613,
166582,
289462,
314040,
109241,
158394,
248517,
363211,
289502,
363230,
338662,
346858,
289518,
199414,
35583,
363263,
322313,
322319,
166676,
207640,
281377,
289576,
289598,
281408,
420677,
281427,
281433,
322395,
109409,
330609,
174963,
207732,
109428,
158593,
240518,
109447,
289690,
289703,
240552,
289722,
289727,
363458,
19399,
183248,
338899,
248797,
207838,
314342,
52200,
289774,
183279,
314355,
240630,
314362,
134150,
322570,
330763,
281626,
175132,
248872,
322612,
314448,
339030,
281697,
314467,
281700,
322663,
281706,
207979,
363644,
150657,
248961,
339102,
306338,
249002,
306346,
208058,
339130,
290000,
298212,
290022,
330984,
298228,
216315,
208124,
363771,
388349,
322824,
126237,
339234,
298291,
224586,
372043,
331090,
314709,
314710,
134491,
314720,
281957,
306542,
314739,
249204,
249205,
290169,
290173,
306559,
224640,
306560,
298374,
314758,
314760,
142729,
388487,
314766,
306579,
224661,
282007,
290207,
314783,
314789,
282022,
282024,
241066,
314798,
380357,
306631,
306639,
191981,
282096,
306673,
306677,
191990,
290300,
290301,
282114,
306692,
306693,
323080,
323087,
282129,
323089,
282136,
282141,
282146,
306723,
290358,
282183,
224847,
118353,
290390,
306776,
44635,
282213,
323178,
224883,
314998,
175741,
282245,
282246,
224901,
290443,
323217,
282259,
282271,
282273,
257699,
323236,
282276,
298661,
290471,
282280,
298667,
61101,
282303,
323264,
282312,
306890,
241361,
282327,
298712,
298720,
282339,
12010,
282348,
282355,
282358,
175873,
323331,
323332,
216839,
323346,
249626,
282400,
241441,
339745,
315171,
257830,
282417,
200498,
282427,
282434,
307011,
315202,
282438,
307025,
413521,
216918,
307031,
282480,
241528,
315264,
241540,
282504,
315273,
315274,
110480,
184208,
282518,
282519,
118685,
298909,
298920,
298980,
290811,
282633,
241692,
102437,
315434,
233517,
282672,
241716,
315465,
315476,
307289,
200794,
315487,
45153,
307299,
315498,
299121,
233589,
233590,
241808,
323729,
233636,
299174,
233642,
299187,
184505,
299198,
258239,
299203,
282831,
356576,
176362,
184570,
299293,
282909,
233762,
217380,
151847,
282919,
332083,
332085,
332089,
315706,
282939,
307517,
241986,
332101,
323916,
348492,
250192,
323920,
282960,
348500,
168281,
332123,
323935,
332127,
242029,
242033,
291192,
315773,
291198,
225670,
332167,
242058,
291224,
283038,
242078,
61857,
315810,
61859,
381347,
315811,
340398,
299441,
61873,
283064,
61880,
291265,
127427,
127428,
283075,
291267,
324039,
176601,
242139,
160225,
242148,
127465,
291311,
233978,
291333,
340490,
283153,
291358,
283182,
283184,
234036,
315960,
70209,
348742,
70215,
348749,
111208,
291454,
348806,
152203,
184973,
316049,
111253,
111258,
299699,
299700,
225995,
242386,
299746,
299759,
299770,
234234,
299776,
242433,
291592,
291604,
291612,
234277,
283430,
152365,
242485,
234294,
160575,
299849,
283467,
201549,
201551,
349026,
275303,
177001,
201577,
308076,
242541,
209783,
209785,
177019,
308092,
316298,
308107,
308112,
234386,
209817,
324506,
324507,
127902,
324517,
283558,
316333,
316343,
349121,
316364,
340955,
340961,
234472,
234473,
324586,
340974,
316405,
201720,
234500,
324625,
234514,
308243,
316437,
201755,
300068,
357414,
300084,
324666,
308287,
21569,
300111,
234577,
341073,
234587,
250981,
300135,
300136,
316520,
316526,
357486,
144496,
234609,
300146,
300150,
300151,
160891,
341115,
300158,
234625,
349316,
349318,
234638,
169104,
177296,
308372,
185493,
119962,
283802,
300187,
300188,
234663,
300201,
300202,
283840,
259268,
283847,
62665,
283852,
283853,
357595,
333022,
234733,
234742,
292091,
316669,
234755,
242954,
292107,
251153,
177428,
333090,
300343,
333117,
193859,
300359,
234827,
177484,
251213,
234831,
120148,
283991,
357719,
316765,
292195,
333160,
284014,
243056,
111993,
112017,
112018,
234898,
357786,
333220,
316842,
210358,
284089,
292283,
415171,
300487,
300489,
284107,
366037,
210390,
210391,
210393,
144867,
103909,
316902,
54765,
251378,
308723,
300535,
300536,
300542,
210433,
366083,
292356,
316946,
308756,
398869,
308764,
349726,
349741,
169518,
235070,
194110,
349763,
292423,
218696,
292425,
243274,
128587,
333388,
333393,
300630,
235095,
128599,
333408,
374372,
317032,
54893,
333430,
366203,
300714,
218819,
333509,
333517,
333520,
333521,
333523,
153319,
284401,
300794,
325371,
194303,
194304,
300811,
284429,
284431,
243472,
161554,
366360,
284442,
325404,
325410,
341796,
284459,
317232,
325439,
325445,
153415,
341836,
325457,
317269,
284507,
300894,
284512,
284514,
276327,
292712,
325484,
292720,
325492,
300918,
194429,
325503,
333701,
243591,
317323,
243597,
325518,
300963,
292771,
333735,
284587,
292782,
317360,
243637,
284619,
301008,
153554,
194515,
219101,
292836,
292837,
317415,
325619,
333817,
292858,
145435,
317467,
292902,
227370,
325674,
309295,
358456,
309345,
227428,
194666,
284788,
333940,
292992,
194691,
227460,
333955,
235662,
325776,
317587,
284825,
284826,
333991,
333992,
284842,
227513,
301251,
227524,
309444,
227548,
194782,
301279,
243962,
309503,
194820,
375051,
325905,
325912,
227616,
211235,
211238,
260418,
325968,
6481,
366929,
366930,
6489,
334171,
391520,
416104,
285040,
211326,
227725,
227726,
285084,
317852,
285090,
375207,
293303,
293310,
317901,
326100,
285150,
358882,
342498,
195045,
309744,
301571,
342536,
342553,
375333,
293419,
244269,
236081,
23092,
309830,
301638,
55881,
309846,
244310,
244327,
301689,
244347,
227990,
342682,
285361,
342706,
342713,
285373,
154316,
96984,
318173,
285415,
342762,
293612,
154359,
162561,
285444,
326414,
285458,
326429,
293664,
326433,
318250,
318252,
301871,
285487,
285497,
293693,
318278,
293711,
301918,
293730,
351077,
342887,
400239,
310131,
269178,
359298,
113542,
416646,
228233,
228234,
236428,
56208,
293781,
318364,
310176,
310178,
310182,
293800,
236461,
293806,
130016,
64485,
203757,
277492,
293893,
146448,
326685,
252980,
359478,
302139,
359495,
277597,
302177,
285798,
228458,
318572,
15471,
187506,
285814,
285820,
187521,
285828,
302213,
285830,
302216,
228491,
228493,
285838,
162961,
326804,
285851,
302240,
343203,
253099,
367799,
228540,
64700,
228542,
302274,
343234,
367810,
244940,
228563,
228588,
253167,
302325,
228600,
228609,
245019,
130338,
130343,
351537,
171317,
318775,
286013,
286018,
113987,
294218,
318805,
294243,
163175,
327025,
327031,
294275,
368011,
318864,
318875,
310692,
286129,
228795,
302529,
302531,
163268,
310732,
302540,
64975,
310736,
327121,
228827,
286172,
310757,
187878,
245223,
343542,
343543,
286202,
286205,
302590,
228861,
294400,
228867,
253452,
146964,
302623,
187938,
286244,
245287,
245292,
286254,
56902,
228943,
286288,
196187,
343647,
286306,
310889,
204397,
138863,
294529,
286343,
229001,
310923,
188048,
302739,
229020,
302754,
245412,
40613,
40614,
40615,
229029,
286388,
286391,
319162,
327358,
286399,
302797,
212685,
212688,
245457,
302802,
286423,
278233,
278234,
294622,
278240,
229088,
212716,
212717,
229113,
286459,
278272,
319233,
311042,
278291,
278293,
294678,
286494,
294700,
360252,
319292,
188251,
245599,
237408,
302946,
188292,
253829,
327557,
294807,
294809,
294814,
311199,
319392,
294823,
294843,
98239,
294850,
163781,
344013,
212946,
294886,
253929,
327661,
278512,
311281,
311282
] |
b0950df0765dc8c6fd9b991fdb8e4a9dd22f8033 | 55ba0cfe775e9d09bc1183138025abc5cd078c95 | /LionsAndTigers/AppDelegate.swift | 8776f13d0eecff303aa987afda7a8b35917b79a7 | [] | no_license | abuAunik/LionsAndTigers | 7d9bed051d288f94af1669ec1e9accd739449bba | afbd82b07a2b35959682d3cc88b98c66d683d4fe | refs/heads/master | 2020-04-10T19:29:46.022674 | 2015-04-08T12:45:58 | 2015-04-08T12:45:58 | 33,606,160 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,145 | swift | //
// AppDelegate.swift
// LionsAndTigers
//
// Created by abu aunik on 4/1/15.
// Copyright (c) 2015 Abu Aunik. 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,
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,
311436,
303244,
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,
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,
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,
287381,
311957,
221850,
287386,
164509,
303773,
295583,
230045,
287390,
287394,
172705,
303780,
172702,
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,
312048,
230128,
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,
295825,
189329,
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,
295949,
197645,
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,
279661,
164973,
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,
230679,
230681,
320792,
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,
230800,
288144,
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,
280034,
370146,
280036,
288226,
280038,
288229,
288230,
288232,
288234,
320998,
288236,
288238,
288240,
291754,
288242,
296435,
288244,
296439,
288250,
402942,
148990,
206336,
296446,
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,
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,
304968,
280393,
280402,
313176,
280419,
321381,
280426,
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,
149601,
321634,
149603,
149599,
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,
314249,
338823,
183184,
289687,
240535,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
281567,
289762,
322534,
297961,
281581,
183277,
322550,
134142,
322563,
175134,
322599,
322610,
314421,
281654,
314427,
207937,
314433,
314441,
207949,
322642,
281691,
314461,
281702,
281704,
314474,
281708,
281711,
289912,
248995,
306341,
306344,
306347,
306354,
142531,
199877,
289991,
306377,
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,
298365,
290174,
306555,
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,
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,
217179,
315483,
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,
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,
276052,
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,
283095,
127447,
299481,
176605,
242143,
291299,
242152,
291305,
127466,
176620,
127474,
291314,
291317,
135672,
233979,
291323,
291330,
283142,
135689,
233994,
127497,
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,
119509,
226005,
226008,
242396,
299740,
201444,
299750,
283368,
234219,
283372,
381677,
226037,
283382,
234231,
316151,
234236,
226045,
234239,
242431,
209665,
234242,
299778,
242436,
226053,
234246,
234248,
226056,
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,
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,
234356,
177011,
234358,
234362,
226171,
234364,
291711,
234368,
234370,
201603,
291714,
234373,
226182,
234375,
291716,
226185,
308105,
234379,
234384,
234388,
234390,
226200,
234393,
324504,
209818,
308123,
324508,
234398,
234396,
291742,
234401,
291747,
291748,
234405,
291750,
234407,
324518,
324520,
234410,
324522,
226220,
291756,
234414,
324527,
291760,
234417,
201650,
324531,
234422,
226230,
275384,
324536,
234428,
291773,
234431,
242623,
324544,
324546,
226239,
324548,
234437,
226245,
234439,
234434,
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,
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,
234556,
234558,
316479,
234561,
316483,
234563,
308291,
234568,
234570,
316491,
300108,
234572,
234574,
300115,
234580,
234581,
234585,
275545,
242777,
234590,
234593,
234595,
300133,
234597,
234601,
300139,
234605,
234607,
160879,
275569,
234610,
300148,
234614,
398455,
234618,
275579,
144506,
234620,
234623,
226433,
234627,
275588,
234629,
242822,
234634,
275594,
234636,
177293,
234640,
275602,
234643,
226453,
275606,
234647,
275608,
308373,
234650,
234648,
308379,
234653,
283805,
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,
177419,
300299,
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,
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,
366155,
317004,
284238,
226895,
284241,
194130,
284243,
300628,
276053,
284245,
284247,
317015,
235097,
284249,
284251,
243290,
284253,
300638,
284255,
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,
292485,
292479,
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,
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,
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,
244731,
293882,
302075,
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,
162964,
384148,
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,
277822,
417086,
286016,
294211,
302403,
384328,
277832,
277836,
294221,
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,
277892,
310659,
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,
310727,
277959,
302534,
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,
286240,
146977,
294435,
187939,
40484,
286246,
40486,
286248,
278057,
294439,
40488,
294440,
294443,
294445,
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,
40552,
286313,
40554,
286312,
310892,
40557,
40560,
188022,
122488,
294521,
343679,
278150,
310925,
286354,
278163,
302740,
122517,
278168,
327333,
229030,
212648,
278188,
302764,
278192,
319153,
278196,
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
] |
40ddeea1af12f2485bc5f9bd7ba28a21004376d7 | 4f94112920e231d26a81bfe272079a3de0914d55 | /WWDCEmpathyChallenge/joaoPauloEmpathyChallenge.playground/Sources/SpeechChallengeState.swift | 139001482053f39022e0adeb9fc8787b6a7ecdcd | [] | no_license | jppsantos/WWDC_EmpathyChallenge | 89c35c39d2be30d6e037d43bae19361c8e4d5f89 | 5cf7a2408e4f12d9a52398bbca37733694ef882d | refs/heads/master | 2022-11-20T03:26:48.019058 | 2020-07-21T15:54:59 | 2020-07-21T15:54:59 | 252,478,661 | 2 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 8,597 | swift | //
// InitialState1.swift
// WWDCEmpatiaMiniJoaoXcode
//
// Created by Joao Paulo Pereira dos Santos on 01/04/20.
// Copyright © 2020 Joao Paulo Pereira dos Santos. All rights reserved.
//
import SpriteKit
import GameplayKit
public class SpeechChallengeState : GKState {
unowned let gameScene: GameScene
var controlNode: SKNode!
var scene: SKSpriteNode!
public var bubbles: [Card] = []
public var msg: Message!
public var bubblesTouchedQuantity = 0 {
didSet {
if bubblesTouchedQuantity == SpeechConstants.bubbles.count {
endChallenge()
}
}
}
lazy var speechButton: SKButtonNode = {
let button = SKButtonNode(normalTexture: SKTexture(imageNamed: "speechButtonNormal"), selectedTexture: SKTexture(imageNamed: "speechButtonSelected"), disabledTexture: SKTexture(imageNamed: "speechButtonDisabled"))
button.setButtonAction(target: self, triggerEvent: .TouchUpInside, action: #selector(self.speakButtonAction))
button.position = CGPoint(x: -420,y: -300)
button.zPosition = 3
button.size = CGSize(width: 150, height: 150)
button.name = "speechButton"
return button
}()
lazy var speechBubbleNode: SKSpriteNode = {
let node = SKSpriteNode(imageNamed: "speechBubble")
node.name = "speechBubble"
node.position = CGPoint(x: 150, y: -200)
node.zPosition = 2
return node
}()
lazy var spceechIconNode: SKSpriteNode = {
let node = SKSpriteNode(imageNamed: "speechIcon")
node.name = "spceechIconNode"
node.position = CGPoint(x: -450, y: 350)
node.zPosition = 2
return node
}()
lazy var nextButton: SKButtonNode = {
let button = SKButtonNode(normalTexture: SKTexture(imageNamed: "nextButton"), selectedTexture: SKTexture(imageNamed: "nextButtonSelected"), disabledTexture: SKTexture(imageNamed: ""))
button.setButtonAction(target: self, triggerEvent: .TouchUpInside, action: #selector(self.nextButtonAction))
button.position = CGPoint(x: 350,y: -300)
button.zPosition = 3
button.name = "nextButton"
return button
}()
lazy var backButton: SKButtonNode = {
let button = SKButtonNode(normalTexture: SKTexture(imageNamed: "backButton"), selectedTexture: SKTexture(imageNamed: "backButtonSelected"), disabledTexture: SKTexture(imageNamed: ""))
button.setButtonAction(target: self, triggerEvent: .TouchUpInside, action: #selector(self.backButtonAction))
button.position = CGPoint(x: 200,y: -300)
button.zPosition = 3
button.name = "backButton"
return button
}()
lazy var answerCircle: ClickElement = {
let shape = ClickElement(circleOfRadius: 50)
shape.id = 0
shape.name = "clickElement"
shape.position = CGPoint(x: 350, y: 150)
shape.fillColor = .green
shape.lineWidth = 0
shape.isHidden = true
// shape.delegate = self
return shape
}()
lazy var answerMessage: Message = {
let txt = Message(fontNamed: "Helvetica")
txt.messages = SpeechStateConstants.answerMessages
txt.position = CGPoint(x: 50 ,y: 150)
txt.numberOfLines = 3
txt.horizontalAlignmentMode = .center
txt.verticalAlignmentMode = .center
txt.fontSize = 40
txt.isHidden = true
return txt
}()
public init(_ gameScene: GameScene) {
self.gameScene = gameScene
super.init()
}
public override func isValidNextState(_ stateClass: AnyClass) -> Bool {
return stateClass is InitialState.Type
}
public override func didEnter(from previousState: GKState?) {
controlNode = gameScene.controlNode
scene = buildScene()
controlNode.addChild(scene)
scene.addChild(answerCircle)
scene.addChild(answerMessage)
let title = Message(fontNamed: "Helvetica")
title.messages = [SpeechStateConstants.initialMessage]
title.position = CGPoint(x: -180 ,y: 350)
title.numberOfLines = 3
title.horizontalAlignmentMode = .center
title.verticalAlignmentMode = .center
title.fontSize = 50
scene.addChild(spceechIconNode)
scene.addChild(title)
createAllMessages()
}
public override func willExit(to nextState: GKState) {
self.scene.removeAllChildren()
self.scene.removeFromParent()
self.controlNode = nil
self.scene = nil
self.bubbles = []
self.bubblesTouchedQuantity = 0
}
public func startChallenge() {
scene.addChild(speechBubbleNode)
createBubbles()
addAllChildren()
}
public func buildScene() -> SKSpriteNode {
let node = SKSpriteNode()
node.color = UIColor(hex: 0x8BC7EB)
node.size = gameScene.size
node.zPosition = 1
node.name = "initialScene"
return node
}
public func createBubbles() {
for i in 0..<SpeechConstants.bubbles.count {
let bubble = Card(imageNamed: SpeechConstants.bubbles[i].imageName)
bubble.id = SpeechConstants.bubbles[i].id
bubble.name = SpeechConstants.bubbles[i].imageName
bubble.position = SpeechConstants.bubbles[i].position
bubble.zPosition = 4
bubble.correctSoundName = SpeechConstants.bubbles[i].audioName
bubble.delegate = self
bubble.pulse()
bubbles.append(bubble)
}
}
public func addAllChildren() {
for bubble in bubbles {
scene.addChild(bubble)
}
}
@objc public func speakButtonAction() {
self.gameScene.gameState.enter(InitialState.self)
}
public func endChallenge() {
print("Speech Challenge Ended")
self.scene.run(.sequence([
.wait(forDuration: 1),
.run {self.gameScene.gameState.enter(InitialState.self)}
]))
}
}
// MARK: - SpeechChallengeLogic
extension SpeechChallengeState: CardDelegate {
public func didTouched(element: Card) {
let actions: [SKAction] = [
.run {
let action = SKAction.move(to: SpeechConstants.newLocation, duration: 2)
element.run(action)
self.bubbles.forEach({
$0.isUserInteractionEnabled = false
})
},
.wait(forDuration: 2),
.playSoundFileNamed(element.correctSoundName!, waitForCompletion: true),
.run { self.showAnswerCircle(element.id) },
.run {
element.removeFromParent()
self.bubbles.forEach({
$0.isUserInteractionEnabled = true
})
}
]
scene.run(.sequence(actions))
}
public func showAnswerCircle(_ id: Int) {
answerCircle.fillColor = id == 0 ? .red : .green
self.scene.run(.sequence([
.run {
self.answerCircle.isHidden = false
self.answerMessage.isHidden = false
self.answerMessage.text = SpeechStateConstants.answerMessages[id]
},
.wait(forDuration: 5),
.run {
self.answerCircle.isHidden = true
self.answerMessage.isHidden = true
self.bubblesTouchedQuantity += 1
}
]))
}
}
// MARK: - Messages logic
extension SpeechChallengeState: MessageDelegate {
public func lastMessageTapped() {
msg.removeFromParent()
backButton.removeFromParent()
nextButton.removeFromParent()
startChallenge()
}
@objc public func nextButtonAction() {
self.msg.nextMessage()
}
@objc public func backButtonAction() {
self.msg.previousMessage()
}
public func createAllMessages() {
msg = Message(fontNamed: "Helvetica")
msg.messages = SpeechStateConstants.messages
msg.position = CGPoint(x: 0,y: 0)
msg.numberOfLines = 3
msg.horizontalAlignmentMode = .center
msg.verticalAlignmentMode = .center
msg.fontSize = 50
msg.delegate = self
scene.addChild(msg)
scene.addChild(nextButton)
scene.addChild(backButton)
}
}
| [
-1
] |
580d243943182717e857142493b7a1e74077d58f | 633c0c97e54dfeb895a3b0e01357001b17181357 | /UIKit/Magic-8-Ball-iOS13/Magic 8 Ball/ViewController.swift | b8e959beb27b672d288ecaedc5dd34755b6af282 | [] | no_license | KrazyJames/SwiftPractices | 289d8c1297f02ddae99cf87d762031081e4b8732 | 881ec331731e9729397e5d040e651660091cd428 | refs/heads/master | 2023-03-02T01:13:58.704343 | 2021-01-30T06:35:54 | 2021-01-30T06:35:54 | 263,560,882 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 543 | swift | //
// ViewController.swift
// Magic 8 Ball
//
// Created by Jaime on 01/18/2019.
import UIKit
class ViewController: UIViewController {
@IBOutlet weak var ballImageView: UIImageView!
let ballArray = [#imageLiteral(resourceName: "ball1.png"),#imageLiteral(resourceName: "ball2.png"),#imageLiteral(resourceName: "ball3.png"),#imageLiteral(resourceName: "ball4.png"),#imageLiteral(resourceName: "ball5.png")]
@IBAction func askBtn(_ sender: UIButton) {
ballImageView.image = ballArray.randomElement()
}
}
| [
265801,
352897,
332505,
249236
] |
a6bea338c48d012bad1b7fc660d53b7bc038686b | d636119f6284b5a6d9e621db6cab2ed43d4bff87 | /Chris28/Burger/Burger/AppDelegate.swift | 9eb4b8ea78abb5395ab8621dc467057913b0f2d6 | [] | no_license | ostapyshyn/Practice-projects | eb1d70d855bcb66ca92aa882bf55d860694e583b | 36bc697bc90aab2f963dc4a489ee5087bf7ba213 | refs/heads/master | 2021-01-01T21:19:42.174297 | 2020-10-08T09:31:44 | 2020-10-08T09:31:44 | 239,340,684 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,434 | swift | //
// AppDelegate.swift
// Burger
//
// Created by Volodymyr Ostapyshyn on 16.02.2020.
// Copyright © 2020 Volodymyr Ostapyshyn. All rights reserved.
//
import UIKit
@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.
}
}
| [
393222,
393224,
393230,
393250,
344102,
393261,
393266,
163891,
213048,
376889,
385081,
393275,
376905,
327756,
254030,
286800,
180313,
368735,
180320,
376931,
286831,
286844,
286879,
286888,
377012,
327871,
377036,
180431,
377046,
377060,
327914,
205036,
393456,
393460,
336123,
418043,
385280,
262404,
180490,
368911,
262416,
262422,
377117,
262436,
336180,
262454,
262472,
344403,
213332,
65880,
418144,
262496,
262499,
213352,
246123,
262507,
262510,
213372,
385419,
393612,
262550,
262552,
385440,
385443,
385451,
262573,
393647,
385458,
262586,
344511,
262592,
360916,
369118,
328177,
328179,
328182,
328189,
328192,
164361,
328206,
410128,
393747,
254490,
188958,
385570,
33316,
197159,
377383,
352821,
188987,
418363,
369223,
385609,
385616,
352856,
352864,
369253,
262760,
352874,
352887,
254587,
336512,
377472,
148105,
377484,
352918,
98968,
344744,
361129,
336555,
385713,
434867,
164534,
336567,
328378,
164538,
328386,
344776,
352968,
418507,
352971,
385742,
385748,
361179,
189153,
369381,
361195,
418553,
344831,
336643,
344835,
344841,
361230,
336659,
418580,
418585,
434970,
369435,
418589,
418593,
336675,
328484,
418598,
418605,
336696,
361273,
328515,
336708,
328519,
336711,
328522,
336714,
426841,
197468,
361309,
254812,
361315,
361322,
328573,
377729,
369542,
361360,
222128,
345035,
345043,
386003,
386011,
386018,
386022,
435187,
328702,
328714,
361489,
386069,
336921,
386073,
336925,
345118,
377887,
345133,
345138,
386101,
197707,
189520,
345169,
156761,
361567,
148578,
345199,
386167,
361593,
410745,
361598,
214149,
386186,
337047,
345246,
214175,
337071,
337075,
386258,
328924,
66782,
222437,
328941,
386285,
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,
337329,
181681,
181684,
181690,
361917,
181696,
337349,
181703,
337365,
271839,
329191,
361960,
329194,
116210,
337398,
329226,
419339,
419343,
419349,
345625,
419355,
370205,
419359,
394786,
419362,
370213,
419368,
419376,
206395,
214593,
419400,
419402,
353867,
419406,
419410,
345701,
394853,
222830,
370297,
403070,
403075,
198280,
345736,
345749,
345757,
345762,
419491,
345765,
419497,
419501,
370350,
419506,
419509,
337592,
419512,
337599,
419527,
419530,
419535,
272081,
394966,
419542,
419544,
181977,
345818,
419547,
419550,
419559,
337642,
419563,
337645,
141051,
337659,
337668,
362247,
395021,
362255,
321299,
116509,
345887,
378663,
345905,
354106,
354111,
247617,
354117,
370503,
329544,
345930,
370509,
354130,
247637,
337750,
370519,
313180,
354142,
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,
346316,
411861,
411864,
411868,
411873,
379107,
411876,
387301,
346343,
338152,
387306,
387312,
346355,
436473,
321786,
379134,
411903,
379152,
387349,
338199,
387352,
182558,
338211,
395566,
248111,
362822,
436555,
190796,
321879,
354673,
321910,
248186,
420236,
379278,
354727,
338352,
330189,
338381,
338386,
338403,
338409,
248308,
199164,
330252,
199186,
420376,
330267,
354855,
10828,
199249,
174695,
248425,
191084,
338543,
191092,
346742,
330383,
354974,
150183,
174774,
248504,
174777,
223934,
355024,
355028,
273108,
264918,
183005,
338660,
338664,
264941,
363251,
207619,
264964,
338700,
199452,
396066,
346916,
215853,
355122,
355131,
355140,
355143,
338763,
355150,
330580,
355166,
265055,
355175,
355179,
330610,
330642,
355218,
412599,
207808,
379848,
248792,
248798,
347105,
257008,
183282,
265207,
330748,
330760,
330768,
248862,
396328,
158761,
199728,
330800,
339001,
388154,
388161,
347205,
248904,
330826,
248914,
339036,
412764,
257120,
248951,
420984,
330889,
347287,
248985,
339097,
44197,
380070,
339112,
249014,
330958,
330965,
265432,
388319,
388347,
175375,
159005,
175396,
208166,
372015,
347441,
372018,
199988,
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,
249227,
249234,
175513,
175516,
396705,
175522,
355748,
380332,
396722,
388542,
372163,
216517,
380360,
216522,
339404,
372176,
208337,
339412,
413141,
339417,
249308,
339420,
339424,
339428,
339434,
249328,
69113,
372228,
339461,
208398,
380432,
175635,
339503,
265778,
265795,
396872,
265805,
224853,
224857,
257633,
224870,
372327,
257646,
372337,
224884,
224887,
224890,
224894,
372353,
224897,
216707,
339588,
126596,
421508,
224904,
224909,
159374,
11918,
339601,
224913,
126610,
224916,
224919,
126616,
208538,
224922,
224926,
224929,
224932,
224936,
257704,
224942,
257712,
224947,
257716,
257720,
224953,
257724,
224959,
257732,
224965,
224969,
339662,
224975,
257747,
224981,
224986,
224993,
257761,
257764,
224999,
339695,
225012,
257787,
225020,
339710,
257790,
225025,
339721,
257801,
257804,
225038,
257807,
225043,
167700,
372499,
225048,
257819,
225053,
184094,
225058,
257833,
225066,
257836,
413484,
225070,
225073,
372532,
257845,
225079,
225082,
397115,
225087,
225092,
225096,
323402,
257868,
225103,
257871,
397139,
225108,
257883,
257886,
225119,
257890,
339814,
225127,
257896,
274280,
257901,
225137,
339826,
257908,
225141,
257912,
225148,
257916,
257920,
225155,
339844,
225165,
225170,
380822,
225175,
225180,
118691,
184244,
372664,
372702,
356335,
380918,
405533,
430129,
217157,
421960,
430180,
421990,
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,
225475,
389320,
225484,
225487,
225490,
225493,
225496,
225499,
225502,
225505,
356578,
217318,
225510,
225514,
225518,
372976,
381176,
389380,
356637,
356640,
356643,
356646,
356649,
356655,
332080,
340275,
356660,
397622,
332090,
225597,
332097,
201028,
348488,
332106,
332117,
348502,
250199,
250202,
332125,
250210,
348525,
332152,
250238,
389502,
332161,
356740,
332172,
373145,
340379,
389550,
324030,
340451,
160234,
127471,
340472,
324094,
266754,
324099,
324102,
324111,
340500,
324117,
324131,
332324,
381481,
324139,
356907,
324142,
356916,
324149,
324155,
348733,
324160,
324164,
356934,
348743,
381512,
324170,
324173,
324176,
389723,
332380,
381545,
340627,
184982,
332453,
332459,
389805,
332463,
381617,
332471,
332483,
332486,
332493,
357069,
357073,
332511,
332520,
340718,
332533,
348924,
373510,
389926,
152370,
348978,
340789,
348982,
398139,
127814,
357206,
389978,
357211,
430939,
357214,
201579,
201582,
349040,
340849,
201588,
430965,
381813,
324472,
398201,
119674,
324475,
430972,
340861,
324478,
340858,
324481,
373634,
324484,
324487,
381833,
324492,
324495,
324498,
430995,
324501,
324510,
422816,
324513,
201637,
398245,
324524,
340909,
324533,
5046,
324538,
324541,
398279,
340939,
340941,
340957,
431072,
398306,
340963,
209895,
201711,
349172,
381946,
349180,
439294,
431106,
209943,
250914,
185380,
357418,
209965,
209968,
209971,
209975,
209979,
209987,
209990,
341071,
349267,
250967,
210010,
341091,
210025,
210027,
210030,
210039,
341113,
210044,
349308,
152703,
160895,
349311,
210052,
349319,
210055,
210067,
210071,
210077,
210080,
210084,
251044,
185511,
210088,
210095,
210098,
210107,
210115,
332997,
333009,
210131,
333014,
210138,
218354,
251128,
218360,
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,
112020,
349590,
357792,
415166,
415185,
366034,
366038,
333284,
366056,
366061,
210420,
423423,
366117,
144939,
210487,
349761,
415300,
333386,
333399,
366172,
333413,
423528,
423532,
210544,
415353,
333439,
415361,
267909,
333498,
333511,
358099,
153302,
333534,
366307,
366311,
431851,
366318,
210672,
366321,
366325,
210695,
210698,
366348,
210706,
399128,
333594,
358191,
366387,
399159,
358200,
325440,
366401,
341829,
325446,
46920,
341834,
341838,
341843,
415573,
358234,
341851,
350045,
399199,
259938,
399206,
399215,
268143,
358255,
358259,
341876,
333689,
243579,
325504,
333698,
333708,
333724,
382890,
350146,
358339,
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,
350410,
260298,
350416,
350422,
211160,
350425,
268507,
334045,
350445,
375026,
358644,
350458,
350461,
350464,
325891,
350467,
350475,
350480,
432405,
350486,
350490,
325914,
325917,
350493,
350498,
350504,
358700,
350509,
391468,
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,
334304,
334311,
375277,
334321,
350723,
186897,
342545,
334358,
342550,
342554,
334363,
350761,
252461,
334384,
358961,
383536,
334394,
252482,
219718,
334407,
334420,
350822,
375400,
334465,
334468,
162445,
326290,
342679,
342683,
260766,
342710,
244409,
260797,
334528,
260801,
350917,
154317,
391894,
154328,
416473,
64230,
113388,
342766,
375535,
203506,
342776,
391937,
391948,
326416,
375568,
326441,
326451,
326454,
244540,
326460,
260924,
375612,
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,
359382,
383967,
343015,
359407,
261108,
244726,
261111,
383997,
261129,
261147,
359451,
211998,
261153,
261159,
359470,
343131,
384098,
384101,
367723,
384107,
187502,
343154,
384114,
212094,
351364,
384135,
384139,
351381,
384151,
384160,
367794,
244916,
384188,
351423,
326855,
244937,
384201,
343244,
384208,
146642,
384224,
359649,
343270,
351466,
384246,
351479,
343306,
261389,
359694,
261393,
384275,
384283,
245020,
384288,
245029,
171302,
351534,
376110,
245040,
425276,
212291,
343365,
212303,
367965,
343393,
343398,
367980,
343409,
154999,
253303,
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,
327275,
245357,
138864,
155254,
155273,
245409,
425638,
425649,
155322,
425662,
155327,
245460,
155351,
155354,
212699,
245475,
155363,
245483,
409335,
155393,
155403,
245525,
155422,
360223,
155438,
155442,
155447,
155461,
360261,
376663,
155482,
261981,
425822,
155487,
155490,
155491,
327531,
261996,
376685,
261999,
262002,
327539,
147317,
425845,
262008,
262011,
155516,
155521,
155525,
360326,
376714,
155531,
262027,
262030,
262033,
262036,
262039,
262042,
262045,
155549,
262048,
262051,
327589,
155559,
155562,
155565,
393150,
384977,
393169,
155611,
155619,
253923,
155621,
327654,
253926,
393203,
360438,
253943,
393206,
393212,
155646
] |
7aebb2053a035a9d312197ea569a7ebbb37119f8 | 6b2376dc86c438e6f5c9d5ea965c5a0ec7e0c748 | /PhoneNumberKit/Formatter.swift | 3febd47cc91ea7ce531c2b30de3a1b3e51829b4f | [
"MIT"
] | permissive | danielrhodes/PhoneNumberKit | fb0afd0c08a3092c484540bea9c4af9c2e1fdb78 | 50a4e627007871e7b4235c036fb51b8e7835214b | refs/heads/master | 2021-01-15T09:09:31.179628 | 2016-03-12T21:58:46 | 2016-03-12T22:08:25 | 53,754,219 | 0 | 0 | null | 2016-03-12T21:30:12 | 2016-03-12T21:30:11 | null | UTF-8 | Swift | false | false | 6,251 | swift | //
// Formatter.swift
// PhoneNumberKit
//
// Created by Roy Marmelstein on 03/11/2015.
// Copyright © 2015 Roy Marmelstein. All rights reserved.
//
import Foundation
class Formatter {
// MARK: Formatting functions
let regex = RegularExpressions.sharedInstance
/**
Formats phone numbers for display
- Parameter phoneNumber: Phone number object.
- Returns: Modified national number ready for display.
*/
func formatPhoneNumber(phoneNumber: PhoneNumber, formatType: PhoneNumberFormat) -> String {
let metadata = Metadata.sharedInstance
var formattedNationalNumber = phoneNumber.adjustedNationalNumber()
if let regionMetadata = metadata.metadataPerCode[phoneNumber.countryCode] {
formattedNationalNumber = formatNationalNumber(formattedNationalNumber, regionMetadata: regionMetadata, formatType: formatType)
if let formattedExtension = formatExtension(phoneNumber.numberExtension, regionMetadata: regionMetadata) {
formattedNationalNumber = formattedNationalNumber + formattedExtension
}
}
return formattedNationalNumber
}
/**
Formats extension for display
- Parameter numberExtension: Number extension string.
- Returns: Modified number extension with either a preferred extension prefix or the default one.
*/
func formatExtension(numberExtension: String?, regionMetadata: MetadataTerritory) -> String? {
if let extns = numberExtension {
if let preferredExtnPrefix = regionMetadata.preferredExtnPrefix {
return "\(preferredExtnPrefix)\(extns)"
}
else {
return "\(PhoneNumberConstants.defaultExtnPrefix)\(extns)"
}
}
return nil
}
/**
Formats national number for display
- Parameter nationalNumber: National number string.
- Returns: Modified nationalNumber for display.
*/
func formatNationalNumber(nationalNumber: String, regionMetadata: MetadataTerritory, formatType: PhoneNumberFormat) -> String {
let formats = regionMetadata.numberFormats
var selectedFormat: MetadataPhoneNumberFormat?
for format in formats {
if let leadingDigitPattern = format.leadingDigitsPatterns?.last {
if (regex.stringPositionByRegex(leadingDigitPattern, string: String(nationalNumber)) == 0) {
if (regex.matchesEntirely(format.pattern, string: String(nationalNumber))) {
selectedFormat = format
break;
}
}
}
else {
if (regex.matchesEntirely(format.pattern, string: String(nationalNumber))) {
selectedFormat = format
break;
}
}
}
if let formatPattern = selectedFormat {
guard let numberFormatRule = (formatType == PhoneNumberFormat.International && formatPattern.intlFormat != nil) ? formatPattern.intlFormat : formatPattern.format, let pattern = formatPattern.pattern else {
return nationalNumber
}
var formattedNationalNumber = String()
var prefixFormattingRule = String()
if let nationalPrefixFormattingRule = formatPattern.nationalPrefixFormattingRule, let nationalPrefix = regionMetadata.nationalPrefix {
prefixFormattingRule = regex.replaceStringByRegex(PhoneNumberPatterns.npPattern, string: nationalPrefixFormattingRule, template: nationalPrefix)
prefixFormattingRule = regex.replaceStringByRegex(PhoneNumberPatterns.fgPattern, string: prefixFormattingRule, template:"\\$1")
}
if formatType == PhoneNumberFormat.National && regex.hasValue(prefixFormattingRule){
let replacePattern = regex.replaceFirstStringByRegex(PhoneNumberPatterns.firstGroupPattern, string: numberFormatRule, templateString: prefixFormattingRule)
formattedNationalNumber = self.regex.replaceStringByRegex(pattern, string: nationalNumber, template: replacePattern)
}
else {
formattedNationalNumber = self.regex.replaceStringByRegex(pattern, string: nationalNumber, template: numberFormatRule)
}
return formattedNationalNumber
}
else {
return nationalNumber
}
}
}
public extension PhoneNumber {
// MARK: Formatting extenstions to PhoneNumber
/**
Formats a phone number to E164 format (e.g. +33689123456)
- Returns: A string representing the phone number in E164 format.
*/
public func toE164() -> String {
let formattedNumber = "+" + String(countryCode) + adjustedNationalNumber()
return formattedNumber
}
/**
Formats a phone number to International format (e.g. +33 6 89 12 34 56)
- Returns: A string representing the phone number in International format.
*/
public func toInternational() -> String {
let formatter = Formatter()
let formattedNationalNumber = formatter.formatPhoneNumber(self, formatType: .International)
let formattedNumber = "+" + String(countryCode) + " " + formattedNationalNumber
return formattedNumber
}
/**
Formats a phone number to local national format (e.g. 06 89 12 34 56)
- Returns: A string representing the phone number in the local national format.
*/
public func toNational() -> String {
let formatter = Formatter()
let formattedNationalNumber = formatter.formatPhoneNumber(self, formatType: .National)
let formattedNumber = formattedNationalNumber
return formattedNumber
}
/**
Adjust national number for display by adding leading zero if needed. Used for basic formatting functions.
- Returns: A string representing the adjusted national number.
*/
private func adjustedNationalNumber() -> String {
if self.leadingZero == true {
return "0" + String(nationalNumber)
}
else {
return String(nationalNumber)
}
}
}
| [
-1
] |
24a5a2adb38319dc7492539dacbcf3823c5216d0 | 5bc14ebd1fe634688bb974cf2de73616b2a0092d | /EngineShed/Model/Purchase+Suggestions.swift | b071a8453c2fc6ae352925211b692b69a2c41b1b | [] | no_license | keybuk/EngineShed | 891c0d8e18b7aae99a4a4f15c6e054a49c78bb73 | f1d7b2b332c6dd21b86251ed775d1dc3d3ea35ba | refs/heads/main | 2021-11-23T12:04:02.484088 | 2021-06-12T06:56:09 | 2021-06-12T06:56:09 | 137,531,967 | 5 | 1 | null | null | null | null | UTF-8 | Swift | false | false | 2,232 | swift | //
// Purchase+Suggestions.swift
// EngineShed
//
// Created by Scott James Remnant on 3/4/19.
// Copyright © 2019 Scott James Remnant. All rights reserved.
//
import Foundation
import CoreData
import Database
extension Purchase {
func suggestionsForManufacturer(startingWith prefix: String? = nil) -> [String] {
guard let managedObjectContext = managedObjectContext else { return [] }
let fetchRequest: NSFetchRequest<NSFetchRequestResult> = Purchase.fetchRequest()
fetchRequest.resultType = .dictionaryResultType
fetchRequest.propertiesToFetch = [ "manufacturer" ]
fetchRequest.returnsDistinctResults = true
fetchRequest.sortDescriptors = [ NSSortDescriptor(key: "manufacturer", ascending: true) ]
if let prefix = prefix, !prefix.isEmpty {
fetchRequest.predicate = NSPredicate(format: "manufacturer BEGINSWITH %@", prefix)
} else {
fetchRequest.predicate = NSPredicate(format: "manufacturer != NULL AND manufacturer != ''")
}
let results = (try? managedObjectContext.performAndWait {
return try fetchRequest.execute() as! [[String: String]]
}) ?? []
return results.compactMap { $0["manufacturer"] }
}
func suggestionsForStore(startingWith prefix: String? = nil) -> [String] {
guard let managedObjectContext = managedObjectContext else { return [] }
let fetchRequest: NSFetchRequest<NSFetchRequestResult> = Purchase.fetchRequest()
fetchRequest.resultType = .dictionaryResultType
fetchRequest.propertiesToFetch = [ "store" ]
fetchRequest.returnsDistinctResults = true
fetchRequest.sortDescriptors = [ NSSortDescriptor(key: "store", ascending: true) ]
if let prefix = prefix, !prefix.isEmpty {
fetchRequest.predicate = NSPredicate(format: "store BEGINSWITH %@", prefix)
} else {
fetchRequest.predicate = NSPredicate(format: "store != NULL AND storestore != ''")
}
let results = (try? managedObjectContext.performAndWait {
return try fetchRequest.execute() as! [[String: String]]
}) ?? []
return results.compactMap { $0["store"] }
}
}
| [
-1
] |
f2165ba9712fa24a9b028638633aa48ad2e943de | 62e5dd75fe5835b37cf9e56a02eac91a7123883b | /PoetryClub.swift | ede75856c08efedb61f4b5b1ed4d99acd5d1d281 | [] | no_license | SeongMin-K/Exercism_Swift | f96c4007c50052c5cdbe946bd32c9cf39c02bd26 | 033325d1fcc99b49de22863099a4c8aca08d40c1 | refs/heads/main | 2023-09-03T09:55:26.796200 | 2021-11-16T00:49:50 | 2021-11-16T00:49:50 | 419,705,399 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,370 | swift | import Foundation
func splitOnNewlines(_ poem: String) -> [String] {
return poem.components(separatedBy: "\n")
}
func firstLetter(_ line: String) -> Character {
return line.first ?? "_"
}
func capitalize(_ phrase: String) -> String {
var result = String()
var check = true
var count = 0
for char in phrase {
if count == 0 {
result += char.uppercased()
check = false
}
else if check {
result += char.uppercased()
check = false
}
else if char == " " {
result += char.lowercased()
check = true
} else {
result += char.lowercased()
check = false
}
count += 1
}
return result
}
func trimFromEnd(_ line: String) -> String {
return line.trimmingCharacters(in: .whitespaces)
}
func lastLetter(_ line: String) -> Character {
return line.last ?? "_"
}
func backDoorPassword(_ phrase: String) -> String {
let result = capitalize(phrase) + ", please"
return result
}
func ithLetter(_ line: String, i: Int) -> Character {
if i < line.count {
let index = line.index(line.startIndex, offsetBy: i)
return line[index]
} else {
return " "
}
}
func secretRoomPassword(_ phrase: String) -> String {
return phrase.uppercased() + "!"
}
| [
-1
] |
9736bc2fb0cd9e57cff48299380fa55cb2c10f57 | 2b78605be0420fa95cbc074cb99096a87ce76195 | /MusicAPI/MusicAPI/AppDelegate.swift | 0d8e82ae466ecc925a8fcc4d3af07d90f73407ef | [
"MIT"
] | permissive | sweetmans/Apple-Music-API-Document | dabffc310044e5010a4de78fae01ddbf6feb8bc2 | 061af364894ce7e6e2c6bb2f654d4add07734916 | refs/heads/develop | 2021-07-15T10:40:15.536112 | 2021-07-02T03:24:07 | 2021-07-02T03:24:07 | 144,111,383 | 81 | 2 | MIT | 2021-07-04T13:04:45 | 2018-08-09T06:42:09 | Swift | UTF-8 | Swift | false | false | 1,347 | swift | //
// AppDelegate.swift
// MusicAPI
//
// Created by ANDY HUANG on 2021/6/28.
//
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,
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,
164106,
180490,
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,
385713,
434867,
164534,
336567,
328378,
164538,
328386,
344776,
352968,
352971,
418507,
352973,
385742,
385748,
361179,
189153,
369381,
361195,
418553,
344831,
344835,
336643,
344841,
361230,
336659,
418580,
418585,
434970,
369435,
418589,
262942,
418593,
336675,
328484,
418598,
418605,
336696,
361273,
328515,
336708,
328519,
361288,
336711,
328522,
336714,
426841,
197468,
254812,
361309,
361315,
361322,
328573,
377729,
369542,
361360,
222128,
345035,
386003,
345043,
386011,
386018,
386022,
435187,
328714,
361489,
386069,
386073,
336921,
336925,
345118,
377887,
345133,
345138,
386101,
361536,
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,
181654,
230809,
181670,
181673,
181678,
181681,
181684,
181690,
361917,
181696,
337349,
181703,
271839,
329191,
361960,
116210,
337398,
337415,
329226,
419339,
419343,
419349,
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,
394966,
419542,
419544,
181977,
345818,
419547,
419550,
419559,
337642,
419563,
337645,
370415,
337659,
337668,
362247,
395021,
362255,
395029,
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,
362413,
337844,
346057,
346063,
247759,
329697,
354277,
190439,
247789,
354313,
346139,
436289,
378954,
395339,
338004,
100453,
329832,
329855,
329885,
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,
248111,
362822,
436555,
190796,
379233,
354673,
248186,
420236,
379278,
272786,
354727,
338352,
338381,
330189,
338386,
256472,
338403,
338409,
248308,
199164,
330252,
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,
355218,
330642,
412599,
207808,
379848,
396245,
330710,
248792,
248798,
347105,
257008,
183282,
265207,
330748,
265214,
330760,
330768,
248862,
347176,
396328,
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,
249214,
175486,
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,
339503,
265778,
265795,
396872,
265805,
224853,
224857,
257633,
224870,
372327,
257646,
372337,
224884,
224887,
224890,
224894,
372353,
224897,
216707,
421508,
126596,
224904,
11918,
159374,
224913,
126610,
224916,
224919,
126616,
208538,
224922,
224926,
224929,
224932,
257704,
224936,
224942,
257712,
224947,
257716,
257720,
257724,
224959,
257732,
224965,
224969,
339662,
224975,
257747,
224981,
224986,
257761,
224993,
257764,
224999,
339695,
225012,
257787,
225020,
257790,
339710,
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,
225127,
274280,
257896,
257901,
225137,
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,
421990,
266350,
356466,
266362,
381068,
225423,
250002,
250004,
225429,
356506,
225437,
135327,
225441,
438433,
192673,
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,
324111,
340500,
381481,
356907,
324142,
356916,
324149,
324155,
348733,
324164,
356934,
348743,
381512,
324173,
324176,
389723,
332380,
373343,
381545,
340627,
373398,
184982,
258721,
332453,
332459,
389805,
332463,
381617,
332471,
332483,
332486,
373449,
357069,
332493,
357073,
332511,
332520,
340718,
332533,
348924,
373510,
389926,
348978,
152370,
340789,
348982,
398139,
127814,
357201,
357206,
389978,
430939,
357211,
357214,
201579,
201582,
349040,
340849,
430965,
381813,
324472,
398201,
119674,
324475,
430972,
340858,
340861,
324478,
324481,
373634,
398211,
324484,
324487,
381833,
324492,
324495,
324498,
430995,
324501,
324510,
422816,
324513,
398245,
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,
209971,
209975,
209979,
209987,
209990,
209995,
341071,
349267,
250967,
210010,
341091,
210025,
210030,
210036,
210039,
349308,
210044,
349311,
160895,
152703,
210052,
210055,
349319,
218247,
210067,
210077,
210080,
251044,
210084,
185511,
210095,
210098,
210107,
210115,
332997,
210127,
333009,
210131,
333014,
210138,
210143,
218354,
218360,
251128,
275706,
275712,
275715,
275721,
349459,
333078,
251160,
349484,
349491,
415033,
251210,
357708,
210260,
365911,
259421,
365921,
333154,
251235,
374117,
333162,
234866,
390516,
333175,
357755,
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,
210719,
358191,
366387,
210739,
399159,
358200,
325440,
366401,
341829,
325446,
46920,
341834,
341838,
341843,
415573,
358234,
341851,
350045,
399199,
259938,
399206,
358255,
268143,
399215,
358259,
341876,
333689,
243579,
325504,
333698,
333708,
333724,
382890,
350146,
358339,
333774,
358371,
350189,
350193,
350202,
350206,
350213,
268298,
350224,
350231,
333850,
350237,
350240,
350244,
350248,
178218,
350251,
350256,
350259,
350271,
243781,
350285,
374864,
342111,
374902,
432271,
334011,
260289,
260298,
350410,
350416,
350422,
211160,
350425,
268507,
334045,
350445,
375026,
358644,
350458,
350461,
350464,
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,
268701,
342430,
375208,
375216,
334262,
334275,
326084,
358856,
195039,
334304,
334311,
375277,
334321,
350723,
391690,
186897,
334358,
342550,
342554,
334363,
358941,
350761,
252461,
334384,
358961,
383536,
334394,
252482,
219718,
334407,
350822,
375400,
334465,
334468,
162445,
326290,
342679,
342683,
260766,
342710,
244409,
260797,
260801,
350917,
391894,
154328,
416473,
64230,
342766,
375535,
203506,
342776,
391937,
391948,
375568,
326416,
375571,
375574,
162591,
326441,
383793,
326451,
326454,
260924,
375612,
244540,
326460,
326467,
244551,
326473,
326477,
416597,
326485,
326490,
326502,
375656,
433000,
326507,
326510,
211825,
211831,
351097,
392060,
359295,
351104,
342915,
400259,
236430,
342930,
252822,
392091,
400285,
252836,
359334,
211884,
400306,
351168,
359361,
359366,
326598,
359382,
359388,
383967,
343015,
359407,
261108,
244726,
261111,
383997,
261129,
261147,
359451,
211998,
261153,
261159,
359470,
359476,
343131,
384098,
384101,
367723,
384107,
187502,
343154,
384114,
212094,
351364,
384135,
384139,
384143,
351381,
384160,
384168,
367794,
384181,
367800,
351423,
384191,
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,
212291,
384323,
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,
425638,
425649,
155322,
425662,
155327,
155351,
155354,
212699,
155363,
245475,
155371,
245483,
409335,
155393,
155403,
155422,
360223,
155438,
155442,
155447,
417595,
360261,
155461,
376663,
155482,
261981,
425822,
376671,
155487,
155490,
155491,
327531,
261996,
376685,
261999,
262002,
327539,
147317,
262005,
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,
204784,
393203,
360438,
253943,
393206,
393212,
155646
] |
75d1b2dac1a9630c7ac1b640b646c8544235bcc5 | 85020c620c34cad3cdc948b55c9cb49fbadb4bb8 | /SpeechRecognitionDemo/PulseAnimation.swift | 5d702845734112c9f0742ff5697ce06d5bf46dd3 | [] | no_license | praveenReddy7/SpeechRecognitionDemo | 6e162d520c614285c0ce299af8687fbf30096c80 | 1b2d85f198b2825bb4755a230027c163b2603cb4 | refs/heads/master | 2020-05-23T15:12:35.372604 | 2019-05-17T13:27:25 | 2019-05-17T13:27:25 | 186,821,768 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,351 | swift | //
// PulseAnimation.swift
// SearchSpeechToText
//
// Created by Ranosys_ShubhamAgarwal on 23/01/19.
// Copyright © 2019 Ranosys_ShubhamAgarwal. All rights reserved.
//
import UIKit
class PulseAnimation: CALayer {
var animationGroup = CAAnimationGroup()
var animationDuration: TimeInterval = 1.5
var radius: CGFloat = 200
var numebrOfPulse: Float = Float.infinity
override init(layer: Any) {
super.init(layer: layer)
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
init(numberOfPulse: Float = Float.infinity, radius: CGFloat, postion: CGPoint){
super.init()
self.backgroundColor = UIColor.black.cgColor
self.contentsScale = UIScreen.main.scale
self.opacity = 0
self.radius = radius
self.numebrOfPulse = numberOfPulse
self.position = postion
self.bounds = CGRect(x: 0, y: 0, width: radius*2, height: radius*2)
self.cornerRadius = radius
DispatchQueue.global(qos: .utility).async {
self.setupAnimationGroup()
DispatchQueue.main.async {
self.add(self.animationGroup, forKey: "pulse")
}
}
}
func scaleAnimation() -> CABasicAnimation {
let scaleAnimaton = CABasicAnimation(keyPath: "transform.scale.xy")
scaleAnimaton.fromValue = NSNumber(value: 0)
scaleAnimaton.toValue = NSNumber(value: 1)
scaleAnimaton.duration = animationDuration
return scaleAnimaton
}
func createOpacityAnimation() -> CAKeyframeAnimation {
let opacityAnimiation = CAKeyframeAnimation(keyPath: "opacity")
opacityAnimiation.duration = animationDuration
opacityAnimiation.values = [0.4,0.8,0]
opacityAnimiation.keyTimes = [0,0.3,1]
return opacityAnimiation
}
func setupAnimationGroup() {
self.animationGroup.duration = animationDuration
self.animationGroup.repeatCount = numebrOfPulse
let defaultCurve = CAMediaTimingFunction(name: kCAMediaTimingFunctionDefault) //CAMediaTimingFunctionName.default
self.animationGroup.timingFunction = defaultCurve
self.animationGroup.animations = [scaleAnimation(),createOpacityAnimation()]
}
}
| [
395762,
174181
] |
b3fc035d406c8c5a429425a4c53ad5702321cf90 | 945ee992b5b55ea87b960ef0afb910d3f2e8b594 | /Profile/ViewControllers/ResumeViewController.swift | 75ff9f4ebee51114ee9624a5dbbe7bb5ffe13320 | [] | no_license | Hazlenut/IOSProfile | dd2d83270f46fda20357ff8c20b9dfe50e95d85e | e35f5ce9aff8c44f7923c229945faa8d232dccbb | refs/heads/main | 2023-08-24T13:05:24.476561 | 2021-09-30T21:52:51 | 2021-09-30T21:52:51 | 408,622,487 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 319 | swift | //
// ResumeViewController.swift
// Profile
//
// Created by William Wung on 9/20/21.
//
import UIKit
class ResumeViewController: UIViewController {
override func viewDidLoad() {
super.viewDidLoad()
view.backgroundColor = .red
// Do any additional setup after loading the view.
}
}
| [
-1
] |
82b380384364f83fad51ffa249fa1b9823b08617 | 89879d2e520e4daea9052a93c31332af33da9db2 | /SwiftLearning/core/data/cloud/network/api/Networking.swift | eae1dd670a72407d3d10c98a5ac0cea44da603c7 | [] | no_license | tusharpandey/ios_swiftlearning | c4018059754fd54538c092f229f2594d56b36093 | 033181d6aa56e7875026c5e5fed7d36316eb3574 | refs/heads/master | 2023-06-16T11:19:57.463432 | 2021-07-10T01:03:27 | 2021-07-10T01:03:27 | 384,582,611 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 535 | swift | //
// Networking.swift
// SwiftLearning
//
// Created by itsupport on 12/06/21.
// Copyright © 2021 itsupport. All rights reserved.
//
import Foundation
import Alamofire
import SwiftyJSON
func getRequest(requestData:RequestData,completion: @escaping (String)->()){
let request = AF.request(requestData.url)
request.responseJSON { (response) in
if response.data != nil {
let data = response.data!
let json = try! JSON(data: data)
completion(json.description)
}
}
}
| [
-1
] |
e786c9f3038317f3c901bcde272d0aa4e56a3d30 | 9120c205a21ed3ffb482aa839f31998b30b5c4f2 | /xiaoji/Classes/MorningNote/Controller/TopInfoBarViewController.swift | ba464057a058a5dc42ca0d3ed316ebc55fb953a5 | [] | no_license | sugar1995/xiaoji | 7c0bc217e54df33574d75e107212a25a78203605 | 96dfb493d0f28fd5eb6c1e7562d837ddffdb64e7 | refs/heads/master | 2020-03-24T10:28:32.154985 | 2017-05-22T03:19:16 | 2017-05-22T03:19:16 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,870 | swift | //
// TopInfoBarViewController.swift
// xiaoji
//
// Created by xiaotei's on 16/4/6.
// Copyright © 2016年 xiaotei's MacBookPro. All rights reserved.
//
import UIKit
import PKHUD
class TopInfoBarViewController: UIViewController {
var dateString:String?
override func viewDidLoad() {
super.viewDidLoad()
}
@IBAction func weatherButtonClick(sender: UIButton) {
//冰雹(2001),雾霾(2002),多云(2003),雨(2004),雪(2005),雷(2006),晴天(2007),大风(2008)
var showStr:String = "冰雹"
switch sender.tag{
case 2001:
showStr = "冰雹"
XTDB.updateWeatherTypeWithDateString(dateString!, type: 1)
break
case 2002:
showStr = "雾霾"
XTDB.updateWeatherTypeWithDateString(dateString!, type: 2)
break
case 2003:
showStr = "多云"
XTDB.updateWeatherTypeWithDateString(dateString!, type: 3)
break
case 2004:
showStr = "雨"
XTDB.updateWeatherTypeWithDateString(dateString!, type: 4)
break
case 2005:
showStr = "雪"
XTDB.updateWeatherTypeWithDateString(dateString!, type: 5)
break
case 2006:
showStr = "雷"
XTDB.updateWeatherTypeWithDateString(dateString!, type: 6)
break
case 2007:
showStr = "晴天"
XTDB.updateWeatherTypeWithDateString(dateString!, type: 7)
break
case 2008:
showStr = "大风"
XTDB.updateWeatherTypeWithDateString(dateString!, type: 8)
break
default:
showStr = ""
break
}
HUD.flash(.Label(showStr), delay: 1.5)
NSNotificationCenter.defaultCenter().postNotificationName("ReloadHeaderWeatherView", object: self)
// self.navigationController?.popViewControllerAnimated(true)
}
@IBAction func moodButtonClick(sender: UIButton) {
var showStr:String = "惊喜"
switch sender.tag{
case 3001:
showStr = "惊喜"
XTDB.updateMoodTypeWithDateString(dateString!, type: 1)
break
case 3002:
showStr = "困惑"
XTDB.updateMoodTypeWithDateString(dateString!, type: 2)
break
case 3003:
showStr = "非常开心"
XTDB.updateMoodTypeWithDateString(dateString!, type: 3)
break
case 3004:
showStr = "哈哈"
XTDB.updateMoodTypeWithDateString(dateString!, type: 4)
break
case 3005:
showStr = "饥饿难耐撒"
XTDB.updateMoodTypeWithDateString(dateString!, type: 5)
break
case 3006:
showStr = "生病了..."
XTDB.updateMoodTypeWithDateString(dateString!, type: 6)
break
default:
break
}
HUD.flash(.Label(showStr), delay: 1.5)
NSNotificationCenter.defaultCenter().postNotificationName("ReloadHeaderWeatherView", object: self)
// self.navigationController?.popViewControllerAnimated(true)
}
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 prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
}
| [
-1
] |
e2c3fd42c585452ae6db40eb62befd6d47481ca6 | 86ced23c02b7a8a42fdd8b1f36c7c96fc161c7ee | /breatheAir/Application/HomePage/HomeService.swift | dfa26b4a446be5f88fd1c9532f419c664e68f55a | [
"Apache-2.0"
] | permissive | hrayatnia/breathe-air-iOS | ee493e6071a3149b6ac03a4cfdc73ff2532cb7bd | 23729494bb544a9acf39efda9eb0ce8ec5c08e92 | refs/heads/master | 2020-12-01T02:27:28.177551 | 2019-12-28T16:32:38 | 2019-12-28T16:32:38 | 230,541,789 | 1 | 0 | null | 2019-12-28T16:32:40 | 2019-12-28T01:25:17 | Swift | UTF-8 | Swift | false | false | 752 | swift | //
// HomeService.swift
// breatheAir
//
// Created by Amir Hesam Rayatnia on 2019-12-24.
// Copyright © 2019 Amir Hesam Rayatnia. All rights reserved.
//
import Foundation
import RxSwift
struct HomeService: Service {
var result: Variable<HomeService.ResultType>
var err: Variable<Error>
var request: RequestBuilder {
self.buildRequest(path: "location")
.set(method: .post)
.set(body: data.toJSONData()!)
}
var data: Location
typealias ResultType = LocationBasedResponse
init(data: Location,
result:Variable<HomeService.ResultType>,
err: Variable<Error>) {
self.data = data
self.result = result
self.err = err
}
}
| [
-1
] |
ea5817bca1e8485c534e965e5a3599d626f15c2c | b7459d9a45eebec48a28f480dfec5a771f99729a | /testAccel/ViewController.swift | ed307e3b8490a8c3a5bad778c2e4a826571ceb42 | [] | no_license | nwams/test-acceleration | 623ebd256d8f5318efbf58a8b41ab8dfd3e8b16e | 16618f97a4e266ceecdeadad1799994b25fc94af | refs/heads/master | 2021-01-10T05:48:07.842947 | 2015-11-11T15:42:52 | 2015-11-11T15:42:52 | 45,404,035 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,179 | swift | //
// ViewController.swift
// testAccel
//
// Created by Nwamaka Nzeocha on 10/25/15.
// Copyright © 2015 Nwamaka Nzeocha. All rights reserved.
//
import UIKit
import Foundation
import CoreMotion
class ViewController: UIViewController {
@IBOutlet weak var xAccel: UILabel!
@IBOutlet weak var yAccel: UILabel!
@IBOutlet weak var zAccel: UILabel!
@IBOutlet weak var timerLabel: UILabel!
var motionManager : CMMotionManager!
var queue : NSOperationQueue!
// timer stuff
var masterTimer: NSTimer? = nil
var timeLeft = 1 //default number of seconds left
override func viewDidLoad() {
super.viewDidLoad()
// Instantiate these objects to get them ready to use
motionManager = CMMotionManager()
queue = NSOperationQueue()
}
@IBAction func startButtonPressed(sender: AnyObject) {
// set the number of times the device should update motion data (in seconds)
// since 1 / 0.01 will give 100 data points per second
motionManager.deviceMotionUpdateInterval = 0.01
//start timer that calls countDown every second
self.masterTimer = NSTimer.scheduledTimerWithTimeInterval(1.0, target: self, selector: "countDown", userInfo: nil, repeats: true)
}
func countDown(){
var valX: Double!
var valY: Double!
var valZ: Double!
var outputRow: String!
var myArray = [String]()
--timeLeft //take a second away
if (timeLeft >= 0)
{
//update the label if the timeleft is greater than 0
self.timerLabel.text = String(timeLeft)
// start receiving data by instructing the CMMotionManager object, motionManager, to send us the data
// give it the handler, "data", to trigger when data is available
motionManager.startAccelerometerUpdatesToQueue(queue, withHandler: { data, error in
guard let data = data else{
return
}
valX = data.acceleration.x
valY = data.acceleration.y
valZ = data.acceleration.z
outputRow = "\(valX)" + ",\(valY)" + ",\(valZ)"
print (outputRow)
myArray.append(outputRow)
})
} else {
self.timerLabel.text = "Done!" //otherwise let the user know and update the label
self.masterTimer!.invalidate() //get rid of timer - game over no longer needed to fire
self.masterTimer = nil
self.motionManager.stopAccelerometerUpdates()
print ("myArray = \(myArray)")
}
}
override func viewDidDisappear(animated: Bool) {
// Important. Stop data collection if the view becomes inactive
// if not, it can sit here, chewing up resources on the phone
self.motionManager.stopAccelerometerUpdates()
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
} | [
-1
] |
33df40d09b69b21634c4d1f2bef28077c53b81a5 | 1370e98a0f95d49d8e109232d040e3bc3690cb6e | /Sources/SuggestionTableViewCell.swift | 1614b382b09bc2f93649292a9ed5944d29c083e2 | [
"MIT"
] | permissive | EurekaCommunity/SuggestionRow | 24a35e54e2c9390f0a80897eea03ec5372e122f9 | 546b43d8b57c3f4765e7e0974e75db350c34c0da | refs/heads/master | 2022-08-12T02:59:42.927763 | 2022-07-27T12:42:40 | 2022-07-27T12:42:40 | 65,939,158 | 55 | 38 | MIT | 2022-07-27T12:42:41 | 2016-08-17T20:20:54 | Swift | UTF-8 | Swift | false | false | 1,296 | swift | //
// SuggestionTableViewCell.swift
//
// Adapted from Mathias Claassen 4/14/16 by Hélène Martin 8/11/16
//
//
import UIKit
import Eureka
public protocol EurekaSuggestionTableViewCell {
associatedtype S: SuggestionValue
func setupForValue(_ value: S)
}
/// Default cell for the table of the SuggestionTableCell
open class SuggestionTableViewCell<T: SuggestionValue>: UITableViewCell, EurekaSuggestionTableViewCell {
public typealias S = T
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
initialize()
}
required public init?(coder aDecoder: NSCoder) {
super.init(coder: aDecoder)
initialize()
}
func initialize() {
textLabel?.font = .systemFont(ofSize: 16)
textLabel?.minimumScaleFactor = 0.8
textLabel?.adjustsFontSizeToFitWidth = true
if #available(iOS 13.0, *) {
textLabel?.textColor = .label
contentView.backgroundColor = .systemBackground
} else {
textLabel?.textColor = .black
contentView.backgroundColor = .white
}
}
open func setupForValue(_ value: T) {
textLabel?.text = value.suggestionString
}
}
| [
-1
] |
4be802d29dcaf492a000acca9a793e419a67c7bf | ad85b652d4a3bd05a878d22344759a26dd181f43 | /SwiftLearning/SwiftLearning/AppDelegate.swift | baafd2955be0a88c9adb37f2e010a6ed332d1a81 | [] | no_license | xieming1601/SwiftLearnDemo | d1aff4e9656507eda0425ea9176c9a2dfa237dd5 | 43e1e8c935eada2853bfd2284a68c0298bfb2b19 | refs/heads/master | 2020-06-12T05:22:46.703671 | 2016-12-05T08:10:58 | 2016-12-05T08:10:58 | 75,601,790 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,176 | swift | //
// AppDelegate.swift
// SwiftLearning
//
// Created by xiesiming on 16/12/5.
// Copyright © 2016年 xiesiming. 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,
278556,
229405,
278559,
229408,
294950,
229415,
229417,
327722,
237613,
229422,
360496,
237618,
229426,
229428,
311349,
286774,
286776,
319544,
286778,
204856,
229432,
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,
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,
287309,
303696,
279124,
172634,
262752,
172644,
311911,
189034,
295533,
189039,
172656,
352880,
295538,
189040,
172660,
287349,
189044,
172655,
287355,
287360,
295553,
172675,
295557,
311942,
287365,
303751,
352905,
311946,
287371,
279178,
311951,
287377,
172691,
287381,
311957,
221850,
287386,
230045,
172702,
164509,
287390,
172705,
287394,
172707,
303780,
303773,
287398,
205479,
287400,
279208,
172714,
295595,
279212,
189102,
172721,
287409,
66227,
303797,
189114,
287419,
303804,
328381,
287423,
328384,
172737,
279231,
287427,
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,
303981,
303985,
303987,
328563,
279413,
303991,
303997,
295806,
295808,
295813,
304005,
320391,
213895,
304007,
304009,
304011,
230284,
304013,
295822,
213902,
279438,
189329,
295825,
304019,
189331,
58262,
304023,
304027,
279452,
410526,
279461,
279462,
304042,
213931,
230327,
304055,
287675,
197564,
230334,
304063,
238528,
304065,
189378,
213954,
156612,
295873,
213963,
197580,
312272,
304084,
304090,
320481,
304106,
320490,
312302,
328687,
320496,
304114,
295928,
320505,
312321,
295945,
230413,
197645,
295949,
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,
164973,
205934,
279661,
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,
279929,
181626,
181631,
148865,
312711,
312712,
296331,
288140,
288144,
230800,
304533,
288154,
337306,
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,
288218,
280027,
288220,
329177,
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,
230940,
222752,
108066,
296486,
296488,
157229,
239152,
230961,
157236,
288320,
288325,
124489,
280140,
280145,
288338,
280149,
288344,
280152,
239194,
280158,
403039,
370272,
181854,
239202,
312938,
280183,
280185,
280188,
280191,
116354,
280194,
280208,
280211,
288408,
280218,
280222,
190118,
321195,
296622,
321200,
337585,
296626,
296634,
296637,
313027,
280260,
206536,
280264,
206539,
206541,
206543,
313044,
280276,
321239,
280283,
313052,
288478,
313055,
321252,
313066,
288494,
280302,
280304,
313073,
321266,
419570,
288499,
288502,
280314,
288510,
124671,
67330,
280324,
198405,
280331,
198416,
280337,
296723,
116503,
321304,
329498,
296731,
321311,
313121,
313123,
304932,
321316,
280363,
141101,
165678,
280375,
321336,
296767,
288576,
345921,
337732,
280388,
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,
239586,
313320,
231404,
124913,
165876,
321528,
239612,
313340,
288764,
239617,
313347,
288773,
313358,
305176,
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,
275606,
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,
280819,
157940,
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,
354653,
313700,
313705,
280937,
190832,
280946,
223606,
313720,
280956,
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,
281045,
281047,
166378,
305647,
281075,
174580,
240124,
281084,
305662,
305664,
240129,
305666,
305668,
223749,
240132,
330244,
223752,
150025,
338440,
281095,
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,
182926,
133776,
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,
281401,
289593,
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,
297883,
289694,
289696,
289700,
289712,
281529,
289724,
52163,
183260,
281567,
289762,
322534,
297961,
183277,
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,
290174,
298365,
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,
282261,
175770,
298651,
282269,
323229,
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,
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,
282446,
307027,
315221,
323414,
315223,
241496,
241498,
307035,
307040,
110433,
282465,
241509,
110438,
298860,
110445,
282478,
315249,
282481,
110450,
315251,
315253,
315255,
339838,
315267,
282499,
315269,
241544,
282505,
241546,
241548,
298896,
282514,
298898,
241556,
298901,
44948,
241560,
282520,
241563,
241565,
241567,
241569,
282531,
241574,
282537,
298922,
36779,
241581,
282542,
241583,
323504,
241586,
290739,
241588,
282547,
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,
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,
299167,
315552,
184479,
184481,
315557,
184486,
307370,
307372,
184492,
307374,
307376,
299185,
323763,
184503,
176311,
307385,
307386,
258235,
307388,
176316,
307390,
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,
282957,
110926,
233808,
323921,
315733,
323926,
233815,
315739,
323932,
299357,
242018,
242024,
299373,
315757,
250231,
242043,
315771,
299388,
299391,
291202,
299398,
242057,
291212,
299405,
291222,
315801,
283033,
242075,
291226,
61855,
291231,
283042,
291238,
291241,
127403,
127405,
291247,
299440,
127407,
299444,
127413,
291254,
283062,
127417,
291260,
127421,
127424,
299457,
127429,
127431,
127434,
315856,
176592,
315860,
176597,
283095,
127447,
299481,
176605,
242143,
127457,
291299,
340454,
127463,
242152,
291305,
127466,
176620,
127469,
127474,
291314,
291317,
127480,
135672,
291323,
233979,
127485,
291330,
127494,
283142,
127497,
233994,
135689,
127500,
291341,
233998,
127506,
234003,
234006,
127511,
152087,
283161,
234010,
135707,
242202,
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,
226037,
283382,
316151,
234231,
234236,
226045,
242431,
234239,
209665,
299778,
234242,
242436,
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,
234364,
291711,
234368,
291714,
234370,
291716,
234373,
226182,
234375,
201603,
308105,
226185,
234379,
324490,
234384,
234388,
234390,
226200,
234393,
209818,
308123,
324504,
234396,
324508,
234398,
291742,
234401,
291747,
291748,
234405,
291750,
324518,
324520,
234407,
324522,
234410,
291756,
291754,
226220,
324527,
234414,
291760,
234417,
324531,
201650,
234422,
226230,
324536,
275384,
234428,
291773,
242623,
324544,
226239,
234434,
324546,
324548,
234431,
226245,
234437,
234439,
234443,
291788,
234446,
275406,
193486,
193488,
234449,
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,
234543,
234546,
275508,
300085,
234549,
300088,
234553,
234556,
234558,
316479,
234561,
316483,
160835,
234563,
308291,
234568,
234570,
316491,
234572,
300108,
234574,
300115,
234580,
234581,
234585,
275545,
242777,
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,
234634,
234636,
177293,
234640,
275602,
234643,
308373,
226453,
234647,
234648,
275608,
234650,
308379,
324757,
300189,
324766,
119967,
234653,
283805,
234657,
324768,
242852,
300197,
234661,
283813,
234664,
275626,
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,
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,
275725,
283917,
177424,
349464,
283939,
259367,
283951,
292143,
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,
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,
316917,
292343,
308727,
300537,
316933,
316947,
308757,
308762,
284191,
284194,
284196,
235045,
284199,
284204,
284206,
284209,
284211,
194101,
284213,
316983,
194103,
284215,
308790,
284218,
226877,
292414,
284223,
284226,
284228,
243268,
226886,
284231,
128584,
292421,
284234,
276043,
317004,
366155,
284238,
226895,
284241,
194130,
284243,
300628,
284245,
276052,
284247,
276053,
235097,
243290,
284249,
284251,
317015,
284253,
300638,
284255,
243293,
284258,
292452,
292454,
284263,
177766,
284265,
292458,
284267,
292461,
284272,
284274,
284278,
292470,
276086,
292473,
284283,
276093,
284286,
276095,
292479,
284288,
284290,
325250,
284292,
292485,
276098,
292481,
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,
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,
284566,
350106,
284572,
276386,
284579,
276388,
358312,
317353,
284585,
276395,
292776,
292784,
276402,
358326,
161718,
358330,
276411,
276418,
276425,
301009,
301011,
301013,
292823,
358360,
301017,
301015,
292828,
276446,
153568,
276448,
276452,
292839,
276455,
292843,
276460,
292845,
178161,
227314,
276466,
325624,
276472,
317435,
276476,
276479,
276482,
276485,
317446,
276490,
292876,
317456,
276496,
317458,
178195,
243733,
243740,
317468,
317472,
325666,
243751,
292904,
276528,
243762,
309298,
325685,
325689,
235579,
325692,
235581,
178238,
276539,
276544,
284739,
325700,
243779,
292934,
243785,
276553,
350293,
350295,
309337,
227418,
350299,
194649,
194654,
227423,
350304,
178273,
309346,
350302,
194660,
350308,
309350,
309348,
292968,
309352,
227426,
227430,
276583,
350313,
350316,
301167,
276590,
350321,
284786,
276595,
301163,
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,
153765,
284837,
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,
227583,
276735,
227587,
276739,
211204,
276742,
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,
317833,
178572,
285070,
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,
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,
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,
318132,
277173,
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,
285474,
293666,
228135,
318248,
277291,
318253,
293677,
285489,
301876,
293685,
285494,
301880,
285499,
301884,
293696,
310080,
277317,
293706,
277322,
277329,
162643,
310100,
301911,
301913,
277337,
301921,
400236,
236397,
162671,
326514,
310134,
236408,
277368,
15224,
416639,
416640,
113538,
310147,
416648,
277385,
187274,
39817,
301972,
424853,
277405,
277411,
310179,
293798,
293802,
236460,
277426,
293811,
276579,
293817,
293820,
203715,
326603,
276586,
293849,
293861,
228327,
228328,
318442,
228330,
228332,
326638,
277486,
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,
228592,
294132,
138485,
228601,
204026,
228606,
204031,
64768,
310531,
138505,
228617,
318742,
204067,
277798,
130345,
277801,
113964,
285997,
277804,
285999,
277807,
113969,
277811,
318773,
318776,
277816,
286010,
277819,
294204,
417086,
277822,
286016,
302403,
294211,
384328,
277832,
277836,
294221,
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,
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,
310780,
286203,
40448,
228864,
286214,
228871,
302603,
302614,
286233,
302617,
302621,
286240,
146977,
187939,
40484,
294435,
40486,
286246,
294440,
40488,
294439,
294443,
40491,
294445,
196133,
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,
302781,
319171,
302789,
294599,
278216,
294601,
302793,
343757,
212690,
319187,
278227,
286420,
229076,
286425,
319194,
278235,
229086,
278238,
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,
188252,
237409,
229233,
294776,
360317,
294785,
327554,
40840,
40851,
294803,
188312,
294811,
237470,
319390,
40865,
319394,
294817,
294821,
311209,
180142,
343983,
294831,
188340,
40886,
319419,
294844,
294847,
309354,
393177,
294876,
294879,
294883,
294890,
311279,
278513,
237555,
311283,
278516,
278519,
237562
] |
48f316126bc022987b833ada7d254bcfcb5a43dd | 58e8251c2107738281051c575bfb78c4fe3ad5ce | /PersistentSwift/Classes/Service.swift | c3dd94657b87d40521b8842e00b3b2f59336f8d7 | [
"MIT"
] | permissive | ahartwel/PersistentSwift | 879d88333a92cfb5066f3a68b06c5c552aefa86f | e6df05035e7b07c29f28a3463ba6a40b727583ca | refs/heads/master | 2021-01-11T15:10:40.081291 | 2017-02-10T01:45:13 | 2017-02-10T01:45:13 | 80,308,602 | 0 | 1 | null | null | null | null | UTF-8 | Swift | false | false | 5,186 | swift | //
// Service.swift
// Pods
//
// Created by Alex Hartwell on 2/9/17.
//
//
import Foundation
import Moya
import PromiseKit
open class PSServiceManager {
static var constants = ServiceConstants(baseUrl: "");
static var authToken: String?
static var isTesting: Bool = false;
open static func setBaseUrl(_ url: String) {
PSServiceManager.constants.baseUrl = url;
}
open static func setAuthToken(token: String) {
PSServiceManager.authToken = token;
}
open static func setIsTesting(_ bool: Bool) {
self.isTesting = bool;
}
}
//A Generic class for making network requests (to be subclassed for each section of the API eg. AvatarService, EventService, UserService etc
class PSService<T: TargetType, V: PSCachedModel> {
var baseUrl: String = "";
//the actual object used to make the requests
lazy var provider: MoyaProvider<T> = self.getProvider();
var authToken: String?
func getProvider() -> MoyaProvider<T> {
if PSServiceManager.isTesting {
let provider = MoyaProvider<T>(stubClosure: {
_ in
return .immediate;
}, plugins: [
AuthPlugin(tokenClosure: {
return PSServiceManager.authToken
})
]);
return provider;
} else {
let provider = MoyaProvider<T>(
plugins: [
AuthPlugin(tokenClosure: { return PSServiceManager.authToken })
]
)
return provider;
}
}
public init() {
}
//a wrapper for a request which returns a single object, type is the type of request, defined in the API map
public func makeRequest(_ type: T) -> Promise<V> {
let promise = Promise<V>.pending();
Background.runInBackground {
self.provider.request(type, completion: {
result in
switch result {
case let .success(moyaResponse):
do {
let object = try moyaResponse.map(to: V.self);
Background.runInMainThread {
promise.fulfill(object);
}
}catch {
print(error);
print(type);
Background.runInMainThread {
promise.reject(error);
}
}
break;
case let .failure(error):
Background.runInMainThread {
promise.reject(error);
}
break;
}
});
}
return promise.promise;
}
public func makeRequestNoObjectReturn(_ type: T) -> Promise<Void> {
let promise = Promise<Void>.pending();
Background.runInBackground {
self.provider.request(type, completion: {
result in
switch result {
case let .success(moyaResponse):
do {
try moyaResponse.filterSuccessfulStatusAndRedirectCodes();
Background.runInMainThread {
promise.fulfill();
}
}catch {
print(error);
Background.runInMainThread {
promise.reject(error);
}
}
break;
case let .failure(error):
Background.runInMainThread {
promise.reject(error);
}
break;
}
});
}
return promise.promise;
}
//a wrapper for a request which returns an array of objects
public func makeRequestArray(_ type: T) -> Promise<[V]> {
let promise = Promise<[V]>.pending();
Background.runInBackground {
self.provider.request(type, completion: {
result in
switch result {
case let .success(moyaResponse):
do {
let objects = try moyaResponse.map(to: [V.self]) as! [V];
Background.runInMainThread {
promise.fulfill(objects);
}
}catch {
print(error);
Background.runInMainThread {
promise.reject(error);
}
}
break;
case let .failure(error):
Background.runInMainThread {
promise.reject(error);
}
break;
}
});
}
return promise.promise;
}
}
| [
-1
] |
bf7d38ad32484a57f5520a8d634259aefc0d6050 | f2b2c9b07bec8688b79cac69bac459a6099682cc | /mSmallDay/Classes/UI/Explore/Views/EventCellTableViewCell.swift | 6f05200c31884f5251540ecc712379f551331834 | [] | no_license | piglikeYoung/mSmallDay | be966459d5a523871fac2f208502f5f2c315f681 | 3b1e79f2aca468af0257eef540c98a27c1a7372e | refs/heads/master | 2021-01-10T06:18:00.542208 | 2015-10-27T09:59:51 | 2015-10-27T09:59:51 | 44,587,214 | 3 | 2 | null | null | null | null | UTF-8 | Swift | false | false | 1,681 | swift | //
// EventCellTableViewCell.swift
// mSmallDay
//
// Created by piglikeyoung on 15/10/13.
// Copyright © 2015年 pikeYoung. All rights reserved.
// 附近地图展示的cell
// 探店每天的自定义cell
import UIKit
class EventCellTableViewCell: UITableViewCell {
var eventModel: EveryDay? {
didSet {
cellTileLabel.text = eventModel!.events?.last?.feeltitle
titleLabel.text = eventModel!.events?.last?.title
subTltleLabel.text = eventModel!.events?.last?.address
dayLabel.text = eventModel?.day
monthLabel.text = eventModel?.month
if let imageURL = NSURL(string: eventModel!.events!.last!.imgs!.last!) {
imageImageView.kf_setImageWithURL(imageURL, placeholderImage: UIImage(named: "quesheng")!)
}
}
}
@IBOutlet weak var cellTileLabel: UILabel!
@IBOutlet weak var dayLabel: UILabel!
@IBOutlet weak var monthLabel: UILabel!
@IBOutlet weak var titleLabel: UILabel!
@IBOutlet weak var subTltleLabel: UILabel!
@IBOutlet weak var imageImageView: UIImageView!
override func awakeFromNib() {
super.awakeFromNib()
selectionStyle = .None
}
class func eventCell(tableView: UITableView) -> EventCellTableViewCell {
let identifier = "eventCell"
var cell = tableView.dequeueReusableCellWithIdentifier(identifier) as? EventCellTableViewCell
if cell == nil {
cell = NSBundle.mainBundle().loadNibNamed("EventCellTableViewCell", owner: nil, options: nil).last as? EventCellTableViewCell
}
return cell!
}
}
| [
-1
] |
14be2cec1ea3359842c4afdd013f1fbe1abb9bc1 | cf144f3ae99957c54a831ee6e788772092c04134 | /Example/RxDataSourcesExt/TimeCell.swift | 3a7338dcd57bc5a9ad19dfa2fa51c2903b3a1cd0 | [
"MIT"
] | permissive | MasterWatcher/RxDataSourcesExt | e7fc16d9549059166dd6a7a5142010c898910f89 | 934a9872c2c487d01b563cd789b39021e8cfa43d | refs/heads/master | 2020-12-15T13:49:55.546761 | 2020-05-12T12:46:14 | 2020-05-12T12:46:14 | 235,123,366 | 10 | 2 | MIT | 2020-03-18T15:32:59 | 2020-01-20T14:41:25 | Swift | UTF-8 | Swift | false | false | 1,024 | swift | //
// TimeCell.swift
// RxDataSourcesExt_Example
//
// Created by Goncharov Anton on 03/03/2020.
// Copyright © 2020 CocoaPods. All rights reserved.
//
import UIKit
import SnapKit
import RxSwift
import RxDataSourcesExt
class TimeCell: UICollectionViewCell, ConfigurableCell {
lazy var titleLabel: UILabel = {
let label = UILabel()
label.textAlignment = .center
return label
}()
var disposeBag = DisposeBag()
func configure(with viewModel: TimeCellViewModel) {
titleLabel.text = viewModel.title
addSubview(titleLabel)
titleLabel.snp.makeConstraints { make in
make.centerY.centerX.equalToSuperview()
}
}
override init(frame: CGRect) {
super.init(frame: frame)
backgroundColor = .gray
}
required init?(coder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func prepareForReuse() {
super.prepareForReuse()
disposeBag = DisposeBag()
}
}
| [
-1
] |
aa0da780a0f5c0080aa19766aaa46c55ffa47cd2 | c425a976941c80830922cd852fedffce1298a51b | /myAppTime/data/HttpError.swift | 11e1a032147fa49c0965ff3da2aa322b1feaa4df | [] | no_license | Szghuto09/myAppTime | 88b4cc27f5199c0acf5997f92893e03b46e76c20 | d92728ffb15b8cb4cc4c1ee825b03eef8a6adeba | refs/heads/main | 2023-06-05T09:32:11.840621 | 2021-06-18T08:46:05 | 2021-06-18T08:46:05 | 371,007,637 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 545 | swift | //
// HttpError.swift
// myAppTime
//
// Created by Edwin Alberto Chuchón Alva on 28/5/21.
//
import Foundation
enum HttpError: Error {
case sessionError(error: Error)
case requestError(error: Error)
case serverError(error: Error)
case encodingError(error: Error)
case decodingError(error: Error)
case unknown(error: Error)
init(error: Error) {
if error is DecodingError {
self = .decodingError(error: error)
} else {
self = .unknown(error: error)
}
}
}
| [
-1
] |
97aa932393de3685644cf8a57c73d9309fcd8d19 | 39553de79f6a871cbd3b82cecebe27301e6b34b8 | /WireBarleyCodingTest/WireBarleyCodingTest/Extension/CGFloatExtension.swift | 44f700ef6529e5cb7998c302f18174df0c63ef1f | [
"MIT"
] | permissive | wydryd125/WireBarleyTest | ed9038cfbd371f78ea4defca7d36472df4ec61cd | 689cfa55359437130aec2bdd60eedc42f9cda90d | refs/heads/master | 2022-11-09T10:31:52.336322 | 2020-06-14T09:50:07 | 2020-06-14T09:50:07 | 270,574,417 | 0 | 0 | MIT | 2020-06-11T09:06:20 | 2020-06-08T07:34:38 | Swift | UTF-8 | Swift | false | false | 850 | swift | //
// CGFloatExtension.swift
// WireBarleyCodingTest
//
// Created by 정유경 on 2020/06/08.
// Copyright © 2020 yukyung. All rights reserved.
//
import UIKit
extension CGFloat {
static func dynamicWidth(width: CGFloat) -> CGFloat {
let bounds = UIScreen.main.bounds
let currentWidth = bounds.width
let base: CGFloat = 375.0
let multiplier = currentWidth / base
let result = (width * multiplier)
return result.rounded()
}
static func dynamicHeight(height: CGFloat) -> CGFloat {
let bounds = UIScreen.main.bounds
let currentHeight = bounds.size.height
let base: CGFloat = 812.0 // 11Pro, iphone X, XS => 5.8 inch
let multiplier = currentHeight / base
let result = (height * multiplier)
return result.rounded()
}
}
| [
-1
] |
fe390f41c88f25970a9ded83a6f1fa485ff51f7b | 75784929d3d5ce02a0ee0b06221aeb560e0c9b60 | /SDImageDemoTests/PhotoPageModelTest.swift | 39cc2be3976f47ad4d30da991842051917141dd8 | [] | no_license | mailsushantdeshmukh/SDImageDemo | 9a264452703f01250bf818fa6c142a4f15ce8766 | 1b0f663f58d57f4d639d3411c661075429d07464 | refs/heads/master | 2023-01-04T11:11:57.520490 | 2020-10-30T05:44:19 | 2020-10-30T05:44:19 | 306,648,354 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,946 | swift | //
// SDPhotoLibraryInteractorTest.swift
// SDImageDemoTests
//
// Created by Sushant Deshmukh on 22/10/20.
// Copyright © 2020 Sushant Deshmukh. All rights reserved.
//
import XCTest
import Foundation
import CommonCode
@testable import SDImageDemo
class PhotoPageModelTest: XCTestCase {
override func setUp() { }
func testPhotoPageEntity() {
let photoModel1 = PhotoModel(id: "987643", owner: "lmn",
secret: "1nr4", server: "google",
farm: 1, title: "demo image",
isPublic: true, isFriend: true,
isFamily: true)
let photoModel2 = PhotoModel(id: "1234", owner: "abc",
secret: "xyz", server: "apple",
farm: 1, title: "myImage",
isPublic: true, isFriend: true,
isFamily: true)
let firstModel = createPhotoPagModel(page: 1, pages: 10,
perpage: 5, photo: [photoModel1])
let secondModel = createPhotoPagModel(page: 2, pages: 20,
perpage: 5, photo: [photoModel2])
let thirdModel = createPhotoPagModel(page: 1, pages: 10,
perpage: 5, photo: [photoModel1])
XCTAssertFalse(firstModel == secondModel)
XCTAssertTrue(firstModel == thirdModel)
XCTAssertFalse(secondModel == thirdModel)
}
private func createPhotoPagModel(page: Int,
pages: Int,
perpage: Int,
photo: [PhotoModel]) -> PhotoPageModel {
return PhotoPageModel(page: page, pages: pages, perpage: perpage, photo: photo)
}
}
| [
-1
] |
d1841f1e24df6dfeee212e071f55bd9c34c9486f | 10ed15c02c79c95dac847ca8deff75dfed17a202 | /Characters/Services/Client.swift | 474542191a41b1555e351689987293a6588f83a1 | [] | no_license | CoryGreen/Characters | 6b14e049b4351bd08da88cb87cad443f4eed8abf | 2c3d7b8f7b49ae1b3674324a9c46faaa3dcc8ca5 | refs/heads/master | 2022-12-12T02:45:02.763352 | 2020-09-14T07:48:30 | 2020-09-14T07:48:30 | 295,346,344 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,181 | swift | //
// Client.swift
// Characters
//
// Created by Coding. on 10/09/2020.
// Copyright © 2020 Coding. All rights reserved.
//
import Foundation
typealias APICompletion = (Result<Data, APIError>) -> Void
// A list of possible errors, to be used with the ENUMs above
enum APIError: Error {
case requestFailed
case invalidRequest
case invalidData
case responseUnsuccessful
var localizedDescription: String {
switch self {
case .requestFailed: return "Request Failed"
case .invalidRequest: return "Invalid Request"
case .invalidData: return "Invalid Data"
case .responseUnsuccessful: return "Response Unsuccessful"
}
}
}
// A simpel protocol for a simple client
protocol APIClient {
init(_ session: URLSession)
var session: URLSession { get }
func get(_ endpoint: Endpoint, completion: @escaping APICompletion)
}
// An extension to the client to execute the request
extension APIClient {
func execute(_ request: URLRequest, completion: @escaping APICompletion) {
let task = session.dataTask(with: request) { data, response, error in
guard let httpResponse = response as? HTTPURLResponse else { return completion(.failure(.requestFailed)) }
switch httpResponse.statusCode {
case 200...299:
guard let data = data else { return completion(.failure(.invalidData)) }
return completion(.success(data))
default:
return completion(.failure(.responseUnsuccessful))
}
}
task.resume()
}
}
class CharacterClient: APIClient {
let session: URLSession
required init(_ session: URLSession = URLSession(configuration: .default)) {
self.session = session
}
func get(_ list: Endpoint, completion: @escaping APICompletion) {
guard let request = list.request else { return completion(.failure(.invalidRequest)) }
execute(request, completion: completion)
}
}
| [
-1
] |
4bc146a000b307d6fbad41ea447480b186f31310 | 6e83fd532bdc33e0c525bc26f60f31e90dc8a7b6 | /BotasMobilApp/Fragments/Login/LoginViewController.swift | 57b3da7e334a13e39cee355f429503c5764f1abe | [] | no_license | tahasvc/BotasMobilApp | 2aea3fb3239778d6a8d679f3456cbc76920450db | ceedd4ac5b89f60e509874e286807f4f14fad27a | refs/heads/master | 2022-01-09T10:53:21.084067 | 2019-05-29T09:43:16 | 2019-05-29T09:43:16 | 189,189,514 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,914 | swift | //
// LoginViewControl.swift
// BotasMobilApp
//
// Created by Admin on 13.05.2019.
// Copyright © 2019 tahasvc. All rights reserved.
//
import UIKit
import var CommonCrypto.CC_MD5_DIGEST_LENGTH
import func CommonCrypto.CC_MD5
import typealias CommonCrypto.CC_LONG
class LoginViewController: UIViewController {
var delegate: ViewController?
@IBOutlet weak var kullaniciAdiText: UITextField!
@IBOutlet weak var sifreText: UITextField!
var loginLayer:IMcxLayer!
public var _isLocal: Bool!
@IBOutlet weak var loginButton: UIButton!
override func viewDidLoad() {
super.viewDidLoad()
self.view.layer.cornerRadius = 20
delegate!._isLogin = false
self.view.backgroundColor = UIColor(patternImage: UIImage(named: "login_background")!.resizableImage(withCapInsets: .zero))
let backgroundImage = UIImageView(frame: self.view.bounds)
backgroundImage.clipsToBounds = true
backgroundImage.image = UIImage(named: "login_background")
backgroundImage.contentMode = .scaleToFill
self.view.insertSubview(backgroundImage, at: 0)
}
convenience init() {
self.init(isLocal:nil)
}
init(isLocal: Bool?) {
self._isLocal = isLocal
super.init(nibName: "LoginFragment", bundle: nil)
}
@IBAction func girisYap(_ sender: Any) {
let kullaniciAdi:String = kullaniciAdiText.text!
let sifre:String = String(sifreText.text!)
if !_isLocal{
if(BotasMobilHelper.isNetworkConnection()){
self.userNamePasswControl(kullaniciAdi,sifre)
}
}
}
func userNamePasswControl(_ userName:String ,_ passw:String ) -> () {
let passMd5:String = (self.md5(passw)).uppercased()
do{
loginLayer = BotasMobilApplication.dataManager().getLayer(BotasMobilSettings.mcxUsersTableName)
let fsLayer:McxFsLayer = loginLayer as! McxFsLayer
let whereClause:String = "USERNAME='"+userName+"' AND PASSW='"+passMd5+"'"
let reader:McxSearchResult = fsLayer.search(fields: "", whereClause: whereClause, geometry: nil, relation: "", ajaxParameter: "")
var feature:IMcxFeature?=nil
if reader.getFeatureReader().read() {
feature = reader.getFeatureReader().getCurrent()
let user:BotasMobilUser = BotasMobilUser()
user.setUserId((feature!.getValueWithName(name: "ID"))as! Int)
user.setUserName((feature!.getValueWithName(name:"USERNAME"))as! String)
BotasMobilApplication.userManager=user
delegate!._isLogin = true
}else{
delegate?._isLogin = false
print("ad veya şifre hatalı")
}
}catch{
}
}
func md5(_ string: String) -> String {
let length = Int(CC_MD5_DIGEST_LENGTH)
let messageData = string.data(using:.utf8)!
var digestData = Data(count: length)
_ = digestData.withUnsafeMutableBytes { digestBytes -> UInt8 in
messageData.withUnsafeBytes { messageBytes -> UInt8 in
if let messageBytesBaseAddress = messageBytes.baseAddress, let digestBytesBlindMemory = digestBytes.bindMemory(to: UInt8.self).baseAddress {
let messageLength = CC_LONG(messageData.count)
CC_MD5(messageBytesBaseAddress, messageLength, digestBytesBlindMemory)
}
return 0
}
}
let md5 = digestData.map { String(format: "%02hhx", $0) }.joined()
return md5
}
required init?(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
}
}
| [
-1
] |
84ac1488bcde2c29f4cb88bf0009a6113314dfe4 | e69ed3300ded1f486fa95e6f7535d0d9a4a92c2b | /Client/LetsEat/Main/View/LocationCell.swift | e05ab6cc538c465408c76dc0909759158cd1172c | [] | no_license | dinhthiet2702/LetsEat | a8355ec31db4afbfb99166331b0d9faf6d7054da | af5f0e373eb09c250d7da10a853ba14fc9ba23aa | refs/heads/master | 2023-03-11T15:03:55.837111 | 2020-03-08T18:03:09 | 2020-03-08T18:03:09 | 227,668,179 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 1,456 | swift | //
// secondCell.swift
// LetsEat
//
// Created by thiet on 12/24/19.
// Copyright © 2019 thiet. All rights reserved.
//
import UIKit
import Alamofire
class LocationCell: UITableViewCell {
@IBOutlet weak var collectionview: UICollectionView!
var arrMenuFood:[MenuFood]!
var didSelectMenuFood:((_ mf:MenuFood)->Void)! = nil
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
}
}
extension LocationCell:UICollectionViewDataSource, UICollectionViewDelegate{
func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int {
self.arrMenuFood.count
}
func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell {
let cell = collectionview.dequeueReusableCell(withReuseIdentifier: "LocationCellList", for: indexPath) as! LocationCellList
cell.bindData(mf: arrMenuFood[indexPath.item])
cell.contentView.layer.cornerRadius = 10
return cell
}
func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) {
if didSelectMenuFood != nil{
didSelectMenuFood(arrMenuFood[indexPath.item])
}
}
}
| [
-1
] |
f678aece5864d588116d192216a3b7f7c4d6524a | e5f3f41953096c859a29e4ca21a88a5cf9ae5073 | /Mulah/AppDelegate.swift | 51b536b76a4f2942acda71d414b808c644acb77f | [] | no_license | LinnierGames/Mulah---Swift | 0132b5dc0722492d6156504f14d7ceabe72626f8 | 0cae531cb9c6b761d21aa66a7be2de76372a8fd9 | refs/heads/master | 2021-03-30T18:06:03.748744 | 2017-08-18T22:54:52 | 2017-08-18T22:54:52 | 100,657,787 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 4,830 | swift | //
// AppDelegate.swift
// Mulah
//
// Created by Erick Sanchez on 8/17/17.
// Copyright © 2017 Erick Sanchez. All rights reserved.
//
import UIKit
import CoreData
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
class var instance: AppDelegate {
return UIApplication.shared.delegate! as! AppDelegate
}
class var viewContext: NSManagedObjectContext {
return AppDelegate.instance.persistentContainer.viewContext
}
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:.
// Saves changes in the application's managed object context before the application terminates.
self.saveContext()
}
// 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: "Mulah")
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)")
}
}
}
}
| [
294405,
243717,
163848,
313353,
320008,
320014,
313360,
288275,
289300,
322580,
290326,
329747,
139803,
322080,
229408,
306721,
296483,
229411,
322083,
306726,
309287,
308266,
292907,
322092,
217132,
40495,
316465,
288306,
322102,
324663,
164408,
308281,
322109,
286783,
313409,
315457,
313413,
320582,
349765,
309832,
288329,
215117,
196177,
241746,
344661,
231000,
212571,
287323,
300124,
309342,
325220,
306790,
290409,
311914,
296043,
322666,
307310,
334446,
292466,
314995,
307315,
314487,
291450,
314491,
318599,
312970,
311444,
294038,
311449,
323739,
300194,
298662,
233638,
233644,
300208,
286896,
286389,
234677,
294070,
125111,
309439,
284352,
296641,
235200,
242371,
302787,
284360,
321228,
319181,
298709,
189654,
284374,
182486,
320730,
241371,
311516,
357083,
179420,
322272,
317665,
298210,
165091,
311525,
288489,
229098,
290025,
307436,
304365,
323310,
125167,
313073,
286455,
306424,
322299,
319228,
302332,
319231,
184576,
309505,
241410,
311043,
366339,
309509,
318728,
125194,
234763,
321806,
125201,
296218,
313116,
326434,
237858,
295716,
300836,
313125,
289577,
125226,
133421,
317233,
241971,
316726,
318264,
201530,
313660,
159549,
287038,
292159,
218943,
288578,
301893,
234828,
292172,
300882,
321364,
243032,
201051,
230748,
298844,
294238,
258397,
199020,
293741,
319342,
292212,
316788,
313205,
244598,
124796,
196988,
305022,
313215,
303999,
314241,
243072,
242050,
317821,
325509,
293767,
316300,
306576,
322448,
308114,
319900,
298910,
313250,
308132,
316327,
306605,
316334,
324015,
200625,
324017,
300979,
316339,
322998,
296888,
67000,
316345,
300987,
319932,
310718,
292288,
317888,
323520,
312772,
214980,
298950,
306632,
310733,
289744,
310740,
235994,
286174,
315359,
240098,
323555,
236008,
319465,
248299,
311789,
326640,
203761,
320498,
314357,
288246,
309243,
300540,
310782
] |
cac509fead5549eccf594a5dec86238f77140f10 | dcf68e42faf13adafed175759bf2e07b7de05039 | /Agora-Live-Shop-iOS/AgoraLiveShop/Constant/KeyCenter.swift | f44a3bf63a599a09118623abc2ef2d896a431f2b | [
"MIT"
] | permissive | ping203/Live-Shop | 380336f94d4d1206198d01fa5e497b3c3ff7f1dd | 75b27587d282ad99f3d072e2ec7a2569705083a8 | refs/heads/master | 2023-01-27T22:57:28.375341 | 2020-11-26T11:24:38 | 2020-11-26T11:24:38 | null | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 200 | swift | //
// KeyCenter.swift
// AgoraHQ
//
// Created by ZhangJi on 08/01/2018.
// Copyright © 2018 ZhangJi. All rights reserved.
//
struct KeyCenter {
static let AppId: String = <#Your App ID#>
}
| [
-1
] |
d4865dac62db286570cc8bfc116926024cfecafd | ad0276698881ac065e1dd8188668128a79fce810 | /swiftUIExampleForWatchApp/swiftUIExampleForWatchApp WatchKit Extension/ComplicationController.swift | 921039e39b1daad1445e398b329a1ee0eb2a9a99 | [] | no_license | eajang/watchOS-Seminar-swiftUI-Example | 947b60e2af7e161f5f1be373d2c0e42bd4961de6 | 88f8157cc5a6239d6f11ad78ffb11ce9f5771dc6 | refs/heads/main | 2023-01-29T17:01:26.108797 | 2020-12-14T12:14:56 | 2020-12-14T12:14:56 | 318,466,671 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 2,403 | swift | //
// ComplicationController.swift
// swiftUIExampleForWatchApp WatchKit Extension
//
// Created by Eunae Jang on 2020/12/04.
//
import ClockKit
class ComplicationController: NSObject, CLKComplicationDataSource {
// MARK: - Complication Configuration
func getComplicationDescriptors(handler: @escaping ([CLKComplicationDescriptor]) -> Void) {
let descriptors = [
CLKComplicationDescriptor(identifier: "complication", displayName: "swiftUIExampleForWatchApp", supportedFamilies: CLKComplicationFamily.allCases)
// Multiple complication support can be added here with more descriptors
]
// Call the handler with the currently supported complication descriptors
handler(descriptors)
}
func handleSharedComplicationDescriptors(_ complicationDescriptors: [CLKComplicationDescriptor]) {
// Do any necessary work to support these newly shared complication descriptors
}
// MARK: - Timeline Configuration
func getTimelineEndDate(for complication: CLKComplication, withHandler handler: @escaping (Date?) -> Void) {
// Call the handler with the last entry date you can currently provide or nil if you can't support future timelines
handler(nil)
}
func getPrivacyBehavior(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationPrivacyBehavior) -> Void) {
// Call the handler with your desired behavior when the device is locked
handler(.showOnLockScreen)
}
// MARK: - Timeline Population
func getCurrentTimelineEntry(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTimelineEntry?) -> Void) {
// Call the handler with the current timeline entry
handler(nil)
}
func getTimelineEntries(for complication: CLKComplication, after date: Date, limit: Int, withHandler handler: @escaping ([CLKComplicationTimelineEntry]?) -> Void) {
// Call the handler with the timeline entries after the given date
handler(nil)
}
// MARK: - Sample Templates
func getLocalizableSampleTemplate(for complication: CLKComplication, withHandler handler: @escaping (CLKComplicationTemplate?) -> Void) {
// This method will be called once per supported complication, and the results will be cached
handler(nil)
}
}
| [
402961,
377492,
24469,
363416,
211876,
114471,
210609,
346164,
359736,
216507,
153669,
147014,
368712,
343626,
147023,
258131,
377683,
372823,
412760,
188764,
372829,
177124,
184935,
52711,
260968,
374889,
372843,
134380,
369393,
384372,
363637,
373494,
372857,
98815
] |
3b8c12bb5bc039897a88e10828438c674d77b508 | b1a8112f4424fecf5d56056eaa573fdceeda78b8 | /Example/RevealableCell/ViewController.swift | b5d4a2e874b2d58c68711a1ec166ab4f92ba6d60 | [
"MIT"
] | permissive | hggz/iMessageStyleReveal | c27b2d8b17e9395366854b6580c95c331e87631e | 3fb0109e86a75417577be4e1e0f1f783b67df7a0 | refs/heads/master | 2020-05-16T07:36:43.445218 | 2019-04-22T23:41:29 | 2019-04-22T23:41:29 | 182,882,677 | 0 | 1 | null | 2019-04-22T23:22:18 | 2019-04-22T23:22:18 | null | UTF-8 | Swift | false | false | 5,624 | swift | //
// ViewController.swift
// RevealableCell
//
// Created by Shaps Mohsenin on 01/03/2016.
// Copyright (c) 2016 Shaps Mohsenin. All rights reserved.
//
import UIKit
import LoremIpsum
import RevealableCell
enum Cell: String {
case Left = "leftAlignedCell"
case Right = "rightAlignedCell"
}
class ViewController: UITableViewController {
func configure(cell: TableViewCell, at indexPath: IndexPath, with message: Message) {
/*
This demonstrates the usage of a RevealableCell
---
1. Your cell must be a subclass of RevealableTableViewCell
2. You must register a nib or a RevealableView subclass using:
tableView.registerNib(nib, forRevealableViewReuseIdentifier: "identifier")
tableView.registerClass(revealableViewClass, forRevealableViewReuseIdentifier: "identifier")
3. In cellForRowAtIndexPath you can dequeue and configure an instance using:
if let view = tableView.dequeueReusableRevealableViewWithIdentifier("identifier") as? MyRevealableView {
view.titleLabel.text = ""
cell.setRevealableView(view, style: .Slide, direction: .Left)
}
This new implementation, allows reusable revealableViews of the same type as well as allowing you to have
different styles/directions for individual cells.
Run this project, to see a demo similar to the iMessage app on your iOS device.
*/
if let timeStampView = tableView.dequeueReusableRevealableView(withIdentifier: "timestamp") as? TimestampView {
timeStampView.date = message.date as Date
timeStampView.width = 55
if message.cell == .Left {
cell.setRevealableView(timeStampView, style: .over)
} else {
cell.setRevealableView(timeStampView, style: .slide)
}
}
cell.messageLabel.text = message.text
}
var messages = [Message]()
override func viewDidLoad() {
super.viewDidLoad()
tableView.registerNib(UINib(nibName: "TimestampView", bundle: nil), forRevealableViewReuseIdentifier: "timestamp")
tableView.registerNib(UINib(nibName: "TimestampView", bundle: nil), forRevealableViewReuseIdentifier: "name")
tableView.rowHeight = UITableView.automaticDimension
messages = [
Message(cell: .Left, date: NSDate(timeIntervalSinceNow: 60), text: "Do you know how to put an Ad on Craig's List?", name: "Francesco"),
Message(cell: .Right, date: NSDate(timeIntervalSinceNow: 120), text: "Yes, its easy. Why?", name: "Shaps"),
Message(cell: .Left, date: NSDate(timeIntervalSinceNow: 160), text: "We need a nurse to fuck my grandma at night", name: "Francesco"),
Message(cell: .Right, date: NSDate(timeIntervalSinceNow: 240), text: "Oh my. Well lord knows you can find that, and more, on craigslist! Haha", name: "Shaps"),
Message(cell: .Left, date: NSDate(timeIntervalSinceNow: 340), text: "lol no my grandma needs fuck at night", name: "Francesco"),
Message(cell: .Right, date: NSDate(timeIntervalSinceNow: 400), text: "Oh, don't we all ;)", name: "Shaps"),
Message(cell: .Left, date: NSDate(timeIntervalSinceNow: 550), text: "help! God damn it help! Auto correct sucks!", name: "Francesco"),
Message(cell: .Right, date: NSDate(timeIntervalSinceNow: 600), text: "HAHAHAHA!", name: "Shaps")
]
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
let controller = UIAlertController(title: "Welcome", message: "Swipe to the left to see it in action", preferredStyle: .alert)
controller.addAction(UIAlertAction(title: "OK", style: .cancel, handler: nil))
present(controller, animated: true, completion: nil)
}
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> RevealableTableViewCell {
let message = messages[indexPath.item]
let cell = tableView.dequeueReusableCell(withIdentifier: message.cell.rawValue, for: indexPath as IndexPath) as! TableViewCell
configure(cell: cell, at: indexPath, with: message)
return cell
}
override func tableView(_ tableView: UITableView, estimatedHeightForRowAt indexPath: IndexPath) -> CGFloat {
return 49
}
override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat {
let message = messages[indexPath.item]
if let cell = tableView.dequeueReusableCell(withIdentifier: message.cell.rawValue) as? TableViewCell {
configure(cell: cell, at: indexPath, with: message)
return cell.contentView.systemLayoutSizeFitting(UIView.layoutFittingExpandedSize).height
}
return 50
}
override func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? {
return "Today"
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
return messages.count
}
}
final class Message {
let text: String
let date: NSDate
let cell: Cell
let name: String
init(cell: Cell, date: NSDate, text: String, name: String) {
self.text = text
self.cell = cell
self.date = date
self.name = name
}
}
| [
-1
] |
d3f6ad6e7e5f4cbd804e02b599e5b1e1f4435a40 | 902f6d58dada9cc64462464a3d1ac13b5ebc7846 | /pinsta/InstaViewController.swift | 8e8d459ae882907943041c988d1d6d765e8ca6e1 | [
"Apache-2.0"
] | permissive | him229/pinsta | b732c94f9b5f2f84d5119c78a770af258c687fa2 | 0d87dc75d00fc037523ddab73eb76ca0cfde04f3 | refs/heads/master | 2021-01-10T10:05:21.033731 | 2016-03-07T04:37:58 | 2016-03-07T04:37:58 | 53,226,240 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 3,576 | swift | //
// InstaViewController.swift
// pinsta
//
// Created by Himank Yadav on 3/6/16.
// Copyright © 2016 himankyadav. All rights reserved.
//
import UIKit
import Parse
import ParseUI
class InstaViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
@IBOutlet weak var tableView: UITableView!
var postlist: [PFObject] = []
@IBAction func onLogout(sender: AnyObject) {
PFUser.logOut()
NSNotificationCenter.defaultCenter().postNotificationName("UserDidLogout", object: nil)
}
override func viewDidLoad() {
super.viewDidLoad()
tableView.delegate = self
tableView.dataSource = self
let refreshControl = UIRefreshControl()
refreshControl.addTarget(self, action: "refreshControlAction:", forControlEvents: UIControlEvents.ValueChanged)
tableView.insertSubview(refreshControl, atIndex: 0)
let query = PFQuery(className: "Post")
query.orderByDescending("createdAt")
query.includeKey("author")
query.limit = 20
// fetch data asynchronously
query.findObjectsInBackgroundWithBlock { (posts: [PFObject]?, error: NSError?) -> Void in
if let posts = posts {
self.postlist = posts
self.tableView.reloadData()
} else {
print(error?.localizedDescription)
}
}
// Do any additional setup after loading the view.
}
func refreshControlAction(refreshControl: UIRefreshControl) {
let query = PFQuery(className: "Post")
query.orderByDescending("createdAt")
query.includeKey("author")
query.limit = 20
// fetch data asynchronously
query.findObjectsInBackgroundWithBlock { (posts: [PFObject]?, error: NSError?) -> Void in
if let posts = posts {
self.postlist = posts
self.tableView.reloadData()
refreshControl.endRefreshing()
} else {
print(error?.localizedDescription)
}
}
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int
{
if (postlist.count != 0)
{
return postlist.count
}
else {return 0}
}
// Row display. Implementers should *always* try to reuse cells by setting each cell's reuseIdentifier and querying for available reusable cells with dequeueReusableCellWithIdentifier:
// Cell gets various attributes set automatically based on table (separators) and data source (accessory views, editing controls)
func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell
{
let cell = tableView.dequeueReusableCellWithIdentifier("PhotoCell", forIndexPath: indexPath) as! PhotoTableViewCell
cell.instagramPost = postlist[indexPath.row]
return cell
}
/*
// MARK: - Navigation
// In a storyboard-based application, you will often want to do a little preparation before navigation
override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
// Get the new view controller using segue.destinationViewController.
// Pass the selected object to the new view controller.
}
*/
}
| [
-1
] |
63bcf6243c5300aab1ad0c197537bb35ff7c8cb0 | b6d281984af1f14586ea9f7f605fb50c924599a3 | /Shared/HomeView.swift | 6ba3a1ed08c5fbf380ebb1b4dd4b0c04883fe5b8 | [
"MIT"
] | permissive | DouKing/Study-iOS14-sample | d94548708461442a7dcb5b1d7e3bc893d64280be | 124047afcebb4f89c845fae5e666a30f1cb29742 | refs/heads/master | 2023-04-19T19:19:46.264636 | 2020-11-09T08:04:06 | 2020-11-09T08:04:06 | 275,979,994 | 0 | 0 | null | null | null | null | UTF-8 | Swift | false | false | 302 | swift | //
// HomeView.swift
// Study-iOS14-sample
//
// Created by DouKing on 2020/6/30.
//
import SwiftUI
struct HomeView: View {
var body: some View {
Text("Hello, World!")
}
}
struct HomeView_Previews: PreviewProvider {
static var previews: some View {
HomeView()
}
}
| [
369287,
126601,
343054,
108815,
108816,
256912,
108818,
347284,
386582,
357409,
252964,
153644,
378669,
372654,
372271,
180531,
375348,
343100,
384701,
372030,
214591,
349760,
374977,
147012,
420678,
204999,
356551,
272204,
345165,
353614,
357838,
391504,
212948,
379094,
352984,
398298,
260702,
379103,
345188,
168045,
207725,
66799,
369905,
162298,
360956,
377982
] |
4316fe5c85dd999ac3734cf883da6ba014b2c655 | 6eca07d5e1f1d75134cb5f31287c8d01b6c4c97b | /Navigation/MyTabBarController.swift | a3ce5ea55eacfaf702f0e9b4ff5cf8023f5df8e8 | [] | no_license | Nika081187/netology_json | 7111405e155060e32e1437a3672dc159f2fcac9d | 86175610980986ec05beeecdff59b581deb5db78 | refs/heads/main | 2023-04-02T01:27:22.635278 | 2021-04-10T08:56:50 | 2021-04-10T08:56:50 | 356,525,941 | 0 | 0 | null | 2021-04-10T10:52:26 | 2021-04-10T08:55:28 | Swift | UTF-8 | Swift | false | false | 2,389 | swift | //
// MyTabBarController.swift
// Navigation
//
// Created by v.milchakova on 11.01.2021.
// Copyright © 2021 Artem Novichkov. All rights reserved.
//
import UIKit
@available(iOS 13.0, *)
class MyTabBarController: UIViewController, UITabBarDelegate {
let tabBar = UITabBar()
private lazy var updateLabel: UILabel = {
let label = UILabel()
label.toAutoLayout()
label.textColor = .darkGray
return label
}()
override func viewDidLoad() {
super.viewDidLoad()
tabBar.delegate = self
addTabbar()
updateUI()
}
func addTabbar() -> Void {
let item1 = UITabBarItem(title: "Feed", image: nil, tag: 1)
let item2 = UITabBarItem(title: "Profile", image: nil, tag: 2)
tabBar.items = [item1, item2]
tabBar.selectedItem = item1
self.view.addSubview(tabBar)
tabBar.addSubview(updateLabel)
tabBar.toAutoLayout()
NSLayoutConstraint.activate([
tabBar.rightAnchor.constraint(equalTo: view.rightAnchor),
tabBar.leftAnchor.constraint(equalTo: view.leftAnchor),
tabBar.bottomAnchor.constraint(equalTo: view.bottomAnchor),
updateLabel.centerXAnchor.constraint(equalTo: view.centerXAnchor),
updateLabel.centerYAnchor.constraint(equalTo: view.centerYAnchor),
])
view.backgroundColor = .systemGray5
}
func tabBar(_ tabBar: UITabBar, didSelect item: UITabBarItem) {
switch item.title {
case "Feed":
navigationController?.pushViewController(FeedViewController(), animated: true)
case "Profile":
navigationController?.pushViewController(ProfileViewController(), animated: true)
default:
fatalError("Unknown tab bar item!")
}
}
private var time: Date?
private lazy var dateFormatter: DateFormatter = {
let formatter = DateFormatter()
formatter.dateStyle = .short
formatter.timeStyle = .long
return formatter
}()
func fetch(_ completion: () -> Void) {
time = Date()
completion()
}
func updateUI() {
if let time = time {
updateLabel.text = dateFormatter.string(from: time)
} else {
updateLabel.text = "Not yet updated"
}
}
}
| [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.