query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Test get purchase with invalid credentials.
def lFB3(YKHO, r8hN): bD7m = 'https://www.cellartracker.com/xlquery.asp?User=invalid-username&Password=invalid-password&Table=Purchase&Format=tab&Location=1' nUeQ = open('./tests/fixtures/not_logged.html', 'r') r8hN.register_uri('GET', bD7m, status_code=200, text=nUeQ.read()) nUeQ.close ppQm = oymR(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KKhR(YKHO):\n qf0l = {'id': 2, 'amount': 1}\n _hkX = YKHO.app.post('/products/2/purchase', json=qf0l, content_type='application/json')\n YKHO.assertEqual(_hkX.status_code, jGRS.HTTP_404_NOT_FOUND)\n _hkX = YKHO.app.get('/products/2', content_type='application/json')\n YKHO.assertEqual(_hkX.statu...
[ "0.71725756", "0.70651263", "0.66444236", "0.6586424", "0.64858687", "0.63915944", "0.63801366", "0.63122135", "0.629866", "0.6251077", "0.6238342", "0.6225395", "0.6222349", "0.6202544", "0.6166017", "0.6156618", "0.614757", "0.6137711", "0.6120282", "0.6103197", "0.60943735...
0.7200314
0
Test get pending with error.
def iTUb(YKHO, r8hN): bD7m = 'https://www.cellartracker.com/xlquery.asp?User=test-username&Password=test-password&Table=Pending&Format=tab&Location=1' r8hN.register_uri('GET', bD7m, exc=G4JS.exceptions.ConnectTimeout) ppQm = oymR(username='test-username', password='test-password') with YKHO.assertRaises...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SYLZ(YKHO):\n with YKHO.assertRaises(AssertionError):\n YKHO.resource.get(-1)", "def cqYj():\n YGg6 = UNIv.replace('.com', '.comx')\n with trZe.raises(Exception):\n _hkX = AEDA.fetch_GET_request(YGg6)", "def e4S6(YKHO, NUH8, TNQQ, fUY2, NMoC):\n YKHO.assertEquals(YKHO.query_api._g...
[ "0.6771275", "0.6379431", "0.63694656", "0.6267654", "0.6244516", "0.6191648", "0.6189287", "0.6172019", "0.6152225", "0.6152225", "0.611806", "0.61145324", "0.6055385", "0.6052007", "0.60438395", "0.60400736", "0.6031691", "0.60305566", "0.601856", "0.59807783", "0.59763587"...
0.7029641
0
Test get consumed with invalid credentials.
def rvDY(YKHO, r8hN): bD7m = 'https://www.cellartracker.com/xlquery.asp?User=invalid-username&Password=invalid-password&Table=Consumed&Format=tab&Location=1' nUeQ = open('./tests/fixtures/not_logged.html', 'r') r8hN.register_uri('GET', bD7m, status_code=200, text=nUeQ.read()) nUeQ.close ppQm = oymR(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iTlK(YKHO):\n HmuX = JoVS(source=YKHO.VALID_CREDENTIALS_TWINE)\n with YKHO.assertRaises(Bx6I.CredentialNotFound):\n HmuX.validate_credentials()", "def dbuc():\n pass", "def vi3V(YKHO):\n hl9o = gase.PLAINCredentials()\n YKHO.assertRaises(gase.IllegalClientResponse, hl9o.setResponse, b...
[ "0.745211", "0.733641", "0.7150095", "0.7079808", "0.70068645", "0.69933873", "0.6989952", "0.69570684", "0.69124043", "0.681617", "0.68137914", "0.680708", "0.6801464", "0.67813504", "0.67420554", "0.67373925", "0.6727609", "0.66905385", "0.66900116", "0.6667284", "0.6667284...
0.73038304
2
Test get bottles with invalid credentials.
def krI1(YKHO, r8hN): bD7m = 'https://www.cellartracker.com/xlquery.asp?User=invalid-username&Password=invalid-password&Table=Bottles&Format=tab&Location=1' nUeQ = open('./tests/fixtures/not_logged.html', 'r') r8hN.register_uri('GET', bD7m, status_code=200, text=nUeQ.read()) nUeQ.close ppQm = oymR(u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S1sY(YKHO, r8hN):\n bD7m = 'https://www.cellartracker.com/xlquery.asp?User=test-username&Password=test-password&Table=Bottles&Format=tab&Location=1'\n r8hN.register_uri('GET', bD7m, exc=G4JS.exceptions.ConnectTimeout)\n ppQm = oymR(username='test-username', password='test-password')\n with YKHO.ass...
[ "0.70782477", "0.679802", "0.66639733", "0.6604175", "0.6595696", "0.65823257", "0.6545929", "0.6544791", "0.6538514", "0.64535004", "0.6452193", "0.64453954", "0.641575", "0.6410027", "0.63942605", "0.63816494", "0.6377596", "0.63649637", "0.6335554", "0.6300085", "0.6297576...
0.7687243
0
Test get bottles with error.
def S1sY(YKHO, r8hN): bD7m = 'https://www.cellartracker.com/xlquery.asp?User=test-username&Password=test-password&Table=Bottles&Format=tab&Location=1' r8hN.register_uri('GET', bD7m, exc=G4JS.exceptions.ConnectTimeout) ppQm = oymR(username='test-username', password='test-password') with YKHO.assertRaises...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zCQT(YKHO):\n _hkX = YKHO.app.get('/asfdasdf')\n YKHO.assertEqual(_hkX.status_code, 404)\n assert 'NOT FOUND' in _hkX.status", "def Q1iI():\n geh0 = OLAq('GET test/test HTTP/1.1')\n assert '404' in geh0", "def IvCS(YKHO):\n RBVb = YKHO.app.get('/this_should_not_exist', follow_redirects=Tr...
[ "0.68223417", "0.66187614", "0.65590686", "0.65168506", "0.6387264", "0.6374729", "0.6314384", "0.63135433", "0.6287473", "0.61839414", "0.6173578", "0.6164031", "0.61136866", "0.6103255", "0.60856366", "0.6055569", "0.6048167", "0.6035857", "0.5996943", "0.59839314", "0.5978...
0.7469969
0
Returns the end of the current path.
def cBFx(rWx5): if not rWx5['path']: return None EyTy = ycAf.get_flag(rWx5, 'chunk_path') if EyTy: return EyTy['end'] return tuple(rWx5['path'][len(rWx5['path']) - 1])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HH7c(YKHO) -> str:\n return YKHO.get_from_redis('end_path')", "def X0y9(YKHO):\n return YKHO.getSection(w382, PStM)", "def D37a(YKHO) -> None:\n pass", "def Vp1c(YKHO):\n return YKHO.dirlist[-1]", "def Os4s(YKHO):\n return YKHO.__end_line", "def G2ou(YKHO, LDkY=True):\n return YKHO....
[ "0.80031127", "0.7489223", "0.7283913", "0.6774825", "0.675885", "0.6705829", "0.6618774", "0.6613938", "0.6603387", "0.65991884", "0.65908545", "0.64441276", "0.6419887", "0.63677835", "0.6353797", "0.63062435", "0.6295527", "0.62901366", "0.6277769", "0.62616634", "0.625965...
0.5911073
78
Performs gravity. Returns True if falling.
def K4z6(rWx5): if not CPo9['map'][rWx5['pos'][0]][rWx5['pos'][1]][rWx5['pos'][2]]: if CPo9['map'][rWx5['pos'][0]][rWx5['pos'][1]][rWx5['pos'][2] - 1]: rWx5['pos'][2] -= 1 return True if not rWx5['gravity']: rWx5['falling_startzpos'] = rWx5['pos'][2] i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tt8p(YKHO):\n if YKHO.y_vel < 10:\n YKHO.y_vel += YKHO.gravity", "def mpbu(YKHO):\n try:\n YKHO.gravsolver.solve()\n except:\n print('GRAVITY DIVERGED')\n YKHO.logfile.write('%s: STOPPED DUE TO DIVERGENCE IN GRAVITY \\n' % YKHO.convert_time(ITS7.time() - YKHO.start_time))...
[ "0.6951226", "0.68006706", "0.67951584", "0.66035753", "0.6324846", "0.60683084", "0.5675074", "0.56440794", "0.5630943", "0.56145", "0.5606529", "0.5567958", "0.5545147", "0.55408776", "0.5515549", "0.5514481", "0.5514481", "0.54694283", "0.5436957", "0.5433943", "0.5419621"...
0.5134025
44
Returns highest action in the queue.
def yE1c(rWx5): if rWx5['actions'] and rWx5['actions'][0]: return rWx5['actions'][0] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HS6c(YKHO, QTBn):\n TFJY = list(YKHO.Q[QTBn].items())\n return max(TFJY, key=lambda WKvO: WKvO[1])[0]", "def ePBn(YKHO):\n if YKHO.bestAction is None:\n YKHO.calculate_best_action()\n return YKHO.bestAction", "def XyPH(YKHO, QTBn):\n r8IL = 0\n K85q = -9999\n for XeOP in YKHO.ge...
[ "0.76782316", "0.73539627", "0.7346948", "0.73396516", "0.71897584", "0.695773", "0.6945965", "0.6945565", "0.69393677", "0.69388634", "0.6898143", "0.68882644", "0.6875586", "0.68577313", "0.6849443", "0.68479115", "0.6796921", "0.6795897", "0.6736728", "0.6712853", "0.66806...
0.7408795
1
Return the ONLINENIC_DOMAIN_TYPE for a domain.
def L1Hu(YKHO, zrIJ): for YBcr, Wxnj in qvX6.iteritems(): if zrIJ.endswith(YBcr): return Wxnj return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vK05(YKHO, mnPZ):\n return YKHO._declaration[mnPZ].domain_type", "def zrIJ(YKHO, zrIJ=None):\n return YKHO.domain_class(apiobj=YKHO, domainname=zrIJ)", "def NRto():\n try:\n if DGuj.config['IDENTITY_TYPE'] == OcwI.INTEGER.value:\n return saof.Integer\n elif DGuj.config['ID...
[ "0.66455853", "0.65767837", "0.6000622", "0.59564245", "0.5825118", "0.5825118", "0.5778933", "0.5778933", "0.5778933", "0.5778933", "0.5777263", "0.5777263", "0.57748497", "0.57748497", "0.57748497", "0.5747152", "0.5733168", "0.5690767", "0.5643772", "0.5640674", "0.5588909...
0.82058483
0
Assign a nucleotide to a site.
def jzIY(YKHO, XeOP): FyFa = YKHO.design.first_unassigned_site _qa3 = YKHO.target.get_paired_site(FyFa) YKHO.design.assign_sites(XeOP, FyFa, _qa3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JIox(YKHO, XeOP, qpDA, _qa3=None):\n YKHO._current_site += 1\n if _qa3:\n SXIm, bsWb = YKHO.action_to_pair[XeOP]\n YKHO._primary_list[qpDA] = SXIm\n YKHO._primary_list[_qa3] = bsWb\n else:\n YKHO._primary_list[qpDA] = YKHO.action_to_base[XeOP]", "def COo8(YKHO, COo8):\n ...
[ "0.55735487", "0.55066365", "0.55066365", "0.5447393", "0.5373297", "0.53454715", "0.5323073", "0.5302113", "0.5262395", "0.514211", "0.5082815", "0.5041682", "0.5022051", "0.5006563", "0.49224195", "0.4884981", "0.486752", "0.4839947", "0.47571135", "0.47380257", "0.47158426...
0.49331862
14
Compute the reward after assignment of all nucleotides.
def Jc_J(YKHO, f9TP): if not f9TP: return 0 ICLq, bGrB = YhDe(YKHO.design.primary) E_DB = Nff8(ICLq, YKHO.target.dot_bracket) if 0 < E_DB < YKHO._env_config.mutation_threshold: E_DB = YKHO._local_improvement(ICLq) O96U = E_DB / len(YKHO.target) oZ6l = oNas(target_id=YKHO.target.i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _KvT(YKHO, pR3T, _ins):\n raise NotImplementedError()", "def _KvT(YKHO, pR3T, _ins):\n raise NotImplementedError()", "def _KvT(YKHO, pR3T, _ins):\n raise NotImplementedError()", "def _KvT(YKHO, pR3T, _ins):\n raise NotImplementedError()", "def _KvT(YKHO, pR3T, _ins):\n raise NotImplement...
[ "0.67755234", "0.67755234", "0.67755234", "0.67755234", "0.67755234", "0.67755234", "0.6091281", "0.60783124", "0.6075239", "0.60708886", "0.60635626", "0.604156", "0.6002082", "0.59508026", "0.59274286", "0.59274286", "0.59274286", "0.5926192", "0.59241444", "0.5885139", "0....
0.0
-1
Creates a new symmetric matrix. If `num_rows` is not ``None``, initializes the symmetric matrix to the specified size. Otherwise, initializes an empty symmetric matrix.
def FIMM(YKHO, NwL4=None, HoHs=v8mt.MatrixResizeType.SET_ZERO): super(JWOq, YKHO).__init__() if NwL4 is not None: if isinstance(NwL4, int) and NwL4 >= 0: YKHO.resize_(NwL4, HoHs) else: raise ValueError('num_rows should be a non-negative integer.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, NwL4=None, HoHs=v8mt.MatrixResizeType.SET_ZERO):\n super(UTkQ, YKHO).__init__()\n if NwL4 is not None:\n if isinstance(NwL4, int) and NwL4 >= 0:\n YKHO.resize_(NwL4, HoHs)\n else:\n raise ValueError('num_rows should be a non-negative integer.')", "def FIMM...
[ "0.60046697", "0.58309686", "0.5685358", "0.563368", "0.55932754", "0.5420318", "0.541395", "0.5300403", "0.5254204", "0.52449507", "0.5156571", "0.51535815", "0.51515347", "0.51515347", "0.51515347", "0.5140766", "0.5128838", "0.51173854", "0.5096485", "0.508117", "0.5071065...
0.581435
2
Creates a new symmetric matrix. If `num_rows` is not ``None``, initializes the symmetric matrix to the specified size. Otherwise, initializes an empty symmetric matrix.
def FIMM(YKHO, NwL4=None, HoHs=v8mt.MatrixResizeType.SET_ZERO): super(UTkQ, YKHO).__init__() if NwL4 is not None: if isinstance(NwL4, int) and NwL4 >= 0: YKHO.resize_(NwL4, HoHs) else: raise ValueError('num_rows should be a non-negative integer.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, NwL4=None, HoHs=v8mt.MatrixResizeType.SET_ZERO):\n super(WZH4, YKHO).__init__()\n if NwL4 is not None:\n if isinstance(NwL4, int) and NwL4 >= 0:\n YKHO.resize_(NwL4, HoHs)\n else:\n raise ValueError('num_rows should be a non-negative integer.')", "def FIMM...
[ "0.5828498", "0.58107424", "0.5681936", "0.5633288", "0.5593159", "0.54219234", "0.54128", "0.530031", "0.52542025", "0.52439934", "0.5156517", "0.5154767", "0.51518154", "0.51518154", "0.51518154", "0.5138122", "0.512859", "0.5116859", "0.50965834", "0.50810516", "0.5071113"...
0.6001942
0
Inverted Residual Block This function defines a sequence of 1 or more identical layers. Arguments
def NcAc(g4y1: 'Layer', KUnM: int, WZcn: int or Tuple[int, int], a1PO: int, FEri: int or Tuple[int, int], exwG: int) -> 'Layer': gEmA = MFxF(g4y1, KUnM, WZcn, a1PO, FEri) for YRbF in range(1, exwG): gEmA = MFxF(gEmA, KUnM, WZcn, a1PO, 1, True) return gEmA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OxUo(YKHO, tYiq, YIPF):\n fhcK = []\n for YRbF in range(YIPF):\n _0fC = 2 if YRbF == 0 else 1\n fhcK.append(Ywl1(in_channels=YKHO.in_channels, out_channels=tYiq, stride=_0fC, conv_cfg=YKHO.conv_cfg, norm_cfg=YKHO.norm_cfg, act_cfg=YKHO.act_cfg, with_cp=YKHO.with_cp))\n YKHO.in_channe...
[ "0.67172647", "0.647474", "0.6435105", "0.61938757", "0.6112829", "0.60320497", "0.59010494", "0.58956856", "0.58546406", "0.58282983", "0.5771489", "0.5766134", "0.57625544", "0.57586265", "0.5753303", "0.5741169", "0.5733296", "0.5732418", "0.56642705", "0.5660712", "0.5648...
0.6359181
3
Restores configuration from previously saved model settings.
def IeP8(YKHO, wM8l: Dict[str, Any]) -> None: YKHO.lrpatience = wM8l['config']['lrpatience'] YKHO.lrdecay = wM8l['config']['lrdecay'] YKHO.ntest = wM8l['config']['ntest'] YKHO.ndiscard = wM8l['config']['ndiscard'] YKHO.seed = wM8l['config']['seed'] YKHO.timesteps = wM8l['config']['timesteps'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a48X(YKHO):\n YKHO._clear_previous_windows_assigment()\n YKHO._restart_i3_config()", "def wBIE(YKHO):\n if Hy7s.path.isfile(Hy7s.path.join(YKHO.network_path, 'net_parameters.nnprm.index')):\n YKHO.load_network_parameters(file_name='net_parameters', file_path=YKHO.network_path)\n else:\n ...
[ "0.71367735", "0.6829217", "0.6786415", "0.645705", "0.63774854", "0.63543224", "0.63483846", "0.63415456", "0.63402516", "0.63259757", "0.6301926", "0.62882435", "0.62661296", "0.6262327", "0.6245814", "0.61846125", "0.6169434", "0.61381125", "0.613011", "0.6129817", "0.6111...
0.6513118
3
Convert a string (unicode or bytestring in `encoding`), to bytestring in utf8.
def hTgi(l5Ny, UAju='strict', tZ2K='utf8'): if isinstance(l5Ny, QMSQ): return l5Ny.encode('utf8') else: return QMSQ(l5Ny, tZ2K, errors=UAju).encode('utf8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hTgi(YKHO, fRyv):\n if isinstance(fRyv, QMSQ):\n fRyv = fRyv.encode('UTF-8')\n return fRyv", "def e__i(KCHu):\n return KCHu.encode('utf-8')", "def ZqkC(KCHu, tZ2K='ascii'):\n return KCHu.encode(tZ2K)", "def rSlX(KCHu):\n return KCHu.encode(encoding='utf-8', errors='ignore')", "def...
[ "0.8087589", "0.80213624", "0.7923646", "0.79139525", "0.7870919", "0.75788885", "0.7566202", "0.7526143", "0.7487947", "0.7465527", "0.7464595", "0.7460673", "0.7454483", "0.74267066", "0.73802096", "0.7372138", "0.73461235", "0.7324182", "0.7321296", "0.7289867", "0.7285413...
0.7727883
5
Convert a string (bytestring in `encoding` or unicode), to unicode.
def brQJ(l5Ny, tZ2K='utf8', UAju='strict'): if isinstance(l5Ny, QMSQ): return l5Ny else: return QMSQ(l5Ny, encoding=tZ2K, errors=UAju)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def brQJ(vIwR):\n if isinstance(vIwR, str):\n return vIwR.decode('utf-8')\n else:\n return QMSQ(vIwR)", "def brQJ(KCHu, tZ2K='utf-8'):\n if isinstance(KCHu, jKi7.text_type):\n return KCHu\n elif isinstance(KCHu, bytes):\n return KCHu.decode(tZ2K)\n return KCHu", "def ...
[ "0.85251766", "0.8524837", "0.83010745", "0.81882405", "0.81632316", "0.8149855", "0.8114386", "0.8092626", "0.8046262", "0.7950895", "0.7921842", "0.7917224", "0.78339505", "0.78276324", "0.7822083", "0.780238", "0.77633584", "0.77592474", "0.7722087", "0.7688505", "0.768850...
0.73695195
34
Merge fields from new (dict) into d (dict). Toplevel list values will be concatenated, and toplevel dict values will be shallowmerged. All other cases of conflicting keys will result in values from ndict overwriting those in odict.
def Ejic(Csk6, BdN0): if not BdN0: return for G1Hx, Ty9i in BdN0.iteritems(): if G1Hx not in Csk6: Csk6[G1Hx] = Ty9i elif isinstance(Ty9i, list) and isinstance(Csk6[G1Hx], list): Csk6[G1Hx].extend(Ty9i) elif isinstance(Ty9i, dict) and isinstance(Csk6[G1Hx]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nSnN(KYzv, TDnD):\n XgFU = KYzv.copy()\n for G1Hx, Ty9i in TDnD.items():\n if G1Hx in XgFU:\n XgFU[G1Hx].append(Ty9i)\n else:\n XgFU[G1Hx] = [Ty9i]\n return XgFU", "def cyBQ(P8oC, BdN0, FJj_=True):\n if isinstance(BdN0, dict):\n for H5ew, BWXx in BdN0.it...
[ "0.69707173", "0.6914549", "0.66984814", "0.66665274", "0.66463983", "0.6600201", "0.6582735", "0.65201235", "0.6503241", "0.64961135", "0.6450896", "0.6434673", "0.64251935", "0.64128983", "0.6410486", "0.64053714", "0.63618094", "0.63353914", "0.633446", "0.63224113", "0.63...
0.7964927
0
gets current time in specific format
def ApjM(): return ITS7.strftime('%Y-%m-%d-%H-%M-%S', ITS7.localtime())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dni_() -> str:\n return qcWV.now().strftime('%FT%H:%M:%S')", "def vHj7():\n wzkt = qcWV.datetime.now()\n ITS7 = wzkt.strftime('%Y-%m-%d %H:%M:%S:%f')\n return ITS7", "def EUP2():\n wzkt = JRYC.datetime.now()\n LLuI = wzkt.strftime('%d/%m %H:%M')\n return LLuI", "def _PtW():\n retu...
[ "0.8058969", "0.80171126", "0.8012582", "0.79531944", "0.7940529", "0.7906048", "0.7894938", "0.7846459", "0.7831381", "0.78209347", "0.78016675", "0.7799628", "0.77691907", "0.7738094", "0.77266926", "0.7721027", "0.7716973", "0.76995486", "0.76486456", "0.7617456", "0.76089...
0.78640044
7
wrapper to get users home directory
def aG1h(): return Hy7s.path.expanduser('~')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TjTF():\n from os.path import expanduser\n kZiy = expanduser('~')\n return kZiy", "def vY8Y():\n try:\n AGPF = Hy7s.path.expanduser('~')\n except EnvironmentError:\n AGPF = None\n return AGPF", "def GwqS(YKHO, NtEF):\n return YKHO.user_table[NtEF]['home']", "def ItBp():...
[ "0.8350158", "0.8161493", "0.8081569", "0.80230796", "0.79311764", "0.782808", "0.7784562", "0.7773301", "0.7712547", "0.76299274", "0.7615728", "0.7609976", "0.7609976", "0.7602641", "0.75275564", "0.74710214", "0.7370221", "0.73030293", "0.7245979", "0.7207039", "0.71563303...
0.81629175
1
Return an iterator of unique applications of ``key`` to the decoded malware family of each engine in ``results``. ``top_k`` selects only the most common k applications of key.
def eQkO(YKHO, H5ew: Callable[['Classification'], Union[Iterable[str], str]]=None, H42b: int=None): We7B = mBkc(sorted(filter(None, EFDX(H5ew, YKHO.values())))) return [ATUZ for ATUZ, bGrB in We7B.most_common(H42b)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A2JG(YKHO, p1kx, G1Hx=1):\n YKHO.candidates = []\n YKHO.candidate_sub = []\n YKHO.top_k = _eVy.nlargest(n=G1Hx, iterable=p1kx)\n for _K85 in YKHO.top_k:\n bKPk = p1kx.index(_K85)\n YWVk = YKHO.synonym_term[bKPk]\n yac5 = YKHO.standard_synonym.tolist().index(YWVk)\n BLUi ...
[ "0.5283313", "0.5253146", "0.52267945", "0.51010954", "0.50638056", "0.49978474", "0.49916115", "0.49638972", "0.4940303", "0.49292162", "0.49151984", "0.4902592", "0.48761088", "0.48753935", "0.4856851", "0.48377475", "0.4830211", "0.48111674", "0.48101324", "0.4772459", "0....
0.6126833
0
Calculates the softmax function that outputs a vector of values that sum to one. We take max(softmax(v)) to be the predicted label. The output of the softmax function is also used to calculate the crossentropy loss
def N93T(YKHO, Ty9i): iSiz = -oyIN.max(Ty9i) return oyIN.exp(Ty9i + iSiz) / oyIN.sum(oyIN.exp(Ty9i + iSiz), axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def anMS(YKHO, WKvO):\n return oyIN.exp(WKvO - oyIN.max(WKvO)) / oyIN.sum(oyIN.exp(WKvO - oyIN.max(WKvO)))", "def anMS(WKvO):\n tTpl = nMvt.exp(WKvO - nMvt.max(WKvO, axis=-1, keepdims=True))\n KCHu = nMvt.sum(tTpl, axis=-1, keepdims=True)\n return tTpl / KCHu", "def N93T(YKHO, iArr):\n tTpl = oy...
[ "0.75548977", "0.75018734", "0.7492074", "0.74466175", "0.7435949", "0.7408507", "0.7405518", "0.7396742", "0.73894185", "0.73631847", "0.73469627", "0.7342626", "0.73348105", "0.7334019", "0.7334019", "0.7331462", "0.73302543", "0.73147196", "0.73056346", "0.72963953", "0.72...
0.80864614
0
Sets half of the activations to zero
def mCnT(YKHO, YoQM, Qzhb=0.5): if Qzhb < 0 or Qzhb > 1: Qzhb = 0.5 YoQM /= Qzhb hObQ = oyIN.random.binomial(1, Qzhb, size=YoQM.shape) YoQM *= hObQ return YoQM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d_YE(YKHO):\n YKHO.robot.set_joint([0, 0, 0, 0, 0])\n YKHO.robot.save_config()", "def SiRx(YKHO):\n for YRbF in range(0, len(YKHO.current_state)):\n YKHO.current_state[YRbF] = 0\n for YRbF in range(0, len(YKHO.weights)):\n YKHO.weights[YRbF] = 0", "def lfj2(YKHO):\n gnPz.raiseN...
[ "0.66157115", "0.6514132", "0.63419855", "0.631131", "0.6229309", "0.62005895", "0.61363745", "0.61305106", "0.61293983", "0.6113483", "0.6072449", "0.6062573", "0.6033491", "0.6021118", "0.6012818", "0.5972606", "0.5969989", "0.5959389", "0.59466", "0.5940646", "0.5929724", ...
0.0
-1
Use Canny edge detction algorythm
def aGAH(nJpj, WTkW=0.6): LVAh, WKvO = nJpj.shape FJil = 3 F6tB = nJpj[LVAh / FJil:LVAh - LVAh / FJil, WKvO / FJil:WKvO / (FJil - 1) - WKvO / FJil] bv7x = nJpj[LVAh / FJil:LVAh - LVAh / FJil, WKvO / (FJil - 1) - WKvO / FJil:WKvO - WKvO / FJil] Ty9i = (oyIN.mean(F6tB) + oyIN.mean(bv7x)) / 2.0 LSh...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U2EP(YKHO):\n YKHO.frame = jbYn.Canny(YKHO.frame, 100, 200)", "def pqKg(VXjJ, Ot1W=5, WTkW=1.4, ODP9=20, gqRb=15):\n Hou2 = VU7a(Ot1W, WTkW)\n GyFq = yIp6(VXjJ, WZcn)\n yvY1, q7In = ICX2(GyFq)\n lIj3 = FcuV(yvY1, q7In)\n jRTh, Ic3D = HEUv(lIj3, ODP9, gqRb)\n D70y = O8HJ(jRTh, Ic3D)\n ...
[ "0.75788176", "0.736098", "0.7347227", "0.7332677", "0.7319752", "0.72965264", "0.7265759", "0.7163671", "0.7153332", "0.7153332", "0.7153332", "0.7153332", "0.7153332", "0.7153332", "0.7153332", "0.7153332", "0.7153332", "0.7153332", "0.7153332", "0.7153332", "0.7153332", ...
0.57515645
70
Get the user's home directory from the /etc/passwd. Used by $HOME initialization in osh/state.py. Tilde expansion and readline initialization use mem.GetVar('HOME').
def Wjbg(): PObu = xgnN.getuid() try: tTpl = zN5h.getpwuid(PObu) except KeyError: return None else: return tTpl.pw_dir
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aG1h():\n return Hy7s.path.expanduser('~')", "def TjTF():\n from os.path import expanduser\n kZiy = expanduser('~')\n return kZiy", "def vY8Y():\n try:\n AGPF = Hy7s.path.expanduser('~')\n except EnvironmentError:\n AGPF = None\n return AGPF", "def ItBp():\n return H...
[ "0.8165428", "0.81105864", "0.80209076", "0.7983959", "0.79142696", "0.7753437", "0.7688685", "0.7625669", "0.7625669", "0.7582689", "0.72642183", "0.7154504", "0.712184", "0.7114156", "0.7001951", "0.69151855", "0.6899522", "0.68665785", "0.6833929", "0.66983867", "0.6643939...
0.7563891
10
Renormalize a wavefunction. Returns None if the wavefunction has norm 0.
def KF2g(eYct: dict, yJiH=1e-07) -> dict: frDm = [abs(wEf2) ** 2 for wEf2 in eYct.values()] WQap = oyIN.sqrt(sum(frDm)) if WQap < yJiH: qmLP.warn('Warning! Wavefunction norm smaller than tolerance. Likely there is no overlap or a bug in your code.') return None for H5ew, wEf2 in eYct.ite...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KF2g(shSu, AsGK):\n JBMS = oyIN.average(shSu, axis=1, weights=AsGK)[:, None]\n ii_g = oyIN.sqrt(oyIN.average((shSu - JBMS) ** 2, axis=1, weights=AsGK))[:, None]\n return (shSu - JBMS) / ii_g", "def NkkI(DZCO, shSu):\n return shSu / shSu.max()", "def kwsU(YKHO):\n KCHu = YKHO._sum()\n if K...
[ "0.6292382", "0.62034726", "0.6043704", "0.5997593", "0.5809755", "0.580518", "0.57872105", "0.5759789", "0.5721429", "0.57125306", "0.5698163", "0.5678056", "0.56470406", "0.56319", "0.5589896", "0.5561012", "0.5521596", "0.55139655", "0.55109507", "0.55092907", "0.5488312",...
0.72123045
0
This property is `True` if and only if the unit has a member function named `reverse`. By convention, this member function implements the inverse of `refinery.units.Unit.process`.
def qAmr(Emd4) -> bool: if Emd4.reverse is Iaiz: return False try: return not Emd4.reverse.__isabstractmethod__ except AttributeError: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JRpX(YKHO):\n return not bool(YKHO._reverse_callback())", "def zgtW(YKHO):\n if YKHO.strand == -1 or YKHO.strand == '-':\n return True\n return False", "def gxEw(YKHO):\n etR_ = YKHO.lib.iperf_get_test_reverse(YKHO._test)\n if etR_:\n YKHO._reverse = True\n else:\n YK...
[ "0.71909606", "0.6725343", "0.6721668", "0.6340359", "0.60837674", "0.5904811", "0.5897568", "0.5893109", "0.58756375", "0.58317", "0.5666225", "0.56473535", "0.5639712", "0.55708873", "0.5547994", "0.548675", "0.54254115", "0.54251635", "0.5383272", "0.5331694", "0.5311196",...
0.7056145
1
Default (root) route shows the home page.
def d6pt(): from managers import banks_manager, rates_manager N9RQ = banks_manager.get_banks_count() sPBL = rates_manager.get_last_update_time() cV9T = None if sPBL is None else sPBL.strftime('%Y %d %b, %H:%M') OW2b = rates_manager.get_usd_selling_min_rate() hYig = banks_manager.get_usd_selling_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n G9jH.info('Entering route: HOME')\n G9jH.info('Rendering template: main.html')\n return TvZl('main.html')", "def vja_():\n return vKnz(nKyW(tajT, _external=True))", "def oUar(QePW):\n bD7m = QePW.route_url('home', _app_url=NxLh(QePW))\n return MEVA(location=bD7m)", "def kZiy()...
[ "0.7712157", "0.74631655", "0.7349149", "0.73479915", "0.7181117", "0.7174881", "0.71263945", "0.71263945", "0.71263945", "0.71263945", "0.71263945", "0.71263945", "0.71184814", "0.71184814", "0.71184814", "0.71184814", "0.7100445", "0.70463955", "0.704518", "0.70335233", "0....
0.0
-1
Set up the sensor platform.
def AbqV(ajET, GPtr, uVcJ, tR5e=None): try: nNXP = PCqA.BlueAir(username=GPtr['user'], password=GPtr['password']) except KeyError as e: raise BlEM(f'BlueAir authorizarion failed') MpZ8 = [] YfpN = nNXP.get_devices() for M4N3 in YfpN: MpZ8.append(g9E9(config=GPtr, uuid=M4N3['u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _kZf(YKHO, b32v):\n YKHO.__sensors = YKHO.setup_components(b32v, 'scale_client.sensors')", "def AbqV(ajET: HomeAssistant, GPtr: ConfigType, uVcJ: AddEntitiesCallback, tR5e: DiscoveryInfoType | None=None) -> None:\n mWFP = GPtr.get(BiEj)\n Pp4r = GPtr.get(POer)\n vzeF.debug('Setting up')\n M9oE...
[ "0.7161053", "0.7153387", "0.7075047", "0.7040154", "0.6979527", "0.6920127", "0.6885005", "0.6857596", "0.68458396", "0.6802712", "0.680186", "0.677836", "0.67364186", "0.67142266", "0.67105585", "0.6710512", "0.6702681", "0.6694298", "0.6671031", "0.6669839", "0.6637563", ...
0.0
-1
Return the state attributes of the device.
def R1i3(YKHO): return YKHO._ba_attrs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO)...
[ "0.92738223", "0.92053986", "0.91516256", "0.91516256", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148889", "0.9148746", "0.9148746", "0.9137698", "0.9110632",...
0.8926821
26
Return the name of the sensor.
def mWFP(YKHO): return f'BlueAir {YKHO._ba_name}'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._sensor.name", "def _lKy(YKHO):\n return YKHO.data[1]", "def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'", "def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'", "def mWFP(YKHO):\n return f'{YKHO._na...
[ "0.91896784", "0.9168378", "0.890185", "0.8770976", "0.8511273", "0.8479953", "0.844435", "0.8299758", "0.8186503", "0.8105667", "0.8079737", "0.8066149", "0.8049647", "0.7700968", "0.7612295", "0.7611456", "0.7600605", "0.7600605", "0.7600605", "0.75392073", "0.75166553", ...
0.0
-1
Check if a ray (infinite line) intersects with a line segment.
def KPtx(Mv7u, lw1Q, pG0V): fTIU = pG0V[1] - pG0V[0] w3IF = oyIN.linalg.norm(fTIU) fTIU = fTIU / w3IF lw1Q = lw1Q / oyIN.linalg.norm(lw1Q) lWPh = oyIN.stack([lw1Q, -fTIU], axis=1) Fg_i = pG0V[0] - Mv7u try: Kt_s = oyIN.linalg.solve(lWPh, Fg_i) except oyIN.linalg.LinAlgError as e:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P10m(YKHO, zFiD):\n return YKHO.intersection(l_yY) != None", "def E2W6(YKHO, spHt):\n WiOR = YKHO._sympy_plane.intersection(spHt.sympy_line)[0]\n if 'x' in YKHO._name:\n if YKHO._within_y_bounds(WiOR.y) and YKHO._within_z_bounds(WiOR.z):\n return (True, oyIN.array(map(float, [WiOR....
[ "0.73986447", "0.717157", "0.70875484", "0.7030127", "0.6964711", "0.68454385", "0.68243337", "0.68099266", "0.6752138", "0.67489934", "0.67352694", "0.6705001", "0.6686737", "0.6679702", "0.66361797", "0.6577494", "0.65583396", "0.653545", "0.64833945", "0.64337516", "0.6431...
0.7030379
3
Sets the type of this RecurrenceWebinar.
def type(YKHO, type): if type is None: raise ValueError('Invalid value for `type`, must not be `None`') YKHO._type = type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gB5A(YKHO, gB5A):\n BbPm = ['None', 'Minute', 'Hour', 'Day', 'Week', 'Month', 'Year']\n if gB5A not in BbPm:\n raise ValueError('Invalid value for `recurrence_type` ({0}), must be one of {1}'.format(gB5A, BbPm))\n YKHO._recurrence_type = gB5A", "def type(YKHO, type):\n if type is None:\n ...
[ "0.70522773", "0.68042535", "0.68042535", "0.6678514", "0.6678514", "0.662273", "0.662273", "0.65698576", "0.6541763", "0.650004", "0.6264317", "0.6264317", "0.6264317", "0.6264317", "0.6233299", "0.62064594", "0.62064594", "0.61924493", "0.61924493", "0.61924493", "0.6192449...
0.63432646
10
Sets the repeat_interval of this RecurrenceWebinar.
def j2iY(YKHO, j2iY): YKHO._repeat_interval = j2iY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GXKD(YKHO, VOlW: float) -> None:\n YKHO._looping_interval = VOlW", "def NEQt(YKHO, Tuqy):\n NArs = [('repeatmode', Tuqy)]\n YKHO.get(J1jo, 'SetRepeatMode', NArs)", "def wPFE(YKHO, wPFE):\n if wPFE in THsu.values():\n YKHO._set('repeat', wPFE)\n else:\n raise sUXu('%s is not an ...
[ "0.55552894", "0.5496152", "0.5484667", "0.5419772", "0.5394802", "0.53591055", "0.5296349", "0.52824026", "0.52642095", "0.51827794", "0.5164376", "0.5164376", "0.5159871", "0.5122879", "0.5090412", "0.5082951", "0.5013749", "0.49532303", "0.49462688", "0.4872365", "0.486687...
0.7524219
0
Sets the monthly_day of this RecurrenceWebinar.
def c7ay(YKHO, c7ay): YKHO._monthly_day = c7ay
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kk3Z(YKHO, Kk3Z):\n YKHO._monthly_week_day = Kk3Z", "def E2ep(YKHO, E2ep):\n YKHO._day_of_month = E2ep", "def D4Ce(YKHO, VOlW, *, E2ep=None, KFIZ=None, d6pt=None, **B2fa):\n if not E2ep and (not KFIZ):\n raise ValueError('Must provide day_of_month or days_of_week values')\n if E2ep and K...
[ "0.7670384", "0.70721793", "0.6473545", "0.6262128", "0.6207521", "0.6163003", "0.5887884", "0.5831907", "0.58194804", "0.5671228", "0.5671228", "0.5579083", "0.5534142", "0.5534142", "0.54731494", "0.54430324", "0.5280507", "0.5237128", "0.5208169", "0.5195557", "0.51457924"...
0.8477817
0
Sets the end_times of this RecurrenceWebinar.
def Gddx(YKHO, Gddx): YKHO._end_times = Gddx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def C7pn(YKHO, C7pn):\n YKHO._end_time = C7pn", "def M4HV(YKHO, M4HV):\n YKHO._end_date_tim...
[ "0.6822538", "0.6822538", "0.6822538", "0.67487687", "0.67487687", "0.67251647", "0.66125315", "0.6555195", "0.6545528", "0.6354424", "0.6289996", "0.5977812", "0.5977812", "0.5977812", "0.5977812", "0.5977812", "0.5977812", "0.5977812", "0.5977812", "0.5966365", "0.59156615"...
0.81673425
0
Sets the end_date_time of this RecurrenceWebinar.
def M4HV(YKHO, M4HV): YKHO._end_date_time = M4HV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def KhBf(YKHO, KhBf):\n YKHO._end_date = KhBf", "def KhBf(YKHO, KhBf):\n YKHO._end_date = K...
[ "0.75676894", "0.75676894", "0.75676894", "0.75676894", "0.75676894", "0.75676894", "0.75676894", "0.75676894", "0.75225276", "0.7319299", "0.72738266", "0.72738266", "0.72738266", "0.72546273", "0.7211648", "0.7205112", "0.7179562", "0.7179562", "0.717188", "0.71530116", "0....
0.818622
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, PQKG): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.84568954", "0.83923674", "0.81447554", "0.81407183", "0.81326675", "0.80941343", "0.8092415", "0.8092415", "0.8092415", "0.8085536", "0.8085536", "0.8076502", "0.8076502", "0.8066026" ]
0.0
-1
Generate the diagonal terms for the tensor product of Z_1 x Z_2 ... Z_n
def lCjR(exwG): Llmz = oyIN.array([1, -1]) for bGrB in range(exwG - 1): Llmz = oyIN.hstack([Llmz, Llmz * -1]) return Llmz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IjIm(Csk6, jDK_=0):\n assert Csk6.ndim == 1\n exwG = Csk6.shape[0]\n WXkz = lambda WKvO: Csk6 * WKvO\n uPnQ = lambda WKvO: eeRW(Csk6) * WKvO\n WXkz, uPnQ = v3T1(WXkz, uPnQ, jDK_)\n return uS0y(times=WXkz, trans=uPnQ, shape=(exwG, exwG))", "def A2lD(AzT8):\n return ZylS.diag(ZylS.reshape(...
[ "0.6298258", "0.62838084", "0.610529", "0.5909333", "0.5826106", "0.5793806", "0.5792055", "0.57580733", "0.5755984", "0.5713872", "0.5686964", "0.56842875", "0.5651821", "0.56460583", "0.5639222", "0.5605835", "0.56007034", "0.55977905", "0.55949056", "0.55926776", "0.558882...
0.5943337
3
A method which returns a reward metric based on information about the state of the system, sensors and possible actions they can take. This requires a mapping of sensors to action(s) to be evaluated by reward function, a set of tracks at given time and the time at which the actions would be carried out until. Returns
def nrOS(YKHO, GPtr: Mapping[Sensor, Sequence[Action]], HqKa: Set[Track], jFhC: datetime.datetime, *qIxc, **B2fa): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uSk8(YKHO, QTBn, XeOP, K4Xd):\n nr7v, mcQd, vB49 = QTBn\n YQjM, xuEz = XeOP\n if XeOP == (0, 0):\n vOGg = -1 * Nq1b\n else:\n n2Q1 = int(K4Xd[nr7v][YQjM][mcQd][vB49])\n mcQd, vB49 = YKHO.time_day_update_func(mcQd, vB49, n2Q1)\n SpII = int(K4Xd[YQjM][xuEz][mcQd][vB49])\n ...
[ "0.65989274", "0.64750695", "0.6452138", "0.63417464", "0.63144916", "0.629885", "0.6277645", "0.61293465", "0.6127169", "0.6119157", "0.606574", "0.60635054", "0.6055147", "0.60513437", "0.6039913", "0.59863836", "0.59606814", "0.5941401", "0.59401643", "0.5901283", "0.58840...
0.0
-1
Returns string corresponding to current player's color.
def gUbX(YKHO): if YKHO.getTurn() == Uah8: return 'red' return 'white'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oyg0(YKHO):\n return YKHO._color", "def PICn(YKHO) -> str:\n return YKHO.color", "def PICn(YKHO) -> str:\n return YKHO.color", "def PICn(YKHO):\n if YKHO.color:\n return 'RED'\n else:\n return 'BLACK'", "def wGtj(YKHO) -> str:\n return YKHO.colour", "def kop1(YKHO):\n ...
[ "0.79932624", "0.79619354", "0.7867891", "0.78051555", "0.74832904", "0.7460913", "0.73376524", "0.73056597", "0.7284531", "0.7163658", "0.71455365", "0.7133136", "0.70796925", "0.70189434", "0.7000213", "0.6896414", "0.68868756", "0.688194", "0.6869263", "0.686863", "0.68686...
0.7615549
4
Returns True if the current player's checkers are all home by checking whether the current player has checkers in any pieces that are not in the home area..
def l01G(YKHO): if YKHO.getTurn() == Uah8: yKcO = 0 Os4s = 18 else: yKcO = 6 Os4s = 24 for YRbF in range(yKcO, Os4s): if YKHO.points[YRbF].getTeam() == YKHO.getTurn(): return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uOqR(YKHO, oyg0):\n fvDH = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i']\n jzdc = []\n for YRbF in range(10):\n jzdc.append([r845 + str(YRbF + 1) for r845 in fvDH])\n tNr4 = []\n for XuXy in jzdc:\n for BHsk in XuXy:\n tNr4.append(BHsk)\n aAWb = []\n w23Z = []\n ...
[ "0.68318194", "0.656037", "0.65133274", "0.64841634", "0.63701266", "0.636233", "0.63060015", "0.62938964", "0.6292915", "0.6255463", "0.6240663", "0.62359285", "0.6140453", "0.6130867", "0.6124297", "0.6101155", "0.6088822", "0.60821927", "0.6071864", "0.60630715", "0.606205...
0.767915
0
Returns the color corresponding to whos turn it is.
def NbSO(YKHO): return YKHO.players[YKHO.getCurrentPlayer()].getColor()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PICn(YKHO):\n if YKHO.color:\n return 'RED'\n else:\n return 'BLACK'", "def z0H5(YKHO, it6R: int) -> H66R.Color:\n HEZd = YKHO.history[it6R].split(' ')[1]\n if HEZd == 'w':\n return H66R.WHITE\n elif HEZd == 'b':\n return H66R.BLACK", "def PICn(YKHO):\n return ...
[ "0.7513672", "0.72917706", "0.72479516", "0.71659607", "0.7137658", "0.71300066", "0.711982", "0.709366", "0.7092548", "0.7053248", "0.7053248", "0.7029754", "0.7029628", "0.70172626", "0.70172626", "0.70172626", "0.70172626", "0.7007881", "0.69710314", "0.69540024", "0.69378...
0.78129524
0
Returns the color corresponding to player.
def KGGj(YKHO): return YKHO.color
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oyg0(YKHO):\n return YKHO._color", "def gmBk() -> x1iM[AzJI[float, float, float]]:\n return t58K", "def kop1(YKHO):\n if YKHO.__currentnode__ is None:\n return None\n else:\n return YKHO.__currentnode__.getPlayer().getColor()", "def NbSO(YKHO):\n return YKHO.players[YKHO.getC...
[ "0.8586081", "0.7547753", "0.74115014", "0.7290328", "0.7110825", "0.7097036", "0.70593846", "0.70036995", "0.6977603", "0.6969286", "0.6939346", "0.69283205", "0.69115895", "0.68747056", "0.6862336", "0.68612957", "0.68605983", "0.68522686", "0.68522686", "0.68138325", "0.68...
0.6797491
21
Specifies the name which should be used for this Managed Private Endpoint. Changing this forces a new resource to be created.
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP: str) -> None:\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "de...
[ "0.63130194", "0.63130194", "0.63130194", "0.63130194", "0.63072026", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.6267607", "0.6267607", "0.6267607", ...
0.0
-1
Specifies the name which should be used for this Managed Private Endpoint. Changing this forces a new resource to be created.
def mWFP(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP: str) -> None:\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "de...
[ "0.63130194", "0.63130194", "0.63130194", "0.63130194", "0.63072026", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.6267607", "0.6267607", "0.6267607", ...
0.0
-1
Get an existing ManagedPrivateEndpoint resource's state with the given name, id, and optional extra properties used to qualify the lookup.
def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None, saVr: Optional[pulumi.Input[str]]=None, Sztg: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]]=None, mWFP: Optional[pulumi.Input[str]]=None, YHDN: Optional[pulumi.Input[str]]=None, J6ic: Optional[pulumi.Input[str]]=None) -> 'Mana...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(kFeU: str, id: pulumi.Input[str], VKhi: Optional[pulumi.ResourceOptions]=None) -> 'Endpoint':\n VKhi = qe4Y.ResourceOptions.merge(VKhi, qe4Y.ResourceOptions(id=id))\n r6DL = SayD.__new__(SayD)\n r6DL.__dict__['create_time'] = None\n r6DL.__dict__['description'] = None\n r6DL.__dict__['endpo...
[ "0.60675704", "0.59782195", "0.58830386", "0.5770188", "0.5662154", "0.5613158", "0.5432273", "0.54302716", "0.5276689", "0.52562374", "0.52047586", "0.5062059", "0.5058369", "0.49977422", "0.49856365", "0.49726778", "0.49272516", "0.49223006", "0.49080345", "0.49068418", "0....
0.72481805
0
Specifies the name which should be used for this Managed Private Endpoint. Changing this forces a new resource to be created.
def mWFP(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP: str) -> None:\n YKHO._name = mWFP", "def mWFP(YKHO, mWFP):\n YKHO._name = mWFP", "de...
[ "0.63130194", "0.63130194", "0.63130194", "0.63130194", "0.63072026", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.62888455", "0.6267607", "0.6267607", "0.6267607", ...
0.0
-1
Takes the pseudofasta and returns a list of SeqFeatures.
def JvBR(zZ0V): for ETu_ in zZ0V: r8hN = ZbWC.match('>?(\\S+)_(\\d+) # (\\d+) # (\\d+) # (-?\\d+) # ID=([^;]+);', ETu_.description) if r8hN: mWFP, RE5S, yKcO, Os4s, vUKW, nNFh = r8hN.groups() yKcO = int(yKcO) Os4s = int(Os4s) vUKW = int(vUKW) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XdyE(xoRX):\n bySB = []\n for Qe7k in xoRX.cds_features:\n bySB.append(Qe7k.seqfeature)\n return bySB", "def LSjo(mxqR, C5DZ=6, zFx3=0.5):\n mxqR = ihWv(mxqR)\n mxqR = _Nbj(mxqR, n=2)\n mxqR = sDH1(mxqR, gap=3)\n mxqR = ge4d(mxqR, lamb=C5DZ, w=zFx3)\n mxqR = caA5(mxqR)\n ret...
[ "0.61208755", "0.5914918", "0.5903202", "0.5869545", "0.57834435", "0.5748143", "0.57089883", "0.56855613", "0.56256235", "0.5611815", "0.55566466", "0.55493504", "0.55436647", "0.55371994", "0.5525839", "0.54867256", "0.5473579", "0.54365134", "0.54323936", "0.5427045", "0.5...
0.0
-1
Set weight norm and equalized learning rate like demodulated convs in StyleGAN2 for module m. The weight matrix is initialized for a leaky relu nonlinearity of slope a. An extra gain can be specified, as well as a differential learning rate multiplier. See StyleGAN2 paper for more info.
def MLi3(r8hN: T_Module, aqpm: float=0.0, Tuqy: str='fan_in', exny: float=1.0, p3nK: float=1.0, mWFP: str='weight') -> d9Fn: Fdo4 = Shud(r8hN, a=aqpm, mode=Tuqy) mb4J = Fdo4 * exny * p3nK def GU8I(yzQ0): yzQ0 = yzQ0 * mb4J ROpF = yzQ0.shape ZoHs = yzQ0.view(yzQ0.shape[0], -1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MyUA(YKHO):\n YKHO.w += YKHO.learn_rate * (YKHO.X.T.dot(YKHO.T - YKHO.Y) - YKHO.reg_L1 * oyIN.sign(YKHO.w) - YKHO.reg_L2 * 2 * YKHO.w)", "def IDad(YKHO, b0Ix):\n for gEmA in YKHO.layers:\n gEmA.weights.set_value((gEmA.weights - b0Ix * gEmA.dW).eval())\n gEmA.biases.set_value((gEmA.biases ...
[ "0.68877965", "0.66274416", "0.65879446", "0.65734744", "0.654113", "0.6500359", "0.6478602", "0.64614373", "0.6459425", "0.64389426", "0.63849235", "0.6380105", "0.6356033", "0.6353052", "0.6322342", "0.6313975", "0.6312195", "0.62999314", "0.6294918", "0.62566745", "0.62552...
0.6905776
0
Remove a weight_norm_and_equal_lr hook previously applied on
def M3_e(yR_P: Module, mWFP: str='weight') -> awyi: return noC_(yR_P, 'norm_equal_lr', mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8fc(YKHO):\n\n def njwE(r8hN):\n try:\n G9jH.debug(f'Weight norm is removed from {r8hN}.')\n ht2j.nn.utils.remove_weight_norm(r8hN)\n except ValueError:\n return\n YKHO.apply(njwE)", "def X8fc(YKHO):\n\n def njwE(r8hN):\n try:\n G9jH....
[ "0.7430771", "0.7430771", "0.73113716", "0.6385965", "0.6230463", "0.6148673", "0.61290026", "0.6033146", "0.5996444", "0.59843165", "0.59464246", "0.59353507", "0.5889315", "0.5869284", "0.5828503", "0.581247", "0.579487", "0.5781963", "0.57792133", "0.5753717", "0.5702136",...
0.7224118
3
Get the start time of the first layout after a resource received.
def eH7m(YTVa): LnDb = False for tvqc in YTVa: if tvqc.name == 'ResourceReceiveResponse': LnDb = True elif LnDb and tvqc.name == 'Layout': return tvqc.start assert False, 'There were no layout events after resource receive events.'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XZql(YKHO):\n return YKHO.__starting_time", "def lAAs(YKHO):\n assert not YKHO.isWaitingToStart(), 'Too early to tell: %s' % YKHO\n return '%s' % YKHO.__rawInfo.startTime", "def SWox(YKHO):\n return YKHO._get('start_time')", "def SWox(YKHO):\n return YKHO.__start", "def z4o8(YKHO):\n ...
[ "0.683066", "0.6720937", "0.661076", "0.6603061", "0.6505805", "0.6491422", "0.6478206", "0.644336", "0.6364763", "0.6364763", "0.6364763", "0.6364763", "0.6364763", "0.6364763", "0.6364763", "0.6364763", "0.6331986", "0.6292473", "0.628365", "0.6259188", "0.625791", "0.625...
0.7099817
0
Gets topleft and bottomright coordinates from paint event. In the timeline data from devtools, paint rectangle dimensions are represented xy coordinates of four corners, clockwise from the topleft.
def fvOm(gmTb): nJ9F, nxyw, bGrB, bGrB, o4D3, si3g, bGrB, bGrB = gmTb return (nJ9F, nxyw, o4D3, si3g)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p9aY(YKHO, PS1V):\n\n def fvOm(gmTb):\n \"\"\"Gets top-left and bottom-right coordinates from paint event.\n\n In the timeline data from devtools, paint rectangle dimensions are\n represented x-y coordinates of four corners, clockwise from the top-left.\n See: function WebInspector.Tim...
[ "0.7452361", "0.62214136", "0.6126398", "0.60872865", "0.6036266", "0.60307467", "0.6017129", "0.5997782", "0.59919477", "0.5973431", "0.5956432", "0.59314734", "0.5919059", "0.59070325", "0.59069633", "0.58780426", "0.586322", "0.58482915", "0.5812974", "0.58056384", "0.5801...
0.0
-1
InlineResponse2018 a model defined in Swagger
def FIMM(YKHO, Jyyj=None, RCgw=None, jeGQ=None, oWb2=None): YKHO._field = None YKHO._recommended_values = None YKHO._required = None YKHO._visible = None YKHO.discriminator = None if Jyyj is not None: YKHO.field = Jyyj if RCgw is not None: YKHO.recommended_values = RCgw i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SShS(YKHO):\n raise NotImplementedError", "def MNRr(YKHO):\n Aofo = {}\n for hkS8, bGrB in jKi7.iteritems(YKHO.swagger_types):\n BWXx = getattr(YKHO, hkS8)\n if isinstance(BWXx, list):\n Aofo[hkS8] = list(map(lambda WKvO: WKvO.to_dict() if hasattr(WKvO, 'to_dict') else WKvO,...
[ "0.5706212", "0.5652803", "0.55990404", "0.55960345", "0.5561138", "0.55305517", "0.552081", "0.5480535", "0.5469129", "0.5461303", "0.5455373", "0.5455373", "0.5455373", "0.5453811", "0.542682", "0.54252666", "0.533678", "0.5324745", "0.52587974", "0.5251553", "0.52331567", ...
0.0
-1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, YueB): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088463", "0.8088463", "0.80553037", "0.7983272", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", "0.7966844", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8456082", "0.83912885", "0.81436425", "0.81406975", "0.8131807", "0.8093013", "0.80912536", "0.80912536", "0.80912536", "0.8084505", "0.8084505", "0.8075543", "0.8075543", "0.8065009" ]
0.0
-1
Add commandline flags for pytest.
def YyTK(wvEv): wvEv.addoption('--run-flaky', action='store_true', help='runs flaky tests') wvEv.addoption('--run-network-tests', action='store_true', help='runs tests requiring a network connection')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bvyp(YKHO, PJWX, RTjM):\n E0cB = [xAKo, YKHO.package_path]\n E0cB += ['--verbosity', str(PJWX)]\n if RTjM:\n E0cB += RTjM\n return E0cB", "def cJk1(YKHO):\n VKhi = []\n if YKHO.failed_only:\n VKhi.append('--last-failed')\n nbC_ = 'TESTS_FAIL_FAST' in Hy7s.environ and Hy7s.e...
[ "0.6812163", "0.6802424", "0.67751586", "0.6676299", "0.662692", "0.6577288", "0.64935213", "0.6471614", "0.6435689", "0.63643086", "0.63515633", "0.6346988", "0.63400584", "0.6339355", "0.6318536", "0.62863284", "0.62459767", "0.62310207", "0.6219351", "0.62022555", "0.61905...
0.6994068
0
Test that video uploads throws error message when file name contains special characters.
def cHug(YKHO, s_cI): gIsw = 'test’_file.mp4' RRlC = [{'file_name': gIsw, 'content_type': 'video/mp4'}] WE7e = FM6F() s_cI.return_value = FM6F(get_bucket=FM6F(return_value=WE7e)) geh0 = YKHO.client.post(YKHO.url, qQXR.dumps({'files': RRlC}), content_type='application/json') YKHO.assertEqual(geh0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TiuJ(YKHO):\n bD7m = '/%s/jobs/%i/input_files/?file_name=%s' % (YKHO.api, YKHO.job.id, 'not_a.file')\n geh0 = YKHO.client.get(bD7m)\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK, geh0.content)\n dixj = qQXR.loads(geh0.content)\n Aofo = dixj['results']\n YKHO.assertEqual(len(Aofo), 0)"...
[ "0.65014195", "0.64077914", "0.6348901", "0.6323032", "0.62804186", "0.61693007", "0.6168725", "0.6156098", "0.61090165", "0.61028373", "0.60547227", "0.6040566", "0.6023144", "0.6018803", "0.6013347", "0.6002795", "0.5984377", "0.5978695", "0.5961935", "0.59532267", "0.59524...
0.753336
0
Test video upload token in s3 metadata.
def kz74(YKHO, nPrm, s_cI, yTE5): @OBr8 def l9ru(p_z1, Vlko): """ This acts as proxy to the original manager in the arguments given the original manager is not set to be ignored. """ if Vlko: yield else: with p_z1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tT2P(YKHO):\n f6W2 = Rqdq.VideoFactory(id='27a23f52-3379-46a2-94fa-697b59cfe3c7', upload_state=tuKI.choice(['ready', 'error']))\n pdWF = IHrB()\n pdWF.payload['resource_id'] = str(f6W2.id)\n pdWF.payload['roles'] = [tuKI.choice(['instructor', 'administrator'])]\n pdWF.payload['permissions'] = {'...
[ "0.7368541", "0.6995017", "0.6718038", "0.64010864", "0.63380766", "0.6298333", "0.6274303", "0.6181222", "0.61766404", "0.6136056", "0.60941523", "0.6061968", "0.597264", "0.59438384", "0.59107804", "0.58267504", "0.58176035", "0.58051354", "0.58034986", "0.574365", "0.57132...
0.67830575
2
Verify that 405 is returned in case of notallowed request methods. Allowed request methods are POST and DELETE.
def xcZk(YKHO): zDwB = YKHO.get_url_for_course_key(YKHO.course.id) geh0 = YKHO.client.get(zDwB, content_type='application/json') YKHO.assertEqual(geh0.status_code, 405)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fo0Y(YKHO, _hkX):\n return YKHO.assertEqual(_hkX.status_code, 405)", "def fo0Y(YKHO, geh0):\n YKHO.assertEqual(geh0.status_code, 405)", "def RYij(YKHO):\n JkRY = ['POST', 'PUT', 'PATCH', 'DELETE']\n for Si4S in JkRY:\n with YKHO.subTest(method_name=Si4S):\n jZqH = getattr(YKHO...
[ "0.8357455", "0.8211209", "0.8046897", "0.80000913", "0.7773894", "0.7766967", "0.77525026", "0.7738045", "0.76858914", "0.76725394", "0.75897217", "0.7580933", "0.7569696", "0.75621045", "0.7558983", "0.75564307", "0.75035876", "0.74502814", "0.74450946", "0.74406147", "0.73...
0.63679504
66
>>> d = OrderedDict(((1, 3), (3, 2), (2, 1))) >>> c = OrderedDict(((0, 3), (3, 2), (2, 1))) >>> e = OrderedDict(d) >>> c >> d >> d <= dict(c)
def TPjt(YKHO, Elif): if not isinstance(Elif, U8Lr): raise TypeError('Can only compare with other OrderedDicts') return YKHO.items() <= Elif.items()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GfW9(Csk6: OrderedDict) -> dict:\n return _1kr(PjZe(Csk6))", "def jSvm():\n from collections import OrderedDict\n\n class Child(dict):\n\n def _mZj(YKHO):\n return reversed(range(10))\n Q6uT = reversed(OrderedDict())\n return (reversed(Melv()), Q6uT)", "def MNRr(Oefj):\n ...
[ "0.6843226", "0.6692992", "0.66495454", "0.6529051", "0.62890685", "0.62730014", "0.62454283", "0.60648537", "0.6052807", "0.60262173", "0.6024055", "0.5927168", "0.58370733", "0.58279186", "0.5819881", "0.5750652", "0.57445085", "0.5738992", "0.57109064", "0.5699998", "0.569...
0.539246
40
>>> d = OrderedDict(((1, 3), (3, 2), (2, 1))) >>> c = OrderedDict(((0, 3), (3, 2), (2, 1))) >>> e = OrderedDict(d) >>> c >= d False >>> d >= c True >>> d >= dict(c)
def Zcf_(YKHO, Elif): if not isinstance(Elif, U8Lr): raise TypeError('Can only compare with other OrderedDicts') return YKHO.items() >= Elif.items()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bowE(YKHO):\n cntZ = dict(a=1, b=2)\n CsFy = U8Lr(b=2, a=1)\n AXmp(cntZ, CsFy, [])", "def TPjt(YKHO, Elif):\n if not isinstance(Elif, U8Lr):\n raise TypeError('Can only compare with other OrderedDicts')\n return YKHO.items() <= Elif.items()", "def jmxi(YKHO, Elif):\n if not isinsta...
[ "0.6889557", "0.6537838", "0.6489328", "0.64315635", "0.6317654", "0.6257606", "0.60580415", "0.59793144", "0.582819", "0.5820886", "0.58135664", "0.5797685", "0.57934564", "0.57647294", "0.575626", "0.5682618", "0.5670448", "0.5668834", "0.56667155", "0.56289274", "0.5580798...
0.6802523
1
To allow deepcopy to work with OrderedDict. >>> from copy import deepcopy >>> a = OrderedDict([(1, 1), (2, 2), (3, 3)]) >>> a['test'] = {} >>> b = deepcopy(a) >>> b == a True >>> b is a False >>> a['test'] is b['test'] False
def d9kX(YKHO, i_PE): from copy import deepcopy return YKHO.__class__(deepcopy(YKHO.items(), i_PE), YKHO.strict)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N1zE():\n o4D3 = {'one': 1, 'two': 2}\n AgPH = o4D3.copy()\n _ABP.dict_merge(o4D3, {'three': 3, 'two': None})\n assert o4D3 == AgPH\n _ABP.dict_merge({'ten': 10, 'one': '1'}, o4D3)\n assert o4D3 == AgPH", "def bowE(YKHO):\n cntZ = dict(a=1, b=2)\n CsFy = U8Lr(b=2, a=1)\n AXmp(cntZ,...
[ "0.6616694", "0.651716", "0.650658", "0.6433758", "0.63547564", "0.6268876", "0.6167069", "0.61574876", "0.60883147", "0.6034296", "0.59298754", "0.5912151", "0.5911761", "0.58892554", "0.5881475", "0.58261335", "0.58185995", "0.57840717", "0.5769797", "0.5767842", "0.5740850...
0.0
-1
Return a list of all the values in the OrderedDict. Optionally you can pass in a list of values, which will replace the current list. The value list must be the same len as the OrderedDict. >>> d = OrderedDict(((1, 3), (3, 2), (2, 1))) >>> d.values() [3, 2, 1]
def hkxX(YKHO, hkxX=None): return [YKHO[H5ew] for H5ew in YKHO._sequence]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kCbD(Csk6):\n return list(Csk6.values())", "def TSF4(YKHO) -> list:\n hkxX = []\n for H5ew, BWXx in YKHO._items:\n hkxX.append(BWXx)\n return hkxX", "def hkxX(YKHO):\n return [bGrB for bGrB in YKHO._dict.values()]", "def hkxX(YKHO):\n return [YKHO[G1Hx] for G1Hx in YKHO.keys()]",...
[ "0.730715", "0.72716796", "0.7256918", "0.7222337", "0.7217952", "0.71289635", "0.71289635", "0.71289635", "0.7123241", "0.69804955", "0.6979699", "0.6929698", "0.6880294", "0.6873703", "0.6856028", "0.67444545", "0.67212576", "0.67073", "0.6702768", "0.66397107", "0.66226614...
0.72916514
1
Delete and return an item specified by index, not a random one as in dict. The index is 1 by default (the last item). >>> d = OrderedDict(((1, 3), (3, 2), (2, 1))) >>> d.popitem() (2, 1) >>> d OrderedDict([(1, 3), (3, 2)]) >>> d.popitem(0) (1, 3) >>> OrderedDict().popitem()
def K9pI(YKHO, YRbF=-1): if not YKHO._sequence: raise KeyError('popitem(): dictionary is empty') try: H5ew = YKHO._sequence[YRbF] except IndexError: raise IndexError('popitem(): index %s not valid' % YRbF) return (H5ew, YKHO.pop(H5ew))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN(YKHO, W7ci: Index) -> kLxY:\n raise NotImplementedError('pop')", "def BEuN(YKHO, or8S=-1):\n o77w = YKHO.__getitem__(or8S)\n YKHO.__delitem__(or8S)\n return o77w", "def K9pI(YKHO):\n with YKHO.__plock:\n if len(YKHO._keys) == 0:\n raise KeyError('Empty')\n H5ew ...
[ "0.7199599", "0.7189128", "0.7087956", "0.70186776", "0.69510645", "0.6915811", "0.69067305", "0.6887911", "0.68701714", "0.68093777", "0.6802625", "0.6796943", "0.67953944", "0.6725816", "0.6684777", "0.66766125", "0.6663623", "0.65798527", "0.6542532", "0.6537321", "0.65338...
0.7008463
4
Return the position of the specified key in the OrderedDict. >>> d = OrderedDict(((1, 3), (3, 2), (2, 1))) >>> d.index(3) 1 >>> d.index(4)
def d6pt(YKHO, H5ew): return YKHO._sequence.index(H5ew)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ajkz(YKHO, H5ew):\n EmMj = [YRbF for YRbF, tTpl in enumerate(YKHO.list) if tTpl.key == H5ew]\n if EmMj:\n return EmMj[0]\n else:\n return -1", "def Vn7Z(YKHO, H5ew):\n return YKHO.keys.index(H5ew)", "def kS1Y(YKHO, H5ew):\n d6pt = 0\n for ZfUD in YKHO._item:\n if ZfUD...
[ "0.7372155", "0.72729975", "0.72009754", "0.7028726", "0.7022663", "0.686849", "0.6712287", "0.66815394", "0.6599689", "0.6250449", "0.61981755", "0.6148143", "0.6086364", "0.6055276", "0.6051836", "0.59959704", "0.597735", "0.59474194", "0.5917152", "0.5879304", "0.5877715",...
0.66418
8
Sort the key order in the OrderedDict. This method takes the same arguments as the ``list.sort`` method on your version of Python. >>> d = OrderedDict(((4, 1), (2, 2), (3, 3), (1, 4))) >>> d.sort() >>> d OrderedDict([(1, 4), (2, 2), (3, 3), (4, 1)])
def BA9O(YKHO, *qIxc, **B2fa): YKHO._sequence.sort(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pRwu(Csk6, H5ew=None):\n DumB = [(G1Hx, Csk6[G1Hx]) for G1Hx in sorted(Csk6, key=H5ew)]\n Csk6.clear()\n Csk6.update(DumB)", "def w3_L():\n Csk6 = {1: 'a', 3: 'c', 2: 'b'}\n Csk6.sort()\n print(Csk6)", "def Hhsk(dLfY: dict, H5ew: typing.Callable, gxEw: bool=False):\n if len(tq_1.signat...
[ "0.7525017", "0.68232757", "0.6545513", "0.65296596", "0.6355049", "0.6353015", "0.63237214", "0.63209325", "0.62559307", "0.61383796", "0.60651803", "0.60596883", "0.6035827", "0.60106295", "0.6010007", "0.60078585", "0.5970376", "0.5944", "0.58513135", "0.5848322", "0.58204...
0.58168525
21
Fetch the item at position i.
def OP2O(YKHO, d6pt): if isinstance(d6pt, SnBA.SliceType): return YKHO._main[d6pt].items() H5ew = YKHO._main._sequence[d6pt] return (H5ew, YKHO._main[H5ew])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, YRbF):\n return YKHO._items[YRbF]", "def OP2O(YKHO, YRbF):\n return YKHO.get(YRbF, YRbF + 1)", "def OP2O(YKHO, YRbF):\n return YKHO.data[YRbF]", "def OP2O(YKHO, YRbF):\n YKHO._load(False)\n if type(YRbF) == slice:\n yKcO, JCyR, YPaw = (YRbF.start, YRbF.stop, YRbF.step)\n ...
[ "0.7284395", "0.7136758", "0.6999644", "0.6933897", "0.6884076", "0.6807567", "0.67794466", "0.6640364", "0.6623135", "0.65492845", "0.6538738", "0.65382785", "0.650954", "0.647378", "0.6408744", "0.63350844", "0.6300505", "0.6298018", "0.6282538", "0.6271112", "0.622911", ...
0.0
-1
Fetch the value at position i.
def OP2O(YKHO, d6pt): if isinstance(d6pt, SnBA.SliceType): return [YKHO._main[H5ew] for H5ew in YKHO._main._sequence[d6pt]] else: return YKHO._main[YKHO._main._sequence[d6pt]]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, YRbF):\n return YKHO.get(YRbF, YRbF + 1)", "def OP2O(YKHO, YRbF):\n return YKHO.data[YRbF]", "def NMoC(YKHO, YRbF):\n if YRbF < 0 or YRbF >= YKHO.d:\n raise ValueError('Illegal index')\n if YKHO.st.contains(YRbF):\n return YKHO.st.get(YRbF)\n else:\n return 0....
[ "0.7384709", "0.726249", "0.7255751", "0.7151705", "0.6965363", "0.6955769", "0.6845706", "0.67990077", "0.6791194", "0.677847", "0.6771419", "0.6696457", "0.662713", "0.6574288", "0.65724236", "0.65354854", "0.64672744", "0.64509934", "0.64006656", "0.64006656", "0.63724226"...
0.0
-1
Create from an mturk object.
def lojV(Emd4, IAzo): assert 'Output' in IAzo U5bT = Emd4(id=IAzo['AssignmentId'], hit_id=IAzo['HITId'], worker_id=IAzo['WorkerId'], output_data=IAzo['Output']) if IAzo['AssignmentStatus'] == 'Accepted': U5bT.update_state(Emd4.ACCEPTED) elif IAzo['AssignmentStatus'] == 'Rejected': U5bT.u...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jG8h(Emd4, qHj0) -> 'RomaniaSettlement':\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG8h(Emd4, qHj0) -> 'AdvancePaymentRequest':\n return gnPz.deserialize_model(qHj0, Emd4)", "def jG8h(Emd4, qHj0) -> 'Reviewer':\n return gnPz.deserialize_model(qHj0, Emd4)", "def iZ1s(Emd4, Td1T):\n B2...
[ "0.5509269", "0.5472349", "0.53903097", "0.53798133", "0.5308502", "0.527019", "0.52133715", "0.52102536", "0.5201566", "0.5189333", "0.51888394", "0.51882577", "0.51834285", "0.513579", "0.51299465", "0.51127434", "0.51066047", "0.5066716", "0.5066716", "0.5048919", "0.50394...
0.6195365
0
Get the plugin settings from a config path. The keys follow the JupyterLab settings naming convention, of module and identifier e.g.
def iC9C(YKHO, lqQH: Path, aTxY: str) -> cuzp[str, ImMB]: if not lqQH.exists(): return {} GPtr = qQXR.loads(lqQH.read_text(**kvN6)) if lqQH.name == oiEF: GPtr = GPtr['metadata'].get(T4c2, {}) return GPtr.get(DWNa, {}).get(qP9s, {}).get(aTxY, {})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zzuc():\n return qQXR.loads(Hy7s.getenv('DKU_CUSTOM_RECIPE_PLUGIN_CONFIG'))", "def Zzuc():\n return qQXR.loads(Hy7s.getenv('SKU_CUSTOM_RECIPE_PLUGIN_CONFIG'))", "def cjRR(t0qN, AGPF=None):\n boHx = yYzp(AGPF)\n c4tt = Zmkp(boHx, 'plugins')\n return c4tt.get(t0qN) if isinstance(c4tt, dict) el...
[ "0.70205945", "0.68047935", "0.65930206", "0.6457502", "0.6382777", "0.6142315", "0.6100943", "0.60296994", "0.5991842", "0.5986234", "0.5963826", "0.59546286", "0.5936476", "0.5932889", "0.59237623", "0.588939", "0.5884509", "0.5843358", "0.58408326", "0.5835414", "0.5830358...
0.77131206
0
Loads the data graph consisting of the encoder and decoder input placeholders, Label (Target tip summary) placeholders and the weights of the hidden layer of the Seq2Seq model.
def Vme0(YKHO): with ZylS.variable_scope('train_test', reuse=True): YKHO.enc_inp_fwd = [ZylS.placeholder(ZylS.int32, shape=(None,), name='input%i' % a1PO) for a1PO in range(YKHO.seq_length)] YKHO.enc_inp_bwd = [ZylS.placeholder(ZylS.int32, shape=(None,), name='input%i' % a1PO) for a1PO in range(YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GsUR(YKHO):\n YKHO._create_placeholders()\n YKHO._create_embedding()\n YKHO._create_recurrent_layers()\n YKHO._create_de_embedding()\n YKHO._create_loss()\n YKHO._create_optimizer()\n YKHO._create_summaries()", "def GsUR(YKHO):\n YKHO.__create_placeholders()\n YKHO.__create_encoder...
[ "0.64967436", "0.64279914", "0.62839854", "0.6272801", "0.6237684", "0.6153953", "0.61201334", "0.60997933", "0.6094104", "0.60688454", "0.603969", "0.5908006", "0.58944833", "0.5890593", "0.58564377", "0.5846074", "0.58221906", "0.58042973", "0.57966864", "0.57845634", "0.57...
0.7857012
0
Get the sender's email
def NgsT(Ol8d): B9Lv = Ol8d['payload']['headers'] for WBPg in B9Lv: if WBPg['name'] == 'From': return WBPg['value']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RC0X(YKHO):\n return YKHO._email", "def ofQZ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'notification_sender_email')", "def RC0X(YKHO):\n return YKHO.email", "def RC0X(YKHO):\n return YKHO.reference[XMvj][NNfF]", "def bzh1(YKHO):\n mS46 = YKHO.get_user()\n if mS46:\n re...
[ "0.78257656", "0.7786797", "0.77664906", "0.7705415", "0.7682987", "0.7674341", "0.7674341", "0.75320226", "0.75300425", "0.75300425", "0.75300425", "0.75300425", "0.75175834", "0.7507526", "0.7507526", "0.7507526", "0.74909765", "0.7452558", "0.74323577", "0.73145396", "0.72...
0.7534542
7
Takes file path as string; returns text as string. Takes a string that is a file path, opens the file, and turns the file's contents as one string of text.
def OcVp(qaEx, q_yw): kGys = open(qaEx).read() return kGys
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OcVp(qaEx):\n OwN0 = open(qaEx)\n SFw1 = OwN0.read()\n return SFw1", "def OcVp(qaEx):\n OwN0 = open(qaEx)\n LFxn = OwN0.read()\n OwN0.close()\n return LFxn", "def cHUw(VqRE):\n assert JC7M(VqRE), 'filepath does not exist'\n with open(VqRE, 'r', encoding='utf-8') as eHNT:\n ...
[ "0.8120648", "0.8084976", "0.80740315", "0.8067914", "0.7955153", "0.7940907", "0.78899425", "0.7814253", "0.7714841", "0.76988804", "0.76642245", "0.76313204", "0.76245683", "0.76132447", "0.7578637", "0.7531003", "0.75279164", "0.74878705", "0.7439701", "0.74098176", "0.737...
0.64976066
87
Display the file explorer, and ask user to select a file
def e5au(yPuA): tk5Y = on8l.Tk() tk5Y.withdraw() qyoF = Hy7s.path.join(Hy7s.path.realpath(xAKo)) if mQDY: return XqpT.askopenfile(title=yPuA).name else: return Hy7s.path.join(Hy7s.path.dirname(xAKo), 'modules', 'pymediainfo', 'pymediainfo', 'MediaInfo.dll')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fLEu() -> True:\n kUZF = Hy7s.getcwd()\n rCdr = ZhDw.fileopenbox(title=IQ_q + ': Open a file', default=Hy7s.path.join(kUZF, '..'), filetypes='*.txt,*.py')\n print(f'Selected file: {Hy7s.path.basename(rCdr)}')\n print(f'In directory: {Hy7s.path.dirname(rCdr)}')\n return True", "def lumm(YKHO):\...
[ "0.78546935", "0.77978504", "0.7627124", "0.75477326", "0.73248255", "0.73088586", "0.7308781", "0.7301424", "0.72777504", "0.7231558", "0.7163177", "0.7101676", "0.70955664", "0.7094162", "0.7071998", "0.69481647", "0.6931329", "0.69309866", "0.6919352", "0.69015837", "0.689...
0.0
-1
get the 4 bayes parameters for the normal distribution after updating for the data
def tl2x(YKHO, nPrm, _mSQ=None): D1HL = nPrm.shape VTcd = oyIN.full(D1HL, YKHO.lr) if _mSQ is not None: VTcd *= _mSQ _mSQ[::-1] *= oyIN.asarray([YKHO.mem ** YRbF for YRbF in range(D1HL)]) jOsi = oyIN.sum(VTcd) gHnv = oyIN.sum(VTcd * nPrm) zzAa = gHnv / jOsi PKKQ = YKHO.mem ** D1H...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U_sI(YKHO):\n UMV5 = gDEm.getInitParams(YKHO)\n UMV5['mean'] = YKHO.mean\n UMV5['sigma'] = YKHO.sigma\n return UMV5", "def U_sI(YKHO):\n UMV5 = gDEm.getInitParams(YKHO)\n UMV5['mean'] = YKHO.mean\n UMV5['sigma'] = YKHO.sigma\n UMV5['low'] = YKHO.low\n return UMV5", "def iHTP(YKHO...
[ "0.61323804", "0.6054306", "0.6018378", "0.5927716", "0.5850915", "0.58506656", "0.5822253", "0.580562", "0.5803575", "0.58012784", "0.5782148", "0.5766498", "0.57433856", "0.57433856", "0.5741607", "0.57377005", "0.572918", "0.572918", "0.57188153", "0.5714172", "0.5714172",...
0.0
-1
Predict the action values from a single state
def QzQB(YKHO, QTBn): Esro = oyIN.expand_dims(QTBn[0], axis=0) Nqp_ = oyIN.expand_dims(QTBn[2], axis=0) return YKHO._model.predict([Esro, Nqp_])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, QTBn):\n YKHO.model.eval()\n if len(YKHO.history_states) < YKHO.history_states.maxlen:\n XeOP = YKHO.baseline_agent.predict(QTBn)\n else:\n bgDB = oyIN.array(YKHO.history_states)\n nC35 = oyIN.array(YKHO.history_actions)\n XeOP = YKHO.planner.predict(bgDB, nC35, ...
[ "0.78213114", "0.7794668", "0.7650977", "0.7584253", "0.75813156", "0.7523047", "0.7474721", "0.7365014", "0.7306148", "0.7289428", "0.7276042", "0.7172682", "0.71392137", "0.7120325", "0.70958847", "0.70626825", "0.70178133", "0.7000655", "0.6973197", "0.6973047", "0.6971317...
0.6919491
22
Predict the action values from a single state
def QzQB(YKHO, QTBn): Esro = oyIN.expand_dims(QTBn[0], axis=(0, 1)) Nqp_ = oyIN.expand_dims((QTBn[2],), axis=(0, 1)) return YKHO._model.predict([Esro, Nqp_])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, QTBn):\n YKHO.model.eval()\n if len(YKHO.history_states) < YKHO.history_states.maxlen:\n XeOP = YKHO.baseline_agent.predict(QTBn)\n else:\n bgDB = oyIN.array(YKHO.history_states)\n nC35 = oyIN.array(YKHO.history_actions)\n XeOP = YKHO.planner.predict(bgDB, nC35, ...
[ "0.78213114", "0.7794668", "0.7650977", "0.7584253", "0.75813156", "0.7523047", "0.7474721", "0.7365014", "0.7306148", "0.7289428", "0.7276042", "0.7172682", "0.71392137", "0.7120325", "0.70958847", "0.70626825", "0.70178133", "0.7000655", "0.6973197", "0.6973047", "0.6971317...
0.67705554
37
Predict the action values from a single state
def QzQB(YKHO, QTBn): if YKHO._recurrent == True: Esro = oyIN.expand_dims(QTBn[0], axis=(0, 1)) Nqp_ = oyIN.expand_dims((QTBn[2],), axis=(0, 1)) else: Esro = oyIN.expand_dims(QTBn[0], axis=0) Nqp_ = oyIN.expand_dims(QTBn[2], axis=0) return YKHO._model.predict([Esro, Nqp_])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, QTBn):\n YKHO.model.eval()\n if len(YKHO.history_states) < YKHO.history_states.maxlen:\n XeOP = YKHO.baseline_agent.predict(QTBn)\n else:\n bgDB = oyIN.array(YKHO.history_states)\n nC35 = oyIN.array(YKHO.history_actions)\n XeOP = YKHO.planner.predict(bgDB, nC35, ...
[ "0.7821018", "0.7795372", "0.7650384", "0.7584177", "0.7581264", "0.75221133", "0.7474681", "0.73646206", "0.7306502", "0.7288949", "0.7276128", "0.71725845", "0.71398133", "0.7120894", "0.7095977", "0.70635974", "0.70175916", "0.7001309", "0.6973668", "0.6973543", "0.6970834...
0.6699567
44
Return the current recording status
def Baep(YKHO): return YKHO._get('recording/status')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QTBn(YKHO):\n return YKHO._camera_data['recording_mode']", "def IGX5(YKHO) -> bool:\n return YKHO._raw_result['data']['recording']", "def bPqk(YKHO):\n return YKHO._recording_status in iIEK", "def bPqk(YKHO):\n return YKHO._isrecording", "def jGRS(YKHO):\n return YKHO._status", "def jG...
[ "0.7430561", "0.7307564", "0.71591455", "0.69374746", "0.66680574", "0.66595846", "0.66542345", "0.66120565", "0.6596724", "0.6590134", "0.6581085", "0.65721667", "0.65721667", "0.65721667", "0.65710247", "0.6548528", "0.6536829", "0.65368277", "0.6521222", "0.65156823", "0.6...
0.9055529
0
Computes the accuracy over the k top predictions for the specified values of k
def PO7I(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx].r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z7qO(LVAh, aMgO, G1Hx=2):\n nvEb = []\n for YRbF in range(len(LVAh)):\n if LVAh[YRbF] in aMgO[YRbF][:G1Hx]:\n nvEb.append(1)\n else:\n nvEb.append(0)\n return sum(nvEb) / len(nvEb)", "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\...
[ "0.8330555", "0.8284951", "0.8238012", "0.8229784", "0.82199013", "0.8186353", "0.8184883", "0.8175146", "0.81715065", "0.8169989", "0.81665415", "0.81645787", "0.8163826", "0.81622696", "0.81622696", "0.81622696", "0.81622696", "0.81622696", "0.81622696", "0.81622696", "0.81...
0.78499347
81
Get all of the local functions called in the given VBA object. item (VBA_Object item) The code chunk to check for function calls. context (Context object) The current program state. (list) List of the function definitions (VBA_Object) of all the functions called in the code chunk.
def nX92(ZfUD, QpfX): db9g = CCfT() ZfUD.accept(db9g) VoM3 = db9g.called_funcs C_pr = cFqH(context=QpfX, _locals=QpfX.locals, copy_globals=True) bGrB, muDh = E6oH(ZfUD, C_pr) VoM3.update(muDh) G_3R = [] for RKN_ in VoM3: if QpfX.contains(RKN_): hSQx = QpfX.get(RKN_) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def icyv(R3gR):\n gHCf = []\n v3T7 = uNYq(R3gR)\n for WKvO in v3T7.nodes.items():\n mWFP = WKvO[0]\n XkN1 = ocTc(vIwR.atol(mWFP, 16))\n for LE47 in XkN1:\n if LE47[1] == 'call':\n gHCf.append(LE47)\n return gHCf", "def pdzE(lGbz, QpfX, MnRD):\n G_3R =...
[ "0.61334014", "0.6015595", "0.5961293", "0.5925871", "0.58588576", "0.5841914", "0.5669255", "0.56626135", "0.5653114", "0.5648828", "0.55623496", "0.5476694", "0.5437098", "0.53984344", "0.53814507", "0.53734314", "0.5343787", "0.53431135", "0.5195523", "0.5157648", "0.51384...
0.8658288
0
return a json file
def u9cZ(): return pz3A({'status': 'OK'})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c3ht(Ux0P):\n Aofo = qQXR.load(open(Ux0P, 'r'))\n return Aofo", "def SJOK(nUeQ):\n with open(nUeQ) as KAfx:\n return qQXR.load(KAfx)", "def d3kn(Ux0P, DuqQ='en'):\n VqRE = Hy7s.path.join(wk5E.config['APP_PATH'], 'data', Ux0P)\n with open(VqRE, 'r') as eHNT:\n return qQXR.loads(...
[ "0.8026045", "0.7407527", "0.73929656", "0.7388725", "0.7349754", "0.7074287", "0.7074287", "0.70704126", "0.7033332", "0.7025407", "0.70242095", "0.69774973", "0.69706196", "0.6898332", "0.6847141", "0.6845315", "0.68355024", "0.68355024", "0.683302", "0.683302", "0.6792806"...
0.0
-1
Return a list of (row, col) tuples for all empty squares
def mWT0(YKHO): lsmZ = [] for rdlD in range(YKHO._dim): for fvDH in range(YKHO._dim): if YKHO._board[rdlD][fvDH] == KAvf: lsmZ.append((rdlD, fvDH)) return lsmZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N18j(YKHO) -> list:\n Erw5 = []\n for NZMV in range(len(YKHO.grid)):\n for TMa9 in range(len(YKHO.grid[NZMV])):\n if YKHO.grid[NZMV][TMa9].color is None:\n Erw5.append((NZMV, TMa9))\n return Erw5", "def gfID(Cs6h):\n lsmZ = []\n for r845, rdlD in enumerate(Cs6h...
[ "0.8361795", "0.7815093", "0.77929056", "0.7743958", "0.76313215", "0.7579525", "0.7506691", "0.7499226", "0.7407885", "0.7392123", "0.7314479", "0.72431177", "0.72227556", "0.71967113", "0.7151703", "0.7146917", "0.7134806", "0.7134608", "0.7131203", "0.71150994", "0.7019608...
0.8531321
0
remove duplicates value in array without change ordering.
def jUEk(YKHO, qw7D: List) -> x1iM: PwWw = set() aygV = PwWw.add return [WKvO for WKvO in qw7D if not (WKvO in PwWw or aygV(WKvO))]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dDv2(jzdc):\n Fg_i = oyIN.ascontiguousarray(jzdc).view(oyIN.dtype((oyIN.void, jzdc.dtype.itemsize * jzdc.shape[1])))\n MOT_ = oyIN.unique(Fg_i).view(jzdc.dtype).reshape(-1, jzdc.shape[1])\n return MOT_", "def sGxh(xYvp):\n xYvp[:] = sorted(list(set(xYvp)))\n return xYvp", "def uY6T(qw7D) -> ...
[ "0.7426852", "0.73934925", "0.72941434", "0.7105764", "0.7085488", "0.707724", "0.7038563", "0.69971734", "0.69305474", "0.69050586", "0.68889517", "0.685222", "0.6829121", "0.6800059", "0.67379326", "0.6663416", "0.6659319", "0.6638999", "0.6617136", "0.66085964", "0.6599073...
0.8351871
0
Returns indices of unique rows. It will return the
def _NJ_(nPrm, BHGE=None): zr4t = aBy0(nPrm, digits=BHGE) Tm7A, kcwm, GOZd = oyIN.unique(zr4t, return_index=True, return_inverse=True) return (kcwm, GOZd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _NJ_(nPrm):\n Ix4h = dict()\n for rdlD in range(len(nPrm)):\n yL5a = tuple(nPrm[rdlD, :])\n if not yL5a in Ix4h:\n Ix4h[yL5a] = rdlD\n OsCc = Ix4h.values()\n Meu5 = oyIN.c_[Ix4h.keys()]\n return (OsCc, Meu5)", "def _NJ_(vb7U, jcN9=False):\n Fg_i = oyIN.ascontiguousa...
[ "0.74752986", "0.7377348", "0.7186815", "0.66557336", "0.660684", "0.66025394", "0.65168226", "0.6386453", "0.6382838", "0.63546836", "0.635133", "0.63070077", "0.62817407", "0.62611425", "0.61399555", "0.6130404", "0.6117788", "0.6091982", "0.6075318", "0.6066619", "0.602919...
0.6665538
3
Given a numpy array of float/bool/int, return as integers.
def lxKI(nPrm, BHGE=None, yDqo=oyIN.int32): nPrm = oyIN.asanyarray(nPrm) if nPrm.dtype.kind in 'ib' or nPrm.size == 0: return nPrm.astype(yDqo) if BHGE is None: BHGE = fld2(1e-08) elif isinstance(BHGE, float) or isinstance(BHGE, oyIN.float): BHGE = fld2(BHGE) elif not (isinst...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iKLS(F3EX: typing.List[bool]) -> laHg.List[int]:\n ...", "def VgXy(e5t6: List[bool]) -> int:\n en4D = 0\n for YRbF in range(0, jG7u - 1):\n en4D |= 1 << YRbF if e5t6[YRbF] else 0\n return en4D", "def Kmpz(FiiE):\n Aofo = []\n for d7pR in FiiE:\n if isinstance(d7pR, (list, tu...
[ "0.7508742", "0.66353786", "0.64538914", "0.62721467", "0.6242583", "0.6212227", "0.6174294", "0.61720973", "0.6169771", "0.60958344", "0.59704983", "0.59086007", "0.5849584", "0.5835249", "0.5813303", "0.577827", "0.5744131", "0.5732795", "0.5732577", "0.5674554", "0.5642336...
0.55121005
25
Gets the volume_parameter_type of this VolumeParameterConfigJson.
def x0CN(YKHO): return YKHO._volume_parameter_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yB39(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'volume_type')", "def yB39(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'volume_type')", "def yB39(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'volume_type')", "def yB39(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, '...
[ "0.70652926", "0.70652926", "0.70652926", "0.7061523", "0.68399704", "0.675154", "0.6748226", "0.6746302", "0.63791543", "0.60950685", "0.6079069", "0.6010364", "0.59719723", "0.59433204", "0.5869628", "0.5869628", "0.5866091", "0.5810834", "0.57976526", "0.5793928", "0.57821...
0.82693887
0
Sets the volume_parameter_type of this VolumeParameterConfigJson.
def x0CN(YKHO, x0CN): YKHO._volume_parameter_type = x0CN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x0CN(YKHO):\n return YKHO._volume_parameter_type", "def yB39(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'volume_type')", "def yB39(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'volume_type')", "def yB39(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'volume_type')", "def FIMM...
[ "0.72152936", "0.6003705", "0.6003705", "0.6003705", "0.59166175", "0.59071124", "0.58656573", "0.584993", "0.58123356", "0.56261647", "0.5613104", "0.5559818", "0.55470544", "0.5501279", "0.5501279", "0.5489209", "0.54585415", "0.539317", "0.5365945", "0.5365945", "0.5357764...
0.87820834
0
Gets the minimum_size of this VolumeParameterConfigJson.
def x7Qo(YKHO): return YKHO._minimum_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5IS(YKHO) -> h8nf[qe4Y.Input[int]]:\n return qe4Y.get(YKHO, 'min_disk_size')", "def l5IS(YKHO) -> qe4Y.Output[int]:\n return qe4Y.get(YKHO, 'min_disk_size')", "def l5IS(YKHO) -> int:\n return qe4Y.get(YKHO, 'min_disk_size')", "def pz1z(YKHO):\n return YKHO.min_size", "def qonS(YKHO):\n ...
[ "0.75240874", "0.7201429", "0.7195609", "0.71837574", "0.701028", "0.69646543", "0.68866587", "0.68126845", "0.6788793", "0.6788793", "0.6788793", "0.6755158", "0.67133516", "0.6669962", "0.6669962", "0.66689074", "0.6636167", "0.6636167", "0.6636167", "0.6587228", "0.6577175...
0.75552446
0
Gets the maximum_size of this VolumeParameterConfigJson.
def y_yk(YKHO): return YKHO._maximum_size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IKFF(YKHO) -> laHg.Optional[str]:\n BWXx = YKHO._properties.get('maximumVolumeSize')\n return f'{BWXx}' if BWXx is not None else None", "def M44i(YKHO) -> h8nf[float]:\n return qe4Y.get(YKHO, 'max_size_bytes')", "def ANdr(YKHO):\n return YKHO._maxsize", "def W117(YKHO) -> str:\n return qe4...
[ "0.78841496", "0.75457275", "0.73311037", "0.72901136", "0.72797656", "0.71792495", "0.71278065", "0.7090006", "0.70585084", "0.7041302", "0.69984853", "0.69913036", "0.69423544", "0.69372", "0.6867082", "0.680238", "0.67761666", "0.6773955", "0.6759096", "0.67569816", "0.675...
0.7355193
2
Gets the minimum_number of this VolumeParameterConfigJson.
def xKXN(YKHO): return YKHO._minimum_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iNt(YKHO) -> float:\n return YKHO._config[qkZB]", "def vELP(YKHO):\n return YKHO.properties.get('minimum')", "def _iNt(YKHO) -> float:\n if YKHO._type == 'power':\n return 1.0\n elif YKHO._type == 'setpoint':\n return YKHO._product.get_data_config_json()['_value_setpoint_min']\n ...
[ "0.7107358", "0.70209235", "0.6835927", "0.673631", "0.673631", "0.6613049", "0.6613049", "0.6612601", "0.6508327", "0.643321", "0.632031", "0.6290966", "0.6280815", "0.6280815", "0.6280815", "0.6280815", "0.6280815", "0.6280815", "0.6280815", "0.6280815", "0.6280815", "0.6...
0.68665
2
Gets the maximum_number of this VolumeParameterConfigJson.
def wjPT(YKHO): return YKHO._maximum_number
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PtQX(YKHO):\n return YKHO.properties.get('maximum')", "def hHvO(YKHO):\n iZr3 = 'SELECT jsonb_array_length(parameters) as length FROM alarm_condition'\n xqoZ = YKHO.postgres.query_fetch_all(iZr3)\n if xqoZ:\n SvKx = max([XP5J['length'] for XP5J in xqoZ])\n else:\n SvKx = 0\n r...
[ "0.7127248", "0.69818145", "0.6979241", "0.69700575", "0.69700575", "0.6783774", "0.6783774", "0.662681", "0.6587704", "0.65630394", "0.65490407", "0.6535894", "0.6522369", "0.6493728", "0.6486667", "0.6469134", "0.64543957", "0.6414031", "0.6402993", "0.6399235", "0.63951033...
0.674023
7
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, F_qf): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.80891633", "0.80891633", "0.8055254", "0.7983334", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", "0.7967544", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.8456082", "0.83912885", "0.81436425", "0.81406975", "0.8131807", "0.8093013", "0.80912536", "0.80912536", "0.80912536", "0.8084505", "0.8084505", "0.8075543", "0.8075543", "0.8065009" ]
0.0
-1
Return a timezone object representing the UTC offset found in the timestamp
def mVXc(E3oo: str): Hgg4 = E3oo[-5] Ony8 = int(E3oo[-4:-2]) pbSB = int(E3oo[-2:]) M4NW = Ony8 * 3600 + pbSB * 60 return qcWV.timezone(qcWV.timedelta(seconds=int(Hgg4 + str(M4NW))))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cqUj(YKHO, E3oo):\n try:\n i8WE = int(E3oo)\n except ValueError:\n na1r.error('__get_timezone_offset() given non-numeric input {}'.format(E3oo))\n if YKHO.__tzname is None:\n Mkmy = YKHO.ctx.p4.run('counter', '-u', miV1.P4GF_COUNTER_TIME_ZONE_NAME)\n BWXx = vejr.first_value...
[ "0.72862536", "0.72606134", "0.7232389", "0.7065637", "0.6865707", "0.6853038", "0.6767184", "0.67400986", "0.6641264", "0.6553563", "0.65382755", "0.65018976", "0.649584", "0.64774954", "0.645704", "0.6422225", "0.6419141", "0.6414567", "0.6372871", "0.6297294", "0.629661", ...
0.81272197
0
Test with this event equals another.
def xa14(YKHO, Elif): if YKHO is Elif: return True elif type(YKHO) != type(Elif): return False else: return YKHO._start_time == Elif._start_time and YKHO._end_time == Elif._end_time and (YKHO._events == Elif._events)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif: Event) -> bool:\n return YKHO.timestamp == Elif.timestamp", "def xa14(YKHO, Elif):\n if isinstance(Elif, yWIM):\n return YKHO.order_id == Elif.order_id and YKHO.event_id == Elif.event_id\n return False", "def xa14(YKHO, Elif):\n if not isinstance(Elif, JS3F):\n re...
[ "0.81692857", "0.7777155", "0.7573733", "0.7561496", "0.7517026", "0.74785167", "0.7472027", "0.74436045", "0.7436912", "0.7426592", "0.733518", "0.73232013", "0.7265174", "0.7053242", "0.7026145", "0.7012799", "0.7001662", "0.6956984", "0.69134295", "0.68931925", "0.6861212"...
0.743286
9
Return the debugging representation of this event.
def wHJl(YKHO): return '{}(start_time={!r}, end_time={!r}, events={!r})'.format(YKHO.__class__.__name__, YKHO._start_time, YKHO._end_time, YKHO._events)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO._event)", "def zKH4(YKHO):\n raise NotImplementedError", "def PjZe(YKHO):\n XAth = {'id': YKHO.id, 'name': YKHO.name, 'code': [zFiD.strip() for zFiD in YKHO.source_code]}\n return {'event': XAth}", "def wHJl(YKHO):\n CCMa = {}\n for mZ1z in dir(YKHO):\n ...
[ "0.7673768", "0.7481672", "0.7319104", "0.7200058", "0.71906203", "0.71906203", "0.714141", "0.6938771", "0.67682594", "0.6754195", "0.67536163", "0.67536163", "0.67536163", "0.6735151", "0.6711061", "0.67068255", "0.67068255", "0.67068255", "0.67068255", "0.67068255", "0.669...
0.7263413
3
Return a sort key for sorting into reporting order.
def eTpH(YKHO): return (YKHO._start_time, YKHO._end_time)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WJbe(YKHO) -> str:\n return YKHO.name", "def gpXh(YKHO):\n ...", "def QQzn(YKHO):\n return 'filestore:{0}'.format(id(YKHO.stage))", "def QQzn(YKHO, vAz7):\n return cZGW", "def ZqBW(T1WL):\n if not 'label' in T1WL:\n return ''\n return T1WL['label']", "def H5ew(YKHO, SoD9):\n ...
[ "0.7954099", "0.731167", "0.6866372", "0.67607605", "0.6626877", "0.6623084", "0.6610566", "0.660581", "0.65349185", "0.6480391", "0.6480391", "0.6448255", "0.64422846", "0.64209723", "0.62443256", "0.61810845", "0.6161318", "0.61032134", "0.60931224", "0.6059043", "0.6007521...
0.6100587
18