content
stringlengths
7
1.05M
def qt(a): res = 0 n = len(a) ldial, rdial = {}, {} threat = [] for i in range(n): j = a[i] threat.append(0) if i + j in ldial: threat[i] += 1 pre = ldial[i + j][-1] threat[pre] += 1 if threat[pre] == 4: return 4 ldial[i + j].append(i) else: ldial[i + j] = [i] if i - j in rdial: threat[i] += 1 pre = rdial[i - j][-1] threat[pre] += 1 if threat[pre] == 4: return 4 rdial[i - j].append(i) else: rdial[i - j] = [i] return max(threat)
# https://leetcode.com/problems/maximum-population-year def maximum_population(logs): population_by_year = {} for [birth, death] in logs: for year in range(birth, death): if year in population_by_year: population_by_year[year] += 1 else: population_by_year[year] = 1 earliest_year = 0 max_population = 0 for year, population in population_by_year.items(): if population == max_population: earliest_year = min(earliest_year, year) if population > max_population: earliest_year = year max_population = population return earliest_year
n=5 for i in range (n): for j in range (i,n-1): print(' ', end='') for k in range (i+1): print('* ', end='') for l in range (i+1, n): print(' ', end=' ') for m in range (i+1): print('* ', end='') print()
# Basic config for stuff that can be easily changed, but which is git-managed. # See also apikeys_sample.py for the configs which are _not_ git-managed. #server_domain = "http://www.infiniteglitch.net" server_domain = "http://50.116.55.59" http_port = 8888 # Port for the main web site, in debug mode renderer_port = 8889 # Port for the renderer (/all.mp3 and friends) # Track limits in seconds max_track_length = 400 min_track_length = 90
# Definition for singly-linked list. class ListNode: def __init__(self, val): self.val = val self.next = None # the pointer node1 = ListNode(2) node2 = ListNode(5) node3 = ListNode(7) node1.next = node2 # 2->5 node2.next = node3 # 5->7 # the entire linked list : 2->5->7 while node1: print(node1.val) node1 = node1.next
#To Calculate Surface area of a cylinder #Formula = (2*3.14*r*h)+( 2*3.14*r*r) r=float(input('Enter the radius of the Cylinder: ')) h=float(input('Enter the height of the Cylinder: ')) SA= (2*3.14*r*h) + ( 2*3.14*r*r) print('The Surface Area is:', SA,'sq. m')
# see credits.txt aliceblue = "#F0F8FF" antiquewhite = "#FAEBD7" aqua = "#00FFFF" aquamarine = "#7FFFD4" azure = "#F0FFFF" beige = "#F5F5DC" bisque = "#FFE4C4" blanchedalmond = "#FFEBCD" blue = "#0000FF" blueviolet = "#8A2BE2" brown = "#A52A2A" burlywood = "#DEB887" cadetblue = "#5F9EA0" chocolate = "#D2691E" coral = "#FF7F50" cornflowerblue = "#6495ED" cornsilk = "#FFF8DC" crimson = "#DC143C" cyan = "#00FFFF" darkblue = "#00008B" darkcyan = "#008B8B" darkgoldenrod = "#B8860B" darkgray = "#A9A9A9" darkgreen = "#006400" darkkhaki = "#BDB76B" darkmagenta = "#8B008B" darkolivegreen = "#556B2F" darkorange = "#FF8C00" darkorchid = "#9932CC" darkred = "#8B0000" darksalmon = "#E9967A" darkseagreen = "#8FBC8B" darkslateblue = "#483D8B" darkslategray = "#2F4F4F" darkturquoise = "#00CED1" darkviolet = "#9400D3" deeppink = "#FF1493" deepskyblue = "#00BFFF" dimgray = "#696969" dodgerblue = "#1E90FF" firebrick = "#B22222" floralwhite = "#FFFAF0" forestgreen = "#228B22" fuchsia = "#FF00FF" gainsboro = "#DCDCDC" ghostwhite = "#F8F8FF" gold = "#FFD700" goldenrod = "#DAA520" gray = "#808080" green = "#008000" greenyellow = "#ADFF2F" honeydew = "#F0FFF0" hotpink = "#FF69B4" indianred = "#CD5C5C" indigo = "#4B0082" ivory = "#FFFFF0" khaki = "#F0E68C" lavender = "#E6E6FA" lavenderblush = "#FFF0F5" lawngreen = "#7CFC00" lemonchiffon = "#FFFACD" lightblue = "#ADD8E6" lightcoral = "#F08080" lightcyan = "#E0FFFF" lightgoldenrodyellow = "#FAFAD2" lightgray = "#D3D3D3" lightgreen = "#90EE90" lightpink = "#FFB6C1" lightsalmon = "#FFA07A" lightseagreen = "#20B2AA" lightskyblue = "#87CEFA" lightslategray = "#778899" lightsteelblue = "#B0C4DE" lightyellow = "#FFFFE0" lime = "#00FF00" limegreen = "#32CD32" linen = "#FAF0E6" magenta = "#FF00FF" maroon = "#800000" mediumaquamarine = "#66CDAA" mediumblue = "#0000CD" mediumorchid = "#BA55D3" mediumpurple = "#9370DB" mediumseagreen = "#3CB371" mediumslateblue = "#7B68EE" mediumspringgreen = "#00FA9A" mediumturquoise = "#48D1CC" mediumvioletred = "#C71585" midnightblue = "#191970" mintcream = "#F5FFFA" mistyrose = "#FFE4E1" moccasin = "#FFE4B5" navajowhite = "#FFDEAD" navy = "#000080" oldlace = "#FDF5E6" olive = "#808000" olivedrab = "#6B8E23" orange = "#FFA500" orangered = "#FF4500" orchid = "#DA70D6" palegoldenrod = "#EEE8AA" palegreen = "#98FB98" paleturquoise = "#AFEEEE" palevioletred = "#DB7093" papayawhip = "#FFEFD5" peachpuff = "#FFDAB9" peru = "#CD853F" pink = "#FFC0CB" plum = "#DDA0DD" powderblue = "#B0E0E6" purple = "#800080" rebeccapurple = "#663399" red = "#FF0000" rosybrown = "#BC8F8F" royalblue = "#4169E1" saddlebrown = "#8B4513" salmon = "#FA8072" sandybrown = "#F4A460" seagreen = "#2E8B57" seashell = "#FFF5EE" sienna = "#A0522D" silver = "#C0C0C0" skyblue = "#87CEEB" slateblue = "#6A5ACD" slategray = "#708090" snow = "#FFFAFA" springgreen = "#00FF7F" steelblue = "#4682B4" tan = "#D2B48C" thistle = "#D8BFD8" tomato = "#FF6347" turquoise = "#40E0D0" violet = "#EE82EE" wheat = "#F5DEB3" white = "#FFFFFF" whitesmoke = "#F5F5F5" yellow = "#FFFF00" yellowgreen = "#9ACD32" abbey = "#4C4F56" acadia = "#1B1404" acapulco = "#7CB0A1" aero_blue = "#C9FFE5" affair = "#714693" akaroa = "#D4C4A8" alabaster = "#FAFAFA" albescent_white = "#F5E9D3" algae_green = "#93DFB8" alice_blue = "#F0F8FF" alizarin_crimson = "#E32636" allports = "#0076A3" almond = "#EED9C4" almond_frost = "#907B71" alpine = "#AF8F2C" alto = "#DBDBDB" aluminium = "#A9ACB6" amaranth = "#E52B50" amazon = "#3B7A57" amber = "#FFBF00" americano = "#87756E" amethyst = "#9966CC" amethyst_smoke = "#A397B4" amour = "#F9EAF3" amulet = "#7B9F80" anakiwa = "#9DE5FF" antique_brass = "#C88A65" antique_bronze = "#704A07" anzac = "#E0B646" apache = "#DFBE6F" apple = "#4FA83D" apple_blossom = "#AF4D43" apple_green = "#E2F3EC" apricot = "#EB9373" apricot_peach = "#FBCEB1" apricot_white = "#FFFEEC" aqua_deep = "#014B43" aqua_forest = "#5FA777" aqua_haze = "#EDF5F5" aqua_island = "#A1DAD7" aqua_spring = "#EAF9F5" aqua_squeeze = "#E8F5F2" aquamarine_blue = "#71D9E2" arapawa = "#110C6C" armadillo = "#433E37" arrowtown = "#948771" ash = "#C6C3B5" asparagus = "#7BA05B" asphalt = "#130A06" astra = "#FAEAB9" astral = "#327DA0" astronaut = "#283A77" astronaut_blue = "#013E62" athens_gray = "#EEF0F3" aths_special = "#ECEBCE" atlantis = "#97CD2D" atoll = "#0A6F75" atomic_tangerine = "#FF9966" au_chico = "#97605D" aubergine = "#3B0910" australian_mint = "#F5FFBE" avocado = "#888D65" axolotl = "#4E6649" azalea = "#F7C8DA" aztec = "#0D1C19" azure_radiance = "#007FFF" baby_blue = "#E0FFFF" bahama_blue = "#026395" bahia = "#A5CB0C" baja_white = "#FFF8D1" bali_hai = "#859FAF" baltic_sea = "#2A2630" bamboo = "#DA6304" banana_mania = "#FBE7B2" bandicoot = "#858470" barberry = "#DED717" barley_corn = "#A68B5B" barley_white = "#FFF4CE" barossa = "#44012D" bastille = "#292130" battleship_gray = "#828F72" bay_leaf = "#7DA98D" bay_of_many = "#273A81" bazaar = "#98777B" bean = "#3D0C02" beauty_bush = "#EEC1BE" beaver = "#926F5B" beeswax = "#FEF2C7" bermuda = "#7DD8C6" bermuda_gray = "#6B8BA2" beryl_green = "#DEE5C0" bianca = "#FCFBF3" big_stone = "#162A40" bilbao = "#327C14" biloba_flower = "#B2A1EA" birch = "#373021" bird_flower = "#D4CD16" biscay = "#1B3162" bismark = "#497183" bison_hide = "#C1B7A4" bistre = "#3D2B1F" bitter = "#868974" bitter_lemon = "#CAE00D" bittersweet = "#FE6F5E" bizarre = "#EEDEDA" black = "#000000" black_bean = "#081910" black_forest = "#0B1304" black_haze = "#F6F7F7" black_marlin = "#3E2C1C" black_olive = "#242E16" black_pearl = "#041322" black_rock = "#0D0332" black_rose = "#67032D" black_russian = "#0A001C" black_squeeze = "#F2FAFA" black_white = "#FFFEF6" blackberry = "#4D0135" blackcurrant = "#32293A" blaze_orange = "#FF6600" bleach_white = "#FEF3D8" bleached_cedar = "#2C2133" blizzard_blue = "#A3E3ED" blossom = "#DCB4BC" blue_bayoux = "#496679" blue_bell = "#9999CC" blue_chalk = "#F1E9FF" blue_charcoal = "#010D1A" blue_chill = "#0C8990" blue_diamond = "#380474" blue_dianne = "#204852" blue_gem = "#2C0E8C" blue_haze = "#BFBED8" blue_lagoon = "#017987" blue_marguerite = "#7666C6" blue_ribbon = "#0066FF" blue_romance = "#D2F6DE" blue_smoke = "#748881" blue_stone = "#016162" blue_violet = "#6456B7" blue_whale = "#042E4C" blue_zodiac = "#13264D" blumine = "#18587A" blush = "#B44668" blush_pink = "#FF6FFF" bombay = "#AFB1B8" bon_jour = "#E5E0E1" bondi_blue = "#0095B6" bone = "#E4D1C0" bordeaux = "#5C0120" bossanova = "#4E2A5A" boston_blue = "#3B91B4" botticelli = "#C7DDE5" bottle_green = "#093624" boulder = "#7A7A7A" bouquet = "#AE809E" bourbon = "#BA6F1E" bracken = "#4A2A04" brandy = "#DEC196" brandy_punch = "#CD8429" brandy_rose = "#BB8983" breaker_bay = "#5DA19F" brick_red = "#C62D42" bridal_heath = "#FFFAF4" bridesmaid = "#FEF0EC" bright_gray = "#3C4151" bright_green = "#66FF00" bright_red = "#B10000" bright_sun = "#FED33C" bright_turquoise = "#08E8DE" brilliant_rose = "#F653A6" brink_pink = "#FB607F" bronco = "#ABA196" bronze = "#3F2109" bronze_olive = "#4E420C" bronzetone = "#4D400F" broom = "#FFEC13" brown_bramble = "#592804" brown_derby = "#492615" brown_pod = "#401801" brown_rust = "#AF593E" brown_tumbleweed = "#37290E" bubbles = "#E7FEFF" buccaneer = "#622F30" bud = "#A8AE9C" buddha_gold = "#C1A004" buff = "#F0DC82" bulgarian_rose = "#480607" bull_shot = "#864D1E" bunker = "#0D1117" bunting = "#151F4C" burgundy = "#900020" burnham = "#002E20" burning_orange = "#FF7034" burning_sand = "#D99376" burnt_maroon = "#420303" burnt_orange = "#CC5500" burnt_sienna = "#E97451" burnt_umber = "#8A3324" bush = "#0D2E1C" buttercup = "#F3AD16" buttered_rum = "#A1750D" butterfly_bush = "#624E9A" buttermilk = "#FFF1B5" buttery_white = "#FFFCEA" cab_sav = "#4D0A18" cabaret = "#D94972" cabbage_pont = "#3F4C3A" cactus = "#587156" cadet_blue = "#A9B2C3" cadillac = "#B04C6A" cafe_royale = "#6F440C" calico = "#E0C095" california = "#FE9D04" calypso = "#31728D" camarone = "#00581A" camelot = "#893456" cameo = "#D9B99B" camouflage = "#3C3910" camouflage_green = "#78866B" can_can = "#D591A4" canary = "#F3FB62" candlelight = "#FCD917" candy_corn = "#FBEC5D" cannon_black = "#251706" cannon_pink = "#894367" cape_cod = "#3C4443" cape_honey = "#FEE5AC" cape_palliser = "#A26645" caper = "#DCEDB4" caramel = "#FFDDAF" cararra = "#EEEEE8" cardin_green = "#01361C" cardinal = "#C41E3A" cardinal_pink = "#8C055E" careys_pink = "#D29EAA" caribbean_green = "#00CC99" carissma = "#EA88A8" carla = "#F3FFD8" carmine = "#960018" carnaby_tan = "#5C2E01" carnation = "#F95A61" carnation_pink = "#FFA6C9" carousel_pink = "#F9E0ED" carrot_orange = "#ED9121" casablanca = "#F8B853" casal = "#2F6168" cascade = "#8BA9A5" cashmere = "#E6BEA5" casper = "#ADBED1" castro = "#52001F" catalina_blue = "#062A78" catskill_white = "#EEF6F7" cavern_pink = "#E3BEBE" cedar = "#3E1C14" cedar_wood_finish = "#711A00" celadon = "#ACE1AF" celery = "#B8C25D" celeste = "#D1D2CA" cello = "#1E385B" celtic = "#163222" cement = "#8D7662" ceramic = "#FCFFF9" cerise = "#DA3287" cerise_red = "#DE3163" cerulean = "#02A4D3" cerulean_blue = "#2A52BE" chablis = "#FFF4F3" chalet_green = "#516E3D" chalky = "#EED794" chambray = "#354E8C" chamois = "#EDDCB1" champagne = "#FAECCC" chantilly = "#F8C3DF" charade = "#292937" chardon = "#FFF3F1" chardonnay = "#FFCD8C" charlotte = "#BAEEF9" charm = "#D47494" chartreuse = "#7FFF00" chartreuse_yellow = "#DFFF00" chateau_green = "#40A860" chatelle = "#BDB3C7" chathams_blue = "#175579" chelsea_cucumber = "#83AA5D" chelsea_gem = "#9E5302" chenin = "#DFCD6F" cherokee = "#FCDA98" cherry_pie = "#2A0359" cherrywood = "#651A14" cherub = "#F8D9E9" chestnut = "#B94E48" chestnut_rose = "#CD5C5C" chetwode_blue = "#8581D9" chicago = "#5D5C58" chiffon = "#F1FFC8" chilean_fire = "#F77703" chilean_heath = "#FFFDE6" china_ivory = "#FCFFE7" chino = "#CEC7A7" chinook = "#A8E3BD" christalle = "#33036B" christi = "#67A712" christine = "#E7730A" chrome_white = "#E8F1D4" cinder = "#0E0E18" cinderella = "#FDE1DC" cinnabar = "#E34234" cinnamon = "#7B3F00" cioccolato = "#55280C" citrine_white = "#FAF7D6" citron = "#9EA91F" citrus = "#A1C50A" clairvoyant = "#480656" clam_shell = "#D4B6AF" claret = "#7F1734" classic_rose = "#FBCCE7" clay_ash = "#BDC8B3" clay_creek = "#8A8360" clear_day = "#E9FFFD" clementine = "#E96E00" clinker = "#371D09" cloud = "#C7C4BF" cloud_burst = "#202E54" cloudy = "#ACA59F" clover = "#384910" cobalt = "#0047AB" cocoa_bean = "#481C1C" cocoa_brown = "#301F1E" coconut_cream = "#F8F7DC" cod_gray = "#0B0B0B" coffee = "#706555" coffee_bean = "#2A140E" cognac = "#9F381D" cola = "#3F2500" cold_purple = "#ABA0D9" cold_turkey = "#CEBABA" colonial_white = "#FFEDBC" comet = "#5C5D75" como = "#517C66" conch = "#C9D9D2" concord = "#7C7B7A" concrete = "#F2F2F2" confetti = "#E9D75A" congo_brown = "#593737" congress_blue = "#02478E" conifer = "#ACDD4D" contessa = "#C6726B" copper = "#B87333" copper_canyon = "#7E3A15" copper_rose = "#996666" copper_rust = "#944747" copperfield = "#DA8A67" coral_red = "#FF4040" coral_reef = "#C7BCA2" coral_tree = "#A86B6B" corduroy = "#606E68" coriander = "#C4D0B0" cork = "#40291D" corn = "#E7BF05" corn_field = "#F8FACD" corn_harvest = "#8B6B0B" cornflower = "#93CCEA" cornflower_blue = "#6495ED" cornflower_lilac = "#FFB0AC" corvette = "#FAD3A2" cosmic = "#76395D" cosmos = "#FFD8D9" costa_del_sol = "#615D30" cotton_candy = "#FFB7D5" cotton_seed = "#C2BDB6" county_green = "#01371A" cowboy = "#4D282D" crail = "#B95140" cranberry = "#DB5079" crater_brown = "#462425" cream = "#FFFDD0" cream_brulee = "#FFE5A0" cream_can = "#F5C85C" creole = "#1E0F04" crete = "#737829" crocodile = "#736D58" crown_of_thorns = "#771F1F" crowshead = "#1C1208" cruise = "#B5ECDF" crusoe = "#004816" crusta = "#FD7B33" cumin = "#924321" cumulus = "#FDFFD5" cupid = "#FBBEDA" curious_blue = "#2596D1" cutty_sark = "#507672" cyprus = "#003E40" daintree = "#012731" dairy_cream = "#F9E4BC" daisy_bush = "#4F2398" dallas = "#6E4B26" dandelion = "#FED85D" danube = "#6093D1" dark_blue = "#0000C8" dark_burgundy = "#770F05" dark_ebony = "#3C2005" dark_fern = "#0A480D" dark_tan = "#661010" dawn = "#A6A29A" dawn_pink = "#F3E9E5" de_york = "#7AC488" deco = "#D2DA97" deep_blue = "#220878" deep_blush = "#E47698" deep_bronze = "#4A3004" deep_cerulean = "#007BA7" deep_cove = "#051040" deep_fir = "#002900" deep_forest_green = "#182D09" deep_koamaru = "#1B127B" deep_oak = "#412010" deep_sapphire = "#082567" deep_sea = "#01826B" deep_sea_green = "#095859" deep_teal = "#003532" del_rio = "#B09A95" dell = "#396413" delta = "#A4A49D" deluge = "#7563A8" denim = "#1560BD" derby = "#FFEED8" desert = "#AE6020" desert_sand = "#EDC9AF" desert_storm = "#F8F8F7" dew = "#EAFFFE" di_serria = "#DB995E" diesel = "#130000" dingley = "#5D7747" disco = "#871550" dixie = "#E29418" dodger_blue = "#1E90FF" dolly = "#F9FF8B" dolphin = "#646077" domino = "#8E775E" don_juan = "#5D4C51" donkey_brown = "#A69279" dorado = "#6B5755" double_colonial_white = "#EEE3AD" double_pearl_lusta = "#FCF4D0" double_spanish_white = "#E6D7B9" dove_gray = "#6D6C6C" downriver = "#092256" downy = "#6FD0C5" driftwood = "#AF8751" drover = "#FDF7AD" dull_lavender = "#A899E6" dune = "#383533" dust_storm = "#E5CCC9" dusty_gray = "#A8989B" eagle = "#B6BAA4" earls_green = "#C9B93B" early_dawn = "#FFF9E6" east_bay = "#414C7D" east_side = "#AC91CE" eastern_blue = "#1E9AB0" ebb = "#E9E3E3" ebony = "#0C0B1D" ebony_clay = "#26283B" eclipse = "#311C17" ecru_white = "#F5F3E5" ecstasy = "#FA7814" eden = "#105852" edgewater = "#C8E3D7" edward = "#A2AEAB" egg_sour = "#FFF4DD" egg_white = "#FFEFC1" eggplant = "#614051" el_paso = "#1E1708" el_salva = "#8F3E33" electric_lime = "#CCFF00" electric_violet = "#8B00FF" elephant = "#123447" elf_green = "#088370" elm = "#1C7C7D" emerald = "#50C878" eminence = "#6C3082" emperor = "#514649" empress = "#817377" endeavour = "#0056A7" energy_yellow = "#F8DD5C" english_holly = "#022D15" english_walnut = "#3E2B23" envy = "#8BA690" equator = "#E1BC64" espresso = "#612718" eternity = "#211A0E" eucalyptus = "#278A5B" eunry = "#CFA39D" evening_sea = "#024E46" everglade = "#1C402E" faded_jade = "#427977" fair_pink = "#FFEFEC" falcon = "#7F626D" fall_green = "#ECEBBD" falu_red = "#801818" fantasy = "#FAF3F0" fedora = "#796A78" feijoa = "#9FDD8C" fern = "#63B76C" fern_frond = "#657220" fern_green = "#4F7942" ferra = "#704F50" festival = "#FBE96C" feta = "#F0FCEA" fiery_orange = "#B35213" finch = "#626649" finlandia = "#556D56" finn = "#692D54" fiord = "#405169" fire = "#AA4203" fire_bush = "#E89928" firefly = "#0E2A30" flame_pea = "#DA5B38" flamenco = "#FF7D07" flamingo = "#F2552A" flax = "#EEDC82" flax_smoke = "#7B8265" flesh = "#FFCBA4" flint = "#6F6A61" flirt = "#A2006D" flush_mahogany = "#CA3435" flush_orange = "#FF7F00" foam = "#D8FCFA" fog = "#D7D0FF" foggy_gray = "#CBCAB6" forest_green = "#228B22" forget_me_not = "#FFF1EE" fountain_blue = "#56B4BE" frangipani = "#FFDEB3" french_gray = "#BDBDC6" french_lilac = "#ECC7EE" french_pass = "#BDEDFD" french_rose = "#F64A8A" fresh_eggplant = "#990066" friar_gray = "#807E79" fringy_flower = "#B1E2C1" froly = "#F57584" frost = "#EDF5DD" frosted_mint = "#DBFFF8" frostee = "#E4F6E7" fruit_salad = "#4F9D5D" fuchsia_blue = "#7A58C1" fuchsia_pink = "#C154C1" fuego = "#BEDE0D" fuel_yellow = "#ECA927" fun_blue = "#1959A8" fun_green = "#016D39" fuscous_gray = "#54534D" fuzzy_wuzzy_brown = "#C45655" gable_green = "#163531" gallery = "#EFEFEF" galliano = "#DCB20C" gamboge = "#E49B0F" geebung = "#D18F1B" genoa = "#15736B" geraldine = "#FB8989" geyser = "#D4DFE2" ghost = "#C7C9D5" gigas = "#523C94" gimblet = "#B8B56A" gin = "#E8F2EB" gin_fizz = "#FFF9E2" givry = "#F8E4BF" glacier = "#80B3C4" glade_green = "#61845F" go_ben = "#726D4E" goblin = "#3D7D52" gold_drop = "#F18200" gold_sand = "#E6BE8A" gold_tips = "#DEBA13" golden_bell = "#E28913" golden_dream = "#F0D52D" golden_fizz = "#F5FB3D" golden_glow = "#FDE295" golden_grass = "#DAA520" golden_sand = "#F0DB7D" golden_tainoi = "#FFCC5C" gondola = "#261414" gordons_green = "#0B1107" gorse = "#FFF14F" gossamer = "#069B81" gossip = "#D2F8B0" gothic = "#6D92A1" governor_bay = "#2F3CB3" grain_brown = "#E4D5B7" grandis = "#FFD38C" granite_green = "#8D8974" granny_apple = "#D5F6E3" granny_smith = "#84A0A0" granny_smith_apple = "#9DE093" grape = "#381A51" graphite = "#251607" gravel = "#4A444B" gray_asparagus = "#465945" gray_chateau = "#A2AAB3" gray_nickel = "#C3C3BD" gray_nurse = "#E7ECE6" gray_olive = "#A9A491" gray_suit = "#C1BECD" green_haze = "#01A368" green_house = "#24500F" green_kelp = "#25311C" green_leaf = "#436A0D" green_mist = "#CBD3B0" green_pea = "#1D6142" green_smoke = "#A4AF6E" green_spring = "#B8C1B1" green_vogue = "#032B52" green_waterloo = "#101405" green_white = "#E8EBE0" green_yellow = "#ADFF2F" grenadier = "#D54600" guardsman_red = "#BA0101" gulf_blue = "#051657" gulf_stream = "#80B3AE" gull_gray = "#9DACB7" gum_leaf = "#B6D3BF" gumbo = "#7CA1A6" gun_powder = "#414257" gunsmoke = "#828685" gurkha = "#9A9577" hacienda = "#98811B" hairy_heath = "#6B2A14" haiti = "#1B1035" half_and_half = "#FFFEE1" half_baked = "#85C4CC" half_colonial_white = "#FDF6D3" half_dutch_white = "#FEF7DE" half_spanish_white = "#FEF4DB" hampton = "#E5D8AF" harlequin = "#3FFF00" harp = "#E6F2EA" harvest_gold = "#E0B974" havelock_blue = "#5590D9" hawaiian_tan = "#9D5616" hawkes_blue = "#D4E2FC" heath = "#541012" heather = "#B7C3D0" heathered_gray = "#B6B095" heavy_metal = "#2B3228" heliotrope = "#DF73FF" hemlock = "#5E5D3B" hemp = "#907874" hibiscus = "#B6316C" highland = "#6F8E63" hillary = "#ACA586" himalaya = "#6A5D1B" hint_of_green = "#E6FFE9" hint_of_red = "#FBF9F9" hint_of_yellow = "#FAFDE4" hippie_blue = "#589AAF" hippie_green = "#53824B" hippie_pink = "#AE4560" hit_gray = "#A1ADB5" hit_pink = "#FFAB81" hokey_pokey = "#C8A528" hoki = "#65869F" holly = "#011D13" hollywood_cerise = "#F400A1" honey_flower = "#4F1C70" honeysuckle = "#EDFC84" hopbush = "#D06DA1" horizon = "#5A87A0" horses_neck = "#604913" hot_cinnamon = "#D2691E" hot_pink = "#FF69B4" hot_toddy = "#B38007" humming_bird = "#CFF9F3" hunter_green = "#161D10" hurricane = "#877C7B" husk = "#B7A458" ice_cold = "#B1F4E7" iceberg = "#DAF4F0" illusion = "#F6A4C9" inch_worm = "#B0E313" indian_khaki = "#C3B091" indian_tan = "#4D1E01" indochine = "#C26B03" international_klein_blue = "#002FA7" international_orange = "#FF4F00" irish_coffee = "#5F3D26" iroko = "#433120" iron = "#D4D7D9" ironside_gray = "#676662" ironstone = "#86483C" island_spice = "#FFFCEE" jacaranda = "#2E0329" jacarta = "#3A2A6A" jacko_bean = "#2E1905" jacksons_purple = "#20208D" jade = "#00A86B" jaffa = "#EF863F" jagged_ice = "#C2E8E5" jagger = "#350E57" jaguar = "#080110" jambalaya = "#5B3013" janna = "#F4EBD3" japanese_laurel = "#0A6906" japanese_maple = "#780109" japonica = "#D87C63" java = "#1FC2C2" jazzberry_jam = "#A50B5E" jelly_bean = "#297B9A" jet_stream = "#B5D2CE" jewel = "#126B40" jon = "#3B1F1F" jonquil = "#EEFF9A" jordy_blue = "#8AB9F1" judge_gray = "#544333" jumbo = "#7C7B82" jungle_green = "#29AB87" jungle_mist = "#B4CFD3" juniper = "#6D9292" just_right = "#ECCDB9" kabul = "#5E483E" kaitoke_green = "#004620" kangaroo = "#C6C8BD" karaka = "#1E1609" karry = "#FFEAD4" kashmir_blue = "#507096" kelp = "#454936" kenyan_copper = "#7C1C05" keppel = "#3AB09E" key_lime_pie = "#BFC921" kidnapper = "#E1EAD4" kilamanjaro = "#240C02" killarney = "#3A6A47" kimberly = "#736C9F" kingfisher_daisy = "#3E0480" kobi = "#E79FC4" kokoda = "#6E6D57" korma = "#8F4B0E" koromiko = "#FFBD5F" kournikova = "#FFE772" kumera = "#886221" la_palma = "#368716" la_rioja = "#B3C110" las_palmas = "#C6E610" laser = "#C8B568" laser_lemon = "#FFFF66" laurel = "#749378" lavender_blush = "#FFF0F5" lavender_gray = "#BDBBD7" lavender_magenta = "#EE82EE" lavender_pink = "#FBAED2" lavender_purple = "#967BB6" lavender_rose = "#FBA0E3" leather = "#967059" lemon = "#FDE910" lemon_chiffon = "#FFFACD" lemon_ginger = "#AC9E22" lemon_grass = "#9B9E8F" light_apricot = "#FDD5B1" light_orchid = "#E29CD2" light_wisteria = "#C9A0DC" lightning_yellow = "#FCC01E" lilac = "#C8A2C8" lilac_bush = "#9874D3" lily = "#C8AABF" lily_white = "#E7F8FF" lima = "#76BD17" limeade = "#6F9D02" limed_ash = "#747D63" limed_oak = "#AC8A56" limed_spruce = "#394851" link_water = "#D9E4F5" lipstick = "#AB0563" lisbon_brown = "#423921" livid_brown = "#4D282E" loafer = "#EEF4DE" loblolly = "#BDC9CE" lochinvar = "#2C8C84" lochmara = "#007EC7" locust = "#A8AF8E" log_cabin = "#242A1D" logan = "#AAA9CD" lola = "#DFCFDB" london_hue = "#BEA6C3" lonestar = "#6D0101" lotus = "#863C3C" loulou = "#460B41" lucky = "#AF9F1C" lucky_point = "#1A1A68" lunar_green = "#3C493A" luxor_gold = "#A7882C" lynch = "#697E9A" mabel = "#D9F7FF" macaroni_and_cheese = "#FFB97B" madang = "#B7F0BE" madison = "#09255D" madras = "#3F3002" magic_mint = "#AAF0D1" magnolia = "#F8F4FF" mahogany = "#4E0606" mai_tai = "#B06608" maize = "#F5D5A0" makara = "#897D6D" mako = "#444954" malachite = "#0BDA51" malibu = "#7DC8F7" mallard = "#233418" malta = "#BDB2A1" mamba = "#8E8190" manatee = "#8D90A1" mandalay = "#AD781B" mandy = "#E25465" mandys_pink = "#F2C3B2" mango_tango = "#E77200" manhattan = "#F5C999" mantis = "#74C365" mantle = "#8B9C90" manz = "#EEEF78" mardi_gras = "#350036" marigold = "#B98D28" marigold_yellow = "#FBE870" mariner = "#286ACD" maroon_flush = "#C32148" maroon_oak = "#520C17" marshland = "#0B0F08" martini = "#AFA09E" martinique = "#363050" marzipan = "#F8DB9D" masala = "#403B38" matisse = "#1B659D" matrix = "#B05D54" matterhorn = "#4E3B41" mauve = "#E0B0FF" mauvelous = "#F091A9" maverick = "#D8C2D5" medium_carmine = "#AF4035" medium_purple = "#9370DB" medium_red_violet = "#BB3385" melanie = "#E4C2D5" melanzane = "#300529" melon = "#FEBAAD" melrose = "#C7C1FF" mercury = "#E5E5E5" merino = "#F6F0E6" merlin = "#413C37" merlot = "#831923" metallic_bronze = "#49371B" metallic_copper = "#71291D" meteor = "#D07D12" meteorite = "#3C1F76" mexican_red = "#A72525" mid_gray = "#5F5F6E" midnight = "#011635" midnight_blue = "#003366" midnight_moss = "#041004" mikado = "#2D2510" milan = "#FAFFA4" milano_red = "#B81104" milk_punch = "#FFF6D4" millbrook = "#594433" mimosa = "#F8FDD3" mindaro = "#E3F988" mine_shaft = "#323232" mineral_green = "#3F5D53" ming = "#36747D" minsk = "#3F307F" mint_green = "#98FF98" mint_julep = "#F1EEC1" mint_tulip = "#C4F4EB" mirage = "#161928" mischka = "#D1D2DD" mist_gray = "#C4C4BC" mobster = "#7F7589" moccaccino = "#6E1D14" mocha = "#782D19" mojo = "#C04737" mona_lisa = "#FFA194" monarch = "#8B0723" mondo = "#4A3C30" mongoose = "#B5A27F" monsoon = "#8A8389" monte_carlo = "#83D0C6" monza = "#C7031E" moody_blue = "#7F76D3" moon_glow = "#FCFEDA" moon_mist = "#DCDDCC" moon_raker = "#D6CEF6" morning_glory = "#9EDEE0" morocco_brown = "#441D00" mortar = "#504351" mosque = "#036A6E" moss_green = "#ADDFAD" mountain_meadow = "#1AB385" mountain_mist = "#959396" mountbatten_pink = "#997A8D" muddy_waters = "#B78E5C" muesli = "#AA8B5B" mulberry = "#C54B8C" mulberry_wood = "#5C0536" mule_fawn = "#8C472F" mulled_wine = "#4E4562" mustard = "#FFDB58" my_pink = "#D69188" my_sin = "#FFB31F" mystic = "#E2EBED" nandor = "#4B5D52" napa = "#ACA494" narvik = "#EDF9F1" natural_gray = "#8B8680" navajo_white = "#FFDEAD" navy_blue = "#000080" nebula = "#CBDBD6" negroni = "#FFE2C5" neon_carrot = "#FF9933" nepal = "#8EABC1" neptune = "#7CB7BB" nero = "#140600" nevada = "#646E75" new_orleans = "#F3D69D" new_york_pink = "#D7837F" niagara = "#06A189" night_rider = "#1F120F" night_shadz = "#AA375A" nile_blue = "#193751" nobel = "#B7B1B1" nomad = "#BAB1A2" norway = "#A8BD9F" nugget = "#C59922" nutmeg = "#81422C" nutmeg_wood_finish = "#683600" oasis = "#FEEFCE" observatory = "#02866F" ocean_green = "#41AA78" ochre = "#CC7722" off_green = "#E6F8F3" off_yellow = "#FEF9E3" oil = "#281E15" old_brick = "#901E1E" old_copper = "#724A2F" old_gold = "#CFB53B" old_lace = "#FDF5E6" old_lavender = "#796878" old_rose = "#C08081" olive_drab = "#6B8E23" olive_green = "#B5B35C" olive_haze = "#8B8470" olivetone = "#716E10" olivine = "#9AB973" onahau = "#CDF4FF" onion = "#2F270E" opal = "#A9C6C2" opium = "#8E6F70" oracle = "#377475" orange_peel = "#FFA000" orange_roughy = "#C45719" orange_white = "#FEFCED" orchid_white = "#FFFDF3" oregon = "#9B4703" orient = "#015E85" oriental_pink = "#C69191" orinoco = "#F3FBD4" oslo_gray = "#878D91" ottoman = "#E9F8ED" outer_space = "#2D383A" outrageous_orange = "#FF6037" oxford_blue = "#384555" oxley = "#779E86" oyster_bay = "#DAFAFF" oyster_pink = "#E9CECD" paarl = "#A65529" pablo = "#776F61" pacific_blue = "#009DC4" pacifika = "#778120" paco = "#411F10" padua = "#ADE6C4" pale_canary = "#FFFF99" pale_leaf = "#C0D3B9" pale_oyster = "#988D77" pale_prim = "#FDFEB8" pale_rose = "#FFE1F2" pale_sky = "#6E7783" pale_slate = "#C3BFC1" palm_green = "#09230F" palm_leaf = "#19330E" pampas = "#F4F2EE" panache = "#EAF6EE" pancho = "#EDCDAB" papaya_whip = "#FFEFD5" paprika = "#8D0226" paradiso = "#317D82" parchment = "#F1E9D2" paris_daisy = "#FFF46E" paris_m = "#26056A" paris_white = "#CADCD4" parsley = "#134F19" pastel_green = "#77DD77" pastel_pink = "#FFD1DC" patina = "#639A8F" pattens_blue = "#DEF5FF" paua = "#260368" pavlova = "#D7C498" peach = "#FFE5B4" peach_cream = "#FFF0DB" peach_orange = "#FFCC99" peach_schnapps = "#FFDCD6" peach_yellow = "#FADFAD" peanut = "#782F16" pear = "#D1E231" pearl_bush = "#E8E0D5" pearl_lusta = "#FCF4DC" peat = "#716B56" pelorous = "#3EABBF" peppermint = "#E3F5E1" perano = "#A9BEF2" perfume = "#D0BEF8" periglacial_blue = "#E1E6D6" periwinkle = "#CCCCFF" periwinkle_gray = "#C3CDE6" persian_blue = "#1C39BB" persian_green = "#00A693" persian_indigo = "#32127A" persian_pink = "#F77FBE" persian_plum = "#701C1C" persian_red = "#CC3333" persian_rose = "#FE28A2" persimmon = "#FF6B53" peru_tan = "#7F3A02" pesto = "#7C7631" petite_orchid = "#DB9690" pewter = "#96A8A1" pharlap = "#A3807B" picasso = "#FFF39D" pickled_bean = "#6E4826" pickled_bluewood = "#314459" picton_blue = "#45B1E8" pig_pink = "#FDD7E4" pigeon_post = "#AFBDD9" pigment_indigo = "#4B0082" pine_cone = "#6D5E54" pine_glade = "#C7CD90" pine_green = "#01796F" pine_tree = "#171F04" pink_flamingo = "#FF66FF" pink_flare = "#E1C0C8" pink_lace = "#FFDDF4" pink_lady = "#FFF1D8" pink_salmon = "#FF91A4" pink_swan = "#BEB5B7" piper = "#C96323" pipi = "#FEF4CC" pippin = "#FFE1DF" pirate_gold = "#BA7F03" pistachio = "#9DC209" pixie_green = "#C0D8B6" pizazz = "#FF9000" pizza = "#C99415" plantation = "#27504B" pohutukawa = "#8F021C" polar = "#E5F9F6" polo_blue = "#8DA8CC" pomegranate = "#F34723" pompadour = "#660045" porcelain = "#EFF2F3" porsche = "#EAAE69" port_gore = "#251F4F" portafino = "#FFFFB4" portage = "#8B9FEE" portica = "#F9E663" pot_pourri = "#F5E7E2" potters_clay = "#8C5738" powder_ash = "#BCC9C2" powder_blue = "#B0E0E6" prairie_sand = "#9A3820" prelude = "#D0C0E5" prim = "#F0E2EC" primrose = "#EDEA99" provincial_pink = "#FEF5F1" prussian_blue = "#003153" puce = "#CC8899" pueblo = "#7D2C14" puerto_rico = "#3FC1AA" pumice = "#C2CAC4" pumpkin = "#FF7518" pumpkin_skin = "#B1610B" punch = "#DC4333" punga = "#4D3D14" purple_heart = "#652DC1" purple_mountains_majesty = "#9678B6" purple_pizzazz = "#FF00CC" putty = "#E7CD8C" quarter_pearl_lusta = "#FFFDF4" quarter_spanish_white = "#F7F2E1" quicksand = "#BD978E" quill_gray = "#D6D6D1" quincy = "#623F2D" racing_green = "#0C1911" radical_red = "#FF355E" raffia = "#EADAB8" rainee = "#B9C8AC" rajah = "#F7B668" rangitoto = "#2E3222" rangoon_green = "#1C1E13" raven = "#727B89" raw_sienna = "#D27D46" raw_umber = "#734A12" razzle_dazzle_rose = "#FF33CC" razzmatazz = "#E30B5C" rebel = "#3C1206" red_beech = "#7B3801" red_berry = "#8E0000" red_damask = "#DA6A41" red_devil = "#860111" red_orange = "#FF3F34" red_oxide = "#6E0902" red_ribbon = "#ED0A3F" red_robin = "#80341F" red_stage = "#D05F04" red_violet = "#C71585" redwood = "#5D1E0F" reef = "#C9FFA2" reef_gold = "#9F821C" regal_blue = "#013F6A" regent_gray = "#86949F" regent_st_blue = "#AAD6E6" remy = "#FEEBF3" reno_sand = "#A86515" resolution_blue = "#002387" revolver = "#2C1632" rhino = "#2E3F62" rice_cake = "#FFFEF0" rice_flower = "#EEFFE2" rich_gold = "#A85307" rio_grande = "#BBD009" ripe_lemon = "#F4D81C" ripe_plum = "#410056" riptide = "#8BE6D8" river_bed = "#434C59" rob_roy = "#EAC674" robins_egg_blue = "#00CCCC" rock = "#4D3833" rock_blue = "#9EB1CD" rock_spray = "#BA450C" rodeo_dust = "#C9B29B" rolling_stone = "#747D83" roman = "#DE6360" roman_coffee = "#795D4C" romance = "#FFFEFD" romantic = "#FFD2B7" ronchi = "#ECC54E" roof_terracotta = "#A62F20" rope = "#8E4D1E" rose = "#FF007F" rose_bud = "#FBB2A3" rose_bud_cherry = "#800B47" rose_fog = "#E7BCB4" rose_of_sharon = "#BF5500" rose_white = "#FFF6F5" rosewood = "#65000B" roti = "#C6A84B" rouge = "#A23B6C" royal_blue = "#4169E1" royal_heath = "#AB3472" royal_purple = "#6B3FA0" rum = "#796989" rum_swizzle = "#F9F8E4" russet = "#80461B" russett = "#755A57" rust = "#B7410E" rustic_red = "#480404" rusty_nail = "#86560A" saddle = "#4C3024" saddle_brown = "#583401" saffron = "#F4C430" saffron_mango = "#F9BF58" sage = "#9EA587" sahara = "#B7A214" sahara_sand = "#F1E788" sail = "#B8E0F9" salem = "#097F4B" salomie = "#FEDB8D" salt_box = "#685E6E" saltpan = "#F1F7F2" sambuca = "#3A2010" san_felix = "#0B6207" san_juan = "#304B6A" san_marino = "#456CAC" sand_dune = "#826F65" sandal = "#AA8D6F" sandrift = "#AB917A" sandstone = "#796D62" sandwisp = "#F5E7A2" sandy_beach = "#FFEAC8" sandy_brown = "#F4A460" sangria = "#92000A" sanguine_brown = "#8D3D38" santa_fe = "#B16D52" santas_gray = "#9FA0B1" sapling = "#DED4A4" sapphire = "#2F519E" saratoga = "#555B10" satin_linen = "#E6E4D4" sauvignon = "#FFF5F3" sazerac = "#FFF4E0" scampi = "#675FA6" scandal = "#CFFAF4" scarlet = "#FF2400" scarlet_gum = "#431560" scarlett = "#950015" scarpa_flow = "#585562" schist = "#A9B497" school_bus_yellow = "#FFD800" schooner = "#8B847E" science_blue = "#0066CC" scooter = "#2EBFD4" scorpion = "#695F62" scotch_mist = "#FFFBDC" screamin_green = "#66FF66" sea_buckthorn = "#FBA129" sea_green = "#2E8B57" sea_mist = "#C5DBCA" sea_nymph = "#78A39C" sea_pink = "#ED989E" seagull = "#80CCEA" seance = "#731E8F" seashell_peach = "#FFF5EE" seaweed = "#1B2F11" selago = "#F0EEFD" selective_yellow = "#FFBA00" sepia = "#704214" sepia_black = "#2B0202" sepia_skin = "#9E5B40" serenade = "#FFF4E8" shadow = "#837050" shadow_green = "#9AC2B8" shady_lady = "#AAA5A9" shakespeare = "#4EABD1" shalimar = "#FBFFBA" shamrock = "#33CC99" shark = "#25272C" sherpa_blue = "#004950" sherwood_green = "#02402C" shilo = "#E8B9B3" shingle_fawn = "#6B4E31" ship_cove = "#788BBA" ship_gray = "#3E3A44" shiraz = "#B20931" shocking = "#E292C0" shocking_pink = "#FC0FC0" shuttle_gray = "#5F6672" siam = "#646A54" sidecar = "#F3E7BB" silk = "#BDB1A8" silver_chalice = "#ACACAC" silver_rust = "#C9C0BB" silver_sand = "#BFC1C2" silver_tree = "#66B58F" sinbad = "#9FD7D3" siren = "#7A013A" sirocco = "#718080" sisal = "#D3CBBA" skeptic = "#CAE6DA" sky_blue = "#76D7EA" slate_gray = "#708090" smalt = "#003399" smalt_blue = "#51808F" smoky = "#605B73" snow_drift = "#F7FAF7" snow_flurry = "#E4FFD1" snowy_mint = "#D6FFDB" snuff = "#E2D8ED" soapstone = "#FFFBF9" soft_amber = "#D1C6B4" soft_peach = "#F5EDEF" solid_pink = "#893843" solitaire = "#FEF8E2" solitude = "#EAF6FF" sorbus = "#FD7C07" sorrell_brown = "#CEB98F" soya_bean = "#6A6051" spanish_green = "#819885" spectra = "#2F5A57" spice = "#6A442E" spicy_mix = "#885342" spicy_mustard = "#74640D" spicy_pink = "#816E71" spindle = "#B6D1EA" spray = "#79DEEC" spring_green = "#00FF7F" spring_leaves = "#578363" spring_rain = "#ACCBB1" spring_sun = "#F6FFDC" spring_wood = "#F8F6F1" sprout = "#C1D7B0" spun_pearl = "#AAABB7" squirrel = "#8F8176" st_tropaz = "#2D569B" stack = "#8A8F8A" star_dust = "#9F9F9C" stark_white = "#E5D7BD" starship = "#ECF245" steel_blue = "#4682B4" steel_gray = "#262335" stiletto = "#9C3336" stonewall = "#928573" storm_dust = "#646463" storm_gray = "#717486" stratos = "#000741" straw = "#D4BF8D" strikemaster = "#956387" stromboli = "#325D52" studio = "#714AB2" submarine = "#BAC7C9" sugar_cane = "#F9FFF6" sulu = "#C1F07C" summer_green = "#96BBAB" sun = "#FBAC13" sundance = "#C9B35B" sundown = "#FFB1B3" sunflower = "#E4D422" sunglo = "#E16865" sunglow = "#FFCC33" sunset_orange = "#FE4C40" sunshade = "#FF9E2C" supernova = "#FFC901" surf = "#BBD7C1" surf_crest = "#CFE5D2" surfie_green = "#0C7A79" sushi = "#87AB39" suva_gray = "#888387" swamp = "#001B1C" swamp_green = "#ACB78E" swans_down = "#DCF0EA" sweet_corn = "#FBEA8C" sweet_pink = "#FD9FA2" swirl = "#D3CDC5" swiss_coffee = "#DDD6D5" sycamore = "#908D39" tabasco = "#A02712" tacao = "#EDB381" tacha = "#D6C562" tahiti_gold = "#E97C07" tahuna_sands = "#EEF0C8" tall_poppy = "#B32D29" tallow = "#A8A589" tamarillo = "#991613" tamarind = "#341515" tan_hide = "#FA9D5A" tana = "#D9DCC1" tangaroa = "#03163C" tangerine = "#F28500" tango = "#ED7A1C" tapa = "#7B7874" tapestry = "#B05E81" tara = "#E1F6E8" tarawera = "#073A50" tasman = "#CFDCCF" taupe = "#483C32" taupe_gray = "#B3AF95" tawny_port = "#692545" te_papa_green = "#1E433C" tea = "#C1BAB0" tea_green = "#D0F0C0" teak = "#B19461" teal = "#008080" teal_blue = "#044259" temptress = "#3B000B" tenn = "#CD5700" tequila = "#FFE6C7" terracotta = "#E2725B" texas = "#F8F99C" texas_rose = "#FFB555" thatch = "#B69D98" thatch_green = "#403D19" thistle_green = "#CCCAA8" thunder = "#33292F" thunderbird = "#C02B18" tia_maria = "#C1440E" tiara = "#C3D1D1" tiber = "#063537" tickle_me_pink = "#FC80A5" tidal = "#F1FFAD" tide = "#BFB8B0" timber_green = "#16322C" timberwolf = "#D9D6CF" titan_white = "#F0EEFF" toast = "#9A6E61" tobacco_brown = "#715D47" toledo = "#3A0020" tolopea = "#1B0245" tom_thumb = "#3F583B" tonys_pink = "#E79F8C" topaz = "#7C778A" torch_red = "#FD0E35" torea_bay = "#0F2D9E" tory_blue = "#1450AA" tosca = "#8D3F3F" totem_pole = "#991B07" tower_gray = "#A9BDBF" tradewind = "#5FB3AC" tranquil = "#E6FFFF" travertine = "#FFFDE8" tree_poppy = "#FC9C1D" treehouse = "#3B2820" trendy_green = "#7C881A" trendy_pink = "#8C6495" trinidad = "#E64E03" tropical_blue = "#C3DDF9" tropical_rain_forest = "#00755E" trout = "#4A4E5A" true_v = "#8A73D6" tuatara = "#363534" tuft_bush = "#FFDDCD" tulip_tree = "#EAB33B" tumbleweed = "#DEA681" tuna = "#353542" tundora = "#4A4244" turbo = "#FAE600" turkish_rose = "#B57281" turmeric = "#CABB48" turquoise_blue = "#6CDAE7" turtle_green = "#2A380B" tuscany = "#BD5E2E" tusk = "#EEF3C3" tussock = "#C5994B" tutu = "#FFF1F9" twilight = "#E4CFDE" twilight_blue = "#EEFDFF" twine = "#C2955D" tyrian_purple = "#66023C" ultramarine = "#120A8F" valencia = "#D84437" valentino = "#350E42" valhalla = "#2B194F" van_cleef = "#49170C" vanilla = "#D1BEA8" vanilla_ice = "#F3D9DF" varden = "#FFF6DF" venetian_red = "#72010F" venice_blue = "#055989" venus = "#928590" verdigris = "#5D5E37" verdun_green = "#495400" vermilion = "#FF4D00" vesuvius = "#B14A0B" victoria = "#534491" vida_loca = "#549019" viking = "#64CCDB" vin_rouge = "#983D61" viola = "#CB8FA9" violent_violet = "#290C5E" violet_eggplant = "#991199" violet_red = "#F7468A" viridian = "#40826D" viridian_green = "#678975" vis_vis = "#FFEFA1" vista_blue = "#8FD6B4" vista_white = "#FCF8F7" vivid_tangerine = "#FF9980" vivid_violet = "#803790" voodoo = "#533455" vulcan = "#10121D" wafer = "#DECBC6" waikawa_gray = "#5A6E9C" waiouru = "#363C0D" walnut = "#773F1A" wasabi = "#788A25" water_leaf = "#A1E9DE" watercourse = "#056F57" waterloo = "#7B7C94" wattle = "#DCD747" watusi = "#FFDDCF" wax_flower = "#FFC0A8" we_peep = "#F7DBE6" web_orange = "#FFA500" wedgewood = "#4E7F9E" well_read = "#B43332" west_coast = "#625119" west_side = "#FF910F" westar = "#DCD9D2" wewak = "#F19BAB" wheatfield = "#F3EDCF" whiskey = "#D59A6F" whisper = "#F7F5FA" white_ice = "#DDF9F1" white_lilac = "#F8F7FC" white_linen = "#F8F0E8" white_pointer = "#FEF8FF" white_rock = "#EAE8D4" wild_blue_yonder = "#7A89B8" wild_rice = "#ECE090" wild_sand = "#F4F4F4" wild_strawberry = "#FF3399" wild_watermelon = "#FD5B78" wild_willow = "#B9C46A" william = "#3A686C" willow_brook = "#DFECDA" willow_grove = "#65745D" windsor = "#3C0878" wine_berry = "#591D35" winter_hazel = "#D5D195" wisp_pink = "#FEF4F8" wisteria = "#9771B5" wistful = "#A4A6D3" witch_haze = "#FFFC99" wood_bark = "#261105" woodland = "#4D5328" woodrush = "#302A0F" woodsmoke = "#0C0D0F" woody_brown = "#483131" xanadu = "#738678" yellow_green = "#C5E17A" yellow_metal = "#716338" yellow_orange = "#FFAE42" yellow_sea = "#FEA904" your_pink = "#FFC3C0" yukon_gold = "#7B6608" yuma = "#CEC291" zambezi = "#685558" zanah = "#DAECD6" zest = "#E5841B" zeus = "#292319" ziggurat = "#BFDBE2" zinnwaldite = "#EBC2AF" zircon = "#F4F8FF" zombie = "#E4D69B" zorba = "#A59B91" zuccini = "#044022" zumthor = "#EDF6FF" charcoal = "#34282C" gunmetal = "#2C3539" night = "#0C090A" oakbrown = "#806517" platinum = "#E5E4E2" # Furniture doors = "red" chests = "brown" # Picked colors not_in_sight="#333333" inventory_item_hover_bg = darkslategray inventory_item_hover_fg = white inventory_item_fg = white inventory_bk_color = night def get_bright_range(color): return ["darkest " + color, "darker " + color, "dark " + color, color, "light " + color, "lighter " + color, "lightest " + color] def name_from_color(c): # a = (c >> 32) & 0xFF r = (c >> 16) & 0xFF g = (c >> 8) & 0xFF b = c & 0xFF return '#%02x%02x%02x' % (r, g, b)
courses = {} line = input() while line != "end": course_info = line.split(" : ") type_course = course_info[0] student_name = course_info[1] courses.setdefault(type_course, []).append(student_name) line = input() sorted_courses = dict(sorted(courses.items(), key=lambda x: (-len(x[1])))) for current_course in sorted_courses: print(f"{current_course}: {len(sorted_courses[current_course])}") print("\n".join(f'-- {name}' for name in sorted(sorted_courses[current_course])))
def saveThePrisoner(n, m, s): if (m+s-1)%n==0: print(n) else: print((m+s-1)%n) if __name__ == '__main__': t = int(input()) for t_itr in range(t): nms = input().split() n = int(nms[0]) m = int(nms[1]) s = int(nms[2]) saveThePrisoner(n, m, s)
del_items(0x8009F828) SetType(0x8009F828, "void VID_OpenModule__Fv()") del_items(0x8009F8E8) SetType(0x8009F8E8, "void InitScreens__Fv()") del_items(0x8009F9D8) SetType(0x8009F9D8, "void MEM_SetupMem__Fv()") del_items(0x8009FA04) SetType(0x8009FA04, "void SetupWorkRam__Fv()") del_items(0x8009FA94) SetType(0x8009FA94, "void SYSI_Init__Fv()") del_items(0x8009FBA0) SetType(0x8009FBA0, "void GM_Open__Fv()") del_items(0x8009FBC4) SetType(0x8009FBC4, "void PA_Open__Fv()") del_items(0x8009FBFC) SetType(0x8009FBFC, "void PAD_Open__Fv()") del_items(0x8009FC40) SetType(0x8009FC40, "void OVR_Open__Fv()") del_items(0x8009FC60) SetType(0x8009FC60, "void SCR_Open__Fv()") del_items(0x8009FC90) SetType(0x8009FC90, "void DEC_Open__Fv()") del_items(0x8009FF04) SetType(0x8009FF04, "char *GetVersionString__FPc(char *VersionString2)") del_items(0x8009FFD8) SetType(0x8009FFD8, "char *GetWord__FPc(char *VStr)")
xa = {1, 2, 31, 41, 5} pp = {1, 2, 3, 4, 5, 6} pp = xa.clear() # Complementary to Intersection print("XA:\n", xa, "\nPP:\n", pp)
def aumentar(preco = 0, taxa = 0, formato = False): resultado = preco + (preco * taxa/100) return resultado if formato is False else moeda(resultado) def diminuir(preco = 0, taxa = 0, formato = False): resultado = preco - (preco * taxa/100) return resultado if formato is False else moeda(resultado) def dobro(preco = 0, formato = False): resultado = preco * 2 return resultado if formato is False else moeda(resultado) def metade(preco = 0, formato = False): resultado = preco / 2 return resultado if formato is False else moeda(resultado) def moeda(preco = 0, moeda = 'R$'): return f'{moeda}{preco:>.2f}'.replace('.', ',') def resumo(preco = 0, taxaAumento = 10, taxaReducao = 5): print('-'*35) print('{:^30}'.format('RESUMO DE VALORES')) print('-'*35) print(f'O preço analisado: \t\t{moeda(preco)}') print(f'Dobro do preço: \t\t{dobro(preco, True)}') print(f'Metade do preço: \t\t{metade(preco, True)}') print(f'Com {taxaAumento}% de aumento: \t{aumentar(preco, taxaAumento, True)}') print(f'Com {taxaReducao}% de desconto: \t{diminuir(preco, taxaReducao, True)}') print('-'*35)
# -*- coding: utf-8 -*- """Top-level package for Docker Auto Labels.""" __author__ = """Sebastian Ramirez""" __email__ = 'tiangolo@gmail.com' __version__ = '0.2.3'
#--- Exercicio 2 - Variávies e impressão com interpolacão de string #--- Crie um menu para um sistema de cadastro de funcionários #--- O menu deve ser impresso com a função format() para concatenar os números da opções, que devem ser números inteiros #--- Alem das opções o menu deve conter um cabeçalho e um rodapé #--- O cabeçalho e o rodapé devem ser impressos utilizando a multiplicação de caracters #--- Entre o cabeçalho e o menu e entre o menu e o rodapé deverá ter espaçamento de 3 linhas #--- Deve ser utilizado os caracteres especiais de quebra de linha e de tabulação print ('=='*50) print ('-'*45,'Bem vindo','-'*45,'\n'*3) opcao = input('informe o numero da opcao desejada \n \t 1- cadastrar funcionario \n \t 2 - sair \n \t Opção desejada : ') if opcao == '1': funcionario = input('informe o nome do funcionario') print(f'Nome do funcionario: {funcionario}') else: '\n'*3 exit print('\n'*3) print ('=='*50) print ('-'*45,'Finalizando','-'*45,)
""" @generated cargo-raze generated Bazel file. DO NOT EDIT! Replaced on runs of cargo-raze """ load("@bazel_tools//tools/build_defs/repo:git.bzl", "new_git_repository") # buildifier: disable=load load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") # buildifier: disable=load load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") # buildifier: disable=load # EXPERIMENTAL -- MAY CHANGE AT ANY TIME: A mapping of package names to a set of normal dependencies for the Rust targets of that package. _DEPENDENCIES = { "impl": { "anyhow": "@cargo_raze__anyhow__1_0_40//:anyhow", "cargo-clone-crate": "@cargo_raze__cargo_clone_crate__0_1_6//:cargo_clone_crate", "cargo-lock": "@cargo_raze__cargo_lock__7_0_1//:cargo_lock", "cargo-platform": "@cargo_raze__cargo_platform__0_1_1//:cargo_platform", "cargo_metadata": "@cargo_raze__cargo_metadata__0_14_0//:cargo_metadata", "cargo_toml": "@cargo_raze__cargo_toml__0_8_1//:cargo_toml", "cfg-expr": "@cargo_raze__cfg_expr__0_10_2//:cfg_expr", "crates-index": "@cargo_raze__crates_index__0_17_0//:crates_index", "docopt": "@cargo_raze__docopt__1_1_1//:docopt", "glob": "@cargo_raze__glob__0_3_0//:glob", "itertools": "@cargo_raze__itertools__0_10_0//:itertools", "log": "@cargo_raze__log__0_4_14//:log", "pathdiff": "@cargo_raze__pathdiff__0_2_0//:pathdiff", "regex": "@cargo_raze__regex__1_4_5//:regex", "rustc-serialize": "@cargo_raze__rustc_serialize__0_3_24//:rustc_serialize", "semver": "@cargo_raze__semver__1_0_3//:semver", "serde": "@cargo_raze__serde__1_0_126//:serde", "serde_json": "@cargo_raze__serde_json__1_0_64//:serde_json", "slug": "@cargo_raze__slug__0_1_4//:slug", "spdx": "@cargo_raze__spdx__0_3_6//:spdx", "tempfile": "@cargo_raze__tempfile__3_2_0//:tempfile", "tera": "@cargo_raze__tera__1_7_0//:tera", "toml": "@cargo_raze__toml__0_5_8//:toml", "url": "@cargo_raze__url__2_2_1//:url", }, } # EXPERIMENTAL -- MAY CHANGE AT ANY TIME: A mapping of package names to a set of proc_macro dependencies for the Rust targets of that package. _PROC_MACRO_DEPENDENCIES = { "impl": { "serde_derive": "@cargo_raze__serde_derive__1_0_126//:serde_derive", }, } # EXPERIMENTAL -- MAY CHANGE AT ANY TIME: A mapping of package names to a set of normal dev dependencies for the Rust targets of that package. _DEV_DEPENDENCIES = { "impl": { "flate2": "@cargo_raze__flate2__1_0_20//:flate2", "hamcrest2": "@cargo_raze__hamcrest2__0_3_0//:hamcrest2", "httpmock": "@cargo_raze__httpmock__0_5_7//:httpmock", "lazy_static": "@cargo_raze__lazy_static__1_4_0//:lazy_static", "tar": "@cargo_raze__tar__0_4_33//:tar", }, } # EXPERIMENTAL -- MAY CHANGE AT ANY TIME: A mapping of package names to a set of proc_macro dev dependencies for the Rust targets of that package. _DEV_PROC_MACRO_DEPENDENCIES = { "impl": { "indoc": "@cargo_raze__indoc__1_0_3//:indoc", }, } def crate_deps(deps, package_name = None): """EXPERIMENTAL -- MAY CHANGE AT ANY TIME: Finds the fully qualified label of the requested crates for the package where this macro is called. WARNING: This macro is part of an expeirmental API and is subject to change. Args: deps (list): The desired list of crate targets. package_name (str, optional): The package name of the set of dependencies to look up. Defaults to `native.package_name()`. Returns: list: A list of labels to cargo-raze generated targets (str) """ if not package_name: package_name = native.package_name() # Join both sets of dependencies dependencies = _flatten_dependency_maps([ _DEPENDENCIES, _PROC_MACRO_DEPENDENCIES, _DEV_DEPENDENCIES, _DEV_PROC_MACRO_DEPENDENCIES, ]) if not deps: return [] missing_crates = [] crate_targets = [] for crate_target in deps: if crate_target not in dependencies[package_name]: missing_crates.append(crate_target) else: crate_targets.append(dependencies[package_name][crate_target]) if missing_crates: fail("Could not find crates `{}` among dependencies of `{}`. Available dependencies were `{}`".format( missing_crates, package_name, dependencies[package_name], )) return crate_targets def all_crate_deps(normal = False, normal_dev = False, proc_macro = False, proc_macro_dev = False, package_name = None): """EXPERIMENTAL -- MAY CHANGE AT ANY TIME: Finds the fully qualified label of all requested direct crate dependencies \ for the package where this macro is called. If no parameters are set, all normal dependencies are returned. Setting any one flag will otherwise impact the contents of the returned list. Args: normal (bool, optional): If True, normal dependencies are included in the output list. Defaults to False. normal_dev (bool, optional): If True, normla dev dependencies will be included in the output list. Defaults to False. proc_macro (bool, optional): If True, proc_macro dependencies are included in the output list. Defaults to False. proc_macro_dev (bool, optional): If True, dev proc_macro dependencies are included in the output list. Defaults to False. package_name (str, optional): The package name of the set of dependencies to look up. Defaults to `native.package_name()`. Returns: list: A list of labels to cargo-raze generated targets (str) """ if not package_name: package_name = native.package_name() # Determine the relevant maps to use all_dependency_maps = [] if normal: all_dependency_maps.append(_DEPENDENCIES) if normal_dev: all_dependency_maps.append(_DEV_DEPENDENCIES) if proc_macro: all_dependency_maps.append(_PROC_MACRO_DEPENDENCIES) if proc_macro_dev: all_dependency_maps.append(_DEV_PROC_MACRO_DEPENDENCIES) # Default to always using normal dependencies if not all_dependency_maps: all_dependency_maps.append(_DEPENDENCIES) dependencies = _flatten_dependency_maps(all_dependency_maps) if not dependencies: return [] return dependencies[package_name].values() def _flatten_dependency_maps(all_dependency_maps): """Flatten a list of dependency maps into one dictionary. Dependency maps have the following structure: ```python DEPENDENCIES_MAP = { # The first key in the map is a Bazel package # name of the workspace this file is defined in. "package_name": { # An alias to a crate target. # The label of the crate target the # Aliases are only crate names. # alias refers to. "alias": "@full//:label", } } ``` Args: all_dependency_maps (list): A list of dicts as described above Returns: dict: A dictionary as described above """ dependencies = {} for dep_map in all_dependency_maps: for pkg_name in dep_map: if pkg_name not in dependencies: # Add a non-frozen dict to the collection of dependencies dependencies.setdefault(pkg_name, dict(dep_map[pkg_name].items())) continue duplicate_crate_aliases = [key for key in dependencies[pkg_name] if key in dep_map[pkg_name]] if duplicate_crate_aliases: fail("There should be no duplicate crate aliases: {}".format(duplicate_crate_aliases)) dependencies[pkg_name].update(dep_map[pkg_name]) return dependencies def cargo_raze_fetch_remote_crates(): """This function defines a collection of repos and should be called in a WORKSPACE file""" maybe( http_archive, name = "cargo_raze__adler__1_0_2", url = "https://crates.io/api/v1/crates/adler/1.0.2/download", type = "tar.gz", sha256 = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe", strip_prefix = "adler-1.0.2", build_file = Label("//third_party/cargo/remote:BUILD.adler-1.0.2.bazel"), ) maybe( http_archive, name = "cargo_raze__aho_corasick__0_7_15", url = "https://crates.io/api/v1/crates/aho-corasick/0.7.15/download", type = "tar.gz", sha256 = "7404febffaa47dac81aa44dba71523c9d069b1bdc50a77db41195149e17f68e5", strip_prefix = "aho-corasick-0.7.15", build_file = Label("//third_party/cargo/remote:BUILD.aho-corasick-0.7.15.bazel"), ) maybe( http_archive, name = "cargo_raze__anyhow__1_0_40", url = "https://crates.io/api/v1/crates/anyhow/1.0.40/download", type = "tar.gz", sha256 = "28b2cd92db5cbd74e8e5028f7e27dd7aa3090e89e4f2a197cc7c8dfb69c7063b", strip_prefix = "anyhow-1.0.40", build_file = Label("//third_party/cargo/remote:BUILD.anyhow-1.0.40.bazel"), ) maybe( http_archive, name = "cargo_raze__arrayref__0_3_6", url = "https://crates.io/api/v1/crates/arrayref/0.3.6/download", type = "tar.gz", sha256 = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544", strip_prefix = "arrayref-0.3.6", build_file = Label("//third_party/cargo/remote:BUILD.arrayref-0.3.6.bazel"), ) maybe( http_archive, name = "cargo_raze__arrayvec__0_5_2", url = "https://crates.io/api/v1/crates/arrayvec/0.5.2/download", type = "tar.gz", sha256 = "23b62fc65de8e4e7f52534fb52b0f3ed04746ae267519eef2a83941e8085068b", strip_prefix = "arrayvec-0.5.2", build_file = Label("//third_party/cargo/remote:BUILD.arrayvec-0.5.2.bazel"), ) maybe( http_archive, name = "cargo_raze__ascii_canvas__2_0_0", url = "https://crates.io/api/v1/crates/ascii-canvas/2.0.0/download", type = "tar.gz", sha256 = "ff8eb72df928aafb99fe5d37b383f2fe25bd2a765e3e5f7c365916b6f2463a29", strip_prefix = "ascii-canvas-2.0.0", build_file = Label("//third_party/cargo/remote:BUILD.ascii-canvas-2.0.0.bazel"), ) maybe( http_archive, name = "cargo_raze__assert_json_diff__2_0_1", url = "https://crates.io/api/v1/crates/assert-json-diff/2.0.1/download", type = "tar.gz", sha256 = "50f1c3703dd33532d7f0ca049168930e9099ecac238e23cf932f3a69c42f06da", strip_prefix = "assert-json-diff-2.0.1", build_file = Label("//third_party/cargo/remote:BUILD.assert-json-diff-2.0.1.bazel"), ) maybe( http_archive, name = "cargo_raze__async_channel__1_6_1", url = "https://crates.io/api/v1/crates/async-channel/1.6.1/download", type = "tar.gz", sha256 = "2114d64672151c0c5eaa5e131ec84a74f06e1e559830dabba01ca30605d66319", strip_prefix = "async-channel-1.6.1", build_file = Label("//third_party/cargo/remote:BUILD.async-channel-1.6.1.bazel"), ) maybe( http_archive, name = "cargo_raze__async_executor__1_4_0", url = "https://crates.io/api/v1/crates/async-executor/1.4.0/download", type = "tar.gz", sha256 = "eb877970c7b440ead138f6321a3b5395d6061183af779340b65e20c0fede9146", strip_prefix = "async-executor-1.4.0", build_file = Label("//third_party/cargo/remote:BUILD.async-executor-1.4.0.bazel"), ) maybe( http_archive, name = "cargo_raze__async_global_executor__2_0_2", url = "https://crates.io/api/v1/crates/async-global-executor/2.0.2/download", type = "tar.gz", sha256 = "9586ec52317f36de58453159d48351bc244bc24ced3effc1fce22f3d48664af6", strip_prefix = "async-global-executor-2.0.2", build_file = Label("//third_party/cargo/remote:BUILD.async-global-executor-2.0.2.bazel"), ) maybe( http_archive, name = "cargo_raze__async_io__1_3_1", url = "https://crates.io/api/v1/crates/async-io/1.3.1/download", type = "tar.gz", sha256 = "9315f8f07556761c3e48fec2e6b276004acf426e6dc068b2c2251854d65ee0fd", strip_prefix = "async-io-1.3.1", build_file = Label("//third_party/cargo/remote:BUILD.async-io-1.3.1.bazel"), ) maybe( http_archive, name = "cargo_raze__async_lock__2_3_0", url = "https://crates.io/api/v1/crates/async-lock/2.3.0/download", type = "tar.gz", sha256 = "1996609732bde4a9988bc42125f55f2af5f3c36370e27c778d5191a4a1b63bfb", strip_prefix = "async-lock-2.3.0", build_file = Label("//third_party/cargo/remote:BUILD.async-lock-2.3.0.bazel"), ) maybe( http_archive, name = "cargo_raze__async_mutex__1_4_0", url = "https://crates.io/api/v1/crates/async-mutex/1.4.0/download", type = "tar.gz", sha256 = "479db852db25d9dbf6204e6cb6253698f175c15726470f78af0d918e99d6156e", strip_prefix = "async-mutex-1.4.0", build_file = Label("//third_party/cargo/remote:BUILD.async-mutex-1.4.0.bazel"), ) maybe( http_archive, name = "cargo_raze__async_object_pool__0_1_4", url = "https://crates.io/api/v1/crates/async-object-pool/0.1.4/download", type = "tar.gz", sha256 = "aeb901c30ebc2fc4ab46395bbfbdba9542c16559d853645d75190c3056caf3bc", strip_prefix = "async-object-pool-0.1.4", build_file = Label("//third_party/cargo/remote:BUILD.async-object-pool-0.1.4.bazel"), ) maybe( http_archive, name = "cargo_raze__async_process__1_0_2", url = "https://crates.io/api/v1/crates/async-process/1.0.2/download", type = "tar.gz", sha256 = "ef37b86e2fa961bae5a4d212708ea0154f904ce31d1a4a7f47e1bbc33a0c040b", strip_prefix = "async-process-1.0.2", build_file = Label("//third_party/cargo/remote:BUILD.async-process-1.0.2.bazel"), ) maybe( http_archive, name = "cargo_raze__async_std__1_9_0", url = "https://crates.io/api/v1/crates/async-std/1.9.0/download", type = "tar.gz", sha256 = "d9f06685bad74e0570f5213741bea82158279a4103d988e57bfada11ad230341", strip_prefix = "async-std-1.9.0", build_file = Label("//third_party/cargo/remote:BUILD.async-std-1.9.0.bazel"), ) maybe( http_archive, name = "cargo_raze__async_task__4_0_3", url = "https://crates.io/api/v1/crates/async-task/4.0.3/download", type = "tar.gz", sha256 = "e91831deabf0d6d7ec49552e489aed63b7456a7a3c46cff62adad428110b0af0", strip_prefix = "async-task-4.0.3", build_file = Label("//third_party/cargo/remote:BUILD.async-task-4.0.3.bazel"), ) maybe( http_archive, name = "cargo_raze__async_trait__0_1_48", url = "https://crates.io/api/v1/crates/async-trait/0.1.48/download", type = "tar.gz", sha256 = "36ea56748e10732c49404c153638a15ec3d6211ec5ff35d9bb20e13b93576adf", strip_prefix = "async-trait-0.1.48", build_file = Label("//third_party/cargo/remote:BUILD.async-trait-0.1.48.bazel"), ) maybe( http_archive, name = "cargo_raze__atomic_waker__1_0_0", url = "https://crates.io/api/v1/crates/atomic-waker/1.0.0/download", type = "tar.gz", sha256 = "065374052e7df7ee4047b1160cca5e1467a12351a40b3da123c870ba0b8eda2a", strip_prefix = "atomic-waker-1.0.0", build_file = Label("//third_party/cargo/remote:BUILD.atomic-waker-1.0.0.bazel"), ) maybe( http_archive, name = "cargo_raze__atty__0_2_14", url = "https://crates.io/api/v1/crates/atty/0.2.14/download", type = "tar.gz", sha256 = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8", strip_prefix = "atty-0.2.14", build_file = Label("//third_party/cargo/remote:BUILD.atty-0.2.14.bazel"), ) maybe( http_archive, name = "cargo_raze__autocfg__1_0_1", url = "https://crates.io/api/v1/crates/autocfg/1.0.1/download", type = "tar.gz", sha256 = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a", strip_prefix = "autocfg-1.0.1", build_file = Label("//third_party/cargo/remote:BUILD.autocfg-1.0.1.bazel"), ) maybe( http_archive, name = "cargo_raze__base64__0_13_0", url = "https://crates.io/api/v1/crates/base64/0.13.0/download", type = "tar.gz", sha256 = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd", strip_prefix = "base64-0.13.0", build_file = Label("//third_party/cargo/remote:BUILD.base64-0.13.0.bazel"), ) maybe( http_archive, name = "cargo_raze__basic_cookies__0_1_4", url = "https://crates.io/api/v1/crates/basic-cookies/0.1.4/download", type = "tar.gz", sha256 = "cb53b6b315f924c7f113b162e53b3901c05fc9966baf84d201dfcc7432a4bb38", strip_prefix = "basic-cookies-0.1.4", build_file = Label("//third_party/cargo/remote:BUILD.basic-cookies-0.1.4.bazel"), ) maybe( http_archive, name = "cargo_raze__bit_set__0_5_2", url = "https://crates.io/api/v1/crates/bit-set/0.5.2/download", type = "tar.gz", sha256 = "6e11e16035ea35e4e5997b393eacbf6f63983188f7a2ad25bfb13465f5ad59de", strip_prefix = "bit-set-0.5.2", build_file = Label("//third_party/cargo/remote:BUILD.bit-set-0.5.2.bazel"), ) maybe( http_archive, name = "cargo_raze__bit_vec__0_6_3", url = "https://crates.io/api/v1/crates/bit-vec/0.6.3/download", type = "tar.gz", sha256 = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb", strip_prefix = "bit-vec-0.6.3", build_file = Label("//third_party/cargo/remote:BUILD.bit-vec-0.6.3.bazel"), ) maybe( http_archive, name = "cargo_raze__bitflags__1_2_1", url = "https://crates.io/api/v1/crates/bitflags/1.2.1/download", type = "tar.gz", sha256 = "cf1de2fe8c75bc145a2f577add951f8134889b4795d47466a54a5c846d691693", strip_prefix = "bitflags-1.2.1", build_file = Label("//third_party/cargo/remote:BUILD.bitflags-1.2.1.bazel"), ) maybe( http_archive, name = "cargo_raze__blake2b_simd__0_5_11", url = "https://crates.io/api/v1/crates/blake2b_simd/0.5.11/download", type = "tar.gz", sha256 = "afa748e348ad3be8263be728124b24a24f268266f6f5d58af9d75f6a40b5c587", strip_prefix = "blake2b_simd-0.5.11", build_file = Label("//third_party/cargo/remote:BUILD.blake2b_simd-0.5.11.bazel"), ) maybe( http_archive, name = "cargo_raze__block_buffer__0_7_3", url = "https://crates.io/api/v1/crates/block-buffer/0.7.3/download", type = "tar.gz", sha256 = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b", strip_prefix = "block-buffer-0.7.3", build_file = Label("//third_party/cargo/remote:BUILD.block-buffer-0.7.3.bazel"), ) maybe( http_archive, name = "cargo_raze__block_padding__0_1_5", url = "https://crates.io/api/v1/crates/block-padding/0.1.5/download", type = "tar.gz", sha256 = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5", strip_prefix = "block-padding-0.1.5", build_file = Label("//third_party/cargo/remote:BUILD.block-padding-0.1.5.bazel"), ) maybe( http_archive, name = "cargo_raze__blocking__1_0_2", url = "https://crates.io/api/v1/crates/blocking/1.0.2/download", type = "tar.gz", sha256 = "c5e170dbede1f740736619b776d7251cb1b9095c435c34d8ca9f57fcd2f335e9", strip_prefix = "blocking-1.0.2", build_file = Label("//third_party/cargo/remote:BUILD.blocking-1.0.2.bazel"), ) maybe( http_archive, name = "cargo_raze__bstr__0_2_15", url = "https://crates.io/api/v1/crates/bstr/0.2.15/download", type = "tar.gz", sha256 = "a40b47ad93e1a5404e6c18dec46b628214fee441c70f4ab5d6942142cc268a3d", strip_prefix = "bstr-0.2.15", build_file = Label("//third_party/cargo/remote:BUILD.bstr-0.2.15.bazel"), ) maybe( http_archive, name = "cargo_raze__bumpalo__3_6_1", url = "https://crates.io/api/v1/crates/bumpalo/3.6.1/download", type = "tar.gz", sha256 = "63396b8a4b9de3f4fdfb320ab6080762242f66a8ef174c49d8e19b674db4cdbe", strip_prefix = "bumpalo-3.6.1", build_file = Label("//third_party/cargo/remote:BUILD.bumpalo-3.6.1.bazel"), ) maybe( http_archive, name = "cargo_raze__byte_tools__0_3_1", url = "https://crates.io/api/v1/crates/byte-tools/0.3.1/download", type = "tar.gz", sha256 = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7", strip_prefix = "byte-tools-0.3.1", build_file = Label("//third_party/cargo/remote:BUILD.byte-tools-0.3.1.bazel"), ) maybe( http_archive, name = "cargo_raze__byteorder__1_4_3", url = "https://crates.io/api/v1/crates/byteorder/1.4.3/download", type = "tar.gz", sha256 = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610", strip_prefix = "byteorder-1.4.3", build_file = Label("//third_party/cargo/remote:BUILD.byteorder-1.4.3.bazel"), ) maybe( http_archive, name = "cargo_raze__bytes__1_0_1", url = "https://crates.io/api/v1/crates/bytes/1.0.1/download", type = "tar.gz", sha256 = "b700ce4376041dcd0a327fd0097c41095743c4c8af8887265942faf1100bd040", strip_prefix = "bytes-1.0.1", build_file = Label("//third_party/cargo/remote:BUILD.bytes-1.0.1.bazel"), ) maybe( http_archive, name = "cargo_raze__cache_padded__1_1_1", url = "https://crates.io/api/v1/crates/cache-padded/1.1.1/download", type = "tar.gz", sha256 = "631ae5198c9be5e753e5cc215e1bd73c2b466a3565173db433f52bb9d3e66dba", strip_prefix = "cache-padded-1.1.1", build_file = Label("//third_party/cargo/remote:BUILD.cache-padded-1.1.1.bazel"), ) maybe( http_archive, name = "cargo_raze__camino__1_0_4", url = "https://crates.io/api/v1/crates/camino/1.0.4/download", type = "tar.gz", sha256 = "d4648c6d00a709aa069a236adcaae4f605a6241c72bf5bee79331a4b625921a9", strip_prefix = "camino-1.0.4", build_file = Label("//third_party/cargo/remote:BUILD.camino-1.0.4.bazel"), ) maybe( http_archive, name = "cargo_raze__cargo_clone_crate__0_1_6", url = "https://crates.io/api/v1/crates/cargo-clone-crate/0.1.6/download", type = "tar.gz", sha256 = "6b78a45c9c653977a5f6513261370501ce16de5ddcef970adbff135cf63540fe", strip_prefix = "cargo-clone-crate-0.1.6", build_file = Label("//third_party/cargo/remote:BUILD.cargo-clone-crate-0.1.6.bazel"), ) maybe( http_archive, name = "cargo_raze__cargo_lock__7_0_1", url = "https://crates.io/api/v1/crates/cargo-lock/7.0.1/download", type = "tar.gz", sha256 = "7fb04b88bd5b2036e30704f95c6ee16f3b5ca3b4ca307da2889d9006648e5c88", strip_prefix = "cargo-lock-7.0.1", build_file = Label("//third_party/cargo/remote:BUILD.cargo-lock-7.0.1.bazel"), ) maybe( http_archive, name = "cargo_raze__cargo_platform__0_1_1", url = "https://crates.io/api/v1/crates/cargo-platform/0.1.1/download", type = "tar.gz", sha256 = "0226944a63d1bf35a3b5f948dd7c59e263db83695c9e8bffc4037de02e30f1d7", strip_prefix = "cargo-platform-0.1.1", build_file = Label("//third_party/cargo/remote:BUILD.cargo-platform-0.1.1.bazel"), ) maybe( http_archive, name = "cargo_raze__cargo_metadata__0_14_0", url = "https://crates.io/api/v1/crates/cargo_metadata/0.14.0/download", type = "tar.gz", sha256 = "c297bd3135f558552f99a0daa180876984ea2c4ffa7470314540dff8c654109a", strip_prefix = "cargo_metadata-0.14.0", build_file = Label("//third_party/cargo/remote:BUILD.cargo_metadata-0.14.0.bazel"), ) maybe( http_archive, name = "cargo_raze__cargo_toml__0_8_1", url = "https://crates.io/api/v1/crates/cargo_toml/0.8.1/download", type = "tar.gz", sha256 = "513d17226888c7b8283ac02a1c1b0d8a9d4cbf6db65dfadb79f598f5d7966fe9", strip_prefix = "cargo_toml-0.8.1", build_file = Label("//third_party/cargo/remote:BUILD.cargo_toml-0.8.1.bazel"), ) maybe( http_archive, name = "cargo_raze__cc__1_0_67", url = "https://crates.io/api/v1/crates/cc/1.0.67/download", type = "tar.gz", sha256 = "e3c69b077ad434294d3ce9f1f6143a2a4b89a8a2d54ef813d85003a4fd1137fd", strip_prefix = "cc-1.0.67", build_file = Label("//third_party/cargo/remote:BUILD.cc-1.0.67.bazel"), ) maybe( http_archive, name = "cargo_raze__cfg_expr__0_10_2", url = "https://crates.io/api/v1/crates/cfg-expr/0.10.2/download", type = "tar.gz", sha256 = "5e068cb2806bbc15b439846dc16c5f89f8599f2c3e4d73d4449d38f9b2f0b6c5", strip_prefix = "cfg-expr-0.10.2", build_file = Label("//third_party/cargo/remote:BUILD.cfg-expr-0.10.2.bazel"), ) maybe( http_archive, name = "cargo_raze__cfg_if__1_0_0", url = "https://crates.io/api/v1/crates/cfg-if/1.0.0/download", type = "tar.gz", sha256 = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd", strip_prefix = "cfg-if-1.0.0", build_file = Label("//third_party/cargo/remote:BUILD.cfg-if-1.0.0.bazel"), ) maybe( http_archive, name = "cargo_raze__chrono__0_4_19", url = "https://crates.io/api/v1/crates/chrono/0.4.19/download", type = "tar.gz", sha256 = "670ad68c9088c2a963aaa298cb369688cf3f9465ce5e2d4ca10e6e0098a1ce73", strip_prefix = "chrono-0.4.19", build_file = Label("//third_party/cargo/remote:BUILD.chrono-0.4.19.bazel"), ) maybe( http_archive, name = "cargo_raze__chrono_tz__0_5_3", url = "https://crates.io/api/v1/crates/chrono-tz/0.5.3/download", type = "tar.gz", sha256 = "2554a3155fec064362507487171dcc4edc3df60cb10f3a1fb10ed8094822b120", strip_prefix = "chrono-tz-0.5.3", build_file = Label("//third_party/cargo/remote:BUILD.chrono-tz-0.5.3.bazel"), ) maybe( http_archive, name = "cargo_raze__concurrent_queue__1_2_2", url = "https://crates.io/api/v1/crates/concurrent-queue/1.2.2/download", type = "tar.gz", sha256 = "30ed07550be01594c6026cff2a1d7fe9c8f683caa798e12b68694ac9e88286a3", strip_prefix = "concurrent-queue-1.2.2", build_file = Label("//third_party/cargo/remote:BUILD.concurrent-queue-1.2.2.bazel"), ) maybe( http_archive, name = "cargo_raze__constant_time_eq__0_1_5", url = "https://crates.io/api/v1/crates/constant_time_eq/0.1.5/download", type = "tar.gz", sha256 = "245097e9a4535ee1e3e3931fcfcd55a796a44c643e8596ff6566d68f09b87bbc", strip_prefix = "constant_time_eq-0.1.5", build_file = Label("//third_party/cargo/remote:BUILD.constant_time_eq-0.1.5.bazel"), ) maybe( http_archive, name = "cargo_raze__core_foundation__0_9_1", url = "https://crates.io/api/v1/crates/core-foundation/0.9.1/download", type = "tar.gz", sha256 = "0a89e2ae426ea83155dccf10c0fa6b1463ef6d5fcb44cee0b224a408fa640a62", strip_prefix = "core-foundation-0.9.1", build_file = Label("//third_party/cargo/remote:BUILD.core-foundation-0.9.1.bazel"), ) maybe( http_archive, name = "cargo_raze__core_foundation_sys__0_8_2", url = "https://crates.io/api/v1/crates/core-foundation-sys/0.8.2/download", type = "tar.gz", sha256 = "ea221b5284a47e40033bf9b66f35f984ec0ea2931eb03505246cd27a963f981b", strip_prefix = "core-foundation-sys-0.8.2", build_file = Label("//third_party/cargo/remote:BUILD.core-foundation-sys-0.8.2.bazel"), ) maybe( http_archive, name = "cargo_raze__crates_index__0_17_0", url = "https://crates.io/api/v1/crates/crates-index/0.17.0/download", type = "tar.gz", sha256 = "8ad4af5c8dd9940a497ef4473e6e558b660a4a1b6e5ce2cb9d85454e2aaaf947", strip_prefix = "crates-index-0.17.0", build_file = Label("//third_party/cargo/remote:BUILD.crates-index-0.17.0.bazel"), ) maybe( http_archive, name = "cargo_raze__crc32fast__1_2_1", url = "https://crates.io/api/v1/crates/crc32fast/1.2.1/download", type = "tar.gz", sha256 = "81156fece84ab6a9f2afdb109ce3ae577e42b1228441eded99bd77f627953b1a", strip_prefix = "crc32fast-1.2.1", build_file = Label("//third_party/cargo/remote:BUILD.crc32fast-1.2.1.bazel"), ) maybe( http_archive, name = "cargo_raze__crossbeam_utils__0_8_3", url = "https://crates.io/api/v1/crates/crossbeam-utils/0.8.3/download", type = "tar.gz", sha256 = "e7e9d99fa91428effe99c5c6d4634cdeba32b8cf784fc428a2a687f61a952c49", strip_prefix = "crossbeam-utils-0.8.3", build_file = Label("//third_party/cargo/remote:BUILD.crossbeam-utils-0.8.3.bazel"), ) maybe( http_archive, name = "cargo_raze__crunchy__0_2_2", url = "https://crates.io/api/v1/crates/crunchy/0.2.2/download", type = "tar.gz", sha256 = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7", strip_prefix = "crunchy-0.2.2", build_file = Label("//third_party/cargo/remote:BUILD.crunchy-0.2.2.bazel"), ) maybe( http_archive, name = "cargo_raze__ctor__0_1_20", url = "https://crates.io/api/v1/crates/ctor/0.1.20/download", type = "tar.gz", sha256 = "5e98e2ad1a782e33928b96fc3948e7c355e5af34ba4de7670fe8bac2a3b2006d", strip_prefix = "ctor-0.1.20", build_file = Label("//third_party/cargo/remote:BUILD.ctor-0.1.20.bazel"), ) maybe( http_archive, name = "cargo_raze__curl__0_4_35", url = "https://crates.io/api/v1/crates/curl/0.4.35/download", type = "tar.gz", sha256 = "5a872858e9cb9e3b96c80dd78774ad9e32e44d3b05dc31e142b858d14aebc82c", strip_prefix = "curl-0.4.35", build_file = Label("//third_party/cargo/remote:BUILD.curl-0.4.35.bazel"), ) maybe( http_archive, name = "cargo_raze__curl_sys__0_4_41_curl_7_75_0", url = "https://crates.io/api/v1/crates/curl-sys/0.4.41+curl-7.75.0/download", type = "tar.gz", sha256 = "0ec466abd277c7cab2905948f3e94d10bc4963f1f5d47921c1cc4ffd2028fe65", strip_prefix = "curl-sys-0.4.41+curl-7.75.0", build_file = Label("//third_party/cargo/remote:BUILD.curl-sys-0.4.41+curl-7.75.0.bazel"), ) maybe( http_archive, name = "cargo_raze__deunicode__0_4_3", url = "https://crates.io/api/v1/crates/deunicode/0.4.3/download", type = "tar.gz", sha256 = "850878694b7933ca4c9569d30a34b55031b9b139ee1fc7b94a527c4ef960d690", strip_prefix = "deunicode-0.4.3", build_file = Label("//third_party/cargo/remote:BUILD.deunicode-0.4.3.bazel"), ) maybe( http_archive, name = "cargo_raze__diff__0_1_12", url = "https://crates.io/api/v1/crates/diff/0.1.12/download", type = "tar.gz", sha256 = "0e25ea47919b1560c4e3b7fe0aaab9becf5b84a10325ddf7db0f0ba5e1026499", strip_prefix = "diff-0.1.12", build_file = Label("//third_party/cargo/remote:BUILD.diff-0.1.12.bazel"), ) maybe( http_archive, name = "cargo_raze__difference__2_0_0", url = "https://crates.io/api/v1/crates/difference/2.0.0/download", type = "tar.gz", sha256 = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198", strip_prefix = "difference-2.0.0", build_file = Label("//third_party/cargo/remote:BUILD.difference-2.0.0.bazel"), ) maybe( http_archive, name = "cargo_raze__digest__0_8_1", url = "https://crates.io/api/v1/crates/digest/0.8.1/download", type = "tar.gz", sha256 = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5", strip_prefix = "digest-0.8.1", build_file = Label("//third_party/cargo/remote:BUILD.digest-0.8.1.bazel"), ) maybe( http_archive, name = "cargo_raze__dirs__1_0_5", url = "https://crates.io/api/v1/crates/dirs/1.0.5/download", type = "tar.gz", sha256 = "3fd78930633bd1c6e35c4b42b1df7b0cbc6bc191146e512bb3bedf243fcc3901", strip_prefix = "dirs-1.0.5", build_file = Label("//third_party/cargo/remote:BUILD.dirs-1.0.5.bazel"), ) maybe( http_archive, name = "cargo_raze__docopt__1_1_1", url = "https://crates.io/api/v1/crates/docopt/1.1.1/download", type = "tar.gz", sha256 = "7f3f119846c823f9eafcf953a8f6ffb6ed69bf6240883261a7f13b634579a51f", strip_prefix = "docopt-1.1.1", build_file = Label("//third_party/cargo/remote:BUILD.docopt-1.1.1.bazel"), ) maybe( http_archive, name = "cargo_raze__either__1_6_1", url = "https://crates.io/api/v1/crates/either/1.6.1/download", type = "tar.gz", sha256 = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457", strip_prefix = "either-1.6.1", build_file = Label("//third_party/cargo/remote:BUILD.either-1.6.1.bazel"), ) maybe( http_archive, name = "cargo_raze__ena__0_14_0", url = "https://crates.io/api/v1/crates/ena/0.14.0/download", type = "tar.gz", sha256 = "d7402b94a93c24e742487327a7cd839dc9d36fec9de9fb25b09f2dae459f36c3", strip_prefix = "ena-0.14.0", build_file = Label("//third_party/cargo/remote:BUILD.ena-0.14.0.bazel"), ) maybe( http_archive, name = "cargo_raze__encoding_rs__0_8_28", url = "https://crates.io/api/v1/crates/encoding_rs/0.8.28/download", type = "tar.gz", sha256 = "80df024fbc5ac80f87dfef0d9f5209a252f2a497f7f42944cff24d8253cac065", strip_prefix = "encoding_rs-0.8.28", build_file = Label("//third_party/cargo/remote:BUILD.encoding_rs-0.8.28.bazel"), ) maybe( http_archive, name = "cargo_raze__event_listener__2_5_1", url = "https://crates.io/api/v1/crates/event-listener/2.5.1/download", type = "tar.gz", sha256 = "f7531096570974c3a9dcf9e4b8e1cede1ec26cf5046219fb3b9d897503b9be59", strip_prefix = "event-listener-2.5.1", build_file = Label("//third_party/cargo/remote:BUILD.event-listener-2.5.1.bazel"), ) maybe( http_archive, name = "cargo_raze__fake_simd__0_1_2", url = "https://crates.io/api/v1/crates/fake-simd/0.1.2/download", type = "tar.gz", sha256 = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed", strip_prefix = "fake-simd-0.1.2", build_file = Label("//third_party/cargo/remote:BUILD.fake-simd-0.1.2.bazel"), ) maybe( http_archive, name = "cargo_raze__fastrand__1_4_0", url = "https://crates.io/api/v1/crates/fastrand/1.4.0/download", type = "tar.gz", sha256 = "ca5faf057445ce5c9d4329e382b2ce7ca38550ef3b73a5348362d5f24e0c7fe3", strip_prefix = "fastrand-1.4.0", build_file = Label("//third_party/cargo/remote:BUILD.fastrand-1.4.0.bazel"), ) maybe( http_archive, name = "cargo_raze__filetime__0_2_14", url = "https://crates.io/api/v1/crates/filetime/0.2.14/download", type = "tar.gz", sha256 = "1d34cfa13a63ae058bfa601fe9e313bbdb3746427c1459185464ce0fcf62e1e8", strip_prefix = "filetime-0.2.14", build_file = Label("//third_party/cargo/remote:BUILD.filetime-0.2.14.bazel"), ) maybe( http_archive, name = "cargo_raze__fixedbitset__0_2_0", url = "https://crates.io/api/v1/crates/fixedbitset/0.2.0/download", type = "tar.gz", sha256 = "37ab347416e802de484e4d03c7316c48f1ecb56574dfd4a46a80f173ce1de04d", strip_prefix = "fixedbitset-0.2.0", build_file = Label("//third_party/cargo/remote:BUILD.fixedbitset-0.2.0.bazel"), ) maybe( http_archive, name = "cargo_raze__flate2__1_0_20", url = "https://crates.io/api/v1/crates/flate2/1.0.20/download", type = "tar.gz", sha256 = "cd3aec53de10fe96d7d8c565eb17f2c687bb5518a2ec453b5b1252964526abe0", strip_prefix = "flate2-1.0.20", build_file = Label("//third_party/cargo/remote:BUILD.flate2-1.0.20.bazel"), ) maybe( http_archive, name = "cargo_raze__flume__0_10_2", url = "https://crates.io/api/v1/crates/flume/0.10.2/download", type = "tar.gz", sha256 = "531a685ab99b8f60a271b44d5dd1a76e55124a8c9fa0407b7a8e9cd172d5b588", strip_prefix = "flume-0.10.2", build_file = Label("//third_party/cargo/remote:BUILD.flume-0.10.2.bazel"), ) maybe( http_archive, name = "cargo_raze__fnv__1_0_7", url = "https://crates.io/api/v1/crates/fnv/1.0.7/download", type = "tar.gz", sha256 = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1", strip_prefix = "fnv-1.0.7", build_file = Label("//third_party/cargo/remote:BUILD.fnv-1.0.7.bazel"), ) maybe( http_archive, name = "cargo_raze__foreign_types__0_3_2", url = "https://crates.io/api/v1/crates/foreign-types/0.3.2/download", type = "tar.gz", sha256 = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1", strip_prefix = "foreign-types-0.3.2", build_file = Label("//third_party/cargo/remote:BUILD.foreign-types-0.3.2.bazel"), ) maybe( http_archive, name = "cargo_raze__foreign_types_shared__0_1_1", url = "https://crates.io/api/v1/crates/foreign-types-shared/0.1.1/download", type = "tar.gz", sha256 = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b", strip_prefix = "foreign-types-shared-0.1.1", build_file = Label("//third_party/cargo/remote:BUILD.foreign-types-shared-0.1.1.bazel"), ) maybe( http_archive, name = "cargo_raze__form_urlencoded__1_0_1", url = "https://crates.io/api/v1/crates/form_urlencoded/1.0.1/download", type = "tar.gz", sha256 = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191", strip_prefix = "form_urlencoded-1.0.1", build_file = Label("//third_party/cargo/remote:BUILD.form_urlencoded-1.0.1.bazel"), ) maybe( http_archive, name = "cargo_raze__futures_channel__0_3_13", url = "https://crates.io/api/v1/crates/futures-channel/0.3.13/download", type = "tar.gz", sha256 = "8c2dd2df839b57db9ab69c2c9d8f3e8c81984781937fe2807dc6dcf3b2ad2939", strip_prefix = "futures-channel-0.3.13", build_file = Label("//third_party/cargo/remote:BUILD.futures-channel-0.3.13.bazel"), ) maybe( http_archive, name = "cargo_raze__futures_core__0_3_13", url = "https://crates.io/api/v1/crates/futures-core/0.3.13/download", type = "tar.gz", sha256 = "15496a72fabf0e62bdc3df11a59a3787429221dd0710ba8ef163d6f7a9112c94", strip_prefix = "futures-core-0.3.13", build_file = Label("//third_party/cargo/remote:BUILD.futures-core-0.3.13.bazel"), ) maybe( http_archive, name = "cargo_raze__futures_io__0_3_13", url = "https://crates.io/api/v1/crates/futures-io/0.3.13/download", type = "tar.gz", sha256 = "d71c2c65c57704c32f5241c1223167c2c3294fd34ac020c807ddbe6db287ba59", strip_prefix = "futures-io-0.3.13", build_file = Label("//third_party/cargo/remote:BUILD.futures-io-0.3.13.bazel"), ) maybe( http_archive, name = "cargo_raze__futures_lite__1_11_3", url = "https://crates.io/api/v1/crates/futures-lite/1.11.3/download", type = "tar.gz", sha256 = "b4481d0cd0de1d204a4fa55e7d45f07b1d958abcb06714b3446438e2eff695fb", strip_prefix = "futures-lite-1.11.3", build_file = Label("//third_party/cargo/remote:BUILD.futures-lite-1.11.3.bazel"), ) maybe( http_archive, name = "cargo_raze__futures_macro__0_3_13", url = "https://crates.io/api/v1/crates/futures-macro/0.3.13/download", type = "tar.gz", sha256 = "ea405816a5139fb39af82c2beb921d52143f556038378d6db21183a5c37fbfb7", strip_prefix = "futures-macro-0.3.13", build_file = Label("//third_party/cargo/remote:BUILD.futures-macro-0.3.13.bazel"), ) maybe( http_archive, name = "cargo_raze__futures_sink__0_3_13", url = "https://crates.io/api/v1/crates/futures-sink/0.3.13/download", type = "tar.gz", sha256 = "85754d98985841b7d4f5e8e6fbfa4a4ac847916893ec511a2917ccd8525b8bb3", strip_prefix = "futures-sink-0.3.13", build_file = Label("//third_party/cargo/remote:BUILD.futures-sink-0.3.13.bazel"), ) maybe( http_archive, name = "cargo_raze__futures_task__0_3_13", url = "https://crates.io/api/v1/crates/futures-task/0.3.13/download", type = "tar.gz", sha256 = "fa189ef211c15ee602667a6fcfe1c1fd9e07d42250d2156382820fba33c9df80", strip_prefix = "futures-task-0.3.13", build_file = Label("//third_party/cargo/remote:BUILD.futures-task-0.3.13.bazel"), ) maybe( http_archive, name = "cargo_raze__futures_util__0_3_13", url = "https://crates.io/api/v1/crates/futures-util/0.3.13/download", type = "tar.gz", sha256 = "1812c7ab8aedf8d6f2701a43e1243acdbcc2b36ab26e2ad421eb99ac963d96d1", strip_prefix = "futures-util-0.3.13", build_file = Label("//third_party/cargo/remote:BUILD.futures-util-0.3.13.bazel"), ) maybe( http_archive, name = "cargo_raze__generic_array__0_12_4", url = "https://crates.io/api/v1/crates/generic-array/0.12.4/download", type = "tar.gz", sha256 = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd", strip_prefix = "generic-array-0.12.4", build_file = Label("//third_party/cargo/remote:BUILD.generic-array-0.12.4.bazel"), ) maybe( http_archive, name = "cargo_raze__getrandom__0_1_16", url = "https://crates.io/api/v1/crates/getrandom/0.1.16/download", type = "tar.gz", sha256 = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce", strip_prefix = "getrandom-0.1.16", build_file = Label("//third_party/cargo/remote:BUILD.getrandom-0.1.16.bazel"), ) maybe( http_archive, name = "cargo_raze__getrandom__0_2_2", url = "https://crates.io/api/v1/crates/getrandom/0.2.2/download", type = "tar.gz", sha256 = "c9495705279e7140bf035dde1f6e750c162df8b625267cd52cc44e0b156732c8", strip_prefix = "getrandom-0.2.2", build_file = Label("//third_party/cargo/remote:BUILD.getrandom-0.2.2.bazel"), ) maybe( http_archive, name = "cargo_raze__git2__0_13_20", url = "https://crates.io/api/v1/crates/git2/0.13.20/download", type = "tar.gz", sha256 = "d9831e983241f8c5591ed53f17d874833e2fa82cac2625f3888c50cbfe136cba", strip_prefix = "git2-0.13.20", build_file = Label("//third_party/cargo/remote:BUILD.git2-0.13.20.bazel"), ) maybe( http_archive, name = "cargo_raze__glob__0_3_0", url = "https://crates.io/api/v1/crates/glob/0.3.0/download", type = "tar.gz", sha256 = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574", strip_prefix = "glob-0.3.0", build_file = Label("//third_party/cargo/remote:BUILD.glob-0.3.0.bazel"), ) maybe( http_archive, name = "cargo_raze__globset__0_4_6", url = "https://crates.io/api/v1/crates/globset/0.4.6/download", type = "tar.gz", sha256 = "c152169ef1e421390738366d2f796655fec62621dabbd0fd476f905934061e4a", strip_prefix = "globset-0.4.6", build_file = Label("//third_party/cargo/remote:BUILD.globset-0.4.6.bazel"), ) maybe( http_archive, name = "cargo_raze__globwalk__0_8_1", url = "https://crates.io/api/v1/crates/globwalk/0.8.1/download", type = "tar.gz", sha256 = "93e3af942408868f6934a7b85134a3230832b9977cf66125df2f9edcfce4ddcc", strip_prefix = "globwalk-0.8.1", build_file = Label("//third_party/cargo/remote:BUILD.globwalk-0.8.1.bazel"), ) maybe( http_archive, name = "cargo_raze__gloo_timers__0_2_1", url = "https://crates.io/api/v1/crates/gloo-timers/0.2.1/download", type = "tar.gz", sha256 = "47204a46aaff920a1ea58b11d03dec6f704287d27561724a4631e450654a891f", strip_prefix = "gloo-timers-0.2.1", build_file = Label("//third_party/cargo/remote:BUILD.gloo-timers-0.2.1.bazel"), ) maybe( http_archive, name = "cargo_raze__h2__0_3_2", url = "https://crates.io/api/v1/crates/h2/0.3.2/download", type = "tar.gz", sha256 = "fc018e188373e2777d0ef2467ebff62a08e66c3f5857b23c8fbec3018210dc00", strip_prefix = "h2-0.3.2", build_file = Label("//third_party/cargo/remote:BUILD.h2-0.3.2.bazel"), ) maybe( http_archive, name = "cargo_raze__hamcrest2__0_3_0", url = "https://crates.io/api/v1/crates/hamcrest2/0.3.0/download", type = "tar.gz", sha256 = "49f837c62de05dc9cc71ff6486cd85de8856a330395ae338a04bfcefe5e91075", strip_prefix = "hamcrest2-0.3.0", build_file = Label("//third_party/cargo/remote:BUILD.hamcrest2-0.3.0.bazel"), ) maybe( http_archive, name = "cargo_raze__hashbrown__0_9_1", url = "https://crates.io/api/v1/crates/hashbrown/0.9.1/download", type = "tar.gz", sha256 = "d7afe4a420e3fe79967a00898cc1f4db7c8a49a9333a29f8a4bd76a253d5cd04", strip_prefix = "hashbrown-0.9.1", build_file = Label("//third_party/cargo/remote:BUILD.hashbrown-0.9.1.bazel"), ) maybe( http_archive, name = "cargo_raze__hermit_abi__0_1_18", url = "https://crates.io/api/v1/crates/hermit-abi/0.1.18/download", type = "tar.gz", sha256 = "322f4de77956e22ed0e5032c359a0f1273f1f7f0d79bfa3b8ffbc730d7fbcc5c", strip_prefix = "hermit-abi-0.1.18", build_file = Label("//third_party/cargo/remote:BUILD.hermit-abi-0.1.18.bazel"), ) maybe( http_archive, name = "cargo_raze__hex__0_4_3", url = "https://crates.io/api/v1/crates/hex/0.4.3/download", type = "tar.gz", sha256 = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70", strip_prefix = "hex-0.4.3", build_file = Label("//third_party/cargo/remote:BUILD.hex-0.4.3.bazel"), ) maybe( http_archive, name = "cargo_raze__home__0_5_3", url = "https://crates.io/api/v1/crates/home/0.5.3/download", type = "tar.gz", sha256 = "2456aef2e6b6a9784192ae780c0f15bc57df0e918585282325e8c8ac27737654", strip_prefix = "home-0.5.3", build_file = Label("//third_party/cargo/remote:BUILD.home-0.5.3.bazel"), ) maybe( http_archive, name = "cargo_raze__http__0_2_3", url = "https://crates.io/api/v1/crates/http/0.2.3/download", type = "tar.gz", sha256 = "7245cd7449cc792608c3c8a9eaf69bd4eabbabf802713748fd739c98b82f0747", strip_prefix = "http-0.2.3", build_file = Label("//third_party/cargo/remote:BUILD.http-0.2.3.bazel"), ) maybe( http_archive, name = "cargo_raze__http_body__0_4_1", url = "https://crates.io/api/v1/crates/http-body/0.4.1/download", type = "tar.gz", sha256 = "5dfb77c123b4e2f72a2069aeae0b4b4949cc7e966df277813fc16347e7549737", strip_prefix = "http-body-0.4.1", build_file = Label("//third_party/cargo/remote:BUILD.http-body-0.4.1.bazel"), ) maybe( http_archive, name = "cargo_raze__httparse__1_3_5", url = "https://crates.io/api/v1/crates/httparse/1.3.5/download", type = "tar.gz", sha256 = "615caabe2c3160b313d52ccc905335f4ed5f10881dd63dc5699d47e90be85691", strip_prefix = "httparse-1.3.5", build_file = Label("//third_party/cargo/remote:BUILD.httparse-1.3.5.bazel"), ) maybe( http_archive, name = "cargo_raze__httpdate__0_3_2", url = "https://crates.io/api/v1/crates/httpdate/0.3.2/download", type = "tar.gz", sha256 = "494b4d60369511e7dea41cf646832512a94e542f68bb9c49e54518e0f468eb47", strip_prefix = "httpdate-0.3.2", build_file = Label("//third_party/cargo/remote:BUILD.httpdate-0.3.2.bazel"), ) maybe( http_archive, name = "cargo_raze__httpmock__0_5_7", url = "https://crates.io/api/v1/crates/httpmock/0.5.7/download", type = "tar.gz", sha256 = "80f03ddf0ad11ee376849c4abc6008ae399dd91e6cdfcaef2d7e552289350b46", strip_prefix = "httpmock-0.5.7", build_file = Label("//third_party/cargo/remote:BUILD.httpmock-0.5.7.bazel"), ) maybe( http_archive, name = "cargo_raze__humansize__1_1_0", url = "https://crates.io/api/v1/crates/humansize/1.1.0/download", type = "tar.gz", sha256 = "b6cab2627acfc432780848602f3f558f7e9dd427352224b0d9324025796d2a5e", strip_prefix = "humansize-1.1.0", build_file = Label("//third_party/cargo/remote:BUILD.humansize-1.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__hyper__0_14_5", url = "https://crates.io/api/v1/crates/hyper/0.14.5/download", type = "tar.gz", sha256 = "8bf09f61b52cfcf4c00de50df88ae423d6c02354e385a86341133b5338630ad1", strip_prefix = "hyper-0.14.5", build_file = Label("//third_party/cargo/remote:BUILD.hyper-0.14.5.bazel"), ) maybe( http_archive, name = "cargo_raze__hyper_tls__0_5_0", url = "https://crates.io/api/v1/crates/hyper-tls/0.5.0/download", type = "tar.gz", sha256 = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905", strip_prefix = "hyper-tls-0.5.0", build_file = Label("//third_party/cargo/remote:BUILD.hyper-tls-0.5.0.bazel"), ) maybe( http_archive, name = "cargo_raze__idna__0_2_2", url = "https://crates.io/api/v1/crates/idna/0.2.2/download", type = "tar.gz", sha256 = "89829a5d69c23d348314a7ac337fe39173b61149a9864deabd260983aed48c21", strip_prefix = "idna-0.2.2", build_file = Label("//third_party/cargo/remote:BUILD.idna-0.2.2.bazel"), ) maybe( http_archive, name = "cargo_raze__ignore__0_4_17", url = "https://crates.io/api/v1/crates/ignore/0.4.17/download", type = "tar.gz", sha256 = "b287fb45c60bb826a0dc68ff08742b9d88a2fea13d6e0c286b3172065aaf878c", strip_prefix = "ignore-0.4.17", build_file = Label("//third_party/cargo/remote:BUILD.ignore-0.4.17.bazel"), ) maybe( http_archive, name = "cargo_raze__indexmap__1_6_2", url = "https://crates.io/api/v1/crates/indexmap/1.6.2/download", type = "tar.gz", sha256 = "824845a0bf897a9042383849b02c1bc219c2383772efcd5c6f9766fa4b81aef3", strip_prefix = "indexmap-1.6.2", build_file = Label("//third_party/cargo/remote:BUILD.indexmap-1.6.2.bazel"), ) maybe( http_archive, name = "cargo_raze__indoc__1_0_3", url = "https://crates.io/api/v1/crates/indoc/1.0.3/download", type = "tar.gz", sha256 = "e5a75aeaaef0ce18b58056d306c27b07436fbb34b8816c53094b76dd81803136", strip_prefix = "indoc-1.0.3", build_file = Label("//third_party/cargo/remote:BUILD.indoc-1.0.3.bazel"), ) maybe( http_archive, name = "cargo_raze__instant__0_1_9", url = "https://crates.io/api/v1/crates/instant/0.1.9/download", type = "tar.gz", sha256 = "61124eeebbd69b8190558df225adf7e4caafce0d743919e5d6b19652314ec5ec", strip_prefix = "instant-0.1.9", build_file = Label("//third_party/cargo/remote:BUILD.instant-0.1.9.bazel"), ) maybe( http_archive, name = "cargo_raze__ipnet__2_3_0", url = "https://crates.io/api/v1/crates/ipnet/2.3.0/download", type = "tar.gz", sha256 = "47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135", strip_prefix = "ipnet-2.3.0", build_file = Label("//third_party/cargo/remote:BUILD.ipnet-2.3.0.bazel"), ) maybe( http_archive, name = "cargo_raze__isahc__1_2_0", url = "https://crates.io/api/v1/crates/isahc/1.2.0/download", type = "tar.gz", sha256 = "33b24d2aed6bbe6faeab0e164ec2e9e6193fcfcfe489b6eb59fb0d0d34947d73", strip_prefix = "isahc-1.2.0", build_file = Label("//third_party/cargo/remote:BUILD.isahc-1.2.0.bazel"), ) maybe( http_archive, name = "cargo_raze__itertools__0_10_0", url = "https://crates.io/api/v1/crates/itertools/0.10.0/download", type = "tar.gz", sha256 = "37d572918e350e82412fe766d24b15e6682fb2ed2bbe018280caa810397cb319", strip_prefix = "itertools-0.10.0", build_file = Label("//third_party/cargo/remote:BUILD.itertools-0.10.0.bazel"), ) maybe( http_archive, name = "cargo_raze__itoa__0_4_7", url = "https://crates.io/api/v1/crates/itoa/0.4.7/download", type = "tar.gz", sha256 = "dd25036021b0de88a0aff6b850051563c6516d0bf53f8638938edbb9de732736", strip_prefix = "itoa-0.4.7", build_file = Label("//third_party/cargo/remote:BUILD.itoa-0.4.7.bazel"), ) maybe( http_archive, name = "cargo_raze__jobserver__0_1_21", url = "https://crates.io/api/v1/crates/jobserver/0.1.21/download", type = "tar.gz", sha256 = "5c71313ebb9439f74b00d9d2dcec36440beaf57a6aa0623068441dd7cd81a7f2", strip_prefix = "jobserver-0.1.21", build_file = Label("//third_party/cargo/remote:BUILD.jobserver-0.1.21.bazel"), ) maybe( http_archive, name = "cargo_raze__js_sys__0_3_50", url = "https://crates.io/api/v1/crates/js-sys/0.3.50/download", type = "tar.gz", sha256 = "2d99f9e3e84b8f67f846ef5b4cbbc3b1c29f6c759fcbce6f01aa0e73d932a24c", strip_prefix = "js-sys-0.3.50", build_file = Label("//third_party/cargo/remote:BUILD.js-sys-0.3.50.bazel"), ) maybe( http_archive, name = "cargo_raze__kv_log_macro__1_0_7", url = "https://crates.io/api/v1/crates/kv-log-macro/1.0.7/download", type = "tar.gz", sha256 = "0de8b303297635ad57c9f5059fd9cee7a47f8e8daa09df0fcd07dd39fb22977f", strip_prefix = "kv-log-macro-1.0.7", build_file = Label("//third_party/cargo/remote:BUILD.kv-log-macro-1.0.7.bazel"), ) maybe( http_archive, name = "cargo_raze__lalrpop__0_19_5", url = "https://crates.io/api/v1/crates/lalrpop/0.19.5/download", type = "tar.gz", sha256 = "46962a8c71b91c3524b117dfdd70844d4265a173c4c9109f98171aebdcf1195f", strip_prefix = "lalrpop-0.19.5", build_file = Label("//third_party/cargo/remote:BUILD.lalrpop-0.19.5.bazel"), ) maybe( http_archive, name = "cargo_raze__lalrpop_util__0_19_5", url = "https://crates.io/api/v1/crates/lalrpop-util/0.19.5/download", type = "tar.gz", sha256 = "7a708007b751af124d09e9c5d97515257902bc6b486a56b40bcafd939e8ff467", strip_prefix = "lalrpop-util-0.19.5", build_file = Label("//third_party/cargo/remote:BUILD.lalrpop-util-0.19.5.bazel"), ) maybe( http_archive, name = "cargo_raze__lazy_static__1_4_0", url = "https://crates.io/api/v1/crates/lazy_static/1.4.0/download", type = "tar.gz", sha256 = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646", strip_prefix = "lazy_static-1.4.0", build_file = Label("//third_party/cargo/remote:BUILD.lazy_static-1.4.0.bazel"), ) maybe( http_archive, name = "cargo_raze__levenshtein__1_0_5", url = "https://crates.io/api/v1/crates/levenshtein/1.0.5/download", type = "tar.gz", sha256 = "db13adb97ab515a3691f56e4dbab09283d0b86cb45abd991d8634a9d6f501760", strip_prefix = "levenshtein-1.0.5", build_file = Label("//third_party/cargo/remote:BUILD.levenshtein-1.0.5.bazel"), ) maybe( http_archive, name = "cargo_raze__libc__0_2_92", url = "https://crates.io/api/v1/crates/libc/0.2.92/download", type = "tar.gz", sha256 = "56d855069fafbb9b344c0f962150cd2c1187975cb1c22c1522c240d8c4986714", strip_prefix = "libc-0.2.92", build_file = Label("//third_party/cargo/remote:BUILD.libc-0.2.92.bazel"), ) maybe( http_archive, name = "cargo_raze__libgit2_sys__0_12_21_1_1_0", url = "https://crates.io/api/v1/crates/libgit2-sys/0.12.21+1.1.0/download", type = "tar.gz", sha256 = "86271bacd72b2b9e854c3dcfb82efd538f15f870e4c11af66900effb462f6825", strip_prefix = "libgit2-sys-0.12.21+1.1.0", build_file = Label("//third_party/cargo/remote:BUILD.libgit2-sys-0.12.21+1.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__libnghttp2_sys__0_1_6_1_43_0", url = "https://crates.io/api/v1/crates/libnghttp2-sys/0.1.6+1.43.0/download", type = "tar.gz", sha256 = "0af55541a8827e138d59ec9e5877fb6095ece63fb6f4da45e7491b4fbd262855", strip_prefix = "libnghttp2-sys-0.1.6+1.43.0", build_file = Label("//third_party/cargo/remote:BUILD.libnghttp2-sys-0.1.6+1.43.0.bazel"), ) maybe( http_archive, name = "cargo_raze__libssh2_sys__0_2_21", url = "https://crates.io/api/v1/crates/libssh2-sys/0.2.21/download", type = "tar.gz", sha256 = "e0186af0d8f171ae6b9c4c90ec51898bad5d08a2d5e470903a50d9ad8959cbee", strip_prefix = "libssh2-sys-0.2.21", build_file = Label("//third_party/cargo/remote:BUILD.libssh2-sys-0.2.21.bazel"), ) maybe( http_archive, name = "cargo_raze__libz_sys__1_1_2", url = "https://crates.io/api/v1/crates/libz-sys/1.1.2/download", type = "tar.gz", sha256 = "602113192b08db8f38796c4e85c39e960c145965140e918018bcde1952429655", strip_prefix = "libz-sys-1.1.2", build_file = Label("//third_party/cargo/remote:BUILD.libz-sys-1.1.2.bazel"), ) maybe( http_archive, name = "cargo_raze__lock_api__0_4_3", url = "https://crates.io/api/v1/crates/lock_api/0.4.3/download", type = "tar.gz", sha256 = "5a3c91c24eae6777794bb1997ad98bbb87daf92890acab859f7eaa4320333176", strip_prefix = "lock_api-0.4.3", build_file = Label("//third_party/cargo/remote:BUILD.lock_api-0.4.3.bazel"), ) maybe( http_archive, name = "cargo_raze__log__0_4_14", url = "https://crates.io/api/v1/crates/log/0.4.14/download", type = "tar.gz", sha256 = "51b9bbe6c47d51fc3e1a9b945965946b4c44142ab8792c50835a980d362c2710", strip_prefix = "log-0.4.14", build_file = Label("//third_party/cargo/remote:BUILD.log-0.4.14.bazel"), ) maybe( http_archive, name = "cargo_raze__maplit__1_0_2", url = "https://crates.io/api/v1/crates/maplit/1.0.2/download", type = "tar.gz", sha256 = "3e2e65a1a2e43cfcb47a895c4c8b10d1f4a61097f9f254f183aee60cad9c651d", strip_prefix = "maplit-1.0.2", build_file = Label("//third_party/cargo/remote:BUILD.maplit-1.0.2.bazel"), ) maybe( http_archive, name = "cargo_raze__matches__0_1_8", url = "https://crates.io/api/v1/crates/matches/0.1.8/download", type = "tar.gz", sha256 = "7ffc5c5338469d4d3ea17d269fa8ea3512ad247247c30bd2df69e68309ed0a08", strip_prefix = "matches-0.1.8", build_file = Label("//third_party/cargo/remote:BUILD.matches-0.1.8.bazel"), ) maybe( http_archive, name = "cargo_raze__memchr__2_4_0", url = "https://crates.io/api/v1/crates/memchr/2.4.0/download", type = "tar.gz", sha256 = "b16bd47d9e329435e309c58469fe0791c2d0d1ba96ec0954152a5ae2b04387dc", strip_prefix = "memchr-2.4.0", build_file = Label("//third_party/cargo/remote:BUILD.memchr-2.4.0.bazel"), ) maybe( http_archive, name = "cargo_raze__mime__0_3_16", url = "https://crates.io/api/v1/crates/mime/0.3.16/download", type = "tar.gz", sha256 = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d", strip_prefix = "mime-0.3.16", build_file = Label("//third_party/cargo/remote:BUILD.mime-0.3.16.bazel"), ) maybe( http_archive, name = "cargo_raze__miniz_oxide__0_4_4", url = "https://crates.io/api/v1/crates/miniz_oxide/0.4.4/download", type = "tar.gz", sha256 = "a92518e98c078586bc6c934028adcca4c92a53d6a958196de835170a01d84e4b", strip_prefix = "miniz_oxide-0.4.4", build_file = Label("//third_party/cargo/remote:BUILD.miniz_oxide-0.4.4.bazel"), ) maybe( http_archive, name = "cargo_raze__mio__0_7_11", url = "https://crates.io/api/v1/crates/mio/0.7.11/download", type = "tar.gz", sha256 = "cf80d3e903b34e0bd7282b218398aec54e082c840d9baf8339e0080a0c542956", strip_prefix = "mio-0.7.11", build_file = Label("//third_party/cargo/remote:BUILD.mio-0.7.11.bazel"), ) maybe( http_archive, name = "cargo_raze__miow__0_3_7", url = "https://crates.io/api/v1/crates/miow/0.3.7/download", type = "tar.gz", sha256 = "b9f1c5b025cda876f66ef43a113f91ebc9f4ccef34843000e0adf6ebbab84e21", strip_prefix = "miow-0.3.7", build_file = Label("//third_party/cargo/remote:BUILD.miow-0.3.7.bazel"), ) maybe( http_archive, name = "cargo_raze__native_tls__0_2_7", url = "https://crates.io/api/v1/crates/native-tls/0.2.7/download", type = "tar.gz", sha256 = "b8d96b2e1c8da3957d58100b09f102c6d9cfdfced01b7ec5a8974044bb09dbd4", strip_prefix = "native-tls-0.2.7", build_file = Label("//third_party/cargo/remote:BUILD.native-tls-0.2.7.bazel"), ) maybe( http_archive, name = "cargo_raze__nb_connect__1_1_0", url = "https://crates.io/api/v1/crates/nb-connect/1.1.0/download", type = "tar.gz", sha256 = "a19900e7eee95eb2b3c2e26d12a874cc80aaf750e31be6fcbe743ead369fa45d", strip_prefix = "nb-connect-1.1.0", build_file = Label("//third_party/cargo/remote:BUILD.nb-connect-1.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__new_debug_unreachable__1_0_4", url = "https://crates.io/api/v1/crates/new_debug_unreachable/1.0.4/download", type = "tar.gz", sha256 = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54", strip_prefix = "new_debug_unreachable-1.0.4", build_file = Label("//third_party/cargo/remote:BUILD.new_debug_unreachable-1.0.4.bazel"), ) maybe( http_archive, name = "cargo_raze__ntapi__0_3_6", url = "https://crates.io/api/v1/crates/ntapi/0.3.6/download", type = "tar.gz", sha256 = "3f6bb902e437b6d86e03cce10a7e2af662292c5dfef23b65899ea3ac9354ad44", strip_prefix = "ntapi-0.3.6", build_file = Label("//third_party/cargo/remote:BUILD.ntapi-0.3.6.bazel"), ) maybe( http_archive, name = "cargo_raze__num__0_2_1", url = "https://crates.io/api/v1/crates/num/0.2.1/download", type = "tar.gz", sha256 = "b8536030f9fea7127f841b45bb6243b27255787fb4eb83958aa1ef9d2fdc0c36", strip_prefix = "num-0.2.1", build_file = Label("//third_party/cargo/remote:BUILD.num-0.2.1.bazel"), ) maybe( http_archive, name = "cargo_raze__num_bigint__0_2_6", url = "https://crates.io/api/v1/crates/num-bigint/0.2.6/download", type = "tar.gz", sha256 = "090c7f9998ee0ff65aa5b723e4009f7b217707f1fb5ea551329cc4d6231fb304", strip_prefix = "num-bigint-0.2.6", build_file = Label("//third_party/cargo/remote:BUILD.num-bigint-0.2.6.bazel"), ) maybe( http_archive, name = "cargo_raze__num_complex__0_2_4", url = "https://crates.io/api/v1/crates/num-complex/0.2.4/download", type = "tar.gz", sha256 = "b6b19411a9719e753aff12e5187b74d60d3dc449ec3f4dc21e3989c3f554bc95", strip_prefix = "num-complex-0.2.4", build_file = Label("//third_party/cargo/remote:BUILD.num-complex-0.2.4.bazel"), ) maybe( http_archive, name = "cargo_raze__num_integer__0_1_44", url = "https://crates.io/api/v1/crates/num-integer/0.1.44/download", type = "tar.gz", sha256 = "d2cc698a63b549a70bc047073d2949cce27cd1c7b0a4a862d08a8031bc2801db", strip_prefix = "num-integer-0.1.44", build_file = Label("//third_party/cargo/remote:BUILD.num-integer-0.1.44.bazel"), ) maybe( http_archive, name = "cargo_raze__num_iter__0_1_42", url = "https://crates.io/api/v1/crates/num-iter/0.1.42/download", type = "tar.gz", sha256 = "b2021c8337a54d21aca0d59a92577a029af9431cb59b909b03252b9c164fad59", strip_prefix = "num-iter-0.1.42", build_file = Label("//third_party/cargo/remote:BUILD.num-iter-0.1.42.bazel"), ) maybe( http_archive, name = "cargo_raze__num_rational__0_2_4", url = "https://crates.io/api/v1/crates/num-rational/0.2.4/download", type = "tar.gz", sha256 = "5c000134b5dbf44adc5cb772486d335293351644b801551abe8f75c84cfa4aef", strip_prefix = "num-rational-0.2.4", build_file = Label("//third_party/cargo/remote:BUILD.num-rational-0.2.4.bazel"), ) maybe( http_archive, name = "cargo_raze__num_traits__0_2_14", url = "https://crates.io/api/v1/crates/num-traits/0.2.14/download", type = "tar.gz", sha256 = "9a64b1ec5cda2586e284722486d802acf1f7dbdc623e2bfc57e65ca1cd099290", strip_prefix = "num-traits-0.2.14", build_file = Label("//third_party/cargo/remote:BUILD.num-traits-0.2.14.bazel"), ) maybe( http_archive, name = "cargo_raze__num_cpus__1_13_0", url = "https://crates.io/api/v1/crates/num_cpus/1.13.0/download", type = "tar.gz", sha256 = "05499f3756671c15885fee9034446956fff3f243d6077b91e5767df161f766b3", strip_prefix = "num_cpus-1.13.0", build_file = Label("//third_party/cargo/remote:BUILD.num_cpus-1.13.0.bazel"), ) maybe( http_archive, name = "cargo_raze__once_cell__1_7_2", url = "https://crates.io/api/v1/crates/once_cell/1.7.2/download", type = "tar.gz", sha256 = "af8b08b04175473088b46763e51ee54da5f9a164bc162f615b91bc179dbf15a3", strip_prefix = "once_cell-1.7.2", build_file = Label("//third_party/cargo/remote:BUILD.once_cell-1.7.2.bazel"), ) maybe( http_archive, name = "cargo_raze__opaque_debug__0_2_3", url = "https://crates.io/api/v1/crates/opaque-debug/0.2.3/download", type = "tar.gz", sha256 = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c", strip_prefix = "opaque-debug-0.2.3", build_file = Label("//third_party/cargo/remote:BUILD.opaque-debug-0.2.3.bazel"), ) maybe( http_archive, name = "cargo_raze__openssl__0_10_33", url = "https://crates.io/api/v1/crates/openssl/0.10.33/download", type = "tar.gz", sha256 = "a61075b62a23fef5a29815de7536d940aa35ce96d18ce0cc5076272db678a577", strip_prefix = "openssl-0.10.33", build_file = Label("//third_party/cargo/remote:BUILD.openssl-0.10.33.bazel"), ) maybe( http_archive, name = "cargo_raze__openssl_probe__0_1_2", url = "https://crates.io/api/v1/crates/openssl-probe/0.1.2/download", type = "tar.gz", sha256 = "77af24da69f9d9341038eba93a073b1fdaaa1b788221b00a69bce9e762cb32de", strip_prefix = "openssl-probe-0.1.2", build_file = Label("//third_party/cargo/remote:BUILD.openssl-probe-0.1.2.bazel"), ) maybe( http_archive, name = "cargo_raze__openssl_sys__0_9_61", url = "https://crates.io/api/v1/crates/openssl-sys/0.9.61/download", type = "tar.gz", sha256 = "313752393519e876837e09e1fa183ddef0be7735868dced3196f4472d536277f", strip_prefix = "openssl-sys-0.9.61", build_file = Label("//third_party/cargo/remote:BUILD.openssl-sys-0.9.61.bazel"), ) maybe( http_archive, name = "cargo_raze__parking__2_0_0", url = "https://crates.io/api/v1/crates/parking/2.0.0/download", type = "tar.gz", sha256 = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72", strip_prefix = "parking-2.0.0", build_file = Label("//third_party/cargo/remote:BUILD.parking-2.0.0.bazel"), ) maybe( http_archive, name = "cargo_raze__parse_zoneinfo__0_3_0", url = "https://crates.io/api/v1/crates/parse-zoneinfo/0.3.0/download", type = "tar.gz", sha256 = "c705f256449c60da65e11ff6626e0c16a0a0b96aaa348de61376b249bc340f41", strip_prefix = "parse-zoneinfo-0.3.0", build_file = Label("//third_party/cargo/remote:BUILD.parse-zoneinfo-0.3.0.bazel"), ) maybe( http_archive, name = "cargo_raze__pathdiff__0_2_0", url = "https://crates.io/api/v1/crates/pathdiff/0.2.0/download", type = "tar.gz", sha256 = "877630b3de15c0b64cc52f659345724fbf6bdad9bd9566699fc53688f3c34a34", strip_prefix = "pathdiff-0.2.0", build_file = Label("//third_party/cargo/remote:BUILD.pathdiff-0.2.0.bazel"), ) maybe( http_archive, name = "cargo_raze__percent_encoding__2_1_0", url = "https://crates.io/api/v1/crates/percent-encoding/2.1.0/download", type = "tar.gz", sha256 = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e", strip_prefix = "percent-encoding-2.1.0", build_file = Label("//third_party/cargo/remote:BUILD.percent-encoding-2.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__pest__2_1_3", url = "https://crates.io/api/v1/crates/pest/2.1.3/download", type = "tar.gz", sha256 = "10f4872ae94d7b90ae48754df22fd42ad52ce740b8f370b03da4835417403e53", strip_prefix = "pest-2.1.3", build_file = Label("//third_party/cargo/remote:BUILD.pest-2.1.3.bazel"), ) maybe( http_archive, name = "cargo_raze__pest_derive__2_1_0", url = "https://crates.io/api/v1/crates/pest_derive/2.1.0/download", type = "tar.gz", sha256 = "833d1ae558dc601e9a60366421196a8d94bc0ac980476d0b67e1d0988d72b2d0", strip_prefix = "pest_derive-2.1.0", build_file = Label("//third_party/cargo/remote:BUILD.pest_derive-2.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__pest_generator__2_1_3", url = "https://crates.io/api/v1/crates/pest_generator/2.1.3/download", type = "tar.gz", sha256 = "99b8db626e31e5b81787b9783425769681b347011cc59471e33ea46d2ea0cf55", strip_prefix = "pest_generator-2.1.3", build_file = Label("//third_party/cargo/remote:BUILD.pest_generator-2.1.3.bazel"), ) maybe( http_archive, name = "cargo_raze__pest_meta__2_1_3", url = "https://crates.io/api/v1/crates/pest_meta/2.1.3/download", type = "tar.gz", sha256 = "54be6e404f5317079812fc8f9f5279de376d8856929e21c184ecf6bbd692a11d", strip_prefix = "pest_meta-2.1.3", build_file = Label("//third_party/cargo/remote:BUILD.pest_meta-2.1.3.bazel"), ) maybe( http_archive, name = "cargo_raze__petgraph__0_5_1", url = "https://crates.io/api/v1/crates/petgraph/0.5.1/download", type = "tar.gz", sha256 = "467d164a6de56270bd7c4d070df81d07beace25012d5103ced4e9ff08d6afdb7", strip_prefix = "petgraph-0.5.1", build_file = Label("//third_party/cargo/remote:BUILD.petgraph-0.5.1.bazel"), ) maybe( http_archive, name = "cargo_raze__phf_shared__0_8_0", url = "https://crates.io/api/v1/crates/phf_shared/0.8.0/download", type = "tar.gz", sha256 = "c00cf8b9eafe68dde5e9eaa2cef8ee84a9336a47d566ec55ca16589633b65af7", strip_prefix = "phf_shared-0.8.0", build_file = Label("//third_party/cargo/remote:BUILD.phf_shared-0.8.0.bazel"), ) maybe( http_archive, name = "cargo_raze__pico_args__0_4_0", url = "https://crates.io/api/v1/crates/pico-args/0.4.0/download", type = "tar.gz", sha256 = "d70072c20945e1ab871c472a285fc772aefd4f5407723c206242f2c6f94595d6", strip_prefix = "pico-args-0.4.0", build_file = Label("//third_party/cargo/remote:BUILD.pico-args-0.4.0.bazel"), ) maybe( http_archive, name = "cargo_raze__pin_project__1_0_6", url = "https://crates.io/api/v1/crates/pin-project/1.0.6/download", type = "tar.gz", sha256 = "bc174859768806e91ae575187ada95c91a29e96a98dc5d2cd9a1fed039501ba6", strip_prefix = "pin-project-1.0.6", build_file = Label("//third_party/cargo/remote:BUILD.pin-project-1.0.6.bazel"), ) maybe( http_archive, name = "cargo_raze__pin_project_internal__1_0_6", url = "https://crates.io/api/v1/crates/pin-project-internal/1.0.6/download", type = "tar.gz", sha256 = "a490329918e856ed1b083f244e3bfe2d8c4f336407e4ea9e1a9f479ff09049e5", strip_prefix = "pin-project-internal-1.0.6", build_file = Label("//third_party/cargo/remote:BUILD.pin-project-internal-1.0.6.bazel"), ) maybe( http_archive, name = "cargo_raze__pin_project_lite__0_2_6", url = "https://crates.io/api/v1/crates/pin-project-lite/0.2.6/download", type = "tar.gz", sha256 = "dc0e1f259c92177c30a4c9d177246edd0a3568b25756a977d0632cf8fa37e905", strip_prefix = "pin-project-lite-0.2.6", build_file = Label("//third_party/cargo/remote:BUILD.pin-project-lite-0.2.6.bazel"), ) maybe( http_archive, name = "cargo_raze__pin_utils__0_1_0", url = "https://crates.io/api/v1/crates/pin-utils/0.1.0/download", type = "tar.gz", sha256 = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184", strip_prefix = "pin-utils-0.1.0", build_file = Label("//third_party/cargo/remote:BUILD.pin-utils-0.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__pkg_config__0_3_19", url = "https://crates.io/api/v1/crates/pkg-config/0.3.19/download", type = "tar.gz", sha256 = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c", strip_prefix = "pkg-config-0.3.19", build_file = Label("//third_party/cargo/remote:BUILD.pkg-config-0.3.19.bazel"), ) maybe( http_archive, name = "cargo_raze__polling__2_0_3", url = "https://crates.io/api/v1/crates/polling/2.0.3/download", type = "tar.gz", sha256 = "4fc12d774e799ee9ebae13f4076ca003b40d18a11ac0f3641e6f899618580b7b", strip_prefix = "polling-2.0.3", build_file = Label("//third_party/cargo/remote:BUILD.polling-2.0.3.bazel"), ) maybe( http_archive, name = "cargo_raze__ppv_lite86__0_2_10", url = "https://crates.io/api/v1/crates/ppv-lite86/0.2.10/download", type = "tar.gz", sha256 = "ac74c624d6b2d21f425f752262f42188365d7b8ff1aff74c82e45136510a4857", strip_prefix = "ppv-lite86-0.2.10", build_file = Label("//third_party/cargo/remote:BUILD.ppv-lite86-0.2.10.bazel"), ) maybe( http_archive, name = "cargo_raze__precomputed_hash__0_1_1", url = "https://crates.io/api/v1/crates/precomputed-hash/0.1.1/download", type = "tar.gz", sha256 = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c", strip_prefix = "precomputed-hash-0.1.1", build_file = Label("//third_party/cargo/remote:BUILD.precomputed-hash-0.1.1.bazel"), ) maybe( http_archive, name = "cargo_raze__proc_macro_hack__0_5_19", url = "https://crates.io/api/v1/crates/proc-macro-hack/0.5.19/download", type = "tar.gz", sha256 = "dbf0c48bc1d91375ae5c3cd81e3722dff1abcf81a30960240640d223f59fe0e5", strip_prefix = "proc-macro-hack-0.5.19", build_file = Label("//third_party/cargo/remote:BUILD.proc-macro-hack-0.5.19.bazel"), ) maybe( http_archive, name = "cargo_raze__proc_macro_nested__0_1_7", url = "https://crates.io/api/v1/crates/proc-macro-nested/0.1.7/download", type = "tar.gz", sha256 = "bc881b2c22681370c6a780e47af9840ef841837bc98118431d4e1868bd0c1086", strip_prefix = "proc-macro-nested-0.1.7", build_file = Label("//third_party/cargo/remote:BUILD.proc-macro-nested-0.1.7.bazel"), ) maybe( http_archive, name = "cargo_raze__proc_macro2__1_0_26", url = "https://crates.io/api/v1/crates/proc-macro2/1.0.26/download", type = "tar.gz", sha256 = "a152013215dca273577e18d2bf00fa862b89b24169fb78c4c95aeb07992c9cec", strip_prefix = "proc-macro2-1.0.26", build_file = Label("//third_party/cargo/remote:BUILD.proc-macro2-1.0.26.bazel"), ) maybe( http_archive, name = "cargo_raze__qstring__0_7_2", url = "https://crates.io/api/v1/crates/qstring/0.7.2/download", type = "tar.gz", sha256 = "d464fae65fff2680baf48019211ce37aaec0c78e9264c84a3e484717f965104e", strip_prefix = "qstring-0.7.2", build_file = Label("//third_party/cargo/remote:BUILD.qstring-0.7.2.bazel"), ) maybe( http_archive, name = "cargo_raze__quote__1_0_9", url = "https://crates.io/api/v1/crates/quote/1.0.9/download", type = "tar.gz", sha256 = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7", strip_prefix = "quote-1.0.9", build_file = Label("//third_party/cargo/remote:BUILD.quote-1.0.9.bazel"), ) maybe( http_archive, name = "cargo_raze__rand__0_8_3", url = "https://crates.io/api/v1/crates/rand/0.8.3/download", type = "tar.gz", sha256 = "0ef9e7e66b4468674bfcb0c81af8b7fa0bb154fa9f28eb840da5c447baeb8d7e", strip_prefix = "rand-0.8.3", build_file = Label("//third_party/cargo/remote:BUILD.rand-0.8.3.bazel"), ) maybe( http_archive, name = "cargo_raze__rand_chacha__0_3_0", url = "https://crates.io/api/v1/crates/rand_chacha/0.3.0/download", type = "tar.gz", sha256 = "e12735cf05c9e10bf21534da50a147b924d555dc7a547c42e6bb2d5b6017ae0d", strip_prefix = "rand_chacha-0.3.0", build_file = Label("//third_party/cargo/remote:BUILD.rand_chacha-0.3.0.bazel"), ) maybe( http_archive, name = "cargo_raze__rand_core__0_6_2", url = "https://crates.io/api/v1/crates/rand_core/0.6.2/download", type = "tar.gz", sha256 = "34cf66eb183df1c5876e2dcf6b13d57340741e8dc255b48e40a26de954d06ae7", strip_prefix = "rand_core-0.6.2", build_file = Label("//third_party/cargo/remote:BUILD.rand_core-0.6.2.bazel"), ) maybe( http_archive, name = "cargo_raze__rand_hc__0_3_0", url = "https://crates.io/api/v1/crates/rand_hc/0.3.0/download", type = "tar.gz", sha256 = "3190ef7066a446f2e7f42e239d161e905420ccab01eb967c9eb27d21b2322a73", strip_prefix = "rand_hc-0.3.0", build_file = Label("//third_party/cargo/remote:BUILD.rand_hc-0.3.0.bazel"), ) maybe( http_archive, name = "cargo_raze__redox_syscall__0_1_57", url = "https://crates.io/api/v1/crates/redox_syscall/0.1.57/download", type = "tar.gz", sha256 = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce", strip_prefix = "redox_syscall-0.1.57", build_file = Label("//third_party/cargo/remote:BUILD.redox_syscall-0.1.57.bazel"), ) maybe( http_archive, name = "cargo_raze__redox_syscall__0_2_5", url = "https://crates.io/api/v1/crates/redox_syscall/0.2.5/download", type = "tar.gz", sha256 = "94341e4e44e24f6b591b59e47a8a027df12e008d73fd5672dbea9cc22f4507d9", strip_prefix = "redox_syscall-0.2.5", build_file = Label("//third_party/cargo/remote:BUILD.redox_syscall-0.2.5.bazel"), ) maybe( http_archive, name = "cargo_raze__redox_users__0_3_5", url = "https://crates.io/api/v1/crates/redox_users/0.3.5/download", type = "tar.gz", sha256 = "de0737333e7a9502c789a36d7c7fa6092a49895d4faa31ca5df163857ded2e9d", strip_prefix = "redox_users-0.3.5", build_file = Label("//third_party/cargo/remote:BUILD.redox_users-0.3.5.bazel"), ) maybe( http_archive, name = "cargo_raze__regex__1_4_5", url = "https://crates.io/api/v1/crates/regex/1.4.5/download", type = "tar.gz", sha256 = "957056ecddbeba1b26965114e191d2e8589ce74db242b6ea25fc4062427a5c19", strip_prefix = "regex-1.4.5", build_file = Label("//third_party/cargo/remote:BUILD.regex-1.4.5.bazel"), ) maybe( http_archive, name = "cargo_raze__regex_syntax__0_6_23", url = "https://crates.io/api/v1/crates/regex-syntax/0.6.23/download", type = "tar.gz", sha256 = "24d5f089152e60f62d28b835fbff2cd2e8dc0baf1ac13343bef92ab7eed84548", strip_prefix = "regex-syntax-0.6.23", build_file = Label("//third_party/cargo/remote:BUILD.regex-syntax-0.6.23.bazel"), ) maybe( http_archive, name = "cargo_raze__remove_dir_all__0_5_3", url = "https://crates.io/api/v1/crates/remove_dir_all/0.5.3/download", type = "tar.gz", sha256 = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7", strip_prefix = "remove_dir_all-0.5.3", build_file = Label("//third_party/cargo/remote:BUILD.remove_dir_all-0.5.3.bazel"), ) maybe( http_archive, name = "cargo_raze__reqwest__0_11_2", url = "https://crates.io/api/v1/crates/reqwest/0.11.2/download", type = "tar.gz", sha256 = "bf12057f289428dbf5c591c74bf10392e4a8003f993405a902f20117019022d4", strip_prefix = "reqwest-0.11.2", build_file = Label("//third_party/cargo/remote:BUILD.reqwest-0.11.2.bazel"), ) maybe( http_archive, name = "cargo_raze__rust_argon2__0_8_3", url = "https://crates.io/api/v1/crates/rust-argon2/0.8.3/download", type = "tar.gz", sha256 = "4b18820d944b33caa75a71378964ac46f58517c92b6ae5f762636247c09e78fb", strip_prefix = "rust-argon2-0.8.3", build_file = Label("//third_party/cargo/remote:BUILD.rust-argon2-0.8.3.bazel"), ) maybe( http_archive, name = "cargo_raze__rustc_serialize__0_3_24", url = "https://crates.io/api/v1/crates/rustc-serialize/0.3.24/download", type = "tar.gz", sha256 = "dcf128d1287d2ea9d80910b5f1120d0b8eede3fbf1abe91c40d39ea7d51e6fda", strip_prefix = "rustc-serialize-0.3.24", build_file = Label("//third_party/cargo/remote:BUILD.rustc-serialize-0.3.24.bazel"), ) maybe( http_archive, name = "cargo_raze__ryu__1_0_5", url = "https://crates.io/api/v1/crates/ryu/1.0.5/download", type = "tar.gz", sha256 = "71d301d4193d031abdd79ff7e3dd721168a9572ef3fe51a1517aba235bd8f86e", strip_prefix = "ryu-1.0.5", build_file = Label("//third_party/cargo/remote:BUILD.ryu-1.0.5.bazel"), ) maybe( http_archive, name = "cargo_raze__same_file__1_0_6", url = "https://crates.io/api/v1/crates/same-file/1.0.6/download", type = "tar.gz", sha256 = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502", strip_prefix = "same-file-1.0.6", build_file = Label("//third_party/cargo/remote:BUILD.same-file-1.0.6.bazel"), ) maybe( http_archive, name = "cargo_raze__schannel__0_1_19", url = "https://crates.io/api/v1/crates/schannel/0.1.19/download", type = "tar.gz", sha256 = "8f05ba609c234e60bee0d547fe94a4c7e9da733d1c962cf6e59efa4cd9c8bc75", strip_prefix = "schannel-0.1.19", build_file = Label("//third_party/cargo/remote:BUILD.schannel-0.1.19.bazel"), ) maybe( http_archive, name = "cargo_raze__scopeguard__1_1_0", url = "https://crates.io/api/v1/crates/scopeguard/1.1.0/download", type = "tar.gz", sha256 = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd", strip_prefix = "scopeguard-1.1.0", build_file = Label("//third_party/cargo/remote:BUILD.scopeguard-1.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__security_framework__2_2_0", url = "https://crates.io/api/v1/crates/security-framework/2.2.0/download", type = "tar.gz", sha256 = "3670b1d2fdf6084d192bc71ead7aabe6c06aa2ea3fbd9cc3ac111fa5c2b1bd84", strip_prefix = "security-framework-2.2.0", build_file = Label("//third_party/cargo/remote:BUILD.security-framework-2.2.0.bazel"), ) maybe( http_archive, name = "cargo_raze__security_framework_sys__2_2_0", url = "https://crates.io/api/v1/crates/security-framework-sys/2.2.0/download", type = "tar.gz", sha256 = "3676258fd3cfe2c9a0ec99ce3038798d847ce3e4bb17746373eb9f0f1ac16339", strip_prefix = "security-framework-sys-2.2.0", build_file = Label("//third_party/cargo/remote:BUILD.security-framework-sys-2.2.0.bazel"), ) maybe( http_archive, name = "cargo_raze__semver__0_11_0", url = "https://crates.io/api/v1/crates/semver/0.11.0/download", type = "tar.gz", sha256 = "f301af10236f6df4160f7c3f04eec6dbc70ace82d23326abad5edee88801c6b6", strip_prefix = "semver-0.11.0", build_file = Label("//third_party/cargo/remote:BUILD.semver-0.11.0.bazel"), ) maybe( http_archive, name = "cargo_raze__semver__1_0_3", url = "https://crates.io/api/v1/crates/semver/1.0.3/download", type = "tar.gz", sha256 = "5f3aac57ee7f3272d8395c6e4f502f434f0e289fcd62876f70daa008c20dcabe", strip_prefix = "semver-1.0.3", build_file = Label("//third_party/cargo/remote:BUILD.semver-1.0.3.bazel"), ) maybe( http_archive, name = "cargo_raze__semver_parser__0_10_2", url = "https://crates.io/api/v1/crates/semver-parser/0.10.2/download", type = "tar.gz", sha256 = "00b0bef5b7f9e0df16536d3961cfb6e84331c065b4066afb39768d0e319411f7", strip_prefix = "semver-parser-0.10.2", build_file = Label("//third_party/cargo/remote:BUILD.semver-parser-0.10.2.bazel"), ) maybe( http_archive, name = "cargo_raze__serde__1_0_126", url = "https://crates.io/api/v1/crates/serde/1.0.126/download", type = "tar.gz", sha256 = "ec7505abeacaec74ae4778d9d9328fe5a5d04253220a85c4ee022239fc996d03", strip_prefix = "serde-1.0.126", build_file = Label("//third_party/cargo/remote:BUILD.serde-1.0.126.bazel"), ) maybe( http_archive, name = "cargo_raze__serde_derive__1_0_126", url = "https://crates.io/api/v1/crates/serde_derive/1.0.126/download", type = "tar.gz", sha256 = "963a7dbc9895aeac7ac90e74f34a5d5261828f79df35cbed41e10189d3804d43", strip_prefix = "serde_derive-1.0.126", build_file = Label("//third_party/cargo/remote:BUILD.serde_derive-1.0.126.bazel"), ) maybe( http_archive, name = "cargo_raze__serde_json__1_0_64", url = "https://crates.io/api/v1/crates/serde_json/1.0.64/download", type = "tar.gz", sha256 = "799e97dc9fdae36a5c8b8f2cae9ce2ee9fdce2058c57a93e6099d919fd982f79", strip_prefix = "serde_json-1.0.64", build_file = Label("//third_party/cargo/remote:BUILD.serde_json-1.0.64.bazel"), ) maybe( http_archive, name = "cargo_raze__serde_regex__1_1_0", url = "https://crates.io/api/v1/crates/serde_regex/1.1.0/download", type = "tar.gz", sha256 = "a8136f1a4ea815d7eac4101cfd0b16dc0cb5e1fe1b8609dfd728058656b7badf", strip_prefix = "serde_regex-1.1.0", build_file = Label("//third_party/cargo/remote:BUILD.serde_regex-1.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__serde_urlencoded__0_7_0", url = "https://crates.io/api/v1/crates/serde_urlencoded/0.7.0/download", type = "tar.gz", sha256 = "edfa57a7f8d9c1d260a549e7224100f6c43d43f9103e06dd8b4095a9b2b43ce9", strip_prefix = "serde_urlencoded-0.7.0", build_file = Label("//third_party/cargo/remote:BUILD.serde_urlencoded-0.7.0.bazel"), ) maybe( http_archive, name = "cargo_raze__sha_1__0_8_2", url = "https://crates.io/api/v1/crates/sha-1/0.8.2/download", type = "tar.gz", sha256 = "f7d94d0bede923b3cea61f3f1ff57ff8cdfd77b400fb8f9998949e0cf04163df", strip_prefix = "sha-1-0.8.2", build_file = Label("//third_party/cargo/remote:BUILD.sha-1-0.8.2.bazel"), ) maybe( http_archive, name = "cargo_raze__signal_hook__0_3_8", url = "https://crates.io/api/v1/crates/signal-hook/0.3.8/download", type = "tar.gz", sha256 = "ef33d6d0cd06e0840fba9985aab098c147e67e05cee14d412d3345ed14ff30ac", strip_prefix = "signal-hook-0.3.8", build_file = Label("//third_party/cargo/remote:BUILD.signal-hook-0.3.8.bazel"), ) maybe( http_archive, name = "cargo_raze__signal_hook_registry__1_3_0", url = "https://crates.io/api/v1/crates/signal-hook-registry/1.3.0/download", type = "tar.gz", sha256 = "16f1d0fef1604ba8f7a073c7e701f213e056707210e9020af4528e0101ce11a6", strip_prefix = "signal-hook-registry-1.3.0", build_file = Label("//third_party/cargo/remote:BUILD.signal-hook-registry-1.3.0.bazel"), ) maybe( http_archive, name = "cargo_raze__siphasher__0_3_5", url = "https://crates.io/api/v1/crates/siphasher/0.3.5/download", type = "tar.gz", sha256 = "cbce6d4507c7e4a3962091436e56e95290cb71fa302d0d270e32130b75fbff27", strip_prefix = "siphasher-0.3.5", build_file = Label("//third_party/cargo/remote:BUILD.siphasher-0.3.5.bazel"), ) maybe( http_archive, name = "cargo_raze__slab__0_4_2", url = "https://crates.io/api/v1/crates/slab/0.4.2/download", type = "tar.gz", sha256 = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8", strip_prefix = "slab-0.4.2", build_file = Label("//third_party/cargo/remote:BUILD.slab-0.4.2.bazel"), ) maybe( http_archive, name = "cargo_raze__slug__0_1_4", url = "https://crates.io/api/v1/crates/slug/0.1.4/download", type = "tar.gz", sha256 = "b3bc762e6a4b6c6fcaade73e77f9ebc6991b676f88bb2358bddb56560f073373", strip_prefix = "slug-0.1.4", build_file = Label("//third_party/cargo/remote:BUILD.slug-0.1.4.bazel"), ) maybe( http_archive, name = "cargo_raze__sluice__0_5_4", url = "https://crates.io/api/v1/crates/sluice/0.5.4/download", type = "tar.gz", sha256 = "8fa0333a60ff2e3474a6775cc611840c2a55610c831dd366503474c02f1a28f5", strip_prefix = "sluice-0.5.4", build_file = Label("//third_party/cargo/remote:BUILD.sluice-0.5.4.bazel"), ) maybe( http_archive, name = "cargo_raze__smallvec__1_8_0", url = "https://crates.io/api/v1/crates/smallvec/1.8.0/download", type = "tar.gz", sha256 = "f2dd574626839106c320a323308629dcb1acfc96e32a8cba364ddc61ac23ee83", strip_prefix = "smallvec-1.8.0", build_file = Label("//third_party/cargo/remote:BUILD.smallvec-1.8.0.bazel"), ) maybe( http_archive, name = "cargo_raze__smartstring__0_2_6", url = "https://crates.io/api/v1/crates/smartstring/0.2.6/download", type = "tar.gz", sha256 = "1ada87540bf8ef4cf8a1789deb175626829bb59b1fefd816cf7f7f55efcdbae9", strip_prefix = "smartstring-0.2.6", build_file = Label("//third_party/cargo/remote:BUILD.smartstring-0.2.6.bazel"), ) maybe( http_archive, name = "cargo_raze__socket2__0_3_19", url = "https://crates.io/api/v1/crates/socket2/0.3.19/download", type = "tar.gz", sha256 = "122e570113d28d773067fab24266b66753f6ea915758651696b6e35e49f88d6e", strip_prefix = "socket2-0.3.19", build_file = Label("//third_party/cargo/remote:BUILD.socket2-0.3.19.bazel"), ) maybe( http_archive, name = "cargo_raze__socket2__0_4_0", url = "https://crates.io/api/v1/crates/socket2/0.4.0/download", type = "tar.gz", sha256 = "9e3dfc207c526015c632472a77be09cf1b6e46866581aecae5cc38fb4235dea2", strip_prefix = "socket2-0.4.0", build_file = Label("//third_party/cargo/remote:BUILD.socket2-0.4.0.bazel"), ) maybe( http_archive, name = "cargo_raze__spdx__0_3_6", url = "https://crates.io/api/v1/crates/spdx/0.3.6/download", type = "tar.gz", sha256 = "4e6b6cc773b635ad64a05f00367c6f66d06a8708f7360f67c41d446dacdd0a0f", strip_prefix = "spdx-0.3.6", build_file = Label("//third_party/cargo/remote:BUILD.spdx-0.3.6.bazel"), ) maybe( http_archive, name = "cargo_raze__spinning_top__0_2_2", url = "https://crates.io/api/v1/crates/spinning_top/0.2.2/download", type = "tar.gz", sha256 = "7e529d73e80d64b5f2631f9035113347c578a1c9c7774b83a2b880788459ab36", strip_prefix = "spinning_top-0.2.2", build_file = Label("//third_party/cargo/remote:BUILD.spinning_top-0.2.2.bazel"), ) maybe( http_archive, name = "cargo_raze__static_assertions__1_1_0", url = "https://crates.io/api/v1/crates/static_assertions/1.1.0/download", type = "tar.gz", sha256 = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f", strip_prefix = "static_assertions-1.1.0", build_file = Label("//third_party/cargo/remote:BUILD.static_assertions-1.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__string_cache__0_8_1", url = "https://crates.io/api/v1/crates/string_cache/0.8.1/download", type = "tar.gz", sha256 = "8ddb1139b5353f96e429e1a5e19fbaf663bddedaa06d1dbd49f82e352601209a", strip_prefix = "string_cache-0.8.1", build_file = Label("//third_party/cargo/remote:BUILD.string_cache-0.8.1.bazel"), ) maybe( http_archive, name = "cargo_raze__strsim__0_10_0", url = "https://crates.io/api/v1/crates/strsim/0.10.0/download", type = "tar.gz", sha256 = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623", strip_prefix = "strsim-0.10.0", build_file = Label("//third_party/cargo/remote:BUILD.strsim-0.10.0.bazel"), ) maybe( http_archive, name = "cargo_raze__syn__1_0_68", url = "https://crates.io/api/v1/crates/syn/1.0.68/download", type = "tar.gz", sha256 = "3ce15dd3ed8aa2f8eeac4716d6ef5ab58b6b9256db41d7e1a0224c2788e8fd87", strip_prefix = "syn-1.0.68", build_file = Label("//third_party/cargo/remote:BUILD.syn-1.0.68.bazel"), ) maybe( http_archive, name = "cargo_raze__tar__0_4_33", url = "https://crates.io/api/v1/crates/tar/0.4.33/download", type = "tar.gz", sha256 = "c0bcfbd6a598361fda270d82469fff3d65089dc33e175c9a131f7b4cd395f228", strip_prefix = "tar-0.4.33", build_file = Label("//third_party/cargo/remote:BUILD.tar-0.4.33.bazel"), ) maybe( http_archive, name = "cargo_raze__tempfile__3_2_0", url = "https://crates.io/api/v1/crates/tempfile/3.2.0/download", type = "tar.gz", sha256 = "dac1c663cfc93810f88aed9b8941d48cabf856a1b111c29a40439018d870eb22", strip_prefix = "tempfile-3.2.0", build_file = Label("//third_party/cargo/remote:BUILD.tempfile-3.2.0.bazel"), ) maybe( http_archive, name = "cargo_raze__tera__1_7_0", url = "https://crates.io/api/v1/crates/tera/1.7.0/download", type = "tar.gz", sha256 = "5cb278a72e426f291faf182cb0e0cb7d20241e8e9881046724ac874a83c62346", strip_prefix = "tera-1.7.0", build_file = Label("//third_party/cargo/remote:BUILD.tera-1.7.0.bazel"), ) maybe( http_archive, name = "cargo_raze__term__0_5_2", url = "https://crates.io/api/v1/crates/term/0.5.2/download", type = "tar.gz", sha256 = "edd106a334b7657c10b7c540a0106114feadeb4dc314513e97df481d5d966f42", strip_prefix = "term-0.5.2", build_file = Label("//third_party/cargo/remote:BUILD.term-0.5.2.bazel"), ) maybe( http_archive, name = "cargo_raze__thread_local__1_1_3", url = "https://crates.io/api/v1/crates/thread_local/1.1.3/download", type = "tar.gz", sha256 = "8018d24e04c95ac8790716a5987d0fec4f8b27249ffa0f7d33f1369bdfb88cbd", strip_prefix = "thread_local-1.1.3", build_file = Label("//third_party/cargo/remote:BUILD.thread_local-1.1.3.bazel"), ) maybe( http_archive, name = "cargo_raze__time__0_1_43", url = "https://crates.io/api/v1/crates/time/0.1.43/download", type = "tar.gz", sha256 = "ca8a50ef2360fbd1eeb0ecd46795a87a19024eb4b53c5dc916ca1fd95fe62438", strip_prefix = "time-0.1.43", build_file = Label("//third_party/cargo/remote:BUILD.time-0.1.43.bazel"), ) maybe( http_archive, name = "cargo_raze__tiny_keccak__2_0_2", url = "https://crates.io/api/v1/crates/tiny-keccak/2.0.2/download", type = "tar.gz", sha256 = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237", strip_prefix = "tiny-keccak-2.0.2", build_file = Label("//third_party/cargo/remote:BUILD.tiny-keccak-2.0.2.bazel"), ) maybe( http_archive, name = "cargo_raze__tinyvec__1_2_0", url = "https://crates.io/api/v1/crates/tinyvec/1.2.0/download", type = "tar.gz", sha256 = "5b5220f05bb7de7f3f53c7c065e1199b3172696fe2db9f9c4d8ad9b4ee74c342", strip_prefix = "tinyvec-1.2.0", build_file = Label("//third_party/cargo/remote:BUILD.tinyvec-1.2.0.bazel"), ) maybe( http_archive, name = "cargo_raze__tinyvec_macros__0_1_0", url = "https://crates.io/api/v1/crates/tinyvec_macros/0.1.0/download", type = "tar.gz", sha256 = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c", strip_prefix = "tinyvec_macros-0.1.0", build_file = Label("//third_party/cargo/remote:BUILD.tinyvec_macros-0.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__tokio__1_4_0", url = "https://crates.io/api/v1/crates/tokio/1.4.0/download", type = "tar.gz", sha256 = "134af885d758d645f0f0505c9a8b3f9bf8a348fd822e112ab5248138348f1722", strip_prefix = "tokio-1.4.0", build_file = Label("//third_party/cargo/remote:BUILD.tokio-1.4.0.bazel"), ) maybe( http_archive, name = "cargo_raze__tokio_macros__1_1_0", url = "https://crates.io/api/v1/crates/tokio-macros/1.1.0/download", type = "tar.gz", sha256 = "caf7b11a536f46a809a8a9f0bb4237020f70ecbf115b842360afb127ea2fda57", strip_prefix = "tokio-macros-1.1.0", build_file = Label("//third_party/cargo/remote:BUILD.tokio-macros-1.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__tokio_native_tls__0_3_0", url = "https://crates.io/api/v1/crates/tokio-native-tls/0.3.0/download", type = "tar.gz", sha256 = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b", strip_prefix = "tokio-native-tls-0.3.0", build_file = Label("//third_party/cargo/remote:BUILD.tokio-native-tls-0.3.0.bazel"), ) maybe( http_archive, name = "cargo_raze__tokio_util__0_6_5", url = "https://crates.io/api/v1/crates/tokio-util/0.6.5/download", type = "tar.gz", sha256 = "5143d049e85af7fbc36f5454d990e62c2df705b3589f123b71f441b6b59f443f", strip_prefix = "tokio-util-0.6.5", build_file = Label("//third_party/cargo/remote:BUILD.tokio-util-0.6.5.bazel"), ) maybe( http_archive, name = "cargo_raze__toml__0_5_8", url = "https://crates.io/api/v1/crates/toml/0.5.8/download", type = "tar.gz", sha256 = "a31142970826733df8241ef35dc040ef98c679ab14d7c3e54d827099b3acecaa", strip_prefix = "toml-0.5.8", build_file = Label("//third_party/cargo/remote:BUILD.toml-0.5.8.bazel"), ) maybe( http_archive, name = "cargo_raze__tower_service__0_3_1", url = "https://crates.io/api/v1/crates/tower-service/0.3.1/download", type = "tar.gz", sha256 = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6", strip_prefix = "tower-service-0.3.1", build_file = Label("//third_party/cargo/remote:BUILD.tower-service-0.3.1.bazel"), ) maybe( http_archive, name = "cargo_raze__tracing__0_1_25", url = "https://crates.io/api/v1/crates/tracing/0.1.25/download", type = "tar.gz", sha256 = "01ebdc2bb4498ab1ab5f5b73c5803825e60199229ccba0698170e3be0e7f959f", strip_prefix = "tracing-0.1.25", build_file = Label("//third_party/cargo/remote:BUILD.tracing-0.1.25.bazel"), ) maybe( http_archive, name = "cargo_raze__tracing_attributes__0_1_15", url = "https://crates.io/api/v1/crates/tracing-attributes/0.1.15/download", type = "tar.gz", sha256 = "c42e6fa53307c8a17e4ccd4dc81cf5ec38db9209f59b222210375b54ee40d1e2", strip_prefix = "tracing-attributes-0.1.15", build_file = Label("//third_party/cargo/remote:BUILD.tracing-attributes-0.1.15.bazel"), ) maybe( http_archive, name = "cargo_raze__tracing_core__0_1_17", url = "https://crates.io/api/v1/crates/tracing-core/0.1.17/download", type = "tar.gz", sha256 = "f50de3927f93d202783f4513cda820ab47ef17f624b03c096e86ef00c67e6b5f", strip_prefix = "tracing-core-0.1.17", build_file = Label("//third_party/cargo/remote:BUILD.tracing-core-0.1.17.bazel"), ) maybe( http_archive, name = "cargo_raze__tracing_futures__0_2_5", url = "https://crates.io/api/v1/crates/tracing-futures/0.2.5/download", type = "tar.gz", sha256 = "97d095ae15e245a057c8e8451bab9b3ee1e1f68e9ba2b4fbc18d0ac5237835f2", strip_prefix = "tracing-futures-0.2.5", build_file = Label("//third_party/cargo/remote:BUILD.tracing-futures-0.2.5.bazel"), ) maybe( http_archive, name = "cargo_raze__try_lock__0_2_3", url = "https://crates.io/api/v1/crates/try-lock/0.2.3/download", type = "tar.gz", sha256 = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642", strip_prefix = "try-lock-0.2.3", build_file = Label("//third_party/cargo/remote:BUILD.try-lock-0.2.3.bazel"), ) maybe( http_archive, name = "cargo_raze__typenum__1_13_0", url = "https://crates.io/api/v1/crates/typenum/1.13.0/download", type = "tar.gz", sha256 = "879f6906492a7cd215bfa4cf595b600146ccfac0c79bcbd1f3000162af5e8b06", strip_prefix = "typenum-1.13.0", build_file = Label("//third_party/cargo/remote:BUILD.typenum-1.13.0.bazel"), ) maybe( http_archive, name = "cargo_raze__ucd_trie__0_1_3", url = "https://crates.io/api/v1/crates/ucd-trie/0.1.3/download", type = "tar.gz", sha256 = "56dee185309b50d1f11bfedef0fe6d036842e3fb77413abef29f8f8d1c5d4c1c", strip_prefix = "ucd-trie-0.1.3", build_file = Label("//third_party/cargo/remote:BUILD.ucd-trie-0.1.3.bazel"), ) maybe( http_archive, name = "cargo_raze__unic_char_property__0_9_0", url = "https://crates.io/api/v1/crates/unic-char-property/0.9.0/download", type = "tar.gz", sha256 = "a8c57a407d9b6fa02b4795eb81c5b6652060a15a7903ea981f3d723e6c0be221", strip_prefix = "unic-char-property-0.9.0", build_file = Label("//third_party/cargo/remote:BUILD.unic-char-property-0.9.0.bazel"), ) maybe( http_archive, name = "cargo_raze__unic_char_range__0_9_0", url = "https://crates.io/api/v1/crates/unic-char-range/0.9.0/download", type = "tar.gz", sha256 = "0398022d5f700414f6b899e10b8348231abf9173fa93144cbc1a43b9793c1fbc", strip_prefix = "unic-char-range-0.9.0", build_file = Label("//third_party/cargo/remote:BUILD.unic-char-range-0.9.0.bazel"), ) maybe( http_archive, name = "cargo_raze__unic_common__0_9_0", url = "https://crates.io/api/v1/crates/unic-common/0.9.0/download", type = "tar.gz", sha256 = "80d7ff825a6a654ee85a63e80f92f054f904f21e7d12da4e22f9834a4aaa35bc", strip_prefix = "unic-common-0.9.0", build_file = Label("//third_party/cargo/remote:BUILD.unic-common-0.9.0.bazel"), ) maybe( http_archive, name = "cargo_raze__unic_segment__0_9_0", url = "https://crates.io/api/v1/crates/unic-segment/0.9.0/download", type = "tar.gz", sha256 = "e4ed5d26be57f84f176157270c112ef57b86debac9cd21daaabbe56db0f88f23", strip_prefix = "unic-segment-0.9.0", build_file = Label("//third_party/cargo/remote:BUILD.unic-segment-0.9.0.bazel"), ) maybe( http_archive, name = "cargo_raze__unic_ucd_segment__0_9_0", url = "https://crates.io/api/v1/crates/unic-ucd-segment/0.9.0/download", type = "tar.gz", sha256 = "2079c122a62205b421f499da10f3ee0f7697f012f55b675e002483c73ea34700", strip_prefix = "unic-ucd-segment-0.9.0", build_file = Label("//third_party/cargo/remote:BUILD.unic-ucd-segment-0.9.0.bazel"), ) maybe( http_archive, name = "cargo_raze__unic_ucd_version__0_9_0", url = "https://crates.io/api/v1/crates/unic-ucd-version/0.9.0/download", type = "tar.gz", sha256 = "96bd2f2237fe450fcd0a1d2f5f4e91711124f7857ba2e964247776ebeeb7b0c4", strip_prefix = "unic-ucd-version-0.9.0", build_file = Label("//third_party/cargo/remote:BUILD.unic-ucd-version-0.9.0.bazel"), ) maybe( http_archive, name = "cargo_raze__unicode_bidi__0_3_4", url = "https://crates.io/api/v1/crates/unicode-bidi/0.3.4/download", type = "tar.gz", sha256 = "49f2bd0c6468a8230e1db229cff8029217cf623c767ea5d60bfbd42729ea54d5", strip_prefix = "unicode-bidi-0.3.4", build_file = Label("//third_party/cargo/remote:BUILD.unicode-bidi-0.3.4.bazel"), ) maybe( http_archive, name = "cargo_raze__unicode_normalization__0_1_17", url = "https://crates.io/api/v1/crates/unicode-normalization/0.1.17/download", type = "tar.gz", sha256 = "07fbfce1c8a97d547e8b5334978438d9d6ec8c20e38f56d4a4374d181493eaef", strip_prefix = "unicode-normalization-0.1.17", build_file = Label("//third_party/cargo/remote:BUILD.unicode-normalization-0.1.17.bazel"), ) maybe( http_archive, name = "cargo_raze__unicode_xid__0_2_1", url = "https://crates.io/api/v1/crates/unicode-xid/0.2.1/download", type = "tar.gz", sha256 = "f7fe0bb3479651439c9112f72b6c505038574c9fbb575ed1bf3b797fa39dd564", strip_prefix = "unicode-xid-0.2.1", build_file = Label("//third_party/cargo/remote:BUILD.unicode-xid-0.2.1.bazel"), ) maybe( http_archive, name = "cargo_raze__unindent__0_1_7", url = "https://crates.io/api/v1/crates/unindent/0.1.7/download", type = "tar.gz", sha256 = "f14ee04d9415b52b3aeab06258a3f07093182b88ba0f9b8d203f211a7a7d41c7", strip_prefix = "unindent-0.1.7", build_file = Label("//third_party/cargo/remote:BUILD.unindent-0.1.7.bazel"), ) maybe( http_archive, name = "cargo_raze__url__2_2_1", url = "https://crates.io/api/v1/crates/url/2.2.1/download", type = "tar.gz", sha256 = "9ccd964113622c8e9322cfac19eb1004a07e636c545f325da085d5cdde6f1f8b", strip_prefix = "url-2.2.1", build_file = Label("//third_party/cargo/remote:BUILD.url-2.2.1.bazel"), ) maybe( http_archive, name = "cargo_raze__value_bag__1_0_0_alpha_6", url = "https://crates.io/api/v1/crates/value-bag/1.0.0-alpha.6/download", type = "tar.gz", sha256 = "6b676010e055c99033117c2343b33a40a30b91fecd6c49055ac9cd2d6c305ab1", strip_prefix = "value-bag-1.0.0-alpha.6", build_file = Label("//third_party/cargo/remote:BUILD.value-bag-1.0.0-alpha.6.bazel"), ) maybe( http_archive, name = "cargo_raze__vcpkg__0_2_11", url = "https://crates.io/api/v1/crates/vcpkg/0.2.11/download", type = "tar.gz", sha256 = "b00bca6106a5e23f3eee943593759b7fcddb00554332e856d990c893966879fb", strip_prefix = "vcpkg-0.2.11", build_file = Label("//third_party/cargo/remote:BUILD.vcpkg-0.2.11.bazel"), ) maybe( http_archive, name = "cargo_raze__vec_arena__1_1_0", url = "https://crates.io/api/v1/crates/vec-arena/1.1.0/download", type = "tar.gz", sha256 = "34b2f665b594b07095e3ac3f718e13c2197143416fae4c5706cffb7b1af8d7f1", strip_prefix = "vec-arena-1.1.0", build_file = Label("//third_party/cargo/remote:BUILD.vec-arena-1.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__waker_fn__1_1_0", url = "https://crates.io/api/v1/crates/waker-fn/1.1.0/download", type = "tar.gz", sha256 = "9d5b2c62b4012a3e1eca5a7e077d13b3bf498c4073e33ccd58626607748ceeca", strip_prefix = "waker-fn-1.1.0", build_file = Label("//third_party/cargo/remote:BUILD.waker-fn-1.1.0.bazel"), ) maybe( http_archive, name = "cargo_raze__walkdir__2_3_2", url = "https://crates.io/api/v1/crates/walkdir/2.3.2/download", type = "tar.gz", sha256 = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56", strip_prefix = "walkdir-2.3.2", build_file = Label("//third_party/cargo/remote:BUILD.walkdir-2.3.2.bazel"), ) maybe( http_archive, name = "cargo_raze__want__0_3_0", url = "https://crates.io/api/v1/crates/want/0.3.0/download", type = "tar.gz", sha256 = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0", strip_prefix = "want-0.3.0", build_file = Label("//third_party/cargo/remote:BUILD.want-0.3.0.bazel"), ) maybe( http_archive, name = "cargo_raze__wasi__0_10_2_wasi_snapshot_preview1", url = "https://crates.io/api/v1/crates/wasi/0.10.2+wasi-snapshot-preview1/download", type = "tar.gz", sha256 = "fd6fbd9a79829dd1ad0cc20627bf1ed606756a7f77edff7b66b7064f9cb327c6", strip_prefix = "wasi-0.10.2+wasi-snapshot-preview1", build_file = Label("//third_party/cargo/remote:BUILD.wasi-0.10.2+wasi-snapshot-preview1.bazel"), ) maybe( http_archive, name = "cargo_raze__wasi__0_9_0_wasi_snapshot_preview1", url = "https://crates.io/api/v1/crates/wasi/0.9.0+wasi-snapshot-preview1/download", type = "tar.gz", sha256 = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519", strip_prefix = "wasi-0.9.0+wasi-snapshot-preview1", build_file = Label("//third_party/cargo/remote:BUILD.wasi-0.9.0+wasi-snapshot-preview1.bazel"), ) maybe( http_archive, name = "cargo_raze__wasm_bindgen__0_2_73", url = "https://crates.io/api/v1/crates/wasm-bindgen/0.2.73/download", type = "tar.gz", sha256 = "83240549659d187488f91f33c0f8547cbfef0b2088bc470c116d1d260ef623d9", strip_prefix = "wasm-bindgen-0.2.73", build_file = Label("//third_party/cargo/remote:BUILD.wasm-bindgen-0.2.73.bazel"), ) maybe( http_archive, name = "cargo_raze__wasm_bindgen_backend__0_2_73", url = "https://crates.io/api/v1/crates/wasm-bindgen-backend/0.2.73/download", type = "tar.gz", sha256 = "ae70622411ca953215ca6d06d3ebeb1e915f0f6613e3b495122878d7ebec7dae", strip_prefix = "wasm-bindgen-backend-0.2.73", build_file = Label("//third_party/cargo/remote:BUILD.wasm-bindgen-backend-0.2.73.bazel"), ) maybe( http_archive, name = "cargo_raze__wasm_bindgen_futures__0_4_23", url = "https://crates.io/api/v1/crates/wasm-bindgen-futures/0.4.23/download", type = "tar.gz", sha256 = "81b8b767af23de6ac18bf2168b690bed2902743ddf0fb39252e36f9e2bfc63ea", strip_prefix = "wasm-bindgen-futures-0.4.23", build_file = Label("//third_party/cargo/remote:BUILD.wasm-bindgen-futures-0.4.23.bazel"), ) maybe( http_archive, name = "cargo_raze__wasm_bindgen_macro__0_2_73", url = "https://crates.io/api/v1/crates/wasm-bindgen-macro/0.2.73/download", type = "tar.gz", sha256 = "3e734d91443f177bfdb41969de821e15c516931c3c3db3d318fa1b68975d0f6f", strip_prefix = "wasm-bindgen-macro-0.2.73", build_file = Label("//third_party/cargo/remote:BUILD.wasm-bindgen-macro-0.2.73.bazel"), ) maybe( http_archive, name = "cargo_raze__wasm_bindgen_macro_support__0_2_73", url = "https://crates.io/api/v1/crates/wasm-bindgen-macro-support/0.2.73/download", type = "tar.gz", sha256 = "d53739ff08c8a68b0fdbcd54c372b8ab800b1449ab3c9d706503bc7dd1621b2c", strip_prefix = "wasm-bindgen-macro-support-0.2.73", build_file = Label("//third_party/cargo/remote:BUILD.wasm-bindgen-macro-support-0.2.73.bazel"), ) maybe( http_archive, name = "cargo_raze__wasm_bindgen_shared__0_2_73", url = "https://crates.io/api/v1/crates/wasm-bindgen-shared/0.2.73/download", type = "tar.gz", sha256 = "d9a543ae66aa233d14bb765ed9af4a33e81b8b58d1584cf1b47ff8cd0b9e4489", strip_prefix = "wasm-bindgen-shared-0.2.73", build_file = Label("//third_party/cargo/remote:BUILD.wasm-bindgen-shared-0.2.73.bazel"), ) maybe( http_archive, name = "cargo_raze__web_sys__0_3_50", url = "https://crates.io/api/v1/crates/web-sys/0.3.50/download", type = "tar.gz", sha256 = "a905d57e488fec8861446d3393670fb50d27a262344013181c2cdf9fff5481be", strip_prefix = "web-sys-0.3.50", build_file = Label("//third_party/cargo/remote:BUILD.web-sys-0.3.50.bazel"), ) maybe( http_archive, name = "cargo_raze__wepoll_sys__3_0_1", url = "https://crates.io/api/v1/crates/wepoll-sys/3.0.1/download", type = "tar.gz", sha256 = "0fcb14dea929042224824779fbc82d9fab8d2e6d3cbc0ac404de8edf489e77ff", strip_prefix = "wepoll-sys-3.0.1", build_file = Label("//third_party/cargo/remote:BUILD.wepoll-sys-3.0.1.bazel"), ) maybe( http_archive, name = "cargo_raze__winapi__0_3_9", url = "https://crates.io/api/v1/crates/winapi/0.3.9/download", type = "tar.gz", sha256 = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419", strip_prefix = "winapi-0.3.9", build_file = Label("//third_party/cargo/remote:BUILD.winapi-0.3.9.bazel"), ) maybe( http_archive, name = "cargo_raze__winapi_i686_pc_windows_gnu__0_4_0", url = "https://crates.io/api/v1/crates/winapi-i686-pc-windows-gnu/0.4.0/download", type = "tar.gz", sha256 = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6", strip_prefix = "winapi-i686-pc-windows-gnu-0.4.0", build_file = Label("//third_party/cargo/remote:BUILD.winapi-i686-pc-windows-gnu-0.4.0.bazel"), ) maybe( http_archive, name = "cargo_raze__winapi_util__0_1_5", url = "https://crates.io/api/v1/crates/winapi-util/0.1.5/download", type = "tar.gz", sha256 = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178", strip_prefix = "winapi-util-0.1.5", build_file = Label("//third_party/cargo/remote:BUILD.winapi-util-0.1.5.bazel"), ) maybe( http_archive, name = "cargo_raze__winapi_x86_64_pc_windows_gnu__0_4_0", url = "https://crates.io/api/v1/crates/winapi-x86_64-pc-windows-gnu/0.4.0/download", type = "tar.gz", sha256 = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f", strip_prefix = "winapi-x86_64-pc-windows-gnu-0.4.0", build_file = Label("//third_party/cargo/remote:BUILD.winapi-x86_64-pc-windows-gnu-0.4.0.bazel"), ) maybe( http_archive, name = "cargo_raze__winreg__0_7_0", url = "https://crates.io/api/v1/crates/winreg/0.7.0/download", type = "tar.gz", sha256 = "0120db82e8a1e0b9fb3345a539c478767c0048d842860994d96113d5b667bd69", strip_prefix = "winreg-0.7.0", build_file = Label("//third_party/cargo/remote:BUILD.winreg-0.7.0.bazel"), ) maybe( http_archive, name = "cargo_raze__xattr__0_2_2", url = "https://crates.io/api/v1/crates/xattr/0.2.2/download", type = "tar.gz", sha256 = "244c3741f4240ef46274860397c7c74e50eb23624996930e484c16679633a54c", strip_prefix = "xattr-0.2.2", build_file = Label("//third_party/cargo/remote:BUILD.xattr-0.2.2.bazel"), )
""" Copyright 2020, Köhler Noah & Statz Andre, noah2472000@gmail.com andrestratz@web.de, All rights reserved. """ # :var colors: # colors is a dictionary. The Key is a string, who describes a color. # The value is a tuple, with three integers the value should be between 0 and 255. # Each of the individual values describes the proportion of the color red, green or blue. # That means with a value of 255 the color will have a maximum share. # R G B colors = { 'WHITE': (255, 255, 255), 'YELLOW': (255, 255, 0), 'BLACK': (0, 0, 0), 'RED': (255, 0, 0), 'BLUE': (0, 0, 255), 'GREEN': (0, 255, 0), 'GRAY': (127, 127, 127), 'ORANGE': (255, 128, 0), 'PURPLE': (255, 0, 255), 'CYAN': (0, 255, 255), 'PINK': (255, 175, 255), 'LIGHTORANGE': (255, 128, 0), 'POINTS': (255, 204, 153), 'BROWN': (153, 76, 0) }
class ConnectionError(Exception): def __init__(self, response, content=None, message=None): self.response = response self.content = content self.message = message def __str__(self): message = "Failed." if hasattr(self.response, 'status_code'): message += " Response status: %s." % (self.response.status_code) if hasattr(self.response, 'reason'): message += " Response message: %s." % (self.response.reason) if self.content is not None: message += " Error message: " + str(self.content) return message class Redirection(ConnectionError): """3xx Redirection """ def __str__(self): message = super(Redirection, self).__str__() if self.response.get('Location'): message = "%s => %s" % (message, self.response.get('Location')) return message class MissingParam(TypeError): pass class MissingConfig(Exception): pass class ClientError(ConnectionError): """4xx Client Error """ pass class BadRequest(ClientError): """400 Bad Request """ pass class UnauthorizedAccess(ClientError): """401 Unauthorized """ pass class ForbiddenAccess(ClientError): """403 Forbidden """ pass class ResourceNotFound(ClientError): """404 Not Found """ pass class ResourceConflict(ClientError): """409 Conflict """ pass class ResourceGone(ClientError): """410 Gone """ pass class ResourceInvalid(ClientError): """422 Invalid """ pass class ServerError(ConnectionError): """5xx Server Error """ pass class MethodNotAllowed(ClientError): """405 Method Not Allowed """ def allowed_methods(self): return self.response['Allow']
class Solution(object): def maxDistToClosest(self, seats): # 用生成器存储有座位的坐标 people = (i for i, seat in enumerate(seats) if seat) # 分别存储当前位置最近的左侧和右侧有座位的坐标 prev, future = None, next(people) ans = 0 for i, seat in enumerate(seats): if seat: prev = i else: while future is not None and future < i: # next 第二个参数是生成器耗尽后的返回值 future = next(people, None) left = float('inf') if prev is None else i - prev right = float('inf') if future is None else future - i ans = max(ans, min(left, right)) return ans seats = [0, 1, 0, 0, 0, 1, 0, 1] print(Solution().maxDistToClosest(seats))
HOST = '0.0.0.0' PORT = '8160' #opencv supported formats IMAGE_EXTENSIONS = set(['png', 'jpg', 'jpeg', 'jpe', 'jp2', 'bmp', 'dip', 'pbm', 'pgm', 'ppm', 'sr', 'ras', 'tiff', 'tif', 'exr'])
def unique_num(arr): new = [] for val in arr: if val not in new: new.append(val) return new print(unique_num([2, 3, 3, 2, 1, 4, 5]))
#Altere o programa anterior para mostrar no final a soma dos números n1 = int(input("Digite um número inteiro: ")) n2 = int(input("Digite outro número inteiro: ")) soma = 0 for n in range(n1+1,n2): print(n) soma += n print("A soma dos intervalos é de : {}".format(soma))
# Usage: # ip, status_code = parse_line(line) def parse_line(line): parts = line.split() return (parts[0], int(parts[8])) class AccessLog(object): def __init__(self, path_to_logfile): # TODO: Implement self.ip_set = set([]) self.status_count = {} # open file , do parse_line and save to data structure # easier to check which ip i have and count status. # data structure set for ip and dictionary for status. f = open('access.log', 'r') while 1: row = f.readline() if not row: break ip, status = parse_line(row) self.ip_set.add(ip) if not status in self.status_count.keys(): self.status_count[status] = 0 self.status_count[status] += 1 # print self.ip_set # print self.status_count #raise NotImplementedError() def contains_ip(self, ip): """Indicate whether the specified IP address is listed in the log file.""" # TODO: Implement return ip in self.ip_set #raise NotImplementedError() def get_status_count(self, status_code): """Return the number of occurrances of the specified HTTP status code in the log file. """ # TODO: Implement return self.status_count[ status_code] if status_code in self.status_count.keys() else 0 # raise NotImplementedError() # #ins = AccessLog('access.log') # #ip = ins.contains_ip('14.1.79.172') #ip2 = ins.contains_ip('0.0.0.0') #ip3 = ins.contains_ip('10.100.100.10') #status_count = ins.get_status_count(200) #print ip #print ip2 #print ip3 #print status_count
class KafqaStoreNode: """ Implements a distributed key-value store's node. """ def __init__(self, name, host, port='80'): self.name = name self.host = host self.port = port self.hashtable = dict() self.reverse_lookup_hashtables = dict() return def set(self, key: str, json_value: dict): # #### data type checking and populate secondary index for attribute, value in json_value.items(): # #### check if hashtable for this attribute already exists if self.reverse_lookup_hashtables.get(attribute): # Using this attribute specific dictionary to store attribute datatype too datatype = self.reverse_lookup_hashtables[attribute].get('datatype') # validate datatype if not type(value) == datatype: raise Exception("Attribute datatype mismatch") # #### check if values for the same key already exist l = self.reverse_lookup_hashtables[attribute].get(value) if l: self.reverse_lookup_hashtables[attribute][value] = l.append(key) else: # adding key for the first time self.reverse_lookup_hashtables[attribute].update({value: [key]}) else: self.reverse_lookup_hashtables[attribute] = {value: [key]} # first entry # #### setting datatype for the first insert self.reverse_lookup_hashtables[attribute]['datatype'] = type(value) self.hashtable[key] = json_value def get(self, key: str) -> dict: return self.hashtable.get(key, None) def delete(self, key: str): self.hashtable.pop(key) # #### TODO: delete keys from secondary index too def reverse_lookup_shard(self, key: str, attribute: str) -> list: keys = self.reverse_lookup_hashtables.get(attribute, {}).get(key, []) # verify keys still exist valid_keys = [] for k in keys: if self.hashtable.get(k): valid_keys.append(k) return valid_keys
# coding=utf-8 class message(object): '''Wrapper class for the messages sent in the blockchain. It has a header of type 'message_header' and a payload of type 'message_payload' The content type matches the message 'type' attribute''' def __init__(self, header, payload): self.check_types(header, payload) self._header = header self._payload = payload def check_types(self, header, payload): if not isinstance(header, message_header): raise TypeError("header must be of type 'message_header'") if not isinstance(payload, message_payload): raise TypeError("payload must be of type 'message_payload'") #TODO rimane da controllare che attributo 'type' matchi il tipo di 'content' def sender(self): return self._header._sender def signature(self): return self._header._sign def id(self): return self._header._id def sequence_number(self): return self._header._seq def type(self): return self._header._type def content(self): return self._payload._content class message_header(object): '''Header of a message. It specifies a sender with its signature. It has an ID and a sequence number, which is 0 if no other message is following to complete the current data transmission and 1 otherwise (payload could be too big to be sent in one shot). Finally, it contains the type of the payload''' def __init__(self, sender, sign, msg_id, seq, type): self._sender = sender self._sign = sign self._id = msg_id self._seq = seq self._type = type class message_payload(object): '''Payload of a message''' def __init__(self, content): self._content = content class message_type(object): '''Handmade enum for message type''' public_key = 1 #TODO ancora necessario? client_registration = 2 observer_registration = 3 client_deregistration = 4 observer_deregistration = 5 transaction = 6 transaction_set = 7 proposal = 8 ledger = 9 end = 10 #TODO necessario? ack_success = 20 ack_failure = 21
class Vehicle: def __init__(self, type, model, price): self.type = type self.model = model self.price = price self.owner = None def buy(self, money: int, name: str): if self.price > money: return "Sorry, not enough money" elif self.owner: return "Car already sold" else: self.owner = name change = money - self.price return f"Successfully bought a {self.type}. Change: {change:.2f}" def sell(self): if self.owner: self.owner = None else: return "Vehicle has no owner" def __repr__(self): if self.owner: return f"{self.model} {self.type} is owned by: {self.owner}" else: return f"{self.model} {self.type} is on sale: {self.price}" vehicle_type = "car" model = "BMW" price = 30000 vehicle = Vehicle(vehicle_type, model, price) vehicle.buy(15000, "Peter") vehicle.buy(35000, "George") print(vehicle) vehicle.sell() print(vehicle)
def count_list(lists): count = 0 for num in lists: if num == 4: count += 1 return count new_list = [34, 4, 56, 4, 22] print (count_list(new_list))
# -*- coding: utf-8 -*- while True: res = 0 d = {} n = int(input()) if n == 0: break v = list(map(int, input().split())) for num in v: if str(num) not in d.keys(): d[str(num)] = 1 else: d[str(num)] += 1 for k in d: if d[k] % 2 != 0: res = int(k) break print(res)
# Author: Bhavith C # Python Programming print("Hello World!")
class AttachmentSchema: media_url: str filename: str dimensions: dict class Attachment: def __init__(self, attachment: AttachmentSchema, client): self.media_url = attachment.get("media_url") self.filename = attachment.get("filename") self.dimensions = attachment.get("dimensions")
""" Add datascience """ name = "20201030143800_add_datascience" dependencies = ["20201008172100_issue_name_index"] def upgrade(db): db.teams.insert_one({"name": "datascience"}) def downgrade(db): db.teams.delete_one({'name': 'datascience'})
{ "targets": [ { "include_dirs": [ "<!(node -e \"require('nan')\")" ], "cflags_cc": [ "-O2" ], "libraries": [ ], "target_name": "addon", "sources": [ "./src/native/main.cpp", "./src/native/deviceinfo.cpp", "./src/native/devicecontrol.cpp", "./src/native/ipforward_entry.cpp", "./src/native/create_device_file.cpp", "./src/native/rwevent_process.cpp" ] } ] }
class Rect(object): def __init__(self, *args): try: if len(args) == 4: self.x, self.y, self.w, self.h = args elif len(args) == 2: self.x, self.y = args[0] self.w, self.h = args[1] else: raise Exception() except: raise Exception('Invalid call args. Rect can either accept: (x, y, w, h) or ((x, y), (w, h))')
def Solve(board): board.Draw() find = Find_Empty(board) if not find: return True else: row, col = find for i in range(1, 10): if Valid(board, i, (row, col)): board.Get_Board()[row][col] = i if Solve(board): return True board.Get_Board()[row][col] = 0 return False def Valid(board, num, pos): # Check row for i in range(len(board.Get_Board()[0])): if board.Get_Board()[pos[0]][i] == num and pos[1] != i: return False # Check column for i in range(len(board.Get_Board())): if board.Get_Board()[i][pos[1]] == num and pos[0] != i: return False # Check boardx boardx_x = pos[1] // 3 boardx_y = pos[0] // 3 for i in range(boardx_y * 3, boardx_y * 3 + 3): for j in range(boardx_x * 3, boardx_x * 3 + 3): if board.Get_Board()[i][j] == num and (i, j) != pos: return False return True def Print_Board(board): for i in range(len(board)): if i % 3 == 0 and i != 0: print("- - - - - - - - - - - - - ") for j in range(len(board[0])): if j % 3 == 0 and j != 0: print(" | ", end="") if j == 8: print(board[i][j]) else: print(str(board[i][j]) + " ", end="") def Find_Empty(board): for i in range(len(board.Get_Board())): for j in range(len(board.Get_Board()[0])): if board.Get_Board()[i][j] == 0: return [i, j] # row, col return None
# parsetab.py # This file is automatically generated. Do not edit. _tabversion = '3.2' _lr_method = 'LALR' _lr_signature = '|\x03\xc9\x8fL\xea\xa0\xa2`v\xc7\xe5\xf6L\xd3\xd2' _lr_action_items = {'NUMBER':([3,8,12,15,33,35,39,40,43,50,52,54,55,56,57,58,63,64,65,67,68,69,71,73,74,76,77,78,79,80,81,82,83,84,85,86,96,98,100,121,122,123,124,125,126,127,128,129,130,138,140,141,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[-84,-85,18,26,26,-19,26,26,26,26,18,18,26,-29,-27,26,-23,26,-28,26,26,26,-18,-20,-22,26,-24,-26,26,-21,26,26,26,26,26,26,26,26,26,26,-52,-53,-56,-59,-58,-55,-57,26,-60,26,-25,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,26,]),'LBRACKET':([21,38,60,61,66,97,135,148,],[53,68,96,68,100,100,-80,-81,]),'WHILE':([3,8,15,35,40,50,56,57,63,65,71,73,74,77,78,80,86,138,140,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[-84,-85,28,-19,28,28,-29,-27,-23,-28,-18,-20,-22,-24,-26,-21,28,28,-25,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,]),'PRINT':([3,8,15,35,40,50,56,57,63,65,71,73,74,77,78,80,86,138,140,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[-84,-85,30,-19,30,30,-29,-27,-23,-28,-18,-20,-22,-24,-26,-21,30,30,-25,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,]),'NEW':([3,8,15,35,40,50,56,57,63,65,71,73,74,77,78,80,86,138,140,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[-84,-85,31,-19,31,31,-29,-27,-23,-28,-18,-20,-22,-24,-26,-21,31,31,-25,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,31,]),'TRUE':([3,8,15,33,35,39,40,43,50,55,56,57,58,63,64,65,67,68,69,71,73,74,76,77,78,79,80,81,82,83,84,85,86,96,98,100,121,122,123,124,125,126,127,128,129,130,138,140,141,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[-84,-85,32,32,-19,32,32,32,32,32,-29,-27,32,-23,32,-28,32,32,32,-18,-20,-22,32,-24,-26,32,-21,32,32,32,32,32,32,32,32,32,32,-52,-53,-56,-59,-58,-55,-57,32,-60,32,-25,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,32,]),'MINUS':([3,8,15,24,26,29,32,33,35,38,39,40,43,45,49,50,55,56,57,58,61,62,63,64,65,66,67,68,69,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,94,96,98,100,101,102,103,105,107,112,113,114,115,116,117,121,122,123,124,125,126,127,128,129,130,133,134,135,136,138,140,141,146,147,148,149,151,152,153,154,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[-84,-85,33,-68,-67,-69,-70,33,-19,-72,33,33,33,-71,84,33,33,-29,-27,33,-72,-66,-23,33,-28,-75,33,33,33,84,-18,-20,-22,84,33,-24,-26,33,-21,33,33,33,33,33,33,84,33,33,33,84,-76,84,-73,-77,84,-64,-63,-61,-62,-65,33,-52,-53,-56,-59,-58,-55,-57,33,-60,-73,84,-80,-74,33,-25,33,84,-74,-81,33,33,33,33,84,33,33,33,33,33,33,33,33,33,33,33,33,33,33,33,]),'DIVIDE':([24,26,29,32,38,45,49,61,62,66,70,75,94,101,102,103,105,107,112,113,114,115,116,117,133,134,135,136,146,147,148,154,],[-68,-67,-69,-70,-72,-71,81,-72,-66,-75,81,81,81,81,-76,81,-73,-77,81,-64,-63,81,81,-65,-73,81,-80,-74,81,-74,-81,81,]),'LE':([24,26,29,32,45,61,62,66,94,102,107,113,114,115,116,117,133,135,147,148,],[-68,-67,-69,-70,-71,-72,-66,-75,128,-76,-77,-64,-63,-61,-62,-65,-73,-80,-74,-81,]),'RPAREN':([12,18,19,20,21,24,26,29,32,36,45,49,54,61,62,66,69,75,87,88,90,92,93,95,98,99,102,104,107,108,113,114,115,116,117,132,133,135,145,146,147,148,],[17,-16,51,-13,-15,-68,-67,-69,-70,-37,-71,-39,89,-72,-66,-75,105,107,-14,-17,119,120,-50,131,133,-38,-76,136,-77,137,-64,-63,-61,-62,-65,147,-73,-80,-51,-54,-74,-81,]),'NEWLINE':([0,3,4,9,16,17,24,25,26,27,29,32,34,36,37,41,42,45,46,47,48,49,51,61,62,66,70,72,89,91,97,99,101,102,105,107,109,110,111,112,113,114,115,116,117,118,119,120,131,133,135,136,137,138,143,147,148,149,153,154,156,159,160,166,170,171,173,175,176,178,179,180,],[3,3,3,3,3,-12,-68,3,-67,3,-69,-70,3,-37,3,3,3,-71,3,3,3,-39,-9,-72,-66,-75,-30,3,-11,-34,-78,-38,-31,-76,-35,-77,3,3,-79,-82,-64,-63,-61,-62,-65,3,-10,3,-86,-73,-80,-36,3,3,3,-74,-81,3,3,-83,3,3,-46,-42,-47,-48,-40,-44,-43,-49,-41,-45,]),'NE':([24,26,29,32,45,61,62,66,94,102,107,113,114,115,116,117,133,135,147,148,],[-68,-67,-69,-70,-71,-72,-66,-75,130,-76,-77,-64,-63,-61,-62,-65,-73,-80,-74,-81,]),'LT':([24,26,29,32,45,61,62,66,94,102,107,113,114,115,116,117,133,135,147,148,],[-68,-67,-69,-70,-71,-72,-66,-75,127,-76,-77,-64,-63,-61,-62,-65,-73,-80,-74,-81,]),'COMMA':([18,20,21,24,26,29,32,36,38,45,49,61,62,66,88,102,105,107,111,112,113,114,115,116,117,133,135,136,147,148,154,],[-16,52,-15,-68,-67,-69,-70,64,-72,-71,-39,-72,-66,-75,-17,-76,-73,-77,141,-82,-64,-63,-61,-62,-65,-73,-80,-74,-74,-81,-83,]),'PLUS':([24,26,29,32,38,45,49,61,62,66,70,75,94,101,102,103,105,107,112,113,114,115,116,117,133,134,135,136,146,147,148,154,],[-68,-67,-69,-70,-72,-71,83,-72,-66,-75,83,83,83,83,-76,83,-73,-77,83,-64,-63,-61,-62,-65,-73,83,-80,-74,83,-74,-81,83,]),'IDENTIFIER':([0,2,3,5,7,8,11,12,13,14,15,31,33,35,39,40,43,50,52,54,55,56,57,58,59,63,64,65,67,68,69,71,72,73,74,76,77,78,79,80,81,82,83,84,85,86,96,98,100,106,118,121,122,123,124,125,126,127,128,129,130,138,140,141,142,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[6,-4,-84,6,6,-85,-3,21,22,6,38,60,61,-19,61,38,61,38,21,21,61,-29,-27,61,95,-23,61,-28,61,61,61,-18,-6,-20,-22,61,-24,-26,61,-21,61,61,61,61,61,38,61,61,61,-8,-5,61,-52,-53,-56,-59,-58,-55,-57,61,-60,38,-25,61,-7,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,38,]),'OUT':([3,8,15,35,40,50,56,57,63,65,71,73,74,77,78,80,86,138,140,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[-84,-85,39,-19,39,39,-29,-27,-23,-28,-18,-20,-22,-24,-26,-21,39,39,-25,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,39,]),'GT':([24,26,29,32,45,61,62,66,94,102,107,113,114,115,116,117,133,135,147,148,],[-68,-67,-69,-70,-71,-72,-66,-75,124,-76,-77,-64,-63,-61,-62,-65,-73,-80,-74,-81,]),'RBRACE':([3,8,35,40,56,57,63,65,71,73,74,77,78,80,86,140,151,157,161,162,164,167,168,172,174,177,],[-84,-85,-19,72,-29,-27,-23,-28,-18,-20,-22,-24,-26,-21,118,-25,160,166,170,171,173,175,176,178,179,180,]),'EQUALS':([23,24,26,29,32,36,38,45,48,49,61,62,66,97,99,102,105,107,113,114,115,116,117,133,135,136,147,148,],[55,-68,-67,-69,-70,-37,67,-71,79,-39,-72,-66,-75,-78,-38,-76,-73,-77,-64,-63,-61,-62,-65,-73,-80,-74,-74,-81,]),'ELSE':([3,8,77,],[-84,-85,109,]),'GE':([24,26,29,32,45,61,62,66,94,102,107,113,114,115,116,117,133,135,147,148,],[-68,-67,-69,-70,-71,-72,-66,-75,126,-76,-77,-64,-63,-61,-62,-65,-73,-80,-74,-81,]),'LPAREN':([3,6,8,15,22,28,30,33,35,38,39,40,43,44,50,55,56,57,58,61,63,64,65,67,68,69,71,73,74,76,77,78,79,80,81,82,83,84,85,86,96,98,100,121,122,123,124,125,126,127,128,129,130,138,140,141,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[-84,12,-85,43,54,58,59,43,-19,69,43,43,43,76,43,43,-29,-27,43,98,-23,43,-28,43,43,43,-18,-20,-22,43,-24,-26,43,-21,43,43,43,43,43,43,43,43,43,43,-52,-53,-56,-59,-58,-55,-57,43,-60,43,-25,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,43,]),'TIMES':([24,26,29,32,38,45,49,61,62,66,70,75,94,101,102,103,105,107,112,113,114,115,116,117,133,134,135,136,146,147,148,154,],[-68,-67,-69,-70,-72,-71,82,-72,-66,-75,82,82,82,82,-76,82,-73,-77,82,-64,-63,82,82,-65,-73,82,-80,-74,82,-74,-81,82,]),'EQ':([24,26,29,32,45,61,62,66,94,102,107,113,114,115,116,117,133,135,147,148,],[-68,-67,-69,-70,-71,-72,-66,-75,125,-76,-77,-64,-63,-61,-62,-65,-73,-80,-74,-81,]),'IF':([3,8,15,35,40,50,56,57,63,65,71,73,74,77,78,80,86,138,140,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[-84,-85,44,-19,44,44,-29,-27,-23,-28,-18,-20,-22,-24,-26,-21,44,44,-25,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,44,]),'AND':([24,26,29,32,45,61,62,66,93,102,107,113,114,115,116,117,133,135,146,147,148,],[-68,-67,-69,-70,-71,-72,-66,-75,122,-76,-77,-64,-63,-61,-62,-65,-73,-80,-54,-74,-81,]),'LBRACE':([3,4,8,10,17,51,89,109,119,120,137,139,144,150,],[-84,9,-85,16,-12,-9,-11,138,-10,143,149,153,156,159,]),'FALSE':([3,8,15,33,35,39,40,43,50,55,56,57,58,63,64,65,67,68,69,71,73,74,76,77,78,79,80,81,82,83,84,85,86,96,98,100,121,122,123,124,125,126,127,128,129,130,138,140,141,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[-84,-85,45,45,-19,45,45,45,45,45,-29,-27,45,-23,45,-28,45,45,45,-18,-20,-22,45,-24,-26,45,-21,45,45,45,45,45,45,45,45,45,45,-52,-53,-56,-59,-58,-55,-57,45,-60,45,-25,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,45,]),'FLOAT':([3,8,15,33,35,39,40,43,50,55,56,57,58,63,64,65,67,68,69,71,73,74,76,77,78,79,80,81,82,83,84,85,86,96,98,100,121,122,123,124,125,126,127,128,129,130,138,140,141,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[-84,-85,24,24,-19,24,24,24,24,24,-29,-27,24,-23,24,-28,24,24,24,-18,-20,-22,24,-24,-26,24,-21,24,24,24,24,24,24,24,24,24,24,-52,-53,-56,-59,-58,-55,-57,24,-60,24,-25,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,24,]),'HASHTAG':([6,],[13,]),'RBRACKET':([24,26,29,32,45,53,61,62,66,68,102,103,107,113,114,115,116,117,133,134,135,147,148,],[-68,-67,-69,-70,-71,88,-72,-66,-75,102,-76,135,-77,-64,-63,-61,-62,-65,-73,148,-80,-74,-81,]),'$end':([1,2,3,5,8,11,14,72,106,118,142,],[0,-4,-84,-2,-85,-3,-1,-6,-8,-5,-7,]),'OR':([24,26,29,32,45,61,62,66,93,102,107,113,114,115,116,117,133,135,146,147,148,],[-68,-67,-69,-70,-71,-72,-66,-75,123,-76,-77,-64,-63,-61,-62,-65,-73,-80,-54,-74,-81,]),'MOD':([24,26,29,32,38,45,49,61,62,66,70,75,94,101,102,103,105,107,112,113,114,115,116,117,133,134,135,136,146,147,148,154,],[-68,-67,-69,-70,-72,-71,85,-72,-66,-75,85,85,85,85,-76,85,-73,-77,85,-64,-63,85,85,-65,-73,85,-80,-74,85,-74,-81,85,]),} _lr_action = { } for _k, _v in _lr_action_items.items(): for _x,_y in zip(_v[0],_v[1]): if not _x in _lr_action: _lr_action[_x] = { } _lr_action[_x][_k] = _y del _lr_action_items _lr_goto_items = {'parameters_list':([15,40,50,55,64,69,86,98,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[23,23,23,91,99,104,23,132,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,23,]),'head':([0,5,7,14,],[4,4,4,4,]),'function_call':([15,40,50,86,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,27,]),'boolean':([15,33,39,40,43,50,55,58,64,67,68,69,76,79,81,82,83,84,85,86,96,98,100,121,129,138,141,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,29,]),'argument_declaration':([12,52,54,],[20,20,20,]),'out':([15,40,50,86,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,]),'condition_list':([58,76,121,],[92,108,145,]),'parralel_assignment':([15,40,50,86,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,34,]),'program':([0,7,],[5,14,]),'argument_list':([12,52,54,],[19,87,90,]),'statement':([15,40,50,86,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[35,71,35,71,35,35,71,35,35,35,71,35,35,71,71,35,71,35,71,71,35,71,71,71,]),'parameter_declaration':([15,40,50,55,64,69,86,98,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,36,]),'print':([15,40,50,86,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,37,]),'newlines':([0,3,4,9,16,25,27,34,37,41,42,46,47,48,72,109,110,118,120,137,138,143,149,153,156,159,],[7,8,10,15,50,56,57,63,65,73,74,77,78,80,106,139,140,142,144,150,152,155,158,163,165,169,]),'body':([15,50,138,149,152,153,155,158,159,163,165,169,],[40,86,151,157,161,162,164,167,168,172,174,177,]),'begin':([0,],[1,]),'value_list':([79,],[111,]),'assignment':([15,40,50,86,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,41,]),'comp_symbol':([94,],[129,]),'array_assignment':([15,40,50,86,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,42,]),'else_block':([77,],[110,]),'bracket_list':([38,60,61,],[66,97,66,]),'condition':([58,76,121,],[93,93,93,]),'function_definition':([0,5,7,14,],[2,11,2,11,]),'comb_symbol':([93,],[121,]),'if_block':([15,40,50,86,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,46,]),'while_block':([15,40,50,86,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,47,]),'array_declaration':([15,40,50,86,138,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,48,]),'expression':([15,33,39,40,43,50,55,58,64,67,68,69,76,79,81,82,83,84,85,86,96,98,100,121,129,138,141,149,151,152,153,155,157,158,159,161,162,163,164,165,167,168,169,172,174,177,],[49,62,70,49,75,49,49,94,49,101,103,49,94,112,113,114,115,116,117,49,103,49,134,94,146,49,154,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,49,]),} _lr_goto = { } for _k, _v in _lr_goto_items.items(): for _x,_y in zip(_v[0],_v[1]): if not _x in _lr_goto: _lr_goto[_x] = { } _lr_goto[_x][_k] = _y del _lr_goto_items _lr_productions = [ ("S' -> begin","S'",1,None,None,None), ('begin -> newlines program','begin',2,'p_begin','/home/nix/workspace/JG3/Parser.py',25), ('begin -> program','begin',1,'p_begin','/home/nix/workspace/JG3/Parser.py',26), ('program -> program function_definition','program',2,'p_program','/home/nix/workspace/JG3/Parser.py',33), ('program -> function_definition','program',1,'p_program','/home/nix/workspace/JG3/Parser.py',34), ('function_definition -> head newlines LBRACE newlines body RBRACE','function_definition',6,'p_function_definition','/home/nix/workspace/JG3/Parser.py',42), ('function_definition -> head LBRACE newlines body RBRACE','function_definition',5,'p_function_definition','/home/nix/workspace/JG3/Parser.py',43), ('function_definition -> head newlines LBRACE newlines body RBRACE newlines','function_definition',7,'p_function_definition','/home/nix/workspace/JG3/Parser.py',44), ('function_definition -> head LBRACE newlines body RBRACE newlines','function_definition',6,'p_function_definition','/home/nix/workspace/JG3/Parser.py',45), ('head -> IDENTIFIER LPAREN argument_list RPAREN','head',4,'p_head','/home/nix/workspace/JG3/Parser.py',57), ('head -> IDENTIFIER HASHTAG IDENTIFIER LPAREN argument_list RPAREN','head',6,'p_head','/home/nix/workspace/JG3/Parser.py',58), ('head -> IDENTIFIER HASHTAG IDENTIFIER LPAREN RPAREN','head',5,'p_head','/home/nix/workspace/JG3/Parser.py',59), ('head -> IDENTIFIER LPAREN RPAREN','head',3,'p_head','/home/nix/workspace/JG3/Parser.py',60), ('argument_list -> argument_declaration','argument_list',1,'p_argument_list','/home/nix/workspace/JG3/Parser.py',72), ('argument_list -> argument_declaration COMMA argument_list','argument_list',3,'p_argument_list','/home/nix/workspace/JG3/Parser.py',73), ('argument_declaration -> IDENTIFIER','argument_declaration',1,'p_argument_declaration','/home/nix/workspace/JG3/Parser.py',81), ('argument_declaration -> NUMBER','argument_declaration',1,'p_argument_declaration','/home/nix/workspace/JG3/Parser.py',82), ('argument_declaration -> IDENTIFIER LBRACKET RBRACKET','argument_declaration',3,'p_argument_declaration','/home/nix/workspace/JG3/Parser.py',83), ('body -> body statement','body',2,'p_body','/home/nix/workspace/JG3/Parser.py',93), ('body -> statement','body',1,'p_body','/home/nix/workspace/JG3/Parser.py',94), ('statement -> assignment newlines','statement',2,'p_statement','/home/nix/workspace/JG3/Parser.py',103), ('statement -> array_declaration newlines','statement',2,'p_statement','/home/nix/workspace/JG3/Parser.py',104), ('statement -> array_assignment newlines','statement',2,'p_statement','/home/nix/workspace/JG3/Parser.py',105), ('statement -> parralel_assignment newlines','statement',2,'p_statement','/home/nix/workspace/JG3/Parser.py',106), ('statement -> if_block newlines','statement',2,'p_statement','/home/nix/workspace/JG3/Parser.py',107), ('statement -> if_block newlines else_block newlines','statement',4,'p_statement','/home/nix/workspace/JG3/Parser.py',108), ('statement -> while_block newlines','statement',2,'p_statement','/home/nix/workspace/JG3/Parser.py',109), ('statement -> function_call newlines','statement',2,'p_statement','/home/nix/workspace/JG3/Parser.py',110), ('statement -> print newlines','statement',2,'p_statement','/home/nix/workspace/JG3/Parser.py',111), ('statement -> out newlines','statement',2,'p_statement','/home/nix/workspace/JG3/Parser.py',112), ('out -> OUT expression','out',2,'p_out','/home/nix/workspace/JG3/Parser.py',120), ('assignment -> IDENTIFIER EQUALS expression','assignment',3,'p_assignment','/home/nix/workspace/JG3/Parser.py',125), ('multiple_assignment -> assignment','multiple_assignment',1,'p_multiple_assignment','/home/nix/workspace/JG3/Parser.py',130), ('multiple_assignment -> IDENTIFIER EQUALS multiple_assignment','multiple_assignment',3,'p_multiple_assignment','/home/nix/workspace/JG3/Parser.py',131), ('parralel_assignment -> parameters_list EQUALS parameters_list','parralel_assignment',3,'p_parralel_assignment','/home/nix/workspace/JG3/Parser.py',140), ('function_call -> IDENTIFIER LPAREN RPAREN','function_call',3,'p_function_call','/home/nix/workspace/JG3/Parser.py',145), ('function_call -> IDENTIFIER LPAREN parameters_list RPAREN','function_call',4,'p_function_call','/home/nix/workspace/JG3/Parser.py',146), ('parameters_list -> parameter_declaration','parameters_list',1,'p_parameters_list','/home/nix/workspace/JG3/Parser.py',154), ('parameters_list -> parameter_declaration COMMA parameters_list','parameters_list',3,'p_parameters_list','/home/nix/workspace/JG3/Parser.py',155), ('parameter_declaration -> expression','parameter_declaration',1,'p_parameter_declaration','/home/nix/workspace/JG3/Parser.py',163), ('while_block -> WHILE LPAREN condition_list RPAREN LBRACE newlines body RBRACE','while_block',8,'p_while_block','/home/nix/workspace/JG3/Parser.py',168), ('while_block -> WHILE LPAREN condition_list RPAREN newlines LBRACE newlines body RBRACE','while_block',9,'p_while_block','/home/nix/workspace/JG3/Parser.py',169), ('if_block -> IF LPAREN condition_list RPAREN LBRACE body RBRACE','if_block',7,'p_if_block','/home/nix/workspace/JG3/Parser.py',177), ('if_block -> IF LPAREN condition_list RPAREN newlines LBRACE body RBRACE','if_block',8,'p_if_block','/home/nix/workspace/JG3/Parser.py',178), ('if_block -> IF LPAREN condition_list RPAREN LBRACE newlines body RBRACE','if_block',8,'p_if_block','/home/nix/workspace/JG3/Parser.py',179), ('if_block -> IF LPAREN condition_list RPAREN newlines LBRACE newlines body RBRACE','if_block',9,'p_if_block','/home/nix/workspace/JG3/Parser.py',180), ('else_block -> ELSE LBRACE body RBRACE','else_block',4,'p_else_block','/home/nix/workspace/JG3/Parser.py',192), ('else_block -> ELSE LBRACE newlines body RBRACE','else_block',5,'p_else_block','/home/nix/workspace/JG3/Parser.py',193), ('else_block -> ELSE newlines LBRACE body RBRACE','else_block',5,'p_else_block','/home/nix/workspace/JG3/Parser.py',194), ('else_block -> ELSE newlines LBRACE newlines body RBRACE','else_block',6,'p_else_block','/home/nix/workspace/JG3/Parser.py',195), ('condition_list -> condition','condition_list',1,'p_condition_list','/home/nix/workspace/JG3/Parser.py',205), ('condition_list -> condition comb_symbol condition_list','condition_list',3,'p_condition_list','/home/nix/workspace/JG3/Parser.py',206), ('comb_symbol -> AND','comb_symbol',1,'p_comb_symbol','/home/nix/workspace/JG3/Parser.py',214), ('comb_symbol -> OR','comb_symbol',1,'p_comb_symbol','/home/nix/workspace/JG3/Parser.py',215), ('condition -> expression comp_symbol expression','condition',3,'p_condition','/home/nix/workspace/JG3/Parser.py',220), ('comp_symbol -> LT','comp_symbol',1,'p_comp_symbol','/home/nix/workspace/JG3/Parser.py',225), ('comp_symbol -> GT','comp_symbol',1,'p_comp_symbol','/home/nix/workspace/JG3/Parser.py',226), ('comp_symbol -> LE','comp_symbol',1,'p_comp_symbol','/home/nix/workspace/JG3/Parser.py',227), ('comp_symbol -> GE','comp_symbol',1,'p_comp_symbol','/home/nix/workspace/JG3/Parser.py',228), ('comp_symbol -> EQ','comp_symbol',1,'p_comp_symbol','/home/nix/workspace/JG3/Parser.py',229), ('comp_symbol -> NE','comp_symbol',1,'p_comp_symbol','/home/nix/workspace/JG3/Parser.py',230), ('expression -> expression PLUS expression','expression',3,'p_expression_binop','/home/nix/workspace/JG3/Parser.py',235), ('expression -> expression MINUS expression','expression',3,'p_expression_binop','/home/nix/workspace/JG3/Parser.py',236), ('expression -> expression TIMES expression','expression',3,'p_expression_binop','/home/nix/workspace/JG3/Parser.py',237), ('expression -> expression DIVIDE expression','expression',3,'p_expression_binop','/home/nix/workspace/JG3/Parser.py',238), ('expression -> expression MOD expression','expression',3,'p_expression_binop','/home/nix/workspace/JG3/Parser.py',239), ('expression -> MINUS expression','expression',2,'p_expression_uminus','/home/nix/workspace/JG3/Parser.py',244), ('expression -> NUMBER','expression',1,'p_expression_number','/home/nix/workspace/JG3/Parser.py',249), ('expression -> FLOAT','expression',1,'p_expression_float','/home/nix/workspace/JG3/Parser.py',254), ('expression -> boolean','expression',1,'p_expression_boolean','/home/nix/workspace/JG3/Parser.py',259), ('boolean -> TRUE','boolean',1,'p_boolean','/home/nix/workspace/JG3/Parser.py',264), ('boolean -> FALSE','boolean',1,'p_boolean','/home/nix/workspace/JG3/Parser.py',265), ('expression -> IDENTIFIER','expression',1,'p_expression_name','/home/nix/workspace/JG3/Parser.py',270), ('expression -> IDENTIFIER LPAREN RPAREN','expression',3,'p_exprFunction','/home/nix/workspace/JG3/Parser.py',281), ('expression -> IDENTIFIER LPAREN parameters_list RPAREN','expression',4,'p_exprFunction','/home/nix/workspace/JG3/Parser.py',282), ('expression -> IDENTIFIER bracket_list','expression',2,'p_exprArray','/home/nix/workspace/JG3/Parser.py',290), ('expression -> IDENTIFIER LBRACKET RBRACKET','expression',3,'p_exprArray','/home/nix/workspace/JG3/Parser.py',291), ('expression -> LPAREN expression RPAREN','expression',3,'p_group','/home/nix/workspace/JG3/Parser.py',299), ('array_declaration -> NEW IDENTIFIER bracket_list','array_declaration',3,'p_array_declaration','/home/nix/workspace/JG3/Parser.py',303), ('array_assignment -> array_declaration EQUALS value_list','array_assignment',3,'p_array_assignment','/home/nix/workspace/JG3/Parser.py',308), ('bracket_list -> LBRACKET expression RBRACKET','bracket_list',3,'p_bracket_list','/home/nix/workspace/JG3/Parser.py',313), ('bracket_list -> bracket_list LBRACKET expression RBRACKET','bracket_list',4,'p_bracket_list','/home/nix/workspace/JG3/Parser.py',314), ('value_list -> expression','value_list',1,'p_value_list','/home/nix/workspace/JG3/Parser.py',322), ('value_list -> value_list COMMA expression','value_list',3,'p_value_list','/home/nix/workspace/JG3/Parser.py',323), ('newlines -> NEWLINE','newlines',1,'p_newlines','/home/nix/workspace/JG3/Parser.py',332), ('newlines -> NEWLINE newlines','newlines',2,'p_newlines','/home/nix/workspace/JG3/Parser.py',333), ('print -> PRINT LPAREN IDENTIFIER RPAREN','print',4,'p_print','/home/nix/workspace/JG3/Parser.py',341), ]
def solution(A): counter = {} for num in range(1,len(A)+1): counter[num] = 0 for num in A: if num in counter: counter[num] += 1 if counter[num] > 1: return 0 else: return 0 return 1 A = [4, 1, 3, 2] solution(A)
DATABASES = { 'default': { 'ENGINE': 'django.db.backends.postgresql', 'NAME': 'test_db', 'USER':'postgres', 'PASSWORD': 'Cat.iquality@gmail.com', 'HOST': '127.0.0.1', 'PORT': '5432' } }
MAIN_SECTOR = [ 'Government', 'Private', 'NGO', 'Entrepreneur', 'Farmer', 'Student', 'Other', ] SUBSECTOR = [ 'Central Government', 'IAS', 'IPS', 'IFoS', 'Other UPSC Services', 'ICAR', 'State-Agriculture', 'State-Forestry', 'State-Revenue', 'State-Police', 'State-Cooperatives', 'State-Corporations', 'State-Other bodies', 'Mantralaya', 'Agriculture Universities', 'Non Agricultural Universities', 'Private College', 'KVK', 'NGO', 'Dealer/Distributor', 'Industrialist', 'LIC', 'IIT', 'NIT', 'IIM', 'Freelancing', 'Consultant', 'Other', ] SKILLS = [ 'Administration', 'Irrigation & Water Management', 'Protected Cultivation', 'Energy', 'Food & Fruit Processing', 'Farm Machinery', 'Watershed Management', 'Information Technology', 'Remote Sensing', 'GIS', 'Internet of Things', 'Drones', 'Robotics', 'Precision Agriculture', 'Environment', 'Dairy', 'Poultry', 'Fishery', 'Insurance', 'Banking', 'Finance', 'Taxes', 'Construction', 'Farming', 'Other' ]
# # PySNMP MIB module COM21-HCXVOICE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/COM21-HCXVOICE-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:26:26 2019 # On host DAVWANG4-M-1475 platform Darwin version 18.5.0 by user davwang4 # Using Python version 3.7.3 (default, Mar 27 2019, 09:23:15) # OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueRangeConstraint, ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueRangeConstraint", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion") com21Hcx, com21 = mibBuilder.importSymbols("COM21-HCX-MIB", "com21Hcx", "com21") hcxAlmSeverity, hcxEventLogTime = mibBuilder.importSymbols("COM21-HCXALM-MIB", "hcxAlmSeverity", "hcxEventLogTime") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter32, NotificationType, Counter64, ModuleIdentity, IpAddress, MibScalar, MibTable, MibTableRow, MibTableColumn, Bits, ObjectIdentity, MibIdentifier, Integer32, Gauge32, iso, Unsigned32, TimeTicks = mibBuilder.importSymbols("SNMPv2-SMI", "Counter32", "NotificationType", "Counter64", "ModuleIdentity", "IpAddress", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Bits", "ObjectIdentity", "MibIdentifier", "Integer32", "Gauge32", "iso", "Unsigned32", "TimeTicks") TextualConvention, MacAddress, DisplayString = mibBuilder.importSymbols("SNMPv2-TC", "TextualConvention", "MacAddress", "DisplayString") com21HcxVoice = ModuleIdentity((1, 3, 6, 1, 4, 1, 1141, 2, 100)) if mibBuilder.loadTexts: com21HcxVoice.setLastUpdated('9701080000Z') if mibBuilder.loadTexts: com21HcxVoice.setOrganization('Com21, Inc.') if mibBuilder.loadTexts: com21HcxVoice.setContactInfo(' Network Management Postal: Paul Gordon Com21, Inc. 750 Tasman Drive Milpitas, California 95035 USA Tel: +1 408 953 9100 Fax: +1 408 953 9299 E-mail: pgordon@com21.com') if mibBuilder.loadTexts: com21HcxVoice.setDescription('This is the Com21 ComController Oc3 MIB module. COM21 Part# 005-0025-00') com21HcxVoiceGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 1141, 2, 101)) com21HcxVpnRxGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 1141, 2, 102)) com21HcxVpnRxStatsGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 1141, 2, 103)) com21HcxStuVoiceChannelGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 1141, 2, 104)) com21HcxStuVoiceCallStatsGroup = MibIdentifier((1, 3, 6, 1, 4, 1, 1141, 2, 105)) class PrimServiceState(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2)) namedValues = NamedValues(("is", 1), ("oos", 2)) class Com21RowStatus(Integer32): subtypeSpec = Integer32.subtypeSpec + ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4)) namedValues = NamedValues(("active", 1), ("create", 2), ("destroy", 3), ("deactive", 4)) hcxConfiguredVoiceChannels = MibScalar((1, 3, 6, 1, 4, 1, 1141, 2, 101, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxConfiguredVoiceChannels.setStatus('current') if mibBuilder.loadTexts: hcxConfiguredVoiceChannels.setDescription(' Defines the number of Voice Channels currently configured on the system.') hcxActiveVoiceChannels = MibScalar((1, 3, 6, 1, 4, 1, 1141, 2, 101, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxActiveVoiceChannels.setStatus('current') if mibBuilder.loadTexts: hcxActiveVoiceChannels.setDescription(' Defines the number of Voice Channels that are currently active on the system.') hcxVoiceChannelMode = MibScalar((1, 3, 6, 1, 4, 1, 1141, 2, 101, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("aLaw", 1), ("muLaw", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hcxVoiceChannelMode.setStatus('current') if mibBuilder.loadTexts: hcxVoiceChannelMode.setDescription(' Defines the type of compression scheme to be used for voice. Default is aLaw.') hcxVoiceOAMEnable = MibScalar((1, 3, 6, 1, 4, 1, 1141, 2, 101, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hcxVoiceOAMEnable.setStatus('current') if mibBuilder.loadTexts: hcxVoiceOAMEnable.setDescription(" Defines whether OAM cells should be transmitted on voice VCC's when voice calls are idle. default: disable") hcxVoiceFEndEchoCancEnable = MibScalar((1, 3, 6, 1, 4, 1, 1141, 2, 101, 5), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hcxVoiceFEndEchoCancEnable.setStatus('current') if mibBuilder.loadTexts: hcxVoiceFEndEchoCancEnable.setDescription(' Defines whether Far End Echo Cancellation should be enabled or not. Default: disable') hcxVoiceRTTDelay = MibScalar((1, 3, 6, 1, 4, 1, 1141, 2, 101, 6), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hcxVoiceRTTDelay.setStatus('current') if mibBuilder.loadTexts: hcxVoiceRTTDelay.setDescription(" Defines the Round Trip Transit Delay in milliseconds. This should be configured if 'hcxVoiceFEndEchoCancEnable' is enabled. Default: 0") com21HcxVpnRxTable = MibTable((1, 3, 6, 1, 4, 1, 1141, 2, 102, 1), ) if mibBuilder.loadTexts: com21HcxVpnRxTable.setStatus('current') if mibBuilder.loadTexts: com21HcxVpnRxTable.setDescription('.') com21HcxVpnRxEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1141, 2, 102, 1, 1), ).setIndexNames((0, "COM21-HCXVOICE-MIB", "hcxVpnRxNum"), (0, "COM21-HCXVOICE-MIB", "hcxVpnRxEntryId")) if mibBuilder.loadTexts: com21HcxVpnRxEntry.setStatus('current') if mibBuilder.loadTexts: com21HcxVpnRxEntry.setDescription('.') hcxVpnRxNum = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 102, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxVpnRxNum.setStatus('current') if mibBuilder.loadTexts: hcxVpnRxNum.setDescription(' Defines the Vpn Number. Used as Index.') hcxVpnRxEntryId = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 102, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxVpnRxEntryId.setStatus('current') if mibBuilder.loadTexts: hcxVpnRxEntryId.setDescription(' Defines the Rx Group Id. Used as Index.') hcxVpnRxRowStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 102, 1, 1, 3), Com21RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hcxVpnRxRowStatus.setStatus('current') if mibBuilder.loadTexts: hcxVpnRxRowStatus.setDescription(' Used to create an Instance of Rx Group Id for a given VPN. Deactive is not allowed.') hcxVpnRxMaxActiveCalls = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 102, 1, 1, 4), Integer32()).setMaxAccess("readwrite") if mibBuilder.loadTexts: hcxVpnRxMaxActiveCalls.setStatus('current') if mibBuilder.loadTexts: hcxVpnRxMaxActiveCalls.setDescription(' Defines the maximum number of voice calls that should be allowed for this VPN on this Rx Group .') com21HcxVpnRxStatsTable = MibTable((1, 3, 6, 1, 4, 1, 1141, 2, 103, 1), ) if mibBuilder.loadTexts: com21HcxVpnRxStatsTable.setStatus('current') if mibBuilder.loadTexts: com21HcxVpnRxStatsTable.setDescription('.') com21HcxVpnRxStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1141, 2, 103, 1, 1), ).setIndexNames((0, "COM21-HCXVOICE-MIB", "hcxVpnRxStatsNum"), (0, "COM21-HCXVOICE-MIB", "hcxVpnRxStatsEntryId")) if mibBuilder.loadTexts: com21HcxVpnRxStatsEntry.setStatus('current') if mibBuilder.loadTexts: com21HcxVpnRxStatsEntry.setDescription('.') hcxVpnRxStatsNum = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 103, 1, 1, 1), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxVpnRxStatsNum.setStatus('current') if mibBuilder.loadTexts: hcxVpnRxStatsNum.setDescription(' Defines the VPN value for which the stats are collected. Used as Index.') hcxVpnRxStatsEntryId = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 103, 1, 1, 2), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxVpnRxStatsEntryId.setStatus('current') if mibBuilder.loadTexts: hcxVpnRxStatsEntryId.setDescription(' Defines the Rx Group Number for which the stats are collected. Used as Index.') hcxVpnRxStatsCurrCallsAllwd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 103, 1, 1, 3), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxVpnRxStatsCurrCallsAllwd.setStatus('current') if mibBuilder.loadTexts: hcxVpnRxStatsCurrCallsAllwd.setDescription(' Defines the number of calls allowed in the given 15-min period for a ComPort on this Rx Group and on this VPN.') hcxVpnRxStatsCurrCallsBlkd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 103, 1, 1, 4), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxVpnRxStatsCurrCallsBlkd.setStatus('current') if mibBuilder.loadTexts: hcxVpnRxStatsCurrCallsBlkd.setDescription(' Defines the number of calls blocked in the given 15-min period for a ComPort on this Rx Group and on this VPN.') hcxVpnRxStatsPrevCallsAllwd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 103, 1, 1, 5), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxVpnRxStatsPrevCallsAllwd.setStatus('current') if mibBuilder.loadTexts: hcxVpnRxStatsPrevCallsAllwd.setDescription(' Defines the number of calls allowed in the previous 15-min period for a ComPort on this Rx Group and on this VPN.') hcxVpnRxStatsPrevCallsBlkd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 103, 1, 1, 6), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxVpnRxStatsPrevCallsBlkd.setStatus('current') if mibBuilder.loadTexts: hcxVpnRxStatsPrevCallsBlkd.setDescription(' Defines the number of calls blocked in the previous 15-min period for a ComPort on this Rx Group and on this VPN.') hcxVpnRxStatsClear = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 103, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("nil", 1), ("clear", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hcxVpnRxStatsClear.setStatus('current') if mibBuilder.loadTexts: hcxVpnRxStatsClear.setDescription(' This attribute is used to clear all call statistics counters in this group. This operation is only possible if the hcxStatsControl attribute is set to wrapCurr.') com21HcxStuVoiceChannelTable = MibTable((1, 3, 6, 1, 4, 1, 1141, 2, 104, 1), ) if mibBuilder.loadTexts: com21HcxStuVoiceChannelTable.setStatus('current') if mibBuilder.loadTexts: com21HcxStuVoiceChannelTable.setDescription('.') com21HcxStuVoiceChannelEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1141, 2, 104, 1, 1), ).setIndexNames((0, "COM21-HCXVOICE-MIB", "hcxStuVoiceChannelMacAddr"), (0, "COM21-HCXVOICE-MIB", "hcxStuVoiceChannelNum")) if mibBuilder.loadTexts: com21HcxStuVoiceChannelEntry.setStatus('current') if mibBuilder.loadTexts: com21HcxStuVoiceChannelEntry.setDescription('.') hcxStuVoiceChannelMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 104, 1, 1, 1), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceChannelMacAddr.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceChannelMacAddr.setDescription(' Contains IEEE 802 medium access control address of the ComPort device.') hcxStuVoiceChannelNum = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 104, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceChannelNum.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceChannelNum.setDescription(' Defines the voice channel on the Comport device used for Voice.') hcxStuVoiceChannelVpi = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 104, 1, 1, 3), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 64))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hcxStuVoiceChannelVpi.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceChannelVpi.setDescription(" Defines the VPI to use to connect the Comport's voice channel to the external device on the OC3 wan port. The 'hcxStuVoiceChannelVpi', 'hcxStuVoiceChannelVci' combination should form a unique VCC for each entry in 'com21HcxStuVoiceChannelTable'. Default is 0") hcxStuVoiceChannelVci = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 104, 1, 1, 4), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 255))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hcxStuVoiceChannelVci.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceChannelVci.setDescription(" Defines the VCI to use to connect the Comport's voice channel to the external device on the OC3 wan port. The 'hcxStuVoiceChannelVpi', 'hcxStuVoiceChannelVci' combination should form a unique VCC for each entry in 'com21HcxStuVoiceChannelTable'. Default is 0") hcxStuVoiceChannelPriStatus = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 104, 1, 1, 5), Com21RowStatus()).setMaxAccess("readcreate") if mibBuilder.loadTexts: hcxStuVoiceChannelPriStatus.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceChannelPriStatus.setDescription(' Used to control Create, Activate/Deactivate, or Destroy a row. Activation/Deactivation of the row is not allowed if all writeable attributes do not have valid values. ') hcxStuVoiceChannelState = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 104, 1, 1, 6), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("voiceChanIdle", 1), ("voiceChanActive", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceChannelState.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceChannelState.setDescription(' Defines the current state of the port. voicePortActive indicates that the call is in progress ') hcxStuVoiceChannelExtLpBk = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 104, 1, 1, 7), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("disable", 1), ("enable", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hcxStuVoiceChannelExtLpBk.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceChannelExtLpBk.setDescription(' If this attribute is enabled, the Oc3 Port will loopback all cells received on this VCC. The attribute cannot be enabled if voiceChannel is active, and if this attribute is enabled, voiceChannel will not be allowed to go active. default: disable.') com21HcxStuVoiceCallStatsTable = MibTable((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1), ) if mibBuilder.loadTexts: com21HcxStuVoiceCallStatsTable.setStatus('current') if mibBuilder.loadTexts: com21HcxStuVoiceCallStatsTable.setDescription('.') com21HcxStuVoiceCallStatsEntry = MibTableRow((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1), ).setIndexNames((0, "COM21-HCXVOICE-MIB", "hcxStuVoiceCallStatsMacAddr"), (0, "COM21-HCXVOICE-MIB", "hcxStuVoiceCallStatsNum")) if mibBuilder.loadTexts: com21HcxStuVoiceCallStatsEntry.setStatus('current') if mibBuilder.loadTexts: com21HcxStuVoiceCallStatsEntry.setDescription('.') hcxStuVoiceCallStatsMacAddr = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1, 1), MacAddress()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceCallStatsMacAddr.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceCallStatsMacAddr.setDescription(' Contains IEEE 802 medium access control address of the ComPort device.') hcxStuVoiceCallStatsNum = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1, 2), Integer32().subtype(subtypeSpec=ValueRangeConstraint(1, 2))).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceCallStatsNum.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceCallStatsNum.setDescription(' Defines the voice channel on the Comport device used for Voice.') hcxStuVoiceCallCurrInCallsAllwd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1, 3), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceCallCurrInCallsAllwd.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceCallCurrInCallsAllwd.setDescription(' Defines the number of Incoming calls allowed in the given 15-min time period. Incoming calls are calls being placed to this voice channel.') hcxStuVoiceCallCurrOutCallsAllwd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1, 4), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceCallCurrOutCallsAllwd.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceCallCurrOutCallsAllwd.setDescription(' Defines the number of Outgoing calls allowed in the given 15-min time period. Outgoing calls are calls being placed by this voice channel.') hcxStuVoiceCallCurrInCallsBlkd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1, 5), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceCallCurrInCallsBlkd.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceCallCurrInCallsBlkd.setDescription(' Defines the number of Incoming calls blocked in the given 15-min time period. Incoming calls are calls being placed to this voice channel.') hcxStuVoiceCallCurrOutCallsBlkd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1, 6), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceCallCurrOutCallsBlkd.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceCallCurrOutCallsBlkd.setDescription(' Defines the number of Outgoing calls blocked in the given 15-min time period. Outgoing calls are calls being placed by this voice channel.') hcxStuVoiceCallPrevInCallsAllwd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1, 7), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceCallPrevInCallsAllwd.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceCallPrevInCallsAllwd.setDescription(' Defines the number of Incoming calls allowed in the previous 15-min time period. Incoming calls are calls being placed to this voice channel.') hcxStuVoiceCallPrevOutCallsAllwd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1, 8), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceCallPrevOutCallsAllwd.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceCallPrevOutCallsAllwd.setDescription(' Defines the number of Outgoing calls blocked in the previous 15-min time period. Outgoing calls are calls being placed by this voice channel.') hcxStuVoiceCallPrevInCallsBlkd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1, 9), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceCallPrevInCallsBlkd.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceCallPrevInCallsBlkd.setDescription(' Defines the number of Incoming calls blocked in the previous 15-min time period. Incoming calls are calls being placed to this voice channel.') hcxStuVoiceCallPrevOutCallsBlkd = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1, 10), Gauge32()).setMaxAccess("readonly") if mibBuilder.loadTexts: hcxStuVoiceCallPrevOutCallsBlkd.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceCallPrevOutCallsBlkd.setDescription(' Defines the number of Outgoing calls blocked in the previous 15-min time period. Outgoing calls are calls being placed by this voice channel.') hcxStuVoiceCallStatsClear = MibTableColumn((1, 3, 6, 1, 4, 1, 1141, 2, 105, 1, 1, 11), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("nil", 1), ("clear", 2)))).setMaxAccess("readwrite") if mibBuilder.loadTexts: hcxStuVoiceCallStatsClear.setStatus('current') if mibBuilder.loadTexts: hcxStuVoiceCallStatsClear.setDescription(' This attribute is used to clear all the voice channel statistics counters in this group. This operation is only possible if the hcxStatsControl attribute is set to wrapCurr.') mibBuilder.exportSymbols("COM21-HCXVOICE-MIB", hcxVpnRxRowStatus=hcxVpnRxRowStatus, com21HcxVoice=com21HcxVoice, com21HcxVoiceGroup=com21HcxVoiceGroup, com21HcxStuVoiceCallStatsGroup=com21HcxStuVoiceCallStatsGroup, hcxConfiguredVoiceChannels=hcxConfiguredVoiceChannels, hcxVpnRxStatsCurrCallsAllwd=hcxVpnRxStatsCurrCallsAllwd, hcxStuVoiceChannelVci=hcxStuVoiceChannelVci, hcxVpnRxStatsNum=hcxVpnRxStatsNum, hcxVpnRxStatsPrevCallsAllwd=hcxVpnRxStatsPrevCallsAllwd, hcxActiveVoiceChannels=hcxActiveVoiceChannels, hcxStuVoiceChannelPriStatus=hcxStuVoiceChannelPriStatus, hcxStuVoiceCallStatsNum=hcxStuVoiceCallStatsNum, PrimServiceState=PrimServiceState, hcxStuVoiceCallCurrInCallsAllwd=hcxStuVoiceCallCurrInCallsAllwd, Com21RowStatus=Com21RowStatus, hcxVoiceOAMEnable=hcxVoiceOAMEnable, hcxVpnRxNum=hcxVpnRxNum, hcxStuVoiceChannelMacAddr=hcxStuVoiceChannelMacAddr, com21HcxStuVoiceChannelTable=com21HcxStuVoiceChannelTable, hcxStuVoiceChannelExtLpBk=hcxStuVoiceChannelExtLpBk, com21HcxStuVoiceChannelEntry=com21HcxStuVoiceChannelEntry, hcxStuVoiceCallPrevOutCallsBlkd=hcxStuVoiceCallPrevOutCallsBlkd, hcxVpnRxStatsCurrCallsBlkd=hcxVpnRxStatsCurrCallsBlkd, hcxStuVoiceChannelNum=hcxStuVoiceChannelNum, com21HcxVpnRxGroup=com21HcxVpnRxGroup, com21HcxVpnRxStatsGroup=com21HcxVpnRxStatsGroup, hcxStuVoiceChannelVpi=hcxStuVoiceChannelVpi, PYSNMP_MODULE_ID=com21HcxVoice, com21HcxVpnRxStatsEntry=com21HcxVpnRxStatsEntry, hcxStuVoiceCallPrevInCallsAllwd=hcxStuVoiceCallPrevInCallsAllwd, hcxStuVoiceCallStatsMacAddr=hcxStuVoiceCallStatsMacAddr, hcxStuVoiceChannelState=hcxStuVoiceChannelState, hcxVpnRxStatsPrevCallsBlkd=hcxVpnRxStatsPrevCallsBlkd, hcxStuVoiceCallCurrOutCallsBlkd=hcxStuVoiceCallCurrOutCallsBlkd, hcxVpnRxStatsEntryId=hcxVpnRxStatsEntryId, hcxStuVoiceCallCurrInCallsBlkd=hcxStuVoiceCallCurrInCallsBlkd, hcxVoiceChannelMode=hcxVoiceChannelMode, hcxVoiceRTTDelay=hcxVoiceRTTDelay, com21HcxStuVoiceCallStatsTable=com21HcxStuVoiceCallStatsTable, hcxVpnRxMaxActiveCalls=hcxVpnRxMaxActiveCalls, hcxStuVoiceCallPrevInCallsBlkd=hcxStuVoiceCallPrevInCallsBlkd, hcxStuVoiceCallCurrOutCallsAllwd=hcxStuVoiceCallCurrOutCallsAllwd, hcxVoiceFEndEchoCancEnable=hcxVoiceFEndEchoCancEnable, com21HcxVpnRxStatsTable=com21HcxVpnRxStatsTable, hcxStuVoiceCallPrevOutCallsAllwd=hcxStuVoiceCallPrevOutCallsAllwd, com21HcxVpnRxTable=com21HcxVpnRxTable, com21HcxStuVoiceChannelGroup=com21HcxStuVoiceChannelGroup, hcxVpnRxEntryId=hcxVpnRxEntryId, hcxVpnRxStatsClear=hcxVpnRxStatsClear, com21HcxStuVoiceCallStatsEntry=com21HcxStuVoiceCallStatsEntry, hcxStuVoiceCallStatsClear=hcxStuVoiceCallStatsClear, com21HcxVpnRxEntry=com21HcxVpnRxEntry)
GET = 'GET' POST = 'POST' PUT = 'PUT' DELETE = 'DELETE'
#!/usr/bin/env python # Prasanna Sritharan, February 2019 # Adapted from Line Tweetbot by Mark Jordan, https://github.com/mjordan/linetweetbot #from tweepy import * """ Config variables """ # Set up authentication for this Twitter app. oa_access_token = '' oa_access_token_secret = '' consumer_key = '' consumer_secret = '' # Maximum tweet length (280 char) max_tweet_length = 280 # We read and write to the same data file, popping the first # line off it and tweeting that line. If your data file is not # in the same directory as this script, use a full path. data_file_name = 'walkersmanlyexer00walk_0_djvu.txt' # String tacked onto the end of tweets to indicate that the # sentence is comprised of multiple tweets. Be sure to include # the leading space. tweet_separator = ' [...]' """ Functions """ def get_chunks(line): """ Breaks lines up into chunks of a maximum of 140 characters long. However, we need to subtract the length of tweet_separator so we can include it in tweets that contain partial sentences. """ chunk_length = max_tweet_length - len(tweet_separator) line_length = len(line) # If the line fits in one tweet, return it here. if line_length < max_tweet_length: return [line] # In the script's main logic, we loop through this list and tweet # each entry. tweetable_chunks = [] # Break up the current line into tweets, ensuring that each tweet # breaks on a space, not within a word. line_remainder = line while len(line_remainder) > chunk_length: # Get the first chunk_length characters in the line. raw_slice = line[:chunk_length] # Find the position of the last space in the chunk. last_space = raw_slice.rfind(' ') # Remove whatever in the line comes after the last space in # the chunk. trimmed_slice = line[:last_space] # Add the remaining chunk, plus tweet_separator, to the list of tweets. tweet = trimmed_slice.strip() + tweet_separator tweetable_chunks.append(tweet) # Get the string that follows the last space and reinitialize # line with it. line_remainder = line[last_space:] line = line_remainder # When line_remainder is less than chunk_length, add it to # the list of tweets. tweetable_chunks.append(line_remainder.strip()) return tweetable_chunks """ Main script """ if __name__ == '__main__': # Open the data file and put the contents into an array # so we can grab the first line. with open(data_file_name) as f: lines = f.readlines() # If there is no data in the file, don't go any further. if not len(lines): exit # Grab the first line. line = lines.pop(0) tweets = get_chunks(line.rstrip()) # Now that we have removed the first line, save the remaining ones # back to the same file. output_file = open(data_file_name, 'w') for write_line in lines: output_file.write(write_line) output_file.close() # Send the tweet. #twitter = Twitter(auth=OAuth(oa_access_token, oa_access_token_secret, consumer_key, consumer_secret)) for tweet in tweets: print(tweet.strip()) #twitter.statuses.update(status = tweet.strip())
SETTING_FILENAME = 'filename' SETTING_RECENT_FILES = 'recentFiles' SETTING_WIN_SIZE = 'window/size' SETTING_WIN_POSE = 'window/position' SETTING_WIN_GEOMETRY = 'window/geometry' SETTING_LINE_COLOR = 'line/color' SETTING_FILL_COLOR = 'fill/color' SETTING_ADVANCE_MODE = 'advanced' SETTING_WIN_STATE = 'window/state' SETTING_SAVE_DIR = 'savedir' SETTING_LAST_OPEN_DIR = 'lastOpenDir' SETTING_TASK_MODE = 'task_mode' SETTING_LABEL_FONT_SIZE = 'det/label_font_size' COLORMAP = {0: [0, 0, 0], 1: [120, 120, 120], 2: [180, 120, 120], 3: [6, 230, 230], 4: [80, 50, 50], 5: [4, 200, 3], 6: [120, 120, 80], 7: [140, 140, 140], 8: [204, 5, 255], 9: [230, 230, 230], 10: [4, 250, 7], 11: [224, 5, 255], 12: [235, 255, 7], 13: [150, 5, 61], 14: [120, 120, 70], 15: [8, 255, 51], 16: [255, 6, 82], 17: [143, 255, 140], 18: [204, 255, 4], 19: [255, 51, 7], 20: [204, 70, 3], 21: [0, 102, 200], 22: [61, 230, 250], 23: [255, 6, 51], 24: [11, 102, 255], 25: [255, 7, 71], 26: [255, 9, 224], 27: [9, 7, 230], 28: [220, 220, 220], 29: [255, 9, 92], 30: [112, 9, 255], 31: [8, 255, 214], 32: [7, 255, 224], 33: [255, 184, 6], 34: [10, 255, 71], 35: [255, 41, 10], 36: [7, 255, 255], 37: [224, 255, 8], 38: [102, 8, 255], 39: [255, 61, 6], 40: [255, 194, 7], 41: [255, 122, 8], 42: [0, 255, 20], 43: [255, 8, 41], 44: [255, 5, 153], 45: [6, 51, 255], 46: [235, 12, 255], 47: [160, 150, 20], 48: [0, 163, 255], 49: [140, 140, 140], 50: [250, 10, 15], 51: [20, 255, 0], 52: [31, 255, 0], 53: [255, 31, 0], 54: [255, 224, 0], 55: [153, 255, 0], 56: [0, 0, 255], 57: [255, 71, 0], 58: [0, 235, 255], 59: [0, 173, 255], 60: [31, 0, 255], 61: [11, 200, 200], 62: [255, 82, 0], 63: [0, 255, 245], 64: [0, 61, 255], 65: [0, 255, 112], 66: [0, 255, 133], 67: [255, 0, 0], 68: [255, 163, 0], 69: [255, 102, 0], 70: [194, 255, 0], 71: [0, 143, 255], 72: [51, 255, 0], 73: [0, 82, 255], 74: [0, 255, 41], 75: [0, 255, 173], 76: [10, 0, 255], 77: [173, 255, 0], 78: [0, 255, 153], 79: [255, 92, 0], 80: [255, 0, 255], 81: [255, 0, 245], 82: [255, 0, 102], 83: [255, 173, 0], 84: [255, 0, 20], 85: [255, 184, 184], 86: [0, 31, 255], 87: [0, 255, 61], 88: [0, 71, 255], 89: [255, 0, 204], 90: [0, 255, 194], 91: [0, 255, 82], 92: [0, 10, 255], 93: [0, 112, 255], 94: [51, 0, 255], 95: [0, 194, 255], 96: [0, 122, 255], 97: [0, 255, 163], 98: [255, 153, 0], 99: [0, 255, 10], 100: [255, 112, 0], 101: [143, 255, 0], 102: [82, 0, 255], 103: [163, 255, 0], 104: [255, 235, 0], 105: [8, 184, 170], 106: [133, 0, 255], 107: [0, 255, 92], 108: [184, 0, 255], 109: [255, 0, 31], 110: [0, 184, 255], 111: [0, 214, 255], 112: [255, 0, 112], 113: [92, 255, 0], 114: [0, 224, 255], 115: [112, 224, 255], 116: [70, 184, 160], 117: [163, 0, 255], 118: [153, 0, 255], 119: [71, 255, 0], 120: [255, 0, 163], 121: [255, 204, 0], 122: [255, 0, 143], 123: [0, 255, 235], 124: [133, 255, 0], 125: [255, 0, 235], 126: [245, 0, 255], 127: [255, 0, 122], 128: [255, 245, 0], 129: [10, 190, 212], 130: [214, 255, 0], 131: [0, 204, 255], 132: [20, 0, 255], 133: [255, 255, 0], 134: [0, 153, 255], 135: [0, 41, 255], 136: [0, 255, 204], 137: [41, 0, 255], 138: [41, 255, 0], 139: [173, 0, 255], 140: [0, 245, 255], 141: [71, 0, 255], 142: [122, 0, 255], 143: [0, 255, 184], 144: [0, 92, 255], 145: [184, 255, 0], 146: [0, 133, 255], 147: [255, 214, 0], 148: [25, 194, 194], 149: [102, 255, 0], 150: [92, 0, 255], 255: [255, 255, 255]}
# Source and destination file names. test_source = "data/math.txt" test_destination = "math_output_latex.html" # Keyword parameters passed to publish_file. reader_name = "standalone" parser_name = "rst" writer_name = "html" # Settings settings_overrides['math_output'] = 'latex' # local copy of default stylesheet: settings_overrides['stylesheet_path'] = ( 'functional/input/data/html4css1.css')
# -*- coding: utf-8 -*- # Copyright 2019 Cohesity Inc. class BasicClusterInfo(object): """Implementation of the 'BasicClusterInfo' model. Specifies basic information about the Cohesity Cluster. Attributes: authentication_type (AuthenticationTypeEnum): Specifies the authentication scheme for the cluster. 'kPasswordOnly' indicates the normal cohesity authentication type. 'kCertificateOnly' indicates that certificate based authentication has been enabled and the password based authentication has been turned off. 'kPasswordAndCertificate' indicates that both the authenticatio schemes are required. banner_enabled (bool): Specifies if banner is enabled on the cluster. cluster_software_version (string): Specifies the current release of the Cohesity software running on this Cohesity Cluster. cluster_type (ClusterTypeEnum): Specifies the type of Cohesity Cluster. 'kPhysical' indicates the Cohesity Cluster is hosted directly on hardware. 'kVirtualRobo' indicates the Cohesity Cluster is hosted in a VM on a ESXi Host of a VMware vCenter Server using Cohesity's Virtual Edition. 'kMicrosoftCloud' indicates the Cohesity Cluster is hosed in a VM on Microsoft Azure using Cohesity's Cloud Edition. 'kAmazonCloud' indicates the Cohesity Cluster is hosed in a VM on Amazon S3 using Cohesity's Cloud Edition. 'kGoogleCloud' indicates the Cohesity Cluster is hosed in a VM on Google Cloud Platform using Cohesity's Cloud Edition. domains (list of string): Array of Domains. Specifies a list of domains joined to the Cohesity Cluster, including the default LOCAL Cohesity domain used to store the local Cohesity users. idp_configured (bool): Specifies Idp is configured for the Cluster. idp_tenant_exists (bool): Specifies Idp is configured for a Tenant. language_locale (string): Specifies the language and locale for the Cohesity Cluster. mcm_mode (bool): Specifies whether server is running in mcm-mode. If set to true, it is in mcm-mode. mcm_on_prem_mode (bool): Specifies whether server is running in mcm-on-prem-mode. If set to true, it is in mcm on prem mode. This need mcm-mode to be true. multi_tenancy_enabled (bool): Specifies if multi-tenancy is enabled on the cluster. name (string): Specifies the name of the Cohesity Cluster. """ # Create a mapping from Model property names to API property names _names = { "authentication_type":'authenticationType', "banner_enabled":'bannerEnabled', "cluster_software_version":'clusterSoftwareVersion', "cluster_type":'clusterType', "domains":'domains', "idp_configured":'idpConfigured', "idp_tenant_exists":'idpTenantExists', "language_locale":'languageLocale', "mcm_mode":'mcmMode', "mcm_on_prem_mode":'mcmOnPremMode', "multi_tenancy_enabled":'multiTenancyEnabled', "name":'name' } def __init__(self, authentication_type=None, banner_enabled=None, cluster_software_version=None, cluster_type=None, domains=None, idp_configured=None, idp_tenant_exists=None, language_locale=None, mcm_mode=None, mcm_on_prem_mode=None, multi_tenancy_enabled=None, name=None): """Constructor for the BasicClusterInfo class""" # Initialize members of the class self.authentication_type = authentication_type self.banner_enabled = banner_enabled self.cluster_software_version = cluster_software_version self.cluster_type = cluster_type self.domains = domains self.idp_configured = idp_configured self.idp_tenant_exists = idp_tenant_exists self.language_locale = language_locale self.mcm_mode = mcm_mode self.mcm_on_prem_mode = mcm_on_prem_mode self.multi_tenancy_enabled = multi_tenancy_enabled self.name = name @classmethod def from_dictionary(cls, dictionary): """Creates an instance of this model from a dictionary Args: dictionary (dictionary): A dictionary representation of the object as obtained from the deserialization of the server's response. The keys MUST match property names in the API description. Returns: object: An instance of this structure class. """ if dictionary is None: return None # Extract variables from the dictionary authentication_type = dictionary.get('authenticationType') banner_enabled = dictionary.get('bannerEnabled') cluster_software_version = dictionary.get('clusterSoftwareVersion') cluster_type = dictionary.get('clusterType') domains = dictionary.get('domains') idp_configured = dictionary.get('idpConfigured') idp_tenant_exists = dictionary.get('idpTenantExists') language_locale = dictionary.get('languageLocale') mcm_mode = dictionary.get('mcmMode') mcm_on_prem_mode = dictionary.get('mcmOnPremMode') multi_tenancy_enabled = dictionary.get('multiTenancyEnabled') name = dictionary.get('name') # Return an object of this model return cls(authentication_type, banner_enabled, cluster_software_version, cluster_type, domains, idp_configured, idp_tenant_exists, language_locale, mcm_mode, mcm_on_prem_mode, multi_tenancy_enabled, name)
A,B,C= input().split() if (A==B) and (B==C): print('Yes') else: print('No')
""" Utilities for handling English Language rules. """ def add_indefinite_article(phrase): """ Given a word, choose the appropriate indefinite article (e.g., "a" or "an") and add it the front of the word. Matches the original word's capitalization. Args: phrase (str): The phrase to get the appropriate definite article for. Returns: str: Either "an" or "a". """ if phrase[0] in "aeiou": return "an "+phrase elif phrase[0] in "AEIOU": return "An "+phrase elif phrase[0].lower() == phrase[0]: return "a "+phrase else: return "A "+phrase def escape_curly_braces(result): """ Replaces all occurrences of curly braces with double curly braces. """ return result.replace("{", "{{").replace("}", "}}") def safe_repr(obj, short=False, max_length=80) -> str: """ Create a string representation of this object using :py:func:`repr`. If the object doesn't have a repr defined, then falls back onto the default :py:func:`object.__repr__`. Finally, if ``short`` is true, then the string will be truncated to the max_length value. Args: obj (Any): Any object to repr. short (bool): Whether or not to truncate to the max_length. max_length (int): How many maximum characters to use, if short is True. """ try: result = repr(obj) except Exception: result = object.__repr__(obj) if short and len(result) >= max_length: result = result[:max_length] + ' [truncated]...' result = result return result def chomp(text): """ Removes the trailing newline character, if there is one. """ if not text: return text if text[-2:] == '\n\r': return text[:-2] if text[-1] == '\n': return text[:-1] return text
def escreva(msg): print('^' * (len(msg) + 4)) print(f' {msg}') print('^' * (len(msg) + 4)) escreva('oii')
# x and y store the position of the ellipse x = 0 y = 0 # the x and y speed of the ellipse x_speed = 5 y_speed = 5 # the dimensions of the ellipse ellipse_width = 100 ellipse_height = 50 # setup gets called once def setup(): # the global keyword must be used as x and y are getting changed and they are global vars global x, y size(1280, 720) x = width/2 y = height/2 # draw gets called once per frame def draw(): global x, y background(0) noStroke() # draw the ellipse at the x and y position with the specified dimensions ellipse(x, y, ellipse_width, ellipse_height) # check if the ellipse has collided with the boundaries check_edges() # update the ellipse position x += x_speed y += y_speed # this function checks if the ellipse collides with the edges of the screen and reverses the ellipse's direction def check_edges(): global x_speed, y_speed if x + ellipse_width/2 > width or x - ellipse_width/2 < 0: x_speed = x_speed * -1 fill(random(255), random(255), random(255)) if y + ellipse_height/2 > height or y - ellipse_height/2 < 0: y_speed = y_speed * -1 fill(random(255), random(255), random(255))
print('Ingrese:') cadena=input() cadena=cadena.split(' ') terminales=['void','int','float','a','{','}','(',')','return','instrucciones'] no_terminales=['S','TipoDato','Identificador','Letra','RestoLetra','Retorno','$'] tabla = {"S":{"void":["void","Identificador","(",")","{","instrucciones","}"], "int":["TipoDato","Identificador","(",")","{","instrucciones","Retorno","}"], "float":["TipoDato","Identificador","(",")","{","instrucciones","Retorno","}"]}, "TipoDato":{"int":["int"],"float":["float"]}, "Identificador":{"a":["Letra","RestoLetra"]}, "Letra":{"a":["a"]}, "RestoLetra":{"a":["Letra","RestoLetra"],"(":[]}, "Retorno":{"return":["return"]} } reglas=['S','$'] while reglas[0]!='$': regla=reglas[0] lexema=cadena[0] if regla in terminales: if lexema == regla: reglas.pop(0) cadena.pop(0) else: print('ERROR') break else: try: resultado_consulta=tabla[regla][lexema] except: resultado_consulta=None if resultado_consulta != None: reglas.pop(0) if len(resultado_consulta)>0: for rule in reversed(resultado_consulta): reglas.insert(0,rule) else: print('ERROR') break print(reglas)
class Solution: def fractionToDecimal(self, a: int, b: int) -> str: if a % b == 0: return str(a // b) #整除 if a * b > 0: t = '' #处理符号 elif a * b < 0: t = '-' else: return '0' a = abs(a) b = abs(b) c = str(a // b) #整数部分 d = a % b z = {} #余数字典 s = '' #小数部分 k = 0 #小数位置计数 flag = False #循环小数标记 while True: d *= 10 #长除补0 if d not in z: z[d] = k #记录第一次出现该余数的位置 k += 1 else: #余数重复了 flag = True break i = d // b d %= b s += str(i) if d == 0: #除尽 break if flag: #出现循环时 s = s[:z[d]] + '(' + s[z[d]:] + ')' #以重复余数为界分离小数部分 return t + c + '.' + s if __name__ == "__main__": solution = Solution() print(solution.fractionToDecimal(1, 2)) print(solution.fractionToDecimal(2, 1)) print(solution.fractionToDecimal(2, 3))
class Tuple3d(): """docstring for Tuple3D""" x = 0.0 y = 0.0 z = 0.0 def __init__(self, x: float, y: float, z: float): self.x = x self.y = y self.z = z @classmethod def fromTuple3d(self, parent: "Tuple3d") -> "Tuple3d": return Tuple3d(parent.x, parent.y, parent.z) def __str__(self): return "({}, {}, {})".format(self.x, self.y, self.z)
def binary_search(arr: list, left: int, right: int, key: int) -> int: """Iterative Binary Search""" if left > right: return -1 while left <= right: mid = left + (right - left) // 2 if arr[mid] == key: return mid elif arr[mid] < key: left = mid + 1 else: right = mid - 1 return -1 def find_pivot(arr: list, left, right) -> int: while left <= right: mid = left + (right - left) // 2 if arr[mid] > arr[mid + 1]: return mid + 1 elif arr[left] >= arr[mid]: right = mid else: left = mid + 1 return -1 def rotated_binary_search(arr: list, key: int) -> int: left = 0 right = len(arr) - 1 pivot = find_pivot(arr, left, right) if pivot == -1: # Not rotated return binary_search(arr, left, right, key) if arr[pivot] == key: return pivot elif arr[0] <= key: return binary_search(arr, 0, pivot - 1, key) return binary_search(arr, pivot + 1, right, key) def rotated_binary_search_1_pass(arr: list, key: int) -> int: left = 0 right = len(arr) - 1 while left <= right: mid = left + (right - left) // 2 if arr[mid] == key: return mid elif arr[left] <= arr[mid]: if key >= arr[left] and key <= arr[mid]: right = mid - 1 else: left = mid + 1 else: if key >= arr[mid] and key <= arr[right]: left = mid + 1 else: right = mid - 1 return -1 if __name__ == "__main__": ARR = [5, 6, 7, 8, 9, 10, 1, 2, 3] print(f"Search 7 in {ARR}: {rotated_binary_search_1_pass(ARR, 7)}") print(f"Search 3 in {ARR}: {rotated_binary_search_1_pass(ARR, 3)}") print(f"Search 9 in {ARR}: {rotated_binary_search_1_pass(ARR, 9)}") print(f"Search 1 in {ARR}: {rotated_binary_search_1_pass(ARR, 1)}") print(f"Search 0 in {ARR}: {rotated_binary_search_1_pass(ARR, 0)}")
def saddle_points(m): if len(m) == 0: return set() if any(len(m[0]) != len(m[i]) for i in range(1, len(m))): raise ValueError('irregular matrix') rowMaxs = [sorted(r, reverse=True)[0] for r in m] colMins = [sorted(c)[0] for c in [[m[r][c] for r in range(len(m))] for c in range(len(m[0]))]] return set([(x, y) for x in range(len(m)) for y, v in enumerate(m[x]) if rowMaxs[x] == v and colMins[y] == v])
class SurrogateModelSimulator(): """ This class may be used as a surrogate for other simulation models. It has a dictionary that represents the current state and a set of :class:`SimulationMetaModels <MetaModelSimulator>` that may mimic the output functions of the original model. :param params: dict<str, object>, A dictionary mapping parameter names to constant parameter values that never change during simulations. :param init_vals: dict<str, object>, A dictionary mapping parameter names to their initial values that are needed for the first simulation step. :param metamodels: MetaModelSimulator[1..*], A list of transfer functions, that will be evaluated during each simulation step in order to compute new output values. """ def __init__(self, params, init_vals, metamodels): """ TODO :param params: dict<str, object>, A dictionary mapping parameter names to constant parameter values that never change during simulations. :param init_vals: dict<str, object>, A dictionary mapping parameter names to their initial values that are needed for the first simulation step. :param metamodels: MetaModelSimulator[1..*], A list of transfer functions, that will be evaluated during each simulation step in order to compute new output values. """ #self.metamodels = metamodels self.metamodel_simulators = [MetaModelSimulator(m) for m in metamodels] self.state_template = self._create_template_state(init_vals, params, metamodels) # init state self.state = {} self.state.update(self.state_template) self.state.update(init_vals) # update with values of init vars # previous state self.prev_state = None def _create_template_state(self, init_vals, params, transfer_functions): # create a template state template_state = {} # template state: names and values for params! template_state.update(params) # template state: names and None values for vars with init_vals for var_name, value in init_vals.items(): template_state[var_name] = None # template state: names and None values for all other vars other_names = set() for m in transfer_functions: in_names = [name for name in m.input_names] out_names = [name for name in m.response_names] other_names = other_names.union(set(in_names)) other_names = other_names.union(set(out_names)) for var_name in other_names: if not var_name in template_state.keys(): template_state[var_name] = None return template_state def step(self): new_state = {} new_state.update(self.state_template) # compute output for each metamodel #for m in self.metamodels: for m in self.metamodel_simulators: m_out = m.step(self.state) new_state.update(m_out) # update state self.prev_state = self.state self.state = new_state def __getitem__(self, attr_name): return self.state[attr_name] def __setitem__(self, attr_name, value): if attr_name in self.state.keys(): self.state[attr_name] = value else: # TODO: bin mir grad nihct sicher, ob das direkt nach der # ERstellung des Modells nicht zu restriktiv ist raise ValueError('Unknown attribute: %s' % (attr_name)) def print_state(self): print(self.state) def print_prev_state(self): print(self.prev_state) class MetaModelSimulator(): """ This MetaModelSimulator relies on a :class:`memotrainer.metamodels.MetaModel` to compute output values. :param meta_model: :class:`memotrainer.metamodels.MetaModel`, a previously trained meta_model. """ def __init__(self, metamodel): """ :param meta_model: :class:`memotrainer.metamodels.MetaModel` a previously trained meta_model. """ self.metamodel = metamodel def step(self, state): """ Computes new values for one or more output variables. :param state: dict<str, object>, a dictionary that maps property names to values. :return: dict<str, object>, returns a dictionary that maps output names to their predicted values. """ input_names = self.metamodel.input_names response_names = self.metamodel.response_names x = [state[var] for var in input_names] y = self.metamodel.predict([x]) responses = {name: y[name][0] for name in response_names} return responses
# for @security_policy @playready @security_level SECURITY_LEVEL = (150, 2000, 3000) LEVEL_150 = SECURITY_LEVEL[0] # 'LEVEL_150', LEVEL_2000 = SECURITY_LEVEL[1] # 'LEVEL_2000' LEVEL_3000 = SECURITY_LEVEL[2] # 'LEVEL_3000' def check(playready_security_level) -> bool: return playready_security_level in SECURITY_LEVEL
#!/usr/bin/python3 STATE = { 'running' : True, 'paused' : False, 'text' : False, 'explore' : True } TEXT = { 'file' : 'text_settings.txt', 'type' : 'dict', 'data' : { 'int' : { 'type' : 'int', 'data' : { '' : 0 }}, 'float' : { 'type' : 'float', 'data' : { 'spd' : 0.06, 'dly' : 0.0 }}, 'list' : { 'type' : 'list', 'data' : { 'type' : 'int', 'data' : { 'player_clr' : [255, 255, 255, ' '], 'text_clr' : [128, 128, 128, ' '], 'background' : [0, 0, 0, ' '] }}} } } TIME = { 'file' : 'time.txt', 'type' : 'float', 'data' : { 'target_fps' : 20.0, 'fps' : 0.0, 'tick' : 0.0, 'elapsed_time' : 0.0 } } SAVE = { 'file' : 'saves.txt', 'type' : 'str', 'data' : {# 'current_save_slot' : '', '1' : '', '2' : '', '3' : '', '4' : '', '5' : '', '6' : '', '7' : '', '8' : '', '9' : '' } } DISPLAY = { 'file' : 'display.txt', 'type' : 'int', 'data' : { 'brightness' : 3, 'width' : 80, 'height' : 24, 'x' : 16, 'y' : 16 } } SPRITES = [] screen_buffer = {} SAVE_DATA = [SAVE, TEXT, DISPLAY]
# This sample tests for/else loops for cases where variables # are potentially unbound. # For with no break and no else. def func1(): for x in []: a = 0 # This should generate a "potentially unbound" error. print(a) # This should generate a "potentially unbound" error. print(x) # For with no break and else. def func2(): for x in []: a = 0 else: b = 0 # This should generate a "potentially unbound" error. print(a) print(b) # This should generate a "potentially unbound" error. print(x) # For with break and else. def func3(): for x in []: a = 0 break else: b = 0 # This should generate a "potentially unbound" error. print(a) # This should generate a "potentially unbound" error. print(b) # This should generate a "potentially unbound" error. print(x)
class ConstraintError(Exception): pass class ValidationError(Exception): pass
# Definition for a binary tree node. # class TreeNode: # def __init__(self, val=0, left=None, right=None): # self.val = val # self.left = left # self.right = right class Solution: def search(self, node): if not node: return None if not node.left and not node.right: return node ret = self.search(node.left) if node.left: node.left.right = node node.left.left = node.right node.left = None node.right = None return ret def upsideDownBinaryTree(self, root: Optional[TreeNode]) -> Optional[TreeNode]: return self.search(root)
# -*- coding: utf-8 -*- # Part of Odoo. See LICENSE file for full copyright and licensing details. { 'name': 'WMS Accounting', 'version': '1.1', 'summary': 'Inventory, Logistic, Valuation, Accounting', 'description': """ WMS Accounting module ====================== This module makes the link between the 'stock' and 'account' modules and allows you to create accounting entries to value your stock movements Key Features ------------ * Stock Valuation (periodical or automatic) * Invoice from Picking Dashboard / Reports for Warehouse Management includes: ------------------------------------------------------ * Stock Inventory Value at given date (support dates in the past) """, 'depends': ['stock', 'account'], 'category': 'Hidden', 'sequence': 16, 'data': [ 'security/stock_account_security.xml', 'security/ir.model.access.csv', 'data/stock_account_data.xml', 'views/stock_account_views.xml', 'views/res_config_settings_views.xml', 'data/product_data.xml', 'views/product_views.xml', 'views/stock_quant_views.xml', 'views/stock_valuation_layer_views.xml', 'wizard/stock_valuation_layer_revaluation_views.xml', 'report/report_stock_forecasted.xml', ], 'test': [ ], 'installable': True, 'auto_install': True, 'post_init_hook': '_configure_journals', 'license': 'LGPL-3', }
EXTRACTORS = { "dlib-hog-face5": {"type": "dlib", "detector": "hog", "keypoints": "face5",}, "dlib-hog-face68": {"type": "dlib", "detector": "hog", "keypoints": "face68",}, "dlib-cnn-face5": {"type": "dlib", "detector": "cnn", "keypoints": "face5",}, "dlib-cnn-face68": {"type": "dlib", "detector": "cnn", "keypoints": "face68",}, "openpose-face68": {"type": "openpose", "keypoints": "face68",}, "openpose-face3": {"type": "openpose", "keypoints": "face3",}, "openpose-face5": {"type": "openpose", "keypoints": "face5",}, }
algorithm='ddpg' env_class='Gym' model_class='LowDim2x' environment = { 'name': 'BipedalWalker-v2' } model = { 'state_size': 24, 'action_size': 4 } agent = { 'action_size': 4, 'evaluation_only': True } train = { 'n_episodes': 10000, 'max_t': 2000, 'solve_score': 300.0 }
# Category description for the widget registry NAME = "Wofry ESRF Extension" DESCRIPTION = "Widgets for Wofry" BACKGROUND = "#ada8a8" ICON = "icons/esrf2.png" PRIORITY = 14
# Enter your code here. Read input from STDIN. Print output to STDOUT def isprime(x): if x == 1: return False elif x == 2: return True else: if x % 2 == 0: return False else: bound = int(x**0.5) for counter in range(3, bound+1, 2): if x % counter == 0: return False return True size = int(input()) for _ in range(size): num = int(input()) condition = isprime(num) if condition: print("Prime") else: print("Not prime")
# Let's use christmas date as an example # Who doesn't like christmas? :) # 2021-12-25 YYYY_MM_DD = "%Y-%m-%d" # 25-12-2021 DD_MM_YYYY = "%d-%m-%Y" # 12-25-2021 MM_DD_YYYY = "%m-%d-%Y" # 12-2021 MM_YYYY = "%m-%Y" # 2021-12 YYYY_MM = "%Y-%m" # December 25, 2021 MONTH_SPACE_DD_COMA_SPACE_YYYY = "%B %d, %Y"
NAME = 'drf-querystringfilter' VERSION = __version__ = "2.1.0" __author__ = 'sax'
class OlaMundo(): def __init__(self): self.message = "open source" def print_message(self): print("Olá mundão %s" % self.message) if __name__ == "__main__": olaMundo = OlaMundo() olaMundo.print_message()
# -*- coding: utf-8 -*- # @Author : LG """ 执行用时:36 ms, 在所有 Python3 提交中击败了87.93% 的用户 内存消耗:13.7 MB, 在所有 Python3 提交中击败了55.99% 的用户 解题思路: 动态规划 由于不能挨着偷取,所以 当前偷取的值依赖于上上一个 dp[i] == dp[i-2]+nums[i] 当前偷取的最大值为 dp[i] == max(dp[i-2]+nums[i], dp[i-1]) """ class Solution: def rob(self, nums: List[int]) -> int: n = len(nums) if n == 0: return 0 if n < 3: return max(nums) dp = [[] for _ in range(n)] dp[0] = nums[0] dp[1] = max(nums[:2]) for i in range(2, n): dp[i] = max(dp[i-2] + nums[i], dp[i-1]) return max(dp)
def main(): while True: num = int(input()) print(num ** 2, flush = True) if num < 0: return if __name__ == '__main__': main()
''' The MIT License (MIT) Copyright (c) 2016 WavyCloud Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ''' def can_paginate(operation_name=None): """ Check if an operation can be paginated. :type operation_name: string :param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo'). """ pass def describe_accelerator_offerings(locationType=None, acceleratorTypes=None): """ Describes the locations in which a given accelerator type or set of types is present in a given region. See also: AWS API Documentation Exceptions :example: response = client.describe_accelerator_offerings( locationType='region'|'availability-zone'|'availability-zone-id', acceleratorTypes=[ 'string', ] ) :type locationType: string :param locationType: [REQUIRED]\nThe location type that you want to describe accelerator type offerings for. It can assume the following values: region: will return the accelerator type offering at the regional level. availability-zone: will return the accelerator type offering at the availability zone level. availability-zone-id: will return the accelerator type offering at the availability zone level returning the availability zone id.\n :type acceleratorTypes: list :param acceleratorTypes: The list of accelerator types to describe.\n\n(string) --\n\n :rtype: dict ReturnsResponse Syntax { 'acceleratorTypeOfferings': [ { 'acceleratorType': 'string', 'locationType': 'region'|'availability-zone'|'availability-zone-id', 'location': 'string' }, ] } Response Structure (dict) -- acceleratorTypeOfferings (list) -- The list of accelerator type offerings for a specific location. (dict) -- The offering for an Elastic Inference Accelerator type. acceleratorType (string) -- The name of the Elastic Inference Accelerator type. locationType (string) -- The location type for the offering. It can assume the following values: region: defines that the offering is at the regional level. availability-zone: defines that the offering is at the availability zone level. availability-zone-id: defines that the offering is at the availability zone level, defined by the availability zone id. location (string) -- The location for the offering. It will return either the region, availability zone or availability zone id for the offering depending on the locationType value. Exceptions ElasticInference.Client.exceptions.BadRequestException ElasticInference.Client.exceptions.ResourceNotFoundException ElasticInference.Client.exceptions.InternalServerException :return: { 'acceleratorTypeOfferings': [ { 'acceleratorType': 'string', 'locationType': 'region'|'availability-zone'|'availability-zone-id', 'location': 'string' }, ] } :returns: ElasticInference.Client.exceptions.BadRequestException ElasticInference.Client.exceptions.ResourceNotFoundException ElasticInference.Client.exceptions.InternalServerException """ pass def describe_accelerator_types(): """ Describes the accelerator types available in a given region, as well as their characteristics, such as memory and throughput. See also: AWS API Documentation Exceptions :example: response = client.describe_accelerator_types() :rtype: dict ReturnsResponse Syntax{ 'acceleratorTypes': [ { 'acceleratorTypeName': 'string', 'memoryInfo': { 'sizeInMiB': 123 }, 'throughputInfo': [ { 'key': 'string', 'value': 123 }, ] }, ] } Response Structure (dict) -- acceleratorTypes (list) --The available accelerator types. (dict) --The details of an Elastic Inference Accelerator type. acceleratorTypeName (string) --The name of the Elastic Inference Accelerator type. memoryInfo (dict) --The memory information of the Elastic Inference Accelerator type. sizeInMiB (integer) --The size in mebibytes of the Elastic Inference Accelerator type. throughputInfo (list) --The throughput information of the Elastic Inference Accelerator type. (dict) --A throughput entry for an Elastic Inference Accelerator type. key (string) --The throughput value of the Elastic Inference Accelerator type. It can assume the following values: TFLOPS16bit: the throughput expressed in 16bit TeraFLOPS. TFLOPS32bit: the throughput expressed in 32bit TeraFLOPS. value (integer) --The throughput value of the Elastic Inference Accelerator type. Exceptions ElasticInference.Client.exceptions.InternalServerException :return: { 'acceleratorTypes': [ { 'acceleratorTypeName': 'string', 'memoryInfo': { 'sizeInMiB': 123 }, 'throughputInfo': [ { 'key': 'string', 'value': 123 }, ] }, ] } """ pass def describe_accelerators(acceleratorIds=None, filters=None, maxResults=None, nextToken=None): """ Describes information over a provided set of accelerators belonging to an account. See also: AWS API Documentation Exceptions :example: response = client.describe_accelerators( acceleratorIds=[ 'string', ], filters=[ { 'name': 'string', 'values': [ 'string', ] }, ], maxResults=123, nextToken='string' ) :type acceleratorIds: list :param acceleratorIds: The IDs of the accelerators to describe.\n\n(string) --\n\n :type filters: list :param filters: One or more filters. Filter names and values are case-sensitive. Valid filter names are: accelerator-types: can provide a list of accelerator type names to filter for. instance-id: can provide a list of EC2 instance ids to filter for.\n\n(dict) --A filter expression for the Elastic Inference Accelerator list.\n\nname (string) --The filter name for the Elastic Inference Accelerator list. It can assume the following values: accelerator-type: the type of Elastic Inference Accelerator to filter for. instance-id: an EC2 instance id to filter for.\n\nvalues (list) --The values for the filter of the Elastic Inference Accelerator list.\n\n(string) --\n\n\n\n\n\n :type maxResults: integer :param maxResults: The total number of items to return in the command\'s output. If the total number of items available is more than the value specified, a NextToken is provided in the command\'s output. To resume pagination, provide the NextToken value in the starting-token argument of a subsequent command. Do not use the NextToken response element directly outside of the AWS CLI. :type nextToken: string :param nextToken: A token to specify where to start paginating. This is the NextToken from a previously truncated response. :rtype: dict ReturnsResponse Syntax { 'acceleratorSet': [ { 'acceleratorHealth': { 'status': 'string' }, 'acceleratorType': 'string', 'acceleratorId': 'string', 'availabilityZone': 'string', 'attachedResource': 'string' }, ], 'nextToken': 'string' } Response Structure (dict) -- acceleratorSet (list) -- The details of the Elastic Inference Accelerators. (dict) -- The details of an Elastic Inference Accelerator. acceleratorHealth (dict) -- The health of the Elastic Inference Accelerator. status (string) -- The health status of the Elastic Inference Accelerator. acceleratorType (string) -- The type of the Elastic Inference Accelerator. acceleratorId (string) -- The ID of the Elastic Inference Accelerator. availabilityZone (string) -- The availability zone where the Elastic Inference Accelerator is present. attachedResource (string) -- The ARN of the resource that the Elastic Inference Accelerator is attached to. nextToken (string) -- A token to specify where to start paginating. This is the NextToken from a previously truncated response. Exceptions ElasticInference.Client.exceptions.BadRequestException ElasticInference.Client.exceptions.ResourceNotFoundException ElasticInference.Client.exceptions.InternalServerException :return: { 'acceleratorSet': [ { 'acceleratorHealth': { 'status': 'string' }, 'acceleratorType': 'string', 'acceleratorId': 'string', 'availabilityZone': 'string', 'attachedResource': 'string' }, ], 'nextToken': 'string' } :returns: ElasticInference.Client.exceptions.BadRequestException ElasticInference.Client.exceptions.ResourceNotFoundException ElasticInference.Client.exceptions.InternalServerException """ pass def generate_presigned_url(ClientMethod=None, Params=None, ExpiresIn=None, HttpMethod=None): """ Generate a presigned url given a client, its method, and arguments :type ClientMethod: string :param ClientMethod: The client method to presign for :type Params: dict :param Params: The parameters normally passed to\nClientMethod. :type ExpiresIn: int :param ExpiresIn: The number of seconds the presigned url is valid\nfor. By default it expires in an hour (3600 seconds) :type HttpMethod: string :param HttpMethod: The http method to use on the generated url. By\ndefault, the http method is whatever is used in the method\'s model. """ pass def get_paginator(operation_name=None): """ Create a paginator for an operation. :type operation_name: string :param operation_name: The operation name. This is the same name\nas the method name on the client. For example, if the\nmethod name is create_foo, and you\'d normally invoke the\noperation as client.create_foo(**kwargs), if the\ncreate_foo operation can be paginated, you can use the\ncall client.get_paginator('create_foo'). :rtype: L{botocore.paginate.Paginator} ReturnsA paginator object. """ pass def get_waiter(waiter_name=None): """ Returns an object that can wait for some condition. :type waiter_name: str :param waiter_name: The name of the waiter to get. See the waiters\nsection of the service docs for a list of available waiters. :rtype: botocore.waiter.Waiter """ pass def list_tags_for_resource(resourceArn=None): """ Returns all tags of an Elastic Inference Accelerator. See also: AWS API Documentation Exceptions :example: response = client.list_tags_for_resource( resourceArn='string' ) :type resourceArn: string :param resourceArn: [REQUIRED]\nThe ARN of the Elastic Inference Accelerator to list the tags for.\n :rtype: dict ReturnsResponse Syntax{ 'tags': { 'string': 'string' } } Response Structure (dict) -- tags (dict) --The tags of the Elastic Inference Accelerator. (string) -- (string) -- Exceptions ElasticInference.Client.exceptions.BadRequestException ElasticInference.Client.exceptions.ResourceNotFoundException ElasticInference.Client.exceptions.InternalServerException :return: { 'tags': { 'string': 'string' } } :returns: ElasticInference.Client.exceptions.BadRequestException ElasticInference.Client.exceptions.ResourceNotFoundException ElasticInference.Client.exceptions.InternalServerException """ pass def tag_resource(resourceArn=None, tags=None): """ Adds the specified tags to an Elastic Inference Accelerator. See also: AWS API Documentation Exceptions :example: response = client.tag_resource( resourceArn='string', tags={ 'string': 'string' } ) :type resourceArn: string :param resourceArn: [REQUIRED]\nThe ARN of the Elastic Inference Accelerator to tag.\n :type tags: dict :param tags: [REQUIRED]\nThe tags to add to the Elastic Inference Accelerator.\n\n(string) --\n(string) --\n\n\n\n :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions ElasticInference.Client.exceptions.BadRequestException ElasticInference.Client.exceptions.ResourceNotFoundException ElasticInference.Client.exceptions.InternalServerException :return: {} :returns: (dict) -- """ pass def untag_resource(resourceArn=None, tagKeys=None): """ Removes the specified tags from an Elastic Inference Accelerator. See also: AWS API Documentation Exceptions :example: response = client.untag_resource( resourceArn='string', tagKeys=[ 'string', ] ) :type resourceArn: string :param resourceArn: [REQUIRED]\nThe ARN of the Elastic Inference Accelerator to untag.\n :type tagKeys: list :param tagKeys: [REQUIRED]\nThe list of tags to remove from the Elastic Inference Accelerator.\n\n(string) --\n\n :rtype: dict ReturnsResponse Syntax {} Response Structure (dict) -- Exceptions ElasticInference.Client.exceptions.BadRequestException ElasticInference.Client.exceptions.ResourceNotFoundException ElasticInference.Client.exceptions.InternalServerException :return: {} :returns: (dict) -- """ pass
class Motor: def __init__(self, cilindros, tipo='gasolina') -> None: self.cilindros = cilindros self.tipo = tipo self.__temperatura = 0 def inyecta_gasolina(self, cantidad): pass
#encoding:utf-8 subreddit = 'gtaonline' t_channel = '@redditgtaonline' def send_post(submission, r2t): return r2t.send_simple(submission)
filename = 'programming.txt' with open(filename, 'a') as file_object: file_object.write("I also love finding meaning in large datasets.\n") file_object.write("I love creating apps that can run in a browser.\n")
# Marcelo Campos de Medeiros # ADS UNIFIP 2020.1 # 3 Lista # Patos-PB maio/2020 ''' Faça um programa que leia as notas referentes às duas avaliações de um aluno. Calcule e imprima a média semestral. Faça com que o algoritmo só aceite notas válidas (uma nota válida deve pertencer ao intervalo [0,10]). Cada nota deve ser validada separadamente. Entrada A entrada contém vários valores reais, positivos ou negativos. O programa deve ser encerrado quando forem lidas duas notas válidas. Saída Se uma nota inválida for lida, deve ser impressa a mensagem "nota invalida". Quando duas notas válidas forem lidas, deve ser impressa a mensagem "media = " seguido do valor do cálculo. O valor deve ser apresentado com duas casas após o ponto decimal. Exemplo de Entrada Exemplo de Saída -3.5 nota invalida 3.5 nota invalida 11.0 media = 6.75 10.0 ''' #contador de n° de notas i = 0 # somatorio de nota1 e nota2 med = 0 # laço while p as duas notas usei while pois pode ser escritas notas invalidas q não entraram no calculo da média while i < 2: nota = float(input()) # condição para nota ser valida if nota >= 0 and nota <= 10: i = i + 1 med = med + nota # nota invalida e print informando if nota < 0 or nota > 10: print('nota invalida') # media med = med / 2 print('media = {:.2f}'.format(med))
# You are given a string S. Find the lexicographically smallest string S′ obtained by permuting the characters of S. # Here, for different two strings s=s1​s2​…sn​ and t=t1​t2​…tm​, s<t holds lexicographically when one of the conditions below is satisfied. # There is an integer i (1≤i≤min(n,m)) such that si​<ti​ and sj​=tj​ for all integersj (1≤j<i). # si​=ti​ for all integers i (1≤i≤min(n,m)), and n<m. S = input() #find the lexicographically smallest string # for i in range(len(S)): # for j in range(i+1, len(S)): # if(S[i] > S[j]): # S = S[:i] + S[j] + S[i+1:j] + S[i] + S[j+1:] # break # print(S) SS = sorted(S) SS = "".join(SS) print(SS)
class Model(object): def predict(self, X, feature_names): print(X) return X
def dErrors(X, y, y_hat): DErrorsDx1 = [X[i][0]*(y[i]-y_hat[i]) for i in range(len(y))] DErrorsDx2 = [X[i][1]*(y[i]-y_hat[i]) for i in range(len(y))] DErrorsDb = [y[i]-y_hat[i] for i in range(len(y))] return DErrorsDx1, DErrorsDx2, DErrorsDb def gradientDescentStep(X, y, W, b, learn_rate = 0.01): y_hat = prediction(X,W,b) errors = error_vector(y, y_hat) derivErrors = dErrors(X, y, y_hat) W[0] += sum(derivErrors[0])*learn_rate W[1] += sum(derivErrors[1])*learn_rate b += sum(derivErrors[2])*learn_rate return W, b, sum(errors)
# Ler nome e preço de vários produtos, perguntar se quer continuar # Mostrar depois: Total gasto na compra, Qts prod custaram mais de 1000 e qual o nome do prod mais barato print('==='*10) print('DELLinux Store'.center(30)) print('==='*10) tot = tot1000 = menor = cont = 0 barato = ' ' while True: nome = str(input('Produto: ')).strip().upper() valor = float(input('Preço R$')) cont += 1 tot += valor if valor > 1000: tot1000 += 1 '''if cont == 1: menor = valor barato = nome else: if valor < menor: menor = valor barato = nome''' # Pode ser otimizado, pois l16, l17 = l20, l21 # O if inicial pode ser escrito como: if cont == 1 or valor < menor (l24 - l26): if cont == 1 or valor < menor: menor = valor barato = nome resp = ' ' while resp not in 'SN': resp = str(input('Mais algum produto? [S/N] ')).strip().upper()[0] if resp == 'N': # Esse é o if do 'while True' lá do início break print(f'''Valor total da compra: R${tot:.2f} Quantidade de produtos que custam mais de R$1000.00: {tot1000} Produto mais barato: {barato}, que custa R${menor:.2f}''')
""" @Project : DuReader @Module : __init__.py.py @Author : Deco [deco@cubee.com] @Created : 8/13/18 3:43 PM @Desc : """
class Video: def __init__(self, id: str, date: str, title: str): self.id = id self.date = date self.title = title def __members(self): return ( self.id, self.date, self.title, ) def __eq__(self, other) -> bool: if type(other) is type(self): return self.__members() == other.__members() return False def __hash__(self) -> int: return hash(self.__members()) def __repr__(self) -> str: return str(self.__members())
class LogLevels: def __init__(self): self.__Load_Dict() def __Load_Dict(self): lines = [] with open("LogLevels.csv", 'r') as log_level_file: for each_line in log_level_file: each_line = each_line.replace('\n', '') lines.append(each_line) self.dictionary = {} for each_line in lines: cells = each_line.split(';') log_id = int(cells[0]) log_string = cells[1] self.dictionary[log_id] = log_string
while True: line = input() if line == "Stop": break print(line)
# # Karl Keusgen # 2020-09-23 # UseJsonConfig = False
def green_bold(payload): """ Format payload as green. """ return '\x1b[32;1m{0}\x1b[39;22m'.format(payload) def yellow_bold(payload): """ Format payload as yellow. """ return '\x1b[33;1m{0}\x1b[39;22m'.format(payload) def red_bold(payload): """ Format payload as red. """ return '\x1b[31;1m{0}\x1b[39;22m'.format(payload)
class SimpleLinkedListNode: value: None next_node: None def __init__(self, value, next_node = None): self.value = value self.next_node = next_node def set_next_node(self, next_node): self.next_node = next_node def __repr__(self): return f'{self.value}' def __str__(self): return f'{self.value}' class SimpleLinkedList: pt_begin = None def __init__(self): pass # Allow call len(SimpleLinkedList) def __len__(self): aux = 0 node_aux = self.pt_begin while node_aux != None: aux += 1 node_aux = node_aux.next_node return aux def is_empty(self): return self.pt_begin == None def push_back(self, value): node_to_insert = SimpleLinkedListNode(value) if (self.is_empty()): self.pt_begin = node_to_insert return node_to_insert node = self.pt_begin while (node.next_node != None): node = node.next_node node.set_next_node(node_to_insert) return node_to_insert def push_front(self, value): node_to_insert = SimpleLinkedListNode(value) if (self.is_empty()): return self.insert_in_begin(node_to_insert) begin_node = self.pt_begin node_to_insert.set_next_node(begin_node) self.pt_begin = node_to_insert return node_to_insert def remove_node(self, value): if (self.is_empty()): return None # if node to remove is first and is the only node if (self.pt_begin.value == value and self.pt_begin.next_node == None): node_to_return = self.pt_begin self.pt_begin = None return node_to_return # if node to remove is first, but is not the only node if (self.pt_begin.value == value): node_to_return = self.pt_begin self.pt_begin = node_to_return.next_node return node_to_return node_to_return = None current = self.pt_begin while (current.next_node != None): if (current.next_node.value == value): node_to_return = current.next_node node_to_insert = current.next_node.next_node current.next_node = node_to_insert break current = current.next_node return node_to_return def find_node(self, value): if (self.is_empty()): return None node = self.pt_begin node_to_return = None while (node.next_node != None): if (node.value == value): node_to_return = node break node = node.next_node if (node.value == value): node_to_return = node return node_to_return def insert_in_begin(self, node_to_insert): self.pt_begin = node_to_insert return node_to_insert def to_native_list(self): if (self.is_empty()): return [] native_list = [] node = self.pt_begin while (node.next_node != None): native_list.append(node) node = node.next_node native_list.append(node) return native_list def search_element(linked_list: SimpleLinkedList, value: int): print(f'\nProcurando pelo número {value}') founded = linked_list.find_node(value=value) if (founded != None): print('Elemento encontrado') else: print('Elemento não encontrado') def main(): linked_list = SimpleLinkedList() print(f'No início a lista está com {len(linked_list)} elementos') print('Inserindo 1') linked_list.push_back(1) print('Inserindo 3') linked_list.push_back(3) print('Inserindo 5') linked_list.push_back(5) print('\nLista ao final dos inserts elementos') print(linked_list.to_native_list()) print(f'\nAgora a lista possui {len(linked_list)}') search_element(linked_list=linked_list, value=5) search_element(linked_list=linked_list, value=10) print('\nRemovendo o elemento 1') linked_list.remove_node(value=1) print('\nLista ao final do remove') print(linked_list.to_native_list()) main()
# Definition for a binary tree node. class TreeNode: def __init__(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def sumOfLeftLeaves(self, root: Optional[TreeNode]) -> int: def s(node, isLeft=True): if not node: return 0 if not node.left and not node.right and isLeft: return node.val return s(node.left) + s(node.right, False) return s(root, False)
# -*- coding: utf-8 -*- """ The print proxy is a mechanism to provide fully variable pdf print creation process inside of the oereb server with minimal impact on the behavior of it. The idea is to bind an external web accessible print service to the oereb server. The extract is generated by the oereb server the result is sent to the print instance and the created pdf is received and returned to the client. This is a proxy/passtrough mechanism. """
#Crie um programa que leia duas notas de um aluno calcule sua média, mostrando no final, de acordo #com sua média atingida: #- Média abaixo de 5.0 REPROVADO #- Média entre 5.0 e 6.9 RECUPERAÇÃO #- Média 7.0 ou superior APROVADO n1 = float(input('Digite sua primeira nota!')) n2 = float(input('Digite sua segunda nota!')) media = (n1+n2)/2 if media <= 5: print('\033[31mVocê está REPROVADO com média {}!!!\033[31m'.format(media)) elif 7 > media >= 5: print('\033[33mVocê está em recuperação gafanhoto com média {:.1f}!!!\033[33m'.format(media)) elif media >= 7: print('\033[34mParabéns gafanhoto você esta aprovado com média {}!!!\033[34m'.format(media))
# -*- coding: utf-8 -*- { 'name': 'InfoSaône / Module Odoo de gestion des lots pour le contrôle qualité', 'version': '1.0', 'category': 'InfoSaône', 'description': """ Gestion du contrôle qualité """, 'author': 'Tony GALMICHE / Asma BOUSSELMI', 'maintainer': 'InfoSaone', 'website': 'http://www.infosaone.com', 'depends': ['base', 'stock'], 'data': ['security/is_gestion_lot_security.xml', 'is_stock_view.xml', 'wizard/is_gestion_lot_view.xml', 'wizard/is_stock_mise_rebut_view.xml', 'report/report_stock_bloquer_lot.xml', 'report/report_stock_debloquer_lot.xml', 'report/report_stock_change_location_lot.xml', 'report/report_stock_rebut_lot.xml', ], 'demo': [], 'test': [], 'installable': True, 'auto_install': False, 'application': True, } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
def main(): for tc in range(int(input())): N, ans = int(input()), -1 for a in range(1,N//2): b = (N*(2*a-N))//(2*(a-N)) c = N-a-b if a+b+c==N and a*a+b*b==c*c: ans = max(ans,a*b*c) print(ans) if __name__=="__main__": main()
# %% [8. String to Integer (atoi)](https://leetcode.com/problems/string-to-integer-atoi/) class Solution: def myAtoi(self, s: str) -> int: try: s = re.match(r"\+?-?[0-9]+", s.strip()).group() return min(2147483647, max(-2147483648, int(s))) except: return 0
# Succesfull HTTP_200_OK: int = 200 # Client Error HTTP_400_BAD_REQUEST: int = 400 HTTP_401_UNAUTHORIZED: int = 401 HTTP_403_FORBIDDEN: int = 403 HTTP_404_NOT_FOUND: int = 404 HTTP_405_METHOD_NOT_ALLOWED: int = 405 HTTP_409_CONFLICT: int = 409 HTTP_428_PRECONDITION_REQUIRED: int = 428 # Server Error HTTP_500_INTERNAL_SERVER_ERROR: int = 500 HTTP_501_NOT_IMPLEMENTED: int = 501 HTTP_502_BAD_GATEWAY: int = 502 HTTP_503_SERVICE_UNAVAILIBLE: int = 503
""" R 1.10 --------------------------------- Problem Statement : What parameters should be sent to the range constructor, to produce a range with values 8, 6, 4, 2, 0, −2, −4, −6, −8? Author : Saurabh """ print([x for x in range(8, -10, -2)])
c, link = emk.module("c", "link") link.depdirs += [ "$:proj:$" ]
adjoining = [(1, 0), (-1, 0), (0, 1), (0, -1)] def compute_max_square(tiles): def is_square(x, y, m): for dx in range(m): for dy in range(m): uid = (x + dx, y + dy) if uid not in tiles: return False return True max_square = 0 for (x, y) in tiles: while is_square(x, y, max_square + 1): max_square += 1 return max_square def compute_zones(tiles): tiles = set(tiles) clusters = [] while True: if len(tiles) == 0: break cluster = {tiles.pop()} boundary = cluster.copy() while True: new_c = set() for tile in boundary: x, y = tile for dx, dy in adjoining: if (x + dx, y + dy) in tiles: new_c.add((x + dx, y + dy)) if new_c: cluster |= new_c boundary = new_c tiles -= new_c else: break clusters.append(cluster) clusters.sort(key=len, reverse=True) return clusters def compute_cluster(tiles): cluster_tiles = set() for (x, y) in tiles: for dx, dy in adjoining: if (x + dx, y + dy) not in tiles: break else: cluster_tiles.add((x, y)) if len(cluster_tiles) == 0: return 0 zones = compute_zones(cluster_tiles) return max([len(c) for c in zones]) def compute_clusters(tiles): if isinstance(list(tiles)[0], str): tiles = set([tuple([int(i) for i in t.split('_')]) for t in tiles]) tiles_d = {} for (x, y) in tiles: if x not in tiles_d: tiles_d[x] = set() tiles_d[x].add(y) cluster_tiles = set() for (x, y) in tiles: for dx, dy in adjoining: if x + dx not in tiles_d: break if y + dy not in tiles_d[x + dx]: break else: cluster_tiles.add((x, y)) return compute_zones(cluster_tiles) def compute_max_cluster(tiles): zones = compute_clusters(tiles) return zones[0] def expand_cluster(cluster, limit): expansion = set(cluster) frontier = set(cluster) for n in range(limit): new_frontier = set() for x, y in frontier: for dx, dy in adjoining: if (x + dx, y + dy) not in expansion: new_frontier.add((x + dx, y + dy)) expansion.add((x + dx, y + dy)) frontier = new_frontier return expansion
apis = { 'PhishTank': [ { 'name': 'PT_01', 'url': 'http://checkurl.phishtank.com/checkurl/', 'api_key': '' } ], 'GoogleSafeBrowsing': [ { 'name': 'GSB_01', 'url': 'https://safebrowsing.googleapis.com/v4/threatMatches:find', 'api_key': '', 'client': { 'clientId': 'URL Checker', 'clientVersion': '1.0' } } ], 'URLScan': [ { 'name': 'US_01', 'url': 'https://urlscan.io/api/v1/scan/', 'api_key': '' } ], 'OXT': [ { 'name': 'OXT_01', 'url': 'https://otx.alienvault.com/api/v1/', 'api_key': '' } ], # https://developer.greynoise.io/docs/authentication 'GreyNoise': [ { 'name': 'GN_01', 'url': 'https://api.greynoise.io/v2/noise/context/', 'api_key': '' } ], # https://docs.securitytrails.com/docs 'SecurityTrials': [ { 'name': 'ST_01', 'url': 'https://api.securitytrails.com/v1/domain/', 'api_key': '' } ], # https://www.mcafee.com/enterprise/en-us/solutions/mvision/developer-portal.html 'McAfeeMVision': [ { 'name': 'MAMV_01', 'url': 'https://api.securitytrails.com/v1/domain/', 'api_key': '' } ], # https://botscout.com/api.htm 'BotScout': [ { 'name': 'BS_01', 'url': 'http://botscout.com/test/', 'api_key': '' } ], # https://threatintelligenceplatform.com/threat-intelligence-api-docs/domain-malware-check-api 'ThreatIntelligencePlatform': [ { 'name': 'TIP_01', 'url': 'https://api.threatintelligenceplatform.com/v1/', 'api_key': '' } ], 'RiskIQ': [ { 'name': 'RIQ_01', 'url': 'https://otx.alienvault.com/api/v1/', 'user': '', 'api_key': '' } ], # https://www.brightcloud.com/web-service/api-documentation 'BrightCloud': [ { 'name': 'BC_01', 'url': 'https://otx.alienvault.com/api/v1/', 'user': '', 'api_key': '' } ], # https://docs.abuseipdb.com/ 'AbouseIPDB': [ { 'name': 'AIP_01', 'url': 'https://docs.abuseipdb.com/', 'api_key': '' } ], # https://www.hybrid-analysis.com/docs/api/v2#/Quick%20Scan/post_quick_scan_url 'HybridAnalysis': [ { 'name': 'HA_01', 'url': 'https://docs.abuseipdb.com/', 'api_key': '' } ], ## # 'AWIS': [ { 'name': 'RIQ_01', 'url': 'https://otx.alienvault.com/api/v1/', 'user': '', 'api_key': '' } ] }
class WorkflowStatus: ACTIVE = 'ACTIVE' COMPLETED = 'COMPLETED' FAILED = 'FAILED' CANCELED = 'CANCELED' TERMINATED = 'TERMINATED' CONTINUED_AS_NEW = 'CONTINUED_AS_NEW' TIMED_OUT = 'TIMED_OUT' class RegistrationStatus: REGISTERED = 'REGISTERED' DEPRECATED = 'DEPRECATED'
# circular queue (원형 큐) # - 1. 크기가 정해져 있는 배열(list) # - 2. head, tail # - 3 - 1. 비어있는 큐를 어떻게 표현할 것이냐? # - 3 - 2. Out of Index 를 어떻게 할 것이냐? # head와 tail을 같은곳에 둔다 => h와 t가 같으면 empty이다 # --> 큐가 가득 찬것과 비어있는 것을 어떻게 구분할 것이냐? # tail은 값을 넣은 후에 움직인다. -> 마지막 데이터의 다음을 가리키고 있다. # -> t + 1 == h이면 full이다 # ADT -> Abstract Data Type (추상 자료형) class CQueue: MAXSIZE = 10 def __init__(self): self.__container = [None for _ in range(CQueue.MAXSIZE)] self.__head = 0 self.__tail = 0 def is_empty(self): if self.__head == self.__tail: return True return False def is_full(self): next = self.__step_forward(self.__tail) if next == self.__head: return True return False def enqueue(self, data): if self.is_full(): raise Exception("The queue is full") self.__container[self.__tail] = data # tail은 마지막 데이터의 다음을 가리킨다 self.__tail = self.__step_forward(self.__tail) def dequeue(self): if self.is_empty(): raise Exception("The queue is empty") ret = self.__container[self.__head] self.__head = self.__step_forward(self.__head) return ret def peek(self): if self.is_empty(): raise Exception("The queue is empty") return self.__container[self.__head] # 편의 함수 def __step_forward(self, x): x += 1 if x >= CQueue.MAXSIZE: x = 0 return x if __name__ == "__main__": cq = CQueue() for i in range(9): cq.enqueue(i) for j in range(10): print(cq._CQueue__container[j], end=" ") print() # for i in range(5): # print(cq.dequeue(), end=" ") # # # print() # # for i in range(10): # # print(cq._CQueue__container[i], end=" ") # print() # # # for i in range(8, 14): # cq.enqueue(i) # # print(cq._CQueue__container[i], end=" ") # print() # # # # print() # while not cq.is_empty(): # print(cq.dequeue(), end=" ") # # print() # for i in range(10): # print(cq._CQueue__container[i], end=" ")
class Solution: def myAtoi(self, str): """ :type str: str :rtype: int """ if str == "": return 0 lens = len(str) result = 0 flag = 1 i = 0 while i < lens and str[i] == " ": i += 1 if i < lens and str[i] == "-": flag = -1 i += 1 elif i < lens and str[i] == "+": i += 1 while i < lens: if str[i] >= "0" and str[i] <= "9": result = result * 10 + (int)(str[i]) if result > 2 ** 31 - 1: if flag == 1: return 2 ** 31 - 1 else: return - (2 ** 31) i += 1 else: break return result * flag
class Enemy: hp = 200 def __init__(self, attack_low, attack_high): self.attack_high = attack_high self.attack_low = attack_low def getAttackLow(self): print("Low Attack", self.attack_low) return self.attack_low def getAttackHigh(self): print("High Attack", self.attack_high) return self.attack_high def getHealth(self): print("Enemy Heath", self.hp) return self.hp
""" Problem found on Hacker Rank: https://www.hackerrank.com/challenges/drawing-book/problem?utm_campaign=challenge-recommendation&utm_medium=email&utm_source=24-hour-campaign Observations About the Problem: - the last page, and n if n is odd, then that means the last page number is odd. Likewise, it is also printed on the front of a page; however if n is even, then the last page number is even, and it is printed on the back side of a page - counting forwards, we start from 1 e.g. if you want to get to page 2, the min number of page turns you need is 1, because it's only one page away from page 1 Idea #1 - subtraction A: calculate the difference between p and 1 B: calculate the difference between n and p C: return the lesser of the two Idea #2 - looking at page turns A: figure out which will result in fewer page turns: - turning from the front will always require p - 2 turns - edge case: (unless p == 1, where you need 0 page turns) - how many page turns do you need from the back? - if n is even, then you can only have 0 page turns if p == n - if n is odd, then the page turns you need from the back is n - (p + 1) B: compare the two numbers for the page turning: - if equal, then just return the number - if unequal, then return the lesser of the two """ def drawing_book(book_length, target_page): """Return the minimum number of page turns needed to reach a page.""" """ # calculate number of page turns from the front if target_page > 1: front_page_turns = 0 else: front_page_turns = target_page - 2 # calculate number of page turns from the back if book_length % 2 == 0 and target_page == book_length: back_page_turns = 0 else: back_page_turns = book_length - (target_page + 1) # return whichever number results in less turns if front_page_turns != back_page_turns: return min([front_page_turns, back_page_turns]) return front_page_turns Test Cases Variables | book_length | target_page | front_page_turns | back_page_turns | Values | 6 | 2 | 0 | 3 | Oh no! it looks like this first approach incorrectly calculated both values for the number of page turns. How can we refine the algorithm? Idea #3 - "map" page numbers to an array index for the front page turns, and calculate the turns from the back using the total amount of "page pairs" in the book e.g. a book of 6 pages, and the target is page 5 it can be represented like this: 0 1 2 3 [ (1,) , (2, 3), (4, 5), (6,) ] total pages that are paired together in the book: 4 turns from the front: 2 turns from the back: 1 minimum number of turns is 1. """ # exit early if possible if target_page == 1 or target_page == book_length: return 0 # calculate the length of an array that could repr pairs of page numbers if book_length % 2 == 0: num_page_pairs = (book_length / 2) + 1 elif book_length % 2 > 0: num_page_pairs = (book_length // 2) + 1 # calculate the page turns needed, and return the minimum front_turns = int(target_page // 2) turns_from_back = int(num_page_pairs - (front_turns + 1)) return min([front_turns, turns_from_back]) if __name__ == "__main__": print(drawing_book(6, 4))