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
f94c42df8d497a516dfc82f0668860b036f14d91
fe56fa22f35c19b729bc3ea3e5151aee879b36f7
/Tests/leetcodeTests/StringToIntTests.swift
4ec1807231b6798ceb2e0799e0c0fa058bcc412a
[]
no_license
ducva/leetcode_swift
0a85eb94eb26530217e43b7119f6f3076c87dbf6
3a385e98e81e4344f14ac9cbadb86a0471edd215
refs/heads/master
2022-11-07T20:34:20.072403
2020-06-24T03:49:43
2020-06-24T03:49:43
271,176,672
0
0
null
null
null
null
UTF-8
Swift
false
false
619
swift
// // File.swift // // // Created by Michael Vu on 6/18/20. // import Foundation import XCTest @testable import leetcode class StringToIntTests: XCTestCase { func testcase1() throws { let sol = StringToInt() XCTAssertEqual(sol.myAtoi(""), 0) XCTAssertEqual(sol.myAtoi("123"), 123) XCTAssertEqual(sol.myAtoi("words 123"), 0) XCTAssertEqual(sol.myAtoi("123 words"), 123) XCTAssertEqual(sol.myAtoi("-123 words"), -123) XCTAssertEqual(sol.myAtoi("+123 words"), 123) XCTAssertEqual(sol.myAtoi("-91283472332"), -2147483648) } }
[ -1 ]
4392f7396391643cbe9819ecf815e9df8c675010
bc6dc2e8579a39259bbb65653cb79ed96e05d896
/Youtube-Onedaybuild/ViewController.swift
bed007296785db5980020296eed2a075ab79e21d
[]
no_license
foundatomsk/youtube-onedaybuild
bf6bacfabef746974367413b6d24de39637f6d77
6fce304a6c7bbbed5e5e6f6383a07243f3bbce43
refs/heads/main
2023-01-12T03:48:30.813280
2020-11-13T03:07:07
2020-11-13T03:07:07
312,395,882
0
0
null
null
null
null
UTF-8
Swift
false
false
288
swift
// // ViewController.swift // Youtube-Onedaybuild // // Created by leo thompson on 11/12/20. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } }
[ 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, 376687, 349297, 210674, 320506, 361595 ]
1a7614738f76e1d3da0e480eaa2be6e377225f49
6a5b1b77397bf4e87ed556aa04619f514e6bef76
/LetsEat/SceneDelegate.swift
9087e63c10f0638f7d071abdd406bd395d0763dd
[]
no_license
mdmarufprodhan/LetsEat
f10ee625283f4f7c24cadd52a6de7b8e76a758ff
3d0f9b9e78223d22662f630ee726c8bbafa8ec26
refs/heads/main
2023-07-02T11:49:07.173842
2021-08-08T16:10:12
2021-08-08T16:10:12
378,350,536
0
0
null
null
null
null
UTF-8
Swift
false
false
2,293
swift
// // SceneDelegate.swift // LetsEat // // Created by Md Maruf Prodhan on 19/6/21. // 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, 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, 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, 225448, 438441, 356521, 225451, 258223, 225456, 430257, 225459, 225462, 225468, 389309, 225472, 372931, 225476, 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, 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, 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, 111539, 324534, 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 ]
7a29aa4f152427c412cf4468da00154c6d68ce17
cd5d8a7f11d68a198ed2d9652e5c91ede1443f82
/StepicTests/DeepLinkRouteTests.swift
0f3f663f3e3e277c7c9612bca72bd9e7a87794cf
[]
no_license
liudhzhyym/stepik-ios
4aff7e025971150f8ad241d5f058476d78c25505
608143f386d002171678ca57a77fb235c2ce0581
refs/heads/master
2022-11-21T03:59:07.533804
2020-07-08T03:13:56
2020-07-08T03:13:56
null
0
0
null
null
null
null
UTF-8
Swift
false
false
10,898
swift
// // DeepLinkRouteTests.swift // stepik-ios // // Created by Ivan Magda on 2018-12-17. // Copyright 2018 Stepik. All rights reserved. // import Foundation import XCTest import Quick import Nimble @testable import Stepic class DeepLinkRouteSpec: QuickSpec { private func makeRoute(for path: String) -> DeepLinkRoute { DeepLinkRoute(path: path)! } private func checkPaths(_ paths: [String], result: @escaping (DeepLinkRoute) -> ToSucceedResult) { for path in paths { let route = self.makeRoute(for: path) expect({ result(route) }).to(succeed()) } } override func spec() { describe("DeepLinkRoute") { context("catalog") { it("matches catalog deep link with given paths") { let paths = [ "https://stepik.org/catalog", "https://stepik.org/catalog/" ] self.checkPaths(paths) { route in guard case .catalog = route else { return .failed(reason: "wrong enum case, expected `catalog`, got \(route)") } return .succeeded } } } context("course") { it("matches course deep link with given paths") { let paths = [ "https://stepik.org/course/8092", "https://stepik.org/course/8092/", "https://stepik.org/course/8092/?", "https://stepik.org/course/8092/?utm_source=newsletter&utm_medium=email&utm_campaign=monthly&utm_term=user-group4&utm_content=course" ] self.checkPaths(paths) { route in guard case let .course(id) = route else { return .failed(reason: "wrong enum case, expected `course`, got \(route)") } return id == 8092 ? .succeeded : .failed(reason: "wrong course id") } } } context("coursePromo") { it("matches course promo deep link with given paths") { let paths = [ "https://stepik.org/course/8092/promo", "https://stepik.org/course/8092/promo/", "https://stepik.org/course/8092/promo/?", "https://stepik.org/course/8092/promo/?utm_source=newsletter&utm_medium=email&utm_campaign=monthly&utm_term=user-group4&utm_content=course" ] self.checkPaths(paths) { route in guard case let .coursePromo(id) = route else { return .failed(reason: "wrong enum case, expected `course`, got \(route)") } return id == 8092 ? .succeeded : .failed(reason: "wrong course id") } } } context("profile") { it("matches profile deep link with given paths") { let paths = [ "https://stepik.org/users/8092", "https://stepik.org/users/8092/", // https://vyahhi.myjetbrains.com/youtrack/issue/APPS-2712 "https://stepik.org/users/8092?etk=WzEyNSwyNTcwNzY2NV0.1j4TGN.KO8s5AxOSbpY3CxNa4X_OAUl5_o" ] self.checkPaths(paths) { route in guard case let .profile(id) = route else { return .failed(reason: "wrong enum case, expected `profile`, got \(route)") } return id == 8092 ? .succeeded : .failed(reason: "wrong course id") } } } context("notifications") { it("matches notifications deep link with given paths") { let paths = [ "https://stepik.org/notifications", "https://stepik.org/notifications/" ] self.checkPaths(paths) { route in guard case .notifications = route else { return .failed(reason: "wrong enum case, expected `notifications`, got \(route)") } return .succeeded } } } context("syllabus") { it("matches syllabus deep link with given paths") { let paths = [ "https://stepik.org/course/8092/syllabus", "https://stepik.org/course/8092/syllabus/", "https://stepik.org/course/8092/syllabus/?", "https://stepik.org/course/8092/syllabus/?utm_source=newsletter&utm_medium=email&utm_campaign=monthly&utm_term=user-group4&utm_content=course" ] self.checkPaths(paths) { route in guard case .syllabus = route else { return .failed(reason: "wrong enum case, expected `syllabus`, got \(route)") } return .succeeded } } } context("lesson") { func checkRoute(_ route: DeepLinkRoute, expectedUnitID: Int?) -> ToSucceedResult { guard case let .lesson(lessonID, stepID, unitID) = route else { return .failed(reason: "wrong enum case, expected `lesson`, got \(route)") } guard lessonID == 172508 else { return .failed(reason: "wrong lesson id") } guard stepID == 1 else { return .failed(reason: "wrong step id") } guard unitID == expectedUnitID else { return .failed(reason: "wrong unit id") } return .succeeded } it("matches lesson deep link paths with unit id") { let paths = [ "https://stepik.org/lesson/172508/step/1?unit=148015", "https://stepik.org/lesson/172508/step/1?unit=148015/" ] self.checkPaths(paths) { route in checkRoute(route, expectedUnitID: 148015) } } it("matches lesson deep link paths without unit id") { let paths = [ "https://stepik.org/lesson/172508/step/1", "https://stepik.org/lesson/172508/step/1/" ] self.checkPaths(paths) { route in checkRoute(route, expectedUnitID: nil) } } } context("discussions") { func checkRoute(_ route: DeepLinkRoute, expectedUnitID: Int?) -> ToSucceedResult { guard case let .discussions(lessonID, stepID, discussionID, unitID) = route else { return .failed(reason: "wrong enum case") } guard lessonID == 172508 else { return .failed(reason: "wrong lesson id") } guard stepID == 1 else { return .failed(reason: "wrong step id") } guard discussionID == 803115 else { return .failed(reason: "wrong discussion id") } guard unitID == expectedUnitID else { return .failed(reason: "wrong unit id") } return .succeeded } it("matches discussions deep link paths with unit id") { let paths = [ "https://stepik.org/lesson/172508/step/1?discussion=803115&unit=148015", "https://stepik.org/lesson/172508/step/1?discussion=803115&unit=148015/" ] self.checkPaths(paths) { route in checkRoute(route, expectedUnitID: 148015) } } it("matches discussions deep link without unit id") { let paths = [ "https://stepik.org/lesson/172508/step/1?discussion=803115" ] self.checkPaths(paths) { route in checkRoute(route, expectedUnitID: nil) } } } context("solutions") { func checkRoute(_ route: DeepLinkRoute, expectedUnitID: Int?) -> ToSucceedResult { guard case let .solutions(lessonID, stepID, discussionID, unitID) = route else { return .failed(reason: "wrong enum case") } guard lessonID == 172508 else { return .failed(reason: "wrong lesson id") } guard stepID == 1 else { return .failed(reason: "wrong step id") } guard discussionID == 803115 else { return .failed(reason: "wrong discussion id") } guard unitID == expectedUnitID else { return .failed(reason: "wrong unit id") } return .succeeded } it("matches discussions deep link paths with unit id") { let paths = [ "https://stepik.org/lesson/172508/step/1?discussion=803115&unit=148015&thread=solutions", "https://stepik.org/lesson/172508/step/1?discussion=803115&unit=148015&thread=solutions/" ] self.checkPaths(paths) { route in checkRoute(route, expectedUnitID: 148015) } } it("matches discussions deep link without unit id") { let paths = [ "https://stepik.org/lesson/172508/step/1?discussion=803115&thread=solutions" ] self.checkPaths(paths) { route in checkRoute(route, expectedUnitID: nil) } } } } } }
[ -1 ]
b8f2d82adfad4c07b594ebc63c4463b571dd8c3c
385a51d51530c44ff5a57f54999a09c446978bfa
/Pods/MapboxNavigation/MapboxNavigation/NextBannerView.swift
2998ea98af296efe726c20d1af4fe5b3c62c8bf5
[ "MIT", "ISC", "LicenseRef-scancode-unknown-license-reference" ]
permissive
dnlmartinez/MapBox_Example
c3bebe370e3b3152c5eda7ecaea913ca56b222aa
d6fe906a8c6934de5d66488626cb4eab8c544689
refs/heads/master
2021-04-03T05:04:15.070797
2018-03-10T21:56:37
2018-03-10T21:56:37
124,673,037
0
0
null
null
null
null
UTF-8
Swift
false
false
4,363
swift
import UIKit import MapboxDirections import MapboxCoreNavigation /// :nodoc: @objc(MBNextInstructionLabel) open class NextInstructionLabel: InstructionLabel { } /// :nodoc: @IBDesignable @objc(MBNextBannerView) open class NextBannerView: UIView { weak var maneuverView: ManeuverView! weak var instructionLabel: NextInstructionLabel! override init(frame: CGRect) { super.init(frame: frame) commonInit() } required public init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) commonInit() } func commonInit() { setupViews() setupLayout() } func setupViews() { translatesAutoresizingMaskIntoConstraints = false let maneuverView = ManeuverView() maneuverView.translatesAutoresizingMaskIntoConstraints = false addSubview(maneuverView) self.maneuverView = maneuverView let instructionLabel = NextInstructionLabel() instructionLabel.shieldHeight = instructionLabel.font.pointSize instructionLabel.translatesAutoresizingMaskIntoConstraints = false addSubview(instructionLabel) self.instructionLabel = instructionLabel instructionLabel.availableBounds = { let height = ("|" as NSString).size(withAttributes: [.font: self.instructionLabel.font]).height let availableWidth = self.bounds.width-self.maneuverView.frame.maxX-(16*2) return CGRect(x: 0, y: 0, width: availableWidth, height: height) } } override open func prepareForInterfaceBuilder() { super.prepareForInterfaceBuilder() maneuverView.isEnd = true instructionLabel.instruction = [VisualInstructionComponent(type: .destination, text: "Next step", imageURL: nil, maneuverType: .none, maneuverDirection: .none)] } func setupLayout() { let heightConstraint = heightAnchor.constraint(equalToConstant: 44) heightConstraint.priority = UILayoutPriority(rawValue: 999) heightConstraint.isActive = true let midX = BaseInstructionsBannerView.padding + BaseInstructionsBannerView.maneuverViewSize.width / 2 maneuverView.centerXAnchor.constraint(equalTo: leftAnchor, constant: midX).isActive = true maneuverView.heightAnchor.constraint(equalToConstant: 22).isActive = true maneuverView.widthAnchor.constraint(equalToConstant: 22).isActive = true maneuverView.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true instructionLabel.leftAnchor.constraint(equalTo: leftAnchor, constant: 70).isActive = true instructionLabel.centerYAnchor.constraint(equalTo: centerYAnchor).isActive = true instructionLabel.rightAnchor.constraint(equalTo: rightAnchor, constant: -16).isActive = true } func shouldShowNextBanner(for routeProgress: RouteProgress) -> Bool { guard let upcomingStep = routeProgress.currentLegProgress.upComingStep else { return false } let durationForNext = RouteControllerHighAlertInterval * RouteControllerLinkedInstructionBufferMultiplier guard routeProgress.currentLegProgress.currentStepProgress.durationRemaining <= durationForNext, upcomingStep.expectedTravelTime <= durationForNext else { return false } guard let _ = upcomingStep.instructionsDisplayedAlongStep?.last else { return false } return true } public func update(for routeProgress: RouteProgress) { guard shouldShowNextBanner(for: routeProgress) else { hide() return } guard let instruction = routeProgress.currentLegProgress.upComingStep?.instructionsDisplayedAlongStep?.last else { return } maneuverView.visualInstruction = instruction instructionLabel.instruction = instruction.primaryTextComponents show() } public func show() { guard isHidden else { return } UIView.defaultAnimation(0.3, animations: { self.isHidden = false }, completion: nil) } public func hide() { guard !isHidden else { return } UIView.defaultAnimation(0.3, animations: { self.isHidden = true }, completion: nil) } }
[ -1 ]
d68eced1c9d153c42923d1dc053b4d3eb576ce68
604c3b18bf8b992b08b1d816bb0ad3008a0dfc14
/ToDooDaBuDiDoo/custom/GDTableView.swift
cf52e7aafb6b58ab0862ab80aa9e312364716dc3
[]
no_license
Skill1993/ToDo
8b3d3c4c10da6540568b7a208c14af8da6307736
b761f85c506e89d761844940722adf03104a761b
refs/heads/master
2020-03-31T06:14:02.878575
2018-10-07T18:44:24
2018-10-07T18:44:24
151,973,290
0
0
null
null
null
null
UTF-8
Swift
false
false
566
swift
// // GDTableView.swift // ToDooDaBuDiDoo // // Created by Никита Журавлев on 03/10/2018. // Copyright © 2018 Никита Журавлев. All rights reserved. // import UIKit class GDTableView: UITableView { override init(frame: CGRect, style: UITableView.Style) { super.init(frame: frame, style: style) checkIfAutoLayout() backgroundColor = .clear separatorStyle = .none } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } }
[ -1 ]
48b5deceebd9558f682f48ebb93df5dd2e41b71b
c39a3ee947e1389556340fb24586c7e801e2ae1a
/IntrinsticContentSize/IntrinsticContentSize/TestView.swift
30deff11bd91c2301f73617fbca8f5c3e31e73d8
[]
no_license
Inferis/Practical-AutoLayout
20698c02c85ad420f778b5bba8ce3c19e8499dd2
a966832f803a4319688918a742697099b58959f2
refs/heads/master
2021-01-13T02:36:00.454976
2014-11-28T18:33:36
2014-11-28T18:33:36
27,277,818
1
1
null
null
null
null
UTF-8
Swift
false
false
297
swift
// // TestView.swift // IntrinsticContentSize // // Created by Tom Adriaenssen on 27/11/14. // Copyright (c) 2014 Tom Adriaenssen. All rights reserved. // import UIKit class TestView: UIView { override func intrinsicContentSize() -> CGSize { return CGSizeMake(100, 200) } }
[ -1 ]
6c30051efaac410dd47abbcbcc5050000191d05a
c3f2aad4f2bfe34f7d7287220ec9a42622631af7
/Tecoller/Controllers/SettingsViewController.swift
581ea632fa439860e1e7e1265822e7313c1a7fbb
[]
no_license
DaikiShiwa/Tecoller
2983ec6d20d26147f1b50429dbc87e1babef2e53
a26f32b40c41a855e81bf7ce2ad445871ac5c3fd
refs/heads/master
2020-04-09T18:40:32.266197
2018-12-05T13:24:18
2018-12-05T13:24:18
160,520,083
0
0
null
null
null
null
UTF-8
Swift
false
false
399
swift
// // SettingsViewController.swift // Tecoller // // Created by 志波大輝 on 2018/11/28. // Copyright © 2018 志波大輝. All rights reserved. // import UIKit class SettingsViewController: UIViewController, UITableViewDelegate { @IBOutlet weak var tableView: UITableView! override func viewDidLoad() { super.viewDidLoad() tableView.delegate = self } }
[ -1 ]
a979d97e7f0d58bcc6d10d30f1a16964563e030f
48f87953d331aa988ad1999c6d93b7f8e823910f
/DabangClone/DabangClone/MoreView/Controller/BaseInfoViewController.swift
21337770ba564ec571a72f92c55b73ffa39f2708
[]
no_license
8secz-johndpope/DaBangClone_TeamProject
f0d1f5d541b964a9a925fad37c609767948adb19
010ecbb8cceb74526c504cc5adb38558159660f2
refs/heads/master
2022-04-13T08:00:55.095142
2020-04-11T04:23:58
2020-04-11T04:23:58
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,620
swift
// // BaseInfoViewController.swift // DabangClone // // Created by 정의석 on 2020/03/30. // Copyright © 2020 pandaman. All rights reserved. // import UIKit class BaseInfoViewController: UIViewController { let infoView = BaseInfoView() override func viewDidLoad() { super.viewDidLoad() view.backgroundColor = .white notificationReserve() } override func viewWillLayoutSubviews() { super.viewWillLayoutSubviews() setupUI() } private func setupUI() { view.addSubview(infoView) setupConstraints() } private func setupConstraints() { infoView.snp.makeConstraints { $0.edges.equalTo(view.safeAreaLayoutGuide) } } //MARK: - Actions private func notificationReserve() { NotificationCenter.default.addObserver(self, selector: #selector(didTapEnableButton), name: NSNotification.Name(rawValue: "Enable"), object: nil) NotificationCenter.default.addObserver(self, selector: #selector(didTapEnableButton), name: NSNotification.Name(rawValue: "Input"), object: nil) } @objc private func didTapInputButton(_ notification: Notification) { if let buttontitle = notification.userInfo as Dictionary? { if let title = buttontitle["buttonTitle"] as? String { print(title) } } } @objc private func didTapEnableButton(_ notification: Notification) { if let buttontitle = notification.userInfo as Dictionary? { if let title = buttontitle["buttonTitle"] as? String { print(title) } } } @objc private func didTapParkingEnableButton() { print("주차") } }
[ -1 ]
d1e1baea61b97486bba8fbeda5de05c9082124a9
316f821deaceade065e81da11462f1af40d7ae2d
/ios/RNTChatView/ChatView/MessageList/model/Message.swift
0f76e67d8aee3c1fd0bbd813f459dcbf73658c0f
[ "MIT" ]
permissive
musicode/react-native-pure-chat-view
4a49b57a8520e7973c32154881517150d8500458
5ea75050e7a11bd8ee05736822fddf5ed27ca42d
refs/heads/master
2022-09-30T23:33:31.034472
2022-09-19T01:57:04
2022-09-19T01:57:04
160,155,074
6
0
null
null
null
null
UTF-8
Swift
false
false
885
swift
import Foundation @objc public class Message: NSObject { @objc public var id: String @objc public var user: User @objc public var status: MessageStatus @objc public var time: String // 是否可以复制 @objc public var canCopy: Bool // 是否可以转发 @objc public var canShare: Bool // 是否可以撤回 @objc public var canRecall: Bool // 是否可以删除 @objc public var canDelete: Bool public init(id: String, user: User, status: MessageStatus, time: String, canCopy: Bool, canShare: Bool, canRecall: Bool, canDelete: Bool) { self.id = id self.user = user self.status = status self.time = time self.canCopy = canCopy self.canShare = canShare self.canRecall = canRecall self.canDelete = canDelete } }
[ -1 ]
e0eb9ab265d64b20ce118e22eb743780770236ea
5f399ebc947f850693f7cf337b219df7da3878bf
/XyloLearn/Controllers/ImageSizeExtension.swift
eb3090e4a836dfeebca38de60692f6953a8c84b3
[]
no_license
DN2511/XyoLearn
c63f09e4c567c92608623ac1234290cda7254d57
454b10addbf25fdb5e87129c30cbc3f7f9b08894
refs/heads/master
2023-03-09T06:35:17.686656
2020-12-11T23:03:04
2020-12-11T23:03:04
267,995,257
1
0
null
null
null
null
UTF-8
Swift
false
false
649
swift
// // ImageSizeExtension.swift // XyloLearn // // Created by Deepanshu Nautiyal on 21/9/20. // Copyright © 2020 Deepanshu Nautiyal. All rights reserved. // import Foundation import UIKit import ImageIO extension UIImageView { func gifSize(){ let imageView = UIImageView() imageView.frame.origin = CGPoint(x: 8, y: frame.height + frame.origin.y + 8) imageView.frame.size = CGSize(width: frame.width - 16 , height: frame.height - 16) imageView.image = image imageView.layer.cornerRadius = 4 imageView.clipsToBounds = true addSubview(imageView) } }
[ -1 ]
2fdefb0e07dd87edc26ca43255e8cb0e61511364
61875177319172f909d28af927936e22dcccefe4
/abcTests/abcTests.swift
dd3b0c73f86fd9b3da73d66f589fe15958b8a44e
[]
no_license
jizhaoxin/abc
d004aa9ad05eedbfbbf3926c97bf07570cb6e54d
24d2ff8c903a9664244853f572eeb26d9e5a8764
refs/heads/master
2020-04-12T09:12:58.893344
2018-12-19T06:57:02
2018-12-19T06:57:02
162,395,507
0
0
null
null
null
null
UTF-8
Swift
false
false
888
swift
// // abcTests.swift // abcTests // // Created by 季兆欣 on 2018/12/19. // Copyright © 2018年 季兆欣. All rights reserved. // import XCTest @testable import abc class abcTests: XCTestCase { override func 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. } func testExample() { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testPerformanceExample() { // This is an example of a performance test case. self.measure { // Put the code you want to measure the time of here. } } }
[ 98333, 16419, 229413, 204840, 278570, 344107, 253999, 319542, 229430, 352315, 352326, 254027, 311372, 311374, 196691, 278615, 254048, 319591, 278634, 131178, 319598, 352368, 204916, 131191, 237689, 131198, 278655, 319629, 311438, 278677, 278685, 311458, 278691, 49316, 32941, 278704, 278708, 131256, 180408, 295098, 254170, 327904, 385262, 286958, 327929, 180493, 278797, 254226, 237856, 278816, 278842, 287041, 139589, 319813, 319821, 254286, 344401, 155990, 106847, 246127, 139640, 246137, 106874, 246136, 311691, 246178, 311727, 377264, 311738, 278970, 319930, 336317, 311745, 278978, 254406, 188871, 278989, 278993, 278999, 328152, 369116, 287198, 279008, 279013, 279018, 311786, 319981, 319987, 279029, 254456, 279032, 279039, 287241, 279050, 279062, 254488, 279065, 377386, 197167, 352829, 115270, 377418, 66150, 344680, 295536, 287346, 279164, 189057, 311941, 279177, 369289, 344715, 311949, 311954, 352917, 230040, 271000, 295576, 344738, 279206, 295590, 287404, 295599, 303793, 164533, 287417, 66242, 279252, 295652, 418546, 312052, 312053, 344827, 221948, 279294, 205568, 295682, 312079, 295697, 336671, 344865, 279336, 295724, 353069, 312108, 328499, 353078, 230199, 353079, 336702, 295746, 353094, 353095, 353109, 230234, 303972, 246641, 246648, 361337, 279417, 254850, 287622, 58253, 426895, 295824, 189348, 353195, 140204, 353197, 230332, 353215, 353216, 213960, 279498, 50143, 123881, 304110, 320494, 287731, 295927, 304122, 320507, 328700, 312314, 328706, 320516, 230410, 320527, 238610, 418837, 320536, 197657, 336929, 345132, 238639, 238651, 214086, 361543, 238664, 296019, 353367, 156764, 156765, 230499, 312434, 353397, 337017, 279685, 222343, 296086, 296092, 238765, 279728, 337077, 230588, 353479, 353480, 353481, 353482, 189652, 189653, 148696, 296153, 279774, 304351, 304356, 222440, 328940, 279792, 353523, 353524, 320770, 279814, 328971, 312587, 320796, 115998, 369956, 279854, 345396, 116026, 312634, 222524, 312635, 279875, 345415, 312648, 230729, 238927, 296273, 222559, 230756, 230765, 296303, 279920, 312689, 116084, 181625, 378244, 304524, 296335, 9619, 279974, 173491, 279989, 304577, 280004, 361927, 370123, 148940, 280013, 312782, 222675, 353750, 280041, 361963, 329200, 321009, 280055, 288249, 230913, 329225, 230921, 329232, 304656, 230959, 312880, 288309, 312889, 288318, 124485, 288326, 288327, 280147, 157281, 345700, 312940, 222832, 247416, 337535, 312965, 288392, 239250, 345752, 255649, 206504, 321199, 321207, 337591, 296632, 280251, 321219, 280267, 9936, 313041, 9937, 280278, 181975, 280280, 18138, 321247, 321249, 345833, 280300, 313081, 124669, 280329, 321295, 321302, 116505, 321310, 255776, 313120, 247590, 321337, 280392, 345929, 337745, 337747, 18262, 362327, 370522, 345951, 362337, 345955, 296806, 288619, 296814, 313199, 362352, 313203, 124798, 182144, 305026, 67463, 329622, 337815, 124824, 214937, 354212, 313254, 124852, 288697, 214977, 280514, 321480, 214984, 247757, 231375, 280541, 313319, 337895, 247785, 296941, 124911, 362480, 329712, 223218, 313339, 354316, 313357, 182296, 305179, 239650, 329765, 354343, 354345, 223274, 321583, 124975, 346162, 124984, 288828, 288833, 288834, 313416, 354385, 280661, 329814, 338007, 354393, 280675, 321637, 329829, 280677, 313447, 43110, 288879, 280694, 223350, 288889, 215164, 313469, 215166, 280712, 215178, 346271, 239793, 125109, 182456, 379071, 280768, 338119, 346314, 321745, 280795, 338150, 346346, 321772, 125169, 338164, 125183, 125188, 313608, 125193, 321800, 125198, 125199, 125203, 338197, 125208, 305440, 125217, 338218, 321840, 125235, 280887, 125240, 182597, 182598, 280902, 289110, 305495, 215385, 272729, 379225, 354655, 321894, 280939, 313713, 354676, 313727, 362881, 240002, 248194, 395659, 395661, 108944, 240016, 141728, 289189, 108972, 281037, 281040, 289232, 256477, 330218, 281072, 109042, 289304, 322078, 207393, 182817, 338490, 322120, 281166, 354911, 436832, 191082, 313966, 281199, 313971, 330379, 330387, 346772, 330388, 363163, 338613, 289462, 314040, 109241, 158394, 248517, 363211, 289502, 363230, 338662, 330474, 346858, 289518, 322291, 199414, 35583, 363263, 191235, 264968, 322313, 322316, 117517, 322319, 166676, 207640, 281377, 355130, 355139, 420677, 355146, 355154, 281427, 281433, 322395, 355165, 109409, 355178, 330609, 174963, 109428, 207732, 240518, 109447, 355217, 289690, 240544, 256935, 289703, 240552, 289722, 330689, 363458, 338899, 330708, 248796, 248797, 207838, 314342, 52200, 289774, 240630, 314362, 134150, 330763, 330772, 281626, 175132, 248872, 322612, 314436, 314448, 339030, 281697, 314467, 281700, 322663, 281706, 207979, 363641, 363644, 150657, 248961, 339100, 339102, 306346, 339130, 290000, 298212, 290022, 330984, 298228, 216315, 208124, 363771, 388349, 322824, 126237, 208164, 109861, 298291, 306494, 216386, 224586, 372043, 331090, 314709, 314710, 134491, 314720, 314726, 314728, 306542, 314739, 249204, 314741, 249205, 290169, 314751, 306559, 224640, 306560, 314758, 388487, 298374, 314760, 314766, 306579, 224661, 282007, 314783, 290207, 314789, 314791, 282024, 241066, 314798, 150965, 380357, 306631, 191981, 282096, 191990, 290301, 282114, 306692, 306693, 323080, 323087, 323089, 175639, 282141, 282146, 306723, 347694, 290358, 282183, 224847, 118353, 224851, 290390, 44635, 323172, 282213, 323178, 224883, 314998, 323196, 175741, 224901, 282245, 323207, 282246, 290443, 323217, 282259, 257699, 323236, 298661, 282280, 61101, 364207, 224946, 224958, 282303, 323264, 306890, 241361, 241365, 298712, 298720, 12010, 282348, 323316, 282358, 175873, 323331, 323332, 216839, 323346, 249626, 282400, 241441, 241442, 339745, 315171, 257830, 282417, 200498, 282427, 315202, 307011, 282438, 339783, 159562, 413521, 241495, 307039, 282480, 241528, 315264, 339841, 241540, 315273, 315274, 282518, 282519, 118685, 298909, 323507, 200627, 298980, 282633, 241692, 102437, 315432, 315434, 233517, 102445, 176175, 282672, 241716, 241720, 315465, 315476, 307289, 200794, 356447, 315498, 299121, 233589, 233590, 241808, 323729, 233636, 241843, 184505, 299198, 258239, 299203, 282831, 356576, 176362, 356602, 184570, 315673, 299293, 233762, 217380, 151847, 282919, 332083, 332085, 332089, 315706, 282939, 241986, 332101, 323916, 348492, 282960, 323920, 250192, 348500, 168281, 332123, 323935, 332127, 242023, 242029, 160110, 242033, 291192, 315773, 291198, 225670, 332167, 242058, 291224, 283038, 242078, 61857, 315810, 61859, 315811, 381347, 340398, 61873, 299441, 61880, 283064, 291265, 127427, 127428, 283075, 291267, 324039, 176601, 242139, 160225, 242148, 242149, 127465, 233978, 348682, 340490, 291358, 283184, 234036, 315960, 348732, 242237, 348742, 348749, 332378, 242277, 111208, 291454, 348806, 184973, 316049, 111253, 316053, 111258, 111259, 299699, 299700, 242386, 299746, 299759, 299776, 291592, 291604, 291612, 152365, 242485, 299849, 283467, 201549, 242529, 275303, 201577, 177001, 242541, 209783, 209785, 177019, 316298, 349067, 308107, 308112, 209817, 324506, 324507, 127902, 324517, 316333, 316343, 349121, 316364, 340955, 340961, 324586, 340974, 316405, 349175, 201720, 357379, 324625, 308243, 316437, 201755, 300068, 357414, 300084, 324666, 324667, 21569, 300111, 341073, 250981, 300136, 316520, 316526, 357486, 300150, 300151, 160891, 341115, 300158, 349316, 349318, 177296, 169104, 308372, 324760, 119962, 300187, 300188, 283802, 300201, 300202, 259268, 283847, 62665, 283852, 283853, 333011, 316627, 357595, 333022, 234733, 292091, 316669, 242954, 292107, 251153, 177428, 349462, 333090, 300343, 333117, 193859, 300359, 177484, 251213, 120148, 283991, 357719, 316765, 292195, 333160, 243056, 316787, 111993, 112017, 112018, 234898, 357786, 333220, 316842, 210358, 284089, 292283, 415171, 300487, 300489, 284107, 366037, 210390, 210391, 210392, 210393, 144867, 103909, 316902, 54765, 251378, 333300, 300536, 300542, 210433, 366083, 292356, 316946, 398869, 374296, 308764, 349726, 349741, 169518, 235070, 194110, 349763, 292423, 292425, 243274, 128587, 333388, 333393, 300630, 235095, 128599, 333408, 374372, 243307, 54893, 325231, 333430, 366203, 325245, 218819, 333509, 333517, 333520, 333521, 333523, 325346, 153319, 284401, 325371, 194303, 194304, 284429, 284431, 243472, 161554, 366360, 284442, 325404, 325410, 341796, 333610, 284459, 317232, 259899, 325439, 325445, 153415, 341836, 325457, 317269, 284507, 300894, 284514, 276327, 292712, 325484, 292720, 325492, 317304, 333688, 194429, 325503, 55167, 333701, 243591, 325515, 243597, 325518, 292771, 300963, 333735, 284587, 292782, 317360, 243637, 284619, 219101, 292836, 317415, 325619, 333817, 292858, 317467, 145435, 292902, 325674, 243759, 358456, 325694, 309345, 333940, 284788, 292992, 333955, 235662, 325776, 317587, 284826, 333991, 333992, 284842, 333996, 227513, 301251, 309444, 227524, 194782, 317664, 243962, 309503, 194820, 375051, 325905, 334103, 325912, 227616, 211235, 325931, 260418, 325968, 6481, 366929, 366930, 6489, 334171, 391520, 317820, 211326, 227725, 39324, 121245, 317852, 285084, 285090, 375207, 334260, 293310, 342466, 317901, 6606, 334290, 326100, 285150, 342498, 195045, 301571, 342536, 342553, 375333, 293419, 244269, 23092, 301638, 55881, 244310, 244327, 301689, 244347, 326287, 334481, 227990, 342682, 318130, 342706, 342713, 285373, 154316, 334547, 96984, 318173, 285415, 129773, 154359, 162561, 285444, 326414, 326429, 293664, 326433, 318250, 318252, 285487, 301871, 293693, 342847, 252741, 318278, 293711, 244568, 244570, 293730, 351077, 342887, 326505, 400239, 310131, 269178, 359298, 359299, 416646, 113542, 228233, 228234, 236428, 56208, 318364, 310182, 236461, 293806, 252847, 326601, 130016, 64485, 203757, 383982, 277492, 293893, 146448, 326685, 252958, 252980, 359478, 302139, 359495, 253029, 228458, 318572, 15471, 187506, 285820, 187521, 302213, 228491, 228493, 285838, 162961, 326804, 285851, 302240, 343203, 253099, 318639, 367799, 64700, 228540, 228542, 343234, 367810, 244940, 228563, 359647, 228588, 253167, 228609, 318733, 245019, 130338, 130343, 130348, 351537, 171317, 326966, 318775, 286013, 286018, 294218, 318805, 294243, 163175, 327024, 327025, 327031, 318848, 294275, 368011, 318875, 310692, 245161, 286129, 228795, 302529, 302531, 163268, 310732, 302540, 64975, 310736, 327121, 228827, 286172, 310757, 187878, 245223, 343542, 343543, 286205, 228867, 253451, 253452, 359950, 146964, 187938, 245287, 245292, 286254, 425535, 56902, 228943, 196187, 343647, 286306, 204397, 138863, 294529, 229001, 310923, 188048, 302739, 229020, 245412, 40613, 40614, 40615, 229029, 319162, 327358, 286399, 319177, 212685, 245457, 302802, 278234, 294622, 278240, 229088, 212716, 212717, 294638, 360177, 286459, 278272, 319233, 278291, 294678, 294700, 319292, 360252, 188251, 245599, 237408, 302946, 188292, 327557, 253829, 294807, 311199, 253856, 319392, 294823, 294843, 188348, 98239, 163781, 344013, 212942, 212946, 212951, 360417, 294886, 253929, 327661, 278512, 311281, 311282 ]
84a54ccdedd6ed744da0dd138ccb4d1043fb7083
e0dbe130fcdef9c4c0b6992f5dd511d4d8021c91
/Irairabo1/GameScene3.swift
e68413e138ecc56aaf9262efb85273dd3b2593c5
[]
no_license
tatsuki0323/irairabo
fa8a4bb99f235daadb957d4d65dde04aeeb769b5
92c982f53d38f4f3a41a1bbec65380877b90e80d
refs/heads/master
2021-01-10T21:55:10.035763
2015-10-14T06:16:49
2015-10-14T06:16:49
34,304,096
0
0
null
null
null
null
UTF-8
Swift
false
false
10,780
swift
// // GameScene2.swift // Irairabo1 // // Created by 川崎 樹 on 2015/09/10. // Copyright (c) 2015年 川崎 樹. All rights reserved. // import SpriteKit import AVFoundation class GameScene3: SKScene,SKPhysicsContactDelegate,AVAudioPlayerDelegate{ private var myAudioPlayer : AVAudioPlayer! private var back = SKSpriteNode(imageNamed:"sampleStage2")//背景 private var ball = SKSpriteNode(imageNamed:"sampleBall2")//ボール画像 private var sky1 = SKSpriteNode(imageNamed:"sky1")//背景 private var sky2 = SKSpriteNode(imageNamed:"sky2")//背景 private var obstacle2 = SKSpriteNode(imageNamed:"obstacle2")//障害物画像 private var obstacle3 = SKSpriteNode(imageNamed:"obstacle2")//障害物画像 //private let frictionCircle = SKShapeNode()//当たり判定用の円 private var last: CFTimeInterval! let stageLabel = SKLabelNode(fontNamed: "Chalkduster")//左上のステージラベル let startStageLabel = SKLabelNode(fontNamed: "Chalkduster")//今のステージを表示するラベル override func didMoveToView(view: SKView) { //再生する音源のURLを生成. let soundFilePath : NSString = NSBundle.mainBundle().pathForResource("bgm_pop", ofType: "mp3")! let fileURL : NSURL = NSURL(fileURLWithPath: soundFilePath as String) //AVAudioPlayerのインスタンス化. myAudioPlayer = try? AVAudioPlayer(contentsOfURL: fileURL) //AVAudioPlayerのデリゲートをセット. myAudioPlayer.delegate = self myAudioPlayer.play() //背景1 sky1.name = "sky1" sky1.physicsBody?.dynamic = false//動かないようにする //back.position = CGPointMake(-self.size.width*0.3,self.size.height*0.5) sky1.position = CGPointMake(self.size.width/2,self.size.height/2) self.addChild(sky1) //背景2 sky2.name = "sky2" sky2.physicsBody?.dynamic = false//動かないようにする sky2.position = CGPointMake(-self.size.width*0.5,self.size.height*0.5) self.addChild(sky2) //ステージ back.name = "back" back.physicsBody = SKPhysicsBody(texture: SKTexture(imageNamed: "sampleStage2.png"),size:back.size) back.physicsBody?.dynamic = false//動かないようにする //back.position = CGPointMake(-self.size.width*0.3,self.size.height*0.5) back.position = CGPointMake(self.size.width*0,self.size.height*0.5) self.addChild(back) //重力設定 self.physicsWorld.gravity = CGVector(dx:0,dy:0) self.physicsWorld.contactDelegate = self //ボール作成 ball.name = "ball" //ball.physicsBody = SKPhysicsBody(texture: SKTexture(imageNamed: "sampleBall2.png"),size:ball.size) ball.physicsBody = SKPhysicsBody(circleOfRadius: 48) ball.physicsBody?.contactTestBitMask = 1 ball.position = CGPointMake(self.size.width*0.60,self.size.height*0.5) self.addChild(ball) //時計回りの障害物作成 obstacle2.name = "obstacle2" obstacle2.physicsBody = SKPhysicsBody(texture: SKTexture(imageNamed: "obstacle2.png"),size:obstacle2.size) //obstacle2.physicsBody?.contactTestBitMask = 0 //obstacle2.physicsBody?.categoryBitMask = 0 obstacle2.physicsBody?.collisionBitMask = 0 obstacle2.position = CGPointMake(0,self.size.height*0.5) self.addChild(obstacle2) //反時計周りの障害物作成 obstacle3.name = "obstacle3" obstacle3.physicsBody = SKPhysicsBody(texture: SKTexture(imageNamed: "obstacle2.png"),size:obstacle3.size) //obstacle3.physicsBody?.contactTestBitMask = 0 //obstacle3.physicsBody?.categoryBitMask = 0 obstacle3.physicsBody?.collisionBitMask = 0 obstacle3.position = CGPointMake(-500,self.size.height*0.5) self.addChild(obstacle3) //ステージ数を左上に表示 stageLabel.text = "すてーじ3" stageLabel.fontSize = 20 //stageLabel3.position = CGPoint(x:CGRectGetMidX(self.frame)*0.7, y:CGRectGetMidY(self.frame)*2-50) stageLabel.position = CGPoint(x:300, y:750) stageLabel.name = "Stage3" self.addChild(stageLabel) //ステージのはじめに表示 startStageLabel.text = "すてーじ3" startStageLabel.fontSize = 20 startStageLabel.fontColor = UIColor.blueColor() startStageLabel.position = CGPoint(x:self.size.width*0.5,y:self.size.height*0.8) startStageLabel.name = "CurrentStage3" self.addChild(startStageLabel) let labelFadeOutAction = SKAction.fadeAlphaTo(0, duration: 1.5) startStageLabel.runAction(labelFadeOutAction) } override func touchesMoved(touches: Set<UITouch>,withEvent event: UIEvent?){//ドラッグ処理 // タッチイベントを取得. let aTouch = touches.first! as UITouch // 移動した先の座標を取得. let location = aTouch.locationInView(self.view) // 移動する前の座標を取得. let prevLocation = aTouch.previousLocationInView(self.view) // ドラッグで移動したx, y距離をとる. let deltaX: CGFloat = location.x - prevLocation.x let deltaY: CGFloat = -(location.y - prevLocation.y) // 移動した分の距離をmyFrameの座標にプラス、マイナスする. ball.position.x += deltaX ball.position.y += deltaY } func didBeginContact(contact: SKPhysicsContact) { if let nodeA = contact.bodyA.node { if let nodeB = contact.bodyB.node { if (nodeA.name == "back" || nodeB.name == "back" || nodeA.name == "obstacle2" || nodeB.name == "obstacle2" || nodeA.name == "obstacle3" || nodeB.name == "obstacle3" ) && (nodeA.name == "ball" || nodeB.name == "ball") { //ここに衝突が発生したときの処理を書く startStageLabel.removeFromParent() ball.removeFromParent() back.removeFromParent() sky1.removeFromParent() sky2.removeFromParent() obstacle2.removeFromParent() obstacle3.removeFromParent() //画面線した場合にまたラベルを表示させる startStageLabel.alpha = 1.0 // lastが未定義ならば、今の時間を入れる。 myAudioPlayer.stop()//BGMストップ let tr = SKTransition.revealWithDirection(SKTransitionDirection.Down, duration: 1) let newScene = GameOverScene3(size: self.scene!.size) newScene.scaleMode = SKSceneScaleMode.AspectFill self.view?.presentScene(newScene, transition: tr) } /* if (nodeA.name == "back" || nodeB.name == "back" ) && (nodeA.name == "frictionCircle" || nodeB.name == "frictionCircle") { //ぶつかりそうになったときの処理を書く //パーティクルの作成 let bombParticle = SKEmitterNode(fileNamed: "BombParticle.sks") self.addChild(bombParticle) //1秒後にパーティクルを削除する ぶつかるたびにパーティクルが増えて重くなる var removeAction = SKAction.removeFromParent() var durationAction = SKAction.waitForDuration(1) var sequenceAction = SKAction.sequence([durationAction,removeAction]) bombParticle.runAction(sequenceAction) //ボールの位置にパーティクル移動 bombParticle.position = CGPoint(x:ball.position.x, y:ball.position.y-50) bombParticle.alpha = 1 var fadeAction = SKAction.fadeAlphaTo(0, duration: 1.0) bombParticle.runAction(fadeAction) } */ } } } override func update(currentTime: CFTimeInterval) {//毎時行うメソッド。画面遷移する際に1秒他の動作をしないようにする // lastが未定義ならば、今の時間を入れる。 if !(last != nil) { last = currentTime } if last + 1 <= currentTime { if back.position.x >= self.size.width + 600{//ゲームをクリアした場合 myAudioPlayer.stop()//BGM終了 startStageLabel.alpha = 1.0; startStageLabel.removeFromParent() ball.removeFromParent() back.removeFromParent() sky1.removeFromParent() sky2.removeFromParent() obstacle2.removeFromParent() obstacle3.removeFromParent() let tr = SKTransition.revealWithDirection(SKTransitionDirection.Down, duration: 1) let newScene = GameClearScene3(size: self.scene!.size) newScene.scaleMode = SKSceneScaleMode.AspectFill last = currentTime//lastを初期化 self.view?.presentScene(newScene, transition: tr) } } back.position.x += 1 obstacle2.position.x += 1 obstacle2.position.y = self.size.height*0.5 obstacle2.zRotation += DegreeToRadian(0.5) obstacle3.position.x += 1 obstacle3.position.y = self.size.height*0.5 obstacle3.zRotation -= DegreeToRadian(0.5) sky1.position.x += 1 sky2.position.x += 1 if(sky1.position.x >= self.size.width*1.5){ sky1.position.x = -self.size.width*0.5 } if(sky2.position.x >= self.size.width*1.5){ sky2.position.x = -self.size.width*0.5 } } /* 度数からラジアンに変換するメソッド */ func DegreeToRadian(Degree : Double!)-> CGFloat{ return CGFloat(Degree) / CGFloat(180.0 * M_1_PI) } }
[ -1 ]
3a66d6ebc8bc5fcae38dde76f891b7e7e8fa3131
40aa542d563cbcdfdd0c677ab1e0831eab100fa9
/Bill's burger.playground/Contents.swift
c06bfc0070115388c1c1019a72114ff6499ee2a7
[]
no_license
acepele/Bill-s-burger
5ffbed5228bdcd1c8030ec04a0d496b201156779
00ee0db711adc4d7a7b21e135f6ae59eaa080bee
refs/heads/main
2023-08-21T22:40:28.592953
2021-10-13T19:19:21
2021-10-13T19:19:21
416,870,027
0
0
null
null
null
null
UTF-8
Swift
false
false
898
swift
import UIKit enum Meat { case chicken case turkey case beef case salami } enum Vegetables { case tomato case cucumber case lettuce case onion } enum Bread { case white, multigrain //shorthand syntax } enum Cheese { case cheddar, fetta, mozzarella //shorthand syntax } var burger = Meat.chicken var choose = Vegetables.tomato var type = Bread.multigrain var special = Cheese.cheddar print("I want my burger to have \(burger) and a slice of \(choose) in a \(type) bread with \(special) cheese.") //optionals var quantity: Int? if let pieces = quantity { print("You have ordered \(pieces) burgers.") } else { print("Sorry, you need to input the quantity of burgers you want.") } //struct struct Food { let order: Int var name = "" var price: Int } var food = Food(order: 2, name: "Bill Burger Bistro", price: 10) print(food)
[ -1 ]
ae3efbf44c86f6a13c91091c0e1c2d534789a74a
9f9bb47867a5ac9a207af0a4132d54f4b988f79d
/Herd/Herd/AudioKit/Examples/iOS/SongProcessor/SongProcessor/View Controllers/iTunes Library Access/AlbumsViewController.swift
6b16abecfcb0262b05e7ed6ce4bc3e9d46e24032
[ "MIT" ]
permissive
FrozenFireStudios/herd
eb403c49a18fd13057c47ddaad56d560b1813cbc
8c59ee92a91e40f586faf612ff786dac965ce812
refs/heads/master
2020-09-19T12:19:32.569675
2016-08-24T15:18:46
2016-08-24T15:18:46
66,424,268
2
0
null
null
null
null
UTF-8
Swift
false
false
2,318
swift
// // AlbumsViewController.swift // SongProcessor // // Created by Aurelius Prochazka on 6/22/16. // Copyright © 2016 AudioKit. All rights reserved. // import UIKit import AVFoundation import MediaPlayer class AlbumsViewController: UITableViewController { var artistName: String! var albumsList = [MPMediaItemCollection]() override func viewDidLoad() { super.viewDidLoad() let artistPredicate = MPMediaPropertyPredicate(value: artistName, forProperty: MPMediaItemPropertyArtist, comparisonType: .Contains) let albumsQuery = MPMediaQuery.albumsQuery() albumsQuery.addFilterPredicate(artistPredicate) if let list = albumsQuery.collections { albumsList = list tableView.reloadData() } } // MARK: - Table view data source override func numberOfSectionsInTableView(tableView: UITableView) -> Int { return 1 } override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return albumsList.count } override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cellIdentifier = "AlbumCell" let cell = tableView.dequeueReusableCellWithIdentifier(cellIdentifier) ?? UITableViewCell(style: .Default, reuseIdentifier: cellIdentifier) // Configure the cell... let repItem = albumsList[indexPath.row].representativeItem! let albumTitle = repItem.valueForProperty(MPMediaItemPropertyAlbumTitle) as! String cell.textLabel?.text = albumTitle return cell } // MARK: - Navigation override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) { if segue.identifier == "SongsSegue" { let senderCell = sender as! UITableViewCell let songsVC = segue.destinationViewController as! SongsViewController songsVC.artistName = artistName songsVC.albumName = senderCell.textLabel?.text songsVC.title = senderCell.textLabel?.text } } }
[ -1 ]
f0ba528f65ba53b3c21805c5b4d914935483376e
9e90e3e0ed3af3003b46d4638721920e6649ec3a
/TextureBaseRxSwift/TextureBase/Classes/Sections/Select/View/SelectSectionItemCellNode.swift
4c632afcd15c96f2c53aea6dc30bcd84039021b2
[ "MIT" ]
permissive
JQHee/TextureBase
877b8f9ca3972e073b997beb2b91ebb6484ca5f8
2cb561d0748b9b1a025e0791b57982b58ecf3c5a
refs/heads/master
2020-04-10T20:13:24.798175
2019-06-10T03:52:22
2019-06-10T03:52:22
161,260,652
0
1
null
null
null
null
UTF-8
Swift
false
false
1,523
swift
// // SelectSectionItemCellNode.swift // TextureBase // // Created by HJQ on 2018/12/16. // Copyright © 2018 ml. All rights reserved. // import UIKit import AsyncDisplayKit class SelectSectionItemCellNode: ASCellNode { var item: AWSelectInfo? { didSet { imageNode.url = URL.init(string: item?.imgUrl.appropriateImageURLSting() ?? "") textNode.attributedText = (" " + (item?.title ?? "")).nodeAttributes(color: UIColor.white, font: UIFont.systemFont(ofSize: 14)) } } override init() { super.init() setupUI() } override func layoutSpecThatFits(_ constrainedSize: ASSizeRange) -> ASLayoutSpec { imageNode.style.preferredSize = CGSize.init(width: 267, height: 113) textNode.style.flexShrink = 1 let verStackLayout = ASStackLayoutSpec.vertical() verStackLayout.justifyContent = .end verStackLayout.alignItems = .stretch verStackLayout.children = [textNode] let overlayLayout = ASOverlayLayoutSpec.init(child: imageNode, overlay: verStackLayout) return overlayLayout } // MARK: - Private methods private func setupUI() { addSubnode(imageNode) addSubnode(textNode) imageNode.contentMode = .scaleAspectFill textNode.maximumNumberOfLines = 1 textNode.backgroundColor = UIColor.black.withAlphaComponent(0.2) } // MARK: - Lazy load lazy var imageNode = BFNetworkImageNode() lazy var textNode = ASTextNode() }
[ -1 ]
5c872244d0c5a7a13594ccc7fcceffa1de4c1597
1821706d2966e52f5799ca51cbad3bbe3cd0e487
/Example/Tests/Tests.swift
abb62720526bfb1543087af619f542a90cf9c261
[ "MIT" ]
permissive
yunhao-qing/GenderClassifierFor10
b9b5dcbc9144f8841ee1647e0a0c7e6e0d3ad999
67df94e5589ba1b59d27bb92ece078bada7001af
refs/heads/master
2020-04-22T13:13:34.087585
2019-02-12T22:31:19
2019-02-12T22:31:19
170,401,772
0
0
null
null
null
null
UTF-8
Swift
false
false
758
swift
import XCTest import GenderClassifierFor10 class Tests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is called before the invocation of each test method in the class. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testExample() { // This is an example of a functional test case. XCTAssert(true, "Pass") } func testPerformanceExample() { // This is an example of a performance test case. self.measure() { // Put the code you want to measure the time of here. } } }
[ 276492, 305179, 278558, 307231, 313375, 102437, 227370, 360491, 276533, 276534, 159807, 276543, 286788, 280649, 223316, 315476, 223318, 288857, 227417, 278618, 194652, 194656, 276577, 309345, 227428, 43109, 276582, 276585, 223340, 276589, 278638, 227439, 276592, 131189, 223350, 276603, 276606, 292992, 141450, 311435, 215178, 311438, 276627, 276631, 276632, 184475, 227492, 196773, 129203, 299187, 131256, 176314, 280762, 223419, 299198, 309444, 227528, 276682, 276687, 278742, 278746, 280802, 276709, 276710, 276715, 233715, 157944, 227576, 211193, 168188, 276753, 276760, 309529, 278810, 299293, 282919, 262450, 276792, 315706, 278846, 164162, 311621, 280902, 278856, 227658, 276813, 278863, 6481, 6482, 276821, 6489, 323935, 276835, 321894, 416104, 276847, 285040, 278898, 280961, 178571, 227725, 178578, 190871, 293274, 61857, 61859, 278954, 278961, 278965, 293303, 276920, 278969, 33211, 276925, 278978, 278985, 111056, 278993, 287198, 227809, 358882, 227813, 279013, 279022, 281072, 279039, 276998, 287241, 279050, 186893, 303631, 223767, 223769, 277017, 291358, 277029, 293419, 277048, 277049, 301634, 369220, 277066, 295519, 66150, 277094, 166507, 277101, 287346, 277111, 279164, 277118, 291454, 184962, 303746, 152203, 225933, 277133, 133774, 225936, 277138, 277141, 277142, 230040, 164512, 225956, 285353, 225962, 209581, 205487, 285361, 303793, 154291, 299699, 293556, 154294, 342706, 166580, 285371, 199366, 225997, 164563, 277204, 226004, 203477, 279252, 226007, 119513, 363231, 201442, 226019, 285415, 342762, 277227, 230134, 234234, 209660, 279294, 234241, 226051, 209670, 277254, 226058, 234250, 234253, 234256, 234263, 369432, 234268, 105246, 228129, 234277, 234280, 279336, 289576, 234283, 277289, 234286, 234289, 234294, 230199, 234301, 162621, 289598, 234304, 281408, 162626, 293693, 277316, 234311, 234312, 299849, 234317, 277325, 277327, 293711, 234323, 234326, 277339, 234331, 301918, 234335, 279392, 297822, 349026, 297826, 234340, 234343, 234346, 234349, 277360, 234355, 213876, 277366, 234360, 234361, 279417, 209785, 177019, 277370, 234366, 234367, 226170, 158593, 234372, 226181, 113542, 213894, 226184, 234377, 277381, 228234, 234381, 226189, 295824, 226194, 234387, 234386, 234392, 324507, 279456, 234400, 277410, 234404, 289703, 234409, 275371, 234412, 236461, 226222, 234419, 226227, 234425, 234427, 277435, 287677, 234430, 234436, 275397, 234438, 226249, 52172, 234444, 234445, 183248, 234450, 234451, 234454, 234457, 275418, 234463, 234466, 277479, 179176, 234472, 234473, 234477, 234482, 287731, 277492, 314355, 234492, 277505, 234498, 234500, 277509, 277510, 234503, 234506, 230410, 234509, 277517, 197647, 277518, 295953, 277523, 234517, 230423, 281625, 197657, 281626, 175132, 234530, 234531, 234534, 275495, 234539, 275500, 310317, 277550, 234542, 275505, 234548, 277563, 234555, 7229, 7230, 230463, 7231, 156733, 234560, 277566, 238651, 234565, 207938, 234569, 300111, 207953, 277585, 296018, 234577, 296019, 234583, 234584, 275547, 277596, 234594, 230499, 281700, 300135, 234603, 281707, 275565, 156785, 312434, 275571, 234612, 300150, 300151, 234616, 398457, 234622, 300158, 285828, 302213, 275590, 234631, 253063, 277640, 302217, 234632, 275591, 234642, 226451, 308372, 277651, 275607, 119963, 234652, 234656, 330913, 306338, 234659, 277665, 234663, 275625, 300201, 208043, 275628, 226479, 238769, 226481, 208058, 277690, 230588, 283840, 279747, 279760, 290000, 189652, 203989, 363744, 195811, 298212, 304356, 285929, 279792, 298228, 204022, 234742, 228600, 208124, 204041, 292107, 277792, 339234, 199971, 259363, 304421, 277800, 277803, 113966, 277806, 226608, 226609, 277814, 300343, 277821, 277824, 277825, 226624, 15686, 277831, 226632, 294218, 177484, 222541, 277838, 277841, 296273, 222548, 277844, 277845, 314709, 283991, 357719, 224605, 224606, 218462, 142689, 230756, 277862, 163175, 281962, 173420, 277868, 284014, 277871, 279919, 181625, 277882, 142716, 275838, 275839, 277890, 277891, 226694, 275847, 277896, 277897, 281992, 277900, 230799, 112017, 296338, 277907, 206228, 306579, 226711, 226712, 310692, 279974, 277927, 282024, 370091, 277936, 277939, 279989, 296375, 277943, 277946, 277949, 277952, 296387, 415171, 163269, 277957, 296391, 300487, 277962, 282060, 277965, 280013, 312782, 284116, 277974, 228823, 228824, 277977, 277980, 226781, 277983, 277988, 310757, 316902, 296425, 277993, 277994, 277997, 278002, 306677, 300542, 306693, 153095, 192010, 149007, 65041, 282136, 204313, 278056, 278060, 286254, 194110, 276040, 366154, 276045, 276046, 286288, 276050, 280147, 300630, 243292, 147036, 298590, 370271, 282213, 317032, 222832, 276085, 276088, 278140, 188031, 276097, 192131, 276100, 276101, 229001, 310923, 312972, 278160, 282259, 276116, 276117, 276120, 278170, 280220, 276126, 282273, 276129, 282276, 278191, 278195, 276148, 296628, 198324, 286388, 278201, 276156, 278214, 323276, 276173, 302797, 212688, 9936, 302802, 276179, 276180, 9937, 286423, 216795, 216796, 276195, 153319, 313065, 280300, 419569, 276210, 276219, 194303, 288512, 311042, 288516, 278285, 276238, 227091, 184086, 294678, 284442, 278299, 276253, 276257, 278307, 288547, 159533, 165677, 276279, 276282, 276283, 276287, 345919, 276294, 282438, 276298, 216918, 276311, 307031, 276318, 237408, 282474, 288619, 276332, 110452, 276344, 194429, 255872, 40850, 40853, 44952, 247712, 294823, 276394, 276401, 276408, 161722, 290746, 276413, 276421, 276422, 276430, 231375, 153552, 153554, 276444, 280541, 276454, 276459, 296941, 278518 ]
620432af8e33c4b093b308822e7492431b635752
f439b91b0dce2fab6ed0b314390c5a6b730bc081
/HFSoftUI/HFSoftUI/App Delegate/SceneDelegate.swift
e9c3a9f6cd48458271857a8d984c40ac703ab752
[ "MIT" ]
permissive
xrofa/HFSoftUI
55e065c2d62005a5d3e8686f2e6a17356384d5fd
16f42e7b0ae60a66c3e61cebe1715e660ff094c8
refs/heads/master
2022-04-05T22:01:31.698168
2020-02-04T07:20:20
2020-02-04T07:20:20
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,337
swift
// // SceneDelegate.swift // HFSoftUI // // Created by Hamza on 29/01/2020. // Copyright © 2020 Hamza. All rights reserved. // 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 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. } }
[ 393221, 163849, 393228, 393231, 393251, 352294, 344103, 393260, 393269, 213049, 376890, 385082, 16444, 393277, 376906, 327757, 254032, 286804, 368728, 254045, 368736, 180322, 376932, 286833, 286845, 286851, 417925, 262284, 360598, 286880, 286889, 377003, 377013, 164029, 327872, 180418, 377030, 377037, 180432, 377047, 418008, 385243, 418012, 377063, 327915, 205037, 393457, 393461, 393466, 418044, 336124, 385281, 336129, 262405, 180491, 336140, 164107, 262417, 368913, 262423, 377118, 377121, 262437, 254253, 336181, 262455, 393539, 262473, 344404, 213333, 418135, 262497, 418145, 262501, 213354, 246124, 262508, 262512, 213374, 385420, 262551, 262553, 385441, 385444, 262567, 385452, 262574, 393649, 385460, 262587, 344512, 262593, 336326, 360917, 369119, 328178, 328180, 328183, 328190, 254463, 328193, 98819, 164362, 328207, 410129, 393748, 377372, 188959, 385571, 377384, 197160, 33322, 352822, 270905, 197178, 418364, 188990, 369224, 385610, 270922, 352844, 385617, 352865, 262761, 352875, 344694, 352888, 336513, 377473, 336517, 344710, 385671, 148106, 377485, 352919, 98969, 336549, 344745, 361130, 336556, 385714, 434868, 164535, 336568, 164539, 328379, 328387, 352969, 418508, 385743, 385749, 189154, 369382, 361196, 418555, 344832, 336644, 344837, 344843, 328462, 361231, 394002, 336660, 418581, 418586, 434971, 369436, 262943, 369439, 418591, 418594, 336676, 418600, 418606, 271154, 328498, 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, 328747, 214060, 345134, 345139, 361525, 361537, 377931, 197708, 189525, 156762, 402523, 361568, 148580, 345200, 361591, 386168, 361594, 410746, 214150, 345224, 386187, 337048, 345247, 361645, 337072, 345268, 337076, 402615, 361657, 402636, 328925, 165086, 165092, 328933, 222438, 328942, 386286, 386292, 206084, 115973, 328967, 345377, 345380, 353572, 345383, 263464, 337207, 345400, 378170, 369979, 386366, 337224, 337230, 337235, 263509, 353634, 337252, 402792, 345449, 99692, 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, 403139, 337607, 419528, 419531, 419536, 272083, 394967, 419543, 419545, 345819, 419548, 181982, 419551, 345829, 419560, 337643, 419564, 337647, 370416, 141052, 337661, 337671, 362249, 362252, 395022, 362256, 321300, 345888, 116512, 362274, 378664, 354107, 345916, 354112, 247618, 370504, 329545, 345932, 354124, 370510, 247639, 337751, 370520, 313181, 354143, 354157, 345965, 345968, 345971, 345975, 182136, 403321, 1914, 354173, 395148, 247692, 337809, 247701, 329625, 436127, 436133, 247720, 337834, 362414, 337845, 190393, 247760, 346064, 346069, 329699, 354275, 190440, 247790, 354314, 346140, 337980, 436290, 395340, 378956, 436307, 338005, 329816, 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, 436474, 321787, 379135, 411905, 411917, 43279, 379154, 395539, 387350, 387353, 338201, 182559, 338212, 395567, 248112, 362823, 436556, 321880, 362844, 379234, 354674, 182642, 321911, 420237, 379279, 272787, 354728, 338353, 338363, 338382, 272849, 248279, 256474, 182755, 338404, 338411, 330225, 248309, 199165, 248332, 330254, 199182, 199189, 420377, 330268, 191012, 330320, 199250, 191069, 346722, 248427, 191085, 338544, 191093, 346743, 330384, 346769, 150184, 174775, 248505, 174778, 363198, 223936, 355025, 273109, 264919, 256735, 338661, 338665, 264942, 330479, 363252, 338680, 207620, 264965, 191240, 338701, 256787, 363294, 199455, 396067, 346917, 396070, 215854, 355123, 355141, 355144, 338764, 330581, 330585, 387929, 355167, 265056, 265059, 355176, 355180, 355185, 330612, 330643, 412600, 207809, 379849, 347082, 396246, 330711, 248794, 248799, 347106, 437219, 257009, 265208, 330750, 199681, 338951, 330761, 330769, 330775, 248863, 158759, 396329, 347178, 404526, 396337, 330803, 396340, 339002, 388155, 339010, 347208, 248905, 330827, 330830, 248915, 183384, 339037, 412765, 257121, 322660, 265321, 330869, 248952, 420985, 330886, 330890, 347288, 248986, 44199, 380071, 339118, 249018, 339133, 126148, 322763, 330959, 330966, 265433, 265438, 388320, 363757, 388348, 339199, 396552, 175376, 175397, 208167, 273709, 372016, 437553, 347442, 199989, 175416, 396601, 208189, 437567, 175425, 437571, 437576, 437584, 331089, 437588, 396634, 175451, 437596, 429408, 175458, 208228, 175461, 175464, 265581, 331124, 175478, 249210, 175484, 175487, 249215, 175491, 249219, 249225, 249228, 249235, 175514, 175517, 396703, 396706, 175523, 355749, 396723, 388543, 380353, 216518, 339401, 380364, 339406, 372177, 339414, 249303, 413143, 339418, 339421, 249310, 339425, 249313, 339429, 339435, 249329, 69114, 372229, 339464, 249355, 208399, 380433, 175637, 405017, 134689, 339504, 265779, 421442, 413251, 265796, 265806, 224854, 224858, 339553, 257636, 224871, 372328, 257647, 372338, 339572, 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, 257748, 224982, 257752, 224987, 257762, 224996, 225000, 339696, 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, 323404, 257869, 257872, 225105, 339795, 397140, 225109, 225113, 257881, 257884, 257887, 225120, 257891, 413539, 225128, 257897, 225138, 339827, 257909, 225142, 372598, 257914, 257917, 225150, 257922, 380803, 225156, 339845, 257927, 225166, 397201, 225171, 380823, 225176, 225183, 184245, 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, 225439, 135328, 192674, 225442, 438434, 225445, 438438, 225448, 438441, 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, 356631, 356638, 356641, 356644, 356647, 266537, 389417, 356650, 356656, 332081, 307507, 340276, 356662, 397623, 332091, 225599, 332098, 201030, 348489, 332107, 151884, 430422, 348503, 332118, 250201, 250203, 332130, 250211, 340328, 250217, 348523, 348528, 332153, 356734, 389503, 332158, 438657, 332162, 389507, 348548, 356741, 250239, 332175, 160152, 373146, 373149, 70048, 356783, 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, 340639, 258723, 332455, 332460, 389806, 332464, 332473, 381626, 332484, 332487, 332494, 357070, 357074, 332512, 332521, 340724, 332534, 373499, 348926, 389927, 348979, 152371, 398141, 127815, 357202, 389971, 357208, 136024, 389979, 430940, 357212, 357215, 439138, 201580, 201583, 349041, 340850, 201589, 381815, 430967, 324473, 398202, 119675, 340859, 324476, 430973, 324479, 340863, 324482, 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, 250915, 250917, 169002, 357419, 209966, 209969, 209973, 209976, 209980, 209988, 209991, 431180, 209996, 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, 333010, 210132, 333016, 210139, 210144, 218355, 251123, 218361, 275709, 275713, 242947, 275717, 275723, 333075, 349460, 333079, 251161, 349486, 349492, 415034, 251211, 210261, 365912, 259423, 374113, 251236, 374118, 234867, 390518, 357756, 374161, 112021, 349591, 357793, 333222, 210357, 259516, 415168, 366035, 415187, 366039, 415192, 415194, 415197, 415200, 333285, 415208, 366057, 366064, 415217, 415225, 423424, 415258, 415264, 366118, 415271, 349739, 144940, 415279, 415282, 415286, 210488, 415291, 415295, 333387, 333396, 333400, 366173, 333415, 423529, 423533, 333423, 210547, 415354, 333440, 267910, 267929, 333472, 333512, 259789, 358100, 366301, 333535, 366308, 366312, 431852, 399086, 366319, 210673, 366322, 399092, 366326, 333566, 268042, 210700, 366349, 210707, 399129, 333593, 333595, 210720, 366384, 358192, 210740, 366388, 358201, 399166, 325441, 366403, 325447, 341831, 341835, 341839, 341844, 415574, 358235, 341852, 350046, 399200, 399208, 268144, 358256, 358260, 399222, 325494, 186233, 333690, 243584, 325505, 333699, 399244, 333709, 333725, 333737, 382891, 382898, 333767, 358348, 333777, 219094, 399318, 358372, 350190, 350194, 333819, 350204, 350207, 325633, 325637, 350214, 268299, 333838, 350225, 350232, 333851, 350238, 350241, 374819, 350245, 350249, 350252, 178221, 350257, 350260, 350272, 243782, 350281, 350286, 374865, 252021, 342134, 374904, 268435, 333989, 333998, 334012, 260299, 350411, 350417, 350423, 211161, 350426, 334047, 350449, 375027, 358645, 350454, 350459, 350462, 350465, 350469, 325895, 268553, 194829, 350477, 268560, 350481, 432406, 350487, 350491, 350494, 325920, 350500, 350505, 358701, 391469, 350510, 358705, 358714, 358717, 383307, 358738, 334162, 383331, 383334, 391531, 383342, 334204, 268669, 194942, 391564, 366991, 334224, 342431, 375209, 326059, 375220, 342453, 334263, 326087, 358857, 195041, 334306, 334312, 104940, 375279, 162289, 350724, 186898, 342546, 350740, 342551, 334359, 342555, 334364, 416294, 350762, 252463, 358962, 334386, 334397, 358973, 252483, 219719, 399957, 244309, 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, 375572, 375575, 375580, 162592, 334633, 326444, 383794, 326452, 326455, 375613, 244542, 260925, 375616, 326468, 244552, 342857, 326474, 326479, 326486, 416599, 342875, 244572, 326494, 326503, 433001, 326508, 400238, 326511, 211826, 211832, 392061, 351102, 252801, 260993, 400260, 211846, 342921, 342931, 252823, 400279, 392092, 400286, 359335, 211885, 400307, 351169, 359362, 351172, 170950, 187335, 326599, 359367, 359383, 359389, 383968, 343018, 359411, 261109, 261112, 244728, 383999, 261130, 261148, 359452, 211999, 261155, 261160, 359471, 375868, 384099, 384102, 384108, 367724, 326764, 187503, 343155, 384115, 212095, 384136, 384140, 384144, 351382, 384152, 384158, 384161, 351399, 384169, 367795, 244917, 384182, 384189, 384192, 351424, 343232, 244934, 367817, 244938, 384202, 253132, 326858, 343246, 384209, 146644, 351450, 384225, 343272, 351467, 359660, 384247, 351480, 384250, 351483, 351492, 343307, 384270, 359695, 261391, 253202, 261395, 384276, 384284, 245021, 384290, 253218, 245032, 171304, 384299, 351535, 245042, 326970, 384324, 343366, 212296, 212304, 367966, 343394, 343399, 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, 327118, 359887, 359891, 343509, 368093, 155103, 343535, 343540, 368120, 343545, 409092, 359948, 359951, 245295, 359984, 400977, 400982, 179803, 155241, 138865, 155255, 155274, 368289, 245410, 425639, 245415, 425652, 425663, 155328, 245463, 155352, 155356, 212700, 155364, 245477, 155372, 245487, 212723, 245495, 409336, 155394, 155404, 245528, 155423, 360224, 155439, 204592, 155444, 155448, 417596, 384829, 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, 212945, 393170, 155604, 155620, 253924, 155622, 253927, 327655, 360432, 393204, 360439, 253944, 393209, 155647 ]
8ed731bf719928d0a8f6c1e5bcaf368e97531ba2
a321eb8669ea4389286d97a39aacb5be36657227
/chainup-ios/Chainup/EXCOINS/Me/AboutUs/vc/EXAboutUsVC.swift
29de97f7ec8168ee93b9be569d46780bad141795
[]
no_license
exup-cloud/cloudios-sdk
ea5ba9eef027bd17a450623f1594790a6d192bbf
4a8a859642118f197465e860cb1a4065f2e53803
refs/heads/master
2021-02-12T05:02:53.642059
2020-08-10T12:12:46
2020-08-10T12:12:46
244,562,859
0
1
null
null
null
null
UTF-8
Swift
false
false
1,169
swift
// // EXAboutUsVC.swift // Chainup // // Created by zewu wang on 2019/3/26. // Copyright © 2019 zewu wang. All rights reserved. // import UIKit class EXAboutUsVC: NavCustomVC { lazy var mainView : EXAboutUsView = { let view = EXAboutUsView() view.extUseAutoLayout() return view }() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. contentView.addSubview(mainView) mainView.snp.makeConstraints { (make) in make.edges.equalToSuperview() } } override func setNavCustomV() { self.setTitle(LanguageTools.getString(key: "personal_text_aboutus")) self.xscrollView = mainView.tableView self.lastVC = true } /* // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destination. // Pass the selected object to the new view controller. } */ }
[ -1 ]
231916790ebb687851e0c624a3ebed3a80fb1795
8b429a93ec067607c7ee7203bf43fe0d4c759593
/PushNotificationTest/WenderCast/AppDelegate.swift
56cc120602e5620652a52d859d46dbc39915c483
[]
no_license
prashuk/iOS-Tutorials
091a559df0027d57b748433f5bff669e740524b0
87e0523bd24b349f1171533fe32335fe5c8e617d
refs/heads/main
2023-06-06T10:13:59.839292
2021-06-27T23:30:25
2021-06-27T23:30:25
320,161,989
0
0
null
null
null
null
UTF-8
Swift
false
false
2,670
swift
import UIKit import UserNotifications import SafariServices enum Identifiers { static let viewAction = "VIEW_IDENTIFIER" static let newsCategory = "NEWS_CATEGORY" } @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { UITabBar.appearance().barTintColor = UIColor.themeGreenColor UITabBar.appearance().tintColor = UIColor.white registerForPushNotification() let notificationOption = launchOptions?[.remoteNotification] if let notification = notificationOption as? [String: AnyObject], let aps = notification["aps"] as? [String: AnyObject] { NewsItem.makeNewsItem(aps) } (window?.rootViewController as? UITabBarController)?.selectedIndex = 1 return true } func application(_ application: UIApplication, didReceiveRemoteNotification userInfo: [AnyHashable : Any], fetchCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) { guard let aps = userInfo["aps"] as? [String: AnyObject] else { completionHandler(.failed) return } NewsItem.makeNewsItem(aps) } func application(_ application: UIApplication, didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data) { let tokenPart = deviceToken.map { data in String(format: "%02.2hhx", data) } let token = tokenPart.joined() print("Device Token: \(token)") } func application(_ application: UIApplication, didFailToRegisterForRemoteNotificationsWithError error: Error) { print("Failed to register: \(error)") } func registerForPushNotification() { UNUserNotificationCenter.current().requestAuthorization(options: [.alert, .sound, .badge]) { [weak self] granted, _ in print("Permission granted: \(granted)") guard granted else { return } let viewAction = UNNotificationAction(identifier: Identifiers.viewAction, title: "View", options: [.foreground]) let newsCategory = UNNotificationCategory(identifier: Identifiers.newsCategory, actions: [viewAction], intentIdentifiers: [], options: []) UNUserNotificationCenter.current().setNotificationCategories([newsCategory]) self?.getNotificationSettings() } } func getNotificationSettings() { UNUserNotificationCenter.current().getNotificationSettings { setting in guard setting.authorizationStatus == .authorized else { return } DispatchQueue.main.async { UIApplication.shared.registerForRemoteNotifications() } } } }
[ -1 ]
0c7ffe5a8020229077762e8d361257c5f1905d1a
0edb18b2431ffac19adb5c63efb3fb86dcaf6d7c
/Forum App/SwitfUI/View/Tabbar.swift
f62c7f70cdb7f7d1734bb2ea3a03d88bef6ad25f
[]
no_license
thanduchuy/SwiftUI-ForumApp
ee64d31a78f6d5d479f621511ad1894900658eb0
e883c364e476bbe2fc5a698782f02f47854261f2
refs/heads/master
2022-10-04T08:32:38.900007
2020-06-09T04:16:57
2020-06-09T04:16:57
270,892,503
1
0
null
null
null
null
UTF-8
Swift
false
false
2,139
swift
// // Tabbar.swift // Forum App // // Created by MacBook Pro on 3/16/20. // Copyright © 2020 MacBook Pro. All rights reserved. // import SwiftUI import Firebase struct Tabbar: View { @State var show = false @Binding var status:Bool @EnvironmentObject var obg : AuthService var body: some View { ZStack { TabView { Search().tabItem { Image("search") }.tag(1) Home().tabItem { Image("home") }.tag(0) Notification().tabItem { Image("reminder") }.tag(2) InfoView(status: $status).tabItem { Image("profile") }.tag(3) }.accentColor(.blue) .edgesIgnoringSafeArea(.top) VStack{ Spacer() HStack{ Spacer() Button(action: { self.show.toggle() }) { Image("content").resizable().frame(width: 20, height: 20).padding() }.foregroundColor(.accentColor).padding(2).background(Color.white) .clipShape(Circle()) .shadow(color: Color.black, radius: 8, x: 1, y: 1) }.padding() }.padding(.bottom,65) }.sheet(isPresented: $show) { CreatePost(show: self.$show).environmentObject(AlertServices()) } } } struct Tabbar_Previews: PreviewProvider { static var previews: some View { Tabbar(status: Binding.constant(true)) } }
[ -1 ]
8bf3a091b5ebfe0758e19e2b65e275b616433ac2
76e81410cdce3931f722e7e57ccee58009a88d57
/AmplifyPlugins/API/AWSAPICategoryPlugin/Configuration/AWSAPICategoryPluginConfiguration.swift
819a00a43085b287fe6a0984952fd47d4b12ff7e
[ "Apache-2.0" ]
permissive
mirego/amplify-ios
3c279fcc58b6fece92ef8d1e78a5360fa26f944d
0127327b8f9cc37e89bc36dc93d7680d48742b1c
refs/heads/main
2023-07-05T11:23:35.455513
2021-01-06T13:50:23
2021-01-06T13:50:23
292,870,849
0
0
Apache-2.0
2021-01-06T13:50:24
2020-09-04T14:38:02
Swift
UTF-8
Swift
false
false
1,845
swift
// // Copyright 2018-2020 Amazon.com, // Inc. or its affiliates. All Rights Reserved. // // SPDX-License-Identifier: Apache-2.0 // import Amplify import Foundation import AWSPluginsCore public struct AWSAPICategoryPluginConfiguration { var endpoints: [String: EndpointConfig] init(endpoints: [String: EndpointConfig]) { self.endpoints = endpoints } init(jsonValue: JSONValue, authService: AWSAuthServiceBehavior) throws { guard case .object(let config) = jsonValue else { throw PluginError.pluginConfigurationError( "Could not cast incoming configuration to a JSONValue `.object`", """ The specified configuration is not convertible to a JSONValue. Review the configuration and ensure it \ contains the expected values, and does not use any types that aren't convertible to a corresponding \ JSONValue: \(jsonValue) """ ) } let endpoints = try AWSAPICategoryPluginConfiguration.endpointsFromConfig(config: config, authService: authService) self.init(endpoints: endpoints) } private static func endpointsFromConfig( config: [String: JSONValue], authService: AWSAuthServiceBehavior ) throws -> [String: EndpointConfig] { var endpoints = [String: EndpointConfig]() for (key, jsonValue) in config { let name = key let endpointConfig = try EndpointConfig(name: name, jsonValue: jsonValue, authService: authService) endpoints[name] = endpointConfig } return endpoints } }
[ -1 ]
df9caedaa2411ff37e5df3cac78b96b5337392a6
5cb2a93159eee2479c93ea4b6be5832d4f87c677
/MarvelMVVM-CTests/Service/NetworkManagerTests+URLProtocol.swift
62b1ed7852fcfe12bae2af594b8121bb50fd0d71
[]
no_license
mgopsill/MarvelMVVM-C
61bf1b585c6cd6bc0db8c54b71add6c3ff7dcab8
c544c6579522f9140e2053d2d0353363ace5969c
refs/heads/master
2020-04-26T03:42:56.851902
2019-03-01T11:48:41
2019-03-01T11:48:41
173,276,495
0
0
null
null
null
null
UTF-8
Swift
false
false
2,760
swift
// // NetworkManagerTests+URLProtocol.swift // MarvelMVVM-C // // Created by DevPair21 on 21/02/2019. // Copyright © 2019 Mike Gopsill. All rights reserved. // import XCTest @testable import MarvelMVVM_C // An alternative way to test URLSession by subclassing URLProtocol class NetworkManagerTestsURLProtocol: XCTestCase { var subject: NetworkManaging! let request = URLRequest(url: URL(string: "www.test.url.com")!) let mockData = Data(bytes: [0,1,0,1]) override func setUp() { } override func tearDown() { subject = nil } func test_NetworkManagerFetchCalled_DataReceived_CallsCompletionWithData() { // create the test URL to match the request above let url = URL(string: "www.test.url.com") // in the testURLs dictionary assign some data to the testURL URLProtocolMock.testURLs = [url: mockData] // create a URLSession configuration and assign our mock URLProtocol let config = URLSessionConfiguration.ephemeral config.protocolClasses = [URLProtocolMock.self] // create a session passing our custom configuration let session = URLSession(configuration: config) // create the test subject and run a typical test subject = NetworkManager(session: session) var result: Data? let expectation = XCTestExpectation(description: #function) subject.fetch(request: request, completeOnMainThread: false) { (data, _, _) in result = data expectation.fulfill() } wait(for: [expectation], timeout: 5.0) XCTAssertEqual(result, URLProtocolMock.testURLs[url]) } } fileprivate class URLProtocolMock: URLProtocol { // a dictionary of test urls with data we expect back from them static var testURLs = [URL?: Data]() // override with true to say we handle all types of URLRequests override class func canInit(with request: URLRequest) -> Bool { return true } // must be overridden but can just return original request override class func canonicalRequest(for request: URLRequest) -> URLRequest { return request } // called when load the data, so we immediately any data associated to the URL passed to the URLSession override func startLoading() { if let url = request.url { if let data = URLProtocolMock.testURLs[url] { self.client?.urlProtocol(self, didLoad: data) } } // tell the client we finished self.client?.urlProtocolDidFinishLoading(self) } // must be overridden but we don't have to implement override func stopLoading() { } }
[ -1 ]
73b1ba1221f37f8334b285b1a55e597953b9dd65
cc2e375648118f4a7f6740658665fba454950c7b
/FaceIt/FaceIt/AppDelegate.swift
f3f5068711ac59c1d99e1153c6e7faf87e3266bb
[]
no_license
vikatory/swift-learn
a15e8f6e4b778322e75d9abc3ba7c4af7bc4686e
a4f5c741d5e239ea57801bf1c222c1b8882d3a0b
refs/heads/master
2021-01-20T17:54:51.770627
2016-06-01T17:38:48
2016-06-01T17:38:48
60,018,837
0
0
null
null
null
null
UTF-8
Swift
false
false
2,132
swift
// // AppDelegate.swift // FaceIt // // Created by hejia on 16/5/30. // Copyright © 2016年 hejia. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } func applicationDidEnterBackground(application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(application: UIApplication) { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 229388, 294924, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 229405, 352284, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 286774, 229432, 286776, 286778, 319544, 204856, 286791, 237640, 278605, 286797, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 278648, 131192, 237693, 327814, 131209, 417930, 303241, 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, 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, 287238, 172550, 172552, 303623, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 189039, 189040, 172655, 172656, 295538, 189044, 172660, 287349, 352880, 287355, 287360, 295553, 287365, 311942, 303751, 295557, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 164509, 287390, 295583, 303773, 172702, 287394, 230045, 303780, 172705, 287398, 172707, 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, 172755, 303827, 279255, 172760, 279258, 303835, 213724, 189149, 303838, 287450, 279267, 312035, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 369433, 230169, 295707, 328476, 295710, 230175, 303914, 279340, 205613, 279353, 230202, 312124, 222018, 295755, 377676, 148302, 287569, 303959, 279383, 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, 295949, 230413, 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, 238770, 304311, 350308, 230592, 279750, 312518, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 279788, 320748, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 222525, 296253, 312639, 296255, 230718, 296259, 378181, 230727, 238919, 320840, 296264, 296267, 296271, 222545, 230739, 312663, 337244, 222556, 230752, 312676, 230760, 173418, 410987, 230763, 230768, 296305, 312692, 230773, 279929, 181626, 304506, 304505, 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, 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, 291754, 288242, 296435, 288244, 296439, 288250, 402942, 148990, 296446, 206336, 296450, 321022, 230916, 230919, 214535, 370187, 304651, 304653, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 280152, 288344, 239194, 280158, 403039, 370272, 181854, 239202, 312938, 280183, 280185, 280188, 280191, 280194, 116354, 280208, 280211, 288408, 280218, 280222, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 313027, 280260, 280264, 206536, 206539, 206541, 206543, 280276, 313044, 321239, 280283, 313052, 288478, 313055, 321252, 313066, 280302, 288494, 280304, 313073, 419570, 321266, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 304968, 280393, 280402, 313176, 42842, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280458, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 10170, 296890, 288700, 296894, 280515, 190403, 296900, 337862, 165831, 280521, 231379, 296921, 239586, 313320, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 321560, 305176, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 223303, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 280671, 223327, 149599, 321634, 149601, 149603, 329830, 280681, 313451, 223341, 280687, 313458, 280691, 215154, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 288936, 100520, 280747, 288940, 280755, 288947, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 280819, 157940, 125171, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 280835, 125187, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 280891, 289087, 280897, 280900, 239944, 305480, 280906, 239947, 305485, 305489, 379218, 280919, 354653, 313700, 280937, 313705, 280940, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 297365, 240021, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 305594, 289210, 281024, 289218, 289221, 289227, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 281084, 240124, 305662, 305664, 240129, 305666, 305668, 240132, 223749, 281095, 338440, 150025, 223752, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 199262, 338528, 338532, 281190, 199273, 281196, 158317, 19053, 313973, 281210, 297594, 158347, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 199367, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 207661, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 183172, 158596, 240519, 322440, 338823, 314249, 183184, 289687, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 281581, 183277, 322550, 134142, 322563, 175134, 322599, 322610, 314421, 281654, 314427, 207937, 314433, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 298306, 380226, 281923, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 290174, 298365, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 224657, 306581, 314779, 314785, 282025, 314793, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 282133, 290325, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 324757, 282261, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 282410, 241450, 306988, 306991, 315184, 323376, 315190, 241464, 282425, 159545, 298811, 307009, 413506, 241475, 307012, 148946, 315211, 282446, 307027, 315221, 282454, 315223, 241496, 323414, 241498, 307035, 307040, 282465, 110433, 241509, 110438, 298860, 110445, 282478, 282481, 110450, 315251, 315249, 315253, 315255, 339838, 282499, 315267, 315269, 241544, 282505, 241546, 241548, 298896, 282514, 298898, 44948, 298901, 241556, 282520, 241560, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 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, 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, 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, 127463, 242152, 291305, 127466, 176620, 127474, 291314, 291317, 135672, 233979, 291323, 291330, 283142, 127497, 233994, 135689, 291341, 233998, 234003, 234006, 152087, 127511, 283161, 242202, 234010, 135707, 242206, 135710, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 225998, 299726, 226002, 226005, 119509, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 381677, 226037, 283382, 234231, 316151, 234236, 226045, 234239, 242431, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 201496, 234264, 234266, 283421, 234269, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 292433, 234313, 316233, 316235, 234316, 283468, 242511, 234319, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 234370, 201603, 291714, 234373, 226182, 234375, 291716, 226185, 308105, 234379, 234384, 234388, 234390, 226200, 324504, 234393, 209818, 308123, 324508, 234398, 234396, 291742, 234401, 291747, 291748, 234405, 291750, 234407, 324518, 324520, 234410, 324522, 226220, 291756, 234414, 324527, 291760, 234417, 201650, 324531, 226230, 234422, 275384, 324536, 234428, 291773, 234431, 242623, 324544, 324546, 226239, 324548, 226245, 234437, 234439, 234434, 234443, 291788, 193486, 275406, 193488, 234446, 234449, 316370, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 324599, 234487, 234490, 234493, 234496, 316416, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 234519, 316439, 234520, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 234549, 300085, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 234563, 308291, 234568, 234570, 316491, 300108, 234572, 234574, 300115, 234580, 234581, 275545, 242777, 234585, 234590, 234593, 234595, 300133, 234597, 234601, 300139, 234605, 234607, 160879, 275569, 234610, 300148, 234614, 398455, 144506, 275579, 234618, 234620, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 275594, 234636, 177293, 234640, 275602, 234643, 226453, 275606, 234647, 275608, 308373, 234650, 234648, 308379, 283805, 234653, 324766, 119967, 234657, 300189, 324768, 242852, 283813, 234661, 300197, 234664, 275626, 234667, 316596, 308414, 234687, 316610, 300226, 226500, 234692, 300229, 308420, 283844, 308418, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 161003, 300267, 300270, 300272, 120053, 300278, 316663, 275703, 300284, 275710, 300287, 283904, 300289, 292097, 300292, 300294, 275719, 300299, 177419, 283917, 300301, 242957, 177424, 275725, 349464, 283939, 259367, 283951, 292143, 300344, 226617, 283963, 243003, 226628, 283973, 300357, 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, 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, 292421, 226886, 284231, 128584, 284228, 284234, 366155, 276043, 317004, 284238, 226895, 284241, 194130, 284243, 276052, 276053, 284245, 284247, 317015, 284249, 243290, 284251, 300628, 284253, 235097, 284255, 300638, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 284278, 292470, 292473, 284283, 276093, 284286, 276095, 284288, 292481, 276098, 284290, 325250, 284292, 292479, 292485, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 276114, 284306, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 276166, 284358, 358089, 276170, 284362, 276175, 284368, 276177, 284370, 317138, 284372, 358098, 284377, 276187, 284379, 284381, 284384, 284386, 358114, 358116, 276197, 317158, 358119, 284392, 325353, 284394, 358122, 284397, 276206, 284399, 358126, 358128, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 284418, 358146, 317187, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 186139, 300828, 300830, 276255, 325408, 284449, 300834, 300832, 227109, 317221, 358183, 186151, 276268, 300845, 194351, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 300912, 284529, 292721, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 284564, 358292, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292776, 292784, 276402, 358326, 161718, 276410, 276411, 358330, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 292843, 276460, 276464, 178161, 276466, 227314, 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, 194654, 227423, 350302, 194657, 227426, 276579, 178273, 194660, 227430, 276583, 309346, 309348, 276586, 309350, 309352, 309354, 276590, 350313, 227440, 350316, 284786, 350321, 276595, 301167, 350325, 350328, 292985, 301178, 292989, 292993, 301185, 350339, 317570, 317573, 350342, 227463, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 284837, 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, 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, 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, 285320, 277128, 301706, 318092, 326285, 318094, 334476, 277136, 277139, 227992, 285340, 318108, 227998, 318110, 137889, 383658, 285357, 318128, 277170, 342707, 154292, 277173, 293555, 318132, 285368, 277177, 277181, 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, 293666, 285474, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 285499, 301884, 310080, 293696, 277314, 277317, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 277368, 15224, 236408, 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, 310336, 7232, 293956, 277573, 228422, 310344, 277577, 293960, 277583, 203857, 310355, 293971, 310359, 236632, 277594, 138332, 277598, 285792, 277601, 203872, 310374, 203879, 277608, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 285821, 302205, 285824, 392326, 285831, 253064, 302218, 285835, 294026, 384148, 162964, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 285862, 277671, 302248, 64682, 277678, 228526, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 204023, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 228617, 138505, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 285999, 277807, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 294211, 302403, 384328, 277832, 277836, 294221, 326991, 294223, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 277892, 327046, 253320, 310665, 318858, 277898, 277894, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 277923, 130468, 228776, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 64966, 245191, 163272, 302534, 310727, 277959, 292968, 302541, 277966, 302543, 277963, 310737, 277971, 277975, 286169, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 286188, 310764, 278000, 278003, 310772, 228851, 278006, 40440, 278009, 212472, 40443, 286203, 228864, 40448, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 286240, 146977, 187939, 294435, 40484, 286246, 294439, 286248, 278057, 294440, 294443, 40486, 294445, 40488, 310831, 40491, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 228944, 212560, 400976, 40533, 147032, 40537, 40539, 278109, 40541, 40544, 40548, 40550, 286312, 286313, 40554, 40552, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 278150, 310925, 286354, 278163, 302740, 122517, 278168, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 278227, 229076, 286420, 319187, 286425, 319194, 278235, 301163, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 171774, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 278320, 319280, 319290, 229192, 302925, 188247, 237409, 294776, 360317, 294785, 327554, 40840, 40851, 294803, 188312, 294811, 319390, 294817, 319394, 40865, 294821, 311209, 180142, 294831, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
4a4ea2e6f5090ad222a652aae3fed719d8eb27c8
bbb8b03b9c1f276bd4e84cd23cec4d3f427cbb62
/fakestagram/Profile/PostThumbnailCollectionViewCell.swift
9b83fd7e15b4e8e3bff4cd3583cdd57d7b028c61
[]
no_license
tehl1T3R/fakestagram-ios
6f8a36e76d39c45b9a842403dee2f2af695f0c5a
41910b5bd9246893de07ac2baf07fec714b476d6
refs/heads/master
2020-07-02T16:12:19.071754
2019-08-10T07:17:55
2019-08-10T07:17:55
201,568,946
0
0
null
2019-08-10T02:34:52
2019-08-10T02:34:52
null
UTF-8
Swift
false
false
673
swift
// // PostThumbnailCollectionViewCell.swift // fakestagram // // Created by Andrès Leal Giorguli on 5/25/19. // Copyright © 2019 3zcurdia. All rights reserved. // import UIKit class PostThumbnailCollectionViewCell: UICollectionViewCell { static let reuseIdentifier = "postThumbnailCell" @IBOutlet weak var imageView: UIImageView! var post: Post? { didSet { updateImageView() } } override func awakeFromNib() { super.awakeFromNib() } func updateImageView() { guard let post = post else { return } post.load { [weak self] img in self?.imageView.image = img } } }
[ -1 ]
03af27416873cfbd98e004b73b1501adefd264bc
62af0930fed64acd0f9bb8a8847f7699165ec60d
/PKProject/PKProject/Controler/AddPillsViewController.swift
97ee8bbe3298513b9166657b0f77de11421d99e0
[]
no_license
Mspaenle/swiftProject
4c9426bb22080d708fb457aab072ea4a8aacaa3a
50ed97b8f73a4ba4ea1d6c0502b0dacfc58ebec8
refs/heads/master
2021-04-28T11:02:56.095285
2018-03-27T16:48:52
2018-03-27T16:48:52
122,081,983
0
0
null
2018-03-22T17:00:03
2018-02-19T15:30:10
Swift
UTF-8
Swift
false
false
4,729
swift
// // AddPillsViewController.swift // PKProject // // Created by Mahe SPAENLE on 23/02/2018. // Copyright © 2018 Mahe SPAENLE Chloé DALGER. All rights reserved. // import UIKit import Foundation import CoreData class AddPillsViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, UIPickerViewDelegate, UIPickerViewDataSource { @IBOutlet weak var medPicker: UIPickerView! @IBOutlet weak var DateTable: UITableView! @IBOutlet weak var ValidateBTN: UIButton! @IBOutlet weak var CancelBTN: UIButton! var drugIntake: DrugIntakeModel? var med: Med? var dates: [Date] = [] var dose: String? = nil var meds: [Med] = [] override func viewDidLoad() { super.viewDidLoad() guard let appDelegate = UIApplication.shared.delegate as? AppDelegate else { //self.alertError(errorMsg: "Could not load data", userInfo: "reason unknown") return } let context = appDelegate.persistentContainer.viewContext let request : NSFetchRequest<Med> = Med.fetchRequest() request.sortDescriptors = [NSSortDescriptor(key: #keyPath(Med.name), ascending: true)] do{ try self.meds = context.fetch(request) } catch{ } self.med = meds[0] } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } // MARK: - Picker View func numberOfComponents(in pickerView: UIPickerView) -> Int { return 1 } func pickerView(_ pickerView: UIPickerView, titleForRow row: Int, forComponent component: Int) -> String? { return meds[row].name } func pickerView(_ pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int { return meds.count } func pickerView(_ pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) { med = meds[row] } // MARK: - Table View func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell{ let cell = self.DateTable.dequeueReusableCell(withIdentifier: "datePillCell", for: indexPath) as! DatePillTableViewCell cell.datePillLabel.text = self.dates[indexPath.row].formatHeure() return cell } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int{ return self.dates.count } func tableView(_ tableView: UITableView,canEditRowAt indexPath: IndexPath) -> Bool { return true } // MARK: - Button Action @IBAction func deleteHour(_ sender: Any) { if let indexPath = self.DateTable.indexPathForSelectedRow{ DateTable.beginUpdates() DateTable.deleteRows(at: [indexPath], with: .fade) self.dates.remove(at: indexPath.row) DateTable.endUpdates() } } @IBAction func validateAction(_ sender: Any) { if sender as! UIButton == self.ValidateBTN { guard let adoses = dose, let amed = med else { let alert = UIAlertController(title: "Entrée incorrecte", message: "Veillez à remplir tous les champs",preferredStyle: .alert) let cancelAction = UIAlertAction(title: "OK", style: .default) alert.addAction(cancelAction) present(alert, animated: true) return } drugIntake = DrugIntakeModel(med: amed, periodicity: dates, dose: adoses) self.performSegue(withIdentifier: "addDrugIntake", sender: self) } else if sender as! UIButton == self.CancelBTN { self.dismiss(animated: true, completion: nil) } } // MARK: - Unwind @IBAction func unwindToAddPills(sender: UIStoryboardSegue){ if let controller = sender.source as? PopUpPillsDateViewController{ if let dateToSave = controller.heure{ self.dates.append(dateToSave) self.DateTable.reloadData() } } else if let controller = sender.source as? selectDoseViewController{ if let doseToSave = controller.dose{ self.dose = doseToSave } } } // MARK: - Navigation let segueAddDose = "addDoseSegue" override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if segue.identifier == self.segueAddDose{ let medToDose = segue.destination as! selectDoseViewController medToDose.med = self.med } } }
[ -1 ]
fcb60b3564152e0eed0b5c93859f5a1a2cb6ba16
ccf0700c93eb83357c925664ec29a5531db67827
/empty/single-view-template/ViewControllerTableDataSource.swift
ae5aa5192262e89f6ee8bb23b39b02a6fe964d03
[]
no_license
Archimondee/programmatic-ios
038abb6565650f7e78a13c89678e181112400f44
b3bcab3f53005443f1c30e63a10ef65f3fe5daad
refs/heads/master
2023-05-28T18:38:48.987497
2019-02-20T22:14:17
2019-02-20T22:14:17
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,737
swift
// // ViewControllerTableDataSource.swift // single-view-template // // Created by Adam Dahan on 2019-02-05. // Copyright © 2019 Adam. All rights reserved. // import UIKit enum TableSection: Int { case top, middle, bottom } class ViewControllerTableDataSource: NSObject { var data = [ TableSection.top.rawValue : [TableSectionItem](), TableSection.middle.rawValue : [TableSectionItem](), TableSection.bottom.rawValue : [TableSectionItem]() ] } extension ViewControllerTableDataSource: UITableViewDataSource { func numberOfSections(in tableView: UITableView) -> Int { return data.keys.count } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { let k = Array(data.keys.sorted())[section] if let v = data[k] { return v.count } return 0 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell( withIdentifier: String(describing: MyCustomCell.self), for: indexPath ) as! MyCustomCell let k = Array(data.keys.sorted())[indexPath.section] if let v = data[k] { let item = v[indexPath.row] cell.customTitleLabel.text = item.string cell.customImageView.image = item.image } // Assign the value to the labels text. cell.customSubtitleLabel.text = "Detail text" return cell } func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { return sectionTitle(index: Array(data.keys.sorted())[section]) } }
[ -1 ]
475f95754e2eec0af6f3e8feb8f274e5c3d7b62b
abaa91d464ee266310db6ca841976a22ed351fdd
/Tests/LinuxMain.swift
9db0ca8e601f10c82859d3d7b7b9c938faab5b72
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
astrotuna201/C7
edb4cb2814a7484158cd013df22e274f3a78c19b
981095d25972239a0ff7a59e03ec980f4c9b89bc
refs/heads/master
2020-10-02T08:29:06.983780
2019-12-13T02:47:00
2019-12-13T02:47:00
227,739,795
0
0
MIT
2019-12-13T02:36:20
2019-12-13T02:36:19
null
UTF-8
Swift
false
false
112
swift
#if os(Linux) import XCTest @testable import C7Tests XCTMain([ testCase(ExampleTests.allTests) ]) #endif
[ -1 ]
a634955c6473dbc73dfb4493cacd2bec7226f2d1
d4da535f3f56d57c1743cc6c5c3b90c8d20bc164
/vivr v4/VIVRMoreActionSheet.swift
3fca4ebfd8a8547bd7d471ceb1efe870fa041ef5
[]
no_license
MBLESSEN/Vivr
de9e05ce5e6737ba0ceac443e86ca066db610762
04799dd249a9e9c3ebb153f25ae7011f57ff2a5a
refs/heads/master
2020-06-13T08:53:59.701646
2016-12-02T21:12:10
2016-12-02T21:12:10
75,431,215
0
0
null
null
null
null
UTF-8
Swift
false
false
3,333
swift
// // VIVRMoreActionSheet.swift // vivr // // Created by max blessen on 1/27/16. // Copyright © 2016 max blessen. All rights reserved. // import UIKit enum VIVRMoreActionSheetType { case VIVRMoreActionSheetTypeOthersReview case VIVRMoreActionSheetTypeMyReview } class VIVRMoreActionSheet: UIAlertController { var delegate: VIVRActionSheetProtocol? = nil var review:ActivityFeedReviews? override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } class func actionSheetWithType(type: VIVRMoreActionSheetType, object: AnyObject?) -> VIVRMoreActionSheet { let actionController = setupActionSheetForType(type, object: object) return actionController } class func setupActionSheetForType(type: VIVRMoreActionSheetType, object: AnyObject?) -> VIVRMoreActionSheet { switch type { case .VIVRMoreActionSheetTypeOthersReview: return self.actionSheetForTypeOthersReview() case .VIVRMoreActionSheetTypeMyReview: return self.actionSheetForTypeMyReview(object) } } class func actionSheetForTypeOthersReview() -> VIVRMoreActionSheet { let actionController = VIVRMoreActionSheet(title: nil, message: "What would you like to do", preferredStyle: .ActionSheet) let cancelAction: UIAlertAction = UIAlertAction(title: "Cancel", style: .Cancel) { (action) in } actionController.addAction(cancelAction) return actionController } class func actionSheetForTypeMyReview(review: AnyObject?) -> VIVRMoreActionSheet { let actionController = VIVRMoreActionSheet(title: "Your review of:", message: "What would you like to do", preferredStyle: .ActionSheet) let cancelAction: UIAlertAction = UIAlertAction(title: "Cancel", style: .Cancel) { (action) in } let editAction: UIAlertAction = UIAlertAction(title: "Edit", style: .Default) { (action) in actionController.delegate?.editReview(actionController.review!) } let deleteAction: UIAlertAction = UIAlertAction(title: "Delete", style: .Destructive) { (action) in actionController.delegate?.deleteReview(actionController.review!) } actionController.addAction(cancelAction) actionController.addAction(editAction) actionController.addAction(deleteAction) if review != nil { actionController.review = review as? ActivityFeedReviews actionController.message = "\(actionController.review!.product!.name!) by \(actionController.review!.product!.brand!.name!)" } return actionController } /* // 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 ]
1aad0e3fd50c414d374c002b8944007a38196eec
5f9b436ee6b7b508d77da0a0d586b9fe915aebf8
/NYTDemo/Presentation/Models/ArticleModel.swift
13cc3e3aea95bbb97c12f686724b9c2c0a54d7d9
[]
no_license
im4nkur/NYTDemo
0e1934ba4fedf4b5677c80744e222b581ea53444
859a43522fb1bb2a7ac1368856b054a0e6294685
refs/heads/master
2021-10-23T08:01:51.373065
2019-03-15T08:46:05
2019-03-15T08:46:05
175,346,661
0
0
null
null
null
null
UTF-8
Swift
false
false
471
swift
import UIKit /// Presentation model for Article. struct ArticleModel { var url: String var section: String var byline: String var type: String var title: String var abstract: String var publishedDate: String var source: String var id: Int var views: Int var media: MediaModel? } struct MediaModel { var type: String var caption: String var copyright: String var thumbnail: String var largeImage: String }
[ -1 ]
e8e5d9e9892d322ffd891c82defc5c6c63d76847
aab00fab4866960c951f320a7db61f066244627b
/Sources/iOS/OAuth2Authorizer+iOS.swift
b1b1451e1b33f3c0e22e7e274707e37aac4748d4
[ "Apache-2.0" ]
permissive
nehuyu/OAuth2
44e9fe7087ec5b2ec321bc99dc300befa34085c2
fe9eb67e7c7fab67582c809307143f4468aca647
refs/heads/master
2020-08-12T00:40:39.226863
2019-10-12T14:48:05
2019-10-12T14:48:05
214,658,129
0
0
NOASSERTION
2019-10-12T14:10:07
2019-10-12T14:10:06
null
UTF-8
Swift
false
false
10,375
swift
// // OAuth2Authorizer+iOS.swift // OAuth2 // // Created by Pascal Pfiffner on 4/19/15. // Copyright 2015 Pascal Pfiffner // // 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. // #if os(iOS) import UIKit import SafariServices import AuthenticationServices #if !NO_MODULE_IMPORT import Base #endif /** This authorizer takes care of iOS-specific tasks when showing the authorization UI. You can subclass this class and override `willPresent(viewController:naviController:)` in order to further customize presentation of the UI. */ open class OAuth2Authorizer: OAuth2AuthorizerUI { /// The OAuth2 instance this authorizer belongs to. public unowned let oauth2: OAuth2Base /// Used to store the `SFSafariViewControllerDelegate`. private var safariViewDelegate: AnyObject? /// Used to store the authentication session. private var authenticationSession: AnyObject? public init(oauth2: OAuth2Base) { self.oauth2 = oauth2 } // MARK: - OAuth2AuthorizerUI /** Uses `UIApplication` to open the authorize URL in iOS's browser. - parameter url: The authorize URL to open - throws: UnableToOpenAuthorizeURL on failure */ public func openAuthorizeURLInBrowser(_ url: URL) throws { #if !P2_APP_EXTENSIONS if !UIApplication.shared.openURL(url) { throw OAuth2Error.unableToOpenAuthorizeURL } #else throw OAuth2Error.unableToOpenAuthorizeURL #endif } /** Tries to use the current auth config context, which on iOS should be a UIViewController, to present the authorization screen. - throws: Can throw OAuth2Error if the method is unable to show the authorize screen - parameter with: The configuration to be used; usually uses the instance's `authConfig` - parameter at: The authorize URL to open */ public func authorizeEmbedded(with config: OAuth2AuthConfig, at url: URL) throws { if #available(iOS 11, *), config.ui.useAuthenticationSession { guard let redirect = oauth2.redirect else { throw OAuth2Error.noRedirectURL } authenticationSessionEmbedded(at: url, withRedirect: redirect) } else { guard let controller = config.authorizeContext as? UIViewController else { throw (nil == config.authorizeContext) ? OAuth2Error.noAuthorizationContext : OAuth2Error.invalidAuthorizationContext } if #available(iOS 9, *), config.ui.useSafariView { let web = try authorizeSafariEmbedded(from: controller, at: url) if config.authorizeEmbeddedAutoDismiss { oauth2.internalAfterAuthorizeOrFail = { wasFailure, error in web.dismiss(animated: true) } } } else { let web = try authorizeEmbedded(from: controller, at: url) if config.authorizeEmbeddedAutoDismiss { oauth2.internalAfterAuthorizeOrFail = { wasFailure, error in web.dismiss(animated: true) } } } } } /** Called with the view- and (possibly) navigation-controller that is about to be presented. Useful for subclasses, default implementation does nothing. - parameter viewController: The Safari- or web view controller that will be presented - parameter naviController: The navigation controller embedding the view controller, if any */ open func willPresent(viewController: UIViewController, in naviController: UINavigationController?) { } // MARK: - SFAuthenticationSession / ASWebAuthenticationSession /** Use SFAuthenticationSession or ASWebAuthenticationSession to manage authorisation. On iOS 11, use SFAuthenticationSession. On iOS 12+, use ASWebAuthenticationSession. The mechanism works just like when you're using Safari itself to log the user in, hence you **need to implement** `application(application:openURL:sourceApplication:annotation:)` in your application delegate. This method dismisses the view controller automatically - this cannot be disabled. - parameter at: The authorize URL to open - returns: A Boolean value indicating whether the web authentication session starts successfully. */ @available(iOS 11.0, *) @discardableResult public func authenticationSessionEmbedded(at url: URL, withRedirect redirect: String) -> Bool { let completionHandler: (URL?, Error?) -> Void = { url, error in if let url = url { do { try self.oauth2.handleRedirectURL(url as URL) } catch let err { self.oauth2.logger?.warn("OAuth2", msg: "Cannot intercept redirect URL: \(err)") } } else { self.oauth2.didFail(with: nil) } self.authenticationSession = nil } if #available(iOS 12, *) { authenticationSession = ASWebAuthenticationSession(url: url, callbackURLScheme: redirect, completionHandler: completionHandler) return (authenticationSession as! ASWebAuthenticationSession).start() } else { authenticationSession = SFAuthenticationSession(url: url, callbackURLScheme: redirect, completionHandler: completionHandler) return (authenticationSession as! SFAuthenticationSession).start() } } // MARK: - Safari Web View Controller /** Presents a Safari view controller from the supplied view controller, loading the authorize URL. The mechanism works just like when you're using Safari itself to log the user in, hence you **need to implement** `application(application:openURL:sourceApplication:annotation:)` in your application delegate. This method does NOT dismiss the view controller automatically, you probably want to do this in the callback. Simply call this method first, then call `dismissViewController()` on the returned web view controller instance in that closure. Or use `authorizeEmbedded(with:at:)` which does all this automatically. - parameter from: The view controller to use for presentation - parameter at: The authorize URL to open - returns: SFSafariViewController, being already presented automatically */ @available(iOS 9.0, *) @discardableResult public func authorizeSafariEmbedded(from controller: UIViewController, at url: URL) throws -> SFSafariViewController { safariViewDelegate = OAuth2SFViewControllerDelegate(authorizer: self) let web = SFSafariViewController(url: url) web.title = oauth2.authConfig.ui.title web.delegate = safariViewDelegate as! OAuth2SFViewControllerDelegate if #available(iOS 10.0, *), let barTint = oauth2.authConfig.ui.barTintColor { web.preferredBarTintColor = barTint } if #available(iOS 10.0, *), let tint = oauth2.authConfig.ui.controlTintColor { web.preferredControlTintColor = tint } web.modalPresentationStyle = oauth2.authConfig.ui.modalPresentationStyle willPresent(viewController: web, in: nil) controller.present(web, animated: true, completion: nil) return web } /** Called from our delegate, which reacts to users pressing "Done". We can assume this is always a cancel as nomally the Safari view controller is dismissed automatically. */ @available(iOS 9.0, *) func safariViewControllerDidCancel(_ safari: SFSafariViewController) { safariViewDelegate = nil oauth2.didFail(with: nil) } // MARK: - Custom Web View Controller /** Presents a web view controller, contained in a UINavigationController, on the supplied view controller and loads the authorize URL. Automatically intercepts the redirect URL and performs the token exchange. It does NOT however dismiss the web view controller automatically, you probably want to do this in the callback. Simply call this method first, then assign that closure in which you call `dismissViewController()` on the returned web view controller instance. - parameter from: The view controller to use for presentation - parameter at: The authorize URL to open - returns: OAuth2WebViewController, embedded in a UINavigationController being presented automatically */ public func authorizeEmbedded(from controller: UIViewController, at url: URL) throws -> OAuth2WebViewController { guard let redirect = oauth2.redirect else { throw OAuth2Error.noRedirectURL } return presentAuthorizeView(forURL: url, intercept: redirect, from: controller) } /** Presents and returns a web view controller loading the given URL and intercepting the given URL. - returns: OAuth2WebViewController, embedded in a UINavigationController being presented automatically */ final func presentAuthorizeView(forURL url: URL, intercept: String, from controller: UIViewController) -> OAuth2WebViewController { let web = OAuth2WebViewController() web.title = oauth2.authConfig.ui.title web.backButton = oauth2.authConfig.ui.backButton as? UIBarButtonItem web.showCancelButton = oauth2.authConfig.ui.showCancelButton web.startURL = url web.interceptURLString = intercept web.onIntercept = { url in do { try self.oauth2.handleRedirectURL(url as URL) return true } catch let err { self.oauth2.logger?.warn("OAuth2", msg: "Cannot intercept redirect URL: \(err)") } return false } web.onWillDismiss = { didCancel in if didCancel { self.oauth2.didFail(with: nil) } } let navi = UINavigationController(rootViewController: web) navi.modalPresentationStyle = oauth2.authConfig.ui.modalPresentationStyle if let barTint = oauth2.authConfig.ui.barTintColor { navi.navigationBar.barTintColor = barTint } if let tint = oauth2.authConfig.ui.controlTintColor { navi.navigationBar.tintColor = tint } willPresent(viewController: web, in: navi) controller.present(navi, animated: true) return web } } /** A custom `SFSafariViewControllerDelegate` that we use with the safari view controller. */ class OAuth2SFViewControllerDelegate: NSObject, SFSafariViewControllerDelegate { let authorizer: OAuth2Authorizer init(authorizer: OAuth2Authorizer) { self.authorizer = authorizer } @available(iOS 9.0, *) func safariViewControllerDidFinish(_ controller: SFSafariViewController) { authorizer.safariViewControllerDidCancel(controller) } } #endif
[ -1 ]
4686aa9fd328c6c7f184e2c0da7311485367661d
d7bd5b8c67722aad8ad308f56a53cc7ef7e53bb6
/MyCompanion/MemoryBookTileViewController.swift
c6cbac1d16bcf0a70094df76a0c0b4a700077ddf
[]
no_license
juliapohlmann/MyCompanion
23d631e5b2b786ba9c8ffad3d4364289af0a0475
c65f54b0f4ec26ddaf638f32858c76471d1891e6
refs/heads/master
2020-12-31T07:11:05.790873
2017-04-29T00:16:19
2017-04-29T00:16:19
80,562,559
0
0
null
null
null
null
UTF-8
Swift
false
false
792
swift
// // MemoryBookTileViewController.swift // MyCompanion // // Created by Julia Pohlmann on 3/5/17. // Copyright © 2017 EECS395. All rights reserved. // import Foundation import UIKit class MemoryBookTileViewController: UIViewController { @IBOutlet var memoryBookImage: UIImageView! override func viewDidLoad() { super.viewDidLoad() memoryBookImage.image = UIImage.fontAwesomeIcon(name: .book, textColor: UIColor.black, size: CGSize(width: 128, height: 128)) } @IBAction func memoryBookClick(_ sender: Any) { let memoryBookVC = storyboard!.instantiateViewController(withIdentifier: "ViewMemoryBookViewController") as! ViewMemoryBookViewController self.present(memoryBookVC, animated: true, completion: nil) } }
[ -1 ]
1e4d06f85ba752a1be3491635c60b8976700540a
550b428e3dd23e75a24f621038804b56b3b7ee72
/Performances/Database/Database.swift
dd0a44e69a2b5e6a15bc84f412614d6a2c0fbf09
[]
no_license
nashysolutions/RecordsDemo1
7a59194ab58ca96bbc08bf7960b2463dde4aa24f
30bcc27ba063a1ac29c9fde1795aa36a954dc3a9
refs/heads/master
2023-04-18T12:15:34.017072
2021-05-01T11:10:17
2021-05-01T11:10:17
363,368,452
0
0
null
null
null
null
UTF-8
Swift
false
false
1,090
swift
import Foundation import CoreData struct Database { static func populate(_ context: NSManagedObjectContext) throws { var event: Event? var party: Party? try JSONEvent.archive(in: context) { records in event = records.first } try JSONParty.archive(in: context) { records in party = records.first } try JSONPerformance.procure { decoded in // all performances are registering for the event starting "4/11/2017" // all performances and performers belong to the party named "School1" guard let event = event else { preconditionFailure() } try decoded.forEach { performance in guard let party = party else { preconditionFailure() } let export = try performance.connect(event: event, party: party, context) _ = try export.record(in: context) } } try context.save() } }
[ -1 ]
a40b0e8e8f9dd05cbb3ef7ca336f3a6c3fefa9b4
83512d2e09d9c6f3a014154c79a54393745b2213
/Gyrosender wrist Extension/ExtensionDelegate.swift
89e0cbc5fbdbfd0d7d176076dbb12d7b5af7527f
[]
no_license
Quite-nice/Gyrosender
50dd66415a3da65c9723844894ac1dbe89615ea8
6496c534600cf1be7b47af5d5bc9feaa0fb6f6d2
refs/heads/master
2020-04-02T23:02:34.855066
2016-06-15T07:54:50
2016-06-15T07:54:50
60,761,307
0
0
null
null
null
null
UTF-8
Swift
false
false
1,010
swift
// // ExtensionDelegate.swift // Gyrosender wrist Extension // // Created by Damiaan Dufaux on 9/06/16. // Copyright © 2016 Damiaan Dufaux. All rights reserved. // import WatchKit class ExtensionDelegate: NSObject, WKExtensionDelegate { func applicationDidFinishLaunching() { // Perform any final initialization of your application. } func applicationDidBecomeActive() { // 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 applicationWillResignActive() { // 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, etc. } }
[ 227714, 282373, 282121, 279690, 282383, 278671, 282386, 282397, 282526, 277408, 284833, 282407, 282415, 310196, 282422, 300601, 279742, 282307, 282316, 280143, 180047, 278611, 282325, 282334, 282343, 285287, 277489, 282353, 181617, 223348, 282362 ]
a1237e3916a001401dcabbbd1dc8922397129454
411dbfc9a08d6f801ce5169251e7df62a987602b
/Challenge 1 - Designing For Core Haptics By Hand/Results/Tanay Singhai/LofeltChallenge/LofeltChallenge/SceneDelegate.swift
388ac2174a62eb5e04f6dd3a555b79945d5f6393
[ "MIT" ]
permissive
Locke-Zhang/studio-creative-challenges
2d66c294174ffeacb0e8d8479b564b39c8e9dc0c
8072a530af4c37b74f918fd58b24fbcfdf7c6920
refs/heads/main
2023-02-18T21:46:39.737790
2021-01-21T21:18:49
2021-01-21T21:18:49
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,768
swift
// // SceneDelegate.swift // LofeltChallenge // // Created by Tanay Singhal on 8/6/20. // Copyright © 2020 Tanay Singhal. All rights reserved. // import UIKit import SwiftUI class SceneDelegate: UIResponder, UIWindowSceneDelegate { var window: UIWindow? func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). // Create the SwiftUI view that provides the window contents. let contentView = ContentView() // Use a UIHostingController as window root view controller. if let windowScene = scene as? UIWindowScene { let window = UIWindow(windowScene: windowScene) window.rootViewController = UIHostingController(rootView: contentView) self.window = window window.makeKeyAndVisible() } } func sceneDidDisconnect(_ scene: UIScene) { // Called as the scene is being released by the system. // This occurs shortly after the scene enters the background, or when its session is discarded. // Release any resources associated with this scene that can be re-created the next time the scene connects. // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). } func sceneDidBecomeActive(_ scene: UIScene) { // Called when the scene has moved from an inactive state to an active state. // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. } func sceneWillResignActive(_ scene: UIScene) { // Called when the scene will move from an active state to an inactive state. // This may occur due to temporary interruptions (ex. an incoming phone call). } func sceneWillEnterForeground(_ scene: UIScene) { // Called as the scene transitions from the background to the foreground. // Use this method to undo the changes made on entering the background. } func sceneDidEnterBackground(_ scene: UIScene) { // Called as the scene transitions from the foreground to the background. // Use this method to save data, release shared resources, and store enough scene-specific state information // to restore the scene back to its current state. } }
[ 268299, 352294, 163892, 16444, 254020, 217158, 286804, 368736, 342113, 286833, 368753, 192640, 268435, 286880, 286889, 350411, 346317, 180432, 350417, 368854, 350423, 350426, 334047, 356580, 350449, 387314, 375027, 350459, 336124, 321787, 350462, 350465, 336129, 350469, 389381, 325895, 350477, 43279, 350481, 350487, 325915, 350491, 381212, 325918, 350494, 182559, 258333, 350500, 194854, 350505, 350510, 395567, 248112, 307507, 340276, 264502, 332098, 201030, 190797, 334162, 418135, 250201, 332126, 332130, 250211, 250217, 182642, 268669, 194942, 250239, 389507, 393613, 383375, 340380, 268702, 416159, 176545, 326059, 373169, 266688, 338387, 334306, 338411, 162289, 328178, 199165, 266757, 164362, 334359, 334364, 381483, 334386, 188990, 340580, 375401, 191085, 346736, 268922, 119432, 213642, 330384, 326291, 340639, 332455, 271018, 389806, 385714, 336568, 373450, 418508, 183006, 139998, 338661, 332521, 338665, 418540, 330479, 342769, 418555, 207620, 336644, 191240, 326417, 338712, 199455, 152371, 326452, 326455, 340792, 348983, 326463, 326468, 127815, 336712, 326474, 355151, 326479, 326486, 136024, 326494, 439138, 326503, 375657, 326508, 201580, 201583, 326511, 355185, 330612, 201589, 359296, 351105, 252801, 373635, 342921, 236432, 361361, 330643, 252838, 187335, 398280, 347082, 340940, 248799, 386023, 359411, 330750, 265215, 338951, 326669, 330769, 361490, 349203, 209944, 209948, 357411, 250915, 158759, 347178, 209966, 209973, 386102, 209976, 209988, 209991, 347208, 197708, 341072, 345172, 156762, 343132, 322660, 326764, 210028, 326767, 187503, 386168, 210042, 210045, 361599, 351366, 330886, 351382, 337048, 210078, 210081, 251045, 210085, 337072, 210096, 337076, 345268, 210100, 249015, 367801, 343232, 210116, 326858, 333003, 322763, 343246, 333010, 146644, 210139, 66783, 328933, 388348, 343307, 333079, 251161, 245021, 208167, 263464, 245032, 245042, 44343, 386366, 343366, 126279, 337224, 251211, 357710, 331089, 437588, 263509, 331094, 197987, 208228, 343399, 345449, 333164, 99692, 234867, 249210, 175484, 245128, 361869, 136591, 245137, 245146, 343453, 245149, 245152, 263585, 396706, 245155, 40358, 245158, 245163, 337330, 146878, 361922, 327116, 327118, 208338, 343509, 181717, 343545, 423424, 253445, 339464, 249355, 405017, 345626, 339504, 349748, 206397, 214594, 333387, 366173, 343650, 333415, 327276, 245358, 222831, 138865, 372354, 339593, 159375, 339602, 333472, 345763, 345766, 425639, 155323, 333499, 337601, 333512, 210632, 339664, 358100, 419543, 212700, 181982, 153311, 337643, 339696, 245495, 141052, 337661, 333566, 366349, 249617, 210720, 116512, 362274, 372533, 345916, 399166, 384831, 247618, 341835, 354124, 323404, 337743, 354132, 341852, 413539, 399208, 339818, 339827, 358260, 341877, 399222, 243584, 333699, 333709, 329625, 382898, 184245, 350153, 346059, 311244, 419810, 247790, 204785, 380919 ]
2a5ade24064cd40b1541aff2c14fc45e4b9afe67
90f4b04bfc776c3290bad931705a6bc555d6d723
/qzhApp/Classes/View/CYSQ/View/Sort_CYSQ/Model/QZHCYSQSearchProListParamModel.swift
a430b690e8dbe972f2d07eca3d50851a9b8dc528
[]
no_license
wangruiyuan-wry/qzhApp
2c0eabd24f33b42b5f851ca6cb085a659a252510
d4d2588c6bab1ebd547f39bcbc1591a2d02be118
refs/heads/master
2021-09-15T02:17:29.397400
2018-05-24T08:01:37
2018-05-24T08:01:37
115,596,594
0
0
null
null
null
null
UTF-8
Swift
false
false
3,387
swift
// // QZHCYSQSearchProListParamModel.swift // 千纸鹤SCEO // // Created by sbxmac on 2018/4/13. // Copyright © 2018年 SpecialTech. All rights reserved. // import Foundation class QZHCYSQSearchProListParamModel:NSObject{ struct param { // 查询内容 static var q:String = "" // 页码 static var pageNo:Int = 0 // 页面容量 static var pageSize:Int = 20 // 排序(1:综合排序,2:销量优先,3:价格递增,4:价格递减,5:新品) static var order:Int = 1 // 规格(多个规格以逗号隔开) static var specOptionName:String = "" // 店铺id static var shopId:Int = 0 // 店铺自定义分类Id static var customCategoryId:String = "" // 品牌(多个品牌逗号隔开) static var brand:String = "" // 价格区间筛选(1-100) static var price:String = "" // 分类id static var categoryId:String = "" // 一级分类id static var category_id_lv1:String = "" static var closeFlag:Bool = true // 是否筛选 static var isScreen:Bool = false } } extension QZHCYSQSearchProListParamModel{ class var isScreen:Bool{ set{ param.isScreen = newValue } get{ return param.isScreen } } class var closeFlag:Bool{ set{ param.closeFlag = newValue } get{ return param.closeFlag } } class var category_id_lv1:String{ set{ param.category_id_lv1 = newValue } get{ return param.category_id_lv1 } } class var categoryId:String{ set{ param.categoryId = newValue } get{ return param.categoryId } } class var price:String{ set{ param.price = newValue } get{ return param.price } } class var brand:String{ set{ param.brand = newValue } get{ return param.brand } } class var customCategoryId:String{ set{ param.customCategoryId = newValue } get{ return param.customCategoryId } } class var specOptionName:String{ set{ param.specOptionName = newValue } get{ return param.specOptionName } } class var q:String{ set{ param.q = newValue } get{ return param.q } } class var pageNo:Int{ set{ param.pageNo = newValue } get{ return param.pageNo } } class var pageSize:Int{ set{ param.pageSize = newValue } get{ return param.pageSize } } class var order:Int{ set{ param.order = newValue } get{ return param.order } } class var shopId:Int{ set{ param.shopId = newValue } get{ return param.shopId } } }
[ -1 ]
da34fc52dfcf2f67f41ef9a095e0fb6908136590
bbc129d558defff0bc5e0245617e461bbe07b1e3
/TextImageButton.swift
3f91f452512912704c017315ef12d83b6b9792e9
[]
no_license
satyanarayanachebrolu/iOptic_iOS
b4585de5fbaf7ba30b5006ad5406159a8fabbc65
bced8cceb989af4e2b4edd825dffaff71eb509f9
refs/heads/master
2021-01-19T12:44:28.152596
2019-04-17T21:13:47
2019-04-17T21:13:47
100,804,169
0
0
null
null
null
null
UTF-8
Swift
false
false
3,915
swift
// // UIEdgeInsets+HorizontalAdjustment.swift // TextImageButton // // Created by Tim Bodeit on 20/08/15. // // import UIKit /** UIButton subclass that allows allows changing spacing between text and image and side the image is displayed on. */ @objc open class TextImageButton: UIButton { /// Represents horizontal side for the imagePosition attribute @objc public enum Side: Int { case left, right } /// The spacing between the button image and the button title @IBInspectable open var spacing: CGFloat = 0.0 as CGFloat { didSet { invalidateIntrinsicContentSize() } } /// The side of the button to display the image on @objc open var imagePosition: Side = Side.left { didSet { setNeedsLayout() } } /// IBInspectable accessor for imagePosition @objc @IBInspectable open var imageOnRight: Bool { get { return imagePosition == .right } set { imagePosition = newValue ? .right : .left } } // MARK: - Spacing /** Controls enabling adjustments of the edgeInsets to realize the spacing. Increment to enable, decrement to disable. Adjustments are enabled for any value > 0 Should only be used inside intristicContentSize and fooRectForBar methods */ private var enableSpacingAdjustments = 0 override open var contentEdgeInsets: UIEdgeInsets { get { let adjustment = (enableSpacingAdjustments > 0) ? (spacing/2) : 0 return super.contentEdgeInsets.adjust(left: adjustment, right: adjustment) } set(contentEdgeInsets) { super.contentEdgeInsets = contentEdgeInsets } } override open var titleEdgeInsets: UIEdgeInsets { get { let adjustment = (enableSpacingAdjustments > 0) ? (spacing/2) : 0 return super.titleEdgeInsets.adjust(left: adjustment, right: -adjustment) } set(titleEdgeInsets) { super.titleEdgeInsets = titleEdgeInsets } } override open var imageEdgeInsets: UIEdgeInsets { get { let adjustment = (enableSpacingAdjustments > 0) ? (spacing/2) : 0 return super.imageEdgeInsets.adjust(left: -adjustment, right: adjustment) } set(imageEdgeInsets) { super.imageEdgeInsets = imageEdgeInsets } } open override var intrinsicContentSize: CGSize { enableSpacingAdjustments += 1 let contentSize = super.intrinsicContentSize enableSpacingAdjustments -= 1 return contentSize } open override func sizeThatFits(_ size: CGSize) -> CGSize { enableSpacingAdjustments += 1 let size = super.sizeThatFits(size) enableSpacingAdjustments -= 1 return size } open override func contentRect(forBounds bounds: CGRect) -> CGRect { enableSpacingAdjustments += 1 let contentRect = super.contentRect(forBounds: bounds) enableSpacingAdjustments -= 1 return contentRect } // MARK: - Image Side open override func titleRect(forContentRect contentRect: CGRect) -> CGRect { enableSpacingAdjustments += 1 var titleRect = super.titleRect(forContentRect: contentRect) let imageRect = super.imageRect(forContentRect: contentRect) enableSpacingAdjustments -= 1 if imagePosition == .right { titleRect.origin.x = imageRect.minX } return titleRect } open override func imageRect(forContentRect contentRect: CGRect) -> CGRect { enableSpacingAdjustments += 1 let titleRect = super.titleRect(forContentRect: contentRect) var imageRect = super.imageRect(forContentRect: contentRect) enableSpacingAdjustments -= 1 if imagePosition == .right { imageRect.origin.x = titleRect.maxX - imageRect.width } return imageRect } open override func setTitle(_ title: String?, for state: UIControlState) { super.setTitle(title, for: state) self.imageOnRight = true self.spacing = 2.0 self.layoutIfNeeded() } }
[ -1 ]
d6e0f126e7a16dab9f2dcc17b6f96e87541ffe0e
7c4a619b6a4f673f1dad5ec16c8bb50620387468
/breakpoint/View/Group.swift
d0fbffdc3accd16048c5ed13b1a17608b1bc0a3d
[]
no_license
rpearce63/breakpoint
36aa2fb9b39f3830bfe622ef99b957d535fb8b70
43a33a054f789916b3f4f8f437f0a4d4faca66a9
refs/heads/master
2020-03-09T03:52:06.568622
2018-04-11T16:54:46
2018-04-11T16:54:46
128,574,552
0
0
null
null
null
null
UTF-8
Swift
false
false
939
swift
// // Group.swift // breakpoint // // Created by Rick Pearce on 4/10/18. // Copyright © 2018 Pearce. All rights reserved. // import Foundation class Group { private var _groupTitle: String private var _groupDesc: String private var _key: String private var _memberCount: Int private var _members: [String] var groupTitle : String { return _groupTitle } var groupDesc : String { return _groupDesc } var key: String { return _key } var memberCount : Int { return _memberCount } var members : [String] { return _members } init(title: String, description: String, key: String, members: [String], memberCount: Int) { self._groupTitle = title self._groupDesc = description self._key = key self._members = members self._memberCount = memberCount } }
[ -1 ]
46a8bb8e02f394713e5315fa57b461b07fbb683f
f9e27faa9992377c05b547f4027e2f8047128a1c
/PodTest/AppDelegate.swift
6cb3ad05db09b30b1187f527fff0c7539376e5a7
[]
no_license
phantomzmc/PodTest
cdff73fe8b55d3b6e32a925c482973073519e459
6111852499edab855281202f84c0239c444c5187
refs/heads/master
2021-01-01T04:33:15.257089
2017-07-14T05:52:15
2017-07-14T05:52:15
97,197,814
0
0
null
null
null
null
UTF-8
Swift
false
false
4,608
swift
// // AppDelegate.swift // PodTest // // Created by Thannathrn Yuwasin on 7/14/2560 BE. // Copyright © 2560 Thannathrn Yuwasin. All rights reserved. // import UIKit import CoreData @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:. // 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: "PodTest") 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, 322580, 289300, 290326, 329747, 139803, 103964, 322080, 306721, 229408, 296483, 322083, 229411, 306726, 309287, 308266, 292907, 217132, 322092, 40495, 316465, 288306, 322102, 324663, 164408, 308281, 322109, 286783, 315457, 313409, 313413, 320582, 349765, 309832, 288329, 242250, 215117, 196177, 241746, 344661, 231000, 212571, 300124, 287323, 309342, 325220, 306790, 290409, 310378, 296043, 311914, 152685, 334446, 307310, 322666, 292466, 314995, 307315, 314487, 291450, 314491, 222846, 288383, 318599, 312970, 239252, 311444, 294038, 311449, 323739, 300194, 298662, 233638, 233644, 313005, 286896, 295600, 300208, 286389, 294070, 125111, 234677, 321212, 309439, 235200, 284352, 296641, 242371, 302787, 284360, 321228, 319181, 298709, 284374, 189654, 182486, 320730, 241371, 311516, 357083, 179420, 322272, 317665, 298210, 165091, 311525, 288489, 290025, 229098, 307436, 304365, 323310, 125167, 313073, 286455, 306424, 322299, 319228, 302332, 319231, 184576, 309505, 241410, 311043, 366339, 309509, 318728, 125194, 234763, 321806, 125201, 296218, 313116, 237858, 326434, 295716, 313125, 300836, 289577, 125226, 133421, 317233, 241971, 316726, 318264, 201530, 313660, 159549, 287038, 292159, 218943, 182079, 288578, 301893, 234828, 292172, 300882, 379218, 321364, 243032, 201051, 230748, 258397, 294238, 298844, 300380, 291169, 199020, 293741, 266606, 319342, 292212, 313205, 244598, 316788, 124796, 196988, 305022, 317821, 243072, 314241, 313215, 303999, 242050, 325509, 293767, 316300, 306576, 322448, 308114, 319900, 298910, 313250, 308132, 316327, 306605, 316334, 324015, 324017, 200625, 300979, 316339, 322998, 67000, 316345, 296888, 300987, 319932, 310718, 292288, 317888, 323520, 312772, 214980, 298950, 306632, 310733, 289744, 310740, 235994, 286174, 315359, 240098, 323555, 236008, 319465, 248299, 311789, 326640, 188913, 203761, 320498, 314357, 288246, 309243, 300540, 310782 ]
0082792f5ccb7e1b31de0c487cb5a71c72e6cf29
cce633b17fff06de8b2bb50d05e109b536ef26d3
/JournalCoreData/Model Controllers/CoreDataImporter.swift
1396109e93c528484ba3a20d673e6ebcaa793467
[]
no_license
AustinBCole/ios-journal-performance
c76b6cbd64733e7a55a42795b1e95ee303d527c0
9de503b375e7d7dc6ea16dce6030a5f32e85294f
refs/heads/master
2020-04-19T13:45:45.693112
2019-01-30T00:02:09
2019-01-30T00:02:09
168,225,597
0
0
null
null
null
null
UTF-8
Swift
false
false
2,015
swift
// // CoreDataImporter.swift // JournalCoreData // // Created by Andrew R Madsen on 9/10/18. // Copyright © 2018 Lambda School. All rights reserved. // import Foundation import CoreData class CoreDataImporter { init(context: NSManagedObjectContext) { self.context = context } func sync(entries: [EntryRepresentation], completion: @escaping (Error?) -> Void = { _ in }) { self.context.perform { print(Date().description) for entryRep in entries { guard let identifier = entryRep.identifier else { continue } let entry = self.fetchSingleEntryFromPersistentStore(with: identifier, in: self.context) if let entry = entry, entry != entryRep { self.update(entry: entry, with: entryRep) } else if entry == nil { _ = Entry(entryRepresentation: entryRep, context: self.context) } } print(Date().description) completion(nil) } } private func update(entry: Entry, with entryRep: EntryRepresentation) { entry.title = entryRep.title entry.bodyText = entryRep.bodyText entry.mood = entryRep.mood entry.timestamp = entryRep.timestamp entry.identifier = entryRep.identifier } private func fetchSingleEntryFromPersistentStore(with identifier: String?, in context: NSManagedObjectContext) -> Entry? { guard let identifier = identifier else { return nil } let fetchRequest: NSFetchRequest<Entry> = Entry.fetchRequest() fetchRequest.predicate = NSPredicate(format: "identifier == %@", identifier) var result: Entry? = nil do { result = try context.fetch(fetchRequest).first } catch { NSLog("Error fetching single entry: \(error)") } return result } let context: NSManagedObjectContext }
[ -1 ]
97df444cba1c5cb65136284cc96f0dc8f5cab345
57151d6d5db2cb37080500fb1883230be254d07e
/RedditorUITests/RedditorUITests.swift
b641c2e013bc68a4cf9e15c81899d453c3de55aa
[]
no_license
Learn-Swift-Boston/11-19-20_testing
0d83f60cb9c24f362cba779865c19db5b4ebf7ff
5299c17538a6881625152f3d25f20b73412c202c
refs/heads/main
2023-02-18T06:44:23.538038
2021-01-21T23:18:58
2021-01-21T23:18:58
313,480,112
0
0
null
null
null
null
UTF-8
Swift
false
false
1,414
swift
// // RedditorUITests.swift // RedditorUITests // // Created by Matt Dias on 11/10/20. // import XCTest class RedditorUITests: XCTestCase { override func setUpWithError() throws { // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is usually best to stop immediately when a failure occurs. continueAfterFailure = false // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. } override func tearDownWithError() throws { // Put teardown code here. This method is called after the invocation of each test method in the class. } func testExample() throws { // UI tests must launch the application that they test. let app = XCUIApplication() app.launch() // Use recording to get started writing UI tests. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testLaunchPerformance() throws { if #available(macOS 10.15, iOS 13.0, tvOS 13.0, *) { // This measures how long it takes to launch your application. measure(metrics: [XCTApplicationLaunchMetric()]) { XCUIApplication().launch() } } } }
[ 360463, 155665, 376853, 344106, 253996, 385078, 163894, 180279, 352314, 213051, 376892, 32829, 286787, 352324, 237638, 352327, 385095, 393291, 163916, 368717, 311373, 196687, 278607, 311377, 254039, 426074, 368732, 180317, 32871, 352359, 221292, 278637, 385135, 319599, 376945, 131190, 385147, 131199, 426124, 196758, 49308, 65698, 311459, 49317, 377008, 377010, 180409, 295099, 377025, 377033, 164043, 417996, 254157, 368849, 368850, 139478, 229591, 385240, 254171, 147679, 147680, 311520, 205034, 254189, 286957, 254193, 344312, 336121, 262403, 147716, 385291, 368908, 180494, 262419, 368915, 254228, 319764, 278805, 377116, 254250, 311596, 131374, 418095, 336177, 368949, 180534, 155968, 287040, 311622, 270663, 368969, 254285, 180559, 377168, 344402, 229716, 368982, 270703, 139641, 385407, 385409, 270733, 106893, 385423, 385433, 213402, 385437, 254373, 156069, 385448, 385449, 115116, 385463, 319931, 278974, 336319, 336323, 188870, 278988, 278992, 262619, 377309, 377310, 369121, 369124, 279014, 270823, 279017, 311787, 213486, 360945, 139766, 393719, 279030, 377337, 279033, 254459, 410108, 410109, 262657, 377346, 279042, 279053, 410126, 262673, 385554, 393745, 303635, 279060, 279061, 254487, 410138, 279066, 188957, 377374, 385569, 385578, 377388, 197166, 393775, 418352, 33339, 352831, 33344, 385603, 377419, 385612, 303693, 426575, 385620, 369236, 115287, 189016, 270938, 287327, 279143, 279150, 287345, 352885, 352886, 344697, 189054, 287359, 385669, 369285, 311944, 344714, 311950, 377487, 311953, 287379, 336531, 180886, 426646, 352921, 377499, 221853, 344737, 295591, 352938, 295598, 418479, 279215, 279218, 164532, 336565, 287418, 377531, 303802, 377534, 377536, 66243, 385737, 287434, 385745, 279249, 303826, 369365, 369366, 385751, 230105, 361178, 352989, 352990, 418529, 295649, 385763, 295653, 369383, 230120, 361194, 312046, 418550, 344829, 279293, 205566, 197377, 434956, 312076, 295698, 418579, 426772, 197398, 426777, 221980, 344864, 197412, 336678, 262952, 189229, 262957, 164655, 197424, 328495, 197428, 336693, 230198, 377656, 426809, 197433, 222017, 295745, 377669, 197451, 369488, 279379, 385878, 385880, 295769, 197467, 435038, 230238, 279393, 303973, 279398, 385895, 197479, 385901, 197489, 295799, 164730, 336765, 254851, 369541, 172936, 320394, 426894, 377754, 172971, 140203, 377778, 304050, 189362, 189365, 377789, 189373, 345030, 345034, 279499, 418774, 386007, 386009, 418781, 386016, 123880, 418793, 320495, 222193, 435185, 271351, 214009, 312313, 435195, 328701, 312317, 386049, 328705, 418819, 410629, 377863, 189448, 230411, 361487, 435216, 386068, 254997, 336928, 336930, 410665, 345137, 361522, 312372, 238646, 238650, 320571, 386108, 410687, 336962, 238663, 377927, 361547, 205911, 156763, 361570, 214116, 230500, 214119, 402538, 279659, 173168, 230514, 238706, 279666, 312435, 377974, 66684, 377986, 279686, 402568, 222344, 140426, 337037, 386191, 410772, 222364, 418975, 124073, 402618, 148674, 402632, 148687, 402641, 189651, 419028, 279766, 189656, 304353, 279780, 222441, 279789, 386288, 66802, 271607, 369912, 386296, 369913, 419066, 386300, 279803, 386304, 369929, 419097, 320795, 115997, 222496, 320802, 304422, 369964, 353581, 116014, 66863, 312628, 345397, 345398, 386363, 222523, 345418, 353611, 337228, 337226, 353612, 230730, 296269, 353617, 222542, 238928, 296274, 378201, 230757, 296304, 312688, 337280, 353672, 263561, 296328, 296330, 370066, 9618, 411028, 279955, 370072, 148899, 148900, 361928, 337359, 329168, 312785, 329170, 222674, 353751, 280025, 239069, 361958, 271850, 280042, 280043, 271853, 329198, 411119, 337391, 116209, 296434, 386551, 288252, 271880, 198155, 329231, 304655, 370200, 222754, 157219, 157220, 394793, 312879, 288305, 288319, 288322, 280131, 288328, 353875, 312937, 271980, 206447, 403057, 42616, 337533, 280193, 370307, 419462, 149127, 149128, 419464, 288391, 411275, 214667, 239251, 345753, 198304, 255651, 337590, 370359, 280252, 280253, 321217, 239305, 296649, 403149, 313042, 345813, 370390, 272087, 345817, 337638, 181992, 345832, 345835, 288492, 141037, 313082, 288508, 288515, 173828, 395018, 395019, 116491, 395026, 116502, 435993, 345882, 411417, 255781, 362281, 378666, 403248, 378673, 345910, 182070, 182071, 436029, 345918, 337734, 280396, 272207, 272208, 337746, 395092, 362326, 345942, 370526, 345950, 362336, 255844, 296807, 214894, 362351, 313200, 214896, 313204, 182145, 280451, 67464, 305032, 337816, 329627, 239515, 354210, 436130, 436135, 10153, 313257, 362411, 370604, 362418, 411587, 280517, 362442, 346066, 231382, 354268, 436189, 403421, 329696, 354273, 403425, 354279, 436199, 174058, 337899, 354283, 247787, 329707, 247786, 296942, 436209, 239610, 182277, 346117, 403463, 43016, 354312, 354311, 354310, 313356, 436235, 419857, 305173, 436248, 223269, 346153, 354346, 313388, 272432, 403507, 378933, 378934, 436283, 288835, 403524, 436293, 313415, 239689, 436304, 329812, 223317, 411738, 272477, 280676, 313446, 395373, 288878, 346237, 215165, 436372, 329884, 378186, 362658, 436388, 215204, 133313, 395458, 338118, 436429, 346319, 379102, 387299, 18661, 379110, 338151, 149743, 379120, 436466, 411892, 436471, 395511, 313595, 436480, 272644, 338187, 338188, 395536, 338196, 272661, 379157, 338217, 321839, 362809, 379193, 395591, 289109, 272730, 436570, 215395, 239973, 280938, 321901, 354671, 362864, 272755, 354678, 199030, 223611, 436609, 436613, 395653, 395660, 264591, 272784, 420241, 240020, 190870, 43416, 190872, 289185, 436644, 289195, 272815, 436659, 338359, 436677, 289229, 281038, 281039, 256476, 420326, 166403, 420374, 322077, 289328, 330291, 322119, 191065, 436831, 420461, 346739, 346741, 420473, 297600, 166533, 363155, 346771, 264855, 363161, 289435, 436897, 248494, 166581, 355006, 363212, 363228, 436957, 322269, 436960, 264929, 338658, 289511, 330473, 346859, 330476, 289517, 215790, 199415, 289534, 322302, 35584, 133889, 322312, 346889, 166677, 207639, 363295, 355117, 191285, 273209, 355129, 273211, 355136, 355138, 420680, 355147, 355148, 355153, 281426, 387927, 363353, 363354, 281434, 420702, 363361, 363362, 412516, 355173, 355174, 281444, 207724, 355182, 207728, 420722, 314240, 158594, 330627, 240517, 265094, 387977, 396171, 355216, 224146, 224149, 256918, 256919, 256920, 240543, 256934, 273336, 289720, 289723, 273341, 330688, 379845, 363462, 19398, 273353, 191445, 207839, 347104, 314343, 134124, 412653, 248815, 257007, 347122, 437245, 257023, 125953, 396292, 330759, 347150, 330766, 412692, 330789, 248871, 281647, 412725, 257093, 404550, 207954, 339031, 404582, 257126, 265318, 322664, 265323, 396395, 404589, 273523, 363643, 248960, 363658, 404622, 224400, 265366, 347286, 429209, 339101, 429216, 380069, 265381, 3243, 208044, 322733, 421050, 339131, 265410, 183492, 273616, 421081, 339167, 298209, 421102, 363769, 52473, 208123, 52476, 412926, 437504, 322826, 388369, 380178, 429332, 126229, 412963, 257323, 437550, 273713, 298290, 208179, 159033, 347451, 372039, 257353, 257354, 109899, 437585, 331091, 150868, 314708, 372064, 429410, 437602, 281958, 388458, 265579, 306541, 421240, 224637, 388488, 298378, 306580, 282008, 396697, 282013, 290206, 396709, 298406, 241067, 380331, 314797, 380335, 355761, 421302, 134586, 380348, 216510, 380350, 216511, 306630, 200136, 273865, 306634, 339403, 372172, 413138, 421338, 437726, 429540, 3557, 3559, 191980, 282097, 265720, 216575, 290304, 372226, 437766, 323083, 208397, 323088, 413202, 413206, 388630, 175640, 216610, 372261, 347693, 323120, 396850, 200245, 323126, 290359, 134715, 323132, 421437, 396865, 282182, 413255, 273992, 265800, 421452, 265809, 396885, 290391, 265816, 396889, 306777, 388699, 396896, 388712, 388713, 314997, 290425, 339579, 396927, 282248, 224907, 396942, 405140, 274071, 323226, 208547, 208548, 405157, 388775, 282279, 364202, 421556, 224951, 224952, 306875, 282302, 323262, 241366, 224985, 282330, 159462, 372458, 397040, 12017, 323315, 274170, 200444, 175874, 249606, 282379, 216844, 372497, 397076, 421657, 339746, 216868, 257831, 167720, 241447, 421680, 282418, 274234, 339782, 315209, 159563, 339799, 307038, 274276, 282471, 274288, 372592, 274296, 339840, 372625, 282517, 298912, 118693, 438186, 126896, 151492, 380874, 372699, 323554, 380910, 380922, 380923, 274432, 372736, 241695, 430120, 102441, 315433, 430127, 405552, 282671, 241717, 249912, 225347, 307269, 421958, 233548, 315468, 176209, 381013, 53334, 315477, 200795, 356446, 323678, 438374, 176231, 438378, 233578, 422000, 249976, 266361, 422020, 168069, 381061, 168070, 381071, 241809, 430231, 200856, 422044, 192670, 192671, 299166, 258213, 299176, 323761, 184498, 266427, 356550, 299208, 372943, 266447, 258263, 356575, 307431, 438512, 372979, 389364, 381173, 135416, 356603, 184574, 266504, 217352, 61720, 381210, 282908, 389406, 282912, 233761, 438575, 315698, 266547, 397620, 332084, 438583, 127292, 438592, 332100, 323914, 201037, 397650, 348499, 250196, 348501, 389465, 332128, 110955, 242027, 242028, 160111, 250227, 315768, 291193, 438653, 291200, 266628, 340356, 242059, 225684, 373141, 373144, 291225, 389534, 397732, 373196, 176602, 242138, 184799, 291297, 201195, 324098, 233987, 340489, 397841, 283154, 258584, 397855, 291359, 348709, 348710, 397872, 283185, 234037, 340539, 266812, 438850, 348741, 381515, 348748, 430681, 332379, 242274, 184938, 373357, 184942, 176751, 389744, 356983, 356984, 209529, 356990, 291455, 373377, 422529, 201348, 152196, 356998, 348807, 356999, 316044, 275102, 176805, 340645, 422567, 176810, 160441, 422591, 291529, 225996, 135888, 242385, 234216, 373485, 373486, 21239, 275193, 348921, 234233, 242428, 299777, 430853, 430860, 62222, 430880, 234276, 234290, 152372, 160569, 430909, 160576, 348999, 283466, 234330, 275294, 381791, 127840, 357219, 439145, 177002, 308075, 381811, 201590, 177018, 398205, 340865, 291713, 349066, 316299, 349068, 234382, 308111, 381840, 308113, 390034, 373653, 430999, 209820, 381856, 398244, 185252, 422825, 381872, 177074, 398268, 349122, 398275, 373705, 127945, 340960, 398305, 340967, 398313, 234476, 127990, 349176, 201721, 349179, 234499, 357380, 398370, 357413, 357420, 300087, 21567, 308288, 398405, 349254, 218187, 250955, 300109, 234578, 250965, 439391, 250982, 398444, 62574, 357487, 300147, 119925, 349304, 234626, 349315, 349317, 234635, 373902, 234655, 234662, 373937, 373939, 324790, 300215, 218301, 283841, 283846, 259275, 316628, 259285, 357594, 414956, 251124, 316661, 292092, 439550, 439563, 242955, 414989, 259346, 349458, 259347, 382243, 382246, 382257, 292145, 382264, 333115, 193853, 193858, 251212, 406862, 234830, 259408, 283990, 357720, 300378, 300379, 374110, 234864, 259449, 382329, 357758, 243073, 357763, 112019, 398740, 234902, 374189, 251314, 284086, 259513, 54719, 292291, 300490, 300526, 259569, 251379, 300539, 398844, 210429, 366081, 316951, 374297, 153115, 431646, 349727, 431662, 374327, 210489, 235069, 349764, 292424, 292426, 128589, 333389, 333394, 349780, 128600, 235096, 300643, 300645, 415334, 54895, 366198, 210558, 210559, 415360, 325246, 415369, 431754, 210569, 267916, 415376, 259741, 153252, 399014, 210601, 202413, 415419, 259780, 333508, 267978, 333522, 325345, 333543, 325357, 431861, 284410, 161539, 284425, 300812, 284430, 366358, 169751, 431901, 341791, 186148, 186149, 284460, 202541, 431918, 399148, 153392, 431935, 415555, 325444, 153416, 325449, 341837, 415566, 431955, 325460, 341846, 300893, 259937, 382820, 276326, 415592, 292713, 292719, 325491, 341878, 276343, 350072, 333687, 112510, 325508, 333700, 243590, 325514, 350091, 350092, 350102, 350108, 333727, 219046, 284584, 292783, 300983, 128955, 219102, 292835, 6116, 317416, 432114, 325620, 415740, 268286, 415744, 243720, 399372, 153618, 358418, 178215, 325675, 243763, 358455, 399433, 333902, 104534, 194667, 260206, 432241, 284789, 374913, 374914, 415883, 333968, 153752, 333990, 104633, 260285, 227517, 268479, 374984, 301270, 301271, 334049, 325857, 268515, 383208, 317676, 260337, 260338, 432373, 375040, 309504, 432387, 260355, 375052, 194832, 325904, 391448, 268570, 178459, 186660, 268581, 334121, 358698, 317738, 260396, 325930, 432435, 358707, 178485, 358710, 14654, 268609, 227655, 383309, 383327, 391521, 366948, 416101, 416103, 383338, 432503, 432511, 211327, 227721, 285074, 252309, 39323, 285083, 317851, 285089, 375211, 334259, 129461, 342454, 358844, 293309, 317889, 326083, 416201, 129484, 154061, 416206, 326093, 432608, 285152, 391654, 432616, 334315, 375281, 293368, 317949, 334345, 309770, 342537, 342549, 342560, 416288, 350758, 350759, 358951, 358952, 293420, 219694, 219695, 375345, 432694, 244279, 309831, 375369, 375373, 416334, 301647, 416340, 244311, 416353, 260705, 375396, 268901, 244345, 334473, 375438, 326288, 285348, 293552, 342705, 285362, 383668, 342714, 39616, 383708, 342757, 269036, 432883, 203511, 342775, 383740, 416509, 359166, 162559, 375552, 432894, 228099, 285443, 285450, 383755, 326413, 285467, 326428, 318247, 342827, 391980, 318251, 375610, 301883, 342846, 416577, 416591, 244569, 375644, 252766, 293729, 351078, 342888, 392057, 211835, 392065, 260995, 400262, 392071, 424842, 236427, 252812, 400271, 392080, 400282, 7070, 211871, 359332, 359333, 293801, 326571, 252848, 326580, 261045, 261046, 326586, 359365, 211913, 326602, 342990, 252878, 433104, 56270, 359380, 433112, 433116, 359391, 187372, 343020, 383980, 203758, 383994, 171009, 384004, 433166, 384015, 433173, 293911, 326684, 252959, 384031, 375848, 318515, 203829, 261191, 375902, 375903, 392288, 253028, 351343, 187505, 138354, 187508, 384120, 302202, 285819, 392317, 343166, 384127, 392320, 285823, 285833, 285834, 318602, 228492, 253074, 326803, 187539, 359574, 285850, 351389, 302239, 253098, 302251, 367791, 367792, 367798, 64699, 294075, 228541, 343230, 367809, 253124, 113863, 351445, 310496, 195809, 253168, 351475, 351489, 367897, 367898, 130342, 130344, 130347, 261426, 212282, 294210, 359747, 359748, 146760, 146763, 114022, 253288, 425327, 425331, 163190, 327030, 384379, 253316, 294278, 384391, 318860, 253339, 253340, 318876, 343457, 245160, 359860, 359861, 343480, 310714, 228796, 228804, 425417, 310731, 327122, 425434, 310747, 310758, 253431, 359931, 187900, 343552, 245249, 228868, 409095, 359949, 294413, 253456, 302613, 253462, 146976, 245290, 245291, 343606, 163385, 425534, 138817, 147011, 147020, 179800, 196184, 343646, 212574, 204386, 155238, 204394, 138862, 310896, 188021, 294517, 286351, 188049, 425624, 229021, 245413, 286387, 384693, 376502, 286392, 302778, 409277, 286400, 409289, 425682, 286419, 294621, 245471, 155360, 294629, 212721, 163575, 286457, 286463, 319232, 360194, 409355, 155408, 417556, 294699, 204600, 319289, 384826, 409404, 360253, 409416, 376661, 237397, 368471, 425820, 368486, 384871, 409446, 368489, 40809, 425832, 417648, 417658, 360315, 253828, 327556, 311183, 425875, 294806, 294808, 253851, 376733, 204702, 319393, 294820, 253868, 204722, 188349, 98240, 212947, 212953, 360416, 294887, 253930, 327666, 385011 ]
1b83299299894a27a157dc1d2fb690f41b557cbc
a12dbee0b3c5b22adc20ec330c071af74ea71fc5
/xobin-github/IssueViewController.swift
60ff569eab979685f301454e74d2c9f19964c090
[]
no_license
pavankumarchalla/IssueTracker
273c40c06739f20f723caa1de89c8924be75bd90
7ff6f916b4af246656ad7e6d56eab2f659db0d9c
refs/heads/master
2020-07-02T14:27:56.071787
2016-11-20T20:24:03
2016-11-20T20:24:03
74,300,074
1
0
null
null
null
null
UTF-8
Swift
false
false
4,598
swift
// // IssueViewController.swift // xobin-github // // Created by Pavan Kumar C on 15/11/16. // Copyright © 2016 Pavan Kumar CSedin. All rights reserved. // import UIKit import CoreData class IssueViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, NSFetchedResultsControllerDelegate { @IBOutlet weak var issueTableView: UITableView! { didSet { issueTableView.tableFooterView = UIView() } } var fetchedResults:NSFetchedResultsController<Issue>? let moc = Utils.getContext() var refreshControl:UIRefreshControl! override func viewDidLoad() { super.viewDidLoad() issueTableView.rowHeight = UITableViewAutomaticDimension issueTableView.estimatedRowHeight = 60.0 refreshControl = UIRefreshControl() refreshControl.addTarget(self, action: #selector(IssueViewController.refreshPulled), for: .valueChanged) issueTableView.addSubview(refreshControl) NotificationCenter.default.addObserver(self, selector: #selector(IssueViewController.endRefreshing), name: NSNotification.Name(rawValue: Utils.CONTENT_REFRESHED), object: nil) setFetchedRequestController() } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(true) } //MARK:- UITableView delegate and datasource methods func numberOfSections(in tableView: UITableView) -> Int { return 1 } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { if let numObjects = fetchedResults?.sections?[0].numberOfObjects { return numObjects } return 0 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "IssueCell", for: indexPath) as! IssueCell if let issue = fetchedResults?.object(at: indexPath) { cell.configureView(issue: issue) } return cell } func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { if let issue = fetchedResults?.object(at: indexPath) { let comment = CommentViewController.storyBoardInstance() comment.issue = issue self.navigationController?.pushViewController(comment, animated: true) } } // MARK: - NSFetchResultsController delegate methods func controller(_ controller: NSFetchedResultsController<NSFetchRequestResult>, didChange anObject: Any, at indexPath: IndexPath?, for type: NSFetchedResultsChangeType, newIndexPath: IndexPath?) { switch type { case .update: print("Update Issue at \(indexPath!.row)") issueTableView.reloadRows(at: [indexPath! as IndexPath], with: .automatic) case .insert: print("Insert Issue at \(newIndexPath!.row)") issueTableView.insertRows(at: [newIndexPath! as IndexPath], with: .fade) case .delete: print("Delete Issue at \(indexPath!.row)") print(controller.fetchRequest) issueTableView.deleteRows(at: [indexPath! as IndexPath], with: .fade) case .move: print("Moved Issue at \(indexPath!.row)") if indexPath == newIndexPath { issueTableView.reloadRows(at: [newIndexPath! as IndexPath], with: .none) } else { issueTableView.moveRow(at: indexPath! as IndexPath, to: newIndexPath! as IndexPath) } } } func controllerDidChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) { issueTableView.endUpdates() issueTableView.reloadData() } func controllerWillChangeContent(_ controller: NSFetchedResultsController<NSFetchRequestResult>) { issueTableView.beginUpdates() } //MARK:- Custom methods private func setFetchedRequestController() { let fetchRequest = NSFetchRequest<Issue>(entityName: "Issue") fetchRequest.sortDescriptors = [NSSortDescriptor(key: "createdAt", ascending: false)] fetchRequest.returnsObjectsAsFaults = false fetchedResults = NSFetchedResultsController(fetchRequest: fetchRequest, managedObjectContext: moc, sectionNameKeyPath: nil, cacheName: nil) fetchedResults?.delegate = self fetchUsingFetchResultsController() } private func fetchUsingFetchResultsController() { do { try fetchedResults?.performFetch() issueTableView.reloadData() } catch let error as NSError { print("Error Fetching UsingResults controller \(error)") } } func refreshPulled() { ApiController.sharedController.fetchAllIssues() } func endRefreshing() { refreshControl.endRefreshing() setFetchedRequestController() } }
[ -1 ]
9a1246480775003319622879d87a09862bca84e7
bbf0cc92220bbba2d6450ceb36925519b67b4120
/SomeApp/SomeApp/ViewControllers/NotificationsViewController.swift
97fdbd5cc7afeb5e72fe7d44e896d0eae4aa21f1
[ "Apache-2.0" ]
permissive
PerrchicK/swift-app
c1eb6dd316f346629d49ef936600a6b27561adcc
53e043d5b73e9dc63d1a3c87c17e566a5344e4be
refs/heads/master
2022-05-29T11:29:21.372626
2020-02-03T10:50:29
2020-02-03T10:50:29
49,959,227
4
2
Apache-2.0
2019-10-31T22:19:27
2016-01-19T14:48:03
Objective-C
UTF-8
Swift
false
false
9,287
swift
// // NotificationsViewController.swift // SomeApp // // Created by Perry on 3/6/16. // Copyright © 2016 PerrchicK. All rights reserved. // import Foundation import UIKit import CoreData class NotificationsViewController: UIViewController { @IBOutlet weak var keyboardPresenterTextField: UITextField! lazy var anyObjectThatWillFilterNotifications = UIFont(name: "Arial", size: 32) override func viewDidLoad() { super.viewDidLoad() view.onClick { [weak self] _ in self?.view.firstResponder()?.resignFirstResponder() } } override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) AppDelegate.shared.setupNotifications() //MARK:- dispatch delayed notifications let shortLength = DispatchTime.timeWithSeconds(ToastMessage.ToastMessageLength.short.rawValue) DispatchQueue.global(qos: DispatchQoS.QoSClass.default).asyncAfter(deadline: shortLength) { () -> Void in NotificationCenter.default.post(name: Notification.Name(rawValue: "yo1"), object: nil) DispatchQueue.main.asyncAfter(deadline: shortLength) { [weak self] () -> Void in guard let strongSelf = self else { return } NotificationCenter.default.post(name: Notification.Name.yo, object: strongSelf.anyObjectThatWillFilterNotifications, userInfo: ["msgKey":"PSST..."]) NotificationCenter.default.post(name: Notification.Name.yo, object: nil, userInfo: ["msgKey":"PSST..."]) } } //MARK:- create observers let notificationCenter = NotificationCenter.default notificationCenter.addObserver(forName: NSNotification.Name(rawValue: "yo1"), object: nil, queue: OperationQueue.main) { [weak self] (notification) -> Void in ToastMessage.show(messageText: "yo1 has been posted, 'self' \(self == nil ? "released" : "still exist")") } // What is the difference between this: notificationCenter.addObserver(self, selector: #selector(NotificationsViewController.filteredYoOccurred(_:)), name: NSNotification.Name.yo, object: anyObjectThatWillFilterNotifications) // And this: notificationCenter.addObserver(self, selector: #selector(NotificationsViewController.yoOccurred(_:)), name: NSNotification.Name.yo, object: nil) notificationCenter.addObserver(self, selector: #selector(NotificationsViewController.keyboardFrameChanged(_:)), name: NSNotification.Name.UIKeyboardWillChangeFrame, object: nil) notificationCenter.addObserver(self, selector: #selector(keyboardWillHide(_:)), name: NSNotification.Name.UIKeyboardWillHide, object: nil) notificationCenter.addObserver(self, selector: #selector(applicationDidEnterBackground(_:)), name: NSNotification.Name.UIApplicationDidEnterBackground, object: nil) let soon = Date(timeIntervalSinceNow: 5) if !startLocalNotification("Local notification example", title: "yo3", popTime: soon, additionalInfo: ["address":"/main/notifications"]) { ToastMessage.show(messageText: "confirm user notification first") } } override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) NotificationCenter.default.removeObserver(self) } func startLocalNotification(_ message: String, title: String, popTime: Date, sound: String? = nil, additionalInfo: [String:String]? = nil) -> Bool { guard let settings = UIApplication.shared.currentUserNotificationSettings, settings.types != UIUserNotificationType() else { UIApplication.shared.registerUserNotificationSettings(UIUserNotificationSettings(types: [UIUserNotificationType.alert, UIUserNotificationType.badge, UIUserNotificationType.sound], categories: nil)) return false } let notification = UILocalNotification() notification.alertTitle = title notification.alertBody = message notification.fireDate = popTime notification.soundName = UILocalNotificationDefaultSoundName // play default sound notification.userInfo = additionalInfo UIApplication.shared.scheduleLocalNotification(notification) return true } @objc func keyboardWillHide(_ notification: Notification) { guard let userInfo = (notification as NSNotification).userInfo else { return } if let keyboardAnimationDuration = userInfo[UIKeyboardAnimationDurationUserInfoKey] as? TimeInterval { handleNewKeyboardHeight(0, withAnimationDuration: keyboardAnimationDuration) } else { 📘("Failed to extract keyboard frame!") } } @objc func applicationDidEnterBackground(_ notification: Notification) { PerrFuncs.runBackgroundTask { [weak self] (onDone) in guard let strongSelf = self else { return } if let fcmToken = AppDelegate.shared.fcmToken { let registrationIds: [String] = [fcmToken] self?.sendFcmNotificationUsingUrlRequest(notificationDictionary: strongSelf.generateNotificationPayload(withAlertTitle: "Remote notification example", andBody: "push notification's body"), dataDictionary: ["more data":"some ID"], toRegistrationIds: registrationIds) { succeeded in 📘("did push notification request succeeded? - \(succeeded)") onDone() } } } } @objc func keyboardFrameChanged(_ notification: Notification) { guard let userInfo = (notification as NSNotification).userInfo else { return } if let keyboardAnimationDuration = userInfo[UIKeyboardAnimationDurationUserInfoKey] as? TimeInterval, let keyboardFrameValue = userInfo[UIKeyboardFrameEndUserInfoKey] as? NSValue { let keyboardFrame = keyboardFrameValue.cgRectValue let keyboardHeight = keyboardFrame.height handleNewKeyboardHeight(keyboardHeight, withAnimationDuration: keyboardAnimationDuration) } else { 📘("Failed to extract keyboard frame!") } } func handleNewKeyboardHeight(_ keyboardHeight: CGFloat, withAnimationDuration keyboardAnimationDuration: TimeInterval) { UIView.animate(withDuration: keyboardAnimationDuration, animations: { [weak self] in self?.view.frame.origin.y = -keyboardHeight }, completion: nil) } @objc func yoOccurred(_ notification: Notification) { 📘("notification posted: \(notification)\nassociated object:\(String(describing: notification.object))\nuser info:\(String(describing: notification.userInfo))") if let textField = notification.object as? UITextField { textField.text = "yo2 has been posted" } } @objc func filteredYoOccurred(_ notification: Notification) { 📘("notification posted: \(notification)\nassociated object:\(String(describing: notification.object))\nuser info:\(String(describing: notification.userInfo))") if let textField = notification.object as? UITextField { textField.text = "yo2 has been posted" } } private func generateNotificationPayload(withAlertTitle title: String, andBody body: String) -> [String:String] { var notificationDictionary = [String:String]() notificationDictionary["alert"] = title notificationDictionary["body"] = body notificationDictionary["icon"] = "app-icon" notificationDictionary["title"] = title notificationDictionary["sound"] = "default.aiff" return notificationDictionary } func sendFcmNotificationUsingUrlRequest(notificationDictionary: [String:String], dataDictionary: [String:String], toRegistrationIds registrationIds: [String], completion: @escaping (Bool) -> ()) { guard registrationIds.count > 0 else { completion(false); return } var jsonDictionary = [String:Any]() jsonDictionary["registration_ids"] = registrationIds // or use 'to' for a single device jsonDictionary["notification"] = notificationDictionary jsonDictionary["data"] = dataDictionary let secretApiKey: String = "AAAAQ_UBwaU:APA91bHap420yZr1gH9xq__jyiYHI86SINQhuYJbeITdd3W5iADL5Bh-oHas1KyE6GNMjLTDXKVU4953NkhJ_o5h3oxYr9XWh0z_htRQpVpCB5rGD-Tam4dCees7jf-I2CbpzMh3yFTx" PerrFuncs.postRequest(urlString: "https://fcm.googleapis.com/fcm/send", jsonDictionary: jsonDictionary, httpHeaders: ["Authorization":"key= \(secretApiKey)"]) { (responseDataJson) in guard let succeededCount = responseDataJson?["success"] as? Int else { completion(false); return } 📘("responseDataJson: \(String(describing: responseDataJson))") completion(succeededCount > 0) } } } extension DispatchTime { static func timeWithSeconds(_ seconds: Double) -> DispatchTime { let dispatchTime = DispatchTime.now() + Double(Int64(seconds * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC) return dispatchTime } } extension Notification.Name { static let yo = Notification.Name(rawValue: "yo2") }
[ -1 ]
2d90c4536eb3d4440c80e79c2359b323fee52bdf
03d159d9f7cfe68c61b64041efde581584cd8cf8
/SampleProject/CoherentSwiftTestApp/CoherentSwiftTestApp/SpinningView.swift
63c479b1f00f96168130a57ff5cc6c00e40186a8
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
timstudt/coherent-swift
af68960094286bf2a008d3181376e0d471941ee3
06cae285cfba34ee4a9b40f7ecc4e4c73c1c4e40
refs/heads/main
2023-03-31T05:55:03.597031
2021-03-27T13:42:17
2021-03-27T13:42:17
347,016,719
0
0
MIT
2021-03-27T13:42:18
2021-03-12T09:49:17
null
UTF-8
Swift
false
false
258
swift
// // SpinningView.swift // CoherentSwiftTestApp // // Created by Arthur Alves on 26/05/2020. // Copyright © 2020 Arthur Alves. All rights reserved. // import UIKit class SpinningView: UIView { func startSpinning() {} func stopSpinning() {} }
[ -1 ]
f4ff5c50617ef3fa2fbf9324246137e02a490e91
bbeaf4ae113445467a4fa54dbf2e7362299702a7
/gen/grammars-v4/pddl/PddlParser.swift
683f652657dc51224f91dbf2e1dc1ced5b120220
[]
no_license
johndpope/swift-walker-antlr
d52e675ebbed76dca2d850b5fcfd880b0bcf3997
30c3cc936e75157a7c541376d434cb68d0672df1
refs/heads/master
2021-01-21T16:44:04.315359
2018-01-18T15:48:22
2018-01-18T15:48:22
91,900,233
1
0
null
null
null
null
UTF-8
Swift
false
false
171,395
swift
// Generated from ./grammars-v4/pddl/Pddl.g4 by ANTLR 4.7.1 import Antlr4 open class PddlParser: Parser { internal static var _decisionToDFA: [DFA] = { var decisionToDFA = [DFA]() let length = PddlParser._ATN.getNumberOfDecisions() for i in 0..<length { decisionToDFA.append(DFA(PddlParser._ATN.getDecisionState(i)!, i)) } return decisionToDFA }() internal static let _sharedContextCache = PredictionContextCache() public enum Tokens: Int { case EOF = -1, T__0 = 1, T__1 = 2, T__2 = 3, T__3 = 4, T__4 = 5, T__5 = 6, T__6 = 7, T__7 = 8, T__8 = 9, T__9 = 10, T__10 = 11, T__11 = 12, T__12 = 13, T__13 = 14, T__14 = 15, T__15 = 16, T__16 = 17, T__17 = 18, T__18 = 19, T__19 = 20, T__20 = 21, T__21 = 22, T__22 = 23, T__23 = 24, T__24 = 25, T__25 = 26, T__26 = 27, T__27 = 28, T__28 = 29, T__29 = 30, T__30 = 31, T__31 = 32, T__32 = 33, T__33 = 34, T__34 = 35, T__35 = 36, T__36 = 37, T__37 = 38, T__38 = 39, T__39 = 40, T__40 = 41, T__41 = 42, T__42 = 43, T__43 = 44, T__44 = 45, T__45 = 46, T__46 = 47, T__47 = 48, T__48 = 49, T__49 = 50, T__50 = 51, T__51 = 52, T__52 = 53, T__53 = 54, T__54 = 55, T__55 = 56, T__56 = 57, T__57 = 58, T__58 = 59, T__59 = 60, T__60 = 61, T__61 = 62, T__62 = 63, T__63 = 64, T__64 = 65, T__65 = 66, T__66 = 67, REQUIRE_KEY = 68, DOMAIN = 69, DOMAIN_NAME = 70, REQUIREMENTS = 71, TYPES = 72, EITHER_TYPE = 73, CONSTANTS = 74, FUNCTIONS = 75, PREDICATES = 76, ACTION = 77, DURATIVE_ACTION = 78, PROBLEM = 79, PROBLEM_NAME = 80, PROBLEM_DOMAIN = 81, OBJECTS = 82, INIT = 83, FUNC_HEAD = 84, PRECONDITION = 85, EFFECT = 86, AND_GD = 87, OR_GD = 88, NOT_GD = 89, IMPLY_GD = 90, EXISTS_GD = 91, FORALL_GD = 92, COMPARISON_GD = 93, AND_EFFECT = 94, FORALL_EFFECT = 95, WHEN_EFFECT = 96, ASSIGN_EFFECT = 97, NOT_EFFECT = 98, PRED_HEAD = 99, GOAL = 100, BINARY_OP = 101, UNARY_MINUS = 102, INIT_EQ = 103, INIT_AT = 104, NOT_PRED_INIT = 105, PRED_INST = 106, PROBLEM_CONSTRAINT = 107, PROBLEM_METRIC = 108, NAME = 109, VARIABLE = 110, NUMBER = 111, LINE_COMMENT = 112, WHITESPACE = 113 } public static let RULE_pddlDoc = 0, RULE_domain = 1, RULE_domainName = 2, RULE_requireDef = 3, RULE_typesDef = 4, RULE_typedNameList = 5, RULE_singleTypeNameList = 6, RULE_type = 7, RULE_primType = 8, RULE_functionsDef = 9, RULE_functionList = 10, RULE_atomicFunctionSkeleton = 11, RULE_functionSymbol = 12, RULE_functionType = 13, RULE_constantsDef = 14, RULE_predicatesDef = 15, RULE_atomicFormulaSkeleton = 16, RULE_predicate = 17, RULE_typedVariableList = 18, RULE_singleTypeVarList = 19, RULE_constraints = 20, RULE_structureDef = 21, RULE_actionDef = 22, RULE_actionSymbol = 23, RULE_actionDefBody = 24, RULE_goalDesc = 25, RULE_fComp = 26, RULE_atomicTermFormula = 27, RULE_term = 28, RULE_durativeActionDef = 29, RULE_daDefBody = 30, RULE_daGD = 31, RULE_prefTimedGD = 32, RULE_timedGD = 33, RULE_timeSpecifier = 34, RULE_interval = 35, RULE_derivedDef = 36, RULE_fExp = 37, RULE_fExp2 = 38, RULE_fHead = 39, RULE_effect = 40, RULE_cEffect = 41, RULE_pEffect = 42, RULE_condEffect = 43, RULE_binaryOp = 44, RULE_binaryComp = 45, RULE_assignOp = 46, RULE_durationConstraint = 47, RULE_simpleDurationConstraint = 48, RULE_durOp = 49, RULE_durValue = 50, RULE_daEffect = 51, RULE_timedEffect = 52, RULE_fAssignDA = 53, RULE_fExpDA = 54, RULE_problem = 55, RULE_problemDecl = 56, RULE_problemDomain = 57, RULE_objectDecl = 58, RULE_init = 59, RULE_initEl = 60, RULE_nameLiteral = 61, RULE_atomicNameFormula = 62, RULE_goal = 63, RULE_probConstraints = 64, RULE_prefConGD = 65, RULE_metricSpec = 66, RULE_optimization = 67, RULE_metricFExp = 68, RULE_conGD = 69 public static let ruleNames: [String] = [ "pddlDoc", "domain", "domainName", "requireDef", "typesDef", "typedNameList", "singleTypeNameList", "type", "primType", "functionsDef", "functionList", "atomicFunctionSkeleton", "functionSymbol", "functionType", "constantsDef", "predicatesDef", "atomicFormulaSkeleton", "predicate", "typedVariableList", "singleTypeVarList", "constraints", "structureDef", "actionDef", "actionSymbol", "actionDefBody", "goalDesc", "fComp", "atomicTermFormula", "term", "durativeActionDef", "daDefBody", "daGD", "prefTimedGD", "timedGD", "timeSpecifier", "interval", "derivedDef", "fExp", "fExp2", "fHead", "effect", "cEffect", "pEffect", "condEffect", "binaryOp", "binaryComp", "assignOp", "durationConstraint", "simpleDurationConstraint", "durOp", "durValue", "daEffect", "timedEffect", "fAssignDA", "fExpDA", "problem", "problemDecl", "problemDomain", "objectDecl", "init", "initEl", "nameLiteral", "atomicNameFormula", "goal", "probConstraints", "prefConGD", "metricSpec", "optimization", "metricFExp", "conGD" ] private static let _LITERAL_NAMES: [String?] = [ nil, "'('", "'define'", "')'", "'domain'", "':requirements'", "':types'", "'-'", "'either'", "':functions'", "'number'", "':constants'", "':predicates'", "':constraints'", "':action'", "':parameters'", "':precondition'", "':effect'", "'and'", "'or'", "'not'", "'imply'", "'exists'", "'forall'", "':durative-action'", "':duration'", "':condition'", "'preference'", "'at'", "'over'", "'start'", "'end'", "'all'", "':derived'", "'when'", "'*'", "'+'", "'/'", "'>'", "'<'", "'='", "'>='", "'<='", "'assign'", "'scale-up'", "'scale-down'", "'increase'", "'decrease'", "'?duration'", "'problem'", "':domain'", "':objects'", "':init'", "':goal'", "':metric'", "'minimize'", "'maximize'", "'total-time'", "'is-violated'", "'always'", "'sometime'", "'within'", "'at-most-once'", "'sometime-after'", "'sometime-before'", "'always-within'", "'hold-during'", "'hold-after'", nil, "'DOMAIN'", "'DOMAIN_NAME'", "'REQUIREMENTS'", "'TYPES'", "'EITHER_TYPE'", "'CONSTANTS'", "'FUNCTIONS'", "'PREDICATES'", "'ACTION'", "'DURATIVE_ACTION'", "'PROBLEM'", "'PROBLEM_NAME'", "'PROBLEM_DOMAIN'", "'OBJECTS'", "'INIT'", "'FUNC_HEAD'", "'PRECONDITION'", "'EFFECT'", "'AND_GD'", "'OR_GD'", "'NOT_GD'", "'IMPLY_GD'", "'EXISTS_GD'", "'FORALL_GD'", "'COMPARISON_GD'", "'AND_EFFECT'", "'FORALL_EFFECT'", "'WHEN_EFFECT'", "'ASSIGN_EFFECT'", "'NOT_EFFECT'", "'PRED_HEAD'", "'GOAL'", "'BINARY_OP'", "'UNARY_MINUS'", "'INIT_EQ'", "'INIT_AT'", "'NOT_PRED_INIT'", "'PRED_INST'", "'PROBLEM_CONSTRAINT'", "'PROBLEM_METRIC'" ] private static let _SYMBOLIC_NAMES: [String?] = [ nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, "REQUIRE_KEY", "DOMAIN", "DOMAIN_NAME", "REQUIREMENTS", "TYPES", "EITHER_TYPE", "CONSTANTS", "FUNCTIONS", "PREDICATES", "ACTION", "DURATIVE_ACTION", "PROBLEM", "PROBLEM_NAME", "PROBLEM_DOMAIN", "OBJECTS", "INIT", "FUNC_HEAD", "PRECONDITION", "EFFECT", "AND_GD", "OR_GD", "NOT_GD", "IMPLY_GD", "EXISTS_GD", "FORALL_GD", "COMPARISON_GD", "AND_EFFECT", "FORALL_EFFECT", "WHEN_EFFECT", "ASSIGN_EFFECT", "NOT_EFFECT", "PRED_HEAD", "GOAL", "BINARY_OP", "UNARY_MINUS", "INIT_EQ", "INIT_AT", "NOT_PRED_INIT", "PRED_INST", "PROBLEM_CONSTRAINT", "PROBLEM_METRIC", "NAME", "VARIABLE", "NUMBER", "LINE_COMMENT", "WHITESPACE" ] public static let VOCABULARY = Vocabulary(_LITERAL_NAMES, _SYMBOLIC_NAMES) override open func getGrammarFileName() -> String { return "Pddl.g4" } override open func getRuleNames() -> [String] { return PddlParser.ruleNames } override open func getSerializedATN() -> String { return PddlParser._serializedATN } override open func getATN() -> ATN { return PddlParser._ATN } override open func getVocabulary() -> Vocabulary { return PddlParser.VOCABULARY } override public init(_ input:TokenStream) throws { RuntimeMetaData.checkVersion("4.7.1", RuntimeMetaData.VERSION) try super.init(input) _interp = ParserATNSimulator(self,PddlParser._ATN,PddlParser._decisionToDFA, PddlParser._sharedContextCache) } public class PddlDocContext: ParserRuleContext { open func domain() -> DomainContext? { return getRuleContext(DomainContext.self, 0) } open func problem() -> ProblemContext? { return getRuleContext(ProblemContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_pddlDoc } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterPddlDoc(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitPddlDoc(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitPddlDoc(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitPddlDoc(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func pddlDoc() throws -> PddlDocContext { var _localctx: PddlDocContext = PddlDocContext(_ctx, getState()) try enterRule(_localctx, 0, PddlParser.RULE_pddlDoc) defer { try! exitRule() } do { setState(142) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,0, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(140) try domain() break case 2: try enterOuterAlt(_localctx, 2) setState(141) try problem() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class DomainContext: ParserRuleContext { open func domainName() -> DomainNameContext? { return getRuleContext(DomainNameContext.self, 0) } open func requireDef() -> RequireDefContext? { return getRuleContext(RequireDefContext.self, 0) } open func typesDef() -> TypesDefContext? { return getRuleContext(TypesDefContext.self, 0) } open func constantsDef() -> ConstantsDefContext? { return getRuleContext(ConstantsDefContext.self, 0) } open func predicatesDef() -> PredicatesDefContext? { return getRuleContext(PredicatesDefContext.self, 0) } open func functionsDef() -> FunctionsDefContext? { return getRuleContext(FunctionsDefContext.self, 0) } open func constraints() -> ConstraintsContext? { return getRuleContext(ConstraintsContext.self, 0) } open func structureDef() -> [StructureDefContext] { return getRuleContexts(StructureDefContext.self) } open func structureDef(_ i: Int) -> StructureDefContext? { return getRuleContext(StructureDefContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_domain } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterDomain(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitDomain(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitDomain(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitDomain(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func domain() throws -> DomainContext { var _localctx: DomainContext = DomainContext(_ctx, getState()) try enterRule(_localctx, 2, PddlParser.RULE_domain) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(144) try match(PddlParser.Tokens.T__0.rawValue) setState(145) try match(PddlParser.Tokens.T__1.rawValue) setState(146) try domainName() setState(148) try _errHandler.sync(self) switch (try getInterpreter().adaptivePredict(_input,1,_ctx)) { case 1: setState(147) try requireDef() break default: break } setState(151) try _errHandler.sync(self) switch (try getInterpreter().adaptivePredict(_input,2,_ctx)) { case 1: setState(150) try typesDef() break default: break } setState(154) try _errHandler.sync(self) switch (try getInterpreter().adaptivePredict(_input,3,_ctx)) { case 1: setState(153) try constantsDef() break default: break } setState(157) try _errHandler.sync(self) switch (try getInterpreter().adaptivePredict(_input,4,_ctx)) { case 1: setState(156) try predicatesDef() break default: break } setState(160) try _errHandler.sync(self) switch (try getInterpreter().adaptivePredict(_input,5,_ctx)) { case 1: setState(159) try functionsDef() break default: break } setState(163) try _errHandler.sync(self) switch (try getInterpreter().adaptivePredict(_input,6,_ctx)) { case 1: setState(162) try constraints() break default: break } setState(168) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(165) try structureDef() setState(170) try _errHandler.sync(self) _la = try _input.LA(1) } setState(171) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class DomainNameContext: ParserRuleContext { open func NAME() -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_domainName } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterDomainName(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitDomainName(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitDomainName(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitDomainName(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func domainName() throws -> DomainNameContext { var _localctx: DomainNameContext = DomainNameContext(_ctx, getState()) try enterRule(_localctx, 4, PddlParser.RULE_domainName) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(173) try match(PddlParser.Tokens.T__0.rawValue) setState(174) try match(PddlParser.Tokens.T__3.rawValue) setState(175) try match(PddlParser.Tokens.NAME.rawValue) setState(176) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class RequireDefContext: ParserRuleContext { open func REQUIRE_KEY() -> [TerminalNode] { return getTokens(PddlParser.Tokens.REQUIRE_KEY.rawValue) } open func REQUIRE_KEY(_ i:Int) -> TerminalNode? { return getToken(PddlParser.Tokens.REQUIRE_KEY.rawValue, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_requireDef } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterRequireDef(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitRequireDef(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitRequireDef(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitRequireDef(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func requireDef() throws -> RequireDefContext { var _localctx: RequireDefContext = RequireDefContext(_ctx, getState()) try enterRule(_localctx, 6, PddlParser.RULE_requireDef) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(178) try match(PddlParser.Tokens.T__0.rawValue) setState(179) try match(PddlParser.Tokens.T__4.rawValue) setState(181) try _errHandler.sync(self) _la = try _input.LA(1) repeat { setState(180) try match(PddlParser.Tokens.REQUIRE_KEY.rawValue) setState(183); try _errHandler.sync(self) _la = try _input.LA(1) } while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.REQUIRE_KEY.rawValue return testSet }()) setState(185) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class TypesDefContext: ParserRuleContext { open func typedNameList() -> TypedNameListContext? { return getRuleContext(TypedNameListContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_typesDef } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterTypesDef(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitTypesDef(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitTypesDef(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitTypesDef(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func typesDef() throws -> TypesDefContext { var _localctx: TypesDefContext = TypesDefContext(_ctx, getState()) try enterRule(_localctx, 8, PddlParser.RULE_typesDef) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(187) try match(PddlParser.Tokens.T__0.rawValue) setState(188) try match(PddlParser.Tokens.T__5.rawValue) setState(189) try typedNameList() setState(190) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class TypedNameListContext: ParserRuleContext { open func NAME() -> [TerminalNode] { return getTokens(PddlParser.Tokens.NAME.rawValue) } open func NAME(_ i:Int) -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, i) } open func singleTypeNameList() -> [SingleTypeNameListContext] { return getRuleContexts(SingleTypeNameListContext.self) } open func singleTypeNameList(_ i: Int) -> SingleTypeNameListContext? { return getRuleContext(SingleTypeNameListContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_typedNameList } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterTypedNameList(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitTypedNameList(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitTypedNameList(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitTypedNameList(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func typedNameList() throws -> TypedNameListContext { var _localctx: TypedNameListContext = TypedNameListContext(_ctx, getState()) try enterRule(_localctx, 10, PddlParser.RULE_typedNameList) var _la: Int = 0 defer { try! exitRule() } do { var _alt:Int try enterOuterAlt(_localctx, 1) setState(209) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,12, _ctx)) { case 1: setState(195) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.NAME.rawValue return testSet }()) { setState(192) try match(PddlParser.Tokens.NAME.rawValue) setState(197) try _errHandler.sync(self) _la = try _input.LA(1) } break case 2: setState(199); try _errHandler.sync(self) _alt = 1; repeat { switch (_alt) { case 1: setState(198) try singleTypeNameList() break default: throw ANTLRException.recognition(e: NoViableAltException(self)) } setState(201); try _errHandler.sync(self) _alt = try getInterpreter().adaptivePredict(_input,10,_ctx) } while (_alt != 2 && _alt != ATN.INVALID_ALT_NUMBER) setState(206) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.NAME.rawValue return testSet }()) { setState(203) try match(PddlParser.Tokens.NAME.rawValue) setState(208) try _errHandler.sync(self) _la = try _input.LA(1) } break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class SingleTypeNameListContext: ParserRuleContext { open var t: TypeContext! open func type() -> TypeContext? { return getRuleContext(TypeContext.self, 0) } open func NAME() -> [TerminalNode] { return getTokens(PddlParser.Tokens.NAME.rawValue) } open func NAME(_ i:Int) -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_singleTypeNameList } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterSingleTypeNameList(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitSingleTypeNameList(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitSingleTypeNameList(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitSingleTypeNameList(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func singleTypeNameList() throws -> SingleTypeNameListContext { var _localctx: SingleTypeNameListContext = SingleTypeNameListContext(_ctx, getState()) try enterRule(_localctx, 12, PddlParser.RULE_singleTypeNameList) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(212) try _errHandler.sync(self) _la = try _input.LA(1) repeat { setState(211) try match(PddlParser.Tokens.NAME.rawValue) setState(214); try _errHandler.sync(self) _la = try _input.LA(1) } while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.NAME.rawValue return testSet }()) setState(216) try match(PddlParser.Tokens.T__6.rawValue) setState(217) try { let assignmentValue = try type() _localctx.castdown(SingleTypeNameListContext.self).t = assignmentValue }() } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class TypeContext: ParserRuleContext { open func primType() -> [PrimTypeContext] { return getRuleContexts(PrimTypeContext.self) } open func primType(_ i: Int) -> PrimTypeContext? { return getRuleContext(PrimTypeContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_type } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterType(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitType(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitType(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitType(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func type() throws -> TypeContext { var _localctx: TypeContext = TypeContext(_ctx, getState()) try enterRule(_localctx, 14, PddlParser.RULE_type) var _la: Int = 0 defer { try! exitRule() } do { setState(229) try _errHandler.sync(self) switch (PddlParser.Tokens(rawValue: try _input.LA(1))!) { case .T__0: try enterOuterAlt(_localctx, 1) setState(219) try match(PddlParser.Tokens.T__0.rawValue) setState(220) try match(PddlParser.Tokens.T__7.rawValue) setState(222) try _errHandler.sync(self) _la = try _input.LA(1) repeat { setState(221) try primType() setState(224); try _errHandler.sync(self) _la = try _input.LA(1) } while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.NAME.rawValue return testSet }()) setState(226) try match(PddlParser.Tokens.T__2.rawValue) break case .NAME: try enterOuterAlt(_localctx, 2) setState(228) try primType() break default: throw ANTLRException.recognition(e: NoViableAltException(self)) } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class PrimTypeContext: ParserRuleContext { open func NAME() -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_primType } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterPrimType(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitPrimType(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitPrimType(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitPrimType(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func primType() throws -> PrimTypeContext { var _localctx: PrimTypeContext = PrimTypeContext(_ctx, getState()) try enterRule(_localctx, 16, PddlParser.RULE_primType) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(231) try match(PddlParser.Tokens.NAME.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class FunctionsDefContext: ParserRuleContext { open func functionList() -> FunctionListContext? { return getRuleContext(FunctionListContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_functionsDef } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterFunctionsDef(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitFunctionsDef(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitFunctionsDef(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitFunctionsDef(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func functionsDef() throws -> FunctionsDefContext { var _localctx: FunctionsDefContext = FunctionsDefContext(_ctx, getState()) try enterRule(_localctx, 18, PddlParser.RULE_functionsDef) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(233) try match(PddlParser.Tokens.T__0.rawValue) setState(234) try match(PddlParser.Tokens.T__8.rawValue) setState(235) try functionList() setState(236) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class FunctionListContext: ParserRuleContext { open func atomicFunctionSkeleton() -> [AtomicFunctionSkeletonContext] { return getRuleContexts(AtomicFunctionSkeletonContext.self) } open func atomicFunctionSkeleton(_ i: Int) -> AtomicFunctionSkeletonContext? { return getRuleContext(AtomicFunctionSkeletonContext.self, i) } open func functionType() -> [FunctionTypeContext] { return getRuleContexts(FunctionTypeContext.self) } open func functionType(_ i: Int) -> FunctionTypeContext? { return getRuleContext(FunctionTypeContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_functionList } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterFunctionList(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitFunctionList(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitFunctionList(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitFunctionList(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func functionList() throws -> FunctionListContext { var _localctx: FunctionListContext = FunctionListContext(_ctx, getState()) try enterRule(_localctx, 20, PddlParser.RULE_functionList) var _la: Int = 0 defer { try! exitRule() } do { var _alt:Int try enterOuterAlt(_localctx, 1) setState(249) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(239); try _errHandler.sync(self) _alt = 1; repeat { switch (_alt) { case 1: setState(238) try atomicFunctionSkeleton() break default: throw ANTLRException.recognition(e: NoViableAltException(self)) } setState(241); try _errHandler.sync(self) _alt = try getInterpreter().adaptivePredict(_input,16,_ctx) } while (_alt != 2 && _alt != ATN.INVALID_ALT_NUMBER) setState(245) try _errHandler.sync(self) _la = try _input.LA(1) if (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__6.rawValue return testSet }()) { setState(243) try match(PddlParser.Tokens.T__6.rawValue) setState(244) try functionType() } setState(251) try _errHandler.sync(self) _la = try _input.LA(1) } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class AtomicFunctionSkeletonContext: ParserRuleContext { open func functionSymbol() -> FunctionSymbolContext? { return getRuleContext(FunctionSymbolContext.self, 0) } open func typedVariableList() -> TypedVariableListContext? { return getRuleContext(TypedVariableListContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_atomicFunctionSkeleton } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterAtomicFunctionSkeleton(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitAtomicFunctionSkeleton(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitAtomicFunctionSkeleton(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitAtomicFunctionSkeleton(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func atomicFunctionSkeleton() throws -> AtomicFunctionSkeletonContext { var _localctx: AtomicFunctionSkeletonContext = AtomicFunctionSkeletonContext(_ctx, getState()) try enterRule(_localctx, 22, PddlParser.RULE_atomicFunctionSkeleton) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(252) try match(PddlParser.Tokens.T__0.rawValue) setState(253) try functionSymbol() setState(254) try typedVariableList() setState(255) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class FunctionSymbolContext: ParserRuleContext { open func NAME() -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_functionSymbol } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterFunctionSymbol(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitFunctionSymbol(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitFunctionSymbol(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitFunctionSymbol(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func functionSymbol() throws -> FunctionSymbolContext { var _localctx: FunctionSymbolContext = FunctionSymbolContext(_ctx, getState()) try enterRule(_localctx, 24, PddlParser.RULE_functionSymbol) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(257) try match(PddlParser.Tokens.NAME.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class FunctionTypeContext: ParserRuleContext { override open func getRuleIndex() -> Int { return PddlParser.RULE_functionType } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterFunctionType(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitFunctionType(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitFunctionType(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitFunctionType(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func functionType() throws -> FunctionTypeContext { var _localctx: FunctionTypeContext = FunctionTypeContext(_ctx, getState()) try enterRule(_localctx, 26, PddlParser.RULE_functionType) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(259) try match(PddlParser.Tokens.T__9.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class ConstantsDefContext: ParserRuleContext { open func typedNameList() -> TypedNameListContext? { return getRuleContext(TypedNameListContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_constantsDef } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterConstantsDef(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitConstantsDef(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitConstantsDef(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitConstantsDef(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func constantsDef() throws -> ConstantsDefContext { var _localctx: ConstantsDefContext = ConstantsDefContext(_ctx, getState()) try enterRule(_localctx, 28, PddlParser.RULE_constantsDef) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(261) try match(PddlParser.Tokens.T__0.rawValue) setState(262) try match(PddlParser.Tokens.T__10.rawValue) setState(263) try typedNameList() setState(264) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class PredicatesDefContext: ParserRuleContext { open func atomicFormulaSkeleton() -> [AtomicFormulaSkeletonContext] { return getRuleContexts(AtomicFormulaSkeletonContext.self) } open func atomicFormulaSkeleton(_ i: Int) -> AtomicFormulaSkeletonContext? { return getRuleContext(AtomicFormulaSkeletonContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_predicatesDef } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterPredicatesDef(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitPredicatesDef(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitPredicatesDef(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitPredicatesDef(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func predicatesDef() throws -> PredicatesDefContext { var _localctx: PredicatesDefContext = PredicatesDefContext(_ctx, getState()) try enterRule(_localctx, 30, PddlParser.RULE_predicatesDef) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(266) try match(PddlParser.Tokens.T__0.rawValue) setState(267) try match(PddlParser.Tokens.T__11.rawValue) setState(269) try _errHandler.sync(self) _la = try _input.LA(1) repeat { setState(268) try atomicFormulaSkeleton() setState(271); try _errHandler.sync(self) _la = try _input.LA(1) } while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) setState(273) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class AtomicFormulaSkeletonContext: ParserRuleContext { open func predicate() -> PredicateContext? { return getRuleContext(PredicateContext.self, 0) } open func typedVariableList() -> TypedVariableListContext? { return getRuleContext(TypedVariableListContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_atomicFormulaSkeleton } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterAtomicFormulaSkeleton(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitAtomicFormulaSkeleton(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitAtomicFormulaSkeleton(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitAtomicFormulaSkeleton(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func atomicFormulaSkeleton() throws -> AtomicFormulaSkeletonContext { var _localctx: AtomicFormulaSkeletonContext = AtomicFormulaSkeletonContext(_ctx, getState()) try enterRule(_localctx, 32, PddlParser.RULE_atomicFormulaSkeleton) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(275) try match(PddlParser.Tokens.T__0.rawValue) setState(276) try predicate() setState(277) try typedVariableList() setState(278) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class PredicateContext: ParserRuleContext { open func NAME() -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_predicate } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterPredicate(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitPredicate(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitPredicate(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitPredicate(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func predicate() throws -> PredicateContext { var _localctx: PredicateContext = PredicateContext(_ctx, getState()) try enterRule(_localctx, 34, PddlParser.RULE_predicate) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(280) try match(PddlParser.Tokens.NAME.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class TypedVariableListContext: ParserRuleContext { open func VARIABLE() -> [TerminalNode] { return getTokens(PddlParser.Tokens.VARIABLE.rawValue) } open func VARIABLE(_ i:Int) -> TerminalNode? { return getToken(PddlParser.Tokens.VARIABLE.rawValue, i) } open func singleTypeVarList() -> [SingleTypeVarListContext] { return getRuleContexts(SingleTypeVarListContext.self) } open func singleTypeVarList(_ i: Int) -> SingleTypeVarListContext? { return getRuleContext(SingleTypeVarListContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_typedVariableList } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterTypedVariableList(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitTypedVariableList(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitTypedVariableList(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitTypedVariableList(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func typedVariableList() throws -> TypedVariableListContext { var _localctx: TypedVariableListContext = TypedVariableListContext(_ctx, getState()) try enterRule(_localctx, 36, PddlParser.RULE_typedVariableList) var _la: Int = 0 defer { try! exitRule() } do { var _alt:Int try enterOuterAlt(_localctx, 1) setState(299) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,23, _ctx)) { case 1: setState(285) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.VARIABLE.rawValue return testSet }()) { setState(282) try match(PddlParser.Tokens.VARIABLE.rawValue) setState(287) try _errHandler.sync(self) _la = try _input.LA(1) } break case 2: setState(289); try _errHandler.sync(self) _alt = 1; repeat { switch (_alt) { case 1: setState(288) try singleTypeVarList() break default: throw ANTLRException.recognition(e: NoViableAltException(self)) } setState(291); try _errHandler.sync(self) _alt = try getInterpreter().adaptivePredict(_input,21,_ctx) } while (_alt != 2 && _alt != ATN.INVALID_ALT_NUMBER) setState(296) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.VARIABLE.rawValue return testSet }()) { setState(293) try match(PddlParser.Tokens.VARIABLE.rawValue) setState(298) try _errHandler.sync(self) _la = try _input.LA(1) } break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class SingleTypeVarListContext: ParserRuleContext { open var t: TypeContext! open func type() -> TypeContext? { return getRuleContext(TypeContext.self, 0) } open func VARIABLE() -> [TerminalNode] { return getTokens(PddlParser.Tokens.VARIABLE.rawValue) } open func VARIABLE(_ i:Int) -> TerminalNode? { return getToken(PddlParser.Tokens.VARIABLE.rawValue, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_singleTypeVarList } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterSingleTypeVarList(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitSingleTypeVarList(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitSingleTypeVarList(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitSingleTypeVarList(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func singleTypeVarList() throws -> SingleTypeVarListContext { var _localctx: SingleTypeVarListContext = SingleTypeVarListContext(_ctx, getState()) try enterRule(_localctx, 38, PddlParser.RULE_singleTypeVarList) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(302) try _errHandler.sync(self) _la = try _input.LA(1) repeat { setState(301) try match(PddlParser.Tokens.VARIABLE.rawValue) setState(304); try _errHandler.sync(self) _la = try _input.LA(1) } while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.VARIABLE.rawValue return testSet }()) setState(306) try match(PddlParser.Tokens.T__6.rawValue) setState(307) try { let assignmentValue = try type() _localctx.castdown(SingleTypeVarListContext.self).t = assignmentValue }() } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class ConstraintsContext: ParserRuleContext { open func conGD() -> ConGDContext? { return getRuleContext(ConGDContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_constraints } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterConstraints(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitConstraints(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitConstraints(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitConstraints(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func constraints() throws -> ConstraintsContext { var _localctx: ConstraintsContext = ConstraintsContext(_ctx, getState()) try enterRule(_localctx, 40, PddlParser.RULE_constraints) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(309) try match(PddlParser.Tokens.T__0.rawValue) setState(310) try match(PddlParser.Tokens.T__12.rawValue) setState(311) try conGD() setState(312) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class StructureDefContext: ParserRuleContext { open func actionDef() -> ActionDefContext? { return getRuleContext(ActionDefContext.self, 0) } open func durativeActionDef() -> DurativeActionDefContext? { return getRuleContext(DurativeActionDefContext.self, 0) } open func derivedDef() -> DerivedDefContext? { return getRuleContext(DerivedDefContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_structureDef } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterStructureDef(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitStructureDef(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitStructureDef(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitStructureDef(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func structureDef() throws -> StructureDefContext { var _localctx: StructureDefContext = StructureDefContext(_ctx, getState()) try enterRule(_localctx, 42, PddlParser.RULE_structureDef) defer { try! exitRule() } do { setState(317) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,25, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(314) try actionDef() break case 2: try enterOuterAlt(_localctx, 2) setState(315) try durativeActionDef() break case 3: try enterOuterAlt(_localctx, 3) setState(316) try derivedDef() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class ActionDefContext: ParserRuleContext { open func actionSymbol() -> ActionSymbolContext? { return getRuleContext(ActionSymbolContext.self, 0) } open func typedVariableList() -> TypedVariableListContext? { return getRuleContext(TypedVariableListContext.self, 0) } open func actionDefBody() -> ActionDefBodyContext? { return getRuleContext(ActionDefBodyContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_actionDef } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterActionDef(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitActionDef(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitActionDef(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitActionDef(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func actionDef() throws -> ActionDefContext { var _localctx: ActionDefContext = ActionDefContext(_ctx, getState()) try enterRule(_localctx, 44, PddlParser.RULE_actionDef) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(319) try match(PddlParser.Tokens.T__0.rawValue) setState(320) try match(PddlParser.Tokens.T__13.rawValue) setState(321) try actionSymbol() setState(322) try match(PddlParser.Tokens.T__14.rawValue) setState(323) try match(PddlParser.Tokens.T__0.rawValue) setState(324) try typedVariableList() setState(325) try match(PddlParser.Tokens.T__2.rawValue) setState(326) try actionDefBody() setState(327) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class ActionSymbolContext: ParserRuleContext { open func NAME() -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_actionSymbol } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterActionSymbol(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitActionSymbol(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitActionSymbol(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitActionSymbol(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func actionSymbol() throws -> ActionSymbolContext { var _localctx: ActionSymbolContext = ActionSymbolContext(_ctx, getState()) try enterRule(_localctx, 46, PddlParser.RULE_actionSymbol) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(329) try match(PddlParser.Tokens.NAME.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class ActionDefBodyContext: ParserRuleContext { open func goalDesc() -> GoalDescContext? { return getRuleContext(GoalDescContext.self, 0) } open func effect() -> EffectContext? { return getRuleContext(EffectContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_actionDefBody } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterActionDefBody(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitActionDefBody(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitActionDefBody(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitActionDefBody(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func actionDefBody() throws -> ActionDefBodyContext { var _localctx: ActionDefBodyContext = ActionDefBodyContext(_ctx, getState()) try enterRule(_localctx, 48, PddlParser.RULE_actionDefBody) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(337) try _errHandler.sync(self) _la = try _input.LA(1) if (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__15.rawValue return testSet }()) { setState(331) try match(PddlParser.Tokens.T__15.rawValue) setState(335) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,26, _ctx)) { case 1: setState(332) try match(PddlParser.Tokens.T__0.rawValue) setState(333) try match(PddlParser.Tokens.T__2.rawValue) break case 2: setState(334) try goalDesc() break default: break } } setState(345) try _errHandler.sync(self) _la = try _input.LA(1) if (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__16.rawValue return testSet }()) { setState(339) try match(PddlParser.Tokens.T__16.rawValue) setState(343) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,28, _ctx)) { case 1: setState(340) try match(PddlParser.Tokens.T__0.rawValue) setState(341) try match(PddlParser.Tokens.T__2.rawValue) break case 2: setState(342) try effect() break default: break } } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class GoalDescContext: ParserRuleContext { open func atomicTermFormula() -> AtomicTermFormulaContext? { return getRuleContext(AtomicTermFormulaContext.self, 0) } open func goalDesc() -> [GoalDescContext] { return getRuleContexts(GoalDescContext.self) } open func goalDesc(_ i: Int) -> GoalDescContext? { return getRuleContext(GoalDescContext.self, i) } open func typedVariableList() -> TypedVariableListContext? { return getRuleContext(TypedVariableListContext.self, 0) } open func fComp() -> FCompContext? { return getRuleContext(FCompContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_goalDesc } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterGoalDesc(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitGoalDesc(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitGoalDesc(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitGoalDesc(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func goalDesc() throws -> GoalDescContext { var _localctx: GoalDescContext = GoalDescContext(_ctx, getState()) try enterRule(_localctx, 50, PddlParser.RULE_goalDesc) var _la: Int = 0 defer { try! exitRule() } do { setState(394) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,32, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(347) try atomicTermFormula() break case 2: try enterOuterAlt(_localctx, 2) setState(348) try match(PddlParser.Tokens.T__0.rawValue) setState(349) try match(PddlParser.Tokens.T__17.rawValue) setState(353) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(350) try goalDesc() setState(355) try _errHandler.sync(self) _la = try _input.LA(1) } setState(356) try match(PddlParser.Tokens.T__2.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(357) try match(PddlParser.Tokens.T__0.rawValue) setState(358) try match(PddlParser.Tokens.T__18.rawValue) setState(362) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(359) try goalDesc() setState(364) try _errHandler.sync(self) _la = try _input.LA(1) } setState(365) try match(PddlParser.Tokens.T__2.rawValue) break case 4: try enterOuterAlt(_localctx, 4) setState(366) try match(PddlParser.Tokens.T__0.rawValue) setState(367) try match(PddlParser.Tokens.T__19.rawValue) setState(368) try goalDesc() setState(369) try match(PddlParser.Tokens.T__2.rawValue) break case 5: try enterOuterAlt(_localctx, 5) setState(371) try match(PddlParser.Tokens.T__0.rawValue) setState(372) try match(PddlParser.Tokens.T__20.rawValue) setState(373) try goalDesc() setState(374) try goalDesc() setState(375) try match(PddlParser.Tokens.T__2.rawValue) break case 6: try enterOuterAlt(_localctx, 6) setState(377) try match(PddlParser.Tokens.T__0.rawValue) setState(378) try match(PddlParser.Tokens.T__21.rawValue) setState(379) try match(PddlParser.Tokens.T__0.rawValue) setState(380) try typedVariableList() setState(381) try match(PddlParser.Tokens.T__2.rawValue) setState(382) try goalDesc() setState(383) try match(PddlParser.Tokens.T__2.rawValue) break case 7: try enterOuterAlt(_localctx, 7) setState(385) try match(PddlParser.Tokens.T__0.rawValue) setState(386) try match(PddlParser.Tokens.T__22.rawValue) setState(387) try match(PddlParser.Tokens.T__0.rawValue) setState(388) try typedVariableList() setState(389) try match(PddlParser.Tokens.T__2.rawValue) setState(390) try goalDesc() setState(391) try match(PddlParser.Tokens.T__2.rawValue) break case 8: try enterOuterAlt(_localctx, 8) setState(393) try fComp() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class FCompContext: ParserRuleContext { open func binaryComp() -> BinaryCompContext? { return getRuleContext(BinaryCompContext.self, 0) } open func fExp() -> [FExpContext] { return getRuleContexts(FExpContext.self) } open func fExp(_ i: Int) -> FExpContext? { return getRuleContext(FExpContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_fComp } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterFComp(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitFComp(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitFComp(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitFComp(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func fComp() throws -> FCompContext { var _localctx: FCompContext = FCompContext(_ctx, getState()) try enterRule(_localctx, 52, PddlParser.RULE_fComp) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(396) try match(PddlParser.Tokens.T__0.rawValue) setState(397) try binaryComp() setState(398) try fExp() setState(399) try fExp() setState(400) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class AtomicTermFormulaContext: ParserRuleContext { open func predicate() -> PredicateContext? { return getRuleContext(PredicateContext.self, 0) } open func term() -> [TermContext] { return getRuleContexts(TermContext.self) } open func term(_ i: Int) -> TermContext? { return getRuleContext(TermContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_atomicTermFormula } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterAtomicTermFormula(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitAtomicTermFormula(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitAtomicTermFormula(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitAtomicTermFormula(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func atomicTermFormula() throws -> AtomicTermFormulaContext { var _localctx: AtomicTermFormulaContext = AtomicTermFormulaContext(_ctx, getState()) try enterRule(_localctx, 54, PddlParser.RULE_atomicTermFormula) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(402) try match(PddlParser.Tokens.T__0.rawValue) setState(403) try predicate() setState(407) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.NAME.rawValue || _la == PddlParser.Tokens.VARIABLE.rawValue return testSet }()) { setState(404) try term() setState(409) try _errHandler.sync(self) _la = try _input.LA(1) } setState(410) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class TermContext: ParserRuleContext { open func NAME() -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, 0) } open func VARIABLE() -> TerminalNode? { return getToken(PddlParser.Tokens.VARIABLE.rawValue, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_term } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterTerm(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitTerm(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitTerm(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitTerm(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func term() throws -> TermContext { var _localctx: TermContext = TermContext(_ctx, getState()) try enterRule(_localctx, 56, PddlParser.RULE_term) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(412) _la = try _input.LA(1) if (!(//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.NAME.rawValue || _la == PddlParser.Tokens.VARIABLE.rawValue return testSet }())) { try _errHandler.recoverInline(self) } else { _errHandler.reportMatch(self) try consume() } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class DurativeActionDefContext: ParserRuleContext { open func actionSymbol() -> ActionSymbolContext? { return getRuleContext(ActionSymbolContext.self, 0) } open func typedVariableList() -> TypedVariableListContext? { return getRuleContext(TypedVariableListContext.self, 0) } open func daDefBody() -> DaDefBodyContext? { return getRuleContext(DaDefBodyContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_durativeActionDef } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterDurativeActionDef(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitDurativeActionDef(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitDurativeActionDef(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitDurativeActionDef(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func durativeActionDef() throws -> DurativeActionDefContext { var _localctx: DurativeActionDefContext = DurativeActionDefContext(_ctx, getState()) try enterRule(_localctx, 58, PddlParser.RULE_durativeActionDef) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(414) try match(PddlParser.Tokens.T__0.rawValue) setState(415) try match(PddlParser.Tokens.T__23.rawValue) setState(416) try actionSymbol() setState(417) try match(PddlParser.Tokens.T__14.rawValue) setState(418) try match(PddlParser.Tokens.T__0.rawValue) setState(419) try typedVariableList() setState(420) try match(PddlParser.Tokens.T__2.rawValue) setState(421) try daDefBody() setState(422) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class DaDefBodyContext: ParserRuleContext { open func durationConstraint() -> DurationConstraintContext? { return getRuleContext(DurationConstraintContext.self, 0) } open func daGD() -> DaGDContext? { return getRuleContext(DaGDContext.self, 0) } open func daEffect() -> DaEffectContext? { return getRuleContext(DaEffectContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_daDefBody } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterDaDefBody(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitDaDefBody(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitDaDefBody(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitDaDefBody(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func daDefBody() throws -> DaDefBodyContext { var _localctx: DaDefBodyContext = DaDefBodyContext(_ctx, getState()) try enterRule(_localctx, 60, PddlParser.RULE_daDefBody) defer { try! exitRule() } do { setState(438) try _errHandler.sync(self) switch (PddlParser.Tokens(rawValue: try _input.LA(1))!) { case .T__24: try enterOuterAlt(_localctx, 1) setState(424) try match(PddlParser.Tokens.T__24.rawValue) setState(425) try durationConstraint() break case .T__25: try enterOuterAlt(_localctx, 2) setState(426) try match(PddlParser.Tokens.T__25.rawValue) setState(430) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,34, _ctx)) { case 1: setState(427) try match(PddlParser.Tokens.T__0.rawValue) setState(428) try match(PddlParser.Tokens.T__2.rawValue) break case 2: setState(429) try daGD() break default: break } break case .T__16: try enterOuterAlt(_localctx, 3) setState(432) try match(PddlParser.Tokens.T__16.rawValue) setState(436) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,35, _ctx)) { case 1: setState(433) try match(PddlParser.Tokens.T__0.rawValue) setState(434) try match(PddlParser.Tokens.T__2.rawValue) break case 2: setState(435) try daEffect() break default: break } break default: throw ANTLRException.recognition(e: NoViableAltException(self)) } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class DaGDContext: ParserRuleContext { open func prefTimedGD() -> PrefTimedGDContext? { return getRuleContext(PrefTimedGDContext.self, 0) } open func daGD() -> [DaGDContext] { return getRuleContexts(DaGDContext.self) } open func daGD(_ i: Int) -> DaGDContext? { return getRuleContext(DaGDContext.self, i) } open func typedVariableList() -> TypedVariableListContext? { return getRuleContext(TypedVariableListContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_daGD } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterDaGD(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitDaGD(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitDaGD(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitDaGD(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func daGD() throws -> DaGDContext { var _localctx: DaGDContext = DaGDContext(_ctx, getState()) try enterRule(_localctx, 62, PddlParser.RULE_daGD) var _la: Int = 0 defer { try! exitRule() } do { setState(458) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,38, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(440) try prefTimedGD() break case 2: try enterOuterAlt(_localctx, 2) setState(441) try match(PddlParser.Tokens.T__0.rawValue) setState(442) try match(PddlParser.Tokens.T__17.rawValue) setState(446) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(443) try daGD() setState(448) try _errHandler.sync(self) _la = try _input.LA(1) } setState(449) try match(PddlParser.Tokens.T__2.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(450) try match(PddlParser.Tokens.T__0.rawValue) setState(451) try match(PddlParser.Tokens.T__22.rawValue) setState(452) try match(PddlParser.Tokens.T__0.rawValue) setState(453) try typedVariableList() setState(454) try match(PddlParser.Tokens.T__2.rawValue) setState(455) try daGD() setState(456) try match(PddlParser.Tokens.T__2.rawValue) break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class PrefTimedGDContext: ParserRuleContext { open func timedGD() -> TimedGDContext? { return getRuleContext(TimedGDContext.self, 0) } open func NAME() -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_prefTimedGD } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterPrefTimedGD(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitPrefTimedGD(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitPrefTimedGD(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitPrefTimedGD(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func prefTimedGD() throws -> PrefTimedGDContext { var _localctx: PrefTimedGDContext = PrefTimedGDContext(_ctx, getState()) try enterRule(_localctx, 64, PddlParser.RULE_prefTimedGD) var _la: Int = 0 defer { try! exitRule() } do { setState(469) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,40, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(460) try timedGD() break case 2: try enterOuterAlt(_localctx, 2) setState(461) try match(PddlParser.Tokens.T__0.rawValue) setState(462) try match(PddlParser.Tokens.T__26.rawValue) setState(464) try _errHandler.sync(self) _la = try _input.LA(1) if (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.NAME.rawValue return testSet }()) { setState(463) try match(PddlParser.Tokens.NAME.rawValue) } setState(466) try timedGD() setState(467) try match(PddlParser.Tokens.T__2.rawValue) break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class TimedGDContext: ParserRuleContext { open func timeSpecifier() -> TimeSpecifierContext? { return getRuleContext(TimeSpecifierContext.self, 0) } open func goalDesc() -> GoalDescContext? { return getRuleContext(GoalDescContext.self, 0) } open func interval() -> IntervalContext? { return getRuleContext(IntervalContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_timedGD } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterTimedGD(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitTimedGD(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitTimedGD(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitTimedGD(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func timedGD() throws -> TimedGDContext { var _localctx: TimedGDContext = TimedGDContext(_ctx, getState()) try enterRule(_localctx, 66, PddlParser.RULE_timedGD) defer { try! exitRule() } do { setState(483) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,41, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(471) try match(PddlParser.Tokens.T__0.rawValue) setState(472) try match(PddlParser.Tokens.T__27.rawValue) setState(473) try timeSpecifier() setState(474) try goalDesc() setState(475) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(477) try match(PddlParser.Tokens.T__0.rawValue) setState(478) try match(PddlParser.Tokens.T__28.rawValue) setState(479) try interval() setState(480) try goalDesc() setState(481) try match(PddlParser.Tokens.T__2.rawValue) break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class TimeSpecifierContext: ParserRuleContext { override open func getRuleIndex() -> Int { return PddlParser.RULE_timeSpecifier } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterTimeSpecifier(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitTimeSpecifier(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitTimeSpecifier(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitTimeSpecifier(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func timeSpecifier() throws -> TimeSpecifierContext { var _localctx: TimeSpecifierContext = TimeSpecifierContext(_ctx, getState()) try enterRule(_localctx, 68, PddlParser.RULE_timeSpecifier) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(485) _la = try _input.LA(1) if (!(//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__29.rawValue || _la == PddlParser.Tokens.T__30.rawValue return testSet }())) { try _errHandler.recoverInline(self) } else { _errHandler.reportMatch(self) try consume() } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class IntervalContext: ParserRuleContext { override open func getRuleIndex() -> Int { return PddlParser.RULE_interval } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterInterval(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitInterval(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitInterval(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitInterval(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func interval() throws -> IntervalContext { var _localctx: IntervalContext = IntervalContext(_ctx, getState()) try enterRule(_localctx, 70, PddlParser.RULE_interval) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(487) try match(PddlParser.Tokens.T__31.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class DerivedDefContext: ParserRuleContext { open func typedVariableList() -> TypedVariableListContext? { return getRuleContext(TypedVariableListContext.self, 0) } open func goalDesc() -> GoalDescContext? { return getRuleContext(GoalDescContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_derivedDef } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterDerivedDef(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitDerivedDef(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitDerivedDef(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitDerivedDef(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func derivedDef() throws -> DerivedDefContext { var _localctx: DerivedDefContext = DerivedDefContext(_ctx, getState()) try enterRule(_localctx, 72, PddlParser.RULE_derivedDef) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(489) try match(PddlParser.Tokens.T__0.rawValue) setState(490) try match(PddlParser.Tokens.T__32.rawValue) setState(491) try typedVariableList() setState(492) try goalDesc() setState(493) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class FExpContext: ParserRuleContext { open func NUMBER() -> TerminalNode? { return getToken(PddlParser.Tokens.NUMBER.rawValue, 0) } open func binaryOp() -> BinaryOpContext? { return getRuleContext(BinaryOpContext.self, 0) } open func fExp() -> FExpContext? { return getRuleContext(FExpContext.self, 0) } open func fExp2() -> FExp2Context? { return getRuleContext(FExp2Context.self, 0) } open func fHead() -> FHeadContext? { return getRuleContext(FHeadContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_fExp } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterFExp(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitFExp(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitFExp(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitFExp(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func fExp() throws -> FExpContext { var _localctx: FExpContext = FExpContext(_ctx, getState()) try enterRule(_localctx, 74, PddlParser.RULE_fExp) defer { try! exitRule() } do { setState(508) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,42, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(495) try match(PddlParser.Tokens.NUMBER.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(496) try match(PddlParser.Tokens.T__0.rawValue) setState(497) try binaryOp() setState(498) try fExp() setState(499) try fExp2() setState(500) try match(PddlParser.Tokens.T__2.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(502) try match(PddlParser.Tokens.T__0.rawValue) setState(503) try match(PddlParser.Tokens.T__6.rawValue) setState(504) try fExp() setState(505) try match(PddlParser.Tokens.T__2.rawValue) break case 4: try enterOuterAlt(_localctx, 4) setState(507) try fHead() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class FExp2Context: ParserRuleContext { open func fExp() -> FExpContext? { return getRuleContext(FExpContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_fExp2 } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterFExp2(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitFExp2(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitFExp2(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitFExp2(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func fExp2() throws -> FExp2Context { var _localctx: FExp2Context = FExp2Context(_ctx, getState()) try enterRule(_localctx, 76, PddlParser.RULE_fExp2) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(510) try fExp() } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class FHeadContext: ParserRuleContext { open func functionSymbol() -> FunctionSymbolContext? { return getRuleContext(FunctionSymbolContext.self, 0) } open func term() -> [TermContext] { return getRuleContexts(TermContext.self) } open func term(_ i: Int) -> TermContext? { return getRuleContext(TermContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_fHead } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterFHead(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitFHead(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitFHead(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitFHead(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func fHead() throws -> FHeadContext { var _localctx: FHeadContext = FHeadContext(_ctx, getState()) try enterRule(_localctx, 78, PddlParser.RULE_fHead) var _la: Int = 0 defer { try! exitRule() } do { setState(523) try _errHandler.sync(self) switch (PddlParser.Tokens(rawValue: try _input.LA(1))!) { case .T__0: try enterOuterAlt(_localctx, 1) setState(512) try match(PddlParser.Tokens.T__0.rawValue) setState(513) try functionSymbol() setState(517) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.NAME.rawValue || _la == PddlParser.Tokens.VARIABLE.rawValue return testSet }()) { setState(514) try term() setState(519) try _errHandler.sync(self) _la = try _input.LA(1) } setState(520) try match(PddlParser.Tokens.T__2.rawValue) break case .NAME: try enterOuterAlt(_localctx, 2) setState(522) try functionSymbol() break default: throw ANTLRException.recognition(e: NoViableAltException(self)) } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class EffectContext: ParserRuleContext { open func cEffect() -> [CEffectContext] { return getRuleContexts(CEffectContext.self) } open func cEffect(_ i: Int) -> CEffectContext? { return getRuleContext(CEffectContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_effect } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterEffect(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitEffect(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitEffect(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitEffect(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func effect() throws -> EffectContext { var _localctx: EffectContext = EffectContext(_ctx, getState()) try enterRule(_localctx, 80, PddlParser.RULE_effect) var _la: Int = 0 defer { try! exitRule() } do { setState(535) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,46, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(525) try match(PddlParser.Tokens.T__0.rawValue) setState(526) try match(PddlParser.Tokens.T__17.rawValue) setState(530) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(527) try cEffect() setState(532) try _errHandler.sync(self) _la = try _input.LA(1) } setState(533) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(534) try cEffect() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class CEffectContext: ParserRuleContext { open func typedVariableList() -> TypedVariableListContext? { return getRuleContext(TypedVariableListContext.self, 0) } open func effect() -> EffectContext? { return getRuleContext(EffectContext.self, 0) } open func goalDesc() -> GoalDescContext? { return getRuleContext(GoalDescContext.self, 0) } open func condEffect() -> CondEffectContext? { return getRuleContext(CondEffectContext.self, 0) } open func pEffect() -> PEffectContext? { return getRuleContext(PEffectContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_cEffect } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterCEffect(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitCEffect(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitCEffect(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitCEffect(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func cEffect() throws -> CEffectContext { var _localctx: CEffectContext = CEffectContext(_ctx, getState()) try enterRule(_localctx, 82, PddlParser.RULE_cEffect) defer { try! exitRule() } do { setState(552) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,47, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(537) try match(PddlParser.Tokens.T__0.rawValue) setState(538) try match(PddlParser.Tokens.T__22.rawValue) setState(539) try match(PddlParser.Tokens.T__0.rawValue) setState(540) try typedVariableList() setState(541) try match(PddlParser.Tokens.T__2.rawValue) setState(542) try effect() setState(543) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(545) try match(PddlParser.Tokens.T__0.rawValue) setState(546) try match(PddlParser.Tokens.T__33.rawValue) setState(547) try goalDesc() setState(548) try condEffect() setState(549) try match(PddlParser.Tokens.T__2.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(551) try pEffect() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class PEffectContext: ParserRuleContext { open func assignOp() -> AssignOpContext? { return getRuleContext(AssignOpContext.self, 0) } open func fHead() -> FHeadContext? { return getRuleContext(FHeadContext.self, 0) } open func fExp() -> FExpContext? { return getRuleContext(FExpContext.self, 0) } open func atomicTermFormula() -> AtomicTermFormulaContext? { return getRuleContext(AtomicTermFormulaContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_pEffect } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterPEffect(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitPEffect(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitPEffect(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitPEffect(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func pEffect() throws -> PEffectContext { var _localctx: PEffectContext = PEffectContext(_ctx, getState()) try enterRule(_localctx, 84, PddlParser.RULE_pEffect) defer { try! exitRule() } do { setState(566) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,48, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(554) try match(PddlParser.Tokens.T__0.rawValue) setState(555) try assignOp() setState(556) try fHead() setState(557) try fExp() setState(558) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(560) try match(PddlParser.Tokens.T__0.rawValue) setState(561) try match(PddlParser.Tokens.T__19.rawValue) setState(562) try atomicTermFormula() setState(563) try match(PddlParser.Tokens.T__2.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(565) try atomicTermFormula() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class CondEffectContext: ParserRuleContext { open func pEffect() -> [PEffectContext] { return getRuleContexts(PEffectContext.self) } open func pEffect(_ i: Int) -> PEffectContext? { return getRuleContext(PEffectContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_condEffect } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterCondEffect(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitCondEffect(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitCondEffect(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitCondEffect(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func condEffect() throws -> CondEffectContext { var _localctx: CondEffectContext = CondEffectContext(_ctx, getState()) try enterRule(_localctx, 86, PddlParser.RULE_condEffect) var _la: Int = 0 defer { try! exitRule() } do { setState(578) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,50, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(568) try match(PddlParser.Tokens.T__0.rawValue) setState(569) try match(PddlParser.Tokens.T__17.rawValue) setState(573) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(570) try pEffect() setState(575) try _errHandler.sync(self) _la = try _input.LA(1) } setState(576) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(577) try pEffect() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class BinaryOpContext: ParserRuleContext { override open func getRuleIndex() -> Int { return PddlParser.RULE_binaryOp } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterBinaryOp(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitBinaryOp(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitBinaryOp(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitBinaryOp(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func binaryOp() throws -> BinaryOpContext { var _localctx: BinaryOpContext = BinaryOpContext(_ctx, getState()) try enterRule(_localctx, 88, PddlParser.RULE_binaryOp) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(580) _la = try _input.LA(1) if (!(//closure { () -> Bool in let testSet: Bool = { () -> Bool in let testArray: [Int] = [_la, PddlParser.Tokens.T__6.rawValue,PddlParser.Tokens.T__34.rawValue,PddlParser.Tokens.T__35.rawValue,PddlParser.Tokens.T__36.rawValue] return Utils.testBitLeftShiftArray(testArray, 0) }() return testSet }())) { try _errHandler.recoverInline(self) } else { _errHandler.reportMatch(self) try consume() } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class BinaryCompContext: ParserRuleContext { override open func getRuleIndex() -> Int { return PddlParser.RULE_binaryComp } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterBinaryComp(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitBinaryComp(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitBinaryComp(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitBinaryComp(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func binaryComp() throws -> BinaryCompContext { var _localctx: BinaryCompContext = BinaryCompContext(_ctx, getState()) try enterRule(_localctx, 90, PddlParser.RULE_binaryComp) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(582) _la = try _input.LA(1) if (!(//closure { () -> Bool in let testSet: Bool = { () -> Bool in let testArray: [Int] = [_la, PddlParser.Tokens.T__37.rawValue,PddlParser.Tokens.T__38.rawValue,PddlParser.Tokens.T__39.rawValue,PddlParser.Tokens.T__40.rawValue,PddlParser.Tokens.T__41.rawValue] return Utils.testBitLeftShiftArray(testArray, 0) }() return testSet }())) { try _errHandler.recoverInline(self) } else { _errHandler.reportMatch(self) try consume() } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class AssignOpContext: ParserRuleContext { override open func getRuleIndex() -> Int { return PddlParser.RULE_assignOp } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterAssignOp(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitAssignOp(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitAssignOp(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitAssignOp(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func assignOp() throws -> AssignOpContext { var _localctx: AssignOpContext = AssignOpContext(_ctx, getState()) try enterRule(_localctx, 92, PddlParser.RULE_assignOp) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(584) _la = try _input.LA(1) if (!(//closure { () -> Bool in let testSet: Bool = { () -> Bool in let testArray: [Int] = [_la, PddlParser.Tokens.T__42.rawValue,PddlParser.Tokens.T__43.rawValue,PddlParser.Tokens.T__44.rawValue,PddlParser.Tokens.T__45.rawValue,PddlParser.Tokens.T__46.rawValue] return Utils.testBitLeftShiftArray(testArray, 0) }() return testSet }())) { try _errHandler.recoverInline(self) } else { _errHandler.reportMatch(self) try consume() } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class DurationConstraintContext: ParserRuleContext { open func simpleDurationConstraint() -> [SimpleDurationConstraintContext] { return getRuleContexts(SimpleDurationConstraintContext.self) } open func simpleDurationConstraint(_ i: Int) -> SimpleDurationConstraintContext? { return getRuleContext(SimpleDurationConstraintContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_durationConstraint } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterDurationConstraint(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitDurationConstraint(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitDurationConstraint(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitDurationConstraint(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func durationConstraint() throws -> DurationConstraintContext { var _localctx: DurationConstraintContext = DurationConstraintContext(_ctx, getState()) try enterRule(_localctx, 94, PddlParser.RULE_durationConstraint) var _la: Int = 0 defer { try! exitRule() } do { setState(598) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,52, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(586) try match(PddlParser.Tokens.T__0.rawValue) setState(587) try match(PddlParser.Tokens.T__17.rawValue) setState(589) try _errHandler.sync(self) _la = try _input.LA(1) repeat { setState(588) try simpleDurationConstraint() setState(591); try _errHandler.sync(self) _la = try _input.LA(1) } while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) setState(593) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(595) try match(PddlParser.Tokens.T__0.rawValue) setState(596) try match(PddlParser.Tokens.T__2.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(597) try simpleDurationConstraint() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class SimpleDurationConstraintContext: ParserRuleContext { open func durOp() -> DurOpContext? { return getRuleContext(DurOpContext.self, 0) } open func durValue() -> DurValueContext? { return getRuleContext(DurValueContext.self, 0) } open func timeSpecifier() -> TimeSpecifierContext? { return getRuleContext(TimeSpecifierContext.self, 0) } open func simpleDurationConstraint() -> SimpleDurationConstraintContext? { return getRuleContext(SimpleDurationConstraintContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_simpleDurationConstraint } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterSimpleDurationConstraint(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitSimpleDurationConstraint(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitSimpleDurationConstraint(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitSimpleDurationConstraint(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func simpleDurationConstraint() throws -> SimpleDurationConstraintContext { var _localctx: SimpleDurationConstraintContext = SimpleDurationConstraintContext(_ctx, getState()) try enterRule(_localctx, 96, PddlParser.RULE_simpleDurationConstraint) defer { try! exitRule() } do { setState(612) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,53, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(600) try match(PddlParser.Tokens.T__0.rawValue) setState(601) try durOp() setState(602) try match(PddlParser.Tokens.T__47.rawValue) setState(603) try durValue() setState(604) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(606) try match(PddlParser.Tokens.T__0.rawValue) setState(607) try match(PddlParser.Tokens.T__27.rawValue) setState(608) try timeSpecifier() setState(609) try simpleDurationConstraint() setState(610) try match(PddlParser.Tokens.T__2.rawValue) break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class DurOpContext: ParserRuleContext { override open func getRuleIndex() -> Int { return PddlParser.RULE_durOp } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterDurOp(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitDurOp(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitDurOp(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitDurOp(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func durOp() throws -> DurOpContext { var _localctx: DurOpContext = DurOpContext(_ctx, getState()) try enterRule(_localctx, 98, PddlParser.RULE_durOp) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(614) _la = try _input.LA(1) if (!(//closure { () -> Bool in let testSet: Bool = { () -> Bool in let testArray: [Int] = [_la, PddlParser.Tokens.T__39.rawValue,PddlParser.Tokens.T__40.rawValue,PddlParser.Tokens.T__41.rawValue] return Utils.testBitLeftShiftArray(testArray, 0) }() return testSet }())) { try _errHandler.recoverInline(self) } else { _errHandler.reportMatch(self) try consume() } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class DurValueContext: ParserRuleContext { open func NUMBER() -> TerminalNode? { return getToken(PddlParser.Tokens.NUMBER.rawValue, 0) } open func fExp() -> FExpContext? { return getRuleContext(FExpContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_durValue } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterDurValue(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitDurValue(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitDurValue(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitDurValue(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func durValue() throws -> DurValueContext { var _localctx: DurValueContext = DurValueContext(_ctx, getState()) try enterRule(_localctx, 100, PddlParser.RULE_durValue) defer { try! exitRule() } do { setState(618) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,54, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(616) try match(PddlParser.Tokens.NUMBER.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(617) try fExp() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class DaEffectContext: ParserRuleContext { open func daEffect() -> [DaEffectContext] { return getRuleContexts(DaEffectContext.self) } open func daEffect(_ i: Int) -> DaEffectContext? { return getRuleContext(DaEffectContext.self, i) } open func timedEffect() -> TimedEffectContext? { return getRuleContext(TimedEffectContext.self, 0) } open func typedVariableList() -> TypedVariableListContext? { return getRuleContext(TypedVariableListContext.self, 0) } open func daGD() -> DaGDContext? { return getRuleContext(DaGDContext.self, 0) } open func assignOp() -> AssignOpContext? { return getRuleContext(AssignOpContext.self, 0) } open func fHead() -> FHeadContext? { return getRuleContext(FHeadContext.self, 0) } open func fExpDA() -> FExpDAContext? { return getRuleContext(FExpDAContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_daEffect } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterDaEffect(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitDaEffect(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitDaEffect(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitDaEffect(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func daEffect() throws -> DaEffectContext { var _localctx: DaEffectContext = DaEffectContext(_ctx, getState()) try enterRule(_localctx, 102, PddlParser.RULE_daEffect) var _la: Int = 0 defer { try! exitRule() } do { setState(650) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,56, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(620) try match(PddlParser.Tokens.T__0.rawValue) setState(621) try match(PddlParser.Tokens.T__17.rawValue) setState(625) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(622) try daEffect() setState(627) try _errHandler.sync(self) _la = try _input.LA(1) } setState(628) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(629) try timedEffect() break case 3: try enterOuterAlt(_localctx, 3) setState(630) try match(PddlParser.Tokens.T__0.rawValue) setState(631) try match(PddlParser.Tokens.T__22.rawValue) setState(632) try match(PddlParser.Tokens.T__0.rawValue) setState(633) try typedVariableList() setState(634) try match(PddlParser.Tokens.T__2.rawValue) setState(635) try daEffect() setState(636) try match(PddlParser.Tokens.T__2.rawValue) break case 4: try enterOuterAlt(_localctx, 4) setState(638) try match(PddlParser.Tokens.T__0.rawValue) setState(639) try match(PddlParser.Tokens.T__33.rawValue) setState(640) try daGD() setState(641) try timedEffect() setState(642) try match(PddlParser.Tokens.T__2.rawValue) break case 5: try enterOuterAlt(_localctx, 5) setState(644) try match(PddlParser.Tokens.T__0.rawValue) setState(645) try assignOp() setState(646) try fHead() setState(647) try fExpDA() setState(648) try match(PddlParser.Tokens.T__2.rawValue) break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class TimedEffectContext: ParserRuleContext { open func timeSpecifier() -> TimeSpecifierContext? { return getRuleContext(TimeSpecifierContext.self, 0) } open func daEffect() -> DaEffectContext? { return getRuleContext(DaEffectContext.self, 0) } open func fAssignDA() -> FAssignDAContext? { return getRuleContext(FAssignDAContext.self, 0) } open func assignOp() -> AssignOpContext? { return getRuleContext(AssignOpContext.self, 0) } open func fHead() -> FHeadContext? { return getRuleContext(FHeadContext.self, 0) } open func fExp() -> FExpContext? { return getRuleContext(FExpContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_timedEffect } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterTimedEffect(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitTimedEffect(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitTimedEffect(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitTimedEffect(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func timedEffect() throws -> TimedEffectContext { var _localctx: TimedEffectContext = TimedEffectContext(_ctx, getState()) try enterRule(_localctx, 104, PddlParser.RULE_timedEffect) defer { try! exitRule() } do { setState(670) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,57, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(652) try match(PddlParser.Tokens.T__0.rawValue) setState(653) try match(PddlParser.Tokens.T__27.rawValue) setState(654) try timeSpecifier() setState(655) try daEffect() setState(656) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(658) try match(PddlParser.Tokens.T__0.rawValue) setState(659) try match(PddlParser.Tokens.T__27.rawValue) setState(660) try timeSpecifier() setState(661) try fAssignDA() setState(662) try match(PddlParser.Tokens.T__2.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(664) try match(PddlParser.Tokens.T__0.rawValue) setState(665) try assignOp() setState(666) try fHead() setState(667) try fExp() setState(668) try match(PddlParser.Tokens.T__2.rawValue) break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class FAssignDAContext: ParserRuleContext { open func assignOp() -> AssignOpContext? { return getRuleContext(AssignOpContext.self, 0) } open func fHead() -> FHeadContext? { return getRuleContext(FHeadContext.self, 0) } open func fExpDA() -> FExpDAContext? { return getRuleContext(FExpDAContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_fAssignDA } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterFAssignDA(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitFAssignDA(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitFAssignDA(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitFAssignDA(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func fAssignDA() throws -> FAssignDAContext { var _localctx: FAssignDAContext = FAssignDAContext(_ctx, getState()) try enterRule(_localctx, 106, PddlParser.RULE_fAssignDA) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(672) try match(PddlParser.Tokens.T__0.rawValue) setState(673) try assignOp() setState(674) try fHead() setState(675) try fExpDA() setState(676) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class FExpDAContext: ParserRuleContext { open func binaryOp() -> BinaryOpContext? { return getRuleContext(BinaryOpContext.self, 0) } open func fExpDA() -> [FExpDAContext] { return getRuleContexts(FExpDAContext.self) } open func fExpDA(_ i: Int) -> FExpDAContext? { return getRuleContext(FExpDAContext.self, i) } open func fExp() -> FExpContext? { return getRuleContext(FExpContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_fExpDA } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterFExpDA(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitFExpDA(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitFExpDA(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitFExpDA(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func fExpDA() throws -> FExpDAContext { var _localctx: FExpDAContext = FExpDAContext(_ctx, getState()) try enterRule(_localctx, 108, PddlParser.RULE_fExpDA) defer { try! exitRule() } do { setState(691) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,59, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(678) try match(PddlParser.Tokens.T__0.rawValue) setState(685) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,58, _ctx)) { case 1: setState(679) try binaryOp() setState(680) try fExpDA() setState(681) try fExpDA() break case 2: setState(683) try match(PddlParser.Tokens.T__6.rawValue) setState(684) try fExpDA() break default: break } setState(687) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(689) try match(PddlParser.Tokens.T__47.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(690) try fExp() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class ProblemContext: ParserRuleContext { open func problemDecl() -> ProblemDeclContext? { return getRuleContext(ProblemDeclContext.self, 0) } open func problemDomain() -> ProblemDomainContext? { return getRuleContext(ProblemDomainContext.self, 0) } open func init() -> InitContext? { return getRuleContext(InitContext.self, 0) } open func goal() -> GoalContext? { return getRuleContext(GoalContext.self, 0) } open func requireDef() -> RequireDefContext? { return getRuleContext(RequireDefContext.self, 0) } open func objectDecl() -> ObjectDeclContext? { return getRuleContext(ObjectDeclContext.self, 0) } open func probConstraints() -> ProbConstraintsContext? { return getRuleContext(ProbConstraintsContext.self, 0) } open func metricSpec() -> MetricSpecContext? { return getRuleContext(MetricSpecContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_problem } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterProblem(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitProblem(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitProblem(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitProblem(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func problem() throws -> ProblemContext { var _localctx: ProblemContext = ProblemContext(_ctx, getState()) try enterRule(_localctx, 110, PddlParser.RULE_problem) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(693) try match(PddlParser.Tokens.T__0.rawValue) setState(694) try match(PddlParser.Tokens.T__1.rawValue) setState(695) try problemDecl() setState(696) try problemDomain() setState(698) try _errHandler.sync(self) switch (try getInterpreter().adaptivePredict(_input,60,_ctx)) { case 1: setState(697) try requireDef() break default: break } setState(701) try _errHandler.sync(self) switch (try getInterpreter().adaptivePredict(_input,61,_ctx)) { case 1: setState(700) try objectDecl() break default: break } setState(703) try init() setState(704) try goal() setState(706) try _errHandler.sync(self) switch (try getInterpreter().adaptivePredict(_input,62,_ctx)) { case 1: setState(705) try probConstraints() break default: break } setState(709) try _errHandler.sync(self) _la = try _input.LA(1) if (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(708) try metricSpec() } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class ProblemDeclContext: ParserRuleContext { open func NAME() -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_problemDecl } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterProblemDecl(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitProblemDecl(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitProblemDecl(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitProblemDecl(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func problemDecl() throws -> ProblemDeclContext { var _localctx: ProblemDeclContext = ProblemDeclContext(_ctx, getState()) try enterRule(_localctx, 112, PddlParser.RULE_problemDecl) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(711) try match(PddlParser.Tokens.T__0.rawValue) setState(712) try match(PddlParser.Tokens.T__48.rawValue) setState(713) try match(PddlParser.Tokens.NAME.rawValue) setState(714) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class ProblemDomainContext: ParserRuleContext { open func NAME() -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_problemDomain } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterProblemDomain(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitProblemDomain(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitProblemDomain(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitProblemDomain(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func problemDomain() throws -> ProblemDomainContext { var _localctx: ProblemDomainContext = ProblemDomainContext(_ctx, getState()) try enterRule(_localctx, 114, PddlParser.RULE_problemDomain) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(716) try match(PddlParser.Tokens.T__0.rawValue) setState(717) try match(PddlParser.Tokens.T__49.rawValue) setState(718) try match(PddlParser.Tokens.NAME.rawValue) setState(719) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class ObjectDeclContext: ParserRuleContext { open func typedNameList() -> TypedNameListContext? { return getRuleContext(TypedNameListContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_objectDecl } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterObjectDecl(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitObjectDecl(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitObjectDecl(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitObjectDecl(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func objectDecl() throws -> ObjectDeclContext { var _localctx: ObjectDeclContext = ObjectDeclContext(_ctx, getState()) try enterRule(_localctx, 116, PddlParser.RULE_objectDecl) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(721) try match(PddlParser.Tokens.T__0.rawValue) setState(722) try match(PddlParser.Tokens.T__50.rawValue) setState(723) try typedNameList() setState(724) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class InitContext: ParserRuleContext { open func initEl() -> [InitElContext] { return getRuleContexts(InitElContext.self) } open func initEl(_ i: Int) -> InitElContext? { return getRuleContext(InitElContext.self, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_init } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterInit(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitInit(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitInit(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitInit(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func init() throws -> InitContext { var _localctx: InitContext = InitContext(_ctx, getState()) try enterRule(_localctx, 118, PddlParser.RULE_init) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(726) try match(PddlParser.Tokens.T__0.rawValue) setState(727) try match(PddlParser.Tokens.T__51.rawValue) setState(731) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(728) try initEl() setState(733) try _errHandler.sync(self) _la = try _input.LA(1) } setState(734) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class InitElContext: ParserRuleContext { open func nameLiteral() -> NameLiteralContext? { return getRuleContext(NameLiteralContext.self, 0) } open func fHead() -> FHeadContext? { return getRuleContext(FHeadContext.self, 0) } open func NUMBER() -> TerminalNode? { return getToken(PddlParser.Tokens.NUMBER.rawValue, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_initEl } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterInitEl(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitInitEl(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitInitEl(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitInitEl(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func initEl() throws -> InitElContext { var _localctx: InitElContext = InitElContext(_ctx, getState()) try enterRule(_localctx, 120, PddlParser.RULE_initEl) defer { try! exitRule() } do { setState(749) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,65, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(736) try nameLiteral() break case 2: try enterOuterAlt(_localctx, 2) setState(737) try match(PddlParser.Tokens.T__0.rawValue) setState(738) try match(PddlParser.Tokens.T__39.rawValue) setState(739) try fHead() setState(740) try match(PddlParser.Tokens.NUMBER.rawValue) setState(741) try match(PddlParser.Tokens.T__2.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(743) try match(PddlParser.Tokens.T__0.rawValue) setState(744) try match(PddlParser.Tokens.T__27.rawValue) setState(745) try match(PddlParser.Tokens.NUMBER.rawValue) setState(746) try nameLiteral() setState(747) try match(PddlParser.Tokens.T__2.rawValue) break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class NameLiteralContext: ParserRuleContext { open func atomicNameFormula() -> AtomicNameFormulaContext? { return getRuleContext(AtomicNameFormulaContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_nameLiteral } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterNameLiteral(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitNameLiteral(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitNameLiteral(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitNameLiteral(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func nameLiteral() throws -> NameLiteralContext { var _localctx: NameLiteralContext = NameLiteralContext(_ctx, getState()) try enterRule(_localctx, 122, PddlParser.RULE_nameLiteral) defer { try! exitRule() } do { setState(757) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,66, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(751) try atomicNameFormula() break case 2: try enterOuterAlt(_localctx, 2) setState(752) try match(PddlParser.Tokens.T__0.rawValue) setState(753) try match(PddlParser.Tokens.T__19.rawValue) setState(754) try atomicNameFormula() setState(755) try match(PddlParser.Tokens.T__2.rawValue) break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class AtomicNameFormulaContext: ParserRuleContext { open func predicate() -> PredicateContext? { return getRuleContext(PredicateContext.self, 0) } open func NAME() -> [TerminalNode] { return getTokens(PddlParser.Tokens.NAME.rawValue) } open func NAME(_ i:Int) -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_atomicNameFormula } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterAtomicNameFormula(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitAtomicNameFormula(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitAtomicNameFormula(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitAtomicNameFormula(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func atomicNameFormula() throws -> AtomicNameFormulaContext { var _localctx: AtomicNameFormulaContext = AtomicNameFormulaContext(_ctx, getState()) try enterRule(_localctx, 124, PddlParser.RULE_atomicNameFormula) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(759) try match(PddlParser.Tokens.T__0.rawValue) setState(760) try predicate() setState(764) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.NAME.rawValue return testSet }()) { setState(761) try match(PddlParser.Tokens.NAME.rawValue) setState(766) try _errHandler.sync(self) _la = try _input.LA(1) } setState(767) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class GoalContext: ParserRuleContext { open func goalDesc() -> GoalDescContext? { return getRuleContext(GoalDescContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_goal } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterGoal(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitGoal(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitGoal(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitGoal(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func goal() throws -> GoalContext { var _localctx: GoalContext = GoalContext(_ctx, getState()) try enterRule(_localctx, 126, PddlParser.RULE_goal) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(769) try match(PddlParser.Tokens.T__0.rawValue) setState(770) try match(PddlParser.Tokens.T__52.rawValue) setState(771) try goalDesc() setState(772) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class ProbConstraintsContext: ParserRuleContext { open func prefConGD() -> PrefConGDContext? { return getRuleContext(PrefConGDContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_probConstraints } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterProbConstraints(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitProbConstraints(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitProbConstraints(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitProbConstraints(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func probConstraints() throws -> ProbConstraintsContext { var _localctx: ProbConstraintsContext = ProbConstraintsContext(_ctx, getState()) try enterRule(_localctx, 128, PddlParser.RULE_probConstraints) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(774) try match(PddlParser.Tokens.T__0.rawValue) setState(775) try match(PddlParser.Tokens.T__12.rawValue) setState(776) try prefConGD() setState(777) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class PrefConGDContext: ParserRuleContext { open func prefConGD() -> [PrefConGDContext] { return getRuleContexts(PrefConGDContext.self) } open func prefConGD(_ i: Int) -> PrefConGDContext? { return getRuleContext(PrefConGDContext.self, i) } open func typedVariableList() -> TypedVariableListContext? { return getRuleContext(TypedVariableListContext.self, 0) } open func conGD() -> ConGDContext? { return getRuleContext(ConGDContext.self, 0) } open func NAME() -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_prefConGD } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterPrefConGD(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitPrefConGD(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitPrefConGD(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitPrefConGD(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func prefConGD() throws -> PrefConGDContext { var _localctx: PrefConGDContext = PrefConGDContext(_ctx, getState()) try enterRule(_localctx, 130, PddlParser.RULE_prefConGD) var _la: Int = 0 defer { try! exitRule() } do { setState(805) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,70, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(779) try match(PddlParser.Tokens.T__0.rawValue) setState(780) try match(PddlParser.Tokens.T__17.rawValue) setState(784) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(781) try prefConGD() setState(786) try _errHandler.sync(self) _la = try _input.LA(1) } setState(787) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(788) try match(PddlParser.Tokens.T__0.rawValue) setState(789) try match(PddlParser.Tokens.T__22.rawValue) setState(790) try match(PddlParser.Tokens.T__0.rawValue) setState(791) try typedVariableList() setState(792) try match(PddlParser.Tokens.T__2.rawValue) setState(793) try prefConGD() setState(794) try match(PddlParser.Tokens.T__2.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(796) try match(PddlParser.Tokens.T__0.rawValue) setState(797) try match(PddlParser.Tokens.T__26.rawValue) setState(799) try _errHandler.sync(self) _la = try _input.LA(1) if (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.NAME.rawValue return testSet }()) { setState(798) try match(PddlParser.Tokens.NAME.rawValue) } setState(801) try conGD() setState(802) try match(PddlParser.Tokens.T__2.rawValue) break case 4: try enterOuterAlt(_localctx, 4) setState(804) try conGD() break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class MetricSpecContext: ParserRuleContext { open func optimization() -> OptimizationContext? { return getRuleContext(OptimizationContext.self, 0) } open func metricFExp() -> MetricFExpContext? { return getRuleContext(MetricFExpContext.self, 0) } override open func getRuleIndex() -> Int { return PddlParser.RULE_metricSpec } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterMetricSpec(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitMetricSpec(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitMetricSpec(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitMetricSpec(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func metricSpec() throws -> MetricSpecContext { var _localctx: MetricSpecContext = MetricSpecContext(_ctx, getState()) try enterRule(_localctx, 132, PddlParser.RULE_metricSpec) defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(807) try match(PddlParser.Tokens.T__0.rawValue) setState(808) try match(PddlParser.Tokens.T__53.rawValue) setState(809) try optimization() setState(810) try metricFExp() setState(811) try match(PddlParser.Tokens.T__2.rawValue) } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class OptimizationContext: ParserRuleContext { override open func getRuleIndex() -> Int { return PddlParser.RULE_optimization } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterOptimization(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitOptimization(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitOptimization(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitOptimization(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func optimization() throws -> OptimizationContext { var _localctx: OptimizationContext = OptimizationContext(_ctx, getState()) try enterRule(_localctx, 134, PddlParser.RULE_optimization) var _la: Int = 0 defer { try! exitRule() } do { try enterOuterAlt(_localctx, 1) setState(813) _la = try _input.LA(1) if (!(//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__54.rawValue || _la == PddlParser.Tokens.T__55.rawValue return testSet }())) { try _errHandler.recoverInline(self) } else { _errHandler.reportMatch(self) try consume() } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class MetricFExpContext: ParserRuleContext { open func binaryOp() -> BinaryOpContext? { return getRuleContext(BinaryOpContext.self, 0) } open func metricFExp() -> [MetricFExpContext] { return getRuleContexts(MetricFExpContext.self) } open func metricFExp(_ i: Int) -> MetricFExpContext? { return getRuleContext(MetricFExpContext.self, i) } open func NUMBER() -> TerminalNode? { return getToken(PddlParser.Tokens.NUMBER.rawValue, 0) } open func functionSymbol() -> FunctionSymbolContext? { return getRuleContext(FunctionSymbolContext.self, 0) } open func NAME() -> [TerminalNode] { return getTokens(PddlParser.Tokens.NAME.rawValue) } open func NAME(_ i:Int) -> TerminalNode? { return getToken(PddlParser.Tokens.NAME.rawValue, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_metricFExp } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterMetricFExp(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitMetricFExp(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitMetricFExp(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitMetricFExp(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func metricFExp() throws -> MetricFExpContext { var _localctx: MetricFExpContext = MetricFExpContext(_ctx, getState()) try enterRule(_localctx, 136, PddlParser.RULE_metricFExp) var _la: Int = 0 defer { try! exitRule() } do { setState(853) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,73, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(815) try match(PddlParser.Tokens.T__0.rawValue) setState(816) try binaryOp() setState(817) try metricFExp() setState(818) try metricFExp() setState(819) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(821) try match(PddlParser.Tokens.T__0.rawValue) setState(822) _la = try _input.LA(1) if (!(//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__34.rawValue || _la == PddlParser.Tokens.T__36.rawValue return testSet }())) { try _errHandler.recoverInline(self) } else { _errHandler.reportMatch(self) try consume() } setState(823) try metricFExp() setState(825) try _errHandler.sync(self) _la = try _input.LA(1) repeat { setState(824) try metricFExp() setState(827); try _errHandler.sync(self) _la = try _input.LA(1) } while (//closure { () -> Bool in var testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue || _la == PddlParser.Tokens.T__56.rawValue testSet = testSet || _la == PddlParser.Tokens.NAME.rawValue || _la == PddlParser.Tokens.NUMBER.rawValue return testSet }()) setState(829) try match(PddlParser.Tokens.T__2.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(831) try match(PddlParser.Tokens.T__0.rawValue) setState(832) try match(PddlParser.Tokens.T__6.rawValue) setState(833) try metricFExp() setState(834) try match(PddlParser.Tokens.T__2.rawValue) break case 4: try enterOuterAlt(_localctx, 4) setState(836) try match(PddlParser.Tokens.NUMBER.rawValue) break case 5: try enterOuterAlt(_localctx, 5) setState(837) try match(PddlParser.Tokens.T__0.rawValue) setState(838) try functionSymbol() setState(842) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.NAME.rawValue return testSet }()) { setState(839) try match(PddlParser.Tokens.NAME.rawValue) setState(844) try _errHandler.sync(self) _la = try _input.LA(1) } setState(845) try match(PddlParser.Tokens.T__2.rawValue) break case 6: try enterOuterAlt(_localctx, 6) setState(847) try functionSymbol() break case 7: try enterOuterAlt(_localctx, 7) setState(848) try match(PddlParser.Tokens.T__56.rawValue) break case 8: try enterOuterAlt(_localctx, 8) setState(849) try match(PddlParser.Tokens.T__0.rawValue) setState(850) try match(PddlParser.Tokens.T__57.rawValue) setState(851) try match(PddlParser.Tokens.NAME.rawValue) setState(852) try match(PddlParser.Tokens.T__2.rawValue) break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public class ConGDContext: ParserRuleContext { open func conGD() -> [ConGDContext] { return getRuleContexts(ConGDContext.self) } open func conGD(_ i: Int) -> ConGDContext? { return getRuleContext(ConGDContext.self, i) } open func typedVariableList() -> TypedVariableListContext? { return getRuleContext(TypedVariableListContext.self, 0) } open func goalDesc() -> [GoalDescContext] { return getRuleContexts(GoalDescContext.self) } open func goalDesc(_ i: Int) -> GoalDescContext? { return getRuleContext(GoalDescContext.self, i) } open func NUMBER() -> [TerminalNode] { return getTokens(PddlParser.Tokens.NUMBER.rawValue) } open func NUMBER(_ i:Int) -> TerminalNode? { return getToken(PddlParser.Tokens.NUMBER.rawValue, i) } override open func getRuleIndex() -> Int { return PddlParser.RULE_conGD } override open func enterRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.enterConGD(self) } } override open func exitRule(_ listener: ParseTreeListener) { if let listener = listener as? PddlListener { listener.exitConGD(self) } } override open func accept<T>(_ visitor: ParseTreeVisitor<T>) -> T? { if let visitor = visitor as? PddlVisitor { return visitor.visitConGD(self) } else if let visitor = visitor as? PddlBaseVisitor { return visitor.visitConGD(self) } else { return visitor.visitChildren(self) } } } @discardableResult open func conGD() throws -> ConGDContext { var _localctx: ConGDContext = ConGDContext(_ctx, getState()) try enterRule(_localctx, 138, PddlParser.RULE_conGD) var _la: Int = 0 defer { try! exitRule() } do { setState(931) try _errHandler.sync(self) switch(try getInterpreter().adaptivePredict(_input,75, _ctx)) { case 1: try enterOuterAlt(_localctx, 1) setState(855) try match(PddlParser.Tokens.T__0.rawValue) setState(856) try match(PddlParser.Tokens.T__17.rawValue) setState(860) try _errHandler.sync(self) _la = try _input.LA(1) while (//closure { () -> Bool in let testSet: Bool = _la == PddlParser.Tokens.T__0.rawValue return testSet }()) { setState(857) try conGD() setState(862) try _errHandler.sync(self) _la = try _input.LA(1) } setState(863) try match(PddlParser.Tokens.T__2.rawValue) break case 2: try enterOuterAlt(_localctx, 2) setState(864) try match(PddlParser.Tokens.T__0.rawValue) setState(865) try match(PddlParser.Tokens.T__22.rawValue) setState(866) try match(PddlParser.Tokens.T__0.rawValue) setState(867) try typedVariableList() setState(868) try match(PddlParser.Tokens.T__2.rawValue) setState(869) try conGD() setState(870) try match(PddlParser.Tokens.T__2.rawValue) break case 3: try enterOuterAlt(_localctx, 3) setState(872) try match(PddlParser.Tokens.T__0.rawValue) setState(873) try match(PddlParser.Tokens.T__27.rawValue) setState(874) try match(PddlParser.Tokens.T__30.rawValue) setState(875) try goalDesc() setState(876) try match(PddlParser.Tokens.T__2.rawValue) break case 4: try enterOuterAlt(_localctx, 4) setState(878) try match(PddlParser.Tokens.T__0.rawValue) setState(879) try match(PddlParser.Tokens.T__58.rawValue) setState(880) try goalDesc() setState(881) try match(PddlParser.Tokens.T__2.rawValue) break case 5: try enterOuterAlt(_localctx, 5) setState(883) try match(PddlParser.Tokens.T__0.rawValue) setState(884) try match(PddlParser.Tokens.T__59.rawValue) setState(885) try goalDesc() setState(886) try match(PddlParser.Tokens.T__2.rawValue) break case 6: try enterOuterAlt(_localctx, 6) setState(888) try match(PddlParser.Tokens.T__0.rawValue) setState(889) try match(PddlParser.Tokens.T__60.rawValue) setState(890) try match(PddlParser.Tokens.NUMBER.rawValue) setState(891) try goalDesc() setState(892) try match(PddlParser.Tokens.T__2.rawValue) break case 7: try enterOuterAlt(_localctx, 7) setState(894) try match(PddlParser.Tokens.T__0.rawValue) setState(895) try match(PddlParser.Tokens.T__61.rawValue) setState(896) try goalDesc() setState(897) try match(PddlParser.Tokens.T__2.rawValue) break case 8: try enterOuterAlt(_localctx, 8) setState(899) try match(PddlParser.Tokens.T__0.rawValue) setState(900) try match(PddlParser.Tokens.T__62.rawValue) setState(901) try goalDesc() setState(902) try goalDesc() setState(903) try match(PddlParser.Tokens.T__2.rawValue) break case 9: try enterOuterAlt(_localctx, 9) setState(905) try match(PddlParser.Tokens.T__0.rawValue) setState(906) try match(PddlParser.Tokens.T__63.rawValue) setState(907) try goalDesc() setState(908) try goalDesc() setState(909) try match(PddlParser.Tokens.T__2.rawValue) break case 10: try enterOuterAlt(_localctx, 10) setState(911) try match(PddlParser.Tokens.T__0.rawValue) setState(912) try match(PddlParser.Tokens.T__64.rawValue) setState(913) try match(PddlParser.Tokens.NUMBER.rawValue) setState(914) try goalDesc() setState(915) try goalDesc() setState(916) try match(PddlParser.Tokens.T__2.rawValue) break case 11: try enterOuterAlt(_localctx, 11) setState(918) try match(PddlParser.Tokens.T__0.rawValue) setState(919) try match(PddlParser.Tokens.T__65.rawValue) setState(920) try match(PddlParser.Tokens.NUMBER.rawValue) setState(921) try match(PddlParser.Tokens.NUMBER.rawValue) setState(922) try goalDesc() setState(923) try match(PddlParser.Tokens.T__2.rawValue) break case 12: try enterOuterAlt(_localctx, 12) setState(925) try match(PddlParser.Tokens.T__0.rawValue) setState(926) try match(PddlParser.Tokens.T__66.rawValue) setState(927) try match(PddlParser.Tokens.NUMBER.rawValue) setState(928) try goalDesc() setState(929) try match(PddlParser.Tokens.T__2.rawValue) break default: break } } catch ANTLRException.recognition(let re) { _localctx.exception = re _errHandler.reportError(self, re) try _errHandler.recover(self, re) } return _localctx } public static let _serializedATN = PddlParserATN().jsonString public static let _ATN = ATNDeserializer().deserializeFromJson(_serializedATN) }
[ -1 ]
2e73ecd3b9991703c16f401d55b2ad44ba7c66dd
b78ccd466b16668c8937ce9d95b735372a94887f
/2nd_Seminar/iOS_SecondWeek_Seminar/ViewController.swift
776a5e3a8786abb24f41d301a89b88bfb7eba012
[]
no_license
sophryu99/RyuSeHwa
51bccb4e89255503751f35d7c5923ea1d36310be
1afe5c7730b846a0cbee2b8872bc68ebe4b52eb0
refs/heads/master
2022-11-28T08:45:27.659708
2020-08-12T10:12:50
2020-08-12T10:12:50
null
0
0
null
null
null
null
UTF-8
Swift
false
false
344
swift
// // ViewController.swift // iOS_SecondWeek_Seminar // // Created by Sehwa Ryu on 25/04/2020. // Copyright © 2020 Sehwa Ryu. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } }
[ 245024, 327555, 247652, 247653, 247655, 146645, 188950 ]
41034e030d7b86829c2ff6a635058539441a6b82
dc0e37ec7118da6b092c30f5977c85b102c186a3
/Advent/Sources/AOC2015/Day 2/2015-Day2.swift
f9dd38945b34da19d30f970706e36d0f6b050623
[]
no_license
nanoxd/EliteFour
ade7cc21146c5fae10ce7ebb8447f52ce829f66e
7806513a0d69bcfcd4c9207a35035316e56deaf5
refs/heads/master
2020-09-20T09:13:35.531430
2019-12-10T14:44:22
2019-12-10T14:44:22
224,433,717
0
0
null
2019-12-10T14:44:23
2019-11-27T13:09:20
Swift
UTF-8
Swift
false
false
2,516
swift
final class Day2: Day { private let dimensionRegex = Regex(pattern: #"(\d+)x(\d+)x(\d+)"#) private lazy var dimensions: [Dimensions] = { input.lines .compactMap { (line: Line) -> RegexMatch? in dimensionRegex.match(line.raw) } .map { dimensionMatch in Dimensions( length: dimensionMatch.int(1) ?? 0, width: dimensionMatch.int(2) ?? 0, height: dimensionMatch.int(3) ?? 0 ) } }() override func part1() -> String { let totalWrappingPaperRequired = dimensions .reduce(into: 0) { totalWrappingPaper, dimension in let wrappingPaperRequired = requiredWrappingPaper(dimensions: dimension) totalWrappingPaper += wrappingPaperRequired.wrappingPaper + wrappingPaperRequired.slack } return "\(totalWrappingPaperRequired)" } override func part2() -> String { let totalRibbonNeeded = dimensions .reduce(into: 0) { totalRibbon, dimension in let ribbonNeeded = ribbonSizeRequired(dimensions: dimension) totalRibbon += ribbonNeeded.ribbonForPresent + ribbonNeeded.ribbonForBow } return "\(totalRibbonNeeded)" } func requiredWrappingPaper(dimensions: Dimensions) -> (wrappingPaper: Int, slack: Int) { let areaForLengthWidth = dimensions.length * dimensions.width let areaForWidthHeight = dimensions.width * dimensions.height let areaForHeightLength = dimensions.height * dimensions.length let slack = min(areaForLengthWidth, areaForWidthHeight, areaForHeightLength) let wrappingPaper = [areaForLengthWidth, areaForWidthHeight, areaForHeightLength] .map { $0 * 2 } .sum() return (wrappingPaper: wrappingPaper, slack: slack) } func ribbonSizeRequired(dimensions: Dimensions) -> (ribbonForPresent: Int, ribbonForBow: Int) { let ribbonForPresent = [dimensions.length, dimensions.width, dimensions.height] .lazy .sorted() .prefix(2) .map { $0 + $0 } .sum() return ( ribbonForPresent: ribbonForPresent, ribbonForBow: dimensions.cubicVolume ) } } struct Dimensions { let length: Int let width: Int let height: Int var cubicVolume: Int { length * width * height } }
[ -1 ]
18d91ed52ccc2c3a0dd92ac76083c5fedd184711
cfc37350b25183fdce824964de941d2c3e442372
/Desafio_PicPay/Model/decoderPostData.swift
ee8ed9dca4ed0ce4bdfc7fe58fcc25271a3ec5da
[]
no_license
DenisJanoto/picpay_clone
dde8da9ad9a96abe9b9877f7d7836707c0d23c6e
5b3f54dc0ab6eb30408eb97ed489c9aff5d7f1e9
refs/heads/master
2022-11-18T19:41:25.828135
2020-07-07T13:24:22
2020-07-07T13:24:22
266,641,537
1
0
null
null
null
null
UTF-8
Swift
false
false
751
swift
// // paymentModel.swift // Desafio_PicPay // // Created by Denis Janoto on 31/05/20. // Copyright © 2020 Denis Janoto. All rights reserved. // /** response htttp post from api server is encoded here */ import Foundation struct decoderPostData: Codable { let transaction: Transaction? } struct Transaction: Codable { let id, timestamp: Int? let value: Double? let destinationUser: UserModel? let success: Bool? let status: String? enum CodingKeys: String, CodingKey { case id, timestamp, value case destinationUser = "destination_user" case success, status } } struct UserModel: Codable { let id: Int? let name: String? let img: String? let username: String? }
[ -1 ]
b3770b8254f9267f61580eda717b0d8c81921774
2ee3d279e246c78324a28fb936d7f36ae5aedc66
/SortingArm/SortingArmTests/SortingArmTests.swift
99d938d4b394cf9f1f6620b5b50eaf3fc6437e96
[]
no_license
swaffzor/SortingArm
906d41d1a32313d778dd639d77799fbc17673795
429c032174e40435fd76d3866b115e2f2d70d2aa
refs/heads/master
2021-01-18T16:09:30.766740
2017-04-07T03:36:42
2017-04-07T03:36:42
86,716,464
0
0
null
null
null
null
UTF-8
Swift
false
false
993
swift
// // SortingArmTests.swift // SortingArmTests // // Created by Jeremy Swafford on 3/30/17. // Copyright © 2017 NCSU ECE Project 14. All rights reserved. // import XCTest @testable import SortingArm class SortingArmTests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is called before the invocation of each test method in the class. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testExample() { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testPerformanceExample() { // This is an example of a performance test case. self.measure { // Put the code you want to measure the time of here. } } }
[ 360462, 98333, 278558, 16419, 229413, 204840, 278570, 344107, 155694, 253999, 229430, 319542, 163896, 180280, 213052, 376894, 352326, 311372, 196691, 278615, 385116, 237663, 254048, 319591, 221290, 278634, 319598, 352368, 204916, 131191, 237689, 278655, 311438, 278677, 196760, 426138, 278685, 311458, 278691, 49316, 278699, 32941, 278704, 377009, 278708, 131256, 295098, 139479, 254170, 229597, 311519, 205035, 286958, 327929, 344313, 147717, 368905, 278797, 180493, 254226, 368916, 262421, 377114, 237856, 237857, 278816, 311597, 98610, 180535, 336183, 278842, 287041, 319821, 254286, 344401, 377169, 368981, 155990, 368984, 106847, 98657, 270701, 246127, 270706, 139640, 246136, 246137, 311685, 106888, 385417, 385422, 213403, 385454, 377264, 311738, 33211, 278970, 319930, 336317, 336320, 311745, 278978, 254406, 188871, 278989, 278993, 278999, 328152, 369116, 287198, 279008, 279013, 279018, 311786, 319981, 279029, 254456, 279032, 377338, 377343, 279039, 254465, 287241, 279050, 139792, 303636, 393751, 279065, 377376, 180771, 377386, 197167, 385588, 352829, 115270, 385615, 426576, 369235, 295519, 139872, 66150, 344680, 279146, 295536, 287346, 139892, 287352, 344696, 279164, 189057, 311941, 336518, 311945, 369289, 344715, 279177, 311949, 287374, 377489, 311954, 352917, 230040, 271000, 377497, 303771, 377500, 205471, 344738, 139939, 279206, 295590, 287404, 205487, 295599, 303793, 336564, 164533, 287417, 287422, 66242, 377539, 164560, 385747, 279252, 361176, 418520, 287452, 295652, 279269, 369385, 279280, 312052, 172792, 344827, 221948, 205568, 295682, 197386, 434957, 426774, 197399, 426775, 336671, 344865, 197411, 279336, 295724, 312108, 197422, 353070, 164656, 295729, 353069, 328499, 353078, 197431, 230199, 353079, 336702, 295746, 353094, 353095, 353109, 377686, 230234, 189275, 435039, 295776, 279392, 303972, 385893, 230248, 246641, 246643, 295798, 246648, 361337, 279417, 254850, 369538, 287622, 295824, 189348, 353195, 140204, 377772, 353197, 304051, 230332, 377790, 353215, 353216, 213957, 213960, 345033, 279498, 386006, 418776, 50143, 123881, 304110, 320494, 271350, 295927, 304122, 320507, 328700, 328706, 410627, 320516, 295942, 386056, 353290, 230410, 377869, 320527, 238610, 418837, 140310, 197657, 336929, 189474, 369701, 345132, 238639, 312373, 238651, 377926, 238664, 353367, 156764, 156765, 304222, 279660, 173166, 377972, 353397, 279672, 377983, 402565, 279685, 222343, 386189, 296086, 238743, 296092, 238765, 279728, 238769, 402613, 230588, 279747, 353479, 353481, 402634, 353482, 189652, 189653, 419029, 148696, 296153, 279774, 304351, 304356, 222440, 328940, 279792, 353523, 386294, 386301, 320770, 386306, 279814, 328971, 312587, 353551, 320796, 222494, 304421, 279854, 353584, 345396, 386359, 116026, 378172, 222524, 279875, 312648, 337225, 304456, 230729, 238927, 353616, 296273, 222559, 378209, 230756, 386412, 230765, 296303, 279920, 312689, 296307, 116084, 337281, 148867, 378244, 296329, 296335, 9619, 370071, 279974, 279984, 173491, 304564, 353719, 361927, 296392, 280010, 370123, 148940, 280013, 312782, 222675, 353750, 271843, 280041, 361963, 296433, 321009, 280055, 288249, 230913, 329225, 230921, 296461, 304656, 329232, 370197, 402985, 394794, 230959, 288309, 312889, 288318, 124485, 288326, 288327, 239198, 99938, 312940, 222832, 247416, 337534, 337535, 263809, 288392, 239250, 419478, 345752, 255649, 337591, 296632, 321207, 280251, 280257, 321219, 280267, 403148, 9936, 9937, 370388, 272085, 345814, 280278, 280280, 18138, 345821, 321247, 321249, 345833, 345834, 280300, 67315, 173814, 313081, 124669, 288512, 288516, 280329, 321302, 345879, 116505, 321310, 255776, 247590, 362283, 378668, 280366, 296755, 280372, 321337, 280380, 345919, 436031, 403267, 280390, 345929, 18262, 362327, 370522, 345951, 362337, 345955, 296806, 288619, 288620, 296814, 214895, 313199, 362352, 313203, 124798, 182144, 305026, 67463, 329622, 337815, 124824, 214937, 436131, 354212, 436137, 362417, 124852, 288697, 362431, 214977, 214984, 362443, 247757, 231375, 280541, 329695, 436191, 313319, 337895, 247785, 436205, 296941, 362480, 313339, 43014, 354316, 313357, 182296, 354345, 223274, 124975, 346162, 124984, 288828, 436285, 288833, 288834, 436292, 403525, 436301, 338001, 354385, 338003, 280661, 329814, 338007, 354393, 280675, 280677, 43110, 321637, 313447, 436329, 288879, 280694, 215164, 313469, 215166, 280712, 215178, 346271, 436383, 362659, 239793, 125109, 182456, 280762, 223419, 379071, 149703, 338119, 346314, 321745, 387296, 280802, 379106, 338150, 346346, 321772, 125169, 338164, 436470, 125183, 149760, 411906, 125188, 313608, 125193, 125198, 272658, 125203, 125208, 305440, 125217, 338218, 321840, 379186, 125235, 280887, 125240, 321860, 182598, 289110, 215385, 272729, 379225, 321894, 280939, 354676, 199029, 436608, 362881, 240002, 436611, 248194, 395659, 395661, 108944, 240016, 190871, 149916, 420253, 141728, 289189, 108972, 272813, 338356, 436661, 289232, 281040, 256477, 281072, 174593, 420369, 289304, 207393, 182817, 289332, 174648, 338489, 338490, 322120, 281166, 297560, 354911, 436832, 436834, 191082, 313966, 420463, 281199, 346737, 313971, 346740, 420471, 330379, 330387, 117396, 346772, 330388, 264856, 289434, 346779, 338613, 314040, 158394, 363211, 363230, 289502, 264928, 338662, 330474, 346858, 289518, 199414, 35583, 363263, 322313, 117517, 322319, 166676, 207640, 289576, 191283, 273207, 289598, 420677, 281427, 281433, 330609, 207732, 158593, 240518, 224145, 355217, 256922, 289690, 420773, 289703, 363438, 347055, 289727, 273344, 330689, 363458, 379844, 19399, 338899, 248796, 248797, 207838, 347103, 314342, 289774, 183279, 347123, 314355, 240630, 314362, 257024, 330754, 134150, 330763, 281626, 248872, 322612, 314448, 339030, 314467, 281700, 257125, 322663, 273515, 207979, 404593, 363641, 363644, 150657, 248961, 330888, 363669, 339100, 380061, 429214, 199839, 339102, 265379, 249002, 306346, 3246, 421048, 339130, 265412, 290000, 298208, 298212, 298213, 330984, 298221, 298228, 216315, 208124, 363771, 388349, 437505, 322824, 257305, 126237, 339234, 372009, 412971, 298291, 306494, 216386, 224586, 372043, 331090, 314710, 372054, 159066, 314720, 281957, 380271, 314739, 208244, 249204, 290173, 306559, 314751, 298374, 314758, 314760, 142729, 388487, 314766, 306579, 282007, 290207, 314783, 314789, 282022, 314791, 396711, 396712, 282024, 241066, 380337, 380338, 150965, 380357, 339398, 306639, 413137, 429542, 191981, 290301, 282114, 372227, 323080, 323087, 175639, 388632, 396827, 134686, 282146, 306723, 347694, 290358, 265798, 265804, 396882, 290390, 44635, 396895, 323172, 282213, 323178, 224883, 314998, 323196, 175741, 339584, 224901, 282245, 282246, 290443, 323217, 282259, 298654, 323236, 298661, 290471, 282280, 224946, 110268, 224958, 282303, 274115, 306890, 241361, 298712, 298720, 12010, 282348, 282358, 175873, 339715, 323331, 323332, 339720, 372496, 323346, 249626, 282400, 339745, 241441, 257830, 421672, 282417, 282427, 282434, 307011, 315202, 282438, 216918, 241495, 241528, 339841, 282504, 315273, 315274, 372626, 380821, 282518, 282519, 118685, 298909, 323507, 290745, 274371, 151497, 372701, 298980, 380908, 290811, 282633, 241692, 102437, 315432, 102445, 233517, 176175, 241716, 225351, 315465, 315476, 307289, 200794, 315487, 356447, 307299, 438377, 315498, 299121, 233589, 266357, 422019, 241808, 381073, 323729, 233636, 299174, 405687, 184505, 299198, 258239, 389313, 299203, 299209, 372941, 282831, 266449, 356576, 176362, 307435, 438511, 381172, 184570, 184575, 381208, 299293, 151839, 233762, 217380, 151847, 282919, 332083, 332085, 332089, 315706, 282939, 241986, 438596, 332101, 323913, 348492, 323916, 323920, 250192, 348500, 168281, 332123, 332127, 323935, 242023, 242029, 160110, 242033, 291192, 291198, 340357, 225670, 242058, 373134, 291224, 242078, 283038, 61857, 315810, 315811, 381347, 61859, 340398, 299441, 61873, 61880, 283064, 291265, 127427, 127428, 283075, 324039, 373197, 176601, 242139, 160225, 242148, 291311, 233978, 291333, 340490, 258581, 291358, 283182, 283184, 234036, 315960, 348732, 242237, 70209, 348742, 70215, 348749, 381517, 332378, 201308, 111208, 184940, 373358, 389745, 209530, 373375, 152195, 348806, 184973, 316049, 111253, 316053, 111258, 111259, 176808, 299699, 299700, 422596, 422599, 291530, 225995, 242386, 422617, 422626, 234217, 299759, 234234, 299776, 291585, 430849, 291592, 62220, 422673, 430865, 291604, 422680, 152365, 422703, 422709, 152374, 234294, 242485, 160571, 430910, 160575, 160580, 299849, 283467, 381773, 201551, 242529, 349026, 357218, 275303, 308076, 242541, 209785, 177019, 185211, 308092, 398206, 291712, 381829, 316298, 308107, 349072, 308112, 209817, 324506, 324507, 390045, 185250, 324517, 185254, 283558, 373687, 349121, 373706, 316364, 340955, 340961, 324586, 340974, 316405, 349175, 201720, 127992, 357379, 324625, 234514, 308243, 316437, 201755, 300068, 357414, 300084, 324666, 308287, 21569, 218186, 300111, 341073, 439384, 234587, 250981, 300135, 316520, 300136, 357486, 316526, 144496, 300146, 300150, 291959, 300151, 160891, 341115, 300158, 349316, 349318, 234638, 373903, 169104, 177296, 308372, 119962, 300187, 300188, 234663, 300201, 300202, 373945, 259268, 283847, 62665, 283852, 283853, 259280, 316627, 333011, 357595, 234733, 234742, 128251, 316669, 234755, 439562, 292107, 242954, 414990, 251153, 177428, 349462, 382258, 300343, 382269, 193859, 177484, 406861, 259406, 234831, 251213, 120148, 283991, 374109, 292195, 333160, 284014, 243056, 316787, 111993, 357762, 112017, 234898, 259475, 275859, 112018, 357786, 251298, 333220, 316842, 374191, 210358, 284089, 292283, 415171, 292292, 300487, 300489, 284107, 366037, 210390, 210391, 210393, 144867, 54765, 251378, 308723, 300536, 300542, 210433, 366083, 259599, 316946, 308756, 398869, 374296, 374299, 308764, 349726, 431649, 349741, 169518, 431663, 194110, 235070, 349763, 292423, 218696, 292425, 243274, 128587, 333388, 333393, 300630, 128599, 235095, 333408, 300644, 374372, 317032, 415338, 243307, 54893, 325231, 366203, 325245, 194180, 415375, 153251, 300714, 210603, 415420, 333503, 218819, 259781, 333517, 333520, 333521, 333523, 325346, 153319, 325352, 284401, 325371, 194303, 284429, 243472, 161554, 366360, 284442, 325404, 325410, 341796, 399147, 431916, 300848, 317232, 259899, 325439, 153415, 341836, 415567, 325457, 317269, 341847, 350044, 128862, 300894, 284514, 292712, 325484, 423789, 292720, 325492, 276341, 341879, 317304, 333688, 112509, 194429, 55167, 325503, 333701, 243591, 243597, 325518, 333722, 350109, 292771, 415655, 333735, 284587, 243637, 301008, 153554, 219101, 292836, 292837, 317415, 325619, 432116, 333817, 292858, 415741, 333828, 358410, 399373, 145435, 317467, 292902, 325674, 227370, 129076, 243767, 358456, 309345, 194666, 260207, 432240, 284788, 333940, 292988, 292992, 333955, 227460, 415881, 104587, 235662, 325776, 317587, 284826, 333991, 333992, 284842, 301251, 309444, 194782, 301279, 317664, 243962, 375039, 309503, 375051, 325905, 325912, 211235, 432421, 211238, 358703, 358709, 260418, 6481, 366930, 366929, 6489, 391520, 383332, 383336, 416104, 211326, 317831, 227725, 227726, 252308, 178582, 293274, 317852, 121245, 285090, 375207, 342450, 293303, 293306, 293310, 416197, 129483, 342476, 317901, 326100, 285150, 342498, 358882, 334309, 195045, 391655, 432618, 375276, 293367, 342536, 342553, 416286, 375333, 293419, 244269, 375343, 236081, 23092, 375351, 244281, 301638, 309830, 293448, 55881, 416341, 244310, 416351, 268899, 39530, 301689, 244347, 326287, 375440, 334481, 227990, 318106, 318107, 342682, 318130, 383667, 293556, 342713, 285373, 39614, 318173, 375526, 285415, 342762, 342763, 293612, 154359, 432893, 162561, 285444, 383754, 285458, 310036, 326429, 293664, 326433, 400166, 293672, 318250, 318252, 375609, 293693, 252741, 293711, 244568, 244570, 293730, 351077, 342887, 269178, 400252, 359298, 359299, 260996, 113542, 416646, 228233, 392074, 228234, 56208, 318364, 310176, 310178, 293800, 236461, 326581, 326587, 326601, 359381, 433115, 343005, 130016, 64485, 326635, 203757, 187374, 383983, 318461, 293886, 293893, 433165, 384016, 146448, 433174, 252958, 252980, 203830, 359478, 302139, 359495, 392290, 253029, 228458, 15471, 351344, 187506, 285814, 392318, 187521, 384131, 285828, 302213, 302216, 228491, 228493, 285838, 162961, 326804, 187544, 351390, 302240, 343203, 253099, 253100, 318639, 367799, 113850, 294074, 64700, 302274, 367810, 343234, 244940, 228563, 195808, 310497, 228588, 253167, 302325, 261377, 228609, 245019, 253216, 130338, 130343, 261425, 351537, 286013, 286018, 113987, 146762, 294218, 294219, 318805, 425304, 294243, 163175, 327024, 327025, 327031, 318848, 179587, 253317, 384393, 368011, 318864, 318868, 310692, 245161, 286129, 286132, 228795, 425405, 302529, 302531, 163268, 425418, 302540, 310732, 64975, 327121, 228827, 286172, 310757, 187878, 343542, 343543, 286202, 359930, 228861, 302590, 286205, 228867, 253451, 253452, 359950, 146964, 253463, 286244, 245287, 245292, 286254, 196164, 56902, 179801, 196187, 343647, 286306, 310889, 204397, 138863, 188016, 294529, 229001, 310923, 188048, 425626, 229020, 302754, 245412, 40613, 40614, 40615, 229029, 384695, 319162, 327358, 286399, 212685, 384720, 212688, 302802, 245457, 286423, 278234, 294622, 229088, 278240, 212716, 212717, 360177, 286459, 278272, 319233, 360195, 278291, 294678, 286494, 294700, 409394, 319292, 360252, 360264, 188251, 376669, 245599, 425825, 302946, 425833, 417654, 188292, 253829, 294807, 376732, 294814, 311199, 319392, 294823, 327596, 294843, 188348, 237504, 294850, 384964, 163781, 344013, 212942, 212946, 24532, 294886, 253929, 327661, 311281, 311282 ]
5d79b7a8a150caef73872926197d7a43f6c41137
7b267d883a743a12e57e5a95329b8bd84c8c0245
/Aerobatic Sensors/Controllers/MainController.swift
721de161838790755c5382188171a1a72227b609
[]
no_license
thejbix/Aerobatic-Sensors
863d421ae9af60c47faef59899a872f0071808fb
59a9127ee4301ed44c34365b06a0c3b0217dc5f4
refs/heads/master
2021-09-12T06:44:44.887302
2018-04-14T23:58:03
2018-04-14T23:58:03
112,529,174
0
0
null
null
null
null
UTF-8
Swift
false
false
1,058
swift
// // GameViewController.swift // Aerobatic Sensors // // Created by Jaydon Bixenman on 11/4/17. // Copyright © 2017 thejbix. All rights reserved. // import UIKit import SpriteKit class MainController: UIViewController { var scene:InstrumentScene? = nil var skView: SKView? = nil override func viewDidLoad() { super.viewDidLoad() scene = InstrumentScene(size: view.bounds.size) skView = view as! SKView skView?.showsFPS = true skView?.showsNodeCount = true skView?.ignoresSiblingOrder = true scene?.scaleMode = .resizeFill skView?.presentScene(scene) } override func viewDidDisappear(_ animated: Bool) { super.viewDidDisappear(animated) } override var prefersStatusBarHidden: Bool { return false } @IBAction func swipeRight(_ sender: UISwipeGestureRecognizer) { skView?.scene?.willMove(from: skView!) performSegue(withIdentifier: "MainToSettings", sender: self) } }
[ -1 ]
a05088630224dec9e890b276e26f3481c3389777
2eb2b3f46ceeefe42ffefb24e94ee19d3e7b5d2a
/Fructus/View/StartButtonView.swift
928e17492d59ba1bfa0384c00cef5ee13bad53eb
[]
no_license
Mixorok/Fructus-SwiftUI2.0
bef40f073c36adf062fce54d6a9ed581654e1caf
faad9aaa8b374c34bd80ea8c9d432e62a32a300e
refs/heads/main
2023-05-03T11:20:39.265691
2021-05-16T13:28:51
2021-05-16T13:28:51
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,007
swift
// // StartButtonView.swift // Fructus // // Created by Максим on 15.05.2021. // import SwiftUI struct StartButtonView: View { //MARK: - Properties @AppStorage("isOnboarding") var isOnboarding: Bool? //MARK: - Body var body: some View { Button(action: { isOnboarding = false }, label: { HStack(spacing: 8) { Text("Start") Image(systemName: "arrow.right.circle") .imageScale(.large) } .padding(.horizontal, 16) .padding(.vertical, 10) .background( Capsule().strokeBorder(Color.white, lineWidth: 1.25) ) }) //: Button .accentColor(.white) } } //MARK: - Preview struct StartButtonView_Previews: PreviewProvider { static var previews: some View { StartButtonView() .preferredColorScheme(.dark) .previewLayout(.sizeThatFits) } }
[ 358665, 399340, 376754, 358650, 358686 ]
76f33124f2a0d30f1ecde8bb26612701daa55f2e
ecf415b883799958711c352a4192b5f04ac546ff
/CoreAnimation/Animation Properties/Properties.SpringAnimation.swift
a8a5cc6e51d0968c90a6d714e285170d6cb9d544
[ "MIT" ]
permissive
franklynw/SwiftyCoreAnimation
e7b2ad20dd07816e7134d114541acc8f3be126bf
c9329115caca9c8d9109dac02a3af18b9ae375a0
refs/heads/master
2021-06-19T02:03:20.064143
2019-04-16T11:00:40
2019-04-16T11:00:40
173,759,378
0
0
null
null
null
null
UTF-8
Swift
false
false
1,667
swift
// // Properties.SpringAnimation.swift // CoreAnimation // // Created by Franklyn on 01/03/2019. // Copyright © 2019 Franklyn. All rights reserved. // import UIKit extension Properties { /// Describes the animation's Spring-specific properties /// /// - damping: the animation's damping /// - initialVelocity: the animation's initialVelocity /// - mass: the animation's mass /// - stiffness: the animation's stiffness public enum SpringAnimation: PropertiesApplicableToSpringAnimations, AnimationPropertiesApplying, InternalAnimationPropertiesApplying { public typealias AnimationType = CASpringAnimation /// The animation's damping property case damping(CGFloat) /// The animation's initialVelocity property case initialVelocity(CGFloat) /// The animation's mass property case mass(CGFloat) /// The animation's stiffness property case stiffness(CGFloat) public func apply(to animation: AnimationType) { self.applyProperty(to: animation) } internal func applyProperty(to animation: CAAnimation) { guard let animation = animation as? CASpringAnimation else { return } switch self { case .damping(let damping): animation.damping = damping case .initialVelocity(let initialVelocity): animation.initialVelocity = initialVelocity case .mass(let mass): animation.mass = mass case .stiffness(let stiffness): animation.stiffness = stiffness } } } }
[ -1 ]
7a78c04abe577e823b5a4c395bc0497f4724f263
1d02080704821a7010605df25fecb3527545b901
/Graph-calculator/CalculatorViewController.swift
8f3dba639cc63ae6954c0fda87c7ca5aeef012e3
[]
no_license
luoyu1993/Graph-calculator
8bb3685857de5fff6af0447622ec0cd3a6704061
d808b7b24589bc4784d779016d92bd3c9e30a12b
refs/heads/master
2021-05-12T20:00:32.366684
2017-11-30T22:38:44
2017-11-30T22:38:44
null
0
0
null
null
null
null
UTF-8
Swift
false
false
7,590
swift
// // ViewController.swift // calculator // // Created by Kristina Gelzinyte on 5/19/17. // // import UIKit class CalculatorViewController: UIViewController { //}, UISplitViewControllerDelegate { override func viewDidLoad() { super.viewDidLoad() graphButton.isEnabled = false graphButtonV.isEnabled = false } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) self.navigationController!.setNavigationBarHidden(true, animated: false) // CODE TO LOCK THE VIEW ORIENTATION // AppDelegate.AppUtility.lockOrientation(UIInterfaceOrientationMask.portrait, andRotateTo: UIInterfaceOrientation.portrait) } override func viewWillDisappear(_ animated: Bool) { super.viewWillDisappear(animated) self.navigationController?.setNavigationBarHidden(false, animated: animated) // CODE TO LOCK THE VIEW ORIENTATION // AppDelegate.AppUtility.lockOrientation(UIInterfaceOrientationMask.all, andRotateTo: UIInterfaceOrientation.unknown) } @IBOutlet weak var display: UILabel! @IBOutlet weak var descriptionDisplay: UILabel! @IBOutlet weak var memoryDisplay: UILabel! @IBAction func undoButton(_ sender: UIButton) { if userIsInTheMiddleOfTyping { //undo characters if !(display.text?.characters.isEmpty)! { display.text!.characters.removeLast() if (display.text?.characters.isEmpty)! { display.text! = "0.0" userIsInTheMiddleOfTyping = false } } if (descriptionDisplay.text?.isEmpty)! { descriptionDisplay.text = " " } } else { //undo operations brain.undoPreviousOperation() displayDescription() if let result = brain.evaluate(using: memory.storage).result { displayValue = result } displayDescription() } } @IBAction func allClearButton(_ sender: Any) { brain.clearAll() memory.storage = nil memoryDisplay.text! = " " displayDescription() userIsInTheMiddleOfTyping = false } @IBAction func randomGenerationButton(_ sender: UIButton) { let maxNumber = Double(UInt32.max) let randomNumber = Double(arc4random()) displayValue = randomNumber/maxNumber userIsInTheMiddleOfTyping = true } var userIsInTheMiddleOfTyping = false @IBOutlet weak var graphButtonV: UIButton! @IBOutlet weak var graphButton: UIButton! private func changeGraphButtonStatusToReady() { graphButtonV.isEnabled = true graphButton.isEnabled = true } private func changeGraphButtonStatusToNotReady() { graphButtonV.isEnabled = false graphButton.isEnabled = false } // //typing numbers // @IBAction func touchDigit(_ sender: UIButton) { let digit = sender.currentTitle! if userIsInTheMiddleOfTyping { if !display.text!.contains(".") || digit != "." { let textCurrentlyDisplayed = display.text! display.text! = textCurrentlyDisplayed + digit } } else { display.text! = digit userIsInTheMiddleOfTyping = true } } var displayValue: Double { get { return Double(display.text!)! } set { display.text = String(newValue) } } // //setting/getting memory // var memory = CalculatorMemory() @IBAction func setMemory(_ sender: UIButton) { memory.storage = ["M": displayValue] memoryDisplay.text! = "M → " + String(displayValue) userIsInTheMiddleOfTyping = false if !brain.description.isEmpty { display.text! = String(brain.evaluate(using: memory.storage).result!) } } @IBAction func getMemory(_ sender: UIButton) { brain.setOperand(variable: "M") displayValue = memory.storage?["M"] ?? 0 } @IBAction func setVarX(_ sender: UIButton) { brain.setOperand(variable: "x") displayValue = 0.0 userIsInTheMiddleOfTyping = false displayDescription() } // //using/doing operartion // var brain = CalculatorBrain() @IBAction func mathematicalSymbol(_ sender: UIButton) { //set operand if userIsInTheMiddleOfTyping { brain.setOperand(displayValue) userIsInTheMiddleOfTyping = false } //set operation if let mathematicalSymbol = sender.currentTitle { brain.setOperand(variable: mathematicalSymbol) } //get result if let result = brain.evaluate(using: memory.storage).result { displayValue = result } displayDescription() } //adding elipses or equal sign to the description label func displayDescription() { if brain.evaluate().isPending { descriptionDisplay.text! = brain.description + "..." changeGraphButtonStatusToNotReady() } else { if !brain.description.isEmpty { descriptionDisplay.text! = brain.description + "=" changeGraphButtonStatusToReady() } else { displayValue = 0 descriptionDisplay.text! = "0" changeGraphButtonStatusToNotReady() } } } override func prepare(for segue: UIStoryboardSegue, sender: Any?) { if !brain.evaluate().isPending { if let destinationViewController = (segue.destination.contents as? GraphViewController) { if !brain.description.isEmpty { destinationViewController.navigationItem.title = "f(x) = " + brain.description destinationViewController.calculatorVC = self destinationViewController.yResult = { (xArgument: Double) -> Double in if self.memory.storage != nil { self.memory.storage!["x"] = xArgument } else { self.memory.storage = ["x": xArgument] } let yResult = self.brain.evaluate(using: self.memory.storage).result! return yResult } } } } } // override func awakeFromNib() { // super.awakeFromNib() // self.splitViewController?.delegate = self // } // func splitViewController(_ splitViewController: UISplitViewController, collapseSecondary secondaryViewController: UIViewController, onto primaryViewController: UIViewController) -> Bool { // if primaryViewController.contents == self { // if let gvc = secondaryViewController.contents as? GraphViewController, gvc.graphView == nil { // return true // } // } // return false // } } extension UIViewController { var contents: UIViewController { if let navcon = self as? UINavigationController { return navcon.visibleViewController ?? self } else { return self } } }
[ -1 ]
c5e975eb804837232069f01931df26eb131eaabe
c823a569973778a877e4ba8e4c3bcf159486f9e1
/ComputedVariable.swift
4c6adde2426c8323ec22e719bc35dd08f8accea1
[]
no_license
dung00275/TrickRxSwift
d8b436afdfd0ccb1fb52df7c651e3499948b2809
0122d3fb4de5186158f0602daf2a376dcda767f3
refs/heads/master
2021-01-13T03:47:40.146409
2016-12-23T03:25:53
2016-12-23T03:25:53
77,194,180
0
0
null
null
null
null
UTF-8
Swift
false
false
1,134
swift
// // ComputedVariable.swift // BA3 // // Created by Dung Vu on 12/23/16. // Copyright © 2016 Zinio LLC. All rights reserved. // import Foundation import RxSwift /// Using simliar variable in RXSwift but it can custom behavior public class ComputedVariable<Element> { public typealias E = Element private let _getter: () -> Element private let _setter: (Element) -> Void private let _subject: BehaviorSubject<Element> private var _lock = NSRecursiveLock() public var value: Element { get { _lock.lock(); defer { _lock.unlock() } return _getter() } set(newValue) { _lock.lock() _setter(newValue) _lock.unlock() _subject.on(.next(newValue)) } } public init(getter: @escaping () -> E, setter: @escaping (E) -> Void) { _getter = getter _setter = setter _subject = BehaviorSubject(value: getter()) } public func asObservable() -> Observable<E> { return _subject } deinit { _subject.on(.completed) } }
[ -1 ]
5496c4dc9548071bcbaa2aba1bc06157b46ca1d3
a083436f158ebd057ac51bea2d5d072bc9508d39
/shopViperTest/Modules/Detailed/View/BlurredRoundedView.swift
cbc98c59e08c3b1cab377ff9b5f907c0de2e4732
[]
no_license
EliasGit327/ShopTestViper
05c5676a3416ad42f66714fa3a346e755b242deb
3c36d6821ee9aebd4860d0a3664a1eaacb7aa103
refs/heads/master
2022-02-26T04:40:27.286212
2019-10-03T09:06:33
2019-10-03T09:06:33
212,526,142
0
0
null
null
null
null
UTF-8
Swift
false
false
976
swift
import Foundation import UIKit let lightStyle = UIBlurEffect(style: .light) let customCornerRadius : CGFloat = 8 class BlurredRoundedView: UIView { let effectBackground = UIVisualEffectView(effect: lightStyle) required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) commonInit() } override init(frame: CGRect) { super.init(frame: frame) commonInit() } func commonInit() { initLayer() initEffectView() } func initLayer() { backgroundColor = UIColor.clear layer.cornerRadius = customCornerRadius layer.masksToBounds = false } func initEffectView() { effectBackground.frame = bounds effectBackground.layer.cornerRadius = customCornerRadius effectBackground.layer.masksToBounds = true addSubview(effectBackground) sendSubviewToBack(effectBackground) } override func layoutSubviews() { super.layoutSubviews() effectBackground.frame = bounds } }
[ -1 ]
02746f55dfcd8718a25a8d241189959d0fd54811
2501cc87cf9778528f144c50c0813fc46bbbb259
/Sick Beatz/Sick Beatz/Discover/ArtistVC/TracksView.swift
e34177971f7bb6f96ae2410961a3ea90c0ec241e
[]
no_license
henrytso/SickBeatz
50033bce0a8808016ec4c87287f1d5fa1b205b61
ca82b700ea3c80aeb557d33e6dabf05e5bbc8fac
refs/heads/master
2020-03-15T19:33:55.695358
2018-05-06T06:10:15
2018-05-06T06:10:15
132,311,777
0
0
null
null
null
null
UTF-8
Swift
false
false
2,425
swift
// // TracksView.swift // Sick Beatz // // Created by Henry on 5/5/18. // Copyright © 2018 Henry Tso. All rights reserved. // import UIKit class TracksView: UIView, UITableViewDataSource, UITableViewDelegate { var artist: String! var tableView: UITableView! let reuseId = "reusableSongCell" var songs: [Song] = [] override init(frame: CGRect) { super.init(frame: frame) tableView = UITableView() tableView.bounces = true tableView.delegate = self tableView.dataSource = self tableView.tableFooterView = UIView() tableView.register(SongCell.self, forCellReuseIdentifier: reuseId) tableView.translatesAutoresizingMaskIntoConstraints = false addSubview(tableView) setupConstraints() getSongs() } func setupConstraints() { tableView.snp.makeConstraints { make in make.edges.equalToSuperview() } } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: reuseId) as! SongCell cell.setup(with: songs[indexPath.row]) cell.setNeedsUpdateConstraints() return cell } func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat { return 96.0 } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return songs.count } func getSongs() { // Network.getSongs(withQuery: artist) { songsArray in // self.songs = songsArray // self.tableView.reloadData() // } var hardCoded: [Song] = [] // this song is rly beautiful u should give it a listen! hardCoded.append(Song(title: "Time to Love", artist: "October", album: "idk", image: UIImage(named: "person")!, url: URL(fileURLWithPath: "url"))) // this one will make ur head hurt in the best way possible hardCoded.append(Song(title: "Bangarang", artist: "Skrillex", album: "idk", image: UIImage(named: "person")!, url: URL(fileURLWithPath: "url"))) self.songs = hardCoded } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } }
[ -1 ]
06a6da044d80413214801bcedda70c3833a1ea2a
08c7aec817c77d8231f19bdd74ef753100963859
/socBook/DataService.swift
2479401695ab7f76e1aa34a7d02c72d85a1b81c9
[]
no_license
AGlasby/socBook
f0fac6c944c22b1ae77bdc3f107df2ee8003c79c
f01c8fa863ad8da310394924a19bda25527cad89
refs/heads/master
2020-04-02T03:46:30.869365
2016-07-21T15:10:01
2016-07-21T15:10:01
63,475,413
0
0
null
null
null
null
UTF-8
Swift
false
false
1,002
swift
// // DataService.swift // socBook // // Created by Alan Glasby on 18/07/2016. // Copyright © 2016 Alan Glasby. All rights reserved. // import Foundation import Firebase let URL_BASE = FIRDatabase.database().reference() class DataService { static let ds = DataService() private var _REF_BASE = URL_BASE private var _REF_POSTS = URL_BASE.child("posts") private var _REF_USERS = URL_BASE.child("users") var REF_BASE: FIRDatabaseReference { return _REF_BASE } var REF_POSTS: FIRDatabaseReference { return _REF_POSTS } var REF_USERS: FIRDatabaseReference { return _REF_USERS } var REF_USER_CURRENT: FIRDatabaseReference { let uid = NSUserDefaults.standardUserDefaults().valueForKey(KEY_UID) as! String let user = URL_BASE.child("users").child(uid) return user } func createFirebaseUser(uid: String, user: Dictionary<String, String>) { REF_USERS.child(uid).updateChildValues(user) } }
[ -1 ]
33bd834a6580c5984f7edad5121934fa6ced666c
6812a150e0203293cc73d878e40873011e97a027
/Landmarks/Profiles/ProfileEditor.swift
28eb3568f6a9c0bf966aa2421f311a211b11f586
[]
no_license
thalespa/wwdc21
e3fb461b337bbaaa83704009e2d6db9b755cb777
0c8ffcfc1aa90988a488fe1c7a5dcab71e9adb7f
refs/heads/master
2023-06-12T17:13:46.983931
2021-07-02T18:19:14
2021-07-02T18:19:14
382,429,247
0
0
null
null
null
null
UTF-8
Swift
false
false
1,388
swift
// // ProfileEditor.swift // Landmarks // // Created by Thales Andrade on 04/06/21. // import SwiftUI struct ProfileEditor: View { @Binding var profile: Profile var dateRange: ClosedRange<Date> { let min = Calendar.current.date(byAdding: .year, value: -1, to: profile.goalDate)! let max = Calendar.current.date(byAdding: .year, value: 1, to: profile.goalDate)! return min...max } var body: some View { List{ HStack { Text("user name").bold() Divider() TextField("User name", text: $profile.username) } Toggle(isOn: $profile.prefersNotifications){ Text("Enable Notifications").bold() } VStack(alignment: .leading, spacing: 20){ Text("Seasonal Photo").bold() Picker("Seasonal Photo", selection: $profile.seasonalPhoto){ ForEach(Profile.Season.allCases) { season in Text(season.rawValue).tag(season) } }.pickerStyle(SegmentedPickerStyle()) } } } } struct ProfileEditor_Previews: PreviewProvider { static var previews: some View { ProfileEditor(profile: .constant(.default)) } }
[ 363406, 372816, 372916, 377527, 372887 ]
99978b4e19e8a6a1fbc9b5bc6fd4c3b611ea48fe
4f2f9d2ca5e38107261520d978f58cf3af15f860
/IOS-UI/Roommate/Utilities/Generic.swift
de245b4c75ae2e0afc054a9abcbc11ad32b59147
[]
no_license
trinhhcse/capstone-asp
df37a7f9984a31ec6390c7177bc4c8ad9bdd07b0
6071b01825b3a97b0de7e5d28a970422ae3e7da2
refs/heads/master
2020-04-12T22:41:36.220886
2018-12-25T10:34:22
2018-12-25T10:34:22
162,726,108
0
0
null
null
null
null
UTF-8
Swift
false
false
208
swift
// // Generic.swift // Roommate // // Created by TrinhHC on 9/30/18. // Copyright © 2018 TrinhHC. All rights reserved. // import UIKit // //class View<T> : UIView { // // weak var delegate:T? // //}
[ -1 ]
e4f8d810f6388c78dbaf1bbc9e0c802399e68ce8
c5178bdbad58a406d2132db3d3571170d5981b98
/Contacts/ContentView.swift
b6e376ebc2e94e27f14942d63436ab8f508ae575
[]
no_license
Aniruddha200/Contacts
9aedfba4efb0159ec3ad91fee200f29adee57f12
52b86d5d22dc5628826a939e0e81b9bbeb1e6649
refs/heads/main
2023-06-28T07:20:49.659577
2021-08-01T13:48:51
2021-08-01T13:48:51
387,514,945
1
0
null
null
null
null
UTF-8
Swift
false
false
2,735
swift
// // ContentView.swift // Contacts // // Created by administrator on 17/07/2021. // import SwiftUI import CoreData struct ContentView: View { @Environment(\.managedObjectContext) var moc @FetchRequest(entity: Person.entity(), sortDescriptors: []) var persons: FetchedResults<Person> // @ObservedObject var model = APIResult([APIFormat]()) @State private var friendList = [APIFormat]() var body: some View { NavigationView{ List{ ForEach(persons, id: \.self.id){person in HStack{ Image(systemName: "person.circle") Text("\(person.realName)") NavigationLink("", destination: LazyView(DetailView(person:person, friendList: persons))) } } .onDelete(perform: delete) } .navigationBarTitle("Friends", displayMode: .inline) .navigationBarItems(leading: EditButton(), trailing: Button(action: fetchData) {Image(systemName: "tray.and.arrow.down.fill")}) } } func delete(of index: IndexSet) { for i in index{ moc.delete(persons[i]) } } func fetchData() { // model.fetchData() let url = URL(string: "https://www.hackingwithswift.com/samples/friendface.json")! let request = URLRequest(url: url) URLSession.shared.dataTask(with: request){(data, _, error) in if let data = data{ if let decodedData = try? JSONDecoder().decode([APIFormat].self, from: data){ DispatchQueue.main.async { self.friendList = decodedData } } else{ print("Decoding Failed") } } else{ print("No data found") } }.resume() DispatchQueue.main.asyncAfter(deadline: .now() + 0.3){ for item in friendList { let Person = Person(context: moc) Person.id = item.id Person.isActive = item.isActive Person.name = item.name Person.age = item.age Person.company = item.company Person.email = item.email Person.address = item.address Person.about = item.about Person.registered = item.formattedReg // Person.tags = item.tags for j in item.friends{ let Friend = Friends(context: moc) Friend.id = j.id Friend.name = j.name Friend.addToPeer(Person) Person.addToFriends(Friend) if moc.hasChanges{ do{ try moc.save() } catch{ print("Error is: \(error.localizedDescription)") fatalError("Oops! Could save the data!") } } } if moc.hasChanges{ do{ try moc.save() } catch{ print("Error is: \(error.localizedDescription)") fatalError("Oops! Could save the data!") } } } } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
[ -1 ]
1843ff3c2ccf2a0488c9fbef6ded5d6bf25c3de1
a26582b1656b526e393f4d26d96fa66b75bcb909
/OpenCVSwift/VideoSource.swift
693f97ed85435b73d2338c7b2057b13e2b3ea558
[]
no_license
dkw5877/OpenCVSwift
d9f18a2fefe9f4b41329cf11080517c5a235ce4f
898fcc12d720bc9f3d69ebb42c2cf93e01ac62e1
refs/heads/master
2021-01-13T13:04:27.782653
2017-02-08T04:04:39
2017-02-08T04:04:39
78,688,393
6
2
null
null
null
null
UTF-8
Swift
false
false
5,338
swift
// // VideoSource.swift // OpenCVSwift // // Created by user on 1/10/17. // Copyright © 2017 someCompanyNameHere. All rights reserved. // import UIKit import AVFoundation import CoreVideo struct VideoFrame { var width:Int var height:Int var stride:Int var data:UnsafeMutableRawPointer? } protocol VideoSourceDelegate:class { func frameReady(frame:VideoFrame) /* alternate method to just pass an image back to delegate */ // func imageReady(image:CIImage) } class VideoSource:NSObject, AVCaptureVideoDataOutputSampleBufferDelegate { let captureSession:AVCaptureSession var delegate:VideoSourceDelegate? override init() { captureSession = AVCaptureSession() if captureSession.canSetSessionPreset(AVCaptureSessionPreset1280x720){ captureSession.sessionPreset = AVCaptureSessionPreset1280x720 } } deinit { captureSession.stopRunning() } func startWithDevicePosition(devicePosition:AVCaptureDevicePosition) -> Bool { guard let videoDevice = cameraWithPosition(postion: devicePosition) else { print("Could not initialize camera at postion") return false } do { //assign input device to session let cameraInput = try AVCaptureDeviceInput(device: videoDevice) if captureSession.canAddInput(cameraInput) { captureSession.addInput(cameraInput) } else { print("could not add input for device") return false } addVideoDataOutput() let sessionQueue = DispatchQueue(label: "com.camera.capture_session") sessionQueue.async { [weak self] _ in self?.captureSession.startRunning() } return true } catch { print("could not open input port for device") } return false } /* find possible input devices using the position (e.g. Back or Front camera)*/ func cameraWithPosition(postion:AVCaptureDevicePosition) -> AVCaptureDevice? { let session = AVCaptureDeviceDiscoverySession(deviceTypes:[.builtInTelephotoCamera, .builtInWideAngleCamera], mediaType: AVMediaTypeVideo, position: postion) return session?.devices.first } /* process camera video output on background queue */ func addVideoDataOutput() { let captureOutput = AVCaptureVideoDataOutput() captureOutput.alwaysDiscardsLateVideoFrames = true let queue = DispatchQueue(label: "com.camera.video_capture.output") captureOutput.setSampleBufferDelegate(self, queue: queue) captureOutput.videoSettings = [String(kCVPixelBufferPixelFormatTypeKey):NSNumber.init(value:kCVPixelFormatType_32BGRA)] if captureSession.canAddOutput(captureOutput) { captureSession.addOutput(captureOutput) } } /* capture live frames and pass on to delegate, samples sent from the camera are rotated 90 degrees, because that’s how the camera sensor is oriented */ func captureOutput(_ captureOutput: AVCaptureOutput!, didOutputSampleBuffer sampleBuffer: CMSampleBuffer!, from connection: AVCaptureConnection!) { guard let pixelBuffer = CMSampleBufferGetImageBuffer(sampleBuffer) else { return } //Lock pixel buffer, option 0 = kCVPixelBufferLock_ReadOnly CVPixelBufferLockBaseAddress(pixelBuffer, CVPixelBufferLockFlags(rawValue: 0)) let baseAddress = CVPixelBufferGetBaseAddress(pixelBuffer) let width = CVPixelBufferGetWidth(pixelBuffer) let height = CVPixelBufferGetHeight(pixelBuffer) let stride = CVPixelBufferGetBytesPerRow(pixelBuffer) let frame = VideoFrame(width: width, height: height, stride: stride, data: baseAddress) //Dispatch VideoFrame to delegate delegate?.frameReady(frame: frame) /* alernate option is just to create a CIImage and return it back to the delegate */ // let image = CIImage(cvPixelBuffer: pixelBuffer) // delegate?.imageReady(image: image) //unlock pixel buffer CVPixelBufferUnlockBaseAddress(pixelBuffer, CVPixelBufferLockFlags(rawValue: 0)) } func checkAuthorizationStatus() { let authorizationStatus = AVCaptureDevice.authorizationStatus(forMediaType: AVMediaTypeVideo) switch authorizationStatus { case .notDetermined: // permission dialog not yet presented, request authorization AVCaptureDevice.requestAccess(forMediaType: AVMediaTypeVideo, completionHandler: { (granted:Bool) -> Void in if granted { // go ahead } else { // user denied, nothing much to do } }) case .authorized: break // go ahead case .denied, .restricted: break // the user explicitly denied camera usage or is not allowed to access the camera devices } } }
[ -1 ]
763ba6743c18df0b7bdbab5dad66ffcd13d7de79
df071015d74893469e54eb760ec7b177d2079b50
/Multiplatform/Shared/Timeline/TimelineContextMenu.swift
b32ae93099053a22c07f05616e3311f72d8c4f34
[ "MIT" ]
permissive
rderik/NetNewsWire
51f4779cffb15d37902b67b8247486c8e962a572
7f60c69454886ba8ecd165a66b09362f80fcf474
refs/heads/main
2022-11-21T23:59:00.517786
2020-07-19T16:38:15
2020-07-19T16:38:15
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,516
swift
// // TimelineContextMenu.swift // NetNewsWire // // Created by Maurice Parker on 7/17/20. // Copyright © 2020 Ranchero Software. All rights reserved. // import SwiftUI struct TimelineContextMenu: View { @EnvironmentObject private var timelineModel: TimelineModel var timelineItem: TimelineItem @ViewBuilder var body: some View { if timelineModel.canMarkIndicatedArticlesAsRead(timelineItem.article) { Button { timelineModel.markIndicatedArticlesAsRead(timelineItem.article) } label: { Text("Mark as Read") #if os(iOS) AppAssets.readOpenImage #endif } } if timelineModel.canMarkIndicatedArticlesAsUnread(timelineItem.article) { Button { timelineModel.markIndicatedArticlesAsUnread(timelineItem.article) } label: { Text("Mark as Unread") #if os(iOS) AppAssets.readClosedImage #endif } } if timelineModel.canMarkIndicatedArticlesAsStarred(timelineItem.article) { Button { timelineModel.markIndicatedArticlesAsStarred(timelineItem.article) } label: { Text("Mark as Starred") #if os(iOS) AppAssets.starClosedImage #endif } } if timelineModel.canMarkIndicatedArticlesAsUnstarred(timelineItem.article) { Button { timelineModel.markIndicatedArticlesAsUnstarred(timelineItem.article) } label: { Text("Mark as Unstarred") #if os(iOS) AppAssets.starOpenImage #endif } } if timelineModel.canMarkAboveAsRead(timelineItem.article) { Button { timelineModel.markAboveAsRead(timelineItem.article) } label: { Text("Mark Above as Read") #if os(iOS) AppAssets.markAboveAsReadImage #endif } } if timelineModel.canMarkBelowAsRead(timelineItem.article) { Button { timelineModel.markBelowAsRead(timelineItem.article) } label: { Text("Mark Below As Read") #if os(iOS) AppAssets.markBelowAsReadImage #endif } } if let feed = timelineItem.article.webFeed, timelineModel.canMarkAllAsReadInFeed(feed) { Divider() Button { timelineModel.markAllAsReadInFeed(feed) } label: { Text("Mark All as Read in “\(feed.nameForDisplay)”") #if os(iOS) AppAssets.markAllAsReadImage #endif } } if timelineModel.canOpenIndicatedArticleInBrowser(timelineItem.article) { Divider() Button { timelineModel.openIndicatedArticleInBrowser(timelineItem.article) } label: { Text("Open in Browser") #if os(iOS) AppAssets.openInBrowserImage #endif } } } }
[ -1 ]
d720eb49ce884d06e19c2af0517a9549cd943123
b41b7cb6eb30e5b98e7503e0af9a3df5c8b7bbb2
/hoodDrip/ShowCartViewController.swift
d116d3940da67dd29bee65eeb490cbcfa012f014
[]
no_license
Dtaylor245/Hooddrip---iOS-App
8441ceee1b37f70ca4df19938aa0e2be2c02279f
9305800f96091b7eaf7d03820b3d517759664a6e
refs/heads/master
2020-06-24T18:28:33.321693
2019-07-26T16:04:45
2019-07-26T16:04:45
199,045,788
0
0
null
null
null
null
UTF-8
Swift
false
false
595
swift
// // ShowCartViewController.swift // hoodDrip // // Created by HGPMAC83 on 7/25/19. // Copyright © 2019 HGPMAC83. All rights reserved. // import UIKit class ShowCartViewController: UIViewController { @IBOutlet weak var productDescriptionSummary: UILabel! @IBOutlet weak var productPriceSummary: UILabel! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. productDescriptionSummary.text = productDescription productPriceSummary.text = productPrice } }
[ -1 ]
6bd51c7911d9bddda76a010d96db26ea67c1ed6c
24af4154f30fa530bcc001d3f53da50563ba4e58
/RESTful/AppDelegate.swift
472d4ed44eb5a6a064026ac78e6d64767ce8a891
[ "MIT" ]
permissive
markdrayton247/RESTful
e16f12b2214820a6c5acaa9fef276b025050b16c
d95fe4cb76d7f649c6717c3ce8c9c0ac695a0551
refs/heads/master
2021-01-20T19:40:20.408230
2016-07-15T12:20:05
2016-07-15T12:20:05
63,256,879
0
0
null
null
null
null
UTF-8
Swift
false
false
2,151
swift
// // AppDelegate.swift // RESTful // // Created by Mark Drayton on 13/07/2016. // Copyright © 2016 Mark Drayton Ltd. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } func applicationDidEnterBackground(application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(application: UIApplication) { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 229388, 294924, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 229405, 352284, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 229426, 237618, 229428, 286774, 229432, 286776, 286778, 319544, 204856, 286791, 237640, 278605, 237646, 311375, 163920, 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, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 287032, 155966, 278849, 319809, 319810, 319814, 311623, 319818, 311628, 229709, 287054, 319822, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 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, 172550, 172552, 303623, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 189039, 189040, 172655, 172656, 295538, 189044, 172660, 287349, 352880, 287355, 287360, 295553, 287365, 311942, 303751, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 164509, 287390, 295583, 303773, 172702, 287394, 230045, 303780, 172705, 287398, 172707, 287400, 279208, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 279231, 287423, 328384, 287427, 312006, 279241, 107212, 172748, 287436, 172751, 295633, 172755, 303827, 279255, 172760, 279258, 303835, 213724, 189149, 303838, 287450, 279267, 312035, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 369433, 295707, 328476, 295710, 303914, 279340, 205613, 279353, 230202, 312124, 222018, 295755, 377676, 148302, 287569, 279383, 303959, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 213895, 304007, 304009, 304011, 230284, 304013, 213902, 279438, 295822, 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, 197645, 295949, 230413, 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, 164973, 205934, 279661, 312432, 279669, 337018, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 165038, 238766, 230576, 238770, 304311, 350308, 230592, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 279788, 320748, 279790, 296189, 320771, 312585, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 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, 181626, 304506, 304505, 181631, 312711, 312712, 296331, 288140, 230800, 288144, 304533, 337306, 288154, 288160, 288162, 288164, 279975, 304555, 370092, 279983, 288176, 279985, 173488, 312755, 296373, 279991, 312759, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 280014, 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, 291754, 288242, 296435, 288244, 296439, 288250, 402942, 148990, 296446, 206336, 321022, 296450, 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, 321200, 337585, 296626, 296634, 313027, 280260, 280264, 206536, 206539, 206541, 206543, 280276, 313044, 321239, 280283, 313052, 288478, 313055, 321252, 313066, 280302, 288494, 280304, 313073, 419570, 321266, 288499, 288502, 280314, 288510, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 345921, 280388, 304968, 280393, 280402, 313176, 42842, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280458, 280464, 124817, 280468, 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, 280671, 223327, 149599, 321634, 149601, 149603, 329830, 280681, 313451, 223341, 280687, 313458, 280691, 215154, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 288936, 100520, 280747, 288940, 280755, 288947, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 280819, 157940, 125171, 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, 280940, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 190868, 297365, 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, 207661, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 183172, 158596, 240519, 322440, 338823, 314249, 289687, 240535, 297883, 289694, 289696, 289700, 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, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 298306, 380226, 281923, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 290174, 298365, 224641, 281987, 298372, 265604, 281990, 298377, 314763, 142733, 298381, 224657, 306581, 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, 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, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 324757, 282261, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 282410, 241450, 306988, 306991, 315184, 323376, 315190, 241464, 282425, 159545, 307009, 241475, 307012, 148946, 315211, 282446, 307027, 315221, 282454, 315223, 241496, 323414, 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, 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, 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, 291202, 299398, 242057, 291212, 299405, 291222, 283033, 291226, 242075, 315801, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 291247, 127407, 299444, 127413, 283062, 291254, 127417, 291260, 283069, 127421, 127424, 299457, 127429, 283080, 176592, 315856, 315860, 176597, 283095, 127447, 299481, 176605, 242143, 291299, 127463, 242152, 291305, 176620, 127474, 291314, 291317, 135672, 233979, 291323, 291330, 283142, 127497, 233994, 135689, 291341, 233998, 234003, 234006, 152087, 127511, 283161, 242202, 234010, 135707, 242206, 135710, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 373383, 299655, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 225998, 299726, 226002, 226005, 119509, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 381677, 226037, 283382, 234231, 316151, 234236, 226045, 234239, 242431, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 201496, 234264, 234266, 283421, 234269, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 234313, 316233, 316235, 234316, 283468, 242511, 234319, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 234370, 201603, 291714, 234373, 226182, 234375, 291716, 226185, 308105, 234379, 234384, 234388, 234390, 226200, 324504, 234393, 209818, 308123, 324508, 234398, 234396, 291742, 234401, 291748, 234405, 291750, 234407, 324518, 324520, 234410, 324522, 226220, 291756, 234414, 324527, 291760, 234417, 201650, 324531, 226230, 234422, 275384, 324536, 234428, 291773, 234431, 242623, 324544, 324546, 226239, 324548, 226245, 234437, 234439, 234434, 234443, 291788, 193486, 275406, 193488, 234446, 234449, 316370, 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, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 234549, 300085, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 234563, 234568, 234570, 316491, 300108, 234572, 234574, 300115, 234580, 234581, 275545, 242777, 234585, 234590, 234593, 234595, 300133, 234597, 234601, 300139, 234605, 234607, 160879, 275569, 234610, 300148, 234614, 398455, 144506, 275579, 234618, 234620, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 275594, 234636, 177293, 234640, 275602, 234643, 226453, 275606, 234647, 275608, 308373, 234650, 234648, 308379, 283805, 234653, 324766, 119967, 234657, 300189, 324768, 242852, 283813, 234661, 300197, 234664, 275626, 234667, 316596, 234687, 316610, 300226, 226500, 234692, 300229, 308420, 283844, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 161003, 300267, 300270, 300272, 120053, 300278, 316663, 275703, 300284, 275710, 300287, 283904, 300289, 292097, 300292, 300294, 275719, 300299, 177419, 283917, 300301, 242957, 177424, 275725, 349464, 283939, 259367, 283951, 292143, 300344, 226617, 283963, 243003, 226628, 283973, 300357, 177482, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 226703, 300433, 234899, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 284076, 144812, 144814, 144820, 284084, 284087, 292279, 144826, 144828, 144830, 144832, 284099, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 259567, 300527, 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, 366155, 276043, 317004, 284238, 226895, 284241, 194130, 284243, 276052, 276053, 284245, 284247, 317015, 284249, 243290, 284251, 300628, 284253, 235097, 284255, 243293, 300638, 284258, 292452, 177766, 284263, 292454, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 284278, 292470, 292473, 284283, 276093, 284286, 276095, 284288, 292481, 276098, 284290, 325250, 284292, 292479, 292485, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 276114, 284306, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 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, 358119, 284392, 325353, 284394, 358122, 284397, 276206, 284399, 358126, 358128, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 284418, 358146, 317187, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 186139, 300828, 300830, 276255, 325408, 284449, 300834, 300832, 227109, 317221, 358183, 186151, 276268, 194351, 243504, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 284529, 292721, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 284564, 358292, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292776, 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, 276466, 227314, 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, 276553, 243785, 350293, 350295, 194649, 227418, 309337, 194654, 227423, 350302, 194657, 227426, 276579, 178273, 194660, 227430, 276583, 309346, 309348, 276586, 309350, 309352, 309354, 276590, 350313, 227440, 350316, 284786, 350321, 276595, 301167, 350325, 350328, 292985, 301178, 292989, 292993, 301185, 350339, 317573, 350342, 227463, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 284837, 153765, 350375, 350379, 350381, 350383, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 309450, 301258, 276685, 276689, 227540, 309462, 301272, 276699, 309468, 194780, 301283, 317672, 276713, 317674, 243948, 194801, 227571, 276725, 309494, 243960, 227583, 276735, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 276766, 211232, 276775, 211241, 325937, 276789, 325943, 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, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 317951, 309764, 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, 309844, 277080, 309849, 285277, 285282, 326244, 277100, 277106, 121458, 170618, 170619, 309885, 309888, 277122, 227975, 285320, 277128, 301706, 318092, 326285, 318094, 334476, 277136, 277139, 227992, 285340, 318108, 227998, 318110, 383658, 285357, 318128, 277170, 342707, 154292, 277173, 293555, 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, 326430, 228128, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 285499, 301884, 310080, 293696, 277314, 277317, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 277368, 15224, 236408, 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, 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, 302218, 285835, 294026, 384148, 162964, 187542, 302231, 302233, 285852, 302237, 285854, 285856, 285862, 277671, 302248, 64682, 277678, 228526, 294063, 294065, 302258, 277687, 294072, 318651, 277695, 318657, 244930, 302275, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 204023, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 228617, 138505, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 285999, 277807, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 294211, 302403, 277832, 277836, 294221, 326991, 294223, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 277892, 277894, 253320, 310665, 318858, 277898, 327046, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 277923, 130468, 228776, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 64966, 245191, 163272, 302534, 310727, 277959, 292968, 277963, 277966, 302543, 310737, 277971, 277975, 286169, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 286188, 310764, 278000, 278003, 310772, 228851, 278006, 40440, 278009, 212472, 40443, 286203, 228864, 40448, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 286240, 146977, 187939, 294435, 40484, 286246, 294439, 286248, 278057, 294440, 294443, 40486, 294445, 40488, 310831, 40491, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 228944, 212560, 400976, 40533, 147032, 40537, 40539, 278109, 40541, 40544, 40548, 40550, 286312, 286313, 40554, 40552, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 278150, 310925, 286354, 278163, 302740, 278168, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 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, 319243, 311053, 302862, 294682, 278306, 294701, 278320, 319280, 319290, 229192, 302925, 237409, 360317, 327554, 40840, 40851, 294803, 188312, 294811, 319390, 294817, 319394, 40865, 294821, 311209, 180142, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
d377e3f8627e0a128918989ea05b5b72c0665320
7267daf2b7ca1edf354f6a8de709baac94e936b4
/ToWatcher/Extensions/UILabel_ext.swift
d0f95a72d7b4c3348d2adca468d720624c316896
[]
no_license
AlexDjr/ToWatcher
333683efc1a6795e93e7a40d6ee4897403a1a3bd
11f8e7e2b8594711c101ff38c5ea185779fbb5c1
refs/heads/master
2021-06-12T20:16:14.372559
2021-04-25T19:10:36
2021-04-25T19:10:36
182,524,868
0
0
null
null
null
null
UTF-8
Swift
false
false
909
swift
// // UILabel_ext.swift // ToWatcher // // Created by Alex Delin on 07.02.2021. // Copyright © 2021 Alex Delin. All rights reserved. // import UIKit extension UILabel { func addShadow(radius: CGFloat) -> UILabel { self.layer.shadowColor = UIColor.black.cgColor self.layer.shadowRadius = radius self.layer.shadowOpacity = 0.35 self.layer.shadowOffset = CGSize(width: 1, height: 1) self.layer.masksToBounds = false return self } func set(font: UIFont, color: UIColor, numberOfLines: Int, minimumScale: CGFloat = 1.0, alignment: NSTextAlignment = .left) -> UILabel { self.numberOfLines = numberOfLines self.font = font self.textColor = color self.textAlignment = alignment self.adjustsFontSizeToFitWidth = true self.minimumScaleFactor = minimumScale return self } }
[ -1 ]
79d799ddf0a9645445dddadf8bf258897a6363b2
69a2bd563cc513e2e76bab58199e42de20a24542
/Journal/Extension/Snapshot+Data.swift
5dfa751e16c6852b70a808f8eea03896ace76cc9
[]
no_license
Jkurbs/Journal
924dbf4959cfea6f59cc2c99a662e7b6b46754c8
085429ac165cd2a1b692449204ee4073da1526a6
refs/heads/master
2022-06-02T11:11:56.091297
2020-05-03T17:40:24
2020-05-03T17:40:24
259,418,785
0
0
null
null
null
null
UTF-8
Swift
false
false
519
swift
// // Snapshot+Data.swift // Journal // // Created by Kerby Jean on 4/30/20. // Copyright © 2020 Kerby Jean. All rights reserved. // import FirebaseDatabase // Turn DataSnapshot into JsonData extension DataSnapshot { var data: Data? { guard let value = value else { return nil } return try? JSONSerialization.data(withJSONObject: value) } var json: String? { data?.string } } extension Data { var string: String? { String(data: self, encoding: .utf8) } }
[ -1 ]
f0a3914cd01624f396947da04ee8c44779b93163
ff739fe70ebb31aa601d22e95d29d13931ff000f
/TestSizeClass/AppDelegate.swift
eb6d1fc2bad34821a62ebe75be746dd6db988139
[]
no_license
NishantSood053/TestSizeClass
68603aae2d2234415e5c1daf09e9eb602b3576fb
943936e633b7b2508eda9e550e496abcc765c442
refs/heads/master
2021-01-19T12:45:17.522099
2017-02-17T21:35:01
2017-02-17T21:35:01
82,337,883
0
0
null
null
null
null
UTF-8
Swift
false
false
2,179
swift
// // AppDelegate.swift // TestSizeClass // // Created by Nishant Sood on 2/17/17. // Copyright © 2017 Nishant Sood. 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, 294924, 229388, 229391, 327695, 229394, 229397, 229399, 229402, 278556, 229405, 229408, 294950, 229415, 229417, 327722, 237613, 229422, 237618, 229426, 229428, 311349, 286774, 286776, 319544, 286778, 229432, 204856, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 319590, 311400, 278635, 303212, 278639, 131192, 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, 131278, 131281, 286928, 278743, 278747, 295133, 155872, 131299, 319716, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 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, 311850, 279082, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 254563, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189039, 172660, 287349, 189040, 189044, 287355, 287360, 295553, 172675, 295557, 311942, 303751, 287365, 352905, 311946, 287371, 279178, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 287390, 303773, 172705, 287394, 172707, 303780, 164509, 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, 189169, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 304007, 304009, 213895, 304011, 230284, 304013, 295822, 189325, 279438, 189329, 295825, 304019, 189331, 58262, 304023, 304027, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 230334, 304063, 238528, 304065, 213954, 189378, 156612, 295873, 213963, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 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, 312432, 279669, 337018, 189562, 279679, 304258, 279683, 66690, 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, 181631, 148865, 312711, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 173472, 288160, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 279991, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 148946, 288210, 222676, 370130, 280021, 288212, 288214, 329177, 239064, 288217, 288218, 280027, 239070, 288220, 288224, 288226, 370146, 280036, 288229, 320998, 280038, 288232, 288230, 288234, 280034, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 206336, 296450, 148990, 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, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 263888, 313044, 280276, 321239, 280283, 313052, 288478, 313055, 419555, 321252, 313066, 288494, 280302, 280304, 313073, 321266, 288499, 419570, 288502, 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, 337732, 280388, 304968, 280393, 280402, 173907, 313171, 313176, 280419, 321381, 296809, 296812, 313201, 1920, 255873, 305028, 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, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 149599, 280671, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 275608, 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, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 305464, 280888, 280891, 289087, 108865, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 215387, 354653, 313700, 280937, 313705, 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, 436684, 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, 289317, 281127, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 182929, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 256716, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 338823, 322440, 314249, 240519, 183184, 142226, 289687, 224151, 240535, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 420829, 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, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 380226, 298306, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 298365, 290174, 306555, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 306694, 192008, 323084, 257550, 290321, 282130, 323090, 290325, 282133, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282255, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 196133, 282295, 323260, 282300, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 282337, 216801, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 315211, 282446, 307027, 315221, 323414, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 282481, 110450, 315251, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 241556, 44948, 298901, 241560, 282520, 241563, 241565, 241567, 241569, 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, 307211, 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, 307338, 233613, 241813, 307352, 299164, 241821, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 184503, 299191, 307385, 176311, 258235, 307388, 176316, 307390, 307386, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 184586, 282893, 291089, 282906, 291104, 233766, 299304, 295583, 176435, 307508, 315701, 332086, 307510, 307512, 168245, 307515, 307518, 282942, 282947, 323917, 282957, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 276053, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 291226, 242075, 283033, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 291254, 283062, 127417, 291260, 127421, 127424, 299457, 127429, 127431, 127434, 315856, 127440, 176592, 315860, 176597, 127447, 299481, 127449, 176605, 242143, 127455, 127457, 291299, 127460, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 127494, 283142, 127497, 233994, 135689, 127500, 291341, 233998, 127506, 234003, 127509, 234006, 127511, 152087, 283161, 242202, 135707, 234010, 135710, 242206, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 135808, 291456, 299655, 373383, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 299706, 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, 234246, 226056, 291593, 234248, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 299814, 234278, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 160572, 283452, 234302, 234307, 242499, 234309, 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, 291711, 234368, 291714, 234370, 291716, 234373, 201603, 226182, 234375, 308105, 324490, 226185, 234379, 234384, 234388, 234390, 226200, 324504, 209818, 308123, 234396, 324508, 291742, 234393, 234401, 291747, 291748, 234405, 291750, 324518, 324520, 234407, 324522, 234410, 291756, 291754, 226220, 324527, 291760, 234417, 201650, 324531, 234414, 234422, 226230, 324536, 275384, 234428, 291773, 242623, 324544, 234431, 234434, 324546, 324548, 226245, 234437, 226239, 234439, 234443, 291788, 193486, 234446, 193488, 234449, 275406, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 316416, 234496, 234501, 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, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 324757, 234647, 234648, 226453, 234650, 308379, 275606, 300189, 324766, 119967, 234653, 324768, 283805, 234657, 242852, 300197, 283813, 234661, 234664, 177318, 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, 349451, 177424, 275725, 283917, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 300357, 177482, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 243046, 218473, 136562, 324978, 333178, 275834, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 300448, 144807, 144810, 144812, 284076, 144814, 227426, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 227430, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 226802, 316917, 292343, 308727, 300537, 316933, 316947, 308757, 308762, 284191, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 292414, 284223, 284226, 284228, 292421, 243268, 284231, 226886, 128584, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 292433, 284247, 317015, 235097, 243290, 284249, 284251, 284253, 300638, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 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, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 276206, 358128, 284399, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 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, 317332, 358292, 399252, 284564, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 292776, 284585, 276395, 292784, 276402, 358326, 161718, 358330, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 276448, 153568, 292839, 276455, 350186, 292843, 276460, 292845, 178161, 227314, 276466, 325624, 350200, 276472, 317435, 276476, 276479, 350210, 276482, 178181, 317446, 276485, 350218, 276490, 292876, 350222, 317456, 276496, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 178224, 276528, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 276539, 276544, 243779, 325700, 284739, 292934, 276553, 243785, 350293, 350295, 309337, 194649, 350299, 227418, 350302, 194654, 350304, 178273, 309346, 227423, 194660, 350308, 309350, 309348, 292968, 309352, 350313, 309354, 350316, 301163, 276583, 301167, 276586, 350321, 276590, 227440, 284786, 350325, 252022, 276595, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 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, 227571, 309491, 309494, 243960, 227583, 276735, 276739, 211204, 276742, 227596, 325910, 309530, 342298, 211232, 317729, 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, 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, 309871, 121458, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 334488, 227992, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 154292, 277173, 318132, 342707, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 342749, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 56045, 277232, 228081, 56059, 310015, 285441, 310020, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277317, 277322, 277329, 162643, 310100, 301911, 277337, 301913, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 277368, 15224, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 276579, 293817, 293820, 203715, 326603, 342994, 293849, 293861, 228327, 228328, 318442, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 244731, 285690, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 302105, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 293960, 310344, 277577, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 285792, 277601, 203872, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 367737, 285817, 302205, 285821, 392326, 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, 384302, 285999, 277804, 113969, 277807, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 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, 277959, 277963, 302541, 277966, 302543, 310737, 277971, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 310764, 286188, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 40448, 228864, 286214, 228871, 302603, 302614, 302617, 286233, 302621, 286240, 187936, 146977, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 245288, 310831, 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, 302764, 278188, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 286420, 278227, 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, 360322, 40840, 294803, 40851, 188312, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 294831, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 237562 ]
d38d320a681fee57dd711ed947beb587283e3049
2d66762de1245f4733997c376a6628ebf23b8de1
/基础UI/UIImageView案例/UIImageView案例UITests/UIImageView__UITests.swift
f6e6134d46f98ee5aadda7cffe18585a43965ed4
[]
no_license
yungfan/iOS-BasedOnSwift
6447b10ef45d8853d441850ae4052d77fdf1afe4
4c193107370b9f0f867afead847333c733f35dee
refs/heads/master
2023-08-19T03:02:30.166689
2023-08-12T09:15:35
2023-08-12T09:15:35
152,723,965
34
18
null
2022-07-22T08:50:01
2018-10-12T09:06:10
Swift
UTF-8
Swift
false
false
1,173
swift
// // UIImageView__UITests.swift // UIImageView案例UITests // // Created by 杨帆 on 2018/10/15. // Copyright © 2018 ABC. All rights reserved. // import XCTest class UIImageView__UITests: XCTestCase { override func setUp() { // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is usually best to stop immediately when a failure occurs. continueAfterFailure = false // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. XCUIApplication().launch() // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. } func testExample() { // Use recording to get started writing UI tests. // Use XCTAssert and related functions to verify your tests produce the correct results. } }
[ 155665, 237599, 229414, 344106, 278571, 229425, 319543, 229431, 180279, 352314, 376892, 32829, 286787, 237638, 311373, 196687, 278607, 311377, 368732, 278637, 319599, 278642, 131190, 131199, 278669, 278676, 311447, 327834, 278684, 278690, 311459, 278698, 278703, 278707, 180409, 278713, 295099, 139459, 131270, 229591, 385240, 311520, 319719, 295147, 286957, 262403, 180494, 319764, 278805, 311582, 278817, 311596, 98611, 368949, 278843, 287040, 319812, 311622, 319816, 254285, 344402, 229716, 278895, 287089, 139641, 311679, 311692, 106893, 156069, 254373, 311723, 377265, 319931, 311739, 278974, 336319, 311744, 278979, 278988, 278992, 279000, 369121, 279009, 188899, 279014, 319976, 279017, 311787, 360945, 319986, 279030, 311800, 279042, 287237, 377352, 279053, 303634, 303635, 279061, 254487, 279066, 188954, 279092, 352831, 377419, 303693, 369236, 115287, 189016, 295518, 287327, 279150, 287345, 287348, 344697, 189054, 287359, 303743, 164487, 279176, 311944, 311948, 311950, 311953, 336531, 287379, 180886, 295575, 352921, 303772, 221853, 205469, 279207, 295591, 295598, 279215, 279218, 164532, 287412, 287418, 303802, 66243, 287434, 287438, 279249, 303826, 279253, 230105, 361178, 295653, 369383, 230120, 361194, 312046, 279278, 230133, 279293, 205566, 295688, 312076, 295698, 221980, 262952, 262953, 279337, 262957, 164655, 328495, 303921, 336693, 230198, 222017, 295745, 279379, 295769, 230238, 230239, 435038, 279393, 303973, 279398, 295797, 295799, 279418, 287623, 279434, 320394, 189327, 189349, 279465, 140203, 304050, 189373, 213956, 345030, 213961, 279499, 304086, 304104, 123880, 320492, 320495, 287730, 320504, 312313, 214009, 312317, 328701, 328705, 418819, 320520, 230411, 320526, 361487, 238611, 140311, 238617, 197658, 132140, 189487, 345137, 361522, 312372, 238646, 238650, 320571, 336962, 238663, 361547, 205911, 296023, 156763, 361570, 230500, 214116, 214119, 279659, 279666, 312435, 230514, 238706, 279686, 222344, 140426, 337037, 296091, 238764, 148674, 312519, 279752, 148687, 189651, 279766, 189656, 279775, 304352, 304353, 279780, 279789, 279803, 320769, 312588, 320795, 320802, 304422, 353581, 116014, 312628, 345397, 345398, 222523, 181568, 279872, 279874, 304457, 345418, 230730, 337226, 296269, 238928, 296274, 230757, 312688, 296304, 230772, 296328, 296330, 304523, 9618, 279955, 148899, 148900, 279979, 279980, 173492, 279988, 280003, 370122, 280011, 337359, 329168, 312785, 222674, 329170, 280020, 353751, 280025, 239069, 329181, 320997, 280042, 280043, 329198, 337391, 296434, 288248, 288252, 312830, 230922, 329231, 304655, 230933, 222754, 312879, 230960, 288305, 239159, 157246, 288319, 288322, 280131, 124486, 288328, 239192, 99937, 345697, 312937, 312941, 206447, 288377, 337533, 280193, 239238, 288391, 239251, 280217, 345753, 198304, 255651, 337590, 280252, 280253, 296636, 321217, 280259, 321220, 296649, 239305, 280266, 9935, 313042, 345813, 280279, 18139, 280285, 321250, 337638, 181992, 345832, 288492, 141037, 34547, 67316, 288508, 288515, 280326, 116491, 280333, 124691, 116502, 321308, 321309, 255781, 280367, 280373, 280377, 321338, 280381, 345918, 280386, 280391, 280396, 337746, 362326, 18263, 345942, 345950, 370526, 362336, 296807, 362351, 313200, 296815, 124795, 182145, 280451, 67464, 305032, 124816, 214936, 337816, 124826, 329627, 239515, 214943, 354210, 313257, 288698, 214978, 280517, 280518, 214983, 362442, 346066, 231382, 354268, 329696, 190437, 313322, 354283, 329707, 247786, 296942, 337899, 124912, 313338, 239610, 354312, 305173, 223269, 354342, 346153, 354346, 313388, 124974, 321589, 215095, 288829, 288835, 313415, 239689, 354386, 329812, 223317, 321632, 280676, 313446, 215144, 288878, 288890, 215165, 329884, 215204, 125108, 280761, 223418, 280767, 280779, 346319, 321744, 280792, 280803, 182503, 338151, 125166, 125170, 313595, 125180, 125184, 125192, 125197, 125200, 125204, 272661, 125215, 125216, 125225, 338217, 321839, 125236, 362809, 280903, 289109, 379224, 272730, 215395, 239973, 313703, 280938, 321901, 354671, 354672, 199030, 223611, 248188, 313726, 240003, 158087, 313736, 240020, 190870, 190872, 289185, 436644, 305572, 289195, 338359, 289229, 281038, 281039, 256476, 281071, 322057, 182802, 322077, 289328, 330291, 338491, 322119, 281165, 281170, 436831, 281200, 313970, 297600, 346771, 363155, 289435, 314020, 248494, 166581, 314043, 355006, 363212, 158424, 322269, 338658, 289511, 330473, 330476, 289517, 215790, 125683, 199415, 322302, 289534, 322312, 346889, 264971, 322320, 166677, 207639, 281378, 289580, 355129, 281407, 289599, 355136, 355138, 355147, 355148, 355153, 281426, 281434, 322396, 281444, 355173, 355174, 207735, 314240, 158594, 330627, 240517, 355216, 256920, 289691, 240543, 289699, 256934, 289704, 289720, 289723, 330688, 281541, 19398, 191445, 183254, 314343, 183276, 289773, 248815, 347122, 240631, 330759, 330766, 347150, 330789, 248871, 281647, 322609, 314437, 257093, 207954, 314458, 281698, 281699, 257126, 322664, 363643, 314493, 150656, 248960, 347286, 339101, 330912, 339106, 306339, 249003, 208044, 322733, 3243, 339131, 290001, 339167, 298209, 290030, 208123, 322826, 126229, 257323, 298290, 208179, 159033, 216387, 372039, 109899, 224591, 331091, 314708, 150868, 314711, 314721, 281958, 314727, 134504, 306541, 314734, 314740, 314742, 314745, 290170, 224637, 306558, 314752, 306561, 290176, 314759, 388488, 298378, 314771, 306580, 224662, 282008, 314776, 282013, 290206, 314788, 314790, 282023, 298406, 241067, 314797, 134586, 380350, 306630, 200136, 306634, 339403, 3559, 191980, 282097, 306678, 191991, 290304, 323079, 323083, 208397, 323088, 282132, 282135, 372261, 306730, 290359, 134715, 323132, 282182, 224848, 224852, 290391, 306777, 323171, 282214, 224874, 290425, 282244, 323208, 282248, 224907, 323226, 282272, 282279, 298664, 298666, 224951, 224952, 306875, 282302, 323262, 323265, 282309, 306891, 241360, 282321, 241366, 224985, 282330, 282336, 12009, 282347, 282349, 323315, 200444, 282366, 175874, 282375, 323335, 282379, 216844, 118549, 282390, 282399, 241440, 282401, 315172, 241447, 282418, 282424, 413500, 282428, 241471, 339782, 315209, 159563, 307024, 307030, 241494, 339799, 307038, 282471, 282476, 339840, 315265, 282503, 315272, 315275, 184207, 282517, 298912, 118693, 298921, 126896, 200628, 282573, 323554, 298987, 282634, 241695, 315431, 315433, 102441, 102446, 282671, 241717, 249912, 307269, 233548, 315468, 176209, 315477, 53334, 200795, 323678, 356446, 315488, 315489, 45154, 217194, 233578, 307306, 249976, 381071, 241809, 323730, 299166, 233635, 299176, 184489, 323761, 184498, 258233, 299197, 299202, 176325, 233678, 282832, 356575, 356603, 184574, 61720, 315674, 282908, 299294, 282912, 233761, 282920, 315698, 332084, 282938, 168251, 307514, 332100, 323914, 201037, 282959, 348499, 348501, 168280, 323934, 332128, 381286, 242027, 242028, 160111, 315768, 315769, 291194, 291193, 291200, 340356, 242059, 315798, 291225, 242079, 283039, 299449, 291266, 373196, 283088, 283089, 242138, 176602, 291297, 242150, 283138, 324098, 233987, 283154, 291359, 348709, 348710, 283185, 234037, 234044, 332379, 111197, 242274, 176751, 356990, 291455, 152196, 316044, 184974, 316048, 316050, 176810, 299698, 291529, 242385, 299737, 234216, 234233, 242428, 291584, 299777, 291591, 291605, 283418, 283431, 234290, 201534, 348999, 283466, 234330, 201562, 275294, 127840, 349025, 177002, 308075, 242540, 242542, 201590, 177018, 308093, 291713, 340865, 299912, 349066, 316299, 234382, 308111, 308113, 209820, 283551, 177074, 127945, 340960, 340967, 324587, 201721, 234499, 357380, 234513, 316441, 300087, 21567, 308288, 160834, 349254, 250955, 300109, 234578, 234606, 300145, 349317, 177297, 308375, 324761, 119965, 234655, 300192, 234662, 300200, 373937, 300215, 283846, 283849, 259275, 316628, 259285, 357594, 251124, 316661, 283894, 292092, 234756, 242955, 177420, 292145, 300342, 333114, 333115, 193858, 300354, 300355, 234830, 259408, 283990, 357720, 300378, 300379, 316764, 292194, 284015, 234864, 316786, 243073, 112019, 234902, 333224, 374189, 284090, 54719, 415170, 292291, 300488, 300490, 234957, 144862, 300526, 259569, 308722, 251379, 300539, 210429, 366081, 292359, 218632, 316951, 374297, 349727, 374327, 210489, 235069, 349764, 194118, 292426, 333389, 128589, 333394, 128600, 235096, 300643, 300645, 415334, 243306, 54895, 325246, 333438, 235136, 317102, 300729, 333508, 259780, 333522, 325345, 153318, 333543, 284410, 284425, 300810, 300812, 284430, 161553, 284436, 169751, 325403, 341791, 325411, 186148, 186149, 333609, 284460, 300849, 325444, 153416, 325449, 317268, 325460, 341846, 284508, 300893, 259937, 284515, 276326, 292713, 292719, 325491, 333687, 350072, 317305, 317308, 325508, 333700, 243590, 243592, 325514, 350102, 333727, 219046, 333734, 284584, 292783, 300983, 153553, 292835, 6116, 292838, 317416, 325620, 333827, 243720, 292901, 178215, 325675, 243763, 325695, 333902, 194667, 284789, 284790, 292987, 194692, 235661, 153752, 284827, 284840, 284843, 227517, 309443, 227525, 301255, 227536, 301271, 325857, 334049, 317676, 309504, 194832, 227601, 325904, 334104, 211239, 317738, 325930, 227655, 383309, 391521, 366948, 285031, 416103, 227702, 211327, 227721, 285074, 227730, 285083, 293275, 39323, 317851, 227743, 285089, 293281, 301482, 342454, 293309, 317889, 326083, 326093, 285152, 195044, 236020, 317949, 342537, 309770, 334345, 342560, 227881, 293420, 236080, 23093, 244279, 244280, 301635, 309831, 55880, 326229, 309847, 375396, 244326, 301688, 244345, 301702, 334473, 326288, 227991, 285348, 318127, 293552, 342705, 285362, 154295, 342714, 342757, 285419, 170735, 359166, 228099, 285443, 285450, 326413, 285457, 285467, 326428, 318247, 293673, 318251, 301872, 285493, 285496, 342846, 293702, 318279, 244569, 252766, 301919, 293729, 351078, 342888, 310132, 228214, 269179, 211835, 228232, 416649, 236427, 252812, 293780, 310166, 400282, 310177, 359332, 359333, 293801, 326571, 252848, 326580, 326586, 326602, 56270, 252878, 359380, 343020, 203758, 293894, 384015, 293911, 326684, 384031, 113710, 203829, 285795, 253028, 228457, 318571, 187508, 302202, 285819, 285823, 318602, 228492, 162962, 187539, 326803, 359574, 285850, 351389, 253098, 302251, 294069, 367798, 294075, 64699, 228541, 343230, 310496, 228587, 302319, 351475, 228608, 318732, 245018, 318746, 130342, 130344, 130347, 286012, 294210, 359747, 359748, 318804, 294236, 327023, 327030, 310650, 179586, 294278, 318860, 318876, 245160, 286128, 286133, 310714, 302523, 228796, 302530, 228804, 310725, 302539, 310731, 310735, 327122, 310747, 286176, 187877, 310758, 40439, 253431, 286201, 245249, 228868, 302602, 294413, 359949, 253456, 302613, 302620, 146976, 245291, 425534, 310853, 286281, 196184, 212574, 204386, 204394, 138862, 310896, 294517, 286344, 188049, 229011, 229021, 302751, 245413, 212649, 286387, 286392, 302778, 286400, 319176, 212684, 302798, 286419, 294621, 294629, 286457, 286463, 319232, 360194, 278292, 278294, 294699, 286507, 319289, 237397, 188250, 237411, 327556, 188293, 311183, 294806, 294808, 253851, 319393, 294824, 253868, 343993, 188349, 98240, 294849, 24531, 212953, 360416, 294887, 253930, 278507, 311277, 327666, 278515 ]
c14e5ca3f9c38f1e6607525d67ac34d59cd5c431
b673f58874461f9ab28ded026b30fb2b1dce1511
/AZDMV/Extensions/Error+Extensions.swift
2ec36cf46965900b6969577d7169e9ace4674186
[ "MIT" ]
permissive
foma24/AZDMV
cffe3363e322cb7d74d709901abd6defca4631c3
b9fc4115aa7c04bb33298611ffbc43e79ced8f0a
refs/heads/master
2023-02-27T12:28:07.604975
2019-05-04T16:44:03
2019-05-04T16:44:03
null
0
0
null
null
null
null
UTF-8
Swift
false
false
730
swift
// // Error+Extensions.swift // AZDMV // // Created by Apollo Zhu on 9/14/18. // Copyright © 2016-2019 DMV A-Z. MIT License. // import Foundation struct AnyError: Error { var localizedDescription: String static let errored: Error = AnyError(localizedDescription: NSLocalizedString( "AnyError.errored", value: "Oops, something went wrong", comment: "Generic error description" )) } import StatusAlert func showAlert(title: String, message: String? = nil) { let statusAlert = StatusAlert() if #available(iOS 10.0, *) { statusAlert.appearance.blurStyle = .prominent } statusAlert.title = title statusAlert.message = message statusAlert.showInKeyWindow() }
[ -1 ]
cbfde6fb8cef43d51d29d5184998b13f64151735
d4d908b475881f7716a06cf872854cc727f33e42
/E-Legal/ViewControllers/SectionHeader.swift
2a172b3153b4d31384b2bebd02181f3731948f1c
[]
no_license
E-legal-iOS/elegal-ios
1d67f3814738942fb77c9974ab3e68f73d1337cd
a66c59005a7426819d430bd40f0dde13fcf2995e
refs/heads/master
2020-04-06T07:03:03.644211
2016-09-04T19:44:21
2016-09-04T19:44:21
63,629,399
0
0
null
2016-07-29T15:51:50
2016-07-18T19:03:47
Swift
UTF-8
Swift
false
false
455
swift
// // SectionHeader.swift // E-Legal // // Created by Ahmad Ishfaq on 9/4/16. // Copyright © 2016 Toqir Ahmad. All rights reserved. // import UIKit class SectionHeader: UIView { @IBOutlet weak var label: UILabel! /* // Only override drawRect: if you perform custom drawing. // An empty implementation adversely affects performance during animation. override func drawRect(rect: CGRect) { // Drawing code } */ }
[ -1 ]
0818ee2a66077e4a3663eeff736985013eef76e8
c1b5d4d4173c8ea508d727977e75d45645e391f3
/WorkFromWherever/SoundManager.swift
214adff415e06e41cc9f65ca70d0a8467ade2b82
[ "MIT" ]
permissive
stakes/WorkFromWherever
7026ff3336c410c26e98f9593a29b99306d02950
2d980ba1dbf08dcce13d2301423c1871479531e0
refs/heads/main
2023-08-22T06:37:09.773698
2021-10-16T22:11:51
2021-10-16T22:11:51
341,029,115
0
0
null
null
null
null
UTF-8
Swift
false
false
1,583
swift
// // SoundManager.swift // WorkFromWherever // // Created by Jay Stakelon on 2/21/21. // import Foundation import AVFoundation class SoundManager: ObservableObject { let engine = AVAudioEngine() let mixer = AVAudioMixerNode() var tracks:[Track] = [] init() { engine.attach(mixer) engine.connect(mixer, to: engine.outputNode, format: nil) do { try engine.start() } catch { print("Engine didn't start: \(error)") } // engine.mainMixerNode.installTap(onBus: 0, bufferSize: 1024, format: nil) { (buffer, time) in // self.processAudioData(buffer: buffer) // } } func addTrack(_ track:Track) { let i = tracks.first { $0.sound.id == track.sound.id } if (i == nil) { engine.attach(track.player) engine.connect(track.player, to: mixer, format: nil) tracks.append(track) track.play() } } func removeTrack(_ track:Track) { engine.detach(track.player) } func removeAllTracks() { tracks.forEach { track in engine.detach(track.player) } tracks = [] } func isTrackForSoundPlaying(_ sound: Sound) -> Bool { tracks.forEach { track in print(track) } return false } // func processAudioData(buffer: AVAudioPCMBuffer){ // guard let channelData = buffer.floatChannelData?[0] else {return} // let frames = buffer.frameLength // print(frames) // } }
[ -1 ]
d808013778503bfed74c2c72cd87aca28367ad37
7a09af1ee0510eb639245e44b66c9f227b6cf055
/AutoVelocidadesUITests/AutoVelocidadesUITests.swift
bc93e26f097af29f3ea43169cd66c5caad82f9a2
[]
no_license
jaragorns/autoVelocidades
c605c9c31b06eccbd73759443bd3f048d053982c
db9d19c8c9c3b79f0ef8c866413686f354068eec
refs/heads/master
2021-01-10T10:33:02.938963
2016-03-29T00:26:34
2016-03-29T00:26:34
54,932,925
0
0
null
null
null
null
UTF-8
Swift
false
false
1,275
swift
// // AutoVelocidadesUITests.swift // AutoVelocidadesUITests // // Created by Jonathan Silva on 28/03/16. // Copyright © 2016 Jonathan Silva. All rights reserved. // import XCTest class AutoVelocidadesUITests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is usually best to stop immediately when a failure occurs. continueAfterFailure = false // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. XCUIApplication().launch() // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testExample() { // Use recording to get started writing UI tests. // Use XCTAssert and related functions to verify your tests produce the correct results. } }
[ 333827, 243720, 282634, 313356, 155665, 305173, 237599, 241695, 223269, 354342, 229414, 292901, 315433, 354346, 325675, 278571, 102441, 124974, 282671, 102446, 229425, 243763, 241717, 229431, 180279, 215095, 319543, 213051, 288829, 325695, 286787, 288835, 307269, 237638, 239689, 233548, 311373, 315468, 278607, 311377, 354386, 223317, 315477, 354394, 323678, 321632, 315489, 315488, 45154, 280676, 313446, 227432, 215144, 233578, 194667, 307306, 217194, 288878, 319599, 278637, 278642, 284789, 131190, 288890, 292987, 215165, 227459, 194692, 235661, 278669, 323730, 278676, 311447, 153752, 327834, 284827, 299166, 278690, 233635, 311459, 215204, 299176, 184489, 278698, 284843, 278703, 184498, 278707, 125108, 180409, 278713, 295099, 258233, 299197, 280761, 280767, 223418, 227517, 299202, 139459, 309443, 176325, 131270, 301255, 299208, 227525, 280779, 227536, 282832, 301270, 229591, 301271, 280792, 311520, 325857, 280803, 182503, 319719, 307431, 295147, 317676, 286957, 125166, 125170, 125180, 184574, 125184, 309504, 217352, 125192, 125197, 227601, 125204, 319764, 278805, 315674, 282908, 299294, 125215, 282912, 233761, 278817, 311582, 211239, 282920, 125225, 317738, 311596, 315698, 98611, 125236, 307514, 282938, 168251, 278843, 287040, 319812, 311622, 227655, 280903, 319816, 323914, 201037, 282959, 229716, 289109, 379224, 323934, 391521, 239973, 381286, 313703, 285031, 416103, 280938, 242027, 321901, 278895, 287089, 199030, 227702, 315768, 291193, 291194, 223611, 248188, 313726, 311679, 240003, 158087, 313736, 227721, 242059, 285074, 227730, 240020, 190870, 315798, 190872, 291225, 317851, 293275, 285083, 283039, 227743, 285089, 293281, 305572, 301482, 289195, 377265, 299449, 311739, 293309, 278974, 311744, 317889, 291266, 278979, 278988, 289229, 281038, 326093, 278992, 283088, 283089, 281039, 279000, 242138, 176602, 160224, 291297, 279009, 188899, 195044, 242150, 279014, 279017, 311787, 281071, 319986, 236020, 279030, 311800, 279033, 317949, 279042, 233987, 283138, 287237, 322057, 309770, 342537, 279053, 182802, 283154, 303634, 279061, 303635, 279060, 279066, 188954, 322077, 291359, 227881, 293420, 236080, 283185, 289328, 279092, 23093, 244279, 244280, 338491, 234044, 301635, 309831, 322119, 55880, 377419, 303693, 281165, 301647, 281170, 326229, 309847, 189016, 115287, 287319, 111197, 295518, 283431, 287327, 242274, 244326, 279143, 279150, 281200, 287345, 313970, 287348, 301688, 189054, 287359, 297600, 303743, 291455, 301702, 164487, 279176, 311944, 311948, 184974, 316048, 311953, 316050, 287379, 227991, 295575, 289435, 303772, 205469, 221853, 285348, 314020, 295591, 279207, 295598, 279215, 318127, 285360, 342705, 299698, 287412, 166581, 285362, 154295, 293552, 287418, 303802, 314043, 291529, 287434, 225996, 363212, 287438, 242385, 303826, 164561, 279249, 279253, 158424, 230105, 299737, 322269, 342757, 295653, 289511, 230120, 330473, 234216, 285419, 289517, 279278, 312046, 215790, 170735, 125683, 230133, 199415, 234233, 242428, 279293, 322302, 289534, 291584, 299777, 228099, 291591, 295688, 322312, 285450, 312076, 285457, 295698, 166677, 283418, 285467, 221980, 281378, 234276, 318247, 262952, 262953, 279337, 318251, 289580, 262957, 293673, 164655, 301872, 242481, 303921, 234290, 285493, 230198, 285496, 301883, 201534, 289599, 281407, 295745, 222017, 293702, 318279, 283466, 281426, 279379, 295769, 201562, 281434, 322396, 275294, 301919, 230238, 293729, 279393, 349025, 281444, 303973, 279398, 177002, 308075, 242540, 242542, 310132, 295797, 228214, 207735, 295799, 279418, 269179, 177018, 308093, 314240, 291713, 158594, 240517, 287623, 228232, 416649, 279434, 316299, 299912, 308111, 308113, 293780, 310166, 209820, 277404, 240543, 283551, 310177, 289699, 189349, 289704, 279465, 293801, 177074, 304050, 289720, 289723, 189373, 213956, 281541, 19398, 213961, 279499, 56270, 191445, 304086, 183254, 183258, 234469, 314343, 304104, 324587, 183276, 320492, 203758, 320495, 234476, 289773, 287730, 277493, 240631, 320504, 214009, 312313, 312315, 312317, 234499, 293894, 320520, 230411, 322571, 234513, 238611, 140311, 293911, 316441, 238617, 197658, 113710, 189487, 281647, 322609, 312372, 203829, 238646, 300087, 238650, 320571, 21567, 308288, 160834, 336962, 314437, 349254, 238663, 300109, 207954, 234578, 296023, 205911, 277600, 281698, 281699, 285795, 230500, 322664, 228457, 318571, 279659, 234606, 300145, 238706, 312435, 187508, 279666, 300147, 230514, 302202, 285819, 314493, 285823, 150656, 234626, 279686, 222344, 285833, 285834, 318602, 228492, 337037, 234635, 162962, 187539, 308375, 324761, 285850, 296091, 119965, 302239, 330912, 300192, 339106, 306339, 234662, 300200, 249003, 238764, 322733, 208044, 302251, 279729, 294069, 300215, 294075, 64699, 228541, 283841, 148674, 283846, 312519, 279752, 283849, 148687, 290001, 189651, 316628, 279766, 189656, 279775, 304352, 298209, 304353, 310496, 279780, 228587, 279789, 290030, 302319, 234741, 283894, 316661, 208123, 292092, 279803, 228608, 320769, 234756, 322826, 242955, 312588, 318732, 318746, 320795, 320802, 304422, 130344, 292145, 298290, 312628, 300342, 222523, 286012, 181568, 279872, 294210, 216387, 286019, 279874, 300355, 300354, 193858, 304457, 230730, 372039, 294220, 296269, 234830, 224591, 238928, 222542, 296274, 314708, 318804, 283990, 357720, 300378, 300379, 294236, 292194, 230757, 281958, 134504, 306541, 314734, 327023, 234864, 312688, 284015, 296304, 230772, 314740, 314742, 290170, 310650, 224637, 306558, 290176, 243073, 179586, 306561, 294278, 314759, 296328, 298378, 296330, 318860, 314765, 368012, 304523, 292242, 279955, 306580, 314771, 224662, 234902, 282008, 314776, 318876, 282013, 290206, 148899, 298406, 282023, 241067, 279979, 314797, 279980, 286128, 279988, 173492, 284086, 286133, 284090, 302523, 310714, 228796, 302530, 280003, 228804, 310725, 306630, 292291, 300488, 415170, 306634, 280011, 302539, 300490, 310731, 370122, 310735, 312785, 222674, 234957, 280020, 280025, 310747, 239069, 144862, 286176, 187877, 310758, 280042, 280043, 300526, 282097, 296434, 308722, 40439, 288248, 286201, 300539, 288252, 312830, 286208, 290304, 228868, 292359, 218632, 230922, 302602, 294413, 304655, 323088, 282132, 230933, 302613, 282135, 316951, 374297, 302620, 313338, 282147, 222754, 306730, 312879, 230960, 288305, 239159, 290359, 157246, 288319, 288322, 280131, 349764, 310853, 124486, 194118, 288328, 282182, 286281, 292426, 224852, 290391, 128600, 306777, 235096, 239192, 212574, 99937, 204386, 323171, 300643, 300645, 282214, 312937, 224874, 243306, 310896, 294517, 314997, 288377, 290425, 325246, 235136, 280193, 282244, 239238, 288391, 286344, 323208, 282248, 179853, 286351, 188049, 239251, 229011, 280217, 323226, 179868, 229021, 302751, 282272, 198304, 282279, 298664, 298666, 317102, 286387, 300725, 286392, 302778, 306875, 280252, 296636, 282302, 280253, 286400, 323265, 323262, 280259, 321220, 282309, 321217, 239305, 296649, 306891, 280266, 212684, 302798, 9935, 241360, 282321, 286419, 241366, 280279, 282330, 18139, 294621, 280285, 282336, 294629, 153318, 12009, 282347, 288492, 282349, 323315, 67316, 34547, 286457, 284410, 288508, 200444, 282366, 286463, 319232, 278273, 288515, 280326, 282375, 323335, 284425, 300810, 282379, 116491, 280333, 216844, 284430, 300812, 161553, 124691, 278292, 118549, 116502, 282390, 284436, 278294, 325403, 321308, 282399, 241440, 282401, 315172, 186148, 186149, 286507, 294699, 284460, 280367, 300849, 282418, 280373, 282424, 280377, 321338, 282428, 280381, 345918, 413500, 280386, 280391, 153416, 315209, 159563, 280396, 307024, 237397, 307030, 18263, 188250, 284508, 300893, 237411, 284515, 276326, 282471, 296807, 292713, 282476, 292719, 296815, 313204, 317305, 124795, 317308, 339840, 315265, 280451, 327556, 188293, 282503, 243592, 305032, 325514, 315272, 315275, 67464, 184207, 124816, 311183, 282517, 294806, 214936, 294808, 124826, 239515, 214943, 298912, 294820, 333734, 219046, 284584, 294824, 298921, 292783, 126896, 200628, 300983, 343993, 288698, 98240, 294849, 214978, 280517, 280518, 214983, 282572, 282573, 153553, 24531, 231382, 323554, 292835, 190437, 292838, 294887, 317416, 313322, 298987, 278507, 311277, 296942, 124912, 278515, 325620, 239610 ]
cfb5128c7b299c56032f348149707e671b460d48
63bd256f0186c1e29f9353d71e4e6ef055b8d626
/AttestationGenerator/DisplayView.swift
bd1602d4ef17c1417a10fe7d0a5a1428d4049308
[]
no_license
jeyries/AttestationGenerator
d81c110b627227ae1fa602a51cc1e7fc68bf4526
41dc0c3f332ab608e4af4711ba190d872c1c1057
refs/heads/main
2023-01-28T11:24:43.075720
2020-12-09T16:47:17
2020-12-09T16:47:17
320,016,302
0
0
null
null
null
null
UTF-8
Swift
false
false
1,455
swift
// // DisplayView.swift // AttestationGenerator // // Created by Julien Eyriès on 09/12/2020. // import SwiftUI struct DisplayView: View { let attestation: Attestation @State var lastBrightness: CGFloat = 0.0 var body: some View { VStack { Image(uiImage: attestation.qrCode) //.interpolation(.none) .resizable() .aspectRatio(1.0, contentMode: .fit) Text(attestation.textContent) //.padding(.horizontal, 40) .multilineTextAlignment(.center) .font(Font.system(size: 20).bold()) // .regular(size: 20.0) // FontFamily.SFProText.regular.font(size: size)! } .padding(16) .preferredColorScheme(.dark) .onAppear { updateBrightnessForQRCodeReadability() print(attestation.qrCodeContent) } .onDisappear() { putBrightnessBackToOriginalValue() } } private func updateBrightnessForQRCodeReadability() { lastBrightness = UIScreen.main.brightness UIScreen.main.brightness = CGFloat(1.0) } private func putBrightnessBackToOriginalValue() { UIScreen.main.brightness = lastBrightness } } struct DisplayView_Previews: PreviewProvider { static var previews: some View { DisplayView(attestation: .placeHolder) } }
[ -1 ]
b274a6aa1eb125c8f2dc00edaa5b7a6dcd479c19
cdf97b4e7f3eca20a712a3beb86fec106394a304
/Tarea_Semana4_CreaTuPizza_AppleWatch WatchKit Extension/InterfaceController.swift
d7b7f15d4fb7ec8be6cd63c4ad55586f460fb42b
[]
no_license
dantuknal/Coursera_IOS2_PizzaWatch
4294ca98cfc6414bf2bc5ab80b730b9a64ff1f63
f3ad17c3d6147d0e5f6cd2615193da3fb69df590
refs/heads/master
2021-01-01T04:30:55.655520
2016-05-17T19:35:33
2016-05-17T19:35:33
59,052,816
0
0
null
null
null
null
UTF-8
Swift
false
false
1,072
swift
// // InterfaceController.swift // Tarea_Semana4_CreaTuPizza_AppleWatch WatchKit Extension // // Created by Diseño01 on 10/05/16. // Copyright © 2016 DanTuknal. All rights reserved. // import WatchKit import Foundation class InterfaceController: WKInterfaceController { var PizzaOrder = Order() @IBOutlet var botOrdenar: WKInterfaceButton! override func awakeWithContext(context: AnyObject?) { super.awakeWithContext(context) // Configure interface objects here. botOrdenar.setBackgroundColor(UIColor(red: 226/255, green: 101/255, blue: 47/255, alpha: 1)) } override func willActivate() { // This method is called when watch view controller is about to be visible to user super.willActivate() } override func didDeactivate() { // This method is called when watch view controller is no longer visible super.didDeactivate() } @IBAction func NuevaOrden() { pushControllerWithName("menu", context: PizzaOrder) } }
[ -1 ]
91297e4de9cc887df5e63c86e09b1aa94a438155
bab305bd39fffa7222d2e871c8d2f041a11a19e9
/DepositUITests/DepositUITests.swift
10f1b54d241b8290a83acde0de264c82bfbeafc3
[]
no_license
AK-10/PandDMoneyManager
904979dd0612bbdae337514b181596ddb940b916
45665f6c313f46f1226b6c0cb7dd50ab4e050f76
refs/heads/master
2021-01-01T06:42:46.784664
2017-09-13T13:24:48
2017-09-13T13:24:48
97,490,541
0
0
null
null
null
null
UTF-8
Swift
false
false
1,255
swift
// // DepositUITests.swift // DepositUITests // // Created by Atsushi KONISHI on 2017/06/25. // Copyright © 2017年 小西篤志. All rights reserved. // import XCTest class DepositUITests: XCTestCase { override func setUp() { super.setUp() // Put setup code here. This method is called before the invocation of each test method in the class. // In UI tests it is usually best to stop immediately when a failure occurs. continueAfterFailure = false // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. XCUIApplication().launch() // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. } override func tearDown() { // Put teardown code here. This method is called after the invocation of each test method in the class. super.tearDown() } func testExample() { // Use recording to get started writing UI tests. // Use XCTAssert and related functions to verify your tests produce the correct results. } }
[ 155665, 237599, 229414, 278571, 229425, 180279, 229431, 319543, 213051, 286787, 237638, 311373, 278607, 196687, 311377, 368732, 180317, 278637, 319599, 278642, 131190, 131199, 278669, 278676, 311447, 327834, 278684, 278690, 311459, 278698, 278703, 278707, 180409, 278713, 295099, 139459, 131270, 229591, 147679, 311520, 147680, 319719, 295147, 286957, 319764, 278805, 311582, 278817, 311596, 336177, 98611, 278843, 287040, 319812, 311622, 319816, 229716, 278895, 287089, 139641, 311679, 311692, 106893, 156069, 311723, 377265, 311739, 319931, 278974, 336319, 311744, 278979, 336323, 278988, 278992, 279000, 279009, 369121, 188899, 279014, 319976, 279017, 311787, 319986, 279030, 311800, 279033, 279042, 287237, 377352, 279053, 303634, 303635, 279060, 279061, 279066, 188954, 279092, 377419, 303693, 115287, 189016, 287319, 295518, 287327, 279143, 279150, 287345, 287348, 189054, 287359, 303743, 164487, 311944, 279176, 344714, 311948, 311950, 311953, 287379, 336531, 295575, 303772, 205469, 221853, 279207, 295591, 295598, 279215, 279218, 287412, 164532, 287418, 303802, 66243, 287434, 287438, 279249, 303826, 369365, 369366, 279253, 230105, 295653, 230120, 279278, 312046, 230133, 279293, 205566, 295688, 312076, 295698, 221980, 336678, 262952, 262953, 279337, 262957, 164655, 328495, 303921, 230198, 295745, 222017, 279379, 295769, 230238, 230239, 279393, 303973, 279398, 295797, 295799, 279418, 336765, 287623, 279434, 320394, 189327, 189349, 279465, 304050, 189373, 213956, 345030, 213961, 279499, 304086, 304104, 123880, 320492, 320495, 287730, 320504, 214009, 312313, 312317, 328701, 328705, 418819, 320520, 230411, 320526, 238611, 140311, 238617, 197658, 336930, 132140, 189487, 312372, 238646, 238650, 320571, 336962, 238663, 296023, 205911, 156763, 214116, 230500, 279659, 238706, 312435, 279666, 230514, 279686, 222344, 337037, 296091, 238764, 279729, 148674, 312519, 279752, 148687, 189651, 279766, 189656, 279775, 304352, 304353, 279780, 279789, 279803, 320769, 312588, 320795, 320802, 304422, 312628, 345398, 222523, 181568, 279872, 279874, 304457, 230730, 345418, 337228, 296269, 222542, 238928, 296274, 230757, 296304, 312688, 230772, 337280, 296328, 296330, 304523, 9618, 279955, 148899, 279979, 279980, 173492, 279988, 280003, 370122, 280011, 337359, 329168, 312785, 222674, 329170, 280020, 280025, 239069, 320997, 280042, 280043, 329198, 337391, 296434, 288248, 288252, 312830, 230922, 304655, 329231, 230933, 222754, 312879, 230960, 288305, 239159, 157246, 288319, 288322, 280131, 124486, 288328, 239192, 345697, 312937, 312941, 206447, 288377, 337533, 280193, 239238, 288391, 239251, 280217, 198304, 337590, 280252, 296636, 280253, 321217, 280259, 321220, 239305, 296649, 280266, 9935, 313042, 280279, 18139, 280285, 321250, 337638, 181992, 288492, 34547, 67316, 313082, 288508, 288515, 280326, 116491, 280333, 124691, 116502, 321308, 321309, 280367, 280373, 280377, 321338, 280381, 345918, 280386, 280391, 280396, 18263, 370526, 296807, 296815, 313200, 313204, 124795, 280451, 67464, 305032, 124816, 214936, 337816, 124826, 239515, 214943, 313257, 288698, 214978, 280517, 280518, 214983, 231382, 329696, 190437, 313322, 329707, 174058, 296942, 124912, 313338, 239610, 182277, 313356, 305173, 223269, 354342, 354346, 313388, 124974, 321589, 215095, 288829, 288835, 313415, 239689, 354386, 329812, 223317, 354394, 321632, 280676, 313446, 215144, 288878, 288890, 215165, 329884, 215204, 125108, 280761, 223418, 280767, 338118, 280779, 321744, 280792, 280803, 182503, 338151, 125166, 125170, 395511, 313595, 125180, 125184, 125192, 125197, 125200, 125204, 338196, 125215, 125225, 338217, 321839, 125236, 280903, 289109, 379224, 239973, 313703, 280938, 321901, 354671, 199030, 223611, 248188, 313726, 240003, 158087, 313736, 240020, 190870, 190872, 289185, 305572, 289195, 338359, 289229, 281038, 281039, 281071, 322057, 182802, 322077, 289328, 338491, 322119, 281165, 281170, 281200, 313970, 297600, 289435, 314020, 248494, 166581, 314043, 363212, 158424, 322269, 338658, 289511, 330473, 330476, 289517, 215790, 125683, 199415, 322302, 289534, 35584, 322312, 346889, 264971, 322320, 166677, 207639, 281378, 289580, 281407, 289599, 281426, 281434, 322396, 281444, 207735, 314240, 158594, 330627, 240517, 289691, 240543, 289699, 289704, 289720, 289723, 281541, 19398, 191445, 183254, 183258, 207839, 314343, 183276, 289773, 248815, 240631, 330759, 322571, 330766, 281647, 322609, 314437, 207954, 339031, 314458, 281698, 281699, 322664, 314493, 150656, 347286, 330912, 339106, 306339, 249003, 208044, 322733, 3243, 339131, 290001, 339167, 298209, 290030, 208123, 322826, 126229, 298290, 208179, 159033, 216387, 372039, 224591, 331091, 314708, 150868, 314711, 314721, 281958, 314727, 134504, 306541, 314740, 314742, 290170, 224637, 306558, 290176, 306561, 314752, 314759, 298378, 314765, 314771, 306580, 224662, 282008, 314776, 282013, 290206, 314788, 298406, 314790, 282023, 241067, 314797, 306630, 306634, 339403, 191980, 282097, 306678, 191991, 290304, 323079, 323083, 323088, 282132, 282135, 175640, 282147, 306730, 290359, 323132, 282182, 224848, 224852, 290391, 306777, 282214, 224874, 314997, 290425, 339579, 282244, 323208, 282248, 323226, 282272, 282279, 298664, 298666, 306875, 282302, 323262, 323265, 282309, 306891, 241360, 282321, 241366, 282330, 282336, 12009, 282347, 282349, 323315, 200444, 282366, 249606, 282375, 323335, 282379, 216844, 118549, 282390, 282399, 241440, 282401, 339746, 315172, 216868, 241447, 282418, 282424, 282428, 413500, 241471, 315209, 159563, 307024, 307030, 241494, 307038, 282471, 282476, 339840, 315265, 282503, 315272, 315275, 184207, 282517, 298912, 118693, 298921, 126896, 200628, 282572, 282573, 323554, 298987, 282634, 241695, 315431, 315433, 102441, 102446, 282671, 241717, 307269, 315468, 233548, 315477, 200795, 323678, 315488, 315489, 45154, 233578, 307306, 241809, 323730, 299166, 233635, 299176, 184489, 323761, 184498, 258233, 299197, 299202, 176325, 299208, 282832, 356575, 307431, 184574, 217352, 315674, 282908, 299294, 282912, 233761, 282920, 315698, 332084, 307514, 282938, 127292, 168251, 323914, 201037, 282959, 250196, 168280, 323934, 381286, 242027, 242028, 250227, 315768, 315769, 291194, 291193, 291200, 242059, 315798, 291225, 242079, 283039, 299449, 291266, 283088, 283089, 242138, 176602, 160224, 291297, 242150, 283138, 233987, 324098, 340489, 283154, 291359, 283185, 234037, 340539, 234044, 332379, 111197, 242274, 291455, 316044, 184974, 316048, 316050, 340645, 176810, 299698, 291529, 225996, 135888, 242385, 299737, 234216, 234233, 242428, 291584, 299777, 291591, 291605, 283418, 234276, 283431, 242481, 234290, 201534, 283466, 201562, 234330, 275294, 349025, 357219, 177002, 308075, 242540, 201590, 177018, 308093, 291713, 340865, 299912, 316299, 234382, 308111, 308113, 209820, 283551, 177074, 127945, 340960, 234469, 340967, 324587, 234476, 201721, 234499, 234513, 316441, 300087, 21567, 308288, 160834, 349254, 300109, 234578, 250965, 250982, 234606, 300145, 300147, 234626, 234635, 177297, 308375, 324761, 119965, 234655, 300192, 234662, 300200, 324790, 300215, 283841, 283846, 283849, 316628, 251124, 316661, 283894, 234741, 292092, 234756, 242955, 177420, 292145, 300342, 333114, 333115, 193858, 300354, 300355, 234830, 283990, 357720, 300378, 300379, 316764, 292194, 284015, 234864, 316786, 243073, 292242, 112019, 234902, 333224, 284086, 259513, 284090, 54719, 415170, 292291, 300488, 300490, 234957, 144862, 300526, 308722, 300539, 210429, 292359, 218632, 316951, 374297, 235069, 349764, 194118, 292424, 292426, 333389, 349780, 128600, 235096, 300643, 300645, 243306, 325246, 333438, 235136, 317102, 300725, 300729, 333508, 333522, 325345, 153318, 333543, 284410, 284425, 300810, 300812, 284430, 161553, 284436, 325403, 341791, 325411, 186148, 186149, 333609, 284460, 300849, 325444, 153416, 325449, 317268, 325460, 341846, 284508, 300893, 284515, 276326, 292713, 292719, 325491, 333687, 317305, 317308, 333700, 325508, 243590, 243592, 325514, 350091, 350092, 350102, 333727, 333734, 219046, 284584, 292783, 300983, 153553, 292835, 6116, 292838, 317416, 325620, 333827, 243720, 292901, 325675, 243763, 325695, 333902, 227432, 194667, 284789, 284790, 292987, 227459, 194692, 235661, 333968, 153752, 284827, 333990, 284840, 284843, 227517, 309443, 227525, 301255, 227536, 301270, 301271, 325857, 334049, 317676, 309504, 194832, 227601, 325904, 334104, 211239, 334121, 317738, 325930, 227655, 383309, 391521, 285031, 416103, 227702, 211327, 227721, 285074, 227730, 317851, 293275, 285083, 227743, 293281, 285089, 301482, 375211, 334259, 293309, 317889, 326083, 129484, 326093, 285152, 195044, 334315, 236020, 293368, 317949, 342537, 309770, 334345, 342560, 227881, 293420, 236080, 23093, 244279, 244280, 301635, 309831, 55880, 301647, 326229, 309847, 244311, 244326, 301688, 244345, 301702, 334473, 326288, 227991, 285348, 318127, 285360, 293552, 285362, 342705, 154295, 342757, 285419, 170735, 342775, 375552, 228099, 285443, 285450, 326413, 285457, 285467, 326428, 318247, 293673, 318251, 301872, 285493, 285496, 301883, 342846, 293702, 318279, 244569, 301919, 293729, 351078, 310132, 228214, 269179, 228232, 416649, 252812, 293780, 310166, 277404, 310177, 293801, 326571, 326580, 326586, 359365, 211913, 56270, 203758, 277493, 293894, 293911, 326684, 113710, 318515, 203829, 277600, 285795, 228457, 318571, 187508, 302202, 285819, 285823, 285833, 285834, 318602, 228492, 162962, 187539, 326803, 285850, 302239, 302251, 294069, 294075, 64699, 228541, 343230, 310496, 228587, 302319, 228608, 318732, 318746, 245018, 130342, 130344, 130347, 286012, 294210, 286019, 294220, 318804, 294236, 327023, 327030, 310650, 179586, 294278, 318860, 368012, 318876, 343457, 245160, 286128, 286133, 310714, 302523, 228796, 302530, 228804, 310725, 302539, 310731, 310735, 327122, 310747, 286176, 187877, 310758, 40439, 286201, 359931, 286208, 245249, 228868, 302602, 294413, 359949, 302613, 302620, 245291, 310853, 286281, 196184, 212574, 204386, 204394, 138862, 310896, 294517, 286344, 179853, 286351, 188049, 229011, 179868, 229021, 302751, 245413, 212649, 286387, 286392, 302778, 286400, 212684, 302798, 286419, 294621, 294629, 286457, 286463, 319232, 278273, 278292, 278294, 286507, 294699, 319289, 237397, 188250, 237411, 327556, 188293, 311183, 294806, 294808, 319393, 294820, 294824, 343993, 98240, 294849, 24531, 294887, 278507, 311277, 327666, 278515 ]
16d4d14986ec0a19de6e59cfcb3d1f6538bdc4c5
53cfd7ddcf6eac2e2fd84fe06554f04f9f041bcf
/Codegen/SwaggerClient/Classes/Swaggers/APIs/PccObservationAPI.swift
02ba741d139b0eab593458ba96a692973752e33d
[ "Apache-2.0" ]
permissive
eldhoselomy/swagger-codegen
e55f92e58c660f141841ffe482c54498247c9cb4
4d3e461ab8c2e1e05653872e5f5bdee47479adf9
refs/heads/master
2020-06-15T16:09:57.059351
2019-08-22T14:10:56
2019-08-22T14:10:56
195,337,007
0
1
NOASSERTION
2019-07-05T04:08:21
2019-07-05T04:08:21
null
UTF-8
Swift
false
false
7,065
swift
// // CooeyAPIClient // PccObservationAPI.swift // // Generated by Eldhose Lomy // https://github.com/swagger-api/swagger-codegen // import Foundation import Alamofire open class PccObservationAPI { /** - parameter patientId: (path) - parameter tenantId: (query) (optional) - parameter completion: completion handler to receive the data and the error objects */ open class func getVitalBaselines(patientId: String, tenantId: String? = nil, completion: @escaping ((_ data: String?,_ error: Error?) -> Void)) { getVitalBaselinesWithRequestBuilder(patientId: patientId, tenantId: tenantId).execute { (response, error) -> Void in completion(response?.body, error) } } /** - GET /ehealth/v2/pcc/observation/patients/{patientId}/baselines - examples: [{contentType=application/json, example=""}] - parameter patientId: (path) - parameter tenantId: (query) (optional) - returns: RequestBuilder<String> */ open class func getVitalBaselinesWithRequestBuilder(patientId: String, tenantId: String? = nil) -> RequestBuilder<String> { var path = "/ehealth/v2/pcc/observation/patients/{patientId}/baselines" let patientIdPreEscape = "\(patientId)" let patientIdPostEscape = patientIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" path = path.replacingOccurrences(of: "{patientId}", with: patientIdPostEscape, options: .literal, range: nil) let URLString = SwaggerClientAPI.basePath + path let parameters: [String:Any]? = nil var url = URLComponents(string: URLString) url?.queryItems = APIHelper.mapValuesToQueryItems([ "tenantId": tenantId ]) let requestBuilder: RequestBuilder<String>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) } /** - parameter vitalId: (path) - parameter tenantId: (query) (optional) - parameter completion: completion handler to receive the data and the error objects */ open class func getVitalByVitalId(vitalId: String, tenantId: String? = nil, completion: @escaping ((_ data: String?,_ error: Error?) -> Void)) { getVitalByVitalIdWithRequestBuilder(vitalId: vitalId, tenantId: tenantId).execute { (response, error) -> Void in completion(response?.body, error) } } /** - GET /ehealth/v2/pcc/observation/{vitalId} - examples: [{contentType=application/json, example=""}] - parameter vitalId: (path) - parameter tenantId: (query) (optional) - returns: RequestBuilder<String> */ open class func getVitalByVitalIdWithRequestBuilder(vitalId: String, tenantId: String? = nil) -> RequestBuilder<String> { var path = "/ehealth/v2/pcc/observation/{vitalId}" let vitalIdPreEscape = "\(vitalId)" let vitalIdPostEscape = vitalIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" path = path.replacingOccurrences(of: "{vitalId}", with: vitalIdPostEscape, options: .literal, range: nil) let URLString = SwaggerClientAPI.basePath + path let parameters: [String:Any]? = nil var url = URLComponents(string: URLString) url?.queryItems = APIHelper.mapValuesToQueryItems([ "tenantId": tenantId ]) let requestBuilder: RequestBuilder<String>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) } /** - parameter patientId: (path) - parameter tenantId: (query) (optional) - parameter completion: completion handler to receive the data and the error objects */ open class func getVitalsByPatientId(patientId: String, tenantId: String? = nil, completion: @escaping ((_ data: String?,_ error: Error?) -> Void)) { getVitalsByPatientIdWithRequestBuilder(patientId: patientId, tenantId: tenantId).execute { (response, error) -> Void in completion(response?.body, error) } } /** - GET /ehealth/v2/pcc/observation/patients/{patientId} - examples: [{contentType=application/json, example=""}] - parameter patientId: (path) - parameter tenantId: (query) (optional) - returns: RequestBuilder<String> */ open class func getVitalsByPatientIdWithRequestBuilder(patientId: String, tenantId: String? = nil) -> RequestBuilder<String> { var path = "/ehealth/v2/pcc/observation/patients/{patientId}" let patientIdPreEscape = "\(patientId)" let patientIdPostEscape = patientIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" path = path.replacingOccurrences(of: "{patientId}", with: patientIdPostEscape, options: .literal, range: nil) let URLString = SwaggerClientAPI.basePath + path let parameters: [String:Any]? = nil var url = URLComponents(string: URLString) url?.queryItems = APIHelper.mapValuesToQueryItems([ "tenantId": tenantId ]) let requestBuilder: RequestBuilder<String>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) } /** - parameter body: (body) (optional) - parameter tenantId: (query) (optional) - parameter completion: completion handler to receive the data and the error objects */ open class func postVital(body: String? = nil, tenantId: String? = nil, completion: @escaping ((_ data: String?,_ error: Error?) -> Void)) { postVitalWithRequestBuilder(body: body, tenantId: tenantId).execute { (response, error) -> Void in completion(response?.body, error) } } /** - POST /ehealth/v2/pcc/observation - examples: [{contentType=application/json, example=""}] - parameter body: (body) (optional) - parameter tenantId: (query) (optional) - returns: RequestBuilder<String> */ open class func postVitalWithRequestBuilder(body: String? = nil, tenantId: String? = nil) -> RequestBuilder<String> { let path = "/ehealth/v2/pcc/observation" let URLString = SwaggerClientAPI.basePath + path let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) var url = URLComponents(string: URLString) url?.queryItems = APIHelper.mapValuesToQueryItems([ "tenantId": tenantId ]) let requestBuilder: RequestBuilder<String>.Type = SwaggerClientAPI.requestBuilderFactory.getBuilder() return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) } }
[ -1 ]
4462f2f7c120fc52b4a1a5a6064c032d3c25bba4
6897f346211568f2d9785bb942dac248b1875e73
/Thingy/SharedView.swift
211a3c8335d582fcfac8b22d33a15640c08e7ae5
[]
no_license
howardsl1/Fair-Feed
609582492c99613454ea9f3a00b92d73465a7573
8a636ad5b0c964d3426f0422ac4f83d424f71420
refs/heads/master
2023-02-03T07:30:43.167353
2020-12-28T01:29:00
2020-12-28T01:29:00
293,887,469
0
0
null
null
null
null
UTF-8
Swift
false
false
2,159
swift
// // SharedView.swift // Thingy // // Created by Sam Howard on 9/27/20. // Copyright © 2020 Sam Howard. All rights reserved. // import UIKit import RealmSwift class SharedView: UIViewController { @IBOutlet var state: UILabel! @IBOutlet var custPost: UITextView! @IBOutlet var busResponse: UITextView! @IBOutlet var busReview: UITextView! var stateText = String() var postText = String() var brespText = String() var brevText = String() var disputed = false let realm = try! Realm() override func viewDidLoad() { super.viewDidLoad() render1() render2() let badState = "Bad" if badState == state.text { disputed = true save() } else { save() } if busResponse.text.isEmpty && busReview.text.isEmpty && state.text == "Bad" { } else if state.text == "Bad" && (busResponse != nil) && (busReview != nil) { saveNewState() displayNewState() } // Do any additional setup after loading the view. } func render1() { let data = try! realm.objects(Data.self) for post in data { custPost.text = post.u1post state.text = post.state } } func render2() { let data = try! realm.objects(Data2.self) for post in data { busResponse.text = post.businessResp busReview.text = post.businessRev } } func save() { let data = Disputed() data.disputedAlert = disputed realm.beginWrite() realm.add(data) try! realm.commitWrite() } func saveNewState() { let saveState = Data() saveState.state = "Disputed" saveState.u1post = custPost.text realm.beginWrite() realm.add(saveState) try! realm.commitWrite() } func displayNewState() { let data = try! realm.objects(Data.self) for item in data { state.text = item.state custPost.text = item.u1post } } }
[ -1 ]
7ac69db6484ca70d9990c9e13c62e9275b791db3
73be2592b56966df406ed500a1a1add04641c4e8
/CarnaKit/CarnaKit/Bloco.swift
1bb8d0dd5b5df3df587d5ae664ca182e79fe465a
[]
no_license
morganagalamba/CarnaKIT
d8943132528b413f3ba2704ceffdf50f019a7058
939895048ee47007a59fa05c2d7126a2b0a384a2
refs/heads/main
2023-03-03T18:51:04.293003
2021-02-12T13:05:16
2021-02-12T13:05:16
337,422,581
0
0
null
2021-02-12T05:34:47
2021-02-09T14:01:39
Swift
UTF-8
Swift
false
false
824
swift
// // Blocos.swift // CarnaKit // // Created by Morgana Beatriz on 11/02/21. // import Foundation struct Bloco{ let nameBloco: String let description: String let photoBloco: String let longitude: Double let latitude: Double let apresentationDays: [Apresentation] init(nameBloco: String, description: String, photoBloco: String, longitude: Double, latitude: Double, apresentationDays: [Apresentation]) { self.nameBloco = nameBloco self.description = description self.photoBloco = photoBloco self.longitude = longitude self.latitude = latitude self.apresentationDays = apresentationDays } } extension Bloco{ struct Apresentation{ let day: String let hour: String let showInMap: Bool } }
[ -1 ]
64d0e47b7db446b51861314d11b55d5b67e921f5
2b5b5b8cad8b174733266f37c494b146da6957c8
/InterestingPlaces/InterestingPlaces/Model/Place.swift
6271c97ce7421158bc68dcb2323ea0d9e98c7b5e
[]
no_license
danielayaa/GitHubDany
3e9670ecd86d0aee31922bd7c8a760abd2e2733c
11a026c6af680d6a4c7572dbd1f9f15d3bb76b5f
refs/heads/main
2023-08-29T08:02:10.964946
2021-11-08T14:18:07
2021-11-08T14:18:07
406,399,129
0
0
null
null
null
null
UTF-8
Swift
false
false
3,272
swift
/// Copyright (c) 2020 Razeware LLC /// /// Permission is hereby granted, free of charge, to any person obtaining a copy /// of this software and associated documentation files (the "Software"), to deal /// in the Software without restriction, including without limitation the rights /// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell /// copies of the Software, and to permit persons to whom the Software is /// furnished to do so, subject to the following conditions: /// /// The above copyright notice and this permission notice shall be included in /// all copies or substantial portions of the Software. /// /// Notwithstanding the foregoing, you may not use, copy, modify, merge, publish, /// distribute, sublicense, create a derivative work, and/or sell copies of the /// Software in any work that is designed, intended, or marketed for pedagogical or /// instructional purposes related to programming, coding, application development, /// or information technology. Permission for such use, copying, modification, /// merger, publication, distribution, sublicensing, creation of derivative works, /// or sale is expressly withheld. /// /// This project and source code may use libraries or frameworks that are /// released under various Open-Source licenses. Use of those libraries and /// frameworks are governed by their own individual licenses. /// /// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR /// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, /// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE /// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER /// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, /// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN /// THE SOFTWARE. import Foundation import MapKit final class Place: NSObject, Decodable, Identifiable { let name: String let image: String let sponsored: Bool let details: String let overlay: Bool let location: CLLocation private let regionRadius: CLLocationDistance = 1000 let region: MKCoordinateRegion let id = UUID() init(from decoder: Decoder) throws { enum CodingKey: Swift.CodingKey { case name case image case sponsored case details case overlay case latitude case longitude } let values = try decoder.container(keyedBy: CodingKey.self) name = try values.decode(String.self, forKey: .name) image = try values.decode(String.self, forKey: .image) sponsored = try values.decode(Bool.self, forKey: .sponsored) details = try values.decode(String.self, forKey: .details) overlay = try values.decode(Bool.self, forKey: .overlay) let latitude = try values.decode(Double.self, forKey: .latitude) let longitude = try values.decode(Double.self, forKey: .longitude) location = CLLocation(latitude: latitude, longitude: longitude) region = MKCoordinateRegion(center: location.coordinate, latitudinalMeters: regionRadius, longitudinalMeters: regionRadius) } } extension Place: MKAnnotation { var coordinate: CLLocationCoordinate2D { location.coordinate } var title: String? { name } }
[ 379560, 307406 ]
ccac7f916f210391da4687ac64b67d09f27230e3
133da19fe0c8c2fe7541b449ce035ddd91839d13
/ColorSwitch/ColorSwitchTests/ColorSwitchTests.swift
723eff6d7c45b5fbfa10e5e2d9fd02186f05e12d
[]
no_license
masonkoh/iOS-Apps
746fdc655eadc1c5ec2f96281c9ecd1141ac59c0
85f60e2fb77853f30d49365743ee453b18d86609
refs/heads/master
2020-04-22T03:06:40.635673
2019-04-20T14:49:04
2019-04-20T14:49:04
170,073,952
0
0
null
null
null
null
UTF-8
Swift
false
false
915
swift
// // ColorSwitchTests.swift // ColorSwitchTests // // Created by Mason Ko on 2019-02-19. // Copyright © 2019 Mason Ko. All rights reserved. // import XCTest @testable import ColorSwitch class ColorSwitchTests: XCTestCase { override func 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. } func testExample() { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testPerformanceExample() { // This is an example of a performance test case. self.measure { // Put the code you want to measure the time of here. } } }
[ 360462, 229413, 204840, 344107, 155694, 319542, 229430, 163896, 180280, 376894, 352326, 311372, 311374, 196691, 385116, 237663, 254048, 319591, 221290, 131178, 319598, 204916, 131191, 131198, 319629, 311438, 196760, 426138, 377009, 180408, 295098, 139479, 229597, 311519, 205035, 327929, 344313, 147717, 368905, 278797, 254226, 368916, 262421, 377114, 237856, 237857, 278816, 311597, 98610, 180535, 336183, 287041, 139589, 344401, 377169, 368981, 155990, 368984, 106847, 98657, 270701, 270706, 139640, 311685, 106888, 385417, 311691, 385422, 213403, 385454, 311727, 377264, 311738, 33211, 336320, 311745, 278978, 254406, 188871, 278989, 278993, 328152, 369116, 287198, 279008, 279013, 279018, 311786, 319981, 319987, 279029, 254456, 377338, 377343, 254465, 279050, 139792, 303636, 279062, 393751, 279065, 377376, 377386, 197167, 385588, 115270, 377418, 385615, 426576, 369235, 139872, 295536, 287346, 139892, 287352, 344696, 279164, 311941, 336518, 311945, 369289, 344715, 311949, 287374, 377489, 311954, 352917, 230040, 271000, 377497, 303771, 377500, 295576, 205471, 344738, 139939, 279206, 205487, 295599, 303793, 336564, 164533, 287417, 287422, 377539, 164560, 385747, 279252, 361176, 418520, 287452, 295652, 246503, 369385, 312052, 172792, 344827, 221948, 279294, 205568, 295682, 197386, 434957, 312079, 295697, 426774, 197399, 426775, 197411, 279336, 295724, 353069, 197422, 353070, 164656, 295729, 312108, 197431, 230199, 336702, 295746, 353095, 353109, 377686, 230234, 189275, 435039, 295776, 303972, 385893, 246641, 246643, 295798, 361337, 254850, 369538, 295824, 353195, 140204, 377772, 304051, 230332, 377790, 353215, 353216, 213957, 345033, 279498, 386006, 418776, 50143, 123881, 287731, 271350, 295927, 312314, 320507, 328700, 328706, 410627, 320516, 295942, 386056, 353290, 377869, 320527, 238610, 418837, 140310, 320536, 197657, 369701, 345132, 238639, 312373, 238651, 214086, 377926, 296019, 353367, 156765, 304222, 230499, 173166, 312434, 377972, 353397, 337017, 377983, 402565, 386189, 238743, 296092, 238765, 238769, 402613, 230588, 353479, 353480, 353481, 402634, 189652, 189653, 419029, 148696, 296153, 304351, 304356, 222440, 328940, 279792, 353523, 353524, 386294, 386301, 320770, 386306, 328971, 353551, 320796, 222494, 115998, 279854, 353584, 345396, 386359, 345402, 378172, 345415, 312648, 337225, 304456, 230729, 238927, 353616, 296273, 222559, 378209, 386412, 296303, 296307, 116084, 181625, 337281, 148867, 296329, 304524, 296335, 9619, 370071, 173491, 304564, 279989, 353719, 280004, 361927, 312782, 271843, 329200, 296433, 321009, 280055, 230913, 329225, 296461, 304656, 329232, 370197, 402985, 394794, 230959, 288309, 312889, 288318, 124485, 288327, 280147, 239198, 157281, 99938, 345700, 312940, 222832, 247416, 337534, 337535, 263809, 312965, 288392, 239250, 419478, 321199, 321207, 337591, 280251, 321219, 403148, 9936, 9937, 370388, 272085, 345814, 345821, 321247, 321249, 345833, 345834, 280300, 67315, 173814, 124669, 288512, 288516, 321295, 321302, 345879, 116505, 321310, 255776, 313120, 247590, 362283, 378668, 296755, 345919, 436031, 403267, 280392, 345929, 18262, 362327, 345951, 362337, 345955, 296806, 296814, 313199, 214895, 362352, 182144, 305026, 67463, 329622, 337815, 436131, 313254, 436137, 362417, 124852, 362431, 214977, 280514, 214984, 321480, 362443, 231375, 329695, 436191, 313319, 436205, 296941, 223218, 43014, 354316, 313357, 182296, 239650, 329765, 354343, 223274, 124975, 346162, 124984, 288828, 436285, 288833, 288834, 436292, 403525, 313416, 436301, 338001, 354385, 338003, 280661, 329814, 354393, 280675, 280677, 321637, 329829, 43110, 436329, 288879, 223350, 280694, 288889, 215164, 215166, 280712, 346271, 436383, 362659, 239793, 125109, 182456, 379071, 280768, 149703, 346314, 321745, 280795, 387296, 280802, 379106, 346346, 321772, 125169, 436470, 125183, 149760, 411906, 125188, 313608, 321800, 125193, 272658, 125203, 338197, 125208, 305440, 125217, 338218, 321840, 379186, 125235, 125240, 321860, 182597, 182598, 280902, 289110, 215385, 354655, 321894, 313713, 354676, 313727, 436608, 362881, 240002, 436611, 108944, 190871, 149916, 420253, 141728, 289189, 108972, 272813, 338356, 436661, 281037, 289232, 281040, 256477, 330218, 109042, 174593, 240131, 420369, 289304, 207393, 289332, 174648, 338489, 338490, 297560, 436832, 436834, 420463, 346737, 313971, 346740, 420471, 330379, 330387, 117396, 346772, 330388, 264856, 289434, 346779, 289462, 314040, 109241, 248517, 363211, 363230, 289502, 264928, 330474, 289518, 322291, 199414, 322313, 322316, 117517, 322319, 166676, 207640, 281377, 289576, 191283, 273207, 289598, 281427, 322395, 109409, 330609, 174963, 207732, 109428, 158593, 240518, 109447, 224145, 355217, 256922, 289690, 240544, 420773, 289703, 240552, 363438, 347055, 289722, 289727, 273344, 330689, 363458, 379844, 19399, 248796, 347103, 52200, 289774, 347123, 240630, 314362, 257024, 330754, 134150, 330763, 281626, 175132, 248872, 322612, 314448, 339030, 281697, 314467, 257125, 281706, 273515, 207979, 404593, 363641, 363644, 150657, 248961, 330888, 363669, 339100, 380061, 339102, 199839, 429214, 265379, 249002, 306346, 3246, 421048, 339130, 322749, 265412, 290000, 298208, 298212, 298213, 290022, 330984, 298221, 298228, 216315, 208124, 437505, 322824, 257305, 126237, 339234, 208164, 372009, 412971, 298291, 306494, 216386, 224586, 372043, 331090, 314709, 314710, 372054, 159066, 134491, 314720, 314726, 306542, 380271, 208244, 314741, 249204, 249205, 290169, 290173, 306559, 314751, 224640, 306560, 298374, 314758, 314760, 142729, 388487, 314766, 224661, 290207, 314783, 314789, 314791, 396711, 396712, 241066, 314798, 380337, 380338, 150965, 380357, 339398, 306631, 306639, 413137, 429542, 191981, 282096, 191990, 290301, 372227, 323080, 323087, 323089, 175639, 388632, 396827, 282141, 134686, 347694, 290358, 265798, 282183, 265804, 224847, 118353, 396882, 290390, 44635, 396895, 323172, 224883, 314998, 323196, 175741, 339584, 282246, 290443, 282259, 257699, 298661, 61101, 224946, 110268, 224958, 282303, 323264, 274115, 306890, 241361, 241365, 298720, 12010, 323331, 339715, 216839, 339720, 372496, 323346, 241441, 241442, 339745, 315171, 257830, 421672, 200498, 315202, 307011, 282438, 413521, 216918, 241495, 282480, 241528, 315264, 339841, 241540, 315273, 315274, 372626, 380821, 118685, 298909, 323507, 290745, 274371, 151497, 372701, 298980, 380908, 241692, 315432, 315434, 102445, 233517, 176175, 282672, 241716, 241720, 225351, 315465, 307289, 200794, 315487, 356447, 438377, 233589, 266357, 233590, 422019, 241808, 323729, 381073, 299174, 241843, 405687, 258239, 389313, 299203, 299209, 372941, 266449, 356576, 307435, 438511, 381172, 184575, 381208, 315673, 151839, 233762, 217380, 151847, 282919, 332083, 332085, 332089, 282939, 241986, 438596, 332101, 323913, 323916, 348492, 250192, 323920, 282960, 348500, 168281, 332123, 332127, 323935, 242023, 160110, 242033, 291192, 315773, 291198, 340357, 225670, 332167, 242058, 373134, 291224, 242078, 315810, 315811, 381347, 340398, 299441, 283064, 291265, 127427, 291267, 127428, 283075, 324039, 373197, 242139, 160225, 242148, 242149, 127465, 291311, 233978, 291333, 340490, 258581, 291358, 234036, 315960, 348732, 242237, 70209, 348742, 70215, 348749, 381517, 332378, 201308, 242277, 111208, 184940, 373358, 389745, 209530, 291454, 373375, 152195, 348806, 184973, 316049, 111253, 316053, 111258, 111259, 176808, 299699, 299700, 422596, 422599, 291530, 225995, 242386, 422617, 422626, 299746, 234217, 299759, 299776, 291585, 430849, 291592, 62220, 422673, 430865, 291604, 422680, 291612, 152365, 422703, 422709, 152374, 160571, 430910, 160575, 160580, 381773, 201549, 201551, 242529, 349026, 357218, 201577, 177001, 308076, 242541, 209783, 177019, 185211, 308092, 398206, 291712, 381829, 316298, 349072, 308112, 209817, 390045, 127902, 185250, 185254, 316333, 373687, 316343, 373706, 316364, 316405, 349175, 201720, 127992, 357379, 308243, 316437, 300068, 357414, 300084, 308287, 21569, 218186, 341073, 439384, 300135, 316520, 357486, 316526, 144496, 300150, 291959, 300151, 160891, 300158, 349316, 349318, 373903, 177296, 169104, 119962, 300187, 300188, 283802, 300201, 300202, 373945, 259268, 283852, 283853, 259280, 316627, 333011, 333022, 234733, 234742, 128251, 292091, 316669, 242954, 439562, 292107, 414990, 251153, 177428, 349462, 333090, 382258, 300343, 382269, 333117, 193859, 300359, 177484, 406861, 259406, 234831, 120148, 357719, 374109, 316765, 333160, 316787, 111993, 357762, 112017, 234898, 259475, 275859, 112018, 357786, 251298, 333220, 316842, 374191, 292283, 300487, 300489, 284107, 210390, 210391, 210393, 144867, 103909, 316902, 251378, 308723, 300536, 300542, 292356, 259599, 316946, 308756, 398869, 374296, 374299, 308764, 431649, 169518, 431663, 194110, 349763, 292423, 218696, 292425, 243274, 128587, 333388, 128599, 235095, 333408, 300644, 415338, 243307, 54893, 325231, 333430, 325245, 194180, 415375, 153251, 300714, 210603, 415420, 333503, 259781, 333509, 333517, 333520, 333521, 333523, 325346, 333542, 153319, 325352, 325371, 194303, 194304, 284431, 243472, 161554, 366360, 325404, 325410, 399147, 431916, 284459, 317232, 300848, 259899, 325439, 325445, 153415, 341836, 415567, 325457, 317269, 341847, 284507, 350044, 128862, 300894, 276327, 292712, 325484, 423789, 292720, 325492, 276341, 341879, 317304, 333688, 112509, 194429, 325503, 55167, 333701, 243591, 325515, 243597, 325518, 333722, 350109, 292771, 300963, 333735, 415655, 292782, 317360, 243637, 284619, 301008, 153554, 292836, 292837, 317415, 325619, 432116, 333817, 292858, 415741, 333828, 358410, 399373, 317467, 145435, 292902, 325674, 243759, 129076, 243767, 358456, 309345, 194666, 260207, 432240, 333955, 415881, 104587, 235662, 325776, 284826, 333991, 333996, 227513, 301251, 227524, 309444, 194782, 301279, 317664, 243962, 375039, 194820, 325905, 334103, 325912, 227616, 211235, 432421, 211238, 325931, 358703, 358709, 325968, 366929, 366930, 334171, 391520, 383332, 383336, 317820, 211326, 317831, 227725, 252308, 285084, 121245, 317852, 342450, 293303, 293310, 416197, 129483, 342476, 317901, 285150, 342498, 358882, 334309, 391655, 432618, 375276, 301571, 342536, 416286, 375333, 293419, 244269, 375343, 23092, 375351, 244281, 301638, 309830, 293448, 55881, 416341, 416351, 268899, 244327, 39530, 301689, 244347, 326287, 375440, 334481, 318106, 318107, 342682, 318130, 383667, 293556, 342706, 39614, 154316, 318173, 375526, 342762, 342763, 293612, 154359, 432893, 162561, 383754, 326414, 310036, 326429, 293664, 326433, 400166, 293672, 318252, 285487, 301871, 375609, 293693, 342847, 252741, 318278, 293711, 244568, 244570, 342887, 326505, 400239, 310131, 269178, 400252, 359298, 359299, 260996, 113542, 416646, 228233, 392074, 236428, 56208, 318364, 310176, 310178, 310182, 293800, 236461, 293806, 326581, 326587, 326601, 359381, 433115, 343005, 326635, 203757, 187374, 383983, 277492, 318461, 293886, 293893, 433165, 384016, 433174, 326685, 252958, 203830, 359478, 302139, 392290, 253029, 228458, 318572, 15471, 351344, 285814, 285820, 392318, 384131, 302213, 302216, 228491, 228493, 326804, 285851, 351390, 253099, 253100, 318639, 367799, 113850, 294074, 228540, 228542, 302274, 367810, 244940, 195808, 310497, 302325, 261377, 228609, 318733, 245019, 253216, 261425, 351537, 171317, 318775, 286013, 146762, 294218, 294219, 318805, 425304, 163175, 327024, 327025, 318848, 294275, 253317, 384393, 368011, 318864, 318868, 212375, 318875, 212382, 310692, 245161, 286129, 286132, 228795, 425405, 302531, 425418, 302540, 310732, 64975, 310736, 327121, 286172, 245223, 343542, 286202, 359930, 286205, 302590, 253451, 359950, 146964, 253463, 187938, 286244, 245287, 245292, 196164, 56902, 228943, 179801, 343647, 286306, 310889, 204397, 138863, 188016, 294529, 229001, 188048, 302739, 425626, 229020, 302754, 40613, 40614, 40615, 384695, 319162, 327358, 319177, 212685, 384720, 302802, 229088, 212716, 212717, 360177, 319233, 360195, 286494, 294700, 409394, 319288, 319292, 360252, 360264, 376669, 245599, 237408, 425825, 302946, 425833, 417654, 188292, 327557, 294807, 376732, 311199, 319392, 294823, 327596, 294843, 188348, 237504, 294850, 384964, 344013, 212942, 24532, 294886, 327661, 278512, 311281, 311282 ]
0741a6287449e43ec17834a23227f8cce789fba9
8378d7e6dbc52930d550e57ca0bae8ef4de94880
/WatchTable/WatchTable WatchKit Extension/NotificationController.swift
da9c1804f63c92234556ecf3b0f7d2fc85a15703
[]
no_license
ccabanero/ios-watchkit-snippets
9d465ffa58608bd0e195792f2dfe9e5d0f2eaad9
c75d0b63e123bf42b032106979976fb99df8581d
refs/heads/master
2021-01-10T13:33:57.041706
2015-05-26T00:52:10
2015-05-26T00:52:10
36,138,962
37
6
null
null
null
null
UTF-8
Swift
false
false
1,872
swift
// // NotificationController.swift // WatchTable WatchKit Extension // // Created by Clint Cabanero on 5/24/15. // Copyright (c) 2015 Big Leaf Mobile LLC. All rights reserved. // import WatchKit import Foundation class NotificationController: WKUserNotificationInterfaceController { override init() { // Initialize variables here. super.init() // Configure interface objects here. } override func willActivate() { // This method is called when watch view controller is about to be visible to user super.willActivate() } override func didDeactivate() { // This method is called when watch view controller is no longer visible super.didDeactivate() } /* override func didReceiveLocalNotification(localNotification: UILocalNotification, withCompletion completionHandler: ((WKUserNotificationInterfaceType) -> Void)) { // This method is called when a local notification needs to be presented. // Implement it if you use a dynamic notification interface. // Populate your dynamic notification interface as quickly as possible. // // After populating your dynamic notification interface call the completion block. completionHandler(.Custom) } */ /* override func didReceiveRemoteNotification(remoteNotification: [NSObject : AnyObject], withCompletion completionHandler: ((WKUserNotificationInterfaceType) -> Void)) { // This method is called when a remote notification needs to be presented. // Implement it if you use a dynamic notification interface. // Populate your dynamic notification interface as quickly as possible. // // After populating your dynamic notification interface call the completion block. completionHandler(.Custom) } */ }
[ 282371, 282116, 279688, 302728, 282381, 179597, 235663, 282385, 282395, 66075, 282405, 227239, 282413, 178353, 282420, 7226, 282314, 180044, 282323, 282332, 241500, 230109, 286178, 166370, 229221, 282351, 277488, 34674 ]
c83238438bf8476cfaf4cf417da839618e3e177f
e07aa1fc165135a0583a0fbc693f82f6d53765e8
/Todoey/AppDelegate.swift
80adf6958f0f4021aa0e3457d9d0d954f2c8d333
[]
no_license
fpsbowser/Todoey
e3e1cc90384f7a0e64ef2687ef1364ac4960e1cb
494f25be1241953b4b525f24b708189d0a01604f
refs/heads/master
2020-04-22T06:04:35.091605
2019-02-14T20:25:06
2019-02-14T20:25:06
136,361,471
0
0
null
null
null
null
UTF-8
Swift
false
false
760
swift
// // AppDelegate.swift // Todoey // // Created by Dakota Pratt on 2/11/19. // Copyright © 2019 Dakota Pratt. All rights reserved. // import UIKit import RealmSwift @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. //print(Realm.Configuration.defaultConfiguration.fileURL) do { _ = try Realm() } catch { print("Error initialising ne realm, \(error)") } return true } }
[ -1 ]
197d6027ddfc3ff724818ae729dd4423dbca9d12
0f7ce2832139f1ca527f5444a0bebd7320b45339
/MovieDB/View/TitleHeaderView.swift
22f4d85ee91013e1927ee1b620d74c664e8398a8
[]
no_license
Rizqiwidianto14/MovieDB
cdaa8ca03e2784464ea1200d9152016fcff47488
fd5987fe64f5656a8fdd71288e6683cdd6ae08bd
refs/heads/main
2023-03-09T18:59:14.594952
2021-02-25T11:59:01
2021-02-25T11:59:01
341,146,102
0
0
null
null
null
null
UTF-8
Swift
false
false
1,309
swift
// // TitleHeaderView.swift // MovieDB // // Created by Rizqi Imam Gilang Widianto on 23/02/21. // import Foundation import UIKit class TitleHeaderView: UICollectionReusableView { static let reuseIdentifier = String(describing: TitleHeaderView.self) let textLabel = UILabel() override init(frame: CGRect) { super.init(frame: frame) configure() } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } private func configure() { addSubview(textLabel) textLabel.font = UIFont.boldSystemFont(ofSize: 20.0) textLabel.textColor = #colorLiteral(red: 0.8039215803, green: 0.8039215803, blue: 0.8039215803, alpha: 1) textLabel.translatesAutoresizingMaskIntoConstraints = false let inset: CGFloat = 10 NSLayoutConstraint.activate( [ textLabel.leadingAnchor.constraint(equalTo: leadingAnchor, constant: inset), textLabel.trailingAnchor.constraint(equalTo: trailingAnchor, constant: -inset), textLabel.topAnchor.constraint(equalTo: topAnchor, constant: inset), textLabel.bottomAnchor.constraint(equalTo: bottomAnchor, constant: -inset) ] ) } }
[ -1 ]
b425b5ef5445e26e29302f1770f309243d3eede1
4958c0475c61f5f575ad759a57a581d298126f20
/Tumblr_Feed/PhotoCell.swift
8fe335679b4cc18856e40a56d9689357b18250a1
[ "Apache-2.0" ]
permissive
jungy24/Tumblr_Feed
0d55e4e947d02d0dcedaa4189f6d67410941b9f7
709370e1e02d2a0aa3f6b68c7978dd12654a0516
refs/heads/master
2021-09-28T06:39:41.185760
2018-11-15T08:51:14
2018-11-15T08:51:14
110,379,182
0
0
null
null
null
null
UTF-8
Swift
false
false
541
swift
// // PhotoCell.swift // Tumblr_Feed // // Created by Jungyoon Yu on 11/11/17. // Copyright © 2017 Jungyoon Yu. All rights reserved. // import UIKit class PhotoCell: UITableViewCell { @IBOutlet weak var photoImageView: UIImageView! 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, 196108, 203788, 227852, 333837, 372750, 372753, 196114, 372754, 327190, 328214, 287258, 370207, 243746, 287266, 281636, 310840, 327224, 327225, 123451, 314431, 307277, 327248, 235604, 235611, 281183, 213095, 213097, 310894, 213109, 148600, 403068, 410751, 300672, 135815, 373913, 148637, 148638, 276639, 148648, 300206, 361651, 327360, 279757, 223437, 291544, 306907, 337627, 176358, 249067, 249068, 249069, 271087, 325874, 338682, 276746, 271117, 276756, 203542, 302875, 261406, 349470, 396065, 111912, 369458, 369461, 282934, 342850, 342851, 151881, 430412, 283470, 283471, 283472, 283473, 270679, 287067, 287068, 287069, 336734, 336738, 350050, 270691, 257898, 330602, 179568, 317296, 216438, 262518, 317302, 244600, 179578, 179580, 226176, 211843, 213891, 36743, 209803, 334229, 337317, 211370, 288690, 281014, 282552, 317377, 430546, 430547, 180695, 180696, 358875, 284131, 344039, 196076, 310778, 305661 ]
56b20be2acee6199d24b2dac06ee1f107684b404
b227056b68ddc69307539a82b3ff2bb2cb87648a
/Example/iOS Example/ViewController.swift
290412f306093435155ab8b6fe37e5424a9882d3
[ "MIT" ]
permissive
pmick/RxAVFoundation
f1f3562d29bf12f4a3a066520498e7e0f89cba41
1f7f9cfd40ff23d4c61a9b0623f1523116aec2a8
refs/heads/master
2021-08-10T18:06:54.113354
2021-07-27T04:18:14
2021-07-27T04:18:14
55,178,047
101
21
MIT
2021-07-27T04:08:12
2016-03-31T19:41:04
Swift
UTF-8
Swift
false
false
2,155
swift
// // ViewController.swift // iOS Example // // Created by Patrick Mick on 4/2/16. // Copyright © 2016 YayNext. All rights reserved. // import UIKit import RxAVFoundation import RxSwift import RxCocoa import AVFoundation class ViewController: UIViewController { @IBOutlet var progressView: UIProgressView! @IBOutlet var playerView: PlayerView! @IBOutlet var activityIndicator: UIActivityIndicatorView! let player = AVPlayer() let disposeBag = DisposeBag() override func viewDidLoad() { super.viewDidLoad() let item = AVPlayerItem(url: URL(string: "https://i.imgur.com/9rGrj10.mp4")!) player.replaceCurrentItem(with: item) playerView.playerLayer.videoGravity = .resizeAspectFill playerView.playerLayer.player = player setupProgressObservation(item: item) // TODO: Build out this example by hiding loading indicator and pausing // adding a gesture recognizer to pause/resume playback etc. player.rx.status .filter { $0 == .readyToPlay } .subscribe(onNext: { [unowned self] status in print("item ready to play") self.player.play() }).disposed(by: disposeBag) } private func setupProgressObservation(item: AVPlayerItem) { let interval = CMTime(seconds: 0.05, preferredTimescale: CMTimeScale(NSEC_PER_SEC)) player.rx.periodicTimeObserver(interval: interval) .map { [unowned self] in self.progress(currentTime: $0, duration: item.duration) } .bind(to: progressView.rx.progress) .disposed(by: disposeBag) } private func progress(currentTime: CMTime, duration: CMTime) -> Float { if !duration.isValid || !currentTime.isValid { return 0 } let totalSeconds = duration.seconds let currentSeconds = currentTime.seconds if !totalSeconds.isFinite || !currentSeconds.isFinite { return 0 } let p = Float(min(currentSeconds/totalSeconds, 1)) return p } }
[ -1 ]
5893301ddc874582cccb46fc8e01f1f8ef6dbf6d
5a43cfc957c3a28a076acdb9fd42c66ddfdd48bf
/10k/Views/RecordTableViewCell.swift
f20997b6c4ebb2033de82830c0d2cdab83420739
[ "MIT" ]
permissive
umutbozkurt/10k.app
a6958c266abbe4723cf9232555623074d1a38bff
d539a20aea3432aa416b0f1827d2fac8ac94968c
refs/heads/master
2020-04-09T09:54:23.042904
2016-03-15T21:50:36
2016-03-15T21:50:36
41,882,034
6
0
null
null
null
null
UTF-8
Swift
false
false
1,577
swift
// // RecordTableViewCell.swift // 10k // // Created by Umut Bozkurt on 29/09/15. // Copyright (c) 2015 Umut Bozkurt. All rights reserved. // import Cocoa class RecordTableViewCell: NSTableCellView { private let colors = [ NSColor(red: 41, green: 128, blue: 185, alpha: 1), NSColor(red: 241, green: 196, blue: 15, alpha: 1), NSColor(red: 46, green: 204, blue: 113, alpha: 1) ] override func drawRect(dirtyRect: NSRect) { super.drawRect(dirtyRect) } @IBOutlet var subjectLabel: NSTextField! @IBOutlet var progressLabel: NSTextField! func setSubject(subject: Subject, forIndex: Int) { self.subjectLabel.stringValue = subject.name let totalHours = subject.records.reduce(0, combine: {(total, record) in return total + record.endedAt.timeIntervalSinceDate(record.startedAt) }) / 3600 if (totalHours > 1000) { self.progressLabel.stringValue = String(format: "%0.1fk hours", totalHours / 1000) } else { self.progressLabel.stringValue = String(format: "%0.1f hours", totalHours) } // let percentageCompleted = (totalHours / 10000) // // let progressView = NSView(frame: NSRect(x: 0, y: 0, width: CGFloat(percentageCompleted) * self.bounds.width, height: self.bounds.height)) // progressView.wantsLayer = true // progressView.layer?.backgroundColor = self.colors[forIndex].CGColor // self.addSubview(progressView) } }
[ -1 ]
779e8dd3fc50b44fa843233fb9346d66eca561cf
972fa3109517aa173080851a1915ba80a225338f
/HTCMobileApp/HTCMobileApp/MobileApp/ViewControllers/Alert/ChooseAvatarAlertViewController.swift
f7376c3183b2db8bf36a679a63037193305f4fd8
[]
no_license
minhdq1982/HTCMobile.iOS
bb7c31796fc7f7214083fe7968f0a0c8305283a6
2284f2b38ccf1daedeef50e3e84a773d89d10f5f
refs/heads/master
2020-04-13T12:22:16.853048
2018-12-26T16:54:29
2018-12-26T16:54:29
163,200,083
0
0
null
null
null
null
UTF-8
Swift
false
false
1,406
swift
// // ChooseAvatarAlertViewController.swift // HTCMobileApp // // Created by admin on 11/12/18. // Copyright © 2018 Tinhvan Outsourcing JSC. All rights reserved. // import Foundation import UIKit import RxSwift class ChooseAvatarAlertViewController: UIViewController { @IBOutlet weak var alertView: UIView! @IBOutlet weak var cameraButton: UIButton! @IBOutlet weak var libraryButton: UIButton! let chooseAction: Variable<Int> = Variable(-1) // MARK: - Lifecycle override func viewWillAppear(_ animated: Bool) { super .viewWillAppear(animated) setupView() animateView() } func setupView() { self.view.backgroundColor = UIColor.black.withAlphaComponent(0.4) } func animateView() { alertView.alpha = 0; self.alertView.frame.origin.y = self.alertView.frame.origin.y + 50 UIView.animate(withDuration: 0.4, animations: { () -> Void in self.alertView.alpha = 1.0; self.alertView.frame.origin.y = self.alertView.frame.origin.y - 50 }) } // MARK: - functions @IBAction func gotoCamera(_ sender: Any) { self.dismiss(animated: true, completion: nil) chooseAction.value = 0 } @IBAction func gotoLibrary(_ sender: Any) { self.dismiss(animated: true, completion: nil) chooseAction.value = 1 } }
[ -1 ]
99d7b76cc63227f9da15b0969af5b1622eae2ee3
a62f49cc027bcf5023a4268f6ca54db1dad28e8c
/MercadoPagoSDK/MercadoPagoSDK/NewCardViewController.swift
e0c243e21fe47eea9c9afc112ea725e8f7e7cc18
[ "MIT" ]
permissive
MatiasGinart/sdk-ios
fdded13f7a3afc66f015cdecb26a296e079ea2c5
c19d76e73ffe03f893fb3ad9c2a4d9c0f02be0c0
refs/heads/master
2021-01-18T07:22:32.595452
2015-06-16T13:59:34
2015-06-16T13:59:34
37,201,896
1
0
null
2015-06-10T14:25:18
2015-06-10T14:25:18
null
UTF-8
Swift
false
false
14,259
swift
// // NewCardViewController.swift // MercadoPagoSDK // // Created by Matias Gualino on 29/12/14. // Copyright (c) 2014 com.mercadopago. All rights reserved. // import Foundation import UIKit public class NewCardViewController : UIViewController, UITableViewDataSource, UITableViewDelegate, KeyboardDelegate { // ViewController parameters var key : String? var keyType : String? var paymentMethod: PaymentMethod? var requireSecurityCode : Bool? var callback: ((cardToken: CardToken) -> Void)? var identificationType : IdentificationType? var identificationTypes : [IdentificationType]? var bundle : NSBundle? = MercadoPago.getBundle() // Input controls @IBOutlet weak private var tableView : UITableView! var cardNumberCell : MPCardNumberTableViewCell! var expirationDateCell : MPExpirationDateTableViewCell! var cardholderNameCell : MPCardholderNameTableViewCell! var userIdCell : MPUserIdTableViewCell! var securityCodeCell : MPSecurityCodeTableViewCell! var hasError : Bool = false var loadingView : UILoadingView! var inputsCells : NSMutableArray! init(keyType: String, key: String, paymentMethod: PaymentMethod, requireSecurityCode: Bool, callback: ((cardToken: CardToken) -> Void)?) { super.init(nibName: "NewCardViewController", bundle: bundle) self.paymentMethod = paymentMethod self.requireSecurityCode = requireSecurityCode self.key = key self.keyType = keyType self.callback = callback } required public init(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } public init() { super.init(nibName: nil, bundle: nil) } override public init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: NSBundle?) { super.init(nibName: nibNameOrNil, bundle: nibBundleOrNil) } override public func viewDidAppear(animated: Bool) { self.tableView.reloadData() } override public func viewDidLoad() { super.viewDidLoad() self.loadingView = UILoadingView(frame: MercadoPago.screenBoundsFixedToPortraitOrientation(), text: "Cargando...".localized) self.title = "Datos de tu tarjeta".localized self.navigationItem.backBarButtonItem = UIBarButtonItem(title: "Atrás".localized, style: UIBarButtonItemStyle.Plain, target: self, action: nil) self.navigationItem.rightBarButtonItem = UIBarButtonItem(title: "Continuar".localized, style: UIBarButtonItemStyle.Plain, target: self, action: "submitForm") self.view.addSubview(self.loadingView) var mercadoPago : MercadoPago mercadoPago = MercadoPago(keyType: self.keyType, key: self.key) mercadoPago.getIdentificationTypes({(identificationTypes: [IdentificationType]?) -> Void in self.identificationTypes = identificationTypes self.prepareTableView() self.tableView.reloadData() self.loadingView.removeFromSuperview() }, failure: { (error: NSError?) -> Void in if error?.code == MercadoPago.ERROR_API_CODE { self.prepareTableView() self.tableView.reloadData() self.loadingView.removeFromSuperview() self.userIdCell.hidden = true } } ) } public override func viewWillAppear(animated: Bool) { super.viewWillAppear(animated) NSNotificationCenter.defaultCenter().addObserver(self, selector: "willShowKeyboard:", name: UIKeyboardWillShowNotification, object: nil) NSNotificationCenter.defaultCenter().addObserver(self, selector: "willHideKeyboard:", name: UIKeyboardWillHideNotification, object: nil) } public override func viewWillDisappear(animated: Bool) { super.viewWillDisappear(animated) NSNotificationCenter.defaultCenter().removeObserver(self) } func willHideKeyboard(notification: NSNotification) { // resize content insets. let contentInsets = UIEdgeInsetsMake(64, 0.0, 0.0, 0) self.tableView.contentInset = contentInsets self.tableView.scrollIndicatorInsets = contentInsets } func willShowKeyboard(notification: NSNotification) { let s:NSValue? = (notification.userInfo?[UIKeyboardFrameEndUserInfoKey] as? NSValue) var keyboardBounds :CGRect = s!.CGRectValue() // resize content insets. let contentInsets = UIEdgeInsetsMake(64, 0.0, keyboardBounds.size.height, 0) self.tableView.contentInset = contentInsets self.tableView.scrollIndicatorInsets = contentInsets } public func getIndexForObject(object: AnyObject) -> Int { var i = 0 for arr in self.inputsCells { if let input = object as? UITextField { if let arrTextField = arr[0] as? UITextField { if input == arrTextField { return i } } } i++ } return -1 } public func scrollToRow(indexPath: NSIndexPath) { self.tableView.scrollToRowAtIndexPath(indexPath, atScrollPosition: UITableViewScrollPosition.Bottom, animated: true) } public func focusAndScrollForIndex(index: Int) { let textField = self.inputsCells[index][0] as? UITextField! let cell = self.inputsCells[index][1] as? ErrorTableViewCell! if textField != nil { if !textField!.isFirstResponder() { textField!.becomeFirstResponder() } } if cell != nil { let indexPath = self.tableView.indexPathForCell(cell!) if indexPath != nil { scrollToRow(indexPath!) } } } public func prev(object: AnyObject?) { if object != nil { var index = getIndexForObject(object!) if index >= 1 { focusAndScrollForIndex(index-1) } } } public func next(object: AnyObject?) { if object != nil { var index = getIndexForObject(object!) if index < self.inputsCells.count - 1 { focusAndScrollForIndex(index+1) } } } public func done(object: AnyObject?) { if object != nil { var index = getIndexForObject(object!) if index < self.inputsCells.count { let textField = self.inputsCells[index][0] as? UITextField! let cell = self.inputsCells[index][1] as? ErrorTableViewCell! if textField != nil { textField!.resignFirstResponder() } let indexPath = NSIndexPath(forRow: 0, inSection: 0) scrollToRow(indexPath!) } } } public func prepareTableView() { self.inputsCells = NSMutableArray() var cardNumberNib = UINib(nibName: "MPCardNumberTableViewCell", bundle: MercadoPago.getBundle()) self.tableView.registerNib(cardNumberNib, forCellReuseIdentifier: "cardNumberCell") self.cardNumberCell = self.tableView.dequeueReusableCellWithIdentifier("cardNumberCell") as! MPCardNumberTableViewCell self.cardNumberCell.height = 55.0 if self.paymentMethod != nil { self.cardNumberCell.setIcon(self.paymentMethod!._id) self.cardNumberCell._setSetting(self.paymentMethod!.settings[0]) } self.cardNumberCell.cardNumberTextField.inputAccessoryView = MPToolbar(prevEnabled: false, nextEnabled: true, delegate: self, textFieldContainer: self.cardNumberCell.cardNumberTextField) self.inputsCells.addObject([self.cardNumberCell.cardNumberTextField, self.cardNumberCell]) var expirationDateNib = UINib(nibName: "MPExpirationDateTableViewCell", bundle: MercadoPago.getBundle()) self.tableView.registerNib(expirationDateNib, forCellReuseIdentifier: "expirationDateCell") self.expirationDateCell = self.tableView.dequeueReusableCellWithIdentifier("expirationDateCell") as! MPExpirationDateTableViewCell self.expirationDateCell.height = 55.0 self.expirationDateCell.expirationDateTextField.inputAccessoryView = MPToolbar(prevEnabled: true, nextEnabled: true, delegate: self, textFieldContainer: self.expirationDateCell.expirationDateTextField) self.inputsCells.addObject([self.expirationDateCell.expirationDateTextField, self.expirationDateCell]) var cardholderNameNib = UINib(nibName: "MPCardholderNameTableViewCell", bundle: MercadoPago.getBundle()) self.tableView.registerNib(cardholderNameNib, forCellReuseIdentifier: "cardholderNameCell") self.cardholderNameCell = self.tableView.dequeueReusableCellWithIdentifier("cardholderNameCell") as! MPCardholderNameTableViewCell self.cardholderNameCell.height = 55.0 self.cardholderNameCell.cardholderNameTextField.inputAccessoryView = MPToolbar(prevEnabled: true, nextEnabled: true, delegate: self, textFieldContainer: self.cardholderNameCell.cardholderNameTextField) self.inputsCells.addObject([self.cardholderNameCell.cardholderNameTextField, self.cardholderNameCell]) var userIdNib = UINib(nibName: "MPUserIdTableViewCell", bundle: MercadoPago.getBundle()) self.tableView.registerNib(userIdNib, forCellReuseIdentifier: "userIdCell") self.userIdCell = self.tableView.dequeueReusableCellWithIdentifier("userIdCell") as! MPUserIdTableViewCell self.userIdCell._setIdentificationTypes(self.identificationTypes) self.userIdCell.height = 55.0 self.userIdCell.userIdTypeTextField.inputAccessoryView = MPToolbar(prevEnabled: true, nextEnabled: true, delegate: self, textFieldContainer: self.userIdCell.userIdTypeTextField) self.userIdCell.userIdValueTextField.inputAccessoryView = MPToolbar(prevEnabled: true, nextEnabled: true, delegate: self, textFieldContainer: self.userIdCell.userIdValueTextField) self.inputsCells.addObject([self.userIdCell.userIdTypeTextField, self.userIdCell]) self.inputsCells.addObject([self.userIdCell.userIdValueTextField, self.userIdCell]) self.tableView.delegate = self self.tableView.dataSource = self } public func submitForm() { var cardToken = CardToken(cardNumber: self.cardNumberCell.getCardNumber(), expirationMonth: self.expirationDateCell.getExpirationMonth(), expirationYear: self.expirationDateCell.getExpirationYear(), securityCode: nil, cardholderName: self.cardholderNameCell.getCardholderName(), docType: self.userIdCell.getUserIdType(), docNumber: self.userIdCell.getUserIdValue()) self.view.addSubview(self.loadingView) if validateForm(cardToken) { callback!(cardToken: cardToken) } else { self.hasError = true self.tableView.reloadData() self.loadingView.removeFromSuperview() } } public func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return 2 } public func numberOfSectionsInTableView(tableView: UITableView) -> Int { return 2 } public func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { if indexPath.section == 0 { if indexPath.row == 0 { return self.cardNumberCell } else if indexPath.row == 1 { return self.expirationDateCell } } else if indexPath.section == 1 { if indexPath.row == 0 { return self.cardholderNameCell } else if indexPath.row == 1 { return self.userIdCell } } return UITableViewCell() } override public func viewDidLayoutSubviews() { if self.tableView.respondsToSelector(Selector("setSeparatorInset:")) { self.tableView.separatorInset = UIEdgeInsetsZero } if self.tableView.respondsToSelector(Selector("setSeparatorInset:")) { self.tableView.layoutMargins = UIEdgeInsetsZero } } public func tableView(tableView: UITableView, willDisplayCell cell: UITableViewCell, forRowAtIndexPath indexPath: NSIndexPath) { if cell.respondsToSelector(Selector("setSeparatorInset:")) { cell.separatorInset = UIEdgeInsetsZero } if cell.respondsToSelector(Selector("setSeparatorInset:")) { cell.layoutMargins = UIEdgeInsetsZero } } public func tableView(tableView: UITableView, heightForRowAtIndexPath indexPath: NSIndexPath) -> CGFloat { if indexPath.section == 0 { if indexPath.row == 0 { return self.cardNumberCell.getHeight() } else if indexPath.row == 1 { return self.expirationDateCell.getHeight() } } else if indexPath.section == 1 { if indexPath.row == 0 { return self.cardholderNameCell.getHeight() } else if indexPath.row == 1 { return self.userIdCell.getHeight() } } return 55 } public func validateForm(cardToken : CardToken) -> Bool { var result : Bool = true var focusSet : Bool = false // Validate card number let errorCardNumber = cardToken.validateCardNumber(paymentMethod!) if errorCardNumber != nil { self.cardNumberCell.setError(errorCardNumber!.userInfo!["cardNumber"] as? String) result = false } else { self.cardNumberCell.setError(nil) } // Validate expiry date let errorExpiryDate = cardToken.validateExpiryDate() if errorExpiryDate != nil { self.expirationDateCell.setError(errorExpiryDate!.userInfo!["expiryDate"] as? String) result = false } else { self.expirationDateCell.setError(nil) } // Validate card holder name let errorCardholder = cardToken.validateCardholderName() if errorCardholder != nil { self.cardholderNameCell.setError(errorCardholder!.userInfo!["cardholder"] as? String) result = false } else { self.cardholderNameCell.setError(nil) } // Validate identification number let errorIdentificationType = cardToken.validateIdentificationType() var errorIdentificationNumber : NSError? = nil if self.identificationType != nil { errorIdentificationNumber = cardToken.validateIdentificationNumber(self.identificationType!) } else { errorIdentificationNumber = cardToken.validateIdentificationNumber() } if errorIdentificationType != nil { self.userIdCell.setError(errorIdentificationType!.userInfo!["identification"] as? String) result = false } else if errorIdentificationNumber != nil { self.userIdCell.setError(errorIdentificationNumber!.userInfo!["identification"] as? String) result = false } else { self.userIdCell.setError(nil) } return result } }
[ -1 ]
27aeb0320ec75daa120749f9322eac973ee0cc77
22f52139e4a09cc0eb320d9e984acc4409e5ffb7
/tesserectOCR/AppDelegate.swift
103087ac83b37a0f0e14863e253e0d2439c7a724
[]
no_license
AnandMukutTirkey/OCR
c2307885a6f37d8d8d1c67a42e906ceed9fa7beb
a288adb44f362d624fe9054c0aff65d9276dfeb6
refs/heads/master
2021-01-17T14:03:59.412266
2017-03-06T14:04:19
2017-03-06T14:04:19
84,079,988
0
0
null
null
null
null
UTF-8
Swift
false
false
2,178
swift
// // AppDelegate.swift // tesserectOCR // // Created by Anand Mukut Tirkey on 22/02/17. // Copyright © 2017 anand. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 294924, 229388, 278542, 229391, 327695, 229394, 278548, 229397, 229399, 229402, 352284, 229405, 278556, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 229426, 237618, 229428, 311349, 286774, 286776, 319544, 286778, 229432, 204856, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 303241, 131209, 417930, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 295110, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 287032, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 287238, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 254563, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189039, 172660, 287349, 189040, 189044, 287355, 287360, 295553, 172675, 295557, 287365, 311942, 303751, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 164509, 303773, 172705, 287394, 172707, 303780, 287390, 287398, 205479, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 172737, 279231, 287427, 312005, 312006, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 189169, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 213895, 304007, 304009, 304011, 230284, 304013, 295822, 279438, 189325, 189329, 295825, 304019, 213902, 189331, 58262, 304023, 304027, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 230334, 304063, 304065, 213954, 189378, 156612, 295873, 213963, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 295949, 197645, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 279661, 205934, 164973, 312432, 279669, 337018, 189562, 279679, 304258, 279683, 222340, 66690, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 230592, 312518, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 320748, 279788, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 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, 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, 148946, 239064, 288217, 329177, 280027, 288220, 288218, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 148990, 296450, 206336, 230916, 230919, 214535, 230923, 304651, 304653, 370187, 402969, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 181854, 370272, 239202, 370279, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 198310, 321195, 296622, 321200, 337585, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 263888, 313044, 280276, 321239, 280283, 313052, 18140, 288478, 313055, 419555, 321252, 313066, 288494, 280302, 280304, 313073, 321266, 288499, 419570, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 337732, 304968, 280393, 280402, 173907, 313171, 313176, 42842, 280419, 321381, 296809, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 305176, 321560, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 149599, 280671, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 157940, 280819, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 305464, 280888, 280891, 289087, 108865, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 215387, 354653, 313700, 280937, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289218, 289221, 289227, 436684, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 330244, 281095, 223752, 150025, 338440, 240132, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 182929, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 256716, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 240519, 322440, 314249, 338823, 183184, 142226, 289687, 224151, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 420829, 281567, 289762, 322534, 297961, 183277, 281581, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 380226, 298306, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 298365, 290174, 306555, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 306694, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 290325, 282133, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282255, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 196133, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 315211, 282446, 307027, 315221, 323414, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 110450, 315251, 282481, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 241556, 44948, 298901, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 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, 307211, 282639, 290835, 282645, 241693, 282654, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 307290, 217179, 315482, 192605, 315483, 233567, 299105, 200801, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 241813, 307352, 299164, 241821, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 184503, 299191, 176311, 307385, 307386, 307388, 258235, 307390, 176316, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 184586, 282893, 291089, 282906, 291104, 233766, 299304, 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, 291226, 242075, 283033, 194654, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 291254, 283062, 127417, 291260, 127421, 283069, 127424, 299457, 127429, 127434, 315856, 127440, 176592, 315860, 176597, 127447, 283095, 299481, 127449, 176605, 242143, 127455, 127457, 291299, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 127494, 283142, 127497, 233994, 135689, 127500, 291341, 233998, 127506, 234003, 127509, 234006, 127511, 152087, 283161, 242202, 234010, 135707, 242206, 135710, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 299706, 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, 291593, 234248, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 299814, 234278, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 160572, 283452, 234302, 234307, 242499, 234309, 292433, 316233, 234313, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 242530, 349027, 234338, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 291711, 234368, 291714, 234370, 291716, 234373, 201603, 226182, 234375, 308105, 226185, 234379, 324490, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 234396, 324508, 291742, 226200, 234398, 234401, 291747, 291748, 234405, 291750, 234407, 324520, 324518, 324522, 234410, 291756, 226220, 291754, 324527, 291760, 234417, 201650, 324531, 234414, 234422, 226230, 275384, 324536, 234428, 291773, 242623, 324544, 234431, 234434, 324546, 324548, 226245, 234437, 234439, 226239, 234443, 291788, 234446, 275406, 193486, 234449, 316370, 193488, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 316416, 234496, 308226, 234501, 275462, 308231, 234504, 234507, 234515, 300054, 316439, 234520, 234519, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 300085, 234549, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 160835, 234563, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 242777, 234585, 275545, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 226453, 234647, 234648, 275606, 234650, 275608, 324757, 300189, 324766, 119967, 234653, 308379, 283805, 234657, 242852, 300197, 234661, 283813, 234664, 324768, 275626, 234667, 177318, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 300229, 308420, 308422, 226500, 283844, 300234, 283850, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 161027, 300292, 300294, 275719, 234760, 177419, 300299, 242957, 300301, 283917, 177424, 349451, 275725, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 144812, 144814, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 226802, 227440, 316917, 308727, 292343, 300537, 316933, 316947, 308757, 308762, 284191, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 292414, 284223, 284226, 284228, 292421, 226886, 284231, 128584, 243268, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 276053, 284247, 317015, 284249, 243290, 284251, 235097, 284253, 300638, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 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, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 284358, 276166, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 276187, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 292681, 153417, 358224, 284499, 276308, 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, 292776, 284585, 276395, 276402, 358326, 161718, 358330, 276410, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276452, 292839, 276455, 350186, 292843, 292845, 276464, 178161, 227314, 325624, 350200, 317435, 276479, 276482, 350210, 276485, 317446, 178181, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 178224, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 276539, 276544, 243779, 325700, 284739, 292934, 243785, 276553, 350293, 350295, 309337, 194649, 227418, 350299, 350302, 227423, 350304, 178273, 309346, 194657, 194660, 350308, 309350, 309348, 292968, 309352, 227426, 276579, 227430, 276583, 309354, 301167, 276590, 350321, 350313, 350316, 284786, 350325, 252022, 276595, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 284837, 153765, 350375, 350379, 350381, 350383, 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, 309494, 243960, 276735, 227583, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 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, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 219714, 129603, 301636, 318020, 301639, 301643, 277071, 285265, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 309871, 121458, 277106, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 334488, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 342707, 154292, 318132, 277173, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 342749, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 56045, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277317, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 15224, 277368, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 318442, 228330, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 244731, 285690, 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, 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, 130345, 277801, 113964, 277804, 384302, 285999, 285997, 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, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 277892, 277894, 253320, 310665, 318858, 327046, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 302534, 310727, 64966, 245191, 163272, 277959, 277963, 302541, 277966, 302543, 310737, 277971, 228825, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 310764, 286188, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 40448, 228864, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 286240, 146977, 187936, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 278057, 310831, 245288, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 327240, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 147032, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286313, 40554, 286312, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 278168, 179870, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 278227, 286420, 229076, 286425, 319194, 278235, 301163, 278238, 229086, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 278320, 319280, 319290, 229192, 302925, 188247, 280021, 188252, 237409, 229233, 294776, 360317, 294785, 327554, 360322, 40840, 40851, 294803, 188312, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
93d3bdca4b8626e31912458374223c12c0bfa821
0de2177aae2e421688aa67d32415ef20e5e8578c
/FinalDemo/Shared/Other/wu/WakeUppApp/Controllers/CustomCells/SearchContactCell.swift
b057983ba602b8eb67c3c8a3cf873edd0b288bf7
[]
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
699
swift
// // SearchContactCell.swift // WakeUppApp // // Created by C025 on 21/06/18. // Copyright © 2018 el. All rights reserved. // import UIKit class SearchContactCell: UITableViewCell { @IBOutlet weak var viewMain: UIView! @IBOutlet weak var imgUser: UIImageView! @IBOutlet weak var lblName: UILabel! @IBOutlet weak var lblUsername: UILabel! @IBOutlet weak var btnFollow: 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 } }
[ -1 ]
ed76bbcf8db29bfefc8b63e683feb6d5be7b29d7
24afc3e7438ff510c66056cec440054f619043ac
/Clean Swift HELM/Repository.xctemplate/both/___FILEBASENAME___Repository.swift
95e1009cfeb24dd64a97f5c89eb803798a5c3b7c
[ "MIT" ]
permissive
aimmanager/clean-swift-templates
884d11116c3f5dbc444cdae4614d2b0e7d1e9fba
7391c6a48fbc8243e1f47b25afd7733643d265ad
refs/heads/master
2020-04-05T05:53:39.971217
2018-11-08T00:45:45
2018-11-08T00:54:30
156,616,079
0
0
null
2018-11-07T22:22:07
2018-11-07T22:22:06
null
UTF-8
Swift
false
false
1,375
swift
// // ___FILENAME___ // ___PROJECTNAME___ // // Created by ___FULLUSERNAME___ on ___DATE___. // Copyright (c) ___YEAR___ ___ORGANIZATIONNAME___. All rights reserved. // // This file was generated by the Clean Swift HELM Xcode Templates // https://github.com/HelmMobile/clean-swift-templates import UIKit class ___VARIABLE_repositoryName___Repository: ___VARIABLE_entityPluralName___RepositoryProtocol { // MARK: CRUD operations func get___VARIABLE_entityPluralName___() -> ___VARIABLE_entityPluralName___RepositoryGet___VARIABLE_entityPluralName___Response { return <#code#> } func get___VARIABLE_entityName___(id: Int) -> ___VARIABLE_entityPluralName___RepositoryGet___VARIABLE_entityName___Response { return <#code#> } func create___VARIABLE_entityName___(___VARIABLE_entityLowercaseName___: ___VARIABLE_entityName___) -> ___VARIABLE_entityPluralName___RepositoryCreate___VARIABLE_entityName___ { return <#code#> } func update___VARIABLE_entityName___(___VARIABLE_entityLowercaseName___: ___VARIABLE_entityName___) -> ___VARIABLE_entityPluralName___RepositoryUpdate___VARIABLE_entityName___ { return <#code#> } func delete___VARIABLE_entityName___(id: Int) -> ___VARIABLE_entityPluralName___RepositoryDelete___VARIABLE_entityName___ { return <#code#> } }
[ -1 ]
1d769df47d94144f2a0babe1f5517754e3affe38
26219b23e8453ad63409dd575d675410613cc125
/QuantiBase/ios/MultipleIndependentUiGesturing.swift
008818ddfcf129c24788cbafcb982e6a3204660e
[ "MIT" ]
permissive
Qase/Base-ios
fc04e95303e04cfdd3cd40b05404350cb665c13f
3625422fb4806cc9df8dfa728c052c138efb1499
refs/heads/master
2021-11-25T07:58:34.895052
2021-11-17T12:09:33
2021-11-17T12:09:33
142,304,540
4
2
MIT
2021-07-13T01:59:28
2018-07-25T13:34:20
Swift
UTF-8
Swift
false
false
2,260
swift
// // MultipleIndependentTapGesturing.swift // 2N-mobile-communicator // // Created by Martin Troup on 22/06/2017. // Copyright © 2017 quanti. All rights reserved. // import UIKit // Hidden tap and press gestures may be used to evoke states of application that are not possible to induce during UI tests (i.e. no internet connection). // Such gestures can be hidden away from regular users by assigning them to hidden views or making them almost imposible for users to induce (i.e. 7x tap or press for 10s). // There might be multiple such gestures for a single view (because there might be more difficult states to evoke when UI testing) // and thus multiple different tap or press gestures must be used (i.e. 7x tap + 8x tap). The problem is that 8x tap gesture also invokes 7x tap gesture action. // -> setIndependency(for:) makes these similar gestures independent from each other. // Tap gestures public protocol MultipleIndependentUiTapGesturing { var uiTapGestureRecognizers: [UITapGestureRecognizer] { get } func setIndependency(for recognizers: [UITapGestureRecognizer]) } extension MultipleIndependentUiTapGesturing { public func setIndependency(for recognizers: [UITapGestureRecognizer]) { recognizers.forEach { outerGestureRecognizer in recognizers.filter { $0.numberOfTapsRequired > outerGestureRecognizer.numberOfTapsRequired } .forEach { innerGestureRecognizer in outerGestureRecognizer.require(toFail: innerGestureRecognizer) } } } } // Press gestures public protocol MultipleIndependentUiPressGesturing { var uiPressGestureRecognizers: [UILongPressGestureRecognizer] { get } func setIndependency(for recognizers: [UILongPressGestureRecognizer]) } extension MultipleIndependentUiPressGesturing { public func setIndependency(for recognizers: [UILongPressGestureRecognizer]) { recognizers.forEach { (outerGestureRecognizer) in recognizers.filter { $0.minimumPressDuration > outerGestureRecognizer.minimumPressDuration } .forEach({ (innerGestureRecognizer) in outerGestureRecognizer.require(toFail: innerGestureRecognizer) }) } } }
[ -1 ]
22c1069fd47e15a225a63ef98726655cbfd60ddb
8e801c2405e6cc3ae251cf2082121a657d919ef1
/Assignment-2/Assignment-2/LogInViewController.swift
56dbc6560afa575b9d04eeca8010ddbf8406be89
[]
no_license
YuzeZhu/SIT-206_Assignment-2
b4ce8ea79bd7e12a112a75342375a6402ee788a7
85e888cb907049eb0f2e0d1caa6ed3158c222e90
refs/heads/master
2020-03-12T08:57:47.906047
2018-05-27T12:22:45
2018-05-27T12:22:45
130,541,145
0
0
null
null
null
null
UTF-8
Swift
false
false
872
swift
// // LogInViewController.swift // Assignment-2 // // Created by ZHU YUZE ZHU on 22/4/18. // Copyright © 2018 ZHU YUZE ZHU. All rights reserved. // import UIKit class LogInViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } /* // 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. } */ }
[ 278016, 279041, 278018, 278020, 278021, 279046, 215562, 275466, 308242, 281107, 293909, 217109, 300057, 296489, 284208, 281142, 286775, 300089, 238653, 286786, 129604, 228932, 226887, 300107, 292428, 292429, 292431, 226896, 228945, 203858, 280146, 292432, 212573, 309347, 281701, 309349, 309351, 309353, 286314, 296042, 277612, 311913, 164974, 284275, 277108, 284277, 284279, 284285, 292478, 284287, 284289, 285321, 284298, 278675, 349332, 284315, 284317, 282275, 284323, 313007, 284336, 276150, 280760, 282301, 296638, 277696, 280770, 285378, 280772, 280775, 284361, 230604, 298189, 302286, 230608, 317137, 290004, 284373, 290006, 302295, 189655, 298202, 278749, 280797, 298206, 363743, 290020, 301284, 277224, 280808, 199402, 280810, 289524, 120054, 226038, 280826, 282368, 276736, 280832, 311045, 282377, 312586, 302865, 288251, 278298, 329499, 287004, 281373, 295711, 228127, 287007, 282403, 281380, 233767, 283433, 283453, 278845, 279360, 288577, 288579, 296272, 279380, 289112, 279386, 188253, 292701, 311645, 308064, 227688, 228201, 280434, 277364, 292730, 207738, 290175, 183173, 233869, 304015, 306577, 226196, 188313, 284570, 283034, 284574, 284577, 289187, 283556, 289190, 289191, 305577, 291755, 289196, 370093, 279982, 286126, 297903, 305582, 291759, 282035, 282548, 278968, 293816, 127418, 293308, 278973, 291774, 10179, 286158, 280015, 286162, 301012, 191453, 280030, 279011, 289771, 278015, 231405, 282095, 302580, 236022, 290299, 287231 ]
aba33bcb343b94a33f40a728936f2b870f2e0c9d
275a7b790b6214e00b5063752e30c087129ef6b5
/XibProgect/XibProgect/ViewController.swift
b4014cc3ad0b5c1ec97cdc815a92c16bd3346916
[]
no_license
softwaredavid/generalToolsForSwift
418a2ff8e31b4e0108978281af652629b655a01d
93ada792b14c794c4a868932e7aff4cc6b744587
refs/heads/master
2021-01-17T12:09:42.302330
2017-07-11T07:22:42
2017-07-11T07:22:42
95,394,327
2
0
null
null
null
null
UTF-8
Swift
false
false
506
swift
// // ViewController.swift // XibProgect // // Created by Apple on 2017/6/26. // Copyright © 2017年 WangDaoLeTu. All rights reserved. // import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } }
[ 279041, 279046, 288775, 277512, 215562, 275466, 294411, 287243, 278543, 281107, 279064, 281118, 282143, 295460, 284197, 289318, 296487, 296489, 286249, 304174, 309807, 300086, 286775, 279096, 234551, 300089, 234043, 288827, 238653, 226878, 288321, 277057, 129604, 301637, 226887, 293961, 286796, 158285, 226896, 212561, 284242, 292435, 300629, 276054, 237655, 307288, 282202, 40545, 200802, 277602, 284261, 281703, 306791, 309353, 286314, 296042, 311913, 164974, 307311, 312433, 281202, 284275, 277108, 300149, 314996, 276087, 287350, 234619, 284287, 284289, 278657, 276099, 276612, 280710, 285321, 284298, 303242, 278157, 311437, 226447, 234641, 349332, 117399, 280219, 299165, 282270, 285855, 228000, 282275, 225955, 278693, 287399, 326311, 100521, 313007, 302256, 299186, 277171, 307379, 284341, 286390, 300727, 280760, 282301, 299709, 283839, 277696, 285377, 280770, 227523, 302788, 228548, 228551, 279751, 280775, 279754, 282311, 230604, 284361, 276686, 298189, 282320, 229585, 302286, 307410, 230608, 189655, 302295, 226009, 282329, 363743, 278752, 282338, 290020, 291556, 277224, 228585, 282346, 237564, 234223, 358127, 312049, 279791, 286963, 280821, 120054, 226038, 234232, 282357, 280826, 286965, 358139, 282365, 286462, 280832, 282368, 300288, 358147, 230147, 226055, 282377, 299786, 312586, 300817, 282389, 288251, 282393, 278298, 329499, 369434, 228127, 295711, 315170, 282403, 281380, 282917, 304933, 233767, 315177, 283433, 130346, 282411, 289578, 293682, 159541, 282426, 319291, 289596, 283453, 307516, 279360, 289088, 288577, 288579, 293700, 300358, 238920, 234829, 296272, 307029, 298842, 241499, 298843, 311645, 308064, 227688, 313706, 290303, 306540, 296813, 299374, 162672, 199024, 276849, 278897, 315250, 298359, 310649, 292730, 333179, 207738, 303998, 290175, 275842, 224643, 311684, 313733, 304008, 292344, 324491, 304012, 234380, 304015, 300432, 226705, 310673, 306577, 279442, 306578, 277406, 285087, 275358, 234402, 289187, 284580, 288165, 279463, 276396, 289196, 286126, 277935, 324528, 370093, 282035, 230323, 292277, 296374, 130487, 234423, 277432, 278968, 289204, 293308, 278973, 298936, 295874, 299973, 165832, 306633, 286158, 280015, 310734, 301012, 301016, 163289, 280028, 280029, 280030, 286175, 234465, 276965, 168936, 294889, 231405, 183278, 282095, 277487, 308721, 227315, 296436, 237556, 281078, 302580, 236022, 310773, 290299, 233980, 287231 ]
cb59f921933e6b14b74dece40276e1726c30835e
3d144a23e67c839a4df1c073c6a2c842508f16b2
/test/SourceKit/ActiveRegions/unterminated.swift
fe96e06fd1d0a01d0aed1a0d05ac03418a668a11
[ "Apache-2.0", "Swift-exception" ]
permissive
apple/swift
c2724e388959f6623cf6e4ad6dc1cdd875fd0592
98ada1b200a43d090311b72eb45fe8ecebc97f81
refs/heads/main
2023-08-16T10:48:25.985330
2023-08-16T09:00:42
2023-08-16T09:00:42
44,838,949
78,897
15,074
Apache-2.0
2023-09-14T21:19:23
2015-10-23T21:15:07
C++
UTF-8
Swift
false
false
299
swift
#if FLAG_1 class Foo { } #else class Fallback { } // RUN: %sourcekitd-test -req=active-regions %s -- -D FLAG_1 -module-name active_regions %s | %FileCheck -check-prefix=CHECK1 %s // CHECK1: START IF CONFIGS // CHECK1-NEXT: 1:1 - active // CHECK1-NEXT: 4:1 - inactive // CHECK1-NEXT: END IF CONFIGS
[ -1 ]
c8b7dfe1fb46069f26e18915f518d8de4de5fa48
79a99e1119285b5c022500c5e83291fdb3765f89
/GMapsTest/Networking/NetworkRequestBuilderError.swift
6aa7641ae3dfbce8f2fb3d6364c4887c16f6043f
[ "MIT" ]
permissive
illescasDaniel/GMapsTest
5f8e207be61fd6f4303017ec129aacab51d3e364
44e7c3fd0c5e97908faa9a038f5b3d9eb4e035d7
refs/heads/master
2020-11-25T13:40:13.833649
2020-01-16T18:06:35
2020-01-16T18:06:35
228,691,712
2
1
null
null
null
null
UTF-8
Swift
false
false
394
swift
// // NetworkRequestBuilderError.swift // GMapsTest // // Created by Daniel Illescas Romero on 17/12/2019. // Copyright © 2019 Daniel Illescas Romero. All rights reserved. // import Foundation enum NetworkRequestBuilderError: Error { case malformedURL /// This error can occur when you forget to prepend slashes "/" to the path variable of a URLComponent case invalidConstructedURL }
[ -1 ]
291d787d0976577d00bf2ccfb366474509366723
27ffbbdaa1888c0dd3c4a5c271cbb8ebb1450ccb
/SwiftFHIRTests/ModelTests/DocumentManifestTests.swift
2716162d19026ba1a47af002612e740a5d786747
[ "Apache-2.0" ]
permissive
sshih/Swift-FHIR
fb62270aeaa31a3fc551848acf46685a6d025633
300ab95385bc455932f37f1e4bc827d836b45d9a
refs/heads/master
2021-01-15T14:12:41.470190
2015-07-23T23:51:05
2015-07-23T23:51:05
39,595,785
0
0
null
2015-07-23T22:03:49
2015-07-23T22:03:49
null
UTF-8
Swift
false
false
1,718
swift
// // DocumentManifestTests.swift // SwiftFHIR // // Generated from FHIR 0.5.0.5149 on 2015-04-03. // 2015, SMART Health IT. // import XCTest import SwiftFHIR class DocumentManifestTests: FHIRModelTestCase { func instantiateFrom(# filename: String) -> DocumentManifest { return instantiateFrom(json: readJSONFile(filename)!) } func instantiateFrom(# json: FHIRJSON) -> DocumentManifest { let instance = DocumentManifest(json: json) XCTAssertNotNil(instance, "Must have instantiated a test instance") return instance } func testDocumentManifest1() { let instance = testDocumentManifest1_impl() testDocumentManifest1_impl(json: instance.asJSON()) } func testDocumentManifest1_impl(json: FHIRJSON? = nil) -> DocumentManifest { let inst = (nil != json) ? instantiateFrom(json: json!) : instantiateFrom(filename: "documentmanifest-example.json") XCTAssertEqual(inst.author![0].reference!, "#a1") XCTAssertEqual(inst.content![0].pReference!.reference!, "DocumentReference/example") XCTAssertEqual(inst.created!.description, "2004-12-25T23:50:50-05:00") XCTAssertEqual(inst.description_fhir!, "Physical") XCTAssertEqual(inst.id!, "example") XCTAssertEqual(inst.masterIdentifier!.system!.absoluteString!, "http://example.org/documents") XCTAssertEqual(inst.masterIdentifier!.value!, "23425234234-2346") XCTAssertEqual(inst.source!.absoluteString!, "urn:oid:1.3.6.1.4.1.21367.2009.1.2.1") XCTAssertEqual(inst.status!, "current") XCTAssertEqual(inst.subject!.reference!, "Patient/xcda") XCTAssertEqual(inst.text!.div!, "<div>Text</div>") XCTAssertEqual(inst.text!.status!, "generated") XCTAssertEqual(inst.type!.text!, "History and Physical") return inst } }
[ -1 ]
c8721aa1554490a910e3e13e09780fcddd3c0f9d
eb323285c07d308c256d5079f8a02317a32c18ba
/Nummy_Bus/LoginModule/LoginViewController.swift
529ebb742d2fa50224ecb0cd1bb4d5dd2d406ca3
[]
no_license
omittech/Nummy_bus
62f9165493ce30b6635bb28a3b0805a28f24a192
2a38633bb61edb8de7e6c919ddf5c286c80c63e1
refs/heads/master
2021-01-25T07:27:53.588383
2015-09-22T17:33:12
2015-09-22T17:33:12
41,067,302
0
0
null
null
null
null
UTF-8
Swift
false
false
1,281
swift
// // LoginViewController.swift // Nummy_Bus // // Created by Ralph Wang on 2015-09-10. // Copyright (c) 2015 Cheng Sun. All rights reserved. // import UIKit class LoginViewController: UIViewController { @IBOutlet var usernameInput: UITextField! @IBOutlet var passwordInput: UITextField! @IBAction func forgetPasswordBtn(sender: AnyObject) { NSLog("forgetPassword Button clicked!") } @IBAction func signUpBtn(sender: AnyObject) { NSLog("signUp Button clicked!") } @IBAction func loginBtn(sender: AnyObject) { NSLog("Login Button clicked!") } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() // Dispose of any resources that can be recreated. } /* // 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. } */ }
[ 278016, 292096, 292102, 198315, 277420, 277421, 277427, 277433, 278015 ]
eaef19cb564947bff54b7da1bc2cebbdf057f3c2
cf7080652e7c4083648b4c487292a76d90dcc8e0
/Smack/Services/AuthService.swift
81d6970d13d7de4504a051123887649ded445b6b
[]
no_license
SSt6708/Smack
ad1ca1ca4c4fb32e2c13c75a6c299f4a7c6ab6bd
102ec78e0b4aac19ccfd721a5d1278d1435c42b4
refs/heads/master
2020-05-26T05:35:25.954143
2019-06-07T22:35:18
2019-06-07T22:35:18
188,123,000
0
0
null
null
null
null
UTF-8
Swift
false
false
5,299
swift
// // AuthService.swift // Smack // // Created by Steven Liu on 2019/5/23. // Copyright © 2019 Steven Liu. All rights reserved. // import Foundation import Alamofire import SwiftyJSON class AuthService { static let instance = AuthService() let defaults = UserDefaults.standard var isLoggedIn: Bool{ get{ return defaults.bool(forKey: LOGGED_IN_KEY) } set{ defaults.set(newValue, forKey: LOGGED_IN_KEY) } } var authToke: String{ get{ return defaults.value(forKey:TOKEN_KEY) as! String } set{ defaults.set(newValue, forKey: TOKEN_KEY) } } var userEmail: String{ get{ return defaults.value(forKey:USER_EMAIL) as! String } set{ defaults.set(newValue, forKey: USER_EMAIL) } } func registerUser(email: String, password: String, completion: @escaping CompletionHandler){ let lowerCaseEmail = email.lowercased() let body: [String: Any] = [ "email": lowerCaseEmail, "password": password ] Alamofire.request(URL_REGISTER, method: .post, parameters: body, encoding: JSONEncoding.default, headers: HEADER).responseString { (response) in if response.result.error == nil { completion(true) }else{ completion(false) debugPrint(response.result.error as Any) } } } func loginUser(email: String, password: String, completion: @escaping CompletionHandler){ let lowerCaseEmail = email.lowercased() let body: [String: Any] = [ "email": lowerCaseEmail, "password": password ] Alamofire.request(URL_LOGIN, method: .post, parameters: body, encoding: JSONEncoding.default, headers: HEADER).responseJSON { (response) in if response.result.error == nil { //without SwiftyJSON /*if let json = response.result.value as? Dictionary<String, Any>{ if let email = json["user"] as? String{ self.userEmail = email } if let token = json["token"]as? String{ self.authToke = token } }*/ //using SwiftyJSON guard let data = response.data else{return} let json = JSON(data: data) self.userEmail = json["user"].stringValue self.authToke = json["token"].stringValue self.isLoggedIn = true completion(true) }else{ completion(false) debugPrint(response.result.error as Any) } } } func createUser(name: String , email: String, avatarName: String, avatarColor: String, completion: @escaping CompletionHandler){ let lowerCaseEmail = email.lowercased() let body: [String: Any] = [ "name":name, "email": lowerCaseEmail, "avatarName": avatarName, "avatarColor": avatarColor ] Alamofire.request(URL_USER_ADD, method: .post, parameters: body, encoding: JSONEncoding.default, headers: BEARER_HEADER).responseJSON { (response) in if response.result.error == nil { guard let data = response.data else{return} self.setUserInfo(data: data) completion(true) }else{ completion(false) debugPrint(response.result.error as Any) } } } func findUserByEmail(completion: @escaping CompletionHandler){ Alamofire.request("\(URL_USER_BY_EMAIL)\(userEmail)", method: .get, parameters: nil, encoding: JSONEncoding.default, headers: BEARER_HEADER).responseJSON { (response) in if response.result.error == nil { guard let data = response.data else{return} self.setUserInfo(data: data) // updates user info completion(true) }else{ completion(false) debugPrint(response.result.error as Any) } } } func setUserInfo(data:Data){ let json = JSON(data: data) let id = json["_id"].stringValue let color = json["avatarColor"].stringValue let avatarName = json["avatarName"].stringValue let email = json["email"].stringValue let name = json["name"].stringValue UserDataService.instance.setUserData(id: id, color: color, avatarName: avatarName, email: email, name: name) } }
[ -1 ]
9c3946a969091e894960b2ff0edb5d546ecf5c21
edb198023155468cd27a70cf185969a22b101600
/Recipes/Recipes/View Controllers/MainViewController.swift
34b06f98e865128d6e7c446c6c945a21fb7ef25e
[]
no_license
gerrior/ios-recipes
0acba09847accf416e5ee2997b7b048d39c04eab
9111a639383738f6a0e4618037c51d73143c24d6
refs/heads/master
2021-03-05T11:14:01.781445
2020-03-10T03:24:20
2020-03-10T03:24:20
246,118,122
0
0
null
2020-03-09T18:58:08
2020-03-09T18:58:08
null
UTF-8
Swift
false
false
2,725
swift
// // MainViewController.swift // Recipes // // Created by Mark Gerrior on 3/9/20. // Copyright © 2020 Lambda Inc. All rights reserved. // import UIKit class MainViewController: UIViewController { // MARK: - Outlets @IBOutlet weak var textField: UITextField! // MARK: - Actions @IBAction func textFieldAction(_ sender: Any) { resignFirstResponder() filterRecipes() } // MARK: - Properties var allRecipes: [Recipe] = [] { didSet { filterRecipes() } } var filteredRecipes: [Recipe] = [] { didSet { recipesTableViewController?.recipes = filteredRecipes } } var recipesTableViewController: RecipesTableViewController? { didSet { recipesTableViewController?.recipes = filteredRecipes } } let networkClient = RecipesNetworkClient() // MARK: - Methods override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. textField.delegate = self networkClient.fetchRecipes { recipes, error in if let error = error { NSLog("Error loading recipes: \(error)!") return } if let recipes = recipes { DispatchQueue.main.sync { self.allRecipes = recipes } } } } func filterRecipes() { if let searchString = textField.text, !searchString.isEmpty { filteredRecipes = allRecipes.filter { $0.name.contains(searchString) || $0.instructions.contains(searchString) } } else { // Nothing to search for filteredRecipes = allRecipes } } // MARK: - Navigation // In a storyboard-based application, you will often want to do a little preparation before navigation override func prepare(for segue: UIStoryboardSegue, sender: Any?) { // Get the new view controller using segue.destination. // Pass the selected object to the new view controller. if segue.identifier == "RecipesSegue" { print("RecipesSegue called") guard let recipesTVC = segue.destination as? RecipesTableViewController else { fatalError() } recipesTableViewController = recipesTVC } } } extension MainViewController: UITextFieldDelegate { func textFieldShouldClear(_ textField: UITextField) -> Bool { textField.text = "" filterRecipes() return true // text field’s contents should be cleared } }
[ -1 ]