hexsha stringlengths 40 40 | size int64 5 1.05M | ext stringclasses 98
values | lang stringclasses 21
values | max_stars_repo_path stringlengths 3 945 | max_stars_repo_name stringlengths 4 118 | max_stars_repo_head_hexsha stringlengths 40 78 | max_stars_repo_licenses listlengths 1 10 | max_stars_count int64 1 368k ⌀ | max_stars_repo_stars_event_min_datetime stringlengths 24 24 ⌀ | max_stars_repo_stars_event_max_datetime stringlengths 24 24 ⌀ | max_issues_repo_path stringlengths 3 945 | max_issues_repo_name stringlengths 4 118 | max_issues_repo_head_hexsha stringlengths 40 78 | max_issues_repo_licenses listlengths 1 10 | max_issues_count int64 1 134k ⌀ | max_issues_repo_issues_event_min_datetime stringlengths 24 24 ⌀ | max_issues_repo_issues_event_max_datetime stringlengths 24 24 ⌀ | max_forks_repo_path stringlengths 3 945 | max_forks_repo_name stringlengths 4 135 | max_forks_repo_head_hexsha stringlengths 40 78 | max_forks_repo_licenses listlengths 1 10 | max_forks_count int64 1 105k ⌀ | max_forks_repo_forks_event_min_datetime stringlengths 24 24 ⌀ | max_forks_repo_forks_event_max_datetime stringlengths 24 24 ⌀ | content stringlengths 5 1.05M | avg_line_length float64 1 1.03M | max_line_length int64 2 1.03M | alphanum_fraction float64 0 1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
ad80c5f3ea476b7b4bc2ca10754ad5a081a48387 | 228,125 | sql | SQL | storage/database/countries/au.sql | DercioBobo/CVS | 6e3208d49dff857b9f1847a4ef11066e18de22b3 | [
"MIT"
] | null | null | null | storage/database/countries/au.sql | DercioBobo/CVS | 6e3208d49dff857b9f1847a4ef11066e18de22b3 | [
"MIT"
] | null | null | null | storage/database/countries/au.sql | DercioBobo/CVS | 6e3208d49dff857b9f1847a4ef11066e18de22b3 | [
"MIT"
] | null | null | null | -- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64)
--
-- Host: localhost Database: Quickadclassified
-- ------------------------------------------------------
-- Server version 5.6.35
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
--
-- Dumping data for table `<<prefix>>subadmin1`
--
/*!40000 ALTER TABLE `<<prefix>>subadmin1` DISABLE KEYS */;
INSERT INTO `<<prefix>>subadmin1` VALUES (150,'AU.08','AU','Western Australia','Western Australia',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (151,'AU.05','AU','South Australia','South Australia',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (152,'AU.03','AU','Northern Territory','Northern Territory',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (153,'AU.07','AU','Victoria','Victoria',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (154,'AU.06','AU','Tasmania','Tasmania',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (155,'AU.04','AU','Queensland','Queensland',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (156,'AU.02','AU','New South Wales','New South Wales',1);
INSERT INTO `<<prefix>>subadmin1` VALUES (157,'AU.01','AU','ACT','ACT',1);
/*!40000 ALTER TABLE `<<prefix>>subadmin1` ENABLE KEYS */;
--
-- Dumping data for table `<<prefix>>subadmin2`
--
/*!40000 ALTER TABLE `<<prefix>>subadmin2` DISABLE KEYS */;
INSERT INTO `<<prefix>>subadmin2` VALUES (1344,'AU.05.48410','AU','AU.05','City of West Torrens','City of West Torrens',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1345,'AU.08.57210','AU','AU.08','Plantagenet Shire','Plantagenet Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1346,'AU.08.57080','AU','AU.08','City of Perth','City of Perth',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1347,'AU.08.54480','AU','AU.08','Kent Shire','Kent Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1348,'AU.08.53290','AU','AU.08','Esperance Shire','Esperance Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1349,'AU.08.53010','AU','AU.08','Dumbleyung Shire','Dumbleyung Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1350,'AU.05.40700','AU','AU.05','Burnside','Burnside',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1351,'AU.08.50280','AU','AU.08','Augusta-Margaret River Shire','Augusta-Margaret River Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1352,'AU.07.27350','AU','AU.07','Yarra','Yarra',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1353,'AU.02.18550','AU','AU.02','Wyong Shire','Wyong Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1354,'AU.02.17950','AU','AU.02','Warren Shire','Warren Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1355,'AU.02.17400','AU','AU.02','Tenterfield Municipality','Tenterfield Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1356,'AU.02.17350','AU','AU.02','Temora Municipality','Temora Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1357,'AU.02.17310','AU','AU.02','Tamworth Municipality','Tamworth Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1358,'AU.02.16950','AU','AU.02','Shoalhaven Shire','Shoalhaven Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1359,'AU.02.16550','AU','AU.02','Randwick','Randwick',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1360,'AU.02.16400','AU','AU.02','Port Stephens Shire','Port Stephens Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1361,'AU.02.16350','AU','AU.02','Penrith Municipality','Penrith Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1362,'AU.02.16150','AU','AU.02','Orange Municipality','Orange Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1363,'AU.02.15700','AU','AU.02','Nambucca Shire','Nambucca Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1364,'AU.02.15550','AU','AU.02','Murrumbidgee Shire','Murrumbidgee Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1365,'AU.02.15500','AU','AU.02','Murray Shire','Murray Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1366,'AU.07.24780','AU','AU.07','Mildura Shire','Mildura Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1367,'AU.02.15150','AU','AU.02','Manly Vale','Manly Vale',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1368,'AU.02.15050','AU','AU.02','Maitland Municipality','Maitland Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1369,'AU.02.14850','AU','AU.02','Lismore Municipality','Lismore Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1370,'AU.02.14650','AU','AU.02','Lake Macquarie Shire','Lake Macquarie Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1371,'AU.02.14000','AU','AU.02','Hornsby Shire','Hornsby Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1372,'AU.02.13100','AU','AU.02','Gosford Shire','Gosford Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1373,'AU.02.13050','AU','AU.02','Gloucester Shire','Gloucester Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1374,'AU.02.12600','AU','AU.02','Dubbo Municipality','Dubbo Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1375,'AU.07.21890','AU','AU.07','Darebin','Darebin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1376,'AU.02.11500','AU','AU.02','Campbelltown Municipality','Campbelltown Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1377,'AU.02.11350','AU','AU.02','Byron Shire','Byron Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1378,'AU.02.11250','AU','AU.02','Broken Hill Municipality','Broken Hill Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1379,'AU.02.10900','AU','AU.02','Blue Mountains Municipality','Blue Mountains Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1380,'AU.04.30300','AU','AU.04','Balonne Shire','Balonne Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1381,'AU.07.20570','AU','AU.07','Ballarat North','Ballarat North',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1382,'AU.02.10110','AU','AU.02','Armidale Dumaresq','Armidale Dumaresq',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1383,'AU.02.10050','AU','AU.02','Albury Municipality','Albury Municipality',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1384,'AU.02.17200','AU','AU.02','City of Sydney','City of Sydney',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1385,'AU.04.34860','AU','AU.04','Maranoa','Maranoa',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1386,'AU.08.50980','AU','AU.08','Broome','Broome',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1387,'AU.08.51080','AU','AU.08','Broomehill-Tambellup','Broomehill-Tambellup',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1388,'AU.08.51120','AU','AU.08','Bruce Rock','Bruce Rock',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1389,'AU.04.32260','AU','AU.04','Cassowary Coast','Cassowary Coast',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1390,'AU.06.60410','AU','AU.06','Brighton','Brighton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1391,'AU.06.60610','AU','AU.06','Burnie','Burnie',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1392,'AU.06.60810','AU','AU.06','Central Coast','Central Coast',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1393,'AU.06.61010','AU','AU.06','Central Highlands','Central Highlands',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1394,'AU.06.61210','AU','AU.06','Circular Head','Circular Head',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1395,'AU.06.61410','AU','AU.06','Clarence','Clarence',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1396,'AU.06.61510','AU','AU.06','Derwent Valley','Derwent Valley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1397,'AU.02.12700','AU','AU.02','Dungog','Dungog',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1398,'AU.02.12750','AU','AU.02','Eurobodalla','Eurobodalla',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1399,'AU.02.12850','AU','AU.02','Fairfield','Fairfield',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1400,'AU.02.12900','AU','AU.02','Forbes','Forbes',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1401,'AU.02.12950','AU','AU.02','Gilgandra','Gilgandra',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1402,'AU.02.13010','AU','AU.02','Glen Innes Severn','Glen Innes Severn',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1403,'AU.02.13310','AU','AU.02','Goulburn Mulwaree','Goulburn Mulwaree',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1404,'AU.02.13350','AU','AU.02','Greater Taree','Greater Taree',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1405,'AU.02.13370','AU','AU.02','Greater Hume Shire','Greater Hume Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1406,'AU.02.17450','AU','AU.02','Tumbarumba','Tumbarumba',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1407,'AU.02.17500','AU','AU.02','Tumut Shire','Tumut Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1408,'AU.02.17550','AU','AU.02','Tweed','Tweed',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1409,'AU.02.17620','AU','AU.02','Upper Hunter Shire','Upper Hunter Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1410,'AU.06.65410','AU','AU.06','Waratah/Wynyard','Waratah/Wynyard',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1411,'AU.06.65610','AU','AU.06','West Coast','West Coast',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1412,'AU.06.65810','AU','AU.06','West Tamar','West Tamar',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1413,'AU.03.70540','AU','AU.03','Belyuen','Belyuen',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1414,'AU.03.70700','AU','AU.03','Coomalie','Coomalie',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1415,'AU.04.35010','AU','AU.04','Moreton Bay','Moreton Bay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1416,'AU.04.35250','AU','AU.04','Mornington','Mornington',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1417,'AU.04.35300','AU','AU.04','Mount Isa','Mount Isa',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1418,'AU.04.35600','AU','AU.04','Murweh','Murweh',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1419,'AU.04.35670','AU','AU.04','Napranum','Napranum',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1420,'AU.04.35760','AU','AU.04','North Burnett','North Burnett',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1421,'AU.04.35780','AU','AU.04','Northern Peninsula Area','Northern Peninsula Area',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1422,'AU.04.35790','AU','AU.04','Palm Island','Palm Island',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1423,'AU.04.35800','AU','AU.04','Paroo','Paroo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1424,'AU.04.36070','AU','AU.04','Pormpuraaw','Pormpuraaw',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1425,'AU.04.36150','AU','AU.04','Quilpie','Quilpie',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1426,'AU.04.36250','AU','AU.04','Redland','Redland',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1427,'AU.04.36300','AU','AU.04','Richmond','Richmond',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1428,'AU.04.36360','AU','AU.04','Rockhampton','Rockhampton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1429,'AU.04.36510','AU','AU.04','Scenic Rim','Scenic Rim',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1430,'AU.04.36580','AU','AU.04','Somerset','Somerset',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1431,'AU.04.36630','AU','AU.04','South Burnett','South Burnett',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1432,'AU.04.36660','AU','AU.04','Southern Downs','Southern Downs',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1433,'AU.04.36710','AU','AU.04','Sunshine Coast','Sunshine Coast',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1434,'AU.04.36810','AU','AU.04','Tablelands','Tablelands',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1435,'AU.04.36910','AU','AU.04','Toowoomba','Toowoomba',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1436,'AU.04.36950','AU','AU.04','Torres','Torres',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1437,'AU.04.36960','AU','AU.04','Torres Strait Island Region','Torres Strait Island Region',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1438,'AU.04.37010','AU','AU.04','Townsville','Townsville',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1439,'AU.04.37300','AU','AU.04','Weipa','Weipa',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1440,'AU.04.37310','AU','AU.04','Western Downs','Western Downs',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1441,'AU.03.71000','AU','AU.03','Darwin','Darwin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1442,'AU.03.71300','AU','AU.03','East Arnhem','East Arnhem',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1443,'AU.03.72200','AU','AU.03','Katherine','Katherine',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1444,'AU.03.72300','AU','AU.03','Litchfield','Litchfield',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1445,'AU.03.72330','AU','AU.03','MacDonnell','MacDonnell',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1446,'AU.03.72800','AU','AU.03','Palmerston','Palmerston',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1447,'AU.03.73600','AU','AU.03','Roper Gulf','Roper Gulf',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1448,'AU.03.74050','AU','AU.03','Tiwi Islands','Tiwi Islands',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1449,'AU.03.74500','AU','AU.03','Victoria-Daly','Victoria-Daly',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1450,'AU.03.74560','AU','AU.03','Wagait','Wagait',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1451,'AU.03.74660','AU','AU.03','West Arnhem','West Arnhem',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1452,'AU.04.37340','AU','AU.04','Whitsunday','Whitsunday',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1453,'AU.04.37400','AU','AU.04','Winton','Winton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1454,'AU.04.37550','AU','AU.04','Woorabinda','Woorabinda',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1455,'AU.04.37570','AU','AU.04','Wujal Wujal','Wujal Wujal',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1456,'AU.04.37600','AU','AU.04','Yarrabah','Yarrabah',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1457,'AU.05.41330','AU','AU.05','Coober Pedy','Coober Pedy',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1458,'AU.05.41750','AU','AU.05','Elliston','Elliston',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1459,'AU.05.41830','AU','AU.05','Flinders Ranges','Flinders Ranges',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1460,'AU.05.41960','AU','AU.05','Franklin Harbour','Franklin Harbour',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1461,'AU.05.42030','AU','AU.05','Gawler','Gawler',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1462,'AU.05.42110','AU','AU.05','Goyder','Goyder',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1463,'AU.05.42250','AU','AU.05','Grant','Grant',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1464,'AU.05.42600','AU','AU.05','Holdfast Bay','Holdfast Bay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1465,'AU.05.42750','AU','AU.05','Kangaroo Island','Kangaroo Island',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1466,'AU.05.43080','AU','AU.05','Karoonda East Murray','Karoonda East Murray',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1467,'AU.05.43220','AU','AU.05','Kimba','Kimba',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1468,'AU.05.43360','AU','AU.05','Kingston','Kingston',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1469,'AU.05.43570','AU','AU.05','Wudinna','Wudinna',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1470,'AU.05.43650','AU','AU.05','Light','Light',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1471,'AU.05.43710','AU','AU.05','Lower Eyre Peninsula','Lower Eyre Peninsula',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1472,'AU.05.43790','AU','AU.05','Loxton Waikerie','Loxton Waikerie',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1473,'AU.05.43920','AU','AU.05','Mallala','Mallala',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1474,'AU.05.44000','AU','AU.05','Maralinga Tjarutja','Maralinga Tjarutja',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1475,'AU.05.44060','AU','AU.05','Marion','Marion',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1476,'AU.05.44210','AU','AU.05','Mid Murray','Mid Murray',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1477,'AU.05.44340','AU','AU.05','Mitcham','Mitcham',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1478,'AU.05.44550','AU','AU.05','Mount Barker','Mount Barker',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1479,'AU.05.44620','AU','AU.05','Mount Gambier','Mount Gambier',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1480,'AU.05.44830','AU','AU.05','Mount Remarkable','Mount Remarkable',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1481,'AU.05.45040','AU','AU.05','Murray Bridge','Murray Bridge',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1482,'AU.05.45090','AU','AU.05','Naracoorte and Lucindale','Naracoorte and Lucindale',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1483,'AU.05.45120','AU','AU.05','Northern Areas','Northern Areas',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1484,'AU.05.45290','AU','AU.05','Norwood Payneham St Peters','Norwood Payneham St Peters',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1485,'AU.05.45340','AU','AU.05','Onkaparinga','Onkaparinga',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1486,'AU.05.45400','AU','AU.05','Orroroo/Carrieton','Orroroo/Carrieton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1487,'AU.05.45540','AU','AU.05','Peterborough','Peterborough',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1488,'AU.05.45680','AU','AU.05','Playford','Playford',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1489,'AU.05.45890','AU','AU.05','Port Adelaide Enfield','Port Adelaide Enfield',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1490,'AU.05.46090','AU','AU.05','Port Augusta','Port Augusta',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1491,'AU.05.46300','AU','AU.05','Port Lincoln','Port Lincoln',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1492,'AU.05.46450','AU','AU.05','Port Pirie City and Dists','Port Pirie City and Dists',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1493,'AU.05.46510','AU','AU.05','Prospect','Prospect',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1494,'AU.05.46670','AU','AU.05','Renmark Paringa','Renmark Paringa',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1495,'AU.05.46860','AU','AU.05','Robe','Robe',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1496,'AU.05.46970','AU','AU.05','Roxby Downs','Roxby Downs',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1497,'AU.05.47140','AU','AU.05','Salisbury','Salisbury',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1498,'AU.05.47290','AU','AU.05','Southern Mallee','Southern Mallee',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1499,'AU.05.47490','AU','AU.05','Streaky Bay','Streaky Bay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1500,'AU.05.47630','AU','AU.05','Tatiara','Tatiara',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1501,'AU.05.47700','AU','AU.05','Tea Tree Gully','Tea Tree Gully',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1502,'AU.05.47800','AU','AU.05','The Coorong','The Coorong',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1503,'AU.05.47910','AU','AU.05','Tumby Bay','Tumby Bay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1504,'AU.05.47980','AU','AU.05','Unley','Unley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1505,'AU.05.48050','AU','AU.05','Victor Harbor','Victor Harbor',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1506,'AU.05.48130','AU','AU.05','Wakefield','Wakefield',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1507,'AU.05.48260','AU','AU.05','Walkerville','Walkerville',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1508,'AU.05.48340','AU','AU.05','Wattle Range','Wattle Range',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1509,'AU.05.48540','AU','AU.05','Whyalla','Whyalla',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1510,'AU.05.48750','AU','AU.05','Yankalilla','Yankalilla',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1511,'AU.05.48830','AU','AU.05','Yorke Peninsula','Yorke Peninsula',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1512,'AU.08.50770','AU','AU.08','Boyup Brook','Boyup Brook',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1513,'AU.08.50840','AU','AU.08','Bridgetown-Greenbushes','Bridgetown-Greenbushes',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1514,'AU.08.50910','AU','AU.08','Brookton','Brookton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1515,'AU.08.51190','AU','AU.08','Bunbury','Bunbury',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1516,'AU.08.51260','AU','AU.08','Busselton','Busselton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1517,'AU.08.51310','AU','AU.08','Cambridge','Cambridge',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1518,'AU.08.51330','AU','AU.08','Canning','Canning',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1519,'AU.08.51400','AU','AU.08','Capel','Capel',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1520,'AU.08.51470','AU','AU.08','Carnamah','Carnamah',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1521,'AU.08.51540','AU','AU.08','Carnarvon','Carnarvon',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1522,'AU.08.51610','AU','AU.08','Chapman Valley','Chapman Valley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1523,'AU.08.51680','AU','AU.08','Chittering','Chittering',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1524,'AU.08.51750','AU','AU.08','Claremont','Claremont',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1525,'AU.08.51820','AU','AU.08','City of Cockburn','City of Cockburn',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1526,'AU.08.51890','AU','AU.08','Collie','Collie',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1527,'AU.08.51960','AU','AU.08','Coolgardie','Coolgardie',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1528,'AU.08.52030','AU','AU.08','Coorow','Coorow',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1529,'AU.08.52100','AU','AU.08','Corrigin','Corrigin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1530,'AU.08.52170','AU','AU.08','Cottesloe','Cottesloe',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1531,'AU.08.52240','AU','AU.08','Cranbrook','Cranbrook',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1532,'AU.08.52310','AU','AU.08','Cuballing','Cuballing',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1533,'AU.08.52380','AU','AU.08','Cue','Cue',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1534,'AU.08.52450','AU','AU.08','Cunderdin','Cunderdin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1535,'AU.08.52520','AU','AU.08','Dalwallinu','Dalwallinu',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1536,'AU.08.52590','AU','AU.08','Dandaragan','Dandaragan',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1537,'AU.08.52660','AU','AU.08','Dardanup','Dardanup',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1538,'AU.08.52730','AU','AU.08','Denmark','Denmark',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1539,'AU.08.52800','AU','AU.08','Derby-West Kimberley','Derby-West Kimberley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1540,'AU.08.52870','AU','AU.08','Donnybrook-Balingup','Donnybrook-Balingup',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1541,'AU.08.52940','AU','AU.08','Dowerin','Dowerin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1542,'AU.08.53080','AU','AU.08','Dundas','Dundas',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1543,'AU.08.53150','AU','AU.08','East Fremantle','East Fremantle',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1544,'AU.08.53220','AU','AU.08','East Pilbara','East Pilbara',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1545,'AU.08.53360','AU','AU.08','Exmouth','Exmouth',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1546,'AU.08.53430','AU','AU.08','Fremantle','Fremantle',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1547,'AU.08.53520','AU','AU.08','Geraldton-Greenough','Geraldton-Greenough',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1548,'AU.08.53570','AU','AU.08','Gingin','Gingin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1549,'AU.08.53640','AU','AU.08','Gnowangerup','Gnowangerup',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1550,'AU.08.53710','AU','AU.08','Goomalling','Goomalling',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1551,'AU.08.53780','AU','AU.08','Gosnells','Gosnells',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1552,'AU.08.53920','AU','AU.08','Halls Creek','Halls Creek',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1553,'AU.08.53990','AU','AU.08','Harvey','Harvey',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1554,'AU.08.54060','AU','AU.08','Irwin','Irwin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1555,'AU.08.54130','AU','AU.08','Jerramungup','Jerramungup',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1556,'AU.08.54170','AU','AU.08','Joondalup','Joondalup',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1557,'AU.08.54200','AU','AU.08','Kalamunda','Kalamunda',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1558,'AU.08.54280','AU','AU.08','Kalgoorlie/Boulder','Kalgoorlie/Boulder',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1559,'AU.08.54340','AU','AU.08','Katanning','Katanning',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1560,'AU.08.54410','AU','AU.08','Kellerberrin','Kellerberrin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1561,'AU.08.54550','AU','AU.08','Kojonup','Kojonup',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1562,'AU.08.54620','AU','AU.08','Kondinin','Kondinin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1563,'AU.08.54690','AU','AU.08','Koorda','Koorda',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1564,'AU.07.20110','AU','AU.07','Alpine','Alpine',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1565,'AU.07.20260','AU','AU.07','Ararat','Ararat',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1566,'AU.07.20660','AU','AU.07','Banyule','Banyule',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1567,'AU.07.20740','AU','AU.07','Bass Coast','Bass Coast',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1568,'AU.07.20830','AU','AU.07','Baw Baw','Baw Baw',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1569,'AU.07.20910','AU','AU.07','Bayside','Bayside',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1570,'AU.07.21010','AU','AU.07','Benalla','Benalla',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1571,'AU.07.21110','AU','AU.07','Boroondara','Boroondara',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1572,'AU.07.21180','AU','AU.07','Brimbank','Brimbank',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1573,'AU.07.21270','AU','AU.07','Buloke','Buloke',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1574,'AU.07.21370','AU','AU.07','Campaspe','Campaspe',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1575,'AU.07.21450','AU','AU.07','Cardinia','Cardinia',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1576,'AU.07.21610','AU','AU.07','Casey','Casey',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1577,'AU.07.21670','AU','AU.07','Central Goldfields','Central Goldfields',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1578,'AU.07.21750','AU','AU.07','Colac-Otway','Colac-Otway',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1579,'AU.07.21830','AU','AU.07','Corangamite','Corangamite',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1580,'AU.07.22110','AU','AU.07','East Gippsland','East Gippsland',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1581,'AU.07.22170','AU','AU.07','Frankston','Frankston',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1582,'AU.07.22250','AU','AU.07','Gannawarra','Gannawarra',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1583,'AU.07.22310','AU','AU.07','Glen Eira','Glen Eira',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1584,'AU.07.22410','AU','AU.07','Glenelg','Glenelg',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1585,'AU.07.22490','AU','AU.07','Golden Plains','Golden Plains',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1586,'AU.07.22620','AU','AU.07','Greater Bendigo','Greater Bendigo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1587,'AU.07.22670','AU','AU.07','Greater Dandenong','Greater Dandenong',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1588,'AU.07.22750','AU','AU.07','Greater Geelong','Greater Geelong',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1589,'AU.07.22830','AU','AU.07','Greater Shepparton','Greater Shepparton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1590,'AU.07.22910','AU','AU.07','Hepburn','Hepburn',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1591,'AU.07.22980','AU','AU.07','Hindmarsh','Hindmarsh',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1592,'AU.07.23110','AU','AU.07','Hobsons Bay','Hobsons Bay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1593,'AU.07.23190','AU','AU.07','Horsham','Horsham',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1594,'AU.07.23270','AU','AU.07','Hume','Hume',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1595,'AU.04.30250','AU','AU.04','Aurukun','Aurukun',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1596,'AU.04.30370','AU','AU.04','Banana','Banana',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1597,'AU.04.30410','AU','AU.04','Barcaldine','Barcaldine',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1598,'AU.04.30450','AU','AU.04','Barcoo','Barcoo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1599,'AU.04.30760','AU','AU.04','Blackall Tambo','Blackall Tambo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1600,'AU.04.30900','AU','AU.04','Boulia','Boulia',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1601,'AU.04.31000','AU','AU.04','Brisbane','Brisbane',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1602,'AU.04.31750','AU','AU.04','Bulloo','Bulloo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1603,'AU.04.31820','AU','AU.04','Bundaberg','Bundaberg',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1604,'AU.04.31900','AU','AU.04','Burdekin','Burdekin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1605,'AU.04.31950','AU','AU.04','Burke','Burke',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1606,'AU.04.32070','AU','AU.04','Cairns','Cairns',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1607,'AU.04.32250','AU','AU.04','Carpentaria','Carpentaria',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1608,'AU.04.32270','AU','AU.04','Central Highlands','Central Highlands',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1609,'AU.04.32310','AU','AU.04','Charters Towers','Charters Towers',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1610,'AU.04.32330','AU','AU.04','Cherbourg','Cherbourg',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1611,'AU.04.32450','AU','AU.04','Cloncurry','Cloncurry',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1612,'AU.04.32500','AU','AU.04','Cook Shire','Cook Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1613,'AU.04.32600','AU','AU.04','Croydon','Croydon',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1614,'AU.04.32750','AU','AU.04','Diamantina','Diamantina',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1615,'AU.04.32770','AU','AU.04','Doomadgee','Doomadgee',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1616,'AU.04.33100','AU','AU.04','Etheridge','Etheridge',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1617,'AU.04.33200','AU','AU.04','Flinders','Flinders',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1618,'AU.04.33220','AU','AU.04','Fraser Coast','Fraser Coast',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1619,'AU.04.33360','AU','AU.04','Gladstone','Gladstone',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1620,'AU.04.33430','AU','AU.04','Gold Coast','Gold Coast',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1621,'AU.04.33610','AU','AU.04','Goondiwindi','Goondiwindi',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1622,'AU.04.33620','AU','AU.04','Gympie Regional Council','Gympie Regional Council',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1623,'AU.04.33800','AU','AU.04','Hinchinbrook','Hinchinbrook',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1624,'AU.04.33830','AU','AU.04','Hope Vale','Hope Vale',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1625,'AU.04.33960','AU','AU.04','Ipswich','Ipswich',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1626,'AU.04.33980','AU','AU.04','Isaac','Isaac',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1627,'AU.04.34420','AU','AU.04','Kowanyama','Kowanyama',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1628,'AU.04.34570','AU','AU.04','Lockhart River','Lockhart River',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1629,'AU.04.34580','AU','AU.04','Lockyer Valley','Lockyer Valley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1630,'AU.04.34590','AU','AU.04','Logan','Logan',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1631,'AU.04.34710','AU','AU.04','Longreach','Longreach',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1632,'AU.04.34770','AU','AU.04','Mackay','Mackay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1633,'AU.04.34800','AU','AU.04','McKinlay','McKinlay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1634,'AU.04.34830','AU','AU.04','Mapoon','Mapoon',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1635,'AU.08.54760','AU','AU.08','Kulin','Kulin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1636,'AU.08.54830','AU','AU.08','Kwinana','Kwinana',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1637,'AU.08.54900','AU','AU.08','Lake Grace','Lake Grace',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1638,'AU.08.54970','AU','AU.08','Laverton','Laverton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1639,'AU.08.55040','AU','AU.08','Leonora','Leonora',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1640,'AU.08.55110','AU','AU.08','Mandurah','Mandurah',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1641,'AU.08.55180','AU','AU.08','Manjimup','Manjimup',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1642,'AU.08.55250','AU','AU.08','Meekatharra','Meekatharra',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1643,'AU.08.55320','AU','AU.08','Melville','Melville',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1644,'AU.08.55390','AU','AU.08','Menzies','Menzies',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1645,'AU.08.55460','AU','AU.08','Merredin','Merredin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1646,'AU.08.55530','AU','AU.08','Mingenew','Mingenew',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1647,'AU.08.55600','AU','AU.08','Moora','Moora',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1648,'AU.08.55670','AU','AU.08','Morawa','Morawa',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1649,'AU.08.55740','AU','AU.08','Mosman Park','Mosman Park',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1650,'AU.08.55810','AU','AU.08','Mount Magnet','Mount Magnet',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1651,'AU.08.55880','AU','AU.08','Mount Marshall','Mount Marshall',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1652,'AU.08.55950','AU','AU.08','Mukinbudin','Mukinbudin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1653,'AU.08.56020','AU','AU.08','Mullewa','Mullewa',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1654,'AU.08.56090','AU','AU.08','Mundaring','Mundaring',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1655,'AU.08.56160','AU','AU.08','Murchison','Murchison',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1656,'AU.08.56230','AU','AU.08','Murray','Murray',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1657,'AU.08.56300','AU','AU.08','Nannup','Nannup',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1658,'AU.08.56370','AU','AU.08','Narembeen','Narembeen',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1659,'AU.08.56440','AU','AU.08','Narrogin','Narrogin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1660,'AU.08.56510','AU','AU.08','Narrogin','Narrogin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1661,'AU.08.56580','AU','AU.08','Nedlands','Nedlands',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1662,'AU.08.56620','AU','AU.08','Ngaanyatjarraku','Ngaanyatjarraku',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1663,'AU.08.56730','AU','AU.08','Northam','Northam',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1664,'AU.08.56790','AU','AU.08','Northampton Shire','Northampton Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1665,'AU.08.56860','AU','AU.08','Nungarin','Nungarin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1666,'AU.08.56930','AU','AU.08','Peppermint Grove','Peppermint Grove',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1667,'AU.08.57000','AU','AU.08','Perenjori','Perenjori',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1668,'AU.08.57140','AU','AU.08','Pingelly','Pingelly',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1669,'AU.08.57280','AU','AU.08','Port Hedland','Port Hedland',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1670,'AU.08.57350','AU','AU.08','Quairading','Quairading',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1671,'AU.08.57420','AU','AU.08','Ravensthorpe','Ravensthorpe',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1672,'AU.08.57490','AU','AU.08','Rockingham','Rockingham',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1673,'AU.08.57560','AU','AU.08','Roebourne','Roebourne',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1674,'AU.08.57630','AU','AU.08','Sandstone','Sandstone',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1675,'AU.08.57700','AU','AU.08','Serpentine-Jarrahdale','Serpentine-Jarrahdale',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1676,'AU.08.57770','AU','AU.08','Shark Bay','Shark Bay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1677,'AU.08.57840','AU','AU.08','South Perth','South Perth',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1678,'AU.08.57910','AU','AU.08','Stirling','Stirling',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1679,'AU.08.57980','AU','AU.08','Subiaco','Subiaco',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1680,'AU.08.58050','AU','AU.08','Swan','Swan',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1681,'AU.08.58190','AU','AU.08','Tammin','Tammin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1682,'AU.08.58260','AU','AU.08','Three Springs','Three Springs',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1683,'AU.05.40070','AU','AU.05','Adelaide','Adelaide',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1684,'AU.05.40120','AU','AU.05','Adelaide Hills','Adelaide Hills',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1685,'AU.05.40220','AU','AU.05','Alexandrina','Alexandrina',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1686,'AU.05.40250','AU','AU.05','Anangu Pitjantjatjara','Anangu Pitjantjatjara',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1687,'AU.05.40310','AU','AU.05','Barossa','Barossa',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1688,'AU.05.40430','AU','AU.05','Barunga West','Barunga West',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1689,'AU.05.40520','AU','AU.05','Berri and Barmera','Berri and Barmera',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1690,'AU.05.40910','AU','AU.05','Campbelltown','Campbelltown',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1691,'AU.05.41010','AU','AU.05','Ceduna','Ceduna',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1692,'AU.05.41060','AU','AU.05','Charles Sturt','Charles Sturt',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1693,'AU.05.41140','AU','AU.05','Clare and Gilbert Valleys','Clare and Gilbert Valleys',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1694,'AU.05.41190','AU','AU.05','Cleve','Cleve',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1695,'AU.05.41560','AU','AU.05','Copper Coast','Copper Coast',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1696,'AU.08.50080','AU','AU.08','Albany','Albany',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1697,'AU.08.50210','AU','AU.08','Armadale','Armadale',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1698,'AU.08.50250','AU','AU.08','Ashburton','Ashburton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1699,'AU.08.50350','AU','AU.08','Bassendean','Bassendean',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1700,'AU.08.50420','AU','AU.08','Bayswater','Bayswater',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1701,'AU.08.50490','AU','AU.08','Belmont','Belmont',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1702,'AU.08.50560','AU','AU.08','Beverley','Beverley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1703,'AU.08.50630','AU','AU.08','Boddington','Boddington',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1704,'AU.06.60210','AU','AU.06','Break O\'Day','Break O\'Day',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1705,'AU.06.61610','AU','AU.06','Devonport','Devonport',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1706,'AU.06.61810','AU','AU.06','Dorset','Dorset',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1707,'AU.06.62010','AU','AU.06','Flinders','Flinders',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1708,'AU.06.62210','AU','AU.06','George Town','George Town',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1709,'AU.06.62410','AU','AU.06','Glamorgan/Spring Bay','Glamorgan/Spring Bay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1710,'AU.06.62610','AU','AU.06','Glenorchy','Glenorchy',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1711,'AU.06.62810','AU','AU.06','Hobart','Hobart',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1712,'AU.06.63010','AU','AU.06','Huon Valley','Huon Valley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1713,'AU.06.63210','AU','AU.06','Kentish','Kentish',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1714,'AU.06.63410','AU','AU.06','King Island','King Island',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1715,'AU.06.63610','AU','AU.06','Kingborough','Kingborough',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1716,'AU.06.63810','AU','AU.06','Latrobe','Latrobe',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1717,'AU.06.64010','AU','AU.06','Launceston','Launceston',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1718,'AU.06.64210','AU','AU.06','Meander Valley','Meander Valley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1719,'AU.06.64610','AU','AU.06','Northern Midlands','Northern Midlands',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1720,'AU.03.70200','AU','AU.03','Alice Springs','Alice Springs',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1721,'AU.03.70420','AU','AU.03','Barkly','Barkly',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1722,'AU.02.10150','AU','AU.02','Ashfield','Ashfield',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1723,'AU.02.10200','AU','AU.02','Auburn','Auburn',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1724,'AU.03.70620','AU','AU.03','Central Desert','Central Desert',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1725,'AU.02.10250','AU','AU.02','Ballina','Ballina',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1726,'AU.02.10300','AU','AU.02','Balranald','Balranald',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1727,'AU.02.10350','AU','AU.02','Bankstown','Bankstown',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1728,'AU.02.10470','AU','AU.02','Bathurst Regional','Bathurst Regional',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1729,'AU.02.10500','AU','AU.02','The Hills Shire','The Hills Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1730,'AU.02.10550','AU','AU.02','Bega Valley','Bega Valley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1731,'AU.02.10600','AU','AU.02','Bellingen','Bellingen',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1732,'AU.02.10650','AU','AU.02','Berrigan','Berrigan',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1733,'AU.02.10750','AU','AU.02','Blacktown','Blacktown',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1734,'AU.02.10800','AU','AU.02','Bland','Bland',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1735,'AU.02.10850','AU','AU.02','Blayney','Blayney',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1736,'AU.02.10950','AU','AU.02','Bogan','Bogan',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1737,'AU.02.11000','AU','AU.02','Bombala','Bombala',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1738,'AU.02.11050','AU','AU.02','Boorowa','Boorowa',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1739,'AU.02.11100','AU','AU.02','Botany Bay','Botany Bay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1740,'AU.02.11150','AU','AU.02','Bourke','Bourke',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1741,'AU.02.11200','AU','AU.02','Brewarrina','Brewarrina',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1742,'AU.02.11300','AU','AU.02','Burwood','Burwood',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1743,'AU.02.11400','AU','AU.02','Cabonne','Cabonne',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1744,'AU.02.11450','AU','AU.02','Camden','Camden',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1745,'AU.02.11520','AU','AU.02','Canada Bay','Canada Bay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1746,'AU.02.11550','AU','AU.02','Canterbury','Canterbury',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1747,'AU.02.11600','AU','AU.02','Carrathool','Carrathool',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1748,'AU.02.11700','AU','AU.02','Central Darling','Central Darling',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1749,'AU.02.11720','AU','AU.02','Cessnock','Cessnock',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1750,'AU.02.11730','AU','AU.02','Clarence Valley','Clarence Valley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1751,'AU.02.11750','AU','AU.02','Cobar','Cobar',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1752,'AU.02.11800','AU','AU.02','Coffs Harbour','Coffs Harbour',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1753,'AU.02.11860','AU','AU.02','Conargo','Conargo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1754,'AU.02.12000','AU','AU.02','Coolamon','Coolamon',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1755,'AU.02.12050','AU','AU.02','Cooma-Monaro','Cooma-Monaro',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1756,'AU.02.12150','AU','AU.02','Coonamble','Coonamble',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1757,'AU.02.12200','AU','AU.02','Cootamundra','Cootamundra',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1758,'AU.02.12300','AU','AU.02','Corowa Shire','Corowa Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1759,'AU.02.12350','AU','AU.02','Cowra','Cowra',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1760,'AU.02.12500','AU','AU.02','Deniliquin','Deniliquin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1761,'AU.02.13400','AU','AU.02','Great Lakes','Great Lakes',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1762,'AU.02.13450','AU','AU.02','Griffith','Griffith',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1763,'AU.02.13500','AU','AU.02','Gundagai','Gundagai',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1764,'AU.02.13550','AU','AU.02','Gunnedah','Gunnedah',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1765,'AU.02.13650','AU','AU.02','Guyra','Guyra',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1766,'AU.02.13660','AU','AU.02','Gwydir','Gwydir',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1767,'AU.02.13700','AU','AU.02','Harden','Harden',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1768,'AU.02.13800','AU','AU.02','Hawkesbury','Hawkesbury',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1769,'AU.02.13850','AU','AU.02','Hay','Hay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1770,'AU.02.13950','AU','AU.02','Holroyd','Holroyd',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1771,'AU.02.14100','AU','AU.02','Hunters Hill','Hunters Hill',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1772,'AU.02.14150','AU','AU.02','Hurstville','Hurstville',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1773,'AU.02.14200','AU','AU.02','Inverell','Inverell',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1774,'AU.02.14250','AU','AU.02','Jerilderie','Jerilderie',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1775,'AU.02.14300','AU','AU.02','Junee','Junee',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1776,'AU.02.14350','AU','AU.02','Kempsey','Kempsey',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1777,'AU.02.14400','AU','AU.02','Kiama','Kiama',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1778,'AU.02.14450','AU','AU.02','Kogarah','Kogarah',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1779,'AU.02.14500','AU','AU.02','Ku-ring-gai','Ku-ring-gai',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1780,'AU.02.14550','AU','AU.02','Kyogle','Kyogle',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1781,'AU.02.14600','AU','AU.02','Lachlan','Lachlan',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1782,'AU.02.14700','AU','AU.02','Lane Cove','Lane Cove',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1783,'AU.02.14750','AU','AU.02','Leeton','Leeton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1784,'AU.02.14800','AU','AU.02','Leichhardt','Leichhardt',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1785,'AU.02.14870','AU','AU.02','Lithgow','Lithgow',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1786,'AU.02.14900','AU','AU.02','Liverpool','Liverpool',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1787,'AU.02.14920','AU','AU.02','Liverpool Plains','Liverpool Plains',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1788,'AU.02.14950','AU','AU.02','Lockhart','Lockhart',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1789,'AU.02.15200','AU','AU.02','Marrickville','Marrickville',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1790,'AU.02.15270','AU','AU.02','Mid-Western Regional','Mid-Western Regional',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1791,'AU.02.15300','AU','AU.02','Moree Plains','Moree Plains',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1792,'AU.02.15350','AU','AU.02','Mosman','Mosman',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1793,'AU.02.15650','AU','AU.02','Muswellbrook','Muswellbrook',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1794,'AU.02.15750','AU','AU.02','Narrabri','Narrabri',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1795,'AU.02.15800','AU','AU.02','Narrandera','Narrandera',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1796,'AU.02.15850','AU','AU.02','Narromine','Narromine',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1797,'AU.02.15900','AU','AU.02','Newcastle','Newcastle',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1798,'AU.02.15950','AU','AU.02','North Sydney','North Sydney',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1799,'AU.02.16100','AU','AU.02','Oberon','Oberon',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1800,'AU.02.16180','AU','AU.02','Palerang','Palerang',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1801,'AU.02.16200','AU','AU.02','Parkes','Parkes',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1802,'AU.02.16250','AU','AU.02','Parramatta','Parramatta',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1803,'AU.02.16370','AU','AU.02','Pittwater','Pittwater',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1804,'AU.02.16380','AU','AU.02','Port Macquarie-Hastings','Port Macquarie-Hastings',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1805,'AU.02.16470','AU','AU.02','Queanbeyan','Queanbeyan',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1806,'AU.02.16610','AU','AU.02','Richmond Valley','Richmond Valley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1807,'AU.02.16650','AU','AU.02','Rockdale','Rockdale',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1808,'AU.02.16700','AU','AU.02','Ryde','Ryde',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1809,'AU.02.16900','AU','AU.02','Shellharbour','Shellharbour',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1810,'AU.02.17000','AU','AU.02','Singleton','Singleton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1811,'AU.02.17050','AU','AU.02','Snowy River','Snowy River',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1812,'AU.02.17100','AU','AU.02','Strathfield','Strathfield',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1813,'AU.02.17150','AU','AU.02','Sutherland Shire','Sutherland Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1814,'AU.02.17640','AU','AU.02','Upper Lachlan Shire','Upper Lachlan Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1815,'AU.02.17650','AU','AU.02','Uralla','Uralla',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1816,'AU.02.17700','AU','AU.02','Urana','Urana',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1817,'AU.02.17750','AU','AU.02','Wagga Wagga','Wagga Wagga',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1818,'AU.02.17800','AU','AU.02','Wakool','Wakool',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1819,'AU.02.17850','AU','AU.02','Walcha','Walcha',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1820,'AU.02.17900','AU','AU.02','Walgett','Walgett',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1821,'AU.02.18000','AU','AU.02','Warringah','Warringah',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1822,'AU.02.18020','AU','AU.02','Warrumbungle Shire','Warrumbungle Shire',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1823,'AU.02.18050','AU','AU.02','Waverley','Waverley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1824,'AU.02.18100','AU','AU.02','Weddin','Weddin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1825,'AU.02.18150','AU','AU.02','Wellington','Wellington',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1826,'AU.02.18200','AU','AU.02','Wentworth','Wentworth',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1827,'AU.02.18250','AU','AU.02','Willoughby','Willoughby',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1828,'AU.02.18350','AU','AU.02','Wingecarribee','Wingecarribee',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1829,'AU.02.18400','AU','AU.02','Wollondilly','Wollondilly',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1830,'AU.02.18450','AU','AU.02','Wollongong','Wollongong',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1831,'AU.02.18500','AU','AU.02','Woollahra','Woollahra',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1832,'AU.02.18710','AU','AU.02','Yass Valley','Yass Valley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1833,'AU.02.18750','AU','AU.02','Young','Young',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1834,'AU.07.23350','AU','AU.07','Indigo','Indigo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1835,'AU.07.23430','AU','AU.07','Kingston','Kingston',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1836,'AU.07.23670','AU','AU.07','Knox','Knox',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1837,'AU.07.23810','AU','AU.07','Latrobe','Latrobe',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1838,'AU.07.23940','AU','AU.07','Loddon','Loddon',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1839,'AU.07.24130','AU','AU.07','Macedon Ranges','Macedon Ranges',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1840,'AU.07.24210','AU','AU.07','Manningham','Manningham',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1841,'AU.07.24250','AU','AU.07','Mansfield','Mansfield',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1842,'AU.07.24330','AU','AU.07','Maribyrnong','Maribyrnong',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1843,'AU.07.24410','AU','AU.07','Maroondah','Maroondah',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1844,'AU.07.24600','AU','AU.07','Melbourne','Melbourne',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1845,'AU.07.24650','AU','AU.07','Melton','Melton',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1846,'AU.07.24850','AU','AU.07','Mitchell','Mitchell',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1847,'AU.07.24900','AU','AU.07','Moira','Moira',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1848,'AU.07.24970','AU','AU.07','Monash','Monash',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1849,'AU.07.25060','AU','AU.07','Moonee Valley','Moonee Valley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1850,'AU.07.25150','AU','AU.07','Moorabool','Moorabool',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1851,'AU.07.25250','AU','AU.07','Moreland','Moreland',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1852,'AU.07.25340','AU','AU.07','Mornington Peninsula','Mornington Peninsula',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1853,'AU.07.25430','AU','AU.07','Mount Alexander','Mount Alexander',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1854,'AU.07.25490','AU','AU.07','Moyne','Moyne',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1855,'AU.07.25620','AU','AU.07','Murrindindi','Murrindindi',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1856,'AU.07.25710','AU','AU.07','Nillumbik','Nillumbik',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1857,'AU.07.25810','AU','AU.07','Northern Grampians','Northern Grampians',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1858,'AU.07.25900','AU','AU.07','Port Phillip','Port Phillip',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1859,'AU.07.25990','AU','AU.07','Pyrenees','Pyrenees',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1860,'AU.07.26080','AU','AU.07','Queenscliffe','Queenscliffe',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1861,'AU.07.26170','AU','AU.07','South Gippsland','South Gippsland',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1862,'AU.07.26260','AU','AU.07','Southern Grampians','Southern Grampians',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1863,'AU.07.26350','AU','AU.07','Stonnington','Stonnington',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1864,'AU.07.26430','AU','AU.07','Strathbogie','Strathbogie',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1865,'AU.07.26490','AU','AU.07','Surf Coast','Surf Coast',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1866,'AU.07.26610','AU','AU.07','Swan Hill','Swan Hill',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1867,'AU.07.26670','AU','AU.07','Towong','Towong',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1868,'AU.07.26700','AU','AU.07','Wangaratta','Wangaratta',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1869,'AU.07.26730','AU','AU.07','Warrnambool','Warrnambool',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1870,'AU.07.26810','AU','AU.07','Wellington','Wellington',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1871,'AU.07.26890','AU','AU.07','West Wimmera','West Wimmera',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1872,'AU.07.26980','AU','AU.07','Whitehorse','Whitehorse',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1873,'AU.07.27070','AU','AU.07','Whittlesea','Whittlesea',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1874,'AU.07.27170','AU','AU.07','Wodonga','Wodonga',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1875,'AU.07.27260','AU','AU.07','Wyndham','Wyndham',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1876,'AU.07.27450','AU','AU.07','Yarra Ranges','Yarra Ranges',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1877,'AU.07.27630','AU','AU.07','Yarriambiack','Yarriambiack',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1878,'AU.08.58330','AU','AU.08','Toodyay','Toodyay',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1879,'AU.08.58400','AU','AU.08','Trayning','Trayning',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1880,'AU.08.58470','AU','AU.08','Upper Gascoyne','Upper Gascoyne',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1881,'AU.08.58510','AU','AU.08','Victoria Park','Victoria Park',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1882,'AU.08.58540','AU','AU.08','Victoria Plains','Victoria Plains',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1883,'AU.08.58570','AU','AU.08','Vincent','Vincent',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1884,'AU.08.58610','AU','AU.08','Wagin','Wagin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1885,'AU.08.58680','AU','AU.08','Wandering','Wandering',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1886,'AU.08.58760','AU','AU.08','Wanneroo','Wanneroo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1887,'AU.08.58820','AU','AU.08','Waroona','Waroona',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1888,'AU.08.58890','AU','AU.08','West Arthur','West Arthur',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1889,'AU.08.59030','AU','AU.08','Westonia','Westonia',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1890,'AU.08.59100','AU','AU.08','Wickepin','Wickepin',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1891,'AU.08.59170','AU','AU.08','Williams','Williams',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1892,'AU.08.59250','AU','AU.08','Wiluna','Wiluna',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1893,'AU.08.59310','AU','AU.08','Wongan-Ballidu','Wongan-Ballidu',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1894,'AU.08.59380','AU','AU.08','Woodanilling','Woodanilling',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1895,'AU.08.59450','AU','AU.08','Wyalkatchem','Wyalkatchem',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1896,'AU.08.59520','AU','AU.08','Wyndham-East Kimberley','Wyndham-East Kimberley',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1897,'AU.08.59590','AU','AU.08','Yalgoo','Yalgoo',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1898,'AU.08.59660','AU','AU.08','Yilgarn','Yilgarn',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1899,'AU.08.59730','AU','AU.08','York','York',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1900,'AU.06.64810','AU','AU.06','Sorell','Sorell',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1901,'AU.06.65010','AU','AU.06','Southern Midlands','Southern Midlands',1);
INSERT INTO `<<prefix>>subadmin2` VALUES (1902,'AU.06.65210','AU','AU.06','Tasman Peninsula','Tasman Peninsula',1);
/*!40000 ALTER TABLE `<<prefix>>subadmin2` ENABLE KEYS */;
--
-- Dumping data for table `<<prefix>>cities`
--
/*!40000 ALTER TABLE `<<prefix>>cities` DISABLE KEYS */;
INSERT INTO `<<prefix>>cities` VALUES (2058430,'AU','Whyalla','Whyalla',-33.0327,137.565,'P','PPLA2','AU.05','AU.05.48540',19645,'Australia/Adelaide',1,'2013-08-22 23:00:00','2013-08-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2058682,'AU','Wembley','Wembley',-31.9333,115.8,'P','PPLX','AU.08','AU.08.51310',9614,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2059124,'AU','Wanneroo','Wanneroo',-31.75,115.8,'P','PPLX','AU.08','AU.08.58760',10931,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2059470,'AU','Victor Harbor','Victor Harbor',-35.5504,138.622,'P','PPL','AU.05','AU.05.48050',7760,'Australia/Adelaide',1,'2014-06-15 23:00:00','2014-06-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2060771,'AU','Swan View','Swan View',-31.8833,116.05,'P','PPLX','AU.08','AU.08.56090',7896,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2060886,'AU','Subiaco','Subiaco',-31.9485,115.827,'P','PPLX','AU.08','AU.08.56580',7627,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2061224,'AU','Spearwood','Spearwood',-32.1053,115.778,'P','PPLX','AU.08','AU.08.51820',8941,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2061261,'AU','South Perth','South Perth',-31.9833,115.867,'P','PPLX','AU.08','AU.08.57840',11301,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2061758,'AU','Seaton','Seaton',-34.9,138.517,'P','PPLX','AU.05','AU.05.41060',9704,'Australia/Adelaide',1,'2015-02-02 23:00:00','2015-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2061840,'AU','Scarborough','Scarborough',-31.8958,115.764,'P','PPLX','AU.08','AU.08.57910',12593,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2062013,'AU','Salisbury','Salisbury',-34.7667,138.633,'P','PPL','AU.05','AU.05.47140',6648,'Australia/Adelaide',1,'2012-02-01 23:00:00','2012-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2062057,'AU','Safety Bay','Safety Bay',-32.3046,115.742,'P','PPLX','AU.08','AU.08.57490',7303,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2062338,'AU','Rockingham','Rockingham',-32.2768,115.73,'P','PPLA2','AU.08','AU.08.57490',108022,'Australia/Perth',1,'2017-04-19 23:00:00','2017-04-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2062944,'AU','Prospect','Prospect',-34.8824,138.593,'P','PPL','AU.05','AU.05.46510',20217,'Australia/Adelaide',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2063030,'AU','Port Pirie','Port Pirie',-33.1918,138.017,'P','PPL','AU.05','AU.05.46450',13206,'Australia/Adelaide',1,'2013-08-02 23:00:00','2013-08-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2063036,'AU','Port Lincoln','Port Lincoln',-34.7262,135.874,'P','PPL','AU.05','AU.05.46300',13044,'Australia/Adelaide',1,'2017-05-09 23:00:00','2017-05-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2063042,'AU','Port Hedland','Port Hedland',-20.3121,118.611,'P','PPL','AU.08','AU.08.57280',15044,'Australia/Perth',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2063055,'AU','Port Augusta West','Port Augusta West',-32.4861,137.758,'P','PPL','AU.05','AU.05.46090',12133,'Australia/Adelaide',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2063056,'AU','Port Augusta','Port Augusta',-32.496,137.773,'P','PPL','AU.05','AU.05.46090',13257,'Australia/Adelaide',1,'2013-08-23 23:00:00','2013-08-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2063523,'AU','Perth','Perth',-31.9522,115.861,'P','PPLA','AU.08','AU.08.57080',1896548,'Australia/Perth',1,'2015-06-28 23:00:00','2015-06-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2064340,'AU','Nuriootpa','Nuriootpa',-34.4683,138.998,'P','PPL','AU.05','AU.05.40310',5031,'Australia/Adelaide',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2064550,'AU','Northam','Northam',-31.6493,116.674,'P','PPL','AU.08','AU.08.56730',5855,'Australia/Perth',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2064768,'AU','Newman','Newman',-23.3564,119.736,'P','PPL','AU.08','AU.08.53220',5138,'Australia/Perth',1,'2012-08-03 23:00:00','2012-08-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2064874,'AU','Nedlands','Nedlands',-31.9818,115.807,'P','PPLX','AU.08','AU.08.56580',10020,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2065176,'AU','Murray Bridge','Murray Bridge',-35.1199,139.273,'P','PPL','AU.05','AU.05.45040',19577,'Australia/Adelaide',1,'2013-08-02 23:00:00','2013-08-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2065594,'AU','Mount Isa','Mount Isa',-20.7252,139.497,'P','PPL','AU.04','AU.04.35300',22785,'Australia/Brisbane',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2065665,'AU','Mount Barker','Mount Barker',-35.0667,138.867,'P','PPL','AU.05','AU.05.44550',8357,'Australia/Adelaide',1,'2012-01-17 23:00:00','2012-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2065710,'AU','Mosman Park','Mosman Park',-32.0054,115.764,'P','PPL','AU.08','AU.08.55740',8251,'Australia/Perth',1,'2016-03-12 23:00:00','2016-03-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2065740,'AU','Morphett Vale','Morphett Vale',-35.1333,138.517,'P','PPLX','AU.05','AU.05.45340',22602,'Australia/Adelaide',1,'2015-02-03 23:00:00','2015-02-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2066041,'AU','Modbury','Modbury',-34.8333,138.683,'P','PPLX','AU.05','AU.05.47700',5570,'Australia/Adelaide',1,'2015-02-04 23:00:00','2015-02-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2066653,'AU','McMinns Lagoon','McMinns Lagoon',-12.554,131.112,'P','PPLX','AU.03','AU.03.72300',5025,'Australia/Darwin',1,'2015-02-01 23:00:00','2015-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2066756,'AU','Maylands','Maylands',-31.931,115.895,'P','PPL','AU.08','AU.08.50420',10447,'Australia/Perth',1,'2015-06-28 23:00:00','2015-06-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2066981,'AU','Margaret River','Margaret River',-33.955,115.076,'P','PPL','AU.08','AU.08.50280',5584,'Australia/Perth',1,'2017-01-07 23:00:00','2017-01-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2067119,'AU','Mandurah','Mandurah',-32.5269,115.722,'P','PPL','AU.08','AU.08.55110',83294,'Australia/Perth',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2067260,'AU','Maddington','Maddington',-32.05,115.983,'P','PPLX','AU.08','AU.08.53780',9137,'Australia/Perth',1,'2015-02-08 23:00:00','2015-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2068079,'AU','Kwinana','Kwinana',-32.2301,115.781,'P','PPL','AU.08','AU.08.54830',30433,'Australia/Perth',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2068110,'AU','Kununurra','Kununurra',-15.7782,128.742,'P','PPL','AU.08','AU.08.59520',5679,'Australia/Perth',1,'2016-12-03 23:00:00','2016-12-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2068569,'AU','Kenwick','Kenwick',-32.0333,115.967,'P','PPLX','AU.08','AU.08.53780',5150,'Australia/Perth',1,'2015-02-08 23:00:00','2015-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2068594,'AU','Kelmscott','Kelmscott',-32.1243,116.026,'P','PPLX','AU.08','AU.08.50210',9419,'Australia/Perth',1,'2015-02-08 23:00:00','2015-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2068655,'AU','Katherine','Katherine',-14.4652,132.263,'P','PPL','AU.03','AU.03.72200',5849,'Australia/Darwin',1,'2018-01-13 23:00:00','2018-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2068823,'AU','Kalgoorlie','Kalgoorlie',-30.7461,121.474,'P','PPL','AU.08','AU.08.54280',31107,'Australia/Perth',1,'2014-04-25 23:00:00','2014-04-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2069375,'AU','Ingle Farm','Ingle Farm',-34.8333,138.633,'P','PPLX','AU.05','AU.05.47140',8474,'Australia/Adelaide',1,'2015-02-04 23:00:00','2015-02-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2069646,'AU','Hope Valley','Hope Valley',-34.8333,138.7,'P','PPLX','AU.05','AU.05.47700',8223,'Australia/Adelaide',1,'2015-02-04 23:00:00','2015-02-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2070106,'AU','Happy Valley','Happy Valley',-35.0833,138.533,'P','PPL','AU.05','AU.05.44060',11531,'Australia/Adelaide',1,'2012-01-17 23:00:00','2012-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2070515,'AU','Grange','Grange',-34.9022,138.49,'P','PPL','AU.05','AU.05.41060',5238,'Australia/Adelaide',1,'2015-06-04 23:00:00','2015-06-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2070571,'AU','Gosnells','Gosnells',-32.081,116.005,'P','PPLX','AU.08','AU.08.53780',17277,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2070711,'AU','Golden Grove','Golden Grove',-34.7833,138.733,'P','PPLX','AU.05','AU.05.47700',8976,'Australia/Adelaide',1,'2015-02-04 23:00:00','2015-02-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2070998,'AU','Geraldton','Geraldton',-28.779,114.615,'P','PPL','AU.08','AU.08.53520',26872,'Australia/Perth',1,'2014-06-15 23:00:00','2014-06-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2071059,'AU','Gawler','Gawler',-34.6025,138.749,'P','PPL','AU.05','AU.05.42030',20006,'Australia/Adelaide',1,'2013-08-02 23:00:00','2013-08-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2071223,'AU','Fremantle','Fremantle',-32.0563,115.746,'P','PPLX','AU.08','AU.08.53430',24835,'Australia/Perth',1,'2017-07-28 23:00:00','2017-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2071601,'AU','Findon','Findon',-34.9,138.533,'P','PPLX','AU.05','AU.05.41060',5451,'Australia/Adelaide',1,'2015-02-02 23:00:00','2015-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2071860,'AU','Esperance','Esperance',-33.8592,121.892,'P','PPL','AU.08','AU.08.53290',7888,'Australia/Perth',1,'2016-02-29 23:00:00','2016-02-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2073124,'AU','Darwin','Darwin',-12.4611,130.842,'P','PPLA','AU.03','AU.03.71000',129062,'Australia/Darwin',1,'2017-04-19 23:00:00','2017-04-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2073603,'AU','Cottesloe','Cottesloe',-32,115.767,'P','PPL','AU.08','AU.08.56930',7065,'Australia/Perth',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2074113,'AU','Collie','Collie',-33.3621,116.156,'P','PPL','AU.08','AU.08.51890',6336,'Australia/Perth',1,'2017-08-02 23:00:00','2017-08-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2074865,'AU','Carnarvon','Carnarvon',-24.8826,113.657,'P','PPL','AU.08','AU.08.51540',7392,'Australia/Perth',1,'2016-02-29 23:00:00','2016-02-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2075056,'AU','Campbelltown','Campbelltown',-34.8833,138.667,'P','PPL','AU.05','AU.05.40910',7005,'Australia/Adelaide',1,'2012-01-17 23:00:00','2012-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2075265,'AU','Busselton','Busselton',-33.6525,115.345,'P','PPL','AU.08','AU.08.51260',21898,'Australia/Perth',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2075432,'AU','Bunbury','Bunbury',-33.3271,115.641,'P','PPL','AU.08','AU.08.51190',68248,'Australia/Perth',1,'2017-04-19 23:00:00','2017-04-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2075720,'AU','Broome','Broome',-17.9554,122.239,'P','PPL','AU.08','AU.08.50980',12766,'Australia/Perth',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2075988,'AU','Boulder','Boulder',-30.782,121.491,'P','PPLX','AU.08','AU.08.54280',5178,'Australia/Perth',1,'2017-04-20 23:00:00','2017-04-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2076752,'AU','Bentley','Bentley',-32,115.917,'P','PPL','AU.08','AU.08.51330',8323,'Australia/Perth',1,'2015-03-07 23:00:00','2015-03-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2077030,'AU','Bassendean','Bassendean',-31.9091,115.944,'P','PPLX','AU.08','AU.08.50350',8776,'Australia/Perth',1,'2015-02-06 23:00:00','2015-02-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2077454,'AU','Australind','Australind',-33.2792,115.715,'P','PPLX','AU.08','AU.08.53990',8716,'Australia/Perth',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2077579,'AU','Armadale','Armadale',-32.1461,116.009,'P','PPLX','AU.08','AU.08.50210',62296,'Australia/Perth',1,'2015-08-13 23:00:00','2015-08-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2077641,'AU','Applecross','Applecross',-32.0167,115.833,'P','PPLX','AU.08','AU.08.55320',6336,'Australia/Perth',1,'2015-02-06 23:00:00','2015-02-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2077895,'AU','Alice Springs','Alice Springs',-23.6975,133.884,'P','PPL','AU.03','AU.03.70200',25186,'Australia/Darwin',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2077935,'AU','Aldinga','Aldinga',-35.2833,138.483,'P','PPLX','AU.05','AU.05.45340',5984,'Australia/Adelaide',1,'2015-02-02 23:00:00','2015-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2077963,'AU','Albany','Albany',-35.0269,117.884,'P','PPL','AU.08','AU.08.50080',33650,'Australia/Perth',1,'2017-07-28 23:00:00','2017-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2078025,'AU','Adelaide','Adelaide',-34.9287,138.599,'P','PPLA','AU.05','AU.05.40070',1225235,'Australia/Adelaide',1,'2014-07-15 23:00:00','2014-07-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2078313,'AU','Eaton','Eaton',-33.3166,115.705,'P','PPLX','AU.08','AU.08.52660',7481,'Australia/Perth',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2078766,'AU','Quinns Rocks','Quinns Rocks',-31.6738,115.704,'P','PPL','AU.08','AU.08.58760',7991,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2078894,'AU','East Fremantle','East Fremantle',-32.0382,115.768,'P','PPL','AU.08','AU.08.53150',6698,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2078904,'AU','Claremont','Claremont',-31.9796,115.782,'P','PPL','AU.08','AU.08.51750',7152,'Australia/Perth',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2078907,'AU','Bicton','Bicton',-32.0278,115.783,'P','PPLX','AU.08','AU.08.55320',6017,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2078908,'AU','Attadale','Attadale',-32.0249,115.802,'P','PPLX','AU.08','AU.08.55320',5719,'Australia/Perth',1,'2015-02-06 23:00:00','2015-02-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2079183,'AU','Warnbro','Warnbro',-32.3402,115.747,'P','PPLX','AU.08','AU.08.57490',11421,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2079189,'AU','Mullaloo','Mullaloo',-31.779,115.737,'P','PPLL','AU.08','AU.08.54170',5869,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2142245,'AU','Young','Young',-34.3135,148.301,'P','PPL','AU.02','AU.02.18750',7501,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2142316,'AU','Yeppoon','Yeppoon',-23.1268,150.744,'P','PPL','AU.04','AU.04.36360',13285,'Australia/Brisbane',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2142412,'AU','Yass','Yass',-34.8404,148.91,'P','PPL','AU.02','AU.02.18710',5591,'Australia/Sydney',1,'2015-02-03 23:00:00','2015-02-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2142447,'AU','Yarrawonga','Yarrawonga',-36.0192,146,'P','PPL','AU.07','AU.07.24900',5604,'Australia/Sydney',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2142457,'AU','Yarraville','Yarraville',-37.8167,144.9,'P','PPLX','AU.07','AU.07.24330',13747,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2142747,'AU','Wynyard','Wynyard',-40.9897,145.726,'P','PPL','AU.06','AU.06.65410',5706,'Australia/Hobart',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2142750,'AU','Wynnum','Wynnum',-27.4453,153.158,'P','PPLX','AU.04','AU.04.31000',11719,'Australia/Brisbane',1,'2015-01-09 23:00:00','2015-01-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2143069,'AU','Woodridge','Woodridge',-27.6333,153.1,'P','PPL','AU.04','AU.04.34590',20650,'Australia/Brisbane',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2143285,'AU','Wodonga','Wodonga',-36.1218,146.888,'P','PPL','AU.07','AU.07.27170',31605,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2143407,'AU','Windsor','Windsor',-37.8534,144.992,'P','PPLX','AU.07','AU.07.26350',7069,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2143561,'AU','Williamstown','Williamstown',-37.8635,144.899,'P','PPLX','AU.07','AU.07.23110',13203,'Australia/Melbourne',1,'2017-07-28 23:00:00','2017-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2143887,'AU','Wheelers Hill','Wheelers Hill',-37.9,145.183,'P','PPLX','AU.07','AU.07.24970',19753,'Australia/Melbourne',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2143973,'AU','Westmead','Westmead',-33.8038,150.988,'P','PPLX','AU.02','AU.02.16250',16309,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2144095,'AU','Werribee','Werribee',-37.9,144.667,'P','PPLX','AU.07','AU.07.27260',37737,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2144157,'AU','Wellington Point','Wellington Point',-27.4833,153.25,'P','PPLX','AU.04','AU.04.36250',10713,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2144168,'AU','Wellington','Wellington',-32.5559,148.945,'P','PPL','AU.02','AU.02.18150',5428,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2144397,'AU','Watsonia','Watsonia',-37.7167,145.083,'P','PPLX','AU.07','AU.07.20660',5146,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2144502,'AU','Warwick','Warwick',-28.219,152.034,'P','PPL','AU.04','AU.04.36660',12562,'Australia/Brisbane',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2144528,'AU','Warrnambool','Warrnambool',-38.3818,142.488,'P','PPL','AU.07','AU.07.26730',33982,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2144583,'AU','Warrandyte','Warrandyte',-37.75,145.233,'P','PPLX','AU.07','AU.07.24210',5520,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2144604,'AU','Warragul','Warragul',-38.1591,145.931,'P','PPL','AU.07','AU.07.20830',9127,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2144728,'AU','Wantirna South','Wantirna South',-37.8833,145.217,'P','PPLX','AU.07','AU.07.23670',17477,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2144729,'AU','Wantirna','Wantirna',-37.85,145.217,'P','PPLX','AU.07','AU.07.23670',13978,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2144764,'AU','Wangaratta','Wangaratta',-36.3585,146.321,'P','PPL','AU.07','AU.07.26700',16845,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145092,'AU','Wahroonga','Wahroonga',-33.7182,151.116,'P','PPLX','AU.02','AU.02.17200',17371,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145110,'AU','Wagga Wagga','Wagga Wagga',-35.1258,147.354,'P','PPLX','AU.02','AU.02.17750',46913,'Australia/Sydney',1,'2015-02-19 23:00:00','2015-02-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145214,'AU','Victoria Point','Victoria Point',-27.5833,153.312,'P','PPLX','AU.04','AU.04.36250',13755,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145267,'AU','Vermont','Vermont',-37.8362,145.194,'P','PPLX','AU.07','AU.07.26980',9902,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145392,'AU','Urangan','Urangan',-25.2921,152.905,'P','PPLX','AU.04','AU.04.33220',8007,'Australia/Brisbane',1,'2015-02-22 23:00:00','2015-02-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145409,'AU','Upwey','Upwey',-37.9,145.333,'P','PPLX','AU.07','AU.07.27450',6760,'Australia/Melbourne',1,'2015-01-21 23:00:00','2015-01-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145461,'AU','Upper Coomera','Upper Coomera',-27.9,153.3,'P','PPLX','AU.04','AU.04.33430',6029,'Australia/Brisbane',1,'2015-02-12 23:00:00','2015-02-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145532,'AU','Ulverstone','Ulverstone',-41.1603,146.182,'P','PPL','AU.06','AU.06.60810',9604,'Australia/Hobart',1,'2014-06-15 23:00:00','2014-06-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145554,'AU','Ulladulla','Ulladulla',-35.3591,150.472,'P','PPL','AU.02','AU.02.16950',9250,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145875,'AU','Tumut','Tumut',-35.3064,148.218,'P','PPL','AU.02','AU.02.17500',6526,'Australia/Sydney',1,'2017-08-01 23:00:00','2017-08-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145921,'AU','Tullamarine','Tullamarine',-37.7013,144.881,'P','PPLX','AU.07','AU.07.23270',6271,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2145990,'AU','Truganina','Truganina',-37.8167,144.75,'P','PPLX','AU.07','AU.07.27260',9138,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2146108,'AU','Traralgon','Traralgon',-38.1953,146.542,'P','PPL','AU.07','AU.07.23810',21960,'Australia/Melbourne',1,'2017-07-08 23:00:00','2017-07-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2146142,'AU','Townsville','Townsville',-19.2664,146.806,'P','PPL','AU.04','AU.04.37010',196219,'Australia/Brisbane',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2146219,'AU','Torquay','Torquay',-25.285,152.879,'P','PPLX','AU.04','AU.04.33220',5693,'Australia/Brisbane',1,'2015-02-22 23:00:00','2015-02-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2146268,'AU','Toowoomba','Toowoomba',-27.5606,151.954,'P','PPL','AU.04','AU.04.36910',131258,'Australia/Brisbane',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2146291,'AU','Toorak','Toorak',-37.8416,145.014,'P','PPLX','AU.07','AU.07.26350',12871,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2146305,'AU','Toongabbie','Toongabbie',-33.7833,150.95,'P','PPLX','AU.02','AU.02.16250',13003,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2146793,'AU','Thornbury','Thornbury',-37.75,145,'P','PPLX','AU.07','AU.07.21890',17434,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2146827,'AU','Thomastown','Thomastown',-37.6833,145.017,'P','PPLX','AU.07','AU.07.27070',20331,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2146997,'AU','Tewantin','Tewantin',-26.391,153.034,'P','PPLX','AU.04','AU.04.36710',10660,'Australia/Brisbane',1,'2015-02-23 23:00:00','2015-02-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147139,'AU','Templestowe Lower','Templestowe Lower',-37.7667,145.117,'P','PPLX','AU.07','AU.07.24210',13152,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147336,'AU','Tarragindi','Tarragindi',-27.5333,153.033,'P','PPLX','AU.04','AU.04.31000',9439,'Australia/Brisbane',1,'2015-01-09 23:00:00','2015-01-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147357,'AU','Tarneit','Tarneit',-37.8667,144.667,'P','PPLX','AU.07','AU.07.27260',21690,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147381,'AU','Taree','Taree',-31.911,152.454,'P','PPL','AU.02','AU.02.13350',16621,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147497,'AU','Tamworth','Tamworth',-31.0905,150.929,'P','PPL','AU.02','AU.02.17310',47597,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147714,'AU','Sydney','Sydney',-33.8679,151.207,'P','PPLA','AU.02','AU.02.17200',4627345,'Australia/Sydney',1,'2016-07-07 23:00:00','2016-07-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147717,'AU','Sydenham','Sydenham',-37.7,144.767,'P','PPLX','AU.07','AU.07.21180',10323,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147756,'AU','Swan Hill','Swan Hill',-35.3378,143.554,'P','PPL','AU.07','AU.07.26610',9276,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147826,'AU','Surrey Hills','Surrey Hills',-37.8167,145.1,'P','PPLX','AU.07','AU.07.21110',13133,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147849,'AU','Surfers Paradise','Surfers Paradise',-28.0027,153.43,'P','PPLX','AU.04','AU.04.33430',18501,'Australia/Brisbane',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147892,'AU','Sunnybank','Sunnybank',-27.5833,153.05,'P','PPLX','AU.04','AU.04.31000',16442,'Australia/Brisbane',1,'2015-01-09 23:00:00','2015-01-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2147914,'AU','Sunbury','Sunbury',-37.5774,144.726,'P','PPLX','AU.07','AU.07.23270',29925,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2148070,'AU','Strathpine','Strathpine',-27.3041,152.99,'P','PPLX','AU.04','AU.04.35010',9532,'Australia/Brisbane',1,'2015-01-14 23:00:00','2015-01-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2148088,'AU','Strathfield','Strathfield',-33.881,151.08,'P','PPL','AU.02','AU.02.17100',25813,'Australia/Sydney',1,'2017-12-13 23:00:00','2017-12-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2148398,'AU','Port Stephens','Port Stephens',-32.7131,152.066,'P','PPL','AU.02','AU.02.16400',27531,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2148431,'AU','Stawell','Stawell',-37.0563,142.781,'P','PPL','AU.07','AU.07.25810',5737,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2148588,'AU','Springvale South','Springvale South',-37.9667,145.15,'P','PPLX','AU.07','AU.07.22670',12184,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2148591,'AU','Springvale','Springvale',-37.9485,145.153,'P','PPLX','AU.07','AU.07.22670',19771,'Australia/Melbourne',1,'2016-11-19 23:00:00','2016-11-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2148928,'AU','Southport','Southport',-27.9672,153.398,'P','PPLX','AU.04','AU.04.33430',28315,'Australia/Brisbane',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2148955,'AU','South Melbourne','South Melbourne',-37.8333,144.967,'P','PPLX','AU.07','AU.07.25900',8790,'Australia/Melbourne',1,'2015-01-16 23:00:00','2015-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2148997,'AU','South Grafton','South Grafton',-29.7076,152.926,'P','PPL','AU.02','AU.02.11730',16399,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2149128,'AU','Somerville','Somerville',-38.2167,145.167,'P','PPLX','AU.07','AU.07.25340',7015,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2149349,'AU','Slacks Creek','Slacks Creek',-27.65,153.15,'P','PPLX','AU.04','AU.04.34590',5965,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2149475,'AU','Singleton','Singleton',-32.5674,151.166,'P','PPL','AU.02','AU.02.17000',13665,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2149645,'AU','Shepparton','Shepparton',-36.3805,145.399,'P','PPL','AU.07','AU.07.22830',38773,'Australia/Melbourne',1,'2017-03-01 23:00:00','2017-03-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2149936,'AU','Sebastopol','Sebastopol',-37.5853,143.84,'P','PPLX','AU.07','AU.07.20570',8045,'Australia/Melbourne',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2149975,'AU','Seaford','Seaford',-38.1,145.133,'P','PPLX','AU.07','AU.07.22170',16033,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2150093,'AU','Scoresby','Scoresby',-37.9,145.233,'P','PPLX','AU.07','AU.07.23670',5892,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2150615,'AU','Sale','Sale',-38.111,147.068,'P','PPL','AU.07','AU.07.26810',13186,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2150660,'AU','Saint Kilda','Saint Kilda',-37.8676,144.981,'P','PPLX','AU.07','AU.07.25900',17795,'Australia/Melbourne',1,'2015-01-16 23:00:00','2015-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2150717,'AU','Saint Albans','Saint Albans',-37.7333,144.8,'P','PPLX','AU.07','AU.07.21180',35091,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2150765,'AU','Rye','Rye',-38.3667,144.817,'P','PPLX','AU.07',NULL,8160,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2150791,'AU','Rutherford','Rutherford',-32.7167,151.533,'P','PPLX','AU.02','AU.02.15050',10182,'Australia/Sydney',1,'2015-02-16 23:00:00','2015-02-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2150894,'AU','Rowville','Rowville',-37.9333,145.233,'P','PPLX','AU.07','AU.07.23670',34145,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151120,'AU','Rosebud','Rosebud',-38.3554,144.907,'P','PPLX','AU.07','AU.07.25340',12501,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151146,'AU','Rosanna','Rosanna',-37.75,145.067,'P','PPLX','AU.07','AU.07.20660',7697,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151187,'AU','Roma','Roma',-26.5674,148.788,'P','PPL','AU.04','AU.04.34860',5496,'Australia/Brisbane',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151437,'AU','Rockhampton','Rockhampton',-23.3803,150.506,'P','PPL','AU.04','AU.04.36360',61724,'Australia/Brisbane',1,'2017-09-16 23:00:00','2017-09-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151522,'AU','Riverstone','Riverstone',-33.6833,150.867,'P','PPLX','AU.02','AU.02.10750',6096,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151575,'AU','Ringwood East','Ringwood East',-37.8167,145.25,'P','PPLX','AU.07','AU.07.24410',9748,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151649,'AU','Richmond','Richmond',-37.8182,145.002,'P','PPLX','AU.07','AU.07.27350',26121,'Australia/Melbourne',1,'2015-01-17 23:00:00','2015-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151650,'AU','Richmond','Richmond',-33.5996,150.751,'P','PPL','AU.02','AU.02.13800',5560,'Australia/Sydney',1,'2017-08-31 23:00:00','2017-08-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151716,'AU','Reservoir','Reservoir',-37.7167,145,'P','PPLX','AU.07','AU.07.21890',47637,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151886,'AU','Redlynch','Redlynch',-16.8833,145.7,'P','PPL','AU.04','AU.04.32070',6069,'Australia/Brisbane',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151905,'AU','Red Hill','Red Hill',-20.3167,148.5,'P','PPL','AU.04','AU.04.37340',5406,'Australia/Brisbane',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2151932,'AU','Redfern','Redfern',-33.8928,151.204,'P','PPLX','AU.02','AU.02.17200',11482,'Australia/Sydney',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2152071,'AU','Rathmines','Rathmines',-33.0377,151.584,'P','PPLX','AU.02','AU.02.14650',8944,'Australia/Sydney',1,'2015-02-15 23:00:00','2015-02-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2152286,'AU','Queanbeyan','Queanbeyan',-35.3549,149.232,'P','PPL','AU.02','AU.02.16470',40661,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2152329,'AU','Quakers Hill','Quakers Hill',-33.7333,150.883,'P','PPLX','AU.02','AU.02.10750',25017,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2152361,'AU','Pymble','Pymble',-33.7439,151.142,'P','PPL','AU.02','AU.02.17200',9368,'Australia/Sydney',1,'2014-09-02 23:00:00','2014-09-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2152558,'AU','Preston','Preston',-37.75,145.017,'P','PPLX','AU.07','AU.07.21890',29925,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2152658,'AU','Port Melbourne','Port Melbourne',-37.8396,144.942,'P','PPLX','AU.07','AU.07.25900',13293,'Australia/Melbourne',1,'2015-01-16 23:00:00','2015-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2152659,'AU','Port Macquarie','Port Macquarie',-31.4308,152.909,'P','PPL','AU.02','AU.02.16380',41491,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2152667,'AU','Portland','Portland',-38.3462,141.603,'P','PPL','AU.07','AU.07.22410',8841,'Australia/Melbourne',1,'2016-10-22 23:00:00','2016-10-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2152819,'AU','Point Cook','Point Cook',-37.9148,144.751,'P','PPLX','AU.07','AU.07.27260',32413,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2153467,'AU','Penshurst','Penshurst',-33.9667,151.083,'P','PPLX','AU.02','AU.02.14150',11692,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2153471,'AU','Penrith','Penrith',-33.75,150.7,'P','PPLX','AU.02','AU.02.16350',11813,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2153483,'AU','Pennant Hills','Pennant Hills',-33.7378,151.072,'P','PPLX','AU.02','AU.02.14000',6830,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2153720,'AU','Pascoe Vale','Pascoe Vale',-37.7333,144.933,'P','PPLX','AU.07','AU.07.25250',15000,'Australia/Melbourne',1,'2015-01-08 23:00:00','2015-01-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2153770,'AU','Parkville','Parkville',-37.7833,144.95,'P','PPLX','AU.07','AU.07.24600',6193,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2153778,'AU','Parkes','Parkes',-33.1372,148.176,'P','PPL','AU.02','AU.02.16200',10026,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2153784,'AU','Parkdale','Parkdale',-37.9833,145.067,'P','PPLX','AU.07','AU.07.23430',11185,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2153925,'AU','Palm Beach','Palm Beach',-28.1169,153.466,'P','PPLX','AU.04','AU.04.33430',13494,'Australia/Brisbane',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2153951,'AU','Pakenham South','Pakenham South',-38.1333,145.517,'P','PPLX','AU.07','AU.07.21450',32911,'Australia/Melbourne',1,'2015-01-21 23:00:00','2015-01-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2154172,'AU','Ormond','Ormond',-37.9,145.033,'P','PPLX','AU.07','AU.07.22310',7711,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2154219,'AU','Orange','Orange',-33.284,149.1,'P','PPL','AU.02','AU.02.16150',39329,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2154544,'AU','Oatley','Oatley',-33.98,151.072,'P','PPL','AU.02','AU.02.14150',9531,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2154720,'AU','Nunawading','Nunawading',-37.8204,145.173,'P','PPLX','AU.07','AU.07.26980',10947,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2154787,'AU','Nowra','Nowra',-34.8842,150.6,'P','PPL','AU.02','AU.02.16950',34479,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2154826,'AU','North Wonthaggi','North Wonthaggi',-38.6,145.6,'P','PPL','AU.07','AU.07.20740',5985,'Australia/Melbourne',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2154855,'AU','North Sydney','North Sydney',-33.839,151.207,'P','PPLX','AU.02','AU.02.15950',6060,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2154912,'AU','North Melbourne','North Melbourne',-37.798,144.945,'P','PPLX','AU.07','AU.07.24600',11755,'Australia/Melbourne',1,'2017-11-04 23:00:00','2017-11-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2154913,'AU','Northmead','Northmead',-33.7833,150.983,'P','PPLX','AU.02','AU.02.16250',6968,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2154962,'AU','North Fitzroy','North Fitzroy',-37.7886,144.979,'P','PPLX','AU.07','AU.07.27350',11473,'Australia/Melbourne',1,'2015-01-16 23:00:00','2015-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155001,'AU','Northcote','Northcote',-37.7667,145,'P','PPLX','AU.07','AU.07.21890',22920,'Australia/Melbourne',1,'2015-01-17 23:00:00','2015-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155132,'AU','Noosaville','Noosaville',-26.4,153.067,'P','PPLX','AU.04','AU.04.36710',6528,'Australia/Brisbane',1,'2015-02-23 23:00:00','2015-02-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155204,'AU','Noble Park','Noble Park',-37.9667,145.167,'P','PPLX','AU.07','AU.07.22670',28377,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155386,'AU','Newtown','Newtown',-33.8983,151.178,'P','PPLX','AU.02','AU.02.15200',13552,'Australia/Sydney',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155411,'AU','Newport','Newport',-37.8443,144.885,'P','PPLX','AU.07','AU.07.23110',11987,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155412,'AU','Newport','Newport',-33.6564,151.314,'P','PPL','AU.02','AU.02.16370',9227,'Australia/Sydney',1,'2016-12-22 23:00:00','2016-12-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155415,'AU','New Norfolk','New Norfolk',-42.7826,147.059,'P','PPL','AU.06','AU.06.61510',5526,'Australia/Hobart',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155416,'AU','Newnham','Newnham',-41.3971,147.131,'P','PPLX','AU.06','AU.06.64010',5389,'Australia/Hobart',1,'2015-02-22 23:00:00','2015-02-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155472,'AU','Newcastle','Newcastle',-32.9272,151.776,'P','PPL','AU.02','AU.02.15900',308308,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155542,'AU','Nerang','Nerang',-27.9894,153.336,'P','PPLX','AU.04','AU.04.33430',16256,'Australia/Brisbane',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155562,'AU','Nelson Bay','Nelson Bay',-32.7204,152.144,'P','PPLX','AU.02','AU.02.16400',7726,'Australia/Sydney',1,'2015-02-16 23:00:00','2015-02-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155717,'AU','Narre Warren North','Narre Warren North',-37.9833,145.317,'P','PPLX','AU.07','AU.07.21610',6212,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155718,'AU','Narre Warren','Narre Warren',-38.0333,145.3,'P','PPLX','AU.07','AU.07.21610',25882,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155742,'AU','Narrabri','Narrabri',-30.3249,149.783,'P','PPL','AU.02','AU.02.15750',7082,'Australia/Sydney',1,'2016-06-18 23:00:00','2016-06-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155745,'AU','Narrabeen','Narrabeen',-33.7128,151.297,'P','PPLX','AU.02','AU.02.18000',6436,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155772,'AU','Narellan','Narellan',-34.0333,150.733,'P','PPLX','AU.02','AU.02.11450',7350,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155783,'AU','Narara','Narara',-33.4,151.35,'P','PPLX','AU.02','AU.02.13100',7792,'Australia/Sydney',1,'2015-02-14 23:00:00','2015-02-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155787,'AU','Narangba','Narangba',-27.2034,152.959,'P','PPL','AU.04','AU.04.35010',16223,'Australia/Brisbane',1,'2015-01-14 23:00:00','2015-01-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155796,'AU','Naracoorte','Naracoorte',-36.9579,140.738,'P','PPL','AU.05','AU.05.45090',5674,'Australia/Adelaide',1,'2013-08-02 23:00:00','2013-08-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155858,'AU','Nambucca Heads','Nambucca Heads',-30.6432,153.009,'P','PPL','AU.02','AU.02.15700',6137,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155859,'AU','Nambucca','Nambucca',-30.6333,152.983,'P','PPL','AU.02','AU.02.15700',6137,'Australia/Sydney',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2155862,'AU','Nambour','Nambour',-26.6261,152.959,'P','PPLX','AU.04','AU.04.36710',10221,'Australia/Brisbane',1,'2015-02-17 23:00:00','2015-02-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156034,'AU','Muswellbrook','Muswellbrook',-32.2612,150.89,'P','PPL','AU.02','AU.02.15650',11791,'Australia/Sydney',1,'2016-01-19 23:00:00','2016-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156049,'AU','Murwillumbah','Murwillumbah',-28.3273,153.393,'P','PPLX','AU.02','AU.02.17550',6868,'Australia/Sydney',1,'2015-02-22 23:00:00','2015-02-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156067,'AU','Murrumbeena','Murrumbeena',-37.9,145.067,'P','PPLX','AU.07','AU.07.22310',8592,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156340,'AU','Mulgrave','Mulgrave',-37.9167,145.2,'P','PPLX','AU.07','AU.07.24970',17647,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156404,'AU','Mudgee','Mudgee',-32.5943,149.587,'P','PPL','AU.02','AU.02.15270',8726,'Australia/Sydney',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156492,'AU','Mount Waverley','Mount Waverley',-37.8771,145.129,'P','PPLX','AU.07','AU.07.24970',33611,'Australia/Melbourne',1,'2017-12-13 23:00:00','2017-12-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156578,'AU','Mount Martha','Mount Martha',-38.2667,145.017,'P','PPLX','AU.07','AU.07.25340',17087,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156643,'AU','Mount Gambier','Mount Gambier',-37.8318,140.779,'P','PPL','AU.05','AU.05.44620',23209,'Australia/Adelaide',1,'2013-08-02 23:00:00','2013-08-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156652,'AU','Mount Evelyn','Mount Evelyn',-37.7833,145.383,'P','PPLX','AU.07','AU.07.27450',9100,'Australia/Melbourne',1,'2015-02-02 23:00:00','2015-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156663,'AU','Mount Eliza','Mount Eliza',-38.1833,145.083,'P','PPLX','AU.07','AU.07.25340',17248,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156671,'AU','Mount Druitt','Mount Druitt',-33.7667,150.817,'P','PPLX','AU.02','AU.02.10750',13582,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156694,'AU','Mount Colah','Mount Colah',-33.6833,151.117,'P','PPLX','AU.02','AU.02.14000',6974,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156777,'AU','Moss Vale','Moss Vale',-34.5537,150.371,'P','PPL','AU.02','AU.02.18350',6739,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156813,'AU','Mosman','Mosman',-33.839,151.24,'P','PPLX','AU.02','AU.02.15350',26236,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156825,'AU','Morwell','Morwell',-38.2348,146.395,'P','PPL','AU.07','AU.07.23810',13399,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156853,'AU','Mortdale','Mortdale',-33.9667,151.083,'P','PPLX','AU.02','AU.02.14150',9640,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156878,'AU','Mornington','Mornington',-38.2179,145.039,'P','PPLX','AU.07','AU.07.25340',22421,'Australia/Melbourne',1,'2016-10-23 23:00:00','2016-10-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156927,'AU','Moree','Moree',-29.4628,149.842,'P','PPL','AU.02','AU.02.15300',8203,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156933,'AU','Mordialloc','Mordialloc',-38,145.083,'P','PPLX','AU.07','AU.07.23430',7524,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2156934,'AU','Morayfield','Morayfield',-27.1088,152.949,'P','PPLX','AU.04','AU.04.35010',18020,'Australia/Brisbane',1,'2015-01-14 23:00:00','2015-01-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157026,'AU','Moorabbin','Moorabbin',-37.9367,145.034,'P','PPLX','AU.07','AU.07.20910',5283,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157056,'AU','Moonee Ponds','Moonee Ponds',-37.7667,144.917,'P','PPLX','AU.07','AU.07.25060',13532,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157090,'AU','Moonah','Moonah',-42.8462,147.302,'P','PPLX','AU.06','AU.06.62610',5084,'Australia/Hobart',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157109,'AU','Mooloolaba','Mooloolaba',-26.6816,153.119,'P','PPLX','AU.04','AU.04.36710',7376,'Australia/Brisbane',1,'2017-09-02 23:00:00','2017-09-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157161,'AU','Montrose','Montrose',-37.8167,145.35,'P','PPLX','AU.07','AU.07.27450',6465,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157167,'AU','Montmorency','Montmorency',-37.7167,145.117,'P','PPLX','AU.07','AU.07.20660',8759,'Australia/Melbourne',1,'2015-01-17 23:00:00','2015-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157343,'AU','Moe','Moe',-38.1783,146.261,'P','PPL','AU.07','AU.07.23810',15582,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157373,'AU','Mittagong','Mittagong',-34.45,150.446,'P','PPL','AU.02','AU.02.18350',6717,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157410,'AU','Mitcham','Mitcham',-37.8167,145.2,'P','PPLX','AU.07','AU.07.26980',14811,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157495,'AU','Miranda','Miranda',-34.0386,151.1,'P','PPLX','AU.02','AU.02.17150',12903,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157635,'AU','Mill Park','Mill Park',-37.6667,145.067,'P','PPLX','AU.07','AU.07.27070',30517,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157652,'AU','Millicent','Millicent',-37.5939,140.349,'P','PPL','AU.05','AU.05.48340',5551,'Australia/Adelaide',1,'2013-08-02 23:00:00','2013-08-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157698,'AU','Mildura','Mildura',-34.1855,142.163,'P','PPL','AU.07','AU.07.24780',30016,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2157995,'AU','Merrylands','Merrylands',-33.8333,150.983,'P','PPLX','AU.02','AU.02.13950',5803,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158020,'AU','Merimbula','Merimbula',-36.889,149.91,'P','PPL','AU.02','AU.02.10550',6367,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158051,'AU','Mernda','Mernda',-37.6007,145.096,'P','PPLX','AU.07','AU.07.27070',6508,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158109,'AU','Mentone','Mentone',-37.9833,145.067,'P','PPLX','AU.07','AU.07.23430',11667,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158130,'AU','Menai','Menai',-34.0167,151.017,'P','PPLX','AU.02','AU.02.17150',10781,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158145,'AU','Melton South','Melton South',-37.7077,144.575,'P','PPLX','AU.07','AU.07.24650',8916,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158151,'AU','Melton','Melton',-37.6834,144.585,'P','PPLX','AU.07','AU.07.24650',35490,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158177,'AU','Melbourne','Melbourne',-37.814,144.963,'P','PPLA','AU.07','AU.07.24600',4246375,'Australia/Melbourne',1,'2017-10-10 23:00:00','2017-10-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158220,'AU','Medowie','Medowie',-32.7415,151.868,'P','PPLX','AU.02','AU.02.16400',5841,'Australia/Sydney',1,'2015-02-16 23:00:00','2015-02-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158307,'AU','McKinnon','McKinnon',-37.9167,145.05,'P','PPLX','AU.07','AU.07.22310',5553,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158504,'AU','Matraville','Matraville',-33.95,151.233,'P','PPLX','AU.02','AU.02.16550',8788,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158538,'AU','Mascot','Mascot',-33.926,151.193,'P','PPLX','AU.02','AU.02.11100',8518,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158561,'AU','Maryborough','Maryborough',-37.0456,143.739,'P','PPL','AU.07','AU.07.21670',7046,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158562,'AU','Maryborough','Maryborough',-25.5407,152.705,'P','PPL','AU.04','AU.04.33220',21501,'Australia/Brisbane',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158626,'AU','Marrickville','Marrickville',-33.9032,151.152,'P','PPLX','AU.02','AU.02.15200',23161,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158651,'AU','Maroubra','Maroubra',-33.95,151.233,'P','PPLX','AU.02','AU.02.16550',26538,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158724,'AU','Maribyrnong','Maribyrnong',-37.7833,144.883,'P','PPLX','AU.07','AU.07.24330',10165,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158745,'AU','Margate','Margate',-27.2476,153.098,'P','PPLX','AU.04','AU.04.35010',6564,'Australia/Brisbane',1,'2015-01-14 23:00:00','2015-01-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158767,'AU','Mareeba','Mareeba',-16.991,145.423,'P','PPL','AU.04','AU.04.36810',8403,'Australia/Brisbane',1,'2016-06-10 23:00:00','2016-06-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2158867,'AU','Manly','Manly',-33.798,151.288,'P','PPLX','AU.02','AU.02.15150',13949,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2159045,'AU','Maitland','Maitland',-32.7331,151.557,'P','PPLA2','AU.02','AU.02.15050',67132,'Australia/Sydney',1,'2017-10-10 23:00:00','2017-10-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2159177,'AU','Macleod','Macleod',-37.7333,145.067,'P','PPLX','AU.07','AU.07.20660',9606,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2159220,'AU','Mackay','Mackay',-21.1535,149.166,'P','PPL','AU.04','AU.04.34770',74219,'Australia/Brisbane',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2159291,'AU','Lysterfield','Lysterfield',-37.9333,145.3,'P','PPLX','AU.07','AU.07.27450',6551,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2159654,'AU','Long Jetty','Long Jetty',-33.3579,151.481,'P','PPLX','AU.02','AU.02.18550',5114,'Australia/Sydney',1,'2015-02-14 23:00:00','2015-02-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2159851,'AU','Liverpool','Liverpool',-33.9,150.933,'P','PPLX','AU.02','AU.02.12850',21317,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160053,'AU','Lithgow','Lithgow',-33.4845,150.149,'P','PPL','AU.02','AU.02.14870',11298,'Australia/Sydney',1,'2017-10-08 23:00:00','2017-10-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160063,'AU','Lismore','Lismore',-28.8135,153.277,'P','PPL','AU.02','AU.02.14850',30086,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160070,'AU','Lisarow','Lisarow',-33.3833,151.367,'P','PPLX','AU.02','AU.02.13100',5285,'Australia/Sydney',1,'2015-02-14 23:00:00','2015-02-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160113,'AU','Lindisfarne','Lindisfarne',-42.8484,147.362,'P','PPLX','AU.06','AU.06.61410',5678,'Australia/Hobart',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160114,'AU','Lindfield','Lindfield',-33.7833,151.167,'P','PPLX','AU.02','AU.02.14500',7351,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160188,'AU','Lilydale','Lilydale',-37.75,145.35,'P','PPLX','AU.07','AU.07.27450',15649,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160258,'AU','Lidcombe','Lidcombe',-33.8644,151.04,'P','PPLX','AU.02','AU.02.10200',14161,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160299,'AU','Leumeah','Leumeah',-34.05,150.833,'P','PPLX','AU.02','AU.02.11500',8662,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160336,'AU','Leopold','Leopold',-38.19,144.468,'P','PPLX','AU.07','AU.07.22750',6120,'Australia/Melbourne',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160386,'AU','Leichhardt','Leichhardt',-33.8834,151.156,'P','PPLX','AU.02','AU.02.14800',12248,'Australia/Sydney',1,'2015-08-05 23:00:00','2015-08-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160413,'AU','Leeton','Leeton',-34.551,146.405,'P','PPL','AU.02','AU.02.14750',7299,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160493,'AU','Lavington','Lavington',-36.0398,146.94,'P','PPLX','AU.02','AU.02.10050',12032,'Australia/Sydney',1,'2016-03-09 23:00:00','2016-03-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160517,'AU','Launceston','Launceston',-41.4388,147.135,'P','PPL','AU.06','AU.06.64010',106153,'Australia/Hobart',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160560,'AU','Lara','Lara',-38.0239,144.406,'P','PPLX','AU.07','AU.07.22750',15520,'Australia/Melbourne',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160582,'AU','Langwarrin','Langwarrin',-38.1667,145.167,'P','PPLX','AU.07','AU.07.22170',21371,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160706,'AU','Lalor','Lalor',-37.6667,145.017,'P','PPLX','AU.07','AU.07.27070',19873,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160735,'AU','Lakes Entrance','Lakes Entrance',-37.8668,148.002,'P','PPL','AU.07','AU.07.22110',5849,'Australia/Melbourne',1,'2016-11-24 23:00:00','2016-11-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160744,'AU','Lakemba','Lakemba',-33.9197,151.076,'P','PPLX','AU.02','AU.02.11550',14468,'Australia/Sydney',1,'2015-01-30 23:00:00','2015-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160774,'AU','Lake Albert','Lake Albert',-35.1667,147.383,'P','PPLX','AU.02','AU.02.17750',5851,'Australia/Sydney',1,'2015-02-19 23:00:00','2015-02-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160910,'AU','Kyabram','Kyabram',-36.3134,145.05,'P','PPL','AU.07','AU.07.21370',6396,'Australia/Melbourne',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2160922,'AU','Kurri Kurri','Kurri Kurri',-32.8193,151.479,'P','PPLX','AU.02','AU.02.11720',5644,'Australia/Sydney',1,'2015-02-15 23:00:00','2015-02-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161311,'AU','Kingston','Kingston',-42.9764,147.304,'P','PPLX','AU.06','AU.06.63610',14371,'Australia/Hobart',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161335,'AU','Kingscliff','Kingscliff',-28.2598,153.578,'P','PPLX','AU.02','AU.02.17550',6017,'Australia/Sydney',1,'2015-02-22 23:00:00','2015-02-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161376,'AU','Kingaroy','Kingaroy',-26.5399,151.837,'P','PPL','AU.04','AU.04.36630',8573,'Australia/Brisbane',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161408,'AU','Kilsyth','Kilsyth',-37.8,145.317,'P','PPLX','AU.07','AU.07.27450',10043,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161515,'AU','Kiama','Kiama',-34.6683,150.852,'P','PPL','AU.02','AU.02.14400',12286,'Australia/Sydney',1,'2014-06-15 23:00:00','2014-06-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161532,'AU','Keysborough','Keysborough',-37.9912,145.174,'P','PPLX','AU.07','AU.07.22670',22700,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161540,'AU','Kew','Kew',-37.8064,145.031,'P','PPLX','AU.07','AU.07.21110',23876,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161602,'AU','Kenthurst','Kenthurst',-33.6553,151.005,'P','PPLX','AU.02','AU.02.10500',5250,'Australia/Sydney',1,'2015-01-30 23:00:00','2015-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161608,'AU','Kensington','Kensington',-33.9202,151.222,'P','PPLX','AU.02','AU.02.16550',10847,'Australia/Sydney',1,'2015-01-30 23:00:00','2015-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161609,'AU','Kensington','Kensington',-37.7833,144.933,'P','PPLX','AU.07','AU.07.25060',9719,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161613,'AU','Kennington','Kennington',-36.7833,144.3,'P','PPLX','AU.07','AU.07.22620',5830,'Australia/Melbourne',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161658,'AU','Kempsey','Kempsey',-31.079,152.831,'P','PPL','AU.02','AU.02.14350',9522,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161678,'AU','Kelso','Kelso',-33.4167,149.6,'P','PPL','AU.02','AU.02.10470',6298,'Australia/Sydney',1,'2012-01-17 23:00:00','2012-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161719,'AU','Keilor','Keilor',-37.7167,144.833,'P','PPLX','AU.07','AU.07.21180',5759,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161776,'AU','Katoomba','Katoomba',-33.7198,150.307,'P','PPLA2','AU.02','AU.02.10900',18593,'Australia/Sydney',1,'2012-02-15 23:00:00','2012-02-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2161903,'AU','Kangaroo Flat','Kangaroo Flat',-36.8,144.25,'P','PPLX','AU.07','AU.07.22620',9492,'Australia/Melbourne',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2162419,'AU','Jannali','Jannali',-34.0164,151.061,'P','PPLX','AU.02','AU.02.17150',5556,'Australia/Sydney',1,'2015-01-30 23:00:00','2015-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2162662,'AU','Inverell','Inverell',-29.774,151.112,'P','PPL','AU.02','AU.02.14200',8561,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2162683,'AU','Innisfail','Innisfail',-17.5221,146.031,'P','PPL','AU.04','AU.04.32260',8262,'Australia/Brisbane',1,'2016-11-30 23:00:00','2016-11-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2162733,'AU','Ingleburn','Ingleburn',-34,150.867,'P','PPLX','AU.02','AU.02.11500',13902,'Australia/Sydney',1,'2015-01-30 23:00:00','2015-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2162737,'AU','Ingham','Ingham',-18.6455,146.162,'P','PPL','AU.04','AU.04.33800',6127,'Australia/Brisbane',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2162970,'AU','Hughesdale','Hughesdale',-37.9,145.083,'P','PPLX','AU.07','AU.07.24970',7055,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163055,'AU','Horsham','Horsham',-36.7113,142.2,'P','PPL','AU.07','AU.07.23190',14285,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163137,'AU','Hornsby','Hornsby',-33.7024,151.099,'P','PPL','AU.02','AU.02.14000',19863,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163355,'AU','Hobart','Hobart',-42.8794,147.329,'P','PPLA','AU.06','AU.06.62810',216656,'Australia/Hobart',1,'2017-04-19 23:00:00','2017-04-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163472,'AU','Highett','Highett',-37.95,145.05,'P','PPLX','AU.07','AU.07.23430',10263,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163641,'AU','Helensburgh','Helensburgh',-34.1784,150.995,'P','PPLX','AU.02','AU.02.18450',5504,'Australia/Sydney',1,'2015-02-20 23:00:00','2015-02-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163653,'AU','Heidelberg West','Heidelberg West',-37.75,145.033,'P','PPLX','AU.07','AU.07.20660',5327,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163654,'AU','Heidelberg','Heidelberg',-37.75,145.067,'P','PPLX','AU.07','AU.07.20660',5714,'Australia/Melbourne',1,'2015-01-17 23:00:00','2015-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163684,'AU','Heathmont','Heathmont',-37.8333,145.25,'P','PPLX','AU.07','AU.07.24410',9250,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163697,'AU','Heathcote','Heathcote',-34.0841,151.013,'P','PPLX','AU.02','AU.02.17150',5851,'Australia/Sydney',1,'2015-01-29 23:00:00','2015-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163701,'AU','Healesville','Healesville',-37.6539,145.517,'P','PPL','AU.07','AU.07.27450',7098,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163776,'AU','Hawthorn South','Hawthorn South',-37.8329,145.037,'P','PPLX','AU.07','AU.07.21110',21177,'Australia/Melbourne',1,'2017-01-30 23:00:00','2017-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163782,'AU','Hawthorn','Hawthorn',-37.8199,145.036,'P','PPLX','AU.07','AU.07.21110',21177,'Australia/Melbourne',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163837,'AU','Hastings','Hastings',-38.3,145.183,'P','PPLX','AU.07','AU.07.25340',6583,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163990,'AU','Hampton Park','Hampton Park',-38.0333,145.25,'P','PPLX','AU.07','AU.07.21610',23767,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2163994,'AU','Hampton','Hampton',-37.95,145,'P','PPLX','AU.07',NULL,12482,'Australia/Melbourne',1,'2015-06-25 23:00:00','2015-06-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164025,'AU','Hamilton','Hamilton',-37.7443,142.022,'P','PPL','AU.07','AU.07.26260',10104,'Australia/Melbourne',1,'2017-07-03 23:00:00','2017-07-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164062,'AU','Hallam','Hallam',-38.0167,145.267,'P','PPLX','AU.07','AU.07.21610',10162,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164123,'AU','Haberfield','Haberfield',-33.883,151.144,'P','PPLX','AU.02','AU.02.17200',6587,'Australia/Sydney',1,'2017-09-29 23:00:00','2017-09-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164129,'AU','Gympie','Gympie',-26.1898,152.665,'P','PPL','AU.04','AU.04.33620',11027,'Australia/Brisbane',1,'2011-06-12 23:00:00','2011-06-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164206,'AU','Gunnedah','Gunnedah',-30.9806,150.258,'P','PPL','AU.02','AU.02.13550',7148,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164395,'AU','Grovedale','Grovedale',-38.2,144.35,'P','PPLX','AU.07','AU.07.22750',14308,'Australia/Melbourne',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164422,'AU','Griffith','Griffith',-34.2885,146.051,'P','PPL','AU.02','AU.02.13450',15455,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164495,'AU','Greenvale','Greenvale',-37.6333,144.867,'P','PPLX','AU.07','AU.07.23270',11969,'Australia/Melbourne',1,'2016-11-19 23:00:00','2016-11-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164515,'AU','Greensborough','Greensborough',-37.7046,145.103,'P','PPLX','AU.07','AU.07.20660',20214,'Australia/Melbourne',1,'2015-01-17 23:00:00','2015-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164691,'AU','Granville','Granville',-33.8333,151.017,'P','PPLX','AU.02','AU.02.16250',22889,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164771,'AU','Grafton','Grafton',-29.681,152.934,'P','PPL','AU.02','AU.02.11730',9955,'Australia/Sydney',1,'2016-08-25 23:00:00','2016-08-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164837,'AU','Goulburn','Goulburn',-34.7515,149.721,'P','PPL','AU.02','AU.02.13310',20940,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164855,'AU','Gorokan','Gorokan',-33.2576,151.51,'P','PPLX','AU.02','AU.02.18550',7066,'Australia/Sydney',1,'2015-02-14 23:00:00','2015-02-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164904,'AU','Gordon','Gordon',-29.3,152.717,'P','PPL','AU.02','AU.02.11730',5993,'Australia/Sydney',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164966,'AU','Goonellabah','Goonellabah',-28.8167,153.317,'P','PPL','AU.02','AU.02.14850',12137,'Australia/Sydney',1,'2012-01-17 23:00:00','2012-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2164972,'AU','Goondiwindi','Goondiwindi',-28.5471,150.305,'P','PPL','AU.04','AU.04.33610',5629,'Australia/Brisbane',1,'2014-10-11 23:00:00','2014-10-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165025,'AU','Goodna','Goodna',-27.6105,152.899,'P','PPLX','AU.04','AU.04.33960',7939,'Australia/Brisbane',1,'2015-08-03 23:00:00','2015-08-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165087,'AU','Gold Coast','Gold Coast',-28.0003,153.431,'P','PPL','AU.04','AU.04.33430',591473,'Australia/Brisbane',1,'2016-03-20 23:00:00','2016-03-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165200,'AU','Glenroy','Glenroy',-37.7,144.933,'P','PPLX','AU.07','AU.07.25250',19644,'Australia/Melbourne',1,'2015-01-24 23:00:00','2015-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165229,'AU','Glenorchy','Glenorchy',-42.8334,147.276,'P','PPLX','AU.06','AU.06.62610',10062,'Australia/Hobart',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165291,'AU','Glen Innes','Glen Innes',-29.7348,151.738,'P','PPL','AU.02','AU.02.13010',6283,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165303,'AU','Glenhaven','Glenhaven',-33.7,151,'P','PPLX','AU.02','AU.02.10500',5620,'Australia/Sydney',1,'2015-01-29 23:00:00','2015-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165326,'AU','Glenfield','Glenfield',-33.9667,150.9,'P','PPLX','AU.02','AU.02.11500',6758,'Australia/Sydney',1,'2015-01-29 23:00:00','2015-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165329,'AU','Glenferrie','Glenferrie',-37.8333,145.05,'P','PPLX','AU.07','AU.07.21110',21177,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165403,'AU','Glenbrook','Glenbrook',-33.7667,150.617,'P','PPL','AU.02','AU.02.10900',5138,'Australia/Sydney',1,'2012-01-17 23:00:00','2012-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165478,'AU','Gladstone','Gladstone',-23.8485,151.258,'P','PPL','AU.04','AU.04.33360',30489,'Australia/Brisbane',1,'2014-10-07 23:00:00','2014-10-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165796,'AU','Geelong West','Geelong West',-38.1389,144.348,'P','PPLX','AU.07','AU.07.22750',12121,'Australia/Melbourne',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165798,'AU','Geelong','Geelong',-38.1471,144.361,'P','PPL','AU.07','AU.07.22750',226034,'Australia/Melbourne',1,'2013-07-30 23:00:00','2013-07-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2165828,'AU','Gatton','Gatton',-27.5587,152.276,'P','PPL','AU.04','AU.04.34580',6513,'Australia/Brisbane',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2166143,'AU','Frankston East','Frankston East',-38.1333,145.133,'P','PPL','AU.07','AU.07.22170',34457,'Australia/Melbourne',1,'2012-01-17 23:00:00','2012-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2166144,'AU','Frankston','Frankston',-38.1446,145.123,'P','PPLX','AU.07','AU.07.22170',34457,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2166309,'AU','Forster','Forster',-32.1814,152.517,'P','PPL','AU.02','AU.02.13400',17591,'Australia/Sydney',1,'2014-06-15 23:00:00','2014-06-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2166340,'AU','Forest Hill','Forest Hill',-37.8333,145.183,'P','PPLX','AU.07','AU.07.26980',10052,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2166370,'AU','Footscray','Footscray',-37.8,144.9,'P','PPLX','AU.07','AU.07.24330',13203,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2166584,'AU','Fitzroy','Fitzroy',-37.7984,144.978,'P','PPLX','AU.07','AU.07.27350',9000,'Australia/Melbourne',1,'2012-06-07 23:00:00','2012-06-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2166819,'AU','Fawkner','Fawkner',-37.7167,144.967,'P','PPL','AU.07','AU.07.25250',12596,'Australia/Melbourne',1,'2015-02-05 23:00:00','2015-02-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2166952,'AU','Fairfield','Fairfield',-33.8667,150.95,'P','PPLX','AU.02','AU.02.12850',18081,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167208,'AU','Essendon','Essendon',-37.7667,144.917,'P','PPLX','AU.07','AU.07.25060',18852,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167279,'AU','Epping','Epping',-37.65,145.033,'P','PPLX','AU.07','AU.07.27070',32200,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167280,'AU','Epping','Epping',-33.7727,151.082,'P','PPL','AU.02','AU.02.16250',18969,'Australia/Sydney',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167312,'AU','Engadine','Engadine',-34.0656,151.013,'P','PPLX','AU.02','AU.02.17150',17937,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167425,'AU','Emerald','Emerald',-37.9317,145.441,'P','PPLX','AU.07','AU.07.21450',5813,'Australia/Melbourne',1,'2015-01-21 23:00:00','2015-01-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167426,'AU','Emerald','Emerald',-23.523,148.158,'P','PPL','AU.04','AU.04.32270',9398,'Australia/Brisbane',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167444,'AU','Eltham North','Eltham North',-37.7,145.15,'P','PPLX','AU.07','AU.07.25710',6841,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167445,'AU','Eltham','Eltham',-37.7333,145.15,'P','PPLX','AU.07','AU.07.25710',18162,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167651,'AU','Eight Mile Plains','Eight Mile Plains',-27.5833,153.1,'P','PPLX','AU.04','AU.04.31000',15322,'Australia/Brisbane',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167751,'AU','Edithvale','Edithvale',-38.0372,145.11,'P','PPLX','AU.07','AU.07.23430',5450,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167817,'AU','Echuca','Echuca',-36.1406,144.752,'P','PPL','AU.07','AU.07.21370',19457,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167840,'AU','Eastwood','Eastwood',-33.7918,151.081,'P','PPLX','AU.02','AU.02.16700',17865,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167869,'AU','East Maitland','East Maitland',-32.75,151.583,'P','PPLX','AU.02','AU.02.15050',11310,'Australia/Sydney',1,'2015-02-16 23:00:00','2015-02-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167943,'AU','East Ballina','East Ballina',-28.8667,153.583,'P','PPL','AU.02','AU.02.10250',5474,'Australia/Sydney',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2167949,'AU','Earlwood','Earlwood',-33.95,151.1,'P','PPL','AU.02','AU.02.14150',16564,'Australia/Sydney',1,'2012-01-17 23:00:00','2012-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2168305,'AU','Dubbo','Dubbo',-32.243,148.605,'P','PPL','AU.02','AU.02.12600',32327,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2168386,'AU','Dromana','Dromana',-38.3338,144.965,'P','PPLX','AU.07','AU.07.25340',5126,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2168537,'AU','Doreen','Doreen',-37.6,145.15,'P','PPLX','AU.07','AU.07.25710',12000,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2168556,'AU','Doonside','Doonside',-33.7667,150.867,'P','PPLX','AU.02','AU.02.10750',13031,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2168579,'AU','Donvale','Donvale',-37.7891,145.175,'P','PPLX','AU.07','AU.07.24210',11795,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2168605,'AU','Doncaster East','Doncaster East',-37.7876,145.149,'P','PPLX','AU.07','AU.07.24210',27047,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2168607,'AU','Doncaster','Doncaster',-37.7883,145.124,'P','PPLX','AU.07','AU.07.24210',18359,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2168807,'AU','Dingley Village','Dingley Village',-37.9827,145.134,'P','PPLX','AU.07','AU.07.23430',10072,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2168919,'AU','Diamond Creek','Diamond Creek',-37.6667,145.15,'P','PPLX','AU.07','AU.07.25710',11504,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2168943,'AU','Devonport','Devonport',-41.1769,146.352,'P','PPL','AU.06','AU.06.61610',19317,'Australia/Hobart',1,'2017-07-08 23:00:00','2017-07-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169018,'AU','Derrimut','Derrimut',-37.7924,144.77,'P','PPLX','AU.07','AU.07.21180',5992,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169068,'AU','Deniliquin','Deniliquin',-35.5325,144.954,'P','PPL','AU.02','AU.02.12500',8024,'Australia/Sydney',1,'2016-01-06 23:00:00','2016-01-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169145,'AU','Deer Park','Deer Park',-37.7667,144.783,'P','PPLX','AU.07','AU.07.21180',16204,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169220,'AU','Deception Bay','Deception Bay',-27.1935,153.026,'P','PPLX','AU.04','AU.04.35010',16090,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169378,'AU','Darlinghurst','Darlinghurst',-33.8794,151.219,'P','PPLX','AU.02','AU.02.17200',10128,'Australia/Sydney',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169423,'AU','Dapto','Dapto',-34.5,150.783,'P','PPLX','AU.02','AU.02.18450',10478,'Australia/Sydney',1,'2015-02-20 23:00:00','2015-02-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169460,'AU','Dandenong','Dandenong',-37.9833,145.2,'P','PPLX','AU.07','AU.07.22670',24919,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169535,'AU','Dalby','Dalby',-27.1817,151.262,'P','PPL','AU.04','AU.04.37310',9847,'Australia/Brisbane',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169866,'AU','Croydon North','Croydon North',-37.7833,145.3,'P','PPLX','AU.07','AU.07.24410',7693,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169867,'AU','Croydon','Croydon',-37.8,145.283,'P','PPLX','AU.07','AU.07.24410',26946,'Australia/Melbourne',1,'2017-12-13 23:00:00','2017-12-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169868,'AU','Croydon','Croydon',-33.8833,151.117,'P','PPL','AU.02','AU.02.10150',9645,'Australia/Sydney',1,'2012-01-17 23:00:00','2012-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2169956,'AU','Cronulla','Cronulla',-34.0625,151.15,'P','PPLX','AU.02','AU.02.17150',16754,'Australia/Sydney',1,'2016-04-15 23:00:00','2016-04-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2170079,'AU','Cranbourne','Cranbourne',-38.1134,145.283,'P','PPLX','AU.07','AU.07.21610',18622,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2170089,'AU','Craigieburn','Craigieburn',-37.6,144.95,'P','PPLX','AU.07','AU.07.23270',19728,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2170139,'AU','Cowra','Cowra',-33.8355,148.697,'P','PPL','AU.02','AU.02.12350',6795,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2170253,'AU','Corrimal','Corrimal',-34.3786,150.904,'P','PPLX','AU.02','AU.02.18450',6534,'Australia/Sydney',1,'2015-02-19 23:00:00','2015-02-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2170260,'AU','Corowa','Corowa',-35.997,146.386,'P','PPL','AU.02','AU.02.12300',5178,'Australia/Sydney',1,'2016-03-09 23:00:00','2016-03-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2170435,'AU','Coorparoo','Coorparoo',-27.4932,153.058,'P','PPLX','AU.04','AU.04.31000',14944,'Australia/Brisbane',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2170577,'AU','Cooma','Cooma',-36.2352,149.124,'P','PPL','AU.02','AU.02.12050',6520,'Australia/Sydney',1,'2015-02-04 23:00:00','2015-02-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2170581,'AU','Coolum Beach','Coolum Beach',-26.5283,153.088,'P','PPLX','AU.04','AU.04.36710',8555,'Australia/Brisbane',1,'2015-02-17 23:00:00','2015-02-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2170697,'AU','Coogee','Coogee',-33.9205,151.255,'P','PPLX','AU.02','AU.02.16550',13179,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2170852,'AU','Concord','Concord',-33.8472,151.104,'P','PPLX','AU.02','AU.02.11520',13008,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171000,'AU','Collingwood','Collingwood',-37.8025,144.989,'P','PPLX','AU.07','AU.07.27350',5500,'Australia/Melbourne',1,'2017-11-04 23:00:00','2017-11-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171069,'AU','Colac','Colac',-38.339,143.585,'P','PPL','AU.07','AU.07.21750',9089,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171085,'AU','Coffs Harbour','Coffs Harbour',-30.2963,153.114,'P','PPL','AU.02','AU.02.11800',26353,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171168,'AU','Coburg','Coburg',-37.75,144.967,'P','PPLX','AU.07','AU.07.25250',24977,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171320,'AU','Clifton Springs','Clifton Springs',-38.1567,144.555,'P','PPL','AU.07','AU.07.22750',7413,'Australia/Melbourne',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171324,'AU','Clifton Hill','Clifton Hill',-37.798,144.995,'P','PPLX','AU.07','AU.07.27350',5790,'Australia/Melbourne',1,'2015-01-16 23:00:00','2015-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171360,'AU','Cleveland','Cleveland',-27.5268,153.265,'P','PPLX','AU.04','AU.04.36250',13776,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171395,'AU','Clayton South','Clayton South',-37.9333,145.117,'P','PPLX','AU.07','AU.07.23430',11600,'Australia/Melbourne',1,'2012-09-01 23:00:00','2012-09-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171400,'AU','Clayton','Clayton',-37.9167,145.117,'P','PPLX','AU.07','AU.07.24970',15543,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171452,'AU','Clarinda','Clarinda',-37.9333,145.117,'P','PPLX','AU.07','AU.07.23430',7461,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171476,'AU','Claremont','Claremont',-42.7833,147.25,'P','PPLX','AU.06','AU.06.62610',7504,'Australia/Hobart',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171507,'AU','Wollongong','Wollongong',-34.424,150.893,'P','PPL','AU.02','AU.02.18450',292190,'Australia/Sydney',1,'2017-04-19 23:00:00','2017-04-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171586,'AU','Chipping Norton','Chipping Norton',-33.9,150.95,'P','PPLX','AU.02','AU.02.12850',8579,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171693,'AU','Chelsea Heights','Chelsea Heights',-38.0333,145.133,'P','PPLX','AU.07','AU.07.23430',5186,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171694,'AU','Chelsea','Chelsea',-38.05,145.117,'P','PPLX','AU.07','AU.07.23430',7223,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171707,'AU','Chatswood','Chatswood',-33.8,151.183,'P','PPLX','AU.02','AU.02.18250',7777,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171722,'AU','Charters Towers','Charters Towers',-20.0767,146.264,'P','PPL','AU.04','AU.04.32310',9573,'Australia/Brisbane',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171766,'AU','Charlestown','Charlestown',-32.95,151.667,'P','PPLX','AU.02','AU.02.14650',11725,'Australia/Sydney',1,'2015-02-15 23:00:00','2015-02-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171845,'AU','Cessnock','Cessnock',-32.8321,151.356,'P','PPL','AU.02','AU.02.11720',16393,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2171945,'AU','Caulfield North','Caulfield North',-37.8739,145.025,'P','PPLX','AU.07','AU.07.22310',14554,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172106,'AU','Castlemaine','Castlemaine',-37.0671,144.217,'P','PPL','AU.07','AU.07.25430',6604,'Australia/Melbourne',1,'2013-07-28 23:00:00','2013-07-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172111,'AU','Castle Hill','Castle Hill',-33.7333,151,'P','PPLX','AU.02','AU.02.10500',35389,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172153,'AU','Casino','Casino',-28.8582,153.047,'P','PPL','AU.02','AU.02.16610',9539,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172191,'AU','Carrum Downs','Carrum Downs',-38.0997,145.172,'P','PPLX','AU.07','AU.07.22170',17213,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172264,'AU','Carnegie','Carnegie',-37.8833,145.067,'P','PPLX','AU.07','AU.07.26350',16299,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172289,'AU','Carlton North','Carlton North',-37.7882,144.97,'P','PPLX','AU.07','AU.07.27350',6220,'Australia/Melbourne',1,'2017-11-04 23:00:00','2017-11-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172293,'AU','Carlton','Carlton',-37.8,144.967,'P','PPLX','AU.07','AU.07.24600',14104,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172303,'AU','Carlingford','Carlingford',-33.7827,151.049,'P','PPLX','AU.02','AU.02.16250',21364,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172311,'AU','Caringbah','Caringbah',-34.0473,151.121,'P','PPLX','AU.02','AU.02.17150',21283,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172517,'AU','Canberra','Canberra',-35.2835,149.128,'P','PPLC','AU.01',NULL,367752,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172563,'AU','Camperdown','Camperdown',-33.8896,151.176,'P','PPLX','AU.02','AU.02.15200',6545,'Australia/Sydney',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172586,'AU','Campbelltown','Campbelltown',-34.0667,150.817,'P','PPL','AU.02','AU.02.11500',8013,'Australia/Sydney',1,'2012-06-25 23:00:00','2012-06-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172607,'AU','Campbellfield','Campbellfield',-37.6833,144.95,'P','PPLX','AU.07','AU.07.23270',5467,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172686,'AU','Camberwell','Camberwell',-37.842,145.069,'P','PPLX','AU.07','AU.07.21110',19637,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172710,'AU','Caloundra','Caloundra',-26.8035,153.122,'P','PPL','AU.04','AU.04.36710',38706,'Australia/Brisbane',1,'2014-07-09 23:00:00','2014-07-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172797,'AU','Cairns','Cairns',-16.923,145.766,'P','PPL','AU.04','AU.04.32070',153075,'Australia/Brisbane',1,'2017-08-24 23:00:00','2017-08-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172832,'AU','Caboolture','Caboolture',-27.0847,152.951,'P','PPLX','AU.04','AU.04.35010',21478,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172880,'AU','Byron Bay','Byron Bay',-28.642,153.612,'P','PPL','AU.02','AU.02.11350',6764,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172994,'AU','Burwood East','Burwood East',-37.85,145.15,'P','PPLX','AU.07','AU.07.26980',10141,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2172995,'AU','Burwood','Burwood',-33.8833,151.1,'P','PPLX','AU.02','AU.02.11300',16030,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173099,'AU','Burpengary','Burpengary',-27.1575,152.958,'P','PPLX','AU.04','AU.04.35010',8280,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173125,'AU','Burnie','Burnie',-41.0558,145.904,'P','PPL','AU.06','AU.06.60610',19972,'Australia/Hobart',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173310,'AU','Bundamba','Bundamba',-27.6095,152.811,'P','PPLX','AU.04','AU.04.33960',5159,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173323,'AU','Bundaberg','Bundaberg',-24.8662,152.348,'P','PPL','AU.04','AU.04.31820',70826,'Australia/Brisbane',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173445,'AU','Bulli','Bulli',-34.3383,150.913,'P','PPLX','AU.02','AU.02.18450',5455,'Australia/Sydney',1,'2015-02-19 23:00:00','2015-02-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173464,'AU','Bulleen','Bulleen',-37.7667,145.083,'P','PPLX','AU.07','AU.07.24210',10868,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173605,'AU','Buderim','Buderim',-26.6844,153.057,'P','PPLX','AU.04','AU.04.36710',15228,'Australia/Brisbane',1,'2015-02-17 23:00:00','2015-02-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173734,'AU','Brunswick West','Brunswick West',-37.7646,144.944,'P','PPLX','AU.07','AU.07.25250',13148,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173739,'AU','Brunswick East','Brunswick East',-37.7725,144.972,'P','PPLX','AU.07','AU.07.25250',8476,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173741,'AU','Brunswick','Brunswick',-37.7667,144.967,'P','PPLX','AU.07','AU.07.25250',19867,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173911,'AU','Broken Hill','Broken Hill',-31.9652,141.451,'P','PPL','AU.02','AU.02.11250',18430,'Australia/Broken_Hill',1,'2015-12-05 23:00:00','2015-12-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2173964,'AU','Broadmeadows','Broadmeadows',-37.6801,144.919,'P','PPLX','AU.07','AU.07.23270',9985,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2174003,'AU','Brisbane','Brisbane',-27.4679,153.028,'P','PPLA','AU.04','AU.04.31000',2189878,'Australia/Brisbane',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2174039,'AU','Brighton','Brighton',-37.9056,145.003,'P','PPLX','AU.07','AU.07.20910',21257,'Australia/Melbourne',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2174040,'AU','Brighton','Brighton',-27.2958,153.057,'P','PPLX','AU.04','AU.04.31000',8600,'Australia/Brisbane',1,'2015-01-09 23:00:00','2015-01-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2174079,'AU','Bridgewater','Bridgewater',-42.7372,147.228,'P','PPLX','AU.06','AU.06.60410',7790,'Australia/Hobart',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2174360,'AU','Box Hill','Box Hill',-37.8189,145.125,'P','PPLX','AU.07','AU.07.26980',8616,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2174400,'AU','Bowral','Bowral',-34.4775,150.42,'P','PPL','AU.02','AU.02.18350',9605,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2174444,'AU','Bowen','Bowen',-20.0137,148.248,'P','PPLA2','AU.04','AU.04.37340',10983,'Australia/Brisbane',1,'2014-08-28 23:00:00','2014-08-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2174563,'AU','Botany','Botany',-33.946,151.196,'P','PPLX','AU.02','AU.02.11100',7455,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2174580,'AU','Boronia','Boronia',-37.8667,145.283,'P','PPLX','AU.07','AU.07.23670',20825,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2174933,'AU','Bongaree','Bongaree',-27.0837,153.159,'P','PPLX','AU.04','AU.04.35010',13649,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2174976,'AU','Bomaderry','Bomaderry',-34.8497,150.611,'P','PPL','AU.02','AU.02.16950',6600,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2175341,'AU','Blaxland','Blaxland',-33.75,150.6,'P','PPL','AU.02','AU.02.10900',6953,'Australia/Sydney',1,'2012-01-17 23:00:00','2012-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2175403,'AU','Blackwater','Blackwater',-23.5835,148.879,'P','PPL','AU.04','AU.04.32270',7250,'Australia/Brisbane',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2175411,'AU','Blacktown','Blacktown',-33.7667,150.917,'P','PPLX','AU.02','AU.02.10750',39000,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2175527,'AU','Blackmans Bay','Blackmans Bay',-43.0031,147.317,'P','PPLX','AU.06','AU.06.63610',6341,'Australia/Hobart',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2175819,'AU','Biloela','Biloela',-24.3959,150.515,'P','PPL','AU.04','AU.04.30370',6309,'Australia/Brisbane',1,'2013-11-08 23:00:00','2013-11-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176031,'AU','Berwick','Berwick',-38.0333,145.35,'P','PPLX','AU.07','AU.07.21610',44779,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176088,'AU','Berkeley Vale','Berkeley Vale',-33.35,151.433,'P','PPLX','AU.02','AU.02.18550',7980,'Australia/Sydney',1,'2015-02-13 23:00:00','2015-02-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176090,'AU','Berkeley','Berkeley',-34.4833,150.85,'P','PPLX','AU.02','AU.02.18450',7413,'Australia/Sydney',1,'2015-02-19 23:00:00','2015-02-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176123,'AU','Bentleigh','Bentleigh',-37.9181,145.035,'P','PPLX','AU.07','AU.07.22310',14271,'Australia/Melbourne',1,'2014-06-30 23:00:00','2014-06-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176187,'AU','Bendigo','Bendigo',-36.7582,144.28,'P','PPL','AU.07','AU.07.22620',100617,'Australia/Melbourne',1,'2013-07-30 23:00:00','2013-07-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176225,'AU','Benalla','Benalla',-36.5511,145.984,'P','PPL','AU.07','AU.07.21010',9020,'Australia/Melbourne',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176412,'AU','Beenleigh','Beenleigh',-27.7114,153.203,'P','PPLX','AU.04','AU.04.34590',8244,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176487,'AU','Beaumaris','Beaumaris',-37.9853,145.034,'P','PPLX','AU.07','AU.07.20910',12829,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176566,'AU','Bayswater','Bayswater',-37.85,145.267,'P','PPLX','AU.07','AU.07.23670',11240,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176592,'AU','Baulkham Hills','Baulkham Hills',-33.7588,150.993,'P','PPLX','AU.02','AU.02.10500',33945,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176632,'AU','Bathurst','Bathurst',-33.4166,149.581,'P','PPL','AU.02','AU.02.10470',33110,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176639,'AU','Batemans Bay','Batemans Bay',-35.7066,150.175,'P','PPL','AU.02','AU.02.12750',10557,'Australia/Sydney',1,'2016-05-25 23:00:00','2016-05-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176934,'AU','Banora Point','Banora Point',-28.213,153.536,'P','PPLX','AU.02','AU.02.17550',27368,'Australia/Sydney',1,'2015-02-22 23:00:00','2015-02-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2176947,'AU','Bankstown','Bankstown',-33.9167,151.033,'P','PPLX','AU.02','AU.02.10350',30572,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177026,'AU','Balwyn','Balwyn',-37.8167,145.067,'P','PPLX','AU.07','AU.07.21110',12944,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177052,'AU','Balmain','Balmain',-33.8548,151.183,'P','PPLX','AU.02','AU.02.14800',9783,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177069,'AU','Ballina','Ballina',-28.8641,153.565,'P','PPL','AU.02','AU.02.10250',14242,'Australia/Sydney',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177091,'AU','Ballarat','Ballarat',-37.5662,143.85,'P','PPL','AU.07','AU.07.20570',97937,'Australia/Melbourne',1,'2014-04-30 23:00:00','2014-04-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177114,'AU','Balgowlah','Balgowlah',-33.7949,151.257,'P','PPLX','AU.02','AU.02.15150',7495,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177207,'AU','Balaclava','Balaclava',-37.8667,145,'P','PPLX','AU.07','AU.07.22310',5383,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177233,'AU','Bairnsdale','Bairnsdale',-37.8229,147.61,'P','PPL','AU.07','AU.07.22110',11005,'Australia/Melbourne',1,'2013-08-19 23:00:00','2013-08-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177394,'AU','Bacchus Marsh','Bacchus Marsh',-37.6727,144.438,'P','PPL','AU.07','AU.07.25150',13575,'Australia/Melbourne',1,'2016-03-19 23:00:00','2016-03-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177413,'AU','Ayr','Ayr',-19.5739,147.407,'P','PPL','AU.04','AU.04.31900',9078,'Australia/Brisbane',1,'2012-02-27 23:00:00','2012-02-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177513,'AU','Auburn','Auburn',-33.85,151.033,'P','PPLX','AU.02','AU.02.10200',33122,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177541,'AU','Atherton','Atherton',-17.2686,145.475,'P','PPL','AU.04','AU.04.36810',6959,'Australia/Brisbane',1,'2015-08-07 23:00:00','2015-08-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177547,'AU','Aspendale','Aspendale',-38.0291,145.103,'P','PPLX','AU.07','AU.07.23430',6622,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177565,'AU','Ashfield','Ashfield',-33.8883,151.123,'P','PPLX','AU.02','AU.02.10150',22000,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177571,'AU','Ashburton','Ashburton',-37.8667,145.083,'P','PPLX','AU.07','AU.07.21110',7586,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177576,'AU','Ascot Vale','Ascot Vale',-37.7833,144.917,'P','PPLX','AU.07','AU.07.24600',13475,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177626,'AU','Artarmon','Artarmon',-33.8167,151.183,'P','PPLX','AU.02','AU.02.18250',8642,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177671,'AU','Armidale','Armidale',-30.5012,151.666,'P','PPL','AU.02','AU.02.10110',22673,'Australia/Sydney',1,'2017-06-10 23:00:00','2017-06-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177756,'AU','Ararat','Ararat',-37.2854,142.927,'P','PPL','AU.07','AU.07.20260',8076,'Australia/Melbourne',1,'2015-07-09 23:00:00','2015-07-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2177992,'AU','Altona','Altona',-37.8696,144.83,'P','PPLX','AU.07','AU.07.23110',9918,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2178174,'AU','Albury','Albury',-36.0748,146.924,'P','PPL','AU.02','AU.02.10050',45627,'Australia/Sydney',1,'2016-03-09 23:00:00','2016-03-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2178190,'AU','Albert Park','Albert Park',-37.8333,145,'P','PPLX','AU.07','AU.07.27350',5955,'Australia/Melbourne',1,'2016-06-21 23:00:00','2016-06-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2205631,'AU','Raymond Terrace','Raymond Terrace',-32.75,151.75,'P','PPL','AU.02','AU.02.16400',13606,'Australia/Sydney',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2205969,'AU','Gymea','Gymea',-34.0364,151.085,'P','PPLX','AU.02','AU.02.17150',7419,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2205970,'AU','Kirrawee','Kirrawee',-34.0383,151.069,'P','PPLX','AU.02','AU.02.17150',8945,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2205979,'AU','Gymea Bay','Gymea Bay',-34.0521,151.088,'P','PPLX','AU.02','AU.02.17150',7419,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2205999,'AU','Brighton-Le-Sands','Brighton-Le-Sands',-33.9601,151.151,'P','PPLX','AU.02','AU.02.16650',7193,'Australia/Sydney',1,'2015-05-27 23:00:00','2015-05-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2206003,'AU','Blakehurst','Blakehurst',-33.9915,151.109,'P','PPLX','AU.02','AU.02.14450',5338,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2206006,'AU','Lugarno','Lugarno',-33.9827,151.042,'P','PPLX','AU.02','AU.02.14150',5707,'Australia/Sydney',1,'2014-06-15 23:00:00','2014-06-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2206068,'AU','New Town','New Town',-42.8576,147.309,'P','PPLX','AU.06','AU.06.62810',5870,'Australia/Hobart',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2206089,'AU','Sandy Bay','Sandy Bay',-42.8945,147.324,'P','PPLX','AU.06','AU.06.62810',11334,'Australia/Hobart',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2206108,'AU','Fairy Meadow','Fairy Meadow',-34.393,150.893,'P','PPLX','AU.02','AU.02.18450',6424,'Australia/Sydney',1,'2016-02-24 23:00:00','2016-02-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207259,'AU','South Brisbane','South Brisbane',-27.4803,153.02,'P','PPLX','AU.04','AU.04.31000',60000,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207330,'AU','Scarborough','Scarborough',-27.2012,153.109,'P','PPLX','AU.04','AU.04.35010',9837,'Australia/Brisbane',1,'2015-01-14 23:00:00','2015-01-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207538,'AU','Bonbeach','Bonbeach',-38.0653,145.123,'P','PPLX','AU.07','AU.07.23430',5773,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207618,'AU','Cheltenham','Cheltenham',-37.9694,145.048,'P','PPLX','AU.07','AU.07.20910',20292,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207748,'AU','Bellevue Hill','Bellevue Hill',-33.879,151.251,'P','PPLX','AU.02','AU.02.18500',9447,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207753,'AU','Paddington','Paddington',-33.8842,151.232,'P','PPLX','AU.02','AU.02.18500',11661,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207762,'AU','Lilyfield','Lilyfield',-33.875,151.165,'P','PPLX','AU.02','AU.02.14800',6759,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207783,'AU','Drummoyne','Drummoyne',-33.8524,151.155,'P','PPLX','AU.02','AU.02.11520',10385,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207796,'AU','Greenwich','Greenwich',-33.8395,151.183,'P','PPLX','AU.02','AU.02.14700',5053,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207809,'AU','Hunters Hill','Hunters Hill',-33.8343,151.146,'P','PPLX','AU.02','AU.02.14100',9024,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207822,'AU','Cammeray','Cammeray',-33.8213,151.216,'P','PPLX','AU.02','AU.02.15950',6693,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2207880,'AU','Neutral Bay','Neutral Bay',-33.8378,151.217,'P','PPLX','AU.02','AU.02.15950',10276,'Australia/Sydney',1,'2014-04-07 23:00:00','2014-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2208285,'AU','Randwick','Randwick',-33.9144,151.249,'P','PPLX','AU.02','AU.02.16550',25819,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2208288,'AU','Bronte','Bronte',-33.902,151.266,'P','PPLX','AU.02','AU.02.18050',6120,'Australia/Sydney',1,'2014-06-15 23:00:00','2014-06-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2208290,'AU','Bondi','Bondi',-33.8943,151.264,'P','PPLX','AU.02','AU.02.18050',10373,'Australia/Sydney',1,'2014-06-15 23:00:00','2014-06-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2208292,'AU','Gladesville','Gladesville',-33.8333,151.133,'P','PPLX','AU.02','AU.02.14100',10835,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2208302,'AU','Forestville','Forestville',-33.7667,151.208,'P','PPL','AU.02','AU.02.18000',7803,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2208305,'AU','Dee Why','Dee Why',-33.75,151.3,'P','PPLX','AU.02','AU.02.18000',17463,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (2208313,'AU','Umina','Umina',-33.5231,151.313,'P','PPLX','AU.02','AU.02.13100',16059,'Australia/Sydney',1,'2015-02-14 23:00:00','2015-02-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6290236,'AU','Airport West','Airport West',-37.7247,144.881,'P','PPLX','AU.07','AU.07.25060',6959,'Australia/Melbourne',1,'2015-01-24 23:00:00','2015-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6290241,'AU','Gladstone Park','Gladstone Park',-37.6874,144.887,'P','PPLX','AU.07','AU.07.23270',8329,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6301965,'AU','Palmerston','Palmerston',-12.486,130.983,'P','PPL','AU.03','AU.03.72800',25000,'Australia/Darwin',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6533368,'AU','Moranbah','Moranbah',-22.0016,148.047,'P','PPL','AU.04','AU.04.33980',10000,'Australia/Brisbane',1,'2017-12-29 23:00:00','2017-12-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6619483,'AU','Kaleen','Kaleen',-35.2181,149.105,'P','PPLX','AU.01',NULL,7586,'Australia/Sydney',1,'2015-03-09 23:00:00','2015-03-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6620339,'AU','Karratha','Karratha',-20.7376,116.846,'P','PPL','AU.08','AU.08.57560',11728,'Australia/Perth',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6621336,'AU','Hillarys','Hillarys',-31.807,115.74,'P','PPLX','AU.08','AU.08.54170',10160,'Australia/Perth',1,'2015-02-08 23:00:00','2015-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6621337,'AU','Kingsford','Kingsford',-33.924,151.227,'P','PPLX','AU.02','AU.02.16550',14232,'Australia/Sydney',1,'2015-01-30 23:00:00','2015-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6621338,'AU','Klemzig','Klemzig',-34.8793,138.636,'P','PPL','AU.05','AU.05.45890',5087,'Australia/Adelaide',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6621340,'AU','Maidstone','Maidstone',-37.7803,144.874,'P','PPLX','AU.07','AU.07.24330',7750,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6621357,'AU','Woollahra','Woollahra',-33.8878,151.237,'P','PPLX','AU.02','AU.02.18500',7300,'Australia/Sydney',1,'2014-06-15 23:00:00','2014-06-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6690772,'AU','Corlette','Corlette',-32.7201,152.108,'P','PPLX','AU.02','AU.02.16400',5115,'Australia/Sydney',1,'2015-02-16 23:00:00','2015-02-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6692248,'AU','Howrah','Howrah',-42.8873,147.406,'P','PPLX','AU.06','AU.06.61410',7888,'Australia/Hobart',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6693769,'AU','North Narrabeen','North Narrabeen',-33.7094,151.296,'P','PPLX','AU.02','AU.02.16370',5280,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6695255,'AU','Joondalup','Joondalup',-31.7444,115.768,'P','PPL','AU.08','AU.08.54170',8420,'Australia/Perth',1,'2014-12-29 23:00:00','2014-12-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6695266,'AU','Como','Como',-31.9912,115.863,'P','PPLX','AU.08','AU.08.57840',12425,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6695559,'AU','Arncliffe','Arncliffe',-33.9363,151.148,'P','PPLX','AU.02','AU.02.16650',8420,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6697124,'AU','East Lismore','East Lismore',-28.8259,153.289,'P','PPL','AU.02','AU.02.14850',5209,'Australia/Sydney',1,'2016-09-16 23:00:00','2016-09-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6697141,'AU','Mindarie','Mindarie',-31.6893,115.707,'P','PPLL','AU.08','AU.08.58760',6507,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6697150,'AU','Clarkson','Clarkson',-31.6828,115.725,'P','PPLL','AU.08','AU.08.58760',7082,'Australia/Perth',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6697151,'AU','Kinross','Kinross',-31.7187,115.738,'P','PPLX','AU.08','AU.08.54170',7232,'Australia/Perth',1,'2015-02-08 23:00:00','2015-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6697152,'AU','Currambine','Currambine',-31.7331,115.748,'P','PPLX','AU.08','AU.08.54170',5975,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6697155,'AU','Heathridge','Heathridge',-31.7624,115.759,'P','PPLL','AU.08','AU.08.54170',6882,'Australia/Perth',1,'2015-02-08 23:00:00','2015-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6697782,'AU','Paradise Point','Paradise Point',-27.8866,153.393,'P','PPLX','AU.04','AU.04.33430',6000,'Australia/Brisbane',1,'2017-12-02 23:00:00','2017-12-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6930431,'AU','Freshwater','Freshwater',-33.7787,151.286,'P','PPLX','AU.02','AU.02.18000',7872,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6931018,'AU','Taringa','Taringa',-27.4906,152.979,'P','PPLX','AU.04','AU.04.31000',7490,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6931021,'AU','Inala','Inala',-27.5972,152.974,'P','PPLX','AU.04','AU.04.31000',12568,'Australia/Brisbane',1,'2015-01-09 23:00:00','2015-01-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6941710,'AU','Mount Lawley','Mount Lawley',-31.9344,115.872,'P','PPLX','AU.08','AU.08.58570',10703,'Australia/Perth',1,'2013-04-07 23:00:00','2013-04-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6943454,'AU','Paradise','Paradise',-34.8736,138.669,'P','PPLX','AU.05','AU.05.40910',6327,'Australia/Adelaide',1,'2015-02-02 23:00:00','2015-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6943474,'AU','Athelstone','Athelstone',-34.8702,138.7,'P','PPL','AU.05','AU.05.40910',9290,'Australia/Adelaide',1,'2015-02-02 23:00:00','2015-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6943551,'AU','Wooloowin','Wooloowin',-27.4224,153.042,'P','PPLX','AU.04','AU.04.31000',5486,'Australia/Brisbane',1,'2015-01-09 23:00:00','2015-01-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6943555,'AU','Zillmere','Zillmere',-27.3559,153.045,'P','PPLX','AU.04','AU.04.31000',7467,'Australia/Brisbane',1,'2015-01-09 23:00:00','2015-01-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6943556,'AU','Taigum','Taigum',-27.3426,153.044,'P','PPLX','AU.04','AU.04.31000',5164,'Australia/Brisbane',1,'2015-01-09 23:00:00','2015-01-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6943558,'AU','Bracken Ridge','Bracken Ridge',-27.3171,153.031,'P','PPLX','AU.04','AU.04.31000',15355,'Australia/Brisbane',1,'2015-01-09 23:00:00','2015-01-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6943579,'AU','Windsor','Windsor',-27.4363,153.029,'P','PPLX','AU.04','AU.04.31000',6164,'Australia/Brisbane',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6945028,'AU','Bridegman Downs','Bridegman Downs',-27.3554,152.994,'P','PPLX','AU.04','AU.04.31000',7455,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6949377,'AU','Canterbury','Canterbury',-33.9119,151.119,'P','PPLX','AU.02','AU.02.11550',5417,'Australia/Sydney',1,'2014-06-24 23:00:00','2014-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (6951440,'AU','Tamborine Mountain','Tamborine Mountain',-27.9695,153.199,'P','PPL','AU.04','AU.04.36510',6535,'Australia/Brisbane',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7281782,'AU','North Ryde','North Ryde',-33.7968,151.124,'P','PPLX','AU.02','AU.02.16700',17208,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7281785,'AU','Stirling','Stirling',-31.8834,115.81,'P','PPLX','AU.08','AU.08.57910',9157,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7281805,'AU','Caroline Springs','Caroline Springs',-37.7412,144.736,'P','PPLX','AU.07','AU.07.24650',10880,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7281807,'AU','Hoppers Crossing','Hoppers Crossing',-37.8826,144.7,'P','PPLX','AU.07','AU.07.27260',38108,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7281823,'AU','Rouse Hill','Rouse Hill',-33.6821,150.915,'P','PPLX','AU.02','AU.02.10750',6474,'Australia/Sydney',1,'2015-02-01 23:00:00','2015-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7281838,'AU','Logan City','Logan City',-27.6392,153.109,'P','PPL','AU.04','AU.04.34590',282673,'Australia/Brisbane',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7281839,'AU','Carindale','Carindale',-27.5058,153.102,'P','PPLX','AU.04','AU.04.31000',15135,'Australia/Brisbane',1,'2015-01-09 23:00:00','2015-01-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7281840,'AU','Parramatta','Parramatta',-33.8178,151.003,'P','PPLA2','AU.02','AU.02.16250',18448,'Australia/Sydney',1,'2017-07-20 23:00:00','2017-07-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7281850,'AU','Ferntree Gully','Ferntree Gully',-37.8846,145.295,'P','PPLX','AU.07','AU.07.23670',24724,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7302259,'AU','City of Parramatta','City of Parramatta',-33.8167,151,'P','PPL','AU.02','AU.02.16250',19745,'Australia/Sydney',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7302624,'AU','Phillip Island','Phillip Island',-38.4835,145.231,'P','PPL','AU.07','AU.07.20740',7071,'Australia/Melbourne',1,'2011-06-03 23:00:00','2011-06-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7302625,'AU','Springwood','Springwood',-27.6118,153.129,'P','PPLX','AU.04','AU.04.34590',8952,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7302628,'AU','Adelaide Hills','Adelaide Hills',-34.9112,138.707,'P','PPL','AU.05','AU.05.40120',60394,'Australia/Adelaide',1,'2013-06-24 23:00:00','2013-06-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7302631,'AU','Canning Vale','Canning Vale',-32.058,115.918,'P','PPLX','AU.08','AU.08.51330',23289,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7302634,'AU','Varsity Lakes','Varsity Lakes',-28.0894,153.412,'P','PPLX','AU.04','AU.04.33430',11796,'Australia/Brisbane',1,'2015-02-12 23:00:00','2015-02-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7302638,'AU','Oxenford','Oxenford',-27.8903,153.313,'P','PPLX','AU.04','AU.04.33430',9007,'Australia/Brisbane',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7302640,'AU','Toormina','Toormina',-30.3538,153.088,'P','PPL','AU.02','AU.02.11800',6551,'Australia/Sydney',1,'2014-09-10 23:00:00','2014-09-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7302642,'AU','Glenmore Park','Glenmore Park',-33.7907,150.669,'P','PPLX','AU.02','AU.02.16350',19200,'Australia/Sydney',1,'2015-01-29 23:00:00','2015-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7302683,'AU','Southbank','Southbank',-37.8228,144.964,'P','PPLX','AU.07','AU.07.24600',9364,'Australia/Melbourne',1,'2015-01-16 23:00:00','2015-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7303250,'AU','St Kilda East','St Kilda East',-37.8659,145,'P','PPLX','AU.07','AU.07.25900',12576,'Australia/Melbourne',1,'2015-01-16 23:00:00','2015-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7521471,'AU','Docklands','Docklands',-37.8149,144.951,'P','PPLX','AU.07','AU.07.24600',5791,'Australia/Melbourne',1,'2015-01-16 23:00:00','2015-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932573,'AU','Melton West','Melton West',-37.6785,144.569,'P','PPLX','AU.07','AU.07.24650',10381,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932575,'AU','Kurunjang','Kurunjang',-37.6759,144.597,'P','PPLX','AU.07','AU.07.24650',6728,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932611,'AU','Ashwood','Ashwood',-37.8666,145.106,'P','PPLX','AU.07','AU.07.24970',12420,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932612,'AU','Glen Iris','Glen Iris',-37.86,145.055,'P','PPL','AU.07','AU.07.26350',23270,'Australia/Melbourne',1,'2011-08-25 23:00:00','2011-08-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932619,'AU','Elsternwick','Elsternwick',-37.8844,145.004,'P','PPLX','AU.07','AU.07.22310',9286,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932620,'AU','Elwood','Elwood',-37.8821,144.982,'P','PPLX','AU.07','AU.07.25900',13785,'Australia/Melbourne',1,'2015-01-16 23:00:00','2015-01-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932622,'AU','Burwood','Burwood',-37.8498,145.119,'P','PPL','AU.07','AU.07.26980',11886,'Australia/Melbourne',1,'2011-08-25 23:00:00','2011-08-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932623,'AU','Box Hill South','Box Hill South',-37.8324,145.121,'P','PPLX','AU.07','AU.07.26980',7387,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932624,'AU','Blackburn','Blackburn',-37.819,145.153,'P','PPLX','AU.07','AU.07.26980',11958,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932625,'AU','Canterbury','Canterbury',-37.8247,145.085,'P','PPLX','AU.07','AU.07.21110',7660,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932627,'AU','Hawthorn East','Hawthorn East',-37.8248,145.046,'P','PPLX','AU.07','AU.07.21110',13133,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932628,'AU','Kew East','Kew East',-37.7976,145.054,'P','PPLX','AU.07','AU.07.21110',6140,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932629,'AU','Balwyn North','Balwyn North',-37.7909,145.094,'P','PPL','AU.07','AU.07.21110',19968,'Australia/Melbourne',1,'2011-08-25 23:00:00','2011-08-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932630,'AU','Mont Albert North','Mont Albert North',-37.8004,145.108,'P','PPLX','AU.07','AU.07.26980',5008,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932631,'AU','Box Hill North','Box Hill North',-37.8027,145.127,'P','PPLX','AU.07','AU.07.26980',10649,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932632,'AU','Blackburn North','Blackburn North',-37.8093,145.152,'P','PPLX','AU.07','AU.07.26980',6816,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932634,'AU','Blackburn South','Blackburn South',-37.8397,145.155,'P','PPLX','AU.07','AU.07.26980',10129,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932635,'AU','Chadstone','Chadstone',-37.8877,145.095,'P','PPLX','AU.07','AU.07.24970',12357,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932638,'AU','Malvern East','Malvern East',-37.874,145.043,'P','PPLX','AU.07','AU.07.26350',19593,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932640,'AU','Oakleigh South','Oakleigh South',-37.9242,145.091,'P','PPLX','AU.07','AU.07.24970',8933,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932643,'AU','Caulfield South','Caulfield South',-37.8956,145.026,'P','PPL','AU.07','AU.07.22310',11113,'Australia/Melbourne',1,'2014-09-04 23:00:00','2014-09-04 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932646,'AU','Brighton East','Brighton East',-37.9023,145.017,'P','PPLX','AU.07','AU.07.20910',15167,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932652,'AU','Black Rock','Black Rock',-37.9736,145.016,'P','PPLX','AU.07','AU.07.20910',5796,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932653,'AU','Aspendale Gardens','Aspendale Gardens',-38.0228,145.118,'P','PPLX','AU.07','AU.07.23430',7319,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932654,'AU','Booval','Booval',-27.6133,152.789,'P','PPLX','AU.04','AU.04.33960',20540,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932659,'AU','Brassall','Brassall',-27.5975,152.748,'P','PPLX','AU.04','AU.04.33960',8320,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932664,'AU','Raceview','Raceview',-27.6347,152.775,'P','PPLX','AU.04','AU.04.33960',6896,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932666,'AU','Flinders View','Flinders View',-27.6505,152.775,'P','PPLX','AU.04','AU.04.33960',5005,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932670,'AU','Redbank Plains','Redbank Plains',-27.6461,152.86,'P','PPLX','AU.04','AU.04.33960',9083,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932671,'AU','Collingwood Park','Collingwood Park',-27.6128,152.86,'P','PPLX','AU.04','AU.04.33960',5305,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (7932687,'AU','Clontarf','Clontarf',-27.2534,153.078,'P','PPLX','AU.04','AU.04.35010',7723,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8014922,'AU','Ballarat Central','Ballarat Central',-37.5621,143.851,'P','PPLX','AU.07','AU.07.20570',5645,'Australia/Melbourne',1,'2015-02-20 23:00:00','2015-02-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8015209,'AU','St Albans','St Albans',-37.745,144.8,'P','PPL','AU.07','AU.07.21180',33511,'Australia/Melbourne',1,'2011-09-01 23:00:00','2011-09-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8029813,'AU','Eleebana','Eleebana',-32.9896,151.636,'P','PPLX','AU.02','AU.02.14650',5859,'Australia/Sydney',1,'2015-02-15 23:00:00','2015-02-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8029814,'AU','Summer Hill','Summer Hill',-33.8915,151.138,'P','PPLX','AU.02','AU.02.10150',6130,'Australia/Sydney',1,'2015-02-01 23:00:00','2015-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8298607,'AU','Altona North','Altona North',-37.8349,144.847,'P','PPLX','AU.07','AU.07.23110',10886,'Australia/Melbourne',1,'2012-05-16 23:00:00','2012-05-16 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8299269,'AU','Balcatta','Balcatta',-31.875,115.828,'P','PPLX','AU.08','AU.08.57910',9495,'Australia/Perth',1,'2012-05-17 23:00:00','2012-05-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8299578,'AU','Belmont','Belmont',-31.9435,115.925,'P','PPL','AU.08','AU.08.50490',6104,'Australia/Perth',1,'2012-05-29 23:00:00','2012-05-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8310668,'AU','Bateau Bay','Bateau Bay',-33.3833,151.467,'P','PPLX','AU.02','AU.02.18550',11759,'Australia/Sydney',1,'2015-02-13 23:00:00','2015-02-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8335007,'AU','East Perth','East Perth',-31.9587,115.871,'P','PPLX','AU.08','AU.08.57080',5753,'Australia/Perth',1,'2012-06-10 23:00:00','2012-06-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347324,'AU','Doveton','Doveton',-37.9935,145.239,'P','PPLX','AU.07','AU.07.21610',7600,'Australia/Melbourne',1,'2012-07-08 23:00:00','2012-07-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347325,'AU','Endeavour Hills','Endeavour Hills',-37.977,145.259,'P','PPLX','AU.07','AU.07.21610',25000,'Australia/Melbourne',1,'2012-07-08 23:00:00','2012-07-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347730,'AU','Bossley Park','Bossley Park',-33.8618,150.884,'P','PPLX','AU.02','AU.02.12850',14585,'Australia/Sydney',1,'2018-01-03 23:00:00','2018-01-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347736,'AU','Kellyville','Kellyville',-33.7103,150.951,'P','PPLX','AU.02','AU.02.10500',27971,'Australia/Sydney',1,'2017-12-13 23:00:00','2017-12-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347750,'AU','Tapping','Tapping',-31.7195,115.796,'P','PPLX','AU.08','AU.08.58760',8946,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347847,'AU','Taylors Lakes','Taylors Lakes',-37.6986,144.786,'P','PPLX','AU.07','AU.07.21180',16095,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347871,'AU','Cherrybrook','Cherrybrook',-33.722,151.046,'P','PPLX','AU.02','AU.02.14000',18778,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347891,'AU','Woodvale','Woodvale',-31.7893,115.797,'P','PPLX','AU.08','AU.08.54170',9202,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347896,'AU','Roxburgh Park','Roxburgh Park',-37.6258,144.926,'P','PPLX','AU.07','AU.07.23270',19235,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347914,'AU','Prestons','Prestons',-33.9418,150.872,'P','PPLX','AU.02','AU.02.14900',15313,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347945,'AU','Beeliar','Beeliar',-32.1334,115.806,'P','PPLX','AU.08','AU.08.51820',5869,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8347982,'AU','Lynbrook','Lynbrook',-38.0559,145.256,'P','PPLX','AU.07','AU.07.21610',6772,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348078,'AU','Wyndham Vale','Wyndham Vale',-37.8914,144.624,'P','PPLX','AU.07','AU.07.27260',17304,'Australia/Melbourne',1,'2017-10-03 23:00:00','2017-10-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348081,'AU','Ballajura','Ballajura',-31.8406,115.895,'P','PPLX','AU.08','AU.08.58050',18952,'Australia/Perth',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348101,'AU','Willetton','Willetton',-32.0525,115.888,'P','PPLX','AU.08','AU.08.51330',17243,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348173,'AU','Carramar','Carramar',-31.6902,115.772,'P','PPLX','AU.08','AU.08.58760',6605,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348266,'AU','Alexander Heights','Alexander Heights',-31.8276,115.865,'P','PPLX','AU.08','AU.08.58760',7695,'Australia/Perth',1,'2015-02-06 23:00:00','2015-02-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348306,'AU','Delahey','Delahey',-37.7198,144.777,'P','PPLX','AU.07','AU.07.21180',8443,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348314,'AU','Wilson','Wilson',-32.0206,115.912,'P','PPLX','AU.08','AU.08.51330',5188,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348326,'AU','Butler','Butler',-31.643,115.704,'P','PPLX','AU.08','AU.08.58760',9653,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348333,'AU','Darch','Darch',-31.8125,115.846,'P','PPLX','AU.08','AU.08.58760',6118,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348392,'AU','Innaloo','Innaloo',-31.8927,115.795,'P','PPLX','AU.08','AU.08.57910',7648,'Australia/Perth',1,'2015-02-08 23:00:00','2015-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348406,'AU','Booragoon','Booragoon',-32.0395,115.834,'P','PPLX','AU.08','AU.08.55320',5315,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348424,'AU','Seville Grove','Seville Grove',-32.1365,115.989,'P','PPLX','AU.08','AU.08.50210',7065,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348442,'AU','Murrumba Downs','Murrumba Downs',-27.2673,153.011,'P','PPLX','AU.04','AU.04.35010',9393,'Australia/Brisbane',1,'2015-01-14 23:00:00','2015-01-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348460,'AU','Cabramatta','Cabramatta',-33.8974,150.934,'P','PPLX','AU.02','AU.02.12850',21783,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348466,'AU','Campsie','Campsie',-33.9125,151.103,'P','PPLX','AU.02','AU.02.11550',24541,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348477,'AU','Casula','Casula',-33.9522,150.899,'P','PPLX','AU.02','AU.02.14900',14696,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348488,'AU','Knoxfield','Knoxfield',-37.8898,145.25,'P','PPLX','AU.07','AU.07.23670',7140,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348536,'AU','Little Mountain','Little Mountain',-26.7844,153.092,'P','PPLX','AU.04','AU.04.36710',9045,'Australia/Brisbane',1,'2015-02-17 23:00:00','2015-02-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348565,'AU','Glendenning','Glendenning',-33.7483,150.854,'P','PPLX','AU.02','AU.02.10750',5026,'Australia/Sydney',1,'2015-01-29 23:00:00','2015-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348582,'AU','Greystanes','Greystanes',-33.8235,150.946,'P','PPLX','AU.02','AU.02.13950',21703,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348655,'AU','Padbury','Padbury',-31.8064,115.769,'P','PPLX','AU.08','AU.08.54170',8113,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348675,'AU','East Victoria Park','East Victoria Park',-31.9889,115.904,'P','PPLX','AU.08','AU.08.58510',8102,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348699,'AU','Palmyra','Palmyra',-32.045,115.786,'P','PPLX','AU.08','AU.08.55320',6247,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348768,'AU','Yagoona','Yagoona',-33.9049,151.02,'P','PPLX','AU.02','AU.02.10350',16003,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348779,'AU','Bell Park','Bell Park',-38.1079,144.338,'P','PPLX','AU.07','AU.07.22750',5286,'Australia/Melbourne',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348813,'AU','Golden Square','Golden Square',-36.7727,144.253,'P','PPLX','AU.07','AU.07.22620',8170,'Australia/Melbourne',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348815,'AU','Annerley','Annerley',-27.5123,153.032,'P','PPLX','AU.04','AU.04.31000',10664,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348824,'AU','Highton','Highton',-38.1706,144.311,'P','PPLX','AU.07','AU.07.22750',17793,'Australia/Melbourne',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348836,'AU','Dulwich Hill','Dulwich Hill',-33.9041,151.139,'P','PPLX','AU.02','AU.02.15200',12981,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348843,'AU','Viewbank','Viewbank',-37.7399,145.093,'P','PPLX','AU.07','AU.07.20660',6731,'Australia/Melbourne',1,'2015-01-24 23:00:00','2015-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348898,'AU','Chirnside Park','Chirnside Park',-37.7386,145.314,'P','PPLX','AU.07','AU.07.27450',9092,'Australia/Melbourne',1,'2015-01-20 23:00:00','2015-01-20 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8348967,'AU','Meadow Heights','Meadow Heights',-37.6512,144.919,'P','PPLX','AU.07','AU.07.23270',14843,'Australia/Melbourne',1,'2015-01-18 23:00:00','2015-01-18 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349002,'AU','Westminster','Westminster',-31.8674,115.839,'P','PPLX','AU.08','AU.08.57910',5175,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349003,'AU','Paralowie','Paralowie',-34.757,138.608,'P','PPLX','AU.05','AU.05.47140',15872,'Australia/Adelaide',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349024,'AU','Bibra Lake','Bibra Lake',-32.0976,115.819,'P','PPLX','AU.08','AU.08.51820',5954,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349051,'AU','Dianella','Dianella',-31.8882,115.872,'P','PPLX','AU.08','AU.08.57910',22521,'Australia/Perth',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349052,'AU','Duncraig','Duncraig',-31.8329,115.776,'P','PPLX','AU.08','AU.08.54170',15026,'Australia/Perth',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349071,'AU','Kardinya','Kardinya',-32.0656,115.815,'P','PPLX','AU.08','AU.08.55320',8874,'Australia/Perth',1,'2015-02-08 23:00:00','2015-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349072,'AU','Karrinyup','Karrinyup',-31.8723,115.777,'P','PPLX','AU.08','AU.08.57910',8524,'Australia/Perth',1,'2015-02-08 23:00:00','2015-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349075,'AU','Kewdale','Kewdale',-31.9789,115.952,'P','PPLX','AU.08','AU.08.50490',5439,'Australia/Perth',1,'2015-02-08 23:00:00','2015-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349092,'AU','Ocean Reef','Ocean Reef',-31.7587,115.736,'P','PPLX','AU.08','AU.08.54170',8090,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349098,'AU','Port Kennedy','Port Kennedy',-32.3734,115.752,'P','PPLX','AU.08','AU.08.57490',12816,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349100,'AU','Secret Harbour','Secret Harbour',-32.4059,115.759,'P','PPLX','AU.08','AU.08.57490',5657,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349105,'AU','Tuart Hill','Tuart Hill',-31.8981,115.835,'P','PPLX','AU.08','AU.08.57910',6706,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349108,'AU','Thornlie','Thornlie',-32.06,115.955,'P','PPLX','AU.08','AU.08.53780',22265,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349115,'AU','Winthrop','Winthrop',-32.0522,115.83,'P','PPLX','AU.08','AU.08.55320',6430,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349117,'AU','Yangebup','Yangebup',-32.1207,115.816,'P','PPLX','AU.08','AU.08.51820',6089,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349118,'AU','Yokine','Yokine',-31.9011,115.853,'P','PPLX','AU.08','AU.08.57910',10613,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349222,'AU','Punchbowl','Punchbowl',-33.9289,151.051,'P','PPLX','AU.02','AU.02.11550',20236,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349238,'AU','Parafield Gardens','Parafield Gardens',-34.7825,138.611,'P','PPLX','AU.05','AU.05.47140',15317,'Australia/Adelaide',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349243,'AU','Hillside','Hillside',-37.6905,144.742,'P','PPLX','AU.07','AU.07.24650',16326,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349257,'AU','Wavell Heights','Wavell Heights',-27.3939,153.047,'P','PPLX','AU.04','AU.04.31000',9435,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349321,'AU','St Clair','St Clair',-33.7973,150.785,'P','PPLX','AU.02','AU.02.16350',19837,'Australia/Sydney',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349354,'AU','Kirwan','Kirwan',-19.3032,146.725,'P','PPLX','AU.04','AU.04.37010',21416,'Australia/Brisbane',1,'2017-12-12 23:00:00','2017-12-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349364,'AU','Braybrook','Braybrook',-37.7867,144.855,'P','PPLX','AU.07','AU.07.24330',8180,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349376,'AU','Cairnlea','Cairnlea',-37.7593,144.788,'P','PPLX','AU.07','AU.07.21180',8839,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349381,'AU','Bundoora','Bundoora',-37.6982,145.06,'P','PPLX','AU.07','AU.07.20660',25709,'Australia/Melbourne',1,'2015-01-17 23:00:00','2015-01-17 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349399,'AU','Patterson Lakes','Patterson Lakes',-38.0693,145.143,'P','PPLX','AU.07','AU.07.23430',7582,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8349439,'AU','Skye','Skye',-38.105,145.216,'P','PPLX','AU.07','AU.07.22170',7484,'Australia/Melbourne',1,'2015-01-19 23:00:00','2015-01-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8436118,'AU','Beaumont Hills','Beaumont Hills',-33.6999,150.941,'P','PPLX','AU.02','AU.02.10500',5817,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8469169,'AU','North Adelaide','North Adelaide',-34.9073,138.591,'P','PPLX','AU.05','AU.05.40070',6678,'Australia/Adelaide',1,'2013-03-03 23:00:00','2013-03-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8478275,'AU','Victoria Park','Victoria Park',-31.9762,115.905,'P','PPLX','AU.08','AU.08.58510',7174,'Australia/Perth',1,'2013-03-06 23:00:00','2013-03-06 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8555644,'AU','Bondi Junction','Bondi Junction',-33.8927,151.247,'P','PPLX','AU.02','AU.02.18050',8660,'Australia/Sydney',1,'2013-06-05 23:00:00','2013-06-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8556202,'AU','Bald Hills','Bald Hills',-27.3211,153.009,'P','PPLX','AU.04','AU.04.31000',5965,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (8629873,'AU','Beecroft','Beecroft',-33.7495,151.065,'P','PPLX','AU.02','AU.02.14000',8836,'Australia/Sydney',1,'2015-07-05 23:00:00','2015-07-05 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9172072,'AU','Lane Cove North','Lane Cove North',-33.8054,151.166,'P','PPLX','AU.02','AU.02.18250',9337,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9883890,'AU','Ascot','Ascot',-27.4315,153.058,'P','PPLX','AU.04','AU.04.31000',5730,'Australia/Brisbane',1,'2015-01-11 23:00:00','2015-01-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957323,'AU','Chermside West','Chermside West',-27.3838,153.016,'P','PPLX','AU.04','AU.04.31000',6121,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957324,'AU','Everton Park','Everton Park',-27.4073,152.988,'P','PPLX','AU.04','AU.04.31000',8325,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957327,'AU','Stafford','Stafford',-27.4104,153.011,'P','PPLX','AU.04','AU.04.31000',6041,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957328,'AU','Stafford Heights','Stafford Heights',-27.3935,153.01,'P','PPLX','AU.04','AU.04.31000',6780,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957340,'AU','Forest Lake','Forest Lake',-27.6256,152.969,'P','PPLX','AU.04','AU.04.31000',22426,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957342,'AU','Greenslopes','Greenslopes',-27.5082,153.05,'P','PPLX','AU.04','AU.04.31000',8565,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957346,'AU','Mansfield','Mansfield',-27.5393,153.099,'P','PPLX','AU.04','AU.04.31000',8473,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957347,'AU','Mount Gravatt East','Mount Gravatt East',-27.5405,153.082,'P','PPLX','AU.04','AU.04.31000',10891,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957350,'AU','Sunnybank Hills','Sunnybank Hills',-27.6103,153.054,'P','PPLX','AU.04','AU.04.31000',16830,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957351,'AU','Upper Mount Gravatt','Upper Mount Gravatt',-27.5613,153.085,'P','PPLX','AU.04','AU.04.31000',8851,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957353,'AU','Yeronga','Yeronga',-27.5157,153.016,'P','PPLX','AU.04','AU.04.31000',5540,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957444,'AU','Camp Hill','Camp Hill',-27.4935,153.076,'P','PPLX','AU.04','AU.04.31000',10533,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957521,'AU','Manly West','Manly West',-27.4738,153.166,'P','PPLX','AU.04','AU.04.31000',11195,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957543,'AU','Morningside','Morningside',-27.4617,153.075,'P','PPLX','AU.04','AU.04.31000',9399,'Australia/Brisbane',1,'2016-08-14 23:00:00','2016-08-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957637,'AU','Wynnum West','Wynnum West',-27.4582,153.153,'P','PPLX','AU.04','AU.04.31000',11745,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9957703,'AU','Springfield','Springfield',-27.6537,152.917,'P','PPLX','AU.04','AU.04.33960',6618,'Australia/Brisbane',1,'2015-01-12 23:00:00','2015-01-12 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9958114,'AU','Rochedale South','Rochedale South',-27.5952,153.123,'P','PPLX','AU.04','AU.04.34590',14996,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9958129,'AU','Waterford West','Waterford West',-27.6906,153.133,'P','PPLX','AU.04','AU.04.34590',6160,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9958153,'AU','Ferny Hills','Ferny Hills',-27.3959,152.937,'P','PPLX','AU.04','AU.04.35010',8721,'Australia/Brisbane',1,'2015-01-13 23:00:00','2015-01-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9958500,'AU','Samford Valley','Samford Valley',-27.3727,152.867,'P','PPLX','AU.04','AU.04.35010',10931,'Australia/Brisbane',1,'2015-01-14 23:00:00','2015-01-14 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972408,'AU','Flemington','Flemington',-37.7882,144.93,'P','PPLX','AU.07','AU.07.25060',7528,'Australia/Melbourne',1,'2015-01-24 23:00:00','2015-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972411,'AU','Fairfield','Fairfield',-37.7798,145.018,'P','PPLX','AU.07','AU.07.21890',5946,'Australia/Melbourne',1,'2015-01-24 23:00:00','2015-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972412,'AU','Heidelberg Heights','Heidelberg Heights',-37.7431,145.057,'P','PPLX','AU.07','AU.07.20660',6388,'Australia/Melbourne',1,'2015-01-24 23:00:00','2015-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972415,'AU','Westmeadows','Westmeadows',-37.676,144.887,'P','PPLX','AU.07','AU.07.23270',5524,'Australia/Melbourne',1,'2015-01-24 23:00:00','2015-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972422,'AU','Keilor East','Keilor East',-37.7326,144.865,'P','PPLX','AU.07','AU.07.25060',13259,'Australia/Melbourne',1,'2015-01-24 23:00:00','2015-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972423,'AU','Coburg North','Coburg North',-37.7287,144.961,'P','PPLX','AU.07','AU.07.25250',6576,'Australia/Melbourne',1,'2015-01-24 23:00:00','2015-01-24 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972464,'AU','Hadfield','Hadfield',-37.7073,144.942,'P','PPLX','AU.07','AU.07.25250',5366,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972465,'AU','Oak Park','Oak Park',-37.7184,144.919,'P','PPLX','AU.07','AU.07.25250',5771,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972466,'AU','Pascoe Vale South','Pascoe Vale South',-37.7397,144.946,'P','PPLX','AU.07','AU.07.25250',9553,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972470,'AU','Bayswater North','Bayswater North',-37.8261,145.298,'P','PPLX','AU.07','AU.07.24410',8424,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972471,'AU','Croydon Hills','Croydon Hills',-37.7765,145.264,'P','PPLX','AU.07','AU.07.24410',5185,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972487,'AU','Vermont South','Vermont South',-37.8575,145.183,'P','PPLX','AU.07','AU.07.26980',11416,'Australia/Melbourne',1,'2015-01-25 23:00:00','2015-01-25 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972515,'AU','Cranbourne East','Cranbourne East',-38.1153,145.298,'P','PPLX','AU.07','AU.07.21610',8211,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972516,'AU','Cranbourne North','Cranbourne North',-38.0829,145.278,'P','PPLX','AU.07','AU.07.21610',14570,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972517,'AU','Cranbourne West','Cranbourne West',-38.0965,145.267,'P','PPLX','AU.07','AU.07.21610',8743,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972518,'AU','Narre Warren South','Narre Warren South',-38.0437,145.292,'P','PPLX','AU.07','AU.07.21610',28594,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972522,'AU','Dandenong North','Dandenong North',-37.9665,145.208,'P','PPLX','AU.07','AU.07.22670',21910,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972524,'AU','Noble Park North','Noble Park North',-37.9498,145.193,'P','PPLX','AU.07','AU.07.22670',7390,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972526,'AU','Frankston North','Frankston North',-38.1235,145.148,'P','PPLX','AU.07','AU.07.22170',5626,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972527,'AU','Frankston South','Frankston South',-38.166,145.136,'P','PPLX','AU.07','AU.07.22170',17360,'Australia/Melbourne',1,'2015-01-26 23:00:00','2015-01-26 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972569,'AU','Keilor Downs','Keilor Downs',-37.7234,144.808,'P','PPLX','AU.07','AU.07.21180',10307,'Australia/Melbourne',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972577,'AU','Sunshine North','Sunshine North',-37.7699,144.828,'P','PPLX','AU.07','AU.07.21180',10637,'Australia/Melbourne',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972578,'AU','Sunshine West','Sunshine West',-37.7912,144.816,'P','PPLX','AU.07','AU.07.21180',16743,'Australia/Melbourne',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972579,'AU','Altona Meadows','Altona Meadows',-37.8841,144.784,'P','PPLX','AU.07','AU.07.23110',18746,'Australia/Melbourne',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972583,'AU','West Footscray','West Footscray',-37.7975,144.877,'P','PPLX','AU.07','AU.07.24330',10222,'Australia/Melbourne',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972586,'AU','Taylors Hill','Taylors Hill',-37.7099,144.755,'P','PPLX','AU.07','AU.07.24650',11785,'Australia/Melbourne',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972597,'AU','Allambie Heights','Allambie Heights',-33.7665,151.25,'P','PPLX','AU.02','AU.02.18000',6742,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972601,'AU','Belfield','Belfield',-33.9035,151.085,'P','PPLX','AU.02','AU.02.11550',6043,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972602,'AU','Berala','Berala',-33.872,151.034,'P','PPLX','AU.02','AU.02.10200',8799,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972604,'AU','Berowra Heights','Berowra Heights',-33.6121,151.138,'P','PPLX','AU.02','AU.02.14000',5104,'Australia/Sydney',1,'2015-01-27 23:00:00','2015-01-27 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972618,'AU','Bondi Beach','Bondi Beach',-33.8908,151.279,'P','PPLX','AU.02','AU.02.18050',10748,'Australia/Sydney',1,'2016-12-22 23:00:00','2016-12-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972621,'AU','Cabramatta West','Cabramatta West',-33.8967,150.911,'P','PPLX','AU.02','AU.02.12850',6767,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972622,'AU','Cambridge Park','Cambridge Park',-33.7478,150.722,'P','PPLX','AU.02','AU.02.16350',6160,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972625,'AU','Caringbah South','Caringbah South',-34.0566,151.121,'P','PPLX','AU.02','AU.02.17150',11605,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972648,'AU','Concord West','Concord West',-33.8481,151.086,'P','PPLX','AU.02','AU.02.11520',5850,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972670,'AU','Ermington','Ermington',-33.8148,151.055,'P','PPLX','AU.02','AU.02.16250',9470,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972671,'AU','Fairfield East','Fairfield East',-33.8694,150.971,'P','PPLX','AU.02','AU.02.12850',5074,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972672,'AU','Fairfield Heights','Fairfield Heights',-33.8644,150.939,'P','PPLX','AU.02','AU.02.12850',6649,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972673,'AU','Fairlight','Fairlight',-33.7957,151.273,'P','PPLX','AU.02','AU.02.15150',5489,'Australia/Sydney',1,'2015-01-28 23:00:00','2015-01-28 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972707,'AU','Harris Park','Harris Park',-33.8228,151.008,'P','PPLX','AU.02','AU.02.16250',5072,'Australia/Sydney',1,'2015-01-29 23:00:00','2015-01-29 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972759,'AU','Hornsby Heights','Hornsby Heights',-33.6713,151.094,'P','PPLX','AU.02','AU.02.14000',6192,'Australia/Sydney',1,'2015-01-30 23:00:00','2015-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972762,'AU','Hurstville','Hurstville',-33.9677,151.101,'P','PPLX','AU.02','AU.02.14450',29822,'Australia/Sydney',1,'2017-12-13 23:00:00','2017-12-13 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972778,'AU','Killara','Killara',-33.766,151.162,'P','PPLX','AU.02','AU.02.14500',9284,'Australia/Sydney',1,'2015-01-30 23:00:00','2015-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972786,'AU','Kingswood Park','Kingswood Park',-33.7665,150.714,'P','PPLX','AU.02','AU.02.16350',11813,'Australia/Sydney',1,'2015-01-30 23:00:00','2015-01-30 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972815,'AU','Macquarie Park','Macquarie Park',-33.775,151.112,'P','PPLX','AU.02','AU.02.16700',6143,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972821,'AU','Marsfield','Marsfield',-33.7778,151.106,'P','PPLX','AU.02','AU.02.16700',12347,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972832,'AU','Narellan Vale','Narellan Vale',-34.0497,150.744,'P','PPLX','AU.02','AU.02.11450',6962,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972833,'AU','Narraweena','Narraweena',-33.7552,151.277,'P','PPLX','AU.02','AU.02.18000',5470,'Australia/Sydney',1,'2015-01-31 23:00:00','2015-01-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972847,'AU','North Bondi','North Bondi',-33.8879,151.281,'P','PPLX','AU.02','AU.02.18050',8550,'Australia/Sydney',1,'2016-12-22 23:00:00','2016-12-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972937,'AU','South Coogee','South Coogee',-33.9311,151.256,'P','PPLX','AU.02','AU.02.16550',5367,'Australia/Sydney',1,'2015-02-01 23:00:00','2015-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972943,'AU','South Windsor','South Windsor',-33.6181,150.804,'P','PPLX','AU.02','AU.02.13800',5879,'Australia/Sydney',1,'2015-02-01 23:00:00','2015-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972945,'AU','Stanhope Gardens','Stanhope Gardens',-33.7221,150.926,'P','PPLX','AU.02','AU.02.10750',7671,'Australia/Sydney',1,'2016-07-03 23:00:00','2016-07-03 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972948,'AU','Telopea','Telopea',-33.7928,151.039,'P','PPLX','AU.02','AU.02.16250',5177,'Australia/Sydney',1,'2015-02-01 23:00:00','2015-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972964,'AU','West Pennant','West Pennant',-33.7457,151.048,'P','PPLX','AU.02','AU.02.10500',15967,'Australia/Sydney',1,'2015-02-01 23:00:00','2015-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972965,'AU','West Ryde','West Ryde',-33.8054,151.074,'P','PPLX','AU.02','AU.02.16700',11867,'Australia/Sydney',1,'2015-02-01 23:00:00','2015-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9972972,'AU','Wollstonecraft','Wollstonecraft',-33.8328,151.19,'P','PPLX','AU.02','AU.02.15950',8012,'Australia/Sydney',1,'2015-02-01 23:00:00','2015-02-01 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (9973091,'AU','Henley Beach','Henley Beach',-34.9203,138.494,'P','PPLX','AU.05','AU.05.41060',5405,'Australia/Adelaide',1,'2015-02-02 23:00:00','2015-02-02 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10035407,'AU','City Beach','City Beach',-31.9344,115.762,'P','PPLX','AU.08','AU.08.51310',6354,'Australia/Perth',1,'2015-02-07 23:00:00','2015-02-07 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10055413,'AU','Kallaroo','Kallaroo',-31.791,115.753,'P','PPLX','AU.08','AU.08.54170',5119,'Australia/Perth',1,'2015-02-08 23:00:00','2015-02-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10056968,'AU','Mount Pleasant','Mount Pleasant',-32.0397,115.85,'P','PPLX','AU.08','AU.08.55320',6423,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10056976,'AU','Parmelia','Parmelia',-32.2578,115.822,'P','PPLX','AU.08','AU.08.54830',5953,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10056984,'AU','Rivervale','Rivervale',-31.9555,115.913,'P','PPLX','AU.08','AU.08.50490',7070,'Australia/Perth',1,'2015-02-09 23:00:00','2015-02-09 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10057011,'AU','South Lake','South Lake',-32.1113,115.839,'P','PPLX','AU.08','AU.08.51820',5659,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10057017,'AU','Wembley Downs','Wembley Downs',-31.9117,115.774,'P','PPLX','AU.08','AU.08.57910',5881,'Australia/Perth',1,'2015-02-10 23:00:00','2015-02-10 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10062591,'AU','West Moonah','West Moonah',-42.85,147.282,'P','PPLX','AU.06','AU.06.62610',5216,'Australia/Hobart',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10063050,'AU','Burleigh Waters','Burleigh Waters',-28.0998,153.425,'P','PPLX','AU.04','AU.04.33430',13868,'Australia/Brisbane',1,'2015-02-11 23:00:00','2015-02-11 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10103846,'AU','Elermore Vale','Elermore Vale',-32.9162,151.677,'P','PPLX','AU.02','AU.02.15900',5186,'Australia/Sydney',1,'2015-02-15 23:00:00','2015-02-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10103855,'AU','Mayfield','Mayfield',-32.8979,151.736,'P','PPLX','AU.02','AU.02.15900',12248,'Australia/Sydney',1,'2015-02-15 23:00:00','2015-02-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10103878,'AU','Belmont North','Belmont North',-33.0208,151.668,'P','PPLX','AU.02','AU.02.14650',6481,'Australia/Sydney',1,'2015-02-15 23:00:00','2015-02-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10103951,'AU','Toronto','Toronto',-33.0136,151.594,'P','PPLX','AU.02','AU.02.14650',5433,'Australia/Sydney',1,'2015-02-15 23:00:00','2015-02-15 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10108696,'AU','Albion Park Rail','Albion Park Rail',-34.5663,150.792,'P','PPL','AU.02','AU.02.16900',6937,'Australia/Sydney',1,'2017-03-31 23:00:00','2017-03-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10108731,'AU','Barrack Heights','Barrack Heights',-34.5646,150.857,'P','PPL','AU.02','AU.02.16900',6160,'Australia/Sydney',1,'2017-03-31 23:00:00','2017-03-31 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10109423,'AU','Cordeaux Heights','Cordeaux Heights',-34.4404,150.837,'P','PPLX','AU.02','AU.02.18450',5067,'Australia/Sydney',1,'2015-02-19 23:00:00','2015-02-19 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10110993,'AU','Hamlyn Heights','Hamlyn Heights',-38.1211,144.328,'P','PPLX','AU.07','AU.07.22750',6075,'Australia/Melbourne',1,'2015-02-21 23:00:00','2015-02-21 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10114292,'AU','Tweed Heads West','Tweed Heads West',-28.1874,153.523,'P','PPLX','AU.02','AU.02.17550',5823,'Australia/Sydney',1,'2015-02-22 23:00:00','2015-02-22 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10114318,'AU','Rangeville','Rangeville',-27.5832,151.98,'P','PPLX','AU.04','AU.04.36910',8217,'Australia/Brisbane',1,'2015-02-23 23:00:00','2015-02-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10114319,'AU','Darling Heights','Darling Heights',-27.5966,151.93,'P','PPLX','AU.04','AU.04.36910',5035,'Australia/Brisbane',1,'2015-02-23 23:00:00','2015-02-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10114321,'AU','East Toowoomba','East Toowoomba',-27.5709,151.974,'P','PPLX','AU.04','AU.04.36910',5676,'Australia/Brisbane',1,'2015-02-23 23:00:00','2015-02-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10114338,'AU','South Tamworth','South Tamworth',-31.11,150.923,'P','PPLX','AU.02','AU.02.17310',6741,'Australia/Sydney',1,'2015-02-23 23:00:00','2015-02-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10116056,'AU','East Albury','East Albury',-36.0814,146.93,'P','PPLX','AU.02','AU.02.10050',6247,'Australia/Sydney',1,'2015-02-23 23:00:00','2015-02-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (10116099,'AU','North Albury','North Albury',-36.0574,146.93,'P','PPLX','AU.02','AU.02.10050',6089,'Australia/Sydney',1,'2015-02-23 23:00:00','2015-02-23 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (11073472,'AU','Marangaroo','Marangaroo',-31.8271,115.838,'P','PPLX','AU.08','AU.08.58760',10519,'Australia/Perth',1,'2016-03-08 23:00:00','2016-03-08 23:00:00');
INSERT INTO `<<prefix>>cities` VALUES (11695438,'AU','Liverpool','Liverpool',-33.9229,150.922,'P','PPLA2','AU.02','AU.02.14900',27084,'Australia/Sydney',1,'2017-12-13 23:00:00','2017-12-13 23:00:00');
/*!40000 ALTER TABLE `<<prefix>>cities` ENABLE KEYS */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
-- Dump completed
| 157.436163 | 219 | 0.673727 |
d9124f849de1d46fd78db196e4c40a217ba41416 | 75 | sql | SQL | framework/resources/Functional/subqueries/not_in/s4_c_bigint.sql | aravi5/drill-test-framework | 7bf960cbe1697c8086a880661a361e8991a73107 | [
"Apache-2.0"
] | null | null | null | framework/resources/Functional/subqueries/not_in/s4_c_bigint.sql | aravi5/drill-test-framework | 7bf960cbe1697c8086a880661a361e8991a73107 | [
"Apache-2.0"
] | null | null | null | framework/resources/Functional/subqueries/not_in/s4_c_bigint.sql | aravi5/drill-test-framework | 7bf960cbe1697c8086a880661a361e8991a73107 | [
"Apache-2.0"
] | null | null | null | select count(*) from j1 where c_bigint not in ( select c_bigint from j5) ;
| 37.5 | 74 | 0.733333 |
2d953638ded775c9dc32dc896d261daabac08da8 | 1,142 | rs | Rust | src/graphics/layer/layer.rs | Creative-Coding-The-Hard-Way/2d | 0dc8cbe606783cffe504ab4df0c39bbdc40f53a5 | [
"MIT"
] | 2 | 2021-06-03T22:12:12.000Z | 2021-12-28T12:55:38.000Z | src/graphics/layer/layer.rs | Creative-Coding-The-Hard-Way/2d | 0dc8cbe606783cffe504ab4df0c39bbdc40f53a5 | [
"MIT"
] | 2 | 2021-05-04T03:44:10.000Z | 2021-05-18T06:35:48.000Z | src/graphics/layer/layer.rs | Creative-Coding-The-Hard-Way/2d | 0dc8cbe606783cffe504ab4df0c39bbdc40f53a5 | [
"MIT"
] | 1 | 2021-12-28T12:55:46.000Z | 2021-12-28T12:55:46.000Z | use super::{Batch, Layer};
use nalgebra as na;
impl Layer {
/// Create a new empty layer.
pub fn empty() -> Self {
Self {
projection: na::Matrix4::identity(),
batches: vec![],
}
}
/// Clear all batches from the layer.
pub fn clear(&mut self) {
self.batches.clear();
}
/// Set the layer's projection matrix.
pub fn set_projection(&mut self, projection: na::Matrix4<f32>) {
self.projection = projection;
}
/// Get a reference to the layer's projection.
pub fn projection(&self) -> &na::Matrix4<f32> {
&self.projection
}
/// Add a batch to the layer.
///
/// Batches will persist until `clear` is called on this layer.
pub fn push_batch(&mut self, batch: Batch) {
self.batches.push(batch);
}
/// Push all of the batches into the layer.
///
/// Batches will persist until `clear` is called on this layer.
pub fn push_batches(&mut self, batches: &[Batch]) {
self.batches.extend_from_slice(batches);
}
pub fn batches(&self) -> &[Batch] {
&self.batches
}
}
| 24.297872 | 68 | 0.573555 |
37b2525399b81382144352ccd69bfe0b498fccb9 | 4,224 | swift | Swift | ConsistencyManagerTests/HelperClasses/ProjectionTestModel.swift | elijahdou/ConsistencyManager-iOS | 77de57d0c30e207805b849d4761f5556625e13fd | [
"Apache-2.0"
] | 355 | 2016-04-27T00:22:24.000Z | 2018-02-08T07:38:36.000Z | ConsistencyManagerTests/HelperClasses/ProjectionTestModel.swift | elijahdou/ConsistencyManager-iOS | 77de57d0c30e207805b849d4761f5556625e13fd | [
"Apache-2.0"
] | 50 | 2016-04-27T18:43:15.000Z | 2018-01-24T01:58:00.000Z | ConsistencyManagerTests/HelperClasses/ProjectionTestModel.swift | elijahdou/ConsistencyManager-iOS | 77de57d0c30e207805b849d4761f5556625e13fd | [
"Apache-2.0"
] | 34 | 2016-04-28T12:31:26.000Z | 2017-12-20T21:33:24.000Z | // © 2016 LinkedIn Corp. All rights reserved.
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required 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.
import Foundation
import ConsistencyManager
/**
This model is intended for unit testing the consistency manager. It simply declares some child objects and some data.
It is similar to TestModel but declares an extra field.
Therefore, it also implements mergeModel which will merge TestModel into this model.
*/
final class ProjectionTestModel: ConsistencyManagerModel, Equatable {
let id: String?
let data: Int?
let otherData: Int?
let children: [ProjectionTestModel]
let requiredModel: TestRequiredModel
init(id: String?, data: Int?, otherData: Int?, children: [ProjectionTestModel], requiredModel: TestRequiredModel) {
self.id = id
self.data = data
self.otherData = otherData
self.children = children
self.requiredModel = requiredModel
}
var modelIdentifier: String? {
return id
}
func map(_ transform: (ConsistencyManagerModel) -> ConsistencyManagerModel?) -> ConsistencyManagerModel? {
var newChildren: [ProjectionTestModel] = []
for model in children {
if let newModel = transform(model) as? ProjectionTestModel {
newChildren.append(newModel)
}
}
if let newRequiredModel = transform(requiredModel) as? TestRequiredModel {
return ProjectionTestModel(id: id, data: data, otherData: otherData, children: newChildren, requiredModel: newRequiredModel)
} else {
return nil
}
}
func forEach(_ function: (ConsistencyManagerModel) -> Void) {
for model in children {
function(model)
}
function(requiredModel)
}
func mergeModel(_ model: ConsistencyManagerModel) -> ConsistencyManagerModel {
if let model = model as? ProjectionTestModel {
return model
} else if let model = model as? TestModel {
return testModelFromProjection(model)
} else {
assertionFailure("Tried to merge two models which cannot be merged: \(type(of: self)) and \(type(of: model))")
// The best we can do is return self (no merging done)
return self
}
}
fileprivate func testModelFromProjection(_ model: TestModel) -> ProjectionTestModel {
let newChildren = model.children.map { currentChild in
return testModelFromProjection(currentChild)
}
// For otherData, we're going to use our current value. For everything else, we're going to use the other model's values.
return ProjectionTestModel(id: model.id, data: model.data, otherData: otherData, children: newChildren, requiredModel: model.requiredModel)
}
}
// MARK - Equatable
func ==(lhs: ProjectionTestModel, rhs: ProjectionTestModel) -> Bool {
return lhs.id == rhs.id
&& lhs.data == rhs.data
&& lhs.otherData == rhs.otherData
&& lhs.children == rhs.children
&& lhs.requiredModel == rhs.requiredModel
}
// MARK - CustomStringConvertible
extension ProjectionTestModel: CustomStringConvertible {
var description: String {
return "\(String(describing: id)):\(String(describing: data)):\(String(describing: otherData))-\(requiredModel)-\(children)"
}
}
// MARK - Helpers
extension ProjectionTestModel {
func recursiveChildWithId(_ id: String) -> ProjectionTestModel? {
if let currentId = self.id {
if currentId == id {
return self
}
}
for child in children {
let foundModel = child.recursiveChildWithId(id)
if let foundModel = foundModel {
return foundModel
}
}
// We didn't find anything
return nil
}
}
| 35.495798 | 147 | 0.656487 |
2eaa6570191609eb54ca2b49b77fcc8906dcf3a3 | 1,181 | sql | SQL | src/main/resources/db/migration/V045__add_display_url_to_areaoflaw.sql | reespozzi/fact-api | f67cbf99c7ef7d317e645c52933fc4671594e2e2 | [
"MIT"
] | 1 | 2021-03-02T15:38:54.000Z | 2021-03-02T15:38:54.000Z | src/main/resources/db/migration/V045__add_display_url_to_areaoflaw.sql | reespozzi/fact-api | f67cbf99c7ef7d317e645c52933fc4671594e2e2 | [
"MIT"
] | 355 | 2020-09-11T11:55:35.000Z | 2022-03-31T15:20:16.000Z | src/main/resources/db/migration/V045__add_display_url_to_areaoflaw.sql | hmcts/fact-backend | 00d9989fedefd0a11462a3ec2a0ca933eac885cf | [
"MIT"
] | 4 | 2021-03-18T17:50:54.000Z | 2022-03-29T02:25:23.000Z | ALTER TABLE public.search_areaoflaw
ADD COLUMN display_external_link CHARACTER VARYING(500);
UPDATE public.search_areaoflaw
SET display_external_link = 'https://www.gov.uk/child-adoption/applying-for-an-adoption-court-order'
WHERE name = 'Adoption';
UPDATE public.search_areaoflaw
SET display_external_link = 'https://www.gov.uk/bankruptcy'
WHERE name = 'Bankruptcy';
UPDATE public.search_areaoflaw
SET display_external_link = 'https://www.gov.uk/employment-tribunals'
WHERE name = 'Employment';
UPDATE public.search_areaoflaw
SET display_external_link = 'https://www.gov.uk/looking-after-children-divorce'
WHERE name = 'Children';
UPDATE public.search_areaoflaw
SET display_external_link = 'https://www.gov.uk/applying-for-probate'
WHERE name = 'Probate';
UPDATE public.search_areaoflaw
SET display_external_link = 'https://www.gov.uk/appeal-benefit-decision'
WHERE name = 'Social security';
UPDATE public.search_areaoflaw
SET display_external_link = 'https://www.gov.uk/injunction-domestic-violence'
WHERE name = 'Domestic violence';
UPDATE public.search_areaoflaw
SET display_external_link = 'https://www.gov.uk/immigration-asylum-tribunal'
WHERE name = 'Immigration';
| 33.742857 | 100 | 0.801863 |
04c4f98e5ecc753ee5f08fd9052493081b559182 | 3,956 | java | Java | SpringBoot/src/main/java/com/liz/springboot/utils/StringUtils.java | lizhou828/GenCode | c6fa2ab97c69f1206522988ad376841e37ea6ef6 | [
"Apache-2.0"
] | null | null | null | SpringBoot/src/main/java/com/liz/springboot/utils/StringUtils.java | lizhou828/GenCode | c6fa2ab97c69f1206522988ad376841e37ea6ef6 | [
"Apache-2.0"
] | null | null | null | SpringBoot/src/main/java/com/liz/springboot/utils/StringUtils.java | lizhou828/GenCode | c6fa2ab97c69f1206522988ad376841e37ea6ef6 | [
"Apache-2.0"
] | null | null | null | package com.liz.springboot.utils;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import java.math.BigInteger;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/**
* Created by lizhou on 2018年08月22日 08时50分
*/
public class StringUtils {
private static final Logger log = LogManager.getLogger(StringUtils.class);
public static boolean isValidPhoneNO(String phoneNum){
if(isNotEmpty(phoneNum)) return false;
String regexp="^1[3|4|5|6|7|8|9][0-9]\\d{8}$";
return phoneNum.matches(regexp);
}
/**
* 判断是否包含内网IPv4
* @param ip 合法的ip地址
* @return boolean
*/
public static boolean isContainInnerIPv4(String ip) {
String reg = "(10|172|192)\\.([0-1][0-9]{0,2}|[2][0-5]{0,2}|[3-9][0-9]{0,1})\\.([0-1][0-9]{0,2}|[2][0-5]{0,2}|[3-9][0-9]{0,1})\\.([0-1][0-9]{0,2}|[2][0-5]{0,2}|[3-9][0-9]{0,1})";
Pattern p = Pattern.compile(reg);
Matcher matcher = p.matcher(ip);
return matcher.find();
}
/**
* 获取 字符串是否空
*
* @param string
* 字符串
* @return 字符串是否空
*/
public static boolean isEmpty(String string) {
return string == null || string.equals("") || string.trim().equals("") || "null".equalsIgnoreCase(string);
}
/**
* 获取 字符串是否空
*
* @param string
* 字符串
* @return 字符串是否空
*/
public static boolean isNotEmpty(String string) {
return !isEmpty(string);
}
/**
* 字符串转16进制
* @param str
* @return
*/
public static String stringToHex(String str){
String value="";
if(null == str || "".equals(str) || str.length() == 0){
return value;
}
try{
for(int i = 0 ;i<str.length();i++){
if("".equals(value) ){
value = String.format("%x", new BigInteger(1, String.valueOf(str.charAt(i)).getBytes("UTF-8")));;
}else {
value += String.format("%x", new BigInteger(1, String.valueOf(str.charAt(i)).getBytes("UTF-8")));;
}
}
}catch (Exception e){
log.error(e.getMessage(),e);
}
return value;
}
/**
* 通过公告标题获取公告号
* @param title
* @return
*/
public static String getNoticeNumFromTitle(String title){
try{
if(isEmpty(title)){
return null;
}
if(!title.contains("(") || !title.contains(")")){
return title;
}
String noticeNum = "";
if(title.contains("出让公告")){
noticeNum = title.substring(title.indexOf("出让公告")+4);
if(noticeNum.startsWith("(")){
noticeNum = noticeNum.substring(1);
}
if(noticeNum.endsWith(")")){
noticeNum = noticeNum.substring(0,noticeNum.length()-1);
}
if(StringUtils.isNotEmpty(noticeNum)){
return noticeNum;
}
}
noticeNum = title.substring(title.indexOf("(")+1 ,title.indexOf(")")- 1);
if(StringUtils.isEmpty(noticeNum)){
return title;
}else{
return noticeNum;
}
}catch (Exception e){
log.error("通过公告标题获取公告号,发生异常:" +e.getMessage(),e);
}
return title;
}
public static void main(String[] args) {
String str ="1366,768";
System.out.println(stringToHex(str));
System.out.println("313336362c373638".equals(stringToHex(str)));
System.out.println(getNoticeNumFromTitle("常熟市(320581)国有建设用地使用权挂牌出让公告"));
System.out.println(getNoticeNumFromTitle("郁南县国土资源局国有土地使用权挂牌出让公告(郁土交易(公)告字[2018]14号)"));
System.out.println(getNoticeNumFromTitle("台州市(本级)国土资源局国有建设用地使用权挂牌出让公告(台土告字[2018] 077号)"));
}
}
| 30.430769 | 186 | 0.526795 |
7babbfec805ea1a3bb4f3e4ae77470ef4bd708a8 | 6,279 | css | CSS | css/men.css | Gryffindor-team/mr-and-miss-diamond | 10cc78ec7973cac4291cf12a7908c4bbceedece0 | [
"MIT"
] | null | null | null | css/men.css | Gryffindor-team/mr-and-miss-diamond | 10cc78ec7973cac4291cf12a7908c4bbceedece0 | [
"MIT"
] | null | null | null | css/men.css | Gryffindor-team/mr-and-miss-diamond | 10cc78ec7973cac4291cf12a7908c4bbceedece0 | [
"MIT"
] | null | null | null | /*start for the main sesion */
/*start for the main sesion */
@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Oswald&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,400;1,300&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500&display=swap');
* {
box-sizing: border-box;
}
.headimg-men {
background-image: url("https://s3-eu-west-1.amazonaws.com/poslux-wordpress/wp-content/uploads/2019/02/05233503/thhero21.jpg");
background-repeat: no-repeat;
background-position: center;
background-size: cover;
width: 100%;
height: 500px;
}
.women-dress{
background-image: url("../img/menImg/dress13.jpg");
background-repeat: no-repeat;
background-size: cover;
width: 100%;
height: 500px;
}
.continer_img {
display: grid;
grid-template-columns: 20% 80%;
width: 100%;
}
.women{
display: grid;
grid-template-columns: 20% 80%;
background-color: #fde4d7d7;
color: black;
width: 100%;
}
.img {
display: grid;
grid-template-columns: repeat(3, auto);
column-gap: 10px;
margin-top: 10px;
margin-left: 30px;
}
.img-women{
display: grid;
grid-template-columns: repeat(3, auto);
column-gap: 10px;
margin-top: 10px;
margin-bottom: 20px;
margin-left: 30px;
}
/* for the filter */
.container {
overflow: hidden;
}
.filterDiv {
float: left;
background-color: #2196F3;
color: #ffffff;
width: 100px;
line-height: 100px;
text-align: center;
margin: 2px;
display: none;
/* Hidden by default */
}
.btn {
border: none;
outline: none;
padding: 12px 16px;
background-color: #f1f1f1;
cursor: pointer;
margin-left: 5px;
margin-bottom: 5px;
}
.btn:hover {
background-color: #ddd;
}
.btn.active {
background-color: #666;
color: white;
}
.blue {
background-color: #213361;
padding: 10px;
margin-left: 5px;
}
.black {
background-color: #010101;
padding: 10px;
margin-left: 5px;
}
.red {
background-color: #834044;
padding: 10px;
margin-left: 5px;
}
.add-cart {
text-decoration: none;
color: white;
border: 1px solid black;
background-color: #0b172a;
margin: 10px 0px 0 252px;
padding: 0 5px;
}
h4, p , #div1 ,#div2 , #div3 ,#div4 ,#div5 ,#div6 ,#divv1
#divv2 ,#divv3 , #divv4 ,#divv5 , #divv6 {
margin: 0px 20px 5px 0;
}
.continer_img{
background-color: rgba(0, 0, 0, 0.849);
color: white;
width: 100%;
}
.img {
margin-bottom: 20px;
}
.for-suit{
background-color: #0b172a;
color: white;
padding: 5px 20px;
margin: 5px;
cursor: pointer;
}
.filter h4 {
font-size: large;
font-weight: 400;
color: #0b172a;
margin-bottom: 10px;
text-align: center;
/* border-bottom: 1px solid #0b172a; */
text-transform: capitalize;
font-family: 'Oswald', sans-serif;
}
#filter-women h4 {
font-size: large;
font-weight: 400;
color: #0b172a;
margin-bottom: 10px;
text-align: center;
/* border-bottom: 1px solid #0b172a; */
text-transform: capitalize;
font-family: 'Oswald', sans-serif;
}
#filter-women h4:hover{
color: black;
font-weight: 500;
font-size: larger;
border-bottom: 2px solid black;
}
.filter h4:hover {
color: white;
font-weight: 500;
font-size: larger;
border-bottom: 2px solid white;
}
.color{
cursor: pointer;
}
.headimg-men {
position: relative;
}
.headimg-men h2 {
color: white;
font-size: 80px;
font-weight: 900;
/* font-family: 'Oswald', sans-serif; */
position: absolute;
top: 41%;
left: 8.5%;
text-transform: capitalize;
}
.headimg-men h2:hover {
border-bottom: 1px solid white;
}
.women-dress {
position: relative;
}
.women-dress h2 {
color: black;
font-size: 70px;
font-weight: 900;
/* font-family: 'Oswald', sans-serif; */
position: absolute;
top: 45%;
left: 9.5%;
text-transform: capitalize;}
.women-dress h2:hover {
border-bottom: 1px solid black;
}
.img-women img {
border-bottom: rgb(11 23 42) 2px solid;
box-shadow: 0 0 14px 0 #000000cf;
}
.img-women h4 ,.img h4 {
text-transform: capitalize;
font-size: medium;
font-weight: 500;
font-family: 'Oswald', sans-serif;
margin: 10px 0;
text-align: center;
}
.img-women p {
text-transform: capitalize;
font-size: small;
font-weight: 400;
font-family: 'Oswald', sans-serif;
margin: 10px 223px 10px 0;
display: inline;
}
#divv1 {
margin-bottom: 10px;
}
#divv2,#divv4,#divv5,#divv6,#divv7,#divv8,#divv9,#div1,#div2,#div3,#div4
#div5,#div6,#div7,#div8,#div9{
margin-bottom: 10px;
}
.img img {
border-bottom: rgb(255 235 205) 2px solid;
box-shadow: 0 0 10px 0 #e2dddd7d;
}
.img p {
text-transform: capitalize;
font-size: small;
font-weight: 400;
font-family: 'Oswald', sans-serif;
margin: 10px 223px 10px 0;
display: inline;
}
.add-cart{
text-transform: capitalize;
font-size: small;
font-weight: 400;
font-family: 'Oswald', sans-serif;
margin: 10px 0 10px 253px;
display: inline;
}
.img-women h4:hover{
text-decoration: underline;
}
.img h4:hover{
text-decoration: underline;
}
.img a:hover{
background-color: blanchedalmond;
color: black;
}
.img-women a:hover{
/* padding: 0px 10px; */
background-color: black;
color: blanchedalmond;
}
.black1 {
background-color: #000000;
padding: 10px;
margin-left: 5px;
}
.white {
background-color: white;
padding: 10px;
margin-left: 5px;
}
.img-women h4 p a {
display: inline;
}
.footh4{
margin-left: 23px;
font-size: 30px;
margin-top: 30px;
font-family: 'Oswald', sans-serif;
color: blanchedalmond;
} | 18.467647 | 130 | 0.592292 |
bfb12efa5b9d1d5d965f78ee578af725d9da7fa7 | 144 | kt | Kotlin | src/main/kotlin/com/sqlsorcery/Identifier.kt | sqlsorcery/sqlsorcery | cc84bcff623307d814a48485068e822b54fb63e1 | [
"MIT"
] | null | null | null | src/main/kotlin/com/sqlsorcery/Identifier.kt | sqlsorcery/sqlsorcery | cc84bcff623307d814a48485068e822b54fb63e1 | [
"MIT"
] | null | null | null | src/main/kotlin/com/sqlsorcery/Identifier.kt | sqlsorcery/sqlsorcery | cc84bcff623307d814a48485068e822b54fb63e1 | [
"MIT"
] | null | null | null | package com.sqlsorcery
import kotlin.collections.listOf
abstract class Identifier {
open val params: List<Any?>
get() = listOf()
} | 18 | 32 | 0.701389 |
2db65a2e8cbdcc23df4fd0bb5da3bf73a94ac48b | 4,259 | html | HTML | riego/web/templates/base.html | samibarasi/riego | 5ec2b28a3ce3d62a8b7b683a2520d33ae6b569af | [
"MIT"
] | 1 | 2021-08-17T20:23:49.000Z | 2021-08-17T20:23:49.000Z | riego/web/templates/base.html | samibarasi/riego | 5ec2b28a3ce3d62a8b7b683a2520d33ae6b569af | [
"MIT"
] | null | null | null | riego/web/templates/base.html | samibarasi/riego | 5ec2b28a3ce3d62a8b7b683a2520d33ae6b569af | [
"MIT"
] | 1 | 2021-05-12T13:18:27.000Z | 2021-05-12T13:18:27.000Z | <!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="{{ url('static', filename='vendor/bootstrap.min.css') }}" rel="stylesheet" type="text/css">
<link rel="icon" type="image/png" href="{{ url('static', filename='favicon.png') }}">
{% block head %}
<title>{{title}}</title>
{% endblock %}
<style>
body {
padding-bottom: 20px;
}
.navbar {
margin-bottom: 20px;
}
/* Sticky footer styles---------------- */
html {
position: relative;
min-height: 100%;
}
body {
margin-bottom: 60px;
/* Margin bottom by footer height */
}
.footer {
position: absolute;
bottom: 0;
width: 100%;
height: 60px;
/* Set the fixed height of the footer here */
line-height: 60px;
/* Vertically center the text there */
background-color: #f5f5f5;
}
</style>
</head>
<body>
{% set navigation_bar = [
(url('home'), 'home', 'Dashboard'),
(url('boxes'), 'boxes', 'Ventilboxen'),
(url('valves'), 'valves', 'Bewässerungskreise'),
(url('events'), 'events', 'Ereignisse'),
(url('users'), 'users', 'Benutzer'),
(url('system'), 'system', 'System')
] -%}
{% set active_menu = active_menu|default('home') -%}
<div class="container">
<nav class="navbar navbar-expand-lg navbar-light bg-light rounded" aria-label="Eleventh navbar example">
<div class="container-fluid">
<button class="navbar-toggler" type="button" data-bs-toggle="collapse"
data-bs-target="#navbarsExample09" aria-controls="navbarsExample09" aria-expanded="false"
aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarsExample09">
<ul class="navbar-nav me-auto mb-2 mb-lg-0">
{% for href, id, caption in navigation_bar %}
<li class="nav-item{% if id==active_menu %} active{% endif%}">
<a class="nav-link" href="{{ href|e }}">{{ caption|e }}</a>
</li>
{% endfor %}
</ul>
</div>
<div class="nav-item dropdown d-flex">
{% if user is not none %}
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownMenuLink"
role="button" data-bs-toggle="dropdown" aria-expanded="false">
{{ user['identity'] }}</a>
<ul class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
<li><a class="dropdown-item" href="{{url('logout')}}">Logout</a></li>
<li><a class="dropdown-item" href="{{url('profile')}}">Profil</a></li>
</ul>
{% else %}
<a class="nav-link" href="{{url('login')}}" id="navbarMenuLink" role="button">Login</a>
{% endif %}
</div>
</div>
</nav>
<main>
{% if alert %}
<div class="alert {{alert.class}} alert-dismissible fade show" role="alert">
{% if alert.heading %}
<h4 class="alert-heading">{{alert.heading}}</h4>
{% endif %}
<p>{{alert.text}}</p>
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
</div>
{% endif %}
{% block content%}
<h1>{{title}}</h1>
{% endblock %}
</main>
</div>
<footer class="footer">
<div class="container">
<span class="text-muted">Riego Version: {{app.version}}</span>
</div>
</footer>
<script src="{{ url('static', filename='vendor/bootstrap.bundle.min.js') }}"></script>
</body>
</html> | 34.909836 | 112 | 0.473585 |
d035ff37b9db83124627912ba9e457b0bb7c2908 | 1,721 | ps1 | PowerShell | SceneryCfgToJson.ps1 | alexgg43/P3D_SCRIPTS | 0880159c69fe1b94d946b298388c99049c0d0d54 | [
"MIT"
] | null | null | null | SceneryCfgToJson.ps1 | alexgg43/P3D_SCRIPTS | 0880159c69fe1b94d946b298388c99049c0d0d54 | [
"MIT"
] | null | null | null | SceneryCfgToJson.ps1 | alexgg43/P3D_SCRIPTS | 0880159c69fe1b94d946b298388c99049c0d0d54 | [
"MIT"
] | null | null | null | function Parse-IniFile ($file)
{
$ini = @{}
switch -regex -file $file
{
#Section.
"^\[(.+)\]$"
{
$section = $matches[1].Trim()
$ini[$section] = @{}
continue
}
#Int.
"^\s*([^#].+?)\s*=\s*(\d+)\s*$"
{
$name,$value = $matches[1..2]
$ini[$section][$name] = [int]$value
continue
}
#Bool.
"^\s*([^#].+?)\s*=\s*(TRUE|FALSE)\s*$"
{
$name,$value = $matches[1..2]
$ini[$section][$name] = ConvertTo-Boolean($value)
continue
}
#Decimal.
"^\s*([^#].+?)\s*=\s*(\d+\.\d+)\s*$"
{
$name,$value = $matches[1..2]
$ini[$section][$name] = [decimal]$value
continue
}
#Groups.
"^\s*X_(Groups)\s*=\s*(.*)\s*$"
{
$name,$value = $matches[1..2]
$ini[$section][$name] = $value.Trim().Split(',')
continue
}
#Everything else.
"^\s*([^#].+?)\s*=\s*(.*)"
{
$name,$value = $matches[1..2]
$ini[$section][$name] = $value.Trim()
}
}
return $ini
}
function ConvertTo-Boolean
{
param
(
[Parameter(Mandatory=$false)][string] $value
)
switch ($value)
{
"y" { return $true; }
"yes" { return $true; }
"true" { return $true; }
"t" { return $true; }
1 { return $true; }
"n" { return $false; }
"no" { return $false; }
"false" { return $false; }
"f" { return $false; }
0 { return $false; }
}
}
$file = "C:\ProgramData\Lockheed Martin\Prepar3D v4\scenery.cfg"
#$data = (Parse-IniFile $file).GetEnumerator() | sort Key #Transforme en array
$data = (Parse-IniFile $file)
$jsonfile = ConvertTo-Json -InputObject $data
$jsonfile | Set-Content -Path $PSScriptRoot\scenery.cfg.json -Encoding Unicode
| 20.987805 | 79 | 0.495642 |
cb43a8a14ef39268298688044722ab1bbc576a11 | 2,262 | sql | SQL | SQLSamples(Archived)/AvailabilityGroupsSamples/Lease_Timeout/LeaseTimeoutXEData.sql | VasiyaKrishnan/sqlsourabh | d867c74e6add97f5da5d6fe206f098c0d0bb42b8 | [
"MIT"
] | 3 | 2021-01-11T12:17:12.000Z | 2021-09-22T13:50:41.000Z | SQLSamples(Archived)/AvailabilityGroupsSamples/Lease_Timeout/LeaseTimeoutXEData.sql | VasiyaKrishnan/sqlsourabh | d867c74e6add97f5da5d6fe206f098c0d0bb42b8 | [
"MIT"
] | 2 | 2020-12-18T21:49:15.000Z | 2021-01-11T12:16:18.000Z | SQLSamples(Archived)/AvailabilityGroupsSamples/Lease_Timeout/LeaseTimeoutXEData.sql | VasiyaKrishnan/sqlsourabh | d867c74e6add97f5da5d6fe206f098c0d0bb42b8 | [
"MIT"
] | 7 | 2020-10-20T15:10:47.000Z | 2022-01-11T07:40:05.000Z | -- T-SQL scripts to get relevant information from the Extended Event session
--use master
--go
--create table LeaseRenewal (EventTime Datetime, EventUTCtime Datetime, New_Timeout bigint, State varchar(255),
--AgName varchar(255), ErrorCode smallint)
--create table LeaseTimeoutEvents (EventTime Datetime, EventUTCtime Datetime, New_Timeout bigint,
--AgName varchar(255), CurrentTime bigint, [State] smallint)
;WITH XEData
AS
(
SELECT CAST(xest.target_data as XML) xml_data
FROM sys.dm_xe_session_targets xest
INNER JOIN sys.dm_xe_sessions xes on xes.[address] = xest.event_session_address
WHERE xes.name = 'AG_XE_DEMO'
AND xest.target_name = 'ring_buffer'
)
insert into LeaseRenewal
SELECT
dateadd(mi,datediff(mi,getutcdate(),getdate()),event_xml.value('(./@timestamp)', 'datetime')) as [Time],
event_xml.value('(./@timestamp)', 'datetime') as [UTCTime],
event_xml.value('(./data[@name="new_timeout"]/value)[1]', 'bigint') as [New_Timeout],
event_xml.value('(./data[@name="state"]/text)[1]', 'varchar(255)') as [State],
event_xml.value('(./data[@name="id_or_name"]/value)[1]', 'varchar(255)') as [AG_Name],
event_xml.value('(./data[@name="error_code"]/value)[1]', 'varchar(255)') as [ErrorCode]
FROM XEData
CROSS APPLY xml_data.nodes('//event[@name="hadr_ag_lease_renewal"]') n (event_xml)
;WITH XEData
AS
(
SELECT CAST(xest.target_data as XML) xml_data
FROM sys.dm_xe_session_targets xest
INNER JOIN sys.dm_xe_sessions xes on xes.[address] = xest.event_session_address
WHERE xes.name = 'AG_XE_DEMO'
AND xest.target_name = 'ring_buffer'
)
Insert Into LeaseTimeoutEvents
SELECT
dateadd(mi,datediff(mi,getutcdate(),getdate()),event_xml.value('(./@timestamp)', 'datetime')) as [Time],
event_xml.value('(./@timestamp)', 'datetime') as [UTCTime],
event_xml.value('(./data[@name="new_timeout"]/value)[1]', 'bigint') as [New_Timeout],
event_xml.value('(./data[@name="availability_group_name"]/value)[1]', 'varchar(255)') as [AGName],
event_xml.value('(./data[@name="current_time"]/value)[1]', 'bigint') as [Current_Time],
event_xml.value('(./data[@name="state"]/value)[1]', 'varchar(255)') as [State]
FROM XEData
CROSS APPLY xml_data.nodes('//event[@name="availability_group_lease_expired"]') n (event_xml)
Select * from LeaseRenewal | 41.888889 | 111 | 0.730327 |
04bb1f848f98bf7066a602398a563e89d52f0047 | 562 | java | Java | src/main/java/ru/majordomo/hms/personmgr/dto/request/RestoreRequest.java | 6d6a/hms-personmgr | c0bd802b6d16f50fd79b5bf4a214789230740781 | [
"Apache-2.0"
] | null | null | null | src/main/java/ru/majordomo/hms/personmgr/dto/request/RestoreRequest.java | 6d6a/hms-personmgr | c0bd802b6d16f50fd79b5bf4a214789230740781 | [
"Apache-2.0"
] | null | null | null | src/main/java/ru/majordomo/hms/personmgr/dto/request/RestoreRequest.java | 6d6a/hms-personmgr | c0bd802b6d16f50fd79b5bf4a214789230740781 | [
"Apache-2.0"
] | null | null | null | package ru.majordomo.hms.personmgr.dto.request;
import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
@JsonTypeInfo(use = JsonTypeInfo.Id.NAME,
include = JsonTypeInfo.As.PROPERTY,
property = "type",
defaultImpl = FileRestoreRequest.class)
@JsonSubTypes({
@JsonSubTypes.Type(value = FileRestoreRequest.class,
name = "FILE"),
@JsonSubTypes.Type(value = MysqlRestoreRequest.class,
name = "MYSQL")
})
public interface RestoreRequest {}
| 29.578947 | 61 | 0.692171 |
21bcb6cedf8a97c3d166ab01e1a4d48716ff3e83 | 588 | swift | Swift | Sources/led-blink/main.swift | scottmarchington/raspberry_playground | 41632e2c45a160471eeea3c9107fb6bc7e1c51a9 | [
"MIT"
] | null | null | null | Sources/led-blink/main.swift | scottmarchington/raspberry_playground | 41632e2c45a160471eeea3c9107fb6bc7e1c51a9 | [
"MIT"
] | null | null | null | Sources/led-blink/main.swift | scottmarchington/raspberry_playground | 41632e2c45a160471eeea3c9107fb6bc7e1c51a9 | [
"MIT"
] | null | null | null | import SwiftyGPIO
import PythonAPI
import PerfectPython
import Foundation
Py_Initialize()
if let _ = try? TestPython() {
print("SUCCESS")
} else {
print("FAILURE")
}
var routines: [String: Routine] = [:]
// Setup routines
routines[MotorSpinner.commandLineName] = try MotorSpinner()
print("Welcome! To quit type exit")
while let userInput = readLine(strippingNewline: true),
userInput != "exit" {
if let routine = routines[userInput] {
routine.start()
routine.stop()
} else {
print("Unrecognized routine")
}
}
| 18.967742 | 59 | 0.641156 |
39b8ba506c955d26f7b9a4f55bdaf2976ae6354c | 752 | swift | Swift | PurchasesTests/Mocks/MockTransaction.swift | Juanpe/purchases-ios | 9538a32d2a4e27db8884ffe3eb73f163ccaf056e | [
"MIT"
] | null | null | null | PurchasesTests/Mocks/MockTransaction.swift | Juanpe/purchases-ios | 9538a32d2a4e27db8884ffe3eb73f163ccaf056e | [
"MIT"
] | null | null | null | PurchasesTests/Mocks/MockTransaction.swift | Juanpe/purchases-ios | 9538a32d2a4e27db8884ffe3eb73f163ccaf056e | [
"MIT"
] | 1 | 2021-07-31T02:17:04.000Z | 2021-07-31T02:17:04.000Z | //
// Created by RevenueCat on 3/2/20.
// Copyright (c) 2020 Purchases. All rights reserved.
//
import StoreKit
class MockTransaction: SKPaymentTransaction {
var mockPayment: SKPayment?
override var payment: SKPayment {
mockPayment ?? super.payment
}
var mockState = SKPaymentTransactionState.purchasing
override var transactionState: SKPaymentTransactionState {
mockState
}
var mockError: Error?
override var error: Error? {
mockError
}
var mockTransactionDate: Date?
override var transactionDate: Date? {
mockTransactionDate
}
var mockTransactionIdentifier: String?
override var transactionIdentifier: String? {
mockTransactionIdentifier
}
}
| 20.888889 | 62 | 0.69016 |
394c281b487187329bb8ce03756080cc3122c72e | 11,015 | swift | Swift | ServiceWorker/ServiceWorker/Fetch/FetchResponse.swift | aquariuslt/sw-webview | 6f0cbb45670b821be658a81c490d521e79c85ba4 | [
"MIT"
] | 51 | 2020-07-21T01:33:54.000Z | 2022-03-17T05:29:30.000Z | ServiceWorker/ServiceWorker/Fetch/FetchResponse.swift | aquariuslt/sw-webview | 6f0cbb45670b821be658a81c490d521e79c85ba4 | [
"MIT"
] | null | null | null | ServiceWorker/ServiceWorker/Fetch/FetchResponse.swift | aquariuslt/sw-webview | 6f0cbb45670b821be658a81c490d521e79c85ba4 | [
"MIT"
] | 9 | 2020-09-01T11:50:36.000Z | 2022-01-13T08:02:30.000Z | import Foundation
import JavaScriptCore
import PromiseKit
/// This represents a download from FetchSession. It is created as soon as status, headers etc are received,
/// and contains promise methods to transform incoming data into a variety of formats. It's modelled on the
/// Response object on the web, but our worker environments actually use FetchResponseProxy in that context.
@objc public class FetchResponse: NSObject {
/// The incoming data. In FetchSession it's assigned in a delegate method, but this could also
/// be assigned as the result of response.clone(), or new Response()
internal var streamPipe: StreamPipe?
public let headers: FetchHeaders
public fileprivate(set) var status: Int
public let url: URL?
/// Whether the response was redirected before returning the data it now has
public let redirected: Bool
public var ok: Bool {
return self.status >= 200 && self.status < 300
}
public let statusText: String
/// The most commonly used initialiser.
public convenience init(url: URL?, headers: FetchHeaders, status: Int, redirected: Bool, streamPipe: StreamPipe) {
self.init(url: url, headers: headers, status: status, statusText: HttpStatusCodes[status] ?? "Unknown", redirected: redirected, streamPipe: streamPipe)
}
/// The underlying initialiser. Only difference with the commonly used one is that we can specify statusText - normally they are
/// tied directly to the status code, but the Response API in JS lets you specify your own custom status text. Not sure why,
/// but we mirror that same behaviour here.
public init(url: URL?, headers: FetchHeaders, status: Int, statusText: String, redirected: Bool, streamPipe: StreamPipe) {
self.url = url
self.status = status
self.statusText = statusText
self.headers = headers
self.redirected = redirected
self.streamPipe = streamPipe
super.init()
}
/// Based on this: https://developer.mozilla.org/en-US/docs/Web/API/Response/clone, it allows us to process
/// the data in a response more than once - for instance, to send one copy to the cache and the other to
/// text()
func clone() throws -> FetchResponse {
guard let streamPipe = self.streamPipe else {
throw ErrorMessage("Cannot clone response after stream has been removed")
}
if self.bodyUsed {
throw ErrorMessage("Cannot clone after we've already started downloading")
}
// Once we've cloned a response, we can call a transformer (text(), data() etc) at any point,
// so the clone might need to process the data at a different time than the original response.
// To facilitate this, we use PassthroughStream to create an in-memory buffer that stores any
// unprocessed data before a transformer is called.
// POSSIBLE BUG: does the clone rely on the original response transformer being called before
// it does anything? I think it might. Need to write some tests and work out a solution for that.
let (passthroughInput, passthroughOutput) = PassthroughStream.create()
try streamPipe.add(stream: passthroughOutput)
let newStreamPipe = StreamPipe(from: passthroughInput, bufferSize: streamPipe.bufferSize)
let clone = FetchResponse(url: url, headers: headers, status: status, redirected: redirected, streamPipe: newStreamPipe)
return clone
}
/// Because our data is a linear stream, once we've started downloading we can't use it again. We use this
/// attribute to keep track of when we have, to shut off future data() and clone() use.
public fileprivate(set) var bodyUsed: Bool = false
fileprivate func markBodyUsed() throws {
if self.bodyUsed == true {
throw ErrorMessage("Body is already used")
}
self.bodyUsed = true
}
/// Pipes the incoming stream directly into memory, then returns the Data object. Most other transformers
/// chain off this to do whatever they need to with the data. Not in the web API spec, but is roughly
/// a mirror of arrayBuffer()
func data() -> Promise<Data> {
return firstly { () -> Promise<Data> in
try self.markBodyUsed()
let memoryStream = OutputStream.toMemory()
guard let streamPipe = self.streamPipe else {
throw ErrorMessage("Reference to stream pipe has been removed, can't act on data")
}
try streamPipe.add(stream: memoryStream)
return streamPipe.pipe()
.map { () -> Data in
guard let data = memoryStream.property(forKey: Stream.PropertyKey.dataWrittenToMemoryStreamKey) as? Data else {
throw ErrorMessage("Could not fetch in-memory data from stream")
}
return data
}
}
}
/// Another non-spec addition. Because we don't know the length of responses (might not have a Content-Length header,
/// or it might be wrong depending on compression), we sometimes need to save a response to disk before further
/// processing (primarily for streaming into SQLite blobs, which need to have a size predefined).
///
/// Once we have downloaded the file, we call the callback, which resolves to a promise. Once that promise is resolved
/// (that is, we can do something asynchronous) we delete the temporarily stored file.
public func fileDownload<T>(_ callback: @escaping (URL, Int64) throws -> Promise<T>) -> Promise<T> {
// The resulting type of this promise is dictated by the object returned by the inner callback.
// The idea being that the code using fileDownload() can relatively seamlessly pass a result back
// into the main promise chain without worrying about manually deleting the temp file.
return firstly { () -> Promise<T> in
try self.markBodyUsed()
guard let streamPipe = self.streamPipe else {
throw ErrorMessage("Reference to StreamPipe has been removed, cannot turn into download")
}
// We store the files in NSTemporaryDirectory(). There might be better places for that, I'm
// not sure.
let downloadPath = URL(fileURLWithPath: NSTemporaryDirectory(), isDirectory: true)
// We're just using a randomised UUID here. Are there better alternatives?
.appendingPathComponent(UUID().uuidString)
// Then appending .download to the end of it, because why not.
.appendingPathExtension("download")
// Foundation has a built-in stream for writing to a local file, so we use that to pipe
// out download stream into it.
guard let fileStream = OutputStream(url: downloadPath, append: false) else {
throw ErrorMessage("Could not create local file stream")
}
try streamPipe.add(stream: fileStream)
return streamPipe.pipe()
.then { () -> Promise<T> in
// Since the main reason for using fileDownload() is to get the size of the file,
// we're doing so here to save replicating the code everywhere.
let fileAttributes = try FileManager.default.attributesOfItem(atPath: downloadPath.path)
guard let size = fileAttributes[.size] as? Int64 else {
throw ErrorMessage("Could not get size of downloaded file")
}
// Callback is a generic function that allows us to return whatever we want, which is then
// passed on to be the result of this promise chain.
return try callback(downloadPath, size)
}
.ensure {
// Now that our promise has been resolved (successfully or not)
// we can delete the temporary file we just downloaded.
do {
try FileManager.default.removeItem(at: downloadPath)
} catch {
Log.error?("Could not delete temporary fetch file at \(downloadPath.path)")
}
}
}
}
/// Pretty much what you'd expect. Uses JSONSerialization to turn the data into
/// a Dictionary, Array, nil, or whatever the JSON represents.
func json() -> Promise<Any?> {
return self.data()
.map { data in
try JSONSerialization.jsonObject(with: data, options: [])
}
}
/// There might be a native way of doing this that I'm not aware of, but when using text() we need
/// to know what charset to decode with. We default to UTF8, but if the Content-Type header specifies
/// a different charset, we use that instead.
fileprivate static func guessCharsetFrom(headers: FetchHeaders) -> String.Encoding {
var charset = String.Encoding.utf8
if let contentTypeHeader = headers.get("Content-Type") {
do {
let charsetRegex = try NSRegularExpression(pattern: ";\\s?charset=(.*)+", options: [])
let charsetMatches = charsetRegex.matches(in: contentTypeHeader, options: [], range: NSRange(location: 0, length: contentTypeHeader.count))
if let relevantMatch = charsetMatches.first {
let matchText = (contentTypeHeader as NSString).substring(with: relevantMatch.range).lowercased()
if matchText == "utf-16" {
charset = String.Encoding.utf16
} else if matchText == "utf-32" {
charset = String.Encoding.utf32
} else if matchText == "iso-8859-1" {
charset = String.Encoding.windowsCP1252
}
}
} catch {
Log.warn?("Couldn't parse charset: \(contentTypeHeader)")
}
}
return charset
}
/// Transform the stream data into text.
public func text() -> Promise<String> {
let encoding = FetchResponse.guessCharsetFrom(headers: self.headers)
return self.data()
.map { data -> String in
guard let str = String(data: data, encoding: encoding) else {
throw ErrorMessage("Could not decode string content")
}
return str
}
}
/// FetchResponseProxy isn't actually a public class, while FetchResponse is. Might want to rethink that,
/// but for now, this allows code outside of ServiceWorker (like, Cache API code) to construct different
/// response types.
public func getWrappedVersion(for type: ResponseType) throws -> FetchResponseProtocol {
return FetchResponseProxy(from: self, type: type)
}
}
| 47.478448 | 159 | 0.630958 |
6e21cf6e7396daef01eb89807056a15374aff0b4 | 5,217 | html | HTML | docs/seed/loader.html | zhaozexin/kissy | e276722b92bd434d399a15fbd4f4fac0424a5ac2 | [
"MIT"
] | null | null | null | docs/seed/loader.html | zhaozexin/kissy | e276722b92bd434d399a15fbd4f4fac0424a5ac2 | [
"MIT"
] | null | null | null | docs/seed/loader.html | zhaozexin/kissy | e276722b92bd434d399a15fbd4f4fac0424a5ac2 | [
"MIT"
] | 1 | 2020-08-14T06:24:01.000Z | 2020-08-14T06:24:01.000Z | <!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>loader ‹ KISSY Docs</title>
<link rel="stylesheet" href="../assets/base-min.css" />
<link rel="stylesheet" href="../assets/docs.css" />
</head>
<body class="w866">
<div id="header">
<a class="logo" href="../index.html"><img src="../assets/logo.png" alt="KISSY" width="138" height="74" /></a>
<p class="rel-nav">
<a href="http://github.com/kissyteam/kissy/tree/master/src/seed/loader.js"><code>loader.js</code></a>
</p>
</div>
<div id="content" class="layout grid-s232m0">
<div class="col-main">
<div class="main-wrap">
<div class="section summary">
<p> loader 是一个处理脚本依赖关系的加载器,实现了按需加载、延迟加载、加载相关联的 js/css 等功能。</p>
<p class="tips">更多关于 loader 的设计与分析,见<a href="http://www.uedmagazine.com/ued/comments.php?y=10&m=08&entry=entry100814-104521"> KISSY loader 的设计</a> </p>
</div>
<div class="section">
<h3 id="methods">Methods</h3>
<div class="member method">
<h4>
<a name="method_add">add</a>
<code>KISSY <em>add</em> ( name, fn, config )</code>
</h4>
<div class="detail">
<p>注册一个模块到 KISSY 中。</p>
<dl class="parameters">
<dt>Parameters:</dt>
<dd>
<code class="param-name">name</code>
<code class="param-type"><String></code>
模块的名字。
</dd>
<dd>
<code class="param-name">fn</code>
<code class="param-type"><Function></code>
注册指定模块到 KISSY 中的入口方法。
</dd>
<dd>
<code class="param-name">config</code>
<code class="param-type"><Object></code>
配置信息,有如下一些可用选项:
<pre class="example-code"><code>
config = {
path: 'packages/core-min.js', // 脚本相对路径
fullpath: 'http://xxxx/build/packages/core-min.js', // 脚本绝对路径
csspath: 'cssbase/base-min.css', // CSS 文件相对路径
cssfullpath: 'http://xxxx/build/cssbase/base-min.css', // CSS 文件绝对路径
requires: ['mod1','mod2'] // 指定依赖的模块
}
</code></pre>
</dd>
</dl>
<dl class="return">
<dt>Returns: <code>KISSY</code></dt>
<dd>KISSY 对象。</dd>
</dl>
</div>
<pre class="example-code"><code>
var S = KISSY;
S.app('TEST');
// 为模块添加命名空间
TEST.namespace('mods');
// 添加模块依赖关系
TEST.add({
'test-core': {
fullpath: 'http://xxxx/build/packages/core-min.js'
},
'test~global': {
requires: ['test-core']
}
});
</code></pre>
</div>
<div class="member method">
<h4>
<a name="method_use">use</a>
<code>KISSY <em>use</em> ( modNames, callback)</code>
</h4>
<div class="detail">
<p>开始加载所需模块,并且在所需模块加载完毕后,执行回调函数。</p>
<dl class="parameters">
<dt>Parameters:</dt>
<dd>
<code class="param-name">modNames</code>
<code class="param-type"><String></code>
模块的名字,多个模块以“,”分隔。
</dd>
<dd>
<code class="param-name">callback</code>
<code class="param-type"><Function></code>
加载所需模块完毕后执行的回调函数。
</dd>
</dl>
<dl class="return">
<dt>Returns: <code>KISSY</code></dt>
<dd>KISSY 对象。</dd>
</dl>
</div>
<pre class="example-code"><code>
KISSY.use('sizzle', function(){
console.log(S.get('.menu .submenu a'));
});
</code></pre>
</div>
</div>
</div>
</div>
<div class="col-sub">
<div class="sub-wrap">
<div class="loc">
<a href="../index.html">home</a> ›
<a href="index.html">seed</a> ›
loader :
</div>
<div class="toc">
<h3>Methods</h3>
<ul>
<li><a href="#method_add">add</a></li>
<li><a href="#method_use">use</a></li>
</ul>
</div>
</div>
</div>
</div>
<div id="footer">
<p class="copyright">© 2009 - 2029 KISSY UI LIBRARY</p>
</div>
</body>
</html> | 37 | 167 | 0.40253 |
56726841d02cecfe79368c9a8c1cc7d86b284f4f | 385 | ps1 | PowerShell | LatestBoot.ps1 | luc1d-dev/LatestBoot | fb1f1c7cfa9c2659cf26abbb890680d6b8813611 | [
"CC0-1.0"
] | 2 | 2019-12-11T07:36:42.000Z | 2019-12-18T05:01:48.000Z | LatestBoot.ps1 | luc1d-dev/LatestBoot | fb1f1c7cfa9c2659cf26abbb890680d6b8813611 | [
"CC0-1.0"
] | null | null | null | LatestBoot.ps1 | luc1d-dev/LatestBoot | fb1f1c7cfa9c2659cf26abbb890680d6b8813611 | [
"CC0-1.0"
] | null | null | null | $list = get-Content rebootlist.txt
cls
write-host $list.count "systems targeted, listing details:"
$stat = 'sys.osuptime.latest'
$now = Get-Date
foreach ($vm in $list)
{
Get-Stat -Entity $vm -Stat $stat -Realtime -MaxSamples 1 |
Select @{N='VM';E={$_.Entity.Name}},
@{N='LastOSBoot';E={$now.AddSeconds(- $_.Value)}},
@{N='UptimeDays';E={[math]::Floor($_.Value/(24*60*60))}}
}
| 27.5 | 60 | 0.649351 |
07fc6a3f803486c78449fbbd0a8830c082728ada | 526 | h | C | library.h | framefactory/ff-esp-arduino | 9c4677da062708af8d245c8fd7cd2e6a6ad9606c | [
"MIT"
] | null | null | null | library.h | framefactory/ff-esp-arduino | 9c4677da062708af8d245c8fd7cd2e6a6ad9606c | [
"MIT"
] | null | null | null | library.h | framefactory/ff-esp-arduino | 9c4677da062708af8d245c8fd7cd2e6a6ad9606c | [
"MIT"
] | null | null | null | /**
* ESP/Arduino Core Library
* Copyright 2020 Frame Factory GmbH, Ralph Wiedemeier
* License: MIT
*/
#ifndef _ESP_CORE_LIBRARY_H
#define _ESP_CORE_LIBRARY_H
#include <cstdint>
#include <Arduino.h>
// MACROS
#define F_BEGIN_NAMESPACE namespace ff {
#define F_END_NAMESPACE }
#define F_USE_NAMESPACE using namespace ff;
#define F_SAFE_DELETE(p) if (p) { delete (p); (p) = nullptr; }
#define F_DISABLE_COPY(Class) private: Class(const Class& other); Class& operator=(const Class& other);
#endif // _ESP_CORE_LIBRARY_H | 23.909091 | 103 | 0.749049 |
4b49c3b584950d3695e54c2b7155c07573c4affa | 321 | html | HTML | Project 6/bookmarks/templates/registration/password_reset_done.html | cberry216/django-practice | 1f825aaf81b29977d8313f6afb734da4d1c1685a | [
"MIT"
] | null | null | null | Project 6/bookmarks/templates/registration/password_reset_done.html | cberry216/django-practice | 1f825aaf81b29977d8313f6afb734da4d1c1685a | [
"MIT"
] | 2 | 2021-03-18T21:34:36.000Z | 2021-03-19T15:43:43.000Z | Project 6/bookmarks/templates/registration/password_reset_done.html | cberry216/django-practice | 1f825aaf81b29977d8313f6afb734da4d1c1685a | [
"MIT"
] | null | null | null | {% extends "base.html" %}
{% block title %}Reset Password{% endblock title %}
{% block content %}
<h1>Reset Password</h1>
<p>We've emailed you instructions for setting your password.</p>
<p>If you don't recieve an email, please make sure you've entered the adddress you registered with.</p>
{% endblock content %} | 35.666667 | 105 | 0.697819 |
0778724f6516176dfbc6c78d6bc451ac4e7026bd | 843 | sql | SQL | openGaussBase/testcase/KEYWORDS/cascaded/Opengauss_Function_Keyword_Cascaded_Case0028.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/cascaded/Opengauss_Function_Keyword_Cascaded_Case0028.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | openGaussBase/testcase/KEYWORDS/cascaded/Opengauss_Function_Keyword_Cascaded_Case0028.sql | opengauss-mirror/Yat | aef107a8304b94e5d99b4f1f36eb46755eb8919e | [
"MulanPSL-1.0"
] | null | null | null | -- @testpoint: opengauss关键字cascaded(非保留),作为同义词对象名,部分测试点合理报错
--前置条件
drop table if exists cascaded_test;
create table cascaded_test(id int,name varchar(10));
--关键字不带引号-成功
drop synonym if exists cascaded;
create synonym cascaded for cascaded_test;
insert into cascaded values (1,'ada'),(2, 'bob');
update cascaded set cascaded.name='cici' where cascaded.id=2;
select * from cascaded;
--清理环境
drop synonym if exists cascaded;
--关键字带双引号-成功
drop synonym if exists "cascaded";
create synonym "cascaded" for cascaded_test;
insert into "cascaded" values (1,'ada'),(2, 'bob');
update "cascaded" set "cascaded".name='cici' where "cascaded".id=2;
select * from "cascaded";
--清理环境
drop synonym if exists "cascaded";
--关键字带单引号-合理报错
drop synonym if exists 'cascaded';
--关键字带反引号-合理报错
drop synonym if exists `cascaded`;
drop table if exists cascaded_test; | 27.193548 | 67 | 0.755635 |
f7b70e39116540a20d83151543c8e7c864dbcaf0 | 1,043 | kt | Kotlin | mod/src/main/kotlin/extracells/feature/gui/ECGuiHandler.kt | rougsig/ExtraCells2 | 6b6d08c7e481fee4800400375f48c7dab961adb5 | [
"MIT"
] | null | null | null | mod/src/main/kotlin/extracells/feature/gui/ECGuiHandler.kt | rougsig/ExtraCells2 | 6b6d08c7e481fee4800400375f48c7dab961adb5 | [
"MIT"
] | null | null | null | mod/src/main/kotlin/extracells/feature/gui/ECGuiHandler.kt | rougsig/ExtraCells2 | 6b6d08c7e481fee4800400375f48c7dab961adb5 | [
"MIT"
] | 1 | 2022-02-09T15:02:59.000Z | 2022-02-09T15:02:59.000Z | package extracells.feature.gui
import appeng.api.parts.IPartHost
import cpw.mods.fml.common.network.IGuiHandler
import extracells.feature.part.fluidterminal.FluidTerminalPart
import extracells.feature.part.fluidterminal.gui.FluidTerminalContainer
import extracells.feature.part.fluidterminal.gui.FluidTerminalGui
import net.minecraft.entity.player.EntityPlayer
import net.minecraft.world.World
internal class ECGuiHandler : IGuiHandler {
override fun getServerGuiElement(meta: Int, player: EntityPlayer, world: World, x: Int, y: Int, z: Int): Any {
val meta = ECGuiMeta.decode(meta)
val tile = (world.getTileEntity(x, y, z) as IPartHost).getPart(meta.side) as FluidTerminalPart
return FluidTerminalContainer(tile, player)
}
override fun getClientGuiElement(meta: Int, player: EntityPlayer, world: World, x: Int, y: Int, z: Int): Any {
val meta = ECGuiMeta.decode(meta)
val tile = (world.getTileEntity(x, y, z) as IPartHost).getPart(meta.side) as FluidTerminalPart
return FluidTerminalGui(tile, player)
}
}
| 40.115385 | 112 | 0.777565 |
609fe4e0c49f6d5ec94308e4f360282c4e6da2cb | 133 | asm | Assembly | programs/oeis/010/A010930.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/010/A010930.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/010/A010930.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A010930: Binomial coefficient C(14,n).
; 1,14,91,364,1001,2002,3003,3432,3003,2002,1001,364,91,14,1
mov $1,14
bin $1,$0
mov $0,$1
| 19 | 60 | 0.676692 |
c8a8ef997c02af68f44a89ef90f04dca6c68a815 | 1,925 | swift | Swift | CurrencyConverter/Presenter/CurrencyConverterPresenter.swift | AndresR173/CurrencyConverter | 6bcb9c67e42cb62612b54ed43ca76145aae4889f | [
"MIT"
] | null | null | null | CurrencyConverter/Presenter/CurrencyConverterPresenter.swift | AndresR173/CurrencyConverter | 6bcb9c67e42cb62612b54ed43ca76145aae4889f | [
"MIT"
] | null | null | null | CurrencyConverter/Presenter/CurrencyConverterPresenter.swift | AndresR173/CurrencyConverter | 6bcb9c67e42cb62612b54ed43ca76145aae4889f | [
"MIT"
] | null | null | null | //
// CurrencyConverterPresenter.swift
// CurrencyConverter
//
// Created by Andres Rojas on 22/11/19.
// Copyright © 2019 Andres Rojas. All rights reserved.
//
import Foundation
protocol CurrencyConverterPresenterView: class {
func displayValues(_ values: [DataEntry], animated: Bool)
}
class CurrencyConverterPresenter {
// MARK: - Properties
private weak var view: CurrencyConverterPresenterView?
private var rates: [CurrencyRate]?
private var base: Rate = .usd
private var lastValue: String?
// MARK: - Helpers
func attachView(_ view: CurrencyConverterPresenterView?) {
self.view = view
}
func didEnterValue(_ value: String?) {
resetRates()
lastValue = value
guard let value = value,
let doubleValue = Double(value),
doubleValue > 0,
let rates = self.rates else { return }
self.view?.displayValues(rates.getDataEntries(for: base, value: doubleValue), animated: true)
}
func updateRates(for index: Int) {
guard let rate = Rate.allRates.first(where: { $0.name == Rate.availableRates[index] }) else {
return
}
base = rate
getRates()
}
private func resetRates() {
let dataEntries: [DataEntry] = Rate.allRates.compactMap {
guard $0 != base else { return nil }
return DataEntry(color: $0.color, height: 0, textValue: "", title: $0.name)
}
self.view?.displayValues(dataEntries, animated: false)
}
private func getRates() {
ConverterRepository.getRates(from: base) { [weak self] result in
switch result {
case .success(let response):
self?.rates = response.rates.getRates()
self?.didEnterValue(self?.lastValue)
case .failure(_):
self?.rates = nil
}
}
}
}
| 24.679487 | 102 | 0.601039 |
11c8b434fb02e2632d932da492e9ac95fa34ac85 | 3,813 | sql | SQL | EIE3112/CreateDB.sql | DDQXZcp/PolyU_2020_sem2 | 375354330974bc305a0716a6aee103fd78c1ae63 | [
"MIT"
] | 5 | 2020-02-19T06:18:18.000Z | 2022-03-22T08:33:45.000Z | EIE3112/CreateDB.sql | DDQXZcp/PolyU_2020_sem2 | 375354330974bc305a0716a6aee103fd78c1ae63 | [
"MIT"
] | null | null | null | EIE3112/CreateDB.sql | DDQXZcp/PolyU_2020_sem2 | 375354330974bc305a0716a6aee103fd78c1ae63 | [
"MIT"
] | 1 | 2021-04-11T11:45:50.000Z | 2021-04-11T11:45:50.000Z | DROP DATABASE IF EXISTS Lab1;
CREATE DATABASE IF NOT EXISTS Lab1;
USE Lab1;
-- MySQL Workbench Forward Engineering
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0;
SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0;
SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';
-- -----------------------------------------------------
-- Schema mydb
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Schema Homework1
-- -----------------------------------------------------
-- -----------------------------------------------------
-- Table `Customer`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `Customer` (
`CustNo` CHAR(8) NOT NULL,
`FirstName` VARCHAR(45) NULL,
`LastName` VARCHAR(45) NULL,
`Street` VARCHAR(45) NULL,
`City` VARCHAR(45) NULL,
`State` VARCHAR(45) NULL,
`PhoneNo` VARCHAR(45) NULL,
`CustBal` VARCHAR(45) NULL,
PRIMARY KEY (`CustNo`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `Employee`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `Employee` (
`EmpNo` CHAR(8) NOT NULL,
`FirstName` VARCHAR(45) NULL,
`LastName` VARCHAR(45) NULL,
`PhoneNo` VARCHAR(45) NULL,
`Email` VARCHAR(45) NULL,
PRIMARY KEY (`EmpNo`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `Order`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `Order` (
`OrderNo` CHAR(8) NOT NULL,
`OrderDate` VARCHAR(45) NULL,
`Customer_CustNo` CHAR(8) NOT NULL,
`Employee_EmpNo` CHAR(8) NULL,
`CustName` VARCHAR(45) NULL,
`Street` VARCHAR(45) NULL,
`City` VARCHAR(45) NULL,
`State` VARCHAR(45) NULL,
`PhoneNo` VARCHAR(45) NULL,
PRIMARY KEY (`OrderNo`),
INDEX `fk_Order_Customer_idx` (`Customer_CustNo` ASC) VISIBLE,
INDEX `fk_Order_Employee1_idx` (`Employee_EmpNo` ASC) VISIBLE,
CONSTRAINT `fk_Order_Customer`
FOREIGN KEY (`Customer_CustNo`)
REFERENCES `Customer` (`CustNo`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_Order_Employee1`
FOREIGN KEY (`Employee_EmpNo`)
REFERENCES `Employee` (`EmpNo`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `Product`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `Product` (
`ProdNo` CHAR(8) NOT NULL,
`ProdName` VARCHAR(45) NULL,
`Mfg` VARCHAR(45) NULL,
`Stock` INT NULL,
`Price` VARCHAR(45) NULL,
PRIMARY KEY (`ProdNo`))
ENGINE = InnoDB;
-- -----------------------------------------------------
-- Table `ProductInOrder`
-- -----------------------------------------------------
CREATE TABLE IF NOT EXISTS `ProductInOrder` (
`Order_OrderNo` CHAR(8) NOT NULL,
`Product_ProdNo` CHAR(8) NOT NULL,
`Qty` INT NULL,
INDEX `fk_ProductInOrder_Order1_idx` (`Order_OrderNo` ASC) VISIBLE,
INDEX `fk_ProductInOrder_Product1_idx` (`Product_ProdNo` ASC) VISIBLE,
PRIMARY KEY (`Order_OrderNo`, `Product_ProdNo`),
CONSTRAINT `fk_ProductInOrder_Order1`
FOREIGN KEY (`Order_OrderNo`)
REFERENCES `Order` (`OrderNo`)
ON DELETE NO ACTION
ON UPDATE NO ACTION,
CONSTRAINT `fk_ProductInOrder_Product1`
FOREIGN KEY (`Product_ProdNo`)
REFERENCES `Product` (`ProdNo`)
ON DELETE NO ACTION
ON UPDATE NO ACTION)
ENGINE = InnoDB;
SET SQL_MODE=@OLD_SQL_MODE;
SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS;
SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS;
| 33.156522 | 160 | 0.548387 |
fbd44abf217e9f43775ecd3a81604cf2ee0658ec | 422 | java | Java | springboot-demos02/springbootdemo148-Hsqldb/src/main/java/com/kenshine/hsqldb/mapper/BlogMapper.java | zjxkenshine/codedemo | 754a6458605e3d7d0e98fb0c1926234b2719b2d7 | [
"Apache-2.0"
] | 1 | 2021-10-30T13:06:52.000Z | 2021-10-30T13:06:52.000Z | springboot-demos02/springbootdemo148-Hsqldb/src/main/java/com/kenshine/hsqldb/mapper/BlogMapper.java | zjxkenshine/codedemo | 754a6458605e3d7d0e98fb0c1926234b2719b2d7 | [
"Apache-2.0"
] | null | null | null | springboot-demos02/springbootdemo148-Hsqldb/src/main/java/com/kenshine/hsqldb/mapper/BlogMapper.java | zjxkenshine/codedemo | 754a6458605e3d7d0e98fb0c1926234b2719b2d7 | [
"Apache-2.0"
] | null | null | null | package com.kenshine.hsqldb.mapper;
import com.kenshine.hsqldb.entity.Blog;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import java.util.List;
/**
* @author :kenshine
* @date :Created in 2021/12/5 18:01
* @description:
* @modified By:
* @version: $
*/
@Repository
public interface BlogMapper {
@Select(value = "select * from blog")
List<Blog> query();
}
| 20.095238 | 49 | 0.71564 |
5814d93d1e7073a7476de779d527de49f597fc26 | 2,945 | h | C | src/stream.h | emmanuel-marty/lz4ultra | 7afa7fa5947059adae6e068591e57fcfa1fbc9f9 | [
"Zlib",
"CC0-1.0"
] | 46 | 2019-04-09T02:33:36.000Z | 2022-01-25T12:14:17.000Z | src/stream.h | emmanuel-marty/lz4ultra | 7afa7fa5947059adae6e068591e57fcfa1fbc9f9 | [
"Zlib",
"CC0-1.0"
] | null | null | null | src/stream.h | emmanuel-marty/lz4ultra | 7afa7fa5947059adae6e068591e57fcfa1fbc9f9 | [
"Zlib",
"CC0-1.0"
] | 3 | 2019-07-24T08:40:47.000Z | 2021-05-01T15:08:06.000Z | /*
* stream.h - streaming I/O definitions
*
* Copyright (C) 2019 Emmanuel Marty
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
* arising from the use of this software.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely, subject to the following restrictions:
*
* 1. The origin of this software must not be misrepresented; you must not
* claim that you wrote the original software. If you use this software
* in a product, an acknowledgment in the product documentation would be
* appreciated but is not required.
* 2. Altered source versions must be plainly marked as such, and must not be
* misrepresented as being the original software.
* 3. This notice may not be removed or altered from any source distribution.
*/
/*
* Uses the libdivsufsort library Copyright (c) 2003-2008 Yuta Mori
*
* Inspired by LZ4 by Yann Collet. https://github.com/lz4/lz4
* With help, ideas, optimizations and speed measurements by spke <zxintrospec@gmail.com>
* With ideas from Lizard by Przemyslaw Skibinski and Yann Collet. https://github.com/inikep/lizard
* Also with ideas from smallz4 by Stephan Brumme. https://create.stephan-brumme.com/smallz4/
*
*/
#ifndef _STREAM_H
#define _STREAM_H
/* Forward declaration */
typedef struct _lz4ultra_stream_t lz4ultra_stream_t;
/* I/O stream */
typedef struct _lz4ultra_stream_t {
/** Opaque stream-specific pointer */
void *obj;
/**
* Read from stream
*
* @param stream stream
* @param ptr buffer to read into
* @param size number of bytes to read
*
* @return number of bytes read
*/
size_t(*read)(lz4ultra_stream_t *stream, void *ptr, size_t size);
/**
* Write to stream
*
* @param stream stream
* @param ptr buffer to write from
* @param size number of bytes to write
*
* @return number of bytes written
*/
size_t(*write)(lz4ultra_stream_t *stream, void *ptr, size_t size);
/**
* Check if stream has reached the end of the data
*
* @param stream stream
*
* @return nonzero if the end of the data has been reached, 0 if there is more data
*/
int(*eof)(lz4ultra_stream_t *stream);
/**
* Close stream
*
* @param stream stream
*/
void(*close)(lz4ultra_stream_t *stream);
} lz4ultra_stream_t;
/**
* Open file and create an I/O stream from it
*
* @param stream stream to fill out
* @param pszInFilename filename
* @param pszMode open mode, as with fopen()
*
* @return 0 for success, nonzero for failure
*/
int lz4ultra_filestream_open(lz4ultra_stream_t *stream, const char *pszInFilename, const char *pszMode);
#endif /* _STREAM_H */
| 30.677083 | 105 | 0.675722 |
3f0d683d15d849c926e9bd743cf376a73bef8455 | 1,854 | swift | Swift | HospitalOne/Controllers/AppointmentController.swift | HospitalOne/HospitalApp | 50c64cde1b3c441739a37fa11924bd575298d363 | [
"MIT"
] | null | null | null | HospitalOne/Controllers/AppointmentController.swift | HospitalOne/HospitalApp | 50c64cde1b3c441739a37fa11924bd575298d363 | [
"MIT"
] | null | null | null | HospitalOne/Controllers/AppointmentController.swift | HospitalOne/HospitalApp | 50c64cde1b3c441739a37fa11924bd575298d363 | [
"MIT"
] | null | null | null | //
// AppointmentController.swift
// HospitalOne
//
// Created by Daniil Belikov on 18.10.2019.
// Copyright © 2019 Tolyatti City Hospital No.1. All rights reserved.
//
import UIKit
import WebKit
final class AppointmentController: UIViewController {
// MARK: - IBOutlets
@IBOutlet private weak var containerView: UIView? = nil
@IBOutlet private weak var webView: WKWebView!
@IBOutlet private weak var activityIndicator: UIActivityIndicatorView!
// MARK: - Life Cycles Methods
override func viewDidLoad() {
super.viewDidLoad()
configureActivityIndicator()
configureWebView()
loadWebView()
}
}
// MARK: - WKNavigationDelegate Methods
extension AppointmentController: WKNavigationDelegate {
func webView(_ webView: WKWebView,
didFinish navigation: WKNavigation!) {
activityIndicator.stopAnimating()
}
func webView(_ webView: WKWebView,
didFail navigation: WKNavigation!,
withError error: Error) {
activityIndicator.stopAnimating()
}
}
// MARK: - Private Configure Methods
extension AppointmentController {
func configureActivityIndicator() {
// Configure display of Activity Indicator.
activityIndicator.hidesWhenStopped = true
activityIndicator.startAnimating()
}
func configureWebView() {
// Configure display of WebView.
webView.isUserInteractionEnabled = true
webView.addSubview(activityIndicator)
webView.navigationDelegate = self
}
func loadWebView() {
// Load WebView.
guard let url = URL(string: GlobalConstants.API.appointment) else { return }
let request = URLRequest(url: url)
webView.load(request)
}
}
| 24.72 | 84 | 0.647249 |
051a911e7ab3b5496a132f5428b86373c2d6a40d | 432 | jbuilder | Ruby | app/views/api/v1/widget/messages/create.json.jbuilder | alejandropereira/chatwoot | b0950d6880664af2ba56994847f2b19b0ad0ec92 | [
"MIT"
] | null | null | null | app/views/api/v1/widget/messages/create.json.jbuilder | alejandropereira/chatwoot | b0950d6880664af2ba56994847f2b19b0ad0ec92 | [
"MIT"
] | null | null | null | app/views/api/v1/widget/messages/create.json.jbuilder | alejandropereira/chatwoot | b0950d6880664af2ba56994847f2b19b0ad0ec92 | [
"MIT"
] | null | null | null | json.id @message.id
json.content @message.content
json.inbox_id @message.inbox_id
json.conversation_id @message.conversation.display_id
json.message_type @message.message_type_before_type_cast
json.created_at @message.created_at.to_i
json.private @message.private
json.source_id @message.source_id
json.attachment @message.attachment.push_event_data if @message.attachment
json.sender @message.user.push_event_data if @message.user
| 39.272727 | 74 | 0.856481 |
9bf441bb5296a0ad4f735149830922aa47181276 | 681 | js | JavaScript | src/components/Link/RouteContext.js | Akii/wheelmap-react-frontend | c8f8aadac32dc87dea39e973b532fbf0f44ac3b8 | [
"MIT"
] | null | null | null | src/components/Link/RouteContext.js | Akii/wheelmap-react-frontend | c8f8aadac32dc87dea39e973b532fbf0f44ac3b8 | [
"MIT"
] | null | null | null | src/components/Link/RouteContext.js | Akii/wheelmap-react-frontend | c8f8aadac32dc87dea39e973b532fbf0f44ac3b8 | [
"MIT"
] | null | null | null | // @flow
import React, { createContext } from 'react';
import { type RouterHistory, type RouteParams } from '../../lib/RouterHistory';
export type RouteContext = {
params: RouteParams,
history: RouterHistory,
name: string,
};
const { Provider: RouteProvider, Consumer: BaseRouteConsumer } = createContext<?RouteContext>();
const RouteConsumer = ({ children }: { children: (context: RouteContext) => React$Node }) => (
<BaseRouteConsumer>
{(context: ?RouteContext) => {
if (context == null) {
throw new Error('Missing route context.');
}
return children(context);
}}
</BaseRouteConsumer>
);
export { RouteProvider, RouteConsumer };
| 25.222222 | 96 | 0.665198 |
2da9c09e5bb067f9c3e83551e8657d7dd224f702 | 4,147 | html | HTML | 113489-new-members/topic/a.20.3E.20a.20is.20false.html | robertylewis/website_test | e7373d5751057041945bda7d81d8727f7e4bbed8 | [
"MIT"
] | null | null | null | 113489-new-members/topic/a.20.3E.20a.20is.20false.html | robertylewis/website_test | e7373d5751057041945bda7d81d8727f7e4bbed8 | [
"MIT"
] | 2 | 2020-04-01T09:40:58.000Z | 2020-04-01T09:40:59.000Z | 113489-new-members/topic/a.20.3E.20a.20is.20false.html | robertylewis/website_test | e7373d5751057041945bda7d81d8727f7e4bbed8 | [
"MIT"
] | null | null | null | ---
layout: archive
title: Zulip Chat Archive
permalink: /stream/113489-new-members/topic/a.20.3E.20a.20is.20false.html
---
<h2>Stream: <a href="http://robertylewis.com/website_test/stream/113489-new-members/index.html">new members</a></h2>
<h3>Topic: <a href="http://robertylewis.com/website_test/stream/113489-new-members/topic/a.20.3E.20a.20is.20false.html">a > a is false</a></h3>
<hr>
<base href="https://leanprover.zulipchat.com/">
<head><link href="/style.css" rel="stylesheet"></head>
{% raw %}
<a name="190623208"></a>
<h4><a href="https://leanprover.zulipchat.com/#narrow/stream/113489-new%20members/topic/a%20%3E%20a%20is%20false/near/190623208" class="zl"><img src="http://robertylewis.com/website_test/assets/img/zulip2.png" alt="view this post on Zulip"></a> Debendro Mookerjee <a href="http://robertylewis.com/website_test/stream/113489-new-members/topic/a.20.3E.20a.20is.20false.html#190623208">(Mar 15 2020 at 01:12)</a>:</h4>
<p>Is there any way to show that a > a is false in lean?</p>
<a name="190623497"></a>
<h4><a href="https://leanprover.zulipchat.com/#narrow/stream/113489-new%20members/topic/a%20%3E%20a%20is%20false/near/190623497" class="zl"><img src="http://robertylewis.com/website_test/assets/img/zulip2.png" alt="view this post on Zulip"></a> Bryan Gin-ge Chen <a href="http://robertylewis.com/website_test/stream/113489-new-members/topic/a.20.3E.20a.20is.20false.html#190623497">(Mar 15 2020 at 01:21)</a>:</h4>
<p>Here's one way:</p>
<div class="codehilite"><pre><span></span><span class="kn">import</span> <span class="n">tactic</span>
<span class="kn">example</span> <span class="o">(</span><span class="n">a</span> <span class="o">:</span> <span class="bp">ℕ</span><span class="o">)</span> <span class="o">:</span> <span class="bp">¬</span> <span class="n">a</span> <span class="bp"><</span> <span class="n">a</span> <span class="o">:=</span> <span class="k">by</span> <span class="n">library_search</span>
<span class="c1">-- Try this: exact irrefl a</span>
<span class="kn">example</span> <span class="o">(</span><span class="n">a</span> <span class="o">:</span> <span class="bp">ℕ</span><span class="o">)</span> <span class="o">:</span> <span class="bp">¬</span> <span class="n">a</span> <span class="bp"><</span> <span class="n">a</span> <span class="o">:=</span> <span class="n">irrefl</span> <span class="n">a</span>
</pre></div>
<a name="190623562"></a>
<h4><a href="https://leanprover.zulipchat.com/#narrow/stream/113489-new%20members/topic/a%20%3E%20a%20is%20false/near/190623562" class="zl"><img src="http://robertylewis.com/website_test/assets/img/zulip2.png" alt="view this post on Zulip"></a> Daniel Keys <a href="http://robertylewis.com/website_test/stream/113489-new-members/topic/a.20.3E.20a.20is.20false.html#190623562">(Mar 15 2020 at 01:23)</a>:</h4>
<p>Here's another:</p>
<div class="codehilite"><pre><span></span><span class="kn">lemma</span> <span class="n">L1</span> <span class="o">(</span><span class="n">a</span> <span class="o">:</span> <span class="bp">ℕ</span><span class="o">)</span> <span class="o">:</span> <span class="bp">¬</span> <span class="n">a</span> <span class="bp">></span> <span class="n">a</span> <span class="o">:=</span>
<span class="k">begin</span>
<span class="n">push_neg</span><span class="o">,</span> <span class="n">apply</span> <span class="n">le_iff_lt_or_eq</span><span class="bp">.</span><span class="mi">2</span><span class="o">,</span> <span class="n">right</span><span class="o">,</span> <span class="n">refl</span><span class="o">,</span>
<span class="kn">end</span>
</pre></div>
<a name="190623665"></a>
<h4><a href="https://leanprover.zulipchat.com/#narrow/stream/113489-new%20members/topic/a%20%3E%20a%20is%20false/near/190623665" class="zl"><img src="http://robertylewis.com/website_test/assets/img/zulip2.png" alt="view this post on Zulip"></a> Debendro Mookerjee <a href="http://robertylewis.com/website_test/stream/113489-new-members/topic/a.20.3E.20a.20is.20false.html#190623665">(Mar 15 2020 at 01:26)</a>:</h4>
<p>Thanks appreciate it!</p>
{% endraw %}
<hr><p>Last updated: Apr 24 2020 at 19:02 UTC</p> | 74.053571 | 415 | 0.68218 |
3ef93c12c17d69f16565e89a5be2929b0cabccef | 11,768 | sql | SQL | nboletas-web/sql/nboletas_op.sql | dfriveros11/DEW | b12bf99fa83de1ff028b7f8aa48df11b4d75a03f | [
"MIT"
] | null | null | null | nboletas-web/sql/nboletas_op.sql | dfriveros11/DEW | b12bf99fa83de1ff028b7f8aa48df11b4d75a03f | [
"MIT"
] | null | null | null | nboletas-web/sql/nboletas_op.sql | dfriveros11/DEW | b12bf99fa83de1ff028b7f8aa48df11b4d75a03f | [
"MIT"
] | 1 | 2018-08-06T16:07:26.000Z | 2018-08-06T16:07:26.000Z | delete from ReembolsoEntity;
delete from EnvioEntity;
delete from ComentarioEntity;
delete from BoletaEntity;
delete from OrganizadorEntity;
delete from FuncionEntity;
delete from EspectaculoEntity;
delete from ArtistaEntity;
delete from SillaEntity;
delete from DivisionDeLugarEntity;
delete from LugarEntity;
delete from EspectaculoEntity_OrganizadorEntity;
delete from UsuarioEntity;
/* Mis numero son del 0 al 99 (df.riveros11)**/
insert into FuncionEntity (id, fecha) values (0, '10/10/2017');
insert into SillaEntity (id, costo) values (0, 20.1);
insert into UsuarioEntity (id, userName, password, nombreUsuario, email, pais, ciudad) values (0, 'aa', 'aa', 'Hugo', 'hs.hernandez@domain.onion', 'Argentina', 'newYork');
insert into BoletaEntity (id, precio, vendida, funcion_id, silla_id, usuario_id) values (0, 20.23, 1, 0, 0, 0);
insert into BoletaEntity (id, precio, vendida) values (1, 10.23, 1);
insert into BoletaEntity (id, precio, vendida) values (2, 30.01, 1);
insert into EnvioEntity (id, direccion, boleta_id) values (1,'Calle 43 #7-26 - Aprt:101', 2);
insert into EnvioEntity (id, direccion) values (2,'Calle 43 #7-26 - Aprt:101');
insert into BoletaEntity (id, precio, vendida) values (3, 10.00, 1);
insert into ReembolsoEntity(id, valor, boleta_id) values (1, 100.00, 3);
insert into ReembolsoEntity(id, valor) values (2, 100.00);
insert into BoletaEntity(id, precio, vendida) values (4, 55, 1);
insert into ComentarioEntity(id, comentario, fecha, espectaculo_id, boleta_id) values (1, 'ajá tu qué', '2017-12-4', null, 4);
insert into ComentarioEntity(id, comentario, fecha) values (2, 'ajá tu qué', '2017-12-4');
insert into OrganizadorEntity(id, imagen, nombreEmpresa) values (0, 'http://www.linuxpreview.org/wp-content/uploads/2016/12/predicciones-linux-300x200.jpg', 'Tu, NO OTRA VEZ');
insert into OrganizadorEntity(id, imagen, nombreEmpresa) values (1, 'http://www.linuxpreview.org/wp-content/uploads/2016/12/linux-kernel-4-9-300x162.jpg', 'Khè hace');
insert into OrganizadorEntity(id, imagen, nombreEmpresa) values (2, 'https://experienciadigital.es/wp-content/uploads/2017/08/linux-696x422.jpg', 'ECHEVERRY');
insert into EspectaculoEntity(id, descripcion, nombre) values (0, 'aloja', 'barrannquilla');
insert into EspectaculoEntity(id, descripcion, nombre) values (1, 'erda', 'erdax2');
insert into ESPECTACULOENTITY_ORGANIZADORENTITY (ESPECTACULOS_ID, ORGANIZADOR_ID) values (0, 1);
insert into ESPECTACULOENTITY_ORGANIZADORENTITY (ESPECTACULOS_ID, ORGANIZADOR_ID) values (1, 2);
/* Jeison (100-199)**/
/*---------Usuarios---------**/
insert into USUARIOENTITY (id, userName, password, nombreUsuario, email, pais, ciudad,admon,imagen)
values (100, 'jm.contreras10', '123456789', 'Jeison Contreras', 'jm.contreras10@uniandes.edu.co', 'Colombia', 'Bogotá',1,'');
insert into USUARIOENTITY (id, userName, password, nombreUsuario, email, pais, ciudad,admon,imagen)
values (101, 'sbaldosa', '123456789', 'Santiago Baldosa', 'sbaldosa@unichile.edu.ch', 'Chile', 'Santiago',0,'');
insert into USUARIOENTITY (id, userName, password, nombreUsuario, email, pais, ciudad,admon,imagen)
values (102, 'am.valero10', '123456789', 'Angelo Valero', 'am.valero@uniandes.edu.co', 'Colombia', 'Bogotá',0,'');
insert into USUARIOENTITY (id, userName, password, nombreUsuario, email, pais, ciudad,admon,imagen)
values (103, 'fc.alvarez10', '123456789', 'Fabian Alvarez', 'fc.alvarez@uniandes.edu.co', 'Colombia', 'Bogotá',0,'');
insert into USUARIOENTITY (id, userName, password, nombreUsuario, email, pais, ciudad,admon,imagen)
values (104, 'ja.gomez1', '123456789', 'Jorge Gomez', 'ja.gomez1@uniandes.edu.co', 'Colombia', 'Bogotá',1,'');
insert into USUARIOENTITY (id, userName, password, nombreUsuario, email, pais, ciudad,admon,imagen)
values (105, 'jf.ramos', '123456789', 'Felipe Ramos', 'jf.ramos@uniandes.edu.co', 'Colombia', 'Bogotá',0,'');
insert into USUARIOENTITY (id, userName, password, nombreUsuario, email, pais, ciudad,admon,imagen)
values (106, 'df.riveros11', '123456789', 'Diego', 'df.riveros11@uniandes.edu.co', 'Colombia', 'Bogotá',1,'');
/*-----Boletas(Compradas)**/
insert into BoletaEntity (id, precio, vendida, usuario_id) values (100, 300.00, 1, 100);
insert into BoletaEntity (id, precio, vendida, usuario_id) values (101, 200.00, 1, 101);
insert into BoletaEntity (id, precio, vendida, usuario_id) values (102, 300.00, 1,102);
insert into BoletaEntity (id, precio, vendida, usuario_id) values (103, 400.00, 1, 102);
insert into BoletaEntity (id, precio, vendida, usuario_id) values (104, 500.00, 1, 103);
insert into BoletaEntity (id, precio, vendida, usuario_id) values (105, 600.00, 1, 105);
insert into BoletaEntity (id, precio, vendida, usuario_id) values (106, 100.00, 1, 104);
/*-----Boletas(Reembolsadas)-----**/
insert into BoletaEntity (id, precio, vendida, usuario_id) values (107, 200.00, 1, 104);
insert into BoletaEntity (id, precio, vendida, usuario_id) values (108, 300.00, 1,106);
/*-----Boletas(Sin comprar)**/
insert into BoletaEntity (id, precio, vendida) values (109, 300.00, 1);
insert into BoletaEntity (id, precio, vendida) values (110, 300.00, 1);
/*------Reembolsos**/
insert into ReembolsoEntity(id, valor, boleta_id, usuario_id) values (100, 300.00, 107, 104);
insert into ReembolsoEntity(id, valor, boleta_id, usuario_id) values (101, 10.00, 108, 106);
/* Fabian (200-299)**/
insert into DivisionDeLugarEntity (id,nombre) values (200,'Noroccidental alta');
insert into DivisionDeLugarEntity (id,nombre) values (210,'Suroccidental alta');
insert into DivisionDeLugarEntity (id,nombre) values (220,'Noroccidental baja');
insert into DivisionDeLugarEntity (id,nombre) values (230,'Suroccidental baja');
insert into DivisionDeLugarEntity (id,nombre) values (240,'VIP');
insert into SillaEntity (id,costo,division_id) values (200,20.1,200);
insert into SillaEntity (id,costo,division_id) values (210,260.5,210);
insert into SillaEntity (id,costo,division_id) values (220,30.8,220);
insert into SillaEntity (id,costo,division_id) values (230,1000.5,230);
insert into BoletaEntity (id, precio, vendida, silla_id) values (200, 98000, 0, 200);
insert into BoletaEntity (id, precio, vendida, silla_id) values (210, 34000, 1, 210);
insert into BoletaEntity (id, precio, vendida, silla_id) values (220, 645000, 0, 220);
insert into BoletaEntity (id, precio, vendida, silla_id) values (230, 75000, 1, 230);
/* Jorge (300-399) */
insert into LugarEntity (id, direccion, ubicacion, tipo) values (300,'Teatro GranColombia', 'Bogota', 'TEATRO');
insert into LugarEntity (id, direccion, ubicacion, tipo) values (301,'Teatro Chico', 'Bogota', 'TEATRO');
insert into LugarEntity (id, direccion, ubicacion, tipo) values (302,'Teatro Manuela Beltran', 'Bogota', 'TEATRO');
insert into LugarEntity (id, direccion, ubicacion, tipo) values (303,'Friends Stadium', 'Switzerland', 'ESTADIO');
insert into DivisionDeLugarEntity (id, nombre) values (310, 'Preferencial');
insert into DivisionDeLugarEntity (id, nombre, lugar_id) values (312, 'Regular', 301);
insert into DivisionDeLugarEntity (id, nombre, lugar_id) values (314, 'Preferencial', 302);
insert into DivisionDeLugarEntity (id, nombre, lugar_id) values (316, 'Regular', 303);
insert into EspectaculoEntity(id, descripcion, nombre) values (330, 'Para toda la familia', 'Circus');
insert into FuncionEntity (id, fecha, hora, espectaculo_id, lugar_id) values (320, '10/10/2014', '3:00 pm', 330, 300);
insert into FuncionEntity (id, fecha, hora, lugar_id) values (321, '10/10/2014', '8:00 pm', 301);
insert into FuncionEntity (id, fecha, hora, espectaculo_id) values (322, '10/10/2014', '4:45 pm', 330);
insert into FuncionEntity (id, fecha, hora) values (323, '10/10/2014', '4:45 pm');
insert into BoletaEntity (id, precio, vendida, funcion_id) values (340, 100.00, 0, 320);
insert into BoletaEntity (id, precio, vendida) values (341, 120.00, 0);
/* Angelo (400-499)**/
insert into LugarEntity (id, direccion, ubicacion, tipo) values (400,'Teatro Jorge Eliecer Gaitan', 'Bogota', 'TEATRO');
insert into SillaEntity (id, costo) values (400, 48000);
insert into SillaEntity (id, costo) values (401, 49000);
insert into SillaEntity (id, costo) values (402, 20000);
insert into SillaEntity (id, costo) values (403, 35000);
insert into EspectaculoEntity(id, descripcion, nombre) values (400, 'Alci Acosta llega a Bogotá después de su exitosa presentación en Quito, un espectáculo de gran acogida por parte de sus seguidores y amigos.' , 'Alci Acosta Sinfónico');
insert into EspectaculoEntity(id, descripcion, nombre) values (401, 'invitación al epicentro mismo de Vetusta Morla para asistir en primera persona a una reafirmación de su esencia', 'VETUSTA MORLA');
insert into FuncionEntity (id, fecha, hora, espectaculo_id, lugar_id) values (400, '11/11/2017', '3:00 pm', 400, 400);
insert into FuncionEntity (id, fecha, hora, espectaculo_id, lugar_id) values (401, '12/11/2017', '4:00 pm', 401, 400);
insert into UsuarioEntity (id, userName, password, nombreUsuario, email, pais, ciudad,admon,imagen) values (400, 'sasha11', '12345', 'Sasha', 'Sasha11@domain.onion', 'Colombia', 'Bogota',0,'');
insert into UsuarioEntity (id, userName, password, nombreUsuario, email, pais, ciudad,admon,imagen) values (401, 'fernanda11', '123', 'Fer', 'Fer11@domain.onion', 'Colombia', 'Bogota',0,'');
insert into UsuarioEntity (id, userName, password, nombreUsuario, email, pais, ciudad,admon,imagen) values (402, 'miyu11', '12', 'miyu', 'miyu11@domain.onion', 'Colombia', 'Bogota',0,'');
insert into UsuarioEntity (id, userName, password, nombreUsuario, email, pais, ciudad,admon,imagen) values (403, 'julian12', '1234', 'juliancho', 'juliancho12@domain.onion', 'Colombia', 'Bogota',0,'');
insert into BoletaEntity (id, precio, vendida, silla_id,usuario_id,funcion_id) values (400, 98000, 1, 400,400,400);
insert into BoletaEntity (id, precio, vendida, silla_id,usuario_id,funcion_id) values (401, 99000, 1, 401,401,401);
insert into BoletaEntity (id, precio, vendida, silla_id,usuario_id,funcion_id) values (402, 65000, 1, 402,402,400);
insert into BoletaEntity (id, precio, vendida, silla_id,usuario_id,funcion_id) values (403, 75000, 1, 403,403,401);
insert into EnvioEntity (id, direccion, boleta_id, imagen) values (400,'Calle 43 #7-26 - Aprt:101',403,'http://lorempixel.com/400/200/transport/1');
insert into EnvioEntity (id, direccion, boleta_id, imagen) values (401, 'Cra 68i #26.48 - Casa',402,'http://lorempixel.com/400/200/transport/2');
insert into EnvioEntity (id, direccion, boleta_id, imagen) values (402,'Cl. 8 Sur #71d:20',401,'http://lorempixel.com/400/200/transport/3');
insert into EnvioEntity (id, direccion, boleta_id, imagen) values (403, 'Carrera 43 # 70A-50 SUR',400,'http://lorempixel.com/400/200/transport/4');
insert into ReembolsoEntity(id, valor, boleta_id) values (400, 1000, 400);
insert into ComentarioEntity (id,comentario,fecha, espectaculo_id, boleta_id, imagen) values (400,'Muy buen espectaculo','10/10/2017',400,400,'http://lorempixel.com/400/200/nightlife/1');
insert into ComentarioEntity (id,comentario,fecha, espectaculo_id, boleta_id, imagen) values (401,'horror de evento','10/31/2017',401,401,'http://lorempixel.com/400/200/nightlife/2');
insert into ComentarioEntity (id,comentario,fecha, espectaculo_id, boleta_id, imagen) values (402,'me gusto mucho asistir','11/01/1989',400,402,'http://lorempixel.com/400/200/nightlife/3');
insert into ComentarioEntity (id,comentario,fecha, espectaculo_id, boleta_id, imagen) values (403,'me senti muy bien en el evento','06/20/2017',401,403,'http://lorempixel.com/400/200/nightlife/4');
| 70.467066 | 240 | 0.727906 |
83ed67171f02cf19739c18a116b3fbf5359f9a53 | 367 | rs | Rust | src/allocator.rs | rjsberry/no_alloc | 5ca955717b31d58973ae26fea8ae5c6a340545b7 | [
"0BSD",
"Unlicense"
] | null | null | null | src/allocator.rs | rjsberry/no_alloc | 5ca955717b31d58973ae26fea8ae5c6a340545b7 | [
"0BSD",
"Unlicense"
] | 4 | 2020-07-16T21:22:31.000Z | 2020-07-23T21:43:36.000Z | src/allocator.rs | rjsberry/no_ptr | 5ca955717b31d58973ae26fea8ae5c6a340545b7 | [
"0BSD",
"Unlicense"
] | null | null | null | use super::{CapacityError, Layout};
use core::ptr::NonNull;
/// A memory allocator.
pub trait Allocator {
/// Allocates a memory block described by the given layout.
unsafe fn alloc(
&self,
layout: Layout,
) -> Result<NonNull<u8>, CapacityError>;
/// Deallocates the memory block.
unsafe fn dealloc(&self, node: NonNull<u8>);
}
| 22.9375 | 63 | 0.645777 |
4a5eaa41639b114b739fd2eaabefe396751a7486 | 28,538 | html | HTML | html/one-hundred-years-of-solitude.html | sqsga/sqsga.github.io | 9d3242421b01b024ff10f7c34750858d329da97b | [
"MIT"
] | 101 | 2015-01-08T07:48:49.000Z | 2022-03-29T06:13:15.000Z | html/one-hundred-years-of-solitude.html | sqsga/sqsga.github.io | 9d3242421b01b024ff10f7c34750858d329da97b | [
"MIT"
] | 1 | 2022-01-13T15:40:01.000Z | 2022-01-13T15:40:01.000Z | html/one-hundred-years-of-solitude.html | sqsga/sqsga.github.io | 9d3242421b01b024ff10f7c34750858d329da97b | [
"MIT"
] | 47 | 2015-08-09T16:07:18.000Z | 2022-03-31T08:28:08.000Z | <?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>百年孤独(Cien años de soledad)</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<meta name="generator" content="Org-mode" />
<meta name="author" content="dirtysalt" />
<link rel="shortcut icon" href="/themes/favicon.ico" /><link rel="stylesheet" type="text/css" href="/themes/simple.css"/></head>
<body>
<div id="content">
<h1 class="title">百年孤独(Cien años de soledad)</h1>
<p>
<a href="https://book.douban.com/subject/6082808/">https://book.douban.com/subject/6082808/</a>
</p>
<p>
笔记本导出
百年孤独
加西亚·马尔克斯
</p>
<div class="figure">
<p><img src="images/one-hundred-years-of-solitude.png" alt="one-hundred-years-of-solitude.png" />
</p>
</div>
<div id="outline-container-sec-1" class="outline-2">
<h2 id="sec-1"><span class="section-number-2">1</span> 一</h2>
<div class="outline-text-2" id="text-1">
<p>
多年以后,面对行刑队,奥雷里亚诺·布恩迪亚上校将会回想起父亲带他去见识冰块的那个遥远的下午。那时的马孔多是一个二十户人家的村落,泥巴和芦苇盖成的屋子沿河岸排开,湍急的河水清澈见底,河床里卵石洁白光滑宛如史前巨蛋。世界新生伊始,许多事物还没有名字,提到的时候尚需用手指指点点。
</p>
<p>
何塞·阿尔卡蒂奥·布恩迪亚当初建功立业的雄心,迅速在磁铁迷狂、天文演算、炼金幻梦以及见识世上奇观的热望中消磨殆尽,曾经勇于开拓、仪表整洁的他,变成一个外表懒散、不修边幅的男人。他那野蛮人一样的胡须,乌尔苏拉费尽力气才能勉强用菜刀收拾干净。甚至有人将他视为某种诡异巫术的牺牲品。然而当他将开荒的工具扛上肩头,倡议全体村民共同开辟一条将马孔多与新兴发明相连的捷径时,即使是那些深信他已发疯的人也丢下活计与家人而去跟随他。
</p>
<p>
很长时间内,马孔多处在一个半岛上成为根深蒂固的观念,这源于何塞·阿尔卡蒂奥·布恩迪亚远征归来后武断绘出的地图。他绘图时满怀怒气,故意夸大交通的艰难,以此来惩罚自己竟如此荒唐地选择了这样一个地方。“我们一辈子哪儿也去不了,”他向乌尔苏拉抱怨道,“我们注定要在这里活活烂掉,享受不到科学的好处。”
</p>
<p>
何塞·阿尔卡蒂奥·布恩迪亚照妻子的话做了。他往窗外望去,只见两个孩子赤脚待在阳光暴晒的菜园里,他感觉从那一刻起他们才开始存在,从乌尔苏拉的咒语中诞生出来。随即他内心发生了某种变化,某种神秘而明晰的力量将他从当下拉扯出来,带往记忆中从未涉足的所在。乌尔苏拉继续打扫,此刻她已经确信有生之年再也不会离开这个家园,而他一直凝视着孩子们,直到双眼湿润。他用手背擦干眼睛,深深地叹息一声,接受了现实。
</p>
<p>
然而自从那个下午叫孩子们帮忙取出实验器具,他便将自己最宝贵的时间留给了他们。在僻静的小屋里,墙壁上渐渐挂满荒唐的地图和奇异的图画。他教他们读写和算术,向他们讲起世界上的诸多奇迹,不光涉及自己已知的事物,还充分发挥想象力达到令人难以置信的极致。就这样,孩子们得知在非洲的最南端有平和而智慧的人民,他们唯一的消遣是坐下来沉思;得知爱琴海可以徒步穿越,只需从一个岛屿跳上另一个直到萨洛尼卡港。那些光怪陆离的课程深深铭刻在孩子们的记忆中,以至于多年以后,在政府军军官向行刑队下令开枪的前一刻,奥雷里亚诺·布恩迪亚上校又回想起三月里那个温暖的下午:父亲在物理课上倏然顿住,一脸着迷的神情,手停在半空中,眼神凝固,倾听着远远传来的高音笛、串铃和鼓的声音。吉卜赛人又来到了村里,推销孟菲斯城的智者们最新最惊人的发明。
</p>
</div>
</div>
<div id="outline-container-sec-2" class="outline-2">
<h2 id="sec-2"><span class="section-number-2">2</span> 二</h2>
<div class="outline-text-2" id="text-2">
<p>
十分钟后他回来了,手持祖父嗜血的长矛。村里一半的人都聚集在斗鸡场门口,普鲁邓希奥·阿基拉尔正在那里等着。他还没来得及反抗,何塞·阿尔卡蒂奥·布恩迪亚就以公牛般的力气投出了长矛,以第一代奥雷里亚诺·布恩迪亚当年猎杀本地老虎的准头,刺穿了他的咽喉。
</p>
<p>
就这样,他们开始了翻越山脉之旅。何塞·阿尔卡蒂奥·布恩迪亚有许多像他一样年轻的朋友,他们因要探险而欢欣鼓舞,都拆掉自家房子,带上女人孩子上路,朝着没有人向他们应许过的土地进发。出发之前,何塞·阿尔卡蒂奥·布恩迪亚将长矛埋在院子里,又把自己那些出色的斗鸡一只只砍下脑袋,深信这样能够给予普鲁邓希奥·阿基拉尔些许安慰。乌尔苏拉只带了一箱嫁衣、少许家用物品以及那个小匣子,匣里装着从父亲那里继承的金币。他们没有预定的路线,只想朝着与里奥阿查相反的方向进发,为的是不留下任何踪迹,不碰见任何熟人。
</p>
<p>
那天晚上,何塞·阿尔卡蒂奥·布恩迪亚梦见那个地方耸立起一座喧嚣的城市,家家户户以镜子为墙。他询问这是什么城市,得到的回答是一个他从未听说、也没有任何含义的名字,但那名字却在梦中神秘地回响:马孔多。
</p>
<p>
突然,她伸手摸了他一下。“好家伙。”她实实被吓到,说不出别的话来。何塞·阿尔卡蒂奥感到骨头里充满了泡沫,并伴随着一种无力的恐惧,以及哭泣的强烈欲望。女人没有给他任何暗示,但何塞·阿尔卡蒂奥整夜都在烟味中寻找她,那气味本是从她腋下逸出,也渗入到他的皮肤里面。他想一直和她在一起,想让她做自己的母亲,想永远待在谷仓里,想听她说“好家伙”,想让她再一次摸自己并对自己说“好家伙”。
</p>
<p>
何塞·阿尔卡蒂奥的女伴请他们别来打扰,于是那一对就地躺下,紧靠他们的床边。他人的激情唤醒了何塞·阿尔卡蒂奥的欲望。刚一触碰,女郎的骨头像是散了架,仿佛一盒多米诺骨牌哗啦啦一阵混响,她的肌肤在苍白的汗水中融化,她的眼睛盈满泪水,她的整个身体发出悲惨的哀叹,散逸淡淡的淤泥气味。但她以坚强的性格和可敬的勇气承受住了冲击。何塞·阿尔卡蒂奥感觉身体悬空,飞向极乐之境,心灵融化在柔情色欲的泉源里,那情欲涌入女郎的耳朵,又从她的口中变成语言涌出。那天是星期四。到星期六晚上,何塞·阿尔卡蒂奥往头上缠了块红布,跟着吉卜赛人走了。
</p>
<p>
庇拉尔·特尔内拉自告奋勇要在乌尔苏拉回来之前帮忙料理家务。奥雷里亚诺凭着对厄运格外敏感的神秘直觉,在看见她进门的瞬间灵光一闪。他意识到哥哥的逃走以及随后母亲的失踪都与她有关,尽管这无法解释,于是以一种沉默而强烈的敌意相待。
</p>
<p>
何塞·阿尔卡蒂奥·布恩迪亚出门看见一片喧嚷景象,好半天才从困惑中恢复过来。那不是吉卜赛人,而是和他们一样的男男女女,直发棕肤,说的是同样的语言,抱怨的是同样的痛苦。他们的骡子驮着食品,牛车满载着家具、家居用品,都纯粹是些普通的人间物事,毫无噱头地出售;他们贩卖的乃是日常现实。这些人来自大沼泽的另一边,距此只有两天路程。那些村镇里的人们每月都能收到邮件,见惯了各样改善生活的机器。乌尔苏拉没有追上吉卜赛人,却找到了丈夫在失败的远征中没能发现的通向伟大发明的道路。
</p>
</div>
</div>
<div id="outline-container-sec-3" class="outline-2">
<h2 id="sec-3"><span class="section-number-2">3</span> 三</h2>
<div class="outline-text-2" id="text-3">
<p>
马孔多变了样。跟着乌尔苏拉一起来的人四处宣扬它土地肥美、位置又比大泽区优越,于是昔日僻静的小村落很快变成繁华的城镇,有了手工作坊和店铺,还开通了一条永久商道。第一批穿尖头靴戴耳环的阿拉伯人就沿商道而来,用玻璃珠链交换金刚鹦鹉。何塞·阿尔卡蒂奥·布恩迪亚一刻也不能平静。他着迷于眼前的现实,认为这比自己广袤的幻想世界更为神奇,因而对炼金实验完全丧失了兴趣。他将漫长时日中饱受锤炼的材料搁置一旁,又变回了创业之初那个富于进取心的男子,那时他忙于设计街道规划新居,以保证人人享有平等权益。他在新落户的居民中赢得极大尊重,任何人铺设地基或修造围栏都要先咨询他的意见,大家还一致决定由他掌管土地的分配。
</p>
<p>
但何塞·阿尔卡蒂奥·布恩迪亚也明确表示,梅尔基亚德斯以他悠远的智慧和神奇的发明对村子的发展壮大作出过不可磨灭的贡献,马孔多的大门将永远对他古老的部落敞开。然而据那些周游各地的旅人说,梅尔基亚德斯的部落由于逾越了人类知识的界限,已从大地上被抹去。
</p>
<p>
从女孩那里也无法获得更多信息。从来到的那一刻起,她就一直坐在摇椅上吮手指,一双受惊的大眼睛打量着所有人,不曾流露出能听懂别人提问的迹象。她穿着已显破旧的黑色斜纹布衣裳,脚上是漆皮脱落的短靴。头发拢到耳后,用黑带子束住两个发髻。披肩上的图案沁染汗渍已无法辨认,一颗食肉动物的犬牙配上铜托系在右手腕上当作抵抗“邪眼”的护身符。青绿色的皮肤,圆滚紧绷如一面鼓的肚子,都显示出她体弱多病、忍饥挨饿的历史甚至要比自身的年龄更久远,然而食物端上来的时候,她却任凭盘子搁在腿上尝也不尝。
</p>
<p>
天亮的时候,印第安人卡塔乌雷失去了踪影。他姐姐比西塔西翁留了下来,认定了自己的宿命:就算逃到天边,这致命的疫病也会穷追不舍尾随而至。没有人理会她的惊恐。“要是不用睡觉,那再好不过。”何塞·阿尔卡蒂奥·布恩迪亚说,“那样我们就有更多的时间可用。”但印第安女人向他们解释,失眠症最可怕之处不在于让人毫无倦意不能入睡,而是会不可逆转地恶化到更严重的境地:遗忘。也就是说,患者慢慢习惯了无眠的状态,就开始淡忘童年的记忆,继之以事物的名称和概念,最后是各人的身份,以至失去自我,沦为没有过往的白痴。何塞·阿尔卡蒂奥·布恩迪亚笑得喘不过气来,认为这不过是又一种印第安人杜撰的疾病。乌尔苏拉为防万一,还是将丽贝卡和其他孩子隔离开来。
</p>
<p>
他们聚在一起不停地聊天,一连几个小时重复同样的笑话,甚至把阉鸡的故事演化到令人无法容忍的地步。那是一个讲不完的故事,讲故事的人问大家要不要听阉鸡的故事,如果大家说“要”,他就说没让大家说“要”,而是问大家要不要听阉鸡的故事;如果大家说“不要”,他就说没让大家说“不要”,而是问大家要不要听阉鸡的故事;如果大家都不说话,他就说没让大家不说话,而是问大家要不要听阉鸡的故事;而且谁也不许走,因为他没让人走,而是问大家要不要听阉鸡的故事。就这样继续下去,整夜整夜重复这一恶性循环。
</p>
<p>
就这样,人们继续在捉摸不定的现实中生活,只是一旦标签文字的意义也被遗忘,这般靠词语暂时维系的现实终将一去不返。
</p>
<p>
在这张唯一的全家福照片上,奥雷里亚诺身穿黑色天鹅绒正装,夹在阿玛兰妲和丽贝卡中间,那倦怠的模样和深邃的眼神与多年以后面对行刑队时一般无二。但那时他尚未感觉到命运的预示。
</p>
<p>
梅尔基亚德斯在破解诺查丹玛斯预言方面取得了深入进展。他每每研究到深夜,缩在退色的天鹅绒坎肩里艰难喘息,用雀爪般的小手在纸上胡乱涂写,手上的戒指都已失去曾经的光彩。一天夜里,他相信已破译出一则有关马孔多未来的预言。它会变成一座光明的城市,矗立着玻璃建造的高楼大厦,却再没有布恩迪亚家的丝毫血脉存留。“
</p>
<p>
她准备修建一间正式的客厅,一间更舒适通风的起居室,一间能摆下十二个座位的餐桌、容纳全家人和所有宾客进餐的饭厅,九间窗户都朝向院子的卧室,以及一条带扶栏的长廊,扶栏上有盆栽的欧洲蕨和秋海棠,能借着玫瑰花园遮挡正午的阳光。她准备扩建厨房,砌起两座炉灶;拆掉庇拉尔·特尔内拉曾在里面为何塞·阿尔卡蒂奥算命的那座旧谷仓,盖一座比原来大上两倍的新仓,保证家里永远不会缺粮。她准备在院子里的栗树荫下分建男女浴室,在院子深处建一座大马厩、一间铁丝网鸡舍、一个奶牛棚和一处四面开放供迷途鸟儿自由栖息的鸟舍。乌尔苏拉仿佛染上了丈夫的狂热,在十几个木匠和泥瓦匠的簇拥下发号施令,决定采光与通风事宜,随意分配空间而不受任何限制。
</p>
<p>
当天下午士兵就离开了。没过几天,何塞·阿尔卡蒂奥·布恩迪亚为里正找到一处房子。一切都恢复平静,只有奥雷里亚诺例外。里正最小的女儿蕾梅黛丝,论年龄足可当他的女儿,但她的影子正折磨着他身体的某个部位。那是一种肉体上的感觉,几乎在他行走时构成障碍,就像鞋里进了一粒小石子。
</p>
</div>
</div>
<div id="outline-container-sec-4" class="outline-2">
<h2 id="sec-4"><span class="section-number-2">4</span> 四</h2>
<div class="outline-text-2" id="text-4">
<p>
蕾梅黛丝走近问了几个关于小金鱼的问题,奥雷里亚诺无法回答,因为他猝然间喘不过气来。他想永远这样待下去,守着她百合般的肌肤,伴着她翡翠色的眼睛,听她以对待父亲的尊敬,每问一个问题都叫一声“先生”。梅尔基亚德斯坐在角落里的书桌前,画着难以索解的符号。奥雷里亚诺恨他。他做不了别的,只能对蕾梅黛丝说要把小金鱼送给她,结果吓得她飞快地逃出了作坊。
</p>
<p>
家里充满爱情的气息。奥雷里亚诺寄情于无头无尾的诗行。他把诗句写在梅尔基亚德斯送他的粗糙羊皮纸上,写在浴室的墙壁上,写在自己的手臂上,而所有诗句中都有蕾梅黛丝幻化的身影:蕾梅黛丝在下午两点令人昏昏欲睡的空气中,蕾梅黛丝在玫瑰无声的呼吸中,蕾梅黛丝在蠹虫如沙漏般的暗地蛀蚀中,蕾梅黛丝在清晨面包的热气中,蕾梅黛丝无所不在,蕾梅黛丝无时或缺。
</p>
<p>
丽贝卡那般喊叫已经无法保守秘密,阿玛兰妲发现了她的痴恋后开始发烧。她也在为没有回应的爱情而饱受折磨。她把自己关在浴室里,写下一封封狂热的信,以摆脱没有希望的激情带来的折磨,然后把信深藏在衣箱内。乌尔苏拉同时照顾两个病人,几乎忙不过来。她费尽心机长时间询问,也没能问出阿玛兰妲委靡的缘由。最终,她又灵机一动,撬开衣箱,便发现了用玫瑰色丝带系好的信,信内塞满新鲜的百合花瓣,信上泪痕未干,封封都写给皮埃特罗·克雷斯皮,但从未寄出。
</p>
<p>
他就在那里吃下比西塔西翁每天两次送去的食物,但最后那段日子他没了胃口,只吃蔬菜过活。很快他就显出素食者特有的孤清模样。他的皮肤上覆着一层柔软的苔藓,与那件不分季节永不离身的坎肩上滋生的相仿,他的呼吸间散发出熟睡动物的臭气。
</p>
<p>
一个星期四,在叫他去河边之前,奥雷里亚诺听见他说:“我已经发热病死在新加坡的沙洲上。”那天他下水时弄错了路线,直到第二天早上才在下游几公里的地方被找到,尸身搁浅在一处明晃晃的河湾里,一只孤零零的秃鹫落在他肚子上。
</p>
<p>
死去多年以后,普鲁邓希奥·阿基拉尔对活人的怀念如此强烈,对友伴的需求如此迫切,对存在于死亡之中的另一种死亡的迫近又是如此惧怕,最终对他最大的冤家对头萌生出眷恋。他找了很久。他向里奥阿查的死人们问起他,向从巴耶杜帕尔、从大泽区来的死人们问起他,但没人知道。马孔多对亡灵来说是一处未知之地,直到梅尔基亚德斯死后,在五颜六色的死亡地图上用一个黑点标出。何塞·阿尔卡蒂奥·布恩迪亚与普鲁邓希奥·阿基拉尔一直聊到天亮。
</p>
<p>
星期四他又出现在作坊里,一副大祸临头的痛苦神情。“时间这个机器散架了,”他几乎哭了出来,“而乌尔苏拉和阿玛兰妲还在那么远的地方!”奥雷里亚诺像对待小孩一样训斥了他,他显出顺从的样子。他花了六个小时观察各种事物,试图找出一分一毫与前一天的不同之处,期待发现某种变化能证明时间的流逝。他整夜睁着眼躺在床上,呼唤普鲁邓希奥·阿基拉尔、梅尔基亚德斯以及所有的死人来分担他的忧虑。但没人出现。星期五,他在谁都还没起床时又去观察外界的状况,最后彻底确认了仍是星期一。
</p>
</div>
</div>
<div id="outline-container-sec-5" class="outline-2">
<h2 id="sec-5"><span class="section-number-2">5</span> 五</h2>
<div class="outline-text-2" id="text-5">
<p>
当奥雷里亚诺和庇拉尔·特尔内拉的儿子出生后被送到家里,并在家中举行仪式命名为奥雷里亚诺·何塞,蕾梅黛丝决定把他认作自己的长子。她这种母性本能令乌尔苏拉惊讶不已。就奥雷里亚诺而言,他在她这里找到了生存的意义。他整日在作坊干活,蕾梅黛丝会在上午送去一杯不加糖的咖啡。
</p>
<p>
此时此刻连重议婚期的念头也会被视为大不敬,恋人关系就此永远停滞不前,沦为无人再去理会的倦怠爱情,仿佛昔日为了亲吻而熄灭灯火的情侣已被抛弃,屈从于死神的淫威。方向迷失,希望破灭,丽贝卡又开始吃土。
</p>
<p>
她站在吊床前,流出冷汗,感到五脏六腑都纠结在一起,而阿尔卡蒂奥用指肚抚摸她的脚踝,然后是小腿肚,然后是大腿,嘴里喃喃地说:“小妹妹,啊,小妹妹。”一股强似龙卷风却又惊人精准的力量将她拦腰举起,三两下扯去内衣,像撕裂一只小鸟一般,她得努力支撑着才不至于死在当场。她感谢上帝让自己拥有生命,随即失去神志,沉浸在由无法承受的痛苦生出的不可思议的快感中,扑腾挣扎于吊床这热气腾腾的泥沼间,喷出的血液被泥沼像吸墨纸一般吸收了。
</p>
<p>
因此他们到公墓对面租了一间小屋,屋里唯一的家具是何塞·阿尔卡蒂奥的吊床。新婚之夜一只蝎子钻进拖鞋蜇了丽贝卡的脚,她的舌头为此都麻痹了,但这并不妨碍他们度过一个惊世骇俗的蜜月。邻居们因惊醒整个街区的叫声而恐慌—每夜八次,连午睡时段也有三次—祈祷那种肆无忌惮的激情不要侵扰死人的安眠。
</p>
<p>
他自己面对行刑队的时候,仍将无法理解一系列微妙又无可抗拒的偶然事件是如何将他引向那个结论的。蕾梅黛丝的死并未引起他所担心的震惊,而更像是一种沉郁的愤怒,渐渐转化为寂寞消极的挫败感,与当初他认命选择独身时的感受相仿。
</p>
<p>
当夜,在行刑枪声响起的同时,阿尔卡蒂奥被任命为镇上的军政首领。那些已成家的起义者甚至没有时间与妻子告别,只能任由她们从此自生自灭。
</p>
</div>
</div>
<div id="outline-container-sec-6" class="outline-2">
<h2 id="sec-6"><span class="section-number-2">6</span> 六</h2>
<div class="outline-text-2" id="text-6">
<p>
奥雷里亚诺·布恩迪亚上校发动过三十二场武装起义,无一成功。他与十七个女人生下十七个儿子,一夜之间都被逐个除掉,其中最年长的不到三十五岁。他逃过十四次暗杀、七十三次伏击和一次枪决。他有一次被人在咖啡里投毒,投入的马钱子碱足够毒死一匹马,但他仍大难不死。他拒绝了共和国总统颁发的勋章。他官至革命军总司令,从南到北、自西至东都在他的统辖之下,他也成为最令政府恐惧的人物,但从不允许别人为他拍照。他放弃了战后的退休金,到晚年一直靠在马孔多的作坊中制作小金鱼维持生计。他一向身先士卒,却只受过一次伤,那是他在签署尼兰迪亚协定为长达近二十年的内战画上句号后自戕的结果。他用手枪朝胸部开了一枪,子弹从背部穿出却没有损及任何要害部位。经过这一切,留下来的只有一条以他的名字命名的马孔多街道。然而据他寿终正寝前几年的自述,那天清晨他带着二十一个人投奔维多利奥·梅迪纳将军的时候,甚至连这事也没期望过。
</p>
<p>
一如染桌布、织绦带、绣孔雀那样,她耐心等待着皮埃特罗·克雷斯皮向内心的煎熬屈服。她盼望的时刻与十月不祥的阴雨一同到来。皮埃特罗·克雷斯皮拿过她膝上的绣筐,双手紧握她的手。“我不能再等了,”他对她说,“我们下个月就结婚。”阿玛兰妲触碰到他冰冷的双手时没有颤抖。她像只抓不住的小动物似的缩回手去,继续自己的活计。“别天真了,克雷斯皮,”她微笑着,“我死也不会和你结婚的。”
</p>
<p>
一天晚上,他唱了起来。马孔多在睡梦中惊醒,心神俱醉,那琴声不似这个世界所有,那饱含爱意的歌声也不会再现人间。一时间皮埃特罗·克雷斯皮看见镇上所有的灯火都亮了,唯独阿玛兰妲的窗前依旧黑暗。十一月二日,亡灵节,他弟弟打开店门,发现所有的灯都亮着,所有的八音盒都在奏乐,所有的钟表都停在一个永恒的时刻。在这纷乱的合奏中,皮埃特罗·克雷斯皮伏在店后的写字台上,双腕用剃刀割破,双手浸没在一盆安息香水里。
</p>
<p>
然而,当阿尔卡蒂奥还是个孤独的孩子时,时常担惊受怕,他经历了失眠症的肆虐,见证了乌尔苏拉的实干热情,何塞·阿尔卡蒂奥·布恩迪亚的疯癫,奥雷里亚诺的高深莫测,以及阿玛兰妲和丽贝卡之间的殊死对抗。奥雷里亚诺教他读写,但同时总想着别的事,仿佛一个陌生人。奥雷里亚诺的衣服小了,就送给他,让比西塔西翁裁改。阿尔卡蒂奥为着过大的鞋子、改小的裤子,以及自己女人般的臀部而深深苦恼。他从来没有像与比西塔西翁和卡塔乌雷用他们的语言交谈那样,与其他人自由地交流过。实际上梅尔基亚德斯是唯一关心他的人,给他念那些难以理解的手稿,教他银版照相技术。没有人想到他暗地里如何为梅尔基亚德斯的死哀哭,又以怎样的疯狂徒劳地钻研他留下的手稿,试图使他重返人间。
</p>
<p>
何塞·阿尔卡蒂奥已然低头负起婚姻的重轭。丽贝卡凭着不屈的性格、贪婪的情欲和执著的野心,吸纳了丈夫超常的精力,使他从一个游手好闲、寻花问柳的男人变成一头干活的巨大牲口。
</p>
<p>
数年以后,奥雷里亚诺·布恩迪亚上校审核地契时,发现从院落所在的小丘直到视野尽头所有的土地,包括公墓在内,都在他哥哥名下,而阿尔卡蒂奥在任职的十一个月内不仅收取地租,还向丧家索要在何塞·阿尔卡蒂奥的土地上下葬亲人的费用。
</p>
<p>
天亮的时候,经过军事法庭的即时审判,阿尔卡蒂奥被判处枪决,在公墓的墙前执行。在生命的最后两个小时里,他无法理解为什么自童年时代起一直折磨他的恐惧感消失了。他无动于衷地听着冗长的指控,甚至没想去展现自己刚刚获得的勇气。他想着乌尔苏拉,她这会儿应该和何塞·阿尔卡蒂奥·布恩迪亚在栗树下喝咖啡。他想着八个月大的女儿还没有名字,想着即将在八月出生的孩子。他想着桑塔索菲亚·德拉·彼达,昨天晚上他还给她留了一头鹿腌起来准备星期六中午吃;他想念她披散在肩头的发丝和她仿佛出自人工的睫毛。他想着他的亲人,并无感伤,只是在严格盘点过往时发现,实际上自己是多么热爱那些曾经恨得最深的人。
</p>
</div>
</div>
<div id="outline-container-sec-7" class="outline-2">
<h2 id="sec-7"><span class="section-number-2">7</span> 七</h2>
<div class="outline-text-2" id="text-7">
<p>
他开玩笑道,随即又严肃地补充一句,“今天早上他们押我过来的时候,我觉得这一切都已发生过。”实际上,当喧嚣的人群拦住去路,他一直沉浸在自己的思绪中,惊讶于短短一年间镇子就衰老如斯。巴旦杏树枝叶凋零;漆成蓝色的房子时而改漆红色,时而又改回蓝色,最后那颜色都变得难以辨别了。“你还能指望什么?”乌尔苏拉叹了口气,“时间过得很快。”“话是没错,”奥雷里亚诺附和道,“可也没那么快。”
</p>
<p>
当行刑队瞄准他的时候,怒气凝成黏稠苦涩的东西,麻痹了他的舌头又迫使他闭上眼睛。那一瞬间晨曦的银白色光芒隐没,他又看见了小时候穿着短裤系着领结的自己,看见了父亲在一个阳光明媚的下午带他走进帐篷见到了冰块。
</p>
<p>
何塞·阿尔卡蒂奥刚关上卧室的门,一声枪响震彻全屋。一道血线从门下涌出,穿过客厅,流到街上,沿着起伏不平的便道径直向前,经台阶下行,爬上路栏,绕过土耳其人大街,右拐又左拐,九十度转向直奔布恩迪亚家,从紧闭的大门下面潜入,紧贴墙边穿过客厅以免弄脏地毯,经过另一个房间,划出一道大弧线绕开餐桌,沿秋海棠长廊继续前行,无声无息地从正给奥雷里亚诺·何塞上算术课的阿玛兰妲的椅子下经过而没被察觉,钻进谷仓,最后出现在厨房,乌尔苏拉在那里正准备打上三十六个鸡蛋做面包。
</p>
<p>
在乌尔苏拉和军官们的坚持下,他无奈地又在床上躺了一个星期。那时他才知道他的诗稿并没有烧掉。“我想不用那么急。”乌尔苏拉向他解释,“那天晚上,我准备生火,就跟自己说最好还是等尸体送来了再说。”在身体初愈的恍惚中,奥雷里亚诺·布恩迪亚上校身边摆满了蕾梅黛丝落满尘灰的娃娃,他读起自己的诗来,生命中的关键时刻一一浮现。他又开始写诗。一个小时又一个小时,他远离这场徒劳战争中的惊涛骇浪,将自己与死亡擦肩而过的经历化作押上韵脚的诗行。他的想法由此变得分外清晰,经得起反复思索。
</p>
<p>
一个人的时候,何塞·阿尔卡蒂奥·布恩迪亚在一个有无穷房间的梦中得到慰藉。他梦见自己从床上起来,打开房门,走进另一间一模一样的房间,里面有同样铸铁床头的床、同样的藤椅和后墙上同样的救难圣母像。从这一间又进入另一间一模一样的,如此循环,无穷无尽。他喜欢从一间走到另一间,仿佛漫步在镜廊中,直到普鲁邓希奥·阿基拉尔轻拍他的肩头。于是,他一间间回溯,渐渐苏醒,他原路折返,在现实的房间里与普鲁邓希奥·阿基拉尔相会。然而一天晚上,就在他被拖回床上两个星期之后,普鲁邓希奥·阿基拉尔在居中的房间里拍了他的肩膀,他便永远留在了那里,认为那才是现实的房间。
</p>
</div>
</div>
<div id="outline-container-sec-8" class="outline-2">
<h2 id="sec-8"><span class="section-number-2">8</span> 八</h2>
<div class="outline-text-2" id="text-8">
<p>
一天凌晨,就在阿玛兰妲拒绝赫里内勒多·马尔克斯上校的那段日子,奥雷里亚诺·何塞在几近窒息中惊醒,感觉她的手指像滚烫的虫子在焦灼地向他的腹部蠕动。他装作熟睡未醒,调整姿势为她除去一切障碍,随即感到那只未缠黑纱的手宛如失明的软体动物在他饥渴的水藻间潜游。两人都装作不知道双方心知肚明的事实,都装作不知道对方已知情,自那天晚上起被一种不容侵犯的默契紧紧联结在一处。奥雷里亚诺·何塞不听到客厅里时钟午夜报时的华尔兹就无法安眠,而那位容颜开始枯萎的盛年处女没等到梦游人钻进蚊帐也一刻不得安宁。
</p>
<p>
他没有一刻不想她。在那些被攻陷村镇的阴暗卧室里,特别是在那些最下贱的地方,找到她的影子;在伤员绷带上干涸血迹的味道中,觅见她的身形;在致命危险所激发的恐惧中,随时随地与她相遇。他曾经从她身边逃开,试图在记忆中将她抹去,为此不仅远走他方,还表现出被战友们归为莽撞的凶悍冒进。他越是在战争的粪坑里摔打她的形象,战争本身就越像阿玛兰妲。
</p>
<p>
将死尸掩埋到公墓里的命令刚被执行,他就指派罗格·卡尔尼塞罗上校去敦促建立军事法庭展开审判,他自己则担负起推行激进改革的艰巨任务,决心将江河日下的保守党政权摧毁殆尽。“我们要赶在党内政客前面。”他对自己的顾问说,“等他们睁眼面对现实的时候,看到的就是既成事实。”就在此时,他决定审查百年来的地契,便发现了他哥哥何塞·阿尔卡蒂奥强占土地又将其合法化的行径。他将那些文书一笔勾销。最后出于礼貌,他搁下手头的事务,抽出一个小时去见丽贝卡通知他的决定。
</p>
</div>
</div>
<div id="outline-container-sec-9" class="outline-2">
<h2 id="sec-9"><span class="section-number-2">9</span> 九</h2>
<div class="outline-text-2" id="text-9">
<p>
那天下午赫里内勒多·马尔克斯上校收到了奥雷里亚诺·布恩迪亚上校的电报。那是一次例行公事的谈话,没有为胶着的战局带来任何突破。谈话即将结束时,赫里内勒多·马尔克斯上校望着荒凉的街道、巴旦杏树上凝结的水珠,感觉自己在孤独中迷失了。“奥雷里亚诺,”他悲伤地敲下发报键,“马孔多在下雨。”线路上一阵长久的沉默。忽然,机器上跳出奥雷里亚诺·布恩迪亚上校冷漠的电码。“别犯傻了,赫里内勒多,”电码如是说道,“八月下雨很正常。”
</p>
<p>
他处决蒙卡达将军后第一次到马纳乌雷时,一刻也没延误,就去完成死于己手的受害者的遗愿。将军遗孀接过眼镜、徽章、怀表和戒指,却不允许他进门一步。“请别进来,上校。”她对他说,“在您的战争里您说了算,但在我家里我说了算。”奥雷里亚诺·布恩迪亚上校没有显出丝毫不快,但在私人卫队将那位寡妇的家舍夷为平地化为灰烬之后,他的心才恢复平静。“
</p>
<p>
敌视。“最好的朋友,”那时他常这样说,“是刚死去的朋友。”他厌倦了战事无常,身陷这场永无休止的战争的恶性循环中总在原地打转,只不过一次比一次越发老迈,越发衰朽,越发不知道为何而战、如何而战、要战到何时。
</p>
<p>
那个漫无尽头的夜里,赫里内勒多·马尔克斯上校追忆着在阿玛兰妲缝纫间里度过的那些一去不返的午后时光,奥雷里亚诺·布恩迪亚上校则苦苦挣扎了数小时,试图抓裂自己孤独的硬壳。自从那个遥远的午后父亲带他去见识冰块,他唯一的快乐时光就是在金银器作坊里打造小金鱼的时刻。他被迫发动三十二场战争,打破与死亡之间的所有协定,并像猪一样在荣誉的猪圈里打滚,最后耽搁了将近四十年才发现纯真的可贵。
</p>
<p>
说这话的时候,他没有想到结束一场战争要比发动它艰难得多。他花了将近一年时间以血腥手段强迫政府同意对起义军有利的和平条件,又用了一年时间说服自己党派的人接受这些条件。他甚至不惜运用超出想象的铁腕手段来镇压手下那些不肯出售胜利果实的军官的反叛,最终还是借助敌人的力量才令他们屈服。
</p>
<p>
他对时光在家中侵蚀出的种种令人心碎的细微创痕毫无察觉,而任何一个还保有鲜活记忆的人,像他这样长久离家后归来都本该有触目惊心之感。壁上石灰墙皮剥落,角落里肮脏蛛网絮结,秋海棠落灰蒙尘,房梁上白蚁蛀痕纵横,门后青苔累累,然而乡愁的精巧陷阱徒然虚设,这一切都没能勾起他的忆旧伤怀。他在长廊里坐下,裹着毯子,连靴子也没换,仿佛只想等待雨停。整个下午,他都在观看落在秋海棠上的雨水。
</p>
<p>
然而这一切都已被战争抹去。就连蕾梅黛丝,他的妻子,此刻也不过是某个足可做他女儿的人的模糊形象。他在爱的荒漠中结识的无数女人,把他的血脉播撒在整个沿海地区,却不曾在他的情感中留下任何痕迹。她们大多摸黑进房,黎明前离去,次日给他留下的只是肉体的些许厌倦感。唯一经受了时间和战争考验的,只有孩提时代他对哥哥何塞·阿尔卡蒂奥的感情,但那却不是基于友爱,而是源于同谋。
</p>
</div>
</div>
<div id="outline-container-sec-10" class="outline-2">
<h2 id="sec-10"><span class="section-number-2">10</span> 十</h2>
<div class="outline-text-2" id="text-10">
<p>
但乌尔苏拉无法掩饰那隐隐的不祥预感。她从家族漫长历史上重复命名的传统中得出了在她看来无可争辩的结论:所有叫奥雷里亚诺的都性格孤僻,但头脑敏锐,富于洞察力;所有叫何塞·阿尔卡蒂奥的都性格冲动,富于事业心,但命中注定带有悲剧色彩。
</p>
<p>
在换名游戏中保留下奥雷里亚诺第二这名字的男孩变成和祖父一样的彪形大汉,而那个叫作何塞·阿尔卡蒂奥第二的却长得像上校一样瘦骨嶙峋,两人之间仅存的共同点就是家传的孤独气质。或许正是这种体魄、姓名与性格的交错,才使得乌尔苏拉怀疑他们从童年时起就互换了身份。
</p>
<p>
从那以后的好几年里,他们几乎每天下午都见面。梅尔基亚德斯为他讲起世上万事,想把古老的智慧传授给他,却不肯译出手稿。“不到一百年,就不该有人知道其中的含义。”他解释道。对于这些交谈,奥雷里亚诺第二终生持守秘密。
</p>
<p>
他只需带上佩特拉·科特斯去养殖场,和她一起骑马在自己的土地上绕一圈,就足以令所有带着自己标记的牲畜无可救药地染上多产症。
</p>
<p>
这种事情给乌尔苏拉带来巨大烦扰,在那段时间却时常发生。马孔多沉浸在一派奇迹般的繁荣景象中。泥巴和芦苇盖成的屋子已经被配有木制百叶窗和水泥地面的砖石建筑所替代,后者更有利于散去午后两点令人窒息的酷热。何塞·阿尔卡蒂奥·布恩迪亚时代的旧村庄唯一的残留,就是那些覆满灰尘的巴旦杏树,它们忍耐得了最恶劣的环境,而清澈见底的河里那些史前巨石都被何塞·阿尔卡蒂奥第二疯狂的长柄锤砸成了粉末,为的是清理河道开发航路。
</p>
<p>
从她纯粹的实用主义观念出发,她实在难以理解上校的生意意义何在:用小金鱼换来金币,随即把金币变成小金鱼,如此反复,卖得越多活计越辛苦,却只是为了维持一种不断加剧的恶性循环。实际上上校在乎的不是生意,而是干活本身。他必须全神贯注地投入,嵌上片片鱼鳞,用红宝石微粒镶鱼眼,锤出鱼鳃,添上尾鳍,再没有余暇为战后的失落而烦恼。这门精密的手艺极其耗费心神,令他在短短时间内比在整个战争年代衰老得更甚。不变的坐姿令他脊柱变形,精确到毫米的工艺使他视力受损,但不容丝毫分心的专注让他获得了心灵的平静。
</p>
<p>
沉默寡言的奥雷里亚诺·布恩迪亚上校对家中重新焕发的活力视若无睹,约略懂得幸福晚年的秘诀不过是与孤独签下不失尊严的协定罢了。
</p>
</div>
</div>
<div id="outline-container-sec-11" class="outline-2">
<h2 id="sec-11"><span class="section-number-2">11</span> 十一</h2>
<div class="outline-text-2" id="text-11">
<p>
到晚上七点,她仍穿着女王的盛装,在床上款待他。他结婚已近两个月,她却立刻觉察出他的婚姻生活并不美满,心中因实现报复而涌出甜美的快意。然而两天后他没敢再来,而是请别人居间解决分手的善后事宜,她便明白自己得比预期更具耐心,因为他看起来已决心牺牲自我来维持表面的婚姻。
</p>
<p>
他凭着何塞·阿尔卡蒂奥·布恩迪亚翻越山脉创立马孔多那样的蛮勇,凭着奥雷里亚诺·布恩迪亚上校一次次徒劳发动战争那样的盲目骄傲,凭着乌尔苏拉一心延续家族血脉那样的疯狂执拗,寻找费尔南达时不曾有片刻气馁。
</p>
<p>
他在孤寂的作坊里听见军乐声声,礼炮齐鸣,钟声敲响感恩赞,以及家门口飘来演说的只言片语,他们正宣布用他的名字为街道命名。他愤怒得眼眶湿润,恨自己的软弱,自战败后头一回因为再没有年轻时的勇气发动一场血腥的战争,将保守党政府消灭干净而深感痛苦。
</p>
<p>
到了圣灰星期三,在众人四散回到沿海各地之前,阿玛兰妲让他们穿上主日正装,陪他们去了教堂。他们更多是感到有趣而非出于虔诚,被领到祭坛围栏前,由安东尼奥·伊莎贝尔神甫用圣灰在前额上画上十字。回到家后,最小的奥雷里亚诺想要清洗前额,却发现那痕迹无法消除,他的兄弟们也是如此。他们试过清水与肥皂,试过泥土和瓜瓤,最后用上了浮石和碱液,仍然无法除去那痕迹。但阿玛兰妲和其他去望弥撒的人都轻而易举地洗掉了。“
</p>
<p>
时光流逝,战事频仍,加上平日里无数的不幸,她都把丽贝卡给忘了。自始至终清楚地知道她还活着并在蛆虫窝里腐烂的人,只有日渐衰老却毫不心软的阿玛兰妲。当天亮时心中的寒意将她从孤枕上唤醒,她会想起她;当她用肥皂擦洗自己凋零的乳房和枯萎的腹部,当她穿上老年人雪白的细棉布裙和胸衣,当她更换手上缠裹赎罪伤痕的黑纱,都会想起她。无论何时,或睡或醒,从最庄重到最卑下的时刻,她都会想起丽贝卡,因为孤独已经为她筛选记忆,将生活在她心中累积的无数垃圾尽行焚毁,并净化、升华了其他记忆,即那些最苦涩的记忆,使其永远存留。
</p>
<p>
奥雷里亚诺第二决定接她回家好生照料,但他的好意遭到丽贝卡的断然拒绝。她辛苦多年忍受折磨好不容易赢得的孤独特权,绝不肯用来换取一个被虚假迷人的怜悯打扰的晚年。
</p>
<p>
她任凭他们七手八脚完成了工程,随后估算了花销,让一直陪伴自己的老女仆阿尔赫尼妲送去一把在最后一场战事结束后就不再流通,而她以为还通用的硬币。这时人们才明白她与世隔绝到了何种程度,也知道只要她一息尚存,便不可能将她从顽固的自闭中解救出来。
</p>
</div>
</div>
<div id="outline-container-sec-12" class="outline-2">
<h2 id="sec-12"><span class="section-number-2">12</span> 十二</h2>
<div class="outline-text-2" id="text-12">
<p>
上帝仿佛决心要试验人类惊奇的极限,令马孔多人时时摇摆于欢乐与失望、疑惑与明了之间,结果再没有人能确切分清何处是现实的界限。真实与幻景错综纠结,引得栗树下何塞·阿尔卡蒂奥·布恩迪亚的鬼魂也按捺不住,大白天在家中四处游荡。
</p>
<p>
整个城区被一圈金属网环绕,仿佛电网保护下的巨大鸡笼。在夏天凉爽的清晨,网上缀满烧焦的燕子,远远望去黝黑一片。仍然没有人知道他们目的何在,或者真的只是些慈善家,然而这些人已经闹得天翻地覆,令当初吉卜赛人造成的混乱相形见绌,而且更持久也更难以索解。他们掌握了往昔唯有造物主才拥有的力量,能调节降水量,加速收获周期,令河流从亘古不变的路线改道,将河中巨大的白石连同冰冷的激流都移到了市镇另一端的墓地后面。就是这一次,他们在何塞·阿尔卡蒂奥退色的墓上加筑了一层混凝土,以免尸体散发的火药味污染水源。
</p>
<p>
这些淫靡放荡的风月高手,古老技艺无一不精,药膏器具无所不备,能够使无能者受振奋,腼腆者获激励,贪婪者得餍足,节制者生欲望,纵欲者遭惩戒,孤僻者变性情。
</p>
<p>
她简化事物的本性有个惊人之处:她越是抛开时髦只求舒适,越是罔顾成规仅凭感觉行事,她那不可思议的美貌就越发动人心魄,对男人也越有诱惑力。
</p>
<p>
在香蕉林中弥漫着湿润气息又杳无尽头的小径间漫步,那里的寂静仿佛刚刚从别处迁来,崭新未用,因此还不能正常传递声音。有时候在半米的距离内听不清别人说话,但在种植园另一头却能听得清清楚楚。
</p>
<p>
美人儿蕾梅黛丝独自留在孤独的荒漠中,一无牵绊。她在没有恶魇的梦境中,在费时良久的沐浴中,在毫无规律的进餐中,在没有回忆的漫长而深沉的寂静中,渐渐成熟,直到三月的一个下午,费尔南达想在花园里叠起她的亚麻床单,请来家里其他女人帮忙。她们刚刚动手,阿玛兰妲就发现美人儿蕾梅黛丝变得极其苍白,几近透明。
</p>
<p>
如果不是奥雷里亚诺兄弟惨遭屠杀使恐怖代替了惊诧,或许人们在很长时间内都不会有其他的话题。奥雷里亚诺·布恩迪亚上校从未认为自己事先感知过预兆,但他的确在某种程度上早料到了儿子们的悲惨结局。
</p>
<p>
赫里内勒多·马尔克斯上校曾躲过三次暗杀,五次受伤大难不死,身经百战安然无恙,却败给了无尽的等待,屈服于凄凉的晚景,在一间借来的光线昏暗的屋子里想着阿玛兰妲。
</p>
<p>
另一些人更有骨气,在社会救济的荫庇下仍苦苦等待回音,他们或因饥饿而死,或怀着一腔怒火苟活,或在精致的荣誉粪堆中衰老腐烂。
</p>
</div>
</div>
<div id="outline-container-sec-13" class="outline-2">
<h2 id="sec-13"><span class="section-number-2">13</span> 十三</h2>
<div class="outline-text-2" id="text-13">
<p>
她想起以前,上帝还没让岁月缩水如同土耳其商人丈量花布时偷减尺寸,那时候不像现在这样。如今不仅孩子们长得更快,连人的情感也变了样。美人儿蕾梅黛丝连身体带灵魂才升天,凉薄的费尔南达就在角落里踱来踱去,为那些被卷走的床单愤愤不平。奥雷里亚诺们在坟墓里尸骨未寒,奥雷里亚诺第二就又点亮家中的灯火,聚上一群醉汉拉起手风琴,浑身浇透香槟酒,仿佛被害的不是基督徒而只是几条狗,仿佛用无数的操劳和无数的糖果小动物换来的这个疯人之家注定要沦为堕落的垃圾场。
</p>
<p>
咖啡在沸腾,他纯粹出于好奇,不带丝毫怀旧的风险,想着那个他从未知晓姓名,从未见过她生前模样的女人,因为她是在黑暗中跌跌撞撞摸上他的吊床。然而,有太多女人以同样的方式进入他的生活,在他脑海中成为茫然一片,他记不起是否就是她在初会的狂热中几乎淹没在自己的眼泪里,并且在死前不到一小时还信誓旦旦要爱他到死。他不再想她,也不再想其他女人,端着热气腾腾的咖啡走进作坊,打开灯来数点存在铁皮罐里的小金鱼。有十七条。自从决定不再出售,他仍然每天做两条,等凑够二十五条就放到坩埚里熔化重做。
</p>
<p>
最后当队伍全部走过,街上只剩下空荡荡一片,空中满是飞蚁,几个好奇的人还在茫然观望时,他又一次看见了自己那可悲的孤独的脸。于是他向栗树走去,心里想着马戏团。小便的同时,他仍努力想着马戏团,却已经失去记忆。他像只小鸡一样把头缩在双肩里,额头抵上树干便一动不动了。家里人毫无察觉,直到第二天上午十一点桑塔索菲亚·德拉·彼达去后院倒垃圾,忽然发现秃鹫正纷纷从天而降。
</p>
</div>
</div>
<div id="outline-container-sec-14" class="outline-2">
<h2 id="sec-14"><span class="section-number-2">14</span> 十四</h2>
<div class="outline-text-2" id="text-14">
<p>
如果不是阿玛兰妲不合时宜的死亡引发新的动荡,布恩迪亚家衰颓宅院中安静恬和的日子或许能持续很久。这一事件出乎所有人的意料。她虽然衰老又孤僻离群,但看起来依然结实挺拔,一如往常健康得好像磐石。
</p>
<p>
她已作好决定要为丽贝卡的尸身装殓整容,用石蜡掩盖脸上的裂纹,再用圣徒像的头发为她做一顶假发。她将装扮出一具美丽的尸体,让它身着亚麻寿衣,并为棺材套上带紫色花边的丝绒衬面,还要举行最体面的仪式下葬到蛆虫的所在。她满怀怨恨地制定了计划,但心中一个念头令她战惊:纵然出于爱意,她也无法做得比这更好。但她没受困惑搅扰,继续完善各种细节,最后超越了丧葬专家的水准,不啻精通死亡仪轨的大师。在这可怖的计划中唯一没有考虑到的就是,她尽管曾向上帝祈求,仍有可能死在丽贝卡之前。事实上,事情就这样发生了。
</p>
<p>
随着完工日期不可避免地临近,她意识到除非发生奇迹,才能将活计拖到丽贝卡死后,但干活时的专注令她得以保持必要的镇静来接受失败。也就在那时,她理解了奥雷里亚诺·布恩迪亚上校制成小金鱼随即又销毁的举动。世界不过是身外之物,她的内心不再为任何苦痛而波动。她深深遗憾没能在多年前获得这样的领悟,那时还来得及净化记忆,在崭新的光芒下重建世界,平静地唤回傍晚时皮埃特罗·克雷斯皮身上的薰衣草味道,并且将丽贝卡救出悲惨的境地,而这不是出于爱也不是出于恨,而是出于对孤独的深切理解。那天晚上梅梅言语中的怨恨令她惊讶,并非因为她在情感上受到触动,而是因为她感觉到自己的经历在另一个少女身上重演,她表面看来纯洁无瑕,实际上却已遭到怨恨的玷污。但那时她已完全接受命运,明知纠正的一切可能都不复存在,也并不觉得失落。
</p>
<p>
这时,阿玛兰妲刚刚将自己的物品分发给穷人,只留下死后要穿的一套换洗内衣和一双普通的灯芯绒便鞋放在简陋的粗木棺材板上。她没有忽略这个细节,因为她还记得奥雷里亚诺·布恩迪亚上校死的时候只剩下在作坊里穿的拖鞋,自己不得不给他买一双新鞋。
</p>
<p>
灯光还亮着的时候,就有一只夜间活动的蝴蝶在她头顶盘旋。时候到了。灯光熄灭,马乌里肖·巴比伦坐到了她身边。梅梅感觉自己在惶然不安的沼泽中挣扎,而且就像她梦到的那样,只有那个身上带着机油味、黑暗中几乎看不见的男人才能拯救她。
</p>
</div>
</div>
<div id="outline-container-sec-15" class="outline-2">
<h2 id="sec-15"><span class="section-number-2">15</span> 十五</h2>
<div class="outline-text-2" id="text-15">
<p>
梅梅对穿越昔日着魔之地的旅行几乎毫无意识。她不曾看见铁路两侧遮天蔽日的香蕉种植园。她不曾看见美国佬的白房子,因尘土和酷热变得荒芜的花园,身穿短裤和蓝条衬衫在门厅里玩牌的女人。她不曾看见尘雾飞扬的路上满载着香蕉的牛车。她不曾看见如同鲱鱼般跃入清澈河水的少女,她们高耸的酥胸令火车上的乘客饱受折磨。她不曾看见工人居住的杂乱破烂的棚屋,马乌里肖·巴比伦的黄蝴蝶在那里盘旋,脸色青绿、瘦骨嶙峋的孩子坐在门口的便盆上,怀孕的女人们朝开过的火车高喊着污言秽语。这些飞速闪过的情景,当初在离校回家的路上曾令她兴奋不已,如今却无法在她心里激起一丝涟漪。种植园热烘烘的湿气消失了,火车穿过开满罂粟花,还矗立着西班牙大帆船烧焦的龙骨的原野,迎上与将近一个世纪前同样清凉的空气,驶向泡沫泛涌的肮脏大海边,驶向当年何塞·阿尔卡蒂奥·布恩迪亚梦想破灭的地方,而梅梅却不曾往窗外看过一眼。
</p>
<p>
梅梅握住她的手,跟了上去。那是费尔南达最后一次看见她,她正努力跟上修女的脚步,最后消失在修道院的铁栅后面。她仍在想念马乌里肖·巴比伦,想念他身上的机油味和身边的蝴蝶。她每一天都在想念他,直到多年以后一个秋天的早晨在克拉科夫一家阴森的医院里衰老而死,那时的她已改名换姓,终生一言未发。
</p>
<p>
不到三个月他们就获释了,因为政府与香蕉公司没能就哪一方应当负担囚犯在狱中的伙食达成协议。这一次工人的不满在于居住区缺乏卫生设施,医疗服务纯属欺骗,工作条件太过恶劣。另外他们还提出,公司从未支付现钞,总以代用券顶替,而那只能用来在公司的货栈购买弗吉尼亚火腿。
</p>
<p>
工人们厌倦了这些荒诞的诡辩,越过马孔多当局,直接上诉于最高法院。在那里操纵法律的魔术师们证明所有的指控都毫无效力,因为香蕉公司没有,从未有过,也永远不会有任何正式工人,一直以来都是招募临时工。由此,关于弗吉尼亚火腿、神奇药丸和移动厕所的谎言彻底破灭,法庭作出最终判决,颁布公告严正宣布根本不存在什么工人。
</p>
<p>
三个团的士兵踏着苦役犯划桨的鼓点行进,大地在他们脚下震颤。他们仿佛多头巨龙一般,在正午的阳光中呼出臭气。他们矮小,结实,粗鲁。他们像马一样流汗,发出太阳暴晒下的兽皮气味,带着内地人寡言的漠然和难以捉摸的神情。队伍走了一个多小时,但给人的印象似乎只是几个小队来回转圈,因为所有人都很相似,仿佛一个母亲生出的儿子,并且都同样呆滞地承受着背囊和水壶的重负、上了刺刀的步枪带来的耻辱、盲目服从与荣誉感之间的矛盾。
</p>
<p>
他喊叫后发生的事情并未令他产生恐惧,而是恍如幻觉。上尉下令开火,十四处机枪掩体立时响应。但一切宛似一场闹剧,仿佛机枪正在喷射的只是骗人的烟火,因为能听见急迫的枪声嗒嗒,能看见白炽的烈焰喷吐,却感受不到任何轻微的反应,听不到任何声音,甚至一声叹息。密集的人群仿佛瞬间石化,刀枪不入。突然,在车站一侧,一声垂死的呼号打破了着魔般的状态:“啊啊,妈妈呀。”一股翻天覆地的力量,一种火山爆发的气流,一阵大难临头的咆哮,在人群中以无比凶猛的势头猝然爆发。何塞·阿尔卡蒂奥第二几乎来不及抱起孩子,而他母亲和另一个孩子已经被四下奔逃的惊惶人群所吞没。
</p>
<p>
孩子看见一个女人双臂呈十字平伸,跪在一片神奇地未遭践踏的空地上。满脸鲜血的何塞·阿尔卡蒂奥第二在倒地的一刻将他推到那里,随后蜂拥而至的人潮淹没了空地,淹没了跪着的女人,淹没了旱季高远天空中的光线,淹没了乌尔苏拉·伊瓜兰曾售出无数糖果小动物的这个该死的世界。
</p>
<p>
只是当军方问及何时可以宣布签署协议,他望了望窗外闪电纵横的天空,摆出一副不置可否的表情。“估计要等到天晴。”他说,“只要雨还在下,我们的一切活动都取消。”此前三个月没有下过雨,正值旱季。但在布朗先生宣布他的决定后,整个香蕉种植区暴雨大作,何塞·阿尔卡蒂奥第二在回马孔多的路上正赶上这场暴雨。一个星期后雨仍未停。
</p>
</div>
</div>
<div id="outline-container-sec-16" class="outline-2">
<h2 id="sec-16"><span class="section-number-2">16</span> 十六</h2>
<div class="outline-text-2" id="text-16">
<p>
雨下了四年十一个月零两天。
</p>
<p>
看着他装门锁,修钟表,费尔南达不禁暗自担心他会不会也染上了且造且毁、且毁且造的恶习,就如同奥雷里亚诺·布恩迪亚上校做小金鱼、阿玛兰妲缝扣子做寿衣、何塞·阿尔卡蒂奥第二读羊皮卷、乌尔苏拉追忆往事那样。
</p>
<p>
环境如此湿润,仿佛鱼儿可以从门窗游进游出,在各个房间的空气中畅泳。一天早上乌尔苏拉醒来,觉得自己陷入一种恬静的恍惚中,叫人哪怕用担架也要将自己送到安东尼奥·伊莎贝尔神甫那里。就在此时,桑塔索菲亚·德拉·彼达发现她后背上密密麻麻全是水蛭。赶在乌尔苏拉的鲜血被吸干之前,她用未熄的木炭烫灼把水蛭一条条揭下来。家里不得不开沟排水,清除蟾蜍和蜗牛,这样才能晾干地面,撤去垫在床脚的砖块,重新穿鞋走路。
</p>
<p>
奥雷里亚诺第二带着自己的衣箱回到家里,心中确信不仅是乌尔苏拉,马孔多所有的居民都在等待雨停后死去。一路上,他看见他们坐在厅堂里,眼神迷茫,抱手胸前,感受着浑然一体、未经分割的时光在流逝。既然除了看雨再无事可做,那么将时光分为年月、将日子分为钟点都终归是徒劳。
</p>
<p>
随着谷仓存粮日渐匮乏,费尔南达的怨气也日益增长,偶尔的牢骚、少见的怨言终于爆发为势不可当的洪涛,在一个早上以仿佛吉他叠句的单调起始,一天里音调渐渐升高,音色越发丰富,韵律益显激越。奥雷里亚诺第二起初并未留心这反复的唠叨,直到次日早饭后才察觉那比雨声更流畅高昂的嗡鸣声,吵得他头昏脑涨。费尔南达在整个家中游走,痛诉满腹的哀怨,说自己原是照着女王的模子受的培养,结果却沦落成一个疯人院的女佣,有个游手好闲、崇拜偶像、放荡不羁、整天仰面躺着等天上掉面包的丈夫,而她却要累折了腰靠几个小钱维持这个用大头针撑起的家,从上帝开启新的一天到她晚上眼睛疼得像进了玻璃碴才上床睡觉,总有那么多事要做,总有那么多事要忍耐要纠正,却从没有人说一句“早上好,费尔南达”或“晚上睡得怎么样,费尔南达”,也从没有人哪怕是出于礼貌问一声她脸色为什么这样苍白或为什么早上起来眼圈发紫,
</p>
<p>
马孔多满目疮痍。街巷间的泥潭中残留着破烂家具,被红色百合覆盖的动物骨架,都是外来人潮留下的最后遗物,他们一拥而至又一哄而散。香蕉热潮期间匆忙盖起的房子都已废弃。香蕉公司撤走了一切设施。当初电网包围的城市只剩下一地瓦砾。那些木屋,那些午后常有轻松牌戏的清凉露台,都被飓风刮走,仿佛是多年后马孔多必将从世间被抹去的预演。
</p>
<p>
这时,她让他去卧室看一眼,他便看到了那头母骡。它和主人一样瘦得皮包骨,但也和她一样精神抖擞,神情坚定。佩特拉·科特斯用自己的怒气培育它,没有草料、没有玉米也没有树根时便把它安置在卧室,喂它棉布床单、波斯地毯、长毛绒床罩、天鹅绒窗帘,以及主教式大床上用金线刺绣、带真丝流苏的华盖。
</p>
</div>
</div>
<div id="outline-container-sec-17" class="outline-2">
<h2 id="sec-17"><span class="section-number-2">17</span> 十七</h2>
<div class="outline-text-2" id="text-17">
<p>
乌尔苏拉颇费了一番工夫,才兑现雨停就死去的诺言。雨天里她难得神智清明,八月后却频显清醒,那时开始刮起干燥的热风,令玫瑰萎谢泥沼枯涸,在马孔多遍撒滚烫的尘沙,将生锈的锌皮屋顶和百年的巴旦杏树永远覆盖。
</p>
<p>
她还发现,从墙壁到地基处处开裂,家具退色散架,房门脱轴,家中弥漫着一种在她那个时代无法想象的听天由命的悲戚氛围。她摸索着走过一间间空荡荡的卧室,听到白蚁蛀蚀木头低鸣不止、蠹虫在衣柜中沙沙大嚼,听到暴雨期间大肆繁殖的红色巨蚁挖掘地基时的毁灭之声。一天,她打开装圣像的箱子,里面跳出的蟑螂当即爬上身来,她不得不向桑塔索菲亚·德拉·彼达求助才得以脱身。箱里的衣服早已被咬噬成灰。“
</p>
<p>
何塞·阿尔卡蒂奥第二仍在研读羊皮卷,在他那蓬乱成团的须发间只能隐约辨出长着绿色苔藓的牙齿和木然的双眼。听出是曾祖母的声音,他转头往门口望去,努力挤出笑容,却在无意中重复了乌尔苏拉当年的一句话。“您还能指望什么?”他喃喃道,“时间过得很快。”“话是没错,”乌尔苏拉说,“可也没那么快。”话一出口,她便意识到正在重复奥雷里亚诺·布恩迪亚上校在死囚房里对自己说的话,再次在战惊中证实了时间并没有像她刚承认的那样过去,而是在原地转圈。
</p>
<p>
想起往昔,两人都把荒唐的欢宴、离奇的财富和毫无节制的私情当作妨碍,一同感慨浪掷了多少时光才找到共享孤独的天堂。两人在无儿无女的多年相伴之后疯狂相爱,奇迹般从桌上到床上都如胶似漆无比幸福,直到年老体衰时仍像小兔一样嬉戏,像狗一般打闹。
</p>
<p>
她死在圣星期四一早。人们最后一次帮她数算年龄是在香蕉公司时期,当时得出的结果在一百一十五到一百二十二岁之间。她被放进一口比当年装奥雷里亚诺的篮子略大的小棺材,只有很少的人出席葬礼,一方面是因为记得她的人已经不多,另一方面因为那天中午极其炎热,连飞鸟都昏头昏脑像霰弹一般纷纷撞向墙壁,撞破铁窗纱死在卧室里。
</p>
<p>
丽贝卡死于那年年底。毕生服侍她的女仆阿尔赫尼妲请求当局强行打开卧室的房门,她的主人已经在里面关了三天。人们看到她躺在孤寂的床榻上,像虾米般缩成一团,头发因生癣而落尽,大拇指含在嘴里。奥雷里亚诺第二负责料理了丧事,并打算把房子修葺好卖掉。然而那房子已破败得无可挽救,墙皮刚抹好即纷纷脱落,刷上再厚的灰浆也无济于事,只能眼看着杂草穿透地面、蔓藤侵蚀椽柱。
</p>
<p>
费尔南达闭门幽居的执著成为一道坚不可摧的堤坝,遏阻住乌尔苏拉积蕴百年的洪流。她不仅拒绝在热风经过时开门,还命人用十字木条钉死窗户,严格遵循娘家教导过着活死人的生活。她与隐身医生频繁的通信以失败告终。经过无数次拖延后,她在约定的日期和时间把自己关进卧室,头向北躺着,周身上下只裹了条白床单。到凌晨一点,她感到有人用浸过冰凉液体的手帕盖上自己的脸。等她醒来,阳光在窗前闪耀,她身上多了一道可怕的弧形伤口,从腹股沟一直延伸到胸前。
</p>
<p>
桑塔索菲亚·德拉·彼达履行了诺言,用菜刀砍下何塞·阿尔卡蒂奥第二的头,以保证他没有被活埋。两具尸体被放进同样的棺材,他们在死亡中重新变得酷似,就像童年时一样。奥雷里亚诺第二旧日的酒肉朋友在棺材上摆放了花圈,花圈的紫色缎带上写着一句悼词:让一让,母牛们,生命短暂啊。费尔南达对这一不敬举动大为光火,让人把花圈丢进了垃圾堆。在最后一刻的慌乱中,悲伤的醉汉们抬棺材出家门时弄混了,把两人各自下葬在对方的坟墓里。
</p>
</div>
</div>
<div id="outline-container-sec-18" class="outline-2">
<h2 id="sec-18"><span class="section-number-2">18</span> 十八</h2>
<div class="outline-text-2" id="text-18">
<p>
她觉得自己如此老迈、衰弱,离生命中的美好时光已如此遥远,竟开始怀念那些最不如意的时刻,而直到此时她才发现自己多么需要长廊里飘来的牛至香气、黄昏时的玫瑰芬芳,甚至渴望外乡人带来的野蛮生机。她本已心如死灰,在日常忧患的痛切打击下若无其事,却在怀旧伊始被击溃了防线。随着岁月的摧残,她对自怜自伤的需求渐渐沦为一种恶习。
</p>
<p>
奥雷里亚诺因此第二次出门上街。他只走了两个街区便来到了那间逼仄的药房,落满灰尘的橱窗里摆着带拉丁语标签的瓷瓶,一个宛似尼罗河水蛇般沉静美艳的姑娘按照何塞·阿尔卡蒂奥写在纸条上的药名给他拿了药。第二次看到的荒芜城镇在泛黄的街灯下犹显昏暗,仍像第一次那样并未唤起奥雷里亚诺的好奇。
</p>
</div>
</div>
<div id="outline-container-sec-19" class="outline-2">
<h2 id="sec-19"><span class="section-number-2">19</span> 十九</h2>
<div class="outline-text-2" id="text-19">
<p>
尽管刚结束长途跋涉,她却一天也没休息。她从丈夫骑摩托的行头里拣出一件旧粗布工装穿上,开始着手重整家宅。她把占据长廊的红蚂蚁赶走,使玫瑰复活,将杂草拔除,在扶栏上挂的花盆里重新栽下欧洲蕨、牛至和秋海棠。她率领一队木匠、锁匠和泥瓦匠补上地面裂缝,修好门窗合页,又将家具翻新,把里外墙壁刷得雪白。在她回来三个月后,屋里又充满了自动钢琴时代那种青春欢快的气息。家里从未有谁像她这般无论何时何地都能保持乐观,永远歌声不断舞步不歇,随时准备将陈腐的事物和习俗丢进垃圾堆。她扫帚一挥便抹去了守丧的惨淡记忆,将堆积在犄角旮旯里的一堆堆无用破烂和迷信物品扫地出门,仅仅出于对乌尔苏拉的感激才留下客厅里蕾梅黛丝的银版照片。“
</p>
<p>
她记得母亲曾在信中提到飞鸟的暴亡,因此特地将行程推迟几个月,搭上一艘中途在幸福群岛停靠的航船,在岛上精心选购了二十五对最好的金丝雀,准备用来重新装点马孔多的天空。这后来成了她众多失败举措中最令人遗憾的一项。随着鸟儿不断繁殖,阿玛兰妲·乌尔苏拉一对对放生,但它们乍出樊笼便立刻从市镇上飞走。她试图利用乌尔苏拉第一次扩建家宅时制作的巨大鸟舍吸引它们入住,却没能奏效。她用针茅草在巴旦杏树上搭鸟窝,又在屋顶撒草籽,还逗引笼中的鸟儿放声啼叫来挽留那些已出笼的同伴,却都归于徒劳,因为那些鸟儿全都毫不迟疑地振翅高飞,在空中打个转,只一辨出方位就立刻奔向飞往幸福群岛的归途。
</p>
<p>
她的丈夫加斯通一向不拂逆她的意愿,但他在那个可怕的中午一走下火车就已经明白,妻子作此决定完全出于对某种虚无蜃景的怀恋。
</p>
<p>
他向阿玛兰妲·乌尔苏拉要来这钱固然因为需要,但更多地是为了让她也以某种形式卷入自己的冒险,从而折辱她,占有她。尼格罗曼妲把他引向诱人的烛火映照下的卧室,引向那张因反复接客而脏污不堪的折叠床,引向她冷酷无情、精壮如母狗般的身体,她本打算像安慰受惊的孩子似的将他打发,不料遇上的却是一个勇猛异常的男人,搅得她五脏六腑都在巨震中错位。
</p>
<p>
奥雷里亚诺发表蟑螂宏论的那天下午,讨论最后在那些卖身糊口的女孩们家里结束,那是一家充满假象的妓院,位于马孔多郊区。老鸨是个笑容可掬的好心妈妈,有着喜欢开门关门的怪癖。她不变的微笑仿佛在嘲弄那些信以为真的主顾,他们真的把只在想象中存在的一切当作了实在,因为这里连可触可感的物品也同属虚假:家具坐上去便散架,唱机的空膛里藏了一只抱窝的母鸡,花园里全是纸花,日历上还是香蕉公司到来之前的年份,画框里的版画剪自从未出版过的杂志。连那些一听到老鸨招呼接客便从四邻赶来的羞怯小妓女,也同样当不得真。她们出现时并不打招呼,穿着五年前的印花小衣裳,怎样天真无邪地穿上也怎样脱下,在情爱的高潮则大声惊呼“好家伙,你看房顶都要塌了”,而一拿到那一比索五十生太伏就立即去老鸨那里买面包和干酪。每到这时老鸨的笑容更加欢畅,因为只有她知道那些食物同样并非真实。
</p>
<p>
他们谈起对工人的大屠杀,记忆变得更加扑朔迷离。每当奥雷里亚诺触及这个话题,不仅老鸨一人,一些比她年长的老人都会驳斥所谓工人被包围在广场、两百节车厢的火车满载死尸之类的谣言,并且坚决捍卫已然在法庭案卷和小学教科书中根深蒂固的说法:根本没有过什么香蕉公司。因此奥雷里亚诺和加夫列尔因着一种建立在无人相信的事实基础上的默契联结在一起,他们的生活被这些事实深深改变,他们在只余怀缅的末日世界的退潮中漂泊。
</p>
<p>
奥雷里亚诺笑了,双手将她拦腰抱起好像托着一盆秋海棠,仰面丢在床上。没等她反抗,他粗鲁地一把剥去浴衣,新浴后的胴体令他震撼不已,每一寸肌肤、每一丝茸毛,甚至连最隐秘处的痣斑他都在别处房间的幽暗中想象过。阿玛兰妲·乌尔苏拉奋力反抗,凭着训练有素的雌兽般的狡黠,如鼬鼠般扭动光滑、柔韧而芬芳的身体,同时试图用膝盖顶住他的腰,似蝎子般抓挠他的脸。但两人发出的声响极小,至多好像有人在敞开的窗户前观赏四月凝远的暮色时发出的轻叹。这是一场激烈的争斗,一场殊死的恶战,却好像与暴力无涉,因为其中只见似是而非的进攻,恍如幽灵的闪躲,缓慢、谨慎而庄重。于是在进攻间歇便有足够的时间让牵牛花再次绽放,让隔壁房间里的加斯通忘却关于飞机的梦想,他们俩就仿佛一双敌对的情侣在清澈的水塘深处寻求和解。在激烈而富于仪式感的争斗中,阿玛兰妲·乌尔苏拉想到刻意保持静寂更为反常,这比他们努力抑制的打斗声更容易引起隔壁丈夫的怀疑。她便抿着嘴笑出声来,同时并未放弃搏斗,不过防御时只是装模作样地撕咬,也渐渐不再扭动身体,最后双方都意识到彼此既是对手又是同谋,由此争斗沦为惯常的嬉闹,攻击变作爱抚。突然间,近乎玩耍或又一次恶作剧,阿玛兰妲·乌尔苏拉放松了防御,但当她被自己造成的后果吓住并试图应对的时候已经迟了。一种异乎寻常的震撼将她定在原处动弹不得,她的反抗意志被不可抵御的热切欲望压倒,她想要知道那些在死亡彼岸等待她的橙色呼啸和隐形球体究竟是什么。她只来得及伸出手臂摸索到毛巾用牙齿咬住,以免传出那撕心裂肺的牝猫尖叫。
</p>
</div>
</div>
<div id="outline-container-sec-20" class="outline-2">
<h2 id="sec-20"><span class="section-number-2">20</span> 二十</h2>
<div class="outline-text-2" id="text-20">
<p>
庇拉尔·特尔内拉死在藤摇椅上,那是在一个欢宴的夜晚,她当时仍在自己的乐园入口看门。根据她的遗愿,人们没有将她入棺,而是让她坐在藤摇椅上,由八条大汉用龙舌兰粗绳缒到舞池中央挖出的大坑里。那些混血姑娘身着黑衣,哭得脸色苍白,按她们即兴想出的告别仪式纷纷摘下耳坠、胸针和戒指扔到墓穴中,随后用一块全无姓名日期的墓碑封住,在上面用亚马逊山茶堆成小丘。而后她们将动物全部毒死,用砖头和灰泥封牢门窗,这才带着自己的木衣箱各奔他乡,箱内贴满了圣徒像、杂志彩画,以及那些遥远而神奇的露水情人的肖像,他们或屙钻石,或吃人肉,或在公海上被尊为纸牌之王。
</p>
<p>
他对文字的狂热中既有崇高敬意又有冷嘲热讽,对自己的手稿同样采取这种双重态度。阿尔丰索为翻译这些手稿学会了加泰罗尼亚语,常把一卷稿子揣在兜里—里面总满满塞着各色剪报和奇特行业的手册—结果一天晚上在卖身糊口的女孩们家里丢失了。老智者得悉后,居然没有大动肝火,反而大笑不已,说那正是文学的自然归宿。
</p>
<p>
然而尽管他自己表面上并未察觉,那些在心绪转好后写下的热情洋溢的信件,却渐渐变成了灰心丧气的牧函。冬夜,汤锅在炉上沸滚,他却在怀念书店后堂的闷热,烈日照在蒙尘的巴旦杏树上的嗡响,午休的昏恹中响起的火车汽笛,正如他在马孔多时怀念冬天炉上的热汤,咖啡小贩的叫卖,以及春天里疾飞的云雀。两种怀念如同双镜对立,他夹在其间不知所措,无法再保持高妙的超脱,最后甚至劝说他们全都离开马孔多,忘掉他传授的一切世道人心知识,让贺拉斯见鬼去,还说不论在什么地方都要记住,过去都是假的,回忆没有归路,春天总是一去不返,最疯狂执著的爱情也终究是过眼云烟。
</p>
<p>
在那个连飞鸟也厌弃,长久的扬尘与酷热令人呼吸艰难的马孔多,奥雷里亚诺和阿玛兰妲·乌尔苏拉被爱情、被孤独、被爱情的孤独幽禁在因红蚂蚁疯狂啃噬的轰响而难以入睡的家里,他们是唯一幸福的生灵,世上再没有比他们更幸福的人。
</p>
<p>
他们的情爱技艺登峰造极,在高潮后的疲惫中也能另辟佳境。他们全心膜拜对方的肉体,发现情爱的低潮里存在着未开发的领域,那比欲望的空间更丰饶幽美。
</p>
<p>
奥雷里亚诺和阿玛兰妲·乌尔苏拉接受了篮中弃婴的说法,并非因为相信,而是因为能够借此脱离恐惧。随着产期的临近,两人渐渐变得仿佛一人,不分彼此,在那幢吹口气就会倒塌的房子里的孤寂中融为一体。他们退到一个仅能栖身的空间,从费尔南达的卧室,在那里他们得以享受情爱的静谧之美,到长廊的起点,在那里阿玛兰妲·乌尔苏拉坐下来为即将降生的孩子缝制小靴子和小帽子,奥雷里亚诺则在一旁回复加泰罗尼亚智者偶尔的来信。家中其他地方已在毁灭的重围中沦降。金银器作坊,梅尔基亚德斯的房间,桑塔索菲亚·德拉·彼达当年料理之下的原始而沉寂的王国,都已沉陷在一片家居密林的深处,没人胆敢涉险探入。在大自然吞噬之力的重围中,奥雷里亚诺和阿玛兰妲·乌尔苏拉仍然栽种牛至与秋海棠,保卫自己用石灰圈出的领地,为永恒的人蚁之战挖出最后的战壕。
</p>
<p>
而最后一道防线,奥雷里亚诺在迷上阿玛兰妲·乌尔苏拉时就已隐隐猜到,那便是梅尔基亚德斯并未按照世人的惯常时间来叙述,而是将一个世纪的日常琐碎集中在一起,令所有事件在同一瞬间发生。
</p>
<p>
到这时,他才发现阿玛兰妲·乌尔苏拉不是他的姐妹,而是他的姨妈,而当年弗朗西斯·德雷克袭击里奥阿查不过是为了促成他们俩在繁复错综的血脉迷宫中彼此寻找,直到孕育出那个注定要终结整个家族的神话般的生物。
</p>
<p>
这座镜子之城——或蜃景之城——将在奥雷里亚诺·巴比伦全部译出羊皮卷之时被飓风抹去,从世人记忆中根除,羊皮卷上所载一切自永远至永远不会再重复,因为注定经受百年孤独的家族不会有第二次机会在大地上出现。
</p>
</div>
</div>
</div>
</body>
</html>
| 44.040123 | 641 | 0.839442 |
c11fc63ec48e9bb0606c8d1dee1f985457079f54 | 609 | sql | SQL | cont.sql | nenadnoveljic/tpt-oracle | b64c45cc7911b9bb4698901ba8a3eedd1c6a3e28 | [
"Apache-2.0"
] | 483 | 2018-05-16T04:52:12.000Z | 2022-03-18T18:15:28.000Z | cont.sql | nenadnoveljic/tpt-oracle | b64c45cc7911b9bb4698901ba8a3eedd1c6a3e28 | [
"Apache-2.0"
] | 27 | 2019-01-21T07:55:13.000Z | 2022-02-28T12:00:30.000Z | cont.sql | nenadnoveljic/tpt-oracle | b64c45cc7911b9bb4698901ba8a3eedd1c6a3e28 | [
"Apache-2.0"
] | 237 | 2018-05-16T04:52:25.000Z | 2022-03-24T03:48:35.000Z | -- Copyright 2018 Tanel Poder. All rights reserved. More info at http://tanelpoder.com
-- Licensed under the Apache License, Version 2.0. See LICENSE.txt for terms & conditions.
COL cont_open_time HEAD OPEN_TIME FOR A35
SELECT
con_id
, dbid
-- , con_uid
-- , guid
, name
, open_mode
, restricted
, open_time cont_open_time
, create_scn
, total_size
, block_size
, recovery_status
, snapshot_parent_con_id
FROM v$containers;
| 27.681818 | 90 | 0.536946 |
de62bbae8d9eca06d9bd83814c051b0585b837a6 | 4,066 | rs | Rust | src/rules/no_extra_non_null_assertion.rs | DomParfitt/deno_lint | e8097ffd544f9a3515be40c83fbb483548cb7f99 | [
"MIT"
] | null | null | null | src/rules/no_extra_non_null_assertion.rs | DomParfitt/deno_lint | e8097ffd544f9a3515be40c83fbb483548cb7f99 | [
"MIT"
] | null | null | null | src/rules/no_extra_non_null_assertion.rs | DomParfitt/deno_lint | e8097ffd544f9a3515be40c83fbb483548cb7f99 | [
"MIT"
] | null | null | null | // Copyright 2020 the Deno authors. All rights reserved. MIT license.
use super::Context;
use super::LintRule;
use swc_common::Span;
use swc_ecmascript::ast::Expr;
use swc_ecmascript::ast::ExprOrSuper;
use swc_ecmascript::ast::OptChainExpr;
use swc_ecmascript::ast::TsNonNullExpr;
use swc_ecmascript::visit::Node;
use swc_ecmascript::visit::Visit;
use std::sync::Arc;
pub struct NoExtraNonNullAssertion;
impl LintRule for NoExtraNonNullAssertion {
fn new() -> Box<Self> {
Box::new(NoExtraNonNullAssertion)
}
fn code(&self) -> &'static str {
"no-extra-non-null-assertion"
}
fn lint_module(
&self,
context: Arc<Context>,
module: &swc_ecmascript::ast::Module,
) {
let mut visitor = NoExtraNonNullAssertionVisitor::new(context);
visitor.visit_module(module, module);
}
}
struct NoExtraNonNullAssertionVisitor {
context: Arc<Context>,
}
impl NoExtraNonNullAssertionVisitor {
fn new(context: Arc<Context>) -> Self {
Self { context }
}
fn add_diagnostic(&mut self, span: Span) {
self.context.add_diagnostic(
span,
"no-extra-non-null-assertion",
"Extra non-null assertion is forbidden",
);
}
fn check_expr_for_nested_non_null_assert(&mut self, span: Span, expr: &Expr) {
match expr {
Expr::TsNonNull(_) => self.add_diagnostic(span),
Expr::Paren(paren_expr) => {
self.check_expr_for_nested_non_null_assert(span, &*paren_expr.expr)
}
_ => {}
}
}
}
impl Visit for NoExtraNonNullAssertionVisitor {
fn visit_ts_non_null_expr(
&mut self,
ts_non_null_expr: &TsNonNullExpr,
parent: &dyn Node,
) {
self.check_expr_for_nested_non_null_assert(
ts_non_null_expr.span,
&*ts_non_null_expr.expr,
);
swc_ecmascript::visit::visit_ts_non_null_expr(
self,
ts_non_null_expr,
parent,
);
}
fn visit_opt_chain_expr(
&mut self,
opt_chain_expr: &OptChainExpr,
parent: &dyn Node,
) {
let maybe_expr_or_super = match &*opt_chain_expr.expr {
Expr::Member(member_expr) => Some(&member_expr.obj),
Expr::Call(call_expr) => Some(&call_expr.callee),
_ => None,
};
if let Some(expr_or_super) = maybe_expr_or_super {
if let ExprOrSuper::Expr(expr) = &expr_or_super {
self.check_expr_for_nested_non_null_assert(opt_chain_expr.span, expr);
}
}
swc_ecmascript::visit::visit_opt_chain_expr(self, opt_chain_expr, parent);
}
}
#[cfg(test)]
mod tests {
use super::*;
use crate::test_util::*;
#[test]
fn no_extra_non_null_assertion_ok() {
assert_lint_ok::<NoExtraNonNullAssertion>(
r#"const foo: { str: string } | null = null; const bar = foo!.str;"#,
);
assert_lint_ok::<NoExtraNonNullAssertion>(
r#"function foo() { return "foo"; }"#,
);
assert_lint_ok::<NoExtraNonNullAssertion>(
r#"function foo(bar: undefined | string) { return bar!; }"#,
);
assert_lint_ok::<NoExtraNonNullAssertion>(
r#"function foo(bar?: { str: string }) { return bar?.str; }"#,
);
}
#[test]
fn no_extra_non_null_assertion_err() {
assert_lint_err::<NoExtraNonNullAssertion>(
r#"const foo: { str: string } | null = null; const bar = foo!!.str;"#,
54,
);
assert_lint_err::<NoExtraNonNullAssertion>(
r#"function foo(bar: undefined | string) { return bar!!; }"#,
47,
);
assert_lint_err::<NoExtraNonNullAssertion>(
r#"function foo(bar?: { str: string }) { return bar!?.str; }"#,
45,
);
assert_lint_err::<NoExtraNonNullAssertion>(
r#"function foo(bar?: { str: string }) { return (bar!)!.str; }"#,
45,
);
assert_lint_err::<NoExtraNonNullAssertion>(
r#"function foo(bar?: { str: string }) { return (bar!)?.str; }"#,
45,
);
assert_lint_err::<NoExtraNonNullAssertion>(
r#"function foo(bar?: { str: string }) { return bar!?.(); }"#,
45,
);
assert_lint_err::<NoExtraNonNullAssertion>(
r#"function foo(bar?: { str: string }) { return (bar!)?.(); }"#,
45,
);
}
}
| 26.402597 | 80 | 0.640187 |
e9a859c30aee128c4c2443f144be05df95c1c9e2 | 2,547 | go | Go | client.go | mbirinci/easyhttp | 2920017f74c74296f21ebd907e058be72629f330 | [
"MIT"
] | 4 | 2022-02-18T00:12:48.000Z | 2022-03-25T14:27:33.000Z | client.go | mbirinci/easyhttp | 2920017f74c74296f21ebd907e058be72629f330 | [
"MIT"
] | 1 | 2021-09-14T19:14:52.000Z | 2021-09-14T19:14:52.000Z | client.go | mbirinci/easyhttp | 2920017f74c74296f21ebd907e058be72629f330 | [
"MIT"
] | null | null | null | package easyhttp
import (
"encoding/json"
"io/ioutil"
"net/http"
)
// Client is extended stdlib *http.Client
type Client struct {
// embed *http.Client
*http.Client
}
// Response is extended *http.Response
type Response struct {
// embed *http.Response
*http.Response
// RawBody holds body data as byte that read from stream
RawBody []byte
}
// Options are the options available to a request
type Options struct {
// Header contains the request header fields
Header map[string]string
// Hook provides http request to use before request call
// It is useful when you need to modify it or registering for any purpose
RequestHook func(r *http.Request)
// Hook provides http request to use before request call
// It is useful when you need to modify it or registering for any purpose
ResponseHook func(r *http.Response)
}
// EasyGet make request and read body stream
// It returns extended Response that acts as *http.Response
func (c *Client) EasyGet(url string, opts *Options) (*Response, error) {
req, err := http.NewRequest(http.MethodGet, url, nil)
if err != nil {
return nil, err
}
if opts != nil {
if opts.RequestHook != nil {
opts.RequestHook(req)
}
for k, v := range opts.Header {
req.Header.Add(k, v)
}
}
resp, err := c.Do(req)
if opts != nil && opts.ResponseHook != nil {
opts.ResponseHook(resp)
}
if err != nil {
return nil, err
}
body, err := ioutil.ReadAll(resp.Body)
defer resp.Body.Close()
if err != nil {
return nil, err
}
return &Response{
resp,
body,
}, nil
}
// EasyHead makes head request
// It accept header values as Options and returns extended Response that acts as *http.Response
func (c *Client) EasyHead(url string, opts *Options) (*http.Response, error) {
req, err := http.NewRequest(http.MethodHead, url, nil)
if err != nil {
return nil, err
}
if opts != nil {
if opts.RequestHook != nil {
opts.RequestHook(req)
}
for k, v := range opts.Header {
req.Header.Add(k, v)
}
}
resp, err := c.Do(req)
if opts != nil && opts.ResponseHook != nil {
opts.ResponseHook(resp)
}
if err != nil {
return nil, err
}
return resp, nil
}
// JSON converts response body to passed value
func (r *Response) JSON(val interface{}) error {
if err := json.Unmarshal(r.RawBody, val); err != nil {
return err
}
return nil
}
// Text returns response body as string
func (r *Response) Text() string {
return string(r.RawBody)
}
| 19.744186 | 95 | 0.65214 |
afbd476d592988c540f0dfcba7fe46d105e64aa2 | 629 | html | HTML | Application/Home/View/Index/index.html | Snow-Null/oa | 561cd87b6b60c12fc9529b0788099344d232470c | [
"BSD-2-Clause"
] | null | null | null | Application/Home/View/Index/index.html | Snow-Null/oa | 561cd87b6b60c12fc9529b0788099344d232470c | [
"BSD-2-Clause"
] | null | null | null | Application/Home/View/Index/index.html | Snow-Null/oa | 561cd87b6b60c12fc9529b0788099344d232470c | [
"BSD-2-Clause"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h4 id="h4">百度一下你就知道</h4>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script>
$(function () {
$('#h4').mouseenter(function () {
//<a href="www.baidu.com">
var tempwindow=window.open('_blank');
tempwindow.location='https://www.baidu.com' ;
// alert(1234);
});
//alert(1234);
});
</script>
</body>
</html> | 27.347826 | 86 | 0.445151 |
6fdf930f29d18826f66789b982bf9f6831d73da8 | 5,095 | sql | SQL | 02_model/sql/barriers_anthropogenic.sql | njohanley/bcfishpass | 10a1aa1baee2300e79c9412bc0cce7f503f9813b | [
"Apache-2.0"
] | null | null | null | 02_model/sql/barriers_anthropogenic.sql | njohanley/bcfishpass | 10a1aa1baee2300e79c9412bc0cce7f503f9813b | [
"Apache-2.0"
] | null | null | null | 02_model/sql/barriers_anthropogenic.sql | njohanley/bcfishpass | 10a1aa1baee2300e79c9412bc0cce7f503f9813b | [
"Apache-2.0"
] | null | null | null | -- Create separate barrier table,
-- holding crossings that are barriers and potential barriers
DROP TABLE IF EXISTS bcfishpass.barriers_anthropogenic;
CREATE TABLE bcfishpass.barriers_anthropogenic
(
aggregated_crossings_id integer PRIMARY KEY ,
stream_crossing_id integer ,
dam_id integer ,
modelled_crossing_id integer ,
crossing_source text ,
pscis_status text ,
crossing_type_code text ,
crossing_subtype_code text ,
modelled_crossing_type_source text[] ,
barrier_status text ,
wcrp_barrier_type text ,
linear_feature_id integer ,
blue_line_key integer ,
downstream_route_measure double precision ,
wscode_ltree ltree ,
localcode_ltree ltree ,
watershed_group_code text ,
geom geometry(Point,3005)
);
-- insert all barriers from aggregated crossings table
-- (pscis, dams, modelled xings)
-- no additonal logic required
INSERT INTO bcfishpass.barriers_anthropogenic
(
aggregated_crossings_id,
stream_crossing_id,
dam_id,
modelled_crossing_id,
crossing_source,
pscis_status,
crossing_type_code,
crossing_subtype_code,
modelled_crossing_type_source,
barrier_status,
wcrp_barrier_type,
linear_feature_id,
blue_line_key,
downstream_route_measure,
wscode_ltree,
localcode_ltree,
watershed_group_code,
geom
)
SELECT
aggregated_crossings_id,
stream_crossing_id,
dam_id,
modelled_crossing_id,
crossing_source,
pscis_status,
crossing_type_code,
crossing_subtype_code,
modelled_crossing_type_source,
barrier_status,
wcrp_barrier_type,
linear_feature_id,
blue_line_key,
downstream_route_measure,
wscode_ltree,
localcode_ltree,
c.watershed_group_code as watershed_group_code,
c.geom as geom
FROM bcfishpass.crossings c
INNER JOIN bcfishpass.watershed_groups g
ON c.watershed_group_code = g.watershed_group_code AND g.include IS TRUE
WHERE barrier_status IN ('BARRIER', 'POTENTIAL')
ON CONFLICT DO NOTHING;
CREATE INDEX ON bcfishpass.barriers_anthropogenic (stream_crossing_id);
CREATE INDEX ON bcfishpass.barriers_anthropogenic (dam_id);
CREATE INDEX ON bcfishpass.barriers_anthropogenic (modelled_crossing_id);
CREATE INDEX ON bcfishpass.barriers_anthropogenic (linear_feature_id);
CREATE INDEX ON bcfishpass.barriers_anthropogenic (blue_line_key);
CREATE INDEX ON bcfishpass.barriers_anthropogenic (watershed_group_code);
CREATE INDEX ON bcfishpass.barriers_anthropogenic USING GIST (wscode_ltree);
CREATE INDEX ON bcfishpass.barriers_anthropogenic USING BTREE (wscode_ltree);
CREATE INDEX ON bcfishpass.barriers_anthropogenic USING GIST (localcode_ltree);
CREATE INDEX ON bcfishpass.barriers_anthropogenic USING BTREE (localcode_ltree);
CREATE INDEX ON bcfishpass.barriers_anthropogenic USING GIST (geom);
-- for stream visualization, we also want to create a table of pscis confirmed barriers only,
-- so we can see which streams are upstream of CONFIRMED barriers.
-- (this is deleted after coding the streams to avoid confusion)
DROP TABLE IF EXISTS bcfishpass.barriers_pscis;
CREATE TABLE bcfishpass.barriers_pscis
(
stream_crossing_id integer primary key,
barrier_status text,
linear_feature_id integer,
blue_line_key integer,
downstream_route_measure double precision,
wscode_ltree ltree,
localcode_ltree ltree,
watershed_group_code text,
geom geometry(Point, 3005),
UNIQUE (linear_feature_id, downstream_route_measure)
);
INSERT INTO bcfishpass.barriers_pscis
(
stream_crossing_id,
barrier_status,
linear_feature_id,
blue_line_key,
downstream_route_measure,
wscode_ltree,
localcode_ltree,
watershed_group_code,
geom
)
SELECT
stream_crossing_id,
barrier_status,
linear_feature_id,
blue_line_key,
downstream_route_measure,
wscode_ltree,
localcode_ltree,
watershed_group_code,
geom
FROM bcfishpass.barriers_anthropogenic
WHERE stream_crossing_id IS NOT NULL;
CREATE INDEX ON bcfishpass.barriers_pscis (linear_feature_id);
CREATE INDEX ON bcfishpass.barriers_pscis (blue_line_key);
CREATE INDEX ON bcfishpass.barriers_pscis (watershed_group_code);
CREATE INDEX ON bcfishpass.barriers_pscis USING GIST (wscode_ltree);
CREATE INDEX ON bcfishpass.barriers_pscis USING BTREE (wscode_ltree);
CREATE INDEX ON bcfishpass.barriers_pscis USING GIST (localcode_ltree);
CREATE INDEX ON bcfishpass.barriers_pscis USING BTREE (localcode_ltree);
CREATE INDEX ON bcfishpass.barriers_pscis USING GIST (geom); | 35.629371 | 93 | 0.702453 |
0cbd80d538ed5aeecd342647472ca2c49593352a | 3,110 | py | Python | TaxPy/data_processing/export_reads.py | stenglein-lab/TaxAssessor | 144599d1395627c4e86ab68a4d6d3e0785e606f0 | [
"MIT"
] | null | null | null | TaxPy/data_processing/export_reads.py | stenglein-lab/TaxAssessor | 144599d1395627c4e86ab68a4d6d3e0785e606f0 | [
"MIT"
] | 2 | 2016-11-29T19:48:27.000Z | 2016-12-09T17:18:56.000Z | TaxPy/data_processing/export_reads.py | stenglein-lab/TaxAssessor | 144599d1395627c4e86ab68a4d6d3e0785e606f0 | [
"MIT"
] | null | null | null | #!/usr/bin/python
import json
import timeit
import re
import TaxPy.db_management.db_wrap as TaxDb
from itertools import izip
def retrieveReads(userName,fileName,fileId,parentTaxId,query):
time1 = timeit.default_timer()
taxTree = loadTaxTree(userName,fileName)
time2 = timeit.default_timer()
print str(time2-time1)+" seconds loading tree"
status,subTree = findSubTree(taxTree,parentTaxId)
time3 = timeit.default_timer()
print str(time3-time2)+" finding subtree"
children = findChildren(subTree,[])
time4 = timeit.default_timer()
print str(time4-time3)+" finding children"
readLines,status = getReadLines(children,fileId,query)
time5 = timeit.default_timer()
print str(time5-time4)+" getting read lines"
return readLines,status
def findSubTree(tree,parentTaxId,found=False):
subTree = None
if int(tree["taxId"]) == int(parentTaxId) or found:
return True,tree
try:
for child in tree["children"]:
found,subTree = findSubTree(child,parentTaxId)
if found:
return True,subTree
except KeyError:
pass
return found,subTree
def findChildren(tree,children):
children.append(tree["taxId"])
try:
for child in tree["children"]:
children = findChildren(child,children)
except KeyError:
pass
return children
def loadTaxTree(userName,fileName):
jsonFile = "uploads/"+userName+"/"+fileName+"_tree.json"
with open(jsonFile,"r") as inFile:
taxTree = json.load(inFile)
return taxTree
def getReadLines(children,fileId,query):
readLines = []
count = 0
with TaxDb.openDbSS("TaxAssessor_Alignments") as db, \
TaxDb.cursor(db) as cur:
cmd = "SELECT COUNT(*) FROM "+fileId+" WHERE taxId IN "
children = "("+str(children).lstrip("[").rstrip("]")+")"
cmd += children
cur.execute(cmd)
nRows = cur.fetchall()[0][0]
cmd = "SELECT "+query+" FROM "+fileId+" WHERE taxId IN "
cmd += children + ";"
cur.execute(cmd)
for line in cur:
readLines.append(line[0])
return readLines,str(nRows)
def getReadsForTaxIds(userName,fileName,fileId,taxIds,query):
readLines = []
count = 0
with TaxDb.openDbSS("TaxAssessor_Alignments") as db, \
TaxDb.cursor(db) as cur:
cmd = "SELECT "+query+" FROM "+fileId+" WHERE taxId IN (%s)"
in_p=', '.join(map(lambda x: '%s', taxIds))
cmd = cmd % in_p
cur.execute(cmd,taxIds)
for line in cur:
readLines.append(line[0])
return readLines
def getReadsForGiInTaxId(userName,fileName,fileId,taxId,seqId,query):
readLines = []
count = 0
with TaxDb.openDbSS("TaxAssessor_Alignments") as db, \
TaxDb.cursor(db) as cur:
cmd = "SELECT "+query+" FROM "+fileId+" WHERE taxId=%s AND seqId=%s"
cur.execute(cmd,(taxId,seqId))
for line in cur:
readLines.append(line[0])
return readLines
| 27.280702 | 76 | 0.618971 |
56d743175a34e9cf247210e8abf862f15b48cca9 | 926 | ts | TypeScript | Lib/Logger.ts | dburner/AlexaWithXiaomiBulb | 468cc2dcda072b8fb8e6d6cbb3d143d1413b90f1 | [
"MIT"
] | 4 | 2018-03-17T03:51:47.000Z | 2020-01-12T13:24:45.000Z | Lib/Logger.ts | dburner/AlexaWithXiaomiBulb | 468cc2dcda072b8fb8e6d6cbb3d143d1413b90f1 | [
"MIT"
] | null | null | null | Lib/Logger.ts | dburner/AlexaWithXiaomiBulb | 468cc2dcda072b8fb8e6d6cbb3d143d1413b90f1 | [
"MIT"
] | null | null | null | import * as fs from 'fs';
import * as winston from 'winston';
import 'winston-daily-rotate-file';
const env = process.env.NODE_ENV || 'development';
const logDir = 'log';
// Create the log directory if it does not exist
if (!fs.existsSync(logDir))
fs.mkdirSync(logDir);
const tsFormat = () => (new Date()).toLocaleTimeString();
export const logger = new (winston.Logger)({
transports: [
// colorize the output to the console
new (winston.transports.Console)({
timestamp: tsFormat,
colorize: true,
level: 'debug'
}),
new (winston.transports.DailyRotateFile)({
filename: `${logDir}/emulator-`,
datePattern: 'yyyy-MM-dd.log',
zippedArchive: true,
maxDays: 10,
prepend: false,
level: env === 'development' ? 'debug' : 'info'
})
]
}); | 28.9375 | 60 | 0.557235 |
2f3feb7c876532bf4f7e9fa7e40ca20261cd6404 | 535 | php | PHP | database/seeds/PhotosTableSeeder.php | masumbillahbd/green | 238ce50d2e214aa6a81b50716138ba79933cae9e | [
"MIT"
] | null | null | null | database/seeds/PhotosTableSeeder.php | masumbillahbd/green | 238ce50d2e214aa6a81b50716138ba79933cae9e | [
"MIT"
] | 2 | 2021-02-03T01:11:59.000Z | 2021-04-30T11:59:48.000Z | database/seeds/PhotosTableSeeder.php | masumbillahbd/green | 238ce50d2e214aa6a81b50716138ba79933cae9e | [
"MIT"
] | null | null | null | <?php
use Illuminate\Database\Seeder;
use App\Photo;
class PhotosTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$faker = Faker\Factory::create();
$image = 'masum.jpg';
foreach (range(1, 10) as $value) {
Photo::create([
'photo_tag' => $faker->name,
'photo' => $image,
]);
}
}
}
//http://localhost/eloquent_two/Upload/Photos/2020-05-13_1589399242.jpg | 17.258065 | 71 | 0.519626 |
49877e31723315beaf972f3d84fe4958e91eab7a | 2,630 | html | HTML | fileSystem/testingFileSystem.html | nomad-mystic/nomadmystic | 7814c1f7c1a45464df5896d03dd3c3bed0f763d0 | [
"MIT"
] | 1 | 2016-06-15T08:36:56.000Z | 2016-06-15T08:36:56.000Z | fileSystem/testingFileSystem.html | nomad-mystic/nomadmystic | 7814c1f7c1a45464df5896d03dd3c3bed0f763d0 | [
"MIT"
] | 1 | 2016-06-08T13:05:41.000Z | 2016-06-08T13:06:07.000Z | fileSystem/testingFileSystem.html | nomad-mystic/nomadmystic | 7814c1f7c1a45464df5896d03dd3c3bed0f763d0 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
<link rel="stylesheet" href="testingFolder/includes/lib/prettify.min.css">
<script src="testingFolder/includes/lib/jquery/jquery.min.js"></script>
<script src="testingFolder/includes/lib/bootstrap/js/bootstrap.min.js"></script>
<script src="testingFolder/includes/lib/prettify.min.js"></script>
<script src="testingFolder/includes/lib/run_prettify.min.js"></script>
<!--<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>-->
<script>
$(function() {
var folder = $('.folder');
//
folder.on('click', function() {
// get the contents of one folder
$.get('testingFilesSystem.php?folder=testingFolder', function(data) {
console.log(data);
var parsedData = $.parseJSON(data);
console.log(parsedData[0]);
var childFolderContents = JSON.stringify(parsedData[0], null, 4);
$('.childFolder').text(childFolderContents);
}); // get folder contents
// second function
// gets the contents of one HTML file
$.get('testingFileSystem.html', function(html) {
// adding html file to DOM
for (var i = 2; i < html.length; i++){
}
$('.html').text(html);
// remove class to activate again with prettyPrint() function
$('.prettyprint').removeClass("prettyprinted");
prettyPrint();
});
// gets the contents of one HTML file
$.get('testingFilesSystem.php', function(php) {
// adding html file to DOM
$('.php').text(php);
// remove class to activate again with prettyPrint() function
$('.prettyprint').removeClass("prettyprinted");
prettyPrint();
});
}); // get HTML
}); // jQuery
</script>
</head>
<body>
<button class="folder">
Files Value Testing
</button>
<pre class="prettyprint">
<code>
<div class="parentFolder"></div>
<div class="childFolder"></div>
<div class="html"></div>
<div class="php">
<!--need to change all greater/less then symbols into ASEII-->
<?php echo $this->mClass; ?>
</div>
</code>
</pre>
</body>
</html> | 33.717949 | 108 | 0.519392 |
aa1b980ee593fe08396baaeb9101194e9b00c51f | 675 | swift | Swift | SwiftIsland/Mentor/MentorManager.swift | SpacyRicochet/island-app | c17419928359bb726f72d0a093c4ae9fbff9a0f4 | [
"MIT"
] | null | null | null | SwiftIsland/Mentor/MentorManager.swift | SpacyRicochet/island-app | c17419928359bb726f72d0a093c4ae9fbff9a0f4 | [
"MIT"
] | null | null | null | SwiftIsland/Mentor/MentorManager.swift | SpacyRicochet/island-app | c17419928359bb726f72d0a093c4ae9fbff9a0f4 | [
"MIT"
] | null | null | null | //
// MentorManager.swift
// SwiftIsland
//
// Created by Paul Peelen on 2019-06-02.
// Copyright © 2019 AppTrix AB. All rights reserved.
//
import Foundation
class MentorManager {
static let shared = MentorManager()
private let dataManager: DataManaging
private(set) var mentors: [Mentor] = []
init(dataManager: DataManaging = DataManager.shared) {
self.dataManager = dataManager
fetchMentors()
}
func fetchMentors() {
dataManager.getMentors { result in
switch result {
case .success(let mentors):
self.mentors = mentors
case .failure(let error):
debugPrint(error.localizedDescription)
}
}
}
}
| 19.852941 | 56 | 0.666667 |
0433a80934605671fa2e715309094539d0da50bd | 885 | java | Java | src/main/java/fr/litarvan/paladin/PaladinGuiceModule.java | paladin-framework/paladin | 16444b5957630cbbf10d51da7494e1fbb3ebce25 | [
"MIT"
] | 3 | 2018-02-12T17:02:38.000Z | 2020-10-07T12:56:12.000Z | src/main/java/fr/litarvan/paladin/PaladinGuiceModule.java | paladin-framework/paladin | 16444b5957630cbbf10d51da7494e1fbb3ebce25 | [
"MIT"
] | null | null | null | src/main/java/fr/litarvan/paladin/PaladinGuiceModule.java | paladin-framework/paladin | 16444b5957630cbbf10d51da7494e1fbb3ebce25 | [
"MIT"
] | null | null | null | package fr.litarvan.paladin;
import com.google.inject.AbstractModule;
import com.google.inject.Provider;
import fr.litarvan.paladin.http.routing.Router;
public class PaladinGuiceModule extends AbstractModule
{
private Paladin paladin;
public PaladinGuiceModule(Paladin paladin)
{
this.paladin = paladin;
}
@Override
protected void configure()
{
bind(Paladin.class).toInstance(paladin);
bind(PaladinConfig.class).toInstance(paladin.getConfig());
bind(Router.class).toInstance(paladin.getRouter());
bind(ISessionManager.class).toInstance(paladin.getSessionManager());
bind(Object.class).annotatedWith(InjectApp.class).toProvider(new Provider<Object>()
{
@Override
public Object get()
{
return paladin.getApp();
}
});
}
}
| 25.285714 | 91 | 0.650847 |
44dfaf2b30d7a2dc36a570ad2cec115415819418 | 1,822 | swift | Swift | Samples/SampleApp-iOS/Sources/ActivityViewController.swift | mingsai/Advance | 8ec9bc9dac75c3048da127e913b9263613ee8753 | [
"BSD-2-Clause"
] | 4,412 | 2016-03-02T19:49:33.000Z | 2017-12-28T13:59:29.000Z | Samples/SampleApp-iOS/Sources/ActivityViewController.swift | mingsai/Advance | 8ec9bc9dac75c3048da127e913b9263613ee8753 | [
"BSD-2-Clause"
] | 18 | 2016-03-02T21:01:22.000Z | 2018-01-01T20:38:26.000Z | Samples/SampleApp-iOS/Sources/ActivityViewController.swift | mingsai/Advance | 8ec9bc9dac75c3048da127e913b9263613ee8753 | [
"BSD-2-Clause"
] | 284 | 2016-03-02T20:43:39.000Z | 2017-12-30T06:08:39.000Z | import UIKit
class ActivityViewController: DemoViewController {
let activityView = ActivityView()
let slider = UISlider()
override func viewDidLoad() {
super.viewDidLoad()
title = "Logo"
note = "Drag the slider to disassemble."
activityView.flashing = true
contentView.addSubview(activityView)
contentView.addSubview(slider)
slider.alpha = 0.0
slider.minimumValue = 0.0
slider.maximumValue = 1.0
slider.value = 1.0
slider.addTarget(self, action: #selector(sliderChanged), for: .valueChanged)
slider.minimumTrackTintColor = UIColor(red: 0.0, green: 196.0/255.0, blue: 1.0, alpha: 1.0)
}
override func viewDidLayoutSubviews() {
super.viewDidLayoutSubviews()
let size = min(view.bounds.width, view.bounds.height) * 0.6
activityView.bounds.size = CGSize(width: size, height: size)
activityView.center = CGPoint(x: view.bounds.midX, y: view.bounds.midY)
let sliderInset = CGFloat(32.0)
var sliderFrame = CGRect.zero
sliderFrame.size.width = view.bounds.width - sliderInset*2.0
sliderFrame.size.height = 44.0
sliderFrame.origin.x = sliderInset
sliderFrame.origin.y = view.bounds.maxY - sliderInset - 44.0
slider.frame = sliderFrame
}
@objc dynamic func sliderChanged() {
activityView.assembledAmount = CGFloat(slider.value)
activityView.flashing = activityView.assembledAmount == 1.0
}
override func didEnterFullScreen() {
super.didEnterFullScreen()
slider.alpha = 1.0
}
override func didLeaveFullScreen() {
super.didLeaveFullScreen()
slider.alpha = 0.0
}
}
| 30.881356 | 99 | 0.619649 |
8746e00219d07e94fb547cf68b1dc563dbe2cd21 | 12,000 | asm | Assembly | bin/gcc/config/h8300/lib1funcs.asm | aaliomer/exos | 6a37c41cad910c373322441a9f23cfabdbfae275 | [
"BSD-3-Clause"
] | 1 | 2018-01-23T23:07:19.000Z | 2018-01-23T23:07:19.000Z | bin/gcc/config/h8300/lib1funcs.asm | aaliomer/exos | 6a37c41cad910c373322441a9f23cfabdbfae275 | [
"BSD-3-Clause"
] | null | null | null | bin/gcc/config/h8300/lib1funcs.asm | aaliomer/exos | 6a37c41cad910c373322441a9f23cfabdbfae275 | [
"BSD-3-Clause"
] | null | null | null | ;; libgcc1 routines for the Hitachi h8/300 cpu.
;; Contributed by Steve Chamberlain.
;; sac@cygnus.com
/* Copyright (C) 1994 Free Software Foundation, Inc.
This file is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation; either version 2, or (at your option) any
later version.
In addition to the permissions in the GNU General Public License, the
Free Software Foundation gives you unlimited permission to link the
compiled version of this file with other programs, and to distribute
those programs without any restriction coming from the use of this
file. (The General Public License restrictions do apply in other
respects; for example, they cover modification of the file, and
distribution when not linked into another program.)
This file is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; see the file COPYING. If not, write to
the Free Software Foundation, 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
/* As a special exception, if you link this library with other files,
some of which are compiled with GCC, to produce an executable,
this library does not by itself cause the resulting executable
to be covered by the GNU General Public License.
This exception does not however invalidate any other reasons why
the executable file might be covered by the GNU General Public License. */
/* Assembler register definitions. */
#define A0 r0
#define A0L r0l
#define A0H r0h
#define A1 r1
#define A1L r1l
#define A1H r1h
#define A2 r2
#define A2L r2l
#define A2H r2h
#define A3 r3
#define A3L r3l
#define A3H r3h
#define S0 r4
#define S0L r4l
#define S0H r4h
#define S1 r5
#define S1L r5l
#define S1H r5h
#define S2 r6
#define S2L r6l
#define S2H r6h
#ifdef __H8300__
#define MOVP mov.w /* pointers are 16 bits */
#define ADDP add.w
#define CMPP cmp.w
#define PUSHP push
#define POPP pop
#define A0P r0
#define A1P r1
#define A2P r2
#define A3P r3
#define S0P r4
#define S1P r5
#define S2P r6
#endif
#ifdef __H8300H__
#define MOVP mov.l /* pointers are 32 bits */
#define ADDP add.l
#define CMPP cmp.l
#define PUSHP push.l
#define POPP pop.l
#define A0P er0
#define A1P er1
#define A2P er2
#define A3P er3
#define S0P er4
#define S1P er5
#define S2P er6
#define A0E e0
#define A1E e1
#define A2E e2
#define A3E e3
#endif
#ifdef L_cmpsi2
#ifdef __H8300__
.section .text
.align 2
.global ___cmpsi2
___cmpsi2:
cmp.w A2,A0
bne .L2
cmp.w A3,A1
bne .L2
mov.w #1,A0
rts
.L2:
cmp.w A0,A2
bgt .L4
bne .L3
cmp.w A1,A3
bls .L3
.L4:
sub.w A0,A0
rts
.L3:
mov.w #2,A0
.L5:
rts
.end
#endif
#endif /* L_cmpsi2 */
#ifdef L_ucmpsi2
#ifdef __H8300__
.section .text
.align 2
.global ___ucmpsi2
___ucmpsi2:
cmp.w A2,A0
bne .L2
cmp.w A3,A1
bne .L2
mov.w #1,A0
rts
.L2:
cmp.w A0,A2
bhi .L4
bne .L3
cmp.w A1,A3
bls .L3
.L4:
sub.w A0,A0
rts
.L3:
mov.w #2,A0
.L5:
rts
.end
#endif
#endif /* L_ucmpsi2 */
#ifdef L_divhi3
;; HImode divides for the H8/300.
;; We bunch all of this into one object file since there are several
;; "supporting routines".
; general purpose normalize routine
;
; divisor in A0
; dividend in A1
; turns both into +ve numbers, and leaves what the answer sign
; should be in A2L
#ifdef __H8300__
.section .text
.align 2
divnorm:
mov.b #0x0,A2L
or A0H,A0H ; is divisor > 0
bge _lab1
not A0H ; no - then make it +ve
not A0L
adds #1,A0
xor #0x1,A2L ; and remember that in A2L
_lab1: or A1H,A1H ; look at dividend
bge _lab2
not A1H ; it is -ve, make it positive
not A1L
adds #1,A1
xor #0x1,A2L; and toggle sign of result
_lab2: rts
; A0=A0/A1 signed
.global ___divhi3
___divhi3:
bsr divnorm
bsr ___udivhi3
negans: or A2L,A2L ; should answer be negative ?
beq _lab4
not A0H ; yes, so make it so
not A0L
adds #1,A0
_lab4: rts
; A0=A0%A1 signed
.global ___modhi3
___modhi3:
bsr divnorm
bsr ___udivhi3
mov A3,A0
bra negans
; A0=A0%A1 unsigned
.global ___umodhi3
___umodhi3:
bsr ___udivhi3
mov A3,A0
rts
; A0=A0/A1 unsigned
; A3=A0%A1 unsigned
; A2H trashed
; D high 8 bits of denom
; d low 8 bits of denom
; N high 8 bits of num
; n low 8 bits of num
; M high 8 bits of mod
; m low 8 bits of mod
; Q high 8 bits of quot
; q low 8 bits of quot
; P preserve
; The h8 only has a 16/8 bit divide, so we look at the incoming and
; see how to partition up the expression.
.global ___udivhi3
___udivhi3:
; A0 A1 A2 A3
; Nn Dd P
sub.w A3,A3 ; Nn Dd xP 00
or A1H,A1H
bne divlongway
or A0H,A0H
beq _lab6
; we know that D == 0 and N is != 0
mov.b A0H,A3L ; Nn Dd xP 0N
divxu A1L,A3 ; MQ
mov.b A3L,A0H ; Q
; dealt with N, do n
_lab6: mov.b A0L,A3L ; n
divxu A1L,A3 ; mq
mov.b A3L,A0L ; Qq
mov.b A3H,A3L ; m
mov.b #0x0,A3H ; Qq 0m
rts
; D != 0 - which means the denominator is
; loop around to get the result.
divlongway:
mov.b A0H,A3L ; Nn Dd xP 0N
mov.b #0x0,A0H ; high byte of answer has to be zero
mov.b #0x8,A2H ; 8
div8: add.b A0L,A0L ; n*=2
rotxl A3L ; Make remainder bigger
rotxl A3H
sub.w A1,A3 ; Q-=N
bhs setbit ; set a bit ?
add.w A1,A3 ; no : too far , Q+=N
dec A2H
bne div8 ; next bit
rts
setbit: inc A0L ; do insert bit
dec A2H
bne div8 ; next bit
rts
#endif /* __H8300__ */
#endif /* L_divhi3 */
#ifdef L_divsi3
;; 4 byte integer divides for the H8/300.
;;
;; We have one routine which does all the work and lots of
;; little ones which prepare the args and massage the sign.
;; We bunch all of this into one object file since there are several
;; "supporting routines".
#ifdef __H8300H__
.h8300h
#endif
.section .text
.align 2
; Put abs SIs into r0/r1 and r2/r3, and leave a 1 in r6l with sign of rest.
; This function is here to keep branch displacements small.
#ifdef __H8300__
divnorm:
mov.b #0,S2L ; keep the sign in S2
mov.b A0H,A0H ; is the numerator -ve
bge postive
; negate arg
not A0H
not A1H
not A0L
not A1L
add #1,A1L
addx #0,A1H
addx #0,A0H
addx #0,A0L
mov.b #1,S2L ; the sign will be -ve
postive:
mov.b A2H,A2H ; is the denominator -ve
bge postive2
not A2L
not A2H
not A3L
not A3H
add.b #1,A3L
addx #0,A3H
addx #0,A2L
addx #0,A2H
xor #1,S2L ; toggle result sign
postive2:
rts
#else /* __H8300H__ */
divnorm:
mov.b #0,S2L ; keep the sign in S2
mov.l A0P,A0P ; is the numerator -ve
bge postive
neg.l A0P ; negate arg
mov.b #1,S2L ; the sign will be -ve
postive:
mov.l A1P,A1P ; is the denominator -ve
bge postive2
neg.l A1P ; negate arg
xor.b #1,S2L ; toggle result sign
postive2:
rts
#endif
; numerator in A0/A1
; denominator in A2/A3
.global ___modsi3
___modsi3:
PUSHP S2P
PUSHP S0P
PUSHP S1P
bsr divnorm
bsr divmodsi4
#ifdef __H8300__
mov S0,A0
mov S1,A1
#else
mov.l S0P,A0P
#endif
bra exitdiv
.global ___udivsi3
___udivsi3:
PUSHP S2P
PUSHP S0P
PUSHP S1P
mov.b #0,S2L ; keep sign low
bsr divmodsi4
bra exitdiv
.global ___umodsi3
___umodsi3:
PUSHP S2P
PUSHP S0P
PUSHP S1P
mov.b #0,S2L ; keep sign low
bsr divmodsi4
#ifdef __H8300__
mov S0,A0
mov S1,A1
#else
mov.l S0P,A0P
#endif
bra exitdiv
.global ___divsi3
___divsi3:
PUSHP S2P
PUSHP S0P
PUSHP S1P
jsr divnorm
jsr divmodsi4
; examine what the sign should be
exitdiv:
POPP S1P
POPP S0P
or S2L,S2L
beq reti
; should be -ve
#ifdef __H8300__
not A0H
not A1H
not A0L
not A1L
add #1,A1L
addx #0,A1H
addx #0,A0H
addx #0,A0L
#else /* __H8300H__ */
neg.l A0P
#endif
reti:
POPP S2P
rts
; takes A0/A1 numerator (A0P for 300h)
; A2/A3 denominator (A1P for 300h)
; returns A0/A1 quotient (A0P for 300h)
; S0/S1 remainder (S0P for 300h)
; trashes S2
#ifdef __H8300__
divmodsi4:
sub.w S0,S0 ; zero play area
mov.w S0,S1
mov.b A2H,S2H
or A2L,S2H
or A3H,S2H
bne DenHighZero
mov.b A0H,A0H
bne NumByte0Zero
mov.b A0L,A0L
bne NumByte1Zero
mov.b A1H,A1H
bne NumByte2Zero
bra NumByte3Zero
NumByte0Zero:
mov.b A0H,S1L
divxu A3L,S1
mov.b S1L,A0H
NumByte1Zero:
mov.b A0L,S1L
divxu A3L,S1
mov.b S1L,A0L
NumByte2Zero:
mov.b A1H,S1L
divxu A3L,S1
mov.b S1L,A1H
NumByte3Zero:
mov.b A1L,S1L
divxu A3L,S1
mov.b S1L,A1L
mov.b S1H,S1L
mov.b #0x0,S1H
rts
; have to do the divide by shift and test
DenHighZero:
mov.b A0H,S1L
mov.b A0L,A0H
mov.b A1H,A0L
mov.b A1L,A1H
mov.b #0,A1L
mov.b #24,S2H ; only do 24 iterations
nextbit:
add.w A1,A1 ; double the answer guess
rotxl A0L
rotxl A0H
rotxl S1L ; double remainder
rotxl S1H
rotxl S0L
rotxl S0H
sub.w A3,S1 ; does it all fit
subx A2L,S0L
subx A2H,S0H
bhs setone
add.w A3,S1 ; no, restore mistake
addx A2L,S0L
addx A2H,S0H
dec S2H
bne nextbit
rts
setone:
inc A1L
dec S2H
bne nextbit
rts
#else /* __H8300H__ */
divmodsi4:
sub.l S0P,S0P ; zero play area
mov.w A1E,A1E ; denominator top word 0?
bne DenHighZero
; do it the easy way, see page 107 in manual
mov.w A0E,A2
extu.l A2P
divxu.w A1,A2P
mov.w A2E,A0E
divxu.w A1,A0P
mov.w A0E,S0
mov.w A2,A0E
extu.l S0P
rts
DenHighZero:
mov.w A0E,A2
mov.b A2H,S0L
mov.b A2L,A2H
mov.b A0H,A2L
mov.w A2,A0E
mov.b A0L,A0H
mov.b #0,A0L
mov.b #24,S2H ; only do 24 iterations
nextbit:
shll.l A0P ; double the answer guess
rotxl.l S0P ; double remainder
sub.l A1P,S0P ; does it all fit?
bhs setone
add.l A1P,S0P ; no, restore mistake
dec S2H
bne nextbit
rts
setone:
inc A0L
dec S2H
bne nextbit
rts
#endif
#endif /* L_divsi3 */
#ifdef L_mulhi3
;; HImode multiply.
; The h8 only has an 8*8->16 multiply.
; The answer is the same as:
;
; product = (srca.l * srcb.l) + ((srca.h * srcb.l) + (srcb.h * srca.l)) * 256
; (we can ignore A1.h * A0.h cause that will all off the top)
; A0 in
; A1 in
; A0 answer
#ifdef __H8300__
.section .text
.align 2
.global ___mulhi3
___mulhi3:
mov.b A1L,A2L ; A2l gets srcb.l
mulxu A0L,A2 ; A2 gets first sub product
mov.b A0H,A3L ; prepare for
mulxu A1L,A3 ; second sub product
add.b A3L,A2H ; sum first two terms
mov.b A1H,A3L ; third sub product
mulxu A0L,A3
add.b A3L,A2H ; almost there
mov.w A2,A0 ; that is
rts
#endif
#endif /* L_mulhi3 */
#ifdef L_mulsi3
;; SImode multiply.
;;
;; I think that shift and add may be sufficient for this. Using the
;; supplied 8x8->16 would need 10 ops of 14 cycles each + overhead. This way
;; the inner loop uses maybe 20 cycles + overhead, but terminates
;; quickly on small args.
;;
;; A0/A1 src_a
;; A2/A3 src_b
;;
;; while (a)
;; {
;; if (a & 1)
;; r += b;
;; a >>= 1;
;; b <<= 1;
;; }
.section .text
.align 2
#ifdef __H8300__
.global ___mulsi3
___mulsi3:
PUSHP S0P
PUSHP S1P
PUSHP S2P
sub.w S0,S0
sub.w S1,S1
; while (a)
_top: mov.w A0,A0
bne _more
mov.w A1,A1
beq _done
_more: ; if (a & 1)
bld #0,A1L
bcc _nobit
; r += b
add.w A3,S1
addx A2L,S0L
addx A2H,S0H
_nobit:
; a >>= 1
shlr A0H
rotxr A0L
rotxr A1H
rotxr A1L
; b <<= 1
add.w A3,A3
addx A2L,A2L
addx A2H,A2H
bra _top
_done:
mov.w S0,A0
mov.w S1,A1
POPP S2P
POPP S1P
POPP S0P
rts
#else /* __H8300H__ */
.h8300h
.global ___mulsi3
___mulsi3:
sub.l A2P,A2P
; while (a)
_top: mov.l A0P,A0P
beq _done
; if (a & 1)
bld #0,A0L
bcc _nobit
; r += b
add.l A1P,A2P
_nobit:
; a >>= 1
shlr.l A0P
; b <<= 1
shll.l A1P
bra _top
_done:
mov.l A2P,A0P
rts
#endif
#endif /* L_mulsi3 */
| 17.045455 | 78 | 0.6635 |
5d4f6079bb46321e62e468fd68dcab304f3c267d | 1,160 | sql | SQL | server/src-rsr/init_mssql_source.sql | eazyfin/graphql-engine | 72cc73826b37bfb05bde505fe21f8a60201855cb | [
"Apache-2.0",
"MIT"
] | 1 | 2019-10-31T19:50:02.000Z | 2019-10-31T19:50:02.000Z | server/src-rsr/init_mssql_source.sql | eazyfin/graphql-engine | 72cc73826b37bfb05bde505fe21f8a60201855cb | [
"Apache-2.0",
"MIT"
] | null | null | null | server/src-rsr/init_mssql_source.sql | eazyfin/graphql-engine | 72cc73826b37bfb05bde505fe21f8a60201855cb | [
"Apache-2.0",
"MIT"
] | null | null | null | CREATE TABLE hdb_catalog.hdb_source_catalog_version (
version INTEGER NOT NULL PRIMARY KEY,
upgraded_on DATETIME2(7) NOT NULL
);
CREATE TABLE hdb_catalog.event_log
(
id UNIQUEIDENTIFIER DEFAULT newid() PRIMARY KEY,
schema_name NVARCHAR(MAX) NOT NULL,
table_name NVARCHAR(MAX) NOT NULL,
trigger_name NVARCHAR(MAX) NOT NULL,
payload NVARCHAR(MAX) NOT NULL,
delivered BIT NOT NULL DEFAULT 0,
error BIT NOT NULL DEFAULT 0,
tries INTEGER NOT NULL DEFAULT 0,
created_at DATETIMEOFFSET(7) NOT NULL DEFAULT SYSDATETIMEOFFSET(),
locked DATETIMEOFFSET(7),
next_retry_at DATETIMEOFFSET(7),
archived BIT NOT NULL DEFAULT 0
);
/* This index powers `fetchEvents` */
CREATE INDEX event_log_fetch_events
ON hdb_catalog.event_log (created_at)
WHERE delivered = 0
AND error = 0
AND archived = 0;
CREATE TABLE hdb_catalog.event_invocation_logs (
id UNIQUEIDENTIFIER NOT NULL DEFAULT newid(),
event_id UNIQUEIDENTIFIER NOT NULL,
status INTEGER,
request NVARCHAR(MAX),
response NVARCHAR(MAX),
created_at DATETIMEOFFSET(7) NOT NULL DEFAULT SYSDATETIMEOFFSET(),
FOREIGN KEY (event_id) REFERENCES hdb_catalog.event_log(id)
);
| 29.74359 | 68 | 0.768966 |
fb925ba2098efa2d9cb331d2ee82b124c2359062 | 4,049 | java | Java | kie-soup-dataset/kie-soup-dataset-core/src/main/java/org/dashbuilder/dataprovider/StaticDataSetProvider.java | sutaakar/kie-soup | eb20ff40202f2c37a31b3875cc697a8406bb114c | [
"Apache-2.0"
] | 72 | 2019-07-17T15:35:54.000Z | 2022-01-16T17:22:10.000Z | kie-soup-dataset/kie-soup-dataset-core/src/main/java/org/dashbuilder/dataprovider/StaticDataSetProvider.java | sutaakar/kie-soup | eb20ff40202f2c37a31b3875cc697a8406bb114c | [
"Apache-2.0"
] | 418 | 2019-07-16T17:27:07.000Z | 2022-01-26T16:00:51.000Z | kie-soup-dataset/kie-soup-dataset-core/src/main/java/org/dashbuilder/dataprovider/StaticDataSetProvider.java | sutaakar/kie-soup | eb20ff40202f2c37a31b3875cc697a8406bb114c | [
"Apache-2.0"
] | 92 | 2017-09-13T18:53:11.000Z | 2022-03-02T17:13:31.000Z | /*
* Copyright 2014 Red Hat, Inc. and/or its affiliates.
*
* 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.
*/
package org.dashbuilder.dataprovider;
import org.apache.commons.lang3.StringUtils;
import org.dashbuilder.dataset.DataSet;
import org.dashbuilder.dataset.DataSetLookup;
import org.dashbuilder.dataset.DataSetMetadata;
import org.dashbuilder.dataset.def.DataSetDef;
import org.dashbuilder.dataset.engine.SharedDataSetOpEngine;
import org.dashbuilder.dataset.engine.index.DataSetIndex;
import org.dashbuilder.dataset.filter.DataSetFilter;
/**
* DataSetProvider implementation for static (in-memory) data sets.
* <p>It's been designed with several goals in mind:
* <ul>
* <li>To provide a highly reusable data set cache.</li>
* <li>To index almost every operation performed over a data set.</li>
* <li>Multiple clients requesting the same data set operations will benefit from the indexing/caching services provided.</li>
* </ul>
* </p>
*/
public class StaticDataSetProvider implements DataSetProvider {
private SharedDataSetOpEngine dataSetOpEngine;
public StaticDataSetProvider() {
}
public StaticDataSetProvider(SharedDataSetOpEngine dataSetOpEngine) {
this.dataSetOpEngine = dataSetOpEngine;
}
public DataSetProviderType getType() {
return DataSetProviderType.STATIC;
}
public DataSetMetadata getDataSetMetadata(DataSetDef def) {
DataSet dataSet = lookupDataSet(def, null);
if (dataSet == null) return null;
return dataSet.getMetadata();
}
public void registerDataSet(DataSet dataSet) {
dataSetOpEngine.getIndexRegistry().put(dataSet);
}
public DataSet removeDataSet(String uuid) {
DataSetIndex index = dataSetOpEngine.getIndexRegistry().remove(uuid);
return (index == null ? null : index.getDataSet());
}
public DataSet lookupDataSet(DataSetDef def, DataSetLookup lookup) {
String uuid = def.getUUID();
if (StringUtils.isEmpty(uuid)) return null;
boolean isRoot = (lookup == null || lookup.isEmpty());
// Be aware of filters on the data set definition
DataSetFilter filter = def.getDataSetFilter();
if (filter != null) {
if (lookup == null) lookup = new DataSetLookup(uuid, filter);
else lookup.addOperation(0, filter);
}
// Lookup the data set (with any existing filters)
DataSet dataSet = lookupDataSet(uuid, lookup);
// Add the proper metadata to any root data set retrieval call
if (dataSet != null && isRoot) {
dataSet.setUUID(uuid);
dataSet.setDefinition(def);
}
return dataSet;
}
public DataSet lookupDataSet(String uuid, DataSetLookup lookup) {
if (StringUtils.isEmpty(uuid)) return null;
// Get the target data set
DataSetIndex dataSetIndex = dataSetOpEngine.getIndexRegistry().get(uuid);
if (dataSetIndex == null) return null;
DataSet dataSet = dataSetIndex.getDataSet();
if (lookup == null) return dataSet;
// Apply the list of operations specified (if any).
if (!lookup.getOperationList().isEmpty()) {
dataSet = dataSetOpEngine.execute(uuid, lookup.getOperationList());
}
// Trim the data set as requested.
dataSet = dataSet.trim(lookup.getRowOffset(), lookup.getNumberOfRows());
return dataSet;
}
public boolean isDataSetOutdated(DataSetDef def) {
return false;
}
}
| 35.831858 | 130 | 0.689059 |
f04f2d7de60a6e65caad3d412bae28edbaeee515 | 1,429 | js | JavaScript | src/components/FileManager/Operation.js | firoozej/react-admin-panel | dbff0260701583de9c10509d9351f1249b04e370 | [
"MIT"
] | null | null | null | src/components/FileManager/Operation.js | firoozej/react-admin-panel | dbff0260701583de9c10509d9351f1249b04e370 | [
"MIT"
] | null | null | null | src/components/FileManager/Operation.js | firoozej/react-admin-panel | dbff0260701583de9c10509d9351f1249b04e370 | [
"MIT"
] | null | null | null | import React, { Component } from 'react';
import NewFolderForm from './NewFolderForm';
import NewFolder from './NewFolder';
import DeleteFile from './DeleteFile';
class Opertion extends Component {
state = {
newFolderModalOpen: false
}
onCloseClick = () => {
this.setState({
newFolderModalOpen: false
});
};
onNewFolderClick = () => {
this.setState({
newFolderModalOpen: true
});
}
onNewFolderSubmit = (newFolderMutation, vars) => {
newFolderMutation({
variables: {
...vars,
path: this.props.path
}
});
this.setState({
newFolderModalOpen: false
});
}
render() {
return (
<React.Fragment>
<div className='py-1 px-3 border-bottom border-light operation-list'>
<NewFolder onNewFolderClick={this.onNewFolderClick} />
<DeleteFile path={this.props.path} onDeleteFile={this.props.onDeleteFile}/>
</div>
<NewFolderForm isOpen={this.state.newFolderModalOpen}
onCloseClick={this.onCloseClick}
onSubmit={this.onNewFolderSubmit}
path={this.props.path}/>
</React.Fragment>
);
}
}
export default Opertion;
| 28.019608 | 95 | 0.516445 |
c7f08697fec46620dbfbf74bb4752b280bc56346 | 11,800 | py | Python | intro_to_algorithm/Red Black Tree.py | Run0812/algorithm | 1a73ce6e81cf8c3ebe58f736204dc686e85d44c5 | [
"MIT"
] | null | null | null | intro_to_algorithm/Red Black Tree.py | Run0812/algorithm | 1a73ce6e81cf8c3ebe58f736204dc686e85d44c5 | [
"MIT"
] | null | null | null | intro_to_algorithm/Red Black Tree.py | Run0812/algorithm | 1a73ce6e81cf8c3ebe58f736204dc686e85d44c5 | [
"MIT"
] | null | null | null | class Red_Black_Tree(object):
class __Node(object):
def __init__(self, key, value=None, color=None, parent=None, left=None, right=None):
self.key = key
self.value = value
self.color = color # black = 0 red = 1
self.parent = parent
self.left = left
self.right = right
def __init__(self):
self.__NIL = self.__Node('NIL')
self.__NIL.color = 0
self.__NIL.value = None
self.__NIL.left = self.__NIL.right = self.__NIL
self.__root = self.__Node(None)
self.__root.color = 0
self.__root.left = self.__NIL
self.__root.right = self.__NIL
self.__root.parent = self.__NIL
def __find_node(self, key):
# return key's uplvl
node = self.__root
while True:
if key < node.key:
flow = 'left'
else:
flow = 'right'
next_node = getattr(node, flow)
if next_node is self.__NIL or next_node.key == key:
return (node, flow)
else:
node = next_node
def get(self, key):
node, flow = self.__find_node(key)
node = getattr(node, flow)
if node is self.__NIL:
val = 'Non-Existent'
else:
val = node.value
return val
# def __node_switch(self, node, node_link, target, target_link):
# '''
# link [node]'s [nlink] to [target]'s [target link]
# :param node: change node
# :param node_link: left or right or parent
# :param target: link to where
# :param target_link: left or right or parent
# :return: None
# '''
# # change parent
# if node_link == 'parent':
# current_p = node.parent
# # parent unlink
# if current_p.left == node:
# current_p.left = None
# else:
# current_p.right =None
# # link to new parent
# setattr(target, target_link, node)
# setattr(node, node_link, target)
# # change left child
# if node_link in ['left','right']:
# # clean old child's parent
# getattr(node, node_link).parent = None
# # link new child
# setattr(node, node_link, target)
# setattr(target, target_link, node)
def __left_rotate(self, node):
y = node.right
y.parent = node.parent
if node.parent == self.__NIL:
self.__root = y
else:
if node.parent.left == node:
node.parent.left = y
else:
node.parent.right = y
node.parent = y
node.right = y.left
y.left = node
return
def __right_rotate(self, node):
x = node.left
x.parent = node.parent
if node.parent == self.__NIL:
self.__root = x
else:
if node.parent.left == node:
node.parent.left = x
else:
node.parent.right = x
node.parent = x
node.left = x.right
x.right = node
return
def __recolor(self, node):
'''
# case 1
# node and parent is red 1 -> 0
# node's uncle is red 1 -> 0
# parent parent is black 0 -> 1
:param node: conflict node
:return: node's grandparent
'''
node.parent.parent.color = 1
node.parent.parent.left.color = 0
node.parent.parent.right.color = 0
return node.parent.parent
def __insert_fix_up(self, insert_node):
conflict = insert_node
while conflict.parent.color == 1:
if conflict.parent.parent.left == conflict.parent:
# insert_node is a right node
# position = 'right'
y = conflict.parent.parent.right
if y.color == 1:
# case 1
conflict = self.__recolor(conflict)
else:
if conflict.parent.right == conflict:
# case 2
conflict = conflict.parent
self.__left_rotate(conflict)
# case 3
conflict.parent.color = 0
conflict.parent.parent.color = 1
self.__right_rotate(conflict.parent.parent)
else:
# insert_node is a left node
# position = 'left'
y = conflict.parent.parent.left
if y.color == 1:
# case 1
conflict = self.__recolor(conflict)
else:
if conflict.parent.left == conflict:
# case 2
self.__right_rotate(conflict.parent)
# case 3
conflict.parent.color = 0
conflict.parent.parent.color = 1
self.__left_rotate(conflict.parent.parent)
# y = getattr(conflict.parent.parent, position)
# case_2 = {'right':'__left_rotate', 'left':'__right_rotate'}
# case_3 = {'left': '__left_rotate', 'right': '__right_rotate'}
# if y.color == 1:
# # case 1
# conflict = self.__recolor(conflict)
# else:
# if getattr(conflict.parent, position) == conflict:
# # case 2
# getattr(self,case_2[position])(conflict.parent)
# # case 3
# conflict.parent.color = 0
# conflict.parent.parent.color = 1
# getattr(self, case_3[position])(conflict.parent.parent)
self.__root.color = 0 # root is black
return
def insert(self, key, value = None):
# key,value可以为可迭代对象
if self.__root.key is None:
new_node = self.__root
else:
new_node = self.__Node(key)
parent, flow = self.__find_node(key)
setattr(parent, flow, new_node)
new_node.parent = parent
new_node.key = key
new_node.value = value
new_node.color = 1 # RED
new_node.left = self.__NIL
new_node.right = self.__NIL
self.__insert_fix_up(new_node)
return
def dins(self, key_value):
# key_value 是一个 键为key 值为value的字典
for key in key_value:
self.insert(key, key_value[key])
return
def max(self, node):
while node.right is not self.__NIL:
node = node.right
return node
def min(self, node):
while node.left is not self.__NIL:
node = node.left
return node
def __delete_fix_up(self, node):
# node = delnode.child when del delnode delnode's subtree height -1
# if node is red then color node to black --> subtree height +1 --> OK
# if node is black 3 condition
# condition 1: node.p = black node.p.other child = black
# condition 2:node.p = black node.p.other child = red
# condition 3: node.p = red node.p.other child = black (actually same as condition 1)
# case 1 sol(condition 2 sol): node.p -> red; node.p.another child -> black; LR(node.p); turn to case 2\3\4
# condition 1\3: case 2: node.p.other child.child both black
# case 3: node.p.other child.left red, right black
# case 4: node.p.other child.right red, left whatever
# case 2 sol: node.p.another child --> red then node.p subtree height both -1 so node.p should--> black
# if node.p = red then node.p -> black, height +1; FINISH else _delete_fix_up(node.p(double black))
# case 3 sol: node.p.other child -> red; node.p.other child.left -> black; RR(node.p.other child) turn to case 4
# case 4 sol: node.p --> black; node.p.other child --> red; node.p.other child.right --> black;LR(node.p); FINISH
while node is not self.__root and node.color == 0:
if node is node.parent.left:
other_child = node.parent.right
if node.parent.color == 0 and other_child.color == 1:
# case 1
node.parent.color = 1
other_child.color = 0
self.__left_rotate(node.parent)
other_child = node.parent.right
if other_child.left.color == 0 and other_child.right.color == 0:
# case 2
other_child.color = 1
node = node.parent
else:
if other_child.left.color == 1 and other_child.right.color == 0:
# case 3
other_child.color = 1
other_child.left.color = 0
self.__right_rotate(other_child)
# case 4
node.parent.color = 0
other_child.color = 1
other_child.right.color = 0
self.__left_rotate(node.parent)
node = self.__root
else:
other_child = node.parent.left
if node.parent.color == 0 and other_child.color == 1:
# case 1
node.parent.color = 1
other_child.color = 0
self.__right_rotate(node.parent)
other_child = node.parent.right
if other_child.left.color == 0 and other_child.right.color == 0:
# case 2
other_child.color = 1
node = node.parent
else:
if other_child.right.color == 1 and other_child.left.color == 0:
# case 3
other_child.color = 1
other_child.right.color = 0
self.__left_rotate(other_child)
# case 4
node.parent.color = 0
other_child.color = 1
other_child.left.color = 0
self.__right_rotate(node.parent)
node = self.__root
node.color = 0 # for condition 2 and case 2-1
return
def delete(self, key):
# 叶子节点
node = self.__getnode(key)
# 如果是叶子节点 删除node 如果是只有左或者只有右 删除node 将子节点接上node的父节点 如果有左有由 将后继的key放入node 删除后继
delnode = node if node.left is self.__NIL or node.right is self.__NIL else self.min(node.right) # 后继:右子树中的最小值
delnode_child = delnode.left if delnode.left is not self.__NIL else delnode.right # 子树,如果是叶子 左=右=nil
delnode_child.parent = delnode.parent # 将子树的父改为删除节点的父
if delnode.parent is self.__NIL:
# 判断是否是根节点
self.__root = delnode_child
else:
if delnode == delnode.parent.left:
#删除的节点是其父的左
delnode.parent.left = delnode_child
else:
# 删除的节点是其父的右
delnode.parent.right = delnode_child
if delnode is not node:
# 如果删除的是后继 将后继的key覆盖node的key
node.key = delnode.key
if delnode.color == 0:
#如果删除的是一个黑节点将违反黑节点高度原则 进行修复
self.__delete_fix_up(delnode_child)
return
# 中序遍历
# 二叉树可视化打印
def visual(self):
return
RBT = Red_Black_Tree()
# RBT.insert(11)
# RBT.insert(2)
# RBT.insert(14)
# RBT.insert(1)
# RBT.insert(7)
# RBT.insert(15)
# RBT.insert(5)
# RBT.insert(8)
# RBT.insert(4)
a = dict(zip([11,2,14,1,7,15,5,8,4],[11,2,14,1,7,15,5,8,4]))
RBT.dins(a)
print(RBT.get(1))
print(RBT.get(3))
print()
| 36.875 | 121 | 0.512542 |
2a12f4e1c4550c91a8c883e52a5ac148f54dd8ca | 463 | java | Java | h2o-core/src/main/java/water/api/schemas3/ConfusionMatrixV3.java | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 6,098 | 2015-05-22T02:46:12.000Z | 2022-03-31T16:54:51.000Z | h2o-core/src/main/java/water/api/schemas3/ConfusionMatrixV3.java | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,517 | 2015-05-23T02:10:54.000Z | 2022-03-30T17:03:39.000Z | h2o-core/src/main/java/water/api/schemas3/ConfusionMatrixV3.java | ahmedengu/h2o-3 | ac2c0a6fbe7f8e18078278bf8a7d3483d41aca11 | [
"Apache-2.0"
] | 2,199 | 2015-05-22T04:09:55.000Z | 2022-03-28T22:20:45.000Z | package water.api.schemas3;
import hex.ConfusionMatrix;
import water.api.API;
public class ConfusionMatrixV3 extends SchemaV3<ConfusionMatrix, ConfusionMatrixV3> {
@API(help="Annotated confusion matrix", direction=API.Direction.OUTPUT)
public TwoDimTableV3 table;
// Version&Schema-specific filling into the implementation object
public ConfusionMatrix createImpl() {
// TODO: this is bogus. . .
return new ConfusionMatrix(null, null);
}
}
| 25.722222 | 85 | 0.764579 |
1843e1a2de90331d7346236bef474c5dee16facb | 16,294 | ps1 | PowerShell | src/Public/LogRhythm/Admin/Hosts/New-LrHost.ps1 | LogRhythm-Tools/LogRhythm.Tools | 9290f4e17f9e3feac69507069268cbcee88fa454 | [
"MS-PL"
] | 32 | 2020-05-21T19:50:52.000Z | 2022-03-08T02:00:23.000Z | src/Public/LogRhythm/Admin/Hosts/New-LrHost.ps1 | LogRhythm-Tools/LogRhythm.Tools | 9290f4e17f9e3feac69507069268cbcee88fa454 | [
"MS-PL"
] | 50 | 2020-06-24T20:43:01.000Z | 2021-10-11T01:07:44.000Z | src/Public/LogRhythm/Admin/Hosts/New-LrHost.ps1 | LogRhythm-Tools/LogRhythm.Tools | 9290f4e17f9e3feac69507069268cbcee88fa454 | [
"MS-PL"
] | 12 | 2020-06-26T07:01:49.000Z | 2021-11-02T22:58:51.000Z | using namespace System
using namespace System.IO
using namespace System.Collections.Generic
Function New-LrHost {
<#
.SYNOPSIS
Create a new Host entry for the LogRhythm Entity structure.
.DESCRIPTION
New-LrHost returns a full LogRhythm Host object, including details and list items.
.PARAMETER Credential
PSCredential containing an API Token in the Password field.
.PARAMETER Entity
Parameter for specifying the existing LogRhythm Entity for the new Host record to be set to.
This parameter can be provided either Entity Name or Entity Id but not both.
[System.String] (Name) or [System.Int32]
Specifies a LogRhythm Entity object by providing one of the following property values:
+ Entity Name (as System.String), e.g. "Segment Bravo"
+ Entity Id (as System.String or System.Int32), e.g. 202
.PARAMETER Name
[System.String] Parameter for specifying a new host name.
Max length: 50 characters
.PARAMETER ShortDescription
A brief description of the host entity.
Max length: 255 characters
.PARAMETER LongDescription
An extended description of the host entity.
Max length: 2000 characters
.PARAMETER RiskLevel
Designated host Risk Level.
Valid entries: "None" "Low-Low" "Low-Medium" "Low-High" "Medium-Low" "Medium-Medium" "Medium-High" "High-Low" "High-Medium" "High-High"
.PARAMETER ThreatLevel
Designated host Threat Level.
Valid entries: "None" "Low-Low" "Low-Medium" "Low-High" "Medium-Low" "Medium-Medium" "Medium-High" "High-Low" "High-Medium" "High-High"
.PARAMETER ThreatLevelComment
Provide context to ThreatLevel score associted with Host Record.
.PARAMETER RecordStatus
String used to restrict results based on RecordStatus.
Valid entries: "Active", "Retired"
.PARAMETER HostZone
Set host zone.
Valid entries: "Internal", "DMZ", "External"
.PARAMETER Location
Set the network's geographic location.
This parameter will be enhanced with location lookup verification with LogRhythm 7.5 API.
.PARAMETER OS
Specify the OS type.
Valid entries: "Unknown" "Other" "WindowsNT4" "Windows2000Professional" "Windows2000Server" "Windows2003Standard" "Windows2003Enterprise"
"Windows95" "WindowsXP" "WindowsVista" "Linux" "Solaris" "AIX" "HPUX" "Windows"
.PARAMETER OSVersion
String description of the OS Version.
Max length: 100 characters
.PARAMETER UseEventLogCredentials
Boolean expression that defines log collection.
Default value is False for API use.
.PARAMETER OSType
String description for OS Type.
Valid entries: "Server" "Desktop" "None"
.PARAMETER PassThru
Switch paramater that will enable the return of the output object from the cmdlet.
.OUTPUTS
PSCustomObject representing the new LogRhythm Host and its contents.
.EXAMPLE
PS C:\> New-LrHost -Entity "Primary Site" -Name "Mynewhost" -ShortDesc "This is the short desc." -LongDesc "This is the killer long description for this host." -Zone "internal" -OS "Windows" -OSVersion "2008r2" -OSType "Server" -PassThru
---
id : 3
entity : @{id=1; name=Primary Site}
name : Mynewhost
shortDesc : This is the short desc.
longDesc : This is the killer long description for this host.
riskLevel : None
threatLevel : None
threatLevelComments :
recordStatusName : Active
hostZone : Internal
location : @{id=-1}
os : Windows
osVersion : 2008r2
useEventlogCredentials : False
osType : Server
dateUpdated : 6/18/2020 6:00:35 PM
.NOTES
LogRhythm-API
.LINK
https://github.com/LogRhythm-Tools/LogRhythm.Tools
#>
[CmdletBinding()]
Param(
[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, Position = 0)]
[string] $Entity,
[Parameter(Mandatory = $true, ValueFromPipelineByPropertyName = $true, Position = 1)]
[string] $Name,
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 2)]
[string] $ShortDesc,
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 3)]
[string] $LongDesc,
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 4)]
[ValidateSet(
'none',
'low-low',
'low-medium',
'low-high',
'medium-low',
'medium-medium',
'medium-high',
'high-low',
'high-medium',
'high-high',
ignorecase=$true
)]
[string] $RiskLevel = "none",
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 5)]
[ValidateSet(
'none',
'low-low',
'low-medium',
'low-high',
'medium-low',
'medium-medium',
'medium-high',
'high-low',
'high-medium',
'high-high',
ignorecase=$true
)]
[string] $ThreatLevel = "none",
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 6)]
[string] $ThreatLevelComment,
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 7)]
[ValidateSet('new', 'retired','active', ignorecase=$true)]
[string] $RecordStatus = "new",
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 8)]
[ValidateSet('unknown', 'internal','dmz','external', ignorecase=$true)]
[string] $Zone="internal",
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 9)]
[string] $Location,
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName=$true, Position = 10)]
[int32]$LocationId,
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 11)]
[ValidateSet(
'unknown',
'other',
'windowsNT4',
'windows2000professional',
'windows2000server',
'windows2003standard',
'windows2003enterprise',
'windows95',
'windowsxp',
'windowsvista',
'linux',
'solaris',
'aix',
'hpux',
'windows',
ignorecase=$true
)]
[string] $OS,
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 12)]
[string] $OSVersion,
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 13)]
[bool] $UseEventlogCredentials = $false,
[Parameter(Mandatory = $false, ValueFromPipelineByPropertyName = $true, Position = 14)]
[ValidateSet('server','none','desktop', ignorecase=$true)]
[string] $OSType = "server",
[Parameter(Mandatory = $false, Position = 15)]
[switch] $PassThru,
[Parameter(Mandatory = $false, Position = 16)]
[ValidateNotNull()]
[pscredential] $Credential = $LrtConfig.LogRhythm.ApiKey
)
Begin {
# Request Setup
$BaseUrl = $LrtConfig.LogRhythm.BaseUrl
$Token = $Credential.GetNetworkCredential().Password
# Define HTTP Headers
$Headers = [Dictionary[string,string]]::new()
$Headers.Add("Authorization", "Bearer $Token")
$Headers.Add("Content-Type","application/json")
# Define HTTP Method
$Method = $HttpMethod.Post
# Check preference requirements for self-signed certificates and set enforcement for Tls1.2
Enable-TrustAllCertsPolicy
# Define LogRhythm Version
$LrVersion = $LrtConfig.LRDeployment.Version
# Integer Reference
[int32] $_int = 1
}
Process {
# Establish General Error object Output
$ErrorObject = [PSCustomObject]@{
Code = $null
Error = $false
Type = $null
Note = $null
Value = $Name
Raw = $null
}
# Lookup Entity By ID or Name
if ($Entity) {
if ([int]::TryParse($Entity, [ref]$_int)) {
Write-Verbose "[$Me]: Entity parses as integer."
$_entity = Get-LrEntityDetails -Id $Entity
} else {
Write-Verbose "[$Me]: Id does not parse as integer. Performing string lookup."
$EntityLookup = Get-LrEntities -Name $Entity -Exact
if ($EntityLookup.Error -eq $true) {
return $EntityLookup
} else {
$_entity = $EntityLookup
}
}
} else {
$ErrorObject.Error = $true
$ErrorObject.Type = "Error"
$ErrorObject.Code = 404
$ErrorObject.Note = "Value for Entity (Name or ID) must be submitted. To review entities run: get-lrentities"
return $ErrorObject
}
Write-Verbose "Entity: $_entity"
# Location lookup
if ($LocationId -and $Location) {
if ($LocationLookup) {
if ($LrtConfig.LogRhythm.Version -notmatch '7\.[5-9]\.\d+') {
$LocationStatus = Show-LrLocations -Id $LocationId
if ($LocationStatus) {
$_locationName = $LocationStatus.name
$_locationId = $LocationStatus.id
}
} else {
$LocationStatus = Get-LrLocations -Id $LocationId
if ($LocationStatus) {
$_locationName = $LocationStatus.name
$_locationId = $LocationStatus.id
}
}
} else {
$_locationName = $Location
$_locationId = $LocationId
}
$_location = [PSCustomObject][Ordered]@{
id = $_locationId
name = $_locationName
}
} elseif ($Location) {
if ($LocationLookup) {
if ($LrtConfig.LogRhythm.Version -notmatch '7\.[5-9]\.\d+') {
$LocationStatus = Show-LrLocations -Name $Location -Exact
if ($LocationStatus) {
$_locationName = $LocationStatus.name
$_locationId = $LocationStatus.id
}
} else {
$LocationStatus = Get-LrLocations -Name $Location -Exact
if ($LocationStatus) {
$_locationName = $LocationStatus.name
$_locationId = $LocationStatus.id
}
}
$_location = [PSCustomObject][Ordered]@{
id = $_locationId
name = $_locationName
}
} else {
$_location = $OriginHostRecord.Location
}
} else {
$_location = $OriginHostRecord.Location
}
# Ensure proper syntax
if ($RecordStatus) {
# Update RecordStatus for 7.5 API
if ($LrtConfig.LogRhythm.Version -match '7\.[5-9]\.\d+') {
if ($RecordStatus -eq "new") {
$RecordStatus = "active"
}
}
$_recordStatus = (Get-Culture).TextInfo.ToTitleCase($RecordStatus)
}
# Ensure proper syntax
if ($RiskLevel) {
$_riskLevel = (Get-Culture).TextInfo.ToTitleCase($RiskLevel)
} else {
$_riskLevel = "None"
}
# Ensure proper syntax
if ($ThreatLevel) {
$_threatLevel = (Get-Culture).TextInfo.ToTitleCase($ThreatLevel)
} else {
$_threatLevel = "None"
}
# Verify if ThreatLevelComment requires update
if (!$ThreatLevelComment) {
$_threatLevelComment = ""
} else {
$_threatLevelComment = $ThreatLevelComment
}
# Ensure proper syntax
if ($Zone) {
# Update Dmz for appropriate API Syntax
if ($Zone -eq "Dmz") {
$_zone = "DMZ"
} else {
$_zone = (Get-Culture).TextInfo.ToTitleCase($Zone)
}
}
# OS
if ($Os) {
# Update for appropriate API Syntax
switch ($Os) {
unknown { $_os = "Unknown" }
other { $_os = "Other" }
windowsnt4 { $_os = "WindowsNT4" }
windows2000professional { $_os = "Windows2000Professional" }
windows2000server { $_os = "Windows2000Server" }
windows2003standard { $_os = "Windows2003Standard" }
windows2003enterprise { $_os = "Windows2003Enterprise" }
windows95 { $_os = "Windows95" }
windowsxp { $_os = "WindowsXP" }
windowsvista { $_os = "WindowsVista" }
linux { $_os = "Linux" }
solaris { $_os = "Solaris" }
aix { $_os = "AIX" }
hpux { $_os = "HPUX" }
windows { $_os = "Windows" }
default { $_os = "Unknown" }
}
} else {
$_os = "Unknown"
}
# For future length check
if ($OSVersion) {
$_osVersion = $OSVersion
} else {
$_osVersion = ""
}
# Ensure proper syntax
if ($OSType) {
$ValidStatus = @("server", "none", "desktop")
if ($ValidStatus.Contains($($OSType.ToLower()))) {
$_osType = (Get-Culture).TextInfo.ToTitleCase($OSType)
} else {
throw [ArgumentException] "OS Type [$OSType] must be: server, none, or desktop"
}
}
#>
$BodyContents = [PSCustomObject]@{
id = -1
entity = [PSCustomObject]@{
id = $($_entity.Id)
name = $($_entity.Name)
}
name = $Name
shortDesc = $shortDesc
longDesc = $longDesc
riskLevel = $_riskLevel
threatLevel = $_threatLevel
threatLevelComments = $_threatLevelComment
recordStatusName = $_recordStatus
hostZone = $_zone
location = $_location
os = $_os
osVersion = $_osVersion
eventlogUsername = ""
eventlogPassword = ""
useEventlogCredentials = $UseEventlogCredentials
osType = $_osType
}
# Establish Body Contents
$Body = $BodyContents | ConvertTo-Json -Depth 3
Write-Verbose "$Body"
# Define Query URL
$RequestUrl = $BaseUrl + "/lr-admin-api/hosts/"
# Send Request
try {
$Response = Invoke-RestMethod $RequestUrl -Headers $Headers -Method $Method -Body $Body
}
catch [System.Net.WebException] {
$Err = Get-RestErrorMessage $_
$ErrorObject.Error = $true
$ErrorObject.Type = "System.Net.WebException"
$ErrorObject.Code = $($Err.statusCode)
$ErrorObject.Note = $($Err.message)
$ErrorObject.Raw = $_
return $ErrorObject
}
# Return output object
if ($ErrorObject.Error -eq $true) {
return $ErrorObject
}
if ($PassThru) {
return $Response
}
}
End { }
} | 35.04086 | 245 | 0.531361 |
fb1915b4c897124643baf8a47fb844756f77b53e | 272 | h | C | external/config.h | RobbeDGreef/OS | 121709618164906ab030502861c487b0dc1cdefa | [
"MIT"
] | 87 | 2019-08-24T16:10:35.000Z | 2022-03-24T15:28:47.000Z | external/config.h | RobbeDGreef/OS | 121709618164906ab030502861c487b0dc1cdefa | [
"MIT"
] | null | null | null | external/config.h | RobbeDGreef/OS | 121709618164906ab030502861c487b0dc1cdefa | [
"MIT"
] | 5 | 2019-10-31T17:43:36.000Z | 2021-01-17T18:58:57.000Z | #ifndef YANIX_EXT_CONFIG_H
#define YANIX_EXT_CONFIG_H
#define HAVE_OWN_STDLIB 1
#define HAVE_OWN_STRING 1
#define ECLIB_PROV_MALLOC kmalloc
#define ECLIB_PROV_FREE kfree
#define ECLIB_PROV_MEMSET memset
#define ECLIB_PROV_MEMCPY memcpy
#endif /* YANIX_EXT_CONFIG_H */ | 22.666667 | 33 | 0.841912 |
e269eb3081671ee571d276e9e3a32cc7118a3ad7 | 481 | sql | SQL | db/query.sql | LordLowdar/bosstracker | 4b084f611267c3d9df1abf47b89d481282284039 | [
"MIT"
] | null | null | null | db/query.sql | LordLowdar/bosstracker | 4b084f611267c3d9df1abf47b89d481282284039 | [
"MIT"
] | null | null | null | db/query.sql | LordLowdar/bosstracker | 4b084f611267c3d9df1abf47b89d481282284039 | [
"MIT"
] | null | null | null | SELECT
employee.id AS ID,
employee.first_name AS First,
employee.last_name AS Last,
employee.role_id AS Role,
role.salary AS Salary,
manager.last_name AS Manager,
department.name AS Department
JOIN employee to its self FROM employee LEFT JOIN employee manager
ON employee.manager_id = manager.id
JOIN role to employee table LEFT JOIN role
ON employee.role_id = role.title
JOIN department to role table LEFT JOIN department
ON role.department_id = department.id | 28.294118 | 66 | 0.785863 |
8ea5a760b5091f9d898b3798074b54f090b1b9fe | 38 | sql | SQL | models/tmp/stg_netsuite__locations_tmp.sql | vik-g/dbt_netsuite_source | 80b1f911991942f7ca0898fee0e4145d78be7de1 | [
"Apache-2.0"
] | 4 | 2021-09-16T22:45:18.000Z | 2022-03-14T00:01:42.000Z | models/tmp/stg_netsuite__locations_tmp.sql | vik-g/dbt_netsuite_source | 80b1f911991942f7ca0898fee0e4145d78be7de1 | [
"Apache-2.0"
] | 5 | 2021-06-14T21:28:07.000Z | 2022-03-25T20:58:33.000Z | models/tmp/stg_netsuite__locations_tmp.sql | vik-g/dbt_netsuite_source | 80b1f911991942f7ca0898fee0e4145d78be7de1 | [
"Apache-2.0"
] | 7 | 2021-09-10T18:53:21.000Z | 2022-03-24T23:15:39.000Z | select *
from {{ var('locations') }}
| 12.666667 | 27 | 0.578947 |
fbb165a0d0b672019e644a4cf8283288667080dd | 2,788 | java | Java | benchmark-app/src/main/java/org/flowable/benchmark/app/BenchmarkProperties.java | vorbidan/flowable-benchmark | 9ac5e30d515e38485b85ee3d82c76cca0e374f4a | [
"Apache-2.0"
] | null | null | null | benchmark-app/src/main/java/org/flowable/benchmark/app/BenchmarkProperties.java | vorbidan/flowable-benchmark | 9ac5e30d515e38485b85ee3d82c76cca0e374f4a | [
"Apache-2.0"
] | null | null | null | benchmark-app/src/main/java/org/flowable/benchmark/app/BenchmarkProperties.java | vorbidan/flowable-benchmark | 9ac5e30d515e38485b85ee3d82c76cca0e374f4a | [
"Apache-2.0"
] | null | null | null | package org.flowable.benchmark.app;
import org.springframework.boot.context.properties.ConfigurationProperties;
import java.util.ArrayList;
import java.util.List;
/**
* @author Filip Hrisafov
*/
@ConfigurationProperties(prefix = "benchmark")
public class BenchmarkProperties {
protected boolean enabled = true;
protected int minThreads = 10;
protected int maxThreads = 16;
protected int iterations = 10000;
protected boolean treeFetch = true;
protected List<String> processes = new ArrayList<>();
protected String outputName = "results.csv";
protected final AsyncHistory asyncHistory = new AsyncHistory();
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public int getMinThreads() {
return minThreads;
}
public void setMinThreads(int minThreads) {
this.minThreads = minThreads;
}
public int getMaxThreads() {
return maxThreads;
}
public void setMaxThreads(int maxThreads) {
this.maxThreads = maxThreads;
}
public int getIterations() {
return iterations;
}
public void setIterations(int iterations) {
this.iterations = iterations;
}
public boolean isTreeFetch() {
return treeFetch;
}
public void setTreeFetch(boolean treeFetch) {
this.treeFetch = treeFetch;
}
public List<String> getProcesses() {
return processes;
}
public void setProcesses(List<String> processes) {
this.processes = processes;
}
public String getOutputName() {
return outputName;
}
public void setOutputName(String outputName) {
this.outputName = outputName;
}
public AsyncHistory getAsyncHistory() {
return asyncHistory;
}
public static class AsyncHistory {
protected boolean enabled;
protected boolean grouping;
protected boolean gzip;
protected int groupingThreshold = 10;
public boolean isEnabled() {
return enabled;
}
public void setEnabled(boolean enabled) {
this.enabled = enabled;
}
public boolean isGrouping() {
return grouping;
}
public void setGrouping(boolean grouping) {
this.grouping = grouping;
}
public boolean isGzip() {
return gzip;
}
public void setGzip(boolean gzip) {
this.gzip = gzip;
}
public int getGroupingThreshold() {
return groupingThreshold;
}
public void setGroupingThreshold(int groupingThreshold) {
this.groupingThreshold = groupingThreshold;
}
}
}
| 21.78125 | 75 | 0.624821 |
b98a3c91f6120faa4ab91c7050621ba1488a8a15 | 177 | kt | Kotlin | src/main/java/tornadofx/EventLog.kt | aleksandar-stefanovic/tornadofx2 | e4f5bde2cde42b5bbdbeb5ceb2ae70d3602edfff | [
"Apache-2.0"
] | 3,991 | 2016-01-20T02:30:26.000Z | 2022-03-30T10:52:05.000Z | src/main/java/tornadofx/EventLog.kt | aleksandar-stefanovic/tornadofx2 | e4f5bde2cde42b5bbdbeb5ceb2ae70d3602edfff | [
"Apache-2.0"
] | 1,209 | 2016-01-26T00:39:25.000Z | 2022-03-30T11:36:26.000Z | src/main/java/tornadofx/EventLog.kt | aleksandar-stefanovic/tornadofx2 | e4f5bde2cde42b5bbdbeb5ceb2ae70d3602edfff | [
"Apache-2.0"
] | 410 | 2016-02-12T23:06:55.000Z | 2022-03-16T19:38:37.000Z | package tornadofx
class MessageEvent(val message: String, val severity: ValidationSeverity) : FXEvent() {
enum class Severity { Info, Warning, Error }
}
class EventLogView | 25.285714 | 87 | 0.762712 |
843ce6ff772c3da589d70f3359d701e1eae4757b | 1,660 | html | HTML | src/main/webapp/WEB-INF/templates/fragments/header.html | borjaja/Social-Network | c9797ac59e3c9f695dc709cdadf82cd37ce87554 | [
"MIT"
] | null | null | null | src/main/webapp/WEB-INF/templates/fragments/header.html | borjaja/Social-Network | c9797ac59e3c9f695dc709cdadf82cd37ce87554 | [
"MIT"
] | 1 | 2019-10-05T13:25:13.000Z | 2019-10-05T13:26:04.000Z | src/main/webapp/WEB-INF/templates/fragments/header.html | borjaja/Social-Network | c9797ac59e3c9f695dc709cdadf82cd37ce87554 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head th:fragment="header">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset='utf-8'>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- IE Compatibility tag -->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title th:text="#{application.title}">Webapp title</title>
<!-- Metadata -->
<meta name="description" th:content="${pageDescription}">
<meta name="keywords" th:content="${pageKeywords}">
<meta name="author" th:content="${pageAuthor}">
<!-- Facebook OpenGraph -->
<meta property="og:type" content="website" />
<meta property="og:site_name" content="#{application.title}" />
<meta property="og:title" content="#{application.title}" />
<meta property="og:description" content="${pageDescription}" />
<!-- Twitter Card -->
<meta name="twitter:card" content="summary" />
<meta name="twitter:creator" content="${pageTwitter}" />
<meta name="twitter:title" content="#{application.title}" />
<meta name="twitter:description" content="${pageDescription}" />
<!-- CSS -->
<link rel="stylesheet"
th:href="@{/static/bootswatch-readable/css/bootstrap.min.css}">
<link rel="stylesheet"
th:href="@{/static/datatables/css/dataTables.bootstrap.min.css}">
<link rel="stylesheet"
th:href="@{/static/font-awesome/css/font-awesome.min.css}">
<!-- Custom style -->
<link rel="stylesheet" th:href="@{/static/css/style.min.css}">
<link rel="stylesheet" th:href="@{/static/css/common.css}">
<!-- HTML5 Shiv. For IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script th:src="@{/webjars/html5shiv/html5shiv.min.js}"></script>
<![endif]-->
</head> | 33.877551 | 72 | 0.680723 |
e8fe259271609942f6b02a56e3c6e11a5d2eed49 | 1,060 | py | Python | Modules/Helpers/Bomb/SerialNumber.py | cweeks12/KTANE-Solver | b162bd107c0ac90a892659461819214772a04f9d | [
"MIT"
] | null | null | null | Modules/Helpers/Bomb/SerialNumber.py | cweeks12/KTANE-Solver | b162bd107c0ac90a892659461819214772a04f9d | [
"MIT"
] | null | null | null | Modules/Helpers/Bomb/SerialNumber.py | cweeks12/KTANE-Solver | b162bd107c0ac90a892659461819214772a04f9d | [
"MIT"
] | null | null | null | class SerialNumber:
def __init__(self, serialNumber):
if not (len(serialNumber) == 6):
raise ValueError('Serial Number must be 6 digits long')
self._serialNumber = serialNumber
def __str__(self):
return 'S/N: {}'.format(self._serialNumber)
def __repr__(self):
return 'SerialNumber: {}'.format(self._serialNumber)
def getSerialNumber(self):
return self._serialNumber
def containsVowel(self):
VOWELS = ['a', 'e', 'i', 'o', 'u']
for character in self._serialNumber:
if character in VOWELS:
return True
return False
def lastDigitOdd(self):
try:
lastDigitValue = int(self._serialNumber[-1])
except ValueError:
return False
return lastDigitValue % 2 == 1
def lastDigitEven(self):
try:
lastDigitValue = int(self._serialNumber[-1])
except ValueError:
return False
return lastDigitValue % 2 == 0
| 27.894737 | 68 | 0.565094 |
331dc380a0542f7715a2dea44ae9eaa75a2bf837 | 193 | py | Python | RecoLocalCalo/HGCalRecProducers/python/HeterogeneousHEBRecHitGPUtoSoA_cfi.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 852 | 2015-01-11T21:03:51.000Z | 2022-03-25T21:14:00.000Z | RecoLocalCalo/HGCalRecProducers/python/HeterogeneousHEBRecHitGPUtoSoA_cfi.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 30,371 | 2015-01-02T00:14:40.000Z | 2022-03-31T23:26:05.000Z | RecoLocalCalo/HGCalRecProducers/python/HeterogeneousHEBRecHitGPUtoSoA_cfi.py | Purva-Chaudhari/cmssw | 32e5cbfe54c4d809d60022586cf200b7c3020bcf | [
"Apache-2.0"
] | 3,240 | 2015-01-02T05:53:18.000Z | 2022-03-31T17:24:21.000Z | import FWCore.ParameterSet.Config as cms
HEBRecHitGPUtoSoAProd = cms.EDProducer('HEBRecHitGPUtoSoA',
HEBRecHitGPUTok = cms.InputTag('HEBRecHitGPUProd'))
| 38.6 | 90 | 0.663212 |
063c0dec728c2af3e2606907d2741df5e36502a5 | 3,618 | sql | SQL | layers/poi/layer.sql | jawg/QwantResearch-openmaptiles | 3ae1407a89151c9db0ae83b7279444b510e330dd | [
"CC-BY-4.0"
] | null | null | null | layers/poi/layer.sql | jawg/QwantResearch-openmaptiles | 3ae1407a89151c9db0ae83b7279444b510e330dd | [
"CC-BY-4.0"
] | null | null | null | layers/poi/layer.sql | jawg/QwantResearch-openmaptiles | 3ae1407a89151c9db0ae83b7279444b510e330dd | [
"CC-BY-4.0"
] | null | null | null |
CREATE OR REPLACE FUNCTION osm_hash_from_imposm(imposm_id bigint)
RETURNS bigint AS $$
SELECT CASE
WHEN imposm_id < -1e17 THEN (-imposm_id-1e17) * 10 + 4 -- Relation
WHEN imposm_id < 0 THEN (-imposm_id) * 10 + 1 -- Way
ELSE imposm_id * 10 -- Node
END::bigint;
$$ LANGUAGE SQL IMMUTABLE;
CREATE OR REPLACE FUNCTION global_id_from_imposm(imposm_id bigint)
RETURNS TEXT AS $$
SELECT CONCAT(
'osm:',
CASE WHEN imposm_id < -1e17 THEN CONCAT('relation:', -imposm_id-1e17)
WHEN imposm_id < 0 THEN CONCAT('way:', -imposm_id)
ELSE CONCAT('node:', imposm_id)
END
);
$$ LANGUAGE SQL IMMUTABLE;
-- etldoc: layer_poi[shape=record fillcolor=lightpink, style="rounded,filled",
-- etldoc: label="layer_poi | <z12> z12 | <z13> z13 | <z14_> z14+" ] ;
CREATE OR REPLACE FUNCTION layer_poi(bbox geometry, zoom_level integer, pixel_width numeric)
RETURNS TABLE(osm_id bigint, global_id text, geometry geometry, name text, name_en text, name_de text, tags hstore, class text, subclass text, agg_stop integer, "rank" int) AS $$
SELECT osm_id_hash AS osm_id, global_id,
geometry, NULLIF(name, '') AS name,
COALESCE(NULLIF(name_en, ''), name) AS name_en,
COALESCE(NULLIF(name_de, ''), name, name_en) AS name_de,
tags,
poi_class(subclass, mapping_key) AS class,
CASE
WHEN subclass = 'information'
THEN NULLIF(information, '')
WHEN subclass = 'place_of_worship'
THEN NULLIF(religion, '')
ELSE subclass
END AS subclass,
agg_stop,
row_number() OVER (
PARTITION BY LabelGrid(geometry, 100 * pixel_width)
ORDER BY CASE WHEN name = '' THEN 2000 ELSE poi_class_rank(poi_class(subclass, mapping_key)) END ASC
)::int AS "rank"
FROM (
-- etldoc: osm_poi_point -> layer_poi:z12
-- etldoc: osm_poi_point -> layer_poi:z13
SELECT *,
osm_hash_from_imposm(osm_id) AS osm_id_hash,
global_id_from_imposm(osm_id) as global_id
FROM osm_poi_point
WHERE geometry && bbox
AND zoom_level BETWEEN 12 AND 13
AND ((subclass='station' AND mapping_key = 'railway')
OR subclass IN ('halt', 'ferry_terminal'))
UNION ALL
-- etldoc: osm_poi_point -> layer_poi:z14_
SELECT *,
osm_hash_from_imposm(osm_id) AS osm_id_hash,
global_id_from_imposm(osm_id) as global_id
FROM osm_poi_point
WHERE geometry && bbox
AND zoom_level >= 14
UNION ALL
-- etldoc: osm_poi_polygon -> layer_poi:z12
-- etldoc: osm_poi_polygon -> layer_poi:z13
SELECT *,
NULL::INTEGER AS agg_stop,
osm_hash_from_imposm(osm_id) AS osm_id_hash,
global_id_from_imposm(osm_id) as global_id
FROM osm_poi_polygon
WHERE geometry && bbox
AND zoom_level BETWEEN 12 AND 13
AND ((subclass='station' AND mapping_key = 'railway')
OR subclass IN ('halt', 'ferry_terminal'))
UNION ALL
-- etldoc: osm_poi_polygon -> layer_poi:z14_
SELECT *,
NULL::INTEGER AS agg_stop,
osm_hash_from_imposm(osm_id) AS osm_id_hash,
global_id_from_imposm(osm_id) as global_id
FROM osm_poi_polygon
WHERE geometry && bbox
AND zoom_level >= 14
) as poi_union
ORDER BY "rank"
;
$$ LANGUAGE SQL IMMUTABLE;
| 38.903226 | 178 | 0.605583 |
51537269ff7e13f54e04111b5dc2015788377940 | 7,691 | kt | Kotlin | src/commonMain/kotlin/com/github/servb/pph/pheroes/mapEditor/ExportDlg.kt | SerVB/pph | b828ccfaa180a6e2adb9cea9fb9a8732efb6dc79 | [
"Apache-2.0"
] | 13 | 2021-01-07T14:23:21.000Z | 2022-03-09T18:58:06.000Z | src/commonMain/kotlin/com/github/servb/pph/pheroes/mapEditor/ExportDlg.kt | SerVB/pph | b828ccfaa180a6e2adb9cea9fb9a8732efb6dc79 | [
"Apache-2.0"
] | 17 | 2018-03-31T09:44:55.000Z | 2021-02-05T17:20:09.000Z | src/commonMain/kotlin/com/github/servb/pph/pheroes/mapEditor/ExportDlg.kt | anonymous-frog-studio/pph | b828ccfaa180a6e2adb9cea9fb9a8732efb6dc79 | [
"Apache-2.0"
] | 2 | 2021-01-13T14:05:20.000Z | 2022-03-23T17:14:05.000Z | package com.github.servb.pph.pheroes.mapEditor
import com.github.servb.pph.gxlib.Write
import com.github.servb.pph.iolib.xe.FindSolidArea
import com.github.servb.pph.util.SizeT
import com.soywiz.klogger.Logger
import com.soywiz.kmem.ByteArrayBuilder
import com.soywiz.korim.bitmap.Bitmap32
import com.soywiz.korim.bitmap.slice
import com.soywiz.korim.color.BGRA
import com.soywiz.korim.color.RGBA
import com.soywiz.korim.color.convertTo
import com.soywiz.korio.file.VfsFile
import com.soywiz.korma.geom.IRectangleInt
import com.soywiz.korma.geom.PointInt
import com.soywiz.korma.geom.RectangleInt
import kotlin.experimental.or
private val logger = Logger("ExportDlg") // todo: without name, the compilation crashes
private fun RGB32_2_RGB16(rgba: RGBA): UShort {
val bgra = RGBA.convertTo(rgba.value, BGRA)
return (((bgra ushr 8) and 0xF800) or ((bgra ushr 5) and 0x7E0) or ((bgra ushr 3) and 0x1F)).toUShort()
}
private fun MakeSpanSprite(src: Bitmap32, buff: ByteArrayBuilder) {
buff.clear()
repeat(src.height) { yy ->
val sptr: SizeT = src.index(0, yy)
var tptr: SizeT = sptr
var phIdx: SizeT? = null
var fspace = 0
var span_begin: Int = -42
var span_len: Int = -42
var mode = 0
repeat(src.width) { xx ->
if (src.data[tptr].a != 0) {
if (mode == 0) {
span_begin = xx
span_len = 0
mode = 1
}
++span_len
} else {
if (mode == 1) {
mode = 0
phIdx = buff.size
buff.Write(((fspace shl 8) or span_len).toUShort())
repeat(span_len) { zz ->
val pptr = sptr + span_begin + zz
val value: UShort = RGB32_2_RGB16(src.data[pptr])
buff.Write(value)
}
fspace = 0
}
++fspace
}
++tptr
}
if (mode == 1) {
buff.Write(((1 shl 15) or (fspace shl 8) or span_len).toUShort())
repeat(span_len) { zz ->
val pptr = sptr + span_begin + zz
val value: UShort = RGB32_2_RGB16(src.data[pptr])
buff.Write(value)
}
} else if (phIdx == null) {
buff.Write((1 shl 15).toUShort())
} else {
buff.data[phIdx!! + 1] = buff.data[phIdx!! + 1] or (1u shl (15 - 8)).toByte()
}
}
}
private fun MakeSprite(src: Bitmap32, buff: ByteArrayBuilder) {
buff.clear()
repeat(src.height) { yy ->
val pSrc = src.index(0, yy)
repeat(src.width) { xx ->
val value: UShort = RGB32_2_RGB16(src.data[pSrc + xx])
buff.Write(value)
}
}
}
private fun CropSprite(dib: Bitmap32, anchor: PointInt): Bitmap32 {
val nrc = FindSolidArea(dib)
val odib = dib.slice(nrc).extract()
anchor.x += nrc.x
anchor.y += nrc.y
return odib
}
private const val SPFT_RAW = 0x0u
private const val SPFT_SPANNED = 0x1u
private const val SPF_SHADOW = 0xEu
private const val SPF_SHT_NONE = 0x0u
private const val SPF_SHT_BASIC = 0x2u
private const val SPF_SHT_GUI = 0x4u
private const val SPF_SHT_ALT = 0x6u
private class GfxBankExporter {
private class BankImage(
val imageType: UByte, // type props
val dataOffset: SizeT, // offset of the sprite data from the begining of data block ( in uint16 )
val imageWidth: UShort,
val imageHeight: UShort,
val originX: Short,
val originY: Short,
) {
companion object {
const val SIZE = 1 + 4 + 2 + 2 + 2 + 2
}
}
private val catalog: MutableList<BankImage> = mutableListOf()
private val pixels: ByteArrayBuilder = ByteArrayBuilder()
private val m_procData: ByteArrayBuilder = ByteArrayBuilder()
fun Put(sprite: Bitmap32, name: String, spanned: Boolean = true, crop: Boolean = false) {
val dib = sprite.slice().extract()
val type = if (spanned) {
SPFT_SPANNED
} else {
SPFT_RAW
}.toUByte()
AddSprite(dib, name, PointInt(), type, crop)
}
fun Put(sprite: Bitmap32, name: String, rc: IRectangleInt, spanned: Boolean = true, crop: Boolean = false) {
val part = sprite.slice(RectangleInt(rc)).extract()
Put(part, name, spanned, crop)
}
fun Put(sprite: iSprite, name: String) {
val type = (if (sprite.spanned) {
SPFT_SPANNED
} else {
SPFT_RAW
} or (sprite.shadow.toUInt() shl 1)).toUByte()
AddSprite(sprite.dib, name, PointInt(sprite.anchor.x, sprite.anchor.y), type, sprite.crop)
}
fun Export(): ByteArray {
// header
val hdrBits = uintArrayOf(
0x1A464253u,
catalog.size.toUInt(),
pixels.size.toUInt(),
0xffffffffu,
)
val dest = ByteArrayBuilder()
hdrBits.forEach { dest.Write(it) }
dest.append(pixels.toByteArray())
hdrBits.forEach { dest.Write(it) }
catalog.forEach {
dest.Write(it.imageType)
dest.Write(it.dataOffset)
dest.Write(it.imageWidth)
dest.Write(it.imageHeight)
dest.Write(it.originX)
dest.Write(it.originY)
}
logger.info { "- Done: ${pixels.size} bytes in ${catalog.size} sprites (Dsc: ${catalog.size * BankImage.SIZE} bytes)." }
return dest.toByteArray()
}
fun Size(): SizeT = catalog.size
fun Clear() {
catalog.clear()
pixels.size = 0
}
private fun Validate(sprite: Bitmap32, type: UByte): Boolean {
MakeSpanSprite(sprite, m_procData)
val spannedSize = m_procData.size
MakeSprite(sprite, m_procData)
val rawSize = m_procData.size
val spanRequested = (type and 1u) == 1u.toUByte()
if (rawSize < spannedSize && spanRequested) {
return false
}
return true
}
private fun AddSprite(sprite: Bitmap32, name: String, origin: PointInt, type: UByte, crop: Boolean) {
if (!Validate(sprite, type)) {
logger.info { "$name -!- Warning: spanned sprite is bigger than raw!" }
}
val dib = if (crop) {
CropSprite(sprite, origin)
} else {
sprite
}
val img = BankImage(
imageType = type,
dataOffset = pixels.size / 2,
imageWidth = dib.width.toUShort(),
imageHeight = dib.height.toUShort(),
originX = origin.x.toShort(),
originY = origin.y.toShort(),
)
catalog.add(img)
if ((type and 1u) != 0u.toUByte()) {
MakeSpanSprite(dib, m_procData)
check(m_procData.size < 65536 * 2) { "Im too lazy to split uint32 ;)" }
pixels.Write((m_procData.size / 2).toUShort()) // <*1*>
pixels.append(m_procData.toByteArray())
} else {
MakeSprite(dib, m_procData)
pixels.append(m_procData.toByteArray())
}
}
}
suspend fun exportSprites(spriteSetFile: VfsFile): ByteArray {
val spriteMgr = iSpriteMgr()
spriteMgr.Init(spriteSetFile)
val spriteList = mutableListOf<Pair<String, Int>>()
spriteMgr.m_SpriteHash.forEach { (k, v) ->
spriteList.add(k to v.id)
}
spriteList.sortBy { it.second }
val gBank = GfxBankExporter()
spriteList.forEach { (k, _) ->
gBank.Put(spriteMgr[k], k)
}
return gBank.Export()
}
| 30.519841 | 128 | 0.569887 |
7f5a43d78436aa166ca88ac8e3483cb933cd2ef8 | 968 | swift | Swift | iosApp/iosApp/MovieCell.swift | mohammedgmgn/MoviesMPP | 9f9e4a89893500a6a3063e2698cae64e16504ee2 | [
"MIT"
] | 162 | 2019-06-05T19:53:07.000Z | 2022-01-06T03:00:21.000Z | iosApp/iosApp/MovieCell.swift | mohammedgmgn/MoviesMPP | 9f9e4a89893500a6a3063e2698cae64e16504ee2 | [
"MIT"
] | 2 | 2019-10-31T21:06:28.000Z | 2020-02-21T18:25:22.000Z | iosApp/iosApp/MovieCell.swift | mohammedgmgn/MoviesMPP | 9f9e4a89893500a6a3063e2698cae64e16504ee2 | [
"MIT"
] | 27 | 2019-06-14T01:50:44.000Z | 2021-08-22T18:33:58.000Z | import UIKit
/// Custom cell displaying a movie poster and its title.
class MovieCell: UICollectionViewCell {
@IBOutlet weak var posterView: UIImageView!
@IBOutlet weak var titleView: UILabel!
func loadPoster(url: String) {
posterView.loadImageFromURL(urlString: url)
}
}
extension UIImageView {
/// Function taken from https://stackoverflow.com/a/37019507/1477936 to load an image from a URL.
func loadImageFromURL(urlString: String) {
self.image = nil
URLSession.shared.dataTask(with: NSURL(string: urlString)! as URL, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error!)
return
}
DispatchQueue.main.async(execute: { () -> Void in
let image = UIImage(data: data!)
self.image = image
})
}).resume()
}}
| 29.333333 | 130 | 0.573347 |
166a2571519fb2615c3393d274ff86b44ab29f31 | 14,754 | swift | Swift | DeviceDirect/DataController.swift | sarawanakumar/device-direct | ba225a34675e44ebc7c4a4d29b80a3aee15de7a1 | [
"Apache-2.0"
] | 1 | 2017-05-02T11:25:52.000Z | 2017-05-02T11:25:52.000Z | DeviceDirect/DataController.swift | sarawanakumar/device-direct | ba225a34675e44ebc7c4a4d29b80a3aee15de7a1 | [
"Apache-2.0"
] | null | null | null | DeviceDirect/DataController.swift | sarawanakumar/device-direct | ba225a34675e44ebc7c4a4d29b80a3aee15de7a1 | [
"Apache-2.0"
] | null | null | null | //
// DataController.swift
// DeviceDirect
//
// Created by kumarsaravana on 8/25/16.
// Copyright © 2016 ibm. All rights reserved.
//
import Foundation
import CoreData
enum Entities: String {
case device = "Device"
case employee = "Employee"
case accreditation = "Accreditation"
case contract = "Contract"
case deviceModelType = "DeviceModelType"
case users = "Users"
static func enumerate() -> [Entities] {
return [.device, .employee, .accreditation, .contract, .deviceModelType]
}
func getResourcePath() -> String {
switch self {
case .device:
return "/devices"
case .employee:
return "/employees"
case .accreditation:
return "/accreditations"
case .contract:
return "/contracts"
case .deviceModelType:
return "/DeviceModelTypes"
case .users:
return "/Users"
}
}
func getDefaultResourcePath() -> String {
switch self {
case .device:
return "/devices?filter[where][active]=true"
case .employee:
return "/employees?filter[where][active]=true"
case .accreditation:
return "/accreditations"
case .contract:
return "/contracts"
case .deviceModelType:
return "/DeviceModelTypes"
case .users:
return "/Users"
}
}
}
enum OptionType {
case deviceTypes
case deviceModels(String)
case industry
case manager
}
enum DeviceDetailsView {
case newDevice
case existingDevice
}
let deviceTypes = ["Pad", "Phone", "Watch"]
let deviceModels = [deviceTypes[0]: ["iPad Mini", "iPad Air", "iPad Air 2", "iPad Pro"], deviceTypes[1]: ["iPhone 5S","iPhone 6", "iPhone 6S", "iPhone 7"], deviceTypes[2]: ["iWatch 2.0", "iWatch 2.2", "iWatch 3.0"]]
let industry = ["Banking", "Insurance", "Retail", "Talent & Change", "Energy & Utility", "Education", "Travel & Transport", "Telco"]
let manager = ["Ramkumar", "Senthil", "Ramesh", "Aparna", "Sankara"]
let dataController = DataController()
let alertsManager = AlertManager()
let DISPATCH_AFTER_500MS = DispatchTime.now() + Double(Int64(0.5 * Double(NSEC_PER_SEC))) / Double(NSEC_PER_SEC)
class DataController: NSObject {
private var managedObjectContext: NSManagedObjectContext
var context: NSManagedObjectContext {
return self.managedObjectContext
}
override init() {
guard let modelUrl = Bundle.main.url(forResource: "DeviceDirect", withExtension: "momd")
else { fatalError("error in loading data model") }
guard let managedObjectModel = NSManagedObjectModel(contentsOf: modelUrl)
else { fatalError("error in creating managed object model") }
let persistentStoreCoord = NSPersistentStoreCoordinator(managedObjectModel: managedObjectModel)
managedObjectContext = NSManagedObjectContext(concurrencyType: NSManagedObjectContextConcurrencyType.mainQueueConcurrencyType)
managedObjectContext.persistentStoreCoordinator = persistentStoreCoord
//dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0)) {
let urls = FileManager.default.urls(for: FileManager.SearchPathDirectory.documentDirectory, in: FileManager.SearchPathDomainMask.userDomainMask)
let docUrl = urls[urls.endIndex-1]
let storeUrl = docUrl.appendingPathComponent("DeviceDirect.sqlite")
do {
//Important: options to be set for automatic coredata migration of new apps
let options = [NSMigratePersistentStoresAutomaticallyOption: true,NSInferMappingModelAutomaticallyOption: true]
try persistentStoreCoord.addPersistentStore(ofType: NSSQLiteStoreType, configurationName: nil, at: storeUrl, options: options)
}
catch let e as NSError {
print("fatal error: while migrating store \(e)")
}
// }
}
func createManagedObject(_ name: String) -> NSManagedObject {
let entityObject = NSEntityDescription.insertNewObject(forEntityName: name, into: self.managedObjectContext)
return entityObject
}
func createManagedObject(_ name: String, completion: (_ dataObject: NSManagedObject)->()) {
let entityObject = NSEntityDescription.insertNewObject(forEntityName: name, into: self.managedObjectContext)
completion(entityObject)
}
func saveToPersistentStore1() -> Void {
do {
if managedObjectContext.hasChanges {
try self.managedObjectContext.save()
}
}
catch let error {
fatalError("failed to save: \(error.localizedDescription)")
}
}
func saveToPersistentStore(completion: (_ errorMessage: String?)->()) -> Void {
do {
if managedObjectContext.hasChanges {
try self.managedObjectContext.save()
}
completion(nil)
}
catch let error {
//fatalError("failed to save: \(error.localizedDescription)")
completion(error.localizedDescription)
}
}
func fetchFromPersistentStore(_ entity: String, withPredicate predicate: NSPredicate? = nil) -> [NSManagedObject] {
let fetchRequest : NSFetchRequest<NSFetchRequestResult> = NSFetchRequest(entityName: entity)
if let pred = predicate {
fetchRequest.predicate = pred
}
let fetchedObj: [NSManagedObject]!
do {
fetchedObj = try managedObjectContext.fetch(fetchRequest) as! [NSManagedObject]
}
catch {
fatalError("failed to fetch")
}
return fetchedObj
}
func fetchSortedDataFromPersistentStore(_ entity: String, withPredicate predicate: NSPredicate? = nil, sortAttribute keyAttr: String, byAscending ascending: Bool = true, fetchLimit: Int = 0) -> [NSManagedObject] {
let fromSortDesc = NSSortDescriptor(key: keyAttr, ascending: ascending)
//let predicate = NSPredicate(format: "returned_on == nil")
let fetchRequest : NSFetchRequest<NSFetchRequestResult> = NSFetchRequest(entityName: entity)
fetchRequest.sortDescriptors = [fromSortDesc]
fetchRequest.fetchLimit = fetchLimit
fetchRequest.predicate = predicate
let fetchedObj: [NSManagedObject]!
do {
fetchedObj = try managedObjectContext.fetch(fetchRequest) as! [NSManagedObject]
}
catch {
fatalError("failed to fetch")
}
return fetchedObj
}
func deleteEntityObject(_ entity: String, withPredicate predicate: NSPredicate? = nil) -> Bool {
var deleteSuccess = false
let fetchRequest : NSFetchRequest<NSFetchRequestResult> = NSFetchRequest(entityName: entity)
if let pred = predicate {
fetchRequest.predicate = pred
}
do {
let fetchObj = try self.managedObjectContext.fetch(fetchRequest)
if fetchObj.count >= 1 {
for obj in fetchObj {
self.managedObjectContext.delete(obj as! NSManagedObject)
}
deleteSuccess = true
}
}
catch {
fatalError("unable to delete the student object")
}
return deleteSuccess
}
func deleteObject(_ object: NSManagedObject) {
self.managedObjectContext.delete(object)
}
func deleteAllData(_ entity: String)
{
let ReqVar : NSFetchRequest<NSFetchRequestResult> = NSFetchRequest(entityName: entity)
let DelAllReqVar = NSBatchDeleteRequest(fetchRequest: ReqVar)
do { try managedObjectContext.execute(DelAllReqVar) }
catch { print(error) }
}
// class func initializeCoreData(_ completion: @escaping ResponseStatus)
// {
//// readFileData("/Devices")
//// readFileData("/Employees")
//// readFileData("/DeviceModelTypes")
// dataController.deleteAllData("Device")
// dataController.deleteAllData("Employee")
// dataController.deleteAllData("Accreditation")
// dataController.deleteAllData("Contract")
// dataController.deleteAllData("DeviceModelType")
//
// DeviceDataController.getAllDeviceDetails(){success,_ in
// if success == true{
// EmployeeDataController.getAllEmployeeDetails(){success,_ in
// if success == true {
// AccreditationDataController.getAllAccreditationDetails(){success,_ in
// if success == true {
// ContractDataController.getAllContractDetails(){success,_ in
// if success == true {
// DeviceModelTypeDataController.getAllDeviceModelType(){success,_ in
// completion(true,nil)
// }
// }
// }
// }
// }
// }
// }
// }
//
// else
// {
// completion(false, "Network Error")
// }
// }
// }
class func readFileData(_ filepath: String)
{
var dataDictArr = [[String:AnyObject]]()
let basePath = "/Users/niranjanadevi/Desktop"
var attrib = [String]()
if let data = try? Data(contentsOf: URL(fileURLWithPath: basePath+filepath+".csv")) {
var keys = true
if let content = NSString(data: data, encoding: String.Encoding.utf8.rawValue) {
let lines:[String] = content.components(separatedBy: CharacterSet.newlines) as [String]
print(lines)
for line in lines {
var dataDict = [String:AnyObject]()
if keys
{
attrib = line.components(separatedBy: ",")
keys = false
}
else {
if line != "" {
let values = line.components(separatedBy: ",")
for i in 0 ..< attrib.count {
if values[i] != "" {
dataDict.updateValue(values[i] as AnyObject, forKey: attrib[i])
}
}
dataDictArr.append(dataDict)
}
}
}
}
}
serviceManager.bulkPost(filepath, forDataDict: dataDictArr) { (data, error) in
}
}
class func mapEntities(forJson json: [[String: AnyObject]],type: Entities) -> () {
for deviceData in json {
// Device.createDevice { (data) in
let data = createEntity(type)
let cdAttributes = data!.entity.attributesByName
for attr in cdAttributes.keys {
if let val = deviceData[attr],
let type = cdAttributes[attr]?.attributeType {
if type == NSAttributeType.stringAttributeType && val.isKind(of: NSNumber.self) {
data!.setValue(String(describing: val), forKey: attr)
}
else if (type == NSAttributeType.integer16AttributeType || type == .integer32AttributeType) && (val.isKind(of: NSString.self)) {
data!.setValue(Int(val as! String), forKey: attr)
}
else if type == NSAttributeType.floatAttributeType && val.isKind(of: NSString.self) {
data!.setValue(Double(val as! String), forKey: attr)
}
else if type == .booleanAttributeType && val.isKind(of: NSString.self) {
data!.setValue(Bool(val as! NSNumber), forKey: attr)
}
else if type == NSAttributeType.dateAttributeType && val.isKind(of: NSString.self) {
//NEED TO IMPLEMENT FOR DATE
let formatter = DateFormatter()
formatter.dateFormat = "yyyy-MM-dd"
var date = val as! String
date = date[date.startIndex...date.characters.index(date.startIndex, offsetBy: 9)]
data!.setValue(formatter.date(from: date), forKey: attr)
}
else {
data!.setValue(val, forKey: attr)
}
}
}
// }
}
dataController.saveToPersistentStore { msg in
if let e = msg {
//Throw Logout
}
}
}
class func createEntity(_ type: Entities ) -> NSManagedObject? {
var modelData: NSManagedObject?
switch type
{
case .device:
Device.createDevice { (data) in
modelData = data
// return data
}
case .employee:
Employee.createEmployee{ (data) in
modelData = data
}
case .accreditation:
Accreditation.createAccreditation{ (data) in
modelData = data
}
case .contract:
Contract.createNewContract{ (data) in
modelData = data
}
case .deviceModelType:
DeviceModelType.createDeviceModel{ (data) in
modelData = data
}
default:
()
}
return modelData
}
class func processResult(_ result: OperationResult, completion: @escaping ResponseStatus) -> () {
switch result {
case .success:
dataController.saveToPersistentStore { errMsg in
if let msg = errMsg {
completion(false, msg)
return
}
completion(true, nil)
}
case .failed(let msg):
dataController.context.reset()
completion(false, msg)
case .unknown:
completion(false,"Unknown error occurred")
}
}
}
| 37.830769 | 217 | 0.55002 |
8b3951085bb9915f52d2dff385ada43e7b30e704 | 1,634 | swift | Swift | SelectionOfZhihu/HTTPManager.swift | sheepy1/SelectionOfZhihu | 1b98300949b13e1a30191ec97713eddf7e09a573 | [
"MIT"
] | 208 | 2016-01-19T03:07:48.000Z | 2020-11-26T06:26:39.000Z | SelectionOfZhihu/HTTPManager.swift | sheepy1/SelectionOfZhihu | 1b98300949b13e1a30191ec97713eddf7e09a573 | [
"MIT"
] | null | null | null | SelectionOfZhihu/HTTPManager.swift | sheepy1/SelectionOfZhihu | 1b98300949b13e1a30191ec97713eddf7e09a573 | [
"MIT"
] | 60 | 2016-01-27T05:05:05.000Z | 2019-07-31T02:58:19.000Z | //
// HTTPManager.swift
// SelectionOfZhihu
//
// Created by 杨洋 on 15/12/23.
// Copyright © 2015年 Sheepy. All rights reserved.
//
import Foundation
//enum HTTPError: ErrorType {
// case InvalidURL
// case NoParameter
//}
enum HTTPMethod: String {
case GET = "GET"
case POST = "POST"
case PUT = "PUT"
case DELETE = "DELETE"
}
typealias CompletionHandler = (data: NSData?) -> ()
func getDataFromUrl(urlString: String, method: HTTPMethod, parameter: [String: AnyObject]?, completionHandler: CompletionHandler) -> NSURLSessionDataTask? {
guard let url = NSURL(string: urlString) else {
print("URL error: \(urlString)")
return nil
}
let session = NSURLSession.sharedSession()
let request = NSMutableURLRequest(URL: url)
request.HTTPMethod = method.rawValue
switch method {
case .POST, .PUT:
if let param = parameter {
request.HTTPBody = try? NSJSONSerialization.dataWithJSONObject(param, options: NSJSONWritingOptions.init(rawValue: 0))
request.addValue("application/json", forHTTPHeaderField: "Content-Type")
}
request.addValue("application/json", forHTTPHeaderField: "Accept")
default:
break
}
let task = session.dataTaskWithRequest(request) {data, response, error in
//NSSession会默认开启一个后台队列,所以UI操作要调度回主队列进行。
dispatch_async(dispatch_get_main_queue()) {
if let e = error {
print(e)
return
}
completionHandler(data: data)
}
}
//启动
task.resume()
return task
}
| 25.936508 | 156 | 0.624847 |
f16341f15a8683fdddc96a013cf12d69638989df | 2,868 | ru | Ruby | systems/2016/english-russian/newstest2016.online-A.0.en-ru/brisbanetimes.com.au.80482.newstest2016.online-A.0.en-ru.ru | fredblain/docQE-corp | 6c03de96252f128e257cbbac633756e5280da0e6 | [
"BSD-3-Clause"
] | null | null | null | systems/2016/english-russian/newstest2016.online-A.0.en-ru/brisbanetimes.com.au.80482.newstest2016.online-A.0.en-ru.ru | fredblain/docQE-corp | 6c03de96252f128e257cbbac633756e5280da0e6 | [
"BSD-3-Clause"
] | null | null | null | systems/2016/english-russian/newstest2016.online-A.0.en-ru/brisbanetimes.com.au.80482.newstest2016.online-A.0.en-ru.ru | fredblain/docQE-corp | 6c03de96252f128e257cbbac633756e5280da0e6 | [
"BSD-3-Clause"
] | null | null | null | Танаси Коккинакис при поддержке тенниса Австралии президент Стив Хили
Танаси Коккинакис заслуживает похвалу, а не критики за его поведение.
Танаси Коккинакис сопутствующий ущерб в недавней шторм вокруг своего друга Ник Кирьоса и заслуживает похвалу, а не критики за его собственное поведение, по словам тенниса Австралии президент Стив Хили.
Коккинакис, молодого талантливого дуэта, регулярно называют «Специальные КС», была втянута в нежелательное прожектор печально известного Кирьоса сани Стэн Вавринка в Монреале мастеров.
В огненной отборочном матче в Цинциннати вскоре после этого, Коккинакис и его оппонент Райан Харрисон дважды должны были быть отделены umpire стул с Харрисоном объявления: «Вавринка должны палубных Кирьоса, и я должен палубе что ребенок».
В то время как он в последний раз видели, разбив ракетка после судорога пресечена потенциального нас открытым расстроился из Ричард Gasquet, Коккинакис был защищал стойко, Хили.
Подросток в настоящее время находится в Глазго, соревнуясь с Сэм гротом для второго причала синглов за Бернард Томич в полуфинале Кубка Дэвиса против Великобритании.
"Одна вещь, я чувствую себя довольно остро о, я думаю Танаси в были втянуты в бой немного," сказал Хили.
Он перерыв ракетку, когда он потерял, когда он тесно в США, но он не является первым игроком, чтобы разорвать ракетку из разочарования с самим собой, и я знаю Танаси достаточно хорошо, чтобы знать, что он не гордиться тем, что.
Но, действительно, он обработал себя очень хорошо в довольно провокационных обстоятельствах в США с Харрисоном и так далее, и я думаю, он заслуживает много кредита.
Он большой команды вокруг него, он получил большую семью вокруг него и я просто думаю, что он был немного трудно сделать.
Он является очень зрелой 19-летний, он работает очень трудно и он вписывается в команде и так далее, он никогда не имел проблемы с другими игроками, он пользуется уважением в раздевалке, он тренируется тяжело, он находится в отличной форме, он является очень стабилизирована и возмужала молодой парень и я просто думаю, что он заслуживает того, чтобы судить по его существу.
Хили также поддержал решение игнорировать Кирьоса для важных галстук, начиная пятницу, описывая «взаимное решение» как правильно для всех, но поддержка Canberran для возвращения в качестве долгосрочного арматуре в команде.
«Прежде всего мы хотим, чтобы команда полностью сосредоточены на галстуке, а не все споры вокруг [Кирьоса],» сказал Хили.
И я думаю, что Ник, он вырос очень быстро, как люди, как Федерер и Мюррей, он рос в глазах общественности, и он сделал некоторые страшные ошибки и заслуживает все критики, которую он получает, но мы пытаемся поддержать его, мы пытаемся помочь ему понять последствия своих действий и некоторое время из виду, где он может просто отражать на что я думаю, что подходит и это лучше всего для команды и это лучше для него.
| 179.25 | 417 | 0.818689 |
f0625e6b2d07feed6a373b43052746c1a7b2640c | 984 | py | Python | home/tests/add-remove sector.py | caggri/FOFviz | 776ab387d832a86eea1a1b9064040d9b012494a7 | [
"MIT"
] | 2 | 2020-05-24T22:28:53.000Z | 2020-05-25T21:58:24.000Z | home/tests/add-remove sector.py | caggri/FOFviz | 776ab387d832a86eea1a1b9064040d9b012494a7 | [
"MIT"
] | null | null | null | home/tests/add-remove sector.py | caggri/FOFviz | 776ab387d832a86eea1a1b9064040d9b012494a7 | [
"MIT"
] | 1 | 2021-10-16T12:26:29.000Z | 2021-10-16T12:26:29.000Z | from selenium import webdriver
import time
chromedriver = "C:/Users/deniz/chromedriver/chromedriver"
driver = webdriver.Chrome(chromedriver)
driver.get('http://127.0.0.1:8000/')
dashboard = '//*[@id="accordionSidebar"]/li[1]/a'
sectors_1 = '//*[@id="sectors"]'
sectors_1_element = '//*[@id="sectors"]/option[4]'
add_sector = '//*[@id="select_filter_form"]/div[1]/input[1]'
remove_sector = '//*[@id="select_filter_form"]/div[1]/input[2]'
sectors_2 = '//*[@id="sectors2"]'
sectors_2_element = '//*[@id="sectors2"]/option[4]'
time.sleep(2)
driver.find_element_by_xpath(dashboard).click()
time.sleep(5)
driver.find_element_by_xpath(sectors_1).click()
time.sleep(2)
driver.find_element_by_xpath(sectors_1_element).click()
time.sleep(5)
driver.find_element_by_xpath(add_sector).click()
time.sleep(5)
driver.find_element_by_xpath(sectors_2).click()
time.sleep(2)
driver.find_element_by_xpath(sectors_2_element).click()
time.sleep(5)
driver.find_element_by_xpath(remove_sector).click()
| 29.818182 | 63 | 0.747967 |
bf00856d2cb05007aeb57c012a18517b8774187c | 1,441 | sql | SQL | coding-common/src/main/conf/static/META-INF/scripts/create_table.sql | prettyhe/alpha-coding4j | d92b02871392a6c8cd6ca96fdcbdf10c9bf5a4d6 | [
"Apache-2.0"
] | null | null | null | coding-common/src/main/conf/static/META-INF/scripts/create_table.sql | prettyhe/alpha-coding4j | d92b02871392a6c8cd6ca96fdcbdf10c9bf5a4d6 | [
"Apache-2.0"
] | 18 | 2020-03-21T12:09:39.000Z | 2021-12-19T02:59:48.000Z | coding-common/src/main/conf/static/META-INF/scripts/create_table.sql | prettyhe/alpha-coding4j | d92b02871392a6c8cd6ca96fdcbdf10c9bf5a4d6 | [
"Apache-2.0"
] | null | null | null | CREATE TABLE `message_monitor` (
`id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT 'PK',
`biz_no` varchar(64) NOT NULL DEFAULT '' COMMENT '业务标识',
`topic` varchar(255) NOT NULL DEFAULT '' COMMENT '消息主题',
`tag` varchar(255) DEFAULT NULL COMMENT '消息标签',
`content` varchar(10240) DEFAULT NULL COMMENT '消息文本',
`msg_id` varchar(128) DEFAULT NULL COMMENT '消息ID',
`next_send_time` datetime NOT NULL COMMENT '下次发送时间',
`status` tinyint(4) NOT NULL DEFAULT '0' COMMENT '发送状态:0-待发送,1-成功,2-失败,3-待回执,4-取消',
`need_receipt` tinyint(4) NOT NULL DEFAULT '0' COMMENT '是否需要回执:0-否,1-是',
`try_times` int(11) NOT NULL DEFAULT '0' COMMENT '尝试次数',
`max_try_times` int(11) NOT NULL DEFAULT '-1' COMMENT '最大尝试次数(-1表示无限)',
`retry_interval` int(11) NOT NULL DEFAULT '10' COMMENT '重试间隔秒数',
`publish_listener` varchar(128) DEFAULT NULL COMMENT '发送结果监听器',
`send_time` datetime DEFAULT NULL COMMENT '发送时间',
`receipt_time` datetime DEFAULT NULL COMMENT '回执时间',
`create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间',
PRIMARY KEY (`id`),
KEY `idx_biz_no` (`biz_no`),
KEY `idx_msg_id` (`msg_id`),
KEY `idx_topic` (`topic`),
KEY `idx_next_time` (`next_send_time`),
KEY `idx_send_time` (`send_time`),
KEY `idx_status` (`status`)
) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COMMENT='消息监控';
| 53.37037 | 104 | 0.721027 |
2036ae7dd8e81680d1e1b3c78b1a011070afe4cb | 20,504 | asm | Assembly | sources/ippcp/asm_intel64/pcpsha1l9as.asm | ntyukaev/ipp-crypto | 19b408cfd21a59f994b64dd47b18eb0c2f94e4e0 | [
"Apache-2.0"
] | 30 | 2017-07-26T20:03:19.000Z | 2021-10-14T23:38:54.000Z | sources/ippcp/asm_intel64/pcpsha1l9as.asm | ntyukaev/ipp-crypto | 19b408cfd21a59f994b64dd47b18eb0c2f94e4e0 | [
"Apache-2.0"
] | 9 | 2018-09-25T18:32:42.000Z | 2022-02-18T12:23:40.000Z | sources/ippcp/asm_intel64/pcpsha1l9as.asm | ntyukaev/ipp-crypto | 19b408cfd21a59f994b64dd47b18eb0c2f94e4e0 | [
"Apache-2.0"
] | 14 | 2017-08-31T19:53:23.000Z | 2021-02-27T01:08:14.000Z | ;===============================================================================
; Copyright 2017-2020 Intel Corporation
;
; 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.
;===============================================================================
;
;
; Purpose: Cryptography Primitive.
; Message block processing according to SHA1
;
; Content:
; UpdateSHA1
;
;
%include "asmdefs.inc"
%include "ia_32e.inc"
%include "pcpvariant.inc"
%if (_ENABLE_ALG_SHA1_)
%if (_SHA_NI_ENABLING_ == _FEATURE_OFF_) || (_SHA_NI_ENABLING_ == _FEATURE_TICKTOCK_)
%if (_IPP32E >= _IPP32E_L9 )
;;
;; assignments
;;
%xdefine hA eax ;; hash values into GPU registers
%xdefine F ebp
%xdefine hB ebx
%xdefine hC ecx
%xdefine hD edx
%xdefine hE r8d
%xdefine T1 r10d ;; SHA1 round computation (temporary)
%xdefine T2 r11d
%xdefine W00 ymm2 ;; W values into YMM registers
%xdefine W04 ymm3
%xdefine W08 ymm4
%xdefine W12 ymm5
%xdefine W16 ymm6
%xdefine W20 ymm7
%xdefine W24 ymm8
%xdefine W28 ymm9
%xdefine W16L xmm6
%xdefine W20L xmm7
%xdefine W24L xmm8
%xdefine W28L xmm9
%xdefine WTMP1 ymm0 ;; msg schedulling computation (temporary)
%xdefine WTMP2 ymm1
%xdefine WTMP3 ymm10
%xdefine YMM_SHUFB ymm11 ;; byte swap constant
%xdefine YMM_K ymm12 ;; sha1 round constant value
%xdefine F_PTR r13 ;; frame ptr/data block ptr
;;W_PTR textequ r12 ;; frame ptr/data block ptr
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; textual rotation of W array
;;
%macro ROTATE_W 0.nolist
%xdefine W_minus_32 W_minus_28
%xdefine W_minus_28 W_minus_24
%xdefine W_minus_24 W_minus_20
%xdefine W_minus_20 W_minus_16
%xdefine W_minus_16 W_minus_12
%xdefine W_minus_12 W_minus_08
%xdefine W_minus_08 W_minus_04
%xdefine W_minus_04 W
%xdefine W W_minus_32
%endmacro
;;
;; msg schedulling for initial 00-15 sha1 rounds:
;; - byte swap input
;; - add sha1 round constant
%macro W_CALC_00_15 2.nolist
%xdefine %%nr %1
%xdefine %%Wchunk %2
vpshufb W, %%Wchunk, YMM_SHUFB
vpaddd %%Wchunk, W, YMM_K
vmovdqa ymmword [F_PTR + (%%nr)*sizeof(dword)*2], %%Wchunk
ROTATE_W
%endmacro
;;
;; msg schedulling for other 16-79 sha1 rounds:
;;
%macro W_CALC 1.nolist
%xdefine %%rndw %1
%if (%%rndw < 32)
%if ((%%rndw & 3) == 0) ;; scheduling to interleave with ALUs
vpalignr W, W_minus_12, W_minus_16, 8 ;; w[t-14]
vpsrldq WTMP1, W_minus_04, 4 ;; w[t-3]
vpxor W, W, W_minus_16
vpxor WTMP1, WTMP1, W_minus_08
%elif ((%%rndw & 3) == 1)
vpxor W, W, WTMP1
vpsrld WTMP1, W, 31
vpslldq WTMP2, W, 12
vpaddd W, W, W
%elif ((%%rndw & 3) == 2)
vpsrld WTMP3, WTMP2, 30
vpxor W, W, WTMP1
vpslld WTMP2, WTMP2, 2
vpxor W, W, WTMP3
%elif ((%%rndw & 3) == 3)
vpxor W, W, WTMP2
;;vpaddd WTMP1, W, ymmword [K_SHA1_PTR]
vpaddd WTMP1, W, YMM_K
vmovdqa ymmword [F_PTR+4*sizeof(ymmword)+((%%rndw & 15)/4)*sizeof(ymmword)],WTMP1
ROTATE_W
%endif
%elif (%%rndw < 80)
%if ((%%rndw & 3) == 0) ;; scheduling to interleave with ALUs
vpalignr WTMP1, W_minus_04, W_minus_08, 8
vpxor W, W, W_minus_28 ;; W == W_minus_32
%elif ((%%rndw & 3) == 1)
vpxor W, W, W_minus_16
vpxor W, W, WTMP1
%elif ((%%rndw & 3) == 2)
vpslld WTMP1, W, 2
vpsrld W, W, 30
%elif ((%%rndw & 3) == 3)
vpxor W, WTMP1, W
;;vpaddd WTMP1, W, ymmword [K_SHA1_PTR]
vpaddd WTMP1, W, YMM_K
vmovdqa ymmword [F_PTR+4*sizeof(ymmword)+((%%rndw & 15)/4)*sizeof(ymmword)],WTMP1
ROTATE_W
%endif
%endif
%endmacro
;;
;; update hash macro
;;
%macro UPDATE_HASH 2.nolist
%xdefine %%hashMem %1
%xdefine %%hash %2
add %%hash, %%hashMem
mov %%hashMem, %%hash
%endmacro
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; textual rotation of HASH arguments
;;
%macro ROTATE_H 0.nolist
%xdefine %%_X hE
%xdefine hE hD
%xdefine hD hC
%xdefine hC hB
%xdefine hB F
%xdefine F hA
%xdefine hA %%_X
%endmacro
;;
;; SHA1 rounds 0 - 19
;; on entry:
;; - a, f(), b', c, d, e values
;; where: f() = F(b,c,d) = (b&c) & (~b&d) already pre-computed for this round
;; b' = rotl(b,30) already pre-computed for the next round
;; note:
;; %if nr==19 the f(b,c,d)=b^c^d precomputed
;;
%macro SHA1_ROUND_00_19 1.nolist
%xdefine %%nr %1
;; hE+=W[nr]+K
add hE, dword [F_PTR+((%%nr & 15)/4)*sizeof(ymmword)+(%%nr & 3)*sizeof(dword)]
%if (((%%nr+1) & 15) == 0)
add F_PTR, (16/4)*sizeof(ymmword)
%endif
%if (%%nr < 19)
andn T1,hA,hC ;; ~hB&hC (next round)
%endif
add hE, F ;; hE += F()
rorx T2,hA, 27 ;; hA<<<5
rorx F, hA, 2 ;; hB<<<30 (next round)
%if (%%nr < 19)
and hA, hB ;; hB&hC (next round)
%endif
add hE, T2 ;; hE += (hA<<<5)
%if (%%nr < 19)
xor hA, T1 ;; F() = (hB&hC)^(~hB&hC) (next round)
%else
xor hA, hB ;; F() = hB^hC^hD next round
xor hA, hC
%endif
ROTATE_H
%endmacro
;;
;; SHA1 rounds 20 - 39
;; on entry:
;; - a, f(), b', c, d, e values
;; where: f() = F(b,c,d) = b^c^d already pre-computed for this round
;; b' = rotl(b,30) already pre-computed for the next round
;;
;; note:
;; %if nr==39 the f(b,c,d)=(b^c)&(c^d) precomputed
;;
%macro SHA1_ROUND_20_39 1.nolist
%xdefine %%nr %1
;; hE+=W[nr]+K
add hE, dword [F_PTR+((%%nr & 15)/4)*sizeof(ymmword)+(%%nr & 3)*sizeof(dword)]
%if (((%%nr+1) & 15) == 0)
add F_PTR, (16/4)*sizeof(ymmword)
%endif
add hE, F ;; hE += F()
rorx T2,hA, 27 ;; hA<<<5
rorx F, hA, 2 ;; hB<<<30 (next round)
xor hA, hB ;; hB^hC (next round)
add hE, T2 ;; hE += (hA<<<5)
%if (%%nr < 39)
xor hA, hC ;; F() = hB^hC^hD (next round)
%else
mov T1, hB ;; hC^hD (next round)
xor T1, hC ;;
and hA, T1 ;; (hB^hC)&(hC^hD)
%endif
ROTATE_H
%endmacro
;;
;; SHA1 rounds 40 - 59
;; on entry:
;; - a, f(), b', c, d, e values
;; where: f() = (b&c)^(c&d) already pre-computed (part of F()) for this round
;; b' = rotl(b,30) already pre-computed for the next round
;;
;; F(b,c,d) = (b&c)^(b&d)^(c&d)
;;
;; note, using GF(2): arithmetic
;; F(b,c,d) = (b&c)^(b&d)^(c&d) ~ bc+bd+cd
;; =(b+c)(c+d) +c^2 = (b+c)(c+d) +c
;; ~ ((b^c)&(c^d)) ^c
;; direct substitution:
;; (b+c)(c+d) = bc + bd + c^2 + cd, but c^2 = c
;;
%macro SHA1_ROUND_40_59 1.nolist
%xdefine %%nr %1
;; hE+=W[nr]+K
add hE, dword [F_PTR+((%%nr & 15)/4)*sizeof(ymmword)+(%%nr & 3)*sizeof(dword)]
%if (((%%nr+1) & 15) == 0)
add F_PTR, (16/4)*sizeof(ymmword)
%endif
xor F, hC ;; F() = ((b^c)&(c^d)) ^c
%if(%%nr < 59)
mov T1, hB ;; hC^hD (next round)
xor T1, hC ;;
%endif
add hE, F ;; hE += F()
rorx T2,hA, 27 ;; hA<<<5
rorx F, hA, 2 ;; hB<<<30 (next round)
xor hA, hB ;; hB^hC (next round)
add hE, T2 ;; hE += (hA<<<5)
%if(%%nr < 59)
and hA, T1 ;; (hB^hC)&(hC^hD) (next round)
%else
xor hA, hC ;; (hB^hC^hD) (next round)
%endif
ROTATE_H
%endmacro
;;
;; SHA1 rounds 60 - 79
;; on entry:
;; - a, f(), b', c, d, e values
;; where: f() = F(b,c,d) = b^c^d already pre-computed for this round
;; b' = rotl(b,30) already pre-computed for the next round
;;
%macro SHA1_ROUND_60_79 1.nolist
%xdefine %%nr %1
;; hE+=W[nr]+K
add hE, dword [F_PTR+((%%nr & 15)/4)*sizeof(ymmword)+(%%nr & 3)*sizeof(dword)]
%if (((%%nr+1) & 15) == 0)
add F_PTR, (16/4)*sizeof(ymmword)
%endif
add hE, F ;; hE += F()
rorx T2,hA, 27 ;; hA<<<5
%if (%%nr < 79)
rorx F, hA, 2 ;; hB<<<30 (next round)
xor hA, hB ;; hB^hC (next round)
%endif
add hE, T2 ;; hE += (hA<<<5)
%if (%%nr < 79)
xor hA, hC ;; F() = hB^hC^hD (next round)
%endif
ROTATE_H
%endmacro
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
segment .text align=IPP_ALIGN_FACTOR
align IPP_ALIGN_FACTOR
SHA1_YMM_K dd 05a827999h, 05a827999h, 05a827999h, 05a827999h, 05a827999h, 05a827999h, 05a827999h, 05a827999h
dd 06ed9eba1h, 06ed9eba1h, 06ed9eba1h, 06ed9eba1h, 06ed9eba1h, 06ed9eba1h, 06ed9eba1h, 06ed9eba1h
dd 08f1bbcdch, 08f1bbcdch, 08f1bbcdch, 08f1bbcdch, 08f1bbcdch, 08f1bbcdch, 08f1bbcdch, 08f1bbcdch
dd 0ca62c1d6h, 0ca62c1d6h, 0ca62c1d6h, 0ca62c1d6h, 0ca62c1d6h, 0ca62c1d6h, 0ca62c1d6h, 0ca62c1d6h
SHA1_YMM_BF dd 00010203h,04050607h,08090a0bh,0c0d0e0fh
dd 00010203h,04050607h,08090a0bh,0c0d0e0fh
;*****************************************************************************************
;* Purpose: Update internal digest according to message block
;*
;* void UpdateSHA1(DigestSHA1 digest, const Ipp32u* mblk, int mlen, const void* pParam)
;*
;*****************************************************************************************
align IPP_ALIGN_FACTOR
IPPASM UpdateSHA1,PUBLIC
%assign LOCAL_FRAME (sizeof(dword)*80*2)
USES_GPR rdi,rsi,rbp,rbx,r12,r13,r14,r15
USES_XMM_AVX xmm6,xmm7,xmm8,xmm9,xmm10,xmm11,xmm12
COMP_ABI 4
;; rdi = hash ptr
;; rsi = data block ptr
;; rdx = data length in bytes
;; rcx = dummy
%xdefine MBS_SHA1 (64)
mov r15, rsp ; store orifinal rsp
and rsp, -IPP_ALIGN_FACTOR ; 32-byte aligned stack
movsxd r14, edx ; input length in bytes
vmovdqa YMM_SHUFB, [rel SHA1_YMM_BF] ; load byte shuffler
mov hA, dword [rdi] ; load initial hash value
mov F, dword [rdi+sizeof(dword)]
mov hC, dword [rdi+2*sizeof(dword)]
mov hD, dword [rdi+3*sizeof(dword)]
mov hE, dword [rdi+4*sizeof(dword)]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; process next data 2 block
;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; assignment:
;; - W00,...,W28 are fixed
;; - W_minus_04,...,W_minus_32 are rorarted
;; - W corresponds to W[t]
;;
%xdefine W W00
%xdefine W_minus_04 W04
%xdefine W_minus_08 W08
%xdefine W_minus_12 W12
%xdefine W_minus_16 W16
%xdefine W_minus_20 W20
%xdefine W_minus_24 W24
%xdefine W_minus_28 W28
%xdefine W_minus_32 W
align IPP_ALIGN_FACTOR
.sha1_block2_loop:
lea F_PTR, [rsi+MBS_SHA1] ; next block
cmp r14, MBS_SHA1 ; %if single block processed
cmovbe F_PTR, rsi ; use the same data block address
;;
;; load data block and merge next data block
;;
vmovdqa YMM_K, [rel SHA1_YMM_K] ; pre-load sha1 constant
vmovdqu W28L, xmmword [rsi] ; load data block
vmovdqu W24L, xmmword [rsi+1*sizeof(xmmword)]
vmovdqu W20L, xmmword [rsi+2*sizeof(xmmword)]
vmovdqu W16L, xmmword [rsi+3*sizeof(xmmword)]
vinserti128 W28, W28, xmmword [F_PTR], 1 ; merge next data block
vinserti128 W24, W24, xmmword [F_PTR+1*sizeof(xmmword)], 1
vinserti128 W20, W20, xmmword [F_PTR+2*sizeof(xmmword)], 1
vinserti128 W16, W16, xmmword [F_PTR+3*sizeof(xmmword)], 1
mov F_PTR, rsp ;; set local data pointer
W_CALC_00_15 0, W28 ;; msg scheduling for rounds 00 .. 15
W_CALC_00_15 4, W24 ;;
W_CALC_00_15 8, W20 ;; msg scheduling for rounds 08 .. 15
W_CALC_00_15 12, W16 ;;
rorx hB, F, 2 ;; pre-compute (b<<<30) next round
andn T1,F, hD ;; pre-compute F1(F,hC,hD) = hB&hC ^(~hB&hD)
and F, hC
xor F, T1
W_CALC 16 ;; msg schedilling ahead 16 rounds
SHA1_ROUND_00_19 0 ;; sha1 round
W_CALC 17
SHA1_ROUND_00_19 1
W_CALC 18
SHA1_ROUND_00_19 2
W_CALC 19
SHA1_ROUND_00_19 3
; pre-load sha1 constant
vmovdqa YMM_K, [rel SHA1_YMM_K+sizeof(ymmword)]
W_CALC 20
SHA1_ROUND_00_19 4
W_CALC 21
SHA1_ROUND_00_19 5
W_CALC 22
SHA1_ROUND_00_19 6
W_CALC 23
SHA1_ROUND_00_19 7
W_CALC 24
SHA1_ROUND_00_19 8
W_CALC 25
SHA1_ROUND_00_19 9
W_CALC 26
SHA1_ROUND_00_19 10
W_CALC 27
SHA1_ROUND_00_19 11
W_CALC 28
SHA1_ROUND_00_19 12
W_CALC 29
SHA1_ROUND_00_19 13
W_CALC 30
SHA1_ROUND_00_19 14
W_CALC 31
SHA1_ROUND_00_19 15
W_CALC 32
SHA1_ROUND_00_19 16
W_CALC 33
SHA1_ROUND_00_19 17
W_CALC 34
SHA1_ROUND_00_19 18
W_CALC 35
SHA1_ROUND_00_19 19
W_CALC 36
SHA1_ROUND_20_39 20
W_CALC 37
SHA1_ROUND_20_39 21
W_CALC 38
SHA1_ROUND_20_39 22
W_CALC 39
SHA1_ROUND_20_39 23
; pre-load sha1 constant
vmovdqa YMM_K, [rel SHA1_YMM_K+2*sizeof(ymmword)]
W_CALC 40
SHA1_ROUND_20_39 24
W_CALC 41
SHA1_ROUND_20_39 25
W_CALC 42
SHA1_ROUND_20_39 26
W_CALC 43
SHA1_ROUND_20_39 27
W_CALC 44
SHA1_ROUND_20_39 28
W_CALC 45
SHA1_ROUND_20_39 29
W_CALC 46
SHA1_ROUND_20_39 30
W_CALC 47
SHA1_ROUND_20_39 31
W_CALC 48
SHA1_ROUND_20_39 32
W_CALC 49
SHA1_ROUND_20_39 33
W_CALC 50
SHA1_ROUND_20_39 34
W_CALC 51
SHA1_ROUND_20_39 35
W_CALC 52
SHA1_ROUND_20_39 36
W_CALC 53
SHA1_ROUND_20_39 37
W_CALC 54
SHA1_ROUND_20_39 38
W_CALC 55
SHA1_ROUND_20_39 39
W_CALC 56
SHA1_ROUND_40_59 40
W_CALC 57
SHA1_ROUND_40_59 41
W_CALC 58
SHA1_ROUND_40_59 42
W_CALC 59
SHA1_ROUND_40_59 43
; pre-load sha1 constant
vmovdqa YMM_K, [rel SHA1_YMM_K+3*sizeof(ymmword)]
W_CALC 60
SHA1_ROUND_40_59 44
W_CALC 61
SHA1_ROUND_40_59 45
W_CALC 62
SHA1_ROUND_40_59 46
W_CALC 63
SHA1_ROUND_40_59 47
W_CALC 64
SHA1_ROUND_40_59 48
W_CALC 65
SHA1_ROUND_40_59 49
W_CALC 66
SHA1_ROUND_40_59 50
W_CALC 67
SHA1_ROUND_40_59 51
W_CALC 68
SHA1_ROUND_40_59 52
W_CALC 69
SHA1_ROUND_40_59 53
W_CALC 70
SHA1_ROUND_40_59 54
W_CALC 71
SHA1_ROUND_40_59 55
W_CALC 72
SHA1_ROUND_40_59 56
W_CALC 73
SHA1_ROUND_40_59 57
W_CALC 74
SHA1_ROUND_40_59 58
W_CALC 75
SHA1_ROUND_40_59 59
W_CALC 76
SHA1_ROUND_60_79 60
W_CALC 77
SHA1_ROUND_60_79 61
W_CALC 78
SHA1_ROUND_60_79 62
W_CALC 79
SHA1_ROUND_60_79 63
SHA1_ROUND_60_79 64
SHA1_ROUND_60_79 65
SHA1_ROUND_60_79 66
SHA1_ROUND_60_79 67
SHA1_ROUND_60_79 68
SHA1_ROUND_60_79 69
SHA1_ROUND_60_79 70
SHA1_ROUND_60_79 71
SHA1_ROUND_60_79 72
SHA1_ROUND_60_79 73
SHA1_ROUND_60_79 74
SHA1_ROUND_60_79 75
SHA1_ROUND_60_79 76
SHA1_ROUND_60_79 77
SHA1_ROUND_60_79 78
SHA1_ROUND_60_79 79
lea F_PTR, [rsp+sizeof(xmmword)] ;; set local data pointer
;; update hash values by 1-st data block
UPDATE_HASH dword [rdi], hA
UPDATE_HASH dword [rdi+4], F
UPDATE_HASH dword [rdi+8], hC
UPDATE_HASH dword [rdi+12],hD
UPDATE_HASH dword [rdi+16],hE
cmp r14, MBS_SHA1*2
jl .done
rorx hB, F, 2 ;; pre-compute (b<<<30) next round
andn T1,F, hD ;; pre-compute F1(F,hC,hD) = hB&hC ^(~hB&hD)
and F, hC
xor F, T1
SHA1_ROUND_00_19 0
SHA1_ROUND_00_19 1
SHA1_ROUND_00_19 2
SHA1_ROUND_00_19 3
SHA1_ROUND_00_19 4
SHA1_ROUND_00_19 5
SHA1_ROUND_00_19 6
SHA1_ROUND_00_19 7
SHA1_ROUND_00_19 8
SHA1_ROUND_00_19 9
SHA1_ROUND_00_19 10
SHA1_ROUND_00_19 11
SHA1_ROUND_00_19 12
SHA1_ROUND_00_19 13
SHA1_ROUND_00_19 14
SHA1_ROUND_00_19 15
SHA1_ROUND_00_19 16
SHA1_ROUND_00_19 17
SHA1_ROUND_00_19 18
SHA1_ROUND_00_19 19
SHA1_ROUND_20_39 20
SHA1_ROUND_20_39 21
SHA1_ROUND_20_39 22
SHA1_ROUND_20_39 23
SHA1_ROUND_20_39 24
SHA1_ROUND_20_39 25
SHA1_ROUND_20_39 26
SHA1_ROUND_20_39 27
SHA1_ROUND_20_39 28
SHA1_ROUND_20_39 29
SHA1_ROUND_20_39 30
SHA1_ROUND_20_39 31
SHA1_ROUND_20_39 32
SHA1_ROUND_20_39 33
SHA1_ROUND_20_39 34
SHA1_ROUND_20_39 35
SHA1_ROUND_20_39 36
SHA1_ROUND_20_39 37
SHA1_ROUND_20_39 38
SHA1_ROUND_20_39 39
SHA1_ROUND_40_59 40
SHA1_ROUND_40_59 41
SHA1_ROUND_40_59 42
SHA1_ROUND_40_59 43
SHA1_ROUND_40_59 44
SHA1_ROUND_40_59 45
SHA1_ROUND_40_59 46
SHA1_ROUND_40_59 47
SHA1_ROUND_40_59 48
SHA1_ROUND_40_59 49
SHA1_ROUND_40_59 50
SHA1_ROUND_40_59 51
SHA1_ROUND_40_59 52
SHA1_ROUND_40_59 53
SHA1_ROUND_40_59 54
SHA1_ROUND_40_59 55
SHA1_ROUND_40_59 56
SHA1_ROUND_40_59 57
SHA1_ROUND_40_59 58
SHA1_ROUND_40_59 59
SHA1_ROUND_60_79 60
SHA1_ROUND_60_79 61
SHA1_ROUND_60_79 62
SHA1_ROUND_60_79 63
SHA1_ROUND_60_79 64
SHA1_ROUND_60_79 65
SHA1_ROUND_60_79 66
SHA1_ROUND_60_79 67
SHA1_ROUND_60_79 68
SHA1_ROUND_60_79 69
SHA1_ROUND_60_79 70
SHA1_ROUND_60_79 71
SHA1_ROUND_60_79 72
SHA1_ROUND_60_79 73
SHA1_ROUND_60_79 74
SHA1_ROUND_60_79 75
SHA1_ROUND_60_79 76
SHA1_ROUND_60_79 77
SHA1_ROUND_60_79 78
SHA1_ROUND_60_79 79
;; update hash values by 2-nd data block
UPDATE_HASH dword [rdi], hA
UPDATE_HASH dword [rdi+4], F
UPDATE_HASH dword [rdi+8], hC
UPDATE_HASH dword [rdi+12],hD
UPDATE_HASH dword [rdi+16],hE
;; unfortunately 2*80%6 != 0
;; and so need to re-order hA,F,hB,hC,hD,hE values
;; to match the code generated for 1-st block processing
mov hB, hD ; re-order data physically
mov hD, hA
mov T1, hE
mov hE, F
mov F, hC
mov hC, T1
ROTATE_H ; re-order data logically
ROTATE_H ; twice, because 6 -(2*80%6) = 2
add rsi, MBS_SHA1*2
sub r14, MBS_SHA1*2
jg .sha1_block2_loop
.done:
mov rsp, r15
REST_XMM_AVX
REST_GPR
ret
ENDFUNC UpdateSHA1
%endif ;; _IPP32E >= _IPP32E_L9
%endif ;; _FEATURE_OFF_ / _FEATURE_TICKTOCK_
%endif ;; _ENABLE_ALG_SHA1_
| 26.020305 | 112 | 0.545747 |
919127e986c01be45424bde62842e77c3304e097 | 9,222 | html | HTML | views/page/organisation/add-edit-agency-token.html | Civil-Service-Human-Resources/lpg-admin | cd0d2f23426273ac2490edd7a16e8e64b96180ad | [
"MIT"
] | null | null | null | views/page/organisation/add-edit-agency-token.html | Civil-Service-Human-Resources/lpg-admin | cd0d2f23426273ac2490edd7a16e8e64b96180ad | [
"MIT"
] | 51 | 2018-07-25T10:19:30.000Z | 2022-03-23T13:53:53.000Z | views/page/organisation/add-edit-agency-token.html | Civil-Service-Human-Resources/lpg-admin | cd0d2f23426273ac2490edd7a16e8e64b96180ad | [
"MIT"
] | 1 | 2021-08-05T15:23:44.000Z | 2021-08-05T15:23:44.000Z | {% extends "../../component/Page.njk" %}
{% from "input/macro.njk" import govukInput with context%}
{% from "button/macro.njk" import govukButton %}
{% from "error-summary/macro.njk" import govukErrorSummary %}
{% from "../../component/list/macro.njk" import list %}
{% from "../../component/menu/macro.njk" import menu %}
{% from "../../component/statusWithLabel/macro.njk" import statusWithLabel with context %}
{% from "../../component/courseDetails/macro.njk" import courseDetails with context %}
{% from "../../component/courseEvents/macro.njk" import courseEvents with context %}
{% from "../../component/audiences/macro.njk" import audiences with context %}
{% block pageTitle %}{{ i18n.agencyToken.title.editAgencyToken if organisationalUnit.agencyToken else i18n.agencyToken.title.addAgencyToken }} - {{ i18n.proposition_name }}{% endblock %}
{% set backButton = "/content-management/organisations/" + organisationalUnit.id + "/overview" %}
{% block content %}
{% set banner = true %}
{% set form = sessionFlash.form %}
{% set errors = sessionFlash.errors %}
{{ errorSummary(errors.fields) }}
<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
<h1 class="govuk-body form-header govuk-!-font-size-24 no-margin">{{ organisationalUnit.name }}</h1>
<h2 class="govuk-heading-m govuk-!-font-size-36">{{ i18n.agencyToken.title.editAgencyToken if organisationalUnit.agencyToken else i18n.agencyToken.title.addAgencyToken }}</h2>
</div>
</div>
<div class="govuk-grid-row">
<div class="govuk-grid-column-two-thirds">
<h3 class="govuk-heading-s">List of permitted domains</h3>
{% if domainsForAgencyToken.length > 0 %}
<ul class="list modules" id="domains">
{% for domain in domainsForAgencyToken %}
<li class="list-details list-domain">
<p class="govuk-body title">{{ domain }}</p>
<form action="/content-management/organisations/{{ organisationalUnit.id }}/agency-token/domain/delete" method="post">
<input class="hidden" name="domainToDelete" value="{{ domain }}" aria-label="{{ domain }}">
<button class="govuk-link linkish-button" type="submit">Remove</button>
</form>
</li>
{% endfor %}
</ul>
{% else %}
<p class="govuk-body">No domains have been added yet</p>
{% endif %}
<form id="add-domain-form" action="/content-management/organisations/{{ organisationalUnit.id }}/agency-token/domain" method="post">
{% if errors.fields.domains %}
{% if errors.fields.domains == 'agencyToken.validation.domains.invalid' %}
{{ govukInput ({
label: { text: "Add domain" },
classes: "govuk-input--width-10",
id: "domainToAdd",
name: "domainToAdd",
errorMessage: { text: i18n.agencyToken.validation.domains.invalid }
}) }}
{% elif errors.fields.domains == 'agencyToken.validation.domains.invalidFormat' %}
{{ govukInput ({
label: { text: "Add domain" },
classes: "govuk-input--width-10",
id: "domainToAdd",
name: "domainToAdd",
errorMessage: { text: i18n.agencyToken.validation.domains.invalidFormat }
}) }}
{% elif errors.fields.domains == 'agencyToken.validation.domains.empty' %}
{{ govukInput ({
label: { text: "Add domain" },
classes: "govuk-input--width-10",
id: "domainToAdd",
name: "domainToAdd",
errorMessage: { text: i18n.agencyToken.validation.domains.empty }
}) }}
{% elif errors.fields.domains == 'agencyToken.validation.domains.alreadyExists' %}
{{ govukInput ({
label: { text: "Add domain" },
classes: "govuk-input--width-10",
id: "domainToAdd",
name: "domainToAdd",
errorMessage: { text: i18n.agencyToken.validation.domains.alreadyExists }
}) }}
{% endif %}
{% else %}
{{ govukInput ({
label: { text: "Add domain" },
classes: "govuk-input--width-10",
id: "domainToAdd",
name: "domainToAdd",
hint: { text: i18n.agencyToken.validation.domains.hint }
}) }}
{% endif %}
{{ govukButton ({
text: "Add domain",
classes: "button-blue button-blue-organisations",
type: "submit"
}) }}
</form>
{% if organisationalUnit.agencyToken %}
<form action="/content-management/organisations/{{ organisationalUnit.id }}/agency-token/edit" method="post">
{% else %}
<form action="/content-management/organisations/{{ organisationalUnit.id }}/agency-token" method="post">
{% endif %}
{% if errors.fields.capacity == 'agencyToken.validation.capacity.lessThanCurrentUsage' %}
{{ govukInput ({
label: { text: i18n.agencyToken.text.numberOfSpaces },
classes: "govuk-input--width-10",
id: "capacity",
name: "capacity",
type: "number",
value: form.capacity | default(organisationalUnit.agencyToken.capacity),
errorMessage: { text: i18n.agencyToken.validation.capacity.lessThanCurrentUsage }
}) }}
{% elif errors.fields.capacity == 'agencyToken.validation.capacity.invalid'%}
{{ govukInput ({
label: { text: i18n.agencyToken.text.numberOfSpaces },
classes: "govuk-input--width-10",
id: "capacity",
name: "capacity",
type: "number",
value: form.capacity | default(organisationalUnit.agencyToken.capacity),
errorMessage: { text: i18n.agencyToken.validation.capacity.invalid }
}) }}
{% elif errors.fields.capacity %}
{{ govukInput ({
label: { text: i18n.agencyToken.text.numberOfSpaces },
classes: "govuk-input--width-10",
id: "capacity",
name: "capacity",
type: "number",
value: form.capacity | default(organisationalUnit.agencyToken.capacity),
errorMessage: { text: errors.fields.capacity }
}) }}
{% else %}
{{ govukInput ({
label: { text: i18n.agencyToken.text.numberOfSpaces },
classes: "govuk-input--width-10",
id: "capacity",
name: "capacity",
type: "number",
value: form.capacity | default(organisationalUnit.agencyToken.capacity)
}) }}
{% endif %}
{% if organisationalUnit.agencyToken %}
<p id=number-of-spaces-currently-in-use-text" class="govuk-body"><strong>Number of spaces currently in use</strong></p>
<p id="number-of-spaces-currently-in-use-value" class="govuk-body">{{ organisationalUnit.agencyToken.capacityUsed }}</p>
{% endif %}
<label for="token-number-input" class="govuk-label">Token number</label>
<p id="token-number-display-text" class="govuk-body">{{ agencyTokenNumber | default('Unspecified', true) }}</p>
<input id="token-number-input" name='tokenNumber' value="{{ agencyTokenNumber | default('Unspecified', true) }}" type="hidden">
<button class="govuk-link linkish-button" type="button" onclick="generateAndDisplayNewToken();">Re-generate token number</button><br/><br/>
{{ govukButton ({
text: "Update token" if organisationalUnit.agencyToken else "Add token"
}) }}
</form>
{% if organisationalUnit.agencyToken %}
<form action="/content-management/organisations/{{ organisationalUnit.id }}/agency-token/delete" method="get">
<button id="delete-token-button" type="submit" class="govuk-button button-red">Delete token</button>
</form>
{% endif %}
<a href="/content-management/organisations/{{organisationalUnit.id}}/overview" class="govuk-link">Cancel</a>
</div>
</div>
{% endblock %}
{% block bodyEnd %}
<script src="/govuk-frontend/all.js"></script>
<script>window.GOVUKFrontend.initAll()</script>
<script type="text/javascript" src="/js/generate-token.js"></script>
{% endblock %}
| 50.119565 | 186 | 0.538495 |
c7f9958b416ee125faf62c89d72da3d8546ee9fd | 1,243 | java | Java | src/com/company/Main.java | elifBalci/hop-distance-calculator | 2e001aed7a65c8fae2d3ff3ef136d6602eabd388 | [
"BSD-2-Clause"
] | 1 | 2021-05-23T10:42:26.000Z | 2021-05-23T10:42:26.000Z | src/com/company/Main.java | elifBalci/hop-distance-calculator | 2e001aed7a65c8fae2d3ff3ef136d6602eabd388 | [
"BSD-2-Clause"
] | null | null | null | src/com/company/Main.java | elifBalci/hop-distance-calculator | 2e001aed7a65c8fae2d3ff3ef136d6602eabd388 | [
"BSD-2-Clause"
] | null | null | null | package com.company;
import java.util.ArrayList;
/*
* To Run:
* javac com/company/Main.java com/company/Laptop.java com/company/InputHandler.java com/company/HopCalculator.java
* java com.company.Main /home/elif/IdeaProjects/algorithm_hw1/input.txt
*
*/
public class Main {
public static void main(String[] args) {
String fileName;
if(args.length > 0) {
fileName = args[0];
//fileName = "/home/elif/IdeaProjects/algorithm_hw1/input.txt";
InputHandler inputHandler = new InputHandler(fileName);
generateLaptops(inputHandler);
HopCalculator hp = new HopCalculator();
hp.computeAllHops(0);
}
else{
System.out.println("Input directory hasn't been provided as command line arg.");
System.exit(0);
}
}
public static void generateLaptops(InputHandler inputHandler){
for (int i=1; i< inputHandler.getRowList().size(); i++){
String[] values = inputHandler.getRowList().get(i).split("\t");
Laptop laptop = new Laptop(Float.parseFloat(values[0]), Float.parseFloat(values[1]), Float.parseFloat(values[2]), i-1 );
Laptop.laptops.add(laptop);
}
}
}
| 34.527778 | 132 | 0.627514 |
fa75031479fc68db0c107fe450d7cbe6b778d26b | 509 | asm | Assembly | programs/oeis/060/A060265.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 22 | 2018-02-06T19:19:31.000Z | 2022-01-17T21:53:31.000Z | programs/oeis/060/A060265.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 41 | 2021-02-22T19:00:34.000Z | 2021-08-28T10:47:47.000Z | programs/oeis/060/A060265.asm | neoneye/loda | afe9559fb53ee12e3040da54bd6aa47283e0d9ec | [
"Apache-2.0"
] | 5 | 2021-02-24T21:14:16.000Z | 2021-08-09T19:48:05.000Z | ; A060265: Largest prime less than 2n.
; 3,5,7,7,11,13,13,17,19,19,23,23,23,29,31,31,31,37,37,41,43,43,47,47,47,53,53,53,59,61,61,61,67,67,71,73,73,73,79,79,83,83,83,89,89,89,89,97,97,101,103,103,107,109,109,113,113,113,113,113,113,113,127,127,131,131,131,137,139,139,139,139,139,149,151,151,151,157,157,157,163,163,167,167,167,173,173,173,179,181,181,181,181,181,191,193,193,197,199,199
lpb $0
mov $1,$0
seq $1,121206 ; a(n) = (2n)! mod n(2n+1).
add $1,$0
mov $0,$1
sub $0,1
lpe
mul $0,2
add $0,3
| 39.153846 | 348 | 0.656189 |
1151fb4bafbdfeb2183a3076a11990fa9e3aec3e | 1,339 | sql | SQL | tests/MySql/WriteTestDB_Create.sql | ammogcoder/Massive | 9d28cdd09113f688a76c9fc7340c2ea3dd13bf59 | [
"BSD-3-Clause"
] | 655 | 2015-03-04T17:04:31.000Z | 2022-03-15T08:08:11.000Z | tests/MySql/WriteTestDB_Create.sql | ammogcoder/Massive | 9d28cdd09113f688a76c9fc7340c2ea3dd13bf59 | [
"BSD-3-Clause"
] | 99 | 2015-03-04T16:29:59.000Z | 2021-08-12T20:50:19.000Z | tests/MySql/WriteTestDB_Create.sql | ammogcoder/Massive | 9d28cdd09113f688a76c9fc7340c2ea3dd13bf59 | [
"BSD-3-Clause"
] | 163 | 2015-03-04T17:18:33.000Z | 2022-03-14T13:24:00.000Z | -- ----------------------------------------------------------------------------------------------------------------
-- Schema 'MassiveWriteTests'
-- ----------------------------------------------------------------------------------------------------------------
DROP SCHEMA IF EXISTS `MassiveWriteTests`;
CREATE SCHEMA `MassiveWriteTests`;
USE `MassiveWriteTests`;
-- -------` Tables `-----------------------------------------------------------------------------------------------
CREATE TABLE `Categories`
(
`CategoryID` int unsigned NOT NULL AUTO_INCREMENT,
`CategoryName` varchar(15) NOT NULL,
`Description` text NULL,
`Picture` blob NULL,
PRIMARY KEY (`CategoryID`)
);
CREATE TABLE `Products`
(
`ProductID` int unsigned NOT NULL AUTO_INCREMENT,
`ProductName` varchar(40) NOT NULL,
`CategoryID` int unsigned NULL,
`QuantityPerUnit` varchar(20) NULL,
`UnitPrice` decimal(13,2) NULL DEFAULT 0,
`UnitsInStock` smallint NULL DEFAULT 0,
`UnitsOnOrder` smallint NULL DEFAULT 0,
`ReorderLevel` smallint NULL DEFAULT 0,
`Discontinued` bit NOT NULL DEFAULT 0,
PRIMARY KEY (`ProductID`),
CONSTRAINT `FK_Products_Categories` FOREIGN KEY (`CategoryID`) REFERENCES `Categories` (`CategoryID`)
);
DELIMITER //
CREATE PROCEDURE `pr_clearAll`()
BEGIN
DELETE FROM Products;
DELETE FROM Categories;
END //
DELIMITER ; | 32.658537 | 116 | 0.557132 |
8f0b91417128af9875d4fac1e6f8c96f1af0e676 | 1,140 | java | Java | src/test/java/io/koosha/nettyfunctional/hook/InboundTransformerTest.java | hkoosha/netty-functional | 097e9c6d24bd0f8b61db0075dd3e6d488fd41087 | [
"Apache-2.0"
] | null | null | null | src/test/java/io/koosha/nettyfunctional/hook/InboundTransformerTest.java | hkoosha/netty-functional | 097e9c6d24bd0f8b61db0075dd3e6d488fd41087 | [
"Apache-2.0"
] | null | null | null | src/test/java/io/koosha/nettyfunctional/hook/InboundTransformerTest.java | hkoosha/netty-functional | 097e9c6d24bd0f8b61db0075dd3e6d488fd41087 | [
"Apache-2.0"
] | null | null | null | package io.koosha.nettyfunctional.hook;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.embedded.EmbeddedChannel;
import org.testng.annotations.Test;
import static org.testng.Assert.assertEquals;
public class InboundTransformerTest {
@Test
public void testRead1() throws Exception {
InboundTransformer<String> h0 = new InboundTransformer<String>(String.class) {
@Override
protected Object read1(ChannelHandlerContext ctx,
String msg) throws Exception {
return Integer.parseInt(msg);
}
};
InboundTransformer<Boolean> h1 = new InboundTransformer<Boolean>(Boolean.class) {
@Override
protected Object read1(ChannelHandlerContext ctx, Boolean msg) throws Exception {
throw new UnsupportedOperationException("should not reach here");
}
};
EmbeddedChannel em = new EmbeddedChannel(h0, h1);
assert em.writeInbound("99");
final Integer read = em.readInbound();
assertEquals(read.intValue(), 99);
}
}
| 29.230769 | 93 | 0.646491 |
3bf458306a4ad7545c7abe84d8e0726a2b1039db | 555 | asm | Assembly | source/Cosmos.Core.DebugStub/CmdMisc.asm | Geramy/Cosmos | 38c699d42d5a9e53c8a902c866130b64c4f2eab3 | [
"BSD-3-Clause"
] | 207 | 2017-07-30T13:01:52.000Z | 2022-03-25T14:33:53.000Z | source/Cosmos.Core.DebugStub/CmdMisc.asm | Geramy/Cosmos | 38c699d42d5a9e53c8a902c866130b64c4f2eab3 | [
"BSD-3-Clause"
] | 57 | 2017-08-13T13:58:13.000Z | 2022-02-25T21:12:09.000Z | source/Cosmos.Core.DebugStub/CmdMisc.asm | Geramy/Cosmos | 38c699d42d5a9e53c8a902c866130b64c4f2eab3 | [
"BSD-3-Clause"
] | 62 | 2017-08-13T09:56:34.000Z | 2022-03-29T15:53:16.000Z | ; Generated at 6/14/2016 12:11:29 PM
DebugStub_Ping:
mov byte AL, 0xD
Call DebugStub_ComWriteAL
DebugStub_Ping_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_Ping_Exit
Ret
DebugStub_TraceOn:
mov dword [DebugStub_TraceMode], 0x1
DebugStub_TraceOn_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_TraceOn_Exit
Ret
DebugStub_TraceOff:
mov dword [DebugStub_TraceMode], 0x0
DebugStub_TraceOff_Exit:
mov dword [static_field__Cosmos_Core_INTs_mLastKnownAddress], DebugStub_TraceOff_Exit
Ret
| 19.137931 | 85 | 0.857658 |
3ee381a50a9097011608594d2d4ea75d1b36ccfa | 587 | h | C | cpp/qt/WebEngineView/object.h | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | cpp/qt/WebEngineView/object.h | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | 1 | 2016-09-15T07:06:15.000Z | 2016-09-15T07:06:15.000Z | cpp/qt/WebEngineView/object.h | wjiec/packages | 4ccaf8f717265a1f8a9af533f9a998b935efb32a | [
"MIT"
] | null | null | null | #ifndef OBJECT_H
#define OBJECT_H
#include <QObject>
#include <QStringList>
class Object : public QObject {
Q_OBJECT
Q_PROPERTY(QString info MEMBER m_info NOTIFY infoChanged)
public:
explicit Object(QObject *parent = 0);
QString getInfo() const;
void setInfo(QString inf);
void setTimer(const int msec) const;
signals:
void infoChanged(QString);
public slots:
void callFromTimer();
void callFromJS(QString info);
private:
QString m_info;
};
#endif // OBJECT_H
| 18.935484 | 62 | 0.613288 |
4a188c39671f0e0a5e738a70bcef69f21b0e089a | 284 | lua | Lua | MMOCoreORB/bin/scripts/object/custom_content/tangible/collection/rebel_marine_left_bracer.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 18 | 2017-02-09T15:36:05.000Z | 2021-12-21T04:22:15.000Z | MMOCoreORB/bin/scripts/object/custom_content/tangible/collection/rebel_marine_left_bracer.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 61 | 2016-12-30T21:51:10.000Z | 2021-12-10T20:25:56.000Z | MMOCoreORB/bin/scripts/object/custom_content/tangible/collection/rebel_marine_left_bracer.lua | V-Fib/FlurryClone | 40e0ca7245ec31b3815eb6459329fd9e70f88936 | [
"Zlib",
"OpenSSL"
] | 71 | 2017-01-01T05:34:38.000Z | 2022-03-29T01:04:00.000Z |
object_tangible_collection_rebel_marine_left_bracer = object_tangible_collection_shared_rebel_marine_left_bracer:new {
gameObjectType = 8211,}
ObjectTemplates:addTemplate(object_tangible_collection_rebel_marine_left_bracer, "object/tangible/collection/rebel_marine_left_bracer.iff") | 56.8 | 139 | 0.908451 |
3f0d4b88b7fb616a1ad6333d1425ae18b772a0de | 53 | lua | Lua | emergency-container-monitor-demo/raw/unit-stop.lua | Dri0m/dual-universe-stuff | d7265ed95a4cd5c9da9265201ea8118f4b43c72e | [
"MIT"
] | 6 | 2020-12-12T21:04:55.000Z | 2021-02-25T05:26:03.000Z | emergency-container-monitor-demo/raw/unit-stop.lua | Novean-Institute-of-Standards/dual-universe-stuff | 498b43eec1e33c6381de2122afb6eb153be77b0e | [
"MIT"
] | null | null | null | emergency-container-monitor-demo/raw/unit-stop.lua | Novean-Institute-of-Standards/dual-universe-stuff | 498b43eec1e33c6381de2122afb6eb153be77b0e | [
"MIT"
] | 6 | 2020-12-20T14:54:41.000Z | 2022-02-05T00:43:51.000Z | screen.setCenteredText("Emergency container monitor") | 53 | 53 | 0.867925 |
98fe28505a538cc797c9ffdf9a04215fdc24c21c | 682 | kt | Kotlin | app/src/main/java/com/example/musicplayer/data/DataHolder.kt | Iamsdt/MusicPlayer | 50ec8d864cd09f649446320c9df614692c26f426 | [
"Apache-2.0"
] | 14 | 2020-04-14T22:00:57.000Z | 2021-11-13T16:59:38.000Z | app/src/main/java/com/example/musicplayer/data/DataHolder.kt | Iamsdt/MusicPlayer | 50ec8d864cd09f649446320c9df614692c26f426 | [
"Apache-2.0"
] | 2 | 2020-07-15T11:12:17.000Z | 2021-01-27T06:18:50.000Z | app/src/main/java/com/example/musicplayer/data/DataHolder.kt | Iamsdt/MusicPlayer | 50ec8d864cd09f649446320c9df614692c26f426 | [
"Apache-2.0"
] | 5 | 2020-02-11T09:03:56.000Z | 2021-01-24T19:50:25.000Z | package com.example.musicplayer.data
import com.example.musicplayer.data.model.Song
import com.example.musicplayer.service.IPlayer
class DataHolder {
var currentTrack: IPlayer.Track? = null
var currentSong: Song? = null
var ifFirstTime: Boolean = false
var newType: String? = null
var newID: Long? = null
var newSongID: Long? = null
var newTitle: String? = null
var isPlaying: Boolean = false
companion object {
var dataHolder: DataHolder? = null
fun getInstance(): DataHolder {
if (dataHolder == null) {
dataHolder = DataHolder()
}
return dataHolder!!
}
}
} | 22.733333 | 46 | 0.624633 |
8666764a82d7df62a8330583e8f4bf065f239063 | 2,073 | lua | Lua | project/files/.config/nvim/lua/config/snippets.lua | bigjazzsound/dotfiles | 8a13b1cf6a80978735e782b39ecb54dfa47df21b | [
"BSD-3-Clause"
] | null | null | null | project/files/.config/nvim/lua/config/snippets.lua | bigjazzsound/dotfiles | 8a13b1cf6a80978735e782b39ecb54dfa47df21b | [
"BSD-3-Clause"
] | null | null | null | project/files/.config/nvim/lua/config/snippets.lua | bigjazzsound/dotfiles | 8a13b1cf6a80978735e782b39ecb54dfa47df21b | [
"BSD-3-Clause"
] | null | null | null | local luasnip_ok, ls = pcall(require, "luasnip")
if not luasnip_ok then
return
end
local s = ls.snippet
local f = ls.function_node
local i = ls.insert_node
local ps = ls.parser.parse_snippet
local fmt = require("luasnip.extras.fmt").fmt
local fmta = require("luasnip.extras.fmt").fmta
local rep = require("luasnip.extras").rep
local comment = function()
return string.format(vim.bo.commentstring, " TODO: ")
end
ls.add_snippets("all", {
s("td", f(comment, { i(0) })),
})
ls.add_snippets("go", {
s(
"ife",
fmta(
[[
if err != nil {
<>
}
]],
{ i(0) }
)
),
})
ls.add_snippets("lua", {
-- pr = "pcall require"
s(
"pr",
fmt(
[[
local {}_ok, {} = pcall(require, "{}")
if not {}_ok then
return
end
{}
]],
{ i(1), rep(1), rep(1), rep(1), i(0) }
)
),
s(
"fn",
fmt(
[[
function({})
{}
end
{}
]],
{ i(1), i(2), i(0) }
)
),
})
ls.add_snippets("terraform", {
s(
"res",
fmta(
[[
resource "<>" "<>" {
<>
}
]],
{ i(1), i(2), i(0) }
)
),
s(
"mod",
fmta(
[[
module "<>" {{
source = "<>"
}}
]],
{ i(1), i(0) }
)
),
s(
"var",
fmta(
[[
variable "<>" {
description = "<>"
type = "<>"
default = "<>"
}
]],
{ i(1), i(2), i(3), i(4) }
)
),
ps("ws", "terraform.workspace"),
})
ls.add_snippets("yaml", {
s("var", fmta("{{ <> }}<>", { i(1), i(0) })),
s(
"for",
fmta(
[[
{% for <> in <> %}
<>
{% endfor %}
]],
{ i(1), i(2), i(0) }
)
),
})
ls.snippets = snippets
vim.keymap.set({ "i", "s" }, "<c-k>", function()
if ls.expand_or_jumpable() then
ls.expand_or_jump()
end
end, { silent = true })
vim.keymap.set({ "i", "s" }, "<c-e>", function()
if ls.choice_active() then
ls.change_choice(1)
end
end, { silent = true })
vim.keymap.set({ "i", "s" }, "<c-j>", function()
if ls.jumpable(-1) then
ls.jump(-1)
end
end, { silent = true })
vim.keymap.set({ "n" }, "<leader>rs", function()
R "config.snippets"
end, { silent = true })
| 13.728477 | 55 | 0.47371 |
1d3797a49831877899fb54e57748bab3e3b28f64 | 216 | ps1 | PowerShell | test/samples/powershell.ps1 | DTeuchert/vscode-todo-parser | 2f83a30bfbeb15ae93cf068fff4928287eb466eb | [
"MIT"
] | 50 | 2016-02-17T12:10:26.000Z | 2018-06-09T13:42:06.000Z | test/samples/powershell.ps1 | DTeuchert/vscode-todo-parser | 2f83a30bfbeb15ae93cf068fff4928287eb466eb | [
"MIT"
] | 71 | 2016-06-02T00:27:31.000Z | 2018-07-02T12:14:36.000Z | test/samples/powershell.ps1 | DTeuchert/vscode-todo-parser | 2f83a30bfbeb15ae93cf068fff4928287eb466eb | [
"MIT"
] | 23 | 2016-06-15T10:33:23.000Z | 2018-06-28T15:15:00.000Z | # Todo: powershell one line Todo
$x = 0
$str = "superman"
<#
@export
TODO: typescript multiline
todo
@param {string} str
@returns {*}
#>
function doSomething(str) {
return str + " " + str
}
| 12 | 32 | 0.583333 |
deaa9901aeadea859d57f4bcfa7adb4c4758d98a | 18,851 | rs | Rust | src/ser.rs | vmx/serde_ipld_dagcbor | 9ff75b2e66824433c0c9b1804f2c1e946748319d | [
"Apache-2.0",
"MIT"
] | null | null | null | src/ser.rs | vmx/serde_ipld_dagcbor | 9ff75b2e66824433c0c9b1804f2c1e946748319d | [
"Apache-2.0",
"MIT"
] | 3 | 2022-03-11T10:57:29.000Z | 2022-03-15T21:41:10.000Z | src/ser.rs | vmx/cbor | 9ff75b2e66824433c0c9b1804f2c1e946748319d | [
"Apache-2.0",
"MIT"
] | 1 | 2022-03-17T22:40:09.000Z | 2022-03-17T22:40:09.000Z | //! Serialization.
#[cfg(not(feature = "std"))]
use alloc::collections::TryReserveError;
#[cfg(not(feature = "std"))]
use alloc::vec::Vec;
#[cfg(feature = "std")]
use std::collections::TryReserveError;
pub use cbor4ii::core::utils::BufWriter;
#[cfg(feature = "std")]
use cbor4ii::core::utils::IoWriter;
use cbor4ii::core::{
enc::{self, Encode},
types,
};
use cid::serde::CID_SERDE_PRIVATE_IDENTIFIER;
use serde::{ser, Serialize};
use crate::error::EncodeError;
use crate::CBOR_TAGS_CID;
/// Serializes a value to a vector.
pub fn to_vec<T>(value: &T) -> Result<Vec<u8>, EncodeError<TryReserveError>>
where
T: Serialize + ?Sized,
{
let writer = BufWriter::new(Vec::new());
let mut serializer = Serializer::new(writer);
value.serialize(&mut serializer)?;
Ok(serializer.into_inner().into_inner())
}
/// Serializes a value to a writer.
#[cfg(feature = "std")]
pub fn to_writer<W, T>(writer: W, value: &T) -> Result<(), EncodeError<std::io::Error>>
where
W: std::io::Write,
T: Serialize,
{
let mut serializer = Serializer::new(IoWriter::new(writer));
value.serialize(&mut serializer)
}
/// A structure for serializing Rust values to DAG-CBOR.
struct Serializer<W> {
writer: W,
}
impl<W> Serializer<W> {
/// Creates a new CBOR serializer.
pub fn new(writer: W) -> Serializer<W> {
Serializer { writer }
}
/// Returns the underlying writer.
pub fn into_inner(self) -> W {
self.writer
}
}
impl<'a, W: enc::Write> serde::Serializer for &'a mut Serializer<W> {
type Ok = ();
type Error = EncodeError<W::Error>;
type SerializeSeq = Collect<'a, W>;
type SerializeTuple = BoundedCollect<'a, W>;
type SerializeTupleStruct = BoundedCollect<'a, W>;
type SerializeTupleVariant = BoundedCollect<'a, W>;
type SerializeMap = Collect<'a, W>;
type SerializeStruct = BoundedCollect<'a, W>;
type SerializeStructVariant = BoundedCollect<'a, W>;
#[inline]
fn serialize_bool(self, v: bool) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_i8(self, v: i8) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_i16(self, v: i16) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_i32(self, v: i32) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_i64(self, v: i64) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_u8(self, v: u8) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_u16(self, v: u16) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_u32(self, v: u32) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_u64(self, v: u64) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_f32(self, v: f32) -> Result<Self::Ok, Self::Error> {
// In DAG-CBOR floats are always encoded as f64.
self.serialize_f64(f64::from(v))
}
#[inline]
fn serialize_f64(self, v: f64) -> Result<Self::Ok, Self::Error> {
// In DAG-CBOR only finite floats are supported.
if !v.is_finite() {
Err(EncodeError::Msg(
"Float must be a finite number, not Infinity or NaN".into(),
))
} else {
v.encode(&mut self.writer)?;
Ok(())
}
}
#[inline]
fn serialize_char(self, v: char) -> Result<Self::Ok, Self::Error> {
let mut buf = [0; 4];
self.serialize_str(v.encode_utf8(&mut buf))
}
#[inline]
fn serialize_str(self, v: &str) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_bytes(self, v: &[u8]) -> Result<Self::Ok, Self::Error> {
types::Bytes(v).encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_none(self) -> Result<Self::Ok, Self::Error> {
types::Null.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_some<T: Serialize + ?Sized>(self, value: &T) -> Result<Self::Ok, Self::Error> {
value.serialize(self)
}
#[inline]
fn serialize_unit(self) -> Result<Self::Ok, Self::Error> {
// The cbor4ii Serde implementation encodes unit as an empty array, for DAG-CBOR we encode
// it as `NULL`.
types::Null.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_unit_struct(self, _name: &'static str) -> Result<Self::Ok, Self::Error> {
self.serialize_unit()
}
#[inline]
fn serialize_unit_variant(
self,
_name: &'static str,
_variant_index: u32,
variant: &'static str,
) -> Result<Self::Ok, Self::Error> {
self.serialize_str(variant)
}
#[inline]
fn serialize_newtype_struct<T: Serialize + ?Sized>(
self,
name: &'static str,
value: &T,
) -> Result<Self::Ok, Self::Error> {
if name == CID_SERDE_PRIVATE_IDENTIFIER {
value.serialize(&mut CidSerializer(self))
} else {
value.serialize(self)
}
}
#[inline]
fn serialize_newtype_variant<T: Serialize + ?Sized>(
self,
_name: &'static str,
_variant_index: u32,
variant: &'static str,
value: &T,
) -> Result<Self::Ok, Self::Error> {
enc::MapStartBounded(1).encode(&mut self.writer)?;
variant.encode(&mut self.writer)?;
value.serialize(self)
}
#[inline]
fn serialize_seq(self, len: Option<usize>) -> Result<Self::SerializeSeq, Self::Error> {
if let Some(len) = len {
enc::ArrayStartBounded(len).encode(&mut self.writer)?;
} else {
enc::ArrayStartUnbounded.encode(&mut self.writer)?;
}
Ok(Collect {
bounded: len.is_some(),
ser: self,
})
}
#[inline]
fn serialize_tuple(self, len: usize) -> Result<Self::SerializeTuple, Self::Error> {
enc::ArrayStartBounded(len).encode(&mut self.writer)?;
Ok(BoundedCollect { ser: self })
}
#[inline]
fn serialize_tuple_struct(
self,
_name: &'static str,
len: usize,
) -> Result<Self::SerializeTupleStruct, Self::Error> {
self.serialize_tuple(len)
}
#[inline]
fn serialize_tuple_variant(
self,
_name: &'static str,
_variant_index: u32,
variant: &'static str,
len: usize,
) -> Result<Self::SerializeTupleVariant, Self::Error> {
enc::MapStartBounded(1).encode(&mut self.writer)?;
variant.encode(&mut self.writer)?;
enc::ArrayStartBounded(len).encode(&mut self.writer)?;
Ok(BoundedCollect { ser: self })
}
#[inline]
fn serialize_map(self, len: Option<usize>) -> Result<Self::SerializeMap, Self::Error> {
if let Some(len) = len {
enc::MapStartBounded(len).encode(&mut self.writer)?;
} else {
enc::MapStartUnbounded.encode(&mut self.writer)?;
}
Ok(Collect {
bounded: len.is_some(),
ser: self,
})
}
#[inline]
fn serialize_struct(
self,
_name: &'static str,
len: usize,
) -> Result<Self::SerializeStruct, Self::Error> {
enc::MapStartBounded(len).encode(&mut self.writer)?;
Ok(BoundedCollect { ser: self })
}
#[inline]
fn serialize_struct_variant(
self,
_name: &'static str,
_variant_index: u32,
variant: &'static str,
len: usize,
) -> Result<Self::SerializeStructVariant, Self::Error> {
enc::MapStartBounded(1).encode(&mut self.writer)?;
variant.encode(&mut self.writer)?;
enc::MapStartBounded(len).encode(&mut self.writer)?;
Ok(BoundedCollect { ser: self })
}
#[inline]
fn serialize_i128(self, v: i128) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
#[inline]
fn serialize_u128(self, v: u128) -> Result<Self::Ok, Self::Error> {
v.encode(&mut self.writer)?;
Ok(())
}
fn collect_map<K, V, I>(self, iter: I) -> Result<(), Self::Error>
where
K: ser::Serialize,
V: ser::Serialize,
I: IntoIterator<Item = (K, V)>,
{
// CBOR RFC-7049 specifies a canonical sort order, where keys are sorted by length first.
// This was later revised with RFC-8949, but we need to stick to the original order to stay
// compatible with existing data.
// We first serialize each map entry into a buffer and then sort those buffers. Byte-wise
// comparison gives us the right order as keys in DAG-CBOR are always strings and prefixed
// with the length. Once sorted they are written to the actual output.
let mut buffer = BufWriter::new(Vec::new());
let mut entries = Vec::new();
for (key, value) in iter {
let mut mem_serializer = Serializer::new(&mut buffer);
key.serialize(&mut mem_serializer)
.map_err(|_| EncodeError::Msg("Map key cannot be serialized.".into()))?;
value
.serialize(&mut mem_serializer)
.map_err(|_| EncodeError::Msg("Map key cannot be serialized.".into()))?;
entries.push(buffer.buffer().to_vec());
buffer.clear();
}
enc::MapStartBounded(entries.len()).encode(&mut self.writer)?;
entries.sort_unstable();
for entry in entries {
self.writer.push(&entry)?;
}
Ok(())
}
#[inline]
fn is_human_readable(&self) -> bool {
false
}
}
struct Collect<'a, W> {
bounded: bool,
ser: &'a mut Serializer<W>,
}
struct BoundedCollect<'a, W> {
ser: &'a mut Serializer<W>,
}
impl<W: enc::Write> serde::ser::SerializeSeq for Collect<'_, W> {
type Ok = ();
type Error = EncodeError<W::Error>;
#[inline]
fn serialize_element<T: Serialize + ?Sized>(&mut self, value: &T) -> Result<(), Self::Error> {
value.serialize(&mut *self.ser)
}
#[inline]
fn end(self) -> Result<Self::Ok, Self::Error> {
if !self.bounded {
enc::End.encode(&mut self.ser.writer)?;
}
Ok(())
}
}
impl<W: enc::Write> serde::ser::SerializeTuple for BoundedCollect<'_, W> {
type Ok = ();
type Error = EncodeError<W::Error>;
#[inline]
fn serialize_element<T: Serialize + ?Sized>(&mut self, value: &T) -> Result<(), Self::Error> {
value.serialize(&mut *self.ser)
}
#[inline]
fn end(self) -> Result<Self::Ok, Self::Error> {
Ok(())
}
}
impl<W: enc::Write> serde::ser::SerializeTupleStruct for BoundedCollect<'_, W> {
type Ok = ();
type Error = EncodeError<W::Error>;
#[inline]
fn serialize_field<T: Serialize + ?Sized>(&mut self, value: &T) -> Result<(), Self::Error> {
value.serialize(&mut *self.ser)
}
#[inline]
fn end(self) -> Result<Self::Ok, Self::Error> {
Ok(())
}
}
impl<W: enc::Write> serde::ser::SerializeTupleVariant for BoundedCollect<'_, W> {
type Ok = ();
type Error = EncodeError<W::Error>;
#[inline]
fn serialize_field<T: Serialize + ?Sized>(&mut self, value: &T) -> Result<(), Self::Error> {
value.serialize(&mut *self.ser)
}
#[inline]
fn end(self) -> Result<Self::Ok, Self::Error> {
Ok(())
}
}
impl<W: enc::Write> serde::ser::SerializeMap for Collect<'_, W> {
type Ok = ();
type Error = EncodeError<W::Error>;
#[inline]
fn serialize_key<T: Serialize + ?Sized>(&mut self, key: &T) -> Result<(), Self::Error> {
key.serialize(&mut *self.ser)
}
#[inline]
fn serialize_value<T: Serialize + ?Sized>(&mut self, value: &T) -> Result<(), Self::Error> {
value.serialize(&mut *self.ser)
}
#[inline]
fn end(self) -> Result<Self::Ok, Self::Error> {
if !self.bounded {
enc::End.encode(&mut self.ser.writer)?;
}
Ok(())
}
}
impl<W: enc::Write> serde::ser::SerializeStruct for BoundedCollect<'_, W> {
type Ok = ();
type Error = EncodeError<W::Error>;
#[inline]
fn serialize_field<T: Serialize + ?Sized>(
&mut self,
key: &'static str,
value: &T,
) -> Result<(), Self::Error> {
key.serialize(&mut *self.ser)?;
value.serialize(&mut *self.ser)
}
#[inline]
fn end(self) -> Result<Self::Ok, Self::Error> {
Ok(())
}
}
impl<W: enc::Write> serde::ser::SerializeStructVariant for BoundedCollect<'_, W> {
type Ok = ();
type Error = EncodeError<W::Error>;
#[inline]
fn serialize_field<T: Serialize + ?Sized>(
&mut self,
key: &'static str,
value: &T,
) -> Result<(), Self::Error> {
key.serialize(&mut *self.ser)?;
value.serialize(&mut *self.ser)
}
#[inline]
fn end(self) -> Result<Self::Ok, Self::Error> {
Ok(())
}
}
/// Serializing a CID correctly as DAG-CBOR.
struct CidSerializer<'a, W>(&'a mut Serializer<W>);
impl<'a, W: enc::Write> ser::Serializer for &'a mut CidSerializer<'a, W>
where
W::Error: core::fmt::Debug,
{
type Ok = ();
type Error = EncodeError<W::Error>;
type SerializeSeq = ser::Impossible<Self::Ok, Self::Error>;
type SerializeTuple = ser::Impossible<Self::Ok, Self::Error>;
type SerializeTupleStruct = ser::Impossible<Self::Ok, Self::Error>;
type SerializeTupleVariant = ser::Impossible<Self::Ok, Self::Error>;
type SerializeMap = ser::Impossible<Self::Ok, Self::Error>;
type SerializeStruct = ser::Impossible<Self::Ok, Self::Error>;
type SerializeStructVariant = ser::Impossible<Self::Ok, Self::Error>;
fn serialize_bool(self, _value: bool) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_i8(self, _value: i8) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_i16(self, _value: i16) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_i32(self, _value: i32) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_i64(self, _value: i64) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_u8(self, _value: u8) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_u16(self, _value: u16) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_u32(self, _value: u32) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_u64(self, _value: u64) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_f32(self, _value: f32) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_f64(self, _value: f64) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_char(self, _value: char) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_str(self, _value: &str) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_bytes(self, value: &[u8]) -> Result<Self::Ok, Self::Error> {
// The bytes of the CID is prefixed with a null byte when encoded as CBOR.
let prefixed = [&[0x00], value].concat();
// CIDs are serialized with CBOR tag 42.
types::Tag(CBOR_TAGS_CID, types::Bytes(&prefixed[..])).encode(&mut self.0.writer)?;
Ok(())
}
fn serialize_none(self) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_some<T: ?Sized + ser::Serialize>(
self,
_value: &T,
) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_unit(self) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_unit_struct(self, _name: &str) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_unit_variant(
self,
_name: &str,
_variant_index: u32,
_variant: &str,
) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_newtype_struct<T: ?Sized + ser::Serialize>(
self,
_name: &str,
_value: &T,
) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_newtype_variant<T: ?Sized + ser::Serialize>(
self,
_name: &str,
_variant_index: u32,
_variant: &str,
_value: &T,
) -> Result<Self::Ok, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_seq(self, _len: Option<usize>) -> Result<Self::SerializeSeq, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_tuple(self, _len: usize) -> Result<Self::SerializeTuple, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_tuple_struct(
self,
_name: &str,
_len: usize,
) -> Result<Self::SerializeTupleStruct, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_tuple_variant(
self,
_name: &str,
_variant_index: u32,
_variant: &str,
_len: usize,
) -> Result<Self::SerializeTupleVariant, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_map(self, _len: Option<usize>) -> Result<Self::SerializeMap, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_struct(
self,
_name: &str,
_len: usize,
) -> Result<Self::SerializeStruct, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
fn serialize_struct_variant(
self,
_name: &str,
_variant_index: u32,
_variant: &str,
_len: usize,
) -> Result<Self::SerializeStructVariant, Self::Error> {
Err(ser::Error::custom("unreachable"))
}
}
| 29.454688 | 99 | 0.572543 |
122ef62e18b0fcc04bd57ba9594f71d7917a2633 | 803 | lua | Lua | vendor/RainbowRepacker/tool/engine_android(5)/assets/scripts/games/common2/module/anim/roomAnimLayer.lua | huangtao/cloud-test | 8087b1337d47daab9eb39335ca6e286df0e4b4dc | [
"Apache-2.0"
] | 1 | 2018-09-12T15:43:32.000Z | 2018-09-12T15:43:32.000Z | vendor/RainbowRepacker/tool/engine_android(5)/assets/scripts/games/common2/module/anim/roomAnimLayer.lua | huangtao/cloud-test | 8087b1337d47daab9eb39335ca6e286df0e4b4dc | [
"Apache-2.0"
] | null | null | null | vendor/RainbowRepacker/tool/engine_android(5)/assets/scripts/games/common2/module/anim/roomAnimLayer.lua | huangtao/cloud-test | 8087b1337d47daab9eb39335ca6e286df0e4b4dc | [
"Apache-2.0"
] | 3 | 2018-09-12T15:43:33.000Z | 2019-07-10T09:50:15.000Z |
local layerBase = require("games/common2/module/layerBase");
--[[
动画层
]]
local RoomAnimLayer = class(layerBase);
RoomAnimLayer.s_cmds = {
};
RoomAnimLayer.ctor = function(self)
self:removeStateBroadcast();
end
RoomAnimLayer.dtor = function(self)
end
-- 初始化layer的配置
RoomAnimLayer.initViewConfig = function(self)
self.m_viewConfig = {
[1] = {
path = "games/common2/module/anim/roomAnimView";
};
[2] = {
-- path = "games/common2/module/anim/roomAnimView";
};
[3] = {
-- path = "games/common2/module/anim/roomAnimView";
};
};
end
RoomAnimLayer.s_cmdConfig =
{
};
return RoomAnimLayer;
--[[
公共房间动画图层
功能:踢人、互动道具、加好友相关动画、升场、聊天、表情
说明:
动画模块,负责播放动画。有新动画播放时,发送消息通知模块,并添加接收逻辑,播放动画
动画尽量定义为layer类型的local类,避免直接继承animBase,定义成全局类。
]] | 17.085106 | 61 | 0.656289 |
fbb527e97120cf2dcaf9e35f7ea677be1e1e940a | 2,017 | java | Java | src/main/java/com/example/application/data/repository/impl/AuthorRepositoryJpa.java | d0rst/my-project-haulmont | 9fdc9eca34977921429ab206423ee5ac37cbb87b | [
"Unlicense"
] | null | null | null | src/main/java/com/example/application/data/repository/impl/AuthorRepositoryJpa.java | d0rst/my-project-haulmont | 9fdc9eca34977921429ab206423ee5ac37cbb87b | [
"Unlicense"
] | null | null | null | src/main/java/com/example/application/data/repository/impl/AuthorRepositoryJpa.java | d0rst/my-project-haulmont | 9fdc9eca34977921429ab206423ee5ac37cbb87b | [
"Unlicense"
] | null | null | null | package com.example.application.data.repository.impl;
import com.example.application.data.entity.Author;
import com.example.application.data.repository.AuthorRepository;
import com.example.application.data.repository.CrudRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import javax.persistence.TypedQuery;
import java.util.List;
@Repository
@Transactional
public class AuthorRepositoryJpa implements AuthorRepository {
@Autowired
private CrudRepository<Author> crudRepository;
@PersistenceContext
private EntityManager em;
@Override
public void create(Author author) {
crudRepository.create(author);
}
@Override
public Author read(Class<Author> clazz, Long uuid) {
return crudRepository.read(clazz, uuid);
}
@Override
public void update(Author author) {
crudRepository.update(author);
}
@Override
public void delete(Author author) {
crudRepository.delete(author);
}
@Override
public List<Author> getAllAuthors() {
TypedQuery<Author> query = em.createQuery("select a from Author a", Author.class);
return query.getResultList();
}
public List<Author> search(String searchTerm) {
TypedQuery<Author> typedQuery = em.createQuery("select a from Author a " +
"where lower(a.firstName) like lower(concat('%', :searchTerm, '%')) " +
"or lower(a.lastName) like lower(concat('%', :searchTerm, '%'))" +
"or lower(a.patronymic) like lower(concat('%', :searchTerm, '%'))", Author.class);
typedQuery.setParameter("searchTerm", searchTerm);
return typedQuery.getResultList();
}
}
| 32.015873 | 98 | 0.715419 |
4d9d0904bc4ea0ada7d186509ff7452df730f38d | 2,447 | html | HTML | src/CurrencyChecker.Chrome.App/app/app-modules/views/settings.html | Michnet/CurrencyChecker | 0a6139ed5626e949e981e339dfe6b2cb50494111 | [
"Apache-2.0"
] | null | null | null | src/CurrencyChecker.Chrome.App/app/app-modules/views/settings.html | Michnet/CurrencyChecker | 0a6139ed5626e949e981e339dfe6b2cb50494111 | [
"Apache-2.0"
] | null | null | null | src/CurrencyChecker.Chrome.App/app/app-modules/views/settings.html | Michnet/CurrencyChecker | 0a6139ed5626e949e981e339dfe6b2cb50494111 | [
"Apache-2.0"
] | null | null | null | <!DOCTYPE html>
<html class="no-js">
<head>
<link href="/app-modules/style/settings.css" rel="stylesheet" type="text/css" />
</head>
<body>
<form>
<div class="setting-label">
Refreshing period:
</div>
<div>
<div>
<table>
<tbody>
<tr>
<td>
<input id="refreshingPeriod"
name="refreshingPeriod"
class="setting-input"
type="text"
data-val="true"
data-val-number>
</td>
<td>
<span>(ms)</span>
</td>
</tr>
</tbody>
</table>
</div>
<span class="field-validation-valid"
data-valmsg-for="refreshingPeriod"
data-valmsg-replace="true"></span>
</div>
<div class="display-settings-container">
<div class="setting-label">Ticker display type:</div>
<table>
<thead>
<tr class="center-content">
<th>BUY</th>
<th>
SELL
</th>
</tr>
</thead>
<tbody>
<tr class="center-content">
<td>
<input type="radio" name="displayTickerMode" value="BUY" />
</td>
<td>
<input type="radio" name="displayTickerMode" value="SELL" />
</td>
</tr>
</tbody>
</table>
</div>
</form>
<script src="/external-scripts/jquery-2.1.4.min.js" type="text/javascript" charset="utf-8"></script>
<script src="/external-scripts/jquery.validate.js" type="text/javascript" charset="utf-8"></script>
<script src="/external-scripts/jquery.validate.unobtrusive.js" type="text/javascript" charset="utf-8"></script>
<script src="/app-modules/js/settings.js" type="text/javascript" charset="utf-8"></script>
</body>
</html> | 35.463768 | 115 | 0.382918 |
292469a3e783ede28ce70b91c46eb4ce59c67bda | 1,998 | py | Python | pleepleecore/correction.py | pleeplee-robot/core | ba2be2060c1b41cd8868ecac37404d07edddac1e | [
"MIT"
] | 1 | 2018-11-05T08:54:15.000Z | 2018-11-05T08:54:15.000Z | pleepleecore/correction.py | pleeplee-robot/core | ba2be2060c1b41cd8868ecac37404d07edddac1e | [
"MIT"
] | null | null | null | pleepleecore/correction.py | pleeplee-robot/core | ba2be2060c1b41cd8868ecac37404d07edddac1e | [
"MIT"
] | null | null | null | #! /usr/bin/env python3
import math
PRECISION = 0.1
def getCorrection(start, end, pos):
"""Correct the angle for the trajectory adjustment
Function to get the correct angle correction when the robot deviates from
it's estimated trajectory.
Args:
start: The starting position of the robot.
end: The position the robot is supposed to arrive.
pos: The current position of the robot.
Returns:
An angle in radians between -pi and pi to correct the robot trajectory
and arrive succesfully at end position.
"""
(xs, ys) = start
(xe, ye) = end
(xp, yp) = pos
# Discard edge cases with no sense
assert(xs != xe or ys != ye)
assert(xp != xe or yp != ye)
assert(xs != xp or ys != yp)
# First get the line equation from start to end points.
# line equation follows the following pattern: y = m * x + b
m = 0.0
b = 0.0
if abs(xe - xs) > PRECISION:
m = (ye - ys) / (xe - xs)
b = ys - m * xs
else:
m = 1
b = - xs
# Get the perpendicular line equation to the first line
mp = 0.0
bp = 0.0
if abs(xe - xs) < PRECISION:
bp = yp
elif abs(m) < PRECISION:
mp = 1
bp = - xp
else:
mp = - 1 / m
bp = yp - mp * xp
# Get the point at the intersection of the two lines
xi = 0.0
yi = 0.0
if abs(xe - xs) < PRECISION:
xi = b
yi = bp
elif abs(m) < PRECISION:
xi = bp
yi = b
else:
xi = - (bp - b) / (mp - m)
yi = m * xi + b
# Get the distance between the tree points
dist_pi = math.sqrt((xp - xi) * (xp - xi) + (yp - yi) * (yp - yi))
dist_pe = math.sqrt((xp - xe) * (xp - xe) + (yp - ye) * (yp - ye))
dist_sp = math.sqrt((xs - xp) * (xs - xp) + (ys - yp) * (ys - yp))
# Get the offset angles alpha and beta
alpha = math.asin(dist_pi / dist_pe)
beta = math.asin(dist_pi / dist_sp)
return - (alpha + beta)
| 25.948052 | 78 | 0.541542 |
2d889b1b907a168eefccb95967044e4d63ed4e2a | 5,667 | html | HTML | app/content/texts/english_web/RM6.html | binu-alexander/thevachanonlineproject | 33c318bfc8b37de035d9c8e6b2a9bf8dea153b98 | [
"MIT"
] | 5 | 2019-12-18T05:17:19.000Z | 2020-04-04T07:07:21.000Z | app/content/texts/english_web/RM6.html | binu-alexander/thevachanonlineproject | 33c318bfc8b37de035d9c8e6b2a9bf8dea153b98 | [
"MIT"
] | 1 | 2020-04-30T01:25:38.000Z | 2020-04-30T01:25:38.000Z | app/content/texts/english_web/RM6.html | binu-alexander/thevachanonlineproject | 33c318bfc8b37de035d9c8e6b2a9bf8dea153b98 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html><head><meta charset='UTF-8' />
<meta name='viewport' content='width=device-width, initial-scale=1.0, user-scalable=no' />
<title>World English Bible Romans 6</title>
<link href='latin.css' rel='stylesheet' />
<link href='fallback.css' rel='stylesheet' />
</head><body dir='ltr' class='section-document'>
<div class='header'><div class='nav'>
<a class='home' href='index.html'> ☰ </a><a class='location latin' href='RM.html'> Romans 6 </a>
<a class='prev' href='RM5.html'> ◀ </a>
<a class='next' href='RM7.html'> ▶ </a>
</div></div>
<div class='chapter section RM6 engwebp eng RM latin' dir='ltr' data-id='RM6' data-nextid='RM7' data-previd='RM5' lang='en-US'>
<br><div class='c'>6</div>
<div class='p'>
<span class='v RM6_1' data-id='RM6_1'><span class='verse1 v-num v-1'>1 </span>What shall we say then? Shall we continue in sin, that grace may abound? </span>
<span class='v RM6_2' data-id='RM6_2'><span class='v-num v-2'>2 </span>May it never be! We who died to sin, how could we live in it any longer? </span>
<span class='v RM6_3' data-id='RM6_3'><span class='v-num v-3'>3 </span>Or don’t you know that all we who were baptized into Christ Jesus were baptized into his death? </span>
<span class='v RM6_4' data-id='RM6_4'><span class='v-num v-4'>4 </span>We were buried therefore with him through baptism into death, that just as Christ was raised from the dead through the glory of the Father, so we also might walk in newness of life. </span>
<span class='v RM6_5' data-id='RM6_5'><span class='v-num v-5'>5 </span>For if we have become united with him in the likeness of his death, we will also be part of his resurrection; </span>
<span class='v RM6_6' data-id='RM6_6'><span class='v-num v-6'>6 </span>knowing this, that our old man was crucified with him, that the body of sin might be done away with, so that we would no longer be in bondage to sin. </span>
<span class='v RM6_7' data-id='RM6_7'><span class='v-num v-7'>7 </span>For he who has died has been freed from sin. </span>
<span class='v RM6_8' data-id='RM6_8'><span class='v-num v-8'>8 </span>But if we died with Christ, we believe that we will also live with him; </span>
<span class='v RM6_9' data-id='RM6_9'><span class='v-num v-9'>9 </span>knowing that Christ, being raised from the dead, dies no more. Death no longer has dominion over him! </span>
<span class='v RM6_10' data-id='RM6_10'><span class='v-num v-10'>10 </span>For the death that he died, he died to sin one time; but the life that he lives, he lives to God. </span>
<span class='v RM6_11' data-id='RM6_11'><span class='v-num v-11'>11 </span>Thus consider yourselves also to be dead to sin, but alive to God in Christ Jesus our Lord. </span></div>
<div class='p'>
<span class='v RM6_12' data-id='RM6_12'><span class='v-num v-12'>12 </span>Therefore don’t let sin reign in your mortal body, that you should obey it in its lusts. </span>
<span class='v RM6_13' data-id='RM6_13'><span class='v-num v-13'>13 </span>Also, do not present your members to sin as instruments of unrighteousness, but present yourselves to God as alive from the dead, and your members as instruments of righteousness to God. </span>
<span class='v RM6_14' data-id='RM6_14'><span class='v-num v-14'>14 </span>For sin will not have dominion over you. For you are not under law, but under grace. </span></div>
<div class='p'>
<span class='v RM6_15' data-id='RM6_15'><span class='v-num v-15'>15 </span>What then? Shall we sin, because we are not under law, but under grace? May it never be! </span>
<span class='v RM6_16' data-id='RM6_16'><span class='v-num v-16'>16 </span>Don’t you know that when you present yourselves as servants and obey someone, you are the servants of whomever you obey; whether of sin to death, or of obedience to righteousness? </span>
<span class='v RM6_17' data-id='RM6_17'><span class='v-num v-17'>17 </span>But thanks be to God, that, whereas you were bondservants of sin, you became obedient from the heart to that form of teaching to which you were delivered. </span>
<span class='v RM6_18' data-id='RM6_18'><span class='v-num v-18'>18 </span>Being made free from sin, you became bondservants of righteousness. </span></div>
<div class='p'>
<span class='v RM6_19' data-id='RM6_19'><span class='v-num v-19'>19 </span>I speak in human terms because of the weakness of your flesh, for as you presented your members as servants to uncleanness and to wickedness upon wickedness, even so now present your members as servants to righteousness for sanctification. </span>
<span class='v RM6_20' data-id='RM6_20'><span class='v-num v-20'>20 </span>For when you were servants of sin, you were free from righteousness. </span>
<span class='v RM6_21' data-id='RM6_21'><span class='v-num v-21'>21 </span>What fruit then did you have at that time in the things of which you are now ashamed? For the end of those things is death. </span>
<span class='v RM6_22' data-id='RM6_22'><span class='v-num v-22'>22 </span>But now, being made free from sin and having become servants of God, you have your fruit of sanctification and the result of eternal life. </span>
<span class='v RM6_23' data-id='RM6_23'><span class='v-num v-23'>23 </span>For the wages of sin is death, but the free gift of God is eternal life in Christ Jesus our Lord. </span></div></div>
<div class='footnotes'>
</div>
<div class='footer'><div class='nav'>
<a class='prev' href='RM5.html'>◀</a>
<a class='home' href='index.html'>☰</a>
<a class='next' href='RM7.html'>▶</a>
</div></div>
</body></html>
| 108.980769 | 327 | 0.711488 |
1fd247ce54ce4f09164049c03349eef8d0d2eeb6 | 2,535 | html | HTML | index.html | renguangli/notes | d12a35978fbd74b274493c9c12fea0eb30072672 | [
"MIT"
] | null | null | null | index.html | renguangli/notes | d12a35978fbd74b274493c9c12fea0eb30072672 | [
"MIT"
] | 3 | 2022-02-22T02:25:02.000Z | 2022-02-23T01:28:32.000Z | index.html | renguangli/notes | d12a35978fbd74b274493c9c12fea0eb30072672 | [
"MIT"
] | null | null | null | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta name="description" content="Description">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify@4/lib/themes/vue.css">
<!-- Theme: Simple (latest v0.x.x) -->
<!-- <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-simple.css"> -->
<!-- Theme: Defaults --><!--
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/css/theme-defaults.css">-->
</head>
<body>
<nav>
<a href="/">首页</a>
<a href="/linux">Linux</a>
<a href="/influxdb">Influxdb</a>
</nav>
<div id="app"></div>
<script>
window.$docsify = {
name: 'GUANGLI.REN',
repo: 'https://github.com/renguangli',
loadSidebar: true,
autoHeader: true,
subMaxLevel: 4,
auto2top: true,
search: 'auto',
mergeNavbar: true,
formatUpdated: '{MM}/{DD} {HH}:{mm}',
themeable: {
readyTransition : true, // default
responsiveTables: true // default
}
}
module.exports = (req, res) => {
res.status(404).json({ message: 'Not Found' });
};
</script>
<!-- Docsify v4 -->
<script src="//cdn.jsdelivr.net/npm/docsify@4"></script>
<!-- docsify-themeable (latest v0.x.x) -->
<script src="https://cdn.jsdelivr.net/npm/docsify-themeable@0/dist/js/docsify-themeable.min.js"></script>
<script async src="//unpkg.com/docsify-copy-code"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
<script src="//unpkg.com/docsify-count/dist/countable.js"></script>
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.css">
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/gitalk.min.js"></script>
<script src="//cdn.jsdelivr.net/npm/gitalk/dist/gitalk.min.js"></script>
<script>
const gitalk = new Gitalk({
clientID: '8ff7ae9648607fe6e4b3',
clientSecret: '021487bed8b3097b6abfcf8e9c4b81778b175d24',
repo: 'gitalk-comments',
owner: 'renguangli',
admin: ['renguangli'],
// facebook-like distraction free mode
distractionFreeMode: false
})
</script>
</body>
</html>
| 36.73913 | 114 | 0.653254 |
b7e75412cd7d56c0b6de2c7f32548b3e0f0fd844 | 427 | swift | Swift | Base/Api/Responsable.swift | markgravity/Base | fe68e069951e39239412b7d2ef9af7c8d46606df | [
"MIT"
] | null | null | null | Base/Api/Responsable.swift | markgravity/Base | fe68e069951e39239412b7d2ef9af7c8d46606df | [
"MIT"
] | null | null | null | Base/Api/Responsable.swift | markgravity/Base | fe68e069951e39239412b7d2ef9af7c8d46606df | [
"MIT"
] | null | null | null | //
// Responsable.swift
// Base
//
// Created by Mark G on 10/25/18.
// Copyright © 2018 Mark G. All rights reserved.
//
import ObjectMapper
public protocol Responsable: Mappable {
static var endPoint: String { get }
}
public extension Responsable {
init() {
self.init(JSON: [:])!
}
static func == (lhs: Self, rhs: Self) -> Bool {
return lhs.toJSONString() == rhs.toJSONString()
}
}
| 17.791667 | 55 | 0.608899 |
134d7165fc19016eb91d8262ecdb636ac45c798c | 8,086 | h | C | PhysX-3.2.4_PC_SDK_Core/Source/GeomUtils/src/GuConvexMesh.h | emlowry/AIEFramework | 8f1dd02105237e72cfe303ec4c541eea7debd1f7 | [
"MIT"
] | null | null | null | PhysX-3.2.4_PC_SDK_Core/Source/GeomUtils/src/GuConvexMesh.h | emlowry/AIEFramework | 8f1dd02105237e72cfe303ec4c541eea7debd1f7 | [
"MIT"
] | null | null | null | PhysX-3.2.4_PC_SDK_Core/Source/GeomUtils/src/GuConvexMesh.h | emlowry/AIEFramework | 8f1dd02105237e72cfe303ec4c541eea7debd1f7 | [
"MIT"
] | 3 | 2017-01-04T19:48:57.000Z | 2020-03-24T03:05:27.000Z | // This code contains NVIDIA Confidential Information and is disclosed to you
// under a form of NVIDIA software license agreement provided separately to you.
//
// Notice
// NVIDIA Corporation and its licensors retain all intellectual property and
// proprietary rights in and to this software and related documentation and
// any modifications thereto. Any use, reproduction, disclosure, or
// distribution of this software and related documentation without an express
// license agreement from NVIDIA Corporation is strictly prohibited.
//
// ALL NVIDIA DESIGN SPECIFICATIONS, CODE ARE PROVIDED "AS IS.". NVIDIA MAKES
// NO WARRANTIES, EXPRESSED, IMPLIED, STATUTORY, OR OTHERWISE WITH RESPECT TO
// THE MATERIALS, AND EXPRESSLY DISCLAIMS ALL IMPLIED WARRANTIES OF NONINFRINGEMENT,
// MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
//
// Information and code furnished is believed to be accurate and reliable.
// However, NVIDIA Corporation assumes no responsibility for the consequences of use of such
// information or for any infringement of patents or other rights of third parties that may
// result from its use. No license is granted by implication or otherwise under any patent
// or patent rights of NVIDIA Corporation. Details are subject to change without notice.
// This code supersedes and replaces all information previously supplied.
// NVIDIA Corporation products are not authorized for use as critical
// components in life support devices or systems without express written approval of
// NVIDIA Corporation.
//
// Copyright (c) 2008-2013 NVIDIA Corporation. All rights reserved.
// Copyright (c) 2004-2008 AGEIA Technologies, Inc. All rights reserved.
// Copyright (c) 2001-2004 NovodeX AG. All rights reserved.
#ifndef PX_COLLISION_CONVEXMESH
#define PX_COLLISION_CONVEXMESH
#include "PxConvexMesh.h"
#include "CmPhysXCommon.h"
#include "PsUserAllocated.h"
#include "CmRefCountable.h"
#include "GuConvexHull.h"
#include "PxBitAndData.h"
#include "GuConvexMeshData.h"
// PX_SERIALIZATION
#include "CmReflection.h"
//~PX_SERIALIZATION
#include "CmMetaData.h"
#include "CmRenderOutput.h"
namespace physx
{
class BigConvexData;
class GuMeshFactory;
class PxInputStream;
namespace Cm
{
class Matrix34;
}
namespace Gu
{
struct HullPolygonData;
PX_INLINE PxU32 computeBufferSize(const Gu::ConvexHullData& data, PxU32 nb)
{
PxU32 bytesNeeded = sizeof(Gu::HullPolygonData) * data.mNbPolygons;
bytesNeeded += sizeof(PxVec3) * data.mNbHullVertices;
bytesNeeded += sizeof(PxU8) * data.mNbEdges * 2; // mFacesByEdges8
bytesNeeded += sizeof(PxU8) * data.mNbHullVertices * 3; // mFacesByVertices8;
bytesNeeded += sizeof(PxU8) * nb; // mVertexData8
//4 align the whole thing!
const PxU32 mod = bytesNeeded % sizeof(PxReal);
if (mod)
bytesNeeded += sizeof(PxReal) - mod;
return bytesNeeded;
}
// 0: includes raycast map
// 1: discarded raycast map
// 2: support map not always there
// 3: support stackless trees for non-recursive collision queries
// 4: no more opcode model
// 5: valencies table and gauss map combined, only exported over a vertex count treshold that depends on the platform cooked for.
// 6: removed support for edgeData16.
// 7: removed support for edge8Data.
// 8: removed support for triangles.
// 9: removed local sphere.
//10: removed geometric center.
//11: removed mFlags, and mERef16 from Poly; nbVerts is just a byte.
//12: removed explicit minimum, maximum from Poly
//13: internal objects
#define PX_CONVEX_VERSION 13
class ConvexMesh : public PxConvexMesh, public Ps::UserAllocated, public Cm::RefCountable
{
public:
// PX_SERIALIZATION
PX_PHYSX_COMMON_API ConvexMesh(PxRefResolver& v) : PxConvexMesh(v), Cm::RefCountable(v)
{
mNb.setBit();
}
PX_PHYSX_COMMON_API DECLARE_SERIAL_CLASS(Gu::ConvexMesh, PxConvexMesh)
PX_PHYSX_COMMON_API virtual void exportExtraData(PxSerialStream& stream);
PX_PHYSX_COMMON_API virtual char* importExtraData(char* address, PxU32& totalPadding);
PX_PHYSX_COMMON_API virtual void onRefCountZero();
PX_PHYSX_COMMON_API virtual PxU32 getOrder() const { return PxSerialOrder::eCONVEX; }
PX_FORCE_INLINE void setMeshFactory(GuMeshFactory* f) { mMeshFactory = f; }
PX_PHYSX_COMMON_API static void getMetaData(PxSerialStream& stream);
//~PX_SERIALIZATION
PX_PHYSX_COMMON_API ConvexMesh();
PX_PHYSX_COMMON_API bool load(PxInputStream& stream);
// PxConvexMesh
PX_PHYSX_COMMON_API virtual void release();
PX_PHYSX_COMMON_API virtual PxU32 getNbVertices() const { return mHullData.mNbHullVertices; }
PX_PHYSX_COMMON_API virtual const PxVec3* getVertices() const { return mHullData.getHullVertices(); }
PX_PHYSX_COMMON_API virtual const PxU8* getIndexBuffer() const { return mHullData.getVertexData8(); }
PX_PHYSX_COMMON_API virtual PxU32 getNbPolygons() const { return mHullData.mNbPolygons; }
PX_PHYSX_COMMON_API virtual bool getPolygonData(PxU32 i, PxHullPolygon& data) const;
PX_PHYSX_COMMON_API virtual PxU32 getReferenceCount() const;
PX_PHYSX_COMMON_API virtual void getMassInformation(PxReal& mass, PxMat33& localInertia, PxVec3& localCenterOfMass) const;
PX_PHYSX_COMMON_API virtual PxBounds3 getLocalBounds() const { return mHullData.mAABB; }
//~PxConvexMesh
PX_FORCE_INLINE PxU32 getNbVerts() const { return mHullData.mNbHullVertices; }
PX_FORCE_INLINE const PxVec3* getVerts() const { return mHullData.getHullVertices(); }
PX_FORCE_INLINE PxU32 getNbPolygonsFast() const { return mHullData.mNbPolygons; }
PX_FORCE_INLINE const HullPolygonData& getPolygon(PxU32 i) const { return mHullData.mPolygons[i]; }
PX_FORCE_INLINE const HullPolygonData* getPolygons() const { return mHullData.mPolygons; }
PX_FORCE_INLINE PxU32 getNbEdges() const { return mHullData.mNbEdges; }
PX_FORCE_INLINE const ConvexHullData& getHull() const { return mHullData; }
PX_FORCE_INLINE ConvexHullData& getHull() { return mHullData; }
PX_FORCE_INLINE const PxBounds3& getLocalBoundsFast() const { return mHullData.mAABB; }
PX_FORCE_INLINE PxReal getMass() const { return mMass; }
PX_FORCE_INLINE const PxMat33& getInertia() const { return mInertia; }
PX_FORCE_INLINE BigConvexData* getBigConvexData() const { return mBigConvexData; }
PX_FORCE_INLINE void setBigConvexData(BigConvexData* bcd) { mBigConvexData = bcd; }
PX_FORCE_INLINE PxU32 getBufferSize() const { return computeBufferSize(mHullData, getNb()); }
protected:
ConvexHullData mHullData;
PxBitAndDword mNb; // ### PT: added for serialization. Try to remove later?
BigConvexData* mBigConvexData; //!< optional, only for large meshes! PT: redundant with ptr in chull data? Could also be end of other buffer
PxReal mMass; //this is mass assuming a unit density that can be scaled by instances!
PxMat33 mInertia; //in local space of mesh!
protected:
// only accessible via ref count
PX_PHYSX_COMMON_API virtual ~ConvexMesh();
private:
GuMeshFactory* mMeshFactory; // PT: changed to pointer for serialization
PX_FORCE_INLINE PxU32 getNb() const { return mNb; }
PX_FORCE_INLINE PxU32 ownsMemory() const { return !mNb.isBitSet(); }
#if PX_ENABLE_DEBUG_VISUALIZATION
public:
/**
\brief Perform convex mesh geometry debug visualization
\param[out] Debug renderer.
\param[out] World position.
*/
PX_PHYSX_COMMON_API void debugVisualize(Cm::RenderOutput& out, const Cm::Matrix34& absPose, const PxBounds3& cullbox,
const PxU64 mask, const PxReal fscale, const PxU32 numMaterials) const;
#endif
};
} // namespace Gu
}
#endif
| 43.473118 | 150 | 0.720752 |
6b6c34064e476197c19ba14b1f8e97448b5ee471 | 5,369 | h | C | gromacs-4.6.5/include/pdb2top.h | farajilab/gifs_release | ffa674110bcd15de851a8b6a703b4f4bc96fcd2d | [
"MIT"
] | 2 | 2022-03-04T18:56:08.000Z | 2022-03-22T16:49:22.000Z | gromacs-4.6.5/include/pdb2top.h | farajilab/gifs_release | ffa674110bcd15de851a8b6a703b4f4bc96fcd2d | [
"MIT"
] | null | null | null | gromacs-4.6.5/include/pdb2top.h | farajilab/gifs_release | ffa674110bcd15de851a8b6a703b4f4bc96fcd2d | [
"MIT"
] | 1 | 2022-02-08T00:11:00.000Z | 2022-02-08T00:11:00.000Z | /*
* This file is part of the GROMACS molecular simulation package.
*
* Copyright (c) 1991-2000, University of Groningen, The Netherlands.
* Copyright (c) 2001-2004, The GROMACS development team,
* check out http://www.gromacs.org for more information.
* Copyright (c) 2012,2013, by the GROMACS development team, led by
* David van der Spoel, Berk Hess, Erik Lindahl, and including many
* others, as listed in the AUTHORS file in the top-level source
* directory and at http://www.gromacs.org.
*
* GROMACS is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
* as published by the Free Software Foundation; either version 2.1
* of the License, or (at your option) any later version.
*
* GROMACS is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with GROMACS; if not, see
* http://www.gnu.org/licenses, or write to the Free Software Foundation,
* Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* If you want to redistribute modifications to GROMACS, please
* consider that scientific software is very special. Version
* control is crucial - bugs must be traceable. We will be happy to
* consider code for inclusion in the official distribution, but
* derived work must not be called official GROMACS. Details are found
* in the README & COPYING files - if they are missing, get the
* official version at http://www.gromacs.org.
*
* To help us fund GROMACS development, we humbly ask that you cite
* the research papers on the package. Check out http://www.gromacs.org.
*/
#ifndef _pdb2top_h
#define _pdb2top_h
#include "visibility.h"
#include "typedefs.h"
#include "grompp.h"
#include "gpp_atomtype.h"
#include "toputil.h"
#include "hackblock.h"
/* this *MUST* correspond to array in pdb2top.c */
enum {
ehisA, ehisB, ehisH, ehis1, ehisNR
};
GMX_LIBGMXPREPROCESS_EXPORT
extern const char *hh[ehisNR];
typedef struct {
int res1, res2;
char *a1, *a2;
} t_ssbond;
GMX_LIBGMXPREPROCESS_EXPORT
void choose_ff(const char *ffsel,
char *forcefield, int ff_maxlen,
char *ffdir, int ffdir_maxlen);
/* Find force fields in the current and libdirs and choose an ff.
* If ffsel!=NULL: search for ffsel.
* If ffsel==NULL: interactive selection.
*/
GMX_LIBGMXPREPROCESS_EXPORT
void choose_watermodel(const char *wmsel, const char *ffdir,
char **watermodel);
/* Choose, possibly interactively, which water model to include,
* based on the wmsel command line option choice and watermodels.dat
* in ffdir.
*/
GMX_LIBGMXPREPROCESS_EXPORT
void get_hackblocks_rtp(t_hackblock **hb, t_restp **restp,
int nrtp, t_restp rtp[],
int nres, t_resinfo *resinfo,
int nterpairs,
t_hackblock **ntdb, t_hackblock **ctdb,
int *rn, int *rc);
/* Get the database entries for the nres residues in resinfo
* and store them in restp and hb.
*/
GMX_LIBGMXPREPROCESS_EXPORT
void match_atomnames_with_rtp(t_restp restp[], t_hackblock hb[],
t_atoms *pdba, rvec *x,
gmx_bool bVerbose);
/* Check if atom in pdba need to be deleted of renamed due to tdb or hdb.
* If renaming involves atoms added wrt to the rtp database,
* add these atoms to restp.
*/
GMX_LIBGMXPREPROCESS_EXPORT
void print_top_comment(FILE *out, const char *filename, const char *generator, const char *ffdir, gmx_bool bITP);
GMX_LIBGMXPREPROCESS_EXPORT
void print_top_header(FILE *out, const char *filename, const char *title, gmx_bool bITP,
const char *ffdir, real mHmult);
GMX_LIBGMXPREPROCESS_EXPORT
void print_top_mols(FILE *out,
const char *title, const char *ffdir, const char *water,
int nincl, char **incls,
int nmol, t_mols *mols);
GMX_LIBGMXPREPROCESS_EXPORT
void write_top(FILE *out, char *pr, char *molname,
t_atoms *at, gmx_bool bRTPresname,
int bts[], t_params plist[], t_excls excls[],
gpp_atomtype_t atype, int *cgnr, int nrexcl);
/* NOTE: nrexcl is not the size of *excl! */
GMX_LIBGMXPREPROCESS_EXPORT
void pdb2top(FILE *top_file, char *posre_fn, char *molname,
t_atoms *atoms, rvec **x,
gpp_atomtype_t atype, t_symtab *tab,
int nrtp, t_restp rtp[],
t_restp *restp, t_hackblock *hb,
int nterpairs, t_hackblock **ntdb, t_hackblock **ctdb,
gmx_bool bAllowMissing,
gmx_bool bVsites, gmx_bool bVsiteAromatics,
const char *ff, const char *ffdir,
real mHmult,
int nssbonds, t_ssbond ssbonds[],
real long_bond_dist, real short_bond_dist,
gmx_bool bDeuterate, gmx_bool bChargeGroups, gmx_bool bCmap,
gmx_bool bRenumRes, gmx_bool bRTPresname);
/* Create a topology ! */
GMX_LIBGMXPREPROCESS_EXPORT
void print_sums(t_atoms *atoms, gmx_bool bSystem);
#endif /* _pdb2top_h */
| 38.35 | 113 | 0.681877 |
2f55d2c35f4c2a4616bf720cd535621589c34d70 | 278 | php | PHP | app/Models/PatternNomenclatures.php | romlg/ilion | 7f657d5d1ac4781ddfa8b0c2c4de3dc0b86459ae | [
"MIT"
] | null | null | null | app/Models/PatternNomenclatures.php | romlg/ilion | 7f657d5d1ac4781ddfa8b0c2c4de3dc0b86459ae | [
"MIT"
] | 9 | 2020-04-07T18:32:57.000Z | 2022-02-26T21:24:19.000Z | app/Models/PatternNomenclatures.php | romlg/ilion | 7f657d5d1ac4781ddfa8b0c2c4de3dc0b86459ae | [
"MIT"
] | null | null | null | <?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class PatternNomenclatures extends Model
{
protected $table = 'pattern_nomenclatures';
protected $primaryKey = 'pattern_id';
protected $fillable = [
'pattern_id',
'n_id'
];
}
| 17.375 | 47 | 0.672662 |
98a7a69c4b5bb73805dc262a09a23f93a90a22cd | 132 | kt | Kotlin | exercises/practice/resistor-color-trio/src/main/kotlin/ResistorColorTrio.kt | Tarnic/kotlin | cd0b359248c04e8e8dd37369d377ccaec22379e5 | [
"MIT"
] | 142 | 2017-06-19T13:34:35.000Z | 2022-03-29T19:57:54.000Z | exercises/practice/resistor-color-trio/src/main/kotlin/ResistorColorTrio.kt | Tarnic/kotlin | cd0b359248c04e8e8dd37369d377ccaec22379e5 | [
"MIT"
] | 273 | 2017-06-19T14:45:28.000Z | 2022-03-25T13:33:04.000Z | exercises/practice/resistor-color-trio/src/main/kotlin/ResistorColorTrio.kt | Tarnic/kotlin | cd0b359248c04e8e8dd37369d377ccaec22379e5 | [
"MIT"
] | 202 | 2017-06-19T04:00:46.000Z | 2022-03-29T07:10:24.000Z | object ResistorColorTrio {
fun text(vararg input: Color): String {
TODO("Implement this to complete the task")
}
}
| 18.857143 | 51 | 0.651515 |
f06f0dc5f9ba97e6f25ce1bb92497c913bff76ec | 1,525 | js | JavaScript | dist/js/validation_locales/sr_Latin-json.js | apicore-engineering/intl-date-time | 0dc1674133c2f05026c09b541f85bf72bee19c9e | [
"MIT"
] | null | null | null | dist/js/validation_locales/sr_Latin-json.js | apicore-engineering/intl-date-time | 0dc1674133c2f05026c09b541f85bf72bee19c9e | [
"MIT"
] | null | null | null | dist/js/validation_locales/sr_Latin-json.js | apicore-engineering/intl-date-time | 0dc1674133c2f05026c09b541f85bf72bee19c9e | [
"MIT"
] | null | null | null | (window.wpJsonpIntlDateTime=window.wpJsonpIntlDateTime||[]).push([[46],{142:function(e){e.exports=JSON.parse('{"code":"sr_Latin","messages":{"alpha":"Polje {_field_} može sadržati samo slova","alpha_dash":"Polje {_field_} može sadržati alfanumeričke karaktere i povlake","alpha_num":"Polje {_field_} može sadržati samo alfanumeričke karaktere","alpha_spaces":"Polje {_field_} može sadržati samo alfanumeričke karaktere i razmake","between":"Polje {_field_} mora biti između {min} i {max}","confirmed":"Potvrda polja {_field_} se ne poklapa","date_format":"Polje {_field_} mora biti u formatu {format}","digits":"Polje {_field_} mora biti broj i sadržati tačno {length} cifara","dimensions":"Polje {_field_} mora biti {width} x {height} piksela","email":"Polje {_field_} mora biti validan imejl","excluded":"Polje {_field_} mora imati validnu vrednost","ext":"Polje {_field_} mora biti validan fajl","image":"Polje {_field_} mora biti slika","max":"Polje {_field_} ne sme biti duže od {length} karaktera","max_value":"Polje {_field_} ne sme biti veće od {max}","mimes":"Polje {_field_} mora biti validan tip fajla","min":"Polje {_field_} mora sadržati najmanje {length} karaktera","min_value":"Polje {_field_} ne sme biti manje od {min}","numeric":"Polje {_field_} mora biti broj","oneOf":"Polje {_field_} mora biti validna vrednost","regex":"Format polja {_field_} nije validan","required":"Polje {_field_} je obavezno","required_if":"Polje {_field_} je obavezno","size":"Polje {_field_} mora biti manje od {size}KB"}}')}}]); | 1,525 | 1,525 | 0.740328 |
bc804b1956c7f2db341cbce9810cf7d67c73c527 | 991 | swift | Swift | RateMyTalkAtMobOS/Classes/GUI/Manager/RMTGUIManager.swift | grigaci/RateMyTalkAtMobOS | 681c17699ed930e770d2d8abed487e82de5d9d90 | [
"BSD-3-Clause"
] | null | null | null | RateMyTalkAtMobOS/Classes/GUI/Manager/RMTGUIManager.swift | grigaci/RateMyTalkAtMobOS | 681c17699ed930e770d2d8abed487e82de5d9d90 | [
"BSD-3-Clause"
] | null | null | null | RateMyTalkAtMobOS/Classes/GUI/Manager/RMTGUIManager.swift | grigaci/RateMyTalkAtMobOS | 681c17699ed930e770d2d8abed487e82de5d9d90 | [
"BSD-3-Clause"
] | null | null | null | //
// RMTGUIManager.swift
// RateMyTalkAtMobOS
//
// Created by Bogdan Iusco on 10/5/14.
// Copyright (c) 2014 Grigaci. All rights reserved.
//
import UIKit
class RMTGUIManager {
class var sharedInstance : RMTGUIManager {
struct Static {
static var onceToken : dispatch_once_t = 0
static var instance : RMTGUIManager? = nil
}
dispatch_once(&Static.onceToken) {
Static.instance = RMTGUIManager()
}
return Static.instance!
}
lazy var navigationController: UINavigationController = {
let rootViewController = RMTAllSessionsViewController(nibName: nil, bundle: nil)
let temp = UINavigationController(rootViewController: rootViewController)
return temp
}()
var window: UIWindow? {
didSet {
window?.rootViewController = navigationController
window?.tintColor = UIColor.blackColor()
}
}
init () {
self.window = nil
}
}
| 24.170732 | 87 | 0.631685 |
bb495c268d0402acff0fb242c767bf1642247867 | 460 | html | HTML | HTML/D/1229.html | cocoatomo/Python3.2_C_API_Tutorial | e33d4a285429935aca3178dc2a97aca3ab484232 | [
"PSF-2.0"
] | 2 | 2019-03-03T00:04:36.000Z | 2020-10-06T16:22:38.000Z | HTML/D/1229.html | cocoatomo/Python3.2_C_API_Tutorial | e33d4a285429935aca3178dc2a97aca3ab484232 | [
"PSF-2.0"
] | null | null | null | HTML/D/1229.html | cocoatomo/Python3.2_C_API_Tutorial | e33d4a285429935aca3178dc2a97aca3ab484232 | [
"PSF-2.0"
] | 1 | 2019-03-03T00:04:38.000Z | 2019-03-03T00:04:38.000Z | <html>
<head>
<title>FFI_WIN64</title>
<meta name='robots' content='noindex,nofollow'>
<meta name='generator' content='GLOBAL-5.8.1'>
</head>
<body text='#191970' bgcolor='#f5f5dc' vlink='gray'>
<pre>
<a href='../S/2375.html#L72'>FFI_WIN64</a> 72 Modules/_ctypes/libffi/src/x86/ffitarget.h FFI_WIN64,
<a href='../S/2375.html#L73'>FFI_WIN64</a> 73 Modules/_ctypes/libffi/src/x86/ffitarget.h FFI_DEFAULT_ABI = FFI_WIN64,
</pre>
</body>
</html>
| 32.857143 | 126 | 0.680435 |
1d29b64ce7e63b37eafa508202a8590b2f946e5b | 2,565 | kt | Kotlin | app/src/main/java/com/example/noteapp/adapter/NotesAdapter.kt | malikdawar/NotesApp | 2c73c6bd4ef63fbf60cbd98e55b25d5b7fa7891d | [
"MIT"
] | 2 | 2020-12-13T18:45:31.000Z | 2021-03-30T17:37:18.000Z | app/src/main/java/com/example/noteapp/adapter/NotesAdapter.kt | MalikHamidJaved/NotesApp | 2c73c6bd4ef63fbf60cbd98e55b25d5b7fa7891d | [
"MIT"
] | null | null | null | app/src/main/java/com/example/noteapp/adapter/NotesAdapter.kt | MalikHamidJaved/NotesApp | 2c73c6bd4ef63fbf60cbd98e55b25d5b7fa7891d | [
"MIT"
] | 1 | 2021-03-30T17:37:10.000Z | 2021-03-30T17:37:10.000Z | package com.example.noteapp.adapter
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.cardview.widget.CardView
import androidx.recyclerview.widget.RecyclerView
import com.example.noteapp.R
import com.example.noteapp.database.model.Notes
import com.example.noteapp.extensions.convertDateToFormat
import com.example.noteapp.extensions.gone
import com.example.noteapp.extensions.visible
import com.example.noteapp.utils.load
/**
* The NotesAdapter.kt to populate the recyclerview
* @author Malik Dawar, malikdawar@hotmail.com
*/
class NotesAdapter(
private val noteItemClickListener: NoteItemClickListener,
private val notesList: List<Notes>
) : RecyclerView.Adapter<NotesAdapter.MyViewHolder>() {
inner class MyViewHolder(view: View) : RecyclerView.ViewHolder(view) {
//creating views
var mainLayout = view.findViewById(R.id.mainLayout) as CardView
var imgView = view.findViewById(R.id.imgView) as ImageView
var tvTitle = view.findViewById(R.id.tvTitle) as TextView
var tvDetails = view.findViewById(R.id.tvDetails) as TextView
var tvDate = view.findViewById(R.id.tvDate) as TextView
var tvUpdatedTag = view.findViewById(R.id.tvUpdatedTag) as TextView
}
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): MyViewHolder {
//returning the View Holder
return MyViewHolder(
LayoutInflater.from(parent.context)
.inflate(R.layout.item_notes_ui, parent, false)
)
}
override fun getItemCount(): Int {
return notesList.size
}
override fun onBindViewHolder(holder: MyViewHolder, position: Int) {
//populating the data from list to view
val note = notesList[position]
note.run {
holder.tvTitle.text = title
holder.tvDetails.text = description
holder.imgView.load(image)
holder.tvDate.text = date?.convertDateToFormat()
if (isUpdated)
holder.tvUpdatedTag.visible()
else
holder.tvUpdatedTag.gone()
//attaching the onCLick to the layout
holder.mainLayout.setOnClickListener {
noteItemClickListener.onItemClickListener(this)
}
}
}
//interface to get the callback
interface NoteItemClickListener {
fun onItemClickListener(note: Notes)
}
} | 34.662162 | 85 | 0.698246 |
38a116096efd7b4b941f7a2cc0517d6f07f4ae25 | 579 | sql | SQL | Databases MSSQL Server Exam - 21 Jun 2020/10. GDPR Violation.sql | StefanIvanovC/Exams-Softuni | f8b49607aa4993e197d759d887cdf98e8827a995 | [
"MIT"
] | 1 | 2020-10-22T18:31:40.000Z | 2020-10-22T18:31:40.000Z | Databases MSSQL Server Exam - 21 Jun 2020/10. GDPR Violation.sql | StefanIvanovC/Exams-Softuni | f8b49607aa4993e197d759d887cdf98e8827a995 | [
"MIT"
] | null | null | null | Databases MSSQL Server Exam - 21 Jun 2020/10. GDPR Violation.sql | StefanIvanovC/Exams-Softuni | f8b49607aa4993e197d759d887cdf98e8827a995 | [
"MIT"
] | null | null | null | USE TripService
SELECT
TripId,
FirstName + ' ' + ISNULL(MiddleName + ' ', '') + LastName AS FullName,
c.Name AS [From],
ch.Name [To],
CASE
WHEN CancelDate IS NULL THEN CONVERT(NVARCHAR(MAX),DATEDIFF(DAY, ArrivalDate, ReturnDate)) + ' days'
ELSE 'Canceled'
END AS [Duration]
FROM Accounts AS a
JOIN AccountsTrips AS at ON a.Id = at.AccountId
JOIN Trips AS t ON t.Id = at.TripId
JOIN Cities AS c ON c.Id = a.CityId
JOIN Rooms AS r ON r.Id = t.RoomId
JOIN Hotels AS h ON h.Id = r.HotelId
JOIN Cities AS ch ON ch.Id = h.CityId
ORDER BY FullName, TripId, c.Name, ch.Name
| 27.571429 | 101 | 0.701209 |
eca501b2935daa4e7ef90cd7b205d6e630afb9d4 | 73 | lua | Lua | tests/lua/default-method.lua | zweimach/amulet | fcba0b7e198b8d354e95722bbe118bccc8483f4e | [
"BSD-3-Clause"
] | 1 | 2021-07-07T10:59:49.000Z | 2021-07-07T10:59:49.000Z | tests/lua/default-method.lua | zweimach/amulet | fcba0b7e198b8d354e95722bbe118bccc8483f4e | [
"BSD-3-Clause"
] | null | null | null | tests/lua/default-method.lua | zweimach/amulet | fcba0b7e198b8d354e95722bbe118bccc8483f4e | [
"BSD-3-Clause"
] | null | null | null | do
local use = print
use(function(hf) return "tail" .. "()" end)
end
| 14.6 | 45 | 0.60274 |
e602e7a501263a9d93c8e0959f137a11498612b1 | 2,198 | swift | Swift | 2020.1.26/FBGroupsSwiftUI/FBGroupsSwiftUI/ViewController.swift | Lance-ahn/TIL | d6a7d00b216d7945930a7d77463dc8f1022dbd26 | [
"MIT"
] | null | null | null | 2020.1.26/FBGroupsSwiftUI/FBGroupsSwiftUI/ViewController.swift | Lance-ahn/TIL | d6a7d00b216d7945930a7d77463dc8f1022dbd26 | [
"MIT"
] | null | null | null | 2020.1.26/FBGroupsSwiftUI/FBGroupsSwiftUI/ViewController.swift | Lance-ahn/TIL | d6a7d00b216d7945930a7d77463dc8f1022dbd26 | [
"MIT"
] | null | null | null | //
// ViewController.swift
// FBGroupsSwiftUI
//
// Created by macbook on 2020/01/26.
// Copyright © 2020 Lance. All rights reserved.
//
import UIKit
class ViewController: UIViewController {
let searchBar = UISearchBar()
override func viewDidLoad() {
super.viewDidLoad()
setupUI()
}
private func setupUI() {
view.backgroundColor = .white
navigationController?.navigationBar.prefersLargeTitles = true
navigationItem.title = "Search Bar"
navigationController?.navigationBar.barTintColor = .red
navigationController?.navigationBar.barTintColor = UIColor(red: 55/255, green: 120/255, blue: 250/255, alpha: 1)
navigationController?.navigationBar.isTranslucent = false
navigationController?.navigationBar.barStyle = .black
navigationController?.navigationBar.tintColor = .white
searchBar.sizeToFit()
searchBar.delegate = self
searchBar.backgroundColor = .gray
searchBar.showsCancelButton = true
showsSearchButton(true)
}
func showsSearchButton(_ shouldShow: Bool) {
let searchButton = UIBarButtonItem(
barButtonSystemItem: .search,
target: self,
action: #selector(handleShowSearchBar))
navigationItem.rightBarButtonItem = shouldShow ? searchButton : nil
}
func search(_ shouldSearch: Bool) {
showsSearchButton(!shouldSearch)
navigationItem.titleView = shouldSearch ? searchBar : nil
}
// MARK: Actions
@objc private func handleShowSearchBar() {
search(true)
searchBar.becomeFirstResponder()
}
}
extension ViewController: UISearchBarDelegate {
func searchBarTextDidBeginEditing(_ searchBar: UISearchBar) {
print("Search bar did beging editint")
}
func searchBarTextDidEndEditing(_ searchBar: UISearchBar) {
print("search bar did end editing")
}
func searchBarCancelButtonClicked(_ searchBar: UISearchBar) {
search(false)
}
func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) {
}
}
| 28.179487 | 120 | 0.655141 |