content
stringlengths
7
1.05M
fixed_cases
stringlengths
1
1.28M
def poscode2word(pos): tag_des = { 'CC': 'Coordinating conjunction', 'CD': 'Cardinal number', 'DT': 'Determiner', 'EX': 'Existential', 'FW': 'Foreign word', 'IN': 'Preposition', 'JJ': 'Adjective', 'JJR': 'Adjective, comparative', 'JJS': 'Adjective, superlative', 'LS': 'List item maker', 'MD': 'Modal', 'NN': 'Noun, sigular', 'NNS': 'Noun, plural', 'NNP': 'Proper noun, singular', 'NNPS': 'Proper noun, plural', 'PDT': 'Predeterminer', 'POS': 'Possessive ending', 'PRP': 'Personal pronoun', 'PRP$': 'Possessive pronoun', 'RB': 'Adverb', 'RBR': 'Adverb, comparative', 'RBS': 'Adverb, superlative', 'RP': 'Particle', 'SYM': 'Symbol', 'TO': 'to', 'UH': 'Interjection', 'VB': 'Verb, base form', 'VBD': 'Verb, past tense', 'VBG': 'Verb, gerund or present participle', 'VBP': 'Verb, non-3rd person singular present', 'VBZ': 'Verb, 3rd person singular present', 'WDT': 'Wh-determiner', 'WP': 'Wh-pronoun', 'WP$': 'Possessive wh-pronoun', 'WRB': 'Wh-adverb' } if pos in tag_des: return tag_des[pos] return pos if __name__ == "__main__": print(poscode2word('NN'))
def poscode2word(pos): tag_des = {'CC': 'Coordinating conjunction', 'CD': 'Cardinal number', 'DT': 'Determiner', 'EX': 'Existential', 'FW': 'Foreign word', 'IN': 'Preposition', 'JJ': 'Adjective', 'JJR': 'Adjective, comparative', 'JJS': 'Adjective, superlative', 'LS': 'List item maker', 'MD': 'Modal', 'NN': 'Noun, sigular', 'NNS': 'Noun, plural', 'NNP': 'Proper noun, singular', 'NNPS': 'Proper noun, plural', 'PDT': 'Predeterminer', 'POS': 'Possessive ending', 'PRP': 'Personal pronoun', 'PRP$': 'Possessive pronoun', 'RB': 'Adverb', 'RBR': 'Adverb, comparative', 'RBS': 'Adverb, superlative', 'RP': 'Particle', 'SYM': 'Symbol', 'TO': 'to', 'UH': 'Interjection', 'VB': 'Verb, base form', 'VBD': 'Verb, past tense', 'VBG': 'Verb, gerund or present participle', 'VBP': 'Verb, non-3rd person singular present', 'VBZ': 'Verb, 3rd person singular present', 'WDT': 'Wh-determiner', 'WP': 'Wh-pronoun', 'WP$': 'Possessive wh-pronoun', 'WRB': 'Wh-adverb'} if pos in tag_des: return tag_des[pos] return pos if __name__ == '__main__': print(poscode2word('NN'))
def part1(arr): s = 0 for v in arr: s += v // 3 - 2 return s def part2(arr): s = 0 for v in arr: fuel = v // 3 - 2 s += fuel while fuel > 0: fuel = fuel // 3 - 2 if fuel > 0: s += fuel return s def day1(): arr = [ 80891, 109412, 149508, 114894, 97527, 59858, 113548, 110516, 97454, 84612, 84578, 87923, 102675, 114312, 144158, 147190, 53051, 115477, 50870, 122198, 91019, 114350, 88592, 119617, 61012, 67012, 85425, 62185, 124628, 98505, 53320, 123834, 105862, 113715, 149328, 72125, 107301, 110684, 86037, 102012, 133227, 66950, 64761, 141015, 132134, 87171, 84142, 80355, 124967, 87973, 98062, 79312, 120108, 97537, 89584, 55206, 68135, 83286, 66726, 101805, 72996, 113109, 116248, 132007, 128378, 52506, 113628, 62277, 73720, 101756, 141675, 107011, 81118, 60598, 122703, 129905, 67786, 50982, 96193, 70006, 137087, 136121, 146902, 74781, 50569, 102645, 99426, 97857, 122801, 55022, 81433, 60509, 66906, 142099, 126652, 103240, 141014, 55579, 143169, 125521 ] print(part1(arr)) print(part2(arr)) if __name__ == '__main__': day1()
def part1(arr): s = 0 for v in arr: s += v // 3 - 2 return s def part2(arr): s = 0 for v in arr: fuel = v // 3 - 2 s += fuel while fuel > 0: fuel = fuel // 3 - 2 if fuel > 0: s += fuel return s def day1(): arr = [80891, 109412, 149508, 114894, 97527, 59858, 113548, 110516, 97454, 84612, 84578, 87923, 102675, 114312, 144158, 147190, 53051, 115477, 50870, 122198, 91019, 114350, 88592, 119617, 61012, 67012, 85425, 62185, 124628, 98505, 53320, 123834, 105862, 113715, 149328, 72125, 107301, 110684, 86037, 102012, 133227, 66950, 64761, 141015, 132134, 87171, 84142, 80355, 124967, 87973, 98062, 79312, 120108, 97537, 89584, 55206, 68135, 83286, 66726, 101805, 72996, 113109, 116248, 132007, 128378, 52506, 113628, 62277, 73720, 101756, 141675, 107011, 81118, 60598, 122703, 129905, 67786, 50982, 96193, 70006, 137087, 136121, 146902, 74781, 50569, 102645, 99426, 97857, 122801, 55022, 81433, 60509, 66906, 142099, 126652, 103240, 141014, 55579, 143169, 125521] print(part1(arr)) print(part2(arr)) if __name__ == '__main__': day1()
BASE_JSON_PATH = '/home/mdd36/tools350/tools350/assembler/base_jsn' BASE_JSON_LOCAL = '/Users/matthew/Documents/SchoolWork/TA/ECE350/2019s/350_tools_mk2/tools350/assembler/base_jsn' class InstructionType: def __init__(self, types: dict): self._instruction_types: dict = types def get_by_type(self, type_: str) -> dict: return self._instruction_types["types"][type_] def is_branch(self, instr: str) -> bool: return instr in self._instruction_types["branches"] NOP = {"opcode": 5, "rd": 5, "rs": 5, "rt": 5, "shamt": 5, "aluop": 5, "zeroes": 2} ERROR = {"err": 32}
base_json_path = '/home/mdd36/tools350/tools350/assembler/base_jsn' base_json_local = '/Users/matthew/Documents/SchoolWork/TA/ECE350/2019s/350_tools_mk2/tools350/assembler/base_jsn' class Instructiontype: def __init__(self, types: dict): self._instruction_types: dict = types def get_by_type(self, type_: str) -> dict: return self._instruction_types['types'][type_] def is_branch(self, instr: str) -> bool: return instr in self._instruction_types['branches'] nop = {'opcode': 5, 'rd': 5, 'rs': 5, 'rt': 5, 'shamt': 5, 'aluop': 5, 'zeroes': 2} error = {'err': 32}
class Node: def __init__(self, data): self.left = None self.right = None self.data = data def inorder(root): if root is None: return "" res = "" res += inorder(root.left) res += "{} ".format(root.data) res += inorder(root.right) return res def all_subtree(root): if root is None: return None res = [root.data] l = all_subtree(root.left) if l is not None: res += l res.append(l) r = all_subtree(root.right) if r is not None: res += r res.append(r) return res def main(): root = Node(8) root.left = Node(3) root.right = Node(10) print(inorder(root)) print(all_subtree(root)) if __name__ == "__main__": main()
class Node: def __init__(self, data): self.left = None self.right = None self.data = data def inorder(root): if root is None: return '' res = '' res += inorder(root.left) res += '{} '.format(root.data) res += inorder(root.right) return res def all_subtree(root): if root is None: return None res = [root.data] l = all_subtree(root.left) if l is not None: res += l res.append(l) r = all_subtree(root.right) if r is not None: res += r res.append(r) return res def main(): root = node(8) root.left = node(3) root.right = node(10) print(inorder(root)) print(all_subtree(root)) if __name__ == '__main__': main()
for i in range(int(input())): sum = 0 y, x = map(int, input().split()) n = max(x,y) sum += (n-1) * (n-1) if n%2!=0: sum += x + (n-y) else: sum += y + (n-x) print(sum)
for i in range(int(input())): sum = 0 (y, x) = map(int, input().split()) n = max(x, y) sum += (n - 1) * (n - 1) if n % 2 != 0: sum += x + (n - y) else: sum += y + (n - x) print(sum)
class GetCashgramStatus: end_point = "/payout/v1/getCashgramStatus" req_type = "GET" def __init__(self, *args, **kwargs): self.cashgramId = kwargs["cashgramId"]
class Getcashgramstatus: end_point = '/payout/v1/getCashgramStatus' req_type = 'GET' def __init__(self, *args, **kwargs): self.cashgramId = kwargs['cashgramId']
description = 'Small Beam Limiter in Experimental Chamber 1' group = 'optional' devices = dict( nbl_l = device('nicos.devices.generic.VirtualReferenceMotor', description = 'Beam Limiter Left Blade', lowlevel = True, abslimits = (-250, 260), unit = 'mm', speed = 10, refswitch = 'high', ), nbl_r = device('nicos.devices.generic.VirtualReferenceMotor', description = 'Beam Limiter Right Blade', lowlevel = True, abslimits = (-250, 260), unit = 'mm', speed = 10, refswitch = 'high', ), nbl_t = device('nicos.devices.generic.VirtualReferenceMotor', description = 'Beam Limiter Top Blade', lowlevel = True, abslimits = (-250, 260), unit = 'mm', speed = 10, refswitch = 'high', ), nbl_b = device('nicos.devices.generic.VirtualReferenceMotor', description = 'Beam Limiter Bottom Blade', lowlevel = True, abslimits = (-250, 260), unit = 'mm', speed = 10, refswitch = 'high', ), nbl = device('nicos_mlz.nectar.devices.BeamLimiter', description = 'NECTAR Beam Limiter', left = 'nbl_l', right = 'nbl_r', top = 'nbl_t', bottom = 'nbl_b', opmode = 'centered', coordinates = 'opposite', pollinterval = 5, maxage = 10, parallel_ref = True, ), )
description = 'Small Beam Limiter in Experimental Chamber 1' group = 'optional' devices = dict(nbl_l=device('nicos.devices.generic.VirtualReferenceMotor', description='Beam Limiter Left Blade', lowlevel=True, abslimits=(-250, 260), unit='mm', speed=10, refswitch='high'), nbl_r=device('nicos.devices.generic.VirtualReferenceMotor', description='Beam Limiter Right Blade', lowlevel=True, abslimits=(-250, 260), unit='mm', speed=10, refswitch='high'), nbl_t=device('nicos.devices.generic.VirtualReferenceMotor', description='Beam Limiter Top Blade', lowlevel=True, abslimits=(-250, 260), unit='mm', speed=10, refswitch='high'), nbl_b=device('nicos.devices.generic.VirtualReferenceMotor', description='Beam Limiter Bottom Blade', lowlevel=True, abslimits=(-250, 260), unit='mm', speed=10, refswitch='high'), nbl=device('nicos_mlz.nectar.devices.BeamLimiter', description='NECTAR Beam Limiter', left='nbl_l', right='nbl_r', top='nbl_t', bottom='nbl_b', opmode='centered', coordinates='opposite', pollinterval=5, maxage=10, parallel_ref=True))
async def test_admin_auth(client, admin, user): res = await client.get('/admin', follow_redirect=False) assert res.status_code == 307 # Login as an simple user res = await client.post('/login', data={'email': user.email, 'password': 'pass'}) assert res.status_code == 200 res = await client.get('/admin', follow_redirect=False) assert res.status_code == 307 # Login as an admin res = await client.post('/login', data={'email': admin.email, 'password': 'pass'}) assert res.status_code == 200 res = await client.get('/admin', follow_redirect=False) assert res.status_code == 200 assert 'initAdmin' in await res.text()
async def test_admin_auth(client, admin, user): res = await client.get('/admin', follow_redirect=False) assert res.status_code == 307 res = await client.post('/login', data={'email': user.email, 'password': 'pass'}) assert res.status_code == 200 res = await client.get('/admin', follow_redirect=False) assert res.status_code == 307 res = await client.post('/login', data={'email': admin.email, 'password': 'pass'}) assert res.status_code == 200 res = await client.get('/admin', follow_redirect=False) assert res.status_code == 200 assert 'initAdmin' in await res.text()
# https://edabit.com/challenge/Yj2Rew5XQYpu7Nosq # Create a function that returns the number of frames shown in a given number of minutes for a certain FPS. def frames(minutes: int, fps: int) -> int: try: total_frames = (minutes * 60) * fps return total_frames except TypeError as err: print(f"Error: {err}") print(frames(1, 1)) print(frames(10, 1)) print(frames(10, 25)) print(frames("a", "b"))
def frames(minutes: int, fps: int) -> int: try: total_frames = minutes * 60 * fps return total_frames except TypeError as err: print(f'Error: {err}') print(frames(1, 1)) print(frames(10, 1)) print(frames(10, 25)) print(frames('a', 'b'))
list_one = [1, 2, 3] list_two = [4, 5, 6,7] lst = [0, *list_one, *list_two] print(lst) country_lst_one = ['Finland', 'Sweden', 'Norway'] country_lst_two = ['Denmark', 'Iceland'] nordic_countries = [*country_lst_one, *country_lst_two] print(nordic_countries)
list_one = [1, 2, 3] list_two = [4, 5, 6, 7] lst = [0, *list_one, *list_two] print(lst) country_lst_one = ['Finland', 'Sweden', 'Norway'] country_lst_two = ['Denmark', 'Iceland'] nordic_countries = [*country_lst_one, *country_lst_two] print(nordic_countries)
# https://www.codechef.com/problems/DEVARRAY n,Q=map(int,input().split()) max1,min1,a=-99999999999,99999999999,list(map(int,input().split())) for z in range(n): min1,max1 = min(min1,a[z]),max(max1,a[z]) for z in range(Q): print("Yes") if(int(input()) in range(min1,max1+1)) else print("No")
(n, q) = map(int, input().split()) (max1, min1, a) = (-99999999999, 99999999999, list(map(int, input().split()))) for z in range(n): (min1, max1) = (min(min1, a[z]), max(max1, a[z])) for z in range(Q): print('Yes') if int(input()) in range(min1, max1 + 1) else print('No')
_base_ = [ '../_base_/default_runtime.py', '../_base_/datasets/coco_detection.py' ] # model settings model = dict( type='CenterNet', pretrained='torchvision://resnet18', backbone=dict( type='ResNet', depth=18, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=-1, norm_cfg=dict(type='BN', requires_grad=True), norm_eval=False, zero_init_residual=False, style='pytorch'), neck=dict( type='CenterFPN', in_channels=(512, 256, 128, 64), out_channels=64, level_index=0, reverse_levels=True, with_last_norm=True, with_last_relu=True, upsample_cfg=dict( type='deconv', kernel_size=4, stride=2, padding=1, output_padding=0, bias=False)), bbox_head=dict( type='CenterHead', num_classes=1, in_channels=64, feat_channels=64, loss_heatmap=dict( type='GaussianFocalLoss', alpha=2.0, gamma=4.0, loss_weight=1), loss_offset=dict(type='L1Loss', loss_weight=1.0), loss_bbox=dict(type='L1Loss', loss_weight=0.1))) # training and testing settings train_cfg = dict( vis_every_n_iters=100, min_overlap=0.7, debug=False) test_cfg = dict( score_thr=0.01, max_per_img=100) # dataset settings, SEE: Normalize RGB https://aishack.in/tutorials/normalized-rgb/ img_norm_cfg = dict( # NOTE: add `norm_rgb=True` if eval offical pretrained weights # mean=[0.408, 0.447, 0.470], std=[0.289, 0.274, 0.278], to_rgb=False, norm_rgb=True) # mean=[0.485, 0.456, 0.406], std=[0.229, 0.224, 0.225], to_rgb=False, norm_rgb=True) mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) train_pipeline = [ dict(type='LoadImageFromFile', to_float32=True), dict(type='LoadAnnotations', with_bbox=True), dict(type='PhotoMetricDistortion', brightness_delta=32, contrast_range=(0.5, 1.5), saturation_range=(0.5, 1.5), hue_delta=18), dict(type='RandomLighting', scale=0.1), dict(type='RandomCenterCropPad', crop_size=(512, 512), ratios=(0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3), test_mode=False, test_pad_mode=None, **img_norm_cfg), dict(type='Resize', img_scale=(512, 512), keep_ratio=False), dict(type='RandomFlip', flip_ratio=0.5), dict(type='Pad', size_divisor=32), dict(type='Normalize', **img_norm_cfg), dict(type='DefaultFormatBundle'), dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels']), ] test_pipeline = [ dict(type='LoadImageFromFile', to_float32=True), dict( type='MultiScaleFlipAug', scale_factor=1.0, flip=False, transforms=[ dict(type='Resize'), dict(type='RandomFlip'), dict(type='Pad', size_divisor=32), dict(type='Normalize', **img_norm_cfg), dict(type='ImageToTensor', keys=['img']), dict( type='Collect', keys=['img'], meta_keys=('filename', 'ori_shape', 'img_shape', 'pad_shape', 'scale_factor', 'flip', 'img_norm_cfg')), ]) ] classes = ('person', ) data = dict( samples_per_gpu=32, workers_per_gpu=2, train=dict(classes=classes, pipeline=train_pipeline), val=dict(classes=classes, pipeline=test_pipeline), test=dict(classes=classes, pipeline=test_pipeline)) # optimizer optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0004, paramwise_cfg=dict(bias_lr_mult=2., bias_decay_mult=0.)) optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2)) # learning policy lr_config = dict( policy='step', warmup='linear', warmup_iters=1000, warmup_ratio=1.0 / 5, step=[90, 120]) checkpoint_config = dict(interval=5) evaluation = dict(interval=1, metric=['bbox'], multitask=True) # runtime settings total_epochs = 140 cudnn_benchmark = True find_unused_parameters = True
_base_ = ['../_base_/default_runtime.py', '../_base_/datasets/coco_detection.py'] model = dict(type='CenterNet', pretrained='torchvision://resnet18', backbone=dict(type='ResNet', depth=18, num_stages=4, out_indices=(0, 1, 2, 3), frozen_stages=-1, norm_cfg=dict(type='BN', requires_grad=True), norm_eval=False, zero_init_residual=False, style='pytorch'), neck=dict(type='CenterFPN', in_channels=(512, 256, 128, 64), out_channels=64, level_index=0, reverse_levels=True, with_last_norm=True, with_last_relu=True, upsample_cfg=dict(type='deconv', kernel_size=4, stride=2, padding=1, output_padding=0, bias=False)), bbox_head=dict(type='CenterHead', num_classes=1, in_channels=64, feat_channels=64, loss_heatmap=dict(type='GaussianFocalLoss', alpha=2.0, gamma=4.0, loss_weight=1), loss_offset=dict(type='L1Loss', loss_weight=1.0), loss_bbox=dict(type='L1Loss', loss_weight=0.1))) train_cfg = dict(vis_every_n_iters=100, min_overlap=0.7, debug=False) test_cfg = dict(score_thr=0.01, max_per_img=100) img_norm_cfg = dict(mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) train_pipeline = [dict(type='LoadImageFromFile', to_float32=True), dict(type='LoadAnnotations', with_bbox=True), dict(type='PhotoMetricDistortion', brightness_delta=32, contrast_range=(0.5, 1.5), saturation_range=(0.5, 1.5), hue_delta=18), dict(type='RandomLighting', scale=0.1), dict(type='RandomCenterCropPad', crop_size=(512, 512), ratios=(0.6, 0.7, 0.8, 0.9, 1.0, 1.1, 1.2, 1.3), test_mode=False, test_pad_mode=None, **img_norm_cfg), dict(type='Resize', img_scale=(512, 512), keep_ratio=False), dict(type='RandomFlip', flip_ratio=0.5), dict(type='Pad', size_divisor=32), dict(type='Normalize', **img_norm_cfg), dict(type='DefaultFormatBundle'), dict(type='Collect', keys=['img', 'gt_bboxes', 'gt_labels'])] test_pipeline = [dict(type='LoadImageFromFile', to_float32=True), dict(type='MultiScaleFlipAug', scale_factor=1.0, flip=False, transforms=[dict(type='Resize'), dict(type='RandomFlip'), dict(type='Pad', size_divisor=32), dict(type='Normalize', **img_norm_cfg), dict(type='ImageToTensor', keys=['img']), dict(type='Collect', keys=['img'], meta_keys=('filename', 'ori_shape', 'img_shape', 'pad_shape', 'scale_factor', 'flip', 'img_norm_cfg'))])] classes = ('person',) data = dict(samples_per_gpu=32, workers_per_gpu=2, train=dict(classes=classes, pipeline=train_pipeline), val=dict(classes=classes, pipeline=test_pipeline), test=dict(classes=classes, pipeline=test_pipeline)) optimizer = dict(type='SGD', lr=0.01, momentum=0.9, weight_decay=0.0004, paramwise_cfg=dict(bias_lr_mult=2.0, bias_decay_mult=0.0)) optimizer_config = dict(grad_clip=dict(max_norm=35, norm_type=2)) lr_config = dict(policy='step', warmup='linear', warmup_iters=1000, warmup_ratio=1.0 / 5, step=[90, 120]) checkpoint_config = dict(interval=5) evaluation = dict(interval=1, metric=['bbox'], multitask=True) total_epochs = 140 cudnn_benchmark = True find_unused_parameters = True
# Copyright (c) 2012 OpenStack, LLC. # # Licensed under the Apache License, Version 2.0 (the 'License'); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an 'AS IS' BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or # implied. # See the License for the specific language governing permissions and # limitations under the License. EXTENDED_ATTRIBUTES_2_0 = { 'networks': { 'v2attrs:something': {'allow_post': False, 'allow_put': False, 'is_visible': True}, 'v2attrs:something_else': {'allow_post': True, 'allow_put': False, 'is_visible': False}, } } class V2attributes(object): def get_name(self): return "V2 Extended Attributes Example" def get_alias(self): return "v2attrs" def get_description(self): return "Demonstrates extended attributes on V2 core resources" def get_namespace(self): return "http://docs.openstack.org/ext/examples/v2attributes/api/v1.0" def get_updated(self): return "2012-07-18T10:00:00-00:00" def get_extended_resources(self, version): if version == "2.0": return EXTENDED_ATTRIBUTES_2_0 else: return {}
extended_attributes_2_0 = {'networks': {'v2attrs:something': {'allow_post': False, 'allow_put': False, 'is_visible': True}, 'v2attrs:something_else': {'allow_post': True, 'allow_put': False, 'is_visible': False}}} class V2Attributes(object): def get_name(self): return 'V2 Extended Attributes Example' def get_alias(self): return 'v2attrs' def get_description(self): return 'Demonstrates extended attributes on V2 core resources' def get_namespace(self): return 'http://docs.openstack.org/ext/examples/v2attributes/api/v1.0' def get_updated(self): return '2012-07-18T10:00:00-00:00' def get_extended_resources(self, version): if version == '2.0': return EXTENDED_ATTRIBUTES_2_0 else: return {}
# Python Program to subtract two numbers # Store input numbers num1 = input("Enter first number: ") num2 = input("Enter second number: ") # Sub two numbers sub = float(num1) - float(num2) # Display the sub print("The sub of {0} and {1} is {2}".format(num1, num2, sub))
num1 = input('Enter first number: ') num2 = input('Enter second number: ') sub = float(num1) - float(num2) print('The sub of {0} and {1} is {2}'.format(num1, num2, sub))
BACKTEST_FLOW_OK = { "nodeList": { "1": { "blockType": "DATA_BLOCK", "blockId": 1, "equity_name": {"options": ["AAPL"], "value": ""}, "data_type": {"options": ["intraday", "daily_adjusted"], "value": ""}, "interval": {"options": ["1min"], "value": ""}, "outputsize": {"options": ["compact", "full"], "value": ""}, "start_date": {"value": ""}, "end_date": {"value": ""}, }, }, "edgeList": [], } SCREENER_FLOW_OK = { "nodeList": { "1": { "blockType": "BULK_DATA_BLOCK", "blockId": 1, "equity_name": {"options": ["AAPL"], "value": ""}, "data_type": {"options": ["intraday", "daily_adjusted"], "value": ""}, "interval": {"options": ["1min"], "value": ""}, "outputsize": {"options": ["compact", "full"], "value": ""}, "start_date": {"value": ""}, "end_date": {"value": ""}, }, }, "edgeList": [], }
backtest_flow_ok = {'nodeList': {'1': {'blockType': 'DATA_BLOCK', 'blockId': 1, 'equity_name': {'options': ['AAPL'], 'value': ''}, 'data_type': {'options': ['intraday', 'daily_adjusted'], 'value': ''}, 'interval': {'options': ['1min'], 'value': ''}, 'outputsize': {'options': ['compact', 'full'], 'value': ''}, 'start_date': {'value': ''}, 'end_date': {'value': ''}}}, 'edgeList': []} screener_flow_ok = {'nodeList': {'1': {'blockType': 'BULK_DATA_BLOCK', 'blockId': 1, 'equity_name': {'options': ['AAPL'], 'value': ''}, 'data_type': {'options': ['intraday', 'daily_adjusted'], 'value': ''}, 'interval': {'options': ['1min'], 'value': ''}, 'outputsize': {'options': ['compact', 'full'], 'value': ''}, 'start_date': {'value': ''}, 'end_date': {'value': ''}}}, 'edgeList': []}
numbers = [14, 2,3,4,5,6,7,6,5,7,8,8,9,10,11,12,13,14,14] numbers2 =[] for number in numbers: if number not in numbers2: numbers2.append(number) print(numbers2)
numbers = [14, 2, 3, 4, 5, 6, 7, 6, 5, 7, 8, 8, 9, 10, 11, 12, 13, 14, 14] numbers2 = [] for number in numbers: if number not in numbers2: numbers2.append(number) print(numbers2)
class MyClass: print('MyClass created') # instansiate a class my_var = MyClass() print(type(my_var)) print(dir(my_var))
class Myclass: print('MyClass created') my_var = my_class() print(type(my_var)) print(dir(my_var))
class BTNode: __slots__ = "value", "left", "right" def __init__(self, value, left=None, right=None): self.value = value self.left = left self.right = right def test_BTNode(): parent = BTNode(10) left = BTNode(20) right = BTNode(30) parent.left = left parent.right = right print (parent.value) print (parent.left.value) print (parent.right.value) if __name__ == '__main__': test_BTNode()
class Btnode: __slots__ = ('value', 'left', 'right') def __init__(self, value, left=None, right=None): self.value = value self.left = left self.right = right def test_bt_node(): parent = bt_node(10) left = bt_node(20) right = bt_node(30) parent.left = left parent.right = right print(parent.value) print(parent.left.value) print(parent.right.value) if __name__ == '__main__': test_bt_node()
#!/usr/bin/python # -*- coding: utf-8 -*- DEBUG = True USE_TZ = True SECRET_KEY = "KEY" DATABASES = { "default": { "ENGINE": "django.db.backends.sqlite3", "NAME": ":memory:", } } ROOT_URLCONF = "tests.urls" INSTALLED_APPS = [ "django.contrib.admin", "django.contrib.messages", "django.contrib.auth", "django.contrib.contenttypes", "django.contrib.sessions", "django.contrib.sites", "beerfest", "rest_framework", ] MIDDLEWARE = ( "django.middleware.common.CommonMiddleware", "django.middleware.csrf.CsrfViewMiddleware", "django.contrib.sessions.middleware.SessionMiddleware", "django.contrib.auth.middleware.AuthenticationMiddleware", "django.contrib.messages.middleware.MessageMiddleware", ) SITE_ID = 1 TEMPLATES = [ { "BACKEND": "django.template.backends.django.DjangoTemplates", "DIRS": ["tests/templates"], "OPTIONS": { "context_processors": [ "django.contrib.auth.context_processors.auth", "django.contrib.messages.context_processors.messages", ], }, }, ]
debug = True use_tz = True secret_key = 'KEY' databases = {'default': {'ENGINE': 'django.db.backends.sqlite3', 'NAME': ':memory:'}} root_urlconf = 'tests.urls' installed_apps = ['django.contrib.admin', 'django.contrib.messages', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.sites', 'beerfest', 'rest_framework'] middleware = ('django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware') site_id = 1 templates = [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['tests/templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}]
class Solution: # @param prices, a list of integer # @return an integer def maxProfit(self, prices): n = len(prices) if n < 2: return 0 min_price = prices[0] res = 0 for i in xrange(1, n): res = max(res, prices[i]-min_price) min_price = min(min_price, prices[i]) return res
class Solution: def max_profit(self, prices): n = len(prices) if n < 2: return 0 min_price = prices[0] res = 0 for i in xrange(1, n): res = max(res, prices[i] - min_price) min_price = min(min_price, prices[i]) return res
# Python 3: Simple output (with Unicode) print("Hello, I'm Python!") # Input, assignment name = input('What is your name?\n') print('Hi, %s.' % name)
print("Hello, I'm Python!") name = input('What is your name?\n') print('Hi, %s.' % name)
# Time complexity: O(n) where n is number of nodes in Tree # Approach: Checking binary search tree conditions on each node recursively. # 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 isValidBST(self, root: Optional[TreeNode], l=-2**31-1, r=2**31) -> bool: if not root: return True elif l<root.val and root.val<r: return self.isValidBST(root.left, l, root.val) and self.isValidBST(root.right, root.val, r) return False
class Solution: def is_valid_bst(self, root: Optional[TreeNode], l=-2 ** 31 - 1, r=2 ** 31) -> bool: if not root: return True elif l < root.val and root.val < r: return self.isValidBST(root.left, l, root.val) and self.isValidBST(root.right, root.val, r) return False
class Node(): def __init__(self): self.children = {} self.endofword = False self.string = "" class Trie(): def __init__(self): self.root = Node() def insert(self, word): pointer = self.root for char in word: if char not in pointer.children: pointer.children[char] = Node() pointer = pointer.children[char] pointer.endofword = True pointer.string = word def search(self, word): pointer = self.root for char in word: if char not in pointer.children: # print("here") return "" pointer = pointer.children[char] if pointer.endofword is True: return pointer.string return "" class Solution: def replaceWords(self, dict: List[str], sentence: str) -> str: prefixtree = Trie() ans = "" for word in dict: prefixtree.insert(word) for word in sentence.split(): root = prefixtree.search(word) if root == "": ans += word else: ans += root ans += " " return ans[:-1]
class Node: def __init__(self): self.children = {} self.endofword = False self.string = '' class Trie: def __init__(self): self.root = node() def insert(self, word): pointer = self.root for char in word: if char not in pointer.children: pointer.children[char] = node() pointer = pointer.children[char] pointer.endofword = True pointer.string = word def search(self, word): pointer = self.root for char in word: if char not in pointer.children: return '' pointer = pointer.children[char] if pointer.endofword is True: return pointer.string return '' class Solution: def replace_words(self, dict: List[str], sentence: str) -> str: prefixtree = trie() ans = '' for word in dict: prefixtree.insert(word) for word in sentence.split(): root = prefixtree.search(word) if root == '': ans += word else: ans += root ans += ' ' return ans[:-1]
#----------------------------------------------------------------------- # helper modules for argparse: # - check if values are in a certain range, are positive, etc. # - https://github.com/Sorbus/artichoke #----------------------------------------------------------------------- def check_range(value): ivalue = int(value) if ivalue < 1 or ivalue > 3200: raise argparse.ArgumentTypeError("%s is not a valid positive int value" % value) return ivalue def check_positive(value): ivalue = int(value) if ivalue < 0: raise argparse.ArgumentTypeError("%s is not a valid positive int value" % value) return ivalue
def check_range(value): ivalue = int(value) if ivalue < 1 or ivalue > 3200: raise argparse.ArgumentTypeError('%s is not a valid positive int value' % value) return ivalue def check_positive(value): ivalue = int(value) if ivalue < 0: raise argparse.ArgumentTypeError('%s is not a valid positive int value' % value) return ivalue
#logaritmica #No. de digitos de un numero def digitos(i): cont=0 if i == 0: return '0' while i > 0: cont=cont+1 i = i//10 return cont numeros=list(range(1,1000)) print(numeros) ite=[] for a in numeros: ite.append(digitos(a)) print(digitos(a))
def digitos(i): cont = 0 if i == 0: return '0' while i > 0: cont = cont + 1 i = i // 10 return cont numeros = list(range(1, 1000)) print(numeros) ite = [] for a in numeros: ite.append(digitos(a)) print(digitos(a))
class FakeSerial: def __init__( self, port=None, baudrate = 19200, timeout=1, bytesize = 8, parity = 'N', stopbits = 1, xonxoff=0, rtscts = 0): print("Port is ", port) self.halfduplex = True self.name = port self.port = port self.timeout = timeout self.parity = parity self.baudrate = baudrate self.bytesize = bytesize self.stopbits = stopbits self.xonxoff = xonxoff self.rtscts = rtscts self._data = b'0000:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,00\r\n' if isinstance(self.port, str): self.port = open(self.port, "wb+") def close(self): pass def flush(self): self.port.flush() def write(self, data): written = self.port.write(data) return written def readline(self): self.halfduplex = not self.halfduplex if self.halfduplex: return b"OK\r\n" return self._data
class Fakeserial: def __init__(self, port=None, baudrate=19200, timeout=1, bytesize=8, parity='N', stopbits=1, xonxoff=0, rtscts=0): print('Port is ', port) self.halfduplex = True self.name = port self.port = port self.timeout = timeout self.parity = parity self.baudrate = baudrate self.bytesize = bytesize self.stopbits = stopbits self.xonxoff = xonxoff self.rtscts = rtscts self._data = b'0000:FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF,00\r\n' if isinstance(self.port, str): self.port = open(self.port, 'wb+') def close(self): pass def flush(self): self.port.flush() def write(self, data): written = self.port.write(data) return written def readline(self): self.halfduplex = not self.halfduplex if self.halfduplex: return b'OK\r\n' return self._data
class CustomException(Exception): def __init__(self, *args): if args: self.message = args[0] else: self.message = None def get_str(self, class_name): if self.message: return '{0}, {1} '.format(self.message, class_name) else: return '{0} has been raised'.format(class_name) class CommunicationChannelException(CustomException): def __str__(self): return super().get_str('CommunicationChannelException') class MissingDataException(CustomException): def __str__(self): return super().get_str('MissingDataException') class NoFormsException(CustomException): def __str__(self): return super().get_str('NoFormsException') class NoPeersException(CustomException): def __str__(self): return super().get_str('NoPeersException') class NotExistentEmployeeException(CustomException): def __str__(self): return super().get_str('NotExistentEmployeeException')
class Customexception(Exception): def __init__(self, *args): if args: self.message = args[0] else: self.message = None def get_str(self, class_name): if self.message: return '{0}, {1} '.format(self.message, class_name) else: return '{0} has been raised'.format(class_name) class Communicationchannelexception(CustomException): def __str__(self): return super().get_str('CommunicationChannelException') class Missingdataexception(CustomException): def __str__(self): return super().get_str('MissingDataException') class Noformsexception(CustomException): def __str__(self): return super().get_str('NoFormsException') class Nopeersexception(CustomException): def __str__(self): return super().get_str('NoPeersException') class Notexistentemployeeexception(CustomException): def __str__(self): return super().get_str('NotExistentEmployeeException')
# Copyright 2014 Cloudera Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. # Base identifiers base_identifiers = [ 'add', 'aggregate', 'all', 'alter', 'and', 'api_version', 'as', 'asc', 'avro', 'between', 'bigint', 'binary', 'boolean', 'by', 'cached', 'case', 'cast', 'change', 'char', 'class', 'close_fn', 'column', 'columns', 'comment', 'compute', 'create', 'cross', 'data', 'database', 'databases', 'date', 'datetime', 'decimal', 'delimited', 'desc', 'describe', 'distinct', 'div', 'double', 'drop', 'else', 'end', 'escaped', 'exists', 'explain', 'external', 'false', 'fields', 'fileformat', 'finalize_fn', 'first', 'float', 'format', 'formatted', 'from', 'full', 'function', 'functions', 'group', 'having', 'if', 'in', 'incremental', 'init_fn', 'inner', 'inpath', 'insert', 'int', 'integer', 'intermediate', 'interval', 'into', 'invalidate', 'is', 'join', 'last', 'left', 'like', 'limit', 'lines', 'load', 'location', 'merge_fn', 'metadata', 'not', 'null', 'nulls', 'offset', 'on', 'or', 'order', 'outer', 'overwrite', 'parquet', 'parquetfile', 'partition', 'partitioned', 'partitions', 'prepare_fn', 'produced', 'rcfile', 'real', 'refresh', 'regexp', 'rename', 'replace', 'returns', 'right', 'rlike', 'row', 'schema', 'schemas', 'select', 'semi', 'sequencefile', 'serdeproperties', 'serialize_fn', 'set', 'show', 'smallint', 'stats', 'stored', 'straight_join', 'string', 'symbol', 'table', 'tables', 'tblproperties', 'terminated', 'textfile', 'then', 'timestamp', 'tinyint', 'to', 'true', 'uncached', 'union', 'update_fn', 'use', 'using', 'values', 'view', 'when', 'where', 'with', ]
base_identifiers = ['add', 'aggregate', 'all', 'alter', 'and', 'api_version', 'as', 'asc', 'avro', 'between', 'bigint', 'binary', 'boolean', 'by', 'cached', 'case', 'cast', 'change', 'char', 'class', 'close_fn', 'column', 'columns', 'comment', 'compute', 'create', 'cross', 'data', 'database', 'databases', 'date', 'datetime', 'decimal', 'delimited', 'desc', 'describe', 'distinct', 'div', 'double', 'drop', 'else', 'end', 'escaped', 'exists', 'explain', 'external', 'false', 'fields', 'fileformat', 'finalize_fn', 'first', 'float', 'format', 'formatted', 'from', 'full', 'function', 'functions', 'group', 'having', 'if', 'in', 'incremental', 'init_fn', 'inner', 'inpath', 'insert', 'int', 'integer', 'intermediate', 'interval', 'into', 'invalidate', 'is', 'join', 'last', 'left', 'like', 'limit', 'lines', 'load', 'location', 'merge_fn', 'metadata', 'not', 'null', 'nulls', 'offset', 'on', 'or', 'order', 'outer', 'overwrite', 'parquet', 'parquetfile', 'partition', 'partitioned', 'partitions', 'prepare_fn', 'produced', 'rcfile', 'real', 'refresh', 'regexp', 'rename', 'replace', 'returns', 'right', 'rlike', 'row', 'schema', 'schemas', 'select', 'semi', 'sequencefile', 'serdeproperties', 'serialize_fn', 'set', 'show', 'smallint', 'stats', 'stored', 'straight_join', 'string', 'symbol', 'table', 'tables', 'tblproperties', 'terminated', 'textfile', 'then', 'timestamp', 'tinyint', 'to', 'true', 'uncached', 'union', 'update_fn', 'use', 'using', 'values', 'view', 'when', 'where', 'with']
H = {0: [0], 1: [1, 2, 4, 8], 2: [3, 5, 6, 9, 10], 3: [7, 11]} M = {0: [0], 1: [1, 2, 4, 8, 16, 32], 2: [3, 5, 6, 9, 10, 12, 17, 18, 20, 24, 33, 34, 36, 40, 48], 3: [7, 11, 13, 14, 19, 21, 22, 25, 26, 28, 35, 37, 38, 41, 42, 44, 49, 50, 52, 56], 4: [15, 23, 27, 29, 30, 39, 43, 45, 46, 51, 53, 54, 57, 58], 5: [31, 47, 55, 59]} class Solution: def readBinaryWatch(self, num: int) -> List[str]: result = [] for i in range(num + 1): for h in H.get(i, []): for m in M.get(num - i, []): result.append('%d:%02d' % (h, m)) return result
h = {0: [0], 1: [1, 2, 4, 8], 2: [3, 5, 6, 9, 10], 3: [7, 11]} m = {0: [0], 1: [1, 2, 4, 8, 16, 32], 2: [3, 5, 6, 9, 10, 12, 17, 18, 20, 24, 33, 34, 36, 40, 48], 3: [7, 11, 13, 14, 19, 21, 22, 25, 26, 28, 35, 37, 38, 41, 42, 44, 49, 50, 52, 56], 4: [15, 23, 27, 29, 30, 39, 43, 45, 46, 51, 53, 54, 57, 58], 5: [31, 47, 55, 59]} class Solution: def read_binary_watch(self, num: int) -> List[str]: result = [] for i in range(num + 1): for h in H.get(i, []): for m in M.get(num - i, []): result.append('%d:%02d' % (h, m)) return result
yusuke_power = {"Yusuke Urameshi": "Spirit Gun"} hiei_power = {"Hiei": "Jagan Eye"} powers = dict() # Iteration for dictionary in (yusuke_power, hiei_power): for key, value in dictionary.items(): powers[key] = value # Dictionary Comprehension powers = {key: value for d in (yusuke_power, hiei_power) for key, value in d.items()} # Copy and update powers = yusuke_power.copy() powers.update(hiei_power) # Dictionary unpacking powers = {**yusuke_power, **hiei_power}
yusuke_power = {'Yusuke Urameshi': 'Spirit Gun'} hiei_power = {'Hiei': 'Jagan Eye'} powers = dict() for dictionary in (yusuke_power, hiei_power): for (key, value) in dictionary.items(): powers[key] = value powers = {key: value for d in (yusuke_power, hiei_power) for (key, value) in d.items()} powers = yusuke_power.copy() powers.update(hiei_power) powers = {**yusuke_power, **hiei_power}
SIMPLE_QUEUE = 'simple' WORK_QUEUE = 'work_queue' RABBITMQ_HOST = '0.0.0.0' LOG_EXCHANGE = 'logs' ROUTING_EXCHANGE = 'direct_exchange' TOPIC_EXCHANGE = 'topic_exchange' SEVERITIES = ['err', 'info', 'debug'] FACILITIES = ['kern', 'mail', 'user', 'local0']
simple_queue = 'simple' work_queue = 'work_queue' rabbitmq_host = '0.0.0.0' log_exchange = 'logs' routing_exchange = 'direct_exchange' topic_exchange = 'topic_exchange' severities = ['err', 'info', 'debug'] facilities = ['kern', 'mail', 'user', 'local0']
# triple nested exceptions passed = 1 def f(): try: foo() passed = 0 except: print("except 1") try: bar() passed = 0 except: print("except 2") try: baz() passed = 0 except: print("except 3") bak() passed = 0 try: f() passed = 0 except: print("f except") if (passed): print("PASS") else: print("FAIL")
passed = 1 def f(): try: foo() passed = 0 except: print('except 1') try: bar() passed = 0 except: print('except 2') try: baz() passed = 0 except: print('except 3') bak() passed = 0 try: f() passed = 0 except: print('f except') if passed: print('PASS') else: print('FAIL')
uctable = [ [ 194, 178 ], [ 194, 179 ], [ 194, 185 ], [ 194, 188 ], [ 194, 189 ], [ 194, 190 ], [ 224, 167, 180 ], [ 224, 167, 181 ], [ 224, 167, 182 ], [ 224, 167, 183 ], [ 224, 167, 184 ], [ 224, 167, 185 ], [ 224, 173, 178 ], [ 224, 173, 179 ], [ 224, 173, 180 ], [ 224, 173, 181 ], [ 224, 173, 182 ], [ 224, 173, 183 ], [ 224, 175, 176 ], [ 224, 175, 177 ], [ 224, 175, 178 ], [ 224, 177, 184 ], [ 224, 177, 185 ], [ 224, 177, 186 ], [ 224, 177, 187 ], [ 224, 177, 188 ], [ 224, 177, 189 ], [ 224, 177, 190 ], [ 224, 181, 176 ], [ 224, 181, 177 ], [ 224, 181, 178 ], [ 224, 181, 179 ], [ 224, 181, 180 ], [ 224, 181, 181 ], [ 224, 188, 170 ], [ 224, 188, 171 ], [ 224, 188, 172 ], [ 224, 188, 173 ], [ 224, 188, 174 ], [ 224, 188, 175 ], [ 224, 188, 176 ], [ 224, 188, 177 ], [ 224, 188, 178 ], [ 224, 188, 179 ], [ 225, 141, 169 ], [ 225, 141, 170 ], [ 225, 141, 171 ], [ 225, 141, 172 ], [ 225, 141, 173 ], [ 225, 141, 174 ], [ 225, 141, 175 ], [ 225, 141, 176 ], [ 225, 141, 177 ], [ 225, 141, 178 ], [ 225, 141, 179 ], [ 225, 141, 180 ], [ 225, 141, 181 ], [ 225, 141, 182 ], [ 225, 141, 183 ], [ 225, 141, 184 ], [ 225, 141, 185 ], [ 225, 141, 186 ], [ 225, 141, 187 ], [ 225, 141, 188 ], [ 225, 159, 176 ], [ 225, 159, 177 ], [ 225, 159, 178 ], [ 225, 159, 179 ], [ 225, 159, 180 ], [ 225, 159, 181 ], [ 225, 159, 182 ], [ 225, 159, 183 ], [ 225, 159, 184 ], [ 225, 159, 185 ], [ 225, 167, 154 ], [ 226, 129, 176 ], [ 226, 129, 180 ], [ 226, 129, 181 ], [ 226, 129, 182 ], [ 226, 129, 183 ], [ 226, 129, 184 ], [ 226, 129, 185 ], [ 226, 130, 128 ], [ 226, 130, 129 ], [ 226, 130, 130 ], [ 226, 130, 131 ], [ 226, 130, 132 ], [ 226, 130, 133 ], [ 226, 130, 134 ], [ 226, 130, 135 ], [ 226, 130, 136 ], [ 226, 130, 137 ], [ 226, 133, 144 ], [ 226, 133, 145 ], [ 226, 133, 146 ], [ 226, 133, 147 ], [ 226, 133, 148 ], [ 226, 133, 149 ], [ 226, 133, 150 ], [ 226, 133, 151 ], [ 226, 133, 152 ], [ 226, 133, 153 ], [ 226, 133, 154 ], [ 226, 133, 155 ], [ 226, 133, 156 ], [ 226, 133, 157 ], [ 226, 133, 158 ], [ 226, 133, 159 ], [ 226, 134, 137 ], [ 226, 145, 160 ], [ 226, 145, 161 ], [ 226, 145, 162 ], [ 226, 145, 163 ], [ 226, 145, 164 ], [ 226, 145, 165 ], [ 226, 145, 166 ], [ 226, 145, 167 ], [ 226, 145, 168 ], [ 226, 145, 169 ], [ 226, 145, 170 ], [ 226, 145, 171 ], [ 226, 145, 172 ], [ 226, 145, 173 ], [ 226, 145, 174 ], [ 226, 145, 175 ], [ 226, 145, 176 ], [ 226, 145, 177 ], [ 226, 145, 178 ], [ 226, 145, 179 ], [ 226, 145, 180 ], [ 226, 145, 181 ], [ 226, 145, 182 ], [ 226, 145, 183 ], [ 226, 145, 184 ], [ 226, 145, 185 ], [ 226, 145, 186 ], [ 226, 145, 187 ], [ 226, 145, 188 ], [ 226, 145, 189 ], [ 226, 145, 190 ], [ 226, 145, 191 ], [ 226, 146, 128 ], [ 226, 146, 129 ], [ 226, 146, 130 ], [ 226, 146, 131 ], [ 226, 146, 132 ], [ 226, 146, 133 ], [ 226, 146, 134 ], [ 226, 146, 135 ], [ 226, 146, 136 ], [ 226, 146, 137 ], [ 226, 146, 138 ], [ 226, 146, 139 ], [ 226, 146, 140 ], [ 226, 146, 141 ], [ 226, 146, 142 ], [ 226, 146, 143 ], [ 226, 146, 144 ], [ 226, 146, 145 ], [ 226, 146, 146 ], [ 226, 146, 147 ], [ 226, 146, 148 ], [ 226, 146, 149 ], [ 226, 146, 150 ], [ 226, 146, 151 ], [ 226, 146, 152 ], [ 226, 146, 153 ], [ 226, 146, 154 ], [ 226, 146, 155 ], [ 226, 147, 170 ], [ 226, 147, 171 ], [ 226, 147, 172 ], [ 226, 147, 173 ], [ 226, 147, 174 ], [ 226, 147, 175 ], [ 226, 147, 176 ], [ 226, 147, 177 ], [ 226, 147, 178 ], [ 226, 147, 179 ], [ 226, 147, 180 ], [ 226, 147, 181 ], [ 226, 147, 182 ], [ 226, 147, 183 ], [ 226, 147, 184 ], [ 226, 147, 185 ], [ 226, 147, 186 ], [ 226, 147, 187 ], [ 226, 147, 188 ], [ 226, 147, 189 ], [ 226, 147, 190 ], [ 226, 147, 191 ], [ 226, 157, 182 ], [ 226, 157, 183 ], [ 226, 157, 184 ], [ 226, 157, 185 ], [ 226, 157, 186 ], [ 226, 157, 187 ], [ 226, 157, 188 ], [ 226, 157, 189 ], [ 226, 157, 190 ], [ 226, 157, 191 ], [ 226, 158, 128 ], [ 226, 158, 129 ], [ 226, 158, 130 ], [ 226, 158, 131 ], [ 226, 158, 132 ], [ 226, 158, 133 ], [ 226, 158, 134 ], [ 226, 158, 135 ], [ 226, 158, 136 ], [ 226, 158, 137 ], [ 226, 158, 138 ], [ 226, 158, 139 ], [ 226, 158, 140 ], [ 226, 158, 141 ], [ 226, 158, 142 ], [ 226, 158, 143 ], [ 226, 158, 144 ], [ 226, 158, 145 ], [ 226, 158, 146 ], [ 226, 158, 147 ], [ 226, 179, 189 ], [ 227, 134, 146 ], [ 227, 134, 147 ], [ 227, 134, 148 ], [ 227, 134, 149 ], [ 227, 136, 160 ], [ 227, 136, 161 ], [ 227, 136, 162 ], [ 227, 136, 163 ], [ 227, 136, 164 ], [ 227, 136, 165 ], [ 227, 136, 166 ], [ 227, 136, 167 ], [ 227, 136, 168 ], [ 227, 136, 169 ], [ 227, 137, 136 ], [ 227, 137, 137 ], [ 227, 137, 138 ], [ 227, 137, 139 ], [ 227, 137, 140 ], [ 227, 137, 141 ], [ 227, 137, 142 ], [ 227, 137, 143 ], [ 227, 137, 145 ], [ 227, 137, 146 ], [ 227, 137, 147 ], [ 227, 137, 148 ], [ 227, 137, 149 ], [ 227, 137, 150 ], [ 227, 137, 151 ], [ 227, 137, 152 ], [ 227, 137, 153 ], [ 227, 137, 154 ], [ 227, 137, 155 ], [ 227, 137, 156 ], [ 227, 137, 157 ], [ 227, 137, 158 ], [ 227, 137, 159 ], [ 227, 138, 128 ], [ 227, 138, 129 ], [ 227, 138, 130 ], [ 227, 138, 131 ], [ 227, 138, 132 ], [ 227, 138, 133 ], [ 227, 138, 134 ], [ 227, 138, 135 ], [ 227, 138, 136 ], [ 227, 138, 137 ], [ 227, 138, 177 ], [ 227, 138, 178 ], [ 227, 138, 179 ], [ 227, 138, 180 ], [ 227, 138, 181 ], [ 227, 138, 182 ], [ 227, 138, 183 ], [ 227, 138, 184 ], [ 227, 138, 185 ], [ 227, 138, 186 ], [ 227, 138, 187 ], [ 227, 138, 188 ], [ 227, 138, 189 ], [ 227, 138, 190 ], [ 227, 138, 191 ], [ 234, 160, 176 ], [ 234, 160, 177 ], [ 234, 160, 178 ], [ 234, 160, 179 ], [ 234, 160, 180 ], [ 234, 160, 181 ], [ 240, 144, 132, 135 ], [ 240, 144, 132, 136 ], [ 240, 144, 132, 137 ], [ 240, 144, 132, 138 ], [ 240, 144, 132, 139 ], [ 240, 144, 132, 140 ], [ 240, 144, 132, 141 ], [ 240, 144, 132, 142 ], [ 240, 144, 132, 143 ], [ 240, 144, 132, 144 ], [ 240, 144, 132, 145 ], [ 240, 144, 132, 146 ], [ 240, 144, 132, 147 ], [ 240, 144, 132, 148 ], [ 240, 144, 132, 149 ], [ 240, 144, 132, 150 ], [ 240, 144, 132, 151 ], [ 240, 144, 132, 152 ], [ 240, 144, 132, 153 ], [ 240, 144, 132, 154 ], [ 240, 144, 132, 155 ], [ 240, 144, 132, 156 ], [ 240, 144, 132, 157 ], [ 240, 144, 132, 158 ], [ 240, 144, 132, 159 ], [ 240, 144, 132, 160 ], [ 240, 144, 132, 161 ], [ 240, 144, 132, 162 ], [ 240, 144, 132, 163 ], [ 240, 144, 132, 164 ], [ 240, 144, 132, 165 ], [ 240, 144, 132, 166 ], [ 240, 144, 132, 167 ], [ 240, 144, 132, 168 ], [ 240, 144, 132, 169 ], [ 240, 144, 132, 170 ], [ 240, 144, 132, 171 ], [ 240, 144, 132, 172 ], [ 240, 144, 132, 173 ], [ 240, 144, 132, 174 ], [ 240, 144, 132, 175 ], [ 240, 144, 132, 176 ], [ 240, 144, 132, 177 ], [ 240, 144, 132, 178 ], [ 240, 144, 132, 179 ], [ 240, 144, 133, 181 ], [ 240, 144, 133, 182 ], [ 240, 144, 133, 183 ], [ 240, 144, 133, 184 ], [ 240, 144, 134, 138 ], [ 240, 144, 134, 139 ], [ 240, 144, 139, 161 ], [ 240, 144, 139, 162 ], [ 240, 144, 139, 163 ], [ 240, 144, 139, 164 ], [ 240, 144, 139, 165 ], [ 240, 144, 139, 166 ], [ 240, 144, 139, 167 ], [ 240, 144, 139, 168 ], [ 240, 144, 139, 169 ], [ 240, 144, 139, 170 ], [ 240, 144, 139, 171 ], [ 240, 144, 139, 172 ], [ 240, 144, 139, 173 ], [ 240, 144, 139, 174 ], [ 240, 144, 139, 175 ], [ 240, 144, 139, 176 ], [ 240, 144, 139, 177 ], [ 240, 144, 139, 178 ], [ 240, 144, 139, 179 ], [ 240, 144, 139, 180 ], [ 240, 144, 139, 181 ], [ 240, 144, 139, 182 ], [ 240, 144, 139, 183 ], [ 240, 144, 139, 184 ], [ 240, 144, 139, 185 ], [ 240, 144, 139, 186 ], [ 240, 144, 139, 187 ], [ 240, 144, 140, 160 ], [ 240, 144, 140, 161 ], [ 240, 144, 140, 162 ], [ 240, 144, 140, 163 ], [ 240, 144, 161, 152 ], [ 240, 144, 161, 153 ], [ 240, 144, 161, 154 ], [ 240, 144, 161, 155 ], [ 240, 144, 161, 156 ], [ 240, 144, 161, 157 ], [ 240, 144, 161, 158 ], [ 240, 144, 161, 159 ], [ 240, 144, 161, 185 ], [ 240, 144, 161, 186 ], [ 240, 144, 161, 187 ], [ 240, 144, 161, 188 ], [ 240, 144, 161, 189 ], [ 240, 144, 161, 190 ], [ 240, 144, 161, 191 ], [ 240, 144, 162, 167 ], [ 240, 144, 162, 168 ], [ 240, 144, 162, 169 ], [ 240, 144, 162, 170 ], [ 240, 144, 162, 171 ], [ 240, 144, 162, 172 ], [ 240, 144, 162, 173 ], [ 240, 144, 162, 174 ], [ 240, 144, 162, 175 ], [ 240, 144, 163, 187 ], [ 240, 144, 163, 188 ], [ 240, 144, 163, 189 ], [ 240, 144, 163, 190 ], [ 240, 144, 163, 191 ], [ 240, 144, 164, 150 ], [ 240, 144, 164, 151 ], [ 240, 144, 164, 152 ], [ 240, 144, 164, 153 ], [ 240, 144, 164, 154 ], [ 240, 144, 164, 155 ], [ 240, 144, 166, 188 ], [ 240, 144, 166, 189 ], [ 240, 144, 167, 128 ], [ 240, 144, 167, 129 ], [ 240, 144, 167, 130 ], [ 240, 144, 167, 131 ], [ 240, 144, 167, 132 ], [ 240, 144, 167, 133 ], [ 240, 144, 167, 134 ], [ 240, 144, 167, 135 ], [ 240, 144, 167, 136 ], [ 240, 144, 167, 137 ], [ 240, 144, 167, 138 ], [ 240, 144, 167, 139 ], [ 240, 144, 167, 140 ], [ 240, 144, 167, 141 ], [ 240, 144, 167, 142 ], [ 240, 144, 167, 143 ], [ 240, 144, 167, 146 ], [ 240, 144, 167, 147 ], [ 240, 144, 167, 148 ], [ 240, 144, 167, 149 ], [ 240, 144, 167, 150 ], [ 240, 144, 167, 151 ], [ 240, 144, 167, 152 ], [ 240, 144, 167, 153 ], [ 240, 144, 167, 154 ], [ 240, 144, 167, 155 ], [ 240, 144, 167, 156 ], [ 240, 144, 167, 157 ], [ 240, 144, 167, 158 ], [ 240, 144, 167, 159 ], [ 240, 144, 167, 160 ], [ 240, 144, 167, 161 ], [ 240, 144, 167, 162 ], [ 240, 144, 167, 163 ], [ 240, 144, 167, 164 ], [ 240, 144, 167, 165 ], [ 240, 144, 167, 166 ], [ 240, 144, 167, 167 ], [ 240, 144, 167, 168 ], [ 240, 144, 167, 169 ], [ 240, 144, 167, 170 ], [ 240, 144, 167, 171 ], [ 240, 144, 167, 172 ], [ 240, 144, 167, 173 ], [ 240, 144, 167, 174 ], [ 240, 144, 167, 175 ], [ 240, 144, 167, 176 ], [ 240, 144, 167, 177 ], [ 240, 144, 167, 178 ], [ 240, 144, 167, 179 ], [ 240, 144, 167, 180 ], [ 240, 144, 167, 181 ], [ 240, 144, 167, 182 ], [ 240, 144, 167, 183 ], [ 240, 144, 167, 184 ], [ 240, 144, 167, 185 ], [ 240, 144, 167, 186 ], [ 240, 144, 167, 187 ], [ 240, 144, 167, 188 ], [ 240, 144, 167, 189 ], [ 240, 144, 167, 190 ], [ 240, 144, 167, 191 ], [ 240, 144, 169, 128 ], [ 240, 144, 169, 129 ], [ 240, 144, 169, 130 ], [ 240, 144, 169, 131 ], [ 240, 144, 169, 132 ], [ 240, 144, 169, 133 ], [ 240, 144, 169, 134 ], [ 240, 144, 169, 135 ], [ 240, 144, 169, 189 ], [ 240, 144, 169, 190 ], [ 240, 144, 170, 157 ], [ 240, 144, 170, 158 ], [ 240, 144, 170, 159 ], [ 240, 144, 171, 171 ], [ 240, 144, 171, 172 ], [ 240, 144, 171, 173 ], [ 240, 144, 171, 174 ], [ 240, 144, 171, 175 ], [ 240, 144, 173, 152 ], [ 240, 144, 173, 153 ], [ 240, 144, 173, 154 ], [ 240, 144, 173, 155 ], [ 240, 144, 173, 156 ], [ 240, 144, 173, 157 ], [ 240, 144, 173, 158 ], [ 240, 144, 173, 159 ], [ 240, 144, 173, 184 ], [ 240, 144, 173, 185 ], [ 240, 144, 173, 186 ], [ 240, 144, 173, 187 ], [ 240, 144, 173, 188 ], [ 240, 144, 173, 189 ], [ 240, 144, 173, 190 ], [ 240, 144, 173, 191 ], [ 240, 144, 174, 169 ], [ 240, 144, 174, 170 ], [ 240, 144, 174, 171 ], [ 240, 144, 174, 172 ], [ 240, 144, 174, 173 ], [ 240, 144, 174, 174 ], [ 240, 144, 174, 175 ], [ 240, 144, 179, 186 ], [ 240, 144, 179, 187 ], [ 240, 144, 179, 188 ], [ 240, 144, 179, 189 ], [ 240, 144, 179, 190 ], [ 240, 144, 179, 191 ], [ 240, 144, 185, 160 ], [ 240, 144, 185, 161 ], [ 240, 144, 185, 162 ], [ 240, 144, 185, 163 ], [ 240, 144, 185, 164 ], [ 240, 144, 185, 165 ], [ 240, 144, 185, 166 ], [ 240, 144, 185, 167 ], [ 240, 144, 185, 168 ], [ 240, 144, 185, 169 ], [ 240, 144, 185, 170 ], [ 240, 144, 185, 171 ], [ 240, 144, 185, 172 ], [ 240, 144, 185, 173 ], [ 240, 144, 185, 174 ], [ 240, 144, 185, 175 ], [ 240, 144, 185, 176 ], [ 240, 144, 185, 177 ], [ 240, 144, 185, 178 ], [ 240, 144, 185, 179 ], [ 240, 144, 185, 180 ], [ 240, 144, 185, 181 ], [ 240, 144, 185, 182 ], [ 240, 144, 185, 183 ], [ 240, 144, 185, 184 ], [ 240, 144, 185, 185 ], [ 240, 144, 185, 186 ], [ 240, 144, 185, 187 ], [ 240, 144, 185, 188 ], [ 240, 144, 185, 189 ], [ 240, 144, 185, 190 ], [ 240, 145, 129, 146 ], [ 240, 145, 129, 147 ], [ 240, 145, 129, 148 ], [ 240, 145, 129, 149 ], [ 240, 145, 129, 150 ], [ 240, 145, 129, 151 ], [ 240, 145, 129, 152 ], [ 240, 145, 129, 153 ], [ 240, 145, 129, 154 ], [ 240, 145, 129, 155 ], [ 240, 145, 129, 156 ], [ 240, 145, 129, 157 ], [ 240, 145, 129, 158 ], [ 240, 145, 129, 159 ], [ 240, 145, 129, 160 ], [ 240, 145, 129, 161 ], [ 240, 145, 129, 162 ], [ 240, 145, 129, 163 ], [ 240, 145, 129, 164 ], [ 240, 145, 129, 165 ], [ 240, 145, 135, 161 ], [ 240, 145, 135, 162 ], [ 240, 145, 135, 163 ], [ 240, 145, 135, 164 ], [ 240, 145, 135, 165 ], [ 240, 145, 135, 166 ], [ 240, 145, 135, 167 ], [ 240, 145, 135, 168 ], [ 240, 145, 135, 169 ], [ 240, 145, 135, 170 ], [ 240, 145, 135, 171 ], [ 240, 145, 135, 172 ], [ 240, 145, 135, 173 ], [ 240, 145, 135, 174 ], [ 240, 145, 135, 175 ], [ 240, 145, 135, 176 ], [ 240, 145, 135, 177 ], [ 240, 145, 135, 178 ], [ 240, 145, 135, 179 ], [ 240, 145, 135, 180 ], [ 240, 145, 156, 186 ], [ 240, 145, 156, 187 ], [ 240, 145, 163, 170 ], [ 240, 145, 163, 171 ], [ 240, 145, 163, 172 ], [ 240, 145, 163, 173 ], [ 240, 145, 163, 174 ], [ 240, 145, 163, 175 ], [ 240, 145, 163, 176 ], [ 240, 145, 163, 177 ], [ 240, 145, 163, 178 ], [ 240, 150, 173, 155 ], [ 240, 150, 173, 156 ], [ 240, 150, 173, 157 ], [ 240, 150, 173, 158 ], [ 240, 150, 173, 159 ], [ 240, 150, 173, 160 ], [ 240, 150, 173, 161 ], [ 240, 157, 141, 160 ], [ 240, 157, 141, 161 ], [ 240, 157, 141, 162 ], [ 240, 157, 141, 163 ], [ 240, 157, 141, 164 ], [ 240, 157, 141, 165 ], [ 240, 157, 141, 166 ], [ 240, 157, 141, 167 ], [ 240, 157, 141, 168 ], [ 240, 157, 141, 169 ], [ 240, 157, 141, 170 ], [ 240, 157, 141, 171 ], [ 240, 157, 141, 172 ], [ 240, 157, 141, 173 ], [ 240, 157, 141, 174 ], [ 240, 157, 141, 175 ], [ 240, 157, 141, 176 ], [ 240, 157, 141, 177 ], [ 240, 158, 163, 135 ], [ 240, 158, 163, 136 ], [ 240, 158, 163, 137 ], [ 240, 158, 163, 138 ], [ 240, 158, 163, 139 ], [ 240, 158, 163, 140 ], [ 240, 158, 163, 141 ], [ 240, 158, 163, 142 ], [ 240, 158, 163, 143 ], [ 240, 159, 132, 128 ], [ 240, 159, 132, 129 ], [ 240, 159, 132, 130 ], [ 240, 159, 132, 131 ], [ 240, 159, 132, 132 ], [ 240, 159, 132, 133 ], [ 240, 159, 132, 134 ], [ 240, 159, 132, 135 ], [ 240, 159, 132, 136 ], [ 240, 159, 132, 137 ], [ 240, 159, 132, 138 ], [ 240, 159, 132, 139 ], [ 240, 159, 132, 140 ] ]
uctable = [[194, 178], [194, 179], [194, 185], [194, 188], [194, 189], [194, 190], [224, 167, 180], [224, 167, 181], [224, 167, 182], [224, 167, 183], [224, 167, 184], [224, 167, 185], [224, 173, 178], [224, 173, 179], [224, 173, 180], [224, 173, 181], [224, 173, 182], [224, 173, 183], [224, 175, 176], [224, 175, 177], [224, 175, 178], [224, 177, 184], [224, 177, 185], [224, 177, 186], [224, 177, 187], [224, 177, 188], [224, 177, 189], [224, 177, 190], [224, 181, 176], [224, 181, 177], [224, 181, 178], [224, 181, 179], [224, 181, 180], [224, 181, 181], [224, 188, 170], [224, 188, 171], [224, 188, 172], [224, 188, 173], [224, 188, 174], [224, 188, 175], [224, 188, 176], [224, 188, 177], [224, 188, 178], [224, 188, 179], [225, 141, 169], [225, 141, 170], [225, 141, 171], [225, 141, 172], [225, 141, 173], [225, 141, 174], [225, 141, 175], [225, 141, 176], [225, 141, 177], [225, 141, 178], [225, 141, 179], [225, 141, 180], [225, 141, 181], [225, 141, 182], [225, 141, 183], [225, 141, 184], [225, 141, 185], [225, 141, 186], [225, 141, 187], [225, 141, 188], [225, 159, 176], [225, 159, 177], [225, 159, 178], [225, 159, 179], [225, 159, 180], [225, 159, 181], [225, 159, 182], [225, 159, 183], [225, 159, 184], [225, 159, 185], [225, 167, 154], [226, 129, 176], [226, 129, 180], [226, 129, 181], [226, 129, 182], [226, 129, 183], [226, 129, 184], [226, 129, 185], [226, 130, 128], [226, 130, 129], [226, 130, 130], [226, 130, 131], [226, 130, 132], [226, 130, 133], [226, 130, 134], [226, 130, 135], [226, 130, 136], [226, 130, 137], [226, 133, 144], [226, 133, 145], [226, 133, 146], [226, 133, 147], [226, 133, 148], [226, 133, 149], [226, 133, 150], [226, 133, 151], [226, 133, 152], [226, 133, 153], [226, 133, 154], [226, 133, 155], [226, 133, 156], [226, 133, 157], [226, 133, 158], [226, 133, 159], [226, 134, 137], [226, 145, 160], [226, 145, 161], [226, 145, 162], [226, 145, 163], [226, 145, 164], [226, 145, 165], [226, 145, 166], [226, 145, 167], [226, 145, 168], [226, 145, 169], [226, 145, 170], [226, 145, 171], [226, 145, 172], [226, 145, 173], [226, 145, 174], [226, 145, 175], [226, 145, 176], [226, 145, 177], [226, 145, 178], [226, 145, 179], [226, 145, 180], [226, 145, 181], [226, 145, 182], [226, 145, 183], [226, 145, 184], [226, 145, 185], [226, 145, 186], [226, 145, 187], [226, 145, 188], [226, 145, 189], [226, 145, 190], [226, 145, 191], [226, 146, 128], [226, 146, 129], [226, 146, 130], [226, 146, 131], [226, 146, 132], [226, 146, 133], [226, 146, 134], [226, 146, 135], [226, 146, 136], [226, 146, 137], [226, 146, 138], [226, 146, 139], [226, 146, 140], [226, 146, 141], [226, 146, 142], [226, 146, 143], [226, 146, 144], [226, 146, 145], [226, 146, 146], [226, 146, 147], [226, 146, 148], [226, 146, 149], [226, 146, 150], [226, 146, 151], [226, 146, 152], [226, 146, 153], [226, 146, 154], [226, 146, 155], [226, 147, 170], [226, 147, 171], [226, 147, 172], [226, 147, 173], [226, 147, 174], [226, 147, 175], [226, 147, 176], [226, 147, 177], [226, 147, 178], [226, 147, 179], [226, 147, 180], [226, 147, 181], [226, 147, 182], [226, 147, 183], [226, 147, 184], [226, 147, 185], [226, 147, 186], [226, 147, 187], [226, 147, 188], [226, 147, 189], [226, 147, 190], [226, 147, 191], [226, 157, 182], [226, 157, 183], [226, 157, 184], [226, 157, 185], [226, 157, 186], [226, 157, 187], [226, 157, 188], [226, 157, 189], [226, 157, 190], [226, 157, 191], [226, 158, 128], [226, 158, 129], [226, 158, 130], [226, 158, 131], [226, 158, 132], [226, 158, 133], [226, 158, 134], [226, 158, 135], [226, 158, 136], [226, 158, 137], [226, 158, 138], [226, 158, 139], [226, 158, 140], [226, 158, 141], [226, 158, 142], [226, 158, 143], [226, 158, 144], [226, 158, 145], [226, 158, 146], [226, 158, 147], [226, 179, 189], [227, 134, 146], [227, 134, 147], [227, 134, 148], [227, 134, 149], [227, 136, 160], [227, 136, 161], [227, 136, 162], [227, 136, 163], [227, 136, 164], [227, 136, 165], [227, 136, 166], [227, 136, 167], [227, 136, 168], [227, 136, 169], [227, 137, 136], [227, 137, 137], [227, 137, 138], [227, 137, 139], [227, 137, 140], [227, 137, 141], [227, 137, 142], [227, 137, 143], [227, 137, 145], [227, 137, 146], [227, 137, 147], [227, 137, 148], [227, 137, 149], [227, 137, 150], [227, 137, 151], [227, 137, 152], [227, 137, 153], [227, 137, 154], [227, 137, 155], [227, 137, 156], [227, 137, 157], [227, 137, 158], [227, 137, 159], [227, 138, 128], [227, 138, 129], [227, 138, 130], [227, 138, 131], [227, 138, 132], [227, 138, 133], [227, 138, 134], [227, 138, 135], [227, 138, 136], [227, 138, 137], [227, 138, 177], [227, 138, 178], [227, 138, 179], [227, 138, 180], [227, 138, 181], [227, 138, 182], [227, 138, 183], [227, 138, 184], [227, 138, 185], [227, 138, 186], [227, 138, 187], [227, 138, 188], [227, 138, 189], [227, 138, 190], [227, 138, 191], [234, 160, 176], [234, 160, 177], [234, 160, 178], [234, 160, 179], [234, 160, 180], [234, 160, 181], [240, 144, 132, 135], [240, 144, 132, 136], [240, 144, 132, 137], [240, 144, 132, 138], [240, 144, 132, 139], [240, 144, 132, 140], [240, 144, 132, 141], [240, 144, 132, 142], [240, 144, 132, 143], [240, 144, 132, 144], [240, 144, 132, 145], [240, 144, 132, 146], [240, 144, 132, 147], [240, 144, 132, 148], [240, 144, 132, 149], [240, 144, 132, 150], [240, 144, 132, 151], [240, 144, 132, 152], [240, 144, 132, 153], [240, 144, 132, 154], [240, 144, 132, 155], [240, 144, 132, 156], [240, 144, 132, 157], [240, 144, 132, 158], [240, 144, 132, 159], [240, 144, 132, 160], [240, 144, 132, 161], [240, 144, 132, 162], [240, 144, 132, 163], [240, 144, 132, 164], [240, 144, 132, 165], [240, 144, 132, 166], [240, 144, 132, 167], [240, 144, 132, 168], [240, 144, 132, 169], [240, 144, 132, 170], [240, 144, 132, 171], [240, 144, 132, 172], [240, 144, 132, 173], [240, 144, 132, 174], [240, 144, 132, 175], [240, 144, 132, 176], [240, 144, 132, 177], [240, 144, 132, 178], [240, 144, 132, 179], [240, 144, 133, 181], [240, 144, 133, 182], [240, 144, 133, 183], [240, 144, 133, 184], [240, 144, 134, 138], [240, 144, 134, 139], [240, 144, 139, 161], [240, 144, 139, 162], [240, 144, 139, 163], [240, 144, 139, 164], [240, 144, 139, 165], [240, 144, 139, 166], [240, 144, 139, 167], [240, 144, 139, 168], [240, 144, 139, 169], [240, 144, 139, 170], [240, 144, 139, 171], [240, 144, 139, 172], [240, 144, 139, 173], [240, 144, 139, 174], [240, 144, 139, 175], [240, 144, 139, 176], [240, 144, 139, 177], [240, 144, 139, 178], [240, 144, 139, 179], [240, 144, 139, 180], [240, 144, 139, 181], [240, 144, 139, 182], [240, 144, 139, 183], [240, 144, 139, 184], [240, 144, 139, 185], [240, 144, 139, 186], [240, 144, 139, 187], [240, 144, 140, 160], [240, 144, 140, 161], [240, 144, 140, 162], [240, 144, 140, 163], [240, 144, 161, 152], [240, 144, 161, 153], [240, 144, 161, 154], [240, 144, 161, 155], [240, 144, 161, 156], [240, 144, 161, 157], [240, 144, 161, 158], [240, 144, 161, 159], [240, 144, 161, 185], [240, 144, 161, 186], [240, 144, 161, 187], [240, 144, 161, 188], [240, 144, 161, 189], [240, 144, 161, 190], [240, 144, 161, 191], [240, 144, 162, 167], [240, 144, 162, 168], [240, 144, 162, 169], [240, 144, 162, 170], [240, 144, 162, 171], [240, 144, 162, 172], [240, 144, 162, 173], [240, 144, 162, 174], [240, 144, 162, 175], [240, 144, 163, 187], [240, 144, 163, 188], [240, 144, 163, 189], [240, 144, 163, 190], [240, 144, 163, 191], [240, 144, 164, 150], [240, 144, 164, 151], [240, 144, 164, 152], [240, 144, 164, 153], [240, 144, 164, 154], [240, 144, 164, 155], [240, 144, 166, 188], [240, 144, 166, 189], [240, 144, 167, 128], [240, 144, 167, 129], [240, 144, 167, 130], [240, 144, 167, 131], [240, 144, 167, 132], [240, 144, 167, 133], [240, 144, 167, 134], [240, 144, 167, 135], [240, 144, 167, 136], [240, 144, 167, 137], [240, 144, 167, 138], [240, 144, 167, 139], [240, 144, 167, 140], [240, 144, 167, 141], [240, 144, 167, 142], [240, 144, 167, 143], [240, 144, 167, 146], [240, 144, 167, 147], [240, 144, 167, 148], [240, 144, 167, 149], [240, 144, 167, 150], [240, 144, 167, 151], [240, 144, 167, 152], [240, 144, 167, 153], [240, 144, 167, 154], [240, 144, 167, 155], [240, 144, 167, 156], [240, 144, 167, 157], [240, 144, 167, 158], [240, 144, 167, 159], [240, 144, 167, 160], [240, 144, 167, 161], [240, 144, 167, 162], [240, 144, 167, 163], [240, 144, 167, 164], [240, 144, 167, 165], [240, 144, 167, 166], [240, 144, 167, 167], [240, 144, 167, 168], [240, 144, 167, 169], [240, 144, 167, 170], [240, 144, 167, 171], [240, 144, 167, 172], [240, 144, 167, 173], [240, 144, 167, 174], [240, 144, 167, 175], [240, 144, 167, 176], [240, 144, 167, 177], [240, 144, 167, 178], [240, 144, 167, 179], [240, 144, 167, 180], [240, 144, 167, 181], [240, 144, 167, 182], [240, 144, 167, 183], [240, 144, 167, 184], [240, 144, 167, 185], [240, 144, 167, 186], [240, 144, 167, 187], [240, 144, 167, 188], [240, 144, 167, 189], [240, 144, 167, 190], [240, 144, 167, 191], [240, 144, 169, 128], [240, 144, 169, 129], [240, 144, 169, 130], [240, 144, 169, 131], [240, 144, 169, 132], [240, 144, 169, 133], [240, 144, 169, 134], [240, 144, 169, 135], [240, 144, 169, 189], [240, 144, 169, 190], [240, 144, 170, 157], [240, 144, 170, 158], [240, 144, 170, 159], [240, 144, 171, 171], [240, 144, 171, 172], [240, 144, 171, 173], [240, 144, 171, 174], [240, 144, 171, 175], [240, 144, 173, 152], [240, 144, 173, 153], [240, 144, 173, 154], [240, 144, 173, 155], [240, 144, 173, 156], [240, 144, 173, 157], [240, 144, 173, 158], [240, 144, 173, 159], [240, 144, 173, 184], [240, 144, 173, 185], [240, 144, 173, 186], [240, 144, 173, 187], [240, 144, 173, 188], [240, 144, 173, 189], [240, 144, 173, 190], [240, 144, 173, 191], [240, 144, 174, 169], [240, 144, 174, 170], [240, 144, 174, 171], [240, 144, 174, 172], [240, 144, 174, 173], [240, 144, 174, 174], [240, 144, 174, 175], [240, 144, 179, 186], [240, 144, 179, 187], [240, 144, 179, 188], [240, 144, 179, 189], [240, 144, 179, 190], [240, 144, 179, 191], [240, 144, 185, 160], [240, 144, 185, 161], [240, 144, 185, 162], [240, 144, 185, 163], [240, 144, 185, 164], [240, 144, 185, 165], [240, 144, 185, 166], [240, 144, 185, 167], [240, 144, 185, 168], [240, 144, 185, 169], [240, 144, 185, 170], [240, 144, 185, 171], [240, 144, 185, 172], [240, 144, 185, 173], [240, 144, 185, 174], [240, 144, 185, 175], [240, 144, 185, 176], [240, 144, 185, 177], [240, 144, 185, 178], [240, 144, 185, 179], [240, 144, 185, 180], [240, 144, 185, 181], [240, 144, 185, 182], [240, 144, 185, 183], [240, 144, 185, 184], [240, 144, 185, 185], [240, 144, 185, 186], [240, 144, 185, 187], [240, 144, 185, 188], [240, 144, 185, 189], [240, 144, 185, 190], [240, 145, 129, 146], [240, 145, 129, 147], [240, 145, 129, 148], [240, 145, 129, 149], [240, 145, 129, 150], [240, 145, 129, 151], [240, 145, 129, 152], [240, 145, 129, 153], [240, 145, 129, 154], [240, 145, 129, 155], [240, 145, 129, 156], [240, 145, 129, 157], [240, 145, 129, 158], [240, 145, 129, 159], [240, 145, 129, 160], [240, 145, 129, 161], [240, 145, 129, 162], [240, 145, 129, 163], [240, 145, 129, 164], [240, 145, 129, 165], [240, 145, 135, 161], [240, 145, 135, 162], [240, 145, 135, 163], [240, 145, 135, 164], [240, 145, 135, 165], [240, 145, 135, 166], [240, 145, 135, 167], [240, 145, 135, 168], [240, 145, 135, 169], [240, 145, 135, 170], [240, 145, 135, 171], [240, 145, 135, 172], [240, 145, 135, 173], [240, 145, 135, 174], [240, 145, 135, 175], [240, 145, 135, 176], [240, 145, 135, 177], [240, 145, 135, 178], [240, 145, 135, 179], [240, 145, 135, 180], [240, 145, 156, 186], [240, 145, 156, 187], [240, 145, 163, 170], [240, 145, 163, 171], [240, 145, 163, 172], [240, 145, 163, 173], [240, 145, 163, 174], [240, 145, 163, 175], [240, 145, 163, 176], [240, 145, 163, 177], [240, 145, 163, 178], [240, 150, 173, 155], [240, 150, 173, 156], [240, 150, 173, 157], [240, 150, 173, 158], [240, 150, 173, 159], [240, 150, 173, 160], [240, 150, 173, 161], [240, 157, 141, 160], [240, 157, 141, 161], [240, 157, 141, 162], [240, 157, 141, 163], [240, 157, 141, 164], [240, 157, 141, 165], [240, 157, 141, 166], [240, 157, 141, 167], [240, 157, 141, 168], [240, 157, 141, 169], [240, 157, 141, 170], [240, 157, 141, 171], [240, 157, 141, 172], [240, 157, 141, 173], [240, 157, 141, 174], [240, 157, 141, 175], [240, 157, 141, 176], [240, 157, 141, 177], [240, 158, 163, 135], [240, 158, 163, 136], [240, 158, 163, 137], [240, 158, 163, 138], [240, 158, 163, 139], [240, 158, 163, 140], [240, 158, 163, 141], [240, 158, 163, 142], [240, 158, 163, 143], [240, 159, 132, 128], [240, 159, 132, 129], [240, 159, 132, 130], [240, 159, 132, 131], [240, 159, 132, 132], [240, 159, 132, 133], [240, 159, 132, 134], [240, 159, 132, 135], [240, 159, 132, 136], [240, 159, 132, 137], [240, 159, 132, 138], [240, 159, 132, 139], [240, 159, 132, 140]]
#A def greeting(x :str) -> str: return "hello, "+ x def main(): # input s = input() # compute # output print(greeting(s)) if __name__ == '__main__': main()
def greeting(x: str) -> str: return 'hello, ' + x def main(): s = input() print(greeting(s)) if __name__ == '__main__': main()
def test_delete_first__group(app): app.session.open_home_page() app.session.login("admin", "secret") app.group.delete_first_group() app.session.logout()
def test_delete_first__group(app): app.session.open_home_page() app.session.login('admin', 'secret') app.group.delete_first_group() app.session.logout()
#####count freq of words in text file word_count= dict() with open(r'C:/Users/Jen/Downloads/resumes/PracticeCodeM/cantrbry/plrabn12.txt', 'r') as fi: for line in fi: words = line.split() prepared_words = [w.lower() for w in words] for w in prepared_words: word_count[w] = 1 if w not in word_count else word_count[w]+1 def most_commmon_words(num=10): sorted_words = sorted(word_count, key=word_count.get, reverse=True) return sorted_words[:num] pprint_here = '\n'.join(most_commmon_words(5)) print(pprint_here)
word_count = dict() with open('C:/Users/Jen/Downloads/resumes/PracticeCodeM/cantrbry/plrabn12.txt', 'r') as fi: for line in fi: words = line.split() prepared_words = [w.lower() for w in words] for w in prepared_words: word_count[w] = 1 if w not in word_count else word_count[w] + 1 def most_commmon_words(num=10): sorted_words = sorted(word_count, key=word_count.get, reverse=True) return sorted_words[:num] pprint_here = '\n'.join(most_commmon_words(5)) print(pprint_here)
# Copyright 2018 Oinam Romesh Meitei. All Rights Reserved. # # Licensed to the Apache Software Foundation (ASF) under one # or more contributor license agreements. See the NOTICE file # distributed with this work for additional information # regarding copyright ownership. The ASF licenses this file # to you under the Apache License, Version 2.0 (the # "License"); you may not use this file except in compliance # with the License. You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, # software distributed under the License is distributed on an # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY # KIND, either express or implied. See the License for the # specific language governing permissions and limitations # under the License. class molog: filname = '' def __init__(self): apple = 0 def set_name(self,string): molog.filname = string def initiate(self): out = open(molog.filname,'w') out.write(' ******************\n') out.write(' ***** MOLEPY *****\n') out.write(' ******************\n') out.write('\n') out.close() def writer(self,str1,*args): out = open(molog.filname,'a') out.write(str1.format(*args)) out.close()
class Molog: filname = '' def __init__(self): apple = 0 def set_name(self, string): molog.filname = string def initiate(self): out = open(molog.filname, 'w') out.write(' ******************\n') out.write(' ***** MOLEPY *****\n') out.write(' ******************\n') out.write('\n') out.close() def writer(self, str1, *args): out = open(molog.filname, 'a') out.write(str1.format(*args)) out.close()
Dev = { "db_server": "Dbsed4555", "user": "<db_username>", "passwd": "<password>", "driver": "SQL Server", "port": "1433" } Oracle = { "db_server": "es20-scan01", "port": "1521", "user": "<db_username>", "passwd": "<password>", "service_name": "cmc1st01svc.uhc.com" } Sybase = { "db_server": "DBSPS0181", "user": "<db_username>", "passwd": "<password>", "driver": "Adaptive Server Enterprise", "port": "4106" } # Test = { # "db_server": "", # "user": "", # "passwd": "my secret password", # "driver": "SQL Server" # } # # Stage = { # "db_server": "Dbsed4555", # "user": "<db_username>", # "passwd": "<password>", # "driver": "SQL Server" # } # # Prod = { # "db_server": "localhost", # "user": "", # "passwd": "my secret password", # "driver": "SQL Server" # }
dev = {'db_server': 'Dbsed4555', 'user': '<db_username>', 'passwd': '<password>', 'driver': 'SQL Server', 'port': '1433'} oracle = {'db_server': 'es20-scan01', 'port': '1521', 'user': '<db_username>', 'passwd': '<password>', 'service_name': 'cmc1st01svc.uhc.com'} sybase = {'db_server': 'DBSPS0181', 'user': '<db_username>', 'passwd': '<password>', 'driver': 'Adaptive Server Enterprise', 'port': '4106'}
message_id = { b"\x00\x00": "init", b"\x00\x01": "ping", b"\x00\x02": "pong", b"\x00\x03": "give nodes", b"\x00\x04": "take nodes", b"\x00\x05": "give next headers", b"\x00\x06": "take the headers", b"\x00\x07": "give blocks", b"\x00\x08": "take the blocks", b"\x00\x09": "give the txos", b"\x00\x0a": "take the txos", b"\x00\x0b": "give outputs", b"\x00\x0c": "take TBM transaction", b"\x00\x0d": "give TBM transaction", b"\x00\x0e": "take tip info", b"\x00\x0f": "find common root", b"\x00\x10": "find common root response" } inv_message_id = {v: k for k, v in message_id.items()}
message_id = {b'\x00\x00': 'init', b'\x00\x01': 'ping', b'\x00\x02': 'pong', b'\x00\x03': 'give nodes', b'\x00\x04': 'take nodes', b'\x00\x05': 'give next headers', b'\x00\x06': 'take the headers', b'\x00\x07': 'give blocks', b'\x00\x08': 'take the blocks', b'\x00\t': 'give the txos', b'\x00\n': 'take the txos', b'\x00\x0b': 'give outputs', b'\x00\x0c': 'take TBM transaction', b'\x00\r': 'give TBM transaction', b'\x00\x0e': 'take tip info', b'\x00\x0f': 'find common root', b'\x00\x10': 'find common root response'} inv_message_id = {v: k for (k, v) in message_id.items()}
def accuracy(y_test, y): cont = 0 for i in range(len(y)): if y[i] == y_test[i]: cont += 1 return cont / float(len(y)) def f_measure(y_test, y, beta=1): tp = 0.0 # true pos fp = 0.0 # false pos tn = 0.0 # true neg fn = 0.0 # false neg for i in range(len(y)): if y_test[i] == 1.0 and y[i] == 1.0: tp += 1.0 elif y_test[i] == 1.0 and y[i] == 0.0: fp += 1.0 elif y_test[i] == 0.0 and y[i] == 0.0: tn += 1.0 elif y_test[i] == 0.0 and y[i] == 1.0: fn += 1.0 if (tp + fp) != 0.0: precision = tp / (tp + fp) else: precision = 0.0 if (tp + fn) != 0.0: recall = tp / (tp + fn) else: recall = 0.0 if (((beta ** 2.0) * precision) + recall) != 0: resultado = (1.0 + (beta ** 2.0)) * ((precision * recall) / (((beta ** 2.0) * precision) + recall)) else: resultado = 0.0 return resultado
def accuracy(y_test, y): cont = 0 for i in range(len(y)): if y[i] == y_test[i]: cont += 1 return cont / float(len(y)) def f_measure(y_test, y, beta=1): tp = 0.0 fp = 0.0 tn = 0.0 fn = 0.0 for i in range(len(y)): if y_test[i] == 1.0 and y[i] == 1.0: tp += 1.0 elif y_test[i] == 1.0 and y[i] == 0.0: fp += 1.0 elif y_test[i] == 0.0 and y[i] == 0.0: tn += 1.0 elif y_test[i] == 0.0 and y[i] == 1.0: fn += 1.0 if tp + fp != 0.0: precision = tp / (tp + fp) else: precision = 0.0 if tp + fn != 0.0: recall = tp / (tp + fn) else: recall = 0.0 if beta ** 2.0 * precision + recall != 0: resultado = (1.0 + beta ** 2.0) * (precision * recall / (beta ** 2.0 * precision + recall)) else: resultado = 0.0 return resultado
name0_1_1_0_1_0_0 = None name0_1_1_0_1_0_1 = None name0_1_1_0_1_0_2 = None name0_1_1_0_1_0_3 = None name0_1_1_0_1_0_4 = None
name0_1_1_0_1_0_0 = None name0_1_1_0_1_0_1 = None name0_1_1_0_1_0_2 = None name0_1_1_0_1_0_3 = None name0_1_1_0_1_0_4 = None
# 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 isSymmetric(self, root: Optional[TreeNode]) -> bool: # both does not exist if not root.left and not root.right: return True # one exists - left or right elif not root.left or not root.right: return False # both left and right exists stack1=[root.left] output1=[root.left.val] stack2=[root.right] output2=[root.right.val] # append left first while(stack1): cur = stack1.pop(0) if cur.left: stack1.append(cur.left) output1.append(cur.left.val) else: output1.append(101) # 101 = null if cur.right: stack1.append(cur.right) output1.append(cur.right.val) else: output1.append(101) # append right first while(stack2): cur = stack2.pop(0) if cur.right: output2.append(cur.right.val) stack2.append(cur.right) else: output2.append(101) if cur.left: output2.append(cur.left.val) stack2.append(cur.left) else: output2.append(101) if output1==output2: return True else: return False
class Solution: def is_symmetric(self, root: Optional[TreeNode]) -> bool: if not root.left and (not root.right): return True elif not root.left or not root.right: return False stack1 = [root.left] output1 = [root.left.val] stack2 = [root.right] output2 = [root.right.val] while stack1: cur = stack1.pop(0) if cur.left: stack1.append(cur.left) output1.append(cur.left.val) else: output1.append(101) if cur.right: stack1.append(cur.right) output1.append(cur.right.val) else: output1.append(101) while stack2: cur = stack2.pop(0) if cur.right: output2.append(cur.right.val) stack2.append(cur.right) else: output2.append(101) if cur.left: output2.append(cur.left.val) stack2.append(cur.left) else: output2.append(101) if output1 == output2: return True else: return False
load("@bazel_gazelle//:deps.bzl", "go_repository") def go_dependencies(): go_repository( name = "com_github_aws_aws_sdk_go", importpath = "github.com/aws/aws-sdk-go", sum = "h1:3+AsCrxxnhiUQEhWV+j3kEs7aBCIn2qkDjA+elpxYPU=", version = "v1.33.13", ) go_repository( name = "com_github_bazelbuild_remote_apis", importpath = "github.com/bazelbuild/remote-apis", patches = ["@com_github_buildbarn_bb_storage//:patches/com_github_bazelbuild_remote_apis/golang.diff"], sum = "h1:in8ww8rHwdcmLN3J9atiRDvAaYHobXBJzp7uAxlUREU=", version = "v0.0.0-20201030192148-aa8e718768c2", ) go_repository( name = "com_github_beorn7_perks", importpath = "github.com/beorn7/perks", sum = "h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=", version = "v1.0.1", ) go_repository( name = "com_github_buildbarn_bb_storage", importpath = "github.com/buildbarn/bb-storage", sum = "h1:3AAcc2jsQLIZKhJn3NFPX6FLDDpnF9qNEGJhvHmW+4k=", version = "v0.0.0-20210107084738-1b5cc8edeecb", ) go_repository( name = "com_github_golang_mock", importpath = "github.com/golang/mock", patches = ["@com_github_buildbarn_bb_storage//:patches/com_github_golang_mock/mocks-for-funcs.diff"], sum = "h1:YS+8QJ8yKSoB7Qy3WF0DMDFj2TkfASqhc0aNIIxjl6I=", version = "v1.4.4-0.20200406172829-6d816de489c1", ) go_repository( name = "com_github_google_uuid", importpath = "github.com/google/uuid", sum = "h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=", version = "v1.1.1", ) go_repository( name = "com_github_go_redis_redis", importpath = "github.com/go-redis/redis", sum = "h1:BKZuG6mCnRj5AOaWJXoCgf6rqTYnYJLe4en2hxT7r9o=", version = "v6.15.8+incompatible", ) go_repository( name = "com_github_grpc_ecosystem_go_grpc_prometheus", importpath = "github.com/grpc-ecosystem/go-grpc-prometheus", patches = ["@com_github_buildbarn_bb_storage//:patches/com_github_grpc_ecosystem_go_grpc_prometheus/client-metrics-prevent-handled-twice.diff"], sum = "h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho=", version = "v1.2.0", ) go_repository( name = "com_github_lazybeaver_xorshift", importpath = "github.com/lazybeaver/xorshift", sum = "h1:TfmftEfB1zJiDTFi3Qw1xlbEbfJPKUhEDC19clfBMb8=", version = "v0.0.0-20170702203709-ce511d4823dd", ) go_repository( name = "com_github_matttproud_golang_protobuf_extensions", importpath = "github.com/matttproud/golang_protobuf_extensions", sum = "h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=", version = "v1.0.1", ) go_repository( name = "com_github_prometheus_client_golang", importpath = "github.com/prometheus/client_golang", sum = "h1:NTGy1Ja9pByO+xAeH/qiWnLrKtr3hJPNjaVUwnjpdpA=", version = "v1.7.1", ) go_repository( name = "com_github_cespare_xxhash_v2", importpath = "github.com/cespare/xxhash/v2", sum = "h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=", version = "v2.1.1", ) go_repository( name = "com_github_prometheus_client_model", importpath = "github.com/prometheus/client_model", sum = "h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M=", version = "v0.2.0", ) go_repository( name = "com_github_prometheus_common", importpath = "github.com/prometheus/common", sum = "h1:RyRA7RzGXQZiW+tGMr7sxa85G1z0yOpM1qq5c8lNawc=", version = "v0.10.0", ) go_repository( name = "com_github_prometheus_procfs", importpath = "github.com/prometheus/procfs", sum = "h1:F0+tqvhOksq22sc6iCHF5WGlWjdwj92p0udFh1VFBS8=", version = "v0.1.3", ) go_repository( name = "com_github_stretchr_testify", importpath = "github.com/stretchr/testify", sum = "h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=", version = "v1.6.1", ) go_repository( name = "in_gopkg_yaml_v2", importpath = "gopkg.in/yaml.v2", sum = "h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=", version = "v2.3.0", ) go_repository( name = "io_opencensus_go_contrib_exporter_prometheus", importpath = "contrib.go.opencensus.io/exporter/prometheus", sum = "h1:9PUk0/8V0LGoPqVCrf8fQZJkFGBxudu8jOjQSMwoD6w=", version = "v0.2.0", ) go_repository( name = "io_opencensus_go_contrib_exporter_jaeger", importpath = "contrib.go.opencensus.io/exporter/jaeger", sum = "h1:nhTv/Ry3lGmqbJ/JGvCjWxBl5ozRfqo86Ngz59UAlfk=", version = "v0.2.0", ) go_repository( name = "dev_gocloud", importpath = "gocloud.dev", sum = "h1:mbEKMfnyPV7W1Rj35R1xXfjszs9dXkwSOq2KoFr25g8=", version = "v0.20.0", ) go_repository( name = "org_golang_google_api", importpath = "google.golang.org/api", sum = "h1:BaiDisFir8O4IJxvAabCGGkQ6yCJegNQqSVoYUNAnbk=", version = "v0.29.0", ) go_repository( name = "com_github_uber_jaeger_client_go", importpath = "github.com/uber/jaeger-client-go", sum = "h1:Q2Pp6v3QYiocMxomCaJuwQGFt7E53bPYqEgug/AoBtY=", version = "v2.16.0+incompatible", ) go_repository( name = "org_golang_x_sync", importpath = "golang.org/x/sync", sum = "h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA=", version = "v0.0.0-20200625203802-6e8e738ad208", ) go_repository( name = "io_opencensus_go", importpath = "go.opencensus.io", sum = "h1:LYy1Hy3MJdrCdMwwzxA/dRok4ejH+RwNGbuoD9fCjto=", version = "v0.22.4", ) go_repository( name = "com_google_cloud_go", importpath = "cloud.google.com/go", sum = "h1:vtAfVc723K3xKq1BQydk/FyCldnaNFhGhpJxaJzgRMQ=", version = "v0.58.0", ) go_repository( name = "org_golang_x_xerrors", importpath = "golang.org/x/xerrors", sum = "h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=", version = "v0.0.0-20191204190536-9bdfabe68543", ) go_repository( name = "com_github_hashicorp_golang_lru", importpath = "github.com/hashicorp/golang-lru", sum = "h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU=", version = "v0.5.1", ) go_repository( name = "com_github_googleapis_gax_go", importpath = "github.com/googleapis/gax-go", sum = "h1:silFMLAnr330+NRuag/VjIGF7TLp/LBrV2CJKFLWEww=", version = "v2.0.2+incompatible", ) go_repository( name = "org_golang_x_oauth2", importpath = "golang.org/x/oauth2", sum = "h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw=", version = "v0.0.0-20200107190931-bf48bf16ab8d", ) go_repository( name = "com_github_google_wire", build_extra_args = ["--exclude=internal/wire/testdata"], importpath = "github.com/google/wire", sum = "h1:kXcsA/rIGzJImVqPdhfnr6q0xsS9gU0515q1EPpJ9fE=", version = "v0.4.0", ) go_repository( name = "com_github_azure_azure_pipeline_go", importpath = "github.com/Azure/azure-pipeline-go", sum = "h1:6oiIS9yaG6XCCzhgAgKFfIWyo4LLCiDhZot6ltoThhY=", version = "v0.2.2", ) go_repository( name = "com_github_azure_azure_storage_blob_go", importpath = "github.com/Azure/azure-storage-blob-go", sum = "h1:evCwGreYo3XLeBV4vSxLbLiYb6e0SzsJiXQVRGsRXxs=", version = "v0.10.0", ) go_repository( name = "com_github_google_go_jsonnet", importpath = "github.com/google/go-jsonnet", patches = ["@com_github_buildbarn_bb_storage//:patches/com_github_google_go_jsonnet/astgen.diff"], sum = "h1:Nb4EEOp+rdeGGyB1rQ5eisgSAqrTnhf9ip+X6lzZbY0=", version = "v0.16.0", ) go_repository( name = "com_github_fatih_color", importpath = "github.com/fatih/color", sum = "h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s=", version = "v1.9.0", ) go_repository( name = "com_github_gorilla_mux", importpath = "github.com/gorilla/mux", sum = "h1:VuZ8uybHlWmqV03+zRzdwKL4tUnIp1MAQtp1mIFE1bc=", version = "v1.7.4", ) go_repository( name = "com_github_googleapis_gax_go_v2", importpath = "github.com/googleapis/gax-go/v2", sum = "h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=", version = "v2.0.5", ) go_repository( name = "com_github_mattn_go_ieproxy", importpath = "github.com/mattn/go-ieproxy", sum = "h1:qiyop7gCflfhwCzGyeT0gro3sF9AIg9HU98JORTkqfI=", version = "v0.0.1", ) go_repository( name = "org_golang_google_grpc", build_file_proto_mode = "disable", importpath = "google.golang.org/grpc", sum = "h1:T7P4R73V3SSDPhH7WW7ATbfViLtmamH0DKrP3f9AuDI=", version = "v1.31.0", ) go_repository( name = "org_golang_x_lint", importpath = "golang.org/x/lint", sum = "h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k=", version = "v0.0.0-20200302205851-738671d3881b", ) go_repository( name = "co_honnef_go_tools", importpath = "honnef.co/go/tools", sum = "h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=", version = "v0.0.1-2020.1.4", ) go_repository( name = "com_github_alecthomas_template", importpath = "github.com/alecthomas/template", sum = "h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM=", version = "v0.0.0-20190718012654-fb15b899a751", ) go_repository( name = "com_github_alecthomas_units", importpath = "github.com/alecthomas/units", sum = "h1:Hs82Z41s6SdL1CELW+XaDYmOH4hkBN4/N9og/AsOv7E=", version = "v0.0.0-20190717042225-c3de453c63f4", ) go_repository( name = "com_github_azure_azure_amqp_common_go_v3", importpath = "github.com/Azure/azure-amqp-common-go/v3", sum = "h1:j9tjcwhypb/jek3raNrwlCIl7iKQYOug7CLpSyBBodc=", version = "v3.0.0", ) go_repository( name = "com_github_azure_azure_sdk_for_go", importpath = "github.com/Azure/azure-sdk-for-go", sum = "h1:aFlw3lP7ZHQi4m1kWCpcwYtczhDkGhDoRaMTaxcOf68=", version = "v37.1.0+incompatible", ) go_repository( name = "com_github_azure_azure_service_bus_go", importpath = "github.com/Azure/azure-service-bus-go", sum = "h1:w9foWsHoOt1n8R0O58Co/ddrazx5vfDY0g64/6UWyuo=", version = "v0.10.1", ) go_repository( name = "com_github_azure_go_amqp", importpath = "github.com/Azure/go-amqp", sum = "h1:/Uyqh30J5JrDFAOERQtEqP0qPWkrNXxr94vRnSa54Ac=", version = "v0.12.7", ) go_repository( name = "com_github_azure_go_autorest_autorest", importpath = "github.com/Azure/go-autorest/autorest", sum = "h1:OZEIaBbMdUE/Js+BQKlpO81XlISgipr6yDJ+PSwsgi4=", version = "v0.9.3", ) go_repository( name = "com_github_azure_go_autorest_autorest_adal", importpath = "github.com/Azure/go-autorest/autorest/adal", sum = "h1:O1AGG9Xig71FxdX9HO5pGNyZ7TbSyHaVg+5eJO/jSGw=", version = "v0.8.3", ) go_repository( name = "com_github_azure_go_autorest_autorest_azure_auth", importpath = "github.com/Azure/go-autorest/autorest/azure/auth", sum = "h1:iM6UAvjR97ZIeR93qTcwpKNMpV+/FTWjwEbuPD495Tk=", version = "v0.4.2", ) go_repository( name = "com_github_azure_go_autorest_autorest_azure_cli", importpath = "github.com/Azure/go-autorest/autorest/azure/cli", sum = "h1:LXl088ZQlP0SBppGFsRZonW6hSvwgL5gRByMbvUbx8U=", version = "v0.3.1", ) go_repository( name = "com_github_azure_go_autorest_autorest_date", importpath = "github.com/Azure/go-autorest/autorest/date", sum = "h1:yW+Zlqf26583pE43KhfnhFcdmSWlm5Ew6bxipnr/tbM=", version = "v0.2.0", ) go_repository( name = "com_github_azure_go_autorest_autorest_mocks", importpath = "github.com/Azure/go-autorest/autorest/mocks", sum = "h1:qJumjCaCudz+OcqE9/XtEPfvtOjOmKaui4EOpFI6zZc=", version = "v0.3.0", ) go_repository( name = "com_github_azure_go_autorest_autorest_to", importpath = "github.com/Azure/go-autorest/autorest/to", sum = "h1:zebkZaadz7+wIQYgC7GXaz3Wb28yKYfVkkBKwc38VF8=", version = "v0.3.0", ) go_repository( name = "com_github_azure_go_autorest_autorest_validation", importpath = "github.com/Azure/go-autorest/autorest/validation", sum = "h1:15vMO4y76dehZSq7pAaOLQxC6dZYsSrj2GQpflyM/L4=", version = "v0.2.0", ) go_repository( name = "com_github_azure_go_autorest_logger", importpath = "github.com/Azure/go-autorest/logger", sum = "h1:ruG4BSDXONFRrZZJ2GUXDiUyVpayPmb1GnWeHDdaNKY=", version = "v0.1.0", ) go_repository( name = "com_github_azure_go_autorest_tracing", importpath = "github.com/Azure/go-autorest/tracing", sum = "h1:TRn4WjSnkcSy5AEG3pnbtFSwNtwzjr4VYyQflFE619k=", version = "v0.5.0", ) go_repository( name = "com_github_burntsushi_toml", importpath = "github.com/BurntSushi/toml", sum = "h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=", version = "v0.3.1", ) go_repository( name = "com_github_burntsushi_xgb", importpath = "github.com/BurntSushi/xgb", sum = "h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc=", version = "v0.0.0-20160522181843-27f122750802", ) go_repository( name = "com_github_census_instrumentation_opencensus_proto", build_extra_args = ["-exclude=src"], importpath = "github.com/census-instrumentation/opencensus-proto", sum = "h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=", version = "v0.2.1", ) go_repository( name = "com_github_chzyer_logex", importpath = "github.com/chzyer/logex", sum = "h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=", version = "v1.1.10", ) go_repository( name = "com_github_chzyer_readline", importpath = "github.com/chzyer/readline", sum = "h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=", version = "v0.0.0-20180603132655-2972be24d48e", ) go_repository( name = "com_github_chzyer_test", importpath = "github.com/chzyer/test", sum = "h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=", version = "v0.0.0-20180213035817-a1ea475d72b1", ) go_repository( name = "com_github_client9_misspell", importpath = "github.com/client9/misspell", sum = "h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=", version = "v0.3.4", ) go_repository( name = "com_github_cncf_udpa_go", importpath = "github.com/cncf/udpa/go", sum = "h1:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU=", version = "v0.0.0-20191209042840-269d4d468f6f", ) go_repository( name = "com_github_davecgh_go_spew", importpath = "github.com/davecgh/go-spew", sum = "h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=", version = "v1.1.1", ) go_repository( name = "com_github_devigned_tab", importpath = "github.com/devigned/tab", sum = "h1:3mD6Kb1mUOYeLpJvTVSDwSg5ZsfSxfvxGRTxRsJsITA=", version = "v0.1.1", ) go_repository( name = "com_github_dgrijalva_jwt_go", importpath = "github.com/dgrijalva/jwt-go", sum = "h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=", version = "v3.2.0+incompatible", ) go_repository( name = "com_github_dimchansky_utfbom", importpath = "github.com/dimchansky/utfbom", sum = "h1:FcM3g+nofKgUteL8dm/UpdRXNC9KmADgTpLKsu0TRo4=", version = "v1.1.0", ) go_repository( name = "com_github_envoyproxy_go_control_plane", importpath = "github.com/envoyproxy/go-control-plane", sum = "h1:rEvIZUSZ3fx39WIi3JkQqQBitGwpELBIYWeBVh6wn+E=", version = "v0.9.4", ) go_repository( name = "com_github_envoyproxy_protoc_gen_validate", importpath = "github.com/envoyproxy/protoc-gen-validate", sum = "h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=", version = "v0.1.0", ) go_repository( name = "com_github_fortytw2_leaktest", importpath = "github.com/fortytw2/leaktest", sum = "h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=", version = "v1.3.0", ) go_repository( name = "com_github_fsnotify_fsnotify", importpath = "github.com/fsnotify/fsnotify", sum = "h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=", version = "v1.4.9", ) go_repository( name = "com_github_go_gl_glfw", importpath = "github.com/go-gl/glfw", sum = "h1:QbL/5oDUmRBzO9/Z7Seo6zf912W/a6Sr4Eu0G/3Jho0=", version = "v0.0.0-20190409004039-e6da0acd62b1", ) go_repository( name = "com_github_go_gl_glfw_v3_3_glfw", importpath = "github.com/go-gl/glfw/v3.3/glfw", sum = "h1:WtGNWLvXpe6ZudgnXrq0barxBImvnnJoMEhXAzcbM0I=", version = "v0.0.0-20200222043503-6f7a984d4dc4", ) go_repository( name = "com_github_go_ini_ini", importpath = "github.com/go-ini/ini", sum = "h1:Mujh4R/dH6YL8bxuISne3xX2+qcQ9p0IxKAP6ExWoUo=", version = "v1.25.4", ) go_repository( name = "com_github_go_kit_kit", importpath = "github.com/go-kit/kit", sum = "h1:wDJmvq38kDhkVxi50ni9ykkdUr1PKgqKOoi01fa0Mdk=", version = "v0.9.0", ) go_repository( name = "com_github_go_logfmt_logfmt", importpath = "github.com/go-logfmt/logfmt", sum = "h1:MP4Eh7ZCb31lleYCFuwm0oe4/YGak+5l1vA2NOE80nA=", version = "v0.4.0", ) go_repository( name = "com_github_go_sql_driver_mysql", importpath = "github.com/go-sql-driver/mysql", sum = "h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=", version = "v1.5.0", ) go_repository( name = "com_github_go_stack_stack", importpath = "github.com/go-stack/stack", sum = "h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=", version = "v1.8.0", ) go_repository( name = "com_github_gogo_protobuf", importpath = "github.com/gogo/protobuf", sum = "h1:72R+M5VuhED/KujmZVcIquuo8mBgX4oVda//DQb3PXo=", version = "v1.1.1", ) go_repository( name = "com_github_golang_glog", importpath = "github.com/golang/glog", sum = "h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=", version = "v0.0.0-20160126235308-23def4e6c14b", ) go_repository( name = "com_github_golang_groupcache", importpath = "github.com/golang/groupcache", sum = "h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY=", version = "v0.0.0-20200121045136-8c9f03a8e57e", ) go_repository( name = "com_github_golang_protobuf", importpath = "github.com/golang/protobuf", sum = "h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0=", version = "v1.4.2", ) go_repository( name = "com_github_google_btree", importpath = "github.com/google/btree", sum = "h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=", version = "v1.0.0", ) go_repository( name = "com_github_google_go_cmp", importpath = "github.com/google/go-cmp", sum = "h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k=", version = "v0.5.1", ) go_repository( name = "com_github_google_go_replayers_grpcreplay", importpath = "github.com/google/go-replayers/grpcreplay", sum = "h1:eNb1y9rZFmY4ax45uEEECSa8fsxGRU+8Bil52ASAwic=", version = "v0.1.0", ) go_repository( name = "com_github_google_go_replayers_httpreplay", importpath = "github.com/google/go-replayers/httpreplay", sum = "h1:AX7FUb4BjrrzNvblr/OlgwrmFiep6soj5K2QSDW7BGk=", version = "v0.1.0", ) go_repository( name = "com_github_google_gofuzz", importpath = "github.com/google/gofuzz", sum = "h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw=", version = "v1.0.0", ) go_repository( name = "com_github_google_martian", importpath = "github.com/google/martian", sum = "h1:xmapqc1AyLoB+ddYT6r04bD9lIjlOqGaREovi0SzFaE=", version = "v2.1.1-0.20190517191504-25dcb96d9e51+incompatible", ) go_repository( name = "com_github_google_pprof", importpath = "github.com/google/pprof", sum = "h1:lIC98ZUNah83ky7d9EXktLFe4H7Nwus59dTOLXr8xAI=", version = "v0.0.0-20200507031123-427632fa3b1c", ) go_repository( name = "com_github_google_renameio", importpath = "github.com/google/renameio", sum = "h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA=", version = "v0.1.0", ) go_repository( name = "com_github_google_subcommands", importpath = "github.com/google/subcommands", sum = "h1:/eqq+otEXm5vhfBrbREPCSVQbvofip6kIz+mX5TUH7k=", version = "v1.0.1", ) go_repository( name = "com_github_googlecloudplatform_cloudsql_proxy", importpath = "github.com/GoogleCloudPlatform/cloudsql-proxy", sum = "h1:sTOp2Ajiew5XIH92YSdwhYc+bgpUX5j5TKK/Ac8Saw8=", version = "v0.0.0-20191009163259-e802c2cb94ae", ) go_repository( name = "com_github_hpcloud_tail", importpath = "github.com/hpcloud/tail", sum = "h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=", version = "v1.0.0", ) go_repository( name = "com_github_ianlancetaylor_demangle", importpath = "github.com/ianlancetaylor/demangle", sum = "h1:UDMh68UUwekSh5iP2OMhRRZJiiBccgV7axzUG8vi56c=", version = "v0.0.0-20181102032728-5e5cf60278f6", ) go_repository( name = "com_github_jmespath_go_jmespath", importpath = "github.com/jmespath/go-jmespath", sum = "h1:OS12ieG61fsCg5+qLJ+SsW9NicxNkg3b25OyT2yCeUc=", version = "v0.3.0", ) go_repository( name = "com_github_joho_godotenv", importpath = "github.com/joho/godotenv", sum = "h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc=", version = "v1.3.0", ) go_repository( name = "com_github_json_iterator_go", importpath = "github.com/json-iterator/go", sum = "h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68=", version = "v1.1.10", ) go_repository( name = "com_github_jstemmer_go_junit_report", importpath = "github.com/jstemmer/go-junit-report", sum = "h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=", version = "v0.9.1", ) go_repository( name = "com_github_julienschmidt_httprouter", importpath = "github.com/julienschmidt/httprouter", sum = "h1:TDTW5Yz1mjftljbcKqRcrYhd4XeOoI98t+9HbQbYf7g=", version = "v1.2.0", ) go_repository( name = "com_github_kisielk_gotool", importpath = "github.com/kisielk/gotool", sum = "h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=", version = "v1.0.0", ) go_repository( name = "com_github_konsorten_go_windows_terminal_sequences", importpath = "github.com/konsorten/go-windows-terminal-sequences", sum = "h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=", version = "v1.0.1", ) go_repository( name = "com_github_kr_logfmt", importpath = "github.com/kr/logfmt", sum = "h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY=", version = "v0.0.0-20140226030751-b84e30acd515", ) go_repository( name = "com_github_kr_pretty", importpath = "github.com/kr/pretty", sum = "h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=", version = "v0.1.0", ) go_repository( name = "com_github_kr_pty", importpath = "github.com/kr/pty", sum = "h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw=", version = "v1.1.1", ) go_repository( name = "com_github_kr_text", importpath = "github.com/kr/text", sum = "h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=", version = "v0.1.0", ) go_repository( name = "com_github_lib_pq", importpath = "github.com/lib/pq", sum = "h1:sJZmqHoEaY7f+NPP8pgLB/WxulyR3fewgCM2qaSlBb4=", version = "v1.1.1", ) go_repository( name = "com_github_mattn_go_colorable", importpath = "github.com/mattn/go-colorable", sum = "h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=", version = "v0.1.4", ) go_repository( name = "com_github_mattn_go_isatty", importpath = "github.com/mattn/go-isatty", sum = "h1:FxPOTFNqGkuDUGi3H/qkUbQO4ZiBa2brKq5r0l8TGeM=", version = "v0.0.11", ) go_repository( name = "com_github_mitchellh_go_homedir", importpath = "github.com/mitchellh/go-homedir", sum = "h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=", version = "v1.1.0", ) go_repository( name = "com_github_mitchellh_mapstructure", importpath = "github.com/mitchellh/mapstructure", sum = "h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=", version = "v1.1.2", ) go_repository( name = "com_github_modern_go_concurrent", importpath = "github.com/modern-go/concurrent", sum = "h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=", version = "v0.0.0-20180306012644-bacd9c7ef1dd", ) go_repository( name = "com_github_modern_go_reflect2", importpath = "github.com/modern-go/reflect2", sum = "h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI=", version = "v1.0.1", ) go_repository( name = "com_github_mwitkow_go_conntrack", importpath = "github.com/mwitkow/go-conntrack", sum = "h1:F9x/1yl3T2AeKLr2AMdilSD8+f9bvMnNN8VS5iDtovc=", version = "v0.0.0-20161129095857-cc309e4a2223", ) go_repository( name = "com_github_nxadm_tail", importpath = "github.com/nxadm/tail", sum = "h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78=", version = "v1.4.4", ) go_repository( name = "com_github_onsi_ginkgo", importpath = "github.com/onsi/ginkgo", sum = "h1:jMU0WaQrP0a/YAEq8eJmJKjBoMs+pClEr1vDMlM/Do4=", version = "v1.14.1", ) go_repository( name = "com_github_onsi_gomega", importpath = "github.com/onsi/gomega", sum = "h1:aY/nuoWlKJud2J6U0E3NWsjlg+0GtwXxgEqthRdzlcs=", version = "v1.10.2", ) go_repository( name = "com_github_pkg_errors", importpath = "github.com/pkg/errors", sum = "h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=", version = "v0.9.1", ) go_repository( name = "com_github_pmezard_go_difflib", importpath = "github.com/pmezard/go-difflib", sum = "h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=", version = "v1.0.0", ) go_repository( name = "com_github_prometheus_statsd_exporter", importpath = "github.com/prometheus/statsd_exporter", sum = "h1:UiwC1L5HkxEPeapXdm2Ye0u1vUJfTj7uwT5yydYpa1E=", version = "v0.15.0", ) go_repository( name = "com_github_rogpeppe_go_internal", importpath = "github.com/rogpeppe/go-internal", sum = "h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=", version = "v1.6.1", ) go_repository( name = "com_github_sergi_go_diff", importpath = "github.com/sergi/go-diff", sum = "h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=", version = "v1.1.0", ) go_repository( name = "com_github_sirupsen_logrus", importpath = "github.com/sirupsen/logrus", sum = "h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=", version = "v1.4.2", ) go_repository( name = "com_github_stretchr_objx", importpath = "github.com/stretchr/objx", sum = "h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48=", version = "v0.2.0", ) go_repository( name = "com_github_yuin_goldmark", importpath = "github.com/yuin/goldmark", sum = "h1:5tjfNdR2ki3yYQ842+eX2sQHeiwpKJ0RnHO4IYOc4V8=", version = "v1.1.32", ) go_repository( name = "com_google_cloud_go_bigquery", importpath = "cloud.google.com/go/bigquery", sum = "h1:PQcPefKFdaIzjQFbiyOgAqyx8q5djaE7x9Sqe712DPA=", version = "v1.8.0", ) go_repository( name = "com_google_cloud_go_datastore", importpath = "cloud.google.com/go/datastore", sum = "h1:/May9ojXjRkPBNVrq+oWLqmWCkr4OU5uRY29bu0mRyQ=", version = "v1.1.0", ) go_repository( name = "com_google_cloud_go_firestore", importpath = "cloud.google.com/go/firestore", sum = "h1:zrl+2VJAYC/C6WzEPnkqZIBeHyHFs/UmtzJdXU4Bvmo=", version = "v1.2.0", ) go_repository( name = "com_google_cloud_go_pubsub", importpath = "cloud.google.com/go/pubsub", sum = "h1:ukjixP1wl0LpnZ6LWtZJ0mX5tBmjp1f8Sqer8Z2OMUU=", version = "v1.3.1", ) go_repository( name = "com_google_cloud_go_storage", importpath = "cloud.google.com/go/storage", sum = "h1:STgFzyU5/8miMl0//zKh2aQeTyeaUH3WN9bSUiJ09bA=", version = "v1.10.0", ) go_repository( name = "com_shuralyov_dmitri_gpu_mtl", importpath = "dmitri.shuralyov.com/gpu/mtl", sum = "h1:VpgP7xuJadIUuKccphEpTJnWhS2jkQyMt6Y7pJCD7fY=", version = "v0.0.0-20190408044501-666a987793e9", ) go_repository( name = "in_gopkg_alecthomas_kingpin_v2", importpath = "gopkg.in/alecthomas/kingpin.v2", sum = "h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=", version = "v2.2.6", ) go_repository( name = "in_gopkg_check_v1", importpath = "gopkg.in/check.v1", sum = "h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=", version = "v1.0.0-20190902080502-41f04d3bba15", ) go_repository( name = "in_gopkg_errgo_v2", importpath = "gopkg.in/errgo.v2", sum = "h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8=", version = "v2.1.0", ) go_repository( name = "in_gopkg_fsnotify_v1", importpath = "gopkg.in/fsnotify.v1", sum = "h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=", version = "v1.4.7", ) go_repository( name = "in_gopkg_tomb_v1", importpath = "gopkg.in/tomb.v1", sum = "h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=", version = "v1.0.0-20141024135613-dd632973f1e7", ) go_repository( name = "in_gopkg_yaml_v3", importpath = "gopkg.in/yaml.v3", sum = "h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=", version = "v3.0.0-20200313102051-9f266ea9e77c", ) go_repository( name = "io_opencensus_go_contrib_exporter_aws", importpath = "contrib.go.opencensus.io/exporter/aws", sum = "h1:YsbWYxDZkC7x2OxlsDEYvvEXZ3cBI3qBgUK5BqkZvRw=", version = "v0.0.0-20181029163544-2befc13012d0", ) go_repository( name = "io_opencensus_go_contrib_exporter_stackdriver", importpath = "contrib.go.opencensus.io/exporter/stackdriver", sum = "h1:ZRVpDigsb+nVI/yps/NLDOYzYjFFmm3OCsBhmYocxR0=", version = "v0.12.9", ) go_repository( name = "io_opencensus_go_contrib_integrations_ocsql", importpath = "contrib.go.opencensus.io/integrations/ocsql", sum = "h1:kfg5Yyy1nYUrqzyfW5XX+dzMASky8IJXhtHe0KTYNS4=", version = "v0.1.4", ) go_repository( name = "io_opencensus_go_contrib_resource", importpath = "contrib.go.opencensus.io/resource", sum = "h1:4r2CANuYhKGmYWP02+5E94rLRcS/YeD+KlxSrOsMxk0=", version = "v0.1.1", ) go_repository( name = "io_rsc_binaryregexp", importpath = "rsc.io/binaryregexp", sum = "h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE=", version = "v0.2.0", ) go_repository( name = "io_rsc_quote_v3", importpath = "rsc.io/quote/v3", sum = "h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY=", version = "v3.1.0", ) go_repository( name = "io_rsc_sampler", importpath = "rsc.io/sampler", sum = "h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=", version = "v1.3.0", ) go_repository( name = "org_bazil_fuse", importpath = "bazil.org/fuse", sum = "h1:FNCRpXiquG1aoyqcIWVFmpTSKVcx2bQD38uZZeGtdlw=", version = "v0.0.0-20180421153158-65cc252bf669", ) go_repository( name = "org_golang_google_appengine", importpath = "google.golang.org/appengine", sum = "h1:lMO5rYAqUxkmaj76jAkRUvt5JZgFymx/+Q5Mzfivuhc=", version = "v1.6.6", ) go_repository( name = "org_golang_google_genproto", importpath = "google.golang.org/genproto", sum = "h1:HJaAqDnKreMkv+AQyf1Mcw0jEmL9kKBNL07RDJu1N/k=", version = "v0.0.0-20200726014623-da3ae01ef02d", ) go_repository( name = "org_golang_google_protobuf", importpath = "google.golang.org/protobuf", sum = "h1:UhZDfRO8JRQru4/+LlLE0BRKGF8L+PICnvYZmx/fEGA=", version = "v1.24.0", ) go_repository( name = "org_golang_x_crypto", importpath = "golang.org/x/crypto", sum = "h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=", version = "v0.0.0-20200622213623-75b288015ac9", ) go_repository( name = "org_golang_x_exp", importpath = "golang.org/x/exp", sum = "h1:5XVKs2rlCg8EFyRcvO8/XFwYxh1oKJO1Q3X5vttIf9c=", version = "v0.0.0-20200908183739-ae8ad444f925", ) go_repository( name = "org_golang_x_image", importpath = "golang.org/x/image", sum = "h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4=", version = "v0.0.0-20190802002840-cff245a6509b", ) go_repository( name = "org_golang_x_mobile", importpath = "golang.org/x/mobile", sum = "h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs=", version = "v0.0.0-20190719004257-d2bd2a29d028", ) go_repository( name = "org_golang_x_mod", importpath = "golang.org/x/mod", sum = "h1:xUIPaMhvROX9dhPvRCenIJtU78+lbEenGbgqB5hfHCQ=", version = "v0.3.1-0.20200828183125-ce943fd02449", ) go_repository( name = "org_golang_x_net", importpath = "golang.org/x/net", sum = "h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU=", version = "v0.0.0-20200707034311-ab3426394381", ) go_repository( name = "org_golang_x_sys", importpath = "golang.org/x/sys", sum = "h1:gtF+PUC1CD1a9ocwQHbVNXuTp6RQsAYt6tpi6zjT81Y=", version = "v0.0.0-20200727154430-2d971f7391a4", ) go_repository( name = "org_golang_x_text", importpath = "golang.org/x/text", sum = "h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=", version = "v0.3.2", ) go_repository( name = "org_golang_x_time", importpath = "golang.org/x/time", sum = "h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs=", version = "v0.0.0-20191024005414-555d28b269f0", ) go_repository( name = "org_golang_x_tools", importpath = "golang.org/x/tools", sum = "h1:qKpj8TpV+LEhel7H/fR788J+KvhWZ3o3V6N2fU/iuLU=", version = "v0.0.0-20200731060945-b5fad4ed8dd6", ) go_repository( name = "com_github_opentracing_opentracing_go", importpath = "github.com/opentracing/opentracing-go", sum = "h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=", version = "v1.2.0", ) go_repository( name = "com_github_uber_jaeger_lib", importpath = "github.com/uber/jaeger-lib", sum = "h1:MxZXOiR2JuoANZ3J6DE/U0kSFv/eJ/GfSYVCjK7dyaw=", version = "v2.2.0+incompatible", ) go_repository( name = "com_github_uber_go_atomic", importpath = "github.com/uber-go/atomic", sum = "h1:yOuPqEq4ovnhEjpHmfFwsqBXDYbQeT6Nb0bwD6XnD5o=", version = "v1.4.0", ) go_repository( name = "com_github_golang_lint", importpath = "github.com/golang/lint", sum = "h1:2hRPrmiwPrp3fQX967rNJIhQPtiGXdlQWAxKbKw3VHA=", version = "v0.0.0-20180702182130-06c8688daad7", ) go_repository( name = "com_github_gordonklaus_ineffassign", importpath = "github.com/gordonklaus/ineffassign", sum = "h1:vc7Dmrk4JwS0ZPS6WZvWlwDflgDTA26jItmbSj83nug=", version = "v0.0.0-20200309095847-7953dde2c7bf", ) go_repository( name = "com_github_benbjohnson_clock", importpath = "github.com/benbjohnson/clock", sum = "h1:vkLuvpK4fmtSCuo60+yC63p7y0BmQ8gm5ZXGuBCJyXg=", version = "v1.0.3", ) go_repository( name = "com_github_datadog_sketches_go", importpath = "github.com/DataDog/sketches-go", sum = "h1:qELHH0AWCvf98Yf+CNIJx9vOZOfHFDDzgDRYsnNk/vs=", version = "v0.0.0-20190923095040-43f19ad77ff7", ) go_repository( name = "com_github_dgryski_go_rendezvous", importpath = "github.com/dgryski/go-rendezvous", sum = "h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=", version = "v0.0.0-20200823014737-9f7001d12a5f", ) go_repository( name = "com_github_go_redis_redis_v8", importpath = "github.com/go-redis/redis/v8", sum = "h1:PC0VsF9sFFd2sko5bu30aEFc8F1TKl6n65o0b8FnCIE=", version = "v8.0.0", ) go_repository( name = "io_opentelemetry_go_otel", build_file_proto_mode = "disable", importpath = "go.opentelemetry.io/otel", sum = "h1:IN2tzQa9Gc4ZVKnTaMbPVcHjvzOdg5n9QfnmlqiET7E=", version = "v0.11.0", ) go_repository( name = "com_github_go_redis_redisext", importpath = "github.com/go-redis/redisext", sum = "h1:rgukAuvD0qvfw2CZF9bSEstzBb3WnSgRvHK+hj8Nwp0=", version = "v0.1.7", ) go_repository( name = "cc_mvdan_gofumpt", importpath = "mvdan.cc/gofumpt", sum = "h1:QQ9mYdTscaVSaHC8A1wtLkECzvpD/YO2E2GyPvU1D/Y=", version = "v0.0.0-20201027171050-85d5401eb0f6", ) go_repository( name = "com_github_hanwen_go_fuse", importpath = "github.com/hanwen/go-fuse", sum = "h1:GxS9Zrn6c35/BnfiVsZVWmsG803xwE7eVRDvcf/BEVc=", version = "v1.0.0", ) go_repository( name = "com_github_hanwen_go_fuse_v2", importpath = "github.com/hanwen/go-fuse/v2", patches = [ "@com_github_buildbarn_bb_remote_execution//:patches/com_github_hanwen_go_fuse_v2/daemon_timeout.diff", "@com_github_buildbarn_bb_remote_execution//:patches/com_github_hanwen_go_fuse_v2/direntrylist-testability.diff", "@com_github_buildbarn_bb_remote_execution//:patches/com_github_hanwen_go_fuse_v2/fuse-712-for-invalidation.diff", "@com_github_buildbarn_bb_remote_execution//:patches/com_github_hanwen_go_fuse_v2/notify-testability.diff", ], sum = "h1:kpV28BKeSyVgZREItBLnaVBvOEwv2PuhNdKetwnvNHo=", version = "v2.0.3", ) go_repository( name = "com_github_kylelemons_godebug", importpath = "github.com/kylelemons/godebug", sum = "h1:MtvEpTB6LX3vkb4ax0b5D2DHbNAUsen0Gx5wZoq3lV4=", version = "v0.0.0-20170820004349-d65d576e9348", )
load('@bazel_gazelle//:deps.bzl', 'go_repository') def go_dependencies(): go_repository(name='com_github_aws_aws_sdk_go', importpath='github.com/aws/aws-sdk-go', sum='h1:3+AsCrxxnhiUQEhWV+j3kEs7aBCIn2qkDjA+elpxYPU=', version='v1.33.13') go_repository(name='com_github_bazelbuild_remote_apis', importpath='github.com/bazelbuild/remote-apis', patches=['@com_github_buildbarn_bb_storage//:patches/com_github_bazelbuild_remote_apis/golang.diff'], sum='h1:in8ww8rHwdcmLN3J9atiRDvAaYHobXBJzp7uAxlUREU=', version='v0.0.0-20201030192148-aa8e718768c2') go_repository(name='com_github_beorn7_perks', importpath='github.com/beorn7/perks', sum='h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=', version='v1.0.1') go_repository(name='com_github_buildbarn_bb_storage', importpath='github.com/buildbarn/bb-storage', sum='h1:3AAcc2jsQLIZKhJn3NFPX6FLDDpnF9qNEGJhvHmW+4k=', version='v0.0.0-20210107084738-1b5cc8edeecb') go_repository(name='com_github_golang_mock', importpath='github.com/golang/mock', patches=['@com_github_buildbarn_bb_storage//:patches/com_github_golang_mock/mocks-for-funcs.diff'], sum='h1:YS+8QJ8yKSoB7Qy3WF0DMDFj2TkfASqhc0aNIIxjl6I=', version='v1.4.4-0.20200406172829-6d816de489c1') go_repository(name='com_github_google_uuid', importpath='github.com/google/uuid', sum='h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=', version='v1.1.1') go_repository(name='com_github_go_redis_redis', importpath='github.com/go-redis/redis', sum='h1:BKZuG6mCnRj5AOaWJXoCgf6rqTYnYJLe4en2hxT7r9o=', version='v6.15.8+incompatible') go_repository(name='com_github_grpc_ecosystem_go_grpc_prometheus', importpath='github.com/grpc-ecosystem/go-grpc-prometheus', patches=['@com_github_buildbarn_bb_storage//:patches/com_github_grpc_ecosystem_go_grpc_prometheus/client-metrics-prevent-handled-twice.diff'], sum='h1:Ovs26xHkKqVztRpIrF/92BcuyuQ/YW4NSIpoGtfXNho=', version='v1.2.0') go_repository(name='com_github_lazybeaver_xorshift', importpath='github.com/lazybeaver/xorshift', sum='h1:TfmftEfB1zJiDTFi3Qw1xlbEbfJPKUhEDC19clfBMb8=', version='v0.0.0-20170702203709-ce511d4823dd') go_repository(name='com_github_matttproud_golang_protobuf_extensions', importpath='github.com/matttproud/golang_protobuf_extensions', sum='h1:4hp9jkHxhMHkqkrB3Ix0jegS5sx/RkqARlsWZ6pIwiU=', version='v1.0.1') go_repository(name='com_github_prometheus_client_golang', importpath='github.com/prometheus/client_golang', sum='h1:NTGy1Ja9pByO+xAeH/qiWnLrKtr3hJPNjaVUwnjpdpA=', version='v1.7.1') go_repository(name='com_github_cespare_xxhash_v2', importpath='github.com/cespare/xxhash/v2', sum='h1:6MnRN8NT7+YBpUIWxHtefFZOKTAPgGjpQSxqLNn0+qY=', version='v2.1.1') go_repository(name='com_github_prometheus_client_model', importpath='github.com/prometheus/client_model', sum='h1:uq5h0d+GuxiXLJLNABMgp2qUWDPiLvgCzz2dUR+/W/M=', version='v0.2.0') go_repository(name='com_github_prometheus_common', importpath='github.com/prometheus/common', sum='h1:RyRA7RzGXQZiW+tGMr7sxa85G1z0yOpM1qq5c8lNawc=', version='v0.10.0') go_repository(name='com_github_prometheus_procfs', importpath='github.com/prometheus/procfs', sum='h1:F0+tqvhOksq22sc6iCHF5WGlWjdwj92p0udFh1VFBS8=', version='v0.1.3') go_repository(name='com_github_stretchr_testify', importpath='github.com/stretchr/testify', sum='h1:hDPOHmpOpP40lSULcqw7IrRb/u7w6RpDC9399XyoNd0=', version='v1.6.1') go_repository(name='in_gopkg_yaml_v2', importpath='gopkg.in/yaml.v2', sum='h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=', version='v2.3.0') go_repository(name='io_opencensus_go_contrib_exporter_prometheus', importpath='contrib.go.opencensus.io/exporter/prometheus', sum='h1:9PUk0/8V0LGoPqVCrf8fQZJkFGBxudu8jOjQSMwoD6w=', version='v0.2.0') go_repository(name='io_opencensus_go_contrib_exporter_jaeger', importpath='contrib.go.opencensus.io/exporter/jaeger', sum='h1:nhTv/Ry3lGmqbJ/JGvCjWxBl5ozRfqo86Ngz59UAlfk=', version='v0.2.0') go_repository(name='dev_gocloud', importpath='gocloud.dev', sum='h1:mbEKMfnyPV7W1Rj35R1xXfjszs9dXkwSOq2KoFr25g8=', version='v0.20.0') go_repository(name='org_golang_google_api', importpath='google.golang.org/api', sum='h1:BaiDisFir8O4IJxvAabCGGkQ6yCJegNQqSVoYUNAnbk=', version='v0.29.0') go_repository(name='com_github_uber_jaeger_client_go', importpath='github.com/uber/jaeger-client-go', sum='h1:Q2Pp6v3QYiocMxomCaJuwQGFt7E53bPYqEgug/AoBtY=', version='v2.16.0+incompatible') go_repository(name='org_golang_x_sync', importpath='golang.org/x/sync', sum='h1:qwRHBd0NqMbJxfbotnDhm2ByMI1Shq4Y6oRJo21SGJA=', version='v0.0.0-20200625203802-6e8e738ad208') go_repository(name='io_opencensus_go', importpath='go.opencensus.io', sum='h1:LYy1Hy3MJdrCdMwwzxA/dRok4ejH+RwNGbuoD9fCjto=', version='v0.22.4') go_repository(name='com_google_cloud_go', importpath='cloud.google.com/go', sum='h1:vtAfVc723K3xKq1BQydk/FyCldnaNFhGhpJxaJzgRMQ=', version='v0.58.0') go_repository(name='org_golang_x_xerrors', importpath='golang.org/x/xerrors', sum='h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=', version='v0.0.0-20191204190536-9bdfabe68543') go_repository(name='com_github_hashicorp_golang_lru', importpath='github.com/hashicorp/golang-lru', sum='h1:0hERBMJE1eitiLkihrMvRVBYAkpHzc/J3QdDN+dAcgU=', version='v0.5.1') go_repository(name='com_github_googleapis_gax_go', importpath='github.com/googleapis/gax-go', sum='h1:silFMLAnr330+NRuag/VjIGF7TLp/LBrV2CJKFLWEww=', version='v2.0.2+incompatible') go_repository(name='org_golang_x_oauth2', importpath='golang.org/x/oauth2', sum='h1:TzXSXBo42m9gQenoE3b9BGiEpg5IG2JkU5FkPIawgtw=', version='v0.0.0-20200107190931-bf48bf16ab8d') go_repository(name='com_github_google_wire', build_extra_args=['--exclude=internal/wire/testdata'], importpath='github.com/google/wire', sum='h1:kXcsA/rIGzJImVqPdhfnr6q0xsS9gU0515q1EPpJ9fE=', version='v0.4.0') go_repository(name='com_github_azure_azure_pipeline_go', importpath='github.com/Azure/azure-pipeline-go', sum='h1:6oiIS9yaG6XCCzhgAgKFfIWyo4LLCiDhZot6ltoThhY=', version='v0.2.2') go_repository(name='com_github_azure_azure_storage_blob_go', importpath='github.com/Azure/azure-storage-blob-go', sum='h1:evCwGreYo3XLeBV4vSxLbLiYb6e0SzsJiXQVRGsRXxs=', version='v0.10.0') go_repository(name='com_github_google_go_jsonnet', importpath='github.com/google/go-jsonnet', patches=['@com_github_buildbarn_bb_storage//:patches/com_github_google_go_jsonnet/astgen.diff'], sum='h1:Nb4EEOp+rdeGGyB1rQ5eisgSAqrTnhf9ip+X6lzZbY0=', version='v0.16.0') go_repository(name='com_github_fatih_color', importpath='github.com/fatih/color', sum='h1:8xPHl4/q1VyqGIPif1F+1V3Y3lSmrq01EabUW3CoW5s=', version='v1.9.0') go_repository(name='com_github_gorilla_mux', importpath='github.com/gorilla/mux', sum='h1:VuZ8uybHlWmqV03+zRzdwKL4tUnIp1MAQtp1mIFE1bc=', version='v1.7.4') go_repository(name='com_github_googleapis_gax_go_v2', importpath='github.com/googleapis/gax-go/v2', sum='h1:sjZBwGj9Jlw33ImPtvFviGYvseOtDM7hkSKB7+Tv3SM=', version='v2.0.5') go_repository(name='com_github_mattn_go_ieproxy', importpath='github.com/mattn/go-ieproxy', sum='h1:qiyop7gCflfhwCzGyeT0gro3sF9AIg9HU98JORTkqfI=', version='v0.0.1') go_repository(name='org_golang_google_grpc', build_file_proto_mode='disable', importpath='google.golang.org/grpc', sum='h1:T7P4R73V3SSDPhH7WW7ATbfViLtmamH0DKrP3f9AuDI=', version='v1.31.0') go_repository(name='org_golang_x_lint', importpath='golang.org/x/lint', sum='h1:Wh+f8QHJXR411sJR8/vRBTZ7YapZaRvUcLFFJhusH0k=', version='v0.0.0-20200302205851-738671d3881b') go_repository(name='co_honnef_go_tools', importpath='honnef.co/go/tools', sum='h1:UoveltGrhghAA7ePc+e+QYDHXrBps2PqFZiHkGR/xK8=', version='v0.0.1-2020.1.4') go_repository(name='com_github_alecthomas_template', importpath='github.com/alecthomas/template', sum='h1:JYp7IbQjafoB+tBA3gMyHYHrpOtNuDiK/uB5uXxq5wM=', version='v0.0.0-20190718012654-fb15b899a751') go_repository(name='com_github_alecthomas_units', importpath='github.com/alecthomas/units', sum='h1:Hs82Z41s6SdL1CELW+XaDYmOH4hkBN4/N9og/AsOv7E=', version='v0.0.0-20190717042225-c3de453c63f4') go_repository(name='com_github_azure_azure_amqp_common_go_v3', importpath='github.com/Azure/azure-amqp-common-go/v3', sum='h1:j9tjcwhypb/jek3raNrwlCIl7iKQYOug7CLpSyBBodc=', version='v3.0.0') go_repository(name='com_github_azure_azure_sdk_for_go', importpath='github.com/Azure/azure-sdk-for-go', sum='h1:aFlw3lP7ZHQi4m1kWCpcwYtczhDkGhDoRaMTaxcOf68=', version='v37.1.0+incompatible') go_repository(name='com_github_azure_azure_service_bus_go', importpath='github.com/Azure/azure-service-bus-go', sum='h1:w9foWsHoOt1n8R0O58Co/ddrazx5vfDY0g64/6UWyuo=', version='v0.10.1') go_repository(name='com_github_azure_go_amqp', importpath='github.com/Azure/go-amqp', sum='h1:/Uyqh30J5JrDFAOERQtEqP0qPWkrNXxr94vRnSa54Ac=', version='v0.12.7') go_repository(name='com_github_azure_go_autorest_autorest', importpath='github.com/Azure/go-autorest/autorest', sum='h1:OZEIaBbMdUE/Js+BQKlpO81XlISgipr6yDJ+PSwsgi4=', version='v0.9.3') go_repository(name='com_github_azure_go_autorest_autorest_adal', importpath='github.com/Azure/go-autorest/autorest/adal', sum='h1:O1AGG9Xig71FxdX9HO5pGNyZ7TbSyHaVg+5eJO/jSGw=', version='v0.8.3') go_repository(name='com_github_azure_go_autorest_autorest_azure_auth', importpath='github.com/Azure/go-autorest/autorest/azure/auth', sum='h1:iM6UAvjR97ZIeR93qTcwpKNMpV+/FTWjwEbuPD495Tk=', version='v0.4.2') go_repository(name='com_github_azure_go_autorest_autorest_azure_cli', importpath='github.com/Azure/go-autorest/autorest/azure/cli', sum='h1:LXl088ZQlP0SBppGFsRZonW6hSvwgL5gRByMbvUbx8U=', version='v0.3.1') go_repository(name='com_github_azure_go_autorest_autorest_date', importpath='github.com/Azure/go-autorest/autorest/date', sum='h1:yW+Zlqf26583pE43KhfnhFcdmSWlm5Ew6bxipnr/tbM=', version='v0.2.0') go_repository(name='com_github_azure_go_autorest_autorest_mocks', importpath='github.com/Azure/go-autorest/autorest/mocks', sum='h1:qJumjCaCudz+OcqE9/XtEPfvtOjOmKaui4EOpFI6zZc=', version='v0.3.0') go_repository(name='com_github_azure_go_autorest_autorest_to', importpath='github.com/Azure/go-autorest/autorest/to', sum='h1:zebkZaadz7+wIQYgC7GXaz3Wb28yKYfVkkBKwc38VF8=', version='v0.3.0') go_repository(name='com_github_azure_go_autorest_autorest_validation', importpath='github.com/Azure/go-autorest/autorest/validation', sum='h1:15vMO4y76dehZSq7pAaOLQxC6dZYsSrj2GQpflyM/L4=', version='v0.2.0') go_repository(name='com_github_azure_go_autorest_logger', importpath='github.com/Azure/go-autorest/logger', sum='h1:ruG4BSDXONFRrZZJ2GUXDiUyVpayPmb1GnWeHDdaNKY=', version='v0.1.0') go_repository(name='com_github_azure_go_autorest_tracing', importpath='github.com/Azure/go-autorest/tracing', sum='h1:TRn4WjSnkcSy5AEG3pnbtFSwNtwzjr4VYyQflFE619k=', version='v0.5.0') go_repository(name='com_github_burntsushi_toml', importpath='github.com/BurntSushi/toml', sum='h1:WXkYYl6Yr3qBf1K79EBnL4mak0OimBfB0XUf9Vl28OQ=', version='v0.3.1') go_repository(name='com_github_burntsushi_xgb', importpath='github.com/BurntSushi/xgb', sum='h1:1BDTz0u9nC3//pOCMdNH+CiXJVYJh5UQNCOBG7jbELc=', version='v0.0.0-20160522181843-27f122750802') go_repository(name='com_github_census_instrumentation_opencensus_proto', build_extra_args=['-exclude=src'], importpath='github.com/census-instrumentation/opencensus-proto', sum='h1:glEXhBS5PSLLv4IXzLA5yPRVX4bilULVyxxbrfOtDAk=', version='v0.2.1') go_repository(name='com_github_chzyer_logex', importpath='github.com/chzyer/logex', sum='h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=', version='v1.1.10') go_repository(name='com_github_chzyer_readline', importpath='github.com/chzyer/readline', sum='h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=', version='v0.0.0-20180603132655-2972be24d48e') go_repository(name='com_github_chzyer_test', importpath='github.com/chzyer/test', sum='h1:q763qf9huN11kDQavWsoZXJNW3xEE4JJyHa5Q25/sd8=', version='v0.0.0-20180213035817-a1ea475d72b1') go_repository(name='com_github_client9_misspell', importpath='github.com/client9/misspell', sum='h1:ta993UF76GwbvJcIo3Y68y/M3WxlpEHPWIGDkJYwzJI=', version='v0.3.4') go_repository(name='com_github_cncf_udpa_go', importpath='github.com/cncf/udpa/go', sum='h1:WBZRG4aNOuI15bLRrCgN8fCq8E5Xuty6jGbmSNEvSsU=', version='v0.0.0-20191209042840-269d4d468f6f') go_repository(name='com_github_davecgh_go_spew', importpath='github.com/davecgh/go-spew', sum='h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=', version='v1.1.1') go_repository(name='com_github_devigned_tab', importpath='github.com/devigned/tab', sum='h1:3mD6Kb1mUOYeLpJvTVSDwSg5ZsfSxfvxGRTxRsJsITA=', version='v0.1.1') go_repository(name='com_github_dgrijalva_jwt_go', importpath='github.com/dgrijalva/jwt-go', sum='h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=', version='v3.2.0+incompatible') go_repository(name='com_github_dimchansky_utfbom', importpath='github.com/dimchansky/utfbom', sum='h1:FcM3g+nofKgUteL8dm/UpdRXNC9KmADgTpLKsu0TRo4=', version='v1.1.0') go_repository(name='com_github_envoyproxy_go_control_plane', importpath='github.com/envoyproxy/go-control-plane', sum='h1:rEvIZUSZ3fx39WIi3JkQqQBitGwpELBIYWeBVh6wn+E=', version='v0.9.4') go_repository(name='com_github_envoyproxy_protoc_gen_validate', importpath='github.com/envoyproxy/protoc-gen-validate', sum='h1:EQciDnbrYxy13PgWoY8AqoxGiPrpgBZ1R8UNe3ddc+A=', version='v0.1.0') go_repository(name='com_github_fortytw2_leaktest', importpath='github.com/fortytw2/leaktest', sum='h1:u8491cBMTQ8ft8aeV+adlcytMZylmA5nnwwkRZjI8vw=', version='v1.3.0') go_repository(name='com_github_fsnotify_fsnotify', importpath='github.com/fsnotify/fsnotify', sum='h1:hsms1Qyu0jgnwNXIxa+/V/PDsU6CfLf6CNO8H7IWoS4=', version='v1.4.9') go_repository(name='com_github_go_gl_glfw', importpath='github.com/go-gl/glfw', sum='h1:QbL/5oDUmRBzO9/Z7Seo6zf912W/a6Sr4Eu0G/3Jho0=', version='v0.0.0-20190409004039-e6da0acd62b1') go_repository(name='com_github_go_gl_glfw_v3_3_glfw', importpath='github.com/go-gl/glfw/v3.3/glfw', sum='h1:WtGNWLvXpe6ZudgnXrq0barxBImvnnJoMEhXAzcbM0I=', version='v0.0.0-20200222043503-6f7a984d4dc4') go_repository(name='com_github_go_ini_ini', importpath='github.com/go-ini/ini', sum='h1:Mujh4R/dH6YL8bxuISne3xX2+qcQ9p0IxKAP6ExWoUo=', version='v1.25.4') go_repository(name='com_github_go_kit_kit', importpath='github.com/go-kit/kit', sum='h1:wDJmvq38kDhkVxi50ni9ykkdUr1PKgqKOoi01fa0Mdk=', version='v0.9.0') go_repository(name='com_github_go_logfmt_logfmt', importpath='github.com/go-logfmt/logfmt', sum='h1:MP4Eh7ZCb31lleYCFuwm0oe4/YGak+5l1vA2NOE80nA=', version='v0.4.0') go_repository(name='com_github_go_sql_driver_mysql', importpath='github.com/go-sql-driver/mysql', sum='h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=', version='v1.5.0') go_repository(name='com_github_go_stack_stack', importpath='github.com/go-stack/stack', sum='h1:5SgMzNM5HxrEjV0ww2lTmX6E2Izsfxas4+YHWRs3Lsk=', version='v1.8.0') go_repository(name='com_github_gogo_protobuf', importpath='github.com/gogo/protobuf', sum='h1:72R+M5VuhED/KujmZVcIquuo8mBgX4oVda//DQb3PXo=', version='v1.1.1') go_repository(name='com_github_golang_glog', importpath='github.com/golang/glog', sum='h1:VKtxabqXZkF25pY9ekfRL6a582T4P37/31XEstQ5p58=', version='v0.0.0-20160126235308-23def4e6c14b') go_repository(name='com_github_golang_groupcache', importpath='github.com/golang/groupcache', sum='h1:1r7pUrabqp18hOBcwBwiTsbnFeTZHV9eER/QT5JVZxY=', version='v0.0.0-20200121045136-8c9f03a8e57e') go_repository(name='com_github_golang_protobuf', importpath='github.com/golang/protobuf', sum='h1:+Z5KGCizgyZCbGh1KZqA0fcLLkwbsjIzS4aV2v7wJX0=', version='v1.4.2') go_repository(name='com_github_google_btree', importpath='github.com/google/btree', sum='h1:0udJVsspx3VBr5FwtLhQQtuAsVc79tTq0ocGIPAU6qo=', version='v1.0.0') go_repository(name='com_github_google_go_cmp', importpath='github.com/google/go-cmp', sum='h1:JFrFEBb2xKufg6XkJsJr+WbKb4FQlURi5RUcBveYu9k=', version='v0.5.1') go_repository(name='com_github_google_go_replayers_grpcreplay', importpath='github.com/google/go-replayers/grpcreplay', sum='h1:eNb1y9rZFmY4ax45uEEECSa8fsxGRU+8Bil52ASAwic=', version='v0.1.0') go_repository(name='com_github_google_go_replayers_httpreplay', importpath='github.com/google/go-replayers/httpreplay', sum='h1:AX7FUb4BjrrzNvblr/OlgwrmFiep6soj5K2QSDW7BGk=', version='v0.1.0') go_repository(name='com_github_google_gofuzz', importpath='github.com/google/gofuzz', sum='h1:A8PeW59pxE9IoFRqBp37U+mSNaQoZ46F1f0f863XSXw=', version='v1.0.0') go_repository(name='com_github_google_martian', importpath='github.com/google/martian', sum='h1:xmapqc1AyLoB+ddYT6r04bD9lIjlOqGaREovi0SzFaE=', version='v2.1.1-0.20190517191504-25dcb96d9e51+incompatible') go_repository(name='com_github_google_pprof', importpath='github.com/google/pprof', sum='h1:lIC98ZUNah83ky7d9EXktLFe4H7Nwus59dTOLXr8xAI=', version='v0.0.0-20200507031123-427632fa3b1c') go_repository(name='com_github_google_renameio', importpath='github.com/google/renameio', sum='h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA=', version='v0.1.0') go_repository(name='com_github_google_subcommands', importpath='github.com/google/subcommands', sum='h1:/eqq+otEXm5vhfBrbREPCSVQbvofip6kIz+mX5TUH7k=', version='v1.0.1') go_repository(name='com_github_googlecloudplatform_cloudsql_proxy', importpath='github.com/GoogleCloudPlatform/cloudsql-proxy', sum='h1:sTOp2Ajiew5XIH92YSdwhYc+bgpUX5j5TKK/Ac8Saw8=', version='v0.0.0-20191009163259-e802c2cb94ae') go_repository(name='com_github_hpcloud_tail', importpath='github.com/hpcloud/tail', sum='h1:nfCOvKYfkgYP8hkirhJocXT2+zOD8yUNjXaWfTlyFKI=', version='v1.0.0') go_repository(name='com_github_ianlancetaylor_demangle', importpath='github.com/ianlancetaylor/demangle', sum='h1:UDMh68UUwekSh5iP2OMhRRZJiiBccgV7axzUG8vi56c=', version='v0.0.0-20181102032728-5e5cf60278f6') go_repository(name='com_github_jmespath_go_jmespath', importpath='github.com/jmespath/go-jmespath', sum='h1:OS12ieG61fsCg5+qLJ+SsW9NicxNkg3b25OyT2yCeUc=', version='v0.3.0') go_repository(name='com_github_joho_godotenv', importpath='github.com/joho/godotenv', sum='h1:Zjp+RcGpHhGlrMbJzXTrZZPrWj+1vfm90La1wgB6Bhc=', version='v1.3.0') go_repository(name='com_github_json_iterator_go', importpath='github.com/json-iterator/go', sum='h1:Kz6Cvnvv2wGdaG/V8yMvfkmNiXq9Ya2KUv4rouJJr68=', version='v1.1.10') go_repository(name='com_github_jstemmer_go_junit_report', importpath='github.com/jstemmer/go-junit-report', sum='h1:6QPYqodiu3GuPL+7mfx+NwDdp2eTkp9IfEUpgAwUN0o=', version='v0.9.1') go_repository(name='com_github_julienschmidt_httprouter', importpath='github.com/julienschmidt/httprouter', sum='h1:TDTW5Yz1mjftljbcKqRcrYhd4XeOoI98t+9HbQbYf7g=', version='v1.2.0') go_repository(name='com_github_kisielk_gotool', importpath='github.com/kisielk/gotool', sum='h1:AV2c/EiW3KqPNT9ZKl07ehoAGi4C5/01Cfbblndcapg=', version='v1.0.0') go_repository(name='com_github_konsorten_go_windows_terminal_sequences', importpath='github.com/konsorten/go-windows-terminal-sequences', sum='h1:mweAR1A6xJ3oS2pRaGiHgQ4OO8tzTaLawm8vnODuwDk=', version='v1.0.1') go_repository(name='com_github_kr_logfmt', importpath='github.com/kr/logfmt', sum='h1:T+h1c/A9Gawja4Y9mFVWj2vyii2bbUNDw3kt9VxK2EY=', version='v0.0.0-20140226030751-b84e30acd515') go_repository(name='com_github_kr_pretty', importpath='github.com/kr/pretty', sum='h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=', version='v0.1.0') go_repository(name='com_github_kr_pty', importpath='github.com/kr/pty', sum='h1:VkoXIwSboBpnk99O/KFauAEILuNHv5DVFKZMBN/gUgw=', version='v1.1.1') go_repository(name='com_github_kr_text', importpath='github.com/kr/text', sum='h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=', version='v0.1.0') go_repository(name='com_github_lib_pq', importpath='github.com/lib/pq', sum='h1:sJZmqHoEaY7f+NPP8pgLB/WxulyR3fewgCM2qaSlBb4=', version='v1.1.1') go_repository(name='com_github_mattn_go_colorable', importpath='github.com/mattn/go-colorable', sum='h1:snbPLB8fVfU9iwbbo30TPtbLRzwWu6aJS6Xh4eaaviA=', version='v0.1.4') go_repository(name='com_github_mattn_go_isatty', importpath='github.com/mattn/go-isatty', sum='h1:FxPOTFNqGkuDUGi3H/qkUbQO4ZiBa2brKq5r0l8TGeM=', version='v0.0.11') go_repository(name='com_github_mitchellh_go_homedir', importpath='github.com/mitchellh/go-homedir', sum='h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=', version='v1.1.0') go_repository(name='com_github_mitchellh_mapstructure', importpath='github.com/mitchellh/mapstructure', sum='h1:fmNYVwqnSfB9mZU6OS2O6GsXM+wcskZDuKQzvN1EDeE=', version='v1.1.2') go_repository(name='com_github_modern_go_concurrent', importpath='github.com/modern-go/concurrent', sum='h1:TRLaZ9cD/w8PVh93nsPXa1VrQ6jlwL5oN8l14QlcNfg=', version='v0.0.0-20180306012644-bacd9c7ef1dd') go_repository(name='com_github_modern_go_reflect2', importpath='github.com/modern-go/reflect2', sum='h1:9f412s+6RmYXLWZSEzVVgPGK7C2PphHj5RJrvfx9AWI=', version='v1.0.1') go_repository(name='com_github_mwitkow_go_conntrack', importpath='github.com/mwitkow/go-conntrack', sum='h1:F9x/1yl3T2AeKLr2AMdilSD8+f9bvMnNN8VS5iDtovc=', version='v0.0.0-20161129095857-cc309e4a2223') go_repository(name='com_github_nxadm_tail', importpath='github.com/nxadm/tail', sum='h1:DQuhQpB1tVlglWS2hLQ5OV6B5r8aGxSrPc5Qo6uTN78=', version='v1.4.4') go_repository(name='com_github_onsi_ginkgo', importpath='github.com/onsi/ginkgo', sum='h1:jMU0WaQrP0a/YAEq8eJmJKjBoMs+pClEr1vDMlM/Do4=', version='v1.14.1') go_repository(name='com_github_onsi_gomega', importpath='github.com/onsi/gomega', sum='h1:aY/nuoWlKJud2J6U0E3NWsjlg+0GtwXxgEqthRdzlcs=', version='v1.10.2') go_repository(name='com_github_pkg_errors', importpath='github.com/pkg/errors', sum='h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4=', version='v0.9.1') go_repository(name='com_github_pmezard_go_difflib', importpath='github.com/pmezard/go-difflib', sum='h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=', version='v1.0.0') go_repository(name='com_github_prometheus_statsd_exporter', importpath='github.com/prometheus/statsd_exporter', sum='h1:UiwC1L5HkxEPeapXdm2Ye0u1vUJfTj7uwT5yydYpa1E=', version='v0.15.0') go_repository(name='com_github_rogpeppe_go_internal', importpath='github.com/rogpeppe/go-internal', sum='h1:/FiVV8dS/e+YqF2JvO3yXRFbBLTIuSDkuC7aBOAvL+k=', version='v1.6.1') go_repository(name='com_github_sergi_go_diff', importpath='github.com/sergi/go-diff', sum='h1:we8PVUC3FE2uYfodKH/nBHMSetSfHDR6scGdBi+erh0=', version='v1.1.0') go_repository(name='com_github_sirupsen_logrus', importpath='github.com/sirupsen/logrus', sum='h1:SPIRibHv4MatM3XXNO2BJeFLZwZ2LvZgfQ5+UNI2im4=', version='v1.4.2') go_repository(name='com_github_stretchr_objx', importpath='github.com/stretchr/objx', sum='h1:Hbg2NidpLE8veEBkEZTL3CvlkUIVzuU9jDplZO54c48=', version='v0.2.0') go_repository(name='com_github_yuin_goldmark', importpath='github.com/yuin/goldmark', sum='h1:5tjfNdR2ki3yYQ842+eX2sQHeiwpKJ0RnHO4IYOc4V8=', version='v1.1.32') go_repository(name='com_google_cloud_go_bigquery', importpath='cloud.google.com/go/bigquery', sum='h1:PQcPefKFdaIzjQFbiyOgAqyx8q5djaE7x9Sqe712DPA=', version='v1.8.0') go_repository(name='com_google_cloud_go_datastore', importpath='cloud.google.com/go/datastore', sum='h1:/May9ojXjRkPBNVrq+oWLqmWCkr4OU5uRY29bu0mRyQ=', version='v1.1.0') go_repository(name='com_google_cloud_go_firestore', importpath='cloud.google.com/go/firestore', sum='h1:zrl+2VJAYC/C6WzEPnkqZIBeHyHFs/UmtzJdXU4Bvmo=', version='v1.2.0') go_repository(name='com_google_cloud_go_pubsub', importpath='cloud.google.com/go/pubsub', sum='h1:ukjixP1wl0LpnZ6LWtZJ0mX5tBmjp1f8Sqer8Z2OMUU=', version='v1.3.1') go_repository(name='com_google_cloud_go_storage', importpath='cloud.google.com/go/storage', sum='h1:STgFzyU5/8miMl0//zKh2aQeTyeaUH3WN9bSUiJ09bA=', version='v1.10.0') go_repository(name='com_shuralyov_dmitri_gpu_mtl', importpath='dmitri.shuralyov.com/gpu/mtl', sum='h1:VpgP7xuJadIUuKccphEpTJnWhS2jkQyMt6Y7pJCD7fY=', version='v0.0.0-20190408044501-666a987793e9') go_repository(name='in_gopkg_alecthomas_kingpin_v2', importpath='gopkg.in/alecthomas/kingpin.v2', sum='h1:jMFz6MfLP0/4fUyZle81rXUoxOBFi19VUFKVDOQfozc=', version='v2.2.6') go_repository(name='in_gopkg_check_v1', importpath='gopkg.in/check.v1', sum='h1:YR8cESwS4TdDjEe65xsg0ogRM/Nc3DYOhEAlW+xobZo=', version='v1.0.0-20190902080502-41f04d3bba15') go_repository(name='in_gopkg_errgo_v2', importpath='gopkg.in/errgo.v2', sum='h1:0vLT13EuvQ0hNvakwLuFZ/jYrLp5F3kcWHXdRggjCE8=', version='v2.1.0') go_repository(name='in_gopkg_fsnotify_v1', importpath='gopkg.in/fsnotify.v1', sum='h1:xOHLXZwVvI9hhs+cLKq5+I5onOuwQLhQwiu63xxlHs4=', version='v1.4.7') go_repository(name='in_gopkg_tomb_v1', importpath='gopkg.in/tomb.v1', sum='h1:uRGJdciOHaEIrze2W8Q3AKkepLTh2hOroT7a+7czfdQ=', version='v1.0.0-20141024135613-dd632973f1e7') go_repository(name='in_gopkg_yaml_v3', importpath='gopkg.in/yaml.v3', sum='h1:dUUwHk2QECo/6vqA44rthZ8ie2QXMNeKRTHCNY2nXvo=', version='v3.0.0-20200313102051-9f266ea9e77c') go_repository(name='io_opencensus_go_contrib_exporter_aws', importpath='contrib.go.opencensus.io/exporter/aws', sum='h1:YsbWYxDZkC7x2OxlsDEYvvEXZ3cBI3qBgUK5BqkZvRw=', version='v0.0.0-20181029163544-2befc13012d0') go_repository(name='io_opencensus_go_contrib_exporter_stackdriver', importpath='contrib.go.opencensus.io/exporter/stackdriver', sum='h1:ZRVpDigsb+nVI/yps/NLDOYzYjFFmm3OCsBhmYocxR0=', version='v0.12.9') go_repository(name='io_opencensus_go_contrib_integrations_ocsql', importpath='contrib.go.opencensus.io/integrations/ocsql', sum='h1:kfg5Yyy1nYUrqzyfW5XX+dzMASky8IJXhtHe0KTYNS4=', version='v0.1.4') go_repository(name='io_opencensus_go_contrib_resource', importpath='contrib.go.opencensus.io/resource', sum='h1:4r2CANuYhKGmYWP02+5E94rLRcS/YeD+KlxSrOsMxk0=', version='v0.1.1') go_repository(name='io_rsc_binaryregexp', importpath='rsc.io/binaryregexp', sum='h1:HfqmD5MEmC0zvwBuF187nq9mdnXjXsSivRiXN7SmRkE=', version='v0.2.0') go_repository(name='io_rsc_quote_v3', importpath='rsc.io/quote/v3', sum='h1:9JKUTTIUgS6kzR9mK1YuGKv6Nl+DijDNIc0ghT58FaY=', version='v3.1.0') go_repository(name='io_rsc_sampler', importpath='rsc.io/sampler', sum='h1:7uVkIFmeBqHfdjD+gZwtXXI+RODJ2Wc4O7MPEh/QiW4=', version='v1.3.0') go_repository(name='org_bazil_fuse', importpath='bazil.org/fuse', sum='h1:FNCRpXiquG1aoyqcIWVFmpTSKVcx2bQD38uZZeGtdlw=', version='v0.0.0-20180421153158-65cc252bf669') go_repository(name='org_golang_google_appengine', importpath='google.golang.org/appengine', sum='h1:lMO5rYAqUxkmaj76jAkRUvt5JZgFymx/+Q5Mzfivuhc=', version='v1.6.6') go_repository(name='org_golang_google_genproto', importpath='google.golang.org/genproto', sum='h1:HJaAqDnKreMkv+AQyf1Mcw0jEmL9kKBNL07RDJu1N/k=', version='v0.0.0-20200726014623-da3ae01ef02d') go_repository(name='org_golang_google_protobuf', importpath='google.golang.org/protobuf', sum='h1:UhZDfRO8JRQru4/+LlLE0BRKGF8L+PICnvYZmx/fEGA=', version='v1.24.0') go_repository(name='org_golang_x_crypto', importpath='golang.org/x/crypto', sum='h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=', version='v0.0.0-20200622213623-75b288015ac9') go_repository(name='org_golang_x_exp', importpath='golang.org/x/exp', sum='h1:5XVKs2rlCg8EFyRcvO8/XFwYxh1oKJO1Q3X5vttIf9c=', version='v0.0.0-20200908183739-ae8ad444f925') go_repository(name='org_golang_x_image', importpath='golang.org/x/image', sum='h1:+qEpEAPhDZ1o0x3tHzZTQDArnOixOzGD9HUJfcg0mb4=', version='v0.0.0-20190802002840-cff245a6509b') go_repository(name='org_golang_x_mobile', importpath='golang.org/x/mobile', sum='h1:4+4C/Iv2U4fMZBiMCc98MG1In4gJY5YRhtpDNeDeHWs=', version='v0.0.0-20190719004257-d2bd2a29d028') go_repository(name='org_golang_x_mod', importpath='golang.org/x/mod', sum='h1:xUIPaMhvROX9dhPvRCenIJtU78+lbEenGbgqB5hfHCQ=', version='v0.3.1-0.20200828183125-ce943fd02449') go_repository(name='org_golang_x_net', importpath='golang.org/x/net', sum='h1:VXak5I6aEWmAXeQjA+QSZzlgNrpq9mjcfDemuexIKsU=', version='v0.0.0-20200707034311-ab3426394381') go_repository(name='org_golang_x_sys', importpath='golang.org/x/sys', sum='h1:gtF+PUC1CD1a9ocwQHbVNXuTp6RQsAYt6tpi6zjT81Y=', version='v0.0.0-20200727154430-2d971f7391a4') go_repository(name='org_golang_x_text', importpath='golang.org/x/text', sum='h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=', version='v0.3.2') go_repository(name='org_golang_x_time', importpath='golang.org/x/time', sum='h1:/5xXl8Y5W96D+TtHSlonuFqGHIWVuyCkGJLwGh9JJFs=', version='v0.0.0-20191024005414-555d28b269f0') go_repository(name='org_golang_x_tools', importpath='golang.org/x/tools', sum='h1:qKpj8TpV+LEhel7H/fR788J+KvhWZ3o3V6N2fU/iuLU=', version='v0.0.0-20200731060945-b5fad4ed8dd6') go_repository(name='com_github_opentracing_opentracing_go', importpath='github.com/opentracing/opentracing-go', sum='h1:uEJPy/1a5RIPAJ0Ov+OIO8OxWu77jEv+1B0VhjKrZUs=', version='v1.2.0') go_repository(name='com_github_uber_jaeger_lib', importpath='github.com/uber/jaeger-lib', sum='h1:MxZXOiR2JuoANZ3J6DE/U0kSFv/eJ/GfSYVCjK7dyaw=', version='v2.2.0+incompatible') go_repository(name='com_github_uber_go_atomic', importpath='github.com/uber-go/atomic', sum='h1:yOuPqEq4ovnhEjpHmfFwsqBXDYbQeT6Nb0bwD6XnD5o=', version='v1.4.0') go_repository(name='com_github_golang_lint', importpath='github.com/golang/lint', sum='h1:2hRPrmiwPrp3fQX967rNJIhQPtiGXdlQWAxKbKw3VHA=', version='v0.0.0-20180702182130-06c8688daad7') go_repository(name='com_github_gordonklaus_ineffassign', importpath='github.com/gordonklaus/ineffassign', sum='h1:vc7Dmrk4JwS0ZPS6WZvWlwDflgDTA26jItmbSj83nug=', version='v0.0.0-20200309095847-7953dde2c7bf') go_repository(name='com_github_benbjohnson_clock', importpath='github.com/benbjohnson/clock', sum='h1:vkLuvpK4fmtSCuo60+yC63p7y0BmQ8gm5ZXGuBCJyXg=', version='v1.0.3') go_repository(name='com_github_datadog_sketches_go', importpath='github.com/DataDog/sketches-go', sum='h1:qELHH0AWCvf98Yf+CNIJx9vOZOfHFDDzgDRYsnNk/vs=', version='v0.0.0-20190923095040-43f19ad77ff7') go_repository(name='com_github_dgryski_go_rendezvous', importpath='github.com/dgryski/go-rendezvous', sum='h1:lO4WD4F/rVNCu3HqELle0jiPLLBs70cWOduZpkS1E78=', version='v0.0.0-20200823014737-9f7001d12a5f') go_repository(name='com_github_go_redis_redis_v8', importpath='github.com/go-redis/redis/v8', sum='h1:PC0VsF9sFFd2sko5bu30aEFc8F1TKl6n65o0b8FnCIE=', version='v8.0.0') go_repository(name='io_opentelemetry_go_otel', build_file_proto_mode='disable', importpath='go.opentelemetry.io/otel', sum='h1:IN2tzQa9Gc4ZVKnTaMbPVcHjvzOdg5n9QfnmlqiET7E=', version='v0.11.0') go_repository(name='com_github_go_redis_redisext', importpath='github.com/go-redis/redisext', sum='h1:rgukAuvD0qvfw2CZF9bSEstzBb3WnSgRvHK+hj8Nwp0=', version='v0.1.7') go_repository(name='cc_mvdan_gofumpt', importpath='mvdan.cc/gofumpt', sum='h1:QQ9mYdTscaVSaHC8A1wtLkECzvpD/YO2E2GyPvU1D/Y=', version='v0.0.0-20201027171050-85d5401eb0f6') go_repository(name='com_github_hanwen_go_fuse', importpath='github.com/hanwen/go-fuse', sum='h1:GxS9Zrn6c35/BnfiVsZVWmsG803xwE7eVRDvcf/BEVc=', version='v1.0.0') go_repository(name='com_github_hanwen_go_fuse_v2', importpath='github.com/hanwen/go-fuse/v2', patches=['@com_github_buildbarn_bb_remote_execution//:patches/com_github_hanwen_go_fuse_v2/daemon_timeout.diff', '@com_github_buildbarn_bb_remote_execution//:patches/com_github_hanwen_go_fuse_v2/direntrylist-testability.diff', '@com_github_buildbarn_bb_remote_execution//:patches/com_github_hanwen_go_fuse_v2/fuse-712-for-invalidation.diff', '@com_github_buildbarn_bb_remote_execution//:patches/com_github_hanwen_go_fuse_v2/notify-testability.diff'], sum='h1:kpV28BKeSyVgZREItBLnaVBvOEwv2PuhNdKetwnvNHo=', version='v2.0.3') go_repository(name='com_github_kylelemons_godebug', importpath='github.com/kylelemons/godebug', sum='h1:MtvEpTB6LX3vkb4ax0b5D2DHbNAUsen0Gx5wZoq3lV4=', version='v0.0.0-20170820004349-d65d576e9348')
# Copyright (c) Meta Platforms, Inc. and affiliates. # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. def source(): pass def sinkA(x): pass def sinkB(x): pass def sinkC(x): pass def sinkD(x): pass def split(x): y = x._params sinkB(y) sinkC(y) sinkD(y) return x def wrapper(x): y = split(x) sinkA(y) def issue(): x = source() wrapper(x) def splitwrapper(x): return split(x) class QueryBase: def send(self): pass class Query(QueryBase): _params = None def send(self): return splitwrapper(self) def params(self, data): self._params = data return self def log_call(params, response): sinkA(params) sinkA(response) def wrapper2(x: Query): params = x._params response = None try: response = x.send() except Exception as ex: raise ex log_call(params, response) def issue2(): taint = source() query = Query().params(taint) wrapper2(query)
def source(): pass def sink_a(x): pass def sink_b(x): pass def sink_c(x): pass def sink_d(x): pass def split(x): y = x._params sink_b(y) sink_c(y) sink_d(y) return x def wrapper(x): y = split(x) sink_a(y) def issue(): x = source() wrapper(x) def splitwrapper(x): return split(x) class Querybase: def send(self): pass class Query(QueryBase): _params = None def send(self): return splitwrapper(self) def params(self, data): self._params = data return self def log_call(params, response): sink_a(params) sink_a(response) def wrapper2(x: Query): params = x._params response = None try: response = x.send() except Exception as ex: raise ex log_call(params, response) def issue2(): taint = source() query = query().params(taint) wrapper2(query)
#output comments variables input calculations output constants def display_output(): print('hello') def test_config(): return True
def display_output(): print('hello') def test_config(): return True
n = int(input()) f = {} while n > 1: i = 2 while True: if n % i == 0: if i not in f: f[i] = 0 f[i] += 1 n = n // i break i = i + 1 s = "" for k, v in f.items(): s += "{}".format(k) if v != 1: s += "^{}".format(v) s += " x " print(s[:-3])
n = int(input()) f = {} while n > 1: i = 2 while True: if n % i == 0: if i not in f: f[i] = 0 f[i] += 1 n = n // i break i = i + 1 s = '' for (k, v) in f.items(): s += '{}'.format(k) if v != 1: s += '^{}'.format(v) s += ' x ' print(s[:-3])
def divisors(x): divisorList = [] for i in range(1, x+1): if x%i == 0: divisorList.append(i) return divisorList def main(): while True: try: x = int(input("Type a number please:")) break except ValueError: pass y = divisors(x) print(y) if __name__ == "__main__": main()
def divisors(x): divisor_list = [] for i in range(1, x + 1): if x % i == 0: divisorList.append(i) return divisorList def main(): while True: try: x = int(input('Type a number please:')) break except ValueError: pass y = divisors(x) print(y) if __name__ == '__main__': main()
# Exercise 8.2 # You can call a method directly on the string, as well as on a variable # of type string. So here I call count directly on 'banana', with the # argument 'a' as the letter/substring to count. print('banana'.count('a')) # Exercise 8.3 def is_palindrome(s): # The slice uses the entire string if the start and end are left out. # So s[::1]==s[0:len(s):1]. And s[::-1] knows you're moving backwards # (since the last argument to the slice is negative), so it automatically # starts at the last (rightmost) element of the string. # Since s[::-1] is the reverse of s, we just have to see if it's equal # to s. If it is, then s is a palindrome. So we can just return the # result of that comparison directly return s==s[::-1] # Exercise 8.4 # (Possibly) incorrect functions # This function checks to see if the *first* letter in a string is lowercase. # If the first letter is uppercase, it exits the function with # return False def any_lowercase1(s): for c in s: if c.islower(): return True # Since we have an else clause, we're guaranteed to do either # the body of the if statement or the body of the else statment. # Which means this function will be returning (and thus exiting) # after the first letter, no matter what. else: return False # This time it returns a string # that reads "True" or "False", instead of a boolean. So if you wanted # to use it in other code it would probably be useless, since Python # treats nonempty strings as True. Basically this function returns True # no matter what. # False is False, but 'False' is True. # if('False'): do thing <-- would do the thing # if(False): do thing <-- would not do the thing # The other problem is instead of checking characters in the string, it # just checks the character 'c', which of course is lower case. # So it will actually never return 'False', and always return 'True'. def any_lowercase2(s): for c in s: if 'c'.islower(): # Should be if c.islower():, no quote return 'True' else: return 'False' # Getting closer, but now it just tells us whether the *last* character # in the string is lowercase. Since it doesn't combine new knowledge with any # previous information, it just sets the flag anew with each character it reads def any_lowercase3(s): for c in s: flag = c.islower() return flag # This one works! It initializes the flag to false, since we haven't found # any lowercase letters yet. Then it uses or, which returns true if # either of the arguments is true. So once we find a lower case letter, # flag will stay true for the rest of the program. def any_lowercase4(s): flag = False for c in s: flag = flag or c.islower() return flag # This one determines whether *all* letters are lowercase. The first time # it encounters a non-lowercase letter, it stops and returns False. def any_lowercase5(s): for c in s: if not c.islower(): return False return True # A more efficient version of any_lowercase4, inspired by anylowercase_5. # For something like a counter, we need to run # through the whole list. For this, as soon as we find the first lowercase # letter we're done, because we know there's at least one. So we can return True # and stop execution of the function as soon as the first lowercase letter # pops up. def any_lowercase6(s): for c in s: if c.islower(): return True return False
print('banana'.count('a')) def is_palindrome(s): return s == s[::-1] def any_lowercase1(s): for c in s: if c.islower(): return True else: return False def any_lowercase2(s): for c in s: if 'c'.islower(): return 'True' else: return 'False' def any_lowercase3(s): for c in s: flag = c.islower() return flag def any_lowercase4(s): flag = False for c in s: flag = flag or c.islower() return flag def any_lowercase5(s): for c in s: if not c.islower(): return False return True def any_lowercase6(s): for c in s: if c.islower(): return True return False
''' Created on 30 de nov de 2018 @author: filiped ''' class Base: def __init__(self): self.s="" self.p=0 self.fim="@" self.pilha = ["z0"] def le_palavra(self,palavra="@"): self.p=0 self.s = palavra+"@" def xp(self,c=""): print(self.s[self.p]==c, self.s[self.p], c) return self.s[self.p]==c def np(self): self.p+=1 return True def aceite(self): return "aceitou: "+str(self.p+1) def rejeicao(self): return "rejeitou: "+str(self.p+1) #------------------------------------------------------------------------------ def topo(self,val): if val == self.pilha[-1]: self.pop() return True return False def put(self,val): print(self.pilha) self.pilha.append(val) return True def pop(self): print(self.pilha) return self.pilha.pop(-1) def esta_vazia(self): print(self.pilha) return len(self.pilha) > 0 #------------------------------------------------------------------------------ def verificar(self, func): if func and self.xp(self.fim): print(self.aceite()) else: print(self.rejeicao()) #------------------------------------------------------------------------------ def w(self,val): print(val) return True
""" Created on 30 de nov de 2018 @author: filiped """ class Base: def __init__(self): self.s = '' self.p = 0 self.fim = '@' self.pilha = ['z0'] def le_palavra(self, palavra='@'): self.p = 0 self.s = palavra + '@' def xp(self, c=''): print(self.s[self.p] == c, self.s[self.p], c) return self.s[self.p] == c def np(self): self.p += 1 return True def aceite(self): return 'aceitou: ' + str(self.p + 1) def rejeicao(self): return 'rejeitou: ' + str(self.p + 1) def topo(self, val): if val == self.pilha[-1]: self.pop() return True return False def put(self, val): print(self.pilha) self.pilha.append(val) return True def pop(self): print(self.pilha) return self.pilha.pop(-1) def esta_vazia(self): print(self.pilha) return len(self.pilha) > 0 def verificar(self, func): if func and self.xp(self.fim): print(self.aceite()) else: print(self.rejeicao()) def w(self, val): print(val) return True
class ConsumptionTax: def __init__(self, tax_rate): self.tax_rate = tax_rate def apply(self, price): return int((price * self.tax_rate) / 100) + price
class Consumptiontax: def __init__(self, tax_rate): self.tax_rate = tax_rate def apply(self, price): return int(price * self.tax_rate / 100) + price
# Nach einer Idee von Kevin Workman # (https://happycoding.io/examples/p5js/images/image-palette) WIDTH = 800 HEIGHT = 640 palette = ["#264653", "#2a9d8f", "#e9c46a", "#f4a261", "#e76f51"] def setup(): global img size(WIDTH, HEIGHT) this.surface.setTitle("Image Palette") img = loadImage("akt.jpg") image(img, 0, 0) noLoop() def draw(): global y, img for x in range(width/2): for y in range(height): img_color = img.get(x, y) palette_color = get_palette_color(img_color) set(x + width/2, y, palette_color) def get_palette_color(img_color): min_distance = 999999 img_r = red(img_color) img_g = green(img_color) img_b = blue(img_color) for c in palette: palette_r = red(c) palette_g = green(c) palette_b = blue(c) color_distance = dist(img_r, img_g, img_b, palette_r, palette_g, palette_b) if color_distance < min_distance: target_color = c min_distance = color_distance return(target_color)
width = 800 height = 640 palette = ['#264653', '#2a9d8f', '#e9c46a', '#f4a261', '#e76f51'] def setup(): global img size(WIDTH, HEIGHT) this.surface.setTitle('Image Palette') img = load_image('akt.jpg') image(img, 0, 0) no_loop() def draw(): global y, img for x in range(width / 2): for y in range(height): img_color = img.get(x, y) palette_color = get_palette_color(img_color) set(x + width / 2, y, palette_color) def get_palette_color(img_color): min_distance = 999999 img_r = red(img_color) img_g = green(img_color) img_b = blue(img_color) for c in palette: palette_r = red(c) palette_g = green(c) palette_b = blue(c) color_distance = dist(img_r, img_g, img_b, palette_r, palette_g, palette_b) if color_distance < min_distance: target_color = c min_distance = color_distance return target_color
def front_and_back_search(lst, item): rear=0 front=len(lst)-1 u=None if rear>front: return False else: while rear<=front: if item==lst[rear] or item==lst[front]: u='' return True elif item!=lst[rear] and item!=lst[front]: if item > lst[rear]: rear=rear+1 elif item < lst[front]: front=front-1 if u==None: return False
def front_and_back_search(lst, item): rear = 0 front = len(lst) - 1 u = None if rear > front: return False else: while rear <= front: if item == lst[rear] or item == lst[front]: u = '' return True elif item != lst[rear] and item != lst[front]: if item > lst[rear]: rear = rear + 1 elif item < lst[front]: front = front - 1 if u == None: return False
# Darren Keenan 2018-02-27 # Exercise 4 - Project Euler 5 # What is the smallest number divisible by 1 to 20 def divisibleby1to20(n): for i in range(1, 21): if n % i != 0: return False return True n = 1 while True: if divisibleby1to20(n): break n += 1 print(n) # The smallest number divisible by 1 to 20 = 232792560
def divisibleby1to20(n): for i in range(1, 21): if n % i != 0: return False return True n = 1 while True: if divisibleby1to20(n): break n += 1 print(n)
# Three number sum def threeSumProblem(arr: list, target: int) : arr.sort() result = list() for i in range(0, len(arr) - 2) : left = i+1;right=len(arr)-1 while left < right : curren_sum = arr[i] + arr[left] + arr[right] if curren_sum == target : result.append([arr[i], arr[left], arr[right]]) left+=1 right-=1 elif curren_sum < target : left+=1 else : right -= 1 return result if __name__ == '__main__' : print(threeSumProblem([12,3,1,2,-6,5,-8,6], 0))
def three_sum_problem(arr: list, target: int): arr.sort() result = list() for i in range(0, len(arr) - 2): left = i + 1 right = len(arr) - 1 while left < right: curren_sum = arr[i] + arr[left] + arr[right] if curren_sum == target: result.append([arr[i], arr[left], arr[right]]) left += 1 right -= 1 elif curren_sum < target: left += 1 else: right -= 1 return result if __name__ == '__main__': print(three_sum_problem([12, 3, 1, 2, -6, 5, -8, 6], 0))
class animal: def eat(self): print("eat") class mammal(animal): def walk(self): print("walk") class fish(animal): def swim(self): print("swim") moka = mammal() moka.eat() moka.walk()
class Animal: def eat(self): print('eat') class Mammal(animal): def walk(self): print('walk') class Fish(animal): def swim(self): print('swim') moka = mammal() moka.eat() moka.walk()
g1 = 1 def display(): global g1 g1 = 2 print(g1) print("inside",id(g1)) display() print(g1) print("outside",id(g1))
g1 = 1 def display(): global g1 g1 = 2 print(g1) print('inside', id(g1)) display() print(g1) print('outside', id(g1))
showroom = set() showroom.add('Chevrolet SS') showroom.add('Mazda Miata') showroom.add('GMC Yukon XL Denali') showroom.add('Porsche Cayman') # print(showroom) # print (len(showroom)) showroom.update(['Jaguar F-Type', 'Ariel Atom 3']) # print (showroom) showroom.remove('GMC Yukon XL Denali') # print (showroom) junkyard = set() junkyard.update([ 'Mazda Miata', 'Chevy Caprice', 'Isuzu Trooper', 'Saturn SC2', 'Porsche Cayman' ]) # print(junkyard) def intersect(showroom, junkyard): return list(set(showroom) & set(junkyard)) # print(intersect(showroom, junkyard)) showroom = showroom.union(junkyard) # print(showroom) showroom.discard('Isuzu Trooper') print(showroom)
showroom = set() showroom.add('Chevrolet SS') showroom.add('Mazda Miata') showroom.add('GMC Yukon XL Denali') showroom.add('Porsche Cayman') showroom.update(['Jaguar F-Type', 'Ariel Atom 3']) showroom.remove('GMC Yukon XL Denali') junkyard = set() junkyard.update(['Mazda Miata', 'Chevy Caprice', 'Isuzu Trooper', 'Saturn SC2', 'Porsche Cayman']) def intersect(showroom, junkyard): return list(set(showroom) & set(junkyard)) showroom = showroom.union(junkyard) showroom.discard('Isuzu Trooper') print(showroom)
TARGET_COL = 'class' ID_COL = 'id' N_FOLD = 5 N_CLASS = 3 SEED = 42
target_col = 'class' id_col = 'id' n_fold = 5 n_class = 3 seed = 42
# # PySNMP MIB module ROHC-UNCOMPRESSED-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/ROHC-UNCOMPRESSED-MIB # Produced by pysmi-0.3.4 at Mon Apr 29 20:49:54 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) # Integer, OctetString, ObjectIdentifier = mibBuilder.importSymbols("ASN1", "Integer", "OctetString", "ObjectIdentifier") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ConstraintsUnion, ConstraintsIntersection, ValueRangeConstraint, ValueSizeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "SingleValueConstraint", "ConstraintsUnion", "ConstraintsIntersection", "ValueRangeConstraint", "ValueSizeConstraint") rohcChannelID, rohcContextCID = mibBuilder.importSymbols("ROHC-MIB", "rohcChannelID", "rohcContextCID") NotificationGroup, ObjectGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ObjectGroup", "ModuleCompliance") IpAddress, TimeTicks, Unsigned32, Bits, mib_2, NotificationType, ModuleIdentity, Counter64, ObjectIdentity, iso, MibIdentifier, Gauge32, Integer32, MibScalar, MibTable, MibTableRow, MibTableColumn, Counter32 = mibBuilder.importSymbols("SNMPv2-SMI", "IpAddress", "TimeTicks", "Unsigned32", "Bits", "mib-2", "NotificationType", "ModuleIdentity", "Counter64", "ObjectIdentity", "iso", "MibIdentifier", "Gauge32", "Integer32", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "Counter32") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") rohcUncmprMIB = ModuleIdentity((1, 3, 6, 1, 2, 1, 113)) rohcUncmprMIB.setRevisions(('2004-06-03 00:00',)) if mibBuilder.loadTexts: rohcUncmprMIB.setLastUpdated('200406030000Z') if mibBuilder.loadTexts: rohcUncmprMIB.setOrganization('IETF Robust Header Compression Working Group') rohcUncmprObjects = MibIdentifier((1, 3, 6, 1, 2, 1, 113, 1)) rohcUncmprConformance = MibIdentifier((1, 3, 6, 1, 2, 1, 113, 2)) rohcUncmprContextTable = MibTable((1, 3, 6, 1, 2, 1, 113, 1, 1), ) if mibBuilder.loadTexts: rohcUncmprContextTable.setStatus('current') rohcUncmprContextEntry = MibTableRow((1, 3, 6, 1, 2, 1, 113, 1, 1, 1), ).setIndexNames((0, "ROHC-MIB", "rohcChannelID"), (0, "ROHC-MIB", "rohcContextCID")) if mibBuilder.loadTexts: rohcUncmprContextEntry.setStatus('current') rohcUncmprContextState = MibTableColumn((1, 3, 6, 1, 2, 1, 113, 1, 1, 1, 3), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2, 3, 4))).clone(namedValues=NamedValues(("initAndRefresh", 1), ("normal", 2), ("noContext", 3), ("fullContext", 4)))).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcUncmprContextState.setStatus('current') rohcUncmprContextMode = MibTableColumn((1, 3, 6, 1, 2, 1, 113, 1, 1, 1, 4), Integer32().subtype(subtypeSpec=ConstraintsUnion(SingleValueConstraint(1, 2))).clone(namedValues=NamedValues(("unidirectional", 1), ("bidirectional", 2)))).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcUncmprContextMode.setStatus('current') rohcUncmprContextACKs = MibTableColumn((1, 3, 6, 1, 2, 1, 113, 1, 1, 1, 5), Counter32()).setMaxAccess("readonly") if mibBuilder.loadTexts: rohcUncmprContextACKs.setStatus('current') rohcUncmprCompliances = MibIdentifier((1, 3, 6, 1, 2, 1, 113, 2, 1)) rohcUncmprGroups = MibIdentifier((1, 3, 6, 1, 2, 1, 113, 2, 2)) rohcUncmprCompliance = ModuleCompliance((1, 3, 6, 1, 2, 1, 113, 2, 1, 1)).setObjects(("ROHC-UNCOMPRESSED-MIB", "rohcUncmprContextGroup"), ("ROHC-UNCOMPRESSED-MIB", "rohcUncmprStatisticsGroup")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): rohcUncmprCompliance = rohcUncmprCompliance.setStatus('current') rohcUncmprContextGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 113, 2, 2, 1)).setObjects(("ROHC-UNCOMPRESSED-MIB", "rohcUncmprContextState"), ("ROHC-UNCOMPRESSED-MIB", "rohcUncmprContextMode")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): rohcUncmprContextGroup = rohcUncmprContextGroup.setStatus('current') rohcUncmprStatisticsGroup = ObjectGroup((1, 3, 6, 1, 2, 1, 113, 2, 2, 2)).setObjects(("ROHC-UNCOMPRESSED-MIB", "rohcUncmprContextACKs")) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): rohcUncmprStatisticsGroup = rohcUncmprStatisticsGroup.setStatus('current') mibBuilder.exportSymbols("ROHC-UNCOMPRESSED-MIB", rohcUncmprContextState=rohcUncmprContextState, rohcUncmprMIB=rohcUncmprMIB, rohcUncmprConformance=rohcUncmprConformance, rohcUncmprContextEntry=rohcUncmprContextEntry, rohcUncmprContextMode=rohcUncmprContextMode, rohcUncmprStatisticsGroup=rohcUncmprStatisticsGroup, rohcUncmprObjects=rohcUncmprObjects, rohcUncmprContextACKs=rohcUncmprContextACKs, rohcUncmprCompliances=rohcUncmprCompliances, rohcUncmprCompliance=rohcUncmprCompliance, rohcUncmprContextTable=rohcUncmprContextTable, rohcUncmprContextGroup=rohcUncmprContextGroup, rohcUncmprGroups=rohcUncmprGroups, PYSNMP_MODULE_ID=rohcUncmprMIB)
(integer, octet_string, object_identifier) = mibBuilder.importSymbols('ASN1', 'Integer', 'OctetString', 'ObjectIdentifier') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (single_value_constraint, constraints_union, constraints_intersection, value_range_constraint, value_size_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'SingleValueConstraint', 'ConstraintsUnion', 'ConstraintsIntersection', 'ValueRangeConstraint', 'ValueSizeConstraint') (rohc_channel_id, rohc_context_cid) = mibBuilder.importSymbols('ROHC-MIB', 'rohcChannelID', 'rohcContextCID') (notification_group, object_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ObjectGroup', 'ModuleCompliance') (ip_address, time_ticks, unsigned32, bits, mib_2, notification_type, module_identity, counter64, object_identity, iso, mib_identifier, gauge32, integer32, mib_scalar, mib_table, mib_table_row, mib_table_column, counter32) = mibBuilder.importSymbols('SNMPv2-SMI', 'IpAddress', 'TimeTicks', 'Unsigned32', 'Bits', 'mib-2', 'NotificationType', 'ModuleIdentity', 'Counter64', 'ObjectIdentity', 'iso', 'MibIdentifier', 'Gauge32', 'Integer32', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'Counter32') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') rohc_uncmpr_mib = module_identity((1, 3, 6, 1, 2, 1, 113)) rohcUncmprMIB.setRevisions(('2004-06-03 00:00',)) if mibBuilder.loadTexts: rohcUncmprMIB.setLastUpdated('200406030000Z') if mibBuilder.loadTexts: rohcUncmprMIB.setOrganization('IETF Robust Header Compression Working Group') rohc_uncmpr_objects = mib_identifier((1, 3, 6, 1, 2, 1, 113, 1)) rohc_uncmpr_conformance = mib_identifier((1, 3, 6, 1, 2, 1, 113, 2)) rohc_uncmpr_context_table = mib_table((1, 3, 6, 1, 2, 1, 113, 1, 1)) if mibBuilder.loadTexts: rohcUncmprContextTable.setStatus('current') rohc_uncmpr_context_entry = mib_table_row((1, 3, 6, 1, 2, 1, 113, 1, 1, 1)).setIndexNames((0, 'ROHC-MIB', 'rohcChannelID'), (0, 'ROHC-MIB', 'rohcContextCID')) if mibBuilder.loadTexts: rohcUncmprContextEntry.setStatus('current') rohc_uncmpr_context_state = mib_table_column((1, 3, 6, 1, 2, 1, 113, 1, 1, 1, 3), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2, 3, 4))).clone(namedValues=named_values(('initAndRefresh', 1), ('normal', 2), ('noContext', 3), ('fullContext', 4)))).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcUncmprContextState.setStatus('current') rohc_uncmpr_context_mode = mib_table_column((1, 3, 6, 1, 2, 1, 113, 1, 1, 1, 4), integer32().subtype(subtypeSpec=constraints_union(single_value_constraint(1, 2))).clone(namedValues=named_values(('unidirectional', 1), ('bidirectional', 2)))).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcUncmprContextMode.setStatus('current') rohc_uncmpr_context_ac_ks = mib_table_column((1, 3, 6, 1, 2, 1, 113, 1, 1, 1, 5), counter32()).setMaxAccess('readonly') if mibBuilder.loadTexts: rohcUncmprContextACKs.setStatus('current') rohc_uncmpr_compliances = mib_identifier((1, 3, 6, 1, 2, 1, 113, 2, 1)) rohc_uncmpr_groups = mib_identifier((1, 3, 6, 1, 2, 1, 113, 2, 2)) rohc_uncmpr_compliance = module_compliance((1, 3, 6, 1, 2, 1, 113, 2, 1, 1)).setObjects(('ROHC-UNCOMPRESSED-MIB', 'rohcUncmprContextGroup'), ('ROHC-UNCOMPRESSED-MIB', 'rohcUncmprStatisticsGroup')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): rohc_uncmpr_compliance = rohcUncmprCompliance.setStatus('current') rohc_uncmpr_context_group = object_group((1, 3, 6, 1, 2, 1, 113, 2, 2, 1)).setObjects(('ROHC-UNCOMPRESSED-MIB', 'rohcUncmprContextState'), ('ROHC-UNCOMPRESSED-MIB', 'rohcUncmprContextMode')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): rohc_uncmpr_context_group = rohcUncmprContextGroup.setStatus('current') rohc_uncmpr_statistics_group = object_group((1, 3, 6, 1, 2, 1, 113, 2, 2, 2)).setObjects(('ROHC-UNCOMPRESSED-MIB', 'rohcUncmprContextACKs')) if getattr(mibBuilder, 'version', (0, 0, 0)) > (4, 4, 0): rohc_uncmpr_statistics_group = rohcUncmprStatisticsGroup.setStatus('current') mibBuilder.exportSymbols('ROHC-UNCOMPRESSED-MIB', rohcUncmprContextState=rohcUncmprContextState, rohcUncmprMIB=rohcUncmprMIB, rohcUncmprConformance=rohcUncmprConformance, rohcUncmprContextEntry=rohcUncmprContextEntry, rohcUncmprContextMode=rohcUncmprContextMode, rohcUncmprStatisticsGroup=rohcUncmprStatisticsGroup, rohcUncmprObjects=rohcUncmprObjects, rohcUncmprContextACKs=rohcUncmprContextACKs, rohcUncmprCompliances=rohcUncmprCompliances, rohcUncmprCompliance=rohcUncmprCompliance, rohcUncmprContextTable=rohcUncmprContextTable, rohcUncmprContextGroup=rohcUncmprContextGroup, rohcUncmprGroups=rohcUncmprGroups, PYSNMP_MODULE_ID=rohcUncmprMIB)
# 11. print(list(range(1, 10))) # 12. print(list(range(100, 20, -5)))
print(list(range(1, 10))) print(list(range(100, 20, -5)))
def A(m, n): if m == 0: return n + 1 if m > 0 and n == 0: return A(m - 1, 1) if m > 0 and n > 0: return A(m - 1, A(m, n - 1)) def main() -> None: print(A(2, 2)) if __name__ == "__main__": main()
def a(m, n): if m == 0: return n + 1 if m > 0 and n == 0: return a(m - 1, 1) if m > 0 and n > 0: return a(m - 1, a(m, n - 1)) def main() -> None: print(a(2, 2)) if __name__ == '__main__': main()
# input -1 n = int(input('input nilai: ')) if n <= 0: # Menentukan pengecualian & teks yang akan di tampilkan raise ValueError('nilai n harus bilangan positif') try: n = int(input('input nilai: ')) if n <= 0: # Menentukan pengecualian & teks yang akan di tampilkan raise ValueError('nilai n harus bilangan positif') except ValueError as ve: # Menampilkan teks dari pengecualian yang terjadi print(ve)
n = int(input('input nilai: ')) if n <= 0: raise value_error('nilai n harus bilangan positif') try: n = int(input('input nilai: ')) if n <= 0: raise value_error('nilai n harus bilangan positif') except ValueError as ve: print(ve)
# # PySNMP MIB module CYCLONE-MIB (http://snmplabs.com/pysmi) # ASN.1 source file:///Users/davwang4/Dev/mibs.snmplabs.com/asn1/CYCLONE-MIB # Produced by pysmi-0.3.4 at Wed May 1 12:34:24 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) # Integer, ObjectIdentifier, OctetString = mibBuilder.importSymbols("ASN1", "Integer", "ObjectIdentifier", "OctetString") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") ValueSizeConstraint, SingleValueConstraint, ConstraintsIntersection, ConstraintsUnion, ValueRangeConstraint = mibBuilder.importSymbols("ASN1-REFINEMENT", "ValueSizeConstraint", "SingleValueConstraint", "ConstraintsIntersection", "ConstraintsUnion", "ValueRangeConstraint") NotificationGroup, ModuleCompliance = mibBuilder.importSymbols("SNMPv2-CONF", "NotificationGroup", "ModuleCompliance") Counter64, NotificationType, iso, MibScalar, MibTable, MibTableRow, MibTableColumn, TimeTicks, IpAddress, Bits, Unsigned32, ObjectIdentity, Integer32, Counter32, Gauge32, ModuleIdentity, MibIdentifier, enterprises = mibBuilder.importSymbols("SNMPv2-SMI", "Counter64", "NotificationType", "iso", "MibScalar", "MibTable", "MibTableRow", "MibTableColumn", "TimeTicks", "IpAddress", "Bits", "Unsigned32", "ObjectIdentity", "Integer32", "Counter32", "Gauge32", "ModuleIdentity", "MibIdentifier", "enterprises") DisplayString, TextualConvention = mibBuilder.importSymbols("SNMPv2-TC", "DisplayString", "TextualConvention") adaptec = MibIdentifier((1, 3, 6, 1, 4, 1, 795)) storagemanagement = MibIdentifier((1, 3, 6, 1, 4, 1, 795, 2)) cyclone = MibIdentifier((1, 3, 6, 1, 4, 1, 795, 2, 5)) cycTraps = MibIdentifier((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000)) cycManagerID = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9001), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: cycManagerID.setStatus('mandatory') if mibBuilder.loadTexts: cycManagerID.setDescription('ASCII String description of SCSI Manager') cycHostAdapterID = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9002), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: cycHostAdapterID.setStatus('mandatory') if mibBuilder.loadTexts: cycHostAdapterID.setDescription('ASCII String description of Hostadapter') cycHostAdapterNumber = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9003), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cycHostAdapterNumber.setStatus('mandatory') if mibBuilder.loadTexts: cycHostAdapterNumber.setDescription('The unique Hostadapter Number') cycVendor = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9004), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 8))).setMaxAccess("readonly") if mibBuilder.loadTexts: cycVendor.setStatus('mandatory') if mibBuilder.loadTexts: cycVendor.setDescription('This indicates the Name of the Vendor') cycProduct = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9005), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 16))).setMaxAccess("readonly") if mibBuilder.loadTexts: cycProduct.setStatus('mandatory') if mibBuilder.loadTexts: cycProduct.setDescription('This indicates the product information') cycControllerModel = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9006), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: cycControllerModel.setStatus('mandatory') if mibBuilder.loadTexts: cycControllerModel.setDescription('The model of the associated controller e.g ATHENA, VIKING etc') cycBusNumber = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9007), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cycBusNumber.setStatus('mandatory') if mibBuilder.loadTexts: cycBusNumber.setDescription('The PCI Bus number') cycChannelNumber = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9008), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cycChannelNumber.setStatus('mandatory') if mibBuilder.loadTexts: cycChannelNumber.setDescription('Channel Number') cycScsiTargetID = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9009), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cycScsiTargetID.setStatus('mandatory') if mibBuilder.loadTexts: cycScsiTargetID.setDescription('SCSI Target ID') cycLun = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9010), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cycLun.setStatus('mandatory') if mibBuilder.loadTexts: cycLun.setDescription('The LUN of the device ID') cycArrayName = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9011), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: cycArrayName.setStatus('mandatory') if mibBuilder.loadTexts: cycArrayName.setDescription('Array name') cycMisCompares = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9012), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cycMisCompares.setStatus('mandatory') if mibBuilder.loadTexts: cycMisCompares.setDescription('The number of miscompares in verify ') cycDriver = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9013), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cycDriver.setStatus('mandatory') if mibBuilder.loadTexts: cycDriver.setDescription('The Driver version') cycManager = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9014), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cycManager.setStatus('mandatory') if mibBuilder.loadTexts: cycManager.setDescription('The CI/O Manager version') cycOldArrayName = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9015), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: cycOldArrayName.setStatus('mandatory') if mibBuilder.loadTexts: cycOldArrayName.setDescription('Old Array name') cycNewArrayName = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9016), DisplayString().subtype(subtypeSpec=ValueSizeConstraint(1, 32))).setMaxAccess("readonly") if mibBuilder.loadTexts: cycNewArrayName.setStatus('mandatory') if mibBuilder.loadTexts: cycNewArrayName.setDescription('Changed Array name') cycPriority = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9017), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cycPriority.setStatus('mandatory') if mibBuilder.loadTexts: cycPriority.setDescription('The Priority of the operation') cycSenseInfo = MibScalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9018), Integer32()).setMaxAccess("readonly") if mibBuilder.loadTexts: cycSenseInfo.setStatus('mandatory') if mibBuilder.loadTexts: cycSenseInfo.setDescription('The sense info of the PFA') sCSISmart1 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,101)) if mibBuilder.loadTexts: sCSISmart1.setDescription('SNMP Agent is up.') sCSISmart2 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,102)) if mibBuilder.loadTexts: sCSISmart2.setDescription('SNMP Agent is down.') sCSISmart3 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,107)) if mibBuilder.loadTexts: sCSISmart3.setDescription('Cyclone: duplicate hostadapter ID') sCSISmart4 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,108)).setObjects(("CYCLONE-MIB", "cycHostAdapterNumber"), ("CYCLONE-MIB", "cycHostAdapterID"), ("CYCLONE-MIB", "cycManagerID")) if mibBuilder.loadTexts: sCSISmart4.setDescription('The HostAdapter# %d with HostAdapter Id %s and Manager Id %s is discovered') sCSISmart5 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,109)).setObjects(("CYCLONE-MIB", "cycHostAdapterNumber"), ("CYCLONE-MIB", "cycHostAdapterID"), ("CYCLONE-MIB", "cycManagerID")) if mibBuilder.loadTexts: sCSISmart5.setDescription('The HostAdapter# %d has new HostAdapter Id %s and Manager Id %s') sCSISmart6 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,110)).setObjects(("CYCLONE-MIB", "cycHostAdapterNumber")) if mibBuilder.loadTexts: sCSISmart6.setDescription('The HostAdapter# %d has Failed') sCSISmart7 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,111)).setObjects(("CYCLONE-MIB", "cycHostAdapterNumber")) if mibBuilder.loadTexts: sCSISmart7.setDescription('Host Adapter# %d recovered') sCSISmart8 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,112)).setObjects(("CYCLONE-MIB", "cycHostAdapterNumber"), ("CYCLONE-MIB", "cycScsiTargetID"), ("CYCLONE-MIB", "cycLun")) if mibBuilder.loadTexts: sCSISmart8.setDescription('The HostAdapter# %d, TargetID %d, Lun# %d has failed') sCSISmart9 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,113)).setObjects(("CYCLONE-MIB", "cycHostAdapterNumber"), ("CYCLONE-MIB", "cycScsiTargetID"), ("CYCLONE-MIB", "cycLun"), ("CYCLONE-MIB", "cycVendor"), ("CYCLONE-MIB", "cycProduct")) if mibBuilder.loadTexts: sCSISmart9.setDescription('The HostAdapter# %d, TargetID %d, Lun# %d of vendor %s product %s has discovered') sCSISmart10 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,114)).setObjects(("CYCLONE-MIB", "cycHostAdapterNumber"), ("CYCLONE-MIB", "cycScsiTargetID"), ("CYCLONE-MIB", "cycLun")) if mibBuilder.loadTexts: sCSISmart10.setDescription('The HostAdapter# %d, TargetID %d,Lun# %d has recovered') sCSISmart11 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,115)).setObjects(("CYCLONE-MIB", "cycHostAdapterNumber"), ("CYCLONE-MIB", "cycScsiTargetID"), ("CYCLONE-MIB", "cycLun"), ("CYCLONE-MIB", "cycVendor"), ("CYCLONE-MIB", "cycProduct")) if mibBuilder.loadTexts: sCSISmart11.setDescription('The HostAdapter# %d, TargetID %d, Lun# %d has new Vendor %s and Product %s information') sCSISmart12 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,116)).setObjects(("CYCLONE-MIB", "cycHostAdapterNumber"), ("CYCLONE-MIB", "cycScsiTargetID"), ("CYCLONE-MIB", "cycLun"), ("CYCLONE-MIB", "cycVendor"), ("CYCLONE-MIB", "cycProduct"), ("CYCLONE-MIB", "cycSenseInfo")) if mibBuilder.loadTexts: sCSISmart12.setDescription('The HostAdapter# %d, TargetID %d, Lun# %d has Predictive Failure Condition on vendor %s product %s with sense info MSB(sense code), next 8 bits (sense code Qual) next 8 bits (Add sense code Qual) LSB (0000) %d') sCSISmart13 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,117)) if mibBuilder.loadTexts: sCSISmart13.setDescription('The Aspi database is cleared and therefore all the previous information are not available') sCSISmart14 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,118)) if mibBuilder.loadTexts: sCSISmart14.setDescription('The Aspi has crashed') sCSISmart15 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,119)) if mibBuilder.loadTexts: sCSISmart15.setDescription('No memory left for Aspi Operations') sCSISmart16 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,120)) if mibBuilder.loadTexts: sCSISmart16.setDescription('Unable to open Aspi file for writing, problem exists in server hard disk') sCSISmart17 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,121)) if mibBuilder.loadTexts: sCSISmart17.setDescription('Unable to open Aspi file, problem exists in server hard disk') sCSISmart18 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,122)) if mibBuilder.loadTexts: sCSISmart18.setDescription('Aspi device file doesnot exist') sCSISmart19 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,123)) if mibBuilder.loadTexts: sCSISmart19.setDescription('Aspi: Memory allocation is failing') sCSISmart20 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,124)) if mibBuilder.loadTexts: sCSISmart20.setDescription('Aspi: unable to read the file server hard disk might have problems') sCSISmart21 = NotificationType((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0,125)) if mibBuilder.loadTexts: sCSISmart21.setDescription('Aspi: database is corrupted') mibBuilder.exportSymbols("CYCLONE-MIB", cycSenseInfo=cycSenseInfo, sCSISmart19=sCSISmart19, sCSISmart10=sCSISmart10, cycPriority=cycPriority, cycBusNumber=cycBusNumber, sCSISmart1=sCSISmart1, sCSISmart12=sCSISmart12, cycDriver=cycDriver, sCSISmart13=sCSISmart13, sCSISmart3=sCSISmart3, cyclone=cyclone, sCSISmart21=sCSISmart21, sCSISmart16=sCSISmart16, cycMisCompares=cycMisCompares, cycLun=cycLun, sCSISmart17=sCSISmart17, sCSISmart8=sCSISmart8, cycOldArrayName=cycOldArrayName, cycNewArrayName=cycNewArrayName, cycHostAdapterNumber=cycHostAdapterNumber, sCSISmart4=sCSISmart4, sCSISmart20=sCSISmart20, cycControllerModel=cycControllerModel, sCSISmart14=sCSISmart14, adaptec=adaptec, sCSISmart15=sCSISmart15, cycVendor=cycVendor, cycManager=cycManager, sCSISmart18=sCSISmart18, cycArrayName=cycArrayName, cycScsiTargetID=cycScsiTargetID, cycTraps=cycTraps, sCSISmart7=sCSISmart7, cycHostAdapterID=cycHostAdapterID, cycManagerID=cycManagerID, cycChannelNumber=cycChannelNumber, sCSISmart6=sCSISmart6, sCSISmart9=sCSISmart9, sCSISmart2=sCSISmart2, cycProduct=cycProduct, sCSISmart11=sCSISmart11, storagemanagement=storagemanagement, sCSISmart5=sCSISmart5)
(integer, object_identifier, octet_string) = mibBuilder.importSymbols('ASN1', 'Integer', 'ObjectIdentifier', 'OctetString') (named_values,) = mibBuilder.importSymbols('ASN1-ENUMERATION', 'NamedValues') (value_size_constraint, single_value_constraint, constraints_intersection, constraints_union, value_range_constraint) = mibBuilder.importSymbols('ASN1-REFINEMENT', 'ValueSizeConstraint', 'SingleValueConstraint', 'ConstraintsIntersection', 'ConstraintsUnion', 'ValueRangeConstraint') (notification_group, module_compliance) = mibBuilder.importSymbols('SNMPv2-CONF', 'NotificationGroup', 'ModuleCompliance') (counter64, notification_type, iso, mib_scalar, mib_table, mib_table_row, mib_table_column, time_ticks, ip_address, bits, unsigned32, object_identity, integer32, counter32, gauge32, module_identity, mib_identifier, enterprises) = mibBuilder.importSymbols('SNMPv2-SMI', 'Counter64', 'NotificationType', 'iso', 'MibScalar', 'MibTable', 'MibTableRow', 'MibTableColumn', 'TimeTicks', 'IpAddress', 'Bits', 'Unsigned32', 'ObjectIdentity', 'Integer32', 'Counter32', 'Gauge32', 'ModuleIdentity', 'MibIdentifier', 'enterprises') (display_string, textual_convention) = mibBuilder.importSymbols('SNMPv2-TC', 'DisplayString', 'TextualConvention') adaptec = mib_identifier((1, 3, 6, 1, 4, 1, 795)) storagemanagement = mib_identifier((1, 3, 6, 1, 4, 1, 795, 2)) cyclone = mib_identifier((1, 3, 6, 1, 4, 1, 795, 2, 5)) cyc_traps = mib_identifier((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000)) cyc_manager_id = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9001), display_string().subtype(subtypeSpec=value_size_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: cycManagerID.setStatus('mandatory') if mibBuilder.loadTexts: cycManagerID.setDescription('ASCII String description of SCSI Manager') cyc_host_adapter_id = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9002), display_string().subtype(subtypeSpec=value_size_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: cycHostAdapterID.setStatus('mandatory') if mibBuilder.loadTexts: cycHostAdapterID.setDescription('ASCII String description of Hostadapter') cyc_host_adapter_number = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9003), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cycHostAdapterNumber.setStatus('mandatory') if mibBuilder.loadTexts: cycHostAdapterNumber.setDescription('The unique Hostadapter Number') cyc_vendor = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9004), display_string().subtype(subtypeSpec=value_size_constraint(1, 8))).setMaxAccess('readonly') if mibBuilder.loadTexts: cycVendor.setStatus('mandatory') if mibBuilder.loadTexts: cycVendor.setDescription('This indicates the Name of the Vendor') cyc_product = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9005), display_string().subtype(subtypeSpec=value_size_constraint(1, 16))).setMaxAccess('readonly') if mibBuilder.loadTexts: cycProduct.setStatus('mandatory') if mibBuilder.loadTexts: cycProduct.setDescription('This indicates the product information') cyc_controller_model = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9006), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: cycControllerModel.setStatus('mandatory') if mibBuilder.loadTexts: cycControllerModel.setDescription('The model of the associated controller e.g ATHENA, VIKING etc') cyc_bus_number = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9007), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cycBusNumber.setStatus('mandatory') if mibBuilder.loadTexts: cycBusNumber.setDescription('The PCI Bus number') cyc_channel_number = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9008), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cycChannelNumber.setStatus('mandatory') if mibBuilder.loadTexts: cycChannelNumber.setDescription('Channel Number') cyc_scsi_target_id = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9009), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cycScsiTargetID.setStatus('mandatory') if mibBuilder.loadTexts: cycScsiTargetID.setDescription('SCSI Target ID') cyc_lun = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9010), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cycLun.setStatus('mandatory') if mibBuilder.loadTexts: cycLun.setDescription('The LUN of the device ID') cyc_array_name = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9011), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: cycArrayName.setStatus('mandatory') if mibBuilder.loadTexts: cycArrayName.setDescription('Array name') cyc_mis_compares = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9012), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cycMisCompares.setStatus('mandatory') if mibBuilder.loadTexts: cycMisCompares.setDescription('The number of miscompares in verify ') cyc_driver = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9013), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cycDriver.setStatus('mandatory') if mibBuilder.loadTexts: cycDriver.setDescription('The Driver version') cyc_manager = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9014), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cycManager.setStatus('mandatory') if mibBuilder.loadTexts: cycManager.setDescription('The CI/O Manager version') cyc_old_array_name = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9015), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: cycOldArrayName.setStatus('mandatory') if mibBuilder.loadTexts: cycOldArrayName.setDescription('Old Array name') cyc_new_array_name = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9016), display_string().subtype(subtypeSpec=value_size_constraint(1, 32))).setMaxAccess('readonly') if mibBuilder.loadTexts: cycNewArrayName.setStatus('mandatory') if mibBuilder.loadTexts: cycNewArrayName.setDescription('Changed Array name') cyc_priority = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9017), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cycPriority.setStatus('mandatory') if mibBuilder.loadTexts: cycPriority.setDescription('The Priority of the operation') cyc_sense_info = mib_scalar((1, 3, 6, 1, 4, 1, 795, 2, 5, 9000, 9018), integer32()).setMaxAccess('readonly') if mibBuilder.loadTexts: cycSenseInfo.setStatus('mandatory') if mibBuilder.loadTexts: cycSenseInfo.setDescription('The sense info of the PFA') s_csi_smart1 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 101)) if mibBuilder.loadTexts: sCSISmart1.setDescription('SNMP Agent is up.') s_csi_smart2 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 102)) if mibBuilder.loadTexts: sCSISmart2.setDescription('SNMP Agent is down.') s_csi_smart3 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 107)) if mibBuilder.loadTexts: sCSISmart3.setDescription('Cyclone: duplicate hostadapter ID') s_csi_smart4 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 108)).setObjects(('CYCLONE-MIB', 'cycHostAdapterNumber'), ('CYCLONE-MIB', 'cycHostAdapterID'), ('CYCLONE-MIB', 'cycManagerID')) if mibBuilder.loadTexts: sCSISmart4.setDescription('The HostAdapter# %d with HostAdapter Id %s and Manager Id %s is discovered') s_csi_smart5 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 109)).setObjects(('CYCLONE-MIB', 'cycHostAdapterNumber'), ('CYCLONE-MIB', 'cycHostAdapterID'), ('CYCLONE-MIB', 'cycManagerID')) if mibBuilder.loadTexts: sCSISmart5.setDescription('The HostAdapter# %d has new HostAdapter Id %s and Manager Id %s') s_csi_smart6 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 110)).setObjects(('CYCLONE-MIB', 'cycHostAdapterNumber')) if mibBuilder.loadTexts: sCSISmart6.setDescription('The HostAdapter# %d has Failed') s_csi_smart7 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 111)).setObjects(('CYCLONE-MIB', 'cycHostAdapterNumber')) if mibBuilder.loadTexts: sCSISmart7.setDescription('Host Adapter# %d recovered') s_csi_smart8 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 112)).setObjects(('CYCLONE-MIB', 'cycHostAdapterNumber'), ('CYCLONE-MIB', 'cycScsiTargetID'), ('CYCLONE-MIB', 'cycLun')) if mibBuilder.loadTexts: sCSISmart8.setDescription('The HostAdapter# %d, TargetID %d, Lun# %d has failed') s_csi_smart9 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 113)).setObjects(('CYCLONE-MIB', 'cycHostAdapterNumber'), ('CYCLONE-MIB', 'cycScsiTargetID'), ('CYCLONE-MIB', 'cycLun'), ('CYCLONE-MIB', 'cycVendor'), ('CYCLONE-MIB', 'cycProduct')) if mibBuilder.loadTexts: sCSISmart9.setDescription('The HostAdapter# %d, TargetID %d, Lun# %d of vendor %s product %s has discovered') s_csi_smart10 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 114)).setObjects(('CYCLONE-MIB', 'cycHostAdapterNumber'), ('CYCLONE-MIB', 'cycScsiTargetID'), ('CYCLONE-MIB', 'cycLun')) if mibBuilder.loadTexts: sCSISmart10.setDescription('The HostAdapter# %d, TargetID %d,Lun# %d has recovered') s_csi_smart11 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 115)).setObjects(('CYCLONE-MIB', 'cycHostAdapterNumber'), ('CYCLONE-MIB', 'cycScsiTargetID'), ('CYCLONE-MIB', 'cycLun'), ('CYCLONE-MIB', 'cycVendor'), ('CYCLONE-MIB', 'cycProduct')) if mibBuilder.loadTexts: sCSISmart11.setDescription('The HostAdapter# %d, TargetID %d, Lun# %d has new Vendor %s and Product %s information') s_csi_smart12 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 116)).setObjects(('CYCLONE-MIB', 'cycHostAdapterNumber'), ('CYCLONE-MIB', 'cycScsiTargetID'), ('CYCLONE-MIB', 'cycLun'), ('CYCLONE-MIB', 'cycVendor'), ('CYCLONE-MIB', 'cycProduct'), ('CYCLONE-MIB', 'cycSenseInfo')) if mibBuilder.loadTexts: sCSISmart12.setDescription('The HostAdapter# %d, TargetID %d, Lun# %d has Predictive Failure Condition on vendor %s product %s with sense info MSB(sense code), next 8 bits (sense code Qual) next 8 bits (Add sense code Qual) LSB (0000) %d') s_csi_smart13 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 117)) if mibBuilder.loadTexts: sCSISmart13.setDescription('The Aspi database is cleared and therefore all the previous information are not available') s_csi_smart14 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 118)) if mibBuilder.loadTexts: sCSISmart14.setDescription('The Aspi has crashed') s_csi_smart15 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 119)) if mibBuilder.loadTexts: sCSISmart15.setDescription('No memory left for Aspi Operations') s_csi_smart16 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 120)) if mibBuilder.loadTexts: sCSISmart16.setDescription('Unable to open Aspi file for writing, problem exists in server hard disk') s_csi_smart17 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 121)) if mibBuilder.loadTexts: sCSISmart17.setDescription('Unable to open Aspi file, problem exists in server hard disk') s_csi_smart18 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 122)) if mibBuilder.loadTexts: sCSISmart18.setDescription('Aspi device file doesnot exist') s_csi_smart19 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 123)) if mibBuilder.loadTexts: sCSISmart19.setDescription('Aspi: Memory allocation is failing') s_csi_smart20 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 124)) if mibBuilder.loadTexts: sCSISmart20.setDescription('Aspi: unable to read the file server hard disk might have problems') s_csi_smart21 = notification_type((1, 3, 6, 1, 4, 1, 795, 2, 5) + (0, 125)) if mibBuilder.loadTexts: sCSISmart21.setDescription('Aspi: database is corrupted') mibBuilder.exportSymbols('CYCLONE-MIB', cycSenseInfo=cycSenseInfo, sCSISmart19=sCSISmart19, sCSISmart10=sCSISmart10, cycPriority=cycPriority, cycBusNumber=cycBusNumber, sCSISmart1=sCSISmart1, sCSISmart12=sCSISmart12, cycDriver=cycDriver, sCSISmart13=sCSISmart13, sCSISmart3=sCSISmart3, cyclone=cyclone, sCSISmart21=sCSISmart21, sCSISmart16=sCSISmart16, cycMisCompares=cycMisCompares, cycLun=cycLun, sCSISmart17=sCSISmart17, sCSISmart8=sCSISmart8, cycOldArrayName=cycOldArrayName, cycNewArrayName=cycNewArrayName, cycHostAdapterNumber=cycHostAdapterNumber, sCSISmart4=sCSISmart4, sCSISmart20=sCSISmart20, cycControllerModel=cycControllerModel, sCSISmart14=sCSISmart14, adaptec=adaptec, sCSISmart15=sCSISmart15, cycVendor=cycVendor, cycManager=cycManager, sCSISmart18=sCSISmart18, cycArrayName=cycArrayName, cycScsiTargetID=cycScsiTargetID, cycTraps=cycTraps, sCSISmart7=sCSISmart7, cycHostAdapterID=cycHostAdapterID, cycManagerID=cycManagerID, cycChannelNumber=cycChannelNumber, sCSISmart6=sCSISmart6, sCSISmart9=sCSISmart9, sCSISmart2=sCSISmart2, cycProduct=cycProduct, sCSISmart11=sCSISmart11, storagemanagement=storagemanagement, sCSISmart5=sCSISmart5)
def tapcode_to_fingers(tapcode:int): return '{0:05b}'.format(1)[::-1] def mouse_data_msg(data: bytearray): vx = int.from_bytes(data[1:3],"little", signed=True) vy = int.from_bytes(data[3:5],"little", signed=True) prox = data[9] == 1 return vx, vy, prox def air_gesture_data_msg(data: bytearray): return [data[0]] def tap_data_msg(data: bytearray): return [data[0]] def raw_data_msg(data: bytearray): ''' raw data is packed into messages with the following structure: [msg_type (1 bit)][timestamp (31 bit)][payload (12 - 30 bytes)] * msg type - '0' for imu message - '1' for accelerometers message * timestamp - unsigned int, given in milliseconds * payload - for imu message is 12 bytes composed by a series of 6 uint16 numbers representing [g_x, g_y, g_z, xl_x, xl_y, xl_z] - for accelerometers message is 30 bytes composed by a series of 15 uint16 numbers representing [xl_x_thumb , xl_y_thumb, xl_z_thumb, xl_x_finger, xl_y_finger, xl_z_finger, ...] ''' L = len(data) ptr = 0 messages = [] while ptr <= L: # decode timestamp and message type ts = int.from_bytes(data[ptr:ptr+4],"little", signed=False) if ts == 0: break ptr += 4 # resolve message type if ts > raw_data_msg.msg_type_value: msg = "accl" ts -= raw_data_msg.msg_type_value num_of_samples = 15 else: msg = "imu" num_of_samples = 6 # parse payload payload = [] for i in range(num_of_samples): payload.append(int.from_bytes(data[ptr:ptr+2],"little", signed=True)) ptr += 2 messages.append({"type":msg, "ts":ts, "payload":payload}) return messages raw_data_msg.msg_type_value = 2**31
def tapcode_to_fingers(tapcode: int): return '{0:05b}'.format(1)[::-1] def mouse_data_msg(data: bytearray): vx = int.from_bytes(data[1:3], 'little', signed=True) vy = int.from_bytes(data[3:5], 'little', signed=True) prox = data[9] == 1 return (vx, vy, prox) def air_gesture_data_msg(data: bytearray): return [data[0]] def tap_data_msg(data: bytearray): return [data[0]] def raw_data_msg(data: bytearray): """ raw data is packed into messages with the following structure: [msg_type (1 bit)][timestamp (31 bit)][payload (12 - 30 bytes)] * msg type - '0' for imu message - '1' for accelerometers message * timestamp - unsigned int, given in milliseconds * payload - for imu message is 12 bytes composed by a series of 6 uint16 numbers representing [g_x, g_y, g_z, xl_x, xl_y, xl_z] - for accelerometers message is 30 bytes composed by a series of 15 uint16 numbers representing [xl_x_thumb , xl_y_thumb, xl_z_thumb, xl_x_finger, xl_y_finger, xl_z_finger, ...] """ l = len(data) ptr = 0 messages = [] while ptr <= L: ts = int.from_bytes(data[ptr:ptr + 4], 'little', signed=False) if ts == 0: break ptr += 4 if ts > raw_data_msg.msg_type_value: msg = 'accl' ts -= raw_data_msg.msg_type_value num_of_samples = 15 else: msg = 'imu' num_of_samples = 6 payload = [] for i in range(num_of_samples): payload.append(int.from_bytes(data[ptr:ptr + 2], 'little', signed=True)) ptr += 2 messages.append({'type': msg, 'ts': ts, 'payload': payload}) return messages raw_data_msg.msg_type_value = 2 ** 31
class DBConnector: def save_graph(self, local_graph): pass def get_reader_endpoint(self): pass def get_writer_endpoint(self): pass def disconnect(self): pass
class Dbconnector: def save_graph(self, local_graph): pass def get_reader_endpoint(self): pass def get_writer_endpoint(self): pass def disconnect(self): pass
#! python # Problem # : 50A # Created on : 2019-01-14 21:29:26 def Main(): m, n = map(int, input().split(' ')) val = m * n cnt = int(val / 2) print(cnt) if __name__ == '__main__': Main()
def main(): (m, n) = map(int, input().split(' ')) val = m * n cnt = int(val / 2) print(cnt) if __name__ == '__main__': main()
def organize_data(lines): max_x = 0 max_y = 0 line_segments = [] # store all of the line segments for line in lines: points = line.split(" -> ") point1 = points[0].split(",") point2 = points[1].split(",") x1 = int(point1[0].strip()) y1 = int(point1[1].strip()) x2 = int(point2[0].strip()) y2 = int(point2[1].strip()) line_segments.append([(x1, y1), (x2, y2)]) # keep track of the maximum row and column values if x1 > max_x: max_x = x1 if y1 > max_y: max_y = y1 if x2 > max_x: max_x = x2 if y2 > max_y: max_y = y2 return line_segments, max_x, max_y def main(): data = open("day05/input.txt", "r") lines = [line for line in data] line_segments, max_x, max_y = organize_data(lines) # initialize diagram diagram = [] for y in range(max_y + 1): diagram.append([]) for x in range(max_x + 1): diagram[y].append(0) # fill out diagram for segment in line_segments: (x1, y1), (x2, y2) = segment if x1 == x2: larger_y = max([y1, y2]) smaller_y = min([y1, y2]) for y in range(smaller_y, larger_y + 1): diagram[y][x1] += 1 elif y1 == y2: larger_x = max([x1, x2]) smaller_x = min([x1, x2]) for x in range(smaller_x, larger_x + 1): diagram[y1][x] += 1 else: while x1 != x2 and y1 != y2: diagram[y1][x1] += 1 if x1 > x2: x1 -= 1 else: x1 += 1 if y1 > y2: y1 -= 1 else: y1 += 1 diagram[y2][x2] += 1 # count the values in the diagram that are >= 2 counter = 0 for row in diagram: for val in row: if val >= 2: counter += 1 print(counter) if __name__ == "__main__": main()
def organize_data(lines): max_x = 0 max_y = 0 line_segments = [] for line in lines: points = line.split(' -> ') point1 = points[0].split(',') point2 = points[1].split(',') x1 = int(point1[0].strip()) y1 = int(point1[1].strip()) x2 = int(point2[0].strip()) y2 = int(point2[1].strip()) line_segments.append([(x1, y1), (x2, y2)]) if x1 > max_x: max_x = x1 if y1 > max_y: max_y = y1 if x2 > max_x: max_x = x2 if y2 > max_y: max_y = y2 return (line_segments, max_x, max_y) def main(): data = open('day05/input.txt', 'r') lines = [line for line in data] (line_segments, max_x, max_y) = organize_data(lines) diagram = [] for y in range(max_y + 1): diagram.append([]) for x in range(max_x + 1): diagram[y].append(0) for segment in line_segments: ((x1, y1), (x2, y2)) = segment if x1 == x2: larger_y = max([y1, y2]) smaller_y = min([y1, y2]) for y in range(smaller_y, larger_y + 1): diagram[y][x1] += 1 elif y1 == y2: larger_x = max([x1, x2]) smaller_x = min([x1, x2]) for x in range(smaller_x, larger_x + 1): diagram[y1][x] += 1 else: while x1 != x2 and y1 != y2: diagram[y1][x1] += 1 if x1 > x2: x1 -= 1 else: x1 += 1 if y1 > y2: y1 -= 1 else: y1 += 1 diagram[y2][x2] += 1 counter = 0 for row in diagram: for val in row: if val >= 2: counter += 1 print(counter) if __name__ == '__main__': main()
class Config: def __init__(self, name:str=None, username:str=None, pin:int=2, email:str=None, password:str=None, set_password:bool=False, set_email_notify:bool=False): self.name = name self.username = username self.pin = pin self.email = email self.password = password self.set_password = set_password self.set_email_notify = set_email_notify
class Config: def __init__(self, name: str=None, username: str=None, pin: int=2, email: str=None, password: str=None, set_password: bool=False, set_email_notify: bool=False): self.name = name self.username = username self.pin = pin self.email = email self.password = password self.set_password = set_password self.set_email_notify = set_email_notify
# https://leetcode.com/problems/longest-increasing-subsequence/ class Solution: def lengthOfLIS(self, nums: list[int]) -> int: # Patience sorting-like approach, but keeping track # only of the topmost element at each stack. stack_tops = [nums[0]] for num in nums[1:]: for idx in range(len(stack_tops)): if stack_tops[idx] >= num: stack_tops[idx] = num break else: stack_tops.append(num) return len(stack_tops)
class Solution: def length_of_lis(self, nums: list[int]) -> int: stack_tops = [nums[0]] for num in nums[1:]: for idx in range(len(stack_tops)): if stack_tops[idx] >= num: stack_tops[idx] = num break else: stack_tops.append(num) return len(stack_tops)
{ "targets": [{ "target_name": "binding", "sources": ["binding.cc"], "include_dirs": [ "<!(node -e \"require('nan')\")", "/opt/vc/include", "/opt/vc/include/interface/vcos/pthreads", "/opt/vc/include/interface/vmcs_host/linux" ], "libraries": ["-lbcm_host", "-L/opt/vc/lib"] }] }
{'targets': [{'target_name': 'binding', 'sources': ['binding.cc'], 'include_dirs': ['<!(node -e "require(\'nan\')")', '/opt/vc/include', '/opt/vc/include/interface/vcos/pthreads', '/opt/vc/include/interface/vmcs_host/linux'], 'libraries': ['-lbcm_host', '-L/opt/vc/lib']}]}
RES_SPA_MASSAGE_PARLOR = [ "spa", "table", "shower", "nuru", "slide", "therapy", "therapist", "bodyrub", "sauna", "gel", "shiatsu", "jacuzzi" ]
res_spa_massage_parlor = ['spa', 'table', 'shower', 'nuru', 'slide', 'therapy', 'therapist', 'bodyrub', 'sauna', 'gel', 'shiatsu', 'jacuzzi']
'''function in python ''' print('=== function in python ===') def func_args(*args): print('* function *args') for x in args: print(x) def func_kwargs(**kwargs): print('* function **kwargs') print('kwargs[name]', kwargs['name']) func_args('hainv', '23') func_kwargs(name="Tobias", lname="Refsnes") print('=== lambda functions ===')
"""function in python """ print('=== function in python ===') def func_args(*args): print('* function *args') for x in args: print(x) def func_kwargs(**kwargs): print('* function **kwargs') print('kwargs[name]', kwargs['name']) func_args('hainv', '23') func_kwargs(name='Tobias', lname='Refsnes') print('=== lambda functions ===')
# config.py class Config(object): num_channels = 256 linear_size = 256 output_size = 4 max_epochs = 10 lr = 0.001 batch_size = 128 seq_len = 300 # 1014 in original paper dropout_keep = 0.5
class Config(object): num_channels = 256 linear_size = 256 output_size = 4 max_epochs = 10 lr = 0.001 batch_size = 128 seq_len = 300 dropout_keep = 0.5
arr = input() for i in range(0, len(arr), 7): bits = arr[i:i + 7] result = 0 n = 1 for b in bits[::-1]: result += n * int(b) n *= 2 print(result)
arr = input() for i in range(0, len(arr), 7): bits = arr[i:i + 7] result = 0 n = 1 for b in bits[::-1]: result += n * int(b) n *= 2 print(result)
def test(): # Here we can either check objects created in the solution code, or the # string value of the solution, available as __solution__. A helper for # printing formatted messages is available as __msg__. See the testTemplate # in the meta.json for details. # If an assertion fails, the message will be displayed assert 'X' in __solution__, "Make sure you are using 'X' as a variable" assert 'y' in __solution__, "Make sure you are using 'y' as a variable" assert X.shape == (25, 8), "The dimensions of X is incorrect. Are you selcting the correct columns?" assert y.shape == (25,), "The dimensions of y is incorrect. Are you selcting the correct columns?" assert 'availability' not in X.columns, "Make sure the target is not in X dataframe" assert sorted(list(X.columns))[0:4] == ['caramel', 'chocolate', 'coconut', 'cookie_wafer_rice'], "The X dataframe includes the incorrect columns. Make sure you are selecting the correct columns" __msg__.good("Nice work, well done!")
def test(): assert 'X' in __solution__, "Make sure you are using 'X' as a variable" assert 'y' in __solution__, "Make sure you are using 'y' as a variable" assert X.shape == (25, 8), 'The dimensions of X is incorrect. Are you selcting the correct columns?' assert y.shape == (25,), 'The dimensions of y is incorrect. Are you selcting the correct columns?' assert 'availability' not in X.columns, 'Make sure the target is not in X dataframe' assert sorted(list(X.columns))[0:4] == ['caramel', 'chocolate', 'coconut', 'cookie_wafer_rice'], 'The X dataframe includes the incorrect columns. Make sure you are selecting the correct columns' __msg__.good('Nice work, well done!')
n = int(input('Enter number of lines:')) for i in range(1, n +1): for j in range(1, n+1): if i == 1 or j == 1 or i == n or j == n: print("*", end = ' ') else: print(' ', end = ' ') print()
n = int(input('Enter number of lines:')) for i in range(1, n + 1): for j in range(1, n + 1): if i == 1 or j == 1 or i == n or (j == n): print('*', end=' ') else: print(' ', end=' ') print()
#import sys #file = sys.stdin file = open( r".\data\listcomprehensions.txt" ) data = file.read().strip().split() #x,y,z,n = input(), input(), input(), input() x,y,z = map(eval, map(''.join, (zip(data[:3], ['+1']*3)))) n = int(data[3]) print(x,y,z,n) coords = [[a,b,c] for a in range(x) for b in range(y) for c in range(z) if a+b+c != n] print(coords)
file = open('.\\data\\listcomprehensions.txt') data = file.read().strip().split() (x, y, z) = map(eval, map(''.join, zip(data[:3], ['+1'] * 3))) n = int(data[3]) print(x, y, z, n) coords = [[a, b, c] for a in range(x) for b in range(y) for c in range(z) if a + b + c != n] print(coords)
routes_in=(('/forca/(?P<a>.*)','/\g<a>'),) default_application = 'ForCA' # ordinarily set in base routes.py default_controller = 'default' # ordinarily set in app-specific routes.py default_function = 'index' # ordinarily set in app-specific routes.py routes_out=(('/(?P<a>.*)','/forca/\g<a>'),)
routes_in = (('/forca/(?P<a>.*)', '/\\g<a>'),) default_application = 'ForCA' default_controller = 'default' default_function = 'index' routes_out = (('/(?P<a>.*)', '/forca/\\g<a>'),)
N = int(input()) X = 0 W = 0 Y = 0 Z = 0 for i in range(N): W = Z + 1 X = W + 1 Y = X + 1 Z = Y + 1 print('{} {} {} PUM'.format(W, X, Y))
n = int(input()) x = 0 w = 0 y = 0 z = 0 for i in range(N): w = Z + 1 x = W + 1 y = X + 1 z = Y + 1 print('{} {} {} PUM'.format(W, X, Y))
# pylint: disable=missing-function-docstring, missing-module-docstring/ # coding: utf-8 #$ header class Parallel(public, with, openmp) #$ header method __init__(Parallel, str, str, str [:], str [:], str [:], str [:], str, str [:], str) #$ header method __del__(Parallel) #$ header method __enter__(Parallel) #$ header method __exit__(Parallel, str, str, str) class Parallel(object): def __init__(self, num_threads, if_test, private, firstprivate, shared, reduction, default, copyin, proc_bind): self._num_threads = num_threads self._if_test = if_test self._private = private self._firstprivate = firstprivate self._shared = shared self._reduction = reduction self._default = default self._copyin = copyin self._proc_bind = proc_bind def __del__(self): pass def __enter__(self): pass def __exit__(self, dtype, value, tb): pass x = 0.0 para = Parallel() with para: for i in range(10): x += 2 * i print('x = ', x)
class Parallel(object): def __init__(self, num_threads, if_test, private, firstprivate, shared, reduction, default, copyin, proc_bind): self._num_threads = num_threads self._if_test = if_test self._private = private self._firstprivate = firstprivate self._shared = shared self._reduction = reduction self._default = default self._copyin = copyin self._proc_bind = proc_bind def __del__(self): pass def __enter__(self): pass def __exit__(self, dtype, value, tb): pass x = 0.0 para = parallel() with para: for i in range(10): x += 2 * i print('x = ', x)
class MyMetaClass(type): def __new__(cls, name, bases, ns): ns['kw_created_by_metaclass'] = lambda self, arg: arg.upper() return type.__new__(cls, name, bases, ns) def method_in_metaclass(cls): pass class MetaClassLibrary(metaclass=MyMetaClass): def greet(self, name): return 'Hello %s!' % name
class Mymetaclass(type): def __new__(cls, name, bases, ns): ns['kw_created_by_metaclass'] = lambda self, arg: arg.upper() return type.__new__(cls, name, bases, ns) def method_in_metaclass(cls): pass class Metaclasslibrary(metaclass=MyMetaClass): def greet(self, name): return 'Hello %s!' % name
lower_camel_case = input() snake_case = "" for char in lower_camel_case: if char.isupper(): snake_case += "_" + char.lower() else: snake_case += char print(snake_case)
lower_camel_case = input() snake_case = '' for char in lower_camel_case: if char.isupper(): snake_case += '_' + char.lower() else: snake_case += char print(snake_case)
#wap to find the numbers which are divisible by 3 a=int(input('Enter starting range ')) b=int(input('Enter ending range ')) number=int(input('Enter the number whose multiples you want to find in the range ')) print('Numbers which are divisible') for i in range(a,b+1): if i%number==0: print(i,end=' ')
a = int(input('Enter starting range ')) b = int(input('Enter ending range ')) number = int(input('Enter the number whose multiples you want to find in the range ')) print('Numbers which are divisible') for i in range(a, b + 1): if i % number == 0: print(i, end=' ')
# Definition for singly-linked list. class ListNode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: ''' 92.22% // 75.79% ''' def removeNthFromEnd(self, head: ListNode, n: int) -> ListNode: slow = fast = head {(fast := fast.next) for _ in range(n)} if fast is None: return head.next while fast.next: fast, slow = fast.next, slow.next slow.next = slow.next.next return head
class Listnode: def __init__(self, val=0, next=None): self.val = val self.next = next class Solution: """ 92.22% // 75.79% """ def remove_nth_from_end(self, head: ListNode, n: int) -> ListNode: slow = fast = head {(fast := fast.next) for _ in range(n)} if fast is None: return head.next while fast.next: (fast, slow) = (fast.next, slow.next) slow.next = slow.next.next return head
q = int(input()) for _ in range(q): n, m = map(int, input().split()) d = n // m a = [0] * 10 for i in range(10): a[i] = (m + a[i - 1]) % 10 s = sum(a) print((d // 10) * s + sum(a[: (d % 10)]))
q = int(input()) for _ in range(q): (n, m) = map(int, input().split()) d = n // m a = [0] * 10 for i in range(10): a[i] = (m + a[i - 1]) % 10 s = sum(a) print(d // 10 * s + sum(a[:d % 10]))
__author__ = 'shukkkur' ''' https://codeforces.com/problemset/problem/110/A ''' i = input() n = i.count('4') + i.count('7') s = str(n) s = s.replace('4', '') s = s.replace('7', '') if s == '': print('YES') else: print('NO')
__author__ = 'shukkkur' '\nhttps://codeforces.com/problemset/problem/110/A\n' i = input() n = i.count('4') + i.count('7') s = str(n) s = s.replace('4', '') s = s.replace('7', '') if s == '': print('YES') else: print('NO')
PYTHON_PLATFORM = "python" SUPPORTED_PLATFORMS = ((PYTHON_PLATFORM, "Python"),) LOG_LEVEL_DEBUG = "debug" LOG_LEVEL_INFO = "info" LOG_LEVEL_ERROR = "error" LOG_LEVEL_FATAL = "fatal" LOG_LEVEL_SAMPLE = "sample" LOG_LEVEL_WARNING = "warning" LOG_LEVELS = ( (LOG_LEVEL_DEBUG, "Debug"), (LOG_LEVEL_INFO, "Info"), (LOG_LEVEL_ERROR, "Error"), (LOG_LEVEL_FATAL, "Fatal"), (LOG_LEVEL_SAMPLE, "Sample"), (LOG_LEVEL_WARNING, "Warning"), )
python_platform = 'python' supported_platforms = ((PYTHON_PLATFORM, 'Python'),) log_level_debug = 'debug' log_level_info = 'info' log_level_error = 'error' log_level_fatal = 'fatal' log_level_sample = 'sample' log_level_warning = 'warning' log_levels = ((LOG_LEVEL_DEBUG, 'Debug'), (LOG_LEVEL_INFO, 'Info'), (LOG_LEVEL_ERROR, 'Error'), (LOG_LEVEL_FATAL, 'Fatal'), (LOG_LEVEL_SAMPLE, 'Sample'), (LOG_LEVEL_WARNING, 'Warning'))
# Largest palindrome product DIGITS = 3 def solve(): return max(p for x in range(10**(DIGITS - 1), 10**DIGITS) for y in range(x, 10**DIGITS) if str(p := x * y) == str(p)[::-1]) if __name__ == "__main__": print(solve())
digits = 3 def solve(): return max((p for x in range(10 ** (DIGITS - 1), 10 ** DIGITS) for y in range(x, 10 ** DIGITS) if str((p := (x * y))) == str(p)[::-1])) if __name__ == '__main__': print(solve())
def find_longest_palindrome(string): if is_palindrome(string): return string left = find_longest_palindrome(string[:-1]) right = find_longest_palindrome(string[1:]) middle = find_longest_palindrome(string[1:-1]) if len(left) >= len(right) and len(left) >= len(middle): return left elif len(right) >= len(left) and len(right) >= len(middle): return right else: return middle def is_palindrome(string): i = 0 while i < (len(string) - 1 - i): if string[i] == string[len(string) - 1 - i]: i += 1 else: return False return True string = "asdlkfjsdlfusdboob" print(find_longest_palindrome(string))
def find_longest_palindrome(string): if is_palindrome(string): return string left = find_longest_palindrome(string[:-1]) right = find_longest_palindrome(string[1:]) middle = find_longest_palindrome(string[1:-1]) if len(left) >= len(right) and len(left) >= len(middle): return left elif len(right) >= len(left) and len(right) >= len(middle): return right else: return middle def is_palindrome(string): i = 0 while i < len(string) - 1 - i: if string[i] == string[len(string) - 1 - i]: i += 1 else: return False return True string = 'asdlkfjsdlfusdboob' print(find_longest_palindrome(string))
class Solution: def mySqrt(self, x: int) -> int: if x < 0 or x>(2**31): return False ans = 0 for i in range(0, x+1): if i**2<=x: ans = i else: break return ans
class Solution: def my_sqrt(self, x: int) -> int: if x < 0 or x > 2 ** 31: return False ans = 0 for i in range(0, x + 1): if i ** 2 <= x: ans = i else: break return ans
# Copyright 2020 The Kythe Authors. All rights reserved. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. load("@bazel_skylib//lib:paths.bzl", "paths") load("@bazel_tools//tools/cpp:toolchain_utils.bzl", "find_cpp_toolchain") load("//kythe/go/indexer:testdata/go_indexer_test.bzl", "go_verifier_test") load( "//tools/build_rules/verifier_test:verifier_test.bzl", "KytheEntries", ) def _rust_extract_impl(ctx): # Get the path for the system's linker cc_toolchain = find_cpp_toolchain(ctx) cc_features = cc_common.configure_features( ctx = ctx, cc_toolchain = cc_toolchain, ) linker_path = cc_common.get_tool_for_action( feature_configuration = cc_features, action_name = "c++-link-executable", ) # Rust toolchain rust_toolchain = ctx.toolchains["@io_bazel_rules_rust//rust:toolchain"] rustc_lib = rust_toolchain.rustc_lib.files.to_list() rust_lib = rust_toolchain.rust_lib.files.to_list() # Generate extra_action file to be used by the extractor extra_action_file = ctx.actions.declare_file(ctx.label.name + ".xa") xa_maker = ctx.executable._extra_action ctx.actions.run( executable = xa_maker, arguments = [ "--src_files=%s" % ",".join([f.path for f in ctx.files.srcs]), "--output=%s" % extra_action_file.path, "--owner=%s" % ctx.label.name, "--crate_name=%s" % ctx.attr.crate_name, "--sysroot=%s" % paths.dirname(rust_lib[0].path), "--linker=%s" % linker_path, ], outputs = [extra_action_file], ) # Generate the kzip output = ctx.outputs.kzip ctx.actions.run( mnemonic = "RustExtract", executable = ctx.executable._extractor, arguments = [ "--extra_action=%s" % extra_action_file.path, "--output=%s" % output.path, ], inputs = [extra_action_file] + rustc_lib + rust_lib + ctx.files.srcs, outputs = [output], env = { "KYTHE_CORPUS": "test_corpus", "LD_LIBRARY_PATH": paths.dirname(rustc_lib[0].path), }, ) return struct(kzip = output) # Generate a kzip with the compilations captured from a single Go library or # binary rule. rust_extract = rule( _rust_extract_impl, attrs = { # Additional data files to include in each compilation. "data": attr.label_list( allow_empty = True, allow_files = True, ), "srcs": attr.label_list( mandatory = True, allow_files = [".rs"], ), "crate_name": attr.string( default = "test_crate", ), "_extractor": attr.label( default = Label("//kythe/rust/extractor"), executable = True, cfg = "host", ), "_extra_action": attr.label( default = Label("//tools/rust/extra_action"), executable = True, cfg = "host", ), "_cc_toolchain": attr.label( default = Label("@bazel_tools//tools/cpp:current_cc_toolchain"), allow_files = True, ), }, outputs = {"kzip": "%{name}.kzip"}, fragments = ["cpp"], toolchains = ["@io_bazel_rules_rust//rust:toolchain"], ) def _rust_entries_impl(ctx): kzip = ctx.attr.kzip.kzip indexer = ctx.executable._indexer iargs = [indexer.path] output = ctx.outputs.entries # TODO(Arm1stice): Pass arguments to indexer based on rule attributes # # If the test wants marked source, enable support for it in the indexer. # if ctx.attr.has_marked_source: # iargs.append("-code") # if ctx.attr.emit_anchor_scopes: # iargs.append("-anchor_scopes") # # If the test wants linkage metadata, enable support for it in the indexer. # if ctx.attr.metadata_suffix: # iargs += ["-meta", ctx.attr.metadata_suffix] iargs += [kzip.path, "| gzip >" + output.path] cmds = ["set -e", "set -o pipefail", " ".join(iargs), ""] ctx.actions.run_shell( mnemonic = "RustIndexer", command = "\n".join(cmds), outputs = [output], inputs = [kzip], tools = [indexer], ) return [KytheEntries(compressed = depset([output]), files = depset())] # Run the Kythe indexer on the output that results from a go_extract rule. rust_entries = rule( _rust_entries_impl, attrs = { # Whether to enable explosion of MarkedSource facts. "has_marked_source": attr.bool(default = False), # Whether to enable anchor scope edges. "emit_anchor_scopes": attr.bool(default = False), # The kzip to pass to the Rust indexer "kzip": attr.label( providers = ["kzip"], mandatory = True, ), # The location of the Rust indexer binary. "_indexer": attr.label( default = Label("//kythe/rust/indexer"), executable = True, cfg = "host", ), }, outputs = {"entries": "%{name}.entries.gz"}, ) def _rust_indexer( name, srcs, data = None, has_marked_source = False, emit_anchor_scopes = False, allow_duplicates = False, metadata_suffix = ""): kzip = name + "_units" rust_extract( name = kzip, srcs = srcs, ) entries = name + "_entries" rust_entries( name = entries, has_marked_source = has_marked_source, emit_anchor_scopes = emit_anchor_scopes, kzip = ":" + kzip, ) return entries def rust_indexer_test( name, srcs, size = None, tags = None, log_entries = False, has_marked_source = False, emit_anchor_scopes = False, allow_duplicates = False): # Generate entries using the Rust indexer entries = _rust_indexer( name = name, srcs = srcs, has_marked_source = has_marked_source, emit_anchor_scopes = emit_anchor_scopes, ) # Most of this code was copied from the Go verifier macros and modified for # Rust. This function does not need to be modified, so we are just calling # it directly here. go_verifier_test( name = name, size = size, allow_duplicates = allow_duplicates, entries = ":" + entries, has_marked_source = has_marked_source, log_entries = log_entries, tags = tags, )
load('@bazel_skylib//lib:paths.bzl', 'paths') load('@bazel_tools//tools/cpp:toolchain_utils.bzl', 'find_cpp_toolchain') load('//kythe/go/indexer:testdata/go_indexer_test.bzl', 'go_verifier_test') load('//tools/build_rules/verifier_test:verifier_test.bzl', 'KytheEntries') def _rust_extract_impl(ctx): cc_toolchain = find_cpp_toolchain(ctx) cc_features = cc_common.configure_features(ctx=ctx, cc_toolchain=cc_toolchain) linker_path = cc_common.get_tool_for_action(feature_configuration=cc_features, action_name='c++-link-executable') rust_toolchain = ctx.toolchains['@io_bazel_rules_rust//rust:toolchain'] rustc_lib = rust_toolchain.rustc_lib.files.to_list() rust_lib = rust_toolchain.rust_lib.files.to_list() extra_action_file = ctx.actions.declare_file(ctx.label.name + '.xa') xa_maker = ctx.executable._extra_action ctx.actions.run(executable=xa_maker, arguments=['--src_files=%s' % ','.join([f.path for f in ctx.files.srcs]), '--output=%s' % extra_action_file.path, '--owner=%s' % ctx.label.name, '--crate_name=%s' % ctx.attr.crate_name, '--sysroot=%s' % paths.dirname(rust_lib[0].path), '--linker=%s' % linker_path], outputs=[extra_action_file]) output = ctx.outputs.kzip ctx.actions.run(mnemonic='RustExtract', executable=ctx.executable._extractor, arguments=['--extra_action=%s' % extra_action_file.path, '--output=%s' % output.path], inputs=[extra_action_file] + rustc_lib + rust_lib + ctx.files.srcs, outputs=[output], env={'KYTHE_CORPUS': 'test_corpus', 'LD_LIBRARY_PATH': paths.dirname(rustc_lib[0].path)}) return struct(kzip=output) rust_extract = rule(_rust_extract_impl, attrs={'data': attr.label_list(allow_empty=True, allow_files=True), 'srcs': attr.label_list(mandatory=True, allow_files=['.rs']), 'crate_name': attr.string(default='test_crate'), '_extractor': attr.label(default=label('//kythe/rust/extractor'), executable=True, cfg='host'), '_extra_action': attr.label(default=label('//tools/rust/extra_action'), executable=True, cfg='host'), '_cc_toolchain': attr.label(default=label('@bazel_tools//tools/cpp:current_cc_toolchain'), allow_files=True)}, outputs={'kzip': '%{name}.kzip'}, fragments=['cpp'], toolchains=['@io_bazel_rules_rust//rust:toolchain']) def _rust_entries_impl(ctx): kzip = ctx.attr.kzip.kzip indexer = ctx.executable._indexer iargs = [indexer.path] output = ctx.outputs.entries iargs += [kzip.path, '| gzip >' + output.path] cmds = ['set -e', 'set -o pipefail', ' '.join(iargs), ''] ctx.actions.run_shell(mnemonic='RustIndexer', command='\n'.join(cmds), outputs=[output], inputs=[kzip], tools=[indexer]) return [kythe_entries(compressed=depset([output]), files=depset())] rust_entries = rule(_rust_entries_impl, attrs={'has_marked_source': attr.bool(default=False), 'emit_anchor_scopes': attr.bool(default=False), 'kzip': attr.label(providers=['kzip'], mandatory=True), '_indexer': attr.label(default=label('//kythe/rust/indexer'), executable=True, cfg='host')}, outputs={'entries': '%{name}.entries.gz'}) def _rust_indexer(name, srcs, data=None, has_marked_source=False, emit_anchor_scopes=False, allow_duplicates=False, metadata_suffix=''): kzip = name + '_units' rust_extract(name=kzip, srcs=srcs) entries = name + '_entries' rust_entries(name=entries, has_marked_source=has_marked_source, emit_anchor_scopes=emit_anchor_scopes, kzip=':' + kzip) return entries def rust_indexer_test(name, srcs, size=None, tags=None, log_entries=False, has_marked_source=False, emit_anchor_scopes=False, allow_duplicates=False): entries = _rust_indexer(name=name, srcs=srcs, has_marked_source=has_marked_source, emit_anchor_scopes=emit_anchor_scopes) go_verifier_test(name=name, size=size, allow_duplicates=allow_duplicates, entries=':' + entries, has_marked_source=has_marked_source, log_entries=log_entries, tags=tags)
class Participant: def __init__(self, pa_name, pa_has_somebody_to_gift=False): self._name = pa_name # I don't use this property in my algorithm :P self._has_somebody_to_gift = pa_has_somebody_to_gift @property def name(self): return self._name @name.setter def name(self, pa_name): self._name = pa_name @property def has_somebody_to_gift(self): return self._has_somebody_to_gift @has_somebody_to_gift.setter def has_somebody_to_gift(self, pa_has_somebody_to_gift): self._has_somebody_to_gift = pa_has_somebody_to_gift
class Participant: def __init__(self, pa_name, pa_has_somebody_to_gift=False): self._name = pa_name self._has_somebody_to_gift = pa_has_somebody_to_gift @property def name(self): return self._name @name.setter def name(self, pa_name): self._name = pa_name @property def has_somebody_to_gift(self): return self._has_somebody_to_gift @has_somebody_to_gift.setter def has_somebody_to_gift(self, pa_has_somebody_to_gift): self._has_somebody_to_gift = pa_has_somebody_to_gift
def trint(inthing): try: outhing = int(inthing) except: outhing = None return outhing def trfloat(inthing, scale): try: outhing = float(inthing) * scale except: outhing = None return outhing class IMMA: def __init__(self): # Standard instance object self.data = {} # Dictionary to hold the parameter values def readstr(self,line): self.data['ID'] = line[0] self.data['UID'] = line[1] self.data['LAT'] = float(line[2]) self.data['LON'] = float(line[3]) self.data['YR'] = int(float(line[4])) self.data['MO'] = int(float(line[5])) self.data['DY'] = int(float(line[6])) self.data['HR'] = float(float(line[7])) if self.data['HR'] == -32768.: self.data['HR'] = None self.data['SST'] = float(float(line[11])) if self.data['SST'] == -32768.: self.data['SST'] = None self.data['DCK'] = 999
def trint(inthing): try: outhing = int(inthing) except: outhing = None return outhing def trfloat(inthing, scale): try: outhing = float(inthing) * scale except: outhing = None return outhing class Imma: def __init__(self): self.data = {} def readstr(self, line): self.data['ID'] = line[0] self.data['UID'] = line[1] self.data['LAT'] = float(line[2]) self.data['LON'] = float(line[3]) self.data['YR'] = int(float(line[4])) self.data['MO'] = int(float(line[5])) self.data['DY'] = int(float(line[6])) self.data['HR'] = float(float(line[7])) if self.data['HR'] == -32768.0: self.data['HR'] = None self.data['SST'] = float(float(line[11])) if self.data['SST'] == -32768.0: self.data['SST'] = None self.data['DCK'] = 999
class Solution: def removeDuplicates(self, nums: List[int]) -> int: count = 1 i = 0 while i <len(nums)-1: if nums[i]!=nums[i+1]: count=1 else: count+=1 if count==2: i+=1 continue else: del nums[i] continue i+=1
class Solution: def remove_duplicates(self, nums: List[int]) -> int: count = 1 i = 0 while i < len(nums) - 1: if nums[i] != nums[i + 1]: count = 1 else: count += 1 if count == 2: i += 1 continue else: del nums[i] continue i += 1
# START LAB EXERCISE 02 print('Lab Exercise 02 \n') # SETUP sandwich_string = 'chicken, bread, lettuce, onion, olives' # END SETUP # PROBLEM 1 (4 Points) sandwich_replace = sandwich_string.replace('olives', 'tomato') # PROBLEM 2 (4 Points) # Don't have heavy_cream need to replace with milk sandwich_list = sandwich_replace.split(", ") # PROBLEM 3 (4 Points) sandwich_list.pop(0) # PROBLEM 4 (4 Points) sandwich_list.append('cheese') # PROBLEM 5 (4 Points) last_item = sandwich_list[-1] # END LAB EXERCISE
print('Lab Exercise 02 \n') sandwich_string = 'chicken, bread, lettuce, onion, olives' sandwich_replace = sandwich_string.replace('olives', 'tomato') sandwich_list = sandwich_replace.split(', ') sandwich_list.pop(0) sandwich_list.append('cheese') last_item = sandwich_list[-1]
compilers_ = { "python": "cpython-head", "c++": "gcc-head", "cpp": "gcc-head", "c": "gcc-head", "c#": "mono-head", "javascript": "nodejs-head", "js": "nodejs-head", "coffeescript": "coffeescript-head", "cs": "coffeescript-head", "java": "openjdk-head", "haskell": "ghc-8.4.2", "bash": "bash", "cmake": "cmake-head", "crystal": "crystal-head", "elixir": "elixir-head", "d": "dmd-head", "ruby": "ruby-head", "rust": "rust-head", "sql": "sqlite-head", "sqlite": "sqlite-head", "lisp": "clisp-2.49", "go": "go-head", "f#": "fsharp-head", "scala": "scala-2.13.x", "swift": "swift-head", "typescript": "typescript-3.9.5", "ts": "typescript-3.9.5", "vim": "vim-head", "lua": "lua-5.4.0", "nim": "nim-head", "php": "php-head", "perl": "perl-head", "pony": "pony-head", }
compilers_ = {'python': 'cpython-head', 'c++': 'gcc-head', 'cpp': 'gcc-head', 'c': 'gcc-head', 'c#': 'mono-head', 'javascript': 'nodejs-head', 'js': 'nodejs-head', 'coffeescript': 'coffeescript-head', 'cs': 'coffeescript-head', 'java': 'openjdk-head', 'haskell': 'ghc-8.4.2', 'bash': 'bash', 'cmake': 'cmake-head', 'crystal': 'crystal-head', 'elixir': 'elixir-head', 'd': 'dmd-head', 'ruby': 'ruby-head', 'rust': 'rust-head', 'sql': 'sqlite-head', 'sqlite': 'sqlite-head', 'lisp': 'clisp-2.49', 'go': 'go-head', 'f#': 'fsharp-head', 'scala': 'scala-2.13.x', 'swift': 'swift-head', 'typescript': 'typescript-3.9.5', 'ts': 'typescript-3.9.5', 'vim': 'vim-head', 'lua': 'lua-5.4.0', 'nim': 'nim-head', 'php': 'php-head', 'perl': 'perl-head', 'pony': 'pony-head'}
class News(object): news_id: int title: str image: str def __init__(self, news_id: int, title: str, image: str): self.news_id = news_id self.title = title self.image = image class NewsContent(object): news_id: int title: str content: str def __init__(self, news_id: int, title: str, content: str): self.news_id = news_id self.title = title self.content = content
class News(object): news_id: int title: str image: str def __init__(self, news_id: int, title: str, image: str): self.news_id = news_id self.title = title self.image = image class Newscontent(object): news_id: int title: str content: str def __init__(self, news_id: int, title: str, content: str): self.news_id = news_id self.title = title self.content = content
numbers = input() list_of_nums = numbers.split(',') tuple_of_nums = tuple(list_of_nums) print(list_of_nums) print(tuple_of_nums)
numbers = input() list_of_nums = numbers.split(',') tuple_of_nums = tuple(list_of_nums) print(list_of_nums) print(tuple_of_nums)
# Generated by h2py z /usr/include/sys/cdio.h CDROM_LBA = 0x01 CDROM_MSF = 0x02 CDROM_DATA_TRACK = 0x04 CDROM_LEADOUT = 0xAA CDROM_AUDIO_INVALID = 0x00 CDROM_AUDIO_PLAY = 0x11 CDROM_AUDIO_PAUSED = 0x12 CDROM_AUDIO_COMPLETED = 0x13 CDROM_AUDIO_ERROR = 0x14 CDROM_AUDIO_NO_STATUS = 0x15 CDROM_DA_NO_SUBCODE = 0x00 CDROM_DA_SUBQ = 0x01 CDROM_DA_ALL_SUBCODE = 0x02 CDROM_DA_SUBCODE_ONLY = 0x03 CDROM_XA_DATA = 0x00 CDROM_XA_SECTOR_DATA = 0x01 CDROM_XA_DATA_W_ERROR = 0x02 CDROM_BLK_512 = 512 CDROM_BLK_1024 = 1024 CDROM_BLK_2048 = 2048 CDROM_BLK_2056 = 2056 CDROM_BLK_2336 = 2336 CDROM_BLK_2340 = 2340 CDROM_BLK_2352 = 2352 CDROM_BLK_2368 = 2368 CDROM_BLK_2448 = 2448 CDROM_BLK_2646 = 2646 CDROM_BLK_2647 = 2647 CDROM_BLK_SUBCODE = 96 CDROM_NORMAL_SPEED = 0x00 CDROM_DOUBLE_SPEED = 0x01 CDROM_QUAD_SPEED = 0x03 CDROM_TWELVE_SPEED = 0x0C CDROM_MAXIMUM_SPEED = 0xff CDIOC = (0x04 << 8) CDROMPAUSE = (CDIOC|151) CDROMRESUME = (CDIOC|152) CDROMPLAYMSF = (CDIOC|153) CDROMPLAYTRKIND = (CDIOC|154) CDROMREADTOCHDR = (CDIOC|155) CDROMREADTOCENTRY = (CDIOC|156) CDROMSTOP = (CDIOC|157) CDROMSTART = (CDIOC|158) CDROMEJECT = (CDIOC|159) CDROMVOLCTRL = (CDIOC|160) CDROMSUBCHNL = (CDIOC|161) CDROMREADMODE2 = (CDIOC|162) CDROMREADMODE1 = (CDIOC|163) CDROMREADOFFSET = (CDIOC|164) CDROMGBLKMODE = (CDIOC|165) CDROMSBLKMODE = (CDIOC|166) CDROMCDDA = (CDIOC|167) CDROMCDXA = (CDIOC|168) CDROMSUBCODE = (CDIOC|169) CDROMGDRVSPEED = (CDIOC|170) CDROMSDRVSPEED = (CDIOC|171) SCMD_READ_TOC = 0x43 SCMD_PLAYAUDIO_MSF = 0x47 SCMD_PLAYAUDIO_TI = 0x48 SCMD_PAUSE_RESUME = 0x4B SCMD_READ_SUBCHANNEL = 0x42 SCMD_PLAYAUDIO10 = 0x45 SCMD_PLAYTRACK_REL10 = 0x49 SCMD_READ_HEADER = 0x44 SCMD_PLAYAUDIO12 = 0xA5 SCMD_PLAYTRACK_REL12 = 0xA9 SCMD_CD_PLAYBACK_CONTROL = 0xC9 SCMD_CD_PLAYBACK_STATUS = 0xC4 SCMD_READ_CDDA = 0xD8 SCMD_READ_CDXA = 0xDB SCMD_READ_ALL_SUBCODES = 0xDF CDROM_MODE2_SIZE = 2336
cdrom_lba = 1 cdrom_msf = 2 cdrom_data_track = 4 cdrom_leadout = 170 cdrom_audio_invalid = 0 cdrom_audio_play = 17 cdrom_audio_paused = 18 cdrom_audio_completed = 19 cdrom_audio_error = 20 cdrom_audio_no_status = 21 cdrom_da_no_subcode = 0 cdrom_da_subq = 1 cdrom_da_all_subcode = 2 cdrom_da_subcode_only = 3 cdrom_xa_data = 0 cdrom_xa_sector_data = 1 cdrom_xa_data_w_error = 2 cdrom_blk_512 = 512 cdrom_blk_1024 = 1024 cdrom_blk_2048 = 2048 cdrom_blk_2056 = 2056 cdrom_blk_2336 = 2336 cdrom_blk_2340 = 2340 cdrom_blk_2352 = 2352 cdrom_blk_2368 = 2368 cdrom_blk_2448 = 2448 cdrom_blk_2646 = 2646 cdrom_blk_2647 = 2647 cdrom_blk_subcode = 96 cdrom_normal_speed = 0 cdrom_double_speed = 1 cdrom_quad_speed = 3 cdrom_twelve_speed = 12 cdrom_maximum_speed = 255 cdioc = 4 << 8 cdrompause = CDIOC | 151 cdromresume = CDIOC | 152 cdromplaymsf = CDIOC | 153 cdromplaytrkind = CDIOC | 154 cdromreadtochdr = CDIOC | 155 cdromreadtocentry = CDIOC | 156 cdromstop = CDIOC | 157 cdromstart = CDIOC | 158 cdromeject = CDIOC | 159 cdromvolctrl = CDIOC | 160 cdromsubchnl = CDIOC | 161 cdromreadmode2 = CDIOC | 162 cdromreadmode1 = CDIOC | 163 cdromreadoffset = CDIOC | 164 cdromgblkmode = CDIOC | 165 cdromsblkmode = CDIOC | 166 cdromcdda = CDIOC | 167 cdromcdxa = CDIOC | 168 cdromsubcode = CDIOC | 169 cdromgdrvspeed = CDIOC | 170 cdromsdrvspeed = CDIOC | 171 scmd_read_toc = 67 scmd_playaudio_msf = 71 scmd_playaudio_ti = 72 scmd_pause_resume = 75 scmd_read_subchannel = 66 scmd_playaudio10 = 69 scmd_playtrack_rel10 = 73 scmd_read_header = 68 scmd_playaudio12 = 165 scmd_playtrack_rel12 = 169 scmd_cd_playback_control = 201 scmd_cd_playback_status = 196 scmd_read_cdda = 216 scmd_read_cdxa = 219 scmd_read_all_subcodes = 223 cdrom_mode2_size = 2336
def can_build(platform): return platform != "android" def configure(env): pass
def can_build(platform): return platform != 'android' def configure(env): pass