Search is not available for this dataset
id
int64
0
10.8M
vector
listlengths
1.54k
1.54k
ast_depth
int64
3
164
ast_data
stringlengths
297
510k
full_path
stringlengths
0
319
code
stringlengths
60
56.5k
18,401
[ 0.03038821369409561, 0.003971586935222149, -0.024075912311673164, -0.04587564244866371, 0.0017775344895198941, 0.035714950412511826, 0.02475642040371895, 0.006670154165476561, 0.043622925877571106, 0.030106622725725174, -0.022797025740146637, -0.015158907510340214, 0.017317762598395348, -0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "speed_sp", "annotation": null, "type_comment": null}}], "kwarg": ...
def setup_forever(self, speed_sp, **kwargs): self.mode = 'run-forever' for k in kwargs: v = kwargs[k] if (v != None): setattr(self, k, v) speed_regulation = self.speed_regulation if (speed_regulation): self.speed_sp = int(speed_sp) ...
18,402
[ 0.042869411408901215, 0.0381968729197979, 0.01895100250840187, -0.043549880385398865, -0.05135256424546242, 0.018667474389076233, -0.024655582383275032, -0.009305384010076523, 0.02242138236761093, 0.027332086116075516, 0.001783390180207789, 0.01890563778579235, -0.008052190765738487, -0.00...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "position_sp", "annotation": null, "type_comment": null}}, {"_type...
def setup_position_limited(self, position_sp, speed_sp, absolute=True, **kwargs): if absolute == True: self.mode = 'run-to-abs-pos' else: self.mode = 'run-to-rel-pos' kwargs['speed_regulation'] = True for k in kwargs: v = kwargs[k] if (v !=...
18,403
[ 0.03378412500023842, 0.027082614600658417, -0.03563502058386803, -0.0232531800866127, -0.015190091915428638, 0.0225936658680439, -0.01311581488698721, -0.019498206675052643, -0.01146703027188778, -0.0016288395272567868, 0.013583856634795666, -0.05442052334547043, -0.0033055469393730164, -0...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class create_i2c_property(object): def __init__(self, **kwargs): self.kwargs = kwargs def __call__(self, cls): for name, reg_address_and_read_only in self.kwargs.items(): def i2c_property(reg, read_only=True): def fget(self): ...
18,404
[ 0.026563746854662895, -0.0060875252820551395, -0.02252093143761158, -0.016695547848939896, 0.001023082877509296, 0.004514671862125397, 0.03241243213415146, 0.010538117960095406, -0.00483798049390316, 0.018711131066083908, -0.0050185676664114, 0.01829170249402523, 0.014994535595178604, -0.0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "color", "annotation": null, "type_comment": null}}], "kwarg": {"_...
def blink(self, color=(0, 0), **kwargs): if (color != (0, 0)): self.color = color for index, light in enumerate((self.red, self.green)): if (not self._color[index]): continue light.trigger = 'timer' for p, v in kwargs.items(): ...
18,405
[ 0.03207916021347046, 0.0043563926592469215, -0.018314026296138763, -0.026606276631355286, -0.003177708713337779, 0.03925788030028343, -0.01984217017889023, -0.008854938670992851, 0.003950664773583412, 0.006515339482575655, 0.020031707361340523, -0.03466160595417023, -0.004033587407320738, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg": null,...
def __call__(self, cls): for name, reg_address_and_read_only in self.kwargs.items(): def i2c_property(reg, read_only=True): def fget(self): return self.read_byte_data(reg) def fset(self, value): return s...
18,406
[ 0.02409411035478115, -0.027740538120269775, 0.00007933285814942792, -0.029379121959209442, 0.007864050567150116, 0.009456477127969265, 0.0012469682842493057, -0.031456202268600464, 0.004174350760877132, -0.018762942403554916, -0.0007064230740070343, -0.05091150477528572, 0.005227314308285713...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class Tone(Ev3Dev): def __init__(self): super(Ev3Dev, self).__init__() self.sys_path = '/sys/devices/platform/snd-legoev3' def play(self, frequency, milliseconds=1000): self.tone = '%d %d' % (frequency, milliseconds) def stop(self): self.tone = '0'
18,407
[ 0.02802891656756401, 0.03931558132171631, 0.008420823141932487, -0.047001998871564865, -0.007923856377601624, 0.001432920340448618, -0.00505525479093194, 0.004395393654704094, 0.009276709519326687, -0.023500999435782433, -0.0024544629268348217, -0.03575950860977173, 0.03730562701821327, -0...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "an...
class attach_ev3_keys(object): def __init__(self, **kwargs): self.kwargs = kwargs def __call__(self, cls): key_const = {} for key_name, key_code in self.kwargs.items(): def attach_key(key_name, key_code): def fget(self): buf = self.pollin...
18,408
[ 0.03297767788171768, -0.0011001555249094963, -0.02650032378733158, 0.021602537482976913, 0.0038153876084834337, 0.019443420693278313, -0.015727465972304344, 0.030295826494693756, 0.02390938438475132, 0.0005628620274364948, 0.04281870648264885, -0.01655702106654644, -0.014079717919230461, 0...
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class Key(object): def __init__(self): pass def EVIOCGKEY(self, length): return 2 << (14 + 8 + 8) | length << (8 + 8) | ord('E') << 8 | 0x18 def test_bit(self, bit, bytes): # bit in bytes is 1 when released and 0 when pressed return not bool(bytes[int(bit / 8)] & 1 << bit ...
18,409
[ 0.02048039622604847, 0.026545096188783646, -0.0029812094289809465, -0.046231307089328766, 0.0027345300186425447, 0.011870687827467918, -0.010829822160303593, 0.007171748671680689, 0.023801542818546295, 0.005661590024828911, 0.008952653035521507, -0.017556345090270042, 0.041008926928043365, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cls", "annotation": null, "type_comment": null}}], "kwarg": null,...
def __call__(self, cls): key_const = {} for key_name, key_code in self.kwargs.items(): def attach_key(key_name, key_code): def fget(self): buf = self.polling() return self.test_bit(key_code, buf) return property(fget) ...
18,410
[ -0.018104370683431625, 0.017347153276205063, 0.025607703253626823, 0.011363991536200047, -0.03164249286055565, -0.017955221235752106, -0.005845486186444759, -0.005200130399316549, 0.022808294743299484, -0.02742043510079384, -0.014501852914690971, -0.06957218050956726, 0.011117322370409966, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": "res.currency"}}, "targets": [{"_type": "Name", "_fields": {"id": "_inherit", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment":...
class res_currency(osv.osv): _inherit = 'res.currency' def round(self, cr, uid, currency, amount): sql = """ select round(%s, case when position('1' in rounding::varchar) - position('.' in rounding::varchar) <= 0 then 0 ...
18,411
[ 0.04251449182629585, 0.024186689406633377, -0.0007937822374515235, 0.03432707116007805, -0.023210207000374794, 0.0025914309080690145, -0.03828307241201401, 0.02545110695064068, 0.017589181661605835, 0.00025683490093797445, 0.04892421141266823, -0.0009475310798734426, -0.039184439927339554, ...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def polling(self): KEY_MAX = 0x2ff BUF_LEN = int((KEY_MAX + 7) / 8) buf = array.array('B', [0] * BUF_LEN) with open('/dev/input/by-path/platform-gpio-keys.0-event', 'r') as fd: ret = fcntl.ioctl(fd, self.EVIOCGKEY(len(buf)), buf) if (ret < 0): return None ...
18,412
[ 0.002818048233166337, 0.007496845908463001, 0.041714295744895935, 0.028695030137896538, -0.0016303994925692677, -0.036185894161462784, 0.012899600900709629, 0.05188559368252754, 0.016321944072842598, 0.0018652367871254683, 0.02309483289718628, -0.06710664182901382, -0.012199576012790203, 0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "cr", "annotation": null, "type_comment": null}}, {"_type": "arg",...
def round(self, cr, uid, currency, amount): sql = """ select round(%s, case when position('1' in rounding::varchar) - position('.' in rounding::varchar) <= 0 then 0 else position('1' in rounding::varchar) - position('.' in rounding::varc...
18,413
[ -0.013413380831480026, -0.06028023734688759, 0.0613313727080822, -0.06123996898531914, -0.02107980288565159, 0.0005969754420220852, -0.0077921003103256226, -0.0067466795444488525, 0.021479690447449684, 0.018166333436965942, 0.012305120937526226, -0.04199964925646782, -0.04163403809070587, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class FormatFunctionsTestCase(unittest.TestCase): def setUp(self): self.save_formats = {'double':float.__getformat__('double'), 'float':float.__getformat__('float')} def tearDown(self): float.__setformat__('double', self.save_formats['double']) float.__setf...
18,414
[ 0.012056665495038033, -0.061557404696941376, 0.012276333756744862, -0.038762085139751434, 0.004176840651780367, -0.0017071384936571121, -0.005206144880503416, -0.0022892600391060114, 0.016908202320337296, 0.03753194212913513, 0.02160283364355564, -0.01171147171407938, -0.0322347916662693, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_setformat(self): for t in 'double', 'float': float.__setformat__(t, 'unknown') if self.save_formats[t] == 'IEEE, big-endian': self.assertRaises(ValueError, float.__setformat__, t, 'IEEE, little-endian') elif self.save...
18,415
[ -0.017928265035152435, -0.02871427685022354, 0.05379689857363701, -0.0436282679438591, -0.024549979716539383, 0.024755774065852165, -0.007360151968896389, -0.008219643495976925, 0.048906270414590836, 0.026511073112487793, 0.01435713842511177, -0.007456996012479067, -0.016354547813534737, 0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class UnknownFormatTestCase(unittest.TestCase): def setUp(self): self.save_formats = {'double':float.__getformat__('double'), 'float':float.__getformat__('float')} float.__setformat__('double', 'unknown') float.__setformat__('float', 'unknown') def tearDown(...
18,416
[ -0.00004077316407347098, -0.022538647055625916, 0.04714060574769974, -0.0349792055785656, -0.0010217945091426373, 0.03963986039161682, -0.014394634403288364, 0.00355921289883554, 0.02709007076919079, 0.02034182660281658, 0.024771878495812416, 0.0067785861901938915, -0.009509439580142498, 0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class IEEEFormatTestCase(unittest.TestCase): @support.requires_IEEE_754 def test_double_specials_do_unpack(self): for fmt, data in [('>d', BE_DOUBLE_INF), ('>d', BE_DOUBLE_NAN), ('<d', LE_DOUBLE_INF), ('<d', LE_DOUBLE_NAN)]: ...
18,417
[ -0.025110414251685143, -0.039516858756542206, 0.04998348653316498, -0.04464337229728699, -0.000010256082532578148, -0.006443740334361792, -0.009107865393161774, -0.008959528058767319, 0.04725409671664238, 0.03462768718600273, 0.018156396225094795, -0.031874559819698334, -0.037831757217645645...
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class FormatTestCase(unittest.TestCase): def test_format(self): # these should be rewritten to use both format(x, spec) and # x.__format__(spec) self.assertEqual(format(0.0, 'f'), '0.000000') # the default is 'g', except for empty format spec self.assertEqual(format(0.0, '...
18,418
[ 0.007041093893349171, -0.02137988992035389, 0.051772378385066986, -0.03897949680685997, 0.01548414770513773, -0.0007178004016168416, -0.0058394139632582664, -0.010915259830653667, 0.04431195184588432, 0.036526065319776535, 0.009294243529438972, -0.022919543087482452, -0.06148596107959747, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_format(self): # these should be rewritten to use both format(x, spec) and # x.__format__(spec) self.assertEqual(format(0.0, 'f'), '0.000000') # the default is 'g', except for empty format spec self.assertEqual(format(0.0, ''), '0.0') self.assertEqual(format(0.0...
18,419
[ -0.006780512630939484, -0.012918374501168728, 0.014149214141070843, -0.05816536024212837, 0.01983504183590412, -0.020902495831251144, 0.019290421158075333, -0.016240552067756653, 0.04045433551073074, 0.06631287187337875, 0.00825098529458046, -0.005990814417600632, 0.02311365120112896, 0.01...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_format_testfile(self): with open(format_testfile) as testfile: for line in testfile: if line.startswith('--'): continue line = line.strip() if not line: continue lhs, rhs = map(str.strip...
18,420
[ 0.010529156774282455, 0.042661748826503754, 0.04199812188744545, -0.025383740663528442, 0.00840791966766119, -0.013770264573395252, -0.026402881368994713, -0.014682752080261707, 0.03341836854815483, 0.054038215428590775, 0.02071464993059635, -0.03822966665029526, 0.002171601401641965, 0.03...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_repr(self): floats_file = open(os.path.join(os.path.split(__file__)[0], 'floating_points.txt')) for line in floats_file: line = line.strip() if not line or line.startswith('#'): continue v = eval(line) se...
18,421
[ 0.019997941330075264, -0.012219090946018696, 0.04986558109521866, -0.060162439942359924, -0.005704865325242281, 0.005584023427218199, -0.02587704360485077, -0.02360633946955204, 0.023561375215649605, 0.06029733270406723, -0.006384952459484339, -0.046897925436496735, 0.000020681893147411756, ...
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class ReprTestCase(unittest.TestCase): def test_repr(self): floats_file = open(os.path.join(os.path.split(__file__)[0], 'floating_points.txt')) for line in floats_file: line = line.strip() if not line or line.startswith('#'): continu...
18,422
[ 0.024878857657313347, -0.02975529618561268, 0.03151623159646988, -0.04664221405982971, 0.00855634082108736, 0.027813751250505447, -0.01850111037492752, -0.014787343330681324, 0.030432578176259995, 0.09301351755857468, -0.010554324835538864, -0.03754404932260513, -0.028897402808070183, 0.02...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_short_repr(self): # test short float repr introduced in Python 3.1. One aspect # of this repr is that we get some degree of str -> float -> # str roundtripping. In particular, for any numeric string # containing 15 or fewer significant digits, those exact same # digits...
18,423
[ 0.017632214352488518, -0.006741353776305914, 0.01264642272144556, -0.030489305034279823, 0.034906934946775436, 0.0020045314449816942, -0.02709309197962284, -0.018921755254268646, 0.02650577761232853, 0.03271088749170303, 0.030285021290183067, -0.003257363336160779, -0.03917135298252106, 0....
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class InfNanTest(unittest.TestCase): def test_inf_from_str(self): self.assertTrue(isinf(float("inf"))) self.assertTrue(isinf(float("+inf"))) self.assertTrue(isinf(float("-inf"))) self.assertTrue(isinf(float("infinity"))) self.assertTrue(isinf(float("+infinity"))) self...
18,424
[ 0.018172895535826683, -0.0005463790148496628, 0.013854846358299255, -0.006659200880676508, 0.035153694450855255, -0.021471038460731506, -0.01989481784403324, -0.020384903997182846, 0.020278938114643097, 0.06119444593787193, 0.018557017669081688, -0.007887725718319416, -0.0261997003108263, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_inf_from_str(self): self.assertTrue(isinf(float("inf"))) self.assertTrue(isinf(float("+inf"))) self.assertTrue(isinf(float("-inf"))) self.assertTrue(isinf(float("infinity"))) self.assertTrue(isinf(float("+infinity"))) self.assertTrue(isinf(float("-infinity"))) ...
18,425
[ -0.006460227537900209, -0.013663443736732006, 0.00812250841408968, -0.01022554561495781, 0.021823732182383537, -0.0190280769020319, -0.03387526795268059, -0.0026634270325303078, 0.04775279387831688, 0.04435267299413681, -0.00031600650981999934, -0.011346325278282166, -0.0010617503430694342, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_nan_from_str(self): self.assertTrue(isnan(float("nan"))) self.assertTrue(isnan(float("+nan"))) self.assertTrue(isnan(float("-nan"))) self.assertEqual(repr(float("nan")), "nan") self.assertEqual(repr(float("+nan")), "nan") self.assertEqual(repr(float("-nan")), "n...
18,426
[ 0.012279869988560677, -0.011456822976469994, -0.04481768608093262, -0.009744883514940739, 0.07032118737697601, 0.005876559764146805, 0.005947890691459179, -0.030661266297101974, 0.025547398254275322, 0.01369551196694374, -0.02596440725028515, -0.06465861946344376, -0.056976839900016785, -0...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "x", "annotation": null, "type_comment": null}}, {"_type": "arg", ...
def identical(self, x, y): # check that floats x and y are identical, or that both # are NaNs if isnan(x) or isnan(y): if isnan(x) == isnan(y): return elif x == y and (x != 0.0 or copysign(1.0, x) == copysign(1.0, y)): return self.fail('%r ...
18,427
[ -0.006581824738532305, -0.038539670407772064, 0.0001401007903041318, 0.0038918897043913603, 0.0034130362328141928, -0.008124439977109432, 0.020465360954403877, 0.00553413201123476, 0.052371785044670105, 0.06921200454235077, 0.04602135345339775, -0.014346321113407612, -0.026738664135336876, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_whitespace(self): value_pairs = [ ('inf', INF), ('-Infinity', -INF), ('nan', NAN), ('1.0', 1.0), ('-0x.2', -0.125), ('-0.0', -0.0) ] whitespace = [ '', ' ', '\t', ...
18,428
[ -0.00018633791478350759, -0.02266395092010498, 0.05656970292329788, 0.02054484188556671, 0.01913210190832615, 0.0019133980385959148, 0.01617136038839817, 0.0026808239053934813, 0.03964688628911972, 0.021281270310282707, 0.03561907634139061, 0.02300962246954441, -0.03405604511499405, -0.009...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_from_hex(self): MIN = self.MIN; MAX = self.MAX; TINY = self.TINY; EPS = self.EPS; # two spellings of infinity, with optional signs; case-insensitive self.identical(fromHex('inf'), INF) self.identical(fromHex('+Inf'), INF) self.identical(fromHex('...
18,429
[ 0.0259458739310503, 0.02251715213060379, 0.0617394894361496, -0.0234502125531435, -0.008352592587471008, 0.015165071003139019, 0.011326026171445847, -0.021415462717413902, -0.010803285986185074, 0.10054588317871094, -0.024057265371084213, -0.039548344910144806, -0.003451206022873521, -0.01...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def __init__(self): self.module_args = dict( location=dict(type='str', required=True), version=dict(type='str') ) self.results = dict( changed=False, azure_aks_versions=[] ) self.location = None self.version = None ...
18,430
[ 0.03170813247561455, 0.005506676621735096, 0.055718064308166504, -0.07463497668504715, 0.02454974502325058, 0.06895521283149719, -0.03494700789451599, -0.002052168594673276, -0.0279763825237751, 0.07585542649030685, 0.00881303008645773, -0.08496183156967163, -0.01789596676826477, 0.0174735...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "annotation": null, "type_comment": null}}, "v...
def exec_module(self, **kwargs): is_old_facts = self.module._name == 'azure_rm_aksversion_facts' if is_old_facts: self.module.deprecate("The 'azure_rm_aksversion_facts' module has been renamed to 'azure_rm_aksversion_info'", version='2.13') for key in self.module_args: ...
18,431
[ -0.0006926331552676857, 0.0017312149284407496, 0.06274770945310593, -0.05685922130942345, 0.02850027196109295, 0.0016899955226108432, -0.010134084150195122, -0.01627577468752861, 0.031562283635139465, 0.006206464488059282, -0.015628041699528694, 0.01569870300590992, 0.010787706822156906, 0...
15
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class NativeTypeCompatibilityTest(unittest.TestCase): def test_convert_to_beam_type(self): test_cases = [ ('raw bytes', bytes, bytes), ('raw int', int, int), ('raw float', float, float), ('any', typing.Any, typehints.Any), ('simple dict', typing.Dict[bytes, int], ...
18,432
[ 0.017977582290768623, -0.01870109885931015, 0.033085618168115616, -0.04988595098257065, 0.04343560338020325, -0.012520539574325085, -0.0010369912488386035, -0.0006989919347688556, 0.03713241219520569, 0.03330635279417038, 0.008810977451503277, 0.01677580550312996, -0.026954108849167824, 0....
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class TestDrive (unittest.TestCase): # # The name of the drive should be normalised: # lowercase-letter;colon;backslash # def test_name (self): names = ["C", "C:", "C:/", "C:\\"] for name in names: self.assertEquals (fs.drive (name).name, "c:\\") self.assertEquals (fs.drive (nam...
18,433
[ -0.014777486212551594, 0.0031169371213763952, 0.025636883452534676, -0.05872297286987305, 0.027716856449842453, 0.002456364221870899, -0.015261201187968254, -0.014946786686778069, 0.04375200346112251, 0.017486289143562317, -0.0028388011269271374, 0.002199390670284629, 0.0411883145570755, 0...
14
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_convert_to_beam_type(self): test_cases = [ ('raw bytes', bytes, bytes), ('raw int', int, int), ('raw float', float, float), ('any', typing.Any, typehints.Any), ('simple dict', typing.Dict[bytes, int], typehints.Dict[bytes, int]), ('simple list', typi...
18,434
[ 0.008340626023709774, 0.015636194497346878, 0.0311665590852499, -0.026232294738292694, -0.00859196949750185, 0.0014477039221674204, 0.0005279034376144409, -0.014273649081587791, -0.011290602385997772, 0.021893316879868507, -0.008757326751947403, -0.05899951234459877, 0.003866055514663458, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "orm", "annotation": nu...
class Migration: def forwards(self, orm): # Adding field 'ProjectExp.time_start' db.add_column('profile_projectexp', 'time_start', models.DateTimeField(null=True)) # Adding field 'ProjectExp.last_touched' db.add_column('profile_projectexp', 'last_touched', mode...
18,435
[ 0.02773267962038517, 0.00713708670809865, 0.04110962152481079, -0.016476474702358246, -0.013097282499074936, -0.005336793139576912, 0.025355594232678413, -0.0011069767642766237, 0.01020166464149952, 0.008529546670615673, 0.01274771150201559, -0.02889791876077652, 0.01991392858326435, -0.00...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "orm", "annotation": null, "type_comment": null}}], "kwarg": null,...
def forwards(self, orm): # Adding field 'ProjectExp.time_start' db.add_column('profile_projectexp', 'time_start', models.DateTimeField(null=True)) # Adding field 'ProjectExp.last_touched' db.add_column('profile_projectexp', 'last_touched', models.DateTimeField(null=True...
18,436
[ 0.0495457723736763, 0.016987456008791924, 0.029034383594989777, -0.026997294276952744, -0.02376604825258255, 0.00873372983187437, 0.022806039080023766, 0.01298352051526308, 0.002568313619121909, 0.014236213639378548, 0.02870657667517662, -0.042193517088890076, 0.005566874984651804, -0.0003...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "orm", "annotation": null, "type_comment": null}}], "kwarg": null,...
def backwards(self, orm): # Deleting field 'ProjectExp.time_start' db.delete_column('profile_projectexp', 'time_start') # Deleting field 'ProjectExp.last_touched' db.delete_column('profile_projectexp', 'last_touched') # Deleting field 'Tag.tag_type' ...
18,437
[ 0.041770875453948975, 0.019907070323824883, 0.050222888588905334, -0.010055447928607464, -0.017406797036528587, 0.02956845425069332, -0.02005654200911522, 0.00557126197963953, -0.013337057083845139, -0.009641001001000404, 0.03992284834384918, -0.014036862179636955, 0.006953886244446039, 0....
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Expr", "_fields": {"value": {"_type": "Call", "_fields": {"arg...
def upgrade(): op.create_table( 'unauthenticated_bans', sa.Column('id', sa.Integer, primary_key=True), sa.Column('guild_id', sa.String(255), nullable=False), sa.Column('ip_address', sa.String(255), nullable=False), sa.Column('last_username', sa.String(255), nullable=False), ...
18,438
[ 0.0463903583586216, -0.01194742601364851, 0.00107932323589921, 0.010394366458058357, -0.02357681840658188, -0.021339988335967064, -0.04897702485322952, -0.018954744562506676, -0.0025548620615154505, 0.024297691881656647, 0.016410483047366142, -0.02285594493150711, 0.0125516876578331, -0.01...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "node", "annotation": null, "type_comment": null}}], "kwarg": null...
def _find_salute(self, node): if node.name == 'salute': return node child = node.children while child: ret = self._find_salute(child) if ret: return ret child = child.next return None
18,439
[ 0.015406970866024494, -0.002169318962842226, 0.04123411700129509, -0.047833558171987534, 0.02131173573434353, -0.032203298062086105, 0.07046022266149521, -0.02387956529855728, -0.029027625918388367, -0.003560225944966078, 0.009514611214399338, -0.009092842228710651, 0.005718690808862448, -...
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": "source"}}, "targets": [{"_type": "Name", "_fields": {"id": "bucket_name", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": nu...
class S3File(IdeModel): bucket_name = 'source' folder = None project = None _create_local_if_not_exists = False @property def padded_id(self): return '%05d' % self.id @property def local_filename(self): padded_id = self.padded_id return '%s%s/%s/%s/%s' % (settin...
18,440
[ 0.06146632507443428, 0.07819834351539612, 0.0075315753929317, -0.03788544982671738, 0.0485055111348629, -0.0367584228515625, 0.04724844545125961, -0.03840561583638191, -0.007000572048127651, 0.009417178109288216, 0.006870530545711517, 0.03719189390540123, -0.008734459988772869, 0.025639865...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _get_contents_local(self): try: return open(self.local_filename).read() except IOError: if self._create_local_if_not_exists: return '' else: raise
18,441
[ 0.0373925045132637, -0.022422833368182182, 0.02523096650838852, -0.04163637384772301, 0.009891806170344353, 0.004924789071083069, 0.0738137736916542, 0.008630257099866867, 0.00240565137937665, 0.019604144617915154, 0.0015465844189748168, -0.004402223043143749, -0.03173401206731796, -0.0370...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "string", "annotation": null, "type_comment": null}}], "kwarg": nu...
def save_string(self, string): if not settings.AWS_ENABLED: self._save_string_local(string) else: s3.save_file(self.bucket_name, self.s3_path, string) if self.project: self.project.last_modified = now() self.project.save()
18,442
[ 0.054543718695640564, 0.06419035792350769, 0.03798365220427513, -0.019604789093136787, 0.04951942712068558, -0.010510819964110851, 0.07584671676158905, -0.030306532979011536, -0.004969025030732155, 0.03418528661131859, 0.01790657825767994, 0.0634266659617424, 0.02031823806464672, 0.0049539...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "path", "annotation": null, "type_comment": null}}], "kwarg": null...
def _copy_to_path_local(self, path): try: shutil.copy(self.local_filename, path) except IOError as err: if err.errno == 2 and self._crete_local_if_not_exists: open(path, 'w').close() # create the file if it's missing. else: raise
18,443
[ -0.006037789396941662, -0.01158243976533413, 0.0005848120781593025, -0.03945110738277435, 0.015666641294956207, 0.008237947709858418, -0.046355050057172775, -0.00112062634434551, 0.007194769103080034, 0.022191246971488, -0.0030441838316619396, -0.05573733150959015, 0.020332492887973785, -0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Tuple", "_fields": {"ctx": {"_type": "Load", "_fields": {}}, "elts": [{"_type": "Tuple", "_fields": {"ctx": {"_type": "Load", "_fields": {}}, "elts": [{"_type": "Constant", "_fields": ...
class ServiceRequest(Ticket): AC_STATUS = ( ('aog', 'AOG'), ('mtx', 'Scheduled Maintenance'), ('other', 'Other (Provide in Description)') ) CERTS = ( ('far91', 'FAR 91'), ('far121', 'FAR 121'), ('far135', 'FAR 135'), ('other', 'Other (Provide in ...
18,444
[ 0.05064172297716141, 0.009315366856753826, 0.025320861488580704, -0.05394444242119789, -0.011125512421131134, -0.0020430292934179306, 0.04915973171591759, 0.04615340754389763, -0.009400052018463612, -0.011453666724264622, 0.009542957879602909, -0.01902240328490734, -0.012925071641802788, -...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "sender", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "instance", "annotation": null, "type_comment": null}}], "kwarg"...
def delete_file(sender, instance, **kwargs): if issubclass(sender, S3File): if settings.AWS_ENABLED: try: s3.delete_file(sender.bucket_name, instance.s3_path) except: logger.exception("Failed to delete S3 file") else: try: ...
18,445
[ 0.020444707944989204, -0.0026467510033398867, 0.004570279270410538, -0.044219885021448135, 0.035273805260658264, 0.0093046510592103, -0.04623761400580406, -0.0042785597033798695, 0.009657146409153938, 0.0001901117793750018, 0.02909906767308712, -0.06690111011266708, 0.022681226953864098, -...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "kwargs", "annotation": null, "type_comment": null}}, "v...
def save(self, *args, **kwargs): super(ServiceRequest, self).save(*args, **kwargs) # create a historical record ServiceRequestHistory.objects.create( service_request=self, contact_name=self.contact_name, contact_phone=self.contact_phone, contact_em...
18,446
[ -0.00023398529447149485, -0.0029927007853984833, 0.030527859926223755, -0.028147565200924873, 0.014489755965769291, 0.013403601944446564, -0.07094665616750717, -0.015552801080048084, 0.002020650776103139, 0.030828285962343216, -0.018545500934123993, -0.08337964862585068, 0.027315616607666016...
8
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"args": [{"_type": "Name", "_fields": {"id": "ServiceRequest", "ctx": {"_type": "Load", "_fields": {}}}}], "func": {"_type": "Attribute", "_fields": {"ctx": {"_type"...
class ServiceRequestHistory(models.Model): service_request = models.ForeignKey(ServiceRequest) contact_name = models.CharField(max_length=64, blank=True, null=True) contact_phone = models.CharField(max_length=16, blank=True, null=True) contact_email = models.CharField(max_length=128, blank=True, null=Tr...
18,447
[ 0.004550979472696781, -0.06270848959684372, 0.05277708172798157, -0.0249603521078825, -0.0032216650433838367, -0.007058550138026476, -0.009903942234814167, -0.00387258967384696, 0.045921772718429565, -0.00767926312983036, -0.010200566612184048, -0.02889336459338665, -0.023048775270581245, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class NumberToBytesTestCase(unittest.TestCase): def test_equals(self): self.assertEqual(to_bytes(0), ['00000000']) def test_equals_2(self): self.assertEqual(to_bytes(1), ['00000001']) def test_equals_3(self): self.assertEqual(to_bytes(257), ['00000001', '00000001']) def test_e...
18,448
[ 0.05207834020256996, 0.054429277777671814, 0.061942048370838165, -0.06209537014365196, -0.0351618230342865, 0.046890947967767715, 0.031763188540935516, 0.002360518556088209, 0.016494881361722946, 0.0022279589902609587, 0.03613286092877388, 0.016175460070371628, -0.04911411553621292, 0.0084...
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Subscript", "_fields": {"ctx": {"_type": "Load", "_fields": {}}, "slice": {"_type": "Constant", "_fields": {"kind": null, "value": 0}}, "value": {"_type": "Attribute", "_fields": {"ctx...
class TestCheckPointAndLog( unittest.TestCase ): cluster = config.clusters[0] @classmethod def setUpClass( cls ): return 0 @classmethod def tearDownClass( cls ): return 0 def setUp( self ): util.set_process_logfile_prefix( 'TestCheckPointAndLog_%s' % self._testMethodNa...
18,449
[ 0.033491186797618866, -0.028563624247908592, 0.03633401170372963, 0.00539121450856328, -0.013192062266170979, 0.003732900135219097, 0.010146178305149078, -0.026492422446608543, 0.026302900165319443, 0.006839701905846596, 0.02676316723227501, 0.010369542986154556, -0.028076281771063805, -0....
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def put_some_data( self ): # start load generator max_load_generator = 100 load_gen_thrd_list = {} util.log('start load_generator') for i in range(max_load_generator): ip, port = util.get_rand_gateway(self.cluster) load_gen_thrd_list[i] = load_generator.Lo...
18,450
[ 0.025338996201753616, 0.04105784744024277, 0.07389902323484421, -0.020733065903186798, -0.014596077613532543, 0.007266141939908266, 0.016752317547798157, 0.00004662447827286087, 0.019559254869818687, 0.02061823569238186, 0.03049355372786522, 0.018729932606220245, -0.02944733202457428, -0.0...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "role", "annotation": null, "type_comment": null}}], "kwarg": null...
def recovery_with_local_checkpoint_and_remote_log( self, role ): server = util.get_server_by_role( self.cluster['servers'], role ) # set initial data in order to make an elapsed time for bgsave longer self.put_some_data() # set value ip, port = util.get_rand_gateway( self.clust...
18,451
[ 0.022438235580921173, 0.037737034261226654, 0.08379033207893372, -0.028034718707203865, -0.019744601100683212, 0.015756452456116676, 0.010179583914577961, 0.008577787317335606, 0.005701090209186077, -0.00006318313535302877, 0.02386350743472576, 0.028270084410905838, -0.04369964078068733, 0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_restart_recovery_with_local_checkpoint_and_local_log( self ): util.print_frame() key_base = 'key' target = util.get_server_by_role( self.cluster['servers'], 'slave' ) master = util.get_server_by_role( self.cluster['servers'], 'master' ) ip, port = util.get_rand_gateway(...
18,452
[ 0.029160253703594208, 0.036685481667518616, 0.08089618384838104, -0.02977040782570839, -0.024495121091604233, 0.0197791438549757, 0.012597127817571163, 0.01812664419412613, 0.008891716599464417, 0.006161915138363838, 0.02799079194664955, 0.01627076044678688, -0.0231349878013134, -0.0080845...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_restart_recovery_with_remote_checkpoint_and_remote_log( self ): util.print_frame() key_base = 'key' target = util.get_server_by_role( self.cluster['servers'], 'slave' ) master = util.get_server_by_role( self.cluster['servers'], 'master' ) ip, port = util.get_rand_gatewa...
18,453
[ 0.06520406156778336, 0.013729836791753769, 0.06976377964019775, -0.03870699182152748, -0.004239910282194614, 0.04098685458302498, 0.04688916727900505, 0.0059244753792881966, 0.005345010198652744, -0.01084201131016016, 0.006497607100754976, 0.009353768080472946, -0.02238064631819725, -0.018...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "redis", "annotation": null, "type_comment": null}}], "kwarg": nul...
def bgsave(self, redis): redis.write('time\r\n') redis.read_until('\r\n', 1) redis.read_until('\r\n', 1) ret = redis.read_until('\r\n', 1) before_save_time = int(ret.strip()) redis.read_until('\r\n', 1) redis.read_until('\r\n', 1) time.sleep(1.1) ...
18,454
[ 0.06506144255399704, 0.06153521314263344, 0.017804984003305435, -0.08770878612995148, -0.03367302194237709, 0.052992794662714005, 0.022163106128573418, 0.012751546688377857, 0.04720679670572281, 0.014812653884291649, 0.03558513522148132, -0.01599220186471939, -0.023119162768125534, 0.01486...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test_delete_smrlog_after_redis_restart(self): util.print_frame() server = self.cluster['servers'][0] redis = telnetlib.Telnet(server['ip'], server['redis_port']) val = 'x' * 1048576 cmd = '*3\r\n$3\r\nset\r\n$4\r\ntest\r\n$1048576\r\n%s\r\n' % val # create smr log ...
18,455
[ -0.0078024179674685, -0.009632461704313755, 0.04159640893340111, -0.027673235163092613, -0.03729332983493805, -0.0037528269458562136, 0.025917381048202515, -0.05381318926811218, -0.0012767030857503414, 0.019796626642346382, 0.036625612527132034, -0.010349641554057598, -0.014442509971559048, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "if_rate", "annotation": null, "type_comment": null}}, {"_type": "...
def __init__( self, if_rate, af_rate ): gr.hier_block2.__init__(self, "ssb_demod", gr.io_signature(1,1,gr.sizeof_gr_complex), gr.io_signature(1,1,gr.sizeof_float)) self.if_rate = int(if_rate) self.af_rate = int(af_rate) s...
18,456
[ 0.011382117867469788, -0.017566103488206863, 0.05190962925553322, -0.023899460211396217, -0.03164288401603699, 0.0015176157467067242, 0.001103109447285533, -0.040437888354063034, 0.0027066138572990894, 0.007856947369873524, 0.04203915223479271, -0.03455862030386925, -0.027747273445129395, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "if_rate", "annotation"...
class ssb_demod( gr.hier_block2 ): def __init__( self, if_rate, af_rate ): gr.hier_block2.__init__(self, "ssb_demod", gr.io_signature(1,1,gr.sizeof_gr_complex), gr.io_signature(1,1,gr.sizeof_float)) self.if_rate = int(if_rate) ...
18,457
[ 0.020772377029061317, -0.020253971219062805, 0.02073620818555355, -0.033563725650310516, 0.020302195101976395, 0.002474480774253607, -0.02139928564429283, -0.00370418606325984, 0.024666443467140198, -0.02356935292482376, 0.01719176396727562, -0.05492684245109558, -0.04458284750580788, -0.0...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class TestSupplierScorecard(unittest.TestCase): def test_create_scorecard(self): doc = make_supplier_scorecard().insert() self.assertEqual(doc.name, valid_scorecard[0].get("supplier")) def test_criteria_weight(self): delete_test_scorecards() my_doc = make_supplier_scorecard() for d in my_doc.criteria: ...
18,458
[ -0.006086084060370922, -0.009823030792176723, 0.03990736976265907, -0.01413677353411913, -0.042703963816165924, -0.006274853833019733, 0.027588382363319397, -0.02844134345650673, 0.017101161181926727, -0.010396331548690796, 0.02033122628927231, -0.04284379258751869, -0.03775399550795555, 0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def set_am( self ): taps = gr.firdes.low_pass( 1.0, self.if_rate, 5e3, 2e3, gr.firdes.WIN_HAMMING ) self.xlate.set_taps( taps ) self.sb_sel.set_k( 0.0 ) ...
18,459
[ -0.012394972145557404, -0.01653505675494671, 0.03433426097035408, -0.018456561490893364, 0.0114026153460145, 0.006014184560626745, -0.011604879051446915, -0.0036281049251556396, 0.013121857307851315, -0.013589591719210148, 0.04348669573664665, -0.060476843267679214, -0.059263262897729874, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"a...
def make_supplier_scorecard(): my_doc = frappe.get_doc(valid_scorecard[0]) # Make sure the criteria exist (making them) for d in valid_scorecard[0].get("criteria"): if not frappe.db.exists("Supplier Scorecard Criteria", d.get("criteria_name")): d["doctype"] = "Supplier Scorecard Criteria" d["name"] = d.get(...
18,460
[ 0.0033996906131505966, -0.013246463611721992, 0.04251081496477127, -0.05420715734362602, -0.030509142205119133, 0.04018563777208328, -0.008326012641191483, 0.0012961687752977014, 0.01951739564538002, -0.015618613921105862, 0.055992141366004944, -0.0661383718252182, -0.038518086075782776, 0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"a...
def delete_test_scorecards(): my_doc = make_supplier_scorecard() if frappe.db.exists("Supplier Scorecard", my_doc.name): # Delete all the periods, then delete the scorecard frappe.db.sql("""delete from `tabSupplier Scorecard Period` where scorecard = %(scorecard)s""", {'scorecard': my_doc.name}) frappe.db.sql("...
18,461
[ -0.021137651056051254, -0.005954267922788858, 0.03730478510260582, 0.005611250642687082, 0.013992530293762684, 0.000943298451602459, -0.02060694433748722, -0.01247160229831934, 0.037175342440605164, 0.026820093393325806, -0.008122398518025875, -0.032955579459667206, 0.05175035446882248, 0....
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def test( self ) : t = GafferUI.TabbedContainer() self.assertEqual( len( t ), 0 ) self.assertEqual( t.getCurrent(), None ) c = GafferUI.ListContainer( GafferUI.ListContainer.Orientation.Vertical ) t.append( c ) self.assertEqual( len( t ), 1 ) self.assert_( t[0] is c ) self.assert_( t.getCurrent() is...
18,462
[ 0.00034145606332458556, -0.008332940749824047, 0.05948110669851303, -0.005297037307173014, -0.020443305373191833, 0.00708931777626276, -0.020363500341773033, -0.007913966663181782, 0.023130062967538834, 0.024952270090579987, 0.02265123464167118, 0.01576142944395542, 0.03801364079117775, 0....
12
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class TabbedContainerTest( GafferUITest.TestCase ) : def test( self ) : t = GafferUI.TabbedContainer() self.assertEqual( len( t ), 0 ) self.assertEqual( t.getCurrent(), None ) c = GafferUI.ListContainer( GafferUI.ListContainer.Orientation.Vertical ) t.append( c ) self.assertEqual( len( t ), 1 ) self...
18,463
[ -0.03497282788157463, 0.00919705256819725, 0.05144476145505905, 0.045224402099847794, -0.019982565194368362, -0.010832232423126698, -0.017619898542761803, -0.004885517060756683, 0.02418731339275837, 0.025949303060770035, -0.00339883822016418, -0.018207227811217308, 0.025855865329504013, 0....
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testCornerWidget( self ) : t = GafferUI.TabbedContainer() self.failUnless( t.getCornerWidget() is None ) b = GafferUI.Button( "baby" ) t.setCornerWidget( b ) self.failUnless( t.getCornerWidget() is b ) self.failUnless( b.parent() is t ) b2 = GafferUI.Button( "b" ) t.setCornerWidget( b2 ) self.f...
18,464
[ 0.0015870830975472927, -0.022032449021935463, 0.062375906854867935, -0.012142956256866455, -0.000641835096757859, -0.015774253755807877, -0.027891457080841064, 0.004770907107740641, 0.014422175474464893, -0.023178495466709137, -0.0021536685526371002, -0.014576698653399944, 0.0327589400112628...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testIndex( self ) : t = GafferUI.TabbedContainer() b1 = GafferUI.Button() b2 = GafferUI.Button() t.append( b1 ) t.append( b2 ) self.assertEqual( t.index( b1 ), 0 ) self.assertEqual( t.index( b2 ), 1 ) b3 = GafferUI.Button() self.assertRaises( ValueError, t.index, b3 )
18,465
[ 0.012196633033454418, -0.0003778072714339942, 0.022940777242183685, 0.012901517562568188, -0.01666090078651905, 0.02902129478752613, -0.0016251497436314821, -0.01545049250125885, 0.033805962651968, 0.024122705683112144, -0.007333644200116396, 0.01166263036429882, 0.01070854440331459, 0.061...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testCurrentChangedSignal( self ) : tc = GafferUI.TabbedContainer() def s( t, c ) : self.failUnless( t is tc ) self.__current = c c = tc.currentChangedSignal().connect( s ) self.__current = None self.failUnless( tc.getCurrent() is None ) b1 = GafferUI.Button() tc.append( b1 ) self.failUnl...
18,466
[ 0.016040770336985588, 0.015174061991274357, 0.05053576081991196, -0.01224058773368597, -0.04725560173392296, 0.018267543986439705, -0.010547173209488392, -0.013560650870203972, 0.020360978320240974, 0.008160391822457314, 0.007740371860563755, -0.005833613686263561, 0.006853662431240082, -0...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testMoveTracking( self ) : t = GafferUI.TabbedContainer() t._qtWidget().tabBar().setMovable( True ) b1 = GafferUI.Button() b2 = GafferUI.Button() b3 = GafferUI.Button() t.append( b1 ) t.append( b2 ) t.append( b3 ) self.assertEqual( t.index( b1 ), 0 ) self.assertEqual( t.index( b2 ), 1 ) se...
18,467
[ 0.013199154287576675, -0.0036816110368818045, 0.06529517471790314, -0.002080758335068822, 0.00041510077426210046, -0.015272906050086021, -0.02770140953361988, 0.00048121914733201265, 0.014488243497908115, 0.015118775889277458, 0.006214251276105642, -0.018607724457979202, 0.015160811133682728...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testDel( self ) : with GafferUI.TabbedContainer() as t : b1 = GafferUI.Button() b2 = GafferUI.Button() b3 = GafferUI.Button() self.assertEqual( len( t ), 3 ) for b in ( b1, b2, b3 ) : self.failUnless( b.parent() is t ) del t[0] self.assertEqual( len( t ), 2 ) for b in ( b2, b3 ) : sel...
18,468
[ -0.023145584389567375, -0.0001215925149153918, 0.012999060563743114, 0.00789452064782381, 0.011335080489516258, 0.016890021041035652, -0.0460909903049469, -0.03380506485700607, 0.03740826994180679, -0.005601856857538223, 0.004751100204885006, -0.01941726915538311, 0.0434386320412159, 0.016...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testTabsVisible( self ) : t = GafferUI.TabbedContainer() self.assertEqual( t.getTabsVisible(), True ) t.setTabsVisible( False ) self.assertEqual( t.getTabsVisible(), False ) t.setTabsVisible( True ) self.assertEqual( t.getTabsVisible(), True )
18,469
[ -0.03158063814043999, -0.007808399852365255, 0.041496068239212036, 0.04382619261741638, -0.004703631158918142, 0.0018498471472412348, -0.02496209181845188, 0.016868622973561287, 0.03331584110856056, 0.02186352014541626, 0.005605315789580345, 0.01586468517780304, 0.04645378142595291, -0.002...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testTransferCornerWidget( self ) : t = GafferUI.TabbedContainer() l = GafferUI.ListContainer() b = GafferUI.Button() l.append( b ) self.assertEqual( len( l ), 1 ) self.assertEqual( b.parent(), l ) t.setCornerWidget( b ) self.assertEqual( len( l ), 0 ) self.assertEqual( b.parent(), t )
18,470
[ 0.0011011743918061256, 0.0096499128267169, 0.04260333999991417, 0.03187550976872444, -0.012870827689766884, -0.007462000474333763, -0.03244013339281082, -0.00016842434706632048, 0.031618863344192505, 0.002460599411278963, 0.012376783415675163, 0.047197312116622925, 0.02485622465610504, -0....
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testVisibilityWhenTransferringWidgets( self ) : t = GafferUI.TabbedContainer() b = GafferUI.Button() l = GafferUI.ListContainer() l.append( b ) self.assertEqual( b.parent(), l ) self.assertEqual( b.getVisible(), True ) t.append( b ) self.assertEqual( len( l ), 0 ) self.assertEqual( b.parent(), ...
18,471
[ -0.026083746924996376, 0.00010229236795566976, 0.0622195340692997, -0.0055962782353162766, -0.013454264961183071, -0.01924063079059124, -0.012996768578886986, -0.020684000104665756, 0.0017494411440566182, 0.019769007340073586, 0.008576449938118458, -0.01801634393632412, 0.02339031733572483, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testLabellingDuringAutoParenting( self ) : with GafferUI.TabbedContainer() as t : one = GafferUI.ListContainer( parenting = { "label" : "One" } ) two = GafferUI.ListContainer( parenting = { "label" : "Two" } ) self.assertEqual( t.getLabel( one ), "One" ) self.assertEqual( t.getLabel( two ), "Two" )
18,472
[ 0.013101340271532536, -0.004880556836724281, 0.049044642597436905, -0.021708060055971146, -0.01241143699735403, -0.0251644104719162, -0.005327969323843718, 0.005799289792776108, -0.00232586357742548, -0.025833820924162865, 0.004043792374432087, -0.024508658796548843, 0.016544029116630554, ...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testInsert( self ) : t = GafferUI.TabbedContainer() b1 = GafferUI.Button() b2 = GafferUI.Button() b3 = GafferUI.Button() t.insert( 0, b1, "B1" ) self.assertTrue( t[0] is b1 ) self.assertEqual( t.index( b1 ), 0 ) self.assertEqual( t.getLabel( b1 ), "B1" ) t.insert( 1, b2, "B2" ) self.assertTr...
18,473
[ -0.005900174379348755, -0.02582077495753765, 0.03834936395287514, -0.008060154505074024, -0.027913587167859077, 0.010089333169162273, -0.010761013254523277, -0.009771169163286686, -0.003916952293366194, 0.013440660201013088, -0.004871443845331669, -0.027616633102297783, 0.038914989680051804,...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def testReveal( self ) : with GafferUI.TabbedContainer() as t1 : with GafferUI.TabbedContainer() as t2 : with GafferUI.ListContainer() as c1 : l1 = GafferUI.Label( "l1" ) with GafferUI.ListContainer() as c2 : l2 = GafferUI.Label( "l2" ) with GafferUI.TabbedContainer() as t3 : with GafferU...
18,474
[ -0.012284663505852222, 0.0008892913465388119, -0.07818152010440826, -0.07752571254968643, 0.02378470078110695, 0.005187898874282837, 0.01386562641710043, 0.011107725091278553, 0.006522933952510357, 0.00887681171298027, 0.03602252155542374, -0.03515591844916344, -0.005427971016615629, -0.05...
13
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": "https?://(?:www\\.)?atresplayer\\.com/television/[^/]+/[^/]+/[^/]+/(?P<id>.+?)_\\d+\\.html"}}, "targets": [{"_type": "Name", "_fields": {...
class AtresPlayerIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?atresplayer\.com/television/[^/]+/[^/]+/[^/]+/(?P<id>.+?)_\d+\.html' _NETRC_MACHINE = 'atresplayer' _TESTS = [ { 'url': 'http://www.atresplayer.com/television/programas/el-club-de-la-comedia/temporada-4/capitulo-10-esp...
18,475
[ 0.007260976824909449, 0.03758741915225983, -0.022277766838669777, 0.00027313869213685393, 0.04102098196744919, -0.010805625468492508, 0.01446136087179184, 0.06390467286109924, 0.010866218246519566, 0.05727991461753845, -0.026721201837062836, -0.013572674244642258, 0.021106315776705742, 0.0...
8
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def _login(self): (username, password) = self._get_login_info() if username is None: return login_form = { 'j_username': username, 'j_password': password, } request = sanitized_Request( self._LOGIN_URL, urlencode_postdata(login_fo...
18,476
[ -0.008359182626008987, -0.0015636623138561845, -0.07324011623859406, -0.06319494545459747, 0.014949849806725979, -0.0015430296771228313, 0.028107604011893272, 0.006537611596286297, 0.016093488782644272, 0.016010958701372147, 0.0546589158475399, -0.031974758952856064, -0.016458982601761818, ...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "url", "annotation": null, "type_comment": null}}], "kwarg": null,...
def _real_extract(self, url): video_id = self._match_id(url) webpage = self._download_webpage(url, video_id) episode_id = self._search_regex( r'episode="([^"]+)"', webpage, 'episode id') request = sanitized_Request( self._PLAYER_URL_TEMPLATE % episode_id, ...
18,477
[ -0.018716471269726753, 0.011604932136833668, 0.03750483691692352, -0.0417466014623642, -0.0017014974728226662, 0.0030495147220790386, -0.03441338613629341, -0.03788827359676361, -0.0070815845392644405, -0.025857968255877495, 0.0006350659532472491, -0.08363699167966843, 0.049175672233104706, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Dict", "_fields": {"keys": [], "values": []}}, "targets": [{"_type": "Name", "_fields": {"id": "_sources", "ctx": {"_type": "Store", "_fields": {}}}}], "type_comment": null}}, {"_type"...
class ArticleALM(ArticleALMBase): _sources = {} _resp_json = None def _load_sources(self): for src in self._resp_json.get('sources', None): self._sources[src['name']] = Source(src) @property def sources(self): if self._sources == {}: self._load_sources() ...
18,478
[ -0.02033666893839836, -0.062141053378582, 0.02319755218923092, -0.03894349932670593, 0.01789715513586998, -0.014248974621295929, 0.03969753161072731, 0.051628969609737396, -0.026235854253172874, 0.057439446449279785, -0.017542317509651184, -0.03379834443330765, -0.033842701464891434, 0.017...
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs...
class NeuronTests(unittest.TestCase): def setUp(self): self.neuron = Neuron(3, 1, 1, [2, 1, 3]) def test_dot_product(self): assert self.neuron._dot_product([4, 3, 2], [2, 3, 4]) == 25 def test_sigmoid(self): assert self.neuron._sigmoid(0) == .5 assert self.neuron._sigmoid(...
18,479
[ 0.02213539369404316, 0.016218163073062897, 0.020973633974790573, 0.009975641965866089, -0.048917822539806366, 0.041699424386024475, -0.005127232521772385, -0.00030108937062323093, -0.040800996124744415, -0.00017244869377464056, 0.057654257863759995, -0.005255025811493397, 0.01861913315951824...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "parent", "annotation": null, "type_comment": null}}], "kwarg": nu...
def __init__(self, parent=None): QtWidgets.QWidget.__init__(self, parent) self.setWindowTitle("QECoverage") self.grid = QtWidgets.QVBoxLayout() self.setLayout(self.grid) self.mainframe = QtWidgets.QFrame(self) self.mainframe_grid = QtWidgets.QHBoxLayout() self.mai...
18,480
[ -0.004102613311260939, -0.0007741710287518799, 0.01793578453361988, -0.005825185216963291, -0.005641093477606773, 0.015384800732135773, -0.03997418284416199, 0.01836971379816532, 0.004704198334366083, 0.0344514325261116, 0.05664762482047081, 0.015739833936095238, -0.02869199588894844, 0.00...
17
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "efix", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "tthlims", "annotation": null, "type_comment": null}}], "kwarg": {...
def calcQE(efix, tthlims, **kwargs): fc = np.sign(efix[0]) efix = np.abs(efix) qe_array = [] # Conversion factors E2q = 2. * constants.m_n / (constants.hbar ** 2) # Energy to (neutron momentum)^2 (==2m_n/hbar^2) meV2J = constants.e / 1000. # meV to Joules m2A = 1.e10 # metres to Angstrom ...
18,481
[ -0.0015805282164365053, -0.001143443863838911, 0.0020566380117088556, -0.027957787737250328, -0.02856658399105072, 0.015984797850251198, 0.030517851933836937, -0.009967084042727947, -0.002887878566980362, 0.009639270603656769, 0.034342341125011444, -0.027192890644073486, -0.00154930783901363...
21
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "Inst", "annotation": null, "type_comment": null}}], "kwarg": null...
def onDirectInstActivated(self, Inst): self.direct_s2.hide() if Inst == 'LET': self.tthlims = [2.65, 140] elif Inst == 'MAPS': self.tthlims = [3.0, 19.8, 21.1, 29.8, 31.1, 39.8, 41.1, 49.8, 51.1, 59.8] elif Inst == 'MARI': self.tthlims = [3.43, 29.14, ...
18,482
[ 0.007080748677253723, 0.021561652421951294, 0.0025695976801216602, -0.04860702529549599, -0.034969497472047806, 0.004679826088249683, 0.03778313472867012, 0.005821072030812502, 0.009173032827675343, -0.0032496796920895576, 0.04303717240691185, -0.018834145739674568, 0.01959497667849064, -0...
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "Inst", "annotation": null, "type_comment": null}}], "kwarg": null...
def onIndirectInstActivated(self, Inst): self.indirect_ef_input.clear() for ana in self.indirect_analysers[str(Inst)]: self.indirect_ef_input.addItem(ana) # IRIS has separate PG and Mica analysers in different positions. Default is PG. if Inst == 'IRIS': self.tthl...
18,483
[ 0.030076446011662483, 0.01046474277973175, 0.04552339389920235, -0.04095695912837982, -0.022818071767687798, 0.03991400822997093, 0.01276910025626421, -0.017532849684357643, 0.04405762627720833, 0.04961063340306282, 0.014826814644038677, -0.000993622001260519, -0.03994219750165939, 0.00734...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "text", "annotation": null, "type_comment": null}}], "kwarg": null...
def onS2Changed(self, text): try: s2 = float(text) except ValueError: s2 = 0 if abs(s2) <= 30: self.tthlims = [0, abs(s2) + 30] else: self.tthlims = [abs(s2) - 30, abs(s2) + 30]
18,484
[ 0.03977864608168602, -0.02429434284567833, -0.017152873799204826, -0.022799305617809296, -0.03457271680235863, 0.017099479213356972, -0.0053761242888867855, 0.005222616251558065, -0.04335605725646019, -0.007782198488712311, 0.05627744272351265, 0.007481856271624565, 0.007508553564548492, -...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def onClickDirectPlot(self): overplot = self.direct_plotover.isChecked() createws = self.direct_createws.isChecked() ei_str = self.direct_ei_input.text() eierr = '-----------------------------------------------------------------------------------\n' eierr += 'Error: Invalid input...
18,485
[ 0.057575225830078125, -0.005914733279496431, -0.017215868458151817, -0.02755054458975792, 0.004629341885447502, 0.01706123538315296, 0.0026303811464458704, 0.0191230159252882, -0.019960613921284676, 0.07736831903457642, 0.029998909682035446, -0.014316489920020103, 0.0007381336181424558, 0....
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "ei_vec", "annotation": null, "type_comment": null}}], "kwarg": nu...
def direct_input_check(self, ei_vec): if len(ei_vec) > 0: ei_str = "" update_ei_str = False insert_comma = True for ei in ei_vec: # if ei is equal to last value in ei_vec if ei_vec[len(ei_vec) - 1] == ei: inser...
18,486
[ 0.030768461525440216, -0.002686025807633996, -0.013878950849175453, -0.012932972982525826, -0.056427258998155594, 0.028835074976086617, 0.001007259706966579, -0.023366352543234825, -0.0363200418651104, -0.008893576450645924, 0.0819203332066536, 0.01055076438933611, 0.004726438783109188, 0....
12
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []...
def onClickIndirectPlot(self): overplot = self.indirect_plotover.isChecked() createws = self.indirect_createws.isChecked() inst = str(self.indirect_inst_box.currentText()) ana = str(self.indirect_ef_input.currentText()) ef = self.indirect_analysers[inst][ana] try: ...
18,487
[ 0.023889632895588875, 0.008973038755357265, -0.013687490485608578, -0.034022532403469086, -0.027351899072527885, 0.02076205424964428, 0.002628436777740717, -0.010663778521120548, 0.04475555568933487, 0.06813739240169525, 0.0041662598960101604, -0.07700078934431076, 0.06573688238859177, 0.0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": []}}, "body": [{"_type": "Assign", "_fields": {"value": {"_type": "Call", "_fields": {"a...
def main(): argument_specs = dict( state=dict(default='present', choices=['absent', 'present']), cloud_config_cksum=dict(type='str',), created_by=dict(type='str',), description=dict(type='str',), http_request_policy=dict(type='dict',), http_response...
18,488
[ 0.043356962502002716, 0.007769600488245487, 0.016112200915813446, -0.03053268790245056, -0.015552843920886517, 0.017476484179496765, 0.024652622640132904, 0.013792917132377625, 0.018185913562774658, 0.010914276354014874, 0.04523967579007149, -0.0412013940513134, -0.049960099160671234, -0.0...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "ana", "annotation": null, "type_comment": null}}], "kwarg": null,...
def indirect_input_check(self, ana): Emax_min = 0 if ana == 'PG002' or ana == 'Mica006': Emax_min = -1 elif ana == 'Si111': Emax_min = -2 elif ana == 'PG004' or ana == 'Si311': Emax_min = -7 elif ana == 'AuFoil': Emax_min = -4896 ...
18,489
[ 0.031941547989845276, 0.00518138287588954, 0.015397598035633564, -0.02297915704548359, -0.05088241770863533, 0.009555108845233917, -0.009301086887717247, -0.016009854152798653, -0.005907623562961817, 0.032853420823812485, -0.0006541862385347486, -0.015319437719881535, -0.04405641183257103, ...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "model_name", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "warming_text", "annotation": null, "type_comment": null}}, ...
def predict(model_name, warming_text, count_char='', number=10, temperature=1.0): max_char_generated = 1000 if model_name not in models: raise KeyError('Model not found') if len(warming_text) < maxlen: padding = ' '*(maxlen - len(warming_text)) warming_text = padding + warming_text ...
18,490
[ 0.0210258848965168, -0.05325237289071083, 0.0479271337389946, 0.007245183456689119, 0.0046430788934230804, -0.00517395231872797, -0.063902847468853, -0.018935399129986763, 0.013258079998195171, 0.005891868844628334, 0.005935878958553076, -0.016041727736592293, 0.03784879297018051, -0.01552...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "preds", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "temperature", "annotation": null, "type_comment": null}}], "kwar...
def sample(preds, temperature=1.0): # helper function to sample an index from a probability array preds = np.asarray(preds).astype('float64') preds = np.log(preds) / temperature exp_preds = np.exp(preds) preds = exp_preds / np.sum(exp_preds) probas = np.random.multinomial(1, preds, 1) return...
18,491
[ 0.05422758311033249, -0.014515071175992489, 0.044283270835876465, -0.004813539795577526, -0.03200825676321983, 0.005101639777421951, -0.02667354792356491, 0.026090873405337334, 0.005237597040832043, 0.038922663778066635, 0.05738697201013565, -0.031024185940623283, -0.03286284580826759, 0.0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "self", "annotation": null, "type_comment": null}}], "kwarg": {"_type": "arg", "_fields": {"arg": "options", "annotation": null, "type_comment": null}}, "...
def handle(self, *args, **options): count = 0 for username in options["username"]: count += reset(username=username) if count: self.stdout.write(f"{count} attempts removed.") else: self.stdout.write("No attempts found.")
18,492
[ 0.017332667484879494, 0.004115234594792128, 0.03792582079768181, -0.006170021835714579, -0.013958966359496117, 0.01987992413341999, -0.046914808452129364, 0.0475035086274147, -0.015589211136102676, 0.0067530605010688305, 0.013449515216052532, -0.029684031382203102, 0.014128783717751503, 0....
10
{"_type": "Module", "_fields": {"body": [{"_type": "ClassDef", "_fields": {"body": [{"_type": "Assign", "_fields": {"value": {"_type": "Constant", "_fields": {"kind": null, "value": "Reset all access attempts and lockouts for given usernames"}}, "targets": [{"_type": "Name", "_fields": {"id": "help", "ctx": {"_type": "...
class Command(BaseCommand): help = "Reset all access attempts and lockouts for given usernames" def add_arguments(self, parser): parser.add_argument("username", nargs="+", type=str) def handle(self, *args, **options): count = 0 for username in options["username"]: coun...
18,493
[ 0.04647422954440117, 0.015957437455654144, 0.010039687156677246, -0.02064584009349346, -0.01957317255437374, 0.04830620437860489, 0.05920161306858063, 0.029673121869564056, 0.017656832933425903, 0.020115531980991364, 0.02646717056632042, 0.0031848587095737457, -0.02174261212348938, -0.0211...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "eni", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "status", "annotation": null, "type_comment": null}}], "kwarg": nul...
def wait_for_eni(eni, status): while True: time.sleep(3) eni.update() # If the status is detached we just need attachment to disappear if eni.attachment is None: if status == "detached": break else: if status == "attached" and eni.atta...
18,494
[ 0.02290666475892067, -0.030087092891335487, 0.018981199711561203, -0.009063919074833393, -0.0034378282725811005, -0.02886800467967987, -0.009892899543046951, 0.03406132012605667, -0.02667364664375782, 0.028892386704683304, -0.0037669818848371506, -0.028965530917048454, 0.04305819049477577, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "interface", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs...
def get_eni_info(interface): # Private addresses private_addresses = [] for ip in interface.private_ip_addresses: private_addresses.append({'private_ip_address': ip.private_ip_address, 'primary_address': ip.primary}) interface_info = {'id': interface.id, 'subnet_id': inte...
18,495
[ 0.0347442589700222, -0.01136002130806446, 0.01511615701019764, -0.039187490940093994, 0.007850095629692078, 0.003650208469480276, 0.02167794294655323, 0.05327300354838371, -0.003074763808399439, 0.041500721126794815, 0.02010907046496868, -0.013467121869325638, 0.033255547285079956, -0.0167...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "connection", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "vpc_id", "annotation": null, "type_comment": null}}, {"_typ...
def create_eni(connection, vpc_id, module): instance_id = module.params.get("instance_id") attached = module.params.get("attached") if instance_id == 'None': instance_id = None device_index = module.params.get("device_index") subnet_id = module.params.get('subnet_id') private_ip_address...
18,496
[ 0.01964680477976799, 0.00026907274150289595, 0.0058715310879051685, -0.018121082335710526, -0.018171105533838272, 0.06553103774785995, 0.005183705128729343, 0.03521667793393135, 0.003870583139359951, 0.02856352925300598, 0.039493706077337265, -0.03374098241329193, 0.018333682790398598, 0.0...
13
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "connection", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "vpc_id", "annotation": null, "type_comment": null}}, {"_typ...
def modify_eni(connection, vpc_id, module, eni): instance_id = module.params.get("instance_id") attached = module.params.get("attached") do_detach = module.params.get('state') == 'detached' device_index = module.params.get("device_index") description = module.params.get('description') security_...
18,497
[ 0.03357673063874245, 0.01657327450811863, -0.0029461714439094067, -0.02431652694940567, -0.032874856144189835, 0.050036799162626266, -0.015984605997800827, 0.05062546953558922, -0.00736967334523797, 0.022312790155410767, 0.030542826279997826, -0.044761426746845245, 0.004248033743351698, -0...
11
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "connection", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "module", "annotation": null, "type_comment": null}}], "kwar...
def delete_eni(connection, module): eni_id = module.params.get("eni_id") force_detach = module.params.get("force_detach") try: eni_result_set = connection.get_all_network_interfaces(eni_id) eni = eni_result_set[0] if force_detach is True: if eni.attachment is not None:...
18,498
[ 0.013283311389386654, 0.05496542900800705, 0.015972860157489777, -0.02689547650516033, -0.027059903368353844, 0.06811954826116562, -0.011145767755806446, 0.023677414283156395, -0.0005549394409172237, 0.018627172335982323, 0.03093566931784153, -0.039274442940950394, 0.011298448778688908, -0...
9
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "eni", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "module", "annotation": null, "type_comment": null}}], "kwarg": nul...
def detach_eni(eni, module): attached = module.params.get("attached") force_detach = module.params.get("force_detach") if eni.attachment is not None: eni.detach(force_detach) wait_for_eni(eni, "detached") if attached: return eni.update() module.exit_json...
18,499
[ 0.00899086706340313, -0.012639257125556469, 0.07213936001062393, -0.009086458012461662, -0.003916576504707336, 0.04533138498663902, 0.03305325284600258, 0.03579352796077728, 0.0016914299922063947, -0.002141504315659404, 0.004450293257832527, 0.006590469740331173, 0.027508972212672234, -0.0...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "groups", "annotation": null, "type_comment": null}}], "kwarg": null, "vararg": null, "defaults": [], "kwonlyargs": [], "kw_defaults": [], "posonlyargs": ...
def get_sec_group_list(groups): # Build list of remote security groups remote_security_groups = [] for group in groups: remote_security_groups.append(group.id.encode()) return remote_security_groups
18,500
[ 0.021736569702625275, -0.03207525610923767, -0.007742501329630613, -0.01692412979900837, 0.014126467518508434, 0.010551676154136658, -0.034562066197395325, 0.02804570086300373, -0.026042435318231583, 0.013343581929802895, -0.007633127737790346, -0.05038094520568848, 0.0004964987165294588, ...
10
{"_type": "Module", "_fields": {"body": [{"_type": "FunctionDef", "_fields": {"args": {"_type": "arguments", "_fields": {"args": [{"_type": "arg", "_fields": {"arg": "connection", "annotation": null, "type_comment": null}}, {"_type": "arg", "_fields": {"arg": "module", "annotation": null, "type_comment": null}}], "kwar...
def uniquely_find_eni(connection, module): eni_id = module.params.get("eni_id") private_ip_address = module.params.get('private_ip_address') subnet_id = module.params.get('subnet_id') instance_id = module.params.get('instance_id') device_index = module.params.get('device_index') attached = modu...