blob_id
stringlengths
40
40
directory_id
stringlengths
40
40
path
stringlengths
2
625
content_id
stringlengths
40
40
detected_licenses
listlengths
0
47
license_type
stringclasses
2 values
repo_name
stringlengths
5
116
snapshot_id
stringlengths
40
40
revision_id
stringlengths
40
40
branch_name
stringclasses
643 values
visit_date
timestamp[ns]
revision_date
timestamp[ns]
committer_date
timestamp[ns]
github_id
int64
80.4k
689M
star_events_count
int64
0
209k
fork_events_count
int64
0
110k
gha_license_id
stringclasses
16 values
gha_event_created_at
timestamp[ns]
gha_created_at
timestamp[ns]
gha_language
stringclasses
85 values
src_encoding
stringclasses
7 values
language
stringclasses
1 value
is_vendor
bool
1 class
is_generated
bool
1 class
length_bytes
int64
4
6.44M
extension
stringclasses
17 values
content
stringlengths
4
6.44M
duplicates
listlengths
1
9.02k
95767ed504f56b8a5b1e0a50f859d60e2cfedc23
9df5b40cd91325cbeba7f35294f3f466ea26b61d
/MVVM_Swinject_Rx/MVVM_Swinject_Rx/Models/Users.swift
58139dfe5986b3140c7eb3d3481db1c8cab269e3
[]
no_license
Creign/MVVM_Swinject_RxSwift
b11f8776009ac936584e9f3d03087dbb341fc15d
b757c593046942f95c77f83ee1bc0f22e5ae907b
refs/heads/master
2020-05-02T04:21:21.459242
2019-03-27T03:21:06
2019-03-27T03:21:06
177,747,238
1
0
null
null
null
null
UTF-8
Swift
false
false
977
swift
// // Users.swift // MVVM_Swinject_Rx // // Created by Excell on 26/03/2019. // Copyright © 2019 Excell. All rights reserved. // import Foundation import ObjectMapper class UsersList: Mappable { var page: Int? var perPage: Int? var pages: Int? var total: Int? var totalPages: Int? var data: [Users]? required init?(map: Map) { } func mapping(map: Map) { self.page <- map["page"] self.perPage <- map["per_page"] self.total <- map["total"] self.totalPages <- map["total_pages"] self.data <- map["data"] } } class Users: Mappable { var id: Int? var firstName: String? var lastName: String? var avatar: String? required init?(map: Map) { } func mapping(map: Map) { self.id <- map["id"] self.firstName <- map["first_name"] self.lastName <- map["last_name"] self.avatar <- map["avatar"] } }
[ -1 ]
17f6263afd426f5fbcc5760a05c58a2828d8f3e3
ea01b3e05b9bfb0fc4f9c9c74879e4e66d0eaa92
/imitateGoodUITests/test071102Tests.swift
df6c8e57e2fd729d6a39d719921396ae9493f071
[]
no_license
gztin/firstClass-imitateGoodUI
673ad6b1511a923106e11ba1d851591986d9dab0
1b9ff7d0bf73eb3740ec6beccee6f0839a026c5f
refs/heads/main
2023-06-18T15:36:19.649870
2021-07-11T20:01:36
2021-07-11T20:01:36
385,042,219
0
0
null
null
null
null
UTF-8
Swift
false
false
904
swift
// // test071102Tests.swift // test071102Tests // // Created by 陳宗廷 on 2021/7/11. // import XCTest @testable import test071102 class test071102Tests: XCTestCase { override func setUpWithError() throws { // Put setup code here. This method is called before the invocation of each test method in the class. } override func tearDownWithError() throws { // Put teardown code here. This method is called after the invocation of each test method in the class. } func testExample() throws { // This is an example of a functional test case. // Use XCTAssert and related functions to verify your tests produce the correct results. } func testPerformanceExample() throws { // This is an example of a performance test case. self.measure { // Put the code you want to measure the time of here. } } }
[ 360462, 98333, 16419, 229413, 204840, 278570, 344107, 155694, 253999, 229430, 319542, 163896, 180280, 352315, 376894, 352326, 311372, 196691, 278615, 385116, 237663, 254048, 319591, 221290, 278634, 319598, 352368, 204916, 131191, 237689, 278655, 278677, 196760, 426138, 278685, 311458, 278691, 49316, 32941, 278704, 377009, 278708, 131256, 295098, 139479, 254170, 229597, 311519, 205035, 286958, 336120, 327929, 344313, 147717, 368905, 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, 106874, 246137, 311685, 106888, 385417, 385422, 213403, 385454, 377264, 311738, 33211, 278970, 336317, 319930, 336320, 311745, 278978, 254406, 188871, 278993, 278999, 328152, 369116, 287198, 279008, 279013, 279018, 319981, 279029, 254456, 279032, 377338, 377343, 279039, 254465, 287241, 279050, 139792, 303636, 393751, 254488, 279065, 377376, 377386, 197167, 385588, 352829, 115270, 385615, 426576, 369235, 295519, 139872, 66150, 344680, 139892, 287352, 344696, 279164, 189057, 311941, 336518, 369289, 311945, 344715, 279177, 311949, 287374, 377489, 311954, 352917, 230040, 271000, 377497, 303771, 377500, 205471, 344738, 139939, 279206, 295590, 352937, 287404, 205487, 303793, 336564, 164533, 287417, 287422, 66242, 377539, 164560, 385747, 279252, 361176, 418520, 287452, 295652, 369385, 312047, 312052, 172792, 344827, 221948, 344828, 205568, 295682, 197386, 434957, 426774, 197399, 426775, 336671, 344865, 197411, 279336, 295724, 353069, 197422, 353070, 164656, 295729, 312108, 328499, 353078, 353079, 197431, 230199, 336702, 353094, 353095, 353109, 377686, 230234, 189275, 435039, 295776, 303972, 385893, 246641, 246643, 295798, 246648, 361337, 279417, 254850, 369538, 287622, 295824, 189348, 353195, 140204, 353197, 377772, 304051, 230332, 377790, 353215, 353216, 213957, 213960, 345033, 279498, 386006, 418776, 50143, 123881, 320493, 320494, 304110, 271350, 295927, 304122, 320507, 328700, 328706, 410627, 320516, 295942, 386056, 353290, 230410, 377869, 320527, 238610, 418837, 140310, 197657, 336929, 369701, 345132, 238639, 312373, 238651, 361535, 377926, 361543, 238664, 353367, 156764, 156765, 304222, 173166, 377972, 353397, 377983, 402565, 279685, 222343, 386189, 337039, 296086, 238743, 296092, 238765, 279728, 238769, 402613, 353479, 353481, 353482, 402634, 189653, 419029, 148696, 296153, 279774, 304351, 304356, 222440, 328940, 279792, 66801, 353523, 386294, 386301, 320770, 386306, 279814, 66825, 328971, 312587, 353551, 320796, 222494, 66862, 353584, 345396, 386359, 116026, 378172, 222524, 279875, 312648, 337225, 304456, 230729, 238927, 353616, 296273, 222559, 378209, 230756, 386412, 230765, 279920, 312689, 296307, 116084, 337281, 148867, 378244, 296329, 296335, 9619, 370071, 279974, 173491, 304564, 353719, 361927, 370123, 148940, 280013, 312782, 222675, 353750, 271843, 280041, 361963, 296433, 321009, 280055, 288249, 296448, 230921, 329225, 296461, 304656, 329232, 370197, 402985, 394794, 230959, 288309, 312889, 288318, 124485, 288326, 288327, 239198, 99938, 312940, 222832, 370296, 247416, 337534, 337535, 263809, 288392, 239250, 419478, 345752, 255649, 337591, 321207, 296632, 280251, 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, 296755, 321337, 345919, 436031, 403267, 345929, 255829, 18262, 362327, 370522, 345951, 362337, 345955, 296806, 288619, 214895, 313199, 362352, 313203, 124798, 182144, 305026, 67463, 329622, 337815, 124824, 214937, 239514, 436131, 354212, 436137, 362417, 124852, 288697, 362431, 214977, 214984, 362443, 247757, 346067, 280541, 329695, 436191, 354272, 337895, 313319, 354280, 174057, 247785, 436205, 247791, 329712, 362480, 313339, 43014, 354316, 313357, 182296, 223268, 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, 379071, 149703, 338119, 346314, 321745, 387296, 280802, 379106, 338150, 346346, 321772, 125169, 338164, 436470, 125183, 149760, 411906, 125188, 313608, 125193, 125198, 272658, 125203, 272660, 125208, 305440, 125217, 338218, 321840, 379186, 125235, 280887, 125240, 321860, 182598, 289110, 215385, 272729, 379225, 321894, 280939, 354676, 199029, 354677, 436608, 362881, 240002, 436611, 248194, 395659, 395661, 108944, 240016, 190871, 149916, 420253, 141728, 289189, 108972, 272813, 338356, 436661, 289232, 281040, 256477, 281072, 174593, 420369, 289304, 207393, 182817, 289332, 174648, 338489, 338490, 322120, 281166, 297560, 354911, 436832, 436834, 191082, 313966, 420463, 281199, 346737, 313971, 346740, 420471, 330379, 330387, 117396, 346772, 330388, 264856, 314009, 289434, 363163, 346779, 338613, 314040, 158394, 363211, 363230, 289502, 264928, 338662, 330474, 346858, 289518, 125684, 199414, 363263, 35583, 322316, 117517, 322319, 166676, 207640, 289576, 191283, 273207, 355130, 289598, 355137, 355139, 420677, 355146, 355152, 355154, 281427, 281433, 355165, 355178, 330609, 207732, 158593, 240518, 224145, 355217, 256922, 289690, 420773, 289703, 256935, 363438, 347055, 289727, 273344, 330689, 363458, 379844, 19399, 338899, 330708, 248796, 248797, 207838, 347103, 314342, 289774, 347123, 240630, 314362, 257024, 330754, 330763, 281626, 248872, 322612, 248901, 257094, 314448, 339030, 314467, 281700, 257125, 322663, 273515, 207979, 404593, 363641, 363644, 150657, 248961, 330888, 347283, 363669, 339100, 380061, 339102, 199839, 429214, 265379, 249002, 306346, 44203, 3246, 421048, 339130, 265412, 290000, 134366, 298208, 298212, 298213, 330984, 298221, 298228, 216315, 208124, 388349, 363771, 437505, 322824, 257305, 126237, 339234, 109861, 372009, 412971, 306494, 216386, 224586, 372043, 331090, 314710, 372054, 159066, 314720, 314728, 380271, 314739, 208244, 314741, 249204, 290173, 306559, 314751, 298374, 314758, 314760, 142729, 388487, 314766, 306579, 282007, 290207, 314783, 314789, 314791, 396711, 396712, 282024, 241066, 380337, 380338, 150965, 380357, 339398, 306639, 413137, 429542, 191981, 290301, 282114, 372227, 323080, 323087, 175639, 388632, 396827, 134686, 282146, 306723, 355876, 347694, 290358, 265798, 265804, 396882, 290390, 44635, 396895, 323172, 282213, 323178, 224883, 314998, 323196, 175741, 339584, 339585, 224901, 282245, 282246, 323217, 282259, 298654, 323236, 298661, 282280, 364207, 224946, 110268, 224958, 282303, 274115, 306890, 241361, 298712, 298720, 12010, 282348, 282358, 175873, 339715, 323331, 323332, 339720, 372496, 323346, 249626, 282400, 339745, 241441, 257830, 421672, 282417, 282427, 315202, 307011, 216918, 241495, 241528, 339841, 315273, 315274, 372626, 380821, 282518, 282519, 118685, 298909, 323507, 290745, 290746, 274371, 151497, 372701, 298980, 380908, 290811, 282633, 241692, 102437, 315432, 102445, 233517, 176175, 241716, 225351, 315465, 315476, 307289, 200794, 315487, 356447, 45153, 438377, 315498, 299121, 233589, 266357, 422019, 241808, 381073, 323729, 233636, 299174, 258214, 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, 127284, 332085, 332089, 315706, 282939, 241986, 438596, 332101, 323913, 348492, 323916, 323920, 250192, 348500, 168281, 332123, 332127, 323935, 242023, 242029, 160110, 242033, 291192, 340357, 225670, 332167, 242058, 373134, 291224, 242078, 283038, 61857, 315810, 315811, 381347, 61859, 340398, 61873, 61880, 283064, 127427, 127428, 283075, 324039, 373197, 176601, 242139, 160225, 242148, 291311, 233978, 291333, 340490, 258581, 291358, 283184, 234036, 234040, 315960, 348732, 242237, 70209, 348742, 70215, 348749, 340558, 381517, 332378, 201308, 111208, 184940, 373358, 389745, 209530, 356989, 373375, 152195, 348806, 184973, 316049, 316053, 111253, 111258, 111259, 176808, 299699, 299700, 422596, 422599, 291530, 225995, 242386, 422617, 422626, 234217, 299759, 299776, 291585, 430849, 291592, 62220, 422673, 430865, 291604, 422680, 152365, 422703, 422709, 152374, 242485, 160571, 430910, 160575, 160580, 348998, 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, 316333, 316343, 373687, 349121, 381897, 373706, 316364, 340955, 340961, 324586, 340974, 349171, 316405, 349175, 201720, 127992, 357379, 324625, 308243, 316437, 201755, 300068, 357414, 357423, 300084, 324666, 308287, 21569, 218186, 300111, 341073, 439384, 250981, 300135, 316520, 300136, 316526, 357486, 144496, 300146, 300150, 291959, 300151, 160891, 341115, 300158, 349316, 349318, 373903, 169104, 177296, 308372, 119962, 300187, 300188, 300201, 300202, 373945, 259268, 283847, 62665, 283852, 283853, 259280, 316627, 333011, 357595, 234733, 292085, 234742, 128251, 316669, 439562, 292107, 242954, 414990, 251153, 177428, 349462, 382258, 300343, 382269, 193859, 177484, 406861, 259406, 234831, 251213, 120148, 283991, 374109, 292195, 333160, 243056, 316787, 382330, 357762, 112017, 234898, 259475, 275859, 112018, 357786, 251298, 333220, 316842, 374191, 210358, 284089, 292283, 415171, 300487, 300489, 366037, 210390, 210391, 210392, 210393, 144867, 54765, 251378, 308723, 300536, 300542, 210433, 366083, 259599, 316946, 308756, 398869, 374296, 374299, 308764, 423453, 349726, 431649, 349741, 169518, 431663, 194110, 235070, 349763, 218696, 292425, 243274, 128587, 333388, 333393, 349781, 300630, 128599, 235095, 333408, 374372, 300644, 415338, 243307, 120427, 54893, 325231, 366203, 325245, 194180, 415375, 153251, 300714, 210603, 415420, 333503, 218819, 259781, 333517, 333520, 333521, 333523, 325346, 153319, 325352, 284401, 325371, 194303, 284429, 243472, 366360, 284442, 325404, 325410, 341796, 399147, 431916, 366381, 317232, 300848, 259899, 325439, 153415, 341836, 415567, 325457, 317269, 341847, 350044, 128862, 284514, 276327, 292712, 325484, 423789, 292720, 325492, 276341, 341879, 317304, 333688, 112509, 194429, 55167, 325503, 333701, 243591, 350093, 325518, 243597, 333722, 350109, 300963, 292771, 333735, 415655, 284587, 317360, 243637, 301008, 153554, 219101, 292836, 292837, 317415, 325619, 432116, 333817, 292858, 415741, 333828, 358410, 399373, 317467, 145435, 292902, 325674, 129076, 243767, 358456, 309345, 194666, 260207, 432240, 284788, 333940, 292992, 333955, 415881, 104587, 235662, 325776, 317587, 284826, 333991, 333992, 284842, 301251, 309444, 194782, 301279, 317664, 243962, 375039, 309503, 375051, 325905, 325912, 211235, 432421, 211238, 358703, 358709, 260418, 383311, 6481, 366930, 366929, 6489, 391520, 383332, 383336, 211326, 317831, 227725, 252308, 293274, 39324, 121245, 317852, 285090, 375207, 342450, 334260, 293303, 293310, 416197, 129483, 342476, 317901, 326100, 285150, 342498, 358882, 334309, 195045, 391655, 432618, 375276, 301571, 342536, 342553, 416286, 375333, 244269, 375343, 236081, 23092, 375351, 244281, 301638, 309830, 293448, 55881, 416341, 309846, 244310, 416351, 268899, 39530, 244347, 326287, 375440, 334481, 227990, 318106, 318107, 342682, 318130, 383667, 293556, 342713, 285373, 39614, 318173, 375526, 285415, 342762, 342763, 293612, 154359, 432893, 162561, 285444, 383754, 310036, 326429, 293664, 326433, 342820, 400166, 293672, 318250, 318252, 375609, 252741, 293711, 244568, 244570, 293730, 351077, 342887, 211829, 269178, 211836, 400252, 359298, 359299, 260996, 113542, 416646, 228233, 392074, 228234, 56208, 400283, 318364, 310176, 310178, 293800, 359338, 236461, 252847, 326581, 326587, 359364, 326601, 211914, 359381, 433115, 343005, 130016, 64485, 326635, 203757, 187374, 383983, 359406, 318461, 293886, 293893, 433165, 384016, 146448, 433174, 326685, 252958, 252980, 359478, 203830, 302139, 359495, 392290, 253029, 228458, 351344, 187506, 285814, 392318, 187521, 384131, 302216, 228491, 228493, 285838, 162961, 326804, 351390, 302240, 343203, 253099, 253100, 318639, 294068, 367799, 113850, 294074, 64700, 302274, 367810, 343234, 244940, 228563, 351446, 359647, 195808, 310497, 228588, 253167, 302325, 351478, 261377, 228609, 245019, 253216, 130338, 130343, 130348, 261425, 351537, 286013, 286018, 146762, 294218, 294219, 318805, 425304, 294243, 163175, 327024, 327025, 327031, 318848, 253317, 384393, 368011, 318864, 318868, 310692, 245161, 286129, 286132, 343476, 228795, 425405, 302529, 302531, 163268, 425418, 302540, 310732, 64975, 310736, 327121, 228827, 286172, 310757, 187878, 343542, 343543, 286202, 359930, 286205, 302590, 294400, 228867, 253451, 253452, 359950, 146964, 253463, 286244, 245287, 245292, 286254, 425535, 196164, 56902, 179801, 196187, 343647, 310889, 204397, 138863, 188016, 294529, 229001, 310923, 188048, 425626, 229020, 302754, 245412, 40613, 40614, 40615, 229029, 286391, 384695, 319162, 327358, 286399, 212685, 384720, 245457, 302802, 278234, 294622, 278240, 212716, 212717, 360177, 286459, 278272, 319233, 360195, 278291, 294678, 286494, 409394, 319292, 360252, 360264, 188251, 376669, 245599, 425825, 425833, 417654, 188292, 253829, 294807, 376732, 311199, 319392, 294823, 327596, 294843, 188348, 237504, 294850, 384964, 163781, 344013, 212942, 212946, 24532, 212951, 360417, 294886, 253929, 327661, 311281, 311282 ]
7933de6fe19cdaf656af33eb2b45869141eece4c
47fa4ef91b0d9ec084bc2814ef218a3209840399
/Test for Reddit/ViewController.swift
0d3cec526f7275d1d3ae96fb53129199ba025629
[]
no_license
pgdewaal/Test-for-Reddit
3e1dfca5413266f77909d6ddbc8b4ad4bdfdefbb
020ff3f959e016ac9f3c7cfe3446d7debb922451
refs/heads/master
2021-01-21T14:43:45.524021
2017-07-01T19:50:47
2017-07-01T19:50:47
95,329,086
0
0
null
null
null
null
UTF-8
Swift
false
false
7,546
swift
// // ViewController.swift // Test for Reddit // // Created by Paul Dewaal on 6/24/17. // Copyright © 2017 Paul Dewaal. All rights reserved. // import UIKit extension URL { func getDictionaryOfUrlQueries() -> Dictionary<String, String>? { let dict = NSMutableDictionary.init() if let array = self.query?.components(separatedBy: "&") { for query in array { let key = query.components(separatedBy: "=").first let value = query.components(separatedBy: "=").last dict.setValue(value, forKey: key!) } } return dict as? Dictionary<String, String> } } class FooterView : UICollectionReusableView { @IBOutlet weak var activity: UIActivityIndicatorView! required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) } } class ViewController: UIViewController, UIWebViewDelegate, UICollectionViewDelegate, UICollectionViewDataSource, UICollectionViewDelegateFlowLayout { @IBOutlet weak var loginView: UIWebView! @IBOutlet weak var collectionView: UICollectionView! var listing : RedditListing = RedditListing.init() var isMakingRequest : Bool var refresh : UIRefreshControl = UIRefreshControl.init() required init?(coder aDecoder: NSCoder) { isMakingRequest = false super.init(coder: aDecoder) } override func viewDidLoad() { super.viewDidLoad() print("url: \(DataManager.shared.redirectUrl)") print("encoded: \(DataManager.shared.redirectUrlEncoded())"); self.attemptLogin() collectionView.alwaysBounceVertical = true refresh.tintColor = UIColor.red refresh.addTarget(self, action: #selector(refreshListing), for: UIControlEvents.valueChanged) collectionView.addSubview(refresh) } override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator) { let path = collectionView.indexPathsForVisibleItems.first super.viewWillTransition(to: size, with: coordinator) collectionView.reloadData() if let path = path { DispatchQueue.main.asyncAfter(deadline: .now() + 0.25, execute: { self.collectionView.scrollToItem(at: path, at: UICollectionViewScrollPosition.top, animated: true) }) } } // MARK: - CollectionView Methods func numberOfSections(in collectionView: UICollectionView) -> Int { return 1 } func collectionView(_ collectionView: UICollectionView, numberOfItemsInSection section: Int) -> Int { return listing.items.count } func collectionView(_ collectionView: UICollectionView, layout collectionViewLayout: UICollectionViewLayout, sizeForItemAt indexPath: IndexPath) -> CGSize { var width = UIScreen.main.bounds.size.width switch UIDevice.current.orientation { case .landscapeLeft, .landscapeRight: width = UIScreen.main.bounds.size.width*0.45 break; default: break; } return CGSize(width: width, height: width*(9.0/16.0)); } func collectionView(_ collectionView: UICollectionView, cellForItemAt indexPath: IndexPath) -> UICollectionViewCell { let cell = collectionView.dequeueReusableCell(withReuseIdentifier: "redditCell", for: indexPath as IndexPath) as! RedditCollectionCell cell.updateCell(forRedditLink: listing.items[indexPath.row]) return cell } func collectionView(_ collectionView: UICollectionView, viewForSupplementaryElementOfKind kind: String, at indexPath: IndexPath) -> UICollectionReusableView { let footer = collectionView.dequeueReusableSupplementaryView(ofKind: kind, withReuseIdentifier: "footerView", for: indexPath) if kind == UICollectionElementKindSectionFooter && DataManager.shared.accessToken != nil { getTop50(after: listing.items.last?.fullname, before: nil) } return footer } func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { let link = listing.items[indexPath.row] if link.hasFullImage { let storyboard = UIStoryboard(name: "Main", bundle: nil) let controller = storyboard.instantiateViewController(withIdentifier: "fullscreenImageVC") as! FullScreenImageVC controller.link = link self.present(controller, animated: true, completion: nil) } } // MARK: - Request Methods func getTop50(after: String?, before: String?) { if isMakingRequest { return } isMakingRequest = true RedditRequestCreater.shared.makeTop50Request(listing: listing, after: after, before: before) { (success) in if success { self.collectionView.reloadData() } else { self.showError() } self.isMakingRequest = false } } func getUser() { RedditRequestCreater.shared.getUser(completion: { (success) in if success { guard let user = DataManager.shared.user else { self.getTop50(after: nil, before: nil) return } self.listing.retrieveItemsForUser(user) if self.listing.items.count == 0 { self.getTop50(after: nil, before: nil) } else { self.collectionView.reloadData() } } else { self.showError() } }) } func refreshListing() { RedditRequestCreater.shared.refreshTop50Request(listing: listing) { (success) in self.refresh.endRefreshing() if success { self.collectionView.reloadData() } else { self.showError() } } } // MARK: - Public/Private Methods func userInputReceived(success:Bool) { self.loginView.alpha = 0 if success && DataManager.shared.userCode != nil { RedditRequestCreater.shared.makeAuthorizationRequest(completion: { (success) in if success { self.getUser() } else { self.showError() } }) } else { showError() } } private func attemptLogin() { let login = URLRequest.init(url: URL.init(string: "https://www.reddit.com/api/v1/authorize.compact?client_id=6swhF9VsKjCyEQ&response_type=code&state=\(DataManager.shared.state)&redirect_uri=\(DataManager.shared.redirectUrlEncoded())&duration=permanent&scope=read%20identity")!) loginView.loadRequest(login) } private func showError() { let alert = UIAlertController.init(title: "Error", message: "Only supporting the happy path, please try again", preferredStyle: UIAlertControllerStyle.alert) alert.addAction(UIAlertAction.init(title: "Ok", style: UIAlertActionStyle.default, handler: { (action) in if DataManager.shared.user == nil{ self.loginView.alpha = 1 self.attemptLogin() } })) self.present(alert, animated: true, completion: { }) } }
[ -1 ]
e728bed0c1bb5f592f12605f3407e2f55080d5ab
e0acf68d2caf0ea2556a7d0a23d5117e44fb81f7
/HSTracker/UIs/DeckManager/NewDeck.swift
a832ffb80d50b28ef162de21a638669c2711f63c
[ "MIT" ]
permissive
nicgrayson/HSTracker
8264e47d11d21e450608bc424ccfa09763d01f72
c7df66d3d277bffc3dcf0725b175b0beacc362fc
refs/heads/master
2021-01-21T01:33:55.339490
2017-01-21T07:24:54
2017-01-21T07:24:54
79,630,614
0
0
null
2017-01-21T07:19:47
2017-01-21T07:19:47
null
UTF-8
Swift
false
false
7,212
swift
// // NewDeck.swift // HSTracker // // Created by Benjamin Michotte on 25/02/16. // Copyright © 2016 Benjamin Michotte. All rights reserved. // import Foundation import CleanroomLogger import RealmSwift protocol NewDeckDelegate: class { func addNewDeck(deck: Deck) func openDeckBuilder(playerClass: CardClass, arenaDeck: Bool) func refreshDecks() } class NewDeck: NSWindowController { @IBOutlet weak var hstrackerDeckBuilder: NSButton! @IBOutlet weak var fromAFile: NSButton! @IBOutlet weak var fromTheWeb: NSButton! @IBOutlet weak var classesPopUpMenu: NSPopUpButton! @IBOutlet weak var urlDeck: NSTextField! @IBOutlet weak var chooseFile: NSButton! @IBOutlet weak var okButton: NSButton! @IBOutlet weak var arenaDeck: NSButton! @IBOutlet weak var loader: NSProgressIndicator! weak var delegate: NewDeckDelegate? var defaultClass: CardClass? override func windowDidLoad() { super.windowDidLoad() classesPopUpMenu.addItems(withTitles: Cards.classes.map { NSLocalizedString($0.rawValue.lowercased(), comment: "") }) checkToEnableSave() } func radios() -> [NSButton: [NSControl]] { return [ hstrackerDeckBuilder: [classesPopUpMenu, arenaDeck], fromAFile: [chooseFile], fromTheWeb: [urlDeck] ] } @IBAction func radioChange(_ sender: AnyObject) { if let buttonSender = sender as? NSButton { for (button, control) in radios() { if button == buttonSender { button.state = NSOnState control.forEach({ $0.isEnabled = true }) } else { button.state = NSOffState control.forEach({ $0.isEnabled = false }) } } } checkToEnableSave() } func setDelegate(_ delegate: NewDeckDelegate) { self.delegate = delegate } @IBAction func cancelClicked(_ sender: AnyObject) { self.window?.sheetParent?.endSheet(self.window!, returnCode: NSModalResponseCancel) } @IBAction func okClicked(_ sender: AnyObject) { if hstrackerDeckBuilder.state == NSOnState { if classesPopUpMenu.indexOfSelectedItem < 0 { return } delegate?.openDeckBuilder(playerClass: Cards.classes[classesPopUpMenu.indexOfSelectedItem], arenaDeck: (arenaDeck.state == NSOnState)) self.window?.sheetParent?.endSheet(self.window!, returnCode: NSModalResponseOK) } else if fromTheWeb.state == NSOnState { // TODO add loader do { loader.startAnimation(self) try NetImporter.netImport(url: urlDeck.stringValue, completion: { (deck) -> Void in self.loader.stopAnimation(self) if let deck = deck { self._addDeck(deck) } else { // show error let alertDialog: NSAlert = NSAlert() // swiftlint:disable line_length alertDialog.messageText = NSLocalizedString("Failed to import deck from \n", comment: "") + self.urlDeck.stringValue // swiftlint:enable line_length alertDialog.runModal() } }) } catch { self.loader.stopAnimation(self) // show error let alertDialog: NSAlert = NSAlert() // swiftlint:disable line_length alertDialog.messageText = NSLocalizedString("Failed to import deck from \n", comment: "") + self.urlDeck.stringValue // swiftlint:enable line_length alertDialog.runModal() } } else if fromAFile.state == NSOnState { // add here to remember this case exists } } @IBAction func openDeck(_ sender: AnyObject) { let panel = NSOpenPanel() panel.canChooseFiles = true panel.canChooseDirectories = false panel.allowsMultipleSelection = false panel.allowedFileTypes = ["txt"] panel.beginSheetModal(for: self.window!) { (returnCode) in if returnCode == NSFileHandlingPanelOKButton { for filename in panel.urls { let importer = FileImporter() if let (deck, cards) = importer.fileImport(url: filename), cards.isValidDeck() { do { let realm = try Realm() try realm.write { realm.add(deck) } for card in cards { deck.add(card: card) } } catch { Log.error?.message("Can not import deck. Error : \(error)") } self._addDeck(deck) } else { // TODO show error } } } } } fileprivate func _addDeck(_ deck: Deck) { self.delegate?.addNewDeck(deck: deck) if HearthstatsAPI.isLogged() { if Settings.instance.hearthstatsAutoSynchronize { do { try HearthstatsAPI.post(deck: deck) {_ in} self.window?.sheetParent?.endSheet(self.window!, returnCode: NSModalResponseOK) } catch {} } else { let msg = NSLocalizedString("Do you want to add this deck on Hearthstats ?", comment: "") NSAlert.show(style: .informational, message: msg, window: self.window!) { do { try HearthstatsAPI.post(deck: deck) {_ in} self.window?.sheetParent?.endSheet(self.window!, returnCode: NSModalResponseOK) } catch { // TODO alert Log.error?.message("error") } } } } else { self.window?.sheetParent?.endSheet(self.window!, returnCode: NSModalResponseOK) } } func checkToEnableSave() { okButton.isEnabled = hstrackerDeckBuilder.state == NSOnState || fromTheWeb.state == NSOnState && !urlDeck.stringValue.isEmpty // notice that there's no statement needed to disable OK "fromAFile.state != NSOnState" } override func controlTextDidChange(_ notification: Notification) { checkToEnableSave() } }
[ -1 ]
5221fb13fdbf986b91f4534406ab5399f2c97670
a00811c91c915db31aae89ec69e502b4c357c838
/tip/tip/AppDelegate.swift
f949ab2b49cc8839092b0aa968d24574f9a40fa4
[]
no_license
tangzh/tip-calculator
d9a6b4decce2d3747784b1ef570f2481a8719aab
076027ba824a9a84dc85dc1d59da9821c374be69
refs/heads/master
2021-01-23T12:17:49.857539
2015-08-24T21:27:28
2015-08-24T21:27:28
41,283,411
0
0
null
null
null
null
UTF-8
Swift
false
false
2,137
swift
// // AppDelegate.swift // tip // // Created by Tang Zhang on 8/23/15. // Copyright (c) 2015 Tang Zhang. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game. } func applicationDidEnterBackground(application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(application: UIApplication) { // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 229388, 294924, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 229405, 278559, 278564, 229415, 229417, 327722, 237613, 360496, 229426, 229428, 286774, 229432, 286776, 286778, 319544, 204856, 286791, 237640, 278605, 286797, 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, 286916, 286922, 286924, 286926, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 278760, 237807, 303345, 286962, 229622, 327930, 278781, 278783, 278785, 237826, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 155966, 278849, 319809, 319810, 319814, 319818, 311628, 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, 278983, 319945, 278986, 278990, 278994, 311767, 279003, 279006, 188895, 279010, 287202, 279015, 172520, 279020, 279023, 311791, 172529, 279027, 319989, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 287238, 172550, 172552, 303623, 320007, 279051, 172558, 279055, 279058, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 279124, 172634, 262752, 311911, 189034, 295533, 189039, 189040, 172655, 172656, 295538, 189044, 172660, 287349, 352880, 287355, 287360, 295553, 287365, 311942, 303751, 295557, 352905, 279178, 287371, 311946, 311951, 287377, 287381, 311957, 221850, 287386, 164509, 287390, 295583, 303773, 230045, 287394, 172705, 303780, 287398, 287400, 279208, 172714, 279212, 172721, 287409, 66227, 303797, 189114, 287419, 328381, 279231, 287423, 328384, 287427, 107208, 279241, 107212, 172748, 287436, 287440, 295633, 172755, 303827, 279255, 279258, 303835, 213724, 189149, 303838, 287450, 279267, 295654, 279272, 312048, 230128, 312050, 230131, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 369433, 230169, 295707, 328476, 295710, 230175, 303914, 279340, 279353, 230202, 312124, 222018, 295755, 377676, 148302, 287569, 279383, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295808, 304005, 320391, 213895, 304007, 304009, 304011, 304013, 213902, 279438, 295822, 295825, 304019, 279445, 58262, 279452, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 304063, 238528, 304065, 189378, 213954, 156612, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 295945, 197645, 295949, 230413, 320528, 140312, 295961, 238620, 304164, 189479, 304170, 238641, 238652, 238655, 230465, 238658, 296004, 336964, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 164973, 205934, 279661, 312432, 279669, 337018, 189562, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 165038, 238766, 230576, 238770, 304311, 350308, 230592, 279750, 312518, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 279788, 320748, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 230679, 230681, 320792, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 222525, 296253, 312639, 296255, 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, 337306, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 288176, 279985, 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, 288236, 288238, 288240, 291754, 288242, 296435, 288244, 296439, 288250, 402942, 206336, 296450, 230916, 230919, 370187, 304651, 304653, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 280152, 288344, 239194, 280158, 403039, 370272, 312938, 280183, 280185, 280188, 280191, 280194, 116354, 280208, 280211, 288408, 280218, 280222, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 313027, 280260, 280264, 206536, 206539, 206541, 206543, 280276, 321239, 280283, 313052, 288478, 313055, 321252, 313066, 280302, 288494, 419570, 321266, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 288576, 345921, 280388, 304968, 280393, 280402, 313176, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280458, 280464, 124817, 280468, 239510, 280473, 124827, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 10170, 296890, 288700, 296894, 280515, 190403, 296900, 337862, 165831, 280521, 231379, 296921, 239586, 313320, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 321560, 305176, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 223303, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 280671, 223327, 149601, 321634, 149603, 149599, 280681, 313451, 223341, 280687, 313458, 280691, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141455, 141459, 280725, 313498, 288936, 100520, 280747, 288940, 280755, 288947, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 280819, 157940, 125171, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 280835, 125187, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 280891, 289087, 280897, 280900, 239944, 305480, 280906, 239947, 305485, 305489, 280919, 354653, 313700, 280937, 313705, 280940, 190832, 280946, 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, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 199262, 338532, 281190, 199273, 281196, 158317, 313973, 281210, 297594, 158347, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 314029, 314033, 240309, 314047, 314051, 199364, 297671, 199367, 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, 207737, 183172, 240519, 322440, 314249, 338823, 183184, 289687, 240535, 297883, 289694, 289700, 289712, 281529, 289724, 52163, 281567, 289762, 322534, 297961, 281581, 183277, 322550, 134142, 175134, 322610, 314421, 281654, 314427, 207937, 314433, 207949, 322642, 281691, 314461, 281702, 281704, 281708, 281711, 289912, 248995, 306341, 306347, 306354, 142531, 199877, 289991, 306377, 363742, 363745, 298216, 330988, 216303, 322801, 388350, 363802, 199978, 314671, 298292, 298294, 216376, 298306, 380226, 281923, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 290174, 224641, 281987, 298372, 314756, 281990, 224647, 298377, 314763, 224657, 306581, 314779, 314785, 282025, 314793, 282027, 241068, 241070, 241072, 282034, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 192008, 323084, 282127, 290321, 282130, 282133, 290325, 241175, 290328, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282201, 306778, 159324, 159330, 314979, 298598, 224875, 241260, 257658, 315016, 282249, 290445, 324757, 282261, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 282410, 241450, 306988, 306991, 315184, 315190, 241464, 282425, 159545, 298811, 307009, 413506, 307012, 315211, 307027, 315221, 282454, 315223, 241496, 241498, 307035, 307040, 282465, 241509, 110438, 298860, 110445, 282478, 282481, 110450, 315251, 315249, 315253, 315255, 339838, 282499, 315267, 315269, 241544, 282505, 241546, 241548, 298896, 282514, 298898, 44948, 298901, 241556, 282520, 241560, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 241581, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 282639, 282645, 241693, 282654, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 307287, 315482, 217179, 315483, 192605, 200801, 299105, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 299126, 233591, 307338, 233613, 241813, 307352, 299164, 184479, 299167, 184481, 307370, 307372, 307374, 307376, 323763, 176311, 299191, 307385, 307386, 258235, 176316, 307388, 307390, 184503, 299200, 307394, 307396, 184518, 323784, 307409, 307411, 176343, 233701, 307432, 282881, 282893, 291089, 282906, 291104, 233766, 307508, 315701, 307510, 332086, 151864, 307512, 307515, 282942, 307518, 151874, 282947, 282957, 323917, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 283033, 291226, 242075, 315801, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 127407, 299440, 299444, 127413, 283062, 291254, 127417, 291260, 283069, 127421, 127424, 299457, 127431, 283080, 176592, 315856, 315860, 176597, 283095, 127447, 299481, 176605, 242143, 291299, 242152, 291305, 127466, 176620, 127474, 291314, 291317, 135672, 233979, 291323, 291330, 283142, 135689, 233994, 127497, 233998, 234003, 234006, 152087, 127511, 283161, 242202, 234010, 135707, 242206, 135710, 242208, 291361, 291378, 234038, 152118, 234041, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 373383, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 135839, 299680, 225954, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 225998, 299726, 226002, 226005, 119509, 226008, 201444, 299750, 283368, 234219, 283372, 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, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 234309, 292433, 234313, 316233, 316235, 234316, 283468, 242511, 234319, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 234356, 234358, 234362, 226171, 234368, 234370, 201603, 234373, 226182, 234375, 226185, 308105, 234379, 234384, 234388, 234390, 226200, 324504, 234393, 209818, 308123, 324508, 234398, 234396, 291742, 234401, 291747, 291748, 234405, 291750, 234407, 324518, 324520, 234410, 324522, 226220, 291756, 234414, 324527, 291760, 234417, 201650, 324531, 226230, 234422, 275384, 324536, 234428, 291773, 234431, 242623, 324544, 324546, 226239, 324548, 226245, 234437, 234439, 234434, 234443, 193486, 275406, 193488, 234446, 234449, 316370, 234452, 234455, 234459, 234461, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 324599, 234487, 234490, 234493, 234496, 316416, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 234519, 316439, 234520, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 234549, 300085, 300088, 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, 308418, 283844, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 161003, 300267, 300270, 300272, 120053, 300278, 316663, 275703, 300284, 275710, 300287, 283904, 300289, 292097, 300292, 300294, 275719, 177419, 300299, 283917, 300301, 242957, 177424, 275725, 349464, 283939, 259367, 283951, 292143, 300344, 226617, 283963, 243003, 226628, 283973, 300357, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 284010, 136562, 324978, 275834, 275836, 275840, 316803, 316806, 316811, 316814, 226703, 300433, 234899, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 284076, 144812, 144814, 144820, 284084, 284087, 292279, 144826, 144828, 144830, 144832, 284099, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 218597, 292329, 300523, 259565, 259567, 300527, 308720, 226802, 316917, 308727, 292343, 300537, 316947, 308757, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 284215, 194103, 284218, 226877, 284223, 284226, 243268, 292421, 226886, 284231, 128584, 284228, 284234, 366155, 276043, 317004, 284238, 226895, 284241, 194130, 284243, 276052, 276053, 284245, 284247, 317015, 284249, 243290, 284251, 300628, 284253, 235097, 284255, 300638, 284258, 292452, 292454, 284263, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 284278, 292470, 292473, 284283, 276093, 284286, 276095, 284288, 292481, 276098, 284290, 325250, 284292, 292485, 292479, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 276114, 284306, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 276166, 284358, 358089, 276170, 284362, 276175, 284368, 276177, 284370, 317138, 284372, 358098, 284377, 276187, 284379, 284381, 284384, 284386, 358114, 358116, 276197, 317158, 358119, 284392, 325353, 284394, 358122, 284397, 276206, 284399, 358126, 358128, 358133, 358135, 276216, 358140, 284413, 358142, 284418, 358146, 317187, 317191, 284428, 300816, 300819, 317207, 284440, 186139, 300828, 300830, 276255, 325408, 284449, 300834, 300832, 227109, 317221, 358183, 276268, 300845, 194351, 243504, 300850, 284469, 276280, 325436, 276291, 366406, 276295, 153417, 276308, 284502, 317271, 276315, 292700, 284511, 227175, 292715, 300912, 284529, 292721, 300915, 292729, 317306, 284540, 292734, 325512, 276365, 284564, 358292, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292784, 276402, 358326, 161718, 276410, 276411, 358330, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 292843, 276460, 276464, 178161, 276466, 227314, 276472, 317435, 276476, 276479, 276482, 276485, 317446, 276490, 292876, 276496, 317456, 317458, 243733, 243740, 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, 292989, 292993, 301185, 350339, 317570, 317573, 350342, 227463, 350345, 350349, 317584, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 284837, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 309450, 301258, 276685, 276689, 309462, 301272, 309468, 309471, 301283, 317672, 276713, 317674, 325867, 227571, 309491, 276725, 309494, 243960, 227583, 276735, 227587, 276739, 276742, 227593, 227596, 325910, 309530, 342298, 276766, 211232, 317729, 276775, 325937, 276789, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 276843, 293227, 276848, 293232, 186744, 285051, 211324, 227709, 285061, 317833, 178572, 285070, 178575, 285077, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 301562, 317951, 309764, 301575, 121352, 236043, 342541, 113167, 277011, 317971, 309781, 309779, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 277054, 129603, 318020, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 277106, 121458, 170619, 309885, 309888, 277122, 227975, 285320, 277128, 301706, 318092, 326285, 318094, 334476, 277136, 277139, 227992, 285340, 318108, 227998, 318110, 137889, 383658, 285357, 318128, 277170, 342707, 154292, 277173, 293555, 318132, 285368, 277177, 277181, 277187, 277191, 277194, 277196, 277201, 137946, 113378, 228069, 277223, 342760, 285417, 56043, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 285453, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 293666, 285474, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 301884, 310080, 293696, 277314, 277317, 277322, 277329, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 310134, 277368, 15224, 236408, 416639, 416640, 113538, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 293820, 203715, 293849, 293861, 228327, 228328, 228330, 318442, 228332, 277486, 326638, 318450, 293876, 293877, 285686, 302073, 285690, 244731, 121850, 293882, 302075, 293887, 277504, 277507, 277511, 277519, 293908, 277526, 293917, 293939, 277561, 277564, 310336, 293956, 277573, 228422, 310344, 277577, 293960, 277583, 203857, 310355, 293971, 236632, 277594, 138332, 277598, 285792, 277601, 310374, 203879, 277608, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 285821, 302205, 285824, 392326, 285831, 253064, 302218, 285835, 162964, 384148, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 277671, 302248, 64682, 277678, 228526, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 228606, 204031, 64768, 310531, 285958, 228617, 138505, 318742, 204067, 277798, 130345, 113964, 285997, 285999, 113969, 277811, 318773, 318776, 277816, 286010, 277822, 417086, 286016, 294211, 302403, 384328, 277832, 277836, 294221, 326991, 277839, 277850, 179547, 277853, 146784, 277857, 302436, 294246, 327015, 310632, 327017, 351594, 351607, 310648, 310651, 277888, 310657, 351619, 294276, 277892, 310659, 327046, 253320, 310665, 318858, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 277923, 130468, 228776, 277932, 310703, 277937, 310710, 130486, 310712, 310715, 302526, 228799, 277953, 64966, 245191, 163272, 310727, 277959, 302534, 292968, 302541, 277966, 302543, 310737, 277975, 286169, 228825, 163290, 310749, 277981, 310755, 277989, 187880, 286188, 310764, 278003, 310772, 40440, 278009, 212472, 40443, 286203, 228864, 40448, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 146977, 294435, 187939, 286246, 40486, 286248, 278057, 294439, 40488, 294440, 294443, 294445, 310831, 40499, 40502, 212538, 40507, 40511, 228933, 40521, 286283, 40525, 40527, 228944, 212560, 400976, 147032, 40537, 40539, 278109, 40541, 40550, 286312, 286313, 40554, 40552, 310892, 40557, 188022, 294521, 343679, 278150, 310925, 286354, 278163, 122517, 278168, 327333, 229030, 278188, 278192, 319153, 278196, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 278227, 229076, 286420, 319187, 286425, 319194, 278235, 229086, 278238, 286432, 294625, 294634, 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, 294785, 327554, 40851, 294811, 319390, 294817, 319394, 40865, 311209, 180142, 294831, 188340, 40886, 294844, 294847, 393177, 294876, 294879, 294883, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
6bc2c43d2ea297a19e7225fd092683e1bf3ba118
32b50e12fc7689898d8ae3800b6b11238292ddce
/Roguelike/Roguelike/EnemyObject.swift
0b20e784a4ea0a2e5c4367e84dcbacda41dd6696
[]
no_license
LoganKlein/Roguelike
cbe5cad529d6a0a4e393609fbf7ad0a135a3a2ce
8a8208a1278d661222eb0adc741493e10d90556f
refs/heads/master
2020-07-01T03:46:00.899409
2017-05-02T23:01:48
2017-05-02T23:01:48
74,097,679
1
0
null
null
null
null
UTF-8
Swift
false
false
6,221
swift
// // EnemyObject.swift // Roguelike // // Created by Logan Klein on 11/17/16. // Copyright © 2016 Soular. All rights reserved. // import UIKit class EnemyObject: CharacterObject { var name = "" var visionRange = 2 var minFloor = 0 var maxFloor = 0 //MARK: - Initialization Methods class func getRandomEnemy(_ game: GameObject) -> EnemyObject { var enemies = EnemyObject.getEnemies("enemies", game: game) enemies.shuffle() let enemy = enemies.first return enemy! } class func getEnemies(_ name: String, game: GameObject) -> [EnemyObject] { let json: [NSDictionary] = JSONHelper.getArrayFromFile(name) var enemyArray: [EnemyObject] = [] for dict in json { let enemy = EnemyObject.enemyFromInfo(dict, game: game) enemyArray.append(enemy) } return enemyArray } class func enemyFromInfo(_ dict: NSDictionary, game: GameObject) -> EnemyObject { let enemy = EnemyObject() enemy.name = dict["name"] as! String enemy.atk = dict["atk"] as! Double enemy.def = dict["def"] as! Double enemy.maxHP = dict["maxHP"] as! Double enemy.lvl = dict["lvl"] as! Int enemy.exp = dict["exp"] as! Double enemy.visionRange = dict["visionRange"] as! Int enemy.minFloor = dict["visionRange"] as! Int enemy.maxFloor = dict["visionRange"] as! Int enemy.curHP = enemy.maxHP let imageName = dict["image"] as! String enemy.displayView = UIView(frame: CGRect(x: 0, y: 0, width: game.map.cellSize, height: game.map.cellSize)) enemy.characterIV = UIImageView(frame: enemy.displayView.frame) enemy.characterIV.image = UIImage(named: imageName) enemy.displayView.addSubview(enemy.characterIV) return enemy } //MARK: - Location Methods func determineDirection(_ game: GameObject) { var newLocation = coordinates //First, determine if the hero is in visible range let tuple = nearHero(game.player) if tuple.near { newLocation = coordinates var validity: Int = 0 if tuple.yDif < 0 { newLocation?.y -= 1 } validity = CollisionHelper().spaceIsValid(game, location: newLocation!) if ( tuple.yDif > 0 && validity != 0 && validity != 4 ) { newLocation = coordinates newLocation?.y += 1 } validity = CollisionHelper().spaceIsValid(game, location: newLocation!) if (tuple.xDif < 0 && validity != 0 && validity != 4 ) { newLocation = coordinates newLocation?.x -= 1 } validity = CollisionHelper().spaceIsValid(game, location: newLocation!) if ( validity != 0 && validity != 4 ) { newLocation = coordinates newLocation?.x += 1 } validity = CollisionHelper().spaceIsValid(game, location: newLocation!) if validity == 0 { moveTo(newLocation!, map: game.map) } else if validity == 4 { bumpHero(game.map, hero: game.player, xDif: tuple.xDif, yDif: tuple.yDif) return } } //Otherwise, just wander around else { var tries = 0 let direction = arc4random()%4 while tries < 4 { newLocation = coordinates if direction == 0 { newLocation?.y -= 1 } //Up else if direction == 1 { newLocation?.y += 1 } //Down else if direction == 2 { newLocation?.x -= 1 } //Left else if direction == 3 { newLocation?.x += 1 } //Right let validity = CollisionHelper().spaceIsValid(game, location: newLocation!) if validity == 0 { tries = 5 moveTo(newLocation!, map: game.map) } else { tries += 1 newLocation = coordinates } } } } func nearHero(_ hero: CharacterObject) -> (near: Bool, xDif: Int, yDif: Int) { let xDif = hero.coordinates.x - coordinates.x let yDif = hero.coordinates.y - coordinates.y let inXRange = (Int(xDif) >= visionRange * -1 && Int(xDif) <= visionRange) let inYRange = (Int(yDif) >= visionRange * -1 && Int(yDif) <= visionRange) return ((inXRange && inYRange), Int(xDif), Int(yDif)) } //MARK: - Animation Methods func bumpHero(_ map: CAMap, hero: CharacterObject, xDif: Int, yDif: Int) { let oldCenter = self.displayView.center var newX = self.displayView.center.x var newY = self.displayView.center.y if xDif > 0 {newX += map.cellSize/2} else if xDif < 0 {newX -= map.cellSize/2} if yDif > 0 {newY += map.cellSize/2} else if yDif < 0 {newY -= map.cellSize/2} UIView.animate(withDuration: 0.1, animations: { self.displayView.center = CGPoint(x: newX, y: newY) }, completion: { (Bool) in UIView.animate(withDuration: 0.1, animations: { self.displayView.center = oldCenter }) }) if hero.takeDamage(self.atk) { print("died") } } //MARK: - Modification Methods func killUnit(_ game: GameObject) { let index = game.enemies.index(of: self) game.enemies.remove(at: index!) UIView.animate(withDuration: game.animSpeed, delay: game.animSpeed, options: .curveEaseOut, animations: { self.characterIV.alpha = 0 }) { (Bool) in self.displayView.removeFromSuperview() } } }
[ -1 ]
d576d9e02660a2ccada4dba4481055c7b5ca3eb0
6a4e2c77f04587d0d2cd23a630f8b6781ddd53f8
/VoiceOverSample/VoiceOverSample/AppDelegate.swift
d6129464ca1976cbb769d2833cf266e9aa44fd72
[]
no_license
LeenaMansour/voiceover-on
a210e45d5e4e33aa1003f66a79638721b143f9e3
4b54ab07a3841bc8c523372eccc358c06ef3d8f0
refs/heads/master
2020-05-15T18:39:50.829527
2019-07-29T03:50:41
2019-07-29T03:50:41
182,435,608
2
0
null
null
null
null
UTF-8
Swift
false
false
2,176
swift
// // AppDelegate.swift // VoiceOverSample // // Created by Leena Mansour on 7/28/19. // Copyright © 2019 leena. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 294924, 229388, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 229405, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 286774, 286776, 319544, 286778, 204856, 229432, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 303241, 131209, 417930, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 295110, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 286962, 303347, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 287032, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 320007, 287238, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 213575, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 254563, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189039, 172660, 287349, 189040, 189044, 287355, 287360, 295553, 172675, 295557, 311942, 303751, 287365, 352905, 311946, 279178, 287371, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 287390, 303773, 172705, 287394, 172707, 303780, 164509, 287398, 295583, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 172737, 279231, 287427, 312005, 312006, 107208, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 189169, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303981, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 304007, 213895, 304009, 304011, 230284, 304013, 295822, 279438, 189329, 295825, 304019, 189331, 58262, 304023, 304027, 279452, 234648, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 230334, 304063, 238528, 304065, 213954, 189378, 156612, 295873, 213963, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 295949, 197645, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 132165, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 279661, 205934, 164973, 312432, 279669, 337018, 189562, 279679, 66690, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 230592, 312518, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 320748, 279788, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 296253, 222525, 296255, 312639, 230718, 296259, 378181, 296262, 230727, 238919, 296264, 320840, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 148843, 410987, 230763, 230768, 296305, 312692, 230773, 304505, 304506, 181626, 181631, 312711, 312712, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 337335, 288185, 279991, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 370130, 288212, 148946, 222676, 288214, 239064, 329177, 288217, 280027, 288220, 288218, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 320998, 288234, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 148990, 296450, 206336, 230916, 230919, 214535, 230923, 304651, 304653, 370187, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 263888, 313044, 280276, 321239, 280283, 313052, 18140, 288478, 313055, 419555, 321252, 313066, 288494, 280302, 280304, 313073, 321266, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 337732, 304968, 280393, 280402, 173907, 313171, 313176, 280419, 321381, 296809, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 305176, 321560, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 149599, 280671, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 288909, 141455, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 157940, 280819, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 305464, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 354653, 354656, 313700, 313705, 280937, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289218, 289221, 289227, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 240132, 281095, 223752, 150025, 338440, 330244, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 256716, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 338823, 322440, 314249, 240519, 183184, 142226, 289687, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 183277, 281581, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 380226, 298306, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 298365, 290174, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 306694, 192008, 323084, 257550, 290321, 282130, 323090, 290325, 282133, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 28219, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 196133, 282295, 323260, 282300, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 298822, 315211, 282446, 307027, 315221, 323414, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 110450, 315251, 282481, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 241556, 298901, 44948, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 307211, 282639, 290835, 282645, 241693, 282654, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 307290, 217179, 315482, 192605, 315483, 233567, 299105, 200801, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 315524, 307338, 233613, 241813, 307352, 299164, 241821, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 184503, 176311, 299191, 307386, 258235, 307388, 307385, 307390, 176316, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 323854, 291089, 282906, 291104, 233766, 176435, 307508, 315701, 332086, 307510, 307512, 168245, 307515, 307518, 282942, 282947, 323917, 110926, 282957, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 283033, 242075, 291226, 194654, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 283062, 291254, 127417, 291260, 283069, 127421, 127424, 299457, 127429, 127431, 127434, 315856, 176592, 127440, 315860, 176597, 283095, 127447, 299481, 127449, 176605, 242143, 127455, 291299, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 283142, 127494, 135689, 233994, 127497, 127500, 291341, 233998, 127506, 234003, 127509, 234006, 127511, 152087, 283161, 242202, 234010, 135707, 135710, 242206, 242208, 291361, 242220, 291378, 152118, 234038, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 135808, 291456, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 299740, 242396, 201444, 299750, 283368, 234219, 283372, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 299814, 234278, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 160572, 283452, 234302, 234307, 242499, 234309, 316233, 234313, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 242530, 349027, 234338, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 234364, 291711, 234368, 291714, 234370, 291716, 234373, 316294, 201603, 226182, 308105, 234375, 226185, 234379, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 324508, 226200, 291742, 234396, 234398, 234401, 291747, 291748, 234405, 291750, 234407, 324520, 324518, 324522, 234410, 291756, 291754, 226220, 324527, 291760, 234417, 201650, 324531, 234414, 234422, 226230, 324536, 275384, 234428, 291773, 242623, 324544, 234431, 234434, 324546, 324548, 234437, 226245, 234439, 226239, 234443, 291788, 234446, 275406, 193486, 234449, 316370, 193488, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 316416, 234496, 234501, 308231, 234504, 234507, 234510, 234515, 300054, 316439, 234520, 234519, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 300085, 234549, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 160835, 234563, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 242777, 234585, 275545, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 226453, 234647, 275606, 275608, 234650, 308379, 324757, 300189, 324766, 119967, 234653, 324768, 234657, 283805, 242852, 300197, 234661, 283813, 234664, 177318, 275626, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 300229, 308420, 308422, 283844, 226500, 300234, 283850, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 161027, 300292, 300294, 275719, 234760, 177419, 300299, 242957, 300301, 283917, 177424, 275725, 349451, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 316768, 292192, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 144812, 284076, 144814, 227426, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 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, 284223, 284226, 284228, 292421, 226886, 284231, 128584, 243268, 284234, 366155, 317004, 276043, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 292433, 284247, 317015, 235097, 243290, 276053, 284249, 284251, 300638, 284253, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 325251, 276095, 276098, 284297, 317066, 284299, 317068, 284301, 276109, 284303, 284306, 276114, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 284329, 317098, 284331, 276137, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 276160, 284354, 358083, 284358, 276166, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 276187, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 276206, 358128, 284399, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 292681, 153417, 358224, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 317279, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 317332, 358292, 284564, 284566, 399252, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 284585, 276395, 292776, 292784, 276402, 358326, 161718, 358330, 276410, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276448, 276452, 292839, 276455, 292843, 276460, 292845, 276464, 178161, 227314, 276466, 325624, 276472, 317435, 276476, 276479, 276482, 276485, 317446, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 276539, 276544, 284739, 325700, 243779, 292934, 243785, 276553, 350293, 350295, 309337, 194649, 227418, 350299, 350302, 227423, 350304, 178273, 309346, 194657, 194660, 350308, 309350, 309348, 292968, 309352, 309354, 301163, 350313, 350316, 227430, 301167, 276583, 350321, 276590, 284786, 276595, 350325, 252022, 227440, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 309455, 276689, 309462, 301272, 276699, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 243948, 194801, 309491, 227571, 309494, 243960, 276735, 227583, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 293232, 276848, 186744, 211324, 227709, 285061, 366983, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 301562, 317951, 309764, 301575, 121352, 293387, 236043, 342541, 317963, 113167, 55822, 309779, 317971, 309781, 277011, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 219714, 129603, 301636, 318020, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 309871, 121458, 277106, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 334488, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 318132, 342707, 154292, 277173, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 342749, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 310080, 293696, 277317, 277322, 293706, 277329, 162643, 310100, 301911, 277337, 301913, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 15224, 277368, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 276579, 293811, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 318442, 228330, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 285690, 244731, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 293960, 310344, 277577, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 203872, 277601, 285792, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 367737, 285817, 302205, 285821, 392326, 285831, 253064, 294026, 302218, 285835, 162964, 384148, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 302241, 285862, 277671, 302248, 64682, 277678, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 310486, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 138505, 228617, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 285999, 277807, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 302403, 294211, 384328, 277832, 277836, 294221, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 302534, 310727, 245191, 64966, 163272, 277959, 277963, 302541, 277966, 302543, 310737, 277971, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 310764, 286188, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 310780, 40448, 228864, 286214, 228871, 302603, 65038, 302614, 302617, 286233, 302621, 286240, 146977, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 278057, 310831, 245288, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 147032, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286312, 40554, 286313, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 179870, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 319163, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 286420, 278227, 229076, 286425, 319194, 278235, 278238, 229086, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 319280, 278320, 319290, 229192, 302925, 188247, 280021, 188252, 237409, 229233, 294776, 360317, 294785, 327554, 360322, 40840, 40851, 294803, 188312, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 294831, 188340, 40886, 319419, 294844, 294847, 237508, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 278519, 237562 ]
e1dc63f2217114b217e335eb2e52d63f6758ad72
903f64b849911fbaa951de85f67a60d816bc6f26
/iOS/Globals/Property Wrappers/Trimmed.swift
7c817b75b1d2f2b674a79af5acbf040649478a01
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
bunpro-srs/BunPro-iOS
117825174db1330bc55d5bd21dc9054d1c9ab9e3
72333871420762cd5c75dc3fa79a3ee1478d8aee
refs/heads/main
2022-05-07T14:14:25.401582
2022-03-30T08:06:29
2022-03-30T08:06:29
183,213,460
7
2
MIT
2022-06-08T02:47:36
2019-04-24T11:18:46
Swift
UTF-8
Swift
false
false
445
swift
// // Created by Andreas Braun on 11.12.19. // Copyright © 2019 Andreas Braun. All rights reserved. // import Foundation @propertyWrapper public struct Trimmed { private(set) var value: String = "" public var wrappedValue: String { get { value } set { value = newValue.trimmingCharacters(in: .whitespacesAndNewlines) } } public init(wrappedValue: String) { self.wrappedValue = wrappedValue } }
[ 374669 ]
c42bc6507089b21ee33b9da198ad88aaafe763ac
b2e64e09e8a0de6518ba638fd95d12e30cefe5b7
/Protocols/ViperRxRouting.swift
8e434e78109ec43a420395440e912d7e182d58c8
[]
no_license
mkoslacz/Moviper-iOS
41ad5d8083784eeacaba5d6cfd1f4049896b3bea
8e7c363bb98dbb1928426421cfdfdbfd259d0061
refs/heads/master
2021-05-11T15:23:59.154977
2017-11-27T10:12:08
2017-11-27T10:12:08
117,726,739
1
0
null
null
null
null
UTF-8
Swift
false
false
301
swift
// // BaseRxRoutingInterface.swift // videostar // // Created by Marek Truszkowski on 24.02.2017. // Copyright © 2017 Grupa Wirtualna Polska. All rights reserved. // import Foundation import UIKit protocol ViperRxRouting { func attach(viewController: UIViewController?) func detach() }
[ -1 ]
5d27b0e58d26e190c8efc87ecfbff06802191b10
22534c9b9d3a6cd381c34bf10db2b71d2ae167fb
/pokdexApp/AppDelegate.swift
cc68cb6d6bc3250372f51338b14e508a7a158d87
[]
no_license
hussein321/justForFun
fdf350185d44af629b288b56d2e73ee458766e9e
e22ec711cc0cdcc0695565c27e22fd6a2babeeba
refs/heads/master
2021-01-01T04:57:28.410034
2016-04-21T14:50:19
2016-04-21T14:50:19
56,778,818
0
0
null
null
null
null
UTF-8
Swift
false
false
2,133
swift
// // AppDelegate.swift // pokdexApp // // Created by hoseen on 4/18/16. // Copyright © 2016 alone. 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, 204856, 229432, 286776, 286778, 319544, 286791, 237640, 278605, 286797, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 278648, 131192, 237693, 327814, 131209, 417930, 303241, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 278760, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 287032, 155966, 278849, 319809, 319810, 319814, 311623, 319818, 311628, 229709, 287054, 319822, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 279010, 287202, 279015, 172520, 319978, 279020, 172526, 279023, 311791, 172529, 279027, 319989, 164343, 180727, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 287238, 172552, 303623, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 189039, 189040, 172655, 172656, 295538, 189044, 172660, 287349, 352880, 287355, 287360, 295553, 287365, 311942, 303751, 295557, 352905, 279178, 287371, 311946, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 164509, 303773, 295583, 172702, 230045, 287394, 287390, 303780, 172705, 287398, 172707, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 279231, 287423, 328384, 287427, 312006, 107208, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 279258, 303835, 213724, 189149, 303838, 287450, 279267, 312035, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 369433, 230169, 295707, 328476, 295710, 230175, 303914, 279340, 205613, 279353, 230202, 312124, 222018, 295755, 377676, 148302, 287569, 279383, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 328563, 303987, 279413, 303991, 303997, 295806, 295808, 304005, 295813, 213895, 320391, 304007, 304009, 304011, 230284, 304013, 213902, 279438, 295822, 189329, 295825, 304019, 189331, 279445, 58262, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 304063, 238528, 304065, 189378, 213954, 156612, 295873, 213963, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 197645, 295949, 230413, 320528, 140312, 295961, 238620, 197663, 304164, 189479, 304170, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 164973, 279661, 205934, 312432, 279669, 337018, 189562, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 350308, 230592, 279750, 312518, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 279788, 320748, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 222525, 296253, 312639, 296255, 230718, 296259, 378181, 230727, 238919, 320840, 296264, 296267, 296271, 222545, 230739, 312663, 337244, 222556, 230752, 312676, 230760, 173418, 410987, 230763, 230768, 296305, 312692, 230773, 279929, 304506, 304505, 181626, 181631, 312711, 312712, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 288176, 279985, 173488, 312755, 296373, 279991, 312759, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 370130, 288210, 288212, 280021, 288214, 222676, 239064, 288217, 288218, 280027, 329177, 288220, 239070, 288224, 370146, 280034, 280036, 288226, 280038, 288229, 288230, 288232, 288234, 320998, 288236, 288238, 288240, 291754, 288242, 296435, 288244, 296439, 288250, 402942, 148990, 296446, 206336, 296450, 321022, 230916, 230919, 214535, 370187, 304651, 304653, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 312938, 280183, 280185, 280188, 280191, 280194, 116354, 280208, 280211, 288408, 280218, 280222, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 313027, 280260, 206536, 280264, 206539, 206541, 206543, 280276, 313044, 321239, 280283, 313052, 288478, 313055, 321252, 313066, 280302, 288494, 280304, 313073, 321266, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 304968, 280393, 280402, 313176, 42842, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280458, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 10170, 296890, 288700, 296894, 280515, 190403, 296900, 337862, 165831, 280521, 231379, 296921, 239586, 313320, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 321560, 305176, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 223303, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 223327, 280671, 149599, 321634, 149601, 149603, 329830, 280681, 313451, 223341, 280687, 313458, 280691, 215154, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 288936, 100520, 280747, 288940, 280755, 288947, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 280819, 157940, 125171, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 280835, 125187, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 280891, 289087, 280897, 280900, 239944, 305480, 280906, 239947, 305485, 305489, 379218, 280919, 354653, 313700, 280937, 313705, 280940, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 297365, 240021, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 305594, 289210, 281024, 289218, 289221, 289227, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 281084, 240124, 305662, 305664, 240129, 305666, 305668, 240132, 223749, 281095, 338440, 150025, 223752, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 199262, 338528, 338532, 281190, 199273, 281196, 158317, 19053, 313973, 281210, 297594, 158347, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 199367, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 281401, 289593, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 183172, 158596, 240519, 322440, 338823, 314249, 183184, 289687, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 281581, 183277, 322550, 134142, 322563, 175134, 322599, 322610, 314421, 281654, 314427, 207937, 314433, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 298306, 380226, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 290174, 298365, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 224657, 306581, 314779, 314785, 282025, 314793, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 282133, 290325, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 324757, 282261, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 282410, 241450, 306988, 306991, 315184, 323376, 315190, 241464, 282425, 159545, 298811, 307009, 413506, 241475, 307012, 148946, 315211, 282446, 307027, 315221, 282454, 315223, 241496, 323414, 241498, 307035, 307040, 282465, 110433, 241509, 110438, 298860, 110445, 282478, 315249, 110450, 315251, 282481, 315253, 315255, 339838, 282499, 315267, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 44948, 298901, 241556, 282520, 241560, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 282639, 290835, 282645, 241693, 282654, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 315482, 315483, 217179, 192605, 233567, 200801, 299105, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 241813, 307352, 299164, 184479, 299167, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 323763, 176311, 299191, 307385, 307386, 258235, 176316, 307388, 307390, 184503, 299200, 184512, 307394, 307396, 299204, 184518, 307399, 323784, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 291089, 282906, 291104, 233766, 282931, 307508, 315701, 307510, 332086, 307512, 151864, 176435, 307515, 168245, 282942, 307518, 151874, 282947, 282957, 323917, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 283033, 291226, 242075, 315801, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 291247, 127407, 299440, 299444, 127413, 283062, 291254, 127417, 291260, 283069, 127421, 127424, 299457, 127429, 127431, 283080, 176592, 315856, 315860, 176597, 127447, 283095, 299481, 176605, 242143, 291299, 127463, 242152, 291305, 127466, 176620, 127474, 291314, 291317, 135672, 233979, 291323, 291330, 283142, 127497, 233994, 135689, 291341, 233998, 234003, 234006, 152087, 127511, 283161, 242202, 234010, 135707, 242206, 135710, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 135808, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 225998, 299726, 226002, 226005, 119509, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 381677, 226037, 283382, 234231, 316151, 234236, 226045, 234239, 242431, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 292433, 234313, 316233, 316235, 234316, 283468, 242511, 234319, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 234370, 201603, 291714, 234373, 226182, 234375, 291716, 226185, 308105, 234379, 234384, 234388, 234390, 226200, 324504, 234393, 209818, 308123, 324508, 234398, 234396, 291742, 234401, 291747, 291748, 234405, 291750, 234407, 324518, 324520, 234410, 324522, 226220, 291756, 234414, 324527, 291760, 234417, 201650, 324531, 226230, 234422, 275384, 324536, 234428, 291773, 234431, 242623, 324544, 324546, 226239, 324548, 226245, 234437, 234439, 234434, 234443, 291788, 275406, 234446, 193486, 234449, 316370, 193488, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 324599, 234487, 234490, 234493, 234496, 316416, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 234519, 316439, 234520, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 234549, 300085, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 234563, 308291, 234568, 234570, 316491, 300108, 234572, 234574, 300115, 234580, 234581, 275545, 242777, 234585, 234590, 234593, 234595, 300133, 234597, 234601, 300139, 234605, 234607, 160879, 275569, 234610, 300148, 234614, 398455, 144506, 275579, 234618, 234620, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 226453, 275606, 234647, 275608, 308373, 234650, 234648, 308379, 283805, 234653, 324766, 119967, 234657, 300189, 324768, 242852, 283813, 234661, 300197, 234664, 275626, 234667, 316596, 308414, 234687, 300226, 308418, 226500, 234692, 300229, 308420, 283844, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 161003, 300267, 300270, 300272, 120053, 300278, 316663, 275703, 300284, 275710, 300287, 283904, 300289, 292097, 300292, 300294, 275719, 300299, 177419, 283917, 300301, 242957, 177424, 275725, 349464, 283939, 259367, 283951, 292143, 300344, 226617, 283963, 243003, 226628, 283973, 300357, 177482, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 284076, 144812, 144814, 144820, 284084, 284087, 292279, 144826, 144828, 144830, 144832, 144835, 284099, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 226802, 316917, 308727, 292343, 300537, 316947, 308757, 308762, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 194101, 284215, 194103, 284218, 226877, 284223, 284226, 243268, 292421, 226886, 284231, 128584, 284228, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 276052, 276053, 284245, 284247, 317015, 284249, 243290, 284251, 300628, 284253, 235097, 284255, 300638, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 284278, 292470, 292473, 284283, 276093, 284286, 276095, 284288, 292481, 276098, 284290, 325250, 284292, 292479, 292485, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 276114, 284306, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 276166, 284358, 358089, 276170, 284362, 276175, 284368, 276177, 284370, 317138, 284372, 358098, 284377, 276187, 284379, 284381, 284384, 284386, 358114, 358116, 276197, 317158, 358119, 284392, 325353, 284394, 358122, 284397, 276206, 284399, 358126, 358128, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 284418, 358146, 317187, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 186139, 300828, 300830, 276255, 325408, 284449, 300834, 300832, 227109, 317221, 358183, 186151, 276268, 300845, 194351, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 300912, 284529, 292721, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 284564, 358292, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292776, 292784, 276402, 358326, 161718, 276410, 276411, 358330, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 292843, 276460, 276464, 178161, 227314, 276466, 276472, 325624, 317435, 276476, 276479, 276482, 276485, 317446, 276490, 292876, 276496, 317456, 317458, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 276539, 235579, 235581, 325692, 178238, 276544, 284739, 292934, 276553, 243785, 350293, 350295, 194649, 227418, 309337, 350302, 227423, 194654, 194657, 178273, 276579, 227426, 194660, 227430, 276583, 309346, 309348, 276586, 309350, 309352, 309354, 276590, 350313, 350316, 350321, 284786, 276595, 227440, 301167, 350325, 350328, 292985, 301178, 292989, 292993, 301185, 350339, 317570, 317573, 350342, 227463, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 276638, 350366, 284837, 153765, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 309450, 301258, 276685, 276689, 227540, 309462, 301272, 276699, 309468, 194780, 309471, 301283, 317672, 276713, 317674, 325867, 243948, 194801, 227571, 309491, 276725, 309494, 243960, 276735, 227583, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 276766, 211232, 317729, 276775, 211241, 325937, 276789, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 276843, 293227, 276848, 293232, 186744, 285051, 211324, 227709, 285061, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 301562, 317951, 309764, 301575, 121352, 236043, 317963, 342541, 55822, 113167, 277011, 317971, 309781, 309779, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 129603, 318020, 301636, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 277106, 121458, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 318094, 334476, 277136, 277139, 227992, 285340, 318108, 227998, 318110, 137889, 383658, 285357, 318128, 277170, 342707, 154292, 277173, 293555, 318132, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 137946, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 293666, 285474, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 285499, 301884, 310080, 293696, 277317, 277322, 277329, 162643, 310100, 301911, 277337, 301913, 301921, 400236, 236397, 162671, 326514, 310134, 277368, 15224, 236408, 416639, 416640, 113538, 310147, 416648, 277385, 39817, 187274, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 293849, 293861, 228327, 228328, 228330, 318442, 228332, 277486, 326638, 318450, 293876, 293877, 285686, 302073, 285690, 121850, 302075, 244731, 293882, 293887, 277504, 277507, 277511, 277519, 293908, 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, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 285821, 302205, 285824, 392326, 285831, 253064, 302218, 285835, 294026, 384148, 162964, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 285862, 277671, 302248, 64682, 277678, 228526, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 204023, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 228617, 138505, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 285999, 277807, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 294211, 302403, 384328, 277832, 277836, 294221, 326991, 294223, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 277892, 327046, 253320, 310665, 318858, 277898, 277894, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 277923, 130468, 228776, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 64966, 245191, 163272, 302534, 310727, 277959, 292968, 302541, 277966, 302543, 277963, 310737, 277971, 277975, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 286188, 310764, 278000, 278003, 310772, 228851, 278006, 40440, 278009, 212472, 40443, 286203, 228864, 40448, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 286240, 146977, 187939, 294435, 40484, 286246, 294439, 294440, 278057, 40486, 294443, 40488, 294445, 286248, 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, 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 ]
2e2b6b4bb20be549cd96ae9c3990f4097670f827
5dd440a74e5d2a9207463abec26a82f39770280b
/HadesProject/TwoStateButton.swift
00e2e4b0e30bbc78a8ffbc4385b822b662de788b
[]
no_license
nicolasnascimento/MiniChallenge2
859192e5804668bc04ab4e37cc79f85a7fde66e6
4fc2dc77389b69b2945b5b1f0af90969f2dd8bb6
refs/heads/master
2021-01-10T06:27:02.857939
2018-05-04T18:52:53
2018-05-04T18:52:53
36,756,916
1
0
null
null
null
null
UTF-8
Swift
false
false
986
swift
// // TwoStateButton.swift // // // Created by Nicolas Nascimento on 04/07/15. // // import UIKit import SpriteKit class TwoStateButton: SKSpriteNode { var onTextureName: String var offTextureName: String var state: Bool init(onTextureName: String, offTextureName: String, initialState: Bool = true) { self.onTextureName = onTextureName self.offTextureName = offTextureName self.state = initialState var aTexture = SKTexture(imageNamed: ( initialState ? onTextureName : offTextureName ) ) super.init(texture: aTexture, color: SKColor.clear, size: aTexture.size()) } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } func changeState() { self.state = !self.state var aTexture = SKTexture(imageNamed: ( self.state ? onTextureName : offTextureName )) self.run(SKAction.setTexture(aTexture)) } }
[ -1 ]
8c9af3d9a213c05feb1124bd8e48ac9e360fac09
95e5fcbcf5491b91aaf90ecfe0673e5e6c5b3e3a
/TrailTracker/View Controllers/TabViewController.swift
01bb4851fc5d2a2cac12fcfa00f4a3149711b6c7
[]
no_license
EvanKaminsky/Camacho
39042c584b74308f299964128cd1108f5109f605
bfbfe546155214c3ad0be2bb3959c127a544cd2e
refs/heads/master
2021-09-13T04:51:56.487565
2018-04-23T18:31:42
2018-04-23T18:31:42
126,920,394
0
0
null
null
null
null
UTF-8
Swift
false
false
706
swift
// // TabViewController.swift // TrailTracker // // Created by Natasha Solanki on 4/22/18. // Copyright © 2018 Camacho. All rights reserved. // import UIKit class TabViewController: UITabBarController { @IBOutlet weak var mainTabBar: UITabBar! override func viewDidLoad() { super.viewDidLoad() UITabBarItem.appearance().setTitleTextAttributes([NSAttributedStringKey.font: UIFont(name:"SUNN", size:25)!, NSAttributedStringKey.foregroundColor: UIColor.white], for: .normal) UITabBarItem.appearance().setTitleTextAttributes([NSAttributedStringKey.font: UIFont(name:"SUNN", size:25)!, NSAttributedStringKey.foregroundColor: UIColor.green], for: .selected) } }
[ -1 ]
4ce5c0101a91a44e14214b7c8bd4efbf5ac9fa2b
186d16204d92e69af1273112f4d039879f93cef4
/SwiftFun01/ViewController.swift
3e9ccc551d8d6d5fcafbad407a7911726ee2e9de
[]
no_license
haifengkao/SwiftFun01
c3c842f029a09509b2186fa179f4f2bf3e422dc0
ca65caec6d3a32cd14b80b954d232bcc8e317df2
refs/heads/master
2020-07-28T18:38:37.117849
2019-09-19T07:52:31
2019-09-19T07:52:31
209,496,092
2
0
null
null
null
null
UTF-8
Swift
false
false
336
swift
// // ViewController.swift // SwiftFun01 // // Created by lono on 2019/7/11. // Copyright © 2019 lono. All rights reserved. // import Prelude import UIKit class ViewController: UIViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } }
[ 323334, 249229, 189326, 319888, 342547, 316949, 314774, 291223, 314780, 342300, 316317, 135840, 135842, 172578, 340649, 172586, 242346, 337068, 336557, 241071, 243505, 172722, 314048, 339520, 313029, 319815, 326600, 182474, 146645, 250212, 315492, 56044, 215408, 319990, 327033, 314748, 334205 ]
3e531ea444f002c5ec3d41d87d3c53d62690ca50
2da65f4957c206529e76df11a11c11eff4d75267
/Swiftui_movie/Views/TabBarItem.swift
5ccee313efda815aafa48b2d17d34be0c9cf1310
[]
no_license
AjiSuryawan/iosTangriaNew
1e1cc128860794dff3c60bef155c29320d16c1db
25d27c6ff2255e7ff6e0d2c02db4a8cd6e690496
refs/heads/master
2022-12-15T12:16:57.530184
2020-09-03T16:29:06
2020-09-03T16:29:06
291,964,839
0
0
null
null
null
null
UTF-8
Swift
false
false
1,376
swift
// // TabBarItem.swift // Swiftui_movie // // Created by Aji Suryawan on 05/07/20. // Copyright © 2020 Liem Vo. All rights reserved. // import Foundation import SwiftUI struct TabBarItem: View { @Binding var currentView: Tab let imageName: String let paddingEdges: Edge.Set let tab: Tab //Color(#colorLiteral(red: 0.8039215803, green: 0.8039215803, blue: 0.8039215803, alpha: 1)) var body: some View { VStack(spacing:0) { Image(systemName: imageName) .resizable() .aspectRatio(contentMode: .fit) .padding(5) .frame(width: 40, height: 40, alignment: .center) .background(Color(self.currentView == tab ? #colorLiteral(red: 0.8549019694, green: 0.250980407, blue: 0.4784313738, alpha: 1) : .white).opacity(0.5)) .foregroundColor(Color(self.currentView == tab ? .white : #colorLiteral(red: 0.9098039269, green: 0.4784313738, blue: 0.6431372762, alpha: 1))) .cornerRadius(6) } .frame(width: 100, height: 50) .onTapGesture { self.currentView = self.tab } .padding(paddingEdges, 15) } } struct TabBarItem_Previews: PreviewProvider { static var previews: some View { TabBarItem(currentView: .constant(.Tab1), imageName: "gear", paddingEdges: .leading, tab: .Tab1) } }
[ -1 ]
599c1a0633d8f07e8af6fc0dec335e925c29e516
b7f4783cfeb641649b97669bd29882eb709669f6
/Swift/SKProduct.swift
da3c088d49e452c494e9c7570f93fcbc38b95c5b
[ "MIT" ]
permissive
materik/cocoapod-iapcontroller
c4bf0d5d07f339a9c60266bebabcbf31e3336d23
0f0b09570f69277739e3c225cb22fb65e41964e9
refs/heads/master
2021-06-04T15:01:28.939370
2016-10-30T17:40:13
2016-10-30T18:22:51
39,588,747
2
0
null
null
null
null
UTF-8
Swift
false
false
842
swift
// // SKProduct.swift // XWorkout // // Created by materik on 19/07/15. // Copyright (c) 2015 materik. All rights reserved. // import Foundation import StoreKit public extension SKProduct { private var payment: SKPayment { get { return SKPayment(product: self) } } public var priceFormatted: String? { get { let priceFormatter = NumberFormatter() priceFormatter.formatterBehavior = NumberFormatter.Behavior.behavior10_4 priceFormatter.numberStyle = NumberFormatter.Style.currency priceFormatter.locale = self.priceLocale return priceFormatter.string(from: self.price)! } } public func buy() { if SKPaymentQueue.canMakePayments() { SKPaymentQueue.default().add(self.payment) } } }
[ -1 ]
40f84299f60d99ecb86859f789883c7ab676229b
910fcc5c591d2de63232e7cdfb85a536b6024a64
/Centro/Centro/ViewController.swift
87ee710e04a71a9613860452cafb0fdfa4062ef3
[]
no_license
DwaynesWorld/Centro
97c0a530ad5d6e0537d6650cfc8950f1ff85c728
77ca11c4c85899bd955edc914a2aa94793b61e45
refs/heads/master
2021-01-22T11:21:35.886762
2017-05-28T21:54:22
2017-05-28T21:54:22
92,687,182
0
0
null
null
null
null
UTF-8
Swift
false
false
458
swift
// // ViewController.swift // Centro // // Created by Kyle Thompson on 5/28/17. // Copyright © 2017 Kyle Thompson. All rights reserved. // import Cocoa class ViewController: NSViewController { override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } override var representedObject: Any? { didSet { // Update the view, if already loaded. } } }
[ 402567, 322829, 325775, 349589, 241180, 315804, 40609, 49314, 156071, 289331, 201652, 228793, 295743, 273351, 99020, 135886, 180943, 251224, 293226, 230123, 329711, 55926, 180730, 138494 ]
a2b352bea44b42900aae4ffb85e0275cf27e767b
0b7031cfc5ca4a14d41cfc6e745bb97721ddc8e8
/HealthKitManager.swift
0edc797ffc9ed656548a779cca1d6c670dee88c4
[]
no_license
DarynaFentsyk/Examples
10eff8a8db23b3b1c741e26ffe793845c7c2354e
0b610127e25ac2eb11abbf646116e34e95964d04
refs/heads/master
2020-03-23T18:47:31.816888
2018-07-22T21:29:56
2018-07-22T21:29:56
141,931,979
0
0
null
null
null
null
UTF-8
Swift
false
false
5,096
swift
// // HealthKitManager.swift // HealthManager // // Created by Daryna Fentsyk on 28/05/2018. // Copyright © 2018 SW7D. All rights reserved. // import Foundation import HealthKit import UIKit final class HealthManager: NSObject { static let shared = HealthManager() let healthStore = HKHealthStore() enum HealthkitSetupError: Error { case notAvailableOnDevice case dataTypeNotAvailable } private override init() { super.init() } // HEALTHKIT AUTHORISATION func authorizeHealthKit(completion: @escaping (Bool, Error?) -> Swift.Void) { guard HKHealthStore.isHealthDataAvailable() else { completion(false, HealthkitSetupError.notAvailableOnDevice) return } guard let height = HKObjectType.quantityType(forIdentifier: .height), let weight = HKObjectType.quantityType(forIdentifier: .bodyMass), let sex = HKObjectType.characteristicType(forIdentifier: .biologicalSex), let birthday = HKObjectType.characteristicType(forIdentifier: .dateOfBirth) else { completion(false, HealthkitSetupError.dataTypeNotAvailable) return } let healthKitTypesToRead: Set<HKObjectType> = [height, weight, sex, birthday] HKHealthStore().requestAuthorization(toShare: nil, read: healthKitTypesToRead) { (success, error) in completion(success, error) } } //GETTING USER HEIGHT func getUserHeight(completion: @escaping (Double) -> Void) { let heightType = HKSampleType.quantityType(forIdentifier: HKQuantityTypeIdentifier.height)! let query = HKSampleQuery(sampleType: heightType, predicate: nil, limit: 1, sortDescriptors: nil) { (query, result, error) in guard let result = result?.first as? HKQuantitySample else { print("An error occured fetching the user's height. The error was: \(String(describing: error?.localizedDescription))") return } completion(result.quantity.doubleValue(for: HKUnit.meter())*100) } healthStore.execute(query) } //GETTING USER WEIGHT func getUserWeight(completion: @escaping (Double) -> Void) { let weightType = HKSampleType.quantityType(forIdentifier: HKQuantityTypeIdentifier.bodyMass)! let query = HKSampleQuery(sampleType: weightType, predicate: nil, limit: 1, sortDescriptors: nil) { (query, result, error) in guard let result = result?.first as? HKQuantitySample else { print("An error occured fetching the user's weight. The error was: \(String(describing: error?.localizedDescription))") return } completion(result.quantity.doubleValue(for: HKUnit.gram())/1000) } healthStore.execute(query) } //GETTING USER BMI func getUserBmi(completion: @escaping (Double) -> Void) { let bmiType = HKSampleType.quantityType(forIdentifier: HKQuantityTypeIdentifier.bodyMassIndex)! let query = HKSampleQuery(sampleType: bmiType, predicate: nil, limit: 1, sortDescriptors: nil) { (query, result, error) in guard let result = result?.first as? HKQuantitySample else { print("An error occured fetching the user's BMI. The error was: \(String(describing: error?.localizedDescription))") return } completion(result.quantity.doubleValue(for: HKUnit.meter())) } healthStore.execute(query) } //GETTING USER SEX AND AGE func getBiologicalSex() throws -> HKBiologicalSex{ let healthKitStore = HKHealthStore() do { let biologicalSex = try healthKitStore.biologicalSex() let unwrappedBiologicalSex = biologicalSex.biologicalSex return (unwrappedBiologicalSex) } } func getSexFromBiologicalSex(type: HKBiologicalSex) -> String { switch type { case .notSet: return "Not Set" case .female: return "Female" case .male: return "Male" case .other: return "Other" } } func getBirthday() throws -> DateComponents{ let healthKitStore = HKHealthStore() do { let birthdayComponents = try healthKitStore.dateOfBirthComponents() let unwrappedBirthday = birthdayComponents.date print(birthdayComponents) print(unwrappedBirthday!) return (birthdayComponents) } } func getAge(birthday: Date) -> Int { let today = Date() let calendar = Calendar.current let todayDateComponents = calendar.dateComponents([.year], from: today) let birthdayComponents = calendar.dateComponents([.year], from: birthday) let thisYear = todayDateComponents.year! let age = thisYear - birthdayComponents.year! return age } }
[ -1 ]
8a88b6f235a9638ccaac736adee6198a76886c62
e3f6125cea34357546491401ff5a9ebb5896c28a
/KFlightChecklists/Data/Payloads/RecordHobbsMeterReadingPayload.swift
359496a72a3b84d0f6515ac4ca3efdf4d87ca1b0
[]
no_license
kwancheng/kflightchecklists
6dd7cc1651e1f1b31448cb2d67282461c6008575
b3328bd24319c2da1bc85e6722273c7576d01198
refs/heads/master
2021-01-10T08:01:31.027694
2017-02-27T03:11:50
2017-02-27T03:11:50
54,686,533
0
0
null
null
null
null
UTF-8
Swift
false
false
943
swift
// // RecordHobbsMeterReadingPayload.swift // KFlightChecklists // // Created by Kwan Cheng on 6/22/15. // Copyright (c) 2015 Acproma llc. All rights reserved. // import Foundation public typealias SetHobbsMeterReadingCallback = (_ isPreFlight : Bool, _ reading : Float)->Void open class RecordHobbsMeterReadingPayload : Payload { open var isPreFlight : Bool? open var reading : Float? open var setHobbsMeterReadingCallback : SetHobbsMeterReadingCallback? init(_ item: String?, _ action: String?, _ isPreFlight : Bool?, _ reading : Float?, _ setHobbsMeterReadingCallback : SetHobbsMeterReadingCallback?, _ completionCallback: CompletionCallback?) { super.init(item, action, completionCallback) self.isPreFlight = isPreFlight self.reading = reading self.setHobbsMeterReadingCallback = setHobbsMeterReadingCallback } }
[ -1 ]
e2e8ce8da7ebb8be2b8dc2aa07fa271e9c3043de
fa17d23ded7ca402322ca267704dc8152c23622c
/Studs/Shared/Store.swift
171925f1ce0e1fa0e1cf7341e37bf57a46ebc807
[]
no_license
jberglinds/speedman
1f8b742dc2561bdc08a7499daf771672813eaae0
3281964591b46ce52506add858c79a0b152f5054
refs/heads/master
2020-03-25T20:09:10.675610
2018-08-18T19:13:37
2018-08-18T19:14:32
144,117,764
0
0
null
2018-08-09T07:40:35
2018-08-09T07:40:34
null
UTF-8
Swift
false
false
1,355
swift
// // Store.swift // Studs // // Created by Jonathan Berglind on 2018-05-10. // Copyright © 2018 Studieresan. All rights reserved. // // Redux inspired store doing and tracking state updates import Foundation typealias Command<Action> = (@escaping (Action) -> Void) -> Void typealias Reducer<State, Action> = (State, Action) -> (State, Command<Action>?) class Store<State, Action> { private(set) var state: State { didSet { observers.values.forEach({ $0(state) }) } } private var observers = [UUID: (State) -> Void]() private var reduce: Reducer<State, Action> init(state: State, reduce: @escaping Reducer<State, Action>) { self.state = state self.reduce = reduce } /// Subscribes a handler that will get updates each time the state changes func subscribe(handler: @escaping (State) -> Void) -> Subscription<State> { let uuid = UUID() observers[uuid] = handler handler(state) // Returns a function for unsubscribing handler return Subscription { [unowned self] in self.observers.removeValue(forKey: uuid) } } /// Dispatches an action through the reducer which updates the state func dispatch(action: Action) { let (newState, command) = reduce(state, action) state = newState command? { [weak self] action in self?.dispatch(action: action) } } }
[ -1 ]
569800d50b25ce119cf0fe4753a1c0d77cc0f41c
4ebfd67ce160f82d690849e59e44284bd1e0f1af
/MovieList-CleanSwift/Scenes/MovieList/MovieListInteractor.swift
b18d7721caf32550f0556e5b50ae1da91828f875
[]
no_license
AksornKhantasit/MovieList-CleanSwift
7facfbdd36c9cd795c9eb70bec5f3d8efce69ac4
664e3e8cd7b53e4b4ee24a11f10f0904b7be26e6
refs/heads/master
2020-07-30T14:25:23.340340
2019-09-27T09:51:28
2019-09-27T09:51:28
210,262,837
0
0
null
null
null
null
UTF-8
Swift
false
false
2,618
swift
// // MovieListInteractor.swift // MovieList-CleanSwift // // Created by Aksorn Khantasit on 22/9/2562 BE. // Copyright (c) 2562 Aksorn. All rights reserved. // import UIKit protocol MovieListInteractorInterface { func getMovies(request: MovieList.GetMovies.Request) func setSelectedID(request: MovieList.SetSelectedIndex.Request) func setSort(request: MovieList.SetSort.Request) func pullRefresh(request: MovieList.PullRefresh.Request) func reloadCell(request: MovieList.ReloadCell.Request) var movies: [Results]? { get } var selectedID: Int? { get } } class MovieListInteractor: MovieListInteractorInterface { var presenter: MovieListPresenterInterface! var worker: MovieListWorker? var movies: [Results]? var page: Int = 1 var selectedID: Int? var sortBy: SortB = .desc // MARK: - Business logic func getMovies(request: MovieList.GetMovies.Request) { worker?.getMovies(page: page, sortBy: sortBy.rawValue) { [weak self] apiResponse in switch apiResponse { case .success(let movies): if self?.page == 1 { self?.movies = movies.results } else { self?.movies?.append(contentsOf: movies.results) } let response = MovieList.GetMovies.Response(result: .success(self?.movies ?? [])) self?.presenter.presentMovies(response: response) self?.page += 1 case .failure(let error): let response = MovieList.GetMovies.Response(result: .failure(error)) self?.presenter.presentMovies(response: response) } } } func setSelectedID(request: MovieList.SetSelectedIndex.Request) { selectedID = request.id let response = MovieList.SetSelectedIndex.Response() presenter.presentSelectedIndex(response: response) } func setSort(request: MovieList.SetSort.Request) { switch request.sortBy { case .asc: sortBy = .asc page = 1 case .desc: sortBy = .desc page = 1 } let response = MovieList.SetSort.Response() presenter.setSort(response: response) } func pullRefresh(request: MovieList.PullRefresh.Request) { page = 1 let response = MovieList.PullRefresh.Response() presenter.pullRefresh(response: response) } func reloadCell(request: MovieList.ReloadCell.Request) { if let movies = movies { for (_ , value) in movies.enumerated() { if request.movieId == Int(value.id) { let response = MovieList.ReloadCell.Response(movie: value, movieId: request.movieId) presenter.reloadCell(response: response) } } } } }
[ -1 ]
438ea8aed007ff9b629c19f96394fb0ac77e51e7
b9251920d6fac1cd663f7a4386084824fdefd249
/app/appUITests/appUITests.swift
6891d81c60943ce79b8653c439a25e50f83ea2eb
[ "MIT" ]
permissive
LucasAssisRo/ruptr
ab404e5bf16426c3426be444b3b9bcd5e834acc4
cc44ac26ecf1d9bd1ab73f471f88667954dd8267
refs/heads/master
2021-03-27T15:30:28.955178
2018-07-05T16:21:02
2018-07-05T16:21:02
112,187,731
0
0
null
null
null
null
UTF-8
Swift
false
false
1,251
swift
// // AppUITests.swift // AppUITests // // Created by Lucas Assis Rodrigues on 10/12/2017. // Copyright © 2017 Apple Dev Academy. All rights reserved. // import XCTest class AppUITests: 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, 196687, 278607, 311377, 368732, 180317, 278637, 319599, 278642, 131190, 131199, 278669, 278676, 311447, 327834, 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, 319931, 311739, 278974, 336319, 311744, 278979, 336323, 278988, 278992, 279000, 369121, 279009, 188899, 279014, 319976, 279017, 311787, 319986, 279030, 311800, 279033, 279042, 287237, 377352, 279053, 303634, 303635, 279060, 279061, 279066, 188954, 279092, 377419, 303693, 115287, 189016, 295518, 287327, 279143, 279150, 287345, 287348, 189054, 287359, 303743, 164487, 279176, 311944, 344714, 311948, 311950, 311953, 336531, 287379, 295575, 303772, 221853, 205469, 279207, 295591, 295598, 279215, 279218, 287412, 164532, 287418, 303802, 66243, 287434, 287438, 279249, 303826, 369365, 369366, 279253, 230105, 295653, 230120, 312046, 279278, 279293, 205566, 295688, 312076, 295698, 221980, 336678, 262952, 262953, 279337, 262957, 164655, 328495, 303921, 230198, 222017, 295745, 279379, 295769, 230238, 230239, 279393, 303973, 279398, 295797, 295799, 279418, 336765, 287623, 279434, 320394, 189327, 189349, 279465, 304050, 189373, 213956, 345030, 213961, 279499, 304086, 123880, 304104, 320492, 320495, 287730, 320504, 312313, 214009, 312315, 312317, 418819, 320520, 230411, 320526, 238611, 140311, 238617, 197658, 336930, 132140, 189487, 312372, 238646, 238650, 320571, 336962, 238663, 205911, 296023, 156763, 230500, 279659, 230514, 312435, 238706, 279666, 279686, 222344, 337037, 296091, 238764, 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, 345418, 230730, 337228, 296269, 222542, 238928, 296274, 230757, 296304, 312688, 230772, 337280, 296328, 296330, 304523, 9618, 279955, 148899, 279979, 279980, 173492, 279988, 280003, 280011, 337359, 329168, 312785, 222674, 329170, 280025, 239069, 320997, 280042, 280043, 329198, 337391, 296434, 288248, 288252, 312830, 230922, 329231, 304655, 230933, 222754, 312879, 230960, 288305, 239159, 157246, 288319, 288322, 280131, 124486, 288328, 230999, 239192, 99937, 345697, 312937, 312941, 206447, 288377, 337533, 280193, 239238, 288391, 239251, 198304, 337590, 280252, 296636, 280253, 321217, 280259, 296649, 239305, 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, 337746, 18263, 370526, 296807, 296815, 313200, 313204, 124795, 182145, 280451, 67464, 305032, 214936, 337816, 329627, 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, 280660, 223317, 321632, 280674, 280676, 313446, 215144, 288878, 288890, 215165, 280708, 329884, 215204, 125108, 280761, 223418, 280767, 338118, 280779, 321744, 280792, 280803, 182503, 338151, 125166, 125170, 395511, 313595, 125184, 125192, 125197, 125200, 125204, 338196, 125215, 125225, 338217, 321839, 125236, 280903, 289109, 379224, 239973, 313703, 280938, 321901, 354671, 354672, 199030, 223611, 248188, 313726, 158087, 313736, 240020, 190870, 190872, 289185, 305572, 289195, 338359, 289229, 281038, 281039, 281071, 322057, 182802, 322077, 289328, 338491, 322119, 281165, 281170, 281200, 297600, 289435, 314020, 248494, 166581, 314043, 363212, 158424, 322269, 338658, 289511, 330473, 330476, 289517, 215790, 125683, 199415, 289534, 322302, 35584, 322312, 346889, 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, 207839, 142309, 314343, 183276, 289773, 248815, 240631, 330759, 330766, 330789, 248871, 281647, 322609, 314437, 207954, 339031, 314458, 281698, 281699, 322664, 314493, 150656, 347286, 330912, 339106, 306339, 249003, 208044, 3243, 322733, 339131, 290001, 339167, 298209, 290030, 208123, 322826, 126229, 298290, 208179, 159033, 372039, 224591, 331091, 314708, 150868, 314711, 314721, 281958, 314727, 134504, 306541, 314734, 314740, 314742, 314745, 290170, 224637, 306558, 290176, 314752, 306561, 314759, 298378, 314765, 314771, 306580, 224662, 282008, 314776, 282013, 290206, 314788, 314790, 282023, 298406, 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, 323171, 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, 323335, 282375, 282379, 216844, 118549, 282390, 282399, 241440, 282401, 339746, 216868, 315172, 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, 282572, 282573, 323554, 298987, 282634, 241695, 315431, 102441, 315433, 102446, 282671, 241717, 307269, 233548, 315468, 315477, 323678, 315488, 315489, 45154, 217194, 233578, 307306, 249976, 241809, 323730, 299166, 233635, 299176, 184489, 323761, 184498, 258233, 299197, 299202, 176325, 299208, 233678, 282832, 356575, 307431, 184574, 217352, 315674, 282908, 299294, 282912, 233761, 282920, 315698, 282938, 307514, 127292, 168251, 323914, 201037, 282959, 250196, 168280, 323934, 381286, 242027, 242028, 250227, 315768, 315769, 291193, 291194, 291200, 242059, 315798, 291225, 242079, 283039, 299449, 291266, 373196, 283088, 283089, 242138, 176602, 160224, 291297, 283138, 233987, 324098, 340489, 283154, 291359, 283185, 234037, 340539, 234044, 332379, 111197, 242274, 291455, 316044, 184974, 316048, 340645, 176810, 299698, 291529, 225996, 135888, 242385, 299737, 234216, 234233, 242428, 291584, 299777, 291591, 291605, 283418, 234276, 283431, 234290, 201534, 283466, 234330, 275294, 349025, 357219, 177002, 308075, 242540, 242542, 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, 234588, 250982, 234606, 300145, 300147, 234626, 234635, 177297, 308375, 324761, 119965, 234655, 300192, 234662, 300200, 324790, 300215, 283841, 283846, 283849, 316628, 251124, 234741, 316661, 283894, 292092, 234756, 242955, 177420, 292145, 300342, 193858, 300355, 300354, 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, 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, 317305, 317308, 325508, 333700, 243590, 243592, 325514, 350091, 350092, 350102, 333727, 219046, 333734, 284584, 292783, 300983, 153553, 292835, 292838, 317416, 325620, 333827, 243720, 292901, 325675, 243763, 325695, 227432, 194667, 284789, 292987, 227459, 194692, 235661, 333968, 153752, 284827, 333990, 284840, 284843, 227517, 309443, 227525, 301255, 227536, 301270, 301271, 325857, 317676, 309504, 194832, 227601, 325904, 334104, 211239, 334121, 317738, 325930, 227655, 383309, 391521, 285031, 416103, 227702, 211327, 227721, 285074, 227730, 285083, 293275, 317851, 227743, 285089, 293281, 301482, 375211, 334259, 293309, 317889, 129484, 326093, 285152, 195044, 334315, 236020, 293368, 317949, 334345, 309770, 342537, 342560, 227881, 293420, 236080, 23093, 244279, 244280, 301635, 309831, 55880, 301647, 326229, 244311, 309847, 244326, 277095, 301688, 301702, 334473, 326288, 227991, 285348, 318127, 293552, 342705, 285362, 285360, 154295, 342757, 285419, 170735, 342775, 375552, 228099, 285443, 285450, 326413, 285457, 285467, 318247, 293673, 318251, 301872, 285493, 285496, 301883, 342846, 293702, 318279, 244569, 301919, 293729, 351078, 310132, 228214, 269179, 228232, 416649, 236427, 252812, 293780, 310166, 310177, 293801, 326571, 326580, 326586, 359365, 211913, 326602, 56270, 203758, 293894, 293911, 326684, 113710, 318515, 203829, 285795, 228457, 318571, 187508, 302202, 285819, 285823, 285833, 318602, 285834, 228492, 162962, 187539, 285850, 302239, 302251, 294069, 294075, 64699, 228541, 343230, 310496, 228587, 228608, 318732, 245018, 318746, 130342, 130344, 130347, 286012, 294210, 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, 245249, 228868, 302602, 294413, 359949, 302613, 302620, 130622, 310853, 286281, 196184, 212574, 204386, 204394, 138862, 310896, 294517, 286344, 286351, 188049, 229011, 229021, 302751, 245413, 212649, 286387, 286392, 302778, 286400, 212684, 302798, 286419, 278232, 294621, 278237, 278241, 294629, 286457, 286463, 319232, 278292, 278294, 294699, 286507, 319289, 237397, 188250, 327556, 188293, 311183, 294806, 294808, 319393, 294820, 294824, 343993, 98240, 294849, 24531, 294887, 278507, 311277, 327666, 278515 ]
1c5303a12f8183a838a59a64be796d845d8dbd7c
3fbf2b669bf7783ee0aea624ad6ffe682585ca60
/TagListView/CloseButton.swift
33da1b57366d819810ef0e2a688417008106b0ba
[ "MIT" ]
permissive
seirifat/TagListView
361f292a5ee55bb7f6a862828d602eaf99d63c29
13c5ff8605fd8855fcc51e4ab7173b87740be929
refs/heads/master
2021-01-12T06:44:14.433217
2016-12-27T05:36:15
2016-12-27T05:36:15
77,426,184
0
0
null
2016-12-27T04:41:23
2016-12-27T04:41:23
null
UTF-8
Swift
false
false
1,407
swift
// // CloseButton.swift // TagListViewDemo // // Created by Benjamin Wu on 2/11/16. // Copyright © 2016 Ela. All rights reserved. // import UIKit internal class CloseButton: UIButton { var iconSize: CGFloat = 10 var lineWidth: CGFloat = 1 var lineColor: UIColor = UIColor.white.withAlphaComponent(0.54) var enableButton: Bool = false { didSet { if enableButton { self.setImage(UIImage(named:"icTagRemove"), for: UIControlState.normal) } else { self.setImage(UIImage(named:"icTagAdd"), for: UIControlState.normal) } } } weak var tagView: TagView? override func draw(_ rect: CGRect) { let path = UIBezierPath() path.lineWidth = lineWidth path.lineCapStyle = .round let iconFrame = CGRect( x: (rect.width - iconSize) / 2.0, y: (rect.height - iconSize) / 2.0, width: iconSize, height: iconSize ) path.move(to: iconFrame.origin) path.addLine(to: CGPoint(x: iconFrame.maxX, y: iconFrame.maxY)) path.move(to: CGPoint(x: iconFrame.maxX, y: iconFrame.minY)) path.addLine(to: CGPoint(x: iconFrame.minX, y: iconFrame.maxY)) lineColor.setStroke() path.stroke() self.setImage(UIImage(named:"icTagAdd"), for: UIControlState.normal) } }
[ 179360, 305625 ]
c71d31fb3bde9c700f1f7ea0c7f341a667ed8870
794b960b2db68c9f4e3e17fcc68e3627b51036fd
/Example Project/AGMatchMaker/AppDelegate.swift
76e1c723ce4e48bc38b7f629674994ca6884f912
[]
no_license
agibson73/AGMatchMaker
cb575b22e71cff5422283337cf054b75488b39c5
8acc9f7671ffbd5b446dd8d0c7f4b8207cc61129
refs/heads/master
2021-01-15T16:56:32.006306
2017-01-15T03:28:19
2017-01-15T03:28:21
78,937,083
6
0
null
null
null
null
UTF-8
Swift
false
false
1,450
swift
//// AGMatchMaker // The MIT License (MIT) // // Copyright © 2017 Alex Gibson. // // Permission is hereby granted, free of charge, to any person obtaining a copy // of this software and associated documentation files (the "Software"), to deal // in the Software without restriction, including without limitation the rights // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // copies of the Software, and to permit persons to whom the Software is // furnished to do so, subject to the following conditions: // // The above copyright notice and this permission notice shall be included in // all copies or substantial portions of the Software. // // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN // THE SOFTWARE. import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { return true } }
[ 194560, 395267, 196612, 395271, 395274, 108279, 395277, 395278, 395279, 395280, 395281, 395282, 395283, 407569, 108281, 395286, 395287, 23614, 395289, 395290, 196636, 407580, 196638, 395295, 395296, 196641, 98341, 61478, 98344, 98345, 98346, 98347, 223075, 98349, 23618, 223076, 23619, 329778, 59445, 23620, 174135, 354359, 124987, 174139, 354364, 229438, 124988, 229440, 229441, 395328, 354369, 174148, 327749, 229444, 395332, 174152, 327751, 395333, 395334, 229449, 378951, 174159, 229456, 112721, 174161, 112723, 106580, 142079, 106582, 106584, 106585, 106586, 106587, 112730, 174171, 354400, 284773, 208027, 284783, 237682, 213321, 125048, 229504, 125057, 125062, 125064, 125065, 235658, 125066, 319626, 285781, 229524, 303255, 303256, 229532, 125086, 125087, 215205, 129190, 215206, 215208, 215211, 215212, 215215, 208041, 241846, 241852, 191, 241856, 241859, 241862, 317638, 241864, 317640, 241866, 241868, 97327, 241870, 262353, 241873, 262357, 241877, 262359, 97329, 106713, 241878, 106715, 241879, 106714, 262366, 106719, 35040, 106720, 224, 106725, 241894, 227183, 241897, 241901, 241903, 241904, 106737, 176369, 176370, 241907, 106741, 260342, 241908, 241910, 176373, 106746, 106742, 241916, 141565, 106750, 141566, 176378, 141569, 241923, 141572, 141576, 241928, 141578, 141577, 241930, 241931, 241934, 141583, 241936, 241937, 141586, 241955, 141588, 12565, 227604, 141591, 141592, 227608, 227610, 141595, 141596, 141597, 141598, 241944, 141600, 141601, 12569, 141603, 141599, 241952, 241957, 141606, 141607, 141608, 289062, 241962, 289068, 289067, 141612, 289071, 12592, 141609, 289074, 241963, 97347, 289078, 141622, 141627, 141628, 141629, 227607, 215356, 141632, 141634, 241989, 227609, 141639, 141640, 141641, 141642, 241994, 213319, 141643, 213320, 241999, 241992, 141649, 241996, 241998, 242002, 141651, 141654, 141655, 242006, 215384, 282967, 227613, 141660, 168285, 227612, 141663, 141664, 227614, 282969, 215396, 141670, 172391, 141674, 141677, 141679, 375153, 287090, 375155, 334196, 141681, 190836, 375154, 190840, 190841, 190842, 375163, 375164, 430456, 375166, 190843, 190844, 430458, 375168, 375171, 141700, 141701, 375173, 141702, 141696, 375172, 430471, 141707, 430476, 375181, 430475, 141711, 141708, 430483, 217492, 217494, 197016, 197018, 197019, 197021, 295330, 295331, 197029, 430502, 168359, 213421, 303550, 160205, 160208, 381398, 319962, 293990, 319972, 305637, 305638, 408040, 272872, 223741, 192234, 125456, 61971, 191006, 191007, 272931, 57893, 272934, 328232, 57896, 420394, 57899, 57900, 57901, 295467, 57903, 57904, 57905, 57906, 272944, 158257, 336445, 336446, 336450, 336451, 336454, 336455, 336457, 336459, 336460, 55886, 336464, 336465, 336466, 336467, 55890, 336469, 336470, 336471, 336472, 336473, 336474, 437297, 55901, 336478, 336479, 336480, 336481, 336482, 336483, 54666, 111202, 272994, 336488, 336489, 273003, 296694, 273021, 273023, 297615, 297620, 437310, 297625, 297636, 437314, 135854, 135860, 135861, 242361, 299713, 244419, 244421, 66247, 244427, 248524, 127693, 244430, 66257, 66261, 127702, 127703, 62174, 334562, 334563, 334564, 127716, 62183, 127727, 172784, 127729, 244469, 244470, 318199, 318200, 142073, 164601, 316155, 111356, 142076, 66302, 142078, 244480, 142081, 334590, 142083, 318207, 142085, 334591, 142087, 334596, 142089, 334601, 334600, 318220, 318218, 334603, 318223, 334602, 142097, 334606, 334607, 142093, 334604, 142095, 318231, 318228, 318233, 318234, 318235, 318236, 318237, 318239, 318240, 318241, 187173, 318246, 187174, 187176, 187175, 187177, 187179, 187180, 187178, 314167, 316216, 396088, 396089, 396091, 396092, 314168, 396094, 396095, 148287, 316224, 396098, 314179, 279366, 279367, 396104, 279369, 396110, 396112, 299858, 396115, 396114, 396117, 396118, 396119, 396120, 396121, 396122, 396123, 241961, 396125, 396126, 396127, 396128, 396129, 437349, 396134, 299880, 396137, 299884, 162668, 187248, 396147, 396151, 248696, 396153, 187258, 187259, 187260, 229443, 322430, 297858, 60304, 201619, 60308, 60312, 60317, 60318, 60319, 60322, 60323, 60324, 60327, 60328, 312481, 185258, 185259, 60331, 23469, 185262, 23470, 23472, 23473, 60337, 23474, 23475, 23476, 185267, 23479, 23471, 23481, 287674, 23483, 23487, 185280, 242796, 23490, 281539, 23492, 23493, 23494, 281538, 185286, 23501, 23502, 228306, 23508, 312407, 23515, 259036, 23517, 23519, 40089, 23523, 23531, 203755, 433131, 23533, 341058, 152560, 242675, 324596, 312413, 23552, 171008, 23554, 23555, 437252, 23557, 40096, 23559, 23560, 23561, 23562, 437258, 437256, 437262, 437266, 437267, 23572, 23573, 23574, 23575, 23576, 437273, 23578, 437269, 23580, 437277, 23582, 23581, 23584, 437281, 23585, 40101, 23590, 23591, 23592, 312423, 23594, 23595, 23596, 23597, 23598, 3119, 189488, 23599, 187442, 189490, 187444, 187445, 189492, 187447, 144440, 189493, 437305, 144443, 189491, 23607, 341054, 341055, 144441, 97339, 23612, 341059, 144444, 23616, 144445, 341063, 341057, 341060, 341066, 222278, 341062, 341068, 23621, 437326, 185428, 40110, 23636, 437333, 203862, 285783, 23640, 285784, 437338, 285787, 312412, 437340, 285782, 285785, 115805, 312417, 115806, 115807, 293982, 115809, 115810, 185446, 437345, 437353, 115817, 185451, 437356, 242794, 185454, 115819, 115820, 185452, 115823, 185455, 437364, 115825, 115827, 242803, 115829, 437369, 242807, 437371, 189508, 294012, 142463, 294015, 294016, 205959, 437384, 213935, 437390, 248975, 437392, 437396, 189590, 40088, 312473, 189594, 208026, 312476, 40092, 189598, 40095, 228512, 312478, 40098, 312479, 437412, 208029, 208033, 437415, 437416, 27810, 228513, 189607, 189609, 189610, 189612, 437423, 312489, 312493, 437426, 312499, 189617, 312501, 312502, 437431, 312497, 437433, 189619, 312498, 189621, 189623, 189626, 322751, 437440, 312504, 437436, 38081, 437443, 437445, 437446, 292041, 292042, 437451, 38092, 437453, 128874, 181455, 292049, 437458, 128875, 152789, 437424, 203990, 203991, 203993, 185457, 152795, 204000, 276232, 204003, 281832, 339176, 437428, 339177, 152821, 208117, 152825, 294138, 294137, 321829, 279818, 206094, 279823, 206097, 206098, 294162, 206102, 206104, 206107, 206108, 206109, 181533, 425247, 294181, 27943, 181544, 181545, 27945, 181547, 27948, 294183, 312474, 27944, 40105, 181553, 181559, 173368, 206137, 206138, 290105, 375165, 151285, 245058, 173379, 312480, 152906, 152907, 152908, 152909, 290126, 152910, 312482, 290123, 290125, 290127, 290130, 312483, 290131, 290135, 290136, 245081, 290137, 290139, 378206, 378208, 64865, 222562, 171363, 222563, 222566, 228717, 222573, 228721, 222577, 222579, 171377, 222581, 222582, 222587, 222590, 222591, 54655, 173441, 222594, 222596, 222597, 177543, 222599, 363913, 222601, 222603, 222604, 54669, 148878, 222605, 222606, 222607, 279954, 54673, 40109, 54678, 54680, 173465, 56730, 279969, 54692, 152998, 54698, 54700, 54701, 54703, 153009, 19893, 298431, 189495, 212420, 370118, 153037, 279944, 153049, 153051, 189496, 157151, 222689, 222692, 222693, 157157, 157158, 157159, 112111, 112115, 112117, 65016, 112120, 40450, 40451, 112131, 40453, 40454, 280068, 206344, 40455, 40458, 40459, 40460, 40463, 112144, 112145, 40466, 355859, 40469, 40471, 40475, 40477, 40479, 40482, 362020, 362022, 116267, 282156, 189595, 173614, 173615, 173617, 173618, 173621, 173622, 34359, 173623, 34362, 316993, 173634, 173635, 316995, 316997, 263751, 173640, 173641, 173639, 263755, 312427, 106082, 106085, 319081, 314987, 319085, 189608, 319088, 319089, 189502, 300660, 300661, 300662, 52855, 300663, 319094, 319098, 319101, 319103, 262475, 175760, 52882, 394899, 52884, 52886, 52887, 394905, 394908, 394910, 52896, 144435, 394912, 52897, 52899, 52900, 339622, 144437, 147115, 147116, 394925, 144438, 394930, 151218, 394935, 321210, 292544, 144442, 141593, 108230, 108234, 141594, 296682, 341052, 108240, 296684, 108245, 212694, 296660, 222600, 296685, 34516, 34522, 144447, 34531, 192230, 296679, 192231, 34537, 192232, 296681, 34538, 34540, 34541, 216812, 216814, 155377, 216815, 296691, 216816, 216818, 216819, 296687, 216822, 296688, 296692, 216826, 296700, 296698, 216828, 216829, 296699, 216832, 216833, 216834, 296703, 216836, 216837, 216838, 296707, 296708, 296710, 296712, 276236, 296713, 313101, 311055, 313104, 313099, 313102, 313108, 313111, 313112, 149274, 149275, 159518, 149280, 159523, 296701, 227116, 227119, 296704, 321342, 210755, 210756, 210757, 210758, 296706, 321353, 120655, 218960, 120656, 120657, 218959, 218963, 218964, 218962, 223064, 223065, 180058, 180059, 229209, 223069, 229213, 169824, 229217, 169826, 292705, 292708, 237413, 292709, 169830, 237416, 223081, 128873, 227179, 227180, 169835, 128876, 169837, 128878, 223086, 223087, 128881, 128882, 128883, 128884, 169843, 116600, 227188, 141181, 327550, 169856, 108419, 141189, 108425, 141198, 108431, 108432, 116622, 180070, 141202, 108436, 141208, 169881, 219033, 142450, 108448, 219040, 141219, 219043, 219044, 219045, 141223, 141220, 141228, 141229, 108460, 108462, 229294, 229295, 437402, 141235, 141246, 319426, 173394, 141253, 228510, 319432, 290767, 141264, 141646, 23600, 59348, 59349, 23601, 141272, 141273, 23602, 23603, 437404, 40931, 141284, 40932, 23604, 23608, 40934, 141650, 141290, 40940, 40941, 141293, 141295, 174063, 231406, 174066, 174067, 141292, 141297, 237559, 40952, 174074, 395259, 194558, 194559 ]
f1e312fbf34f589940ec7c267c04664cb48ef824
f73bd9a4cce5ab64eb08240b1d96b7bf6924b0b6
/GoogleBooksApp/GoogleBooksUI/UserInterfaceModules/BookDetails/View/BookDetailsView.swift
48f90e5c5e7c92a637566da0398870dc8e5489ab
[ "Apache-2.0" ]
permissive
sag333ar/GoogleBooksAPIResearch
70b031e452bcfdb4715d0c17ddebcf52f602dbb1
df8c4e15eeb89f7de5322ddddb6e4c1af327fde0
refs/heads/master
2021-01-23T22:30:00.266417
2017-09-09T17:02:01
2017-09-09T17:02:01
102,934,997
0
0
null
null
null
null
UTF-8
Swift
false
false
1,661
swift
// // BooksDetailView.swift // GoogleBooksApp // // Created by Kothari, Sagar on 9/9/17. // Copyright © 2017 Sagar Kothari. All rights reserved. // import UIKit class BookDetailsView: UIViewController { // MARK:- Properties @IBOutlet weak var bookThumbImageView: UIImageView! @IBOutlet weak var bookTitleLabel: UILabel! @IBOutlet weak var bookAuthorLabel: UILabel! @IBOutlet weak var bookSubtitleLabel: UILabel! @IBOutlet weak var stackView: UIStackView! @IBOutlet weak var scrollView: UIScrollView! @IBOutlet weak var contentView: UIView! var book: Book? var presenter: BookDetailsPresenter! // MARK:- Common functions override func viewDidLoad() { super.viewDidLoad() setupVIPER() loadUIData() } override func didReceiveMemoryWarning() { super.didReceiveMemoryWarning() } } // MARK:- VIPER Setup extension BookDetailsView { func setupVIPER() { if presenter == nil { presenter = BookDetailsPresenter() let interactor = BookDetailsInteractor() let wireframe = BookDetailsWireframe() presenter.interactor = interactor presenter.wireframe = wireframe presenter.view = self wireframe.view = self interactor.presenter = presenter } } } // MARK:- IBActions extension BookDetailsView { @IBAction func btnInfoTapped(_ sender: Any?) { if let urlString = book?.volumeInfo?.previewLink { presenter.showInfo(urlString) } else { } } @IBAction func btnWebReadTapped(_ sender: Any?) { if let urlString = book?.accessInfo?.webReaderLink { presenter.showWebReader(urlString) } else { } } }
[ -1 ]
062b84fda72321316192232341b9291b6c3d8474
f603821834940051d01f6093739efcbd34f5cce3
/Sprint 7/Concurrency II (7.3)/HungryDevelopers.playground/Contents.swift
eb1074a13e5f7f2eaf32cda7e70d5d3c84aaf084
[]
no_license
IvanCaldwell/ios-projects
5cfd80ac221401753547eda1fbc5c54c2d8e6eda
639dad8754c4220505956a2e16d10abbf33895d7
refs/heads/master
2020-04-15T13:24:19.295135
2019-02-28T23:22:26
2019-02-28T23:22:26
164,715,591
0
0
null
2019-01-08T19:10:43
2019-01-08T19:10:43
null
UTF-8
Swift
false
false
4,359
swift
import Cocoa import Foundation // Create a class called Spoon. It should have two methods, pickUp() and putDown(). class Spoon { // You can implement this with a private lock property. private let lock = NSLock() let index: Int init(index: Int) { self.index = index } func pickUp(){ lock.lock() } func putDown(){ lock.unlock() } } // Create a class called Developer. class Developer { var identifier: String // Each Developer should have a leftSpoon property and a rightSpoon property var leftSpoon: Spoon var rightSpoon: Spoon init(leftSpoon: Spoon, rightSpoon: Spoon, identifier: String){ self.leftSpoon = leftSpoon self.rightSpoon = rightSpoon self.identifier = identifier } // It should also have think() , eat() , and run() methods. // think() should pick up both spoons before returning. func think(){ if leftSpoon.index < rightSpoon.index { print("\(self.identifier) is thinking.") leftSpoon.pickUp() print("\(self.identifier) picked up right spoon.") rightSpoon.pickUp() print("\(self.identifier) picked up left spoon.") } else { rightSpoon.pickUp() print("\(self.identifier) picked up right spoon.") leftSpoon.pickUp() print("\(self.identifier) picked up left spoon.") } } // eat() should pause for a random amount of time before putting both // spoons down. (Hint: use usleep() to pause for a given number of microseconds). func eat() { let startTime = Date() usleep(UInt32.random(in: 100_000_0 ... 2_000_000)) let endTime = Date() // usleep(useconds_t(Int.random(in: 1 ... 1000))) print("\(self.identifier) is eating.") let elapsedTime = endTime.timeIntervalSinceReferenceDate - startTime.timeIntervalSinceReferenceDate print("\(self.identifier) ate for: \(elapsedTime)") leftSpoon.putDown() print("\(self.identifier) put down right spoon.") rightSpoon.putDown() print("\(self.identifier) put down left spoon.") } // Developer.run() should call think() then // eat() over and over again forever. func run() { while true { think() eat() } } } // Create 5 Spoon s and 5 Developer s giving each developer a left and right spoon. // Note that developers will of course share spoons. Ever developer's right spoon is // the next developer's left spoon. var developers: [Developer] = [] var spoons: [Spoon] = [] //func createDeveloper(numberOfDevs: Int) { // for index in 1 ... numberOfDevs { // let developer = Developer() // let spoon = Spoon(index: index) // developers.append(developer) // spoons.append(spoon) // developers[index - 1].leftSpoon = spoons[index - 1] // developers[index - 1].identifier += "\(index)" // } // // // For the right spoon // for index in 1 ... numberOfDevs { // if index == developers.count { // developers[index - 1].rightSpoon = spoons[0] // } else { // developers[index - 1].rightSpoon = spoons[index] // } // } //} // This function creates the Spoons and Developers... func createDeveloper(numberOfDevs: Int) { for index in 1 ... numberOfDevs { let spoon = Spoon(index: index) spoons.append(spoon) } for index in 1 ... numberOfDevs { if index == numberOfDevs { let developer = Developer(leftSpoon: spoons[index - 1], rightSpoon: spoons[0], identifier: "Developer\(index)") developers.append(developer) } else { let developer = Developer(leftSpoon: spoons[index - 1], rightSpoon: spoons[index], identifier: "Developer\(index)") developers.append(developer) } } } createDeveloper(numberOfDevs: 5) for developer in developers { print (developer.identifier) } //print(developers[3].identifier) DispatchQueue.concurrentPerform(iterations: 5) { developers[$0].run() }
[ -1 ]
bd629145c5d337a6e7ca0d67ed605f5c3003d809
460f6425a3957f51bad59d8159939074aa319b44
/CartDome-Swift/CartDome-Swift/AppDelegate.swift
652ab504bb8a82afb7abad337a4ee3716ddbf58a
[]
no_license
LQi2009/CartDemo_Swift
4cd5bc7c1dc1d42129d1b669266844f69a215e96
2c21b06f062d697f24f88ef5eb1bfb254516a437
refs/heads/master
2021-06-14T06:47:38.733894
2017-02-06T01:48:16
2017-02-06T01:48:16
62,103,573
5
0
null
null
null
null
UTF-8
Swift
false
false
2,177
swift
// // AppDelegate.swift // CartDome-Swift // // Created by Artron_LQQ on 2016/10/24. // Copyright © 2016年 Artup. 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, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 229405, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 311349, 286774, 286776, 319544, 286778, 204856, 229432, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 303241, 131209, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 295110, 286922, 286924, 286926, 319694, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 286962, 303347, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 287032, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 320007, 287238, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 213575, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189039, 172660, 287349, 189040, 189044, 287355, 287360, 295553, 172675, 295557, 311942, 303751, 287365, 352905, 311946, 279178, 287371, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 287390, 303773, 172705, 287394, 172707, 303780, 164509, 287398, 205479, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 172737, 279231, 287427, 312005, 312006, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303981, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 304007, 213895, 304009, 304011, 230284, 304013, 295822, 279438, 189325, 189329, 295825, 304019, 189331, 58262, 304023, 304027, 279452, 234648, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 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, 132165, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 279661, 205934, 164973, 312432, 279669, 337018, 189562, 279679, 304258, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 230592, 312518, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 320748, 279788, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 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, 312712, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 288160, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 312755, 296373, 312759, 337335, 288185, 279991, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 370130, 288212, 222676, 288214, 148946, 239064, 329177, 288217, 280027, 288220, 288218, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 320998, 288234, 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, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 313044, 280276, 321239, 280283, 313052, 18140, 288478, 313055, 321252, 313066, 288494, 280302, 280304, 313073, 321266, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 337732, 304968, 280393, 280402, 173907, 313171, 313176, 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, 288909, 141455, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 157940, 280819, 280823, 280825, 280827, 280830, 280831, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 305464, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 215387, 354653, 313700, 313705, 280937, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289218, 289221, 289227, 436684, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 330244, 281095, 223752, 150025, 338440, 240132, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 182929, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 338823, 322440, 314249, 240519, 183184, 142226, 289687, 240535, 224151, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 420829, 281567, 289762, 322534, 297961, 183277, 281581, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 380226, 298306, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 298365, 290174, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 306694, 192008, 323084, 257550, 290321, 282130, 323090, 290325, 282133, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 28219, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282255, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 196133, 282295, 323260, 282300, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 298822, 315211, 282446, 307027, 315221, 323414, 315223, 241496, 241498, 307035, 307040, 110433, 241509, 110438, 298860, 110445, 282478, 315249, 110450, 315251, 282481, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 298898, 282514, 241556, 298901, 44948, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 282547, 241588, 290739, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 307211, 282639, 290835, 282645, 241693, 282654, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 307290, 217179, 315482, 192605, 315483, 233567, 299105, 200801, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 315524, 307338, 233613, 241813, 307352, 299164, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 184503, 176311, 299191, 307386, 258235, 307388, 307385, 307390, 176316, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 184579, 282893, 323854, 291089, 282906, 291104, 233766, 176435, 307508, 315701, 332086, 307510, 307512, 168245, 307515, 307518, 282942, 282947, 323917, 110926, 282957, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 283033, 242075, 291226, 194654, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 283062, 291254, 127417, 291260, 283069, 127421, 127424, 299457, 127429, 127434, 315856, 176592, 315860, 176597, 283095, 127447, 299481, 176605, 242143, 127457, 291299, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 283142, 127494, 127497, 233994, 135689, 127500, 291341, 233998, 127506, 234003, 127509, 234006, 127511, 152087, 242202, 234010, 135707, 135710, 242206, 242208, 291361, 242220, 291378, 152118, 234038, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 135808, 291456, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 299740, 242396, 201444, 299750, 283368, 234219, 283372, 185074, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 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, 234364, 291711, 234368, 291714, 234370, 291716, 234373, 316294, 201603, 226182, 308105, 234375, 324490, 226185, 234379, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 324508, 234396, 291742, 226200, 234398, 234401, 291747, 291748, 234405, 291750, 234407, 324520, 324518, 324522, 234410, 291756, 291754, 226220, 324527, 291760, 234417, 201650, 324531, 234414, 234422, 226230, 324536, 275384, 234428, 291773, 242623, 324544, 234431, 234434, 324546, 324548, 234437, 226245, 234439, 226239, 234443, 291788, 234446, 275406, 193486, 234449, 316370, 193488, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 316416, 234496, 308226, 234501, 308231, 234504, 234507, 234510, 234515, 300054, 316439, 234520, 234519, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 144430, 234543, 234546, 275508, 300085, 234549, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 160835, 234563, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 242777, 234585, 275545, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 226453, 234647, 275606, 275608, 234650, 308379, 324757, 300189, 324766, 119967, 234653, 324768, 234657, 283805, 242852, 300197, 234661, 283813, 234664, 275626, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 300229, 308420, 308422, 283844, 226500, 300234, 283850, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 161027, 300292, 300294, 275719, 234760, 177419, 300299, 242957, 300301, 283917, 177424, 349451, 275725, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 316768, 292192, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 144796, 300448, 144807, 144810, 144812, 144814, 227426, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 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, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 292414, 284223, 284226, 284228, 292421, 226886, 284231, 128584, 243268, 284234, 366155, 317004, 276043, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 292433, 284247, 317015, 235097, 243290, 276053, 284249, 284251, 300638, 284253, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 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, 358080, 276160, 284354, 358083, 284358, 276166, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 276187, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 276206, 358128, 284399, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 292681, 153417, 358224, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 317279, 284511, 227175, 292715, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 317332, 358292, 284564, 399252, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 284585, 276395, 292776, 292784, 276402, 358326, 161718, 358330, 276410, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276452, 292839, 276455, 350186, 292843, 276460, 292845, 276464, 178161, 227314, 325624, 350200, 276472, 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, 309354, 301163, 350313, 350316, 227430, 301167, 276583, 350321, 276590, 284786, 276595, 350325, 252022, 227440, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 284837, 153765, 350375, 350379, 350381, 350383, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 309455, 276689, 309462, 301272, 276699, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 243948, 194801, 309491, 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, 318132, 342707, 154292, 277173, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 113378, 203491, 228069, 277223, 342760, 56041, 285417, 56043, 56045, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 310080, 293696, 277317, 277322, 293706, 277329, 162643, 310100, 301911, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 15224, 277368, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 276579, 293811, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 318442, 228330, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 285690, 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, 204026, 228606, 204031, 64768, 310531, 285958, 138505, 228617, 318742, 204067, 277798, 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, 327046, 277892, 253320, 310665, 318858, 277894, 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, 245191, 64966, 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, 310780, 40448, 228864, 286214, 302603, 65038, 302614, 302617, 286233, 302621, 286240, 146977, 187936, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 278057, 310831, 245288, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 327240, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 147032, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286312, 40554, 286313, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 179870, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 286420, 278227, 229076, 286425, 319194, 278235, 278238, 229086, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 319280, 278320, 319290, 229192, 302925, 188247, 280021, 188252, 237409, 229233, 294776, 360317, 294785, 327554, 360322, 40840, 40851, 294803, 188312, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 188340, 40886, 319419, 294844, 294847, 237508, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 278519, 237562 ]
cdbbf9745ac4d053ff126e0cd85b216bf65c2eae
0a9eda8454e22b3ecb90e68d5a177c283f9d0da3
/guide-for-android-summitUITests/guide_for_android_summitUITests.swift
6545e1c3466e47b6e009dc561c71f4e8ef01607a
[]
no_license
caryz/androidsummit2017
d26732735a6916bfedfeb300016f52062e033496
ea7416f0af9db2c227ac2d5ddc028163cf52afda
refs/heads/master
2021-01-01T06:18:48.476129
2017-08-25T19:01:07
2017-08-25T19:01:07
97,403,575
0
0
null
null
null
null
UTF-8
Swift
false
false
1,287
swift
// // guide_for_android_summitUITests.swift // guide-for-android-summitUITests // // Created by Cary Zhou on 7/22/17. // Copyright © 2017 caryz. All rights reserved. // import XCTest class guide_for_android_summitUITests: 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, 292901, 354342, 223269, 229414, 102441, 354346, 278571, 315433, 325675, 102446, 282671, 124974, 229425, 243763, 241717, 180279, 229431, 215095, 319543, 288829, 325695, 286787, 288835, 237638, 313415, 239689, 233548, 311373, 315468, 278607, 333902, 196687, 311377, 354386, 280660, 315477, 223317, 329812, 200795, 323678, 315488, 315489, 280674, 45154, 280676, 321632, 313446, 227432, 215144, 307306, 194667, 233578, 278637, 288878, 319599, 278642, 284789, 284790, 131190, 288890, 215165, 131199, 227459, 194692, 280708, 235661, 241809, 323730, 278676, 311447, 153752, 327834, 284827, 278684, 329884, 299166, 278690, 311459, 233635, 215204, 284840, 299176, 278698, 284843, 184489, 278703, 184498, 278707, 125108, 278713, 223418, 258233, 280761, 299197, 180409, 280767, 295099, 227517, 299202, 139459, 309443, 176325, 131270, 301255, 227525, 280779, 282832, 321744, 227536, 301270, 229591, 301271, 280792, 311520, 325857, 334049, 182503, 319719, 295147, 317676, 286957, 125166, 125170, 313595, 125180, 184574, 125184, 309504, 125192, 125197, 194832, 227601, 325904, 125200, 319764, 278805, 125204, 334104, 282908, 311582, 299294, 282912, 278817, 125215, 211239, 282920, 125225, 317738, 321839, 315698, 98611, 332084, 125236, 307514, 278843, 282938, 168251, 319812, 280903, 227655, 323914, 201037, 282959, 229716, 289109, 168280, 379224, 323934, 391521, 239973, 381286, 285031, 416103, 313703, 280938, 242027, 242028, 321901, 278895, 354671, 287089, 199030, 227702, 315768, 315769, 291194, 223611, 248188, 291193, 313726, 311679, 291200, 211327, 240003, 158087, 313736, 227721, 242059, 311692, 285074, 227730, 240020, 190870, 315798, 190872, 291225, 285083, 293275, 317851, 242079, 227743, 289185, 293281, 285089, 305572, 156069, 300490, 283039, 301482, 311723, 289195, 377265, 338359, 299449, 311739, 319931, 293309, 278974, 311744, 317889, 291266, 278979, 326083, 278988, 326093, 289229, 281039, 278992, 283089, 283088, 281038, 279000, 176602, 242138, 285152, 279009, 369121, 291297, 195044, 188899, 279014, 242150, 319976, 279017, 311787, 281071, 319986, 236020, 279030, 311800, 317949, 283138, 279042, 233987, 287237, 377352, 322057, 309770, 342537, 279053, 283154, 303634, 303635, 279061, 182802, 188954, 279066, 322077, 291359, 227881, 293420, 289328, 283185, 236080, 279092, 234037, 23093, 244279, 244280, 338491, 301635, 309831, 55880, 377419, 281165, 303693, 281170, 326229, 309847, 189016, 115287, 332379, 111197, 295518, 287327, 242274, 244326, 277095, 279150, 281200, 287345, 287348, 301688, 244345, 189054, 287359, 297600, 303743, 291455, 301702, 164487, 311944, 279176, 316044, 311948, 311950, 184974, 316048, 311953, 316050, 287379, 326288, 227991, 295575, 289435, 303772, 205469, 221853, 285348, 314020, 279207, 295591, 295598, 248494, 285360, 279215, 299698, 285362, 287412, 166581, 293552, 154295, 318127, 164532, 303802, 314043, 287418, 66243, 291529, 287434, 225996, 363212, 287438, 242385, 279249, 303826, 279253, 158424, 299737, 230105, 322269, 342757, 295653, 289511, 230120, 330473, 234216, 285419, 330476, 289517, 312046, 170735, 215790, 125683, 230133, 199415, 234233, 279293, 205566, 322302, 289534, 299777, 291584, 228099, 285443, 291591, 295688, 322312, 285450, 264971, 312076, 326413, 322320, 285457, 295698, 166677, 291605, 283418, 285467, 326428, 221980, 281378, 234276, 283431, 262952, 262953, 279337, 293673, 289580, 262957, 318247, 164655, 301872, 242481, 234290, 303921, 318251, 285493, 230198, 328495, 285496, 301883, 201534, 281407, 289599, 295745, 342846, 222017, 293702, 318279, 283466, 281426, 279379, 244569, 201562, 234330, 281434, 322396, 230238, 230239, 301919, 279393, 293729, 275294, 349025, 303973, 279398, 281444, 351078, 177002, 308075, 242540, 310132, 295797, 201590, 207735, 228214, 295799, 279418, 177018, 269179, 314240, 291713, 158594, 240517, 287623, 228232, 299912, 279434, 320394, 416649, 316299, 252812, 308111, 234382, 308113, 293780, 310166, 289691, 209820, 240543, 283551, 310177, 289699, 189349, 289704, 279465, 293801, 326571, 304050, 177074, 326580, 289720, 326586, 289723, 189373, 213956, 281541, 19398, 345030, 213961, 279499, 56270, 191445, 183254, 304086, 142309, 234469, 314343, 304104, 324587, 183276, 289773, 320492, 203758, 287730, 240631, 312313, 312317, 328701, 328705, 234499, 293894, 320520, 230411, 320526, 330766, 234513, 238611, 140311, 293911, 316441, 197658, 238617, 132140, 113710, 281647, 189487, 322609, 312372, 203829, 238646, 300087, 238650, 320571, 21567, 308288, 336962, 160834, 314437, 349254, 238663, 300109, 207954, 234578, 296023, 205911, 314458, 156763, 234588, 281698, 281699, 285795, 214116, 230500, 322664, 228457, 279659, 318571, 234606, 300145, 238706, 279666, 300147, 312435, 187508, 230514, 302202, 285819, 314493, 285823, 150656, 234626, 279686, 222344, 285833, 285834, 234635, 318602, 228492, 337037, 177297, 162962, 187539, 326803, 308375, 324761, 285850, 296091, 119965, 234655, 300192, 339106, 306339, 234662, 300200, 249003, 238764, 302251, 208044, 322733, 3243, 294069, 300215, 294075, 64699, 228541, 283841, 283846, 312519, 279752, 283849, 148687, 290001, 189651, 316628, 279766, 189656, 295769, 279775, 304352, 298209, 304353, 310496, 279780, 228587, 279789, 290030, 302319, 251124, 316661, 283894, 234741, 208123, 292092, 279803, 228608, 320769, 234756, 322826, 242955, 312588, 177420, 318732, 126229, 245018, 320795, 318746, 320802, 239610, 130342, 304422, 130344, 292145, 298290, 312628, 300342, 159033, 333114, 222523, 333115, 286012, 279872, 181568, 279874, 300355, 193858, 216387, 300354, 372039, 294210, 304457, 230730, 296269, 222542, 234830, 238928, 224591, 296274, 314708, 318804, 283990, 314711, 357720, 300378, 300379, 316764, 294236, 314721, 292194, 230757, 281958, 134504, 306541, 284015, 296304, 327023, 314740, 230772, 327030, 314742, 310650, 224637, 306558, 290176, 243073, 179586, 314752, 306561, 294278, 314759, 296328, 296330, 298378, 368012, 304523, 112019, 306580, 314771, 234902, 224662, 282008, 314776, 318876, 282013, 290206, 148899, 314788, 298406, 282023, 314790, 245160, 333224, 279979, 279980, 241067, 314797, 286128, 279988, 173492, 286133, 284090, 310714, 228796, 302523, 54719, 302530, 292291, 228804, 310725, 306630, 415170, 300488, 280003, 370122, 310731, 306634, 234957, 302539, 310735, 339403, 329168, 222674, 327122, 280020, 329170, 312785, 280025, 310747, 239069, 144862, 286176, 187877, 320997, 310758, 280042, 280043, 191980, 329198, 337391, 300526, 282097, 308722, 296434, 306678, 40439, 288248, 191991, 286201, 300539, 288252, 312830, 290304, 245249, 228868, 292359, 218632, 302602, 230922, 323083, 294413, 304655, 329231, 323088, 282132, 302613, 230933, 282135, 316951, 374297, 302620, 222754, 306730, 245291, 312879, 230960, 288305, 239159, 290359, 323132, 235069, 157246, 288319, 130622, 288322, 280131, 349764, 310853, 282182, 124486, 288328, 194118, 292426, 333389, 224848, 224852, 230999, 128600, 306777, 196184, 235096, 290391, 239192, 212574, 345697, 204386, 300643, 300645, 282214, 312937, 204394, 224874, 243306, 312941, 206447, 310896, 294517, 288377, 290425, 325246, 333438, 235136, 280193, 282244, 239238, 282248, 286344, 323208, 179853, 286351, 188049, 229011, 239251, 280217, 323226, 179868, 229021, 302751, 282272, 198304, 282279, 298664, 212649, 298666, 317102, 286387, 300725, 337590, 286392, 300729, 302778, 306875, 280252, 280253, 282302, 323262, 286400, 321217, 296636, 280259, 321220, 282309, 333508, 323265, 239305, 280266, 306891, 296649, 212684, 302798, 9935, 241360, 282321, 313042, 286419, 241366, 280279, 278232, 282330, 18139, 280285, 278237, 294621, 282336, 278241, 321250, 294629, 153318, 333543, 181992, 337638, 12009, 282347, 288492, 282349, 323315, 67316, 34547, 286457, 284410, 288508, 200444, 282366, 286463, 319232, 288515, 280326, 282375, 323335, 284425, 300810, 116491, 282379, 280333, 284430, 216844, 300812, 161553, 124691, 284436, 278292, 116502, 118549, 278294, 282390, 325403, 321308, 321309, 282399, 241440, 282401, 325411, 315172, 186149, 241447, 333609, 286507, 294699, 284460, 280367, 300849, 282418, 280373, 282424, 280377, 321338, 319289, 282428, 280381, 345918, 413500, 241471, 280386, 280391, 153416, 315209, 325449, 342705, 280396, 159563, 307024, 317268, 237397, 307030, 18263, 241494, 188250, 284508, 300893, 307038, 237411, 284515, 276326, 282471, 296807, 292713, 282476, 292719, 296815, 313200, 325491, 313204, 333687, 317305, 124795, 317308, 339840, 315265, 280451, 327556, 188293, 243590, 282503, 315272, 243592, 305032, 315275, 67464, 325514, 184207, 311183, 124816, 282517, 294806, 214936, 294808, 337816, 239515, 124826, 214943, 298912, 319393, 333727, 294820, 219046, 333734, 284584, 294824, 298921, 313257, 292783, 126896, 200628, 300983, 343993, 288698, 98240, 294849, 214978, 280517, 280518, 214983, 282572, 282573, 153553, 231382, 329696, 323554, 292835, 6116, 190437, 292838, 294887, 317416, 313322, 278507, 329707, 311277, 296942, 124912, 278515, 325620, 313338 ]
491144945f8b819202c3578ba7586121fe2ab423
58a2995dd249b73813a4be2c16c552d7f5620bfe
/servermanagement/resource-manager/Sources/servermanagement/protocols/NodeResourceProtocol.swift
3249b9b7a8c5ccb7199d9d67bb46b7c42429d002
[ "MIT" ]
permissive
Azure/azure-libraries-for-swift
e577d83d504f872cf192c31d97d11edafc79b8be
b7321f3c719c381894e3ee96c5808dbcc97629d7
refs/heads/master
2023-05-30T20:22:09.906482
2021-02-01T09:29:10
2021-02-01T09:29:10
106,317,605
9
5
MIT
2021-02-01T09:29:11
2017-10-09T18:02:45
Swift
UTF-8
Swift
false
false
416
swift
// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. See License.txt in the project root for license information. // // Code generated by Microsoft (R) AutoRest Code Generator. import Foundation // NodeResourceProtocol is a Node Resource. public protocol NodeResourceProtocol : ResourceProtocol { var properties: NodeResourcePropertiesProtocol? { get set } }
[ -1 ]
ce3137e8c38a7efdcdc9cf1823c18ebf6c424156
8d805162a9f68c14b52082310ba210db8901b0c8
/GitTime/Sources/ViewControllers/Trend/TrendViewReactor.swift
d355c40fe0352df0bb67eb3317fdcfa4d1e4ebb8
[ "MIT" ]
permissive
liudhzhyym/GitTime
ac239b354eab741312c12e5b576469a5f10f72e3
5a31b162762a7d67bcdbf265f16fc220ce0b07e5
refs/heads/master
2023-03-15T02:43:49.741141
2021-03-27T21:23:19
2021-03-27T21:23:19
null
0
0
null
null
null
null
UTF-8
Swift
false
false
17,490
swift
// // TrendViewReactor.swift // GitTime // // Created by Kanz on 22/05/2019. // Copyright © 2019 KanzDevelop. All rights reserved. // import ReactorKit import RxCocoa import RxSwift import Moya import Kanna final class TrendViewReactor: Reactor { enum Action { case refresh case selectPeriod(PeriodTypes) // case selectLanguage(String?) case selectLanguage(Language?) case switchSegmentControl case requestTrending } enum Mutation { case setLoading(Bool) case setRefreshing(Bool) case setPeriod(PeriodTypes) // case setLanguage(String?) case setLanguage(Language?) case setTrendType(TrendTypes) case fetchRepositories([TrendRepo]) case fetchDevelopers([TrendDeveloper]) } struct State { var isLoading: Bool = false var isRefreshing: Bool = false var period: PeriodTypes var language: Language? var trendingType: TrendTypes var repositories: [TrendSectionItem] = [] var developers: [TrendSectionItem] = [] var trendSections: [TrendSection] { switch self.trendingType { case .repositories: guard !self.isRefreshing else { return [.repo([])] } // guard !self.repositories.isEmpty else { // let reactor = EmptyTableViewCellReactor(type: .trendingRepo) // return [.repo([TrendSectionItem.empty(reactor)])] // } return [.repo(self.repositories)] case .developers: guard !self.isRefreshing else { return [.developer([])] } // guard !self.developers.isEmpty else { // let reactor = EmptyTableViewCellReactor(type: .trendingDeveloper) // return [.repo([TrendSectionItem.empty(reactor)])] // } return [.developer(self.developers)] } } } let initialState: TrendViewReactor.State fileprivate let crawlerService: GitTimeCrawlerServiceType fileprivate let userdefaultsService: UserDefaultsServiceType let headerViewReactor: TrendingHeaderViewReactor init(crawlerService: GitTimeCrawlerServiceType, userdefaultsService: UserDefaultsServiceType) { self.crawlerService = crawlerService self.userdefaultsService = userdefaultsService let period: PeriodTypes = PeriodTypes(rawValue: userdefaultsService.value(forKey: UserDefaultsKey.period) ?? "") ?? PeriodTypes.daily let language: Language? = userdefaultsService.structValue(forKey: UserDefaultsKey.langauge) headerViewReactor = TrendingHeaderViewReactor(period: period, language: language) self.initialState = State(isLoading: false, isRefreshing: false, period: period, language: language, trendingType: .repositories, repositories: [], developers: []) } // MARK: Mutation func mutate(action: Action) -> Observable<Mutation> { switch action { case .refresh: guard !self.currentState.isRefreshing else { return .empty() } let startRefreshing: Observable<Mutation> = .just(.setRefreshing(true)) let endRefreshing: Observable<Mutation> = .just(.setRefreshing(false)) let requestMutation = self.requestTrending() return .concat([startRefreshing, requestMutation, endRefreshing]) case .selectPeriod(let period): GitTimeAnalytics.shared.logEvent(key: "select_period", parameters: ["period": period.periodText()]) self.userdefaultsService.set(value: period.querySting(), forKey: UserDefaultsKey.period) self.headerViewReactor.action.onNext(.selectPeriod(period)) let periodMutation: Observable<Mutation> = .just(.setPeriod(period)) let requestMutation = self.requestTrending(period: period) return .concat([periodMutation, requestMutation]) case .selectLanguage(let language): let languageName = language?.name ?? "All Language" GitTimeAnalytics.shared.logEvent(key: "select_language", parameters: ["language": languageName]) self.userdefaultsService.setStruct(value: language, forKey: UserDefaultsKey.langauge) self.headerViewReactor.action.onNext(.selectLanguage(language)) let languageMutation: Observable<Mutation> = .just(.setLanguage(language)) let requestMutation = self.requestTrending(language: language) return .concat([languageMutation, requestMutation]) case .switchSegmentControl: let trendType = self.currentState.trendingType == .repositories ? TrendTypes.developers : TrendTypes.repositories GitTimeAnalytics.shared.logEvent(key: "switch_trend", parameters: ["type": trendType.segmentTitle]) let trendMutation: Observable<Mutation> = .just(.setTrendType(trendType)) let requestMutation: Observable<Mutation> = self.requestTrending(trendType: trendType) return .concat([trendMutation, requestMutation]) case .requestTrending: let requestMutation = self.requestTrending() return requestMutation } } // MARK: Reduce func reduce(state: State, mutation: Mutation) -> State { var state = state switch mutation { case let .setLoading(isLoading): state.isLoading = isLoading case let .setRefreshing(isRefreshing): state.isRefreshing = isRefreshing case let .setPeriod(period): state.period = period case let .setLanguage(language): state.language = language case let .setTrendType(trendType): state.trendingType = trendType case let .fetchRepositories(repos): state.repositories = repos .map({ repo -> TrendingRepositoryCellReactor in return TrendingRepositoryCellReactor.init(repo: repo, period: state.period) }) .map(TrendSectionItem.trendingRepos) case let .fetchDevelopers(developers): state.developers = developers.map({ developer -> TrendingDeveloperCellReactor in return TrendingDeveloperCellReactor(developer: developer, rank: 0) }) .map(TrendSectionItem.trendingDevelopers) } return state } fileprivate func requestTrending(trendType: TrendTypes? = nil, period: PeriodTypes? = nil, language: Language? = nil) -> Observable<Mutation> { let currentTrendType = trendType ?? self.currentState.trendingType let currentPeriod = period ?? self.currentState.period let currentLanguage = language ?? self.currentState.language let currentLanguageName = currentLanguage?.type == LanguageTypes.all ? "" : currentLanguage?.name let startLoading: Observable<Mutation> = .just(.setLoading(true)) let endLoading: Observable<Mutation> = .just(.setLoading(false)) switch currentTrendType { case .repositories: /* let fetchRepositories: Observable<Mutation> = self.crawlerService.fetchTrendingRepositories(language: currentLanguageName, period: currentPeriod.querySting()) .map { list -> Mutation in return .fetchRepositories(list) }.catchErrorJustReturn(.fetchRepositories([])) */ let fetchRepositoriesRawdata: Observable<Mutation> = self.crawlerService.fetchTrendingRepositoriesRawdata(language: currentLanguageName, period: currentPeriod.querySting()) .map { response -> Mutation in let list = self.parseTredingRepositories(response: response) return .fetchRepositories(list) } return .concat([startLoading, fetchRepositoriesRawdata, endLoading]) case .developers: /* let fetchDevelopers: Observable<Mutation> = self.crawlerService.fetchTrendingDevelopers(language: currentLanguageName, period: currentPeriod.querySting()) .map { developers -> Mutation in return .fetchDevelopers(developers) }.catchErrorJustReturn(.fetchDevelopers([])) */ let fetchDevelopersRawdata: Observable<Mutation> = self.crawlerService.fetchTredingDevelopersRawdata(language: currentLanguageName, period: currentPeriod.querySting()) .map { (response) -> Mutation in let developers = self.parseTrendingDevelopers(response: response) return .fetchDevelopers(developers) } return .concat([startLoading, fetchDevelopersRawdata, endLoading]) } } private func parseTrendingDevelopers(response: Response) -> [TrendDeveloper] { var developers: [TrendDeveloper] = [] if let doc = try? HTML(html: response.data, encoding: .utf8) { for item in doc.xpath("//article[@class='Box-row d-flex']") { var trendDeveloperRepo = TrendDeveloperRepo(name: nil, url: "", description: "") var trendDeveloper = TrendDeveloper(userName: "", name: nil, url: "", profileURL: "", repo: trendDeveloperRepo) /* /html/body[@class='logged-out env-production page-responsive intent-mouse']/div[@class='application-main ']/main[@id='js-pjax-container']/div[@class='position-relative container-lg p-responsive pt-6']/div[@class='Box']/div[2]/article[@id='pa-hathach']/div[@class='mx-3']/a/img[@class='rounded avatar-user']/@src */ let name = item.xpath(".//div[@class='d-sm-flex flex-auto']/div[@class='col-sm-8 d-md-flex']/div[@class='col-md-6'][1]/h1") let username = item.xpath(".//div[@class='d-sm-flex flex-auto']/div[@class='col-sm-8 d-md-flex']/div[@class='col-md-6'][1]/p") let url = "https://github.com" let avatar = item.xpath(".//div[@class='mx-3']/a/img[@class='rounded avatar-user']/@src") let repoName = item.xpath(".//h1[@class='h4 lh-condensed']") let repoURL = item.xpath(".//h1[@class='h4 lh-condensed']/a/@href") let repoDescription = item.xpath(".//div[@class='f6 color-text-secondary mt-1']") let relativeURL = item.xpath(".//div[@class='d-sm-flex flex-auto']/div[@class='col-sm-8 d-md-flex']/div[@class='col-md-6'][1]/h1/a/@href") if let name = name.first?.text?.striped { trendDeveloper.name = name } if let relativeURL = relativeURL.first?.text?.striped { trendDeveloper.url = "\(url)\(relativeURL)" } if let userName = username.first?.text?.striped { trendDeveloper.userName = userName // trendDeveloper.url = "\(url)\(userName)" } if let profileURL = avatar.first?.text?.striped { trendDeveloper.profileURL = profileURL } if let repoName = repoName.first?.text?.striped { trendDeveloperRepo.name = repoName } if let repoURL = repoURL.first?.text?.striped { trendDeveloperRepo.url = "\(url)\(repoURL)" } if let repoDescription = repoDescription.first?.text?.striped { trendDeveloperRepo.description = repoDescription } trendDeveloper.repo = trendDeveloperRepo developers.append(trendDeveloper) } } return developers } private func parseTredingRepositories(response: Response) -> [TrendRepo] { var repositories: [TrendRepo] = [] if let doc = try? HTML(html: response.data, encoding: .utf8) { for item in doc.xpath("//article[@class='Box-row']") { var trendRepo: TrendRepo = TrendRepo(author: "", name: "", url: "", description: "", language: "", languageColor: "", stars: 0, forks: 0, currentPeriodStars: 0, contributors: []) /// Repository Info let repositoryInfo = item.xpath(".//h1[@class='h3 lh-condensed']/a")//[index] let description = item.xpath(".//p[@class='col-9 color-text-secondary my-1 pr-4']")//[index] let languageColor = item.xpath(".//span[@class='d-inline-block ml-0 mr-3']/span[1]") let language = item.xpath(".//span[@class='d-inline-block ml-0 mr-3']/span[2]") let star = item.xpath(".//div[@class='f6 color-text-secondary mt-2']/a[1]")//[index] let fork = item.xpath(".//div[@class='f6 color-text-secondary mt-2']/a[2]")//[index] let todayStar = item.xpath(".//div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block float-sm-right']")//[index] // let contributors = item.xpath(".//div[@class='f6 text-gray mt-2']/span[@class='d-inline-block mr-3']") // repository Info if let repositoryInfo = repositoryInfo.first { if let href = repositoryInfo["href"] { trendRepo.url = "https://github.com\(href)" let userdata = href.split(separator: "/") trendRepo.author = String(userdata[0]) trendRepo.name = String(userdata[1]) } } if let description = description.first { if let desc = description.text { trendRepo.description = desc.striped } } if let color = languageColor.first { guard let style = color["style"] else { return [] } let bgCode = String(style.split(separator: ":")[1]) trendRepo.languageColor = bgCode.striped } else { trendRepo.languageColor = nil } if let language = language.first { trendRepo.language = language.text?.striped } else { trendRepo.language = nil } if var star = star.first?.text?.striped { star = star.replacingOccurrences(of: ",", with: "") trendRepo.stars = Int(star) ?? 0 } if var fork = fork.first?.text?.striped { fork = fork.replacingOccurrences(of: ",", with: "") trendRepo.forks = Int(fork) ?? 0 } if let today = todayStar.first?.text?.striped { let result = today.trimmingCharacters(in: CharacterSet(charactersIn: "0123456789.").inverted) trendRepo.currentPeriodStars = Int(result) ?? 0 } // Contributors /* /html/body[@class='logged-in env-production page-responsive']/div[@class='application-main ']/main/div[@class='position-relative container-lg p-responsive pt-6']/div[@class='Box']/div[2]/article[@class='Box-row'][1]/div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][1]/img[@class='avatar mb-1 avatar-user']/@src */ for i in 1...5 { if let profile = item.xpath(".//div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][\(i)]/img[@class='avatar mb-1 avatar-user']/@src").first?.text?.striped, let name = item.xpath(".//div[@class='f6 color-text-secondary mt-2']/span[@class='d-inline-block mr-3']/a[@class='d-inline-block'][\(i)]/@href").first?.text?.striped { let contributorModel = TrendRepoContributor(name: String(name.dropFirst()), profileURL: profile) trendRepo.contributors.append(contributorModel) } } repositories.append(trendRepo) } } return repositories } }
[ -1 ]
5c10b39720eada07352d53c52e2e6fcc7cff1c3b
fe2a341dbff3d5077c40fbd15ac8c7077633b2f5
/native/KotlinMacOS/KotlinMacOS/AnimatedBackground.swift
c91394179a6e53bb43475b4e5e21d3fbd00b27df
[ "Apache-2.0" ]
permissive
chhabrapiyush/kinsight-multiplatform
0548ed3c15641481e3686616778a0d3e79a5ead1
19d5be5cf6a2192b73ef6de14575cd42daaabf2d
refs/heads/master
2020-10-02T01:48:13.690658
2019-12-27T20:49:45
2019-12-27T20:49:45
227,672,751
0
0
Apache-2.0
2019-12-27T20:49:47
2019-12-12T18:36:50
null
UTF-8
Swift
false
false
1,139
swift
// // AnimatedBackground.swift // TryMacOS // // Created by Dmitri on 12/12/19. // Copyright © 2019 spb. All rights reserved. // // // AnimatedBackground.swift // KotlinIOS // // Created by Dmitri Shpinar on 11/26/19. // Copyright © 2019 Kinsight. All rights reserved. // import SwiftUI struct AnimatedBackground: View { @State var gradient = [Color.blue, Color.purple, Color.red] @State var startPoint = UnitPoint(x: 0, y: 0) @State var endPoint = UnitPoint(x: 0, y: 2) var body: some View { RoundedRectangle(cornerRadius: 0) .fill(LinearGradient(gradient: Gradient(colors: self.gradient), startPoint: self.startPoint, endPoint: self.endPoint)) .edgesIgnoringSafeArea(.all) // .onAppear() { // withAnimation (Animation.easeInOut(duration: 5).repeatForever()){ // self.startPoint = UnitPoint(x: 1, y: -1) // self.endPoint = UnitPoint(x: 0, y: 1) // } // } } } struct AnimatedBackground_Previews: PreviewProvider { static var previews: some View { AnimatedBackground() } }
[ -1 ]
2fa7340d5995411f3986d8efb33f1b0935e8717a
9320b17f4757db6541a1e8c2c0a238273e680161
/bobismyuncle/AppDelegate.swift
944e1c58ca6b18933a89b7c217d938c493a60909
[]
no_license
riathakkar/bobby
7f8065dda859f73a7f43f3629a8c5e7f7e501322
b4549175c4e6c251f9aa14b39685a2296451fb0f
refs/heads/master
2020-06-26T03:54:25.655527
2019-07-29T20:20:56
2019-07-29T20:20:56
199,520,807
0
0
null
null
null
null
UTF-8
Swift
false
false
2,180
swift
// // AppDelegate.swift // bobismyuncle // // Created by Ria Thakkar on 7/29/19. // Copyright © 2019 GirlsHooCodeSIP. 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, 327695, 229391, 278545, 229394, 278548, 229397, 229399, 229402, 352284, 278556, 229405, 278559, 229408, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 311349, 286774, 286776, 319544, 286778, 204856, 229432, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 303241, 131209, 417930, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 295110, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 286962, 303347, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 287032, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 98756, 278980, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 320007, 287238, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 213575, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 254563, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189040, 172660, 287349, 189044, 189039, 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, 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, 303981, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 304007, 213895, 304009, 304011, 230284, 304013, 295822, 213902, 279438, 189329, 295825, 304019, 189331, 58262, 304023, 304027, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 230334, 304063, 304065, 189378, 213954, 156612, 295873, 213963, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 197645, 295949, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 132165, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 164973, 205934, 279661, 312432, 279669, 337018, 189562, 304258, 279683, 222340, 66690, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 230592, 312518, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 320748, 279788, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 230679, 214294, 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, 288154, 337306, 288160, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 337335, 288185, 279991, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 148946, 370130, 222676, 288210, 288212, 288214, 239064, 329177, 288217, 288218, 280027, 288220, 239070, 288224, 370146, 280034, 288226, 288229, 280036, 280038, 288232, 288230, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 148990, 296450, 206336, 230916, 230919, 214535, 230923, 304651, 304653, 370187, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 181854, 370272, 239202, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 263888, 313044, 280276, 321239, 280283, 313052, 18140, 288478, 313055, 419555, 321252, 313066, 288494, 280302, 280304, 313073, 321266, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 321336, 296767, 288576, 345921, 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, 288909, 141455, 141459, 275606, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 280819, 157940, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 305464, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 354653, 354656, 313700, 313705, 280937, 190832, 280946, 223606, 313720, 280956, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289218, 289221, 289227, 281045, 281047, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 240132, 330244, 223752, 150025, 338440, 281095, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 256716, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 338823, 322440, 314249, 240519, 183184, 142226, 289687, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 183277, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 380226, 298306, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 298365, 290174, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 306694, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 290325, 282133, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 306731, 290349, 290351, 290356, 28219, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 298598, 323176, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 323260, 282300, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 298822, 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, 298901, 44948, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 290739, 241588, 282547, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 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, 315524, 307338, 233613, 241813, 307352, 299164, 241821, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 184503, 299191, 176311, 307386, 258235, 307388, 176316, 307390, 307385, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 323854, 291089, 282906, 291104, 233766, 176435, 307508, 315701, 332086, 307510, 307512, 168245, 307515, 307518, 282942, 282947, 323917, 282957, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 283033, 242075, 291226, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 291254, 283062, 127417, 291260, 127421, 127424, 299457, 127429, 127434, 315856, 127440, 315860, 176597, 283095, 127447, 299481, 127449, 176605, 242143, 127455, 127457, 291299, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 127494, 283142, 135689, 233994, 127497, 127500, 291341, 233998, 127506, 234003, 127509, 234006, 127511, 152087, 283161, 234010, 135707, 242202, 135710, 242206, 242208, 291361, 242220, 291378, 152118, 234038, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 135808, 291456, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 299740, 242396, 201444, 299750, 283368, 234219, 283372, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 234242, 299778, 242436, 234246, 226056, 291593, 234248, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 201496, 234264, 234266, 234269, 234272, 234274, 152355, 299814, 234278, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 160572, 283452, 234302, 234307, 242499, 234309, 316233, 234313, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 242530, 349027, 234338, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 291714, 234370, 291716, 234373, 316294, 226182, 234375, 308105, 226185, 234379, 201603, 324490, 234384, 234388, 234390, 226200, 234393, 209818, 308123, 324504, 234396, 291742, 324508, 234398, 234401, 291747, 291748, 234405, 291750, 324518, 324520, 234407, 324522, 234410, 291756, 291754, 226220, 324527, 234414, 234417, 201650, 324531, 291760, 234422, 226230, 324536, 275384, 234428, 291773, 242623, 324544, 234431, 234434, 324546, 324548, 234437, 226239, 226245, 234439, 234443, 291788, 234446, 193486, 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, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 316439, 234520, 234519, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 234543, 234546, 275508, 300085, 234549, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 160835, 234563, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 234585, 275545, 242777, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 324757, 234647, 226453, 234648, 234650, 308379, 275608, 300189, 324766, 119967, 234653, 324768, 283805, 234657, 242852, 300197, 234661, 283813, 234664, 177318, 275626, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 300229, 308420, 308422, 283844, 300234, 283850, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 161027, 300292, 300294, 275719, 234760, 177419, 300299, 242957, 300301, 275725, 177424, 283917, 349451, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 316768, 292192, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 333178, 275834, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 300448, 144807, 144810, 144812, 144814, 227426, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 316917, 292343, 308727, 300537, 316933, 316947, 308757, 308762, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 292414, 284223, 284226, 284228, 243268, 292421, 284231, 226886, 128584, 284234, 366155, 317004, 276043, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 292433, 284247, 317015, 235097, 243290, 276052, 276053, 284249, 300638, 284251, 284253, 243293, 284258, 284255, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 325251, 276095, 276098, 284297, 317066, 284299, 317068, 284301, 276109, 284303, 284306, 276114, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 284329, 317098, 284331, 276137, 284333, 284335, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 276160, 284354, 358083, 284358, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 292681, 153417, 358224, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 317279, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 317332, 358292, 284564, 284566, 399252, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 284585, 276395, 292776, 292784, 276402, 358326, 161718, 358330, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276452, 292839, 276455, 292843, 276460, 292845, 178161, 227314, 325624, 276472, 317435, 276479, 276482, 276485, 317446, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 276539, 276544, 284739, 325700, 243779, 292934, 243785, 276553, 350293, 350295, 309337, 227418, 350299, 350302, 194654, 350304, 178273, 309346, 227423, 194660, 350308, 309350, 309348, 292968, 309352, 309354, 301163, 350313, 350316, 227430, 301167, 276583, 350321, 276590, 284786, 276595, 350325, 252022, 227440, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 153765, 284837, 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, 309491, 309494, 243960, 227583, 276735, 227587, 276739, 211204, 276742, 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, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 293346, 227810, 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, 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, 318132, 342707, 154292, 277173, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 342749, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 56059, 310015, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277317, 293706, 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, 276579, 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, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 138505, 228617, 318742, 204067, 277798, 130345, 277801, 277804, 285997, 285999, 277807, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 302403, 294211, 384328, 277832, 277836, 294221, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 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, 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, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 310764, 286188, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 310780, 40448, 228864, 286214, 228871, 302603, 302614, 302617, 286233, 302621, 286240, 146977, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 196133, 310831, 245288, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 327240, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286312, 40554, 286313, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 179870, 327333, 229030, 212648, 278188, 302764, 319153, 278196, 319163, 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, 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, 237508, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 278519, 237562 ]
7b8b026e0b74997b2f784cd2f801418f194ea2f2
9c48b2f4cfb486865b06a269fbb1abf21c8811f6
/Demo/EarlGreyExample/EarlGreyExampleSwift/ViewController.swift
deb6cf305165c05ca85341a784fba535134943e1
[ "CC-BY-4.0", "Apache-2.0" ]
permissive
wonism/EarlGrey
3062153807271b83b02fd2664e8b93785a76f24f
e4e83c7133623f5ac708f8832c032837a9332107
refs/heads/master
2021-01-16T18:01:37.431840
2016-05-31T23:39:29
2016-05-31T23:39:29
60,139,714
0
0
Apache-2.0
2019-01-03T09:41:32
2016-06-01T02:36:59
Objective-C
UTF-8
Swift
false
false
5,153
swift
// // Copyright 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in writing, software // distributed under the License is distributed on an "AS IS" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. // import UIKit class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource { var tableItems = (1...50).map { $0 } override func viewDidLoad() { super.viewDidLoad() // Create the send message view to contain one of the two send buttons let sendMessageView = SendMessageView(frame: CGRect(x: 0, y: 0, width: 200, height: 200)) sendMessageView.translatesAutoresizingMaskIntoConstraints = false view.addSubview(sendMessageView) // Create buttons let clickMe = createButton("ClickMe") view.addSubview(clickMe) let send = createButton("Send") // Change label to identify this button more easily for the layout test send.accessibilityLabel = "SendForLayoutTest" view.addSubview(send) let send2 = createButton("Send") sendMessageView.addSubview(send2) // Create a UITableView to send some elements out of the screen let table = createTable() view.addSubview(table) // Create constraints let views = ["clickMe": clickMe, "send": send, "send2": send2, "table": table, "sendMessageView": sendMessageView] var allConstraints = [NSLayoutConstraint]() let verticalConstraints = NSLayoutConstraint.constraintsWithVisualFormat( "V:|-40-[clickMe]-40-[send2]-40-[table]|", options: [], metrics: nil, views: views) allConstraints += verticalConstraints let buttonsHorizontalConstraints = NSLayoutConstraint.constraintsWithVisualFormat( "|-10-[clickMe(100)]-20-[send(100)]", options:.AlignAllTop, metrics: nil, views: views) allConstraints += buttonsHorizontalConstraints let sendMessageViewConstraints = NSLayoutConstraint.constraintsWithVisualFormat( "|-10-[send2(100)]", options:.AlignAllTop, metrics: nil, views: views) allConstraints += sendMessageViewConstraints let tableConstraints = NSLayoutConstraint.constraintsWithVisualFormat( "|-10-[table(320)]", options:.AlignAllTop, metrics: nil, views: views) allConstraints += tableConstraints NSLayoutConstraint.activateConstraints(allConstraints) } func createButton(title: String) -> UIButton { let button = UIButton(type: .System) button.frame = CGRect(x: 0, y: 0, width: 100, height: 100) button.backgroundColor = UIColor.greenColor() button.setTitle(title, forState: .Normal) button.addTarget(self, action: #selector(ViewController.buttonAction(_:)), forControlEvents: .TouchUpInside) button.accessibilityIdentifier = title button.accessibilityLabel = title button.translatesAutoresizingMaskIntoConstraints = false return button } func buttonAction(sender: UIButton!) { if let id = sender.accessibilityIdentifier { print("Button \(id) clicked") } } func createTable() -> UITableView { let tableView = UITableView() tableView.frame = CGRect(x: 0, y: 0, width: 320, height: 200) tableView.delegate = self tableView.dataSource = self tableView.registerClass(UITableViewCell.self, forCellReuseIdentifier: "cell") tableView.translatesAutoresizingMaskIntoConstraints = false tableView.estimatedRowHeight = 85.0 tableView.rowHeight = UITableViewAutomaticDimension tableView.accessibilityIdentifier = "table" return tableView } func numberOfSectionsInTableView(tableView:UITableView) -> Int { return 1 } func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return tableItems.count } func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell { let cell:UITableViewCell = tableView.dequeueReusableCellWithIdentifier("cell")! as UITableViewCell // For cell 1 to 7, add a date var cellID : String if (indexPath.row >= 1 && indexPath.row <= 7) { cellID = getDateForIndex(indexPath.row) } else { cellID = "Cell\(tableItems[indexPath.row])" } cell.textLabel?.text = cellID cell.accessibilityIdentifier = cellID return cell } func getDateForIndex(index: Int) -> String { var date = NSDate() let dateDeltaComponents = NSDateComponents() dateDeltaComponents.day = index date = NSCalendar.currentCalendar().dateByAddingComponents( dateDeltaComponents, toDate: date, options: NSCalendarOptions(rawValue: 0))! let formatter = NSDateFormatter() formatter.dateStyle = .LongStyle return formatter.stringFromDate(date) } } @objc class SendMessageView: UIView { // empty sub class of UIView to exercise inRoot }
[ -1 ]
01ba3c267d0193c7c5b756e4155f483f8b013aa8
c9a345895bf19fb74c2e84661e0471119432538d
/CRN Emergencias/ActualizarRegistro.swift
9253ffe3e1beaf8b7f770d4bcf700f4e40b35214
[]
no_license
IramMolina/CRN-Emergencias
94e051acf7d9e559e3c31fad1d8ead01a78625d6
7fac5832c67368ffc5981da5534e2a96bc9a09ae
refs/heads/master
2021-01-10T17:55:08.536120
2016-05-05T20:38:34
2016-05-05T20:38:34
54,148,858
0
0
null
2016-04-28T16:34:30
2016-03-17T20:21:48
Swift
UTF-8
Swift
false
false
191
swift
// // ActualizarRegistro.swift // CRN Emergencias // // Created by Andrea Margarita Pérez Barrera on 28/04/16. // Copyright © 2016 ITESM CEM. All rights reserved. // import Foundation
[ -1 ]
01dd097bc7ce37159af7b861d846a39e5c59f36c
b915ab057883f089b5b5f9b2691d2d321d560f32
/WeatherCute/WeatherCute/Views/EditViewController.swift
4843a25e7f8b7f4acb9db443d942047e78de821a
[]
no_license
kduncanwelke/WeatherCute
ec39987e2067ccc09275f099d05acd27ff26d780
ce7bb8235037fc09f0d0d9068ab3313a2d14ac69
refs/heads/master
2023-01-22T12:15:52.382325
2023-01-10T22:29:30
2023-01-10T22:29:30
189,309,205
0
0
null
null
null
null
UTF-8
Swift
false
false
2,673
swift
// // EditViewController.swift // WeatherCute // // Created by Kate Duncan-Welke on 12/8/21. // Copyright © 2021 Kate Duncan-Welke. All rights reserved. // import UIKit class EditViewController: UIViewController { // MARK: IBOutlets @IBOutlet weak var tableView: UITableView! // MARK: Variables private let editViewModel = EditViewModel() override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. tableView.delegate = self tableView.dataSource = self tableView.tableFooterView = UIView() tableView.dragInteractionEnabled = true tableView.dragDelegate = self } /* // 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. } */ // MARK: IBActions @IBAction func dismissPressed(_ sender: UIButton) { self.dismiss(animated: true, completion: nil) } } extension EditViewController: UITableViewDelegate, UITableViewDataSource { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return editViewModel.getTotalLocations() } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { var cell = tableView.dequeueReusableCell(withIdentifier: "editCell", for: indexPath) as! EditTableViewCell cell.location.text = editViewModel.getPlaceName(index: indexPath.row) return cell } func tableView(_ tableView: UITableView, commit editingStyle: UITableViewCell.EditingStyle, forRowAt indexPath: IndexPath) { if editingStyle == .delete { editViewModel.removeLocation(index: indexPath.row) tableView.deleteRows(at: [indexPath], with: .fade) } } } extension EditViewController: UITableViewDragDelegate { func tableView(_ tableView: UITableView, itemsForBeginning session: UIDragSession, at indexPath: IndexPath) -> [UIDragItem] { let dragItem = UIDragItem(itemProvider: NSItemProvider()) dragItem.localObject = editViewModel.getPlaceName(index: indexPath.row) return [dragItem] } func tableView(_ tableView: UITableView, moveRowAt sourceIndexPath: IndexPath, to destinationIndexPath: IndexPath) { // Update the model editViewModel.swap(source: sourceIndexPath.row, destination: destinationIndexPath.row) } }
[ -1 ]
dcff18d0b8300008f718a3cc4cfa47daeff87b66
84a7bddc4c255b11d101f11a8f8aaf3947af111d
/simple-weather/ContentView.swift
a7a675d43c456890ffb21ff9b569d5f0b86ff6e5
[]
no_license
jessicapham/simple-weather-app
0d677fd64715e04c401607906d8e4eae6fb627cb
62942a73b01d510d6437859185b10a98419b3057
refs/heads/master
2023-01-04T13:25:07.888561
2020-10-27T18:11:21
2020-10-27T18:11:21
297,506,486
1
0
null
null
null
null
UTF-8
Swift
false
false
2,507
swift
// // ContentView.swift // simple-weather // // Created by Jessica Pham on 9/17/20. // Copyright © 2020 Jessica Pham. All rights reserved. // import SwiftUI func fetchWeather (zipcode: String, completion: @escaping([String : Any]) -> Void) { let urlOpt = URL(string: "https://api.openweathermap.org/data/2.5/weather?zip=\(zipcode),us&appid=<APIKEY>&units=imperial") let session = URLSession.shared guard let url = urlOpt else { return } let request = URLRequest(url: url) let task = session.dataTask(with: request, completionHandler: { data, response, error in guard error == nil else { return } guard let data = data else { return } do { if let json = try JSONSerialization.jsonObject(with: data, options: .mutableContainers) as? [String:Any] { completion(json) } } catch let error{ print(error) } }) task.resume() } struct ContentView: View { @State var zipcode = "" @State var cityName = "" @State var temperature = "" @State var weatherLoaded = false func updateWeather() { fetchWeather(zipcode: self.zipcode, completion: { json in print(json) self.weatherLoaded = true if let cityName = json["name"] as? String { self.cityName = cityName } if let main = json["main"] as? [String:Double] { if let temperature = main["temp"] { self.temperature = String(format: "%.2f", temperature) } } }) } var body: some View { VStack { VStack { Text("Simple Weather App") .font(.title) TextField(/*@START_MENU_TOKEN@*/"Zipcode"/*@END_MENU_TOKEN@*/, text: $zipcode) } Button(action: updateWeather) { Text(/*@START_MENU_TOKEN@*/"Look Up Weather"/*@END_MENU_TOKEN@*/) } Spacer() if weatherLoaded { VStack { Text("Weather in " + cityName) Text("Temperature: " + temperature) } } Spacer() } } } struct ContentView_Previews: PreviewProvider { static var previews: some View { ContentView() } }
[ -1 ]
c76f774d31bd2ff22ce34b385ea5d07463a258fe
af5dc468b9e47de69c8eb3378aeb1094fb202b3e
/hw3clsses/hw3clsses/Vehicle.swift
175f15e1b2f47bc663edb8ae500a2650c607f982
[]
no_license
Noraa0/HW3_CLASSES_AND_INHERITANCE
625d53021ad560ea34adcc0b29e51cbf1d1f6db8
38e82a1b139f0aafeba2a9a3ccf3d5407d4af8ab
refs/heads/main
2023-08-25T05:44:34.921168
2021-10-21T09:12:48
2021-10-21T09:12:48
418,794,327
0
0
null
null
null
null
UTF-8
Swift
false
false
274
swift
// // Vehicle.swift // Vehicle // // Created by نورا on 19/10/2021. // import Foundation class Vehicle { var name: String var model :String init(_ name:String , _ model:String) { self.name = name self.model = model } }
[ -1 ]
c9c666c0f683ac2fead765e160d51421a23e0417
dbaca38f32e6985c6ace71f158eaaa08b7938ef0
/WalkWays/WalkWays/AppDelegate.swift
50ee733329cb1d23e5620dc3777f849884fd8144
[]
no_license
abhiramj4/WalkWays
9248504ed7bc059956597ac7b5a986f34dfc5f69
d5b20b52fa7d5ecd4a4445e3382206744e26cdd4
refs/heads/master
2020-04-23T10:02:43.299522
2019-02-17T07:17:02
2019-02-17T07:17:02
171,090,956
0
0
null
null
null
null
UTF-8
Swift
false
false
2,175
swift
// // AppDelegate.swift // WalkWays // // Created by Abhiram Santhosh on 2/17/19. // Copyright © 2019 WalkWays. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 294924, 229388, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 352284, 278556, 229405, 278559, 229408, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 311349, 286774, 286776, 319544, 286778, 204856, 229432, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 303241, 131209, 417930, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 295110, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 286962, 303347, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 287032, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 320007, 287238, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 213575, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 254563, 172644, 311911, 189034, 295533, 189039, 172656, 352880, 295538, 189040, 172660, 287349, 189044, 172655, 287355, 287360, 295553, 172675, 295557, 287365, 311942, 303751, 352905, 311946, 287371, 279178, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 164509, 287390, 172705, 287394, 172707, 303780, 303773, 287398, 205479, 287400, 279208, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 172737, 279231, 287427, 312006, 107208, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 189169, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303981, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 213895, 304007, 304009, 304011, 230284, 304013, 295822, 213902, 279438, 189329, 295825, 304019, 189331, 58262, 304023, 304027, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 197564, 230334, 304063, 238528, 304065, 189378, 213954, 156612, 295873, 213963, 197580, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 197645, 295949, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 164973, 205934, 279661, 312432, 279669, 337018, 189562, 279679, 304258, 279683, 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, 279929, 181626, 181631, 148865, 312711, 312712, 296331, 288140, 288144, 230800, 304533, 288154, 337306, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 279991, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 370130, 222676, 288212, 288214, 280021, 239064, 329177, 288217, 288218, 280027, 288220, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 148990, 296450, 206336, 230916, 230919, 214535, 230923, 304651, 304653, 370187, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 263888, 313044, 280276, 321239, 280283, 313052, 288478, 313055, 419555, 321252, 313066, 288494, 280302, 280304, 313073, 321266, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 337732, 280388, 304968, 280393, 280402, 173907, 313171, 313176, 42842, 280419, 321381, 296809, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 231404, 124913, 165876, 321528, 239612, 313340, 288764, 239617, 313347, 288773, 313358, 305176, 321560, 313371, 354338, 305191, 223273, 313386, 354348, 124978, 215090, 124980, 288824, 288826, 321595, 378941, 313406, 288831, 288836, 67654, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 149599, 280671, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 149618, 215154, 313458, 280691, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 275606, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 280819, 157940, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 305464, 280891, 289087, 280897, 280900, 305480, 239944, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 354653, 313700, 313705, 280937, 190832, 280946, 223606, 313720, 280956, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289218, 289221, 289227, 281045, 281047, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 223749, 240132, 330244, 223752, 150025, 338440, 281095, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 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, 281401, 289593, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 338823, 322440, 314249, 240519, 183184, 142226, 289687, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 281567, 289762, 322534, 297961, 183277, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 207937, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 380226, 298306, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 290174, 298365, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 150966, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 282089, 191985, 282098, 290291, 282101, 241142, 191992, 290298, 151036, 290302, 282111, 290305, 175621, 306694, 192008, 323084, 257550, 282127, 290321, 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, 282261, 175770, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 323260, 282300, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 298822, 148946, 315211, 282446, 307027, 315221, 323414, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 282478, 315249, 282481, 110450, 315251, 315253, 315255, 339838, 315267, 282499, 315269, 241544, 282505, 241546, 241548, 298896, 282514, 298898, 241556, 298901, 44948, 241560, 282520, 241563, 241565, 241567, 241569, 282531, 241574, 282537, 298922, 36779, 241581, 282542, 241583, 323504, 241586, 290739, 241588, 282547, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241640, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 282623, 315396, 241669, 315397, 282632, 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, 315524, 307338, 233613, 241813, 307352, 299164, 241821, 299167, 315552, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 184503, 176311, 307385, 307386, 258235, 307388, 176316, 307390, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 323854, 291089, 282906, 291104, 233766, 295583, 176435, 307508, 315701, 332086, 307510, 307512, 168245, 307515, 307518, 282942, 282947, 323917, 282957, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 315801, 283033, 242075, 291226, 61855, 291231, 283042, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 299444, 127413, 291254, 283062, 127417, 291260, 127421, 127424, 299457, 127429, 127431, 127434, 315856, 176592, 315860, 176597, 127447, 283095, 299481, 176605, 242143, 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, 234010, 135707, 242202, 135710, 242206, 242208, 291361, 242220, 291378, 234038, 152118, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 135808, 291456, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 299684, 135844, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 299740, 242396, 201444, 299750, 283368, 234219, 283372, 226037, 283382, 316151, 234231, 234236, 226045, 242431, 234239, 209665, 234242, 299778, 242436, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 299814, 234278, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 160572, 283452, 234302, 234307, 242499, 234309, 292433, 316233, 234313, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 242530, 349027, 234338, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 291714, 234370, 291716, 234373, 226182, 234375, 201603, 226185, 308105, 234379, 324490, 234384, 234388, 234390, 226200, 234393, 209818, 308123, 324504, 234396, 324508, 234398, 291742, 234401, 291747, 291748, 234405, 291750, 234407, 324520, 324518, 324522, 234410, 291756, 291754, 226220, 324527, 234414, 291760, 201650, 324531, 234417, 234422, 226230, 324536, 275384, 234428, 291773, 242623, 324544, 226239, 234434, 324546, 234431, 226245, 234437, 234439, 324548, 234443, 291788, 234446, 275406, 193486, 193488, 234449, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 316416, 234496, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 316439, 234520, 234519, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 234543, 234546, 275508, 300085, 234549, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 160835, 234563, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 234585, 275545, 242777, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 324757, 234647, 226453, 234648, 234650, 275608, 308379, 300189, 324766, 119967, 234653, 283805, 234657, 324768, 242852, 300197, 234661, 283813, 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, 275725, 283917, 177424, 349451, 349464, 415009, 283939, 259367, 283951, 292143, 300344, 226617, 243003, 283963, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 316768, 292192, 218464, 292197, 316774, 243046, 218473, 284010, 136562, 324978, 275834, 333178, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 300436, 226709, 357783, 316824, 316826, 300448, 144807, 144810, 144812, 284076, 144814, 144820, 374196, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 226802, 316917, 292343, 308727, 300537, 316933, 316947, 308757, 308762, 316959, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 292414, 284223, 284226, 284228, 243268, 226886, 284231, 128584, 292421, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 276052, 284247, 276053, 235097, 243290, 284249, 284251, 317015, 284253, 300638, 284255, 243293, 284258, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 292470, 276086, 292473, 284283, 276093, 284286, 276095, 292479, 284288, 284290, 325250, 284292, 292485, 276098, 292481, 284297, 317066, 284299, 317068, 284301, 276109, 284303, 284306, 276114, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 284329, 317098, 284331, 276137, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 276160, 284354, 358083, 284358, 276166, 358089, 284362, 276170, 284365, 276175, 284368, 276177, 284370, 358098, 284372, 317138, 284377, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 284418, 317187, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 292681, 153417, 358224, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 317279, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 317332, 358292, 284564, 284566, 399252, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 284585, 276395, 292776, 292784, 276402, 358326, 161718, 358330, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 276446, 153568, 276448, 276452, 292839, 276455, 292843, 276460, 292845, 178161, 227314, 276466, 325624, 276472, 317435, 276476, 276479, 276482, 276485, 317446, 276490, 350218, 292876, 350222, 317456, 276496, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 235579, 325692, 276539, 178238, 235581, 276544, 284739, 325700, 243779, 292934, 243785, 276553, 350293, 350295, 309337, 227418, 350299, 194649, 194654, 227423, 350304, 178273, 309346, 350302, 194660, 350308, 309350, 309348, 292968, 309352, 227426, 227430, 276583, 350313, 350316, 301167, 276590, 350321, 284786, 276595, 301163, 350325, 252022, 227440, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 153765, 284837, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 309455, 276689, 309462, 301272, 276699, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 243948, 194801, 309491, 227571, 309494, 243960, 227583, 276735, 227587, 276739, 211204, 276742, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 293232, 276848, 186744, 211324, 227709, 285061, 366983, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 301562, 293370, 317951, 309764, 301575, 121352, 293387, 236043, 342541, 317963, 113167, 55822, 309779, 317971, 309781, 277011, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 219714, 129603, 301636, 318020, 301639, 301643, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 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, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 342749, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277317, 293706, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 277368, 15224, 416639, 416640, 113538, 310147, 416648, 277385, 187274, 39817, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 276579, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 318442, 228330, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 285690, 244731, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 302105, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 293960, 310344, 277577, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 203872, 277601, 285792, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 367737, 285817, 302205, 285821, 392326, 285831, 253064, 294026, 302218, 285835, 162964, 384148, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 302241, 285862, 277671, 302248, 64682, 277678, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 310486, 302296, 384222, 310498, 285927, 318698, 302315, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 138505, 228617, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 277804, 285999, 277807, 113969, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 302403, 294211, 384328, 277832, 277836, 294221, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 302534, 310727, 245191, 64966, 277959, 277963, 302541, 277966, 302543, 310737, 277971, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 310764, 286188, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 40448, 228864, 286214, 228871, 302603, 302614, 286233, 302617, 302621, 286240, 146977, 187939, 40484, 294435, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 196133, 310831, 245288, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 327240, 40521, 286283, 40525, 40527, 212560, 400976, 228944, 40533, 147032, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286312, 40554, 286313, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 179870, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 319163, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 343757, 212690, 319187, 278227, 286420, 229076, 286425, 319194, 278235, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 294664, 311048, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 319280, 278320, 319290, 229192, 302925, 188247, 188252, 237409, 229233, 294776, 360317, 294785, 327554, 360322, 40840, 40851, 294803, 188312, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 294831, 188340, 40886, 319419, 294844, 294847, 309354, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 278519, 237562 ]
cca1b12acbfe3d7ee989905ed09682793730c1d6
16605ae58e4ee0e43a223e896fc0632a60721a1b
/Sources/SwiftContentType/SwiftContentTypeDetail/+Equatable.swift
65827bbee0ed8a3a068d9efbb09a7c1dce7af49f
[ "MIT" ]
permissive
ytyubox/SwiftContentType
000c8e6cecfc2a3f903738ab3bf6a3452f4575a9
b74d96af101994ba08294c9b514c18e301a1bc8c
refs/heads/master
2021-05-25T12:34:33.168800
2020-05-01T09:13:44
2020-05-01T09:13:44
253,756,408
0
0
null
null
null
null
UTF-8
Swift
false
false
267
swift
// // File.swift // // // Created by 游宗諭 on 2020/4/24. // import Foundation extension AnyContentType: Equatable { public static func == (lhs: AnyContentType, rhs: AnyContentType) -> Bool { lhs.type == rhs.type && lhs.subType == rhs.subType } }
[ -1 ]
668ec9a495ddc5511d05329b1485316a16cd3c16
ce66221c13e15bd47f379f72b7bccabde87f6416
/GoldenQuranSwift/Pods/GRDB.swift/GRDB/Core/Support/Foundation/ReferenceConvertible.swift
570171b2a79d4d58e00c9b4829af7dd3d63a796b
[ "MIT" ]
permissive
SadaqaWorks/GoldenQuraniOS
8cd0212640b7bd19ac65ebedc708b5175611aaaa
5943d596770f78657f57cc727d6601c4a9d9ac26
refs/heads/master
2022-09-24T08:57:45.906995
2020-06-02T04:06:13
2020-06-02T04:06:13
104,832,360
1
1
MIT
2020-06-02T04:06:15
2017-09-26T03:38:12
Swift
UTF-8
Swift
false
false
1,128
swift
import Foundation /// DatabaseValueConvertible is free for ReferenceConvertible types whose /// ReferenceType is itself DatabaseValueConvertible. /// /// class FooReference { ... } /// struct Foo : ReferenceConvertible { /// typealias ReferenceType = FooReference /// } /// /// // If the ReferenceType adopts DatabaseValueConvertible... /// extension FooReference : DatabaseValueConvertible { ... } /// /// // ... then the ReferenceConvertible type can freely adopt DatabaseValueConvertible: /// extension Foo : DatabaseValueConvertible { /* empty */ } extension ReferenceConvertible where Self: DatabaseValueConvertible, Self.ReferenceType: DatabaseValueConvertible { /// Returns a value that can be stored in the database. public var databaseValue: DatabaseValue { return (self as! ReferenceType).databaseValue } /// Returns a value initialized from *databaseValue*, if possible. public static func fromDatabaseValue(_ databaseValue: DatabaseValue) -> Self? { return ReferenceType.fromDatabaseValue(databaseValue).flatMap { cast($0) } } }
[ 198033, 240194, 125367 ]
aeb7ec3e4456d302708c3abccc09cb53aace7099
1e01eb7a9999fa6ee8c1311ad7c710889682647c
/Twitter/HomeTableViewController.swift
c4767f0dd654a5a32f0c0e558f1fac8ec117ab6f
[]
no_license
jsteigelman/Twitter
b1599ada6e73131f9e5a6ac950ad9ad2ac7a356c
a08e802ca6246dbbfb5efba170bfeb023db0cbdf
refs/heads/master
2023-04-22T16:05:54.395121
2021-05-07T18:25:53
2021-05-07T18:25:53
null
0
0
null
null
null
null
UTF-8
Swift
false
false
4,092
swift
// // HomeTableViewController.swift // Twitter // // Created by Joey Steigelman on 2/25/21. // Copyright © 2021 Dan. All rights reserved. // import UIKit class HomeTableViewController: UITableViewController { var tweetArray = [NSDictionary]() var numberOfTweet: Int! let myRefreshControl = UIRefreshControl() override func viewDidLoad() { super.viewDidLoad() loadTweets() myRefreshControl.addTarget(self, action: #selector(loadTweets), for: .valueChanged) tableView.refreshControl = myRefreshControl self.tableView.rowHeight = UITableView.automaticDimension self.tableView.estimatedRowHeight = 150 } override func viewDidAppear(_ animated: Bool) { super.viewDidAppear(animated) self.loadTweets() } @objc func loadTweets() { numberOfTweet = 20 let myUrl = "https://api.twitter.com/1.1/statuses/home_timeline.json" let myParams = ["count": numberOfTweet] TwitterAPICaller.client?.getDictionariesRequest(url: myUrl, parameters: myParams, success: { (tweets: [NSDictionary]) in self.tweetArray.removeAll() for tweet in tweets { self.tweetArray.append(tweet) } self.tableView.reloadData() self.myRefreshControl.endRefreshing() }, failure: { (Error) in print("Error: could not retreive tweets.") }) } func loadMoreTweets() { let myUrl = "https://api.twitter.com/1.1/statuses/home_timeline.json" numberOfTweet = numberOfTweet + 20 let myParams = ["count": numberOfTweet] TwitterAPICaller.client?.getDictionariesRequest(url: myUrl, parameters: myParams, success: { (tweets: [NSDictionary]) in self.tweetArray.removeAll() for tweet in tweets { self.tweetArray.append(tweet) } self.tableView.reloadData() }, failure: { (Error) in print("Error: could not retreive tweets.") }) } //when the user gets to the end of the page, run loadMoreTweets() override func tableView(_ tableView: UITableView, willDisplay cell: UITableViewCell, forRowAt indexPath: IndexPath) { if indexPath.row + 1 == tweetArray.count { loadMoreTweets() } } @IBAction func onLogout(_ sender: Any) { TwitterAPICaller.client?.logout() self.dismiss(animated: true, completion: nil) UserDefaults.standard.set(false, forKey: "userLoggedIn") } override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "tweetCell", for: indexPath) as! TweetCellTableViewCell let user = tweetArray[indexPath.row]["user"] as! NSDictionary cell.userNameLabel.text = user["name"] as? String cell.tweetContent.text = tweetArray[indexPath.row]["text"] as? String let imageUrl = URL(string: (user["profile_image_url_https"] as? String)!) let data = try? Data(contentsOf: imageUrl!) if let imageData = data { cell.profileImageView.image = UIImage(data: imageData) } cell.setFavorite(tweetArray[indexPath.row]["favorited"] as! Bool) cell.tweetId = tweetArray[indexPath.row]["id"] as! Int cell.setRetweeted(tweetArray[indexPath.row]["retweeted"] as! Bool) return cell } // MARK: - Table view data source override func numberOfSections(in tableView: UITableView) -> Int { // #warning Incomplete implementation, return the number of sections return 1 } override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { // #warning Incomplete implementation, return the number of rows return tweetArray.count } }
[ 399197, 360318 ]
1f36bf687d1af3ec06351b1787839fe9806e609c
194ef12bf75a5f17ed589a7c64283371e78970c6
/00657125_期末專案/PhotoGallery/PhotoCollectionViewCell.swift
db631a60c1db53254fd9fd8b2db83401e00b059d
[]
no_license
amity871028/iOS_final_project
a0f05290812c6daa3d11434c7ccbfff62d4f9664
99f2a4dcf097bf5241727b3cbffb1afe6fcd27f7
refs/heads/master
2020-06-09T02:21:07.047010
2019-06-23T13:34:45
2019-06-23T13:34:45
193,352,023
0
0
null
null
null
null
UTF-8
Swift
false
false
282
swift
// // PhotoCollectionViewCell.swift // 00657125_期末專案 // // Created by User04 on 2019/6/21. // Copyright © 2019 ntou. All rights reserved. // import UIKit class PhotoCollectionViewCell: UICollectionViewCell { @IBOutlet weak var photoImageView: UIImageView! }
[ 209985 ]
bd004a3ed39b4beed5634c6ded531086d71a95f1
f1d54403a55b5dea7d29e0b24425f4a88253c111
/PersonaId/PersonaId/PersonaId.swift
e9a7aeb87f142060653b938b2b810dbc11fc7999
[]
no_license
garnan92/PersonaCalc
b256b35dfa58cc0db8eeb81ab61c10b5ef2a2b4a
6d12559c0c90474fc502aeae496957b5f3fc0c30
refs/heads/master
2023-01-29T05:51:16.783458
2020-12-10T02:31:12
2020-12-10T02:31:12
316,880,600
0
0
null
2020-12-10T02:31:14
2020-11-29T05:10:08
Swift
UTF-8
Swift
false
false
9,622
swift
// // PersonaId.swift // PersonaId // // Created by Ricardo Pacheco on 06/12/20. // // This file was generated from JSON Schema using quicktype, do not modify it directly. // To parse the JSON, add this file to your project and do: // // let personaId = try PersonaId(json) import Foundation // MARK: - PersonaId public struct PersonaId: Codable { public let id: Int? public let level: Int? public let name: String? public let price: Int? public let race: Game? public let inherit: Game? public let game: Game? public let resistance: Resistance? public let fusiones: [Fusione]? enum CodingKeys: String, CodingKey { case id case level case name case price case race case inherit case game case resistance case fusiones } public init(id: Int?, level: Int?, name: String?, price: Int?, race: Game?, inherit: Game?, game: Game?, resistance: Resistance?, fusiones: [Fusione]?) { self.id = id self.level = level self.name = name self.price = price self.race = race self.inherit = inherit self.game = game self.resistance = resistance self.fusiones = fusiones } } // MARK: PersonaId convenience initializers and mutators public extension PersonaId { init(data: Data) throws { self = try newJSONDecoder().decode(PersonaId.self, from: data) } init(_ json: String, using encoding: String.Encoding = .utf8) throws { guard let data = json.data(using: encoding) else { throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) } try self.init(data: data) } init(fromURL url: URL) throws { try self.init(data: try Data(contentsOf: url)) } func with( id: Int?? = nil, level: Int?? = nil, name: String?? = nil, price: Int?? = nil, race: Game?? = nil, inherit: Game?? = nil, game: Game?? = nil, resistance: Resistance?? = nil, fusiones: [Fusione]?? = nil ) -> PersonaId { return PersonaId( id: id ?? self.id, level: level ?? self.level, name: name ?? self.name, price: price ?? self.price, race: race ?? self.race, inherit: inherit ?? self.inherit, game: game ?? self.game, resistance: resistance ?? self.resistance, fusiones: fusiones ?? self.fusiones ) } func jsonData() throws -> Data { return try newJSONEncoder().encode(self) } func jsonString(encoding: String.Encoding = .utf8) throws -> String? { return String(data: try self.jsonData(), encoding: encoding) } } // MARK: - Fusione public struct Fusione: Codable { public let persona1: Persona? public let persona2: Persona? enum CodingKeys: String, CodingKey { case persona1 case persona2 } public init(persona1: Persona?, persona2: Persona?) { self.persona1 = persona1 self.persona2 = persona2 } } // MARK: Fusione convenience initializers and mutators public extension Fusione { init(data: Data) throws { self = try newJSONDecoder().decode(Fusione.self, from: data) } init(_ json: String, using encoding: String.Encoding = .utf8) throws { guard let data = json.data(using: encoding) else { throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) } try self.init(data: data) } init(fromURL url: URL) throws { try self.init(data: try Data(contentsOf: url)) } func with( persona1: Persona?? = nil, persona2: Persona?? = nil ) -> Fusione { return Fusione( persona1: persona1 ?? self.persona1, persona2: persona2 ?? self.persona2 ) } func jsonData() throws -> Data { return try newJSONEncoder().encode(self) } func jsonString(encoding: String.Encoding = .utf8) throws -> String? { return String(data: try self.jsonData(), encoding: encoding) } } // MARK: - Persona public struct Persona: Codable { public let id: Int? public let nombre: String? enum CodingKeys: String, CodingKey { case id case nombre } public init(id: Int?, nombre: String?) { self.id = id self.nombre = nombre } } // MARK: Persona convenience initializers and mutators public extension Persona { init(data: Data) throws { self = try newJSONDecoder().decode(Persona.self, from: data) } init(_ json: String, using encoding: String.Encoding = .utf8) throws { guard let data = json.data(using: encoding) else { throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) } try self.init(data: data) } init(fromURL url: URL) throws { try self.init(data: try Data(contentsOf: url)) } func with( id: Int?? = nil, nombre: String?? = nil ) -> Persona { return Persona( id: id ?? self.id, nombre: nombre ?? self.nombre ) } func jsonData() throws -> Data { return try newJSONEncoder().encode(self) } func jsonString(encoding: String.Encoding = .utf8) throws -> String? { return String(data: try self.jsonData(), encoding: encoding) } } // MARK: - Game public struct Game: Codable { public let name: String? enum CodingKeys: String, CodingKey { case name } public init(name: String?) { self.name = name } } // MARK: Game convenience initializers and mutators public extension Game { init(data: Data) throws { self = try newJSONDecoder().decode(Game.self, from: data) } init(_ json: String, using encoding: String.Encoding = .utf8) throws { guard let data = json.data(using: encoding) else { throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) } try self.init(data: data) } init(fromURL url: URL) throws { try self.init(data: try Data(contentsOf: url)) } func with( name: String?? = nil ) -> Game { return Game( name: name ?? self.name ) } func jsonData() throws -> Data { return try newJSONEncoder().encode(self) } func jsonString(encoding: String.Encoding = .utf8) throws -> String? { return String(data: try self.jsonData(), encoding: encoding) } } // MARK: - Resistance public struct Resistance: Codable { public let phys: String? public let gun: String? public let fire: String? public let ice: String? public let elec: String? public let wind: String? public let psy: String? public let nuke: String? public let bless: String? public let curse: String? enum CodingKeys: String, CodingKey { case phys case gun case fire case ice case elec case wind case psy case nuke case bless case curse } public init(phys: String?, gun: String?, fire: String?, ice: String?, elec: String?, wind: String?, psy: String?, nuke: String?, bless: String?, curse: String?) { self.phys = phys self.gun = gun self.fire = fire self.ice = ice self.elec = elec self.wind = wind self.psy = psy self.nuke = nuke self.bless = bless self.curse = curse } } // MARK: Resistance convenience initializers and mutators public extension Resistance { init(data: Data) throws { self = try newJSONDecoder().decode(Resistance.self, from: data) } init(_ json: String, using encoding: String.Encoding = .utf8) throws { guard let data = json.data(using: encoding) else { throw NSError(domain: "JSONDecoding", code: 0, userInfo: nil) } try self.init(data: data) } init(fromURL url: URL) throws { try self.init(data: try Data(contentsOf: url)) } func with( phys: String?? = nil, gun: String?? = nil, fire: String?? = nil, ice: String?? = nil, elec: String?? = nil, wind: String?? = nil, psy: String?? = nil, nuke: String?? = nil, bless: String?? = nil, curse: String?? = nil ) -> Resistance { return Resistance( phys: phys ?? self.phys, gun: gun ?? self.gun, fire: fire ?? self.fire, ice: ice ?? self.ice, elec: elec ?? self.elec, wind: wind ?? self.wind, psy: psy ?? self.psy, nuke: nuke ?? self.nuke, bless: bless ?? self.bless, curse: curse ?? self.curse ) } func jsonData() throws -> Data { return try newJSONEncoder().encode(self) } func jsonString(encoding: String.Encoding = .utf8) throws -> String? { return String(data: try self.jsonData(), encoding: encoding) } } // MARK: - Helper functions for creating encoders and decoders func newJSONDecoder() -> JSONDecoder { let decoder = JSONDecoder() if #available(iOS 10.0, OSX 10.12, tvOS 10.0, watchOS 3.0, *) { decoder.dateDecodingStrategy = .iso8601 } return decoder } func newJSONEncoder() -> JSONEncoder { let encoder = JSONEncoder() if #available(iOS 10.0, OSX 10.12, tvOS 10.0, watchOS 3.0, *) { encoder.dateEncodingStrategy = .iso8601 } return encoder }
[ -1 ]
fc2d000fcb4c724dde1a2aa4ed7f930f91fd7221
493f92c40a95d7e5fad22a79b36f4ea23464e5cf
/W07_Tip_Calculator_NITTests/W07_Tip_Calculator_NITTests.swift
9c3e61025daac5900ec9d8042562b340b8851810
[]
no_license
tin12b1/W07-Tip-Calculator
c848c69ee9c3862ec2168fa30f5edb0896b4459c
ddcd1fa772b0b80ea7c3c58106ec1e137feddcbe
refs/heads/master
2021-01-21T11:56:35.816996
2017-05-31T07:05:29
2017-05-31T07:05:29
91,765,619
0
0
null
null
null
null
UTF-8
Swift
false
false
1,019
swift
// // W07_Tip_Calculator_NITTests.swift // W07_Tip_Calculator_NITTests // // Created by Cntt16 on 5/19/17. // Copyright © 2017 Cntt16. All rights reserved. // import XCTest @testable import W07_Tip_Calculator_NIT class W07_Tip_Calculator_NITTests: 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. } } }
[ 98333, 278558, 16419, 229413, 204840, 278570, 360491, 344107, 253999, 229430, 319542, 286788, 352326, 311372, 311374, 196691, 278615, 278634, 278638, 319598, 352368, 204916, 131189, 131191, 237689, 278655, 311435, 311438, 278677, 278685, 311458, 278691, 49316, 196773, 32941, 278704, 278708, 131256, 254170, 286958, 327929, 180493, 278797, 254226, 278810, 278816, 262450, 278842, 287041, 287043, 311621, 319821, 254286, 344401, 278869, 155990, 106847, 246127, 139640, 246136, 246137, 311685, 377264, 278961, 278965, 278970, 33211, 319930, 336317, 278978, 188871, 278989, 278993, 278999, 328152, 369116, 287198, 188894, 279008, 279013, 279018, 279022, 279029, 279032, 279039, 287241, 279050, 303631, 279062, 279065, 377386, 352829, 295519, 66150, 344680, 279146, 287346, 279164, 189057, 303746, 311941, 279177, 369289, 344715, 311949, 311954, 352917, 230040, 271000, 303771, 221852, 205471, 279206, 295590, 287404, 295599, 205487, 303793, 164533, 230072, 287417, 66242, 287433, 287439, 279252, 295652, 230125, 312047, 230134, 279294, 205568, 295682, 295697, 336671, 344865, 279336, 295724, 312108, 353069, 164656, 328499, 353078, 230199, 353079, 336702, 295744, 353094, 353095, 353109, 230234, 279392, 303972, 279397, 246641, 246648, 279417, 361337, 254850, 287622, 213894, 295824, 279456, 189348, 279464, 353195, 140204, 353197, 287677, 353216, 213960, 279498, 304087, 50143, 123881, 320493, 304110, 320494, 287731, 295927, 304122, 320507, 328700, 328706, 320516, 230410, 320527, 418837, 140310, 230423, 197657, 336929, 189474, 345132, 238639, 238651, 230463, 238664, 296019, 353367, 156764, 156765, 304222, 230499, 156785, 312434, 353397, 279685, 222343, 296086, 296092, 238765, 279728, 238769, 230588, 279747, 353479, 353481, 353482, 279760, 189652, 189653, 279765, 296153, 279774, 304356, 328940, 279792, 353523, 279814, 312587, 328971, 320796, 304421, 279854, 345396, 116026, 222524, 279875, 304456, 230729, 222541, 238927, 296273, 222559, 230756, 230765, 279920, 312689, 116084, 181625, 378244, 296329, 230799, 296335, 279974, 279984, 173491, 279989, 296375, 296387, 296391, 361927, 296392, 370123, 148940, 280013, 312782, 222675, 353750, 239068, 280032, 296425, 280041, 361963, 321009, 280055, 288249, 296448, 230921, 149007, 304656, 329232, 230959, 288309, 312889, 288318, 124485, 288326, 288327, 280147, 239198, 157281, 222832, 247416, 337535, 288392, 239250, 345752, 255649, 198324, 296628, 321207, 296632, 280251, 321219, 280267, 280278, 280280, 18138, 321247, 313065, 288491, 280300, 419569, 313081, 124669, 288512, 288516, 280327, 280329, 321295, 321302, 116505, 321310, 247590, 280372, 280374, 321337, 280380, 345919, 280390, 280392, 345929, 304977, 18262, 280410, 370522, 345951, 362337, 345955, 296806, 288619, 288620, 313199, 362352, 313203, 124798, 182144, 305026, 67463, 329622, 124824, 214937, 239514, 214938, 247712, 354212, 124852, 288697, 214977, 214984, 247757, 231375, 280541, 337895, 247785, 296941, 362480, 313339, 313357, 182296, 305179, 313375, 354343, 354345, 223274, 124975, 346162, 124984, 288833, 280649, 354385, 223316, 280661, 223318, 329814, 338007, 288857, 354393, 280675, 280677, 313447, 288879, 223350, 280694, 215164, 313469, 215166, 280712, 141450, 215178, 346271, 239793, 125109, 182456, 280762, 223419, 379071, 280768, 338119, 321745, 280802, 338150, 125169, 338164, 157944, 125183, 125188, 313608, 125193, 125198, 125203, 125208, 305440, 125217, 125235, 280887, 125240, 280902, 182598, 289110, 272729, 379225, 321894, 280939, 354676, 199029, 313727, 280961, 362881, 248194, 395659, 395661, 240016, 190871, 289189, 281040, 281072, 223767, 289304, 223769, 182817, 322120, 281166, 297560, 354911, 436832, 191082, 313966, 281199, 330379, 133774, 330387, 330388, 117397, 338613, 314040, 158394, 199366, 363211, 289502, 363230, 338662, 346858, 330474, 289518, 125684, 199414, 35583, 363263, 322319, 166676, 207640, 281377, 289576, 289598, 281408, 420677, 281427, 281433, 330609, 158593, 240518, 289703, 363458, 52172, 183248, 338899, 248797, 207838, 314342, 289774, 183279, 314355, 240630, 314362, 330754, 134150, 281625, 281626, 175132, 330788, 248872, 322612, 207938, 314448, 281697, 314467, 281700, 322663, 207979, 363644, 150657, 248961, 330888, 339102, 330913, 306338, 3246, 208058, 339130, 290000, 363744, 298212, 290022, 330984, 298228, 216315, 208124, 363771, 388349, 322824, 126237, 339234, 199971, 224586, 372043, 314709, 224606, 314720, 142689, 281957, 281962, 306542, 314739, 290173, 306559, 298374, 314758, 281992, 314760, 388487, 314766, 306579, 224661, 282007, 290207, 314783, 314789, 282024, 241066, 380357, 306639, 191981, 306673, 306677, 290301, 282114, 306692, 306693, 323080, 192010, 323087, 282136, 282141, 282146, 306723, 290358, 290390, 306776, 282213, 323178, 314998, 175741, 192131, 224901, 282245, 282246, 323217, 282259, 298654, 282271, 282273, 282276, 298661, 323236, 290471, 282280, 282303, 282312, 306890, 282318, 241361, 282327, 298712, 216795, 12010, 282348, 282355, 282358, 175873, 323331, 323332, 282378, 282391, 249626, 282400, 241441, 339745, 241442, 257830, 282409, 159533, 282417, 200498, 282427, 315202, 307011, 282438, 216918, 307031, 282474, 241528, 282504, 315273, 315274, 184208, 282518, 282519, 44952, 118685, 298909, 323507, 290745, 290746, 298980, 290811, 282633, 241692, 307231, 102437, 233517, 159807, 315476, 307289, 200794, 315487, 315498, 299121, 233589, 241808, 323729, 233636, 184484, 299187, 184505, 299198, 299203, 282831, 356576, 176362, 233715, 184570, 168188, 184575, 299293, 282913, 233762, 217380, 282919, 151847, 332085, 332089, 315706, 282939, 241986, 332101, 323916, 348492, 250192, 323920, 348500, 323935, 242029, 291192, 225670, 291224, 283038, 61857, 61859, 340398, 61873, 61880, 283064, 127427, 127428, 283075, 324039, 176601, 242139, 242148, 233978, 291333, 340490, 283153, 291358, 283182, 283184, 315960, 242237, 348742, 348749, 242273, 111208, 291454, 184962, 348806, 152203, 184973, 299699, 299700, 225997, 226004, 226007, 299746, 226019, 234217, 299770, 234234, 299776, 234241, 209670, 291592, 226058, 234250, 234253, 291604, 234263, 291612, 234268, 234277, 283430, 234283, 152365, 234286, 234289, 242485, 234294, 234301, 160575, 234311, 234312, 299849, 283467, 234317, 201551, 234323, 234326, 234331, 349026, 234340, 234343, 275303, 234346, 242541, 234355, 234360, 209785, 234361, 177019, 234366, 234367, 291712, 234372, 226181, 226184, 308107, 308112, 234386, 234387, 234392, 209817, 324506, 324507, 234400, 234404, 324517, 234409, 275371, 234419, 234425, 234427, 234430, 349121, 234436, 234438, 234444, 234445, 316364, 234451, 234454, 234457, 340955, 234463, 340961, 234466, 234472, 234473, 324586, 234477, 340974, 234482, 316405, 201720, 234498, 234500, 234506, 324625, 316437, 201755, 234531, 300068, 234534, 357414, 234542, 234548, 300084, 324666, 234555, 234560, 21569, 234565, 234569, 300111, 234577, 341073, 234583, 234584, 250981, 300135, 300136, 316520, 275565, 316526, 357486, 275571, 300151, 234616, 398457, 291959, 160891, 341115, 234622, 300158, 349316, 349318, 275591, 234632, 169104, 177296, 234642, 308372, 185493, 119962, 300187, 119963, 300188, 234656, 234659, 234663, 275625, 300201, 300202, 226481, 283840, 259268, 283847, 62665, 283852, 283853, 333011, 357595, 234733, 292085, 234742, 316669, 242954, 292107, 251153, 226608, 300343, 226624, 193859, 226632, 177484, 251213, 234831, 120148, 357719, 283991, 218462, 292195, 333160, 284014, 243056, 111993, 112017, 112018, 234898, 357786, 333220, 316842, 210358, 284089, 292283, 415171, 300487, 300489, 284107, 284116, 366037, 210390, 210391, 210393, 226781, 144867, 316902, 54765, 251378, 308723, 300535, 300536, 300542, 210433, 366083, 316946, 308756, 398869, 308764, 349726, 349741, 169518, 194110, 235070, 349763, 276040, 292425, 366154, 243274, 128587, 276045, 333388, 218696, 333393, 300630, 235095, 243292, 374372, 300644, 317032, 54893, 325231, 276085, 366203, 235135, 276120, 276126, 333470, 300714, 218819, 276173, 333517, 333520, 333521, 333523, 276195, 153319, 284401, 276210, 276219, 325371, 194303, 194304, 284429, 276238, 366360, 284442, 325404, 276253, 325410, 341796, 317232, 276282, 276283, 276287, 325439, 276294, 276298, 341836, 325457, 284507, 284512, 284514, 292712, 325484, 292720, 325492, 276344, 194429, 325503, 333701, 243591, 243597, 325518, 292771, 333735, 284587, 243637, 276408, 276421, 284619, 276430, 301008, 153554, 276444, 219101, 292836, 276454, 276459, 325619, 333817, 292902, 227370, 276534, 358456, 325694, 227417, 194656, 309345, 227428, 276582, 194666, 276589, 227439, 284788, 333940, 292992, 333955, 194691, 227460, 325776, 276627, 317587, 276632, 284826, 333991, 333992, 284841, 284842, 129203, 227513, 301251, 309444, 276682, 301279, 211193, 243962, 227578, 309503, 375051, 325905, 325912, 309529, 227616, 211235, 211238, 260418, 227654, 227658, 276813, 6481, 6482, 366929, 366930, 6489, 391520, 276835, 416104, 276847, 285040, 227725, 178578, 293274, 317852, 285090, 375207, 293303, 276920, 276925, 293310, 317901, 326100, 285150, 227809, 358882, 342498, 227813, 195045, 301571, 276998, 342536, 186893, 342553, 375333, 293419, 244269, 23092, 277048, 301638, 293448, 55881, 244310, 285271, 277094, 277101, 277111, 277133, 227990, 342682, 285353, 285361, 342706, 293556, 342713, 285371, 285373, 154316, 203477, 318173, 285415, 342762, 277227, 154359, 162561, 285444, 310036, 326429, 326433, 293672, 318250, 318252, 285487, 285497, 162621, 293693, 342847, 162626, 277316, 277325, 293711, 301918, 293730, 351077, 342887, 400239, 277366, 277370, 269178, 359298, 277381, 113542, 228233, 228234, 56208, 318364, 310178, 310182, 293800, 236461, 130016, 64485, 277479, 277492, 277509, 277510, 146448, 277523, 310317, 252980, 359478, 277563, 302139, 359495, 277597, 113760, 302177, 228458, 15471, 187506, 187521, 285828, 302213, 253063, 228491, 228493, 285838, 162961, 326804, 302240, 343203, 253099, 367799, 277690, 64700, 302274, 343234, 367810, 244940, 228563, 195811, 228588, 253167, 204022, 228600, 228609, 245019, 277792, 130338, 130343, 277800, 113966, 351537, 286018, 113987, 15686, 294218, 318805, 294243, 163175, 327025, 327031, 179587, 368011, 310692, 286129, 286132, 228795, 302529, 302531, 163268, 163269, 310732, 64975, 327121, 228827, 286172, 310757, 187878, 343542, 343543, 286202, 286205, 228861, 302590, 228867, 253452, 65041, 146964, 204313, 245287, 278060, 245292, 286254, 196164, 56902, 286288, 196187, 147036, 343647, 286306, 138863, 188031, 294529, 229001, 310923, 188048, 302739, 229020, 245412, 40613, 40614, 40615, 229029, 278191, 286388, 286391, 319162, 286399, 302797, 212685, 212688, 245457, 302802, 286423, 278234, 294622, 278240, 212716, 212717, 229113, 286459, 278272, 319233, 311042, 278291, 294678, 278299, 319288, 360252, 188251, 237408, 253829, 40853, 294809, 294814, 319392, 294823, 163781, 344013, 212946, 294886, 253929, 327661, 311281, 311282 ]
2d35b5b366fbd6d7bbe957e97ecc45cec27d5536
d0c68355eb9b0a021009fbb9a35b09d65f2feae3
/Source/Utils/UIView+Border.swift
29527e3728f9e945a27fcdcd06a9b8e7522c39f2
[ "MIT" ]
permissive
Ryandev/Twilio-Message
261e8e4ead4bac8e5ed4334e67d80febca62f688
a15e6db9f278a10ff039ab47bd6064bdda898164
refs/heads/master
2020-04-19T14:18:28.264833
2019-02-25T15:51:19
2019-02-25T15:51:19
168,240,349
5
1
null
null
null
null
UTF-8
Swift
false
false
753
swift
import UIKit extension UIView { @IBInspectable var borderColor: UIColor { set(newValue) { self.layer.borderColor = newValue.cgColor } get { return UIColor(cgColor: self.layer.borderColor ?? UIColor.clear.cgColor) } } @IBInspectable var borderRadius: CGFloat { set(newValue) { self.layer.cornerRadius = newValue } get { return self.layer.cornerRadius } } @IBInspectable var borderWidth: CGFloat { set(newValue) { self.layer.borderWidth = newValue } get { return self.layer.borderWidth } } }
[ -1 ]
fddbef8289383c5b42167775738b0c60bf58acfd
42df66d2d380438b3a5164d4d0e00bb270a94a9d
/StripePayments/StripePayments/Source/API Bindings/Models/STPConnectAccountAddress.swift
3b08edd729d6a8450c74a7683d3cd35ce3495598
[ "MIT" ]
permissive
stripe/stripe-ios
2472a3a693a144d934e165058c07593630439c9e
dd9e4b4c4bf7cceffc8ba661cbe2ec2430b3ce4a
refs/heads/master
2023-08-31T20:29:56.708961
2023-08-31T17:53:57
2023-08-31T17:53:57
6,656,911
1,824
1,005
MIT
2023-09-14T21:39:48
2012-11-12T16:55:08
Swift
UTF-8
Swift
false
false
2,763
swift
// // STPConnectAccountAddress.swift // StripePayments // // Created by Yuki Tokuhiro on 8/2/19. // Copyright © 2019 Stripe, Inc. All rights reserved. // import Foundation /// An address to use with `STPConnectAccountParams`. public class STPConnectAccountAddress: NSObject { /// City, district, suburb, town, or village. /// For addresses in Japan: City or ward. @objc public var city: String? /// Two-letter country code (ISO 3166-1 alpha-2). /// - seealso: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2 @objc public var country: String? /// Address line 1 (e.g., street, PO Box, or company name). /// For addresses in Japan: Block or building number. @objc public var line1: String? /// Address line 2 (e.g., apartment, suite, unit, or building). /// For addresses in Japan: Building details. @objc public var line2: String? /// ZIP or postal code. @objc public var postalCode: String? /// State, county, province, or region. /// For addresses in Japan: Prefecture. @objc public var state: String? /// Town or cho-me. /// This property only applies to Japanese addresses. @objc public var town: String? /// :nodoc: @objc public var additionalAPIParameters: [AnyHashable: Any] = [:] /// :nodoc: @objc public override var description: String { let props = [ // Object String(format: "%@: %p", NSStringFromClass(STPConnectAccountAddress.self), self), // Properties "line1 = \(String(describing: line1))", "line2 = \(String(describing: line2))", "town = \(String(describing: town))", "city = \(String(describing: city))", "state = \(String(describing: state))", "postalCode = \(String(describing: postalCode))", "country = \(String(describing: country))", ] return "<\(props.joined(separator: "; "))>" } } // MARK: - STPFormEncodable extension STPConnectAccountAddress: STPFormEncodable { @objc public class func propertyNamesToFormFieldNamesMapping() -> [String: String] { return [ NSStringFromSelector(#selector(getter: line1)): "line1", NSStringFromSelector(#selector(getter: line2)): "line2", NSStringFromSelector(#selector(getter: town)): "town", NSStringFromSelector(#selector(getter: city)): "city", NSStringFromSelector(#selector(getter: country)): "country", NSStringFromSelector(#selector(getter: state)): "state", NSStringFromSelector(#selector(getter: postalCode)): "postal_code", ] } @objc public class func rootObjectName() -> String? { return nil } }
[ -1 ]
b5d32550964c29d38159d17df7db0638e6881e26
d29293cbaef904a8b1cae69b94ff215fe5e52af3
/sosokan-master/sosokan/Application/NotificationManager.swift
645a3f7d0176a031bb19803ad1f142d8cfbc713e
[]
no_license
Sosoking328/BeautyContest
e00e22a8b8539846e5f39802fab927804bf81e3e
5689640be30d92a81a9f4d50e348fec26705a149
refs/heads/master
2022-12-11T22:53:31.419871
2017-07-21T20:56:39
2017-07-21T20:56:39
97,427,120
1
0
null
2022-12-07T23:57:43
2017-07-17T02:29:38
Python
UTF-8
Swift
false
false
517
swift
// // NotificationManager.swift // sosokan // // Created by An Phan on 7/17/16. // Copyright © 2016 icanstudioz inc. All rights reserved. // import Foundation import Alamofire enum NotificationType: String { case Message case Following case Subscription var identifier: String { switch self { case .Message: return "message" case .Following: return "following" case .Subscription: return "subscription" } } }
[ -1 ]
33a61ca62f230e4d94a889b254b411cf205294bf
8b4d948b2e76e6144b94556ec37a395adde3fc10
/3WaysConnectDataBetweenModelAndControllerMVC/3WaysConnectDataBetweenModelAndControllerMVC/CompletionHandleUsing.swift
05ea9d965685831c75ddc38e2e716ad2828185a9
[]
no_license
trinhttt/ResearchSwift
0e03d7ee826cbd122316330a2afce37fd3ea978c
95c09a61ddb6bebfbff7f925bb5c4e82b93db18a
refs/heads/master
2020-03-28T02:01:55.326674
2018-10-26T10:13:54
2018-10-26T10:13:54
147,542,698
0
0
null
null
null
null
UTF-8
Swift
false
false
1,130
swift
// // CompletionHandle.swift // 3WaysConnectDataBetweenModelAndControllerMVC // // Created by Thai Thi Tu Trinh on 10/3/18. // Copyright © 2018 Thai Thi Tu Trinh. All rights reserved. // import Foundation class DataModel1{ //1.1 callback use comletion handle func requestData(completion: ((_ outputData: String) -> Void)){ let num1 = 1.2 if num1 == 1{ completion("=") }else{ completion("!=") } } } class DataModel2{ //1.2 callback use class property var dataUpdate: ((_ outputData: String)->Void) init() { self.dataUpdate = {(output:String) in } } func requestData(){ dataUpdate("bla bla") } } //other example : design completion handle class DataModelOtherExample{ //normal var dataUpdate: ((_ outputData: String)->Void) = { data in print(data) } // use $0 to make it shorter var dataUpdate1: ((_ outputData: String)->Void) = { print($0) } func requestData(){ dataUpdate("bla bla 1") dataUpdate1("bla bla 2") } }
[ -1 ]
e048fe3400739e50c91aa7138ee70e14587c48a7
3ae77e868d3f759067fea78cc150e31d778b08c6
/NewMovies/Extra/ViewController+Extra.swift
1b60bd59ba58ab89aa41853e3ed5af1fe434fdaa
[]
no_license
edolj/MovieApp
ab68d4d5f3d61245b51340915b993671328828bf
39b61f31cc3da4bf781a630adf5d95dbe06096e1
refs/heads/master
2021-04-03T04:49:14.244494
2020-11-03T22:33:15
2020-11-03T22:33:15
124,424,738
0
0
null
null
null
null
UTF-8
Swift
false
false
1,606
swift
// // ViewController+Extra.swift // NewMovies // // Created by Edo on 25/04/2020. // Copyright © 2020 Edo Ljubijankic. All rights reserved. // import UIKit enum DestinationViewController { case detailsViewController case webViewController } extension UIViewController { func navigate(from vc: UIViewController, to destinationController: DestinationViewController, data: Any?) { let storyboard = UIStoryboard(name: "Main", bundle: nil) let destinationVC: UIViewController switch destinationController { case .detailsViewController: destinationVC = storyboard.instantiateViewController(withIdentifier: "MovieDetailsViewController") if let movieModel = data as? MovieModel, let vc = destinationVC as? MovieDetailsViewController { vc.movieModel = movieModel } case .webViewController: destinationVC = storyboard.instantiateViewController(withIdentifier: "WebViewController") if let youtubeURL = data as? URL, let vc = destinationVC as? WebViewController { vc.youtubeURL = youtubeURL } } navigationController?.pushViewController(destinationVC, animated: true) } func styleNavigationController() { let isTranslucent = true if isTranslucent { navigationController?.navigationBar.setBackgroundImage(UIImage(named: "navigation_gradient"), for: .default) } navigationController?.navigationBar.isTranslucent = isTranslucent } }
[ -1 ]
78a02cd77dc956fb6c0d44d6f107830c47715e21
e5c000f387539690a86544e438fe5be0d4ac5cb9
/TreIRad/DoWeHaveAWinner.swift
15c361ed8ce50334fa8325e33bc85b8c34e20719
[]
no_license
zakariamosa/TreIRad
7d25eb85e5eabfc148a54e000c8ab2aeb4cd5f84
0124a379ea3af9ba26668dc6a4d47a64b9e9aac4
refs/heads/main
2023-02-15T10:51:54.867319
2021-01-15T08:33:49
2021-01-15T08:33:49
321,686,140
0
0
null
null
null
null
UTF-8
Swift
false
false
595
swift
// // DoWeHaveAWinner.swift // TreIRad // // Created by Zakaria Mosa on 2020-12-19. // import Foundation class DoWeHaveAWinner{ var gameWinningCases=[[Int]]() init() { self.gameWinningCases=[ [11,12,13], [21,22,23], [31,32,33], [11,21,31], [12,22,32], [13,23,33], [11,22,33], [13,22,31] ] } }
[ -1 ]
c6005ae634e37461262a4cfe31b6445ae934852f
43f0f84cba581ab38ccf1e4608e49bd952af67b5
/DataSource/TableView/TableViewDataSourceWithHeaderFooterViews.swift
cd25f584235da91ea98a7d70b901ebedd48d1b34
[ "MIT" ]
permissive
Ankit-Aggarwal/DataSource
0e10b9db80be0dd67f69f9b60762d67bf2c72e18
79f66bc13b23975be12496157efd072dc23283a9
refs/heads/master
2021-01-22T05:47:33.570377
2018-04-10T05:57:52
2018-04-10T06:28:16
92,496,777
0
1
null
2017-09-22T05:17:03
2017-05-26T09:49:09
Swift
UTF-8
Swift
false
false
2,202
swift
// // TableViewDataSourceWithHeaderFooterViews.swift // DataSource // // Created by Vadim Yelagin on 14/06/15. // Copyright (c) 2015 Fueled. All rights reserved. // import UIKit /// A `TableViewDataSource` subclass that additionally provides /// views for headers and footers of tableView sections. /// /// `TableViewDataSourceWithHeaderFooterViews` needs to be the tableView's delegate. /// /// Header and footer views are dequeued from a tableView /// by reuseIdentifiers returned by `reuseIdentifierForHeaderItem` /// and `reuseIdentifierForFooterItem` function. /// /// DataSource supplementary items of `UICollectionElementKindSectionHeader` kind /// are used as section header titles. /// /// DataSource supplementary items of `UICollectionElementKindSectionFooter` kind /// are used as section footer titles. open class TableViewDataSourceWithHeaderFooterViews: TableViewDataSource, UITableViewDelegate { public final var reuseIdentifierForHeaderItem: (Int, Any) -> String = { _ in "DefaultHeaderView" } public final var reuseIdentifierForFooterItem: (Int, Any) -> String = { _ in "DefaultFooterView" } open func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView? { guard let item = self.dataSource.supplementaryItemOfKind(UICollectionElementKindSectionHeader, inSection: section) else { fatalError("Expected item for table view header in section \(section), but found nil") } let reuseIdentifier = self.reuseIdentifierForHeaderItem(section, item) let view = tableView.dequeueReusableHeaderFooterView(withIdentifier: reuseIdentifier)! configureReceiver(view, withItem: item) return view } open func tableView(_ tableView: UITableView, viewForFooterInSection section: Int) -> UIView? { guard let item = self.dataSource.supplementaryItemOfKind(UICollectionElementKindSectionFooter, inSection: section) else { fatalError("Expected item for table view footer in section \(section), but found nil") } let reuseIdentifier = self.reuseIdentifierForFooterItem(section, item) let view = tableView.dequeueReusableHeaderFooterView(withIdentifier: reuseIdentifier)! configureReceiver(view, withItem: item) return view } }
[ -1 ]
7219a93ee9ea119055ed79bb99e01144be32081c
6a6bc32236ddd68a9a5f9987ebe3076288a05535
/AlcoolOuGasolina/AppDelegate.swift
5d9fb8e51c78e5059d6b73d18cacb11cf48aadb1
[]
no_license
dudamello/AlcoolOuGasolina
0e8284a6f7673032a4df71414a08048a94cb9a96
f38654fb27c1e7606427401406cb41f9a277ea63
refs/heads/master
2020-06-20T09:23:09.547248
2019-07-15T21:46:18
2019-07-15T21:46:18
197,076,370
0
0
null
null
null
null
UTF-8
Swift
false
false
2,182
swift
// // AppDelegate.swift // AlcoolOuGasolina // // Created by Eduarda Mello on 25/02/19. // Copyright © 2019 Curso IOS. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 229388, 294924, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 352284, 229405, 278556, 278559, 229408, 278564, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 286774, 229432, 286776, 286778, 319544, 204856, 352318, 286791, 237640, 278605, 286797, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 278648, 131192, 237693, 327814, 131209, 303241, 417930, 311436, 303244, 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, 287032, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 287054, 319822, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 279010, 287202, 279015, 172520, 319978, 279020, 172526, 279023, 311791, 172529, 279027, 319989, 164343, 180727, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 287238, 172552, 303623, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 172655, 172656, 189039, 295538, 189040, 172660, 189044, 287349, 352880, 287355, 287360, 295553, 287365, 311942, 303751, 295557, 352905, 311946, 279178, 287371, 311951, 287377, 172691, 311957, 287381, 221850, 287386, 164509, 303773, 230045, 172702, 287390, 287394, 172705, 303780, 172707, 287398, 295583, 279208, 287400, 172714, 295595, 279212, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 279231, 287427, 312006, 107208, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 279258, 303835, 213724, 189149, 303838, 287450, 279267, 312035, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 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, 304005, 295813, 213895, 320391, 304007, 304009, 304011, 230284, 304013, 279438, 189325, 213902, 189329, 295822, 304019, 295825, 189331, 58262, 304023, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 304063, 238528, 304065, 213954, 189378, 156612, 295873, 213963, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 295949, 197645, 230413, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 238641, 312374, 238652, 238655, 230465, 238658, 336964, 296004, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 279661, 205934, 164973, 312432, 279669, 337018, 189562, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 238766, 165038, 230576, 238770, 304311, 230592, 279750, 312518, 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, 230679, 320792, 230681, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 222525, 296253, 312639, 296255, 230718, 296259, 378181, 296262, 230727, 238919, 320840, 296264, 296267, 296271, 222545, 230739, 312663, 337244, 222556, 230752, 312676, 230760, 173418, 230763, 410987, 148843, 230768, 296305, 312692, 230773, 279929, 304506, 181626, 304505, 181631, 312711, 312712, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 288176, 173488, 279985, 312755, 296373, 279991, 312759, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 370130, 288212, 222676, 288214, 280021, 239064, 288217, 329177, 280027, 288220, 288218, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 402942, 296446, 148990, 321022, 296450, 206336, 230916, 230919, 214535, 304651, 370187, 304653, 230923, 402969, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 370279, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 313027, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 280276, 313044, 321239, 280283, 313052, 288478, 313055, 321252, 313066, 280302, 288494, 280304, 313073, 321266, 288499, 419570, 288502, 280314, 288510, 124671, 67330, 280324, 198405, 288519, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 288576, 345921, 280388, 337732, 304968, 280393, 280402, 173907, 313176, 42842, 280419, 321381, 296809, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 10170, 296890, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 354265, 354270, 239586, 313320, 354281, 231404, 124913, 165876, 321528, 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, 280651, 354382, 288848, 280658, 215123, 354390, 288855, 288859, 280669, 313438, 280671, 149599, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 313458, 280691, 215154, 149618, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 141459, 280725, 313498, 100520, 288936, 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, 125171, 157940, 280819, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 305464, 280891, 289087, 280897, 280900, 239944, 305480, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 215387, 354653, 313700, 280937, 313705, 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, 436684, 281045, 281047, 215526, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 330244, 240132, 281095, 338440, 150025, 223752, 223749, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 158317, 19053, 313973, 281210, 297594, 158347, 264845, 182926, 133776, 182929, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 183172, 158596, 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, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 207937, 314433, 314441, 207949, 322642, 314456, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 298306, 380226, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 298365, 290174, 306555, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 314773, 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, 323090, 282130, 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, 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, 307009, 413506, 241475, 307012, 148946, 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, 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, 307211, 282639, 290835, 282645, 241693, 282654, 241701, 102438, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 307278, 192596, 176213, 307287, 315482, 217179, 315483, 192605, 233567, 200801, 299105, 217188, 299109, 307303, 315495, 356457, 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, 299185, 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, 176435, 307508, 315701, 307510, 332086, 307512, 168245, 307515, 282942, 307518, 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, 283033, 291226, 242075, 315801, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 127407, 291247, 299440, 299444, 127413, 283062, 291254, 127417, 291260, 127421, 283069, 127424, 299457, 127429, 127431, 176592, 315856, 315860, 176597, 127447, 283095, 127449, 299481, 176605, 242143, 291299, 127460, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 135672, 233979, 291323, 127490, 291330, 283142, 127497, 233994, 135689, 291341, 233998, 234003, 127509, 234006, 152087, 127511, 283161, 242202, 135707, 234010, 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, 135844, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 185074, 226037, 283382, 234231, 316151, 234236, 226045, 234239, 242431, 209665, 234242, 299778, 242436, 226053, 234246, 226056, 234248, 291593, 242443, 234252, 242445, 234254, 291601, 234258, 242450, 242452, 234261, 348950, 201496, 234264, 234266, 234269, 283421, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 292433, 234313, 316233, 316235, 234316, 283468, 242511, 234319, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 291711, 234368, 234370, 201603, 291714, 234373, 226182, 234375, 291716, 308105, 226185, 234379, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 324508, 234396, 226200, 234398, 291742, 234401, 291747, 291748, 234405, 291750, 234407, 324518, 324520, 234410, 324522, 226220, 291756, 291754, 324527, 291760, 234417, 201650, 324531, 234414, 234422, 226230, 275384, 324536, 234428, 291773, 234431, 242623, 324544, 324546, 234434, 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, 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, 308291, 234563, 234568, 234570, 316491, 300108, 234572, 234574, 300115, 234580, 234581, 242777, 234585, 275545, 234590, 234593, 234595, 300133, 234597, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 275579, 234620, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 226453, 275606, 234647, 275608, 308373, 234650, 324757, 308379, 234653, 324766, 119967, 300189, 234648, 283805, 234657, 324768, 234661, 283813, 300197, 234664, 242852, 275626, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 226500, 234692, 300229, 308420, 283844, 308422, 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, 300289, 292097, 161027, 300292, 300294, 275719, 177419, 300299, 283917, 300301, 349451, 177424, 242957, 275725, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 243003, 283963, 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, 144812, 284076, 144814, 144820, 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, 226802, 292338, 316917, 308727, 292343, 300537, 316933, 316947, 308757, 308762, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 194101, 316983, 284215, 194103, 284218, 226877, 284223, 284226, 243268, 292421, 226886, 284231, 128584, 284228, 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, 276086, 284278, 292470, 292473, 284283, 276093, 284286, 276095, 284288, 292481, 284290, 325250, 284292, 292485, 292479, 276098, 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, 358126, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 325408, 300832, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 292681, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 300912, 284529, 292721, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 284564, 358292, 399252, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 317353, 276395, 292776, 292784, 276402, 358326, 161718, 276410, 276411, 358330, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 350186, 292843, 276460, 292845, 276464, 178161, 227314, 276466, 350200, 276472, 325624, 317435, 276476, 276479, 276482, 350210, 276485, 317446, 178181, 276490, 350218, 292876, 350222, 276496, 317456, 317458, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 178224, 243762, 309298, 325685, 325689, 235579, 276539, 235581, 178238, 325692, 276544, 243779, 284739, 292934, 243785, 276553, 350293, 350295, 194649, 227418, 309337, 350299, 350302, 227423, 194654, 178273, 194657, 227426, 194660, 276579, 227430, 276583, 309346, 309348, 309350, 309352, 309354, 350308, 276590, 350313, 350316, 350321, 284786, 276595, 301167, 350325, 227440, 350328, 292985, 301178, 350332, 292989, 292993, 301185, 350339, 317570, 317573, 350342, 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, 317674, 325867, 243948, 194801, 227571, 309491, 309494, 243960, 276735, 227583, 227587, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 276843, 293227, 276848, 293232, 186744, 211324, 227709, 285061, 366983, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 129486, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 293370, 301562, 317951, 309764, 301575, 121352, 236043, 317963, 342541, 55822, 113167, 317971, 309779, 309781, 277011, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 219714, 129603, 318020, 301636, 301639, 301643, 277071, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 121458, 277106, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 318094, 334476, 277136, 277139, 227992, 334488, 285340, 318108, 227998, 318110, 137889, 383658, 285357, 318128, 277170, 342707, 154292, 293555, 277173, 318132, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 56045, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 293666, 285474, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 285499, 301884, 310080, 293696, 277317, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 15224, 236408, 277368, 416639, 416640, 113538, 310147, 416648, 39817, 187274, 277385, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 228330, 318442, 228332, 277486, 326638, 351217, 318450, 293876, 293877, 285686, 302073, 285690, 121850, 293882, 302075, 244731, 293887, 277504, 277507, 277511, 277519, 293908, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 310344, 277577, 293960, 277583, 203857, 310355, 293971, 310359, 236632, 277594, 138332, 277598, 203872, 277601, 285792, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 285821, 302205, 392326, 285831, 253064, 302218, 285835, 294026, 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, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 285958, 138505, 228617, 318742, 204067, 277798, 130345, 277801, 113964, 285997, 384302, 285999, 277804, 113969, 277807, 277811, 318773, 318776, 277816, 286010, 277819, 294204, 417086, 277822, 286016, 294211, 302403, 384328, 277832, 277836, 146765, 294221, 326991, 294223, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 130486, 310710, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 64966, 245191, 163272, 310727, 302534, 277959, 292968, 302541, 277963, 302543, 277966, 310737, 277971, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 310764, 286188, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 310780, 40448, 228864, 286214, 228871, 302603, 65038, 302614, 286233, 302617, 302621, 187936, 146977, 286240, 187939, 40484, 294435, 286246, 40486, 40488, 278057, 245288, 40491, 294439, 294440, 294443, 310831, 294445, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 212560, 228944, 400976, 40533, 147032, 40537, 40539, 40541, 278109, 40544, 40548, 40550, 40552, 286313, 40554, 286312, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 294537, 310925, 286354, 278163, 302740, 122517, 278168, 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, 188252, 237409, 229233, 294776, 360317, 294785, 327554, 360322, 40840, 40851, 294803, 188312, 294811, 319390, 294817, 319394, 40865, 294821, 311209, 180142, 294831, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 278516, 311283, 278519, 237562 ]
a99808070bfecbfa82f98df9f6325e6fe301a7d0
44cf8c6658e4eb96a16e153bd855404dd9eae229
/MiraLite/polyline maps.swift
94423c56baf4ece4236d7ae71ceb2677e2834d3a
[]
no_license
artIU7/NavHere
b7c81df4ab82738772ef98347b65a8ade6cfe2c5
74177c47f887c1c8d84248447605f0e6e94b2396
refs/heads/master
2022-11-23T16:07:44.231393
2020-07-24T21:00:00
2020-07-24T21:00:00
279,807,975
0
0
null
null
null
null
UTF-8
Swift
false
false
1,136
swift
// // polyline maps.swift // MiraLite // // Created by Артем Стратиенко on 04.06.2020. // Copyright © 2020 Артем Стратиенко. All rights reserved. // import Foundation import heresdk import UIKit extension ViewController { func createMapPolyline(arrayPolyline : [GeoCoordinates]) -> MapPolyline? { let coordinates = arrayPolyline // We are sure that the number of vertices is greater than two, so it will not crash. if coordinates.count < 2 { return nil } let geoPolyline = try! GeoPolyline(vertices: coordinates) let color_start = #colorLiteral(red: 0.1215686277, green: 0.01176470611, blue: 0.4235294163, alpha: 1) _ = Color(red: 0x00, green: 0x90, blue: 0x8A, alpha: 0xA0) let mapPolyline = MapPolyline(geometry: geoPolyline, widthInPixels: 5, color: Color(color_start)) let metadata = Metadata() metadata.setString(key: "key_poly", value: "Poly #\(countPoly)") mapPolyline.metadata = metadata return mapPolyline } }
[ -1 ]
7a8e7671d6e645c675e453210563e951c8c3de0d
df4e51930c02a450c38cd7f48c060c40afde4861
/MyPlayground/ViewController.swift
306703b3f339317e7fc7ef3b2c33be7536adf002
[]
no_license
hhcszgdd/DDPlayground
f52ef641fe0ae2b448573093ae23eb506f043fe6
ae60ca964ad06c5abe422de17b1ba1fdea8ddb2e
refs/heads/master
2021-02-22T02:43:46.149918
2020-06-23T10:47:41
2020-06-23T10:47:41
245,368,272
0
0
null
2020-03-06T08:46:16
2020-03-06T08:36:16
Swift
UTF-8
Swift
false
false
3,237
swift
// // ViewController.swift // MyPlayground // // Created by JohnConnor on 2020/2/29. // Copyright © 2020 JohnConnor. All rights reserved. // import UIKit class ViewController: DDViewController { lazy var tableView: UITableView = { let result = UITableView(frame: self.view.bounds, style: UITableView.Style.plain) result.delegate = self result.dataSource = self return result }() override var naviBarStyle: DDNavigationBarStyle { return .green } lazy var emitterView: DDEmojiEmitterView = { let result = DDEmojiEmitterView(frame: view.bounds) view.addSubview(result) return result }() override func viewDidLoad() { super.viewDidLoad() view.add(subview: tableView, pin: .all) if #available(iOS 11.0, *) { view.backgroundColor = UIColor(named: "DDDarkAndWhireColor") } else { // Fallback on earlier versions view.backgroundColor = UIColor.darkGray } } } extension ViewController : UITableViewDelegate, UITableViewDataSource { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return DDAction.allCases.count; } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell: UITableViewCell! if let c = tableView.dequeueReusableCell(withIdentifier: "DDCell") { cell = c }else { cell = UITableViewCell(style: UITableViewCell.CellStyle.subtitle, reuseIdentifier: "DDCell") } cell.textLabel?.text = DDAction.allCases[indexPath.row].rawValue return cell } @available(iOS 13.0, *) func tableView(_ tableView: UITableView, contextMenuConfigurationForRowAt indexPath: IndexPath, point: CGPoint) -> UIContextMenuConfiguration? { let actionProvider : UIContextMenuActionProvider = { suggest in let editMenu = UIMenu(title: "Edit...", children: [ UIAction(title: "Copy", handler: { (action) in print("copy") }), UIAction(title: "paste", handler: { (action) in print("paste") }) ]) return UIMenu(title: "share...", children: [ UIAction(title: "share", handler: { (action) in print("share") }), editMenu, UIAction(title: "delete", handler: { (action) in print("delete") }) ]) } return UIContextMenuConfiguration(identifier: "Unique-ID" as NSCopying, previewProvider: nil , actionProvider: actionProvider) } func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { willBePerformAction(action: DDAction.allCases[indexPath.row]) } } extension ViewController { } extension ViewController { func changeAlongToPushAnimation() { transitionCoordinator?.animate(alongsideTransition: { (context) in // make some change }, completion: { (context) in }) } }
[ -1 ]
55220b7f60cf93c171aed3fa687ec67cb6126aad
44b97866d92b2e638e2fab2840dd135501bdc8b6
/Split/Common/Extensions/Data+StringRepresentation.swift
4f32688228ff463b43b03098c806db41d90475c9
[ "Apache-2.0" ]
permissive
crtgregoric/ios-client
02cf901eebb83f19a1bde6fbb97e981a6fb9edc1
e158d85a604c95cd67ef884fc80f7120cd90bc04
refs/heads/master
2023-04-04T13:34:28.394376
2021-03-12T00:38:46
2021-03-12T00:38:46
351,112,544
0
0
NOASSERTION
2021-03-24T14:35:54
2021-03-24T14:35:53
null
UTF-8
Swift
false
false
268
swift
// // Data+StringDebug.swift // Split // // Created by Javier L. Avrudsky on 6/11/18. // import Foundation extension Data { var stringRepresentation: String { return String(data: self, encoding: .utf8) ?? "<< Invalid string representation >>" } }
[ -1 ]
3cf076b77e788ee72c7176362691bbb324defc42
a0974adc38978e47aaf902d1d9e05df8029f44ac
/Shared/RFSLeaderBoard.swift
93f898a169480cd6b5f45318b5fc3256c5ccd6fb
[]
no_license
kbulavenko/RaceForSurvivalFinal
b95a17e250cffa9ffc234c95bf21e1dc138a593c
8b4f77efaa4d1b4b9a132210ce6732c619977578
refs/heads/master
2021-05-15T16:56:44.380238
2017-10-19T14:38:18
2017-10-19T14:38:18
107,557,837
0
0
null
null
null
null
UTF-8
Swift
false
false
1,912
swift
// // RFSLeaderBoard.swift // RaceForSurvivalFinal // // Created by Z on 20.06.17. // Copyright © 2017 Z. All rights reserved. // import UIKit import SpriteKit //import RFSLeaderBoardTableView class RFSLeaderBoard: SKScene { var gameTableView = RFSLeaderBoardTableView() //init(frame: CGRect(x:20,y:50,width:280,height:200) //, style: UITableViewStyle) private var label : SKLabelNode? override func didMove(to view: SKView) { self.label = self.childNode(withName: "//helloLabel") as? SKLabelNode if let label = self.label { label.alpha = 0.0 label.run(SKAction.fadeIn(withDuration: 2.0)) } // Table setup gameTableView.register(UITableViewCell.self, forCellReuseIdentifier: "cell") gameTableView.frame=CGRect(x:20,y:50,width:280,height:200) gameTableView.backgroundColor? = UIColor.init(colorLiteralRed: 0.1, green: 0.1, blue: 0.1, alpha: 0) //gameTableView. view.addSubview(gameTableView) gameTableView.reloadData() } override func touchesBegan(_ touches: Set<UITouch>, with event: UIEvent?) { gameTableView.removeFromSuperview() let menuScene = RFSMenuScene.newRFSMenuScene() let transition = SKTransition.flipVertical(withDuration: 1.0) menuScene.scaleMode = SKSceneScaleMode.aspectFill self.view?.presentScene(menuScene, transition: transition) } class func newRFSLeaderBoardScene() -> RFSLeaderBoard { // Load 'RFSMenuScene.sks' as an SKScene. guard let scene = SKScene(fileNamed: "LeaderBoard") as? RFSLeaderBoard else { print("Failed to load RFSMenuScene.sks") abort() } // Set the scale mode to scale to fit the window scene.scaleMode = .aspectFill return scene } }
[ -1 ]
a48becd653be5a15ed3727eb65b8bfd5849322bd
b6da2bc72c2bb4140db4b5a1f3fad719c2211aa1
/Newsyyy/Views/Home/HomeViewModel.swift
796c11d73bc5c80ce07073024661f8fba1bd84a7
[]
no_license
apramodya/Newsyyy
06e1bcd607d992643c07723e1f37d3df62223805
1a65c32c8bbe1033e53448b3837cb4b1fd5659f9
refs/heads/main
2023-02-24T13:29:18.741928
2021-01-29T17:12:38
2021-01-29T17:12:38
331,052,260
0
0
null
null
null
null
UTF-8
Swift
false
false
3,227
swift
// // HomeViewModel.swift // Newsyyy // // Created by Pramodya Abeysinghe on 2021-01-20. // import Combine class HomeViewModel: BaseViewModel, ObservableObject { @Published var articlesFeaturedByCountry: [Article] = [] @Published var articlesFeaturedBySource: [Article] = [] @Published var sources: [Source] = [] @Published var allArticlesEmpty: Bool = true @Published var sourcesAreEmpty: Bool = true @Published var loading: Bool = false @Published var errorMessage: String? var dataStore = DataStore.shared private var subscriptions = Set<AnyCancellable>() } // MARK: Network requests extension HomeViewModel { func fetchArticlesByCountry() { let countryCode = dataStore.getCountry().code HeadlinesService.shared.fetchHeadlines(byCountry: countryCode) .sink(receiveCompletion: { [self] completion in self.loading = false switch completion { case .failure(let error): errorMessage = handleAPIError(for: error) case .finished: break } }, receiveValue: { (articles) in if let articles = articles { self.allArticlesEmpty = false self.articlesFeaturedByCountry = articles .filter({!$0.authorLabel.hasPrefix("http")}) } }) .store(in: &subscriptions) } func fetchArticlesBySource() { let sourceCode = dataStore.getSourceCode() HeadlinesService.shared.fetchHeadlines(bySources: sourceCode) .sink(receiveCompletion: { [self] completion in self.loading = false switch completion { case .failure(let error): errorMessage = handleAPIError(for: error) case .finished: break } }, receiveValue: { (articles) in if let articles = articles { self.allArticlesEmpty = false self.articlesFeaturedBySource = articles .filter({!$0.authorLabel.hasPrefix("http")}) } }) .store(in: &subscriptions) } func fetchSources() { let countryCode = dataStore.getCountry().code let languageCode = dataStore.getLanguage().code SourcesService.shared.fetchSources(byCountry: countryCode, language: languageCode) .sink(receiveCompletion: { [self] completion in self.loading = false switch completion { case .failure(let error): errorMessage = handleAPIError(for: error) case .finished: break } }, receiveValue: { (sources) in if let sources = sources { self.sourcesAreEmpty = false let randomSources = sources.shuffled().prefix(12) self.sources = Array(randomSources) } }) .store(in: &subscriptions) } }
[ -1 ]
209a5b71c1c20a196402d411726651cab62ab762
13b2809f8623e2832a344beeedd71aef614fed85
/Source/Game/Nodes/Explosions/ExplosionNode.swift
6d6d5e47c26cf3146843084cc6b900541dd73feb
[]
no_license
colinta/FlatoutWar
2470904f2c247d8605baffc6daea172ebc986246
be45a7637a09e7607289d4668ca82fb860297851
refs/heads/master
2023-08-15T07:40:34.761127
2021-09-23T15:17:33
2021-09-23T15:18:08
409,665,368
0
0
null
null
null
null
UTF-8
Swift
false
false
1,933
swift
//// /// ExplosionNode.swift // private let DefaultDistance: CGFloat = 30 private let DefaultDuration: CGFloat = 1 private func radiusToLength(_ radius: CGFloat) -> CGFloat { return max(radius / 10, CGFloat(10)) } class ExplosionNode: Node { static let SmallExplosion: CGFloat = 30 private var sprites: [SKSpriteNode] = [] private var phase: CGFloat = 0 private var duration: CGFloat private var lineLength: CGFloat required init(radius: CGFloat = DefaultDistance, duration: CGFloat = DefaultDuration, lineLength: CGFloat? = nil) { self.duration = duration if let lineLength = lineLength { self.lineLength = lineLength } else { self.lineLength = radiusToLength(radius) } super.init() self.size = CGSize(r: radius) z = .bottom let numSprites = Int(ceil(radius / 4)) for _ in 0..<numSprites { let sprite = SKSpriteNode(id: .none) sprites << sprite self << sprite } } convenience required init() { self.init(radius: DefaultDistance) } required init?(coder: NSCoder) { fatalError("init(coder:) has not been implemented") } override func update(_ dt: CGFloat) { phase += dt / duration guard phase <= 1 else { removeFromParent() return } let hue = Int(round(interpolate(phase, from: (0, 1), to: (48, 0)))) let distance = phase * radius let length = min(distance, lineLength) let alpha = min(1, 4 * (1 - phase)) for (i, sprite) in sprites.enumerated() { let angle = CGFloat(i) / CGFloat(sprites.count) * TAU sprite.textureId(.hueLine(length: length, hue: hue)) sprite.position = CGPoint(r: distance, a: angle) sprite.zRotation = angle sprite.alpha = alpha } } }
[ -1 ]
e1173345d848a542948f1a8ce5570290a1184d0a
7b25cd01f6c31baccba7b6f78cd5fb654adfee38
/Business Card/Helpers/Notifications.swift
666d4c020d5f41885a6797fd860e20408258fec8
[]
no_license
Arsalan134/Business-Card
e4526835056a9bf6bac9c1f9335cc4f43e36510f
c49b7d44619e99e4d2d56cd10c0e14e3389e627f
refs/heads/master
2021-01-03T11:04:15.125189
2020-02-12T16:01:50
2020-02-12T16:01:50
240,053,446
0
0
null
null
null
null
UTF-8
Swift
false
false
277
swift
// // Notifications.swift // Business Card // // Created by Arsalan Iravani on 2/5/19. // Copyright © 2019 Arsalan Iravani. All rights reserved. // import Foundation extension Notification.Name { static let newCardWasAdded = Notification.Name("newCardWasAdded") }
[ -1 ]
6173c8ff976491a249456efea10345cb207dcded
1868a0bbf42a75c01b6ddd6db251ae94730961d6
/Tests/LinuxMain.swift
7c35f13e1c99fdb81ab4bb588f6e43b9039f5a19
[]
no_license
xho95/ShapeKit
c5960fbd93d46bf57dee25ae3f2bec8f44ec7103
7d8e13c1e68a80fa08edb52010ede8d6b2e7356f
refs/heads/main
2023-02-18T05:50:16.558443
2021-01-14T04:35:31
2021-01-14T04:35:31
320,965,384
0
0
null
2020-12-16T03:38:25
2020-12-13T02:09:06
Swift
UTF-8
Swift
false
false
118
swift
import XCTest import ShapeKitTests var tests = [XCTestCaseEntry]() tests += ShapeKitTests.allTests() XCTMain(tests)
[ 248320, 254467, 411140, 340485, 145938, 238613, 35352, 192029, 323613, 217120, 159264, 342562, 241184, 438820, 30251, 199216, 321591, 162362, 54336, 175173, 187467, 352334, 332368, 421456, 184406, 248924, 343655, 345191, 312943, 126575, 337010, 338547, 253046, 346746, 245377, 160899, 245389, 330390, 175774, 181929, 248489, 315575, 191672, 153274, 240314, 350909, 222401, 225986, 315585, 354011, 352992, 317667, 344803, 323818, 329453, 378095, 337651, 315124, 194809, 353018, 126210, 319236, 162565, 208138, 202506, 148237, 136462, 343309, 353560, 347418, 311585, 348961, 342307, 254246, 52521, 347444, 354103, 30010, 368445, 56638, 325452, 345420, 251215, 323408, 253786, 341854, 253794, 246117, 211814, 316780, 151920, 253810, 240501, 337272, 151932, 349584, 212378, 253342, 178088, 305586, 235958, 344504, 150970, 326592, 324041, 340946, 338389, 363479, 343519, 319458, 319462, 351207, 340969, 313324, 350702, 343027, 347125, 219129, 342525 ]
2c37d40603960608725a260a9a78e9cd44c41598
443d064b7b59e979c03a21784d4d8c146e136760
/CoordinatorPattern/Common/Extension/SceneDelegateExtension.swift
7562acd7204a271886334c020d5fb14b77a60039
[]
no_license
Joule87/CoordinatorPattern
2b7a39a82f0cb6b37ccb1f9fbb93804600d29a8b
f9033f72ecc46175488bc763a24eaf7827a85349
refs/heads/master
2022-04-25T22:40:49.642850
2020-04-29T20:08:56
2020-04-29T20:08:56
259,405,474
0
0
null
null
null
null
UTF-8
Swift
false
false
355
swift
// // SceneDelegateExtension.swift // CoordinatorPattern // // Created by Julio Collado on 4/29/20. // Copyright © 2020 julio. All rights reserved. // import UIKit @available(iOS 13.0, *) extension SceneDelegate { static var shared: SceneDelegate { return UIApplication.shared.connectedScenes.first!.delegate as! SceneDelegate } }
[ -1 ]
0b259de36e7de79bc68b068d97154738efe032f6
921d2c04071c167b48fc8753d2fd09483da233fb
/21SingletonCache/drinksCache/drinksCache/AppDelegate.swift
3dde65407d5a3ff16a9bc86ea2a381be5e9fcb30
[]
no_license
jeka2/SeptDemo
61b72133e4ab6e64946a500a78842aded5a8311e
18ca9d229d9f582dc2db7858068844eafdc0126c
refs/heads/main
2023-08-29T15:02:14.595673
2021-10-26T18:38:39
2021-10-26T18:38:39
421,831,190
0
0
null
null
null
null
UTF-8
Swift
false
false
1,342
swift
// // AppDelegate.swift // drinksCache // // Created by Luat on 8/23/21. // import UIKit @main class AppDelegate: UIResponder, UIApplicationDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
[ 393222, 393224, 393230, 393250, 344102, 393261, 393266, 213048, 385081, 376889, 393275, 376905, 327756, 254030, 286800, 368727, 180313, 368735, 180320, 376931, 286831, 368752, 286844, 417924, 262283, 286879, 286888, 377012, 327871, 377036, 180431, 377046, 418007, 418010, 377060, 327914, 205036, 393456, 393460, 418043, 336123, 385280, 336128, 262404, 180490, 164106, 368911, 262416, 262422, 377117, 262436, 336180, 262454, 393538, 262472, 344403, 213332, 65880, 262496, 418144, 262499, 213352, 246123, 262507, 262510, 213372, 385419, 393612, 262550, 262552, 385440, 385443, 262566, 385451, 262573, 393647, 385458, 262586, 344511, 262592, 360916, 369118, 328177, 328179, 328182, 328189, 328192, 164361, 410128, 393747, 254490, 188958, 385570, 33316, 377383, 197159, 352821, 197177, 418363, 188987, 369223, 385609, 385616, 352864, 369253, 262760, 352874, 352887, 254587, 377472, 148105, 377484, 352918, 98968, 344744, 361129, 336555, 385713, 434867, 164534, 336567, 328378, 164538, 328386, 352968, 344776, 352971, 418507, 352973, 385742, 385748, 361179, 189153, 369381, 361195, 418553, 344831, 336643, 344835, 344841, 361230, 336659, 418580, 418585, 434970, 369435, 418589, 262942, 418593, 336675, 328484, 418598, 418605, 336696, 361273, 328515, 328519, 361288, 336711, 328522, 336714, 426841, 254812, 361309, 197468, 361315, 361322, 328573, 377729, 369542, 222128, 345035, 386003, 345043, 386011, 386018, 386022, 435187, 328702, 328714, 361489, 386069, 386073, 336921, 336925, 345118, 377887, 345133, 345138, 386101, 361536, 197707, 189520, 345169, 156761, 361567, 148578, 345199, 386167, 361593, 410745, 361598, 214149, 345222, 386186, 337047, 345246, 214175, 337071, 337075, 386258, 328924, 66782, 222437, 386285, 328941, 386291, 345376, 353570, 345379, 410917, 345382, 337205, 345399, 378169, 369978, 337222, 337229, 337234, 263508, 402791, 345448, 271730, 378227, 271745, 181638, 353673, 181643, 181649, 181654, 230809, 181670, 181673, 181678, 181681, 337329, 181684, 181690, 361917, 181696, 337349, 181703, 337365, 271839, 329191, 361960, 329194, 116210, 337398, 337415, 329226, 419339, 419343, 419349, 345625, 419355, 370205, 419359, 394786, 419362, 370213, 419368, 419376, 206395, 214593, 419400, 419402, 353867, 419406, 419410, 394853, 345701, 222830, 370297, 403075, 345736, 198280, 403091, 345749, 419483, 345757, 345762, 419491, 345765, 419497, 419501, 370350, 419506, 419509, 419512, 337592, 419517, 337599, 419527, 419530, 419535, 272081, 419542, 394966, 419544, 181977, 345818, 419547, 419550, 419559, 337642, 419563, 337645, 370415, 337659, 141051, 337668, 362247, 395021, 362255, 116509, 345887, 378663, 345905, 354106, 354111, 247617, 354117, 370503, 329544, 370509, 354130, 247637, 337750, 370519, 313180, 354142, 354150, 354156, 345964, 345967, 345970, 345974, 403320, 354172, 247691, 337808, 247700, 329623, 436126, 436132, 337833, 362413, 337844, 346057, 247759, 346063, 329697, 354277, 190439, 247789, 354313, 346139, 436289, 378954, 395339, 338004, 100453, 329832, 329855, 329867, 329885, 411805, 346272, 362660, 100524, 387249, 379066, 387260, 256191, 395466, 346316, 411861, 411864, 411868, 411873, 379107, 411876, 387301, 346343, 338152, 387306, 387312, 346355, 436473, 321786, 379134, 411903, 411916, 379152, 395538, 387349, 338199, 387352, 182558, 338211, 395566, 248111, 362822, 436555, 190796, 379233, 354673, 321910, 248186, 420236, 379278, 272786, 354727, 338352, 330189, 338381, 338386, 338403, 338409, 248308, 199164, 330252, 199186, 330267, 354855, 10828, 199249, 346721, 174695, 248425, 191084, 338543, 191092, 346742, 330383, 354974, 150183, 174774, 248504, 174777, 223934, 355024, 273108, 355028, 264918, 183005, 256734, 436962, 338660, 338664, 264941, 363251, 207619, 264964, 338700, 256786, 199452, 363293, 396066, 346916, 396069, 215853, 355122, 355131, 355140, 355143, 338763, 355150, 330580, 355166, 265055, 265058, 355175, 387944, 355179, 330610, 330642, 355218, 412599, 207808, 379848, 396245, 330710, 248792, 248798, 347105, 257008, 183282, 265207, 330748, 265214, 330760, 330768, 248862, 396328, 347176, 158761, 199728, 396336, 330800, 396339, 339001, 388154, 388161, 347205, 330826, 412764, 339036, 257120, 265320, 248951, 420984, 330889, 347287, 248985, 339097, 44197, 380070, 339112, 249014, 126144, 330958, 330965, 265432, 265436, 388319, 388347, 175375, 159005, 175396, 208166, 273708, 347437, 372015, 347441, 372018, 199988, 44342, 175415, 396600, 437566, 175423, 437570, 437575, 437583, 331088, 437587, 331093, 396633, 175450, 437595, 175457, 208227, 175460, 175463, 265580, 437620, 175477, 249208, 175483, 175486, 249214, 175489, 249218, 249224, 249227, 249234, 175513, 175516, 396705, 175522, 355748, 380332, 396722, 208311, 372163, 216517, 380360, 216522, 339404, 372176, 208337, 339412, 413141, 339417, 339420, 249308, 339424, 249312, 339428, 339434, 249328, 69113, 372228, 208398, 380432, 175635, 265778, 265795, 396872, 265805, 224853, 224857, 257633, 224870, 372327, 257646, 372337, 224884, 224887, 224890, 224894, 224897, 372353, 216707, 126596, 421508, 224904, 224909, 11918, 159374, 224913, 126610, 339601, 224916, 224919, 126616, 224922, 208538, 224926, 224929, 224932, 224936, 257704, 224942, 257712, 224947, 257716, 257720, 224953, 257724, 224959, 257732, 224965, 224969, 339662, 224975, 257747, 224981, 224986, 257761, 224993, 257764, 224999, 339695, 225012, 257787, 225020, 339710, 257790, 225025, 257794, 339721, 257801, 257804, 225038, 257807, 225043, 372499, 167700, 225048, 257819, 225053, 184094, 225058, 257833, 225066, 257836, 413484, 225070, 225073, 372532, 257845, 225079, 397112, 225082, 397115, 225087, 225092, 225096, 323402, 257868, 225103, 257871, 397139, 225108, 225112, 257883, 257886, 225119, 257890, 339814, 225127, 257896, 274280, 257901, 225137, 339826, 257908, 225141, 257912, 225148, 257916, 257920, 225155, 339844, 225165, 397200, 225170, 380822, 225175, 225180, 118691, 184244, 372664, 372702, 372706, 356335, 380918, 372738, 405533, 430129, 266294, 266297, 421960, 356439, 430180, 421990, 266350, 356466, 266362, 381068, 225423, 250002, 250004, 225429, 356506, 225437, 135327, 225441, 438433, 225444, 438436, 225447, 438440, 225450, 258222, 225455, 430256, 225458, 225461, 225466, 389307, 225470, 381120, 372929, 430274, 225475, 389320, 225484, 225487, 225490, 225493, 266453, 225496, 225499, 225502, 225505, 356578, 225510, 217318, 225514, 225518, 372976, 381176, 397571, 389380, 356637, 356640, 356643, 356646, 266536, 356649, 356655, 332080, 340275, 356660, 397622, 332090, 225597, 332097, 201028, 348488, 332106, 332117, 250199, 250202, 332125, 250210, 348522, 348525, 348527, 332152, 389502, 250238, 332161, 356740, 332172, 373145, 340379, 389550, 324030, 266687, 160234, 127471, 340472, 381436, 324094, 266754, 324099, 324102, 324111, 340500, 324117, 324131, 332324, 381481, 356907, 324139, 324142, 356916, 324149, 324155, 348733, 324164, 356934, 348743, 381512, 324170, 324173, 324176, 389723, 332380, 373343, 381545, 340627, 184982, 373398, 258721, 332453, 332459, 389805, 332463, 381617, 332471, 332483, 332486, 373449, 332493, 357069, 357073, 332511, 332520, 340718, 332533, 348924, 389892, 373510, 389926, 348978, 152370, 340789, 348982, 398139, 127814, 357201, 357206, 389978, 430939, 357211, 357214, 201579, 201582, 349040, 340849, 201588, 430965, 381813, 324472, 398201, 340858, 324475, 430972, 340861, 324478, 119674, 324481, 373634, 398211, 324484, 324487, 381833, 324492, 324495, 324498, 430995, 324501, 324510, 422816, 324513, 398245, 201637, 324524, 340909, 324533, 324538, 324541, 398279, 340939, 340941, 209873, 340957, 431072, 398306, 340963, 209895, 201711, 349172, 349180, 439294, 431106, 209943, 357410, 250914, 185380, 357418, 209965, 209968, 209971, 209975, 209979, 209987, 209990, 209995, 341071, 349267, 250967, 210010, 341091, 210025, 210027, 210030, 210036, 210039, 349308, 210044, 349311, 160895, 152703, 210052, 349319, 210055, 210067, 210071, 210077, 210080, 251044, 210084, 185511, 210088, 210095, 210098, 210107, 210115, 332997, 210127, 333009, 210131, 333014, 210138, 210143, 218354, 218360, 251128, 275706, 275712, 275715, 275721, 349459, 333078, 251160, 349484, 349491, 251189, 415033, 251210, 357708, 210260, 365911, 259421, 365921, 333154, 251235, 374117, 333162, 234866, 390516, 333175, 357755, 251271, 136590, 374160, 112020, 349590, 357792, 259515, 415166, 415185, 366034, 366038, 415191, 415193, 415196, 415199, 423392, 333284, 415207, 366056, 366061, 415216, 210420, 415224, 423423, 415257, 415263, 366117, 415270, 144939, 415278, 415281, 415285, 210487, 415290, 415293, 349761, 415300, 333386, 366172, 333413, 423528, 423532, 210544, 415353, 333439, 415361, 267909, 333498, 210631, 333511, 358099, 333534, 366307, 366311, 431851, 366318, 210672, 366321, 366325, 210695, 268041, 210698, 366348, 210706, 399128, 333594, 210719, 358191, 366387, 210739, 399159, 358200, 325440, 366401, 341829, 325446, 46920, 341834, 341838, 341843, 415573, 358234, 341851, 350045, 399199, 259938, 399206, 268143, 358255, 399215, 358259, 341876, 243579, 325504, 333698, 333708, 333724, 382890, 350146, 333774, 358371, 350189, 350193, 350202, 333818, 350206, 350213, 268298, 350224, 350231, 333850, 350237, 350240, 350244, 350248, 178218, 350251, 350256, 350259, 350271, 243781, 350285, 374864, 342111, 342133, 374902, 432271, 333997, 334011, 260289, 260298, 350410, 350416, 350422, 211160, 350425, 334045, 350445, 375026, 358644, 350458, 350461, 350464, 325891, 350467, 350475, 375053, 268559, 350480, 432405, 350486, 325914, 350490, 325917, 350493, 325919, 350498, 194852, 350504, 358700, 391468, 350509, 358704, 358713, 358716, 383306, 334161, 383321, 383330, 383333, 391530, 383341, 334203, 268668, 194941, 391563, 366990, 416157, 342430, 268701, 375208, 326058, 375216, 334262, 334275, 326084, 358856, 195039, 334304, 334311, 375277, 334321, 350723, 391690, 186897, 342545, 334358, 342550, 342554, 334363, 350761, 252461, 334384, 383536, 358961, 334394, 252482, 219718, 334407, 334420, 350822, 375400, 334465, 334468, 162445, 326290, 342679, 342683, 260766, 342710, 244409, 260797, 260801, 350917, 154317, 391894, 154328, 416473, 64230, 113388, 342766, 375535, 203506, 342776, 391937, 391948, 375568, 326416, 375571, 375574, 162591, 326441, 383793, 326451, 326454, 326460, 260924, 375612, 244540, 326467, 244551, 326473, 326477, 326485, 416597, 326490, 342874, 326502, 375656, 433000, 326507, 326510, 211825, 211831, 351097, 392060, 359295, 351104, 342915, 400259, 236430, 342930, 252822, 392091, 400285, 252836, 359334, 211884, 400306, 351168, 359361, 326598, 359366, 359382, 359388, 383967, 343015, 359407, 261108, 244726, 261111, 383997, 261129, 359451, 261147, 211998, 261153, 261159, 359470, 359476, 343131, 384098, 384101, 384107, 367723, 187502, 343154, 384114, 212094, 351364, 384135, 384139, 384143, 351381, 384160, 384168, 367794, 384181, 367800, 384191, 351423, 326855, 244937, 253130, 343244, 146642, 359649, 343270, 351466, 351479, 343306, 261389, 359694, 384269, 253200, 261393, 384275, 245020, 245029, 171302, 351534, 376110, 245040, 425276, 384323, 212291, 343365, 212303, 367965, 343393, 343398, 367980, 425328, 343409, 253303, 154999, 343417, 327034, 245127, 384397, 245136, 245142, 245145, 343450, 245148, 245151, 245154, 245157, 245162, 327084, 359865, 384443, 146876, 327107, 384453, 327110, 327115, 327117, 359886, 359890, 343507, 368092, 343534, 343539, 368119, 343544, 368122, 409091, 359947, 359955, 359983, 343630, 179802, 327275, 245357, 138864, 155254, 155273, 368288, 245409, 425638, 425649, 155322, 425662, 155327, 155351, 155354, 212699, 155363, 155371, 245483, 409335, 155393, 155403, 155422, 360223, 155438, 155442, 155447, 417595, 360261, 155461, 376663, 155482, 261981, 425822, 155487, 376671, 155490, 155491, 327531, 261996, 376685, 261999, 262002, 327539, 147317, 262005, 425845, 262008, 262011, 155516, 155521, 155525, 360326, 155531, 262027, 262030, 262033, 262036, 262039, 262042, 155549, 262045, 262048, 262051, 327589, 155559, 155562, 155565, 393150, 393169, 384977, 155611, 155619, 253923, 155621, 253926, 327654, 204784, 393203, 360438, 253943, 393206, 393212, 155646 ]
361610b9b2fea18c284425646c989e671a52f7ba
de92472a0743d87614f59c8d9e80e6c97f459594
/MovieBox/MovieTableViewCell.swift
0f21c16af8012cfd51e64001d62bc214b2c4406e
[]
no_license
emilyvon/MovieBox
2485c42dea39bd4e9102c68d955b26d4fea5d0b7
ae1f997e9b22cf12579f8cc92aa7608a8cfc1acd
refs/heads/master
2021-01-10T12:37:22.709388
2016-05-03T01:26:20
2016-05-03T01:26:20
52,360,775
0
0
null
null
null
null
UTF-8
Swift
false
false
722
swift
// // MovieTableViewCell.swift // MovieBox // // Created by Mengying Feng on 11/02/2016. // Copyright © 2016 Mengying Feng. All rights reserved. // import UIKit class MovieTableViewCell: UITableViewCell { @IBOutlet weak var movieImg: UIImageView! @IBOutlet weak var movieTitle: UILabel! @IBOutlet weak var movieDesc: UILabel! @IBOutlet weak var movieLink: UILabel! override func awakeFromNib() { super.awakeFromNib() // Initialization code } func configCell(movie: Movie) { movieTitle.text = movie.movieTitle movieDesc.text = movie.movieDescription movieLink.text = movie.movieLink movieImg.image = movie.getMyMovieImage() } }
[ -1 ]
bc481f895a283224c59b5d89158b7fbb1addad81
8fe50ced0955952ff729487127ee431366831370
/TableViewSelfSizing/TableViewSelfSizing/AppDelegate.swift
2553b1a21988b9371f717238c71640cd24bca73c
[ "MIT" ]
permissive
iOSDevCafe/YouTube-Example-Codes
238ed89dac43412ba55abde13fd6f82a5df9c89b
5717e808684f28f042573468797b89c001f18dd6
refs/heads/master
2021-01-02T23:11:45.816231
2017-11-04T12:28:06
2017-11-04T12:28:06
99,489,073
3
0
null
null
null
null
UTF-8
Swift
false
false
2,182
swift
// // AppDelegate.swift // TableViewSelfSizing // // Created by iOS Café on 09/08/2017. // Copyright © 2017 iOS Café. 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, 229388, 294924, 278542, 327695, 229391, 229394, 278548, 229397, 229399, 229402, 352284, 229405, 278556, 278559, 229408, 294950, 229415, 229417, 327722, 237613, 229422, 229426, 237618, 229428, 286774, 229432, 204856, 286776, 286778, 319544, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 237693, 327814, 131209, 303241, 417930, 311436, 303244, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 295110, 286922, 286924, 286926, 319694, 286928, 131281, 131278, 278743, 278747, 295133, 155872, 131299, 319716, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 311601, 287032, 155966, 278849, 319809, 319810, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 287238, 172552, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 295461, 172581, 311850, 279082, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 172644, 311911, 189034, 295533, 172655, 172656, 189040, 295538, 352880, 172660, 287349, 189044, 189039, 287355, 287360, 295553, 295557, 311942, 303751, 287365, 352905, 311946, 287371, 279178, 311951, 287377, 172691, 287381, 311957, 287386, 221850, 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, 279231, 287427, 312005, 312006, 107208, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 205564, 303871, 230146, 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, 304005, 295813, 304007, 320391, 304009, 213895, 304011, 230284, 189325, 304013, 295822, 213902, 189329, 295825, 304019, 279438, 189331, 58262, 304023, 279452, 410526, 279461, 279462, 304042, 213931, 304055, 230327, 287675, 230334, 304063, 238528, 304065, 213954, 189378, 156612, 295873, 213963, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 312321, 295945, 230413, 197645, 295949, 320528, 140312, 295961, 238620, 197663, 304164, 304170, 238641, 312374, 238652, 238655, 230465, 238658, 296004, 336964, 205895, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 296044, 164973, 205934, 312432, 279669, 337018, 189562, 279679, 279683, 222340, 205968, 296084, 238745, 304285, 238756, 205991, 222377, 165035, 337067, 165038, 238766, 230576, 238770, 304311, 230592, 312518, 279750, 230600, 230607, 148690, 320727, 279769, 304348, 279777, 304354, 296163, 320740, 279781, 304360, 320748, 279788, 279790, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 230679, 320792, 230681, 296215, 214294, 304416, 230689, 173350, 312622, 296243, 312630, 222522, 296253, 222525, 296255, 312639, 230718, 296259, 378181, 296262, 230727, 296264, 320840, 238919, 296267, 296271, 222545, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 173418, 410987, 230763, 148843, 230768, 296305, 312692, 230773, 279929, 181626, 304505, 304506, 181631, 312711, 296331, 288140, 230800, 288144, 304533, 288154, 337306, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 279991, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 148946, 222676, 288212, 288214, 370130, 280021, 329177, 288217, 288218, 280027, 288220, 239070, 239064, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 402942, 148990, 321022, 296450, 206336, 230916, 230919, 214535, 304651, 370187, 304653, 230923, 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, 198310, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 280260, 419525, 206536, 280264, 206539, 206541, 206543, 280276, 313044, 321239, 280283, 18140, 313052, 288478, 313055, 321252, 313066, 288494, 280302, 280304, 313073, 419570, 288499, 288502, 280314, 288510, 124671, 67330, 280324, 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, 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, 288764, 239612, 313340, 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, 280671, 149599, 149601, 321634, 149603, 223327, 329830, 280681, 313451, 223341, 280687, 215154, 313458, 280691, 149618, 313464, 321659, 280702, 288895, 321670, 215175, 141446, 141455, 275606, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 321740, 313548, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 280819, 157940, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 321817, 125209, 125218, 321842, 223539, 125239, 280888, 305464, 280891, 289087, 280897, 280900, 239944, 305480, 280906, 239947, 305485, 305489, 379218, 280919, 248153, 215387, 354653, 313700, 280937, 313705, 190832, 280946, 223606, 313720, 280956, 239997, 280959, 313731, 199051, 240011, 289166, 240017, 297363, 190868, 240021, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 305594, 289210, 281024, 289218, 289221, 289227, 436684, 281045, 281047, 166378, 305647, 281075, 174580, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 330244, 240132, 223749, 223752, 338440, 150025, 281095, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 289317, 281127, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 182929, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 183172, 158596, 338823, 322440, 314249, 240519, 183184, 142226, 224151, 240535, 289687, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 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, 289912, 248995, 306341, 306344, 306347, 322734, 306354, 142531, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 126190, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 257334, 216376, 298306, 380226, 224584, 224587, 224594, 216404, 306517, 150870, 314714, 224603, 159068, 314718, 265568, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 298365, 290174, 306555, 224641, 281987, 298372, 314756, 281990, 224647, 265604, 298377, 314763, 142733, 298381, 314768, 224657, 314773, 306581, 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, 323260, 282300, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 307009, 413506, 241475, 307012, 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, 44948, 241556, 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, 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, 315482, 315483, 217179, 192605, 233567, 200801, 299105, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 241813, 307352, 299164, 299167, 184479, 184481, 315557, 184486, 307370, 307372, 184492, 307374, 307376, 299185, 323763, 176311, 299191, 307385, 184503, 258235, 307388, 176316, 307390, 307386, 299200, 184512, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 176343, 299225, 233701, 307432, 184572, 282881, 184579, 282893, 291089, 282906, 291104, 233766, 295583, 176435, 307508, 315701, 307510, 332086, 307512, 168245, 307515, 307518, 282942, 282947, 282957, 323917, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 242043, 315771, 299388, 299391, 291202, 299398, 242057, 291212, 299405, 291222, 283033, 291226, 242075, 291231, 61855, 283042, 291238, 291241, 127403, 127405, 127407, 291247, 299440, 299444, 127413, 291254, 283062, 127417, 291260, 127421, 127424, 299457, 127429, 127431, 315856, 176592, 315860, 176597, 127447, 283095, 299481, 176605, 242143, 127455, 127457, 291299, 127460, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 291314, 291317, 135672, 127480, 233979, 291323, 127485, 291330, 127490, 283142, 127497, 135689, 233994, 127500, 291341, 233998, 127506, 234003, 127509, 234006, 152087, 127511, 283161, 242202, 234010, 135707, 135710, 242206, 242208, 291361, 242220, 291378, 152118, 234038, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 135808, 291456, 299655, 373383, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 299677, 225948, 135839, 299680, 225954, 135844, 299684, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 225998, 226002, 119509, 226005, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 185074, 226037, 283382, 234231, 316151, 234236, 226045, 234239, 242431, 209665, 234242, 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, 201557, 234329, 234333, 308063, 234336, 242530, 234338, 349027, 234341, 234344, 234347, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 291711, 234368, 234370, 291714, 291716, 234373, 226182, 234375, 308105, 226185, 234379, 234384, 234388, 234390, 324504, 226200, 209818, 308123, 324508, 234396, 291742, 234393, 234398, 234401, 291747, 291748, 234405, 324518, 291750, 324520, 234407, 234410, 324522, 291754, 226220, 234414, 324527, 291760, 234417, 201650, 324531, 291756, 234422, 226230, 324536, 275384, 234428, 291773, 234431, 242623, 226239, 234434, 324544, 324546, 226245, 234437, 234439, 324548, 234443, 291788, 193486, 234446, 193488, 234449, 316370, 275406, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 234496, 316416, 308226, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 234519, 234520, 316439, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 234543, 234546, 275508, 234549, 300085, 300088, 234553, 234556, 234558, 316479, 234561, 234563, 308291, 160835, 316483, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 234585, 275545, 242777, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 324757, 234647, 226453, 234648, 234650, 308379, 275608, 234653, 300189, 119967, 324766, 283805, 234657, 324768, 242852, 300197, 234661, 283813, 234664, 275626, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 283844, 300229, 308420, 308422, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 300267, 161003, 300270, 300272, 120053, 300278, 316663, 275703, 300284, 275710, 300287, 292097, 300289, 161027, 300292, 300294, 275719, 234760, 177419, 300299, 300301, 349451, 242957, 177424, 275725, 283917, 349464, 415009, 283939, 259367, 292143, 283951, 300344, 226617, 283963, 243003, 226628, 300357, 283973, 177482, 283983, 316758, 357722, 316766, 316768, 292192, 218464, 292197, 316774, 243046, 218473, 136562, 324978, 333178, 275834, 275836, 275840, 316803, 316806, 226696, 316811, 226699, 316814, 226703, 300433, 234899, 226709, 357783, 316824, 316826, 300448, 144807, 144810, 144812, 284076, 144814, 144820, 284084, 292279, 284087, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 226802, 316917, 292343, 308727, 300537, 316933, 316947, 308757, 308762, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 308790, 284215, 316983, 194103, 284218, 194101, 226877, 284223, 284226, 243268, 284228, 292421, 284231, 226886, 128584, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 292433, 194130, 300628, 284245, 284243, 317015, 276052, 284249, 235097, 243290, 276053, 284247, 300638, 284251, 284253, 284255, 284258, 243293, 292452, 292454, 284263, 177766, 284265, 292458, 284267, 292461, 284272, 284274, 284278, 276086, 292470, 292473, 284283, 276093, 284286, 276095, 284288, 292479, 284290, 325250, 284292, 292485, 276098, 292481, 284297, 317066, 284299, 317068, 276109, 284301, 284303, 284306, 276114, 284308, 284312, 284314, 284316, 276127, 284320, 284322, 284327, 276137, 317098, 284329, 284331, 284333, 284335, 276144, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 276160, 284354, 358083, 284358, 276166, 358089, 284362, 276170, 276175, 284368, 276177, 284370, 358098, 317138, 284372, 284377, 284379, 284381, 284384, 358114, 284386, 358116, 276197, 317158, 358119, 284392, 325353, 358122, 284394, 284397, 358126, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 292681, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 358292, 399252, 317332, 284564, 284566, 350106, 284572, 276386, 284579, 276388, 358312, 317353, 284585, 292776, 276395, 292784, 276402, 358326, 161718, 358330, 276411, 276418, 276425, 301009, 301011, 301013, 292823, 301015, 358360, 301017, 292828, 276446, 153568, 276448, 292839, 276455, 350186, 292843, 276460, 292845, 178161, 227314, 276466, 350200, 325624, 276472, 317435, 276476, 276479, 350210, 276482, 178181, 317446, 276485, 350218, 276490, 292876, 350222, 317456, 276496, 317458, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 178224, 276528, 243762, 309298, 325685, 325689, 235579, 276539, 235581, 178238, 325692, 276544, 243779, 284739, 292934, 243785, 276553, 350293, 350295, 309337, 227418, 350299, 194649, 350302, 194654, 227423, 178273, 227426, 309346, 194660, 350308, 309348, 227430, 292968, 350313, 309354, 276583, 350316, 309350, 309352, 301167, 276590, 350321, 284786, 276595, 227440, 350325, 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, 227587, 276739, 211204, 276742, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 293232, 276848, 186744, 211324, 227709, 285061, 366983, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 342434, 317858, 285093, 317864, 285098, 276907, 235955, 276917, 293304, 293307, 293314, 309707, 293325, 129486, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 293346, 227810, 276964, 293352, 236013, 293364, 293370, 301562, 317951, 309764, 301575, 121352, 236043, 317963, 342541, 55822, 113167, 309779, 277011, 309781, 317971, 55837, 227877, 227879, 293417, 227882, 309804, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 219714, 129603, 318020, 301636, 301639, 301643, 285265, 399955, 309844, 277080, 309849, 285277, 285282, 326244, 318055, 277100, 121458, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 318094, 334476, 277136, 277139, 227992, 334488, 285340, 318108, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 342707, 154292, 277173, 318132, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 56045, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 293666, 285474, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277317, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 277368, 15224, 416639, 416640, 113538, 310147, 416648, 277385, 39817, 187274, 301972, 424853, 277405, 310179, 277411, 293798, 293802, 236460, 277426, 293811, 276579, 293817, 293820, 203715, 326603, 342994, 276586, 293849, 293861, 228327, 228328, 318442, 228330, 228332, 326638, 277486, 351217, 318450, 293876, 293877, 285686, 302073, 121850, 293882, 302075, 285690, 244731, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 302105, 293917, 293939, 318516, 277561, 277564, 310336, 7232, 293956, 277573, 228422, 293960, 310344, 277577, 277583, 203857, 293971, 310355, 310359, 236632, 277594, 138332, 277598, 203872, 277601, 285792, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 367737, 285817, 302205, 285821, 392326, 285831, 253064, 294026, 302218, 285835, 162964, 384148, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 302241, 285862, 277671, 302248, 64682, 277678, 294063, 294065, 302258, 277687, 294072, 318651, 294076, 277695, 318657, 244930, 302275, 130244, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 310486, 302296, 384222, 310498, 285927, 318698, 302315, 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, 286016, 294211, 302403, 384328, 277832, 277836, 146765, 294221, 326991, 294223, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 310659, 351619, 294276, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 130486, 310710, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 302534, 245191, 310727, 64966, 277959, 277963, 302541, 277966, 302543, 310737, 277971, 228825, 163290, 277978, 310749, 277981, 277984, 310755, 277989, 277991, 187880, 277995, 286188, 310764, 278000, 228851, 310772, 278003, 278006, 40440, 212472, 278009, 40443, 286203, 40448, 228864, 286214, 228871, 302603, 302614, 302617, 286233, 302621, 187936, 146977, 286240, 187939, 40484, 294435, 40486, 286246, 245288, 40488, 294439, 40491, 294440, 294443, 294445, 310831, 286248, 40499, 40502, 212538, 40507, 40511, 40513, 228933, 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, 327333, 229030, 212648, 302764, 278188, 278192, 319153, 278196, 302781, 319171, 302789, 294599, 278216, 294601, 302793, 212690, 319187, 286420, 278227, 229076, 286425, 319194, 278235, 301163, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 278277, 302854, 311048, 294664, 352008, 319243, 311053, 302862, 319251, 294682, 278306, 188199, 294701, 319280, 278320, 319290, 229192, 302925, 188247, 237409, 229233, 294776, 360317, 294785, 327554, 360322, 40840, 294803, 40851, 188312, 294811, 319390, 40865, 294817, 319394, 294821, 311209, 180142, 294831, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 278519, 237562 ]
6e5e9414e400f8ac203a57f5324fc6ee0ce0d276
94b33107e51815a3fcf0fbcac8da17b06951b156
/OTTOPhotoBrowser/Classes/OttoZoomingScrollView.swift
f4bddce1806b0e0e1fafbc36a7bc52d25121f879
[]
no_license
lukas2/OTTOPhotoBrowser
7371203eef0aa15af26edb3c604b5aea2c820759
30282314c9dbcf725776cbf71f04530d31ccfc13
refs/heads/master
2021-01-11T09:14:05.533891
2016-12-23T16:18:27
2016-12-23T16:18:27
77,235,966
0
0
null
null
null
null
UTF-8
Swift
false
false
7,953
swift
// // OttoZoomingScrollView.swift // OTTOPhotoBrowser // // Created by Lukas Zielinski on 22/12/2016. // Copyright © 2016 CocoaPods. All rights reserved. // import UIKit class OTTOZoomingScrollView: UIScrollView, UIScrollViewDelegate, OTTOTapDetectingViewDelegate, OTTOTapDetecingImageViewDelegate { var photo: OTTOPhoto? { didSet { displayImage() } } weak var photoBrowserView: OTTOPhotoBrowserView? private let tapView: OTTOTapDetectingView private let photoImageView: OTTOTapDetectingImageView private let progressView: UIProgressView private var isPinchoutDetected = false private var tapTimer: Timer? func prepareForReuse() { debugPrint("prepare for reuse") self.photo = nil } func setProgress(_ progress :CGFloat) { // TODO: make property or set directly progressView.setProgress(Float(progress), animated: true) } required init?(coder aDecoder: NSCoder) { fatalError("init(coder:) has not been implemented") } init(photoBrowserView: OTTOPhotoBrowserView) { self.photoBrowserView = photoBrowserView tapView = OTTOTapDetectingView(frame: CGRect.zero) photoImageView = OTTOTapDetectingImageView(frame: CGRect.zero) progressView = UIProgressView(frame: CGRect.zero) super.init(frame: CGRect.zero) tapView.tapDelegate = self tapView.autoresizingMask = [.flexibleWidth, .flexibleHeight] tapView.backgroundColor = UIColor.clear photoImageView.tapDelegate = self photoImageView.backgroundColor = UIColor.clear let screenBounds = UIScreen.main.bounds let isLandscape = UIDevice.current.orientation == .landscapeLeft || UIDevice.current.orientation == .landscapeRight let screenWidth : CGFloat = isLandscape ? screenBounds.height : screenBounds.width let screenHeight : CGFloat = isLandscape ? screenBounds.width : screenBounds.height let progressViewFrame = CGRect(x: (screenWidth - 35) / 2, y: (screenHeight - 35) - 2, width: 35, height: 35) progressView.frame = progressViewFrame progressView.tag = 101 addSubview(tapView) addSubview(photoImageView) addSubview(progressView) backgroundColor = UIColor.clear delegate = self showsVerticalScrollIndicator = false showsHorizontalScrollIndicator = false decelerationRate = UIScrollViewDecelerationRateFast autoresizingMask = [.flexibleHeight, .flexibleWidth] } func displayImage() { guard let photo = photo else { return } maximumZoomScale = 1 minimumZoomScale = 1 zoomScale = 1 contentSize = CGSize.zero if let image = photoBrowserView?.imageForPhoto(photo: photo) { progressView.removeFromSuperview() photoImageView.image = image photoImageView.isHidden = false let photoImageViewFrame = CGRect(x: 0, y: 0, width: image.size.width, height: image.size.height) photoImageView.frame = photoImageViewFrame contentSize = photoImageViewFrame.size setMaxMinZoomScalesForCurrentBounds() } else { photoImageView.isHidden = true progressView.alpha = 1 } setNeedsLayout() } func setMaxMinZoomScalesForCurrentBounds() { maximumZoomScale = 1 minimumZoomScale = 1 zoomScale = 1 if photoImageView.image == nil { return } var boundsSize = bounds.size boundsSize.width -= 0.1 boundsSize.height -= 0.1 let imageSize = photoImageView.frame.size let xScale = boundsSize.width / imageSize.width; // the scale needed to perfectly fit the image width-wise let yScale = boundsSize.height / imageSize.height; // the scale needed to perfectly fit the image height-wise let minScale = min(xScale, yScale); // use minimum of these to allow the image to become fully visible var maxScale: CGFloat = 4.0; // Allow double scale maxScale = UIScreen.main.scale if maxScale < minScale { maxScale = minScale * 2 } self.maximumZoomScale = maxScale; self.minimumZoomScale = minScale; self.zoomScale = minScale; photoImageView.frame = CGRect(x: 0, y: 0, width: photoImageView.frame.size.width, height: photoImageView.frame.size.height) setNeedsLayout() } override func layoutSubviews() { tapView.frame = self.bounds super.layoutSubviews() let boundsSize = bounds.size var frameToCenter = photoImageView.frame if (frameToCenter.size.width < boundsSize.width) { frameToCenter.origin.x = floor((boundsSize.width - frameToCenter.size.width) / CGFloat(2)) } else { frameToCenter.origin.x = 0; } if (frameToCenter.size.height < boundsSize.height) { frameToCenter.origin.y = floor((boundsSize.height - frameToCenter.size.height) / CGFloat(2)); } else { frameToCenter.origin.y = 0; } if !photoImageView.frame.equalTo(frameToCenter) { photoImageView.frame = frameToCenter } } // MARK: UIScrollViewDelegate func viewForZooming(in scrollView: UIScrollView) -> UIView? { return photoImageView } func scrollViewDidZoom(_ scrollView: UIScrollView) { setNeedsLayout() layoutIfNeeded() if zoomScale < (minimumZoomScale - minimumZoomScale * 0.4) { isPinchoutDetected = true } } func scrollViewDidEndZooming(_ scrollView: UIScrollView, with view: UIView?, atScale scale: CGFloat) { photoBrowserView?.scrollViewDidEndZooming(scrollView, with: view, atScale: scale) if isPinchoutDetected { isPinchoutDetected = false photoBrowserView?.onPinchout() } } // MARK: Tap Detection func handleSingleTap() { onMainThread { self.photoBrowserView?.onTap() } } private func handleDoubleTap(_ touchPoint: CGPoint) { if zoomScale == maximumZoomScale { setZoomScale(minimumZoomScale, animated: true) } else { zoom(to: CGRect(x: touchPoint.x, y: touchPoint.y, width: 1, height: 1), animated: true) } photoBrowserView?.onZoomedWithDoubleTap() } // MARK: Image View Tap Detection func imageView(imageView: UIImageView, SingleTapDetected: UITouch) { // could be a double tap, wait for a moment before reporting tapTimer = Timer.scheduledTimer(timeInterval: 0.2, target: self, selector: #selector(handleSingleTap), userInfo: nil, repeats: false) } func imageView(imageView: UIImageView, DoubleTapDetected touch: UITouch) { tapTimer?.invalidate() // dismiss reporting of single tap tapTimer = nil handleDoubleTap(touch.location(in: imageView)) } // MARK: Background View Tap Detection func view(view: UIView, SingleTapDetected: UITouch) { // could be a double tap, wait for a moment before reporting tapTimer = Timer.scheduledTimer(timeInterval: 0.2, target: self, selector: #selector(handleSingleTap), userInfo: nil, repeats: false) } func view(view: UIView, DoubleTapDetected touch: UITouch) { tapTimer?.invalidate() // dismiss reporting of single tap tapTimer = nil handleDoubleTap(touch.location(in: view)) } }
[ -1 ]
287e3877cca6f32373977618799167ab71f01847
e800415aa226823cccc1c117d9fa35e101e855ae
/iOS_ImagePicker_LabTests/iOS_ImagePicker_LabTests.swift
ff5ddf63c0141110d86f47cfdf7a9453063c8fce
[]
no_license
aglegaspi/iOS_ImagePicker_Lab
e4bc153b743128236d6b19fe1547df271fa96ef2
87f096d088fbac0a8b4aab2e20a72a531919132e
refs/heads/master
2020-08-04T16:02:40.611532
2019-10-01T20:52:25
2019-10-01T20:52:25
212,195,989
0
0
null
null
null
null
UTF-8
Swift
false
false
976
swift
// // iOS_ImagePicker_LabTests.swift // iOS_ImagePicker_LabTests // // Created by Alexander George Legaspi on 10/1/19. // Copyright © 2019 Alexander George Legaspi. All rights reserved. // import XCTest @testable import iOS_ImagePicker_Lab class iOS_ImagePicker_LabTests: 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, 98333, 16419, 229413, 204840, 278570, 344107, 155694, 253999, 229424, 229430, 319542, 163896, 180280, 376894, 352326, 254027, 311372, 196691, 278615, 180311, 180312, 385116, 237663, 254048, 319591, 221290, 278634, 319598, 352368, 204916, 131191, 237689, 278655, 278677, 196760, 426138, 278685, 311458, 278691, 49316, 32941, 278704, 377009, 278708, 180408, 131256, 295098, 139479, 254170, 229597, 311519, 205035, 286958, 327929, 344313, 147717, 368905, 180493, 254226, 319763, 368916, 262421, 377114, 237856, 237857, 278816, 311597, 98610, 336183, 180535, 278842, 287041, 319821, 254286, 344401, 377169, 368981, 155990, 368984, 106847, 98657, 270701, 246127, 270706, 246136, 139640, 246137, 311685, 106888, 385417, 311691, 385422, 213403, 246178, 385454, 311727, 377264, 319930, 311738, 33211, 336317, 278970, 336320, 311745, 278978, 254406, 188871, 278993, 278999, 328152, 369116, 287198, 279008, 279013, 279018, 319981, 279029, 254456, 279032, 377338, 377343, 279039, 254465, 287241, 279050, 139792, 303636, 393751, 279065, 377376, 377386, 197167, 385588, 352829, 115270, 385615, 426576, 369235, 295519, 139872, 66150, 344680, 279146, 287346, 139892, 287352, 344696, 279164, 189057, 311941, 336518, 311945, 369289, 344715, 279177, 311949, 287374, 377489, 311954, 352917, 230040, 271000, 377497, 303771, 377500, 295576, 221852, 205471, 344738, 139939, 279206, 295590, 287404, 205487, 295599, 303793, 336564, 164533, 287417, 287422, 66242, 377539, 164560, 385747, 279252, 361176, 418520, 287452, 295652, 246503, 369385, 312052, 312053, 172792, 344827, 221948, 205568, 295682, 336648, 197386, 434957, 312079, 295697, 426774, 197399, 426775, 336671, 344865, 197411, 279336, 295724, 353069, 197422, 353070, 164656, 295729, 312108, 328499, 353078, 197431, 230199, 353079, 336702, 353094, 353095, 353109, 377686, 230234, 189275, 435039, 295776, 303972, 385893, 230248, 246641, 246643, 295798, 246648, 361337, 279417, 254850, 369538, 287622, 58253, 295824, 189348, 353195, 140204, 377772, 353197, 304051, 230332, 377790, 353215, 353216, 189374, 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, 320536, 197657, 336929, 189474, 369701, 345132, 238639, 312373, 238651, 336960, 377926, 214086, 238664, 353367, 156764, 156765, 304222, 173166, 377972, 353397, 337017, 377983, 402565, 279685, 222343, 386189, 296086, 238743, 296092, 238765, 279728, 238769, 402613, 337077, 353479, 353481, 402634, 353482, 189653, 419029, 279765, 148696, 296153, 279774, 304351, 304356, 222440, 328940, 279792, 353523, 386294, 386301, 320770, 386306, 279814, 328971, 312587, 353551, 320796, 222494, 353584, 345396, 386359, 312634, 116026, 378172, 222524, 279875, 345415, 312648, 337225, 304456, 230729, 238927, 353616, 296273, 222559, 378209, 230756, 386412, 230765, 296303, 279920, 312689, 296307, 116084, 337281, 148867, 378244, 296329, 304524, 296335, 9619, 370071, 279974, 173491, 304564, 353719, 361927, 296392, 370123, 148940, 280013, 312782, 222675, 329173, 353750, 271843, 280041, 361963, 296433, 321009, 280055, 288249, 329225, 230921, 296461, 304656, 329232, 370197, 230943, 402985, 394794, 230959, 312880, 288309, 312889, 288318, 280130, 124485, 288326, 288327, 280147, 239198, 99938, 345700, 312940, 222832, 247416, 337534, 337535, 263809, 288392, 239250, 419478, 345752, 255649, 206504, 321199, 337591, 321207, 296632, 280251, 280257, 321219, 280267, 403148, 9936, 9937, 313041, 370388, 272085, 345814, 181975, 280278, 280280, 18138, 345821, 321247, 321249, 345833, 345834, 280300, 67315, 173814, 313081, 124669, 288512, 288516, 280329, 321302, 345879, 116505, 321310, 255776, 247590, 362283, 378668, 296755, 321337, 345919, 436031, 403267, 345929, 18262, 362327, 370522, 280410, 345951, 362337, 345955, 296806, 288619, 280430, 214895, 313199, 362352, 296814, 313203, 124798, 182144, 305026, 247686, 67463, 329622, 337815, 124824, 214937, 436131, 354212, 436137, 362417, 124852, 288697, 362431, 214977, 174019, 214984, 321480, 362443, 247757, 280541, 329695, 436191, 313319, 337895, 174057, 247785, 436205, 362480, 329712, 313339, 43014, 354316, 313357, 182296, 223268, 329765, 354345, 223274, 124975, 346162, 124984, 288828, 436285, 288833, 288834, 436292, 403525, 436301, 338001, 354385, 338003, 280661, 329814, 338007, 354393, 280675, 321637, 280677, 43110, 313447, 436329, 329829, 288879, 280694, 288889, 215164, 313469, 215166, 280712, 215178, 346271, 436383, 362659, 239793, 125109, 182456, 280762, 379071, 338119, 149703, 346314, 321745, 387296, 280802, 379106, 338150, 346346, 321772, 125169, 338164, 436470, 125183, 149760, 411906, 125188, 313608, 125193, 125198, 272658, 125203, 338197, 125208, 305440, 125217, 338218, 321840, 379186, 125235, 280887, 125240, 321860, 182598, 289110, 215385, 272729, 379225, 354655, 321894, 280939, 354676, 436608, 362881, 240002, 436611, 248194, 395659, 395661, 108944, 240016, 190871, 149916, 420253, 141728, 289189, 289194, 108972, 272813, 338356, 436661, 289232, 281040, 256477, 330218, 281072, 109042, 174593, 240131, 420369, 289304, 322078, 207393, 182817, 289332, 174648, 338489, 338490, 322120, 281166, 281171, 297560, 354911, 436832, 436834, 191082, 313966, 420463, 281199, 346737, 313971, 346740, 420471, 330379, 330387, 117396, 346772, 330388, 117397, 264856, 289434, 346779, 338613, 314040, 109241, 158394, 248517, 363211, 363230, 289502, 264928, 338662, 330474, 346858, 289518, 322291, 199414, 35583, 363263, 191235, 264968, 322316, 117517, 322319, 166676, 207640, 289576, 191283, 273207, 289598, 420677, 281427, 281433, 109409, 330609, 207732, 158593, 240518, 109447, 224145, 355217, 256922, 289690, 289698, 420773, 289703, 363438, 347055, 289727, 273344, 330689, 363458, 379844, 19399, 338899, 248796, 248797, 207838, 347103, 314342, 52200, 289774, 347123, 240630, 314362, 257024, 330754, 330763, 322582, 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, 208058, 322749, 265412, 290000, 298208, 298212, 298213, 290022, 330984, 298221, 298228, 216315, 208124, 363771, 388349, 437505, 322824, 257305, 126237, 339234, 208164, 372009, 412971, 298291, 306494, 216386, 224586, 372043, 331090, 314710, 372054, 159066, 314720, 314726, 314728, 134506, 380271, 314739, 208244, 249204, 249205, 290173, 306559, 314751, 298374, 314758, 314760, 142729, 388487, 314766, 306579, 282007, 290207, 314783, 314789, 314791, 396711, 396712, 241066, 282024, 314798, 380337, 380338, 150965, 380357, 339398, 306639, 413137, 429542, 191981, 191990, 290301, 282114, 372227, 323080, 323087, 175639, 388632, 396827, 134686, 282146, 306723, 347694, 290358, 265798, 265804, 396882, 290390, 306776, 44635, 396895, 323172, 282213, 323178, 224883, 314998, 323196, 175741, 339584, 224901, 282245, 282246, 323217, 282259, 282273, 323236, 298661, 282280, 61101, 224946, 110268, 224958, 323263, 323264, 282303, 274115, 306890, 282318, 241361, 241365, 298712, 298720, 282339, 12010, 282348, 282358, 175873, 339715, 323331, 323332, 339720, 372496, 323346, 249626, 282400, 339745, 241442, 241441, 257830, 421672, 282417, 282427, 315202, 307011, 282434, 282438, 159562, 323406, 216918, 241495, 307039, 282474, 282480, 241528, 339841, 241540, 315273, 315274, 110480, 372626, 380821, 282518, 282519, 118685, 298909, 323507, 282549, 290745, 290746, 274371, 151497, 372701, 298980, 380908, 282633, 241692, 102437, 315432, 315434, 102445, 233517, 176175, 241716, 241720, 225351, 315465, 315476, 307289, 200794, 315487, 356447, 307299, 438377, 315498, 299121, 233589, 266357, 422019, 241808, 381073, 323729, 233636, 299174, 323762, 299187, 405687, 184505, 299198, 258239, 389313, 299203, 299209, 372941, 282831, 266449, 356576, 176362, 307435, 438511, 381172, 184570, 12542, 184575, 381208, 315673, 299293, 151839, 233762, 217380, 151847, 282919, 332083, 127284, 332085, 332089, 315706, 282939, 241986, 438596, 332101, 323913, 348492, 323916, 323920, 250192, 348500, 168281, 332123, 332127, 323935, 242023, 242029, 160110, 242033, 250226, 291192, 340357, 225670, 242058, 373134, 291224, 242078, 283038, 61857, 315810, 315811, 381347, 61859, 340398, 61873, 61880, 283064, 127427, 127428, 283075, 291267, 324039, 373197, 176601, 242139, 160225, 242148, 127465, 291311, 233978, 324097, 291333, 340490, 258581, 291358, 283184, 234036, 315960, 348732, 242237, 70209, 348742, 70215, 348749, 340558, 381517, 332378, 201308, 242277, 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, 299776, 291585, 430849, 242433, 291592, 62220, 422673, 430865, 291604, 422680, 152365, 422703, 422709, 152374, 242485, 160571, 430910, 160575, 160580, 299849, 283467, 381773, 201551, 242529, 349026, 357218, 275303, 201577, 308076, 242541, 209783, 209785, 177019, 185211, 308092, 398206, 291712, 381829, 316298, 308107, 349072, 308112, 209817, 324506, 324507, 390045, 127902, 185250, 324517, 185254, 316333, 373687, 316343, 234427, 349121, 373706, 316364, 340955, 340961, 324586, 340974, 316405, 349175, 201720, 127992, 357379, 324625, 308243, 316437, 201755, 300068, 357414, 300084, 324666, 308287, 21569, 218186, 250956, 300111, 341073, 439384, 234587, 250981, 300135, 316520, 300136, 357486, 316526, 144496, 300150, 291959, 300151, 160891, 341115, 300158, 349316, 349318, 234638, 373903, 169104, 177296, 308372, 185493, 324760, 119962, 300187, 300188, 234656, 300201, 300202, 373945, 259268, 283847, 62665, 283852, 283853, 259280, 316627, 333011, 357595, 234733, 234742, 128251, 316669, 234755, 439562, 292107, 242954, 414990, 251153, 177428, 349462, 333090, 382258, 300343, 382269, 333117, 193859, 177484, 406861, 259406, 234831, 251213, 120148, 283991, 374109, 234850, 292195, 333160, 243056, 316787, 357762, 112017, 112018, 234898, 259475, 275859, 357786, 251298, 333220, 316842, 374191, 210358, 284089, 292283, 415171, 300487, 300489, 366037, 210390, 210391, 210392, 210393, 144867, 103909, 316902, 54765, 251378, 308723, 333300, 333303, 300536, 210433, 366083, 259599, 316946, 308756, 398869, 374296, 374299, 308764, 349726, 333343, 431649, 349741, 169518, 431663, 194110, 235070, 349763, 218696, 292425, 243274, 128587, 333388, 333393, 300630, 128599, 235095, 333408, 300644, 374372, 415338, 120427, 243307, 54893, 325231, 333430, 366203, 325245, 194180, 415375, 153251, 300714, 210603, 415420, 333503, 218819, 259781, 333517, 333520, 333521, 333523, 325346, 333542, 153319, 325352, 284401, 325371, 194303, 284429, 284431, 243472, 366360, 284442, 325404, 325410, 341796, 333610, 399147, 431916, 300848, 317232, 259899, 325439, 325445, 153415, 341836, 415567, 325457, 317269, 341847, 350044, 128862, 284514, 276327, 292712, 325484, 423789, 292720, 325492, 276341, 300918, 341879, 317304, 333688, 112509, 194429, 325503, 55167, 333701, 243591, 325515, 243597, 325518, 333722, 350109, 292771, 415655, 333735, 284587, 243637, 284619, 301008, 153554, 219101, 292836, 292837, 317415, 325619, 432116, 333817, 292858, 415741, 333828, 358410, 399373, 317467, 145435, 292902, 325674, 129076, 243767, 358456, 325694, 309345, 194666, 260207, 432240, 284788, 333940, 292992, 333955, 415881, 104587, 235662, 325776, 317587, 284826, 333991, 333992, 284842, 333996, 301251, 309444, 227524, 334042, 194782, 301279, 317664, 243962, 375039, 309503, 375051, 325905, 325912, 309529, 227616, 211235, 432421, 211238, 325931, 358703, 358709, 260418, 6481, 366930, 366929, 6489, 391520, 383332, 383336, 317820, 211326, 317831, 227725, 252308, 178582, 293274, 317852, 121245, 285090, 375207, 342450, 334260, 293303, 293310, 416197, 129483, 342476, 317901, 326100, 285150, 342498, 358882, 334309, 195045, 391655, 432618, 375276, 342536, 342553, 416286, 375333, 244269, 375343, 23092, 375351, 244281, 301638, 309830, 293448, 55881, 416341, 244310, 416351, 268899, 39530, 244347, 326287, 375440, 334481, 227990, 318106, 318107, 342682, 318130, 383667, 293556, 342713, 285373, 39614, 334547, 318173, 375526, 285415, 342762, 342763, 293612, 129773, 154359, 432893, 162561, 285444, 383754, 326414, 285458, 310036, 326429, 293664, 326433, 400166, 293672, 318250, 318252, 285487, 375609, 285497, 342847, 252741, 293711, 244568, 244570, 301918, 293730, 351077, 342887, 269178, 400252, 359298, 359299, 260996, 113542, 228233, 392074, 228234, 56208, 293781, 326553, 318364, 310176, 310178, 293800, 236461, 326581, 326587, 326601, 359381, 433115, 343005, 130016, 64485, 326635, 203757, 187374, 383983, 318461, 293886, 293893, 433165, 384016, 146448, 433174, 326685, 252958, 252980, 203830, 359478, 302139, 359495, 392290, 253029, 228458, 318572, 351344, 187506, 285814, 392318, 187521, 384131, 302216, 228491, 228493, 285838, 162961, 326804, 351390, 302240, 343203, 253099, 253100, 318639, 367799, 113850, 294074, 64700, 228542, 302274, 367810, 343234, 244940, 228563, 195808, 310497, 228588, 253167, 302325, 261377, 228609, 245019, 253216, 130338, 130343, 130348, 261425, 351537, 318775, 286013, 286018, 146762, 294218, 294219, 318805, 425304, 294243, 163175, 327024, 327025, 327031, 318848, 179587, 253317, 384393, 368011, 318864, 318868, 212375, 318875, 212382, 310692, 245161, 286129, 286132, 228795, 425405, 302529, 302531, 163268, 425418, 310732, 64975, 327121, 228827, 310748, 286172, 310757, 187878, 245223, 343542, 343543, 286202, 359930, 286205, 302590, 228867, 253451, 253452, 359950, 146964, 253463, 286244, 245287, 245292, 286254, 196164, 56902, 179801, 196187, 343647, 286306, 310889, 204397, 138863, 188016, 294529, 286343, 229001, 310923, 188048, 425626, 229020, 302754, 245412, 40613, 40614, 40615, 229029, 384695, 319162, 327358, 286399, 212685, 384720, 245457, 302802, 286423, 278234, 294622, 278240, 212716, 212717, 360177, 286459, 278272, 319233, 360195, 278291, 294678, 286494, 409394, 319288, 319292, 360252, 360264, 188251, 376669, 245599, 425825, 425833, 417654, 188292, 253829, 294807, 294809, 376732, 311199, 319392, 294823, 327596, 294843, 188348, 237504, 294850, 384964, 163781, 344013, 212942, 212946, 24532, 294886, 253929, 327661, 311281, 311282 ]
acd930989f9a6ac48141d27f8bb60d74c174bd8c
8220fa75c6f0e1244c59b31f9eabf4532c76aa0b
/Templates/Tests/Generated/LinuxMain.generated.swift
a1e234f8a37bdb80c022e141eac96c4aed519cf2
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
SergeyKuryanov/Sourcery
086d08f87003ee194187991ca3b7ec51567f0d38
ec14d92f07bbbb2c0f1020598378a90b5e3ea9d3
refs/heads/master
2020-03-09T18:11:19.459981
2018-04-10T14:09:38
2018-04-10T14:09:38
128,926,170
0
0
null
2018-04-10T12:04:00
2018-04-10T12:03:59
null
UTF-8
Swift
false
false
877
swift
// Generated using Sourcery 0.11.1 — https://github.com/krzysztofzablocki/Sourcery // DO NOT EDIT import XCTest extension AutoInjectionTests { static var allTests: [(String, (AutoInjectionTests) -> () throws -> Void)] = [ ("testThatItResolvesAutoInjectedDependencies", testThatItResolvesAutoInjectedDependencies), ("testThatItDoesntResolveAutoInjectedDependencies", testThatItDoesntResolveAutoInjectedDependencies) ] } extension AutoWiringTests { static var allTests: [(String, (AutoWiringTests) -> () throws -> Void)] = [ ("testThatItCanResolveWithAutoWiring", testThatItCanResolveWithAutoWiring), ("testThatItCanNotResolveWithAutoWiring", testThatItCanNotResolveWithAutoWiring) ] } // swiftlint:disable trailing_comma XCTMain([ testCase(AutoInjectionTests.allTests), testCase(AutoWiringTests.allTests), ]) // swiftlint:enable trailing_comma
[ -1 ]
944684f34ed09cf6a5e24f7cfed2971aeacd34d1
e890eff999fe5f69f4cdef379f0b49bd958b71d2
/FunFacts/AppDelegate.swift
e8bb7c1989e8af3a95bdd52c77eae35bc46fdd0e
[]
no_license
LuizGadao/funfacts
e38148167ea1904df235360cb61d28cfe797da4b
c4744f9bd7c344c323273d4551064577e6d57d9b
refs/heads/master
2021-01-19T05:25:54.953448
2015-04-22T17:14:52
2015-04-22T17:14:52
34,401,694
0
0
null
null
null
null
UTF-8
Swift
false
false
2,273
swift
// // AppDelegate.swift // FunFacts // // Created by Luiz Carlos Gonçalves dos Anjos on 20/04/15. // Copyright (c) 2015 Luiz Carlos Gonçalves dos Anjos. 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. application.setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false) 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, 294924, 229388, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 278556, 229405, 278559, 229408, 278564, 294950, 229415, 229417, 237613, 229422, 229426, 237618, 229428, 311349, 286774, 229432, 286776, 319544, 286791, 237640, 278605, 237646, 311375, 163920, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 278648, 131192, 237693, 327814, 303241, 417930, 311436, 319633, 286873, 286876, 311460, 32944, 327862, 286906, 180413, 286910, 131264, 286922, 286924, 286926, 319694, 286928, 131281, 278743, 278747, 295133, 155872, 319716, 237807, 303345, 131314, 286962, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 287003, 287006, 287009, 287012, 287014, 287019, 311598, 287032, 155966, 278849, 319809, 319810, 319814, 311628, 229709, 287054, 319822, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 65943, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 279003, 279006, 172512, 279010, 279015, 172520, 319978, 279020, 172526, 279023, 311791, 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, 311911, 295533, 172655, 172656, 352880, 295538, 172660, 287349, 287355, 287360, 295553, 287365, 311942, 303751, 352905, 279178, 287371, 311946, 287377, 311957, 221850, 287386, 164509, 172702, 295583, 230045, 287390, 172705, 287394, 172707, 303780, 287398, 279208, 287400, 172714, 295595, 279212, 230061, 189102, 287409, 172721, 303797, 189114, 287419, 303804, 328381, 279231, 287423, 287427, 312006, 279241, 107212, 172748, 287436, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 279258, 287450, 213724, 189149, 303835, 303838, 279267, 312035, 295654, 279272, 312048, 312050, 230131, 205564, 295685, 230154, 33548, 312077, 295695, 369433, 295707, 328476, 295710, 303914, 279340, 205613, 279353, 230202, 222018, 295755, 377676, 287569, 279383, 279390, 230241, 279394, 303976, 336744, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 213895, 304007, 304009, 304011, 230284, 304013, 213902, 279438, 295822, 189329, 189331, 58262, 279452, 410526, 279461, 279462, 304042, 213931, 230327, 304055, 304063, 295873, 189378, 213954, 304065, 213963, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 312321, 295945, 295949, 197645, 230413, 140312, 238620, 197663, 304164, 189479, 304170, 238641, 312374, 238652, 230465, 238658, 296004, 336964, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 164973, 279661, 279669, 337018, 279679, 279683, 222340, 296084, 238745, 304285, 238756, 205991, 165035, 337067, 165038, 238766, 304311, 230592, 279750, 230600, 230607, 148690, 279769, 304348, 279777, 304354, 296163, 279781, 304360, 279788, 320748, 279790, 320771, 312585, 320786, 230674, 230677, 214294, 296213, 296215, 320792, 230681, 173350, 312622, 296243, 312630, 222522, 222525, 230718, 296255, 378181, 230727, 222545, 230739, 312663, 222556, 337244, 312676, 230760, 173418, 230763, 230768, 296305, 230773, 304505, 304506, 181631, 312711, 312712, 288140, 230800, 288144, 304533, 288154, 337306, 288160, 288162, 279975, 304555, 370092, 279983, 173488, 279985, 312755, 296373, 279991, 312759, 337335, 173507, 296389, 222665, 230860, 230865, 288210, 370130, 222676, 288212, 280021, 288214, 239064, 329177, 288217, 280027, 288220, 288218, 239070, 288224, 280034, 288226, 280036, 288229, 320998, 370146, 280038, 288230, 288234, 288232, 288236, 288238, 288240, 288242, 296435, 288244, 296439, 288250, 148990, 296446, 206336, 321022, 296450, 402942, 230916, 214535, 230919, 370187, 304651, 222752, 108066, 296488, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 181854, 370272, 403039, 239202, 312938, 280183, 280185, 280188, 280191, 280194, 116354, 280208, 280211, 288408, 280218, 280222, 190118, 280232, 321195, 321200, 296626, 296634, 280260, 280264, 280276, 313044, 321239, 280283, 288478, 321252, 313066, 280302, 288494, 280304, 313073, 419570, 288499, 288502, 280314, 288510, 67330, 280324, 280331, 198416, 280337, 296723, 116503, 321304, 329498, 296731, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 296767, 345921, 280388, 304968, 280393, 280402, 313176, 280419, 321381, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280458, 280464, 124817, 280468, 280473, 124827, 214940, 247709, 280487, 313258, 321458, 296883, 124853, 214966, 10170, 296890, 288700, 296894, 280515, 190403, 296900, 337862, 165831, 280521, 231379, 296921, 239586, 313320, 231404, 124913, 165876, 321528, 288764, 239612, 239617, 313347, 288773, 313358, 305176, 313371, 354338, 305191, 313386, 354348, 124978, 215090, 124980, 288826, 313406, 288831, 67654, 223303, 280651, 354382, 288848, 280658, 354390, 280669, 313438, 223327, 280671, 321634, 149603, 329830, 280681, 313451, 223341, 280687, 215154, 280691, 313458, 313464, 321659, 280702, 288895, 141446, 215175, 321670, 141455, 141459, 280725, 313498, 288936, 100520, 280747, 288940, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 280783, 280786, 280788, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 280819, 157940, 125171, 280823, 280825, 280827, 280830, 280831, 280833, 280835, 125187, 125191, 125207, 125209, 321817, 321842, 223539, 280888, 289087, 280897, 280900, 239944, 305480, 280906, 239947, 305485, 305489, 379218, 280919, 354653, 313700, 280937, 280940, 280946, 223606, 313720, 280956, 280959, 313731, 199051, 240011, 240017, 190868, 297365, 297368, 297372, 141725, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 281024, 289221, 289227, 281045, 281047, 166378, 305647, 281075, 174580, 281084, 240124, 305662, 305664, 240129, 305666, 240132, 305668, 281095, 223752, 338440, 150025, 223757, 281102, 223765, 281113, 322074, 281116, 281121, 182819, 289317, 281127, 281135, 150066, 158262, 158266, 281154, 322115, 281163, 158283, 281179, 199262, 338528, 281190, 281196, 19053, 158317, 313973, 281210, 297594, 158347, 133776, 117398, 314007, 289436, 174754, 330404, 174764, 240309, 133817, 314045, 314047, 199364, 199367, 297671, 158409, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322318, 281361, 281372, 322341, 215850, 281388, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 240519, 322440, 314249, 240535, 289687, 289694, 289696, 289724, 52163, 281567, 289762, 322534, 297961, 281581, 183277, 322550, 134142, 322563, 175134, 322599, 322610, 314421, 281654, 314427, 207937, 314433, 314441, 207949, 322642, 281691, 314461, 281702, 281704, 314474, 281708, 281711, 289912, 248995, 306341, 306344, 306347, 306354, 142531, 289991, 249045, 363745, 298216, 126190, 216303, 322801, 257302, 363802, 199976, 199978, 298292, 257334, 216376, 298306, 224584, 224587, 224594, 216404, 150870, 224603, 265568, 281960, 306539, 290161, 216436, 306549, 298358, 306552, 290171, 298365, 290174, 224641, 281987, 265604, 298372, 281990, 298377, 142733, 298381, 224657, 306581, 282025, 282027, 241068, 241070, 241072, 282034, 241077, 298424, 306618, 282044, 323015, 306635, 306640, 290263, 290270, 339431, 282089, 191985, 282098, 290291, 282101, 151036, 290302, 282111, 290305, 175621, 192008, 323084, 257550, 282127, 290321, 282130, 323090, 282133, 290325, 241175, 290328, 282137, 290332, 241181, 282142, 282144, 290344, 290349, 290351, 290356, 282186, 224849, 282195, 282199, 282201, 306778, 159324, 159330, 314979, 224875, 241260, 323181, 257658, 315016, 282249, 290445, 282255, 282261, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 306856, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 306897, 241362, 282328, 306904, 298714, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 282402, 315174, 282410, 241450, 306991, 315184, 323376, 315190, 241464, 282425, 298811, 307009, 241475, 307012, 148946, 315211, 282446, 315221, 282454, 323414, 315223, 241496, 241498, 307035, 307040, 282465, 110433, 241509, 110438, 110445, 282478, 282481, 110450, 315249, 315251, 315253, 315255, 339838, 282499, 315267, 315269, 241544, 282505, 241546, 241548, 298896, 282514, 298898, 241556, 298901, 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, 241640, 298984, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299006, 282623, 241669, 315397, 282632, 282639, 290835, 282645, 241693, 282654, 217127, 282669, 323630, 282681, 290877, 282687, 159811, 315463, 315466, 192589, 192596, 176213, 307287, 315482, 315483, 192605, 233567, 200801, 217188, 299109, 307303, 45163, 307307, 315502, 307314, 323700, 299126, 233591, 299136, 307329, 307338, 233613, 307352, 299164, 184481, 315557, 184486, 307370, 184492, 307372, 307374, 307376, 299185, 176311, 184503, 307385, 307386, 258235, 176316, 307388, 307390, 184512, 307394, 299204, 184518, 323784, 307409, 176343, 299225, 233701, 184572, 282881, 184579, 282893, 291089, 282906, 233766, 176435, 168245, 307510, 315701, 151864, 332086, 307515, 282942, 307518, 151874, 282947, 282957, 110926, 323917, 233808, 323921, 315733, 315739, 323932, 299357, 242018, 242024, 299373, 315757, 250231, 315771, 299388, 299398, 242057, 291212, 299405, 291222, 283033, 315801, 242075, 61855, 283042, 291238, 291241, 127403, 127405, 127407, 291247, 283062, 291254, 127417, 291260, 283069, 127421, 127429, 127431, 283080, 127434, 176592, 315856, 315860, 176597, 127447, 299481, 176605, 242143, 291299, 242152, 291305, 176620, 291314, 291317, 135672, 233979, 291323, 291330, 283142, 127497, 135689, 233994, 291341, 233998, 234003, 234006, 283161, 234010, 135707, 242206, 135710, 291361, 135717, 303773, 242220, 291378, 152118, 234038, 70213, 111193, 242275, 299620, 168562, 184952, 135805, 291456, 135808, 299655, 373383, 316051, 225941, 316054, 299672, 135834, 225948, 299677, 373404, 135839, 299680, 225954, 299684, 242343, 209576, 373421, 299706, 135870, 135873, 135876, 135879, 299720, 299723, 225998, 226002, 226005, 226008, 242396, 299740, 201444, 299750, 283368, 234219, 283372, 226037, 283382, 234231, 234236, 234239, 242431, 209665, 234242, 242436, 234246, 234248, 226056, 291593, 242443, 242445, 234254, 234258, 242450, 242452, 234261, 201496, 283421, 234269, 234272, 234274, 152355, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 242483, 234292, 234296, 234298, 283452, 160572, 234302, 234307, 242499, 234309, 234313, 316235, 234316, 283468, 234319, 242511, 234321, 234324, 201557, 234329, 234333, 308063, 234336, 234338, 242530, 349027, 234344, 177004, 234350, 324464, 234353, 152435, 177011, 234356, 234358, 234362, 226171, 234364, 291711, 234368, 234370, 291714, 291716, 234373, 226182, 234375, 226185, 308105, 234379, 234384, 234388, 234390, 226200, 234393, 308123, 234396, 324508, 234398, 291742, 234401, 291748, 234405, 291750, 234407, 324518, 324520, 291754, 226220, 291756, 234414, 291760, 201650, 226230, 234422, 275384, 234428, 291773, 226239, 234431, 242623, 234434, 324548, 226245, 234437, 234439, 234443, 291788, 275406, 193486, 234446, 193488, 234449, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 234481, 234484, 234485, 234487, 234490, 234493, 234496, 316416, 234501, 308231, 234504, 234507, 234510, 234515, 300054, 234519, 234520, 316439, 234523, 234528, 300066, 234532, 234535, 234537, 234540, 144430, 234543, 275508, 234549, 300085, 300088, 234556, 234558, 316479, 234561, 160835, 234563, 316483, 234568, 234570, 316491, 234572, 300108, 300115, 234580, 234581, 234585, 242777, 275545, 234590, 234595, 234597, 300133, 234601, 300139, 234605, 234607, 160879, 275569, 234610, 234614, 234618, 144506, 234620, 275579, 234623, 226433, 234627, 275588, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 324757, 226453, 275606, 234647, 234648, 275608, 234650, 308373, 283805, 308379, 234653, 119967, 234657, 300189, 324766, 242852, 283813, 300197, 234664, 275626, 316596, 234687, 300226, 234692, 283844, 300229, 308420, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 300248, 300253, 300256, 300258, 300260, 234726, 300263, 300265, 161003, 300267, 300270, 300272, 120053, 300278, 316663, 300284, 275710, 300287, 283904, 300289, 300292, 300294, 275719, 177419, 300299, 300301, 283917, 242957, 275725, 177424, 349464, 283939, 259367, 283951, 300344, 226617, 283963, 243003, 226628, 300357, 177482, 283983, 316758, 357722, 316766, 218464, 316768, 292197, 243046, 316774, 218473, 284010, 136562, 275834, 333178, 275836, 275840, 316806, 226696, 226699, 316811, 226703, 300433, 234899, 226709, 357783, 316826, 144796, 300448, 144810, 284076, 144812, 144814, 284084, 144820, 284087, 292279, 144826, 144828, 144830, 144832, 144835, 284099, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 292329, 300523, 259565, 259567, 300527, 226802, 316917, 308727, 300537, 308757, 308762, 284191, 284194, 284196, 235045, 284199, 284206, 284209, 284211, 194101, 284213, 194103, 284215, 284218, 226877, 284223, 284226, 284228, 292421, 226886, 284231, 128584, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 276052, 276053, 284245, 284247, 317015, 284249, 243290, 284251, 284253, 243293, 284255, 300638, 284258, 292452, 177766, 284263, 292454, 284265, 292458, 284267, 292461, 284274, 276086, 284278, 292470, 292473, 284283, 276093, 284286, 276095, 292479, 284288, 276098, 284290, 284292, 292485, 325250, 284297, 317066, 284299, 317068, 284301, 284303, 276114, 284306, 284308, 284312, 284314, 284316, 276127, 284322, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 284337, 284339, 300726, 284343, 284346, 284350, 276160, 358080, 284354, 276166, 284358, 358089, 276170, 284362, 276175, 284368, 276177, 284370, 317138, 284372, 358098, 284377, 276187, 284379, 284381, 284384, 284386, 358116, 276197, 284392, 325353, 284394, 358122, 284397, 276206, 284399, 358126, 358128, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 284418, 317187, 358146, 317191, 284428, 300816, 317207, 284440, 300828, 300830, 276255, 300832, 284449, 227109, 317221, 186151, 358183, 276268, 300845, 194351, 243504, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 153417, 284499, 276308, 284502, 178006, 317271, 276315, 292700, 284511, 227175, 292715, 284529, 292721, 300915, 284533, 317306, 284540, 292734, 325512, 169868, 276365, 284566, 350106, 284572, 276386, 284579, 276388, 292776, 284585, 358312, 276395, 276402, 161718, 358326, 276410, 276411, 358330, 276418, 276425, 276433, 301009, 301011, 301013, 301015, 358360, 301017, 292828, 276446, 276448, 153568, 276452, 276455, 292843, 276460, 276464, 227314, 276466, 276472, 325624, 317435, 276476, 276479, 276482, 276485, 276490, 292876, 276496, 317456, 317458, 243733, 243740, 317468, 317472, 325666, 243751, 292904, 276528, 243762, 309298, 325685, 325689, 235579, 276539, 325692, 178238, 276544, 284739, 292934, 276553, 194649, 227418, 309337, 194654, 227423, 178273, 227426, 276579, 194660, 227430, 276583, 292968, 309352, 276586, 301163, 309354, 276590, 227440, 284786, 276595, 292985, 301178, 292989, 292993, 301185, 227463, 276617, 301199, 350354, 350359, 276638, 284837, 153765, 227520, 227522, 301252, 227529, 301258, 276685, 276689, 301272, 276699, 194780, 309468, 301283, 317672, 276713, 243948, 194801, 227571, 276725, 309494, 243960, 227583, 276735, 276739, 211204, 276742, 227593, 227596, 325910, 309530, 342298, 276766, 211232, 276775, 211241, 325937, 276789, 325943, 260421, 276809, 285002, 276811, 276816, 235858, 276829, 276833, 276836, 276843, 293227, 276848, 293232, 186744, 285051, 211324, 227709, 317833, 178572, 285070, 285077, 178583, 227738, 317853, 276896, 317858, 342434, 285093, 285098, 276907, 276917, 293304, 293314, 293325, 317910, 293336, 235996, 317917, 293343, 358880, 276961, 227810, 293346, 276964, 293352, 236013, 293364, 317951, 309764, 236043, 317963, 342541, 55822, 113167, 277011, 317971, 309781, 55837, 227877, 227879, 227882, 293421, 105007, 236082, 285236, 23094, 277054, 244288, 129603, 301636, 277071, 285265, 399955, 277080, 309849, 285277, 285282, 326244, 277100, 277106, 121458, 170618, 170619, 309885, 309888, 277122, 146052, 227975, 277128, 285320, 301706, 318092, 326285, 318094, 334476, 277136, 277139, 227992, 285340, 318108, 227998, 318110, 285357, 318128, 277170, 342707, 154292, 277173, 293555, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 137946, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 285453, 310029, 228113, 285459, 277273, 326430, 228128, 228135, 318248, 277291, 318253, 285489, 293685, 285494, 285499, 301884, 310080, 277314, 277317, 293706, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 277368, 15224, 236408, 416639, 416640, 113538, 310147, 416648, 277385, 39817, 187274, 301972, 424853, 277405, 310179, 293798, 293802, 236460, 277426, 293811, 293817, 293820, 203715, 326603, 293849, 293861, 228327, 228328, 228330, 318442, 277486, 326638, 318450, 293877, 285686, 56313, 285690, 302073, 121850, 293882, 302075, 293887, 277504, 277507, 277511, 293899, 277519, 293908, 302105, 293917, 293939, 318516, 277561, 277564, 7232, 310336, 293956, 277573, 228422, 293960, 277577, 310344, 277583, 203857, 293971, 310359, 236632, 277594, 138332, 277598, 285792, 277601, 203872, 310374, 203879, 310376, 228460, 318573, 203886, 187509, 285815, 285817, 367737, 285821, 302205, 285824, 285831, 294026, 285835, 302218, 162964, 384148, 187542, 302231, 302233, 285852, 302237, 285854, 285862, 277671, 302248, 64682, 277678, 228526, 294063, 294065, 302258, 277687, 294072, 318651, 277695, 318657, 302275, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 302296, 384222, 310498, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 204026, 228606, 204031, 64768, 310531, 228617, 138505, 318742, 204067, 277798, 277801, 277804, 285997, 277807, 285999, 113969, 277811, 318773, 277816, 318776, 286010, 277819, 294204, 277822, 417086, 286016, 294211, 302403, 277832, 277836, 277839, 326991, 277842, 277847, 277850, 179547, 277853, 277857, 302436, 277860, 294246, 327015, 277864, 310632, 327017, 351594, 277869, 277872, 351607, 277880, 310648, 310651, 277884, 277888, 310657, 310659, 277892, 294276, 327046, 277894, 253320, 310665, 277898, 318858, 351619, 277903, 310672, 277905, 351633, 277908, 277917, 277921, 310689, 277923, 130468, 228776, 277928, 277932, 310703, 277937, 130486, 310710, 277944, 310712, 277947, 310715, 277950, 277953, 64966, 277959, 163272, 245191, 302534, 310727, 277963, 277966, 302543, 277971, 277975, 228825, 163290, 286169, 277978, 277981, 310749, 277984, 310755, 277989, 277991, 187880, 277995, 286188, 310764, 278000, 278003, 228851, 278006, 40440, 278009, 212472, 40443, 286203, 228864, 286214, 228871, 302603, 65038, 302614, 286233, 286240, 146977, 187939, 40484, 294435, 40486, 286246, 40488, 278057, 286248, 294439, 40491, 294440, 294443, 294445, 310831, 212538, 40507, 40511, 40513, 228933, 40521, 286283, 40525, 40527, 228944, 212560, 400976, 40533, 147032, 40537, 278109, 40541, 40544, 40548, 40550, 40552, 286313, 40554, 310892, 40557, 40560, 188022, 122488, 294521, 343679, 310925, 286354, 278163, 302740, 278168, 327333, 229030, 212648, 278188, 302764, 278192, 319153, 278196, 319171, 302789, 294599, 278216, 294601, 278227, 229076, 319187, 286425, 319194, 278235, 229086, 278238, 286432, 294625, 294634, 302838, 319226, 286460, 278274, 302852, 302854, 294664, 311048, 319243, 311053, 294682, 278306, 188199, 294701, 278320, 319280, 319290, 229192, 302925, 237409, 360317, 327554, 40840, 294803, 40851, 188312, 294811, 319390, 294817, 40865, 319394, 294821, 180142, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 294890, 311279, 278513, 237555, 278516, 278519, 237562 ]
7cac69ff724cbfa31c449c1c771356fc8d688546
6b0a3fabba61a3dc51d8a4ce3263048ecb02e9d3
/Source/SRT/SRTSource.swift
ec22d312c9dac9a933670d42438b35ffc3bfbe7e
[ "MIT" ]
permissive
cats-oss/VideoCast-Swift
0059ae6cdee94507f7fe936480b8a4f7c7d9eb03
7dedba865f9e3fa8f0e7fb138bc41f04ee1e939f
refs/heads/master
2023-06-26T19:18:44.507661
2023-06-12T15:09:00
2023-06-12T15:09:00
125,387,496
127
34
MIT
2023-05-02T13:33:45
2018-03-15T15:26:47
Swift
UTF-8
Swift
false
false
1,954
swift
// // SRTSource.swift // VideoCast // // Created by Tomohiro Matsuzawa on 7/29/18. // Copyright © 2018 CyberAgent, Inc. All rights reserved. // import Foundation class SrtSource: SrtCommon { var hostport_copy: String = "" var isOpen: Bool { return isUsable } var end: Bool { return isBroken } static func create(_ url: String, pollid: Int32?) throws -> SrtSource { let ret = try parseSrtUri(url) return try .init(ret.host, port: ret.port, par: ret.par, pollid: pollid) } init(_ host: String, port: Int, par: [String: String], pollid: Int32?) throws { try super.init(host, port: port, par: par, dir_output: false, pollid: pollid) hostport_copy = "\(host):\(port)" } override init() { // Do nothing - create just to prepare for use super.init() } func read(_ chunk: Int, data: inout [Int8]) throws -> Bool { if data.count < chunk { data = .init(repeating: 0, count: chunk) } let ready: Bool = true var stat: Int32 repeat { stat = srt_recvmsg(sock, &data, Int32(chunk)) if stat == SRT_ERROR { // EAGAIN for SRT READING if srt_getlasterror(nil) == SRT_EASYNCRCV.rawValue { data.removeAll() return false } try error(udtGetLastError(), src: "recvmsg") } if stat == 0 { throw SRTError.readEOF(message: hostport_copy) } } while !ready let chunk = MemoryLayout.size(ofValue: stat) if chunk < data.count { data = .init(repeating: 0, count: chunk) } return true } func getSRTSocket() -> SRTSOCKET { var socket = self.socket if socket == SRT_INVALID_SOCK { socket = listener } return socket } }
[ -1 ]
56bae6332af96d2973a33cb59c8d1f8ec9f72ed4
052a4e896266488ee5d4801fc33f8fe1287e1926
/Crush/View/CombineCardView.swift
f1aa43dc1d0e82b6b18d501cb3712b09beffa535
[]
no_license
pacscs/Crush
d9c380a8e860575de0170ab9006e5b0660b2a8b4
8a9faaf70d499ac743d659dc93d4d6ce58afc93c
refs/heads/main
2023-07-20T12:28:31.505204
2021-09-02T21:12:28
2021-09-02T21:12:28
388,578,327
0
0
null
null
null
null
UTF-8
Swift
false
false
2,343
swift
// // CombineCardView.swift // Crush // // Created by Paulo Alfredo Coraini de Souza on 22/07/21. // import UIKit class CombineCardView: UIView { var user: User? { didSet { if let user = user { picImageView.image = UIImage(named: user.photo) nameLabel.text = user.name ageLabel.text = String(user.Age) phraseLabel.text = user.phrase } } } let picImageView: UIImageView = .picImageView() let nameLabel: UILabel = .txtBoldLabel(32, textColor: .white) let ageLabel: UILabel = .txtLabel(28, textColor: .white) let phraseLabel: UILabel = .txtLabel(18, textColor: .white, numberOfLine: 2) let deslikeImageView: UIImageView = .iconCard(named: "card-deslike") let likeImageView: UIImageView = .iconCard(named: "card-like") override init (frame: CGRect) { super.init(frame: frame) layer.borderWidth = 0.3 layer.borderColor = UIColor.lightGray.cgColor layer.cornerRadius = 8 clipsToBounds = true nameLabel.addShadow() ageLabel.addShadow() phraseLabel.addShadow() addSubview(picImageView) addSubview(deslikeImageView) deslikeImageView.fill(top: topAnchor, leading: nil, trailing: trailingAnchor, bottom: nil, padding: .init(top: 20, left: 0, bottom: 0, right: 20)) addSubview(likeImageView) likeImageView.fill(top: topAnchor, leading: leadingAnchor, trailing: nil, bottom: nil, padding: .init(top: 20, left: 20, bottom: 0, right: 0)) picImageView.fillSuperview() let nameAgeStackView = UIStackView(arrangedSubviews: [nameLabel, ageLabel, UIView()]) nameAgeStackView.spacing = 12 let stackView = UIStackView(arrangedSubviews: [nameAgeStackView, phraseLabel]) stackView.distribution = .fillEqually stackView.axis = .vertical addSubview(stackView) stackView.fill(top: nil, leading: leadingAnchor, trailing: trailingAnchor, bottom: bottomAnchor, padding: .init(top: 0, left: 16, bottom: 16, right: 16)) } required init?(coder: NSCoder) { fatalError() } }
[ -1 ]
a7834a722e261b3106ac628fa7e9cb1d6de27518
c62b6e4c82707a9f22c77ebbc74203b47ba69108
/On The Map/Managers/Network/Requests/StudentInformationRequest.swift
f47de3c69f571215c95633b5d48fc33eb804276c
[]
no_license
danielevitali/On-The-Map
3e14ce183671a9484ad0b35538d4b510bc53347e
a593b26c889fe9bae4ec4b0b216dacadbf31a43a
refs/heads/master
2021-01-10T12:47:44.524505
2016-01-09T10:34:40
2016-01-09T10:34:40
48,499,734
0
0
null
null
null
null
UTF-8
Swift
false
false
1,071
swift
// // StudentLocationRequest.swift // On The Map // // Created by Daniele Vitali on 12/28/15. // Copyright © 2015 Daniele Vitali. All rights reserved. // import Foundation class StudentInformationRequest { let uniqueKey: String let firstName: String let lastName: String let mapString: String let mediaUrl: String let latitude: Double let longitude: Double init(uniqueKey: String, firstName: String, lastName: String, mapString: String, mediaUrl: String, latitude: Double, longitude: Double) { self.uniqueKey = uniqueKey self.firstName = firstName self.lastName = lastName self.mapString = mapString self.mediaUrl = mediaUrl self.latitude = latitude self.longitude = longitude } func convertToJson() -> String { return "{\"uniqueKey\": \"\(uniqueKey)\", \"firstName\": \"\(firstName)\", \"lastName\": \"\(lastName)\",\"mapString\": \"\(mapString)\", \"mediaURL\": \"\(mediaUrl)\",\"latitude\": \(latitude), \"longitude\": \(longitude)}" } }
[ -1 ]
83d664f99f5f197173d4f202697a714cea18ed06
a41f0f1d09bc4c9713828b1569ad1790fb3c9964
/wedgeable/wedgeable/ListCell.swift
988b41fdb85cc11bc4fe16e137c62af75843d575
[]
no_license
edmund-h/wedgeable
beb6adbc861bb6cdf0784d61b0178821624c9adb
a8806fdda1bc2c9fd847001fb4b04ff1cda2d879
refs/heads/master
2021-01-20T05:43:56.953195
2017-09-01T15:45:34
2017-09-01T15:45:34
89,803,435
0
0
null
null
null
null
UTF-8
Swift
false
false
838
swift
// // ListCell.swift // wedgeable // // Created by Edmund Holderbaum on 4/29/17. // Copyright © 2017 Bozo Design Labs. All rights reserved. // import UIKit class ListCell: UITableViewCell { var event: Event? = nil { didSet { //this is to test what kind of logic these cells will use once we are actually using data self.textLabel?.text = event?.name if let event = event, event.aspect == .followups { self.backgroundColor = UIColor.magenta } } } 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 ]
997be4a72591156c4ae0182281a8fff7f78c1cc9
47daf01a24a9bee965e1dbfc477ee0ed70dc76ea
/PetStore/OpenAPIClient/Classes/OpenAPIs/APIs/PetAPI.swift
d66f38ed98814f0dd6ff77756449ffaa12e20bfa
[]
no_license
NathanGuillaud/PetStore
e5b02545299d0a4ecaf0cff1a120f111e586c202
154df450878315dafe45689d517ccd8e9f7907d1
refs/heads/master
2022-06-26T14:49:41.198500
2020-05-07T14:35:13
2020-05-07T14:35:13
259,582,951
0
0
null
null
null
null
UTF-8
Swift
false
false
16,150
swift
// // PetAPI.swift // // Generated by openapi-generator // https://openapi-generator.tech // import Foundation open class PetAPI { /** Add a new pet to the store - parameter body: (body) Pet object that needs to be added to the store - parameter apiResponseQueue: The queue on which api response is dispatched. - parameter completion: completion handler to receive the data and the error objects */ open class func addPet(body: Pet, apiResponseQueue: DispatchQueue = OpenAPIClientAPI.apiResponseQueue, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { addPetWithRequestBuilder(body: body).execute(apiResponseQueue) { result -> Void in switch result { case .success: completion((), nil) case let .failure(error): completion(nil, error) } } } /** Add a new pet to the store - POST /pet - OAuth: - type: oauth2 - name: petstore_auth - parameter body: (body) Pet object that needs to be added to the store - returns: RequestBuilder<Void> */ open class func addPetWithRequestBuilder(body: Pet) -> RequestBuilder<Void> { let path = "/pet" let URLString = OpenAPIClientAPI.basePath + path let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) let url = URLComponents(string: URLString) let requestBuilder: RequestBuilder<Void>.Type = OpenAPIClientAPI.requestBuilderFactory.getNonDecodableBuilder() return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) } /** Deletes a pet - parameter petId: (path) Pet id to delete - parameter apiKey: (header) (optional) - parameter apiResponseQueue: The queue on which api response is dispatched. - parameter completion: completion handler to receive the data and the error objects */ open class func deletePet(petId: Int64, apiKey: String? = nil, apiResponseQueue: DispatchQueue = OpenAPIClientAPI.apiResponseQueue, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { deletePetWithRequestBuilder(petId: petId, apiKey: apiKey).execute(apiResponseQueue) { result -> Void in switch result { case .success: completion((), nil) case let .failure(error): completion(nil, error) } } } /** Deletes a pet - DELETE /pet/{petId} - OAuth: - type: oauth2 - name: petstore_auth - parameter petId: (path) Pet id to delete - parameter apiKey: (header) (optional) - returns: RequestBuilder<Void> */ open class func deletePetWithRequestBuilder(petId: Int64, apiKey: String? = nil) -> RequestBuilder<Void> { var path = "/pet/{petId}" let petIdPreEscape = "\(APIHelper.mapValueToPathItem(petId))" let petIdPostEscape = petIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" path = path.replacingOccurrences(of: "{petId}", with: petIdPostEscape, options: .literal, range: nil) let URLString = OpenAPIClientAPI.basePath + path let parameters: [String:Any]? = nil let url = URLComponents(string: URLString) let nillableHeaders: [String: Any?] = [ "api_key": apiKey?.encodeToJSON() ] let headerParameters = APIHelper.rejectNilHeaders(nillableHeaders) let requestBuilder: RequestBuilder<Void>.Type = OpenAPIClientAPI.requestBuilderFactory.getNonDecodableBuilder() return requestBuilder.init(method: "DELETE", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false, headers: headerParameters) } /** * enum for parameter status */ public enum Status_findPetsByStatus: String, CaseIterable { case available = "available" case pending = "pending" case sold = "sold" } /** Finds Pets by status - parameter status: (query) Status values that need to be considered for filter - parameter apiResponseQueue: The queue on which api response is dispatched. - parameter completion: completion handler to receive the data and the error objects */ open class func findPetsByStatus(status: [String], apiResponseQueue: DispatchQueue = OpenAPIClientAPI.apiResponseQueue, completion: @escaping ((_ data: [Pet]?,_ error: Error?) -> Void)) { findPetsByStatusWithRequestBuilder(status: status).execute(apiResponseQueue) { result -> Void in switch result { case let .success(response): completion(response.body, nil) case let .failure(error): completion(nil, error) } } } /** Finds Pets by status - GET /pet/findByStatus - Multiple status values can be provided with comma separated strings - OAuth: - type: oauth2 - name: petstore_auth - parameter status: (query) Status values that need to be considered for filter - returns: RequestBuilder<[Pet]> */ open class func findPetsByStatusWithRequestBuilder(status: [String]) -> RequestBuilder<[Pet]> { let path = "/pet/findByStatus" let URLString = OpenAPIClientAPI.basePath + path let parameters: [String:Any]? = nil var url = URLComponents(string: URLString) url?.queryItems = APIHelper.mapValuesToQueryItems([ "status": status.encodeToJSON() ]) let requestBuilder: RequestBuilder<[Pet]>.Type = OpenAPIClientAPI.requestBuilderFactory.getBuilder() return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) } /** Finds Pets by tags - parameter tags: (query) Tags to filter by - parameter apiResponseQueue: The queue on which api response is dispatched. - parameter completion: completion handler to receive the data and the error objects */ open class func findPetsByTags(tags: [String], apiResponseQueue: DispatchQueue = OpenAPIClientAPI.apiResponseQueue, completion: @escaping ((_ data: [Pet]?,_ error: Error?) -> Void)) { findPetsByTagsWithRequestBuilder(tags: tags).execute(apiResponseQueue) { result -> Void in switch result { case let .success(response): completion(response.body, nil) case let .failure(error): completion(nil, error) } } } /** Finds Pets by tags - GET /pet/findByTags - Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3 for testing. - OAuth: - type: oauth2 - name: petstore_auth - parameter tags: (query) Tags to filter by - returns: RequestBuilder<[Pet]> */ open class func findPetsByTagsWithRequestBuilder(tags: [String]) -> RequestBuilder<[Pet]> { let path = "/pet/findByTags" let URLString = OpenAPIClientAPI.basePath + path let parameters: [String:Any]? = nil var url = URLComponents(string: URLString) url?.queryItems = APIHelper.mapValuesToQueryItems([ "tags": tags.encodeToJSON() ]) let requestBuilder: RequestBuilder<[Pet]>.Type = OpenAPIClientAPI.requestBuilderFactory.getBuilder() return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) } /** Find pet by ID - parameter petId: (path) ID of pet to return - parameter apiResponseQueue: The queue on which api response is dispatched. - parameter completion: completion handler to receive the data and the error objects */ open class func getPetById(petId: Int64, apiResponseQueue: DispatchQueue = OpenAPIClientAPI.apiResponseQueue, completion: @escaping ((_ data: Pet?,_ error: Error?) -> Void)) { getPetByIdWithRequestBuilder(petId: petId).execute(apiResponseQueue) { result -> Void in switch result { case let .success(response): completion(response.body, nil) case let .failure(error): completion(nil, error) } } } /** Find pet by ID - GET /pet/{petId} - Returns a single pet - API Key: - type: apiKey api_key - name: api_key - parameter petId: (path) ID of pet to return - returns: RequestBuilder<Pet> */ open class func getPetByIdWithRequestBuilder(petId: Int64) -> RequestBuilder<Pet> { var path = "/pet/{petId}" let petIdPreEscape = "\(APIHelper.mapValueToPathItem(petId))" let petIdPostEscape = petIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" path = path.replacingOccurrences(of: "{petId}", with: petIdPostEscape, options: .literal, range: nil) let URLString = OpenAPIClientAPI.basePath + path let parameters: [String:Any]? = nil let url = URLComponents(string: URLString) let requestBuilder: RequestBuilder<Pet>.Type = OpenAPIClientAPI.requestBuilderFactory.getBuilder() return requestBuilder.init(method: "GET", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) } /** Update an existing pet - parameter body: (body) Pet object that needs to be added to the store - parameter apiResponseQueue: The queue on which api response is dispatched. - parameter completion: completion handler to receive the data and the error objects */ open class func updatePet(body: Pet, apiResponseQueue: DispatchQueue = OpenAPIClientAPI.apiResponseQueue, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { updatePetWithRequestBuilder(body: body).execute(apiResponseQueue) { result -> Void in switch result { case .success: completion((), nil) case let .failure(error): completion(nil, error) } } } /** Update an existing pet - PUT /pet - OAuth: - type: oauth2 - name: petstore_auth - parameter body: (body) Pet object that needs to be added to the store - returns: RequestBuilder<Void> */ open class func updatePetWithRequestBuilder(body: Pet) -> RequestBuilder<Void> { let path = "/pet" let URLString = OpenAPIClientAPI.basePath + path let parameters = JSONEncodingHelper.encodingParameters(forEncodableObject: body) let url = URLComponents(string: URLString) let requestBuilder: RequestBuilder<Void>.Type = OpenAPIClientAPI.requestBuilderFactory.getNonDecodableBuilder() return requestBuilder.init(method: "PUT", URLString: (url?.string ?? URLString), parameters: parameters, isBody: true) } /** Updates a pet in the store with form data - parameter petId: (path) ID of pet that needs to be updated - parameter name: (form) Updated name of the pet (optional) - parameter status: (form) Updated status of the pet (optional) - parameter apiResponseQueue: The queue on which api response is dispatched. - parameter completion: completion handler to receive the data and the error objects */ open class func updatePetWithForm(petId: Int64, name: String? = nil, status: String? = nil, apiResponseQueue: DispatchQueue = OpenAPIClientAPI.apiResponseQueue, completion: @escaping ((_ data: Void?,_ error: Error?) -> Void)) { updatePetWithFormWithRequestBuilder(petId: petId, name: name, status: status).execute(apiResponseQueue) { result -> Void in switch result { case .success: completion((), nil) case let .failure(error): completion(nil, error) } } } /** Updates a pet in the store with form data - POST /pet/{petId} - OAuth: - type: oauth2 - name: petstore_auth - parameter petId: (path) ID of pet that needs to be updated - parameter name: (form) Updated name of the pet (optional) - parameter status: (form) Updated status of the pet (optional) - returns: RequestBuilder<Void> */ open class func updatePetWithFormWithRequestBuilder(petId: Int64, name: String? = nil, status: String? = nil) -> RequestBuilder<Void> { var path = "/pet/{petId}" let petIdPreEscape = "\(APIHelper.mapValueToPathItem(petId))" let petIdPostEscape = petIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" path = path.replacingOccurrences(of: "{petId}", with: petIdPostEscape, options: .literal, range: nil) let URLString = OpenAPIClientAPI.basePath + path let formParams: [String:Any?] = [ "name": name?.encodeToJSON(), "status": status?.encodeToJSON() ] let nonNullParameters = APIHelper.rejectNil(formParams) let parameters = APIHelper.convertBoolToString(nonNullParameters) let url = URLComponents(string: URLString) let requestBuilder: RequestBuilder<Void>.Type = OpenAPIClientAPI.requestBuilderFactory.getNonDecodableBuilder() return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) } /** uploads an image - parameter petId: (path) ID of pet to update - parameter additionalMetadata: (form) Additional data to pass to server (optional) - parameter file: (form) file to upload (optional) - parameter apiResponseQueue: The queue on which api response is dispatched. - parameter completion: completion handler to receive the data and the error objects */ open class func uploadFile(petId: Int64, additionalMetadata: String? = nil, file: URL? = nil, apiResponseQueue: DispatchQueue = OpenAPIClientAPI.apiResponseQueue, completion: @escaping ((_ data: ApiResponse?,_ error: Error?) -> Void)) { uploadFileWithRequestBuilder(petId: petId, additionalMetadata: additionalMetadata, file: file).execute(apiResponseQueue) { result -> Void in switch result { case let .success(response): completion(response.body, nil) case let .failure(error): completion(nil, error) } } } /** uploads an image - POST /pet/{petId}/uploadImage - OAuth: - type: oauth2 - name: petstore_auth - parameter petId: (path) ID of pet to update - parameter additionalMetadata: (form) Additional data to pass to server (optional) - parameter file: (form) file to upload (optional) - returns: RequestBuilder<ApiResponse> */ open class func uploadFileWithRequestBuilder(petId: Int64, additionalMetadata: String? = nil, file: URL? = nil) -> RequestBuilder<ApiResponse> { var path = "/pet/{petId}/uploadImage" let petIdPreEscape = "\(APIHelper.mapValueToPathItem(petId))" let petIdPostEscape = petIdPreEscape.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "" path = path.replacingOccurrences(of: "{petId}", with: petIdPostEscape, options: .literal, range: nil) let URLString = OpenAPIClientAPI.basePath + path let formParams: [String:Any?] = [ "additionalMetadata": additionalMetadata?.encodeToJSON(), "file": file?.encodeToJSON() ] let nonNullParameters = APIHelper.rejectNil(formParams) let parameters = APIHelper.convertBoolToString(nonNullParameters) let url = URLComponents(string: URLString) let requestBuilder: RequestBuilder<ApiResponse>.Type = OpenAPIClientAPI.requestBuilderFactory.getBuilder() return requestBuilder.init(method: "POST", URLString: (url?.string ?? URLString), parameters: parameters, isBody: false) } }
[ -1 ]
26bf4b458894fefec5165401a057a862bcbd5ee7
bce66650da0ffe3efe0d5d93835decaf39bd6066
/AnimeSaver/VC's/ProfileViewController.swift
a44a2e8dc47dbadc4e6f1944cf347093797b0eff
[]
no_license
JasonD4/AnimeSaver
2b7b824ed5b4470119e74f0fe225ffe4f7f7c95f
628147f4824b72549638d056fc6e228091c298c5
refs/heads/master
2020-04-21T14:44:14.199115
2019-03-12T16:02:49
2019-03-12T16:02:49
169,471,405
0
0
null
null
null
null
UTF-8
Swift
false
false
5,955
swift
// // ProfileViewController.swift // AnimeSaver // // Created by Jason on 3/5/19. // Copyright © 2019 Jason. All rights reserved. // import UIKit import FirebaseAuth class ProfileViewController: UIViewController { @IBOutlet weak var profileImageButton: UIButton! @IBOutlet weak var signOutButton: UIButton! @IBOutlet weak var emailLabel: UILabel! private var userSession: UserSession! private var storageModel: StorageManager! private var picHolder = ["Neptune3", "Noire3", "Blanc3"] private lazy var pickerImage: UIImagePickerController = { let imagePicker = UIImagePickerController() imagePicker.allowsEditing = true imagePicker.delegate = self return imagePicker }() override func viewDidLoad() { super.viewDidLoad() } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(true) profileImageButton.setImage(UIImage.init(named: picHolder.randomElement()!), for: .normal) userSession = (UIApplication.shared.delegate as! AppDelegate).usersession storageModel = (UIApplication.shared.delegate as! AppDelegate).storageManager // set the delegate for sign out userSession.usersessionSignOutDelegate = self storageModel.delegate = self // set email label guard let user = userSession.getCurrentUser() else { emailLabel.text = "no logged user" return } emailLabel.text = user.email ?? "no email found for logged user" guard let photoURL = user.photoURL else { print("no photoURL") return } if let image = ImageCache.shared.fetchImageFromCache(urlString: photoURL.absoluteString) { profileImageButton.setImage(image, for: .normal) } else { ImageCache.shared.fetchImageFromNetwork(urlString: photoURL.absoluteString) { (appError, image) in if let appError = appError { self.showAlert(title: "Fetching Image Error", message: appError.errorMessage(), actionTitle: "Ok") } else if let image = image { self.profileImageButton.setImage(image, for: .normal) } } } } @IBAction func signOut(_ sender: UIButton){ userSession.signOut() } @IBAction func photoPicture(_ sender: UIButton) { let alertController = UIAlertController(title: nil, message: nil, preferredStyle: .actionSheet) let cameraAction = UIAlertAction(title: "Camera", style: .default) { (action) in self.pickerImage.sourceType = .camera self.showImagePickerController() } let photoLibrary = UIAlertAction(title: "Photo Library", style: .default) { (action) in self.pickerImage.sourceType = .photoLibrary self.showImagePickerController() } if UIImagePickerController.isSourceTypeAvailable(.camera) { alertController.addAction(cameraAction) } alertController.addAction(photoLibrary) alertController.addAction(UIAlertAction(title: "Cancel", style: .cancel)) self.present(alertController, animated: true) } private func showImagePickerController() { present(pickerImage, animated: true, completion: nil) } } extension ProfileViewController: UserSessionSignOutDelegate{ func didRecieveSignOutError(_ usersession: UserSession, error: Error) { showAlert(title: "Sign Out Error", message: error.localizedDescription, actionTitle: "Ok") } func didSignOutUser(_ usersession: UserSession) { presentLoginViewController() } private func presentLoginViewController() { if let _ = (UIApplication.shared.delegate as! AppDelegate).window?.rootViewController as? UITabBarController { // coming from existing sign in state (tab bar controller is rootViewController) let window = (UIApplication.shared.delegate as! AppDelegate).window let storyboard = UIStoryboard(name: "Main", bundle: nil) let loginViewController = storyboard.instantiateViewController(withIdentifier: "test") window?.rootViewController = loginViewController } else { // coming from new login state (login view controller is rootViewController) dismiss(animated: true) } } } extension ProfileViewController: UIImagePickerControllerDelegate, UINavigationControllerDelegate{ func imagePickerControllerDidCancel(_ picker: UIImagePickerController) { dismiss(animated: true) } func imagePickerController(_ picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [UIImagePickerController.InfoKey : Any]) { guard let originalImage = info[UIImagePickerController.InfoKey.originalImage] as? UIImage else { showAlert(title: "Error with Image", message: "Try Again", actionTitle: "Ok") return } profileImageButton.setImage(originalImage, for: .normal) // convert the image to Data for posting to Firebase Storage guard let imageData = originalImage.jpegData(compressionQuality: 0.5) else { print("failed to create data from image") return } // save the image to Firebase Storage storageModel.postImage(withData: imageData) dismiss(animated: true) } } extension ProfileViewController: StorageManagerDelegate { func didFetchImage(_ storageManager: StorageManager, imageURL: URL) { // update the auth user's photoURL userSession.updateUser(displayName: nil, photoURL: imageURL) } }
[ -1 ]
95362d80b296aa8781e529fcd89c895a3a75cc04
a5f511bf64a0d4d4e5b9c6802412caf970c3e823
/src/ios/qrScanner.swift
1f58e2369f200f68e561524897b14d8db65a1157
[ "MIT" ]
permissive
Mani397/cordova-plugin-qr-scanner
10e47d087c60ed608b55202cd5222ef068f85fdd
cceffebda5143a5c0867866c33bb7deab0730fc2
refs/heads/master
2023-04-16T19:35:08.394101
2021-04-30T04:50:21
2021-04-30T04:50:21
358,233,337
0
0
MIT
2021-04-15T11:25:09
2021-04-15T11:25:08
null
UTF-8
Swift
false
false
19,498
swift
import Foundation import AVFoundation @objc(QRScanner) class QRScanner : CDVPlugin, AVCaptureMetadataOutputObjectsDelegate { class CameraView: UIView { var videoPreviewLayer:AVCaptureVideoPreviewLayer? func interfaceOrientationToVideoOrientation(_ orientation : UIInterfaceOrientation) -> AVCaptureVideoOrientation { switch (orientation) { case UIInterfaceOrientation.portrait: return AVCaptureVideoOrientation.portrait; case UIInterfaceOrientation.portraitUpsideDown: return AVCaptureVideoOrientation.portraitUpsideDown; case UIInterfaceOrientation.landscapeLeft: return AVCaptureVideoOrientation.landscapeLeft; case UIInterfaceOrientation.landscapeRight: return AVCaptureVideoOrientation.landscapeRight; default: return AVCaptureVideoOrientation.portraitUpsideDown; } } override func layoutSubviews() { super.layoutSubviews(); if let sublayers = self.layer.sublayers { for layer in sublayers { layer.frame = self.bounds; } } self.videoPreviewLayer?.connection?.videoOrientation = interfaceOrientationToVideoOrientation(UIApplication.shared.statusBarOrientation); } func addPreviewLayer(_ previewLayer:AVCaptureVideoPreviewLayer?) { previewLayer!.videoGravity = AVLayerVideoGravity.resizeAspectFill previewLayer!.frame = self.bounds self.layer.addSublayer(previewLayer!) self.videoPreviewLayer = previewLayer; } func removePreviewLayer() { if self.videoPreviewLayer != nil { self.videoPreviewLayer!.removeFromSuperlayer() self.videoPreviewLayer = nil } } } var cameraView: CameraView! var captureSession:AVCaptureSession? var captureVideoPreviewLayer:AVCaptureVideoPreviewLayer? var metaOutput: AVCaptureMetadataOutput? var currentCamera: Int = 0; var frontCamera: AVCaptureDevice? var backCamera: AVCaptureDevice? var scanning: Bool = false var paused: Bool = false var nextScanningCommand: CDVInvokedUrlCommand? enum QRScannerError: Int32 { case unexpected_error = 0, camera_access_denied = 1, camera_access_restricted = 2, back_camera_unavailable = 3, front_camera_unavailable = 4, camera_unavailable = 5, scan_canceled = 6, light_unavailable = 7, open_settings_unavailable = 8 } enum CaptureError: Error { case backCameraUnavailable case frontCameraUnavailable case couldNotCaptureInput(error: NSError) } enum LightError: Error { case torchUnavailable } override func pluginInitialize() { super.pluginInitialize() NotificationCenter.default.addObserver(self, selector: #selector(pageDidLoad), name: NSNotification.Name.CDVPageDidLoad, object: nil) self.cameraView = CameraView(frame: CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: UIScreen.main.bounds.height)) self.cameraView.autoresizingMask = [.flexibleWidth, .flexibleHeight]; } func sendErrorCode(command: CDVInvokedUrlCommand, error: QRScannerError){ let pluginResult = CDVPluginResult(status: CDVCommandStatus_ERROR, messageAs: error.rawValue) commandDelegate!.send(pluginResult, callbackId:command.callbackId) } // utility method @objc func backgroundThread(delay: Double = 0.0, background: (() -> Void)? = nil, completion: (() -> Void)? = nil) { if #available(iOS 8.0, *) { DispatchQueue.global(qos: DispatchQoS.QoSClass.userInitiated).async { if (background != nil) { background!() } DispatchQueue.main.asyncAfter(deadline: DispatchTime.now() + delay * Double(NSEC_PER_SEC)) { if(completion != nil){ completion!() } } } } else { // Fallback for iOS < 8.0 if(background != nil){ background!() } if(completion != nil){ completion!() } } } @objc func prepScanner(command: CDVInvokedUrlCommand) -> Bool{ let status = AVCaptureDevice.authorizationStatus(for: AVMediaType.video) if (status == AVAuthorizationStatus.restricted) { self.sendErrorCode(command: command, error: QRScannerError.camera_access_restricted) return false } else if status == AVAuthorizationStatus.denied { self.sendErrorCode(command: command, error: QRScannerError.camera_access_denied) return false } do { if (captureSession?.isRunning != true){ cameraView.backgroundColor = UIColor.clear self.webView!.superview!.insertSubview(cameraView, belowSubview: self.webView!) let availableVideoDevices = AVCaptureDevice.devices(for: AVMediaType.video) for device in availableVideoDevices { if device.position == AVCaptureDevice.Position.back { backCamera = device } else if device.position == AVCaptureDevice.Position.front { frontCamera = device } } // older iPods have no back camera if(backCamera == nil){ currentCamera = 1 } let input: AVCaptureDeviceInput input = try self.createCaptureDeviceInput() captureSession = AVCaptureSession() captureSession!.addInput(input) metaOutput = AVCaptureMetadataOutput() captureSession!.addOutput(metaOutput!) metaOutput!.setMetadataObjectsDelegate(self, queue: DispatchQueue.main) metaOutput!.metadataObjectTypes = [AVMetadataObject.ObjectType.qr] captureVideoPreviewLayer = AVCaptureVideoPreviewLayer(session: captureSession!) cameraView.addPreviewLayer(captureVideoPreviewLayer) captureSession!.startRunning() } return true } catch CaptureError.backCameraUnavailable { self.sendErrorCode(command: command, error: QRScannerError.back_camera_unavailable) } catch CaptureError.frontCameraUnavailable { self.sendErrorCode(command: command, error: QRScannerError.front_camera_unavailable) } catch CaptureError.couldNotCaptureInput(let error){ print(error.localizedDescription) self.sendErrorCode(command: command, error: QRScannerError.camera_unavailable) } catch { self.sendErrorCode(command: command, error: QRScannerError.unexpected_error) } return false } @objc func createCaptureDeviceInput() throws -> AVCaptureDeviceInput { var captureDevice: AVCaptureDevice if(currentCamera == 0){ if(backCamera != nil){ captureDevice = backCamera! } else { throw CaptureError.backCameraUnavailable } } else { if(frontCamera != nil){ captureDevice = frontCamera! } else { throw CaptureError.frontCameraUnavailable } } let captureDeviceInput: AVCaptureDeviceInput do { captureDeviceInput = try AVCaptureDeviceInput(device: captureDevice) } catch let error as NSError { throw CaptureError.couldNotCaptureInput(error: error) } return captureDeviceInput } @objc func makeOpaque(){ self.webView?.isOpaque = false self.webView?.backgroundColor = UIColor.clear } @objc func boolToNumberString(bool: Bool) -> String{ if(bool) { return "1" } else { return "0" } } @objc func configureLight(command: CDVInvokedUrlCommand, state: Bool){ var useMode = AVCaptureDevice.TorchMode.on if(state == false){ useMode = AVCaptureDevice.TorchMode.off } do { // torch is only available for back camera if(backCamera == nil || backCamera!.hasTorch == false || backCamera!.isTorchAvailable == false || backCamera!.isTorchModeSupported(useMode) == false){ throw LightError.torchUnavailable } try backCamera!.lockForConfiguration() backCamera!.torchMode = useMode backCamera!.unlockForConfiguration() self.getStatus(command) } catch LightError.torchUnavailable { self.sendErrorCode(command: command, error: QRScannerError.light_unavailable) } catch let error as NSError { print(error.localizedDescription) self.sendErrorCode(command: command, error: QRScannerError.unexpected_error) } } // This method processes metadataObjects captured by iOS. func metadataOutput(_ captureOutput: AVCaptureMetadataOutput, didOutput metadataObjects: [AVMetadataObject], from connection: AVCaptureConnection) { if metadataObjects.count == 0 || scanning == false { // while nothing is detected, or if scanning is false, do nothing. return } let found = metadataObjects[0] as! AVMetadataMachineReadableCodeObject if found.type == AVMetadataObject.ObjectType.qr && found.stringValue != nil { scanning = false let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: found.stringValue) commandDelegate!.send(pluginResult, callbackId: nextScanningCommand?.callbackId!) nextScanningCommand = nil } } @objc func pageDidLoad() { self.webView?.isOpaque = false self.webView?.backgroundColor = UIColor.clear } // ---- BEGIN EXTERNAL API ---- @objc func prepare(_ command: CDVInvokedUrlCommand){ let status = AVCaptureDevice.authorizationStatus(for: AVMediaType.video) if (status == AVAuthorizationStatus.notDetermined) { // Request permission before preparing scanner AVCaptureDevice.requestAccess(for: AVMediaType.video, completionHandler: { (granted) -> Void in // attempt to prepScanner only after the request returns self.backgroundThread(delay: 0, completion: { if(self.prepScanner(command: command)){ self.getStatus(command) } }) }) } else { if(self.prepScanner(command: command)){ self.getStatus(command) } } } @objc func startScanner(_ command: CDVInvokedUrlCommand){ if(self.prepScanner(command: command)){ nextScanningCommand = command scanning = true } } @objc func stopScanner(_ command: CDVInvokedUrlCommand){ if(self.prepScanner(command: command)){ scanning = false if(nextScanningCommand != nil){ self.sendErrorCode(command: nextScanningCommand!, error: QRScannerError.scan_canceled) } self.getStatus(command) } } @objc func show(_ command: CDVInvokedUrlCommand) { self.webView?.isOpaque = false self.webView?.backgroundColor = UIColor.clear self.getStatus(command) } @objc func hide(_ command: CDVInvokedUrlCommand) { self.makeOpaque() self.getStatus(command) } @objc func pausePreview(_ command: CDVInvokedUrlCommand) { if(scanning){ paused = true; scanning = false; } captureVideoPreviewLayer?.connection?.isEnabled = false self.getStatus(command) } @objc func resumePreview(_ command: CDVInvokedUrlCommand) { if(paused){ paused = false; scanning = true; } captureVideoPreviewLayer?.connection?.isEnabled = true self.getStatus(command) } // backCamera is 0, frontCamera is 1 @objc func useCamera(_ command: CDVInvokedUrlCommand){ let index = command.arguments[0] as! Int if(currentCamera != index){ // camera change only available if both backCamera and frontCamera exist if(backCamera != nil && frontCamera != nil){ // switch camera currentCamera = index if(self.prepScanner(command: command)){ do { captureSession!.beginConfiguration() let currentInput = captureSession?.inputs[0] as! AVCaptureDeviceInput captureSession!.removeInput(currentInput) let input = try self.createCaptureDeviceInput() captureSession!.addInput(input) captureSession!.commitConfiguration() self.getStatus(command) } catch CaptureError.backCameraUnavailable { self.sendErrorCode(command: command, error: QRScannerError.back_camera_unavailable) } catch CaptureError.frontCameraUnavailable { self.sendErrorCode(command: command, error: QRScannerError.front_camera_unavailable) } catch CaptureError.couldNotCaptureInput(let error){ print(error.localizedDescription) self.sendErrorCode(command: command, error: QRScannerError.camera_unavailable) } catch { self.sendErrorCode(command: command, error: QRScannerError.unexpected_error) } } } else { if(backCamera == nil){ self.sendErrorCode(command: command, error: QRScannerError.back_camera_unavailable) } else { self.sendErrorCode(command: command, error: QRScannerError.front_camera_unavailable) } } } else { // immediately return status if camera is unchanged self.getStatus(command) } } @objc func enableLight(_ command: CDVInvokedUrlCommand) { if(self.prepScanner(command: command)){ self.configureLight(command: command, state: true) } } @objc func disableLight(_ command: CDVInvokedUrlCommand) { if(self.prepScanner(command: command)){ self.configureLight(command: command, state: false) } } @objc func destroy(_ command: CDVInvokedUrlCommand) { self.makeOpaque() if(self.captureSession != nil){ backgroundThread(delay: 0, background: { self.captureSession!.stopRunning() self.cameraView.removePreviewLayer() self.captureVideoPreviewLayer = nil self.metaOutput = nil self.captureSession = nil self.currentCamera = 0 self.frontCamera = nil self.backCamera = nil }, completion: { self.getStatus(command) }) } else { self.getStatus(command) } } @objc func getStatus(_ command: CDVInvokedUrlCommand){ let authorizationStatus = AVCaptureDevice.authorizationStatus(for: AVMediaType.video); var authorized = false if(authorizationStatus == AVAuthorizationStatus.authorized){ authorized = true } var denied = false if(authorizationStatus == AVAuthorizationStatus.denied){ denied = true } var restricted = false if(authorizationStatus == AVAuthorizationStatus.restricted){ restricted = true } var prepared = false if(captureSession?.isRunning == true){ prepared = true } var previewing = false if(captureVideoPreviewLayer != nil){ previewing = captureVideoPreviewLayer!.connection!.isEnabled } var showing = false if(self.webView!.backgroundColor == UIColor.clear){ showing = true } var lightEnabled = false if(backCamera?.torchMode == AVCaptureDevice.TorchMode.on){ lightEnabled = true } var canOpenSettings = false if #available(iOS 8.0, *) { canOpenSettings = true } var canEnableLight = false if(backCamera?.hasTorch == true && backCamera?.isTorchAvailable == true && backCamera?.isTorchModeSupported(AVCaptureDevice.TorchMode.on) == true){ canEnableLight = true } var canChangeCamera = false; if(backCamera != nil && frontCamera != nil){ canChangeCamera = true } let status = [ "authorized": boolToNumberString(bool: authorized), "denied": boolToNumberString(bool: denied), "restricted": boolToNumberString(bool: restricted), "prepared": boolToNumberString(bool: prepared), "scanning": boolToNumberString(bool: scanning), "previewing": boolToNumberString(bool: previewing), "showing": boolToNumberString(bool: showing), "lightEnabled": boolToNumberString(bool: lightEnabled), "canOpenSettings": boolToNumberString(bool: canOpenSettings), "canEnableLight": boolToNumberString(bool: canEnableLight), "canChangeCamera": boolToNumberString(bool: canChangeCamera), "currentCamera": String(currentCamera) ] let pluginResult = CDVPluginResult(status: CDVCommandStatus_OK, messageAs: status) commandDelegate!.send(pluginResult, callbackId:command.callbackId) } @objc func openSettings(_ command: CDVInvokedUrlCommand) { if #available(iOS 10.0, *) { guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else { return } if UIApplication.shared.canOpenURL(settingsUrl) { UIApplication.shared.open(settingsUrl, completionHandler: { (success) in self.getStatus(command) }) } else { self.sendErrorCode(command: command, error: QRScannerError.open_settings_unavailable) } } else { // pre iOS 10.0 if #available(iOS 8.0, *) { UIApplication.shared.openURL(NSURL(string: UIApplication.openSettingsURLString)! as URL) self.getStatus(command) } else { self.sendErrorCode(command: command, error: QRScannerError.open_settings_unavailable) } } } }
[ -1 ]
3f5ef4c91635dcac24cd170ba1179b67597c4c16
aa17ccf6355f69a6b9d3dccf470f4cb573d468d8
/Kindling/Models/DayOfBirth.swift
53ae8a030b95481cba2fcaf0836dd67ff8c73b64
[]
no_license
PayinBernal/Kindling
17e1a723856d2c0fca443c290d2a4d1fba1f867f
555db25649f1850bc2bbf98275deeebfa223298c
refs/heads/main
2023-06-30T15:01:29.971934
2021-08-10T15:13:28
2021-08-10T15:13:28
394,694,702
0
0
null
null
null
null
UTF-8
Swift
false
false
175
swift
// // DayOfBirth.swift // Kindling // // Created by Eduardo Bernal on 04/08/21. // import Foundation struct DayOfBirth: Codable { let date: String let age: Int }
[ -1 ]
713b21c71c7c459f7657393f5cfc941be28b5aa1
af55eb83433d5ee5622a346ff53ff6fcddf79817
/LumenCamera/Classes/Views/ImageGridView.swift
cdfd1cbceb495de6783330328c6ebc774d4b0d6f
[]
no_license
mohssenfathi/LumenCamera
87735b90a1a6ede6dd5ce6f05b6757957ca4e151
a471722153e7781c4b96a10af675316f7f737c6e
refs/heads/master
2020-03-12T11:58:35.133758
2018-04-22T21:19:57
2018-04-22T21:19:57
78,293,868
0
0
null
null
null
null
UTF-8
Swift
false
false
2,647
swift
// // ImageGridView.swift // Lumen // // Created by Mohssen Fathi on 1/11/18. // Copyright © 2018 mohssenfathi. All rights reserved. // import UIKit import Photos class ImageGridView: UIView { var maxImagesPerRow: Int = 3 var maxImagesPerColumn: Int = 3 var spacing: CGFloat = 12.0 // var assets: [PHAsset] = [] { // didSet { reload() } // } var images: [UIImage] = [] { didSet { reload() } } override init(frame: CGRect) { super.init(frame: frame) reload() } required init?(coder aDecoder: NSCoder) { super.init(coder: aDecoder) reload() } func reload() { mainStackView?.removeFromSuperview() mainStackView = UIStackView(frame: bounds) mainStackView?.spacing = spacing // mainStackView?.distribution = .fillEqually guard let mainStackView = mainStackView else { return } addSubview(mainStackView) mainStackView.topAnchor.constraint(equalTo: topAnchor, constant: spacing).isActive = true mainStackView.rightAnchor.constraint(equalTo: rightAnchor, constant: spacing).isActive = true mainStackView.bottomAnchor.constraint(equalTo: bottomAnchor, constant: spacing).isActive = true mainStackView.leftAnchor.constraint(equalTo: leftAnchor, constant: spacing).isActive = true // var imgs = images // while imgs.count > 0 { // // let newStack = UIStackView() // newStack.spacing = spacing // newStack.distribution = .fillEqually // newStack.axis = random(min: 0, max: 1) == 1 ? .vertical : .horizontal // mainStackView.addArrangedSubview(newStack) // // let num = min(random(min: 1, max: maxImagesPerRow), imgs.count) // for i in 0 ..< num { // let imageView = buildImageView(with: imgs[i]) // newStack.addArrangedSubview(imageView) // } // // imgs = Array(imgs[num ..< imgs.count]) // } } func buildImageView(with image: UIImage) -> UIImageView { let imageView = UIImageView() imageView.contentMode = .scaleAspectFill imageView.image = image // asset.image(size: CGSize(width: 200, height: 200), deliveryMode: .opportunistic, synchronous: false, progress: nil) { image, _ in // imageView.image = image // } return imageView } private func random(min: Int, max: Int) -> Int { return Int(arc4random_uniform(UInt32(max - min)) + UInt32(min)) } private var mainStackView: UIStackView? }
[ -1 ]
d1d14f229e882130d86e9e6a8132e9c4e1c4e067
c6b68c47addbb715cc9d9cf55f5a3cab8d486bc2
/PodiFit/PodiFit/PodiFit/SceneDelegate.swift
59aded2716cd212eac2cb55b797028a6569bba74
[]
no_license
NathanaelAdolf/PodiFit
26016d20b886ea27ff9e53517dcd950019d61975
36fb73c5ea19f65a2ba046582307850c78ba0571
refs/heads/main
2023-01-23T07:36:19.695496
2020-11-25T03:40:17
2020-11-25T03:40:17
305,898,189
0
1
null
2020-11-13T00:56:31
2020-10-21T03:30:11
Swift
UTF-8
Swift
false
false
2,983
swift
// // SceneDelegate.swift // PodiFit // // Created by Nathanael Adolf Sukiman on 21/10/20. // Copyright © 2020 Nathanael Adolf Sukiman. 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 } let assesmentStoryboard: UIStoryboard = UIStoryboard(name: "Assesment", bundle: nil) let defaults: Bool = UserDefaults.standard.bool(forKey: "first") print(defaults) if !defaults { let vc1 = assesmentStoryboard.instantiateInitialViewController() as? UINavigationController window?.rootViewController = vc1 } } 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. // Save changes in the application's managed object context when the application transitions to the background. (UIApplication.shared.delegate as? AppDelegate)?.saveContext() } }
[ 163849, 354314, 333838, 333851, 346140, 405534, 352294, 344103, 178221, 266295, 213049, 266298, 376890, 436290, 243782, 421961, 395340, 254032, 374865, 338005, 356440, 217180, 254045, 180322, 100454, 266351, 356467, 252021, 374904, 286845, 266365, 329853, 192640, 329857, 286851, 417925, 266375, 262284, 329868, 381069, 225425, 268435, 225430, 356507, 411806, 135328, 346273, 192674, 225442, 438434, 225445, 362661, 225448, 438441, 225451, 377003, 100525, 258223, 430257, 387250, 225459, 377013, 225462, 379067, 225468, 164029, 387261, 389309, 225472, 334012, 180418, 430275, 225476, 395467, 260299, 225485, 346317, 225488, 225491, 266454, 377047, 411862, 225497, 411865, 418008, 225500, 418012, 225506, 411874, 411877, 225511, 377063, 338154, 225515, 327915, 205037, 225519, 338161, 393457, 375027, 358645, 393461, 381177, 393466, 436474, 418044, 379135, 397572, 389381, 268553, 180491, 336140, 411917, 268560, 262417, 395539, 262423, 387353, 258333, 325920, 338212, 262437, 266537, 389417, 254253, 358701, 391469, 248112, 332081, 358705, 340276, 262455, 358714, 358717, 225599, 393539, 362823, 262473, 348489, 332107, 151884, 436556, 358738, 344404, 430422, 348503, 321880, 418135, 262497, 418145, 250211, 383331, 262501, 383334, 340328, 250217, 213354, 348523, 246124, 262508, 383342, 391531, 348528, 354674, 321911, 332153, 334204, 268669, 194942, 213374, 356734, 389503, 438657, 348548, 356741, 385420, 391564, 332175, 379279, 272787, 262551, 262553, 373146, 268702, 342431, 262567, 354728, 375209, 262574, 338353, 334263, 262587, 266688, 262593, 344512, 201158, 326087, 358857, 338382, 360917, 256474, 369119, 195041, 182755, 334312, 104940, 375279, 127473, 328180, 328183, 340473, 328190, 254463, 324095, 328193, 324100, 350724, 324103, 330254, 328207, 324112, 410129, 186898, 342546, 350740, 340501, 324118, 420377, 324122, 342555, 330268, 377372, 188959, 385571, 332325, 324134, 416294, 377384, 350762, 381483, 324141, 252463, 324143, 358962, 356917, 324150, 352822, 270905, 168509, 334397, 348734, 324161, 252483, 324165, 356935, 369224, 348745, 381513, 324171, 352844, 324174, 330320, 324177, 199250, 334425, 332381, 326240, 352865, 346722, 373344, 340580, 262761, 375401, 248427, 352875, 381546, 191093, 344694, 352888, 336513, 334466, 334469, 385671, 162446, 340628, 352919, 342680, 98969, 342685, 260767, 340639, 332455, 150184, 344745, 361130, 336556, 332460, 332464, 434868, 164535, 342711, 332473, 244410, 164539, 248505, 260798, 363198, 223936, 334530, 332484, 350918, 352969, 373450, 418508, 154318, 332494, 357070, 357074, 273109, 355029, 264919, 154329, 332512, 189154, 361196, 113389, 264942, 203508, 340724, 332534, 363252, 338680, 375541, 348926, 344832, 391938, 336644, 264965, 344837, 344843, 391949, 375569, 394002, 336660, 375572, 434971, 262943, 162592, 369439, 396067, 336676, 346917, 396070, 389927, 334633, 355123, 369464, 361274, 398141, 244542, 328516, 355141, 328520, 336712, 342857, 328523, 338764, 355144, 361289, 389971, 361300, 416599, 357208, 387929, 426842, 342875, 244572, 361307, 361310, 355167, 265056, 357215, 389979, 430940, 361318, 355176, 361323, 355180, 349041, 340850, 355185, 361335, 211832, 324473, 381815, 340859, 324476, 398202, 328574, 324479, 340863, 252801, 260993, 324482, 351102, 324485, 400260, 324488, 342921, 185226, 369544, 381834, 324493, 324496, 324499, 430996, 252823, 400286, 324511, 422817, 359335, 373672, 324525, 5040, 222129, 400307, 324534, 412600, 324539, 324542, 351169, 359362, 170950, 187335, 326599, 349129, 347082, 359367, 345036, 379849, 398280, 209874, 330711, 359389, 431073, 347106, 437219, 340964, 386023, 209896, 343018, 201712, 209904, 435188, 261109, 349173, 261112, 265208, 381947, 201724, 349181, 431100, 328703, 383999, 431107, 328710, 338951, 330761, 261130, 377867, 330769, 349203, 386070, 330775, 209944, 261148, 359452, 248863, 377888, 261155, 250917, 261160, 396329, 357419, 214060, 328747, 209966, 359471, 404526, 209969, 396337, 345139, 396340, 209973, 361525, 261166, 209976, 386102, 388155, 209980, 375868, 361537, 339010, 209988, 347208, 330827, 377931, 431180, 341072, 349268, 189525, 183384, 210011, 373853, 361568, 257121, 384102, 210026, 384108, 187503, 210032, 345200, 349296, 343155, 384115, 210037, 248952, 361594, 410746, 210045, 349309, 349313, 210053, 345224, 384136, 384140, 384144, 259217, 373905, 210068, 210072, 384152, 248986, 210078, 345247, 384161, 210085, 44199, 351399, 210089, 380071, 384169, 339118, 367795, 210100, 345268, 384182, 361657, 249018, 210108, 339133, 384189, 384192, 357571, 126148, 210116, 367817, 244938, 384202, 253132, 210128, 146644, 210132, 330966, 333016, 265433, 210139, 328925, 165086, 265438, 210144, 384225, 359650, 328933, 222438, 343272, 359660, 363757, 328942, 218355, 384247, 351480, 218361, 384250, 351483, 275709, 339199, 275713, 206084, 275717, 328967, 275723, 384270, 359695, 175376, 261395, 333075, 349460, 384276, 384284, 345377, 384290, 345380, 175397, 345383, 245032, 384299, 273709, 349486, 351535, 372016, 437553, 245042, 347442, 349492, 337207, 175416, 345400, 326970, 396601, 415034, 386366, 437567, 175425, 437571, 384324, 212296, 437576, 437584, 337235, 210261, 263509, 175451, 367966, 259423, 429408, 374113, 175458, 353634, 251236, 175461, 175464, 265581, 343410, 271731, 155000, 337278, 175487, 271746, 175491, 353674, 155021, 361869, 384398, 245137, 181650, 374161, 112021, 181655, 349591, 175514, 175517, 245152, 357793, 396706, 175523, 245155, 155045, 245158, 333222, 181682, 337330, 343478, 181687, 370105, 359867, 259516, 384444, 388543, 361922, 337350, 327112, 384457, 339406, 359887, 359891, 366035, 337366, 249303, 339414, 366039, 413143, 415192, 415194, 339421, 368093, 155103, 415197, 339425, 415200, 339429, 329192, 415208, 339435, 343535, 366064, 249329, 415217, 116211, 343540, 430967, 337399, 368120, 69114, 423424, 409092, 372229, 337416, 329227, 359948, 419341, 430973, 359951, 419345, 329234, 175637, 419351, 345626, 415258, 419357, 345631, 415264, 419360, 394787, 366118, 370214, 415271, 419369, 144940, 394796, 415279, 419377, 415282, 265779, 415286, 210488, 419386, 415291, 421442, 413251, 265796, 419401, 353868, 419404, 265806, 173648, 419408, 333396, 419412, 224854, 400982, 333400, 179803, 366173, 339553, 257636, 345702, 372328, 423529, 423533, 333423, 372338, 210547, 224885, 370298, 224891, 415354, 224895, 353920, 333440, 126597, 267910, 224905, 155274, 345737, 11919, 224911, 224914, 403092, 224917, 345750, 224920, 267929, 126618, 208539, 224923, 345758, 224927, 368289, 224930, 345763, 419492, 224933, 345766, 425639, 257705, 419498, 224939, 419502, 224943, 257713, 419507, 425652, 224949, 419510, 257721, 224954, 419513, 155323, 257725, 425663, 155328, 403139, 257733, 337607, 419528, 419531, 257740, 257745, 257748, 224982, 394967, 155352, 257752, 419543, 224987, 155356, 419545, 419548, 333535, 419551, 257762, 155364, 345829, 225000, 419560, 337643, 155372, 419564, 431852, 245487, 210673, 212723, 225021, 333566, 339711, 155394, 225027, 268042, 339722, 155404, 210700, 362252, 225039, 362256, 249617, 366349, 210707, 225044, 167701, 372500, 395022, 245528, 225049, 257820, 225054, 155423, 184096, 210720, 345888, 360224, 339748, 397089, 378664, 225068, 155439, 204592, 366384, 225074, 155444, 210740, 225077, 366388, 358201, 225083, 225088, 325441, 354112, 366403, 155463, 325447, 341831, 225105, 341844, 155477, 225109, 247639, 337751, 370520, 415574, 155484, 313181, 261982, 350046, 155488, 354143, 376672, 425823, 155492, 399208, 327532, 261997, 354157, 376686, 262000, 268144, 358256, 262003, 358260, 425846, 399222, 262006, 147319, 325494, 262009, 1914, 327542, 262012, 155517, 225150, 333690, 354173, 325505, 155523, 380803, 339845, 155526, 360327, 376715, 395148, 155532, 247692, 225166, 262028, 262031, 333709, 262034, 225171, 337809, 247701, 397201, 380823, 225176, 262040, 262043, 262049, 262052, 327590, 247720, 337834, 155563, 155566, 362414, 337845, 190393, 372665, 327613, 393152, 358348, 247760, 333777, 346064, 393170, 155604, 346069, 219094, 399318, 372704, 329699, 155620, 253924, 155622, 253927, 190440, 354275, 358372, 372707, 356336, 360432, 204785, 380919, 333819, 155647 ]
80deb1ba2d731e86d8beca771d2f6015d74ff7e7
49571e12c02c0ea12cce30dc41ec34eecf439d62
/Examples/GitHub Search/GitHubSearchWithSwiftUI/Extension/URLSession.Combine.swift
bd6a46f932c29937064ce6c783db80aa92783dfd
[ "MIT" ]
permissive
wesleysfavarin/SwiftUI-1
3bddc7951aafee3a712be70d333386be00fb2ca2
d2d3fb8f837e2870a6ae27374a71d1618c7d8123
refs/heads/master
2020-06-09T06:24:57.027113
2019-09-22T13:30:46
2019-09-22T13:30:46
193,390,444
1
0
MIT
2019-06-23T20:03:47
2019-06-23T20:03:47
null
UTF-8
Swift
false
false
1,758
swift
// // URLSession.Combine.swift // GitHubSearchWithSwiftUI // // Created by marty-suzuki on 2019/06/05. // Copyright © 2019 jp.marty-suzuki. All rights reserved. // import Combine import Foundation extension URLSession: CombineCompatible {} extension CombineExtension where Base == URLSession { func send(request: URLRequest) -> AnyPublisher<Data, URLSessionError> { AnyPublisher<Data, URLSessionError> { [base] subscriber in let task = base.dataTask(with: request) { data, response, error in guard let response = response as? HTTPURLResponse else { subscriber.receive(completion: .failure(.invalidResponse)) return } guard 200..<300 ~= response.statusCode else { let e = URLSessionError.serverError(statusCode: response.statusCode, error: error) subscriber.receive(completion: .failure(e)) return } guard let data = data else { subscriber.receive(completion: .failure(.noData)) return } if let error = error { subscriber.receive(completion: .failure(.unknown(error))) } else { _ = subscriber.receive(data) subscriber.receive(completion: .finished) } } // TODO: cancel task when subscriber cancelled task.resume() } } } enum URLSessionError: Error { case invalidResponse case noData case serverError(statusCode: Int, error: Error?) case unknown(Error) }
[ -1 ]
07acf4d96847617ad0e96ce447a04655ee5a3f89
bca18e87fdcba0b3f1477e1d0df3a1de26caca39
/PADC-IOS-FashionGallery/vos/CustomerVO.swift
8f69f61d3c5d956e4e0da4ab09a0c4ac22904459
[]
no_license
8secz-johndpope/PADC-IOS-Fashion-Gallery
7939e0023b00be97478e1dc30a035532c5e2d163
5aa65ab93686efd88263338356f5361b1cb53123
refs/heads/master
2021-10-08T18:55:21.098385
2018-12-16T11:32:17
2018-12-16T11:32:17
null
0
0
null
null
null
null
UTF-8
Swift
false
false
1,177
swift
// // CustomerVO.swift // PADC-IOS-FashionGallery // // Created by Shwe Yi Tun on 12/16/18. // Copyright © 2018 padcmyanmar. All rights reserved. // import Foundation import UIKit class CustomerVO : NSObject{ var id : String = UUID.init().uuidString var email : String? = nil var name : String? = nil var image_url : String? = nil var login_type : String? = nil public static func parseToDictionary(user : CustomerVO) -> [String : Any] { let value = [ "id" : user.id, "email" : user.email ?? "", "name" : user.name ?? "", "image_url" : user.image_url ?? "", "login_type" : user.login_type ?? "", ] return value } public static func parseToCustomerVO(json : [String : Any]) -> CustomerVO { let user = CustomerVO() user.id = json["id"] as! String user.email = json["email"] as? String user.name = json["password"] as? String user.image_url = json["image_url"] as? String user.login_type = json["login_type"] as? String return user } }
[ -1 ]
35153b3587e58cd7520ba7ea140367aba9859459
e9a38b8e6488da3bd279bbb7370b510016b3825c
/nCoV-Tracker/Other/Static.swift
356a51e699b830b9737219512d0d58b604857eda
[]
no_license
Marton-Zeisler/Covid-19
9f4f7f98878e47924330a55d928005f4be1e42c6
081f0936c214c6dbd4663cf28253ee929ee104d1
refs/heads/master
2022-12-25T20:02:01.457522
2020-09-25T10:57:51
2020-09-25T10:57:51
298,545,642
1
0
null
null
null
null
UTF-8
Swift
false
false
880
swift
// // Statics.swift // nCoV-Tracker // // Created by Marton Zeisler on 2020. 02. 17.. // Copyright © 2020. Marton Zeisler. All rights reserved. // import Foundation class Static { static var userInteractionsCounter = 2 static var timeToShowAd: Bool { get{ return Static.userInteractionsCounter % 4 == 0 } } static let bannerID = "ca-app-pub-1502309851026083/7478971285" static let intersitialID = "ca-app-pub-1502309851026083/8163359387" static var purchased: Bool { get{ return KeychainWrapper.standard.bool(forKey: "purchase") != nil } } static var mapZoom: Float = 5.05207 static var mapLat = 32.59441100346494 static var mapLong = 112.59924408048391 } extension Notification.Name { static let removeAds = Notification.Name("removeAds") }
[ -1 ]
9f826d41d215ec68615b00357223e357908538c3
06fc65eebb8a81a13066fba099830aaa60b53ecc
/CodyFTMobileAssign/Models/User.swift
2843958ecd602426dbb1d612d1a4f5a404109af6
[]
no_license
CodyF/GitHubAPISwift
4c601f659b3ee576bac0fb7a8274d8fac19969a6
0182543a230ee9c955657ffb0ac1405c706b013c
refs/heads/master
2022-04-16T17:41:33.703467
2020-04-16T00:15:56
2020-04-16T00:15:56
256,034,481
0
0
null
null
null
null
UTF-8
Swift
false
false
207
swift
// // UserModel.swift // CodyFTMobileAssign // // Created by Consultant on 4/14/20. // Copyright © 2020 consultant. All rights reserved. // import Foundation struct User: Codable { let url: URL }
[ -1 ]
59032dbfa64bca28d1493da00e415dcd091c949b
00f290903a396742ddc818b8820daf60369fa119
/Library/ApplySwift/class/UIView+Apply.swift
016839aa43fa0d10129f131fa0e0573d3fcf556f
[]
no_license
churabou/swift-snippet
4e08e4d6800ec70ad8c7ba6f6c26b0b7d813a1bb
835fb297f069707f310122702f20644d4b6eec4a
refs/heads/master
2021-09-15T04:08:47.124876
2018-05-25T12:59:21
2018-05-25T12:59:21
119,628,084
0
0
null
null
null
null
UTF-8
Swift
false
false
762
swift
import UIKit extension UIView: ApplySwift {} extension Applicable where T: UIView { func backgroudColor(_ color: UIColor) -> Applicable<T> { base.backgroundColor = color return self } func origin(x: CGFloat, y: CGFloat) -> Applicable<T> { base.frame.origin = CGPoint(x: x, y: y) return self } func size(width: CGFloat, height: CGFloat) -> Applicable<T> { base.frame.size = CGSize(width: width, height: height) return self } func clipsToBounds() -> Applicable<T> { base.clipsToBounds = true return self } func cornerRadius(_ radius: CGFloat) -> Applicable<T> { base.layer.cornerRadius = radius return self } }
[ -1 ]
96dea99cc00f601a5ff91f0747a9e4c7cc5d90e4
7d1a1674acd4aa8eec60787810bfec93989d223b
/iOS/SurveyMaster/Controller/Responses and Reports/ResponsesViewController.swift
5055db2e0ea4e20ee8b419619564ceb8ab0744cf
[ "MIT" ]
permissive
Ammar0ah/SurveyMaster-iOS
03a65ac5f08aeea2c0a4db5b32b5c9b427d24537
ef9d8e52d8b97f4ba29902dfd41a0dfcac13435c
refs/heads/iOS
2020-06-15T19:34:48.145683
2019-07-30T12:12:23
2019-07-30T12:12:23
195,376,438
2
1
null
2020-02-14T23:59:12
2019-07-05T09:00:36
Swift
UTF-8
Swift
false
false
3,596
swift
// // ResponseReportsViewController.swift // SurveyMaster // // Created by Ammar Al-Helali on 7/2/19. // Copyright © 2019 Ammar Al-Helali. All rights reserved. // import UIKit import Alamofire import SwiftyJSON import SwiftMoment class ResponsesViewController: UIViewController { var Sid : String = "ss" var SName : String = "" var jsonList : [JSON] = [] var responses : [Response] = [] @IBOutlet var responsesTableview: UITableView! override func viewDidLoad() { super.viewDidLoad() print(Sid) // Do any additional setup after loading the view. self.navigationController?.navigationBar.prefersLargeTitles = false responsesTableview.delegate = self responsesTableview.dataSource = self responsesTableview.estimatedRowHeight = UITableView.automaticDimension responsesTableview.estimatedRowHeight = 100 let group = DispatchGroup() group.enter() Alamofire.request(ShowSurveysURL + "/\(Sid)" + "/responses/", method: .get, parameters: nil, encoding: JSONEncoding.default, headers: header as? HTTPHeaders).responseJSON{ response in if response.result.isSuccess { if let response = response.result.value { self.jsonList = JSON(response).arrayValue print(self.jsonList) self.configureResponses(data: self.jsonList) group.leave() } } } } func configureResponses(data:[JSON]){ for item in data { let response = Response() response.date = item["date"].intValue response.surveyId = item["surveyId"].stringValue response.responseId = item["_id"].stringValue responses.append(response) responsesTableview.reloadData() print(response.surveyId) } } /* // 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. } */ } // extension ResponsesViewController : UITableViewDelegate, UITableViewDataSource { func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { print("count",responses.count) return responses.count } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let cell = tableView.dequeueReusableCell(withIdentifier: "cell", for: indexPath) let date = moment(responses[indexPath.row].date) let dateString = " \(date.day)-\(date.month)-\(date.year)" cell.textLabel?.text! = "Response: \(indexPath.row + 1)" cell.detailTextLabel?.text! = dateString return cell } func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { tableView.deselectRow(at: indexPath, animated: true) guard let VC = storyboard?.instantiateViewController(withIdentifier: "ReportsViewController") as? ReportsViewController else {return} print("survey id", responses[indexPath.row].surveyId) VC.Sid = responses[indexPath.row].surveyId //VC.R_id = responses[indexPath.row].responseId self.navigationController?.pushViewController(VC, animated: true) } }
[ -1 ]
3e331ce02f2639f567313dd6acac65da4e32a7e9
e70c105cd42e32f0175e9185d3eb3b17128335ae
/jusaitang/src/modules/Login/LoginWithPwd/controller/LoginWithPswVC.swift
42f54cee1a9164a229fb5b8fd8e21be5c7e778e8
[]
no_license
uncleflower/jusaitang-ios
3a80c8e244204b438d9956e517c845dd62f1dda5
2ffcbe074d8fc531e6bbc40a1a847947db6b5974
refs/heads/master
2023-06-20T15:48:11.123697
2021-07-20T15:05:46
2021-07-20T15:05:46
338,991,262
1
0
null
null
null
null
UTF-8
Swift
false
false
6,717
swift
// // LoginWithPswVC.swift // jusaitang // // Created by Jiehao Zhang on 2021/2/10. // import UIKit import RxSwift import RxCocoa class LoginWithPswVC: BaseViewController { private let disposeBag = DisposeBag() let viewModel: LoginWithPswVM = .init() let greetLabel: UILabel = { let label = UILabel() label.font = UIFont.pf_medium(24) label.text = "聚赛堂" label.textColor = UIColor(hexString: "#333333") return label }() let privacyPolicyButton: ClickableTextView = { let view = ClickableTextView() view.textContainer.maximumNumberOfLines = 5 let attributedString = NSMutableAttributedString(string: "登录即表示同意聚赛堂用户协议和隐私政策", attributes: [.foregroundColor: UIColor(hexString: "#666666")!, .font: UIFont.pf_medium(12)]) guard let range1 = attributedString.string.range(of: "聚赛堂用户协议") else { // Range<String.Index>? return view } let convertedRange1 = NSRange(range1, in: attributedString.string) attributedString.addAttribute(.link, value: "", range: convertedRange1) guard let range2 = attributedString.string.range(of: "隐私政策") else { return view } let convertedRange2 = NSRange(range2, in: attributedString.string) attributedString.addAttribute(.link, value: "", range: convertedRange2) view.attributedText = attributedString return view }() let inputSIDView: InputBackgroundView = { let view = InputBackgroundView() view.setUp(placeholder: "请输入学号", isSecureTextEntry: false, keyboardType: .phonePad) return view }() let passwordTextField: InputBackgroundView = { let view = InputBackgroundView() view.setUp(placeholder: "请输入密码", isSecureTextEntry: true, keyboardType: .default) return view }() let errorMessage: UILabel = { let label = UILabel() label.font = UIFont.pf_medium(13) label.numberOfLines = 0 label.textColor = UIColor(red: 0.97, green: 0.39, blue: 0.39, alpha: 1) return label }() let loginButton: UIButton = { let btn = UIButton() btn.layer.cornerRadius = 4 btn.backgroundColor = .default btn.setTitle("登录", for: .normal) btn.titleLabel?.font = UIFont.pf_medium(14) btn.setTitleColor(.white, for: .normal) btn.setTitleColor(.red, for: .disabled) return btn }() override func loadView() { super.loadView() view.addSubview(greetLabel) view.addSubview(privacyPolicyButton) view.addSubview(inputSIDView) view.addSubview(passwordTextField) view.addSubview(errorMessage) view.addSubview(loginButton) } override func makeConstraints() { super.makeConstraints() greetLabel.snp.makeConstraints { (make) in make.top.equalToSuperview().offset(App.naviStatusHeight + 38) make.leading.equalToSuperview().offset(24) make.height.equalTo(33) } privacyPolicyButton.snp.makeConstraints { (make) in make.top.equalTo(greetLabel.snp.bottom).offset(8) make.leading.equalTo(greetLabel) make.height.equalTo(20) make.width.equalTo(300) } inputSIDView.snp.makeConstraints { (make) in make.top.equalTo(privacyPolicyButton.snp.bottom).offset(20) make.height.equalTo(42) make.leading.equalToSuperview().offset(24) make.trailing.equalToSuperview().offset(-24) } passwordTextField.snp.makeConstraints { (make) in make.top.equalTo(inputSIDView.snp.bottom).offset(12) make.leading.equalToSuperview().offset(24) make.trailing.equalToSuperview().offset(-24) make.height.equalTo(42) } errorMessage.snp.makeConstraints { (label) in label.top.equalTo(passwordTextField.snp.bottom).offset(8) label.leading.equalTo(greetLabel.snp.leading) label.height.equalTo(18) } loginButton.snp.makeConstraints { (btn) in btn.top.equalTo(errorMessage.snp.bottom).offset(27) btn.leading.equalTo(greetLabel.snp.leading) btn.height.equalTo(44) btn.trailing.equalToSuperview().offset(-24) } } override func bindViewModel() { inputSIDView.textField.rx.text.orEmpty.subscribe(onNext: {[weak self] (sid) in self?.viewModel.sIDObservable.onNext(sid) if sid.count == 0 { self?.errorMessage.text = "" } }).disposed(by: disposeBag) passwordTextField.textField.rx.text.orEmpty.subscribe(onNext: {[weak self] (pwd) in self?.viewModel.pwdObservable.onNext(pwd) if pwd.count == 0 { self?.errorMessage.text = "" } }).disposed(by: disposeBag) } override func viewDidLoad() { super.viewDidLoad() view.backgroundColor = .white let tapGesture = UITapGestureRecognizer(target: self, action: #selector(hideKeyboard)) self.view.addGestureRecognizer(tapGesture) self.loginButton.addTarget(self, action: #selector(loginWithPwd), for: .touchUpInside) } @objc func hideKeyboard() { view.endEditing(true) } @objc func loginWithPwd() { self.view.endEditing(true) let error = self.viewModel.loginWithPwd {[weak self] (error) in if let error = error { if error.code == .userNotExist { self?.errorMessage.text = "该学号不存在" } else if error.code == .userPWDError { self?.errorMessage.text = "密码错误,请重新输入" } else { ErrorAlertView.show(error: error, style: .topError) } return } self?.goTabBarView() } if let error = error { if error.code == .sidEmpty { self.errorMessage.text = "学号不能为空" } else if error.code == .pwdEnpty { self.errorMessage.text = "密码不能为空" } } } func goTabBarView() { self.navigationController?.pushViewController(TabBarViewController(), animated: true) } }
[ -1 ]
81d7bf195114687f7f50d4a9fe99bcbca96b76a6
7cde8bc9552ce037796af7e0ca92b8d908bd0fc9
/test/stdlib/Reflection.swift
65463daf6955ab912364f094813abb26cb8b0782
[ "Apache-2.0", "Swift-exception" ]
permissive
imdone/swift
85d8127730f7045d0cf7b507726a34ec1a909c66
b9c7a37496077292c952e710ffdfc17c4f6bfdc6
refs/heads/master
2021-05-13T13:42:59.162158
2018-01-08T18:50:29
2018-01-08T18:50:29
105,686,299
0
0
null
2017-10-03T19:02:12
2017-10-03T18:15:04
C++
UTF-8
Swift
false
false
5,192
swift
// RUN: %empty-directory(%t) // RUN: %target-build-swift -parse-stdlib %s -module-name Reflection -o %t/a.out // RUN: %S/timeout.sh 360 %target-run %t/a.out | %FileCheck %s // REQUIRES: executable_test // FIXME: timeout wrapper is necessary because the ASan test runs for hours id:4151 gh:4163 // // DO NOT add more tests to this file. Add them to test/1_stdlib/Runtime.swift. // import Swift // A more interesting struct type. struct Complex<T> { let real, imag: T } // CHECK-LABEL: Complex: print("Complex:") // CHECK-NEXT: Reflection.Complex<Swift.Double> // CHECK-NEXT: real: 1.5 // CHECK-NEXT: imag: 0.75 dump(Complex<Double>(real: 1.5, imag: 0.75)) // CHECK-NEXT: Reflection.Complex<Swift.Double> // CHECK-NEXT: real: -1.5 // CHECK-NEXT: imag: -0.75 dump(Complex<Double>(real: -1.5, imag: -0.75)) // CHECK-NEXT: Reflection.Complex<Swift.Int> // CHECK-NEXT: real: 22 // CHECK-NEXT: imag: 44 dump(Complex<Int>(real: 22, imag: 44)) // CHECK-NEXT: Reflection.Complex<Swift.String> // CHECK-NEXT: real: "is this the real life?" // CHECK-NEXT: imag: "is it just fantasy?" dump(Complex<String>(real: "is this the real life?", imag: "is it just fantasy?")) // Test destructuring of a pure Swift class hierarchy. class Good { let x: UInt = 11 let y: String = "222" } class Better : Good { let z: Double = 333.5 } class Best : Better { let w: String = "4444" } // CHECK-LABEL: Root class: // CHECK-NEXT: Reflection.Good #0 // CHECK-NEXT: x: 11 // CHECK-NEXT: y: "222" print("Root class:") dump(Good()) // CHECK-LABEL: Subclass: // CHECK-NEXT: Reflection.Best #0 // CHECK-NEXT: super: Reflection.Better // CHECK-NEXT: super: Reflection.Good // CHECK-NEXT: x: 11 // CHECK-NEXT: y: "222" // CHECK-NEXT: z: 333.5 // CHECK-NEXT: w: "4444" print("Subclass:") dump(Best()) // Test protocol types, which reflect as their dynamic types. // CHECK-LABEL: Any int: // CHECK-NEXT: 1 print("Any int:") var any: Any = 1 dump(any) // CHECK-LABEL: Any class: // CHECK-NEXT: Reflection.Best #0 // CHECK-NEXT: super: Reflection.Better // CHECK-NEXT: super: Reflection.Good // CHECK-NEXT: x: 11 // CHECK-NEXT: y: "222" // CHECK-NEXT: z: 333.5 // CHECK-NEXT: w: "4444" print("Any class:") any = Best() dump(any) // CHECK-LABEL: second verse // CHECK-NEXT: Reflection.Best #0 print("second verse same as the first:") dump(any) // CHECK-LABEL: Any double: // CHECK-NEXT: 2.5 print("Any double:") any = 2.5 dump(any) // CHECK-LABEL: Character: // CHECK-NEXT: "a" print("Character:") dump(Character("a")) protocol Fooable {} extension Int : Fooable {} extension Double : Fooable {} // CHECK-LABEL: Fooable int: // CHECK-NEXT: 1 print("Fooable int:") var fooable: Fooable = 1 dump(fooable) // CHECK-LABEL: Fooable double: // CHECK-NEXT: 2.5 print("Fooable double:") fooable = 2.5 dump(fooable) protocol Barrable : class {} extension Best: Barrable {} // CHECK-LABEL: Barrable class: // CHECK-NEXT: Reflection.Best #0 // CHECK-NEXT: super: Reflection.Better // CHECK-NEXT: super: Reflection.Good // CHECK-NEXT: x: 11 // CHECK-NEXT: y: "222" // CHECK-NEXT: z: 333.5 // CHECK-NEXT: w: "4444" print("Barrable class:") var barrable: Barrable = Best() dump(barrable) // CHECK-LABEL: second verse // CHECK-NEXT: Reflection.Best #0 // CHECK-NEXT: super: Reflection.Better // CHECK-NEXT: super: Reflection.Good // CHECK-NEXT: x: 11 // CHECK-NEXT: y: "222" // CHECK-NEXT: z: 333.5 // CHECK-NEXT: w: "4444" print("second verse same as the first:") dump(barrable) // CHECK-NEXT: Logical: true switch true.customPlaygroundQuickLook { case .bool(let x): print("Logical: \(x)") default: print("wrong quicklook type") } let intArray = [1,2,3,4,5] // CHECK-NEXT: 5 elements // CHECK-NEXT: 1 // CHECK-NEXT: 2 // CHECK-NEXT: 3 // CHECK-NEXT: 4 // CHECK-NEXT: 5 dump(intArray) var justSomeFunction = { (x:Int) -> Int in return x + 1 } // CHECK-NEXT: (Function) dump(justSomeFunction as Any) // CHECK-NEXT: Swift.String dump(String.self) // CHECK-NEXT: ▿ // CHECK-NEXT: from: 1.0 // CHECK-NEXT: through: 12.15 // CHECK-NEXT: by: 3.14 dump(stride(from: 1.0, through: 12.15, by: 3.14)) // CHECK-NEXT: nil var nilUnsafeMutablePointerString: UnsafeMutablePointer<String>? dump(nilUnsafeMutablePointerString) // CHECK-NEXT: 123456 // CHECK-NEXT: - pointerValue: 1193046 var randomUnsafeMutablePointerString = UnsafeMutablePointer<String>( bitPattern: 0x123456)! dump(randomUnsafeMutablePointerString) // CHECK-NEXT: Hello panda var sanePointerString = UnsafeMutablePointer<String>.allocate(capacity: 1) sanePointerString.initialize(to: "Hello panda") dump(sanePointerString.pointee) sanePointerString.deinitialize(count: 1) sanePointerString.deallocate() // Don't crash on types with opaque metadata. rdar://problem/19791252 // CHECK-NEXT: (Opaque Value) var rawPointer = unsafeBitCast(0 as Int, to: Builtin.RawPointer.self) dump(rawPointer) // CHECK-LABEL: and now our song is done print("and now our song is done")
[ 72866, 90917, 85974 ]
915a7ff0b3f7f883d543740959ca7801f3ded517
daaa1278eff82366eb99df87b89cf718547e995b
/Flashchat/PollBooth_Controller.swift
ae0dffc9a4cba1295f406866ce251dc93fa06626
[]
no_license
vishwamudigonda/GSUHackathonAnthem
95a2146e2279fcc7e01da2d1c04541130bff5a79
15fccc743873ec518a68c52b3ea15358bb3fdb36
refs/heads/master
2021-04-18T21:23:01.733317
2018-03-25T13:49:06
2018-03-25T13:49:06
126,700,624
0
0
null
null
null
null
UTF-8
Swift
false
false
3,301
swift
// // PollBooth Controller.swift // test // // Created by Michael Shepherd on 3/24/18. // // import UIKit import Firebase class PollBooth_Controller: UIViewController { @IBOutlet weak var Thanks: UILabel! @IBOutlet weak var Participate_message: UILabel! @IBOutlet weak var Participate_2: UILabel! @IBOutlet weak var Dog_Day: UIButton! @IBOutlet weak var Donuts: UIButton! @IBOutlet weak var Casual_Friday: UIButton! override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } @IBAction func Casual_Friday(_ sender: Any) { if FIRAuth.auth()?.currentUser?.uid == nil{ print("This man needs to logout") } //if a user is logged in do this! else{ var m = 0 FIRDatabase.database().reference().child("PollTable").child("PollIdea1").observeSingleEvent(of: .value, with: { (snapshot) in if let dictionary = snapshot.value as? [String: Any]{ m = dictionary["Count"] as! Int } }, withCancel: nil) let values = ["Count": m+1] FIRDatabase.database().reference().child("PollTable").child("PollIdea1").updateChildValues(values, withCompletionBlock: { (err, ref) in if err != nil{ print(err) return } }) } } @IBAction func Donut(_ sender: Any) { if FIRAuth.auth()?.currentUser?.uid == nil{ print("This man needs to logout") } //if a user is logged in do this! else{ var m = 0 FIRDatabase.database().reference().child("PollTable").child("PollIdea2").observeSingleEvent(of: .value, with: { (snapshot) in if let dictionary = snapshot.value as? [String: Any]{ m = dictionary["Count"] as! Int } }, withCancel: nil) let values = ["Count": m+1] FIRDatabase.database().reference().child("PollTable").child("PollIdea2").updateChildValues(values, withCompletionBlock: { (err, ref) in if err != nil{ print(err) return } }) } } @IBAction func Dog_Day(_ sender: Any) { if FIRAuth.auth()?.currentUser?.uid == nil{ print("This man needs to logout") } //if a user is logged in do this! else{ var m = 0 FIRDatabase.database().reference().child("PollTable").child("PollIdea3").observeSingleEvent(of: .value, with: { (snapshot) in if let dictionary = snapshot.value as? [String: Any]{ m = dictionary["Count"] as! Int } }, withCancel: nil) let values = ["Count": m+1] FIRDatabase.database().reference().child("PollTable").child("PollIdea3").updateChildValues(values, withCompletionBlock: { (err, ref) in if err != nil{ print(err) return } }) } } }
[ -1 ]
c4c4ddee14cbf5febc9eb8cf5c07f532ecfbd736
a27d6917be697f483cbb73edb1ed6a1a64ce9924
/Zaha/BaseFrameWork/Base/Enums/BorderType.swift
d5eb48aa158b2366ad39dc44c6124b251916d053
[]
no_license
farazhaider88/Zaha
8e80cc8dfd6437610dcc0d206f1e443e657f73a7
77eacccd1f500294a0110906ceb89048690b3a63
refs/heads/master
2020-04-03T09:35:34.732722
2018-11-10T13:23:45
2018-11-10T13:23:45
155,169,678
2
0
null
null
null
null
UTF-8
Swift
false
false
920
swift
// // BorderType.swift import Foundation public enum BorderType: IBEnum { case solid case dash(dashLength: Int, spaceLength: Int) case none } extension BorderType { public init(string: String?) { guard let string = string else { self = .none return } let (name, params) = BorderType.extractNameAndParams(from: string) switch name { case "solid": self = .solid case "dash": self = .dash(dashLength: params[safe: 0]?.toInt() ?? 1, spaceLength: params[safe: 1]?.toInt() ?? 1) default: self = .none } } } extension BorderType: Equatable { } public func == (lhs: BorderType, rhs: BorderType) -> Bool { switch (lhs, rhs) { case (.solid, .solid): return true case (.dash, .dash): return true default: return false } }
[ 239455 ]
978128b8aeb0880722d12e9eed24c483ce981f61
434f9600e3e7ac14db80b2dd3381a6d3501c760b
/GWSwiftModel/ModelTest.swift
5fc5dffe6517ab42973a4c388e25c264ade23cf6
[]
no_license
gw-easy/GWSwiftModel
5967e003158f1b731fb19a72580f76b5d4df9134
df0e7372e85739a920f6d89fc10fc6f4e8cb10a4
refs/heads/master
2022-12-11T00:04:26.764964
2020-09-07T07:39:02
2020-09-07T07:39:02
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,926
swift
// // ModelTest.swift // GWSwiftModel // // Created by zdwx on 2019/7/19. // Copyright © 2019 DoubleK. All rights reserved. // import UIKit class ModelTest: NSObject { } protocol proTest:GW_ModelAndJson { } class proTest1: proTest { var Id: String? required init() { } } class proTest2: proTest { var ParentId: String? required init() { } } struct proTest3 : proTest { var Title: String? } class Test_model3<T:proTest>: proTest { var Process: NSNumber? var LectureNotesInfo: Int? var Id: String? var Title: String? var ParentId: String? var ClassHoursInfo: String? var pBuyInfo: String? var MP4Url: String? var Children: [T]? required init() { } } class BaseM: GW_ModelAndJson { var baseM: String? var baseM_float: Float? var Id: String? required init() { } } class baseMM: BaseM { var baseMM: String? var baseMM_float: Float? var c_str: u_char? var ParentId: String? required init() { } } class BaseModel: baseMM { var baseModelStr: String? var baseModel_Int: NSInteger? required init() { } } class Model3: GW_ModelAndJson { var model3Str: String? var m3Bool: Bool? required init() { } } class Model2: GW_ModelAndJson { var model2Str: String? var m2_Int: Int? var model3: Model3? required init() { } } class Model1: BaseModel { var model1Str: String? var model1_int: Int? var num: NSNumber? var dddr: String? var model2: Model2? required init() { } } class feedback_testContent: GW_ModelAndJson { var comment: String? var Fee: Int? var createtime: Date? var score: Int? var username : String? var setModel: Model1? required init() { } } class Head_test: GW_ModelAndJson { var totalcount: String? var totalscore: String? var feedbacklist: [feedback_testContent]? var model1Str: String? required init() { } } class Partnerteamlist_test: GW_ModelAndJson { var pteamId: Int? var pteamprice: Int? var setModel: Model1? var ptitle: String? required init() { } } class Liketeam_testContent: GW_ModelAndJson { var limage: String? var lmarketprice: Float? var ltitle: String? var lteamId: Int? var lteamprice : Int? var setModel: Model1? required init() { } } class response_Test: GW_ModelAndJson { var feedbacks: Head_test? var partnerteamlist: [Partnerteamlist_test]? var liketeamlist: [Liketeam_testContent]? var setModel: [feedback_testContent]? required init() { } } class TestModel: GW_ModelAndJson { var id: String? var data: response_Test? var state: Int? var setModel: Model1? required init() { } }
[ -1 ]
566b6d521e5de91eae10c17a0e5f9844588a9f7e
1087337355aee7f8d97c8a4d0660479cd672602c
/PublicArt/Parse/ParseLocPhoto.swift
a84ba670e4a2910b22cca215c77e8ff638343486
[]
no_license
makinney/PublicArt
d3d127eb355e654235a0193c685fbacf32862f46
6794179f7f4ae825bb7952c5c64dcf8e7b53d567
refs/heads/master
2022-05-07T08:34:16.920296
2022-04-13T19:09:52
2022-04-13T19:09:52
51,116,841
0
0
null
null
null
null
UTF-8
Swift
false
false
409
swift
// // ParseLocPhoto.swift // PublicArt // // Created by Michael Kinney on 6/25/15. // Copyright (c) 2015 makinney. All rights reserved. // import Foundation import Parse class ParseLocPhoto : PFObject, PFSubclassing { static func parseClassName() -> String { return "locPhoto" } @NSManaged var idLocation: String? @NSManaged var imageFile: PFFile? @NSManaged var imageAspectRatio: Double }
[ -1 ]
320b3f797465705b5bcf56094c159f041f34a672
3d737663bcbfdb307041b80ccd137db8ea158f62
/Sources/Controllers/Profile/Presenters/ProfileHeaderTotalCountAndBadgesPresenter.swift
a86bee0e2b7cb972a230e003f37fbebcf120a4cc
[ "MIT" ]
permissive
attackgithub/ello-ios
7616b3ecad5eaf8de9db64d802edc39459aa7aac
c854d5f32e55cfce32c2dcd94e9c9add72801c0e
refs/heads/master
2020-09-15T13:07:00.030969
2019-11-04T14:27:50
2019-11-04T14:27:50
null
0
0
null
null
null
null
UTF-8
Swift
false
false
337
swift
//// /// ProfileHeaderTotalCountAndBadgesPresenter.swift // struct ProfileHeaderTotalCountAndBadgesPresenter { static func configure( _ cell: ProfileHeaderTotalCountAndBadgesCell, user: User, currentUser: User?) { cell.update(count: user.formattedTotalCount ?? "", badges: user.badges) } }
[ -1 ]
36c5959c69118e37d13540924e0374087e84d747
91becd1a6caa94f4eeb3ed86f81a2831e4b73837
/taskapp/AppDelegate.swift
66d6fb3ee2265231fad60ee805c57ce299fa98db
[]
no_license
Yokomichi-Takahiro/taskapp
3c2ae7fdeba70990f36cb6f485ec6b9ba9893356
232bd2bae11e8cf98cec6721bb6f573c875079c9
refs/heads/master
2022-12-28T20:27:09.236694
2020-10-13T14:01:03
2020-10-13T14:01:03
303,721,342
0
0
null
null
null
null
UTF-8
Swift
false
false
2,078
swift
// // AppDelegate.swift // taskapp // // Created by 横道貴浩 on 2020/10/05. // Copyright © 2020 Takahiro.Yokomichi. All rights reserved. // import UIKit import UserNotifications @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterDelegate { func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. // ユーザに通知の許可を求める --- ここから --- let center = UNUserNotificationCenter.current() center.requestAuthorization(options: [.alert, .sound]) { (granted, error) in // Enable or disable features based on authorization } // --- ここまで追加 --- center.delegate = self return true } func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification, withCompletionHandler completionHandler: @escaping (UNNotificationPresentationOptions) -> Void) { completionHandler([.alert, .sound]) } // MARK: UISceneSession Lifecycle func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { // Called when a new scene session is being created. // Use this method to select a configuration to create the new scene with. return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) } func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set<UISceneSession>) { // Called when the user discards a scene session. // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. // Use this method to release any resources that were specific to the discarded scenes, as they will not return. } }
[ -1 ]
565225c1df3d032a8e106856fa1a5ac83b1f0262
cb1f5a0c9daa16309c9f025ed6b87ac2a9de262c
/Raindow/ColorDetailViewController.swift
e8ee9177bf4bd2af8eed5921be4dba32544189e9
[]
no_license
dmills14/rainbow-color-app
494a74524909ca72267cdb30139d31cc255c9f5b
084c1883c34906725c0d2ff8cd480fd5f720465d
refs/heads/master
2022-07-31T07:41:31.013789
2020-05-19T00:05:52
2020-05-19T00:05:52
265,094,567
0
0
null
null
null
null
UTF-8
Swift
false
false
592
swift
// // ColorDetailViewController.swift // Raindow // // Created by Drew Miller on 5/18/20. // Copyright © 2020 Lambda School. All rights reserved. // import UIKit class ColorDetailViewController: UIViewController { var cellColor: MyColor? override func viewDidLoad() { super.viewDidLoad() updateViews() // Do any additional setup after loading the view. } func updateViews() { if let cellColor = cellColor { title = cellColor.name view.backgroundColor = cellColor.color } } }
[ -1 ]
29379f5edfa7b36e7ba4919a052193eb548de202
54b485138d65432b3b04943e48c61a2402fa8120
/Spaced Repetition/DaysCompletedManager.swift
4db39cf6ffc19035723e75ede73fed5ac8a58beb
[]
no_license
joelekstrom/spaced-repetition-ios
3bc0e47076887df88f2ae01331ee83d125961f99
cf2972f195b3cbb1ead2f1e9b5b8c43916ffdb22
refs/heads/master
2020-11-24T12:20:14.256580
2019-10-23T13:40:45
2019-10-23T13:40:45
228,140,377
0
0
null
2019-12-15T06:41:21
2019-12-15T06:41:20
null
UTF-8
Swift
false
false
4,169
swift
// // DaysCompletedManager.swift // Spaced Repetition // // Created by Johannes Warn on 2019-08-10. // Copyright © 2019 Johannes Wärn. All rights reserved. // import UIKit let levelsToRepeatAtDay = [[2,1], [3,1], [2,1], [4,1], [2,1], [3,1], [2,1], [1], [2,1], [3,1], [2,1], [5,1], [4,2,1], [3,1], [2,1], [1], [2,1], [3,1], [2,1], [4,1], [2,1], [3,1], [2,1], [6,1], [2,1], [3,1], [2,1], [5,1], [4,2,1], [3,1], [2,1], [1], [2,1], [3,1], [2,1], [4,1], [2,1], [3,1], [2,1], [1], [2,1], [3,1], [2,1], [5,1], [4,2,1], [3,1], [2,1], [1], [2,1], [3,1], [2,1], [4,1], [2,1], [3,1], [2,1], [7,1], [2,1], [3,1], [6,2,1], [5,1], [4,2,1], [3,1], [2,1], [1]] let dayColors = [ UIColor.init(rgb: 0xEE4035), UIColor.init(rgb: 0xF37737), UIColor.init(rgb: 0xFFDB13), UIColor.init(rgb: 0x7BC043), UIColor.init(rgb: 0x0292CF), UIColor.init(rgb: 0x673888), UIColor.init(rgb: 0xEF4F91) ] enum DayCompletionState { case nothing case completed case missed } class DaysCompletedManager: NSObject { class func getCompletedDays() -> [Date] { if let completedDays = UserDefaults.standard.array(forKey: "completedDays") as? [Date] { return completedDays } return [] } class func levelsForToday() -> [Int] { let dateComponents = Calendar.current.dateComponents([.era, .year, .month, .day], from: Date()) let today = Calendar.current.date(from: dateComponents)! let numberOfDaysCompleted = DaysCompletedManager.getCompletedDays().count let completionStateForToday = DaysCompletedManager.completionState(forDay: today) let numberOfDaysCompletedUntilToday = numberOfDaysCompleted - (completionStateForToday == .completed ? 1 : 0) let levelsToRepeatToday = levelsToRepeatAtDay[numberOfDaysCompletedUntilToday % 64] return(levelsToRepeatToday) } class func nextDayToRepeatLevel(_ level: Int) -> Date? { guard 1 <= level && level <= 7 else { return nil } let dateComponents = Calendar.current.dateComponents([.era, .year, .month, .day], from: Date()) let today = Calendar.current.date(from: dateComponents)! let numberOfDaysCompleted = DaysCompletedManager.getCompletedDays().count let completionStateForToday = DaysCompletedManager.completionState(forDay: today) let numberOfDaysCompletedUntilToday = numberOfDaysCompleted - (completionStateForToday == .completed ? 1 : 0) if completionStateForToday != .completed { if levelsToRepeatAtDay[numberOfDaysCompletedUntilToday % 64].contains(level) { return today } } var date = today var i = 0 while true { i += 1 date = Calendar.current.date(byAdding: .day, value: 1, to: date)! if levelsToRepeatAtDay[(numberOfDaysCompletedUntilToday + i) % 64].contains(level) { return date } } } class func completionStateForToday() -> DayCompletionState { let dateComponents = Calendar.current.dateComponents([.era, .year, .month, .day], from: Date()) let today = Calendar.current.date(from: dateComponents)! return completionState(forDay: today) } class func completionState(forDay date: Date) -> DayCompletionState { let completedDays = getCompletedDays().reversed() for completedDay in completedDays { if Calendar.current.isDate(completedDay, inSameDayAs: date) { return .completed } } if let firstDay = completedDays.last { if firstDay < date && !(Calendar.current.isDateInToday(date) || date > Date()) { return.missed } } return .nothing } class func setCompletion(forDay date: Date) { guard completionState(forDay: date) != .completed else { return } var completedDays = getCompletedDays() completedDays.append(date) UserDefaults.standard.set(completedDays, forKey: "completedDays") } }
[ -1 ]
26c868d202975834ecb44a5f55f13bdd5d522227
eb4d29e6ff50c239574dba56aa53487e6bb9ced1
/xcode12+/TableView/TableView/MultiSection/MultiSectionTableViewViewController.swift
9e95acf0e96415302b9a54a02e99eedbd5043e2b
[]
no_license
jihokim94/IOS-STUDY
7953963fa534e53b384c4c1456a518cf2d002fae
b260f8d2c3ae71151f0ad195261d1997d12ef16c
refs/heads/master
2023-08-05T14:40:07.970059
2021-09-16T10:12:45
2021-09-16T10:12:45
369,812,355
0
0
null
null
null
null
UTF-8
Swift
false
false
3,635
swift
import UIKit class MultiSectionTableViewViewController: UIViewController { let list = PhotosSettingSection.generateData() @IBOutlet weak var listTableView: UITableView! @objc func toggleHideAlbum(_ sender: UISwitch) { print(#function) list[1].items[0].on.toggle() } @objc func toggleAutoPlayVideos(_ sender: UISwitch) { print(#function) list[2].items[0].on.toggle() } @objc func toggleSummarizePhotos(_ sender: UISwitch) { print(#function) list[2].items[1].on.toggle() } @objc func toggleShowHolidayEvents(_ sender: UISwitch) { print(#function) list[3].items[1].on.toggle() } func showActionSheet() { let sheet = UIAlertController(title: nil, message: "Resetting will allow previously blocked people, places, dates, or holidays to once again be included in new Memories.", preferredStyle: .actionSheet) let resetAction = UIAlertAction(title: "Reset", style: .destructive, handler: nil) sheet.addAction(resetAction) let cancelAction = UIAlertAction(title: "Cancel", style: .cancel, handler: nil) sheet.addAction(cancelAction) if let pc = sheet.popoverPresentationController { if let tbl = view.subviews.first(where: { $0 is UITableView }) as? UITableView { if let cell = tbl.cellForRow(at: IndexPath(row: 0, section: 3)) { pc.sourceView = cell pc.sourceRect = tbl.frame } } } present(sheet, animated: true, completion: nil) } override func viewDidLoad() { super.viewDidLoad() } override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) if let selected = listTableView.indexPathForSelectedRow { listTableView.deselectRow(at: selected, animated: true) } } } extension MultiSectionTableViewViewController : UITableViewDataSource { func numberOfSections(in tableView: UITableView) -> Int { return list.count // 섹션 개수 } func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int { return list[section].items.count // 섹션당 로우 개수 } func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell { let target = list[indexPath.section].items[indexPath.row] let cell = tableView.dequeueReusableCell(withIdentifier: target.type.rawValue, for: indexPath) switch target.type { case .disclosure: cell.textLabel?.text = target.title cell.imageView?.image = UIImage(systemName: target.imageName ?? "") case .switch : cell.textLabel?.text = target.title if let switchView = cell.accessoryView as? UISwitch { switchView.isOn = target.on } case .action : cell.textLabel?.text = target.title case .checkmark : cell.textLabel?.text = target.title cell.accessoryType = target.on ? .checkmark : .none } return cell // indexpath에 들어갈 데이터 } func tableView(_ tableView: UITableView, titleForHeaderInSection section: Int) -> String? { return list[section].header // 헤더 } func tableView(_ tableView: UITableView, titleForFooterInSection section: Int) -> String? { return list[section].footer // 푸터 } }
[ -1 ]
facf616a957861a2d51864bb970d5f44572dbbf5
91b38d3e9ea7fdbe9b774146cc7d53eafe513e38
/TapOOO/AppDelegate.swift
eb19156d7b7c47705698bef6e196f28b2cf52551
[]
no_license
And3rtay/TapOOO-ios
f56358dbada66134ca122cc1a5fd3a2df976b02f
456e59ec5f4bcd2a1310edea64bffde82621c930
refs/heads/master
2021-01-13T00:51:56.705700
2015-11-25T06:59:19
2015-11-25T06:59:19
null
0
0
null
null
null
null
UTF-8
Swift
false
false
2,501
swift
// // AppDelegate.swift // TapOOO // // Created by Ander on 21/11/2015. // Copyright © 2015 Moggy Studio. All rights reserved. // import UIKit let log = XCGLogger.defaultInstance() @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. //Init logger if(DEBUG_STATUS){ log.setup(.Debug, showLogLevel: true, showFileNames: true, showLineNumbers: true, writeToFile: nil) } else{ log.setup(.None, showLogLevel: true, showFileNames: true, showLineNumbers: true, writeToFile: nil) } 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, 229391, 229394, 229397, 229399, 278556, 229405, 278559, 278564, 229415, 229417, 327722, 229426, 229428, 286774, 229432, 286776, 286778, 319544, 286791, 237640, 278605, 196692, 311383, 319590, 311400, 278635, 278639, 131192, 278648, 327814, 131209, 303241, 319633, 286873, 286876, 311460, 311469, 327862, 286906, 180413, 286910, 286916, 286922, 286924, 286926, 286928, 278743, 278747, 155872, 319716, 237807, 303345, 286962, 229622, 327930, 278781, 278783, 278785, 286987, 319757, 286999, 287003, 287009, 287014, 287016, 287019, 262448, 155966, 319809, 319810, 319814, 319818, 311628, 287054, 319822, 278865, 196963, 196969, 106872, 311683, 319879, 319898, 311719, 278952, 139689, 278957, 311728, 180668, 311741, 278975, 319938, 278980, 278983, 319945, 278986, 278990, 278994, 279003, 279006, 188895, 279010, 287202, 279015, 172520, 279020, 279023, 311791, 172529, 279027, 164343, 279035, 311804, 279040, 303617, 279045, 172550, 287238, 172552, 303623, 320007, 279051, 172558, 279055, 279058, 279063, 279067, 172572, 279072, 172577, 172581, 279082, 279084, 172591, 172598, 279095, 172607, 172612, 377413, 172614, 172618, 303690, 33357, 279124, 172634, 311911, 189034, 172655, 172656, 189039, 295538, 189040, 172660, 189044, 287349, 352880, 287355, 287360, 295553, 287365, 311942, 303751, 352905, 279178, 287371, 311946, 311951, 287377, 287381, 311957, 221850, 287386, 164509, 303773, 295583, 287394, 303780, 287398, 279208, 287400, 172714, 279212, 172721, 287409, 66227, 303797, 189114, 287419, 328381, 287423, 328384, 279231, 287427, 172748, 287436, 172755, 303827, 279255, 279258, 303835, 213724, 189149, 303838, 279267, 279272, 312050, 230131, 230146, 328453, 230154, 33548, 312077, 369433, 295707, 328476, 303914, 279340, 279353, 230202, 222018, 377676, 148302, 287569, 279390, 230241, 279394, 303976, 336744, 328563, 213895, 320391, 304013, 279438, 213902, 58262, 279461, 279462, 304042, 213931, 230327, 304055, 287675, 304063, 304065, 213954, 189378, 156612, 312272, 304084, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 295928, 320505, 295945, 295949, 197645, 320528, 140312, 295961, 238620, 304164, 238641, 238652, 238655, 336964, 205895, 320584, 238666, 296021, 205931, 279661, 205934, 164973, 279669, 337018, 279679, 279683, 222340, 205968, 296084, 238745, 238756, 165035, 337067, 238766, 238770, 230592, 279750, 230600, 230607, 148690, 279769, 304348, 279777, 304354, 320740, 279781, 304360, 320748, 279788, 279790, 296189, 320771, 296205, 230674, 320786, 230677, 296213, 296215, 312622, 312630, 222522, 222525, 312639, 378181, 230727, 238919, 320840, 222545, 230739, 337244, 230752, 410987, 230768, 296305, 312692, 230773, 304506, 181631, 312711, 312712, 296331, 288140, 337306, 288160, 288162, 288164, 279975, 370092, 279983, 288176, 296373, 279991, 312759, 288185, 337335, 222652, 312766, 173507, 296389, 230860, 288210, 370130, 288212, 288214, 239064, 288217, 329177, 280027, 288220, 288218, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 288234, 288236, 288238, 288240, 288242, 288244, 288250, 402942, 304651, 370187, 304653, 230940, 108066, 296486, 157229, 288320, 124489, 280145, 288338, 280149, 280152, 239194, 280158, 403039, 370272, 312938, 280185, 280188, 280191, 280194, 280208, 280211, 288408, 280218, 280222, 321195, 321200, 337585, 296626, 296634, 313027, 206536, 280264, 206539, 206541, 206543, 280276, 321239, 280283, 313052, 288478, 313055, 313066, 280302, 288494, 321266, 288502, 280314, 288510, 67330, 280324, 198405, 288519, 280331, 198416, 296723, 116503, 329498, 321311, 313121, 313123, 304932, 321316, 280363, 141101, 165678, 280375, 321336, 280388, 304968, 280393, 280402, 313176, 280419, 321381, 313201, 1920, 305028, 280454, 247688, 280464, 124817, 280468, 280473, 124827, 247709, 214944, 296883, 10170, 296890, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 124913, 239612, 313340, 313347, 313358, 321560, 313371, 354338, 223273, 313386, 354348, 124978, 124980, 321595, 313406, 288831, 67654, 280651, 288848, 280658, 215123, 288859, 280669, 313438, 280671, 223327, 321634, 313451, 223341, 313458, 280691, 313464, 329850, 321659, 280702, 288895, 321670, 215175, 141455, 141459, 313498, 100520, 288936, 280755, 288947, 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, 280823, 280825, 280830, 280831, 280833, 125187, 125191, 125209, 321817, 125218, 321842, 223539, 125239, 280888, 289087, 280897, 280900, 239944, 305480, 280906, 239947, 305485, 280919, 354653, 313700, 280937, 190832, 280946, 313720, 239997, 280959, 199051, 240011, 240017, 190868, 297365, 297368, 297372, 141725, 297377, 289186, 240052, 289207, 305594, 289218, 289227, 281047, 215526, 166378, 305647, 240124, 281084, 305662, 305664, 240129, 305666, 305668, 281095, 338440, 150025, 223757, 281102, 223763, 223765, 281113, 322074, 281116, 281121, 182819, 281127, 281135, 158262, 289342, 281154, 322115, 158283, 281163, 199262, 338532, 281190, 281196, 158317, 313973, 281210, 158347, 133776, 314003, 117398, 314007, 174754, 330404, 289448, 133801, 314029, 314033, 240309, 314047, 314051, 297671, 289522, 289525, 322310, 322314, 322318, 281361, 281372, 215850, 289593, 281410, 240458, 240468, 281430, 281435, 224110, 207737, 183172, 240519, 322440, 289687, 297883, 289694, 289700, 52163, 281567, 322534, 183277, 281581, 322550, 322610, 314421, 281654, 314427, 207937, 207949, 322642, 281691, 314461, 281702, 281708, 281711, 289912, 248995, 306341, 306347, 306354, 142531, 199877, 289991, 330988, 216303, 322801, 199978, 314671, 298292, 298294, 298306, 380226, 224587, 224594, 216404, 306517, 314714, 224603, 159068, 314723, 281960, 150890, 306539, 314732, 314736, 290161, 298358, 314743, 306552, 290171, 314747, 290174, 281987, 281990, 298377, 314763, 224657, 314785, 282025, 314793, 282027, 241070, 282034, 150966, 298424, 306618, 323015, 306640, 290275, 339431, 282089, 191985, 282098, 282101, 191992, 290298, 290302, 282111, 192008, 290321, 282130, 282133, 290325, 290328, 290332, 241181, 282142, 290344, 306731, 290349, 290351, 282186, 224849, 282195, 282201, 159324, 159330, 241260, 257658, 282249, 282261, 298651, 282269, 323229, 298655, 323231, 61092, 282277, 282295, 282300, 323260, 323266, 282310, 323273, 282319, 241362, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 241450, 282410, 315184, 315190, 241464, 159545, 282425, 307009, 307027, 315221, 315223, 241496, 241498, 307035, 307040, 282465, 315249, 110450, 315251, 315253, 315255, 282505, 298896, 298898, 282514, 44948, 298901, 282520, 282531, 282537, 282547, 298975, 323574, 290807, 241661, 282623, 315396, 241669, 315397, 282632, 282645, 241701, 282669, 323630, 282681, 290877, 282687, 315463, 192589, 307287, 315482, 217179, 315483, 192605, 200801, 299105, 217188, 299109, 307303, 45163, 307307, 315502, 192624, 307314, 299126, 233591, 307338, 233613, 241813, 307352, 299164, 184479, 184481, 307370, 307376, 323763, 176311, 299191, 307385, 307386, 258235, 176316, 307388, 307390, 299200, 307394, 307396, 323784, 307409, 307411, 233701, 282881, 282893, 282906, 291104, 233766, 307508, 315701, 307510, 307512, 307515, 282942, 307518, 282947, 323917, 110926, 282957, 323921, 323926, 233815, 315739, 299357, 242024, 250231, 242043, 291202, 299398, 242057, 291212, 299405, 283033, 291226, 242075, 315801, 291231, 283042, 291238, 291241, 127405, 291247, 299444, 127413, 283062, 283069, 127424, 299457, 176592, 315860, 299481, 242143, 291299, 242152, 291305, 176620, 127474, 291314, 291317, 135672, 291330, 283142, 233994, 234003, 234006, 152087, 242202, 234010, 135707, 242206, 242208, 291361, 234038, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 184952, 135805, 291456, 373383, 316051, 225941, 135834, 373404, 299677, 299680, 225954, 242343, 209576, 242345, 373421, 135870, 135873, 135876, 299723, 225998, 226008, 201444, 283368, 234219, 283372, 226037, 283382, 234231, 234236, 234239, 242431, 209665, 234242, 299778, 226053, 234246, 226056, 234248, 234254, 291601, 242452, 234261, 201496, 234269, 283421, 234274, 234278, 299814, 283432, 234281, 234284, 234287, 283440, 185138, 234292, 234298, 283452, 234307, 234309, 234313, 316233, 316235, 234316, 283468, 242511, 234321, 234324, 185173, 201557, 234329, 234333, 308063, 234338, 242530, 349027, 234341, 234344, 234347, 177004, 324464, 234353, 152435, 234358, 234362, 226171, 234368, 234370, 201603, 226182, 234375, 226185, 234379, 234384, 234388, 234390, 324504, 234393, 209818, 308123, 324508, 226200, 234398, 291748, 291750, 234407, 324518, 324520, 234410, 324522, 226220, 291756, 324527, 291760, 234417, 201650, 324531, 226230, 275384, 234428, 291773, 234431, 242623, 324544, 324546, 324548, 226245, 234437, 234439, 234443, 234446, 275406, 234449, 316370, 234452, 234455, 234459, 234461, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 316403, 234484, 324599, 234490, 234493, 234496, 316416, 234501, 234504, 234507, 234510, 234515, 300054, 234519, 316439, 234523, 234528, 300066, 234532, 234537, 234540, 144430, 234543, 275508, 234549, 300085, 234556, 234558, 316479, 234561, 316483, 234568, 234570, 316491, 300108, 234580, 234581, 242777, 234585, 234590, 234595, 300133, 234601, 300139, 160879, 234607, 275569, 234614, 398455, 144506, 234618, 275579, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 275602, 234643, 226453, 275606, 234647, 275608, 308373, 234650, 234653, 324766, 119967, 283805, 234657, 234661, 283813, 234664, 275626, 316596, 234687, 300226, 226500, 234692, 300229, 308420, 283850, 300234, 300238, 300241, 316625, 300243, 300245, 300248, 300253, 300256, 300258, 300265, 161003, 300267, 300270, 300272, 120053, 300278, 316663, 300284, 275710, 300287, 300289, 300292, 283917, 300301, 177424, 283939, 259367, 283951, 243003, 283963, 226628, 283973, 300357, 283983, 316758, 357722, 316766, 292192, 316768, 292197, 316774, 284010, 136562, 275834, 275836, 275840, 316803, 316806, 316811, 226703, 300433, 234899, 226709, 316824, 316826, 144796, 300448, 144810, 144812, 284076, 144814, 144820, 284084, 284087, 292279, 144826, 144828, 144830, 144832, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 333280, 292329, 300523, 300527, 226802, 308727, 316947, 308757, 284191, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 284213, 284218, 226877, 284223, 292421, 226886, 284231, 128584, 276043, 284238, 226895, 284241, 194130, 284243, 284245, 276053, 284247, 317015, 284249, 243290, 284251, 284253, 284255, 284258, 292452, 284263, 284265, 292458, 284267, 292461, 284272, 284274, 276086, 284278, 292470, 292473, 284283, 276093, 284288, 292481, 284290, 325250, 284292, 276098, 284297, 284299, 317068, 276109, 284301, 284303, 276114, 284306, 284308, 284312, 284316, 276127, 284320, 284327, 276137, 284329, 284331, 317098, 284333, 284335, 284337, 284343, 284346, 284350, 276160, 358080, 284354, 358083, 276166, 284358, 358089, 276170, 284362, 276175, 276177, 284370, 317138, 284372, 276187, 284379, 284381, 284384, 284386, 358114, 358116, 276197, 358119, 284392, 325353, 284394, 358122, 284397, 358126, 276206, 358128, 284399, 358133, 276216, 284413, 358146, 317187, 284418, 317191, 300816, 284440, 300828, 276255, 325408, 300834, 317221, 227109, 358183, 276268, 243504, 284469, 276280, 325436, 276291, 276295, 276308, 284502, 317271, 276315, 292700, 284511, 227175, 284529, 300915, 292729, 317306, 284540, 276365, 284564, 350106, 284572, 276386, 284579, 276388, 358312, 284585, 276395, 358326, 276410, 276411, 358330, 276418, 301009, 301011, 301013, 292823, 301015, 301017, 358360, 292828, 276446, 153568, 276448, 276452, 276455, 292839, 292843, 276460, 276464, 227314, 276466, 276472, 317435, 276476, 276479, 276482, 276485, 317446, 276490, 276496, 317458, 243733, 243751, 292904, 276528, 243762, 309298, 325685, 235579, 235581, 276544, 284739, 243785, 276553, 350295, 194649, 227418, 309337, 350302, 227423, 178273, 194657, 227426, 194660, 276579, 227430, 276583, 309346, 309348, 309350, 309352, 309354, 350308, 276590, 350313, 350316, 350321, 284786, 276595, 227440, 350328, 292993, 301185, 350339, 350342, 350345, 325777, 350354, 350359, 276638, 350366, 284837, 350375, 350379, 350381, 350385, 350387, 350389, 350395, 350399, 227520, 301252, 350406, 309450, 276685, 276689, 309462, 301272, 309468, 301283, 317672, 276713, 227571, 243960, 276735, 227583, 227587, 276739, 276742, 227593, 227596, 325910, 309530, 342298, 211232, 276775, 276789, 260421, 276809, 276811, 235853, 276816, 276829, 276833, 391523, 276836, 276843, 293227, 276848, 293232, 186744, 211324, 227709, 285061, 317833, 285070, 227738, 317853, 276896, 317858, 285093, 317864, 285098, 276907, 276917, 293304, 317910, 293343, 276961, 227810, 293346, 276964, 293352, 236013, 317951, 309764, 121352, 236043, 342541, 113167, 317971, 309781, 227877, 227879, 227882, 309804, 105007, 236082, 277054, 129603, 318020, 277071, 285265, 309844, 277080, 309849, 285277, 285282, 326244, 277100, 121458, 277106, 170619, 277122, 277128, 285320, 301706, 318092, 326285, 318094, 334476, 277136, 277139, 227992, 285340, 318108, 227998, 383658, 285357, 318128, 277170, 342707, 154292, 277173, 285368, 277177, 277181, 277187, 277191, 277194, 277196, 277201, 137946, 113378, 228069, 277223, 342760, 285417, 56043, 277232, 228081, 56059, 285441, 310020, 285448, 228113, 285459, 277273, 326430, 228135, 318248, 277291, 293677, 318253, 285489, 293685, 285494, 301884, 310080, 277317, 277322, 277337, 301913, 301921, 400236, 236397, 162671, 310134, 15224, 236408, 277368, 416639, 416640, 39817, 187274, 277385, 301972, 277405, 277411, 310179, 293802, 236460, 277426, 293811, 293820, 203715, 293861, 228327, 228328, 228330, 318442, 277486, 326638, 318450, 293876, 285686, 285690, 293887, 277504, 277507, 277511, 277519, 293939, 277561, 277564, 310336, 277573, 228422, 310344, 277577, 277583, 310355, 277594, 138332, 277598, 285792, 277601, 310374, 203879, 228460, 318573, 203886, 285815, 285817, 367737, 285821, 302205, 392326, 285831, 285852, 302237, 285854, 285856, 277671, 302248, 277678, 228526, 302258, 277687, 318651, 277695, 244930, 302275, 302277, 228550, 302282, 310476, 302285, 302288, 310481, 302290, 203987, 302292, 302294, 302296, 285927, 318698, 302315, 195822, 228592, 294132, 138485, 228601, 228606, 64768, 310531, 285958, 318742, 277798, 130345, 113964, 285997, 285999, 113969, 318773, 318776, 286016, 294211, 302403, 326991, 179547, 302436, 294246, 327015, 310632, 327017, 351594, 351607, 310648, 310651, 310657, 351619, 294276, 253320, 310665, 318858, 310672, 351633, 310689, 277932, 310710, 310715, 228799, 64966, 245191, 163272, 302543, 310737, 310749, 310755, 187880, 310764, 286188, 40443, 286203, 40448, 228864, 228871, 65038, 302614, 286233, 146977, 286246, 278057, 310831, 212538, 40507, 228933, 40525, 212560, 228944, 400976, 147032, 40537, 40539, 278109, 40550, 286313, 40554, 310892, 40557, 188022, 294521, 343679, 310925, 286354, 278163, 278168, 327333, 229030, 278188, 278192, 319153, 302789, 294599, 343757, 212690, 278227, 286420, 319187, 229076, 319194, 278235, 278238, 294625, 286460, 278274, 278277, 302854, 294664, 311048, 311053, 302862, 278306, 294701, 278320, 229192, 302925, 327554, 294811, 294817, 319394, 311209, 180142, 188340, 294847, 393177, 294876, 294879, 311279, 278513, 237555, 278516, 311283, 237562 ]
b841753f184ab6e0b38f451b9de7fac5f8bf9bcd
94911d44025a9203ad7ef6bd663872d2041f12d3
/MeshTools/Plane.swift
dd67e66112d4a42a62fbeab43e403a41e77f1ce5
[ "Apache-2.0" ]
permissive
CeranPaul/MeshTools
7d9debc5922d65de545cd3e58670a2c006d0234e
e889a3645e8fd395d947e4b89e7b9e963783d533
refs/heads/master
2020-12-03T08:50:57.537180
2020-01-04T21:33:59
2020-01-04T21:33:59
231,261,086
0
0
null
null
null
null
UTF-8
Swift
false
false
13,760
swift
// // Plane.swift // SurfaceCrib // // Created by Paul on 8/11/15. // Copyright © 2018 Ceran Digital Media. All rights reserved. See LICENSE.md // import Foundation /// Unbounded flat surface. public struct Plane { /// A point to locate the plane internal var location: Point3D /// A vector perpendicular to the plane internal var normal: Vector3D /// Records parameters and checks to see that the normal is a legitimate vector /// - See: 'testFidelity' under PlaneTests init(spot: Point3D, arrow: Vector3D) throws { guard !arrow.isZero() else { throw ZeroVectorError(dir: arrow) } guard arrow.isUnit() else { throw NonUnitDirectionError(dir: arrow) } self.location = spot self.normal = arrow // TODO: Include tests to verify that the errors get thrown correctly } /// Generate a perpendicular vector from differences between the inputs /// Normal could be the opposite of what you hoped for /// - Parameters: /// - alpha: First input point and origin of the fresh plane /// - beta: Second input point /// - gamma: Third input point /// - Returns: Fresh plane /// - Throws: CoincidentPointsError for duplicate or linear inputs init(alpha: Point3D, beta: Point3D, gamma: Point3D) throws { guard Point3D.isThreeUnique(alpha: alpha, beta: beta, gamma: gamma) else { throw CoincidentPointsError(dupePt: alpha) } // TODO: Come up with a better error type guard !Point3D.isThreeLinear(alpha: alpha, beta: beta, gamma: gamma) else { throw CoincidentPointsError(dupePt: alpha) } self.location = alpha let thisWay = Vector3D.built(from: alpha, towards: beta) let thatWay = Vector3D.built(from: alpha, towards: gamma) var perpTo = try! Vector3D.crossProduct(lhs: thisWay, rhs: thatWay) perpTo.normalize() self.normal = perpTo } /// A getter for the point defining the plane /// - See: 'testLocationGetter' under PlaneTests public func getLocation() -> Point3D { return self.location } /// A getter for the vector defining the plane /// - See: 'testNormalGetter' under PlaneTests public func getNormal() -> Vector3D { return self.normal } /// This needs to be added back into SketchGen /// - Parameters: /// - pip: Point of interest /// - Returns: Tuple of Vectors /// - Warning: This will screw up if pip is at the origin of the plane public func resolveRelativeVec(pip: Point3D) -> (inPlane: Vector3D, perp: Vector3D) { let bridge = Vector3D.built(from: self.location, towards: pip) let along = Vector3D.dotProduct(lhs: bridge, rhs: self.normal) let perp = self.normal * along let inPlane = bridge - perp return (inPlane, perp) } /// Flip points to the opposite side of the plane /// - Parameters: /// - flat: Mirroring plane /// - pip: Point to be flipped /// - Returns: New point public static func mirror(flat: Plane, pip: Point3D) -> Point3D { let comps = flat.resolveRelativeVec(pip: pip) let jump = comps.perp * -2.0 let fairest = Point3D.offset(pip: pip, jump: jump) return fairest } /// Flip line segment to the opposite side of the plane /// - Parameters: /// - flat: Mirroring plane /// - wire: LineSeg to be flipped /// - Returns: New LineSeg public static func mirror(flat: Plane, wire: LineSeg) -> LineSeg { var pip: Point3D = wire.getOneEnd() var comps = flat.resolveRelativeVec(pip: pip) var jump = comps.perp * -2.0 let fairest1 = Point3D.offset(pip: pip, jump: jump) pip = wire.getOtherEnd() comps = flat.resolveRelativeVec(pip: pip) jump = comps.perp * -2.0 let fairest2 = Point3D.offset(pip: pip, jump: jump) let rail = try! LineSeg(end1: fairest1, end2: fairest2) return rail } /// Test for points being on opposite sides. /// This needs to be added back into SketchGen. /// - Parameters: /// - pointA: One point of interest /// - pointB: Other point of interest /// - Returns: Simple flag /// - Warning: Probably screws up if either point is on the plane. public func isOpposite(pointA: Point3D, pointB: Point3D) -> Bool { let vecA = resolveRelativeVec(pip: pointA) let senseA = Vector3D.dotProduct(lhs: vecA.perp, rhs: self.getNormal()) let vecB = resolveRelativeVec(pip: pointB) let senseB = Vector3D.dotProduct(lhs: vecB.perp, rhs: self.getNormal()) let flag = (senseA * senseB) < 0.0 return flag } /// Check to see that the line direction is perpendicular to the normal /// - Parameters: /// - flat: Plane for testing /// - enil: Line for testing public static func isParallel(flat: Plane, enil: Line) -> Bool { let perp = Vector3D.dotProduct(lhs: enil.getDirection(), rhs: flat.normal) return abs(perp) < Vector3D.EpsilonV } /// Check to see that the line is parallel to the plane, and lies on it /// - Parameters: /// - enalp: Plane for testing /// - enil: Line for testing public static func isCoincident(enalp: Plane, enil: Line) -> Bool { return self.isParallel(flat: enalp, enil: enil) && Plane.isCoincident(flat: enalp, pip: enil.getOrigin()) } /// Does the argument point lie on the plane? /// - Parameters: /// - flat: Plane for testing /// - pip: Point for testing /// - See: 'testIsCoincident' under PlaneTests public static func isCoincident(flat: Plane, pip: Point3D) -> Bool { if pip == flat.getLocation() { return true } // Shortcut! let bridge = Vector3D.built(from: flat.location, towards: pip) // This can be positive, negative, or zero let distanceOffPlane = Vector3D.dotProduct(lhs: bridge, rhs: flat.normal) return abs(distanceOffPlane) < Point3D.Epsilon } /// Are the normals either parallel or opposite? /// - SeeAlso: isCoincident and == public static func isParallel(lhs: Plane, rhs: Plane) -> Bool{ return lhs.normal == rhs.normal || Vector3D.isOpposite(lhs: lhs.normal, rhs: rhs.normal) } /// Planes are parallel, and rhs location lies on lhs /// - SeeAlso: isParallel and == public static func isCoincident(lhs: Plane, rhs: Plane) -> Bool { return Plane.isCoincident(flat: lhs, pip: rhs.location) && Plane.isParallel(lhs: lhs, rhs: rhs) } /// Construct a parallel plane offset some distance /// - Parameters: /// - base: The reference plane /// - offset: Desired separation /// - reverse: Flip the normal, or not /// - Returns: Fresh plane, with separation /// - Throws: /// - ZeroVectorError if base somehow got corrupted /// - NonUnitDirectionError if base somehow got corrupted public static func buildParallel(base: Plane, offset: Double, reverse: Bool) throws -> Plane { let jump = base.normal * offset // offset can be a negative number let origPoint = base.location let newLoc = Point3D.offset(pip: origPoint, jump: jump) var newNorm = base.normal if reverse { newNorm = base.normal * -1.0 } let sparkle = try Plane(spot: newLoc, arrow: newNorm) return sparkle } /// Construct a new plane perpendicular to an existing plane, and through a line on that plane /// Normal could be the opposite of what you hoped for /// - Parameters: /// - enil: Location for a fresh plane /// - enalp: The reference plane /// - Returns: Fresh plane /// - Throws: /// - ZeroVectorError if enalp somehow got corrupted /// - NonUnitDirectionError if enalp somehow got corrupted public static func buildPerpThruLine(enil: Line, enalp: Plane) throws -> Plane { // TODO: Better error type guard !Plane.isCoincident(enalp: enalp, enil: enil) else { throw CoincidentLinesError(enil: enil) } let newDir = try! Vector3D.crossProduct(lhs: enil.getDirection(), rhs: enalp.normal) let sparkle = try Plane(spot: enil.getOrigin(), arrow: newDir) return sparkle } /// Generate a point by intersecting a line and a plane /// - Parameters: /// - enil: Line of interest /// - enalp: Flat surface to hit /// - Throws: ParallelError if the input Line is parallel to the plane public static func intersectLinePlane(enil: Line, enalp: Plane) throws -> Point3D { // Bail if the line is parallel to the plane guard !Plane.isParallel(flat: enalp, enil: enil) else { throw ParallelError(enil: enil, enalp: enalp) } if Plane.isCoincident(flat: enalp, pip: enil.getOrigin()) { return enil.getOrigin() } // Shortcut! // Resolve the line direction into components normal to the plane and in plane let lineNormMag = Vector3D.dotProduct(lhs: enil.getDirection(), rhs: enalp.getNormal()) let lineNormComponent = enalp.getNormal() * lineNormMag let lineInPlaneComponent = enil.getDirection() - lineNormComponent let projectedLineOrigin = Plane.projectToPlane(pip: enil.getOrigin(), enalp: enalp) let drop = Vector3D.built(from: enil.getOrigin(), towards: projectedLineOrigin, unit: true) let closure = Vector3D.dotProduct(lhs: enil.getDirection(), rhs: drop) let separation = Point3D.dist(pt1: projectedLineOrigin, pt2: enil.getOrigin()) var factor = separation / lineNormComponent.length() if closure < 0.0 { factor = factor * -1.0 } // Dependent on the line origin's position relative to // the plane normal let inPlaneOffset = lineInPlaneComponent * factor return Point3D.offset(pip: projectedLineOrigin, jump: inPlaneOffset) } /// Construct a line by intersecting two planes /// - Parameters: /// - flatA: First plane /// - flatB: Second plane /// - Throws: ParallelPlanesError if the inputs are parallel /// - Throws: CoincidentPlanesError if the inputs are coincident public static func intersectPlanes(flatA: Plane, flatB: Plane) throws -> Line { guard !Plane.isParallel(lhs: flatA, rhs: flatB) else { throw ParallelPlanesError(enalpA: flatA) } guard !Plane.isCoincident(lhs: flatA, rhs: flatB) else { throw CoincidentPlanesError(enalpA: flatA) } /// Direction of the intersection line var lineDir = try! Vector3D.crossProduct(lhs: flatA.getNormal(), rhs: flatB.getNormal()) lineDir.normalize() // Checks in crossProduct should keep this from being a zero vector /// Vector on plane B that is perpendicular to the intersection line var perpInB = try! Vector3D.crossProduct(lhs: lineDir, rhs: flatB.getNormal()) perpInB.normalize() // Checks in crossProduct should keep this from being a zero vector // The ParallelPlanesError or CoincidentPlanesError should be avoided by the guard statements let lineFromCenterB = try Line(spot: flatB.getLocation(), arrow: perpInB) // Can be either towards flatA, // or away from it let intersectionPoint = try Plane.intersectLinePlane(enil: lineFromCenterB, enalp: flatA) let common = try Line(spot: intersectionPoint, arrow: lineDir) return common } /// Drop the point in the direction opposite of the normal /// - Parameters: /// - pip: Point to be projected /// - enalp: Flat surface to hit /// - Returns: Closest point on plane public static func projectToPlane(pip: Point3D, enalp: Plane) -> Point3D { if Plane.isCoincident(flat: enalp, pip: pip) {return pip } // Shortcut! let planeCenter = enalp.getLocation() // Referred to multiple times let bridge = Vector3D.built(from: planeCenter, towards: pip) // Not normalized // This can be positive, or negative let distanceOffPlane = Vector3D.dotProduct(lhs: bridge, rhs: enalp.getNormal()) // Resolve "bridge" into components that are perpendicular to the plane and are parallel to it let bridgeNormComponent = enalp.getNormal() * distanceOffPlane let bridgeInPlaneComponent = bridge - bridgeNormComponent return Point3D.offset(pip: planeCenter, jump: bridgeInPlaneComponent) // Ignore the component normal to the plane } } /// Check for them being identical /// - SeeAlso: isParallel and isCoincident /// - See: 'testEquals' under PlaneTests public func == (lhs: Plane, rhs: Plane) -> Bool { let flag1 = lhs.normal == rhs.normal // Do they have the same direction? let flag2 = lhs.location == rhs.location // Do they have identical locations? return flag1 && flag2 }
[ -1 ]
17e7d0697ffda1cc6d9bdbc2b25559bfa39a3d1c
5a2f20c0b668592b0f798bb0fe639403dc25cdbd
/Tests/TasksTests/TasksTests.swift
ad0a80e1a9cdbe97fd03efe503b3b75a3c058c47
[ "MIT" ]
permissive
jcampbell05/Tasks
0968ed6bfbe6738746cdeceaa4e09485173db5c8
45a997587b13ce783b416d5def80bcf0a7460290
refs/heads/master
2021-01-21T04:05:15.353462
2016-09-30T11:19:10
2016-09-30T11:19:10
58,308,294
12
5
null
2016-09-30T11:17:54
2016-05-08T11:06:33
Swift
UTF-8
Swift
false
false
843
swift
// // TasksTests.swift // Tasks // // Created by Honza Dvorsky on 5/8/16. // // @testable import Tasks import XCTest class TasksTests: XCTestCase { func testSuccess() throws { let result = try Task.run("echo", "hello world") XCTAssertEqual(result.code, 0) XCTAssertEqual(result.stderrStringUTF8, "") XCTAssertEqual(result.stdoutStringUTF8, "hello world") } func testFail() throws { let result = try Task.run("printf") XCTAssert(result.code != 0) XCTAssertFalse(result.stderrStringUTF8.isEmpty) XCTAssertEqual(result.stdoutStringUTF8, "") } } extension TasksTests { static var allTests: [(String, (TasksTests) -> () throws -> Void)] { return [ ("testSuccess", testSuccess), ("testFail", testFail), ] } }
[ -1 ]
e104cd41b9bdedeb5c79dd120c58180efdb59534
78fd1a7ef557095a51b05fde5787727768dc2848
/week6/week6/AppDelegate.swift
b30eb10d1e1a8a1bec74993684e6c1b870a4b04f
[]
no_license
booak55/week6
ec4c12b2f356d936524064b9f695f376f2fb0624
548e6b178ff63ae9941f85eb16c0dea278011a45
refs/heads/master
2021-01-19T22:21:23.700534
2017-04-20T00:11:37
2017-04-20T00:11:37
88,799,527
0
0
null
null
null
null
UTF-8
Swift
false
false
2,170
swift
// // AppDelegate.swift // week6 // // Created by BRIAN WONG on 20/04/2017. // Copyright © 2017 BRIAN WONG. All rights reserved. // import UIKit @UIApplicationMain class AppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { // Override point for customization after application launch. return true } func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 278539, 294924, 229388, 278542, 229391, 327695, 278545, 229394, 278548, 229397, 229399, 229402, 352284, 229405, 278556, 278559, 229408, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 311349, 286774, 286776, 319544, 286778, 229432, 204856, 352318, 286791, 237640, 286797, 278605, 311375, 163920, 237646, 196692, 319573, 311383, 278623, 278626, 319590, 311400, 278635, 303212, 278639, 131192, 278648, 237693, 303230, 327814, 303241, 131209, 417930, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 131264, 286916, 295110, 286922, 286924, 286926, 319694, 286928, 131281, 131278, 278743, 278747, 295133, 155872, 131299, 319716, 237807, 303345, 286962, 131314, 229622, 327930, 278781, 278783, 278785, 237826, 319751, 278792, 286987, 319757, 311569, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 287032, 155966, 319809, 319810, 278849, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 278865, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 278952, 139689, 278957, 311728, 278967, 180668, 311741, 278975, 319938, 278980, 98756, 278983, 319945, 278986, 319947, 278990, 278994, 311767, 279003, 279006, 188895, 172512, 287202, 279010, 279015, 172520, 319978, 279020, 172526, 311791, 279023, 172529, 279027, 319989, 172534, 180727, 164343, 279035, 311804, 287230, 279040, 303617, 287234, 279045, 172550, 303623, 172552, 287238, 320007, 279051, 172558, 279055, 303632, 279058, 303637, 279063, 279067, 172572, 279072, 172577, 295459, 172581, 295461, 279082, 311850, 279084, 172591, 172598, 279095, 172607, 172609, 172612, 377413, 172614, 172618, 303690, 33357, 287309, 303696, 279124, 172634, 262752, 254563, 172644, 311911, 189034, 295533, 172655, 172656, 352880, 295538, 189040, 172660, 287349, 189044, 189039, 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, 312005, 312006, 107208, 172748, 287436, 107212, 172751, 287440, 295633, 172755, 303827, 279255, 172760, 287450, 303835, 279258, 189149, 303838, 213724, 312035, 279267, 295654, 279272, 230128, 312048, 312050, 230131, 189169, 205564, 303871, 230146, 328453, 295685, 230154, 33548, 312077, 295695, 295701, 230169, 369433, 295707, 328476, 295710, 230175, 295720, 303914, 279340, 205613, 279353, 230202, 312124, 328508, 222018, 295755, 377676, 148302, 287569, 303959, 230237, 279390, 230241, 279394, 303976, 336744, 303985, 303987, 328563, 279413, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 304007, 304009, 213895, 304011, 230284, 304013, 295822, 189325, 213902, 189329, 295825, 304019, 279438, 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, 279661, 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, 279929, 181631, 148865, 312711, 296331, 288140, 288144, 230800, 304533, 337306, 288154, 288160, 173472, 288162, 288164, 279975, 304555, 370092, 279983, 173488, 288176, 279985, 312755, 296373, 312759, 279991, 288185, 337335, 222652, 312766, 173507, 296389, 222665, 230860, 312783, 288208, 230865, 288210, 370130, 222676, 288212, 288214, 148946, 239064, 329177, 288217, 288218, 280027, 288220, 239070, 288224, 280034, 288226, 280036, 288229, 280038, 288230, 288232, 370146, 288234, 320998, 288236, 288238, 288240, 288242, 296435, 288244, 288250, 296446, 321022, 402942, 148990, 296450, 206336, 230916, 230919, 214535, 230923, 304651, 304653, 370187, 402969, 230940, 222752, 108066, 296486, 296488, 157229, 239152, 230961, 157236, 288320, 288325, 124489, 280140, 280145, 288338, 280149, 288344, 280152, 239194, 280158, 403039, 370272, 181854, 239202, 370279, 312938, 280183, 280185, 280188, 280191, 116354, 280194, 280208, 280211, 288408, 280218, 280222, 419489, 190118, 198310, 321195, 296622, 321200, 337585, 296626, 296634, 296637, 419522, 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, 337732, 280388, 304968, 280393, 280402, 173907, 313171, 313176, 42842, 280419, 321381, 296809, 296812, 313201, 1920, 255873, 305028, 280454, 247688, 280464, 124817, 280468, 239510, 280473, 124827, 214940, 247709, 214944, 280487, 313258, 321458, 296883, 124853, 214966, 296890, 10170, 288700, 296894, 190403, 296900, 280515, 337862, 165831, 280521, 231379, 296921, 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, 275606, 141459, 280725, 313498, 100520, 288936, 280747, 288940, 288947, 280755, 321717, 280759, 280764, 280769, 280771, 280774, 280776, 313548, 321740, 280783, 280786, 280788, 313557, 280793, 280796, 280798, 338147, 280804, 280807, 157930, 280811, 280817, 125171, 280819, 157940, 182517, 280823, 280825, 280827, 280830, 280831, 280833, 125187, 280835, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 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, 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, 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, 281135, 150066, 158262, 158266, 289342, 281154, 322115, 158283, 281163, 281179, 338528, 338532, 281190, 199273, 281196, 19053, 158317, 313973, 297594, 281210, 158347, 264845, 182926, 133776, 182929, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 133801, 174764, 314029, 314033, 240309, 133817, 314045, 314047, 314051, 199364, 297671, 158409, 256716, 289493, 363234, 289513, 289522, 289525, 289532, 322303, 289537, 322310, 264969, 322314, 322318, 281361, 281372, 322341, 215850, 281388, 289593, 281401, 289601, 281410, 281413, 281414, 240458, 281420, 240468, 281430, 322393, 297818, 281435, 281438, 281442, 174955, 224110, 207733, 207737, 158596, 183172, 338823, 322440, 314249, 240519, 183184, 142226, 289687, 224151, 240535, 289694, 289696, 289700, 289712, 281529, 289724, 52163, 183260, 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, 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, 323260, 282300, 323266, 282310, 323273, 282319, 306897, 241362, 306904, 282328, 298714, 52959, 216801, 282337, 241380, 216806, 323304, 282345, 12011, 282356, 323318, 282364, 282367, 306945, 241412, 323333, 282376, 216842, 323345, 282388, 323349, 282392, 184090, 315167, 315169, 282402, 315174, 323367, 241448, 315176, 241450, 282410, 306988, 306991, 315184, 323376, 315190, 241464, 159545, 282425, 298811, 118593, 307009, 413506, 307012, 241475, 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, 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, 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, 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, 283095, 299481, 127449, 176605, 242143, 127455, 127457, 291299, 127460, 340454, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127490, 127494, 283142, 127497, 233994, 135689, 127500, 291341, 233998, 127506, 234003, 127509, 234006, 127511, 152087, 283161, 242202, 234010, 135707, 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, 226171, 291711, 234368, 291714, 234370, 291716, 234373, 226182, 234375, 201603, 308105, 226185, 234379, 324490, 234384, 234388, 234390, 226200, 234393, 209818, 308123, 234396, 324508, 291742, 324504, 234398, 234401, 291747, 291748, 234405, 291750, 324518, 324520, 234407, 324522, 234410, 291756, 291754, 226220, 324527, 291760, 234417, 234414, 324531, 201650, 234422, 226230, 324536, 275384, 234428, 291773, 242623, 324544, 234431, 234434, 324546, 226239, 226245, 234437, 234439, 324548, 234443, 291788, 193486, 234446, 193488, 234449, 316370, 275406, 234452, 234455, 234459, 234461, 234464, 234467, 234470, 168935, 5096, 324585, 234475, 234478, 316400, 234481, 316403, 234484, 234485, 234487, 324599, 234490, 234493, 316416, 234496, 308226, 234501, 275462, 308231, 234504, 234507, 234510, 234515, 300054, 316439, 234520, 234519, 234523, 234526, 234528, 300066, 234532, 300069, 234535, 234537, 234540, 234543, 234546, 275508, 300085, 234549, 300088, 234553, 234556, 234558, 316479, 234561, 316483, 160835, 234563, 308291, 234568, 234570, 316491, 234572, 300108, 234574, 300115, 234580, 234581, 234585, 275545, 242777, 234590, 234593, 234595, 234597, 300133, 234601, 300139, 234605, 160879, 234607, 275569, 234610, 316530, 300148, 234614, 398455, 144506, 234618, 234620, 275579, 234623, 226433, 234627, 275588, 234629, 242822, 234634, 234636, 177293, 234640, 275602, 234643, 308373, 324757, 234647, 234648, 226453, 234650, 308379, 275608, 300189, 324766, 119967, 234653, 283805, 234657, 324768, 242852, 300197, 234661, 283813, 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, 283973, 177482, 283983, 316758, 357722, 316766, 292192, 316768, 218464, 292197, 316774, 243046, 218473, 284010, 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, 144835, 144837, 38342, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 226787, 218597, 292329, 300523, 259565, 300527, 308720, 259567, 292338, 226802, 316917, 292343, 308727, 300537, 316933, 316947, 308757, 308762, 284191, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 226877, 292414, 284223, 284226, 284228, 292421, 243268, 284231, 226886, 128584, 284234, 276043, 317004, 366155, 284238, 226895, 284241, 194130, 284243, 300628, 284245, 292433, 284247, 317015, 235097, 243290, 284249, 276052, 276053, 300638, 284251, 284253, 284255, 284258, 243293, 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, 284399, 358128, 276206, 358133, 358135, 276216, 358138, 300795, 358140, 284413, 358142, 358146, 317187, 284418, 317189, 317191, 284428, 300816, 300819, 317207, 284440, 300828, 300830, 276255, 300832, 325408, 300834, 317221, 227109, 358183, 186151, 276268, 300845, 243504, 300850, 284469, 276280, 325436, 358206, 276291, 366406, 276295, 300872, 292681, 153417, 358224, 284499, 276308, 284502, 317271, 178006, 276315, 292700, 317279, 284511, 227175, 292715, 300912, 292721, 284529, 300915, 284533, 292729, 317306, 284540, 292734, 325512, 169868, 276365, 317332, 358292, 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, 153568, 276448, 276452, 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, 276539, 178238, 235581, 276544, 243779, 325700, 284739, 292934, 243785, 276553, 350293, 350295, 309337, 227418, 350299, 194649, 350302, 194654, 350304, 178273, 309346, 227423, 194660, 350308, 309350, 309348, 292968, 309352, 350313, 309354, 350316, 227430, 276583, 301167, 276590, 350321, 284786, 276595, 301163, 350325, 252022, 227440, 350328, 292985, 301178, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 276638, 153765, 284837, 350375, 350379, 350381, 350383, 129200, 350385, 350387, 350389, 350395, 350397, 350399, 227520, 350402, 227522, 301252, 350406, 227529, 301258, 309450, 276685, 309455, 276689, 309462, 301272, 276699, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 243948, 194801, 227571, 309491, 309494, 243960, 227583, 276735, 227587, 276739, 211204, 276742, 227596, 325910, 309530, 342298, 211232, 317729, 276775, 211241, 325937, 325943, 211260, 260421, 276809, 285002, 276811, 235853, 276816, 235858, 276829, 276833, 391523, 276836, 293227, 276843, 293232, 276848, 186744, 211324, 227709, 285061, 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, 227810, 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, 277106, 170618, 170619, 309885, 309888, 277122, 227975, 277128, 285320, 301706, 318092, 326285, 334476, 318094, 277136, 277139, 227992, 334488, 318108, 285340, 318110, 227998, 137889, 383658, 285357, 318128, 277170, 293555, 342707, 154292, 277173, 318132, 285368, 277177, 277181, 318144, 277187, 277191, 277194, 277196, 277201, 342745, 137946, 342747, 342749, 113378, 203491, 228069, 277223, 342760, 285417, 56041, 56043, 56045, 277232, 228081, 56059, 310015, 285441, 310020, 285448, 310029, 228113, 285459, 277273, 293659, 326430, 228128, 285474, 293666, 228135, 318248, 277291, 318253, 293677, 285489, 301876, 293685, 285494, 301880, 285499, 301884, 293696, 310080, 277317, 277322, 277329, 162643, 310100, 301911, 301913, 277337, 301921, 400236, 236397, 162671, 326514, 310134, 236408, 277368, 15224, 416639, 416640, 113538, 310147, 416648, 277385, 39817, 187274, 301972, 424853, 277405, 277411, 310179, 293798, 293802, 236460, 277426, 293811, 276579, 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, 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, 286016, 302403, 294211, 384328, 277832, 277836, 294221, 146765, 294223, 326991, 277839, 277842, 277847, 277850, 179547, 277853, 146784, 277857, 302436, 277860, 294246, 327015, 310632, 327017, 351594, 277864, 277869, 277872, 351607, 310648, 277880, 310651, 277884, 277888, 310657, 351619, 294276, 310659, 327046, 277892, 253320, 310665, 318858, 277894, 277898, 277903, 310672, 351633, 277905, 277908, 277917, 310689, 277921, 130468, 228776, 277928, 277932, 310703, 277937, 310710, 130486, 310712, 277944, 310715, 277947, 302526, 228799, 277950, 277953, 302534, 310727, 245191, 64966, 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, 280021, 188252, 237409, 229233, 294776, 360317, 294785, 327554, 360322, 40840, 294803, 40851, 188312, 294811, 237470, 319390, 40865, 319394, 294817, 294821, 311209, 180142, 343983, 294831, 188340, 40886, 319419, 294844, 294847, 393177, 294876, 294879, 294883, 393190, 294890, 311279, 278513, 237555, 311283, 278516, 278519, 237562 ]
d6096e42b0909c93ed760ff200fe3a12e32e0d7f
185a140481b226182591bb0380a6d6e2d0bc13bc
/Seouri/NDString.swift
6a128731528d840af6b50ca2a94b4d0c28754b62
[]
no_license
91haba/Seouri
fd6cb74358071a7a57fbe89140b967973fa56148
de7736d2a345e13ee4d96e47012f83930221c049
refs/heads/master
2018-12-20T02:45:20.819365
2018-09-17T04:03:59
2018-09-17T04:03:59
104,170,284
0
0
null
null
null
null
UTF-8
Swift
false
false
559
swift
// // StringExtension.swift // SlideMenuControllerSwift // // Created by Yuji Hato on 1/22/15. // Copyright (c) 2015 Yuji Hato. All rights reserved. // import Foundation extension String { static func className(_ aClass: AnyClass) -> String { return NSStringFromClass(aClass).components(separatedBy: ".").last! } func substring(_ from: Int) -> String { return self.substring(from: self.characters.index(self.startIndex, offsetBy: from)) } var length: Int { return self.characters.count } }
[ -1 ]
d21e5044787611728e9bee4f1d150d9e768a95b9
6731100bfd0e8ec4f65b339e2010d2bff9c757d7
/SmartDiaper/SDAppDelegate.swift
ca95bc050b0ce94527297c76be8aaba0337307d7
[]
no_license
pollikai/smartdiaper
012613993d3b0e301ae4f22a59468e43dd7843cf
3edfb1fa4fae951572ce2f13a27269a511c7e52b
refs/heads/master
2020-03-18T15:20:40.178829
2018-03-29T12:32:09
2018-03-29T12:32:09
134,901,624
0
0
null
null
null
null
UTF-8
Swift
false
false
2,179
swift
// // AppDelegate.swift // SmartDiaper // // Created by Ankush Kushwaha on 1/10/18. // Copyright © 2018 Starcut. All rights reserved. // import UIKit @UIApplicationMain class SDAppDelegate: UIResponder, UIApplicationDelegate { var window: UIWindow? func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { UIApplication.shared.isStatusBarHidden = true return true } func applicationWillResignActive(_ application: UIApplication) { // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. } func applicationDidEnterBackground(_ application: UIApplication) { // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. } func applicationWillEnterForeground(_ application: UIApplication) { // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. } func applicationDidBecomeActive(_ application: UIApplication) { // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. } func applicationWillTerminate(_ application: UIApplication) { // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. } }
[ 229380, 229383, 229385, 294924, 229388, 229391, 327695, 229394, 229397, 229399, 229402, 229405, 294950, 229415, 229417, 327722, 237613, 229422, 360496, 229426, 237618, 229428, 311349, 286774, 286776, 319544, 286778, 229432, 204856, 352318, 286791, 237640, 286797, 237646, 311375, 163920, 196692, 319573, 311383, 319590, 311400, 303212, 131192, 237693, 303230, 327814, 303241, 131209, 303244, 311436, 319633, 286873, 286876, 311460, 311469, 32944, 327862, 286906, 327866, 180413, 286910, 286916, 286924, 286926, 319694, 286928, 131281, 295133, 319716, 237807, 303345, 286962, 303347, 229622, 327930, 237826, 319751, 286987, 319757, 286999, 319770, 287003, 287006, 287009, 287012, 287014, 287016, 287019, 311598, 287023, 262448, 311601, 295220, 319809, 319810, 319814, 311623, 319818, 311628, 229709, 319822, 287054, 229717, 196963, 196969, 139638, 213367, 106872, 319872, 311683, 319879, 311693, 65943, 319898, 311719, 139689, 311728, 311741, 319938, 319945, 188895, 172512, 287202, 172520, 319978, 172526, 311791, 172529, 319989, 172534, 180727, 311804, 287230, 303617, 287234, 172550, 303623, 172552, 320007, 172558, 303632, 303637, 172572, 172577, 295459, 172581, 295461, 172591, 172598, 172607, 172609, 172612, 172614, 213575, 172618, 303690, 33357, 303696, 172634, 262752, 254563, 172644, 311911, 172656, 352880, 295538, 172660, 287349, 287355, 295553, 172675, 295557, 311942, 303751, 352905, 311946, 287371, 311951, 287377, 172691, 287381, 311957, 221850, 287386, 230045, 172702, 303773, 172705, 287394, 172707, 303780, 287398, 205479, 287400, 172714, 295595, 189102, 172721, 287409, 66227, 303797, 189114, 287419, 303804, 328381, 287423, 328384, 172737, 287427, 312006, 172748, 287436, 172751, 287440, 295633, 172755, 303827, 287450, 303835, 189149, 303838, 312035, 295654, 230128, 312048, 312050, 189169, 205564, 303871, 230146, 328453, 230154, 312077, 295695, 295701, 230169, 295707, 328476, 295710, 230175, 295720, 303914, 230202, 312124, 328508, 222018, 295755, 148302, 287569, 303959, 230237, 230241, 303976, 336744, 303981, 303985, 303987, 328563, 303991, 303997, 295806, 295808, 295813, 304005, 320391, 304007, 304009, 304011, 304013, 295822, 189329, 295825, 304019, 189331, 58262, 304023, 304027, 304042, 213931, 230327, 304055, 287675, 197564, 230334, 304063, 304065, 213954, 295873, 156612, 197580, 312272, 304090, 320481, 304106, 320490, 312302, 328687, 320496, 304114, 295928, 320505, 295945, 230413, 320528, 140312, 295961, 238620, 304164, 304170, 304175, 238641, 312374, 238652, 238655, 238658, 336964, 296004, 320584, 238666, 296021, 402518, 336987, 230497, 296036, 296040, 361576, 205931, 279661, 312432, 337018, 304258, 66690, 279683, 205968, 296084, 238745, 304285, 238756, 222377, 337067, 165035, 238766, 165038, 230576, 238770, 304311, 230592, 312518, 230600, 230607, 148690, 320727, 304348, 304354, 296163, 320740, 304360, 320748, 304370, 296189, 320771, 312585, 296202, 296205, 230674, 320786, 230677, 296213, 296215, 320792, 230681, 214294, 230689, 173350, 312622, 296243, 312630, 296253, 230718, 296255, 312639, 296259, 378181, 296262, 230727, 238919, 296264, 320840, 296267, 296271, 230739, 312663, 222556, 337244, 230752, 312676, 230760, 148843, 230763, 230768, 296305, 312692, 230773, 304505, 304506, 181626, 181631, 148865, 312711, 312712, 296331, 288140, 288144, 304533, 288164, 304555, 173488, 288176, 312755, 312759, 288185, 222652, 312766, 173507, 230860, 312783, 288208, 230865, 148946, 222676, 329177, 239070, 288229, 320998, 288232, 296435, 288244, 288250, 296446, 321022, 402942, 296450, 230916, 230919, 230923, 304651, 304653, 230940, 222752, 108066, 296486, 296488, 157229, 230961, 157236, 288320, 288325, 124489, 288338, 288344, 239194, 239202, 312938, 116354, 288408, 419489, 190118, 321195, 296622, 321200, 337585, 296634, 296637, 419522, 313027, 419525, 206536, 206539, 206541, 206543, 263888, 313044, 321239, 313052, 288478, 313055, 419555, 321252, 313066, 288494, 321266, 288499, 419570, 288502, 288510, 124671, 198405, 288519, 198416, 296723, 321304, 329498, 296731, 321311, 313121, 313123, 304932, 321316, 321336, 296767, 288576, 345921, 304968, 173907, 313171, 313176, 321381, 296809, 296812, 313201, 305028, 247688, 124817, 239510, 124827, 214940, 247709, 214944, 321458, 296883, 124853, 214966, 296890, 288700, 296894, 190403, 296900, 337862, 165831, 296921, 354265, 354270, 239586, 313320, 354281, 124913, 165876, 239612, 313340, 288764, 239617, 313347, 313358, 305176, 321560, 313371, 305191, 223273, 313386, 124978, 215090, 124980, 288824, 288826, 321595, 313406, 288831, 288836, 215123, 288859, 280669, 149599, 280671, 149601, 321634, 149603, 280681, 280687, 149618, 215154, 313458, 313464, 329850, 321659, 288895, 321670, 215175, 280725, 313498, 100520, 280747, 288947, 321717, 313548, 321740, 313557, 338147, 280804, 125171, 182517, 280825, 280831, 125187, 125191, 125207, 125209, 321817, 125218, 321842, 223539, 125239, 280891, 289087, 305480, 305485, 305489, 248153, 354653, 313700, 313705, 280940, 190832, 313720, 313731, 199051, 240011, 289166, 240017, 297363, 240021, 297365, 297372, 297377, 289186, 297391, 289201, 240052, 289207, 289210, 305594, 289218, 281045, 166378, 305647, 174580, 240124, 305662, 305664, 240129, 305666, 305668, 223749, 240132, 223752, 150025, 338440, 223757, 322074, 150066, 158266, 289342, 322115, 338528, 338532, 199273, 19053, 158317, 313973, 297594, 158347, 264845, 314003, 117398, 314007, 289436, 174754, 330404, 289448, 174764, 314029, 314033, 240309, 314045, 314047, 314051, 297671, 158409, 256716, 289493, 363234, 289513, 289522, 289532, 322303, 322310, 264969, 322314, 322318, 322341, 215850, 289601, 240458, 240468, 322393, 297818, 224110, 207733, 207737, 158596, 183172, 338823, 322440, 314249, 183184, 289687, 240535, 297883, 289694, 289696, 289700, 289712, 281529, 289724, 289762, 322534, 297961, 183277, 322550, 134142, 322563, 314372, 330764, 175134, 322599, 322610, 314421, 281654, 314427, 314433, 314441, 322642, 314456, 314461, 248995, 306341, 306344, 306347, 322734, 306354, 199877, 289991, 306377, 289997, 249045, 363742, 363745, 298216, 330988, 216303, 322801, 388350, 257302, 363802, 199976, 199978, 314671, 298292, 298294, 216376, 380226, 298306, 224587, 224594, 216404, 306517, 150870, 314714, 314718, 265568, 314723, 150890, 306539, 314732, 314736, 290161, 216436, 306549, 298358, 314743, 306552, 290171, 314747, 306555, 290174, 298365, 224641, 298372, 314756, 224647, 298377, 314763, 314768, 224657, 306581, 314773, 314779, 314785, 314793, 241068, 241070, 241072, 150966, 306618, 323015, 306635, 306640, 290263, 290270, 290275, 339431, 191985, 290291, 241142, 191992, 290298, 151036, 290302, 290305, 306694, 192008, 323084, 257550, 290321, 290325, 241175, 290328, 290332, 241181, 290344, 306731, 290349, 290351, 290356, 224849, 282199, 306778, 314979, 298598, 323176, 224875, 241260, 323181, 315016, 290445, 175770, 298651, 282269, 323229, 298655, 323231, 306856, 323260, 323266, 241362, 306904, 52959, 241380, 323318, 306945, 241412, 323333, 323345, 323349, 315167, 315169, 315174, 323367, 241448, 315176, 241450, 306991, 315184, 323376, 315190, 241464, 159545, 298811, 118593, 307009, 413506, 307012, 298822, 315211, 307027, 315221, 315223, 241496, 241498, 307035, 307040, 110433, 282465, 241509, 110438, 298860, 110445, 315249, 315251, 315253, 315255, 339838, 315267, 315269, 241544, 241546, 241548, 298896, 298898, 241556, 298901, 241560, 241563, 241565, 241567, 241569, 241574, 298922, 241581, 241583, 323504, 241586, 290739, 241588, 241590, 241592, 241598, 290751, 241600, 241605, 151495, 241610, 298975, 241632, 298984, 241643, 298988, 241646, 241649, 241652, 323574, 290807, 299003, 241661, 299006, 315396, 241669, 315397, 290835, 241693, 102438, 217127, 290877, 315463, 315466, 192589, 192596, 307287, 307290, 217179, 315482, 192605, 315483, 233567, 299105, 200801, 217188, 299109, 307303, 315495, 356457, 45163, 307307, 315502, 192624, 307314, 299126, 233591, 299136, 307329, 315524, 307338, 233613, 241813, 307352, 299164, 241821, 299167, 315552, 315557, 184486, 307370, 168107, 307372, 307374, 307376, 299185, 323763, 184503, 299191, 307385, 307386, 258235, 307388, 307390, 299200, 307394, 299204, 307396, 184518, 307399, 323784, 233679, 307409, 307411, 299225, 233701, 307432, 184586, 323854, 291104, 307508, 315701, 332086, 307510, 307512, 307515, 307518, 282942, 323917, 110926, 233808, 323921, 315733, 323926, 233815, 315739, 323932, 299357, 242018, 242024, 299373, 250231, 242043, 315771, 299391, 291202, 242057, 291212, 299405, 291222, 315801, 242075, 61855, 291231, 291238, 291241, 127403, 127405, 291247, 299440, 127407, 127413, 291254, 283062, 127417, 291260, 127421, 127424, 299457, 127429, 127434, 315856, 315860, 127447, 283095, 299481, 176605, 242143, 127455, 127457, 291299, 127463, 242152, 291305, 127466, 176620, 127469, 127474, 291314, 291317, 127480, 135672, 291323, 233979, 127485, 291330, 127494, 127497, 233994, 135689, 127500, 233998, 127506, 234003, 234006, 127511, 152087, 234010, 135707, 242202, 135710, 242206, 242208, 291361, 242220, 291378, 152118, 234038, 234041, 315961, 70213, 242250, 111193, 242275, 299620, 242279, 168562, 135805, 135808, 373383, 299655, 135820, 316051, 225941, 316054, 299672, 135834, 373404, 135839, 225954, 299684, 135844, 242343, 242345, 373421, 135870, 135873, 135876, 135879, 299720, 299723, 299726, 299740, 201444, 299750, 234219, 381677, 316151, 242431, 299778, 234242, 242436, 234246, 234252, 291601, 234258, 242452, 201496, 234264, 234266, 234269, 234272, 152355, 299814, 234281, 234287, 185138, 234296, 160572, 234302, 234307, 316233, 316235, 234319, 185173, 201557, 308063, 234336, 242530, 349027, 234341, 234344, 234347, 234350, 324464, 152435, 177011, 234356, 234358, 234364, 291711, 291714, 201603, 291716, 234373, 234370, 308105, 324490, 324504, 234393, 209818, 308123, 234396, 324508, 291742, 291747, 291748, 234405, 291750, 324518, 324520, 324522, 291754, 291756, 324527, 291760, 201650, 324531, 234422, 324536, 275384, 291773, 242623, 324544, 234431, 234434, 324546, 324548, 234437, 234443, 291788, 234446, 234449, 234452, 234455, 234464, 168935, 324585, 234478, 316400, 234481, 316403, 234485, 234487, 316416, 234496, 308231, 234504, 300054, 316439, 234520, 234519, 234526, 234528, 300066, 300069, 234535, 234540, 144430, 234546, 300085, 234549, 234553, 316479, 234561, 316483, 160835, 234563, 308291, 316491, 234572, 300108, 234574, 300115, 242777, 234593, 234597, 300133, 300139, 234605, 160879, 234610, 316530, 300148, 144506, 234620, 234634, 275594, 177293, 234640, 234643, 308373, 324757, 234647, 234648, 234650, 308379, 300189, 324766, 119967, 324768, 234653, 242852, 300197, 177318, 234667, 316596, 308414, 234687, 300223, 300226, 308418, 234692, 300229, 308420, 308422, 283844, 300234, 283850, 300238, 300241, 316625, 300243, 300245, 316630, 300248, 300253, 300256, 300258, 300260, 300263, 300265, 300267, 300270, 300272, 300278, 275703, 316663, 300284, 275710, 300287, 292097, 300289, 161027, 300292, 300294, 275719, 234760, 177419, 300299, 242957, 300301, 275725, 349451, 177424, 349464, 415009, 300344, 243003, 300357, 283973, 283983, 316758, 357722, 316766, 292192, 316768, 292197, 316774, 218473, 136562, 333178, 275836, 316803, 316806, 316811, 316814, 300433, 234899, 300436, 357783, 316824, 316826, 300448, 144807, 144810, 144812, 144814, 144820, 374196, 292279, 144826, 144828, 144830, 144832, 144837, 144839, 144841, 144844, 144847, 144852, 144855, 103899, 300507, 333280, 218597, 292329, 300523, 300527, 308720, 292338, 316917, 292343, 300537, 316933, 316947, 308757, 308762, 316959, 284194, 284196, 235045, 284199, 284204, 284206, 284209, 284211, 194101, 284213, 316983, 194103, 284215, 308790, 284218, 292414, 284223, 284226, 284228, 292421, 243268, 284231, 284234, 366155, 317004, 284238, 284241, 194130, 284243, 300628, 284245, 292433, 284247, 284249, 235097, 243290, 292452, 292454, 292458, 292461, 284272, 284274, 284278, 292470, 292473, 284283, 284286, 292479, 284288, 292481, 284290, 325250, 284292, 292485, 284297, 317066, 284299, 317068, 284301, 276109, 284303, 284306, 284308, 284312, 284314, 284316, 284320, 284322, 284327, 284329, 317098, 284331, 284333, 284335, 284337, 284339, 300726, 284343, 284346, 284350, 358080, 284354, 358083, 284358, 358089, 284362, 284365, 284368, 284370, 358098, 284372, 317138, 284377, 358114, 358116, 317158, 358119, 325353, 358122, 358126, 358128, 358133, 358135, 358138, 300795, 358140, 358142, 358146, 317187, 317189, 317191, 300816, 300819, 317207, 300830, 300832, 325408, 300834, 284449, 317221, 358183, 300845, 243504, 300850, 325436, 358206, 366406, 292681, 153417, 358224, 178006, 317271, 292700, 317279, 292715, 300912, 292721, 300915, 292729, 317306, 292734, 325512, 317332, 358292, 399252, 350106, 284572, 358312, 317353, 292784, 358326, 358330, 301011, 301013, 292823, 358360, 301017, 301015, 292828, 153568, 292839, 292843, 178161, 325624, 317435, 317446, 350218, 350222, 317456, 317458, 178195, 243733, 243740, 317468, 317472, 325666, 243751, 243762, 309298, 325685, 325689, 235579, 325692, 235581, 178238, 243779, 325700, 292934, 243785, 350293, 350295, 309337, 350299, 350302, 350304, 178273, 309346, 194660, 350308, 309350, 309348, 292968, 309352, 350313, 301163, 309354, 350316, 301167, 350321, 350325, 252022, 350328, 292985, 350332, 292989, 301185, 292993, 350339, 317570, 317573, 350342, 350345, 350349, 301199, 317584, 325777, 350354, 350357, 350359, 350362, 350366, 153765, 350375, 350379, 350381, 350383, 350385, 350387, 350389, 350395, 350397, 350399, 350402, 301252, 350406, 301258, 309450, 309455, 309462, 301272, 194780, 309468, 309471, 301283, 317672, 317674, 325867, 309491, 309494, 243960, 325910, 309530, 342298, 211232, 317729, 211241, 325937, 325943, 211260, 235853, 235858, 391523, 293227, 293232, 186744, 211324, 366983, 317833, 285077, 317853, 317858, 342434, 317864, 235955, 293304, 293307, 293314, 309707, 317910, 293336, 235996, 317917, 293343, 358880, 293346, 293352, 236013, 293364, 301562, 293370, 317951, 309764, 301575, 293387, 342541, 113167, 309779, 317971, 309781, 293417, 227882, 309804, 236082, 23094, 219714, 301636, 318020, 301639, 301643, 309844, 309849, 326244, 318055, 309871, 121458, 309885, 309888, 301706, 318092, 326285, 334476, 318094, 318108, 318110, 137889, 383658, 318128, 293555, 318132, 318144, 342745, 137946, 342747, 342749, 113378, 342760, 56043, 56059, 310015, 310020, 310029, 293659, 326430, 228128, 285474, 293666, 318248, 318253, 293677, 301876, 293685, 301880, 301884, 293696, 310080, 293706, 162643, 310100, 301911, 301921, 236397, 162671, 326514, 310134, 236408, 15224, 416639, 416640, 113538, 310147, 416648, 187274, 301972, 424853, 310179, 277411, 293798, 293802, 236460, 293817, 293820, 203715, 326603, 342994, 318442, 228332, 326638, 351217, 318450, 293876, 285686, 302073, 121850, 293882, 302075, 285690, 293899, 293908, 302105, 293917, 293939, 318516, 310336, 293956, 293960, 310344, 203857, 293971, 310355, 310359, 236632, 138332, 310374, 203879, 310376, 228460, 318573, 367737, 302205, 392326, 294026, 162964, 384148, 187542, 302231, 285849, 302233, 285852, 302237, 285854, 285856, 302241, 302248, 64682, 294063, 302258, 277687, 294072, 318651, 318657, 244930, 130244, 302277, 302282, 310476, 302285, 302288, 310481, 302290, 302292, 302294, 310486, 302296, 310498, 318698, 302315, 294132, 138485, 204026, 64768, 310531, 285999, 318773, 318776, 286010, 417086, 302403, 384328, 294221, 294223, 326991, 294246, 327015, 310632, 327017, 351594, 351607, 310648, 310651, 310657, 351619, 294276, 310659, 327046, 253320, 310665, 318858, 310672, 351633, 310689, 130468, 310703, 310710, 130486, 310712, 310715, 302526, 228799, 302534, 310727, 245191, 163272, 302541, 302543, 310737, 310749, 310755, 310764, 310772, 40440, 212472, 40443, 286203, 40448, 286214, 302603, 302614, 302621, 286240, 146977, 187939, 40484, 40486, 286246, 294440, 40488, 294439, 294443, 40491, 294445, 286248, 310831, 245288, 40499, 40502, 212538, 40507, 40511, 40513, 327240, 40521, 286283, 40525, 40527, 212560, 400976, 40533, 40537, 40539, 40541, 40544, 40548, 40550, 40552, 40554, 310892, 40557, 40560, 294521, 343679, 294537, 302740, 179870, 327333, 229030, 302764, 319153, 302781, 302789, 294599, 294601, 302793, 343757, 212690, 319187, 286420, 286425, 319194, 294625, 294634, 302838, 319226, 286460, 171774, 302852, 278277, 302854, 294664, 311048, 319243, 311053, 302862, 319251, 294682, 188199, 294701, 319280, 319290, 229192, 302925, 188247, 188252, 237409, 360317, 294785, 327554, 360322, 40851, 237470, 319390, 40865, 319394, 294821, 311209, 180142, 343983, 188340, 40886, 294844, 294847, 393177, 294876, 294879, 393190, 294890, 237555, 311283, 237562 ]