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
Get products from off based on a list of category.
def CxaC(LeZt: List) -> x1iM: Ldyl = list() NArs = BTHE for Ghho in LeZt: NArs['tag_0'] = Ghho Ldyl += G4JS.get(HNsl, NArs).json()['products'] return Ldyl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CxaC(YKHO, Ghho):\n NArs = {'search_terms': Ghho, 'json': 1, 'page_size': 100}\n gow0 = G4JS.get(YKHO.search_url, params=NArs).json()\n try:\n Ldyl = gow0['products']\n except (KeyError, IndexError, TypeError):\n return False\n else:\n Aofo = []\n for UHFx, Lx3t in en...
[ "0.69957626", "0.65429777", "0.6539695", "0.65119433", "0.639732", "0.63905644", "0.6379872", "0.63349587", "0.6329621", "0.63175917", "0.62925303", "0.62899673", "0.62345356", "0.62018234", "0.6199454", "0.61969966", "0.6164839", "0.6129592", "0.6091688", "0.607269", "0.6061...
0.67529774
1
Computes the accuracy over the k top predictions for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,)): with ht2j.no_grad(): Gq8e = max(hz5a) K_dq = pan_.size(0) '\n https://pytorch.org/docs/stable/torch.html#torch.topk\n torch.topk(input, k, dim=None, largest=True, sorted=True, out=None) -> (Tensor, LongTensor)\n ' bGrB, nv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjyh(aMgO, ibJh, hz5a=(1,)):\n Gq8e = max(hz5a)\n Ep8u = ibJh.size(0)\n bGrB, nvEb = aMgO.topk(Gq8e, 1, True, True)\n nvEb = nvEb.t()\n gXXc = nvEb.eq(ibJh.view(1, -1).expand_as(nvEb))\n Ylbp = []\n for G1Hx in hz5a:\n R2Dg = gXXc[:G1Hx].view(-1).float().sum(0)\n Ylbp.append(...
[ "0.8317339", "0.82855505", "0.82828647", "0.82817817", "0.8237022", "0.82341045", "0.82257587", "0.82249534", "0.82127786", "0.81917185", "0.8187698", "0.8181501", "0.81811255", "0.81803703", "0.81792945", "0.81792945", "0.8179208", "0.81784844", "0.81775934", "0.8176091", "0...
0.0
-1
Gets the packet id.
def cifQ(YKHO) -> int: return YKHO._packet_id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n oUZx, id = YKHO._manual_send_receive(YKHO.p2m.set_type(0).set_command(129).set_data([]).encode(), YKHO.id_len + 6)\n return id[0]", "def unpH(YKHO):\n oUZx, id = YKHO._manual_send_receive(YKHO.p2m.set_type(0).set_command(129).set_data([]).encode(), YKHO.id_len + 6)\n return id[0]", ...
[ "0.74892366", "0.74892366", "0.73665655", "0.6920871", "0.6853352", "0.6843607", "0.6819662", "0.6754833", "0.6721893", "0.6717254", "0.67064375", "0.6690812", "0.6690812", "0.6690812", "0.6690812", "0.6690812", "0.6690812", "0.6690812", "0.6690812", "0.6690812", "0.6690812",...
0.8576341
1
Gets the source address.
def Q1g5(YKHO) -> int: return YKHO._source_address
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x6th(YKHO):\n return YKHO.__source_ip", "def wVsX(YKHO):\n return YKHO._payload.get_source()", "def vAkW(YKHO):\n return YKHO.address()", "def gm8Z(YKHO) -> str:\n return YKHO['requestContext']['http']['sourceIp']", "def wVsX(YKHO):\n EV1I, ntLm = YKHO._get_field_indices('SOURCE')\n r...
[ "0.7534489", "0.75099784", "0.74808353", "0.74323034", "0.74114597", "0.7378278", "0.734955", "0.734955", "0.734955", "0.7311472", "0.7311472", "0.7311472", "0.7293707", "0.7289055", "0.7267644", "0.7218005", "0.7218005", "0.7203296", "0.7185807", "0.7181008", "0.7165752", ...
0.8354678
0
Gets the destination address.
def X7fk(YKHO) -> int: return YKHO._destination_address
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sIwv(YKHO):\n return Q9dT.args.destination_address", "def sIwv(YKHO):\n return Q9dT.args.destination_address", "def AfJR(YKHO):\n return YKHO.destination", "def AfJR(YKHO):\n return YKHO.destination", "def AfJR(YKHO):\n return YKHO.dest", "def WJUN(YKHO):\n try:\n return YKHO...
[ "0.87169874", "0.87169874", "0.77544385", "0.77544385", "0.75503623", "0.7425216", "0.7404456", "0.73990345", "0.7366723", "0.73654544", "0.7322384", "0.7308943", "0.7308943", "0.7308943", "0.7304033", "0.72797585", "0.7277931", "0.7272118", "0.7240782", "0.72223705", "0.7160...
0.84122914
2
Return an even number
def xjYA(mLGw: float) -> int: mLGw = int(round(mLGw)) return mLGw + mLGw % 2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vf3I(BWXx):\n return 2 * int(BWXx // 2)", "def vf3I(WKvO):\n return int(WKvO) % 2 == 0", "def L8qG(exwG):\n return 2 * exwG - 2", "def L8qG(exwG):\n return exwG * 2 - 2", "def ubP8(exwG):\n return", "def ubP8(WKvO):\n return WKvO % 2 == 0", "def ubP8(WKvO):\n return WKvO % 2 ==...
[ "0.8697285", "0.8403351", "0.83642215", "0.83584577", "0.8291435", "0.82520837", "0.82520837", "0.82450914", "0.82056975", "0.82056975", "0.8180804", "0.817231", "0.81403166", "0.81403166", "0.81403166", "0.81403166", "0.80966693", "0.80933535", "0.80555964", "0.80342746", "0...
0.74473184
49
(list) > list Return list L with the last item removed.
def SBf0(aPd6): del aPd6[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SBf0(qFa0):\n qFa0.pop(-1)", "def WNBr(qFa0):\n return qFa0[:-1]", "def Qeks(YKHO):\n YKHO.list.takeItem(YKHO.list.count() - 1)", "def k3DS(vC9B, geyT):\n vC9B.remove(geyT)\n return vC9B", "def Qeks(YKHO):\n if YKHO.size == 0:\n return None\n XVAW = YKHO.last.val\n if YKH...
[ "0.82382935", "0.7372106", "0.73224443", "0.7159287", "0.7054627", "0.69520426", "0.68569005", "0.683502", "0.6657076", "0.6611663", "0.6601918", "0.6577025", "0.65666384", "0.65523064", "0.65345776", "0.65194917", "0.65177345", "0.6499843", "0.6436812", "0.64361155", "0.6417...
0.856744
0
Fills in the chess board array and dictionary representations with the chess pieces.
def Di0B(mrj1: str, iBIi: np.ndarray, u_OT: dict, eKGI: list, n1oR: str, vM6o: int) -> (oyIN.ndarray, dict): hQc4 = iBIi JbSN = u_OT if eKGI: for WKvO, LVAh in eKGI: I_IH = chr((WKvO + vM6o) // vM6o - 1 + 97) UOrs = str(9 - (LVAh + vM6o) // vM6o) if n1oR == 'black...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DJD5(YKHO):\n usx6, ZLJ_ = (range(1, 9), 'ABCDEFGH')\n YKHO._board = [{fvDH: None for fvDH in ZLJ_} for bGrB in usx6]\n '\\n for column in Col:\\n for row in range(1, 8):\\n if row in (2, 7):\\n self.board[column][row] = Pawn(Color.white if row == 2 ...
[ "0.71907604", "0.698986", "0.6925837", "0.6735296", "0.67186666", "0.6715812", "0.6681319", "0.6625856", "0.66237736", "0.660916", "0.65626323", "0.6512142", "0.65052", "0.6472646", "0.6433255", "0.642385", "0.6421076", "0.641891", "0.6415979", "0.64112645", "0.6401491", "0...
0.62713575
39
Setup the test driver and create test users
def FCbF(YKHO): print('------------------NEXT-TEST------------------') uh1m = lE6K() uh1m.binary_location = '/usr/bin/chromium-browser' uh1m.add_argument('--headless') YKHO.driver = cSpz.Chrome(executable_path='/home/jasonworger/SFIA_Project_Week_6/chromedriver', chrome_options=uh1m) YKHO.driver...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FCbF(YKHO):\n NCls.drop_all()\n NCls.create_all()\n P4t4.config['TESTING'] = True\n YKHO.client = P4t4.test_client()", "def FCbF(YKHO):\n YKHO.new_user = YJv1('Judy', 'homeboys123')", "def FCbF(YKHO):\n YKHO.app = YKHO._set_up_test_app(LUif)\n YKHO.client = YKHO._set_up_client(YKHO.app...
[ "0.7922605", "0.7725985", "0.76982677", "0.768224", "0.7672551", "0.7656813", "0.7647313", "0.76445127", "0.7607617", "0.7597351", "0.75630486", "0.7561216", "0.7560582", "0.75542474", "0.75520164", "0.7549644", "0.7548669", "0.751875", "0.7498118", "0.74881333", "0.748017", ...
0.0
-1
Test that a user can create an account using the registration form if all fields are filled out correctly, and that they will be redirected to the login page
def xrgs(YKHO): YKHO.driver.find_element_by_xpath('/html/body/div[1]/a[2]').click() ITS7.sleep(1) YKHO.driver.find_element_by_xpath('//*[@id="email"]').send_keys('user@user.com') YKHO.driver.find_element_by_xpath('//*[@id="first_name"]').send_keys(b268) YKHO.driver.find_element_by_xpath('//*[@id="la...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KQ9X(YKHO):\n Aofo = YKHO.client.post('/process-registration', data={'user_name': 'Aimee', 'password': 'art', 'twitter_handle': 'Artist', 'email': 'Aimee@gmail.com', 'phone': '555-555-9999', 'reminder_time': 'morning'}, follow_redirects=True)\n YKHO.assertIn('Welcome back! You already have an account. Pl...
[ "0.79728484", "0.7867534", "0.7859745", "0.7856948", "0.78132254", "0.7802129", "0.77730566", "0.77198607", "0.76989526", "0.7685013", "0.7675662", "0.7650865", "0.7633685", "0.7629151", "0.7619698", "0.7612717", "0.76025325", "0.7595832", "0.75926614", "0.7590285", "0.758968...
0.7723531
7
Update a city in database
def SGUR(accd): Z7D_ = QePW.get_json() if not Z7D_: eTsH(400, 'Not a JSON') EiRm = S8SU.get(cKBo, accd) if EiRm is not None: for hkS8, BWXx in QePW.get_json().items(): setattr(EiRm, hkS8, BWXx) S8SU.save() return (pz3A(EiRm.to_dict()), 200) eTsH(404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DMBo(accd):\n YEnM = S8SU.get(cKBo, accd)\n if YEnM is None:\n eTsH(404)\n Z9rn = QePW.get_json(silent=True)\n if Z9rn is None:\n eTsH(400, 'Not a JSON')\n for H5ew, BWXx in Z9rn.items():\n wFhz = ['id', 'state_id', 'created_at', 'updated_at']\n if H5ew not in wFhz:\n...
[ "0.76702416", "0.75984067", "0.75701416", "0.7555679", "0.75112456", "0.74768585", "0.7411255", "0.73918736", "0.73813945", "0.73366565", "0.726667", "0.72545975", "0.7172438", "0.7121779", "0.71147096", "0.7028561", "0.6996076", "0.6844615", "0.6767211", "0.66645133", "0.663...
0.67416936
19
Merge config2 into config1 such that it has all the information from either config1 or config2 including places where both input dicts have some of a field defined. e.g. config1 has image.pixel_scale, and config2 has image.noise. Then the returned dict will have both. For real conflicts (the same value in both cases), ...
def S5Ng(B6HM, gP54, bo34=None): for H5ew, BWXx in gP54.items(): if not H5ew in B6HM: B6HM[H5ew] = jth9.deepcopy(BWXx) elif isinstance(BWXx, dict) and isinstance(B6HM[H5ew], dict): S5Ng(B6HM[H5ew], BWXx) else: if bo34: bo34.info('Not mergin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nSnN(B6HM, gP54):\n Aofo = {}\n sjXb = set(B6HM.keys()) | set(gP54.keys())\n for H5ew in sjXb:\n if H5ew not in gP54:\n Aofo[H5ew] = B6HM[H5ew]\n elif H5ew in B6HM and isinstance(B6HM[H5ew], dict) and isinstance(gP54[H5ew], dict):\n Aofo[H5ew] = PSrQ._merge(B6HM[H5e...
[ "0.80297595", "0.7427286", "0.7085114", "0.69189656", "0.6748109", "0.67166966", "0.66830885", "0.66477466", "0.66232497", "0.6592893", "0.65834457", "0.6570775", "0.65650284", "0.64607626", "0.64320236", "0.64068115", "0.64068115", "0.6255765", "0.6254988", "0.62256986", "0....
0.7498021
1
Sets the gid of this CatalogPriceRule.
def Bnkd(YKHO, Bnkd): YKHO._gid = Bnkd
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cpv0(YKHO, Bnkd):\n YKHO._gid = Bnkd", "def VY3y(YKHO, Bnkd):\n return J8uC.SBLaunchInfo_SetGroupID(YKHO, Bnkd)", "def VY3y(YKHO, Bnkd):\n return J8uC.SBAttachInfo_SetGroupID(YKHO, Bnkd)", "def OGSO(YKHO):\n assert YKHO._gid == 0\n OQ7l = YKHO._dbh.cursor()\n OQ7l.execute(\"SELECT nextv...
[ "0.72566813", "0.59801674", "0.5911142", "0.58652115", "0.57755333", "0.57201153", "0.5261018", "0.51880336", "0.51758057", "0.51758057", "0.5154785", "0.51258826", "0.51258826", "0.51258826", "0.5089896", "0.50658315", "0.5038475", "0.5038475", "0.5038475", "0.5038475", "0.5...
0.711869
1
Sets the date_start of this CatalogPriceRule.
def wEtp(YKHO, wEtp): YKHO._date_start = wEtp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YFxH(YKHO, kepv):\n YKHO._start_date = kepv", "def YFxH(YKHO, kepv):\n YKHO.__start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._start_date = kepv", "def kepv(YKHO, kepv):\n YKHO._s...
[ "0.78109556", "0.77989495", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7600751", "0.7360148", "0.73544025", "0.7350815", ...
0.74977064
18
Sets the date_end of this CatalogPriceRule.
def ddKN(YKHO, ddKN): YKHO._date_end = ddKN
{ "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.79103017", "0.79103017", "0.79103017", "0.79103017", "0.79103017", "0.79103017", "0.79103017", "0.79103017", "0.79103017", "0.79103017", "0.79103017", "0.79103017", "0.79103017", "0.7800972", "0.7645447", "0.753189", "0.7220561", "0.71096784", "0.7030599", "0.6947997", "0....
0.7936154
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
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 return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Processes jasyanimation.json files to merge animation data into asset registry
def fgZH(YKHO): Ffmk = YKHO.__assets b32v = [b1k5 for b1k5 in Ffmk if Ffmk[b1k5].isImageAnimationConfig()] if b32v: TgYk.info('Processing %s image animation configs...', len(b32v)) TgYk.indent() for b1k5 in b32v: TgYk.debug('Processing %s...', b1k5) IbHI = Ffmk[b1k5] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unAb(d7pR, iIh5, _PsJ):\n for eHNT in _PsJ:\n mWFP, BJ1H, Fst3 = eHNT.rpartition('.')\n if Fst3 == 'json':\n YKHO.files.append(Hy7s.path.join(iIh5, eHNT))\n YKHO.names.append(mWFP)", "def UasH(YKHO):\n bo34.info('Doing animation')\n if YKHO._info['animated']:\n ...
[ "0.6962698", "0.6139232", "0.6102443", "0.60931283", "0.60239047", "0.60114014", "0.6004244", "0.58482885", "0.5802126", "0.576393", "0.5709596", "0.5635822", "0.5594273", "0.5572181", "0.55550903", "0.55423135", "0.55320346", "0.55242985", "0.5491362", "0.5482641", "0.546769...
0.75965154
0
Returns whether there is a value for the given field name.
def xc3U(YKHO, mWFP): if not '.' in mWFP: return mWFP in YKHO.__data RYsB = mWFP.split('.') jvSB = YKHO.__data for lpha in RYsB: if lpha in jvSB: jvSB = jvSB[lpha] else: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gIXw(YKHO, vXX7):\n pass", "def oW2o(YKHO, xDcj, vXX7):\n try:\n YKHO.get_value_from_query(xDcj, vXX7)\n except KeyError:\n return False\n return True", "def NR78(YEnM, Jyyj):\n try:\n DOtY(YEnM, Jyyj)\n return True\n except AttributeError:\n return Fals...
[ "0.7476895", "0.74240243", "0.72835207", "0.709417", "0.70265186", "0.6958221", "0.69434696", "0.6924754", "0.6854979", "0.68222046", "0.6810001", "0.67216426", "0.6610517", "0.6586663", "0.65825915", "0.6565913", "0.654783", "0.654783", "0.6544935", "0.654389", "0.65235037",...
0.0
-1
Returns whether the given file or folder exists
def vtfo(mWFP): return Hy7s.path.exists(mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nDe1(Emd4, qaEx):\n return Hy7s.path.isfile(qaEx)", "def poxP(YMBJ, Ux0P):\n VqRE = Hy7s.path.join(YMBJ, Ux0P)\n vtfo = Hy7s.path.isfile(VqRE)\n return vtfo", "def poxP(pmON):\n return EFYe(pmON)", "def poxP(nUeQ, vBKA=False):\n if not vBKA:\n return Hy7s.path.isfile(nUeQ)\n e...
[ "0.7910641", "0.78230834", "0.7819765", "0.7814549", "0.77941054", "0.7778948", "0.7757482", "0.7749004", "0.77451634", "0.77233815", "0.77137774", "0.7687294", "0.7678626", "0.7668958", "0.76579404", "0.7645826", "0.7634093", "0.76124007", "0.76047987", "0.76014245", "0.7599...
0.0
-1
Returns all project JavaScript classes. Requires all files to have a "js" extension.
def Uh81(YKHO): if not YKHO.scanned: YKHO.scan() return YKHO.classes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WWoh(YKHO):\n KndY = []\n for pGQh, bGrB, iumf in Hy7s.walk(YKHO.path):\n PsRC = Hy7s.path.relpath(pGQh, YKHO.path)\n if PsRC == '.':\n pGbw = ''\n else:\n pGbw = '.%s' % '.'.join(PsRC.split(Hy7s.sep))\n for IznC in iumf:\n tk5Y, YBcr = Hy7s.pa...
[ "0.693198", "0.65767974", "0.65309274", "0.6455774", "0.62083334", "0.61125386", "0.600564", "0.5930526", "0.58679324", "0.5823459", "0.5761754", "0.571894", "0.5681845", "0.5678304", "0.5655169", "0.5599503", "0.55967766", "0.55845046", "0.5540557", "0.5531558", "0.5530339",...
0.52704334
60
Closes the session and stores cache to the harddrive.
def DDI8(YKHO): if not YKHO.__projects: return TgYk.debug('Closing session...') TgYk.indent() for bNKA in YKHO.__projects: bNKA.close() YKHO.__projects = None TgYk.outdent()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VtDy(YKHO):\n S8SU.close()", "def x9p9(YKHO):\n if YKHO.real_client is not None:\n YKHO._save_recordings(YKHO._recordings_cache_name)", "def mUKM(YKHO):\n YKHO.bucket.session.session.close()\n YKHO.bucket.session = WvKH()", "def DDI8(YKHO):\n YKHO.__session.__class__.close(YKHO.__se...
[ "0.71663296", "0.7027971", "0.6897114", "0.68179077", "0.6735391", "0.6707292", "0.6672579", "0.66198784", "0.66144234", "0.6551326", "0.6474003", "0.64318967", "0.6430341", "0.6429616", "0.6424102", "0.6413961", "0.6404196", "0.6381176", "0.6381176", "0.63760924", "0.6352009...
0.0
-1
Returns the relative path of any project to the main project
def VzEU(YKHO, bNKA): vUIm = YKHO.__projects[0].getPath() uOwQ = bNKA.getPath() return Hy7s.path.relpath(uOwQ, vUIm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EL0N() -> str:\n return str(GkAb(xAKo).parent.parent)", "def EL0N():\n return Hy7s.path.dirname(Hy7s.path.dirname(Hy7s.path.abspath(xAKo)))", "def phdL():\n return GkAb(xAKo).parent.parent.__str__()", "def L59w() -> GkAb:\n return GkAb(Hy7s.path.dirname(xAKo)).parent", "def EL0N(YKHO):\n ...
[ "0.7977011", "0.79155177", "0.79072213", "0.7900194", "0.785426", "0.78345853", "0.7830121", "0.7830121", "0.7819307", "0.7819307", "0.7819307", "0.7819307", "0.7815326", "0.78008556", "0.77689326", "0.76792234", "0.76792234", "0.76746804", "0.7618848", "0.75959104", "0.75832...
0.78017783
13
Returns the main project which is the first project added to the session and the one with the highest priority.
def C0dD(YKHO): if YKHO.__projects: return YKHO.__projects[0] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KqRz(llaM, RMXW=None):\n llaM = nRaX(llaM, 1, rank_function=RMXW)\n if llaM:\n return llaM[0]\n G9jH.warning('ProjectClassifier.Classify: no projects found.')\n return None", "def YsXL():\n global project\n if not QlFR:\n return None", "def YsXL(YKHO, B5PH):\n if YKHO.pro...
[ "0.7355767", "0.71855897", "0.7125212", "0.7046014", "0.678546", "0.6784911", "0.6741684", "0.6671438", "0.66675645", "0.6666616", "0.6660344", "0.66155845", "0.6574622", "0.65533924", "0.65481806", "0.65473115", "0.654495", "0.65411997", "0.65280294", "0.6527829", "0.6514283...
0.77378494
0
Returns current permutation object (useful during looping through permutations via permutate()).
def YCvQ(YKHO): return YKHO.__currentPermutation
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wzTp(YKHO):\n from sage.combinat.permutation import Permutation\n return Permutation(YKHO.value)", "def ovty(YKHO):\n return tE_f.permutation_sptr___deref__(YKHO)", "def p2Oz(vGaq):\n return Sok8(vGaq)", "def cZDQ(YKHO, YRbF, r845):\n return YKHO._permutations[YKHO.label(YRbF, r845)]", "...
[ "0.74775535", "0.6819685", "0.6787152", "0.67663515", "0.6620436", "0.64953095", "0.64539814", "0.6444238", "0.64082474", "0.6300647", "0.62858534", "0.6263792", "0.6246479", "0.62296265", "0.6229254", "0.62025946", "0.61939293", "0.6166442", "0.6136474", "0.61099416", "0.608...
0.7962211
0
Resets the current permutation object.
def t71v(YKHO): YKHO.__currentPermutation = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Rktz(YKHO, Y2eJ=False):\n if Y2eJ:\n YKHO.perm = YKHO.fixed_perm\n YKHO.curr_idx = 0\n else:\n YKHO.perm = YKHO.rng.permutation(YKHO.num_examples)\n YKHO.curr_idx = 0", "def SiRx(YKHO):\n YKHO.nump = 0\n YKHO.x = None\n YKHO.fx = None\n YKHO.rhs = None\n YKHO....
[ "0.7458943", "0.68515253", "0.6842247", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", "0.6710992", ...
0.8492604
0
Returns a locale project for the currently configured locale. Returns None if locale is not set to a valid value.
def KTIQ(YKHO, QdZT=False): NCqB = YKHO.getCurrentLocale() if not NCqB: return None pmON = Hy7s.path.abspath(Hy7s.path.join('.jasy', 'locale', NCqB)) if not Hy7s.path.exists(pmON) or QdZT: cJz_.core.Locale.LocaleParser(NCqB).export(pmON) return cJz_.core.Project.getProjectFromPath(pm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vh1E(YKHO):\n cZDQ = YKHO.getCurrentPermutation()\n if cZDQ:\n NCqB = cZDQ.get('locale')\n if NCqB:\n return NCqB\n return None", "def YsXL():\n global project\n if not QlFR:\n return None", "def YsXL(YKHO, ri4Q: bool=True) -> str:\n if getattr(YKHO.args, '...
[ "0.7054111", "0.66338164", "0.6588509", "0.65137464", "0.65070945", "0.65010214", "0.6497388", "0.6446452", "0.641787", "0.641787", "0.641787", "0.641787", "0.641787", "0.641787", "0.641787", "0.641787", "0.641787", "0.641787", "0.641787", "0.641787", "0.641787", "0.641787"...
0.7485701
0
Returns the project which the class belongs to
def ITTn(YKHO): return YKHO.project
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bNKA(YKHO) -> 'prjmod.Project':\n return YKHO.release.project", "def bNKA(YKHO):\n return YKHO._project", "def bNKA(YKHO):\n return YKHO._project", "def bNKA(YKHO):\n return YKHO._project", "def bNKA(YKHO):\n return YKHO._project", "def oVw5(YKHO):\n return YKHO.__project", "def b...
[ "0.8013665", "0.7882084", "0.7882084", "0.7882084", "0.7882084", "0.7873343", "0.7864262", "0.7864262", "0.7830775", "0.7747717", "0.76707697", "0.76455134", "0.7643252", "0.7618523", "0.7589558", "0.75887185", "0.75853866", "0.7567802", "0.753791", "0.7534446", "0.7502209", ...
0.81316096
0
Reads the file (as UTF8) and returns the text
def sBML(YKHO, tZ2K='utf-8'): if YKHO.__path is None: return None if type(YKHO.__path) == list: return ''.join([open(Ux0P, mode='r', encoding=tZ2K).read() for Ux0P in YKHO.__path]) else: return open(YKHO.__path, mode='r', encoding=tZ2K).read()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ueki(YKHO):\n tZ2K = 'utf-8'\n l5Ny = ''\n try:\n with T_Uj.open(YKHO.file_name, 'r', tZ2K) as nUeQ:\n l5Ny = nUeQ.read()\n except (IOError, UnicodeError):\n pass\n return l5Ny", "def LkPQ(YKHO):\n with T_Uj.open(YKHO.filepath, 'r', 'utf8') as eHNT:\n print(Y...
[ "0.8477656", "0.8306921", "0.8240717", "0.82291824", "0.81706256", "0.8166623", "0.8071218", "0.80628383", "0.80593956", "0.7978572", "0.7953583", "0.7891596", "0.78663516", "0.784169", "0.783418", "0.783418", "0.78327805", "0.7823376", "0.7759328", "0.7750668", "0.76786417",...
0.0
-1
Checks a comparison for equality. Returns None when both, truely and falsy could not be deteted.
def QgMF(Q6kx): if Q6kx.type == 'false': return False elif Q6kx.type == 'true': return True elif Q6kx.type == 'eq' or Q6kx.type == 'strict_eq': return DirV(Q6kx[0], Q6kx[1]) elif Q6kx.type == 'ne' or Q6kx.type == 'strict_ne': return TE6f(DirV(Q6kx[0], Q6kx[1])) elif Q...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LMq3():\n return lambda WKvO, LVAh: WKvO is None and LVAh is None", "def gZFB(YKHO, Elif: Any, uwIU: bool, InF8: bool, ooMD: bool) -> bool:\n if Elif is VSkA:\n return InF8\n else:\n return ooMD", "def hWLx(jzdc, Fg_i) -> ooBt:\n if jzdc is None and Fg_i is not None:\n retu...
[ "0.6101397", "0.6065148", "0.5971177", "0.5818082", "0.5791036", "0.57446253", "0.5739829", "0.57344645", "0.57158965", "0.5672866", "0.5662876", "0.56485736", "0.5631201", "0.5604544", "0.56041086", "0.5596076", "0.5594935", "0.557549", "0.55738163", "0.55508894", "0.5510356...
0.0
-1
This method compares two nodes from the tree regarding equality. It supports boolean, string and number type compares
def DirV(jzdc, Fg_i): if jzdc.type == Fg_i.type: if jzdc.type in ('string', 'number'): return jzdc.value == Fg_i.value elif jzdc.type == 'true': return True elif Fg_i.type == 'false': return False elif jzdc.type in ('true', 'false') and Fg_i.type in ('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n if isinstance(Elif, NAfv):\n if YKHO.branch != Elif.branch:\n return False\n return YKHO.equal(Elif, True)", "def xa14(YKHO, zO88):\n return uGiv(YKHO._nl) == uGiv(zO88._nl)", "def xa14(YKHO, Elif):\n return type(Elif) is type(YKHO) and YKHO._node == El...
[ "0.7555085", "0.7372687", "0.73167366", "0.73098403", "0.73047656", "0.73028636", "0.72682065", "0.7252516", "0.72335356", "0.7221347", "0.72205496", "0.72205496", "0.72205496", "0.72205496", "0.72205496", "0.72205496", "0.7214102", "0.7208285", "0.7193097", "0.71870273", "0....
0.8253988
0
This method tries to combine a block with multiple statements into one semicolon statement with a comma expression containing all expressions from the previous block. This only works when the block exclusively consists of expressions as this do not work with other statements. Still this conversion reduces the size impa...
def N2UX(Q6kx): if Q6kx == None or Q6kx.type != 'block': return Q6kx ewCu = 0 for aUGN in Q6kx: if aUGN is None: pass elif aUGN.type != 'semicolon': return Q6kx else: ewCu = ewCu + 1 if ewCu == 1: return Q6kx M6hN = o7DN.Nod...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qPEo(gtuX):\n zFiD = gtuX\n zdR_ = len(zFiD) - 1\n EmMj = zFiD.find(':')\n while -1 < EmMj < zdR_:\n h3Aq = zFiD[:EmMj]\n if h3Aq.count('{') <= h3Aq.count('}') and h3Aq.count('[') <= h3Aq.count(']') and (h3Aq.count('(') <= h3Aq.count(')')) and (not ipu1.search(h3Aq)):\n yie...
[ "0.58374995", "0.5631562", "0.5576309", "0.5565494", "0.5463897", "0.545205", "0.539962", "0.5356558", "0.5337069", "0.53354645", "0.5331331", "0.53221965", "0.53199965", "0.5310254", "0.53087753", "0.52929866", "0.5288631", "0.52581227", "0.5233036", "0.5222378", "0.5207672"...
0.69330513
0
Combines a package variable (e.g. foo.bar.baz) into one string
def N6FP(Q6kx): Aofo = [Q6kx.value] _AKB = Q6kx.parent while _AKB.type == 'dot': Aofo.append(_AKB[1].value) _AKB = _AKB.parent return '.'.join(Aofo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sawn(M_u8: tuple, Nd61: bool=True):\n Kh7z = []\n for jY0L in M_u8[1:]:\n mWFP, wEf2 = jY0L\n if (wEf2 is None) | (wEf2 == ''):\n Kh7z.append(f'{jY0L[0]:}')\n elif isinstance(jY0L[1], int):\n Kh7z.append(f'{jY0L[0]:}[{jY0L[1]:}]')\n else:\n Kh7...
[ "0.60947293", "0.6041046", "0.6024426", "0.5999857", "0.59969574", "0.5991395", "0.5947414", "0.59314454", "0.59171647", "0.5881491", "0.58723235", "0.5850775", "0.58118504", "0.5741184", "0.573696", "0.57123196", "0.56906366", "0.56648034", "0.5645579", "0.5644551", "0.56299...
0.619069
0
Returns a final set of classes after resolving dependencies
def cjRz(YKHO): if YKHO.__included: return YKHO.__included TgYk.info('Detecting class dependencies...') TgYk.indent() xUwc = set() for MaWQ in YKHO.__required: YKHO.__resolveDependencies(MaWQ, xUwc) for MaWQ in YKHO.__excluded: if MaWQ in xUwc: xUwc.remove(MaW...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KndY(YKHO):\n YKHO._load_classes()\n return YKHO._classes", "def Uh81(YKHO):\n YmHP = _B3H(YKHO.context)\n KndY = MXTJ.classRegistry.getClassesThatImplement(YmHP)\n return [{'path': pmON, 'url': pmON.replace('.', '/')} for pmON, rV9y in KndY]", "def WWoh():\n return bgK6.values()", "def...
[ "0.72619057", "0.71617734", "0.7161297", "0.70621157", "0.7057539", "0.7035836", "0.6912987", "0.6895152", "0.687199", "0.6841678", "0.6833756", "0.6829031", "0.68267405", "0.68267405", "0.68267405", "0.68267405", "0.68267405", "0.68267405", "0.68191975", "0.6818554", "0.6805...
0.7080152
3
Test sorting the scores.
def J77O(YKHO): ODP9 = PfM8.Highscore('file_test.txt') v_nO = ['12:1', '1:2'] Ylbp = ODP9.sort_scores(v_nO) kLQb = ['1:2', '12:1'] YKHO.assertEqual(Ylbp, kLQb) Hy7s.remove('file_test.txt')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ska6(YKHO):\n Aofo = ysIb([1, 57, 3, 45, 20, 67, 8, 9, 9, 9, 3, 2], 100)\n YKHO.assertEqual([67, 57, 45, 20, 9, 9, 9, 8, 3, 3, 2, 1], Aofo)", "def u20a(YKHO):\n Aofo = IoJf([89, 40, 87, 12], 100)\n YKHO.assertEqual(Aofo, [89, 87, 40, 12])", "def hRgv(YKHO):\n return sorted(YKHO.score_map.ite...
[ "0.74791414", "0.7269526", "0.71854", "0.7054867", "0.7043896", "0.7006528", "0.6910763", "0.69036126", "0.68490773", "0.68460673", "0.68283737", "0.68026096", "0.67627686", "0.6719729", "0.6606329", "0.6464164", "0.64472896", "0.6447101", "0.6410245", "0.63979346", "0.637622...
0.7761043
0
Clear any data displayed by this item and display new data.
def gewE(YKHO, *qIxc, **PECO): if PECO.get('stepMode', None) is True: qmLP.warn('stepMode=True is deprecated and will result in an error after October 2022. Use stepMode="center" instead.', DeprecationWarning, stacklevel=3) if 'decimate' in PECO.keys(): qmLP.warn('The decimate keyword has been d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7Bk(YKHO):\n YKHO.set_items({})", "def Y7Bk(YKHO):\n YKHO.set_items({})", "def Cj2W(YKHO):\n YKHO.data = []", "def Y7Bk(YKHO):\n YKHO.data = []", "def Y7Bk(YKHO):\n YKHO.data = []", "def Y7Bk(YKHO):\n YKHO.data = []", "def jDZZ(YKHO):\n pass", "def jDZZ(YKHO):\n pass", ...
[ "0.77681255", "0.77681255", "0.7374574", "0.7290712", "0.7290712", "0.7269541", "0.72652227", "0.72652227", "0.72623634", "0.7207062", "0.719728", "0.7174403", "0.71549815", "0.71549815", "0.7154722", "0.71514845", "0.7150915", "0.7122185", "0.7112725", "0.71028054", "0.71028...
0.0
-1
Make an empty board df (no analysis)
def tiXm(ogq6=None): if isinstance(ogq6, str): bSIH = S_qI(ogq6) elif ogq6 is None: bSIH = fM6B else: bSIH = ogq6 jQ3Z = rLdf.DataFrame(bSIH) jQ3Z.columns = ['piece', 'color', 'square'] jQ3Z = jQ3Z.set_index('square') jQ3Z[['free', 'attacking', 'just_covering', 'defen...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AFif():\n return [['.' for bGrB in range(9)] for bGrB in range(9)]", "def AFif():\n return [10 * [0] for bGrB in wPFE(0, 10)]", "def T3Ni(YKHO):\n iBIi = dict()\n for rdlD in range(-1, _apf.NUM_OF_ROWS + 1):\n for iVRZ in range(-1, _apf.NUM_OF_COLUMNS + 1):\n iBIi[rdlD, iVRZ] ...
[ "0.70947003", "0.68257886", "0.6753454", "0.6751765", "0.6719404", "0.67039335", "0.6644689", "0.6603966", "0.6556983", "0.65432715", "0.65183973", "0.64902335", "0.64468175", "0.64125764", "0.64125764", "0.64055955", "0.63498247", "0.63498247", "0.63498247", "0.63475454", "0...
0.74399495
0
Scatter features of single sample.
def TDJQ(YKHO, Z4Le, NNky): g_NO = ht2j.zeros(YKHO.in_channels, YKHO.nx * YKHO.ny, dtype=Z4Le.dtype, device=Z4Le.device) _0VL = NNky[:, 2] * YKHO.nx + NNky[:, 3] _0VL = _0VL.long() bp7b = Z4Le.t() g_NO[:, _0VL] = bp7b g_NO = g_NO.view(1, YKHO.in_channels, YKHO.ny, YKHO.nx) return g_NO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NlMn(YKHO, WKvO):\n raise NotImplementedError", "def lvLh(wDWA, HR8K, ltH8):\n nPrm = jKRk(wDWA, [HR8K, ltH8])\n for AU8u in nPrm:\n WKvO = AU8u[0]\n LVAh = AU8u[1]\n QrM1.scatter(WKvO, LVAh)\n QrM1.xlabel(HR8K)\n QrM1.ylabel(ltH8)\n QrM1.show()", "def wR4G(YKHO, YEnM...
[ "0.67227805", "0.6670439", "0.659041", "0.65117526", "0.6214558", "0.6199972", "0.6164954", "0.615238", "0.61389536", "0.6129909", "0.61157954", "0.608678", "0.60619986", "0.60605574", "0.60442424", "0.5957093", "0.5943284", "0.5886792", "0.5858855", "0.582369", "0.5767281", ...
0.0
-1
Scatter features of single sample.
def wo8r(YKHO, Z4Le, NNky, Ep8u): bVuu = [] for hDXz in range(Ep8u): g_NO = ht2j.zeros(YKHO.in_channels, YKHO.nx * YKHO.ny, dtype=Z4Le.dtype, device=Z4Le.device) BHML = NNky[:, 0] == hDXz oPSc = NNky[BHML, :] _0VL = oPSc[:, 2] * YKHO.nx + oPSc[:, 3] _0VL = _0VL.type(ht2j....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NlMn(YKHO, WKvO):\n raise NotImplementedError", "def lvLh(wDWA, HR8K, ltH8):\n nPrm = jKRk(wDWA, [HR8K, ltH8])\n for AU8u in nPrm:\n WKvO = AU8u[0]\n LVAh = AU8u[1]\n QrM1.scatter(WKvO, LVAh)\n QrM1.xlabel(HR8K)\n QrM1.ylabel(ltH8)\n QrM1.show()", "def wR4G(YKHO, YEnM...
[ "0.6722228", "0.66716754", "0.65914255", "0.65111935", "0.6217239", "0.619657", "0.61611915", "0.6154266", "0.6138971", "0.61305815", "0.6118717", "0.60831964", "0.60649276", "0.6061826", "0.60409385", "0.5955969", "0.5943767", "0.5888824", "0.5856741", "0.5825958", "0.577053...
0.0
-1
The mean is found by summing all numbers in a dataset and dividing by the total number of datapoints.
def JBMS(YKHO, jzdc, jDK_=0): try: TK2h = oyIN.mean(jzdc, jDK_) return TK2h except Exception as e: print('An exception occurred. Here is the message:\n', tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JBMS(__n6):\n return sum(__n6) / len(__n6)", "def JBMS(nPrm):\n return sum(nPrm) / len(nPrm)", "def JBMS(nPrm):\n exwG = len(nPrm)\n if exwG < 1:\n raise ValueError('mean requires at least one data point')\n return sum(nPrm) / float(exwG)", "def JBMS(nPrm):\n exwG = len(nPrm)\n ...
[ "0.85770583", "0.8190198", "0.80135745", "0.80135745", "0.80135745", "0.80135745", "0.79976565", "0.79897594", "0.7978527", "0.7978527", "0.7978527", "0.7978527", "0.7978527", "0.7953833", "0.7900592", "0.78405315", "0.7821496", "0.7754988", "0.77376103", "0.7687646", "0.7680...
0.0
-1
The RMS value of a set of values is the square root of the arithmetic mean of the squares of the values, or the square of the function that defines the continuous waveform. In the case of the RMS statistic of a random process, the expected value is used instead of the mean.
def ii_g(YKHO, jzdc, jDK_=0): try: TK2h = oyIN.sqrt(oyIN.mean(jzdc ** 2, jDK_)) return TK2h except Exception as e: print('An exception occurred. Here is the message:\n', tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ii_g(nPrm):\n return PZyS(JBMS(Fyji(nPrm)))", "def ii_g(YKHO):\n return oyIN.sqrt(oyIN.mean(YKHO.samples ** 2))", "def ii_g(WKvO):\n return oyIN.sqrt(oyIN.mean(WKvO ** 2))", "def ii_g(WKvO):\n return oyIN.sqrt(oyIN.mean(WKvO) ** 2)", "def ii_g(YKHO, nPrm):\n return oyIN.sqrt(oyIN.mean(oy...
[ "0.7763936", "0.7741665", "0.7697372", "0.7687017", "0.748131", "0.7239607", "0.71335113", "0.7130906", "0.70938504", "0.70545095", "0.70142275", "0.6969705", "0.69627357", "0.69614977", "0.693725", "0.693725", "0.68934935", "0.6860339", "0.68260795", "0.681763", "0.6756506",...
0.6256219
52
The absolute mean value of a set of values is the arithmetic mean of all the absolute values in a given set of numbers.
def ca2h(YKHO, jzdc, jDK_=0): try: TK2h = oyIN.mean(oyIN.absolute(jzdc), jDK_) return TK2h except Exception as e: print('An exception occurred. Here is the message:\n', tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ca2h(hkxX):\n fXJ2 = map(lambda WKvO: abs(WKvO), hkxX)\n wjRY = sum(fXJ2)\n return wjRY / float(len(fXJ2))", "def JBMS(hkxX):\n return sum(hkxX) / len(hkxX)", "def JBMS(hkxX):\n return sum(hkxX) / len(hkxX)", "def JBMS(hkxX):\n return sum(hkxX) / len(hkxX)", "def JBMS(hkxX: list) -> f...
[ "0.8138703", "0.7526512", "0.7526512", "0.75125116", "0.75087076", "0.74637455", "0.73948574", "0.7356081", "0.7349461", "0.7314073", "0.73076326", "0.7303", "0.7283659", "0.72714263", "0.72160614", "0.7181123", "0.7095061", "0.7029812", "0.7008774", "0.69651896", "0.6954325"...
0.6635014
55
Standard deviation is a measure of the amount of variation or dispersion of a set of values. A low standard deviation indicates that the values tend to be close to the mean of the set, while a high standard deviation indicates that the values are spread out over a wider range.
def M1Jx(YKHO, jzdc, jDK_=0): try: TK2h = oyIN.std(jzdc, jDK_) return TK2h except Exception as e: print('An exception occurred. Here is the message:\n', tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M1Jx(hkxX):\n return Dz7Y.stdev(hkxX)", "def M1Jx(nPrm):\n nPrm = list(nPrm)\n exwG = len(nPrm)\n if exwG == 0:\n raise ValueError('cannot compute stdev of empty set')\n r8hN = JBMS(nPrm)\n KG9w = sum(((WKvO - r8hN) ** 2 for WKvO in nPrm))\n return (KG9w / exwG) ** 0.5", "def mJ...
[ "0.7904988", "0.77778894", "0.75842506", "0.7580013", "0.7577894", "0.7556926", "0.75102836", "0.748997", "0.7430069", "0.74258053", "0.7398506", "0.7390324", "0.73563176", "0.7353211", "0.73526746", "0.7349207", "0.7316216", "0.73011744", "0.7293433", "0.7278448", "0.7264601...
0.0
-1
Skewness is a measure of the asymmetry of the distribution of a realvalued observations about its mean. Skewness can be positive, zero, negative, or undefined.
def uRwD(YKHO, jzdc, jDK_=0): try: TK2h = Zxt2.stats.skew(jzdc, jDK_) return TK2h except Exception as e: print('An exception occurred. Here is the message:\n', tTpl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qZfs(YKHO):\n nPrm, la2M = (YKHO.data, YKHO.std_dev)\n if len(nPrm) > 1 and la2M > 0:\n return sum(YKHO._get_pow_diffs(3)) / float((len(nPrm) - 1) * la2M ** 3)\n else:\n return YKHO.default", "def kbKl(zgsA):\n from scipy.stats import skew\n Kxs4 = skew(zgsA)\n return Kxs4", ...
[ "0.7729877", "0.76600724", "0.7490222", "0.74613357", "0.7412044", "0.7348392", "0.73275095", "0.71618694", "0.7128338", "0.7116602", "0.70307004", "0.698244", "0.68549186", "0.6847329", "0.68180645", "0.67310005", "0.67287135", "0.6680986", "0.6647672", "0.6613192", "0.65665...
0.648571
22
The mean absolute deviation is the average of the absolute deviations from a central point. It is a summary statistic of statistical dispersion or variability.
def cEH_(YKHO, jzdc, jDK_=0): try: if jDK_ == 0: TK2h = oyIN.mean(oyIN.abs(jzdc - oyIN.mean(jzdc, jDK_)), jDK_) else: TK2h = oyIN.mean(oyIN.abs(jzdc - oyIN.mean(jzdc, jDK_).reshape(jzdc.shape[0], 1)), jDK_) return TK2h except Exception as e: print('An exce...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W4jA(YKHO):\n exwG = YKHO.y_actual.shape[0]\n Emt7 = oyIN.sum(oyIN.abs(YKHO.y_predicted - YKHO.y_actual))\n return Emt7 / exwG", "def mMqL(YKHO):\n lco2 = YKHO._get_training_element_difference()\n WNJo = oyIN.abs(lco2)\n gU0L = range(WNJo.shape[0])\n JBMS = []\n ifkm = []\n for d6p...
[ "0.74120986", "0.7364755", "0.72802734", "0.72637486", "0.7258898", "0.72226214", "0.7181198", "0.7130369", "0.7069198", "0.70412165", "0.6984613", "0.69712466", "0.6965632", "0.6965632", "0.6934896", "0.6901928", "0.6876443", "0.685505", "0.68419945", "0.6834477", "0.6832381...
0.7286862
2
The median absolute deviation of a data set is the median of the absolute deviations from a central point. It is a summary statistic of statistical dispersion or variability.
def KEHh(YKHO, jzdc, jDK_=0): try: if jDK_ == 0: TK2h = oyIN.median(oyIN.abs(jzdc - oyIN.median(jzdc, jDK_)), jDK_) else: TK2h = oyIN.median(oyIN.abs(jzdc - oyIN.median(jzdc, jDK_).reshape(jzdc.shape[0], 1)), jDK_) return TK2h except Exception as e: print(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wdiU(YKHO):\n global median\n aFu4 = sorted(YKHO.data)\n WKvO = float(BjRM(aFu4))\n return BjRM([abs(WKvO - Ty9i) for Ty9i in aFu4])", "def ycQO(YKHO):\n R3M2 = oyIN.median(YKHO.noise_heights, axis=0)\n fPjl = oyIN.abs(YKHO.noise_heights - R3M2)\n return oyIN.median(fPjl, axis=0)", "de...
[ "0.79307175", "0.7893044", "0.77791834", "0.77121246", "0.7582942", "0.7535364", "0.75015795", "0.7471256", "0.74224037", "0.73561436", "0.7295676", "0.7270407", "0.7255781", "0.7253201", "0.7223526", "0.72213984", "0.7221168", "0.71774143", "0.7176169", "0.7160655", "0.71585...
0.7316412
10
Creates and loads pretrained deeplab model.
def FIMM(YKHO, VLXu, zi3C=513): YKHO.graph = ZylS.Graph() YKHO.INPUT_SIZE = zi3C with YKHO.graph.as_default(): QPEZ = ZylS.GraphDef() with ZylS.gfile.GFile(VLXu, 'rb') as hOYR: fHkp = hOYR.read() QPEZ.ParseFromString(fHkp) ZylS.import_graph_def(QPEZ, name=...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O5RJ(YKHO) -> None:\n YKHO.model = ADDA(encoder_name='resnet34', activation='sigmoid')\n YKHO.model.load_state_dict(ht2j.load(f'{Odyn}/model/seg_model.pt'))\n YKHO.model.eval()", "def uyMl():\n NtnT = cvxQ.DeviceOption()\n NtnT.device_type = cvxQ.CPU\n RzlV = 'out/model_init.pb'\n U94V =...
[ "0.7648836", "0.71454567", "0.7105731", "0.70605075", "0.7048734", "0.70357805", "0.70135975", "0.698738", "0.6972397", "0.6947987", "0.6947987", "0.69337046", "0.6923191", "0.6895573", "0.688701", "0.6884813", "0.6876558", "0.68761164", "0.68481755", "0.68375784", "0.6836809...
0.0
-1
(Output) The unique identifier for this configuration.
def mWFP(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ShR8(YKHO):\n return YKHO._config[vLVn]", "def CpvB(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'unique_identifier')", "def ShR8(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'unique_id')", "def ShR8(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'unique_id')", "def ShR8(YKH...
[ "0.8712628", "0.83495605", "0.8283731", "0.8283731", "0.8283731", "0.8246132", "0.8215939", "0.81676733", "0.8121417", "0.8112907", "0.8026284", "0.8020851", "0.7970032", "0.792843", "0.792843", "0.792843", "0.792843", "0.792843", "0.792843", "0.792843", "0.792843", "0.7928...
0.0
-1
The processing state of the extension instance.
def QTBn(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'state')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sRhP(YKHO):\n return YKHO._processing", "def Bf_4(YKHO) -> h8nf['outputs.ExtensionsInstanceRuntimeDataProcessingState']:\n return qe4Y.get(YKHO, 'processing_state')", "def gEG1(YKHO):\n return YKHO._processing_on", "def Z0WI(YKHO):\n return YKHO.processing", "def JeIJ(YKHO):\n return YKH...
[ "0.79620475", "0.7783855", "0.7441318", "0.7319609", "0.70975256", "0.69109344", "0.6839294", "0.6751015", "0.67338455", "0.6666275", "0.66270876", "0.65819263", "0.6518116", "0.65089583", "0.6415735", "0.6375391", "0.6369536", "0.6345567", "0.6342593", "0.63307756", "0.63307...
0.0
-1
The value to put in the HTTP location header of the response.
def Rci7(YKHO) -> str: return qe4Y.get(YKHO, 'location')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WxBe(YKHO):\n if YKHO._response.is_redirect:\n if 'location' in YKHO._response.headers:\n return YKHO.make_absolute(YKHO._response.headers['location'])\n return ''", "def jbux(YKHO, WmM4=''):\n if YKHO.status not in (300, 301, 302, 303, 307):\n return WmM4\n return YKHO.g...
[ "0.71374243", "0.6751298", "0.6693866", "0.66749936", "0.64960635", "0.61563873", "0.6146553", "0.6090482", "0.6090482", "0.6079014", "0.6073842", "0.6032693", "0.59797996", "0.5979", "0.5975804", "0.5947064", "0.5941984", "0.59392756", "0.5895284", "0.58719563", "0.58719563"...
0.0
-1
Userdefined ID of the Cloud Run service.
def liCf(YKHO) -> str: return qe4Y.get(YKHO, 'service_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nBcv(YKHO):\n pass", "def liCf(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'service_id')", "def liCf(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'service_id')", "def liCf(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'service_id')", "def liCf(YKHO) -> qe4Y.Input[str]:\n r...
[ "0.7203342", "0.72019535", "0.72019535", "0.72019535", "0.72019535", "0.72019535", "0.72019535", "0.71506673", "0.71506673", "0.71506673", "0.71506673", "0.71506673", "0.706156", "0.69795555", "0.69759053", "0.69566035", "0.69566035", "0.69566035", "0.69566035", "0.69566035", ...
0.74501956
0
Optional. Userprovided region where the Cloud Run service is hosted. Defaults to `uscentral1` if not supplied.
def zn0c(YKHO) -> h8nf[str]: return qe4Y.get(YKHO, 'region')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zn0c(YKHO) -> h8nf[str]:\n return N4yN.get('region') or i5mz.get_env('ALICLOUD_REGION')", "def OX6e(aGvo, GPtr):\n return True", "def oMHX():\n return P7hP()[:-1]", "def kuab():\n return iVGz.session.Session().region_name", "def BbA_():\n NRWD = Yn3K.Popen('gcloud app describe', stdout=Y...
[ "0.6605744", "0.6284668", "0.62552416", "0.61879593", "0.6126931", "0.61236024", "0.60935855", "0.60935855", "0.6037706", "0.6014215", "0.6006062", "0.59762424", "0.59494275", "0.59494275", "0.59494275", "0.59494275", "0.59494275", "0.59494275", "0.59494275", "0.59494275", "0...
0.61059666
7
Converts indices of words to embeddings.
def oDiW(YKHO, DNs0): if YKHO._config.train_embed: SppC = YKHO._masked_matrix else: SppC = YKHO._matrix return ZylS.gather(SppC, DNs0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OhOh(YKHO, _0VL):\n return [YKHO.corpus.dictionary.idx2word[QyVM] for QyVM in _0VL]", "def KVH6(YKHO, _0VL):\n CzSl = YKHO.word_embeddings(_0VL)\n if YKHO.transformation is not None:\n return YKHO.transformation.forward(CzSl)\n else:\n return CzSl", "def OCWR(YKHO, _0VL):\n ret...
[ "0.739897", "0.739177", "0.7295204", "0.71042717", "0.71004593", "0.69838965", "0.68981504", "0.68820995", "0.6765715", "0.6763044", "0.6761149", "0.6713703", "0.66766775", "0.66766775", "0.6656779", "0.66391826", "0.6597247", "0.6588508", "0.6551756", "0.6529262", "0.6520953...
0.0
-1
Converts list of indices of words to embeddings.
def uNEB(YKHO, ZBBn): if YKHO._config.train_embed: SppC = YKHO._masked_matrix else: SppC = YKHO._matrix return ZylS.gather(SppC, ZBBn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OCWR(YKHO, _0VL):\n return [YKHO.get_word(d6pt) for d6pt in _0VL]", "def c0aT(YKHO, OLx9):\n return [YKHO.id2word[UFzj] for UFzj in OLx9]", "def ouww(V22M: List[str], LtLv: Dict[str, int]):\n qC0P = []\n for yzQ0 in V22M:\n if yzQ0 in LtLv:\n qC0P.append(LtLv[yzQ0])\n e...
[ "0.7228165", "0.7173228", "0.71569204", "0.7118138", "0.6960348", "0.69012207", "0.6870192", "0.6844925", "0.68010443", "0.6759392", "0.6675117", "0.6665266", "0.66360897", "0.66118646", "0.65765893", "0.6572822", "0.65369815", "0.6520567", "0.64877737", "0.6466723", "0.64541...
0.0
-1
Returns whether the given word exists in the vocabulary.
def wNGh(YKHO, GIN8): return GIN8 in YKHO.word2idx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, GIN8: str) -> bool:\n return GIN8 in YKHO._vocabulary", "def wNGh(Emd4, GIN8):\n return True if Emd4.get_word(GIN8) else False", "def KDBW(YKHO, GIN8):\n return YKHO.__contains__(GIN8)", "def cAWG(YKHO, GIN8):\n for y_o0 in YKHO.__wordbook:\n for rGNu in y_o0.forward:\n ...
[ "0.8361868", "0.83010983", "0.8239315", "0.7927227", "0.79147035", "0.78561324", "0.78217584", "0.7746583", "0.7709024", "0.7681315", "0.76134443", "0.75918716", "0.7527323", "0.7498226", "0.7387266", "0.7350121", "0.72658384", "0.726548", "0.7234615", "0.722661", "0.7218702"...
0.86308
0
Returns words that correspond to given indices respectively.
def sBAw(YKHO, DNs0): if not BfDw.is_list_or_ndarray(DNs0): raise UAju.EmbedMatrixError('must be either a list or a numpy array: %s' % DNs0) for or8S in DNs0: if not BfDw.is_int_or_npint(or8S): raise UAju.EmbedMatrixError('must be an int: %s' % or8S) for or8S in DNs0: if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OhOh(YKHO, _0VL):\n return [YKHO.corpus.dictionary.idx2word[QyVM] for QyVM in _0VL]", "def OCWR(YKHO, _0VL):\n return [YKHO.get_word(d6pt) for d6pt in _0VL]", "def xrj2(YKHO, _0VL):\n return [''.join([YKHO.index_to_char(int(d6pt)) for d6pt in rKoz]) for rKoz in _0VL]", "def pv4K(bS0K, ED_H, uZPT...
[ "0.79587984", "0.7822144", "0.7375679", "0.73629373", "0.725697", "0.709635", "0.70053047", "0.69703054", "0.69657725", "0.6857427", "0.6776714", "0.67385775", "0.6708451", "0.66819674", "0.66602993", "0.6643593", "0.6621417", "0.6621417", "0.6526117", "0.6514511", "0.6509954...
0.64362997
23
Returns word that corresponds to the given index.
def cdIb(YKHO, or8S): if not BfDw.is_int_or_npint(or8S): raise UAju.EmbedMatrixError('must be an int: %s' % or8S) if not YKHO.idx_exists(or8S): raise UAju.EmbedMatrixError('index does not exist: %s' % or8S) return YKHO.idx2word[or8S]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eIcJ(YKHO, d6pt):\n return YKHO.index_to_word[d6pt] if d6pt < YKHO.size and d6pt >= 0 else 'UNK'", "def eIcJ(YKHO, d6pt: int) -> str:\n try:\n return YKHO.sentence[d6pt]\n except IndexError:\n return ''", "def eIcJ(YKHO, or8S):\n return YKHO.idx2word[or8S]", "def eIcJ(YKHO, or8S...
[ "0.83982545", "0.8363199", "0.831742", "0.8230109", "0.81502104", "0.81239206", "0.80178463", "0.79558986", "0.7906767", "0.77617884", "0.75652486", "0.72719955", "0.7244284", "0.7132905", "0.71284163", "0.70104456", "0.6977091", "0.69255203", "0.68898505", "0.683467", "0.681...
0.76083773
10
Read an input file and convert it to numpy
def gNnK(Ux0P): jQ3Z = rLdf.read_csv(Ux0P) return jQ3Z.to_numpy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gNnK(Ux0P):\n jQ3Z = rLdf.read_csv(Ux0P)\n return jQ3Z.to_numpy()", "def IU2f(Ux0P):\n WbAn = oyIN.genfromtxt(Ux0P)\n return WbAn", "def Tm8V(_JNu):\n d6hw = oyIN.loadtxt(_JNu, dtype='i', delimiter=',')\n return d6hw", "def yLtf(O38l):\n with open(O38l, 'r') as eHNT:\n return ...
[ "0.77092195", "0.766698", "0.761569", "0.75609946", "0.7555718", "0.74818724", "0.73591596", "0.7342849", "0.7322104", "0.7302866", "0.7287494", "0.72445196", "0.71897244", "0.71715", "0.7167652", "0.7162116", "0.7159371", "0.71592474", "0.71544987", "0.7140216", "0.7103048",...
0.7766944
0
Return disk usage statistics about the given path. Returned values is a named tuple with attributes 'total', 'used' and 'free', which are the amount of total, used and free space, in bytes.
def WhiX(pmON: str) -> Y6M5: eQSh = Hy7s.statvfs(pmON) ftQ2 = eQSh.f_bavail * eQSh.f_frsize wjRY = eQSh.f_blocks * eQSh.f_frsize XR14 = (eQSh.f_blocks - eQSh.f_bfree) * eQSh.f_frsize return Y6M5(wjRY, XR14, ftQ2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WhiX(pmON):\n aevO = Hy7s.statvfs(pmON)\n ftQ2 = aevO.f_bavail * aevO.f_frsize\n wjRY = aevO.f_blocks * aevO.f_frsize\n XR14 = (aevO.f_blocks - aevO.f_bfree) * aevO.f_frsize\n try:\n DuZT = float(XR14) / wjRY * 100\n except ZeroDivisionError:\n DuZT = 0\n return e0rX(wjRY, XR...
[ "0.8667578", "0.8375144", "0.8320224", "0.82853234", "0.8278363", "0.78303796", "0.77691996", "0.77659297", "0.7747529", "0.7701901", "0.7619178", "0.7597412", "0.7478996", "0.7426707", "0.7371676", "0.733064", "0.73211074", "0.73174196", "0.7285323", "0.72722906", "0.7172743...
0.84123164
1
Filter out port attributes not required for a create.
def a0w4(bIwZ): DWVV(bIwZ, ['status'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NWjH(Emd4, bIwZ):\n Emd4._fixup_allowed_ipaddress_pairs(bIwZ[XGce.ADDRESS_PAIRS])\n Emd4._filter_unmapped_null(bIwZ)\n sLTM.try_del(bIwZ, ['status'])", "def NWjH(Emd4, bIwZ, QpfX):\n Emd4._add_security_groups(bIwZ, QpfX)\n Emd4._fixup_allowed_ipaddress_pairs(bIwZ[XGce.ADDRESS_PAIRS])\n Emd4...
[ "0.7976725", "0.7910496", "0.77089685", "0.70479906", "0.6474386", "0.6399114", "0.6374349", "0.6297523", "0.6297523", "0.6279424", "0.62696224", "0.62696224", "0.62320286", "0.6044228", "0.6044228", "0.59579545", "0.57102233", "0.57102233", "0.5537493", "0.55306584", "0.5477...
0.6686689
4
This function is splitting the data in ttrain and test set.
def sKDl(YKHO, nPrm, UXqs): Tnap, Psz5, e3Zm, _nuU = bHtP(nPrm['extra_clean_description'], UXqs, test_size=0.2, random_state=9) return (Tnap, Psz5, e3Zm, _nuU)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hhTY(YKHO):\n EvQg = []\n QOe9 = []\n for ZfUD in YKHO.data:\n if ZfUD[0] == 'train':\n EvQg.append(ZfUD)\n else:\n QOe9.append(ZfUD)\n return (EvQg, QOe9)", "def Xt2A(nPrm):\n h3qM = []\n for YRbF, tLuO in enumerate(nPrm):\n if YRbF < len(nPrm) - ...
[ "0.8214286", "0.8048349", "0.8017922", "0.80144453", "0.7988234", "0.79649216", "0.79465896", "0.7927835", "0.78085726", "0.78075457", "0.7786026", "0.7783021", "0.7771041", "0.7769712", "0.77272457", "0.77271485", "0.7724927", "0.7711633", "0.7703105", "0.7691354", "0.768180...
0.0
-1
Get parameter for x axis and bias.
def rbFG(F93f, _N6A, jzdc, Fg_i): cDK5 = [200, 5000] XxdY = 100 dtUd = ['ew_ece_bin', 'em_ece_sweep'] GPtr = {} GPtr['num_reps'] = 1000 GPtr['num_bins'] = 15 GPtr['split'] = '' GPtr['norm'] = 2 GPtr['calibration_method'] = 'no_calibration' GPtr['bin_method'] = '' NArs = AS1E(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TAG7(YKHO):\n if YKHO.heteroNoise:\n return oyIN.concatenate((oyIN.asarray(YKHO.X[YKHO.indices]).flatten(), oyIN.asarray([YKHO.linVariance]), oyIN.asarray([YKHO.biasVariance]), oyIN.asarray(YKHO.d[YKHO.indices, :]).flatten()))\n else:\n return oyIN.concatenate((oyIN.asarray(YKHO.X[YKHO.indi...
[ "0.6692506", "0.6534884", "0.6511844", "0.6511844", "0.64727354", "0.6465104", "0.64597696", "0.6448557", "0.64468575", "0.6443349", "0.6419774", "0.6419774", "0.6373954", "0.632664", "0.63086534", "0.6286414", "0.6283542", "0.62591153", "0.62591153", "0.6253674", "0.623673",...
0.0
-1
Return the path to an existing first read FASTQ file.
def LeSc(YKHO, gv2B: bool=True) -> GkAb: YKHO.fastq_first.touch() if gv2B: zVm7.make_old(YKHO.fastq_first) return YKHO.fastq_first
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rKRY(bNKA, mvm2, BpKk):\n LuAM = ZbWC.sub('.fastq.gz$', '_fastdup.txt', BpKk.filename)\n return Hy7s.path.join(SKrg(bNKA, mvm2), LuAM)", "def GmjF() -> str:\n pass", "def SrBd(kUZF, tzZx):\n Xl0D = '/DMel_FASTA_files/'\n _bsB = Wde3 + Xl0D + tzZx + '.fasta'\n try:\n q3JQ = open(_bs...
[ "0.64432764", "0.63138103", "0.62969416", "0.6078847", "0.60162663", "0.594425", "0.5918437", "0.5864936", "0.585598", "0.5782893", "0.57631755", "0.57392496", "0.57264227", "0.5707574", "0.5705092", "0.5699438", "0.56912106", "0.5680907", "0.56537366", "0.56466144", "0.56331...
0.68738544
0
Return the path to an existing second read FASTQ file.
def tc62(YKHO, gv2B: bool=True) -> GkAb: YKHO.fastq_second.touch() if gv2B: zVm7.make_old(YKHO.fastq_second) return YKHO.fastq_second
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GmjF() -> str:\n pass", "def rKRY(bNKA, mvm2, BpKk):\n LuAM = ZbWC.sub('.fastq.gz$', '_fastdup.txt', BpKk.filename)\n return Hy7s.path.join(SKrg(bNKA, mvm2), LuAM)", "def qHtw(XbF6):\n return (XbF6 + '1_sequence.fastq', XbF6 + '2_sequence.fastq')", "def m3eO(Sd0C, v0pW):\n Ryby = tk5m.TwoB...
[ "0.6363623", "0.6232579", "0.62138647", "0.604251", "0.5935035", "0.58114564", "0.5697447", "0.5665715", "0.5638511", "0.5638511", "0.5606499", "0.5603767", "0.5545387", "0.55320793", "0.5527012", "0.5513672", "0.5505073", "0.54405427", "0.54355145", "0.5433852", "0.54270065"...
0.6457136
0
Return the sample id for first sample.
def WB64(): return 'sample_1'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OVu8(YKHO, B85K: int):\n if B85K and (not B85K < 0):\n return YKHO.__session.Sample.find(B85K)", "def OVu8(YKHO, B85K):\n for mvm2 in YKHO.samples:\n if mvm2.sample_id == B85K:\n return mvm2\n raise KeyError('%s: sample not found' % B85K)", "def tLEn():\n return 1", "...
[ "0.71020025", "0.69729024", "0.6964116", "0.6951713", "0.6915219", "0.69126344", "0.6812661", "0.67675805", "0.66757506", "0.66454476", "0.66314965", "0.6627983", "0.65964776", "0.6592525", "0.6589653", "0.65714043", "0.65681404", "0.6532337", "0.6532125", "0.653086", "0.6530...
0.6237141
34
Return the path to a nonexisting spring file.
def Vlwr(u_F7: MockCompressionData) -> GkAb: return u_F7.spring_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fTO2(YKHO) -> GkAb:\n YKHO.spring_path.touch()\n return YKHO.spring_path", "def S9hL(fElV: Path) -> GkAb:\n fElV.touch()\n return fElV", "def aGWJ():\n cLAE = C9U5.VALUES.context_aware.auto_discovery_file_path.Get()\n if cLAE is not None:\n return cLAE\n return b8OL", "def aGW...
[ "0.7107297", "0.6533757", "0.6187186", "0.6187186", "0.61270726", "0.60275924", "0.5959531", "0.58805037", "0.58737797", "0.5845042", "0.58122575", "0.58111906", "0.57839835", "0.578346", "0.5762595", "0.57601", "0.5757543", "0.57502127", "0.57436264", "0.574074", "0.5736601"...
0.5567319
56
Return the path to a nonexisting spring metadata file.
def fhuR(u_F7: MockCompressionData) -> GkAb: return u_F7.spring_metadata_path
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wi21(YKHO):\n return Hy7s.path.join(YKHO.get_config_dir(), 'METADATA')", "def D9jY(oEge):\n return Hy7s.path.join(oEge, 'metadata.json')", "def Wg97(ElnE):\n zte3 = ''\n if ElnE['module_path']:\n zte3 = ElnE['module_path']\n elif ElnE['kernel_module_copy_files']:\n zte3 = Hy7s....
[ "0.6913735", "0.65529853", "0.65383345", "0.64604616", "0.6430875", "0.64028364", "0.63673425", "0.63613296", "0.6257437", "0.6200299", "0.6200299", "0.6191522", "0.61651456", "0.6090409", "0.6072099", "0.6057551", "0.60437036", "0.6020791", "0.6019163", "0.5890973", "0.58602...
0.632946
8
Return the path to an existing fastq flag file.
def fFjd(aW6g: Path) -> GkAb: aW6g.touch() return aW6g
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ObIH(pSbM):\n qHtw = pSbM.get_absolute_location()\n if pSbM.is_compressed():\n JKPS = Hy7s.path.splitext(qHtw)[0]\n else:\n JKPS = qHtw\n if Hy7s.path.splitext(JKPS)[1] == '.fastq':\n JKPS = Hy7s.path.splitext(JKPS)[0]\n return JKPS + '_fastqc.html'", "def rKRY(bNKA, mvm2,...
[ "0.6446136", "0.63869387", "0.63035184", "0.6296684", "0.5963955", "0.5963955", "0.58237857", "0.58237857", "0.5709453", "0.56641674", "0.56521314", "0.5631582", "0.551138", "0.5510333", "0.54975206", "0.54906964", "0.54730546", "0.5463374", "0.5459847", "0.54377073", "0.5430...
0.6215739
4
Create a complete bundle mock for testing decompression. This bundle contains a spring file and a spring metadata file.
def SMgd(JtI0: dict, fTO2: Path, f4gF: Path, mvm2: str) -> dict: bZHH: dict = jth9.deepcopy(JtI0) zpMd: dict = {'path': fTO2.as_posix(), 'archive': False, 'tags': [mvm2, ZviR.SPRING]} jLZR: dict = {'path': f4gF.as_posix(), 'archive': False, 'tags': [mvm2, ZviR.SPRING_METADATA]} bZHH['files'].extend([zpM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RgSO():\n with TMAJ.patch('circup.logger.info'), TMAJ.patch('circup.os.path.isfile', return_value=True), TMAJ.patch('circup.CPY_VERSION', '4.1.2'), TMAJ.patch('circup.tags_data_load', return_value=dict()), TMAJ.patch('circup.DATA_DIR', 'DATA_DIR'):\n wHSX = IYlu.Bundle(GHnL)\n assert repr(wHSX) ==...
[ "0.70955694", "0.6342622", "0.62886506", "0.6022202", "0.594979", "0.59406644", "0.5930454", "0.5827448", "0.5757099", "0.5753509", "0.5643594", "0.55943704", "0.55933714", "0.5592457", "0.55868137", "0.55788004", "0.55696094", "0.5547937", "0.5523389", "0.5514298", "0.550415...
0.66003543
1
Renders the home page.
def kZiy(): return TvZl('index.html', title='Home Page', year=qcWV.now().year)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy():\n return TvZl('homepage.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('home.html')", "def kZiy():\n return TvZl('pages/home.html')", "def kZiy():\n leAC =...
[ "0.86085397", "0.85661966", "0.8562984", "0.84564984", "0.8353822", "0.8353445", "0.832796", "0.83265287", "0.83265287", "0.8311966", "0.83088946", "0.83046836", "0.8296962", "0.82942903", "0.82942903", "0.82872546", "0.8279762", "0.8279762", "0.8279762", "0.8279762", "0.8279...
0.80608845
74
Renders the contact page.
def Mxk0(): return TvZl('contact.html', title='Contact', year=qcWV.now().year, message='Your contact page.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Mxk0():\n bo34.info('User visited the contact page.')\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n return TvZl('contact.html')", "def Mxk0():\n ...
[ "0.85942996", "0.856412", "0.856412", "0.8553042", "0.84771496", "0.84180754", "0.84098697", "0.8347894", "0.8342256", "0.8328687", "0.82468224", "0.82289207", "0.8118483", "0.8117153", "0.8067011", "0.80406195", "0.8032139", "0.80279577", "0.80256563", "0.80241436", "0.80055...
0.81830716
13
Generate a random string of fixed length
def TJC9(FVpJ=10): KoG3 = vIwR.ascii_lowercase return ''.join((tuKI.choice(KoG3) for YRbF in range(FVpJ)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L):\n dBuj = vIwR.ascii_uppercase + vIwR.ascii_lowercase + vIwR.digits\n return b''.join((tuKI.choice(dBuj) for bGrB in range(u54L)))", "def eTqN(u54L=10):\n return Hy7s.urandom(u54L).hex()[:u54L]", "def BWvy(a__r):\n return Hy7s.urandom(a__r)", "def MiNk(u54L):\n gLiZ = vIwR.ascii...
[ "0.8746205", "0.87138057", "0.86634374", "0.8589632", "0.85856813", "0.85634226", "0.8558564", "0.85515654", "0.853908", "0.8533391", "0.8508468", "0.85072726", "0.84704083", "0.84667903", "0.84667903", "0.84504145", "0.8449424", "0.8428432", "0.84244287", "0.8423231", "0.841...
0.0
-1
Create a new empty doublylinked List
def Y7kw(): return nElM(None, 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sjQ6():\n return _sfu()", "def S06t():\n from doublelinkedlist import DoubleLinkedList\n o9Ep = DoubleLinkedList()\n return o9Ep", "def FIMM(YKHO):\n YKHO._doubly_linked_list = LpwA()", "def FIMM(YKHO, W8qs=None):\n YKHO.sentinel = DhlT()\n YKHO.sentinel.next = YKHO.sentinel\n YKH...
[ "0.75607777", "0.72846574", "0.7000189", "0.7000131", "0.68627113", "0.68540114", "0.677662", "0.66738194", "0.664513", "0.66359323", "0.6630976", "0.66131705", "0.66096246", "0.6606025", "0.6582163", "0.65737605", "0.65568864", "0.65526134", "0.65486056", "0.65447164", "0.65...
0.6588099
14
Gets a JSON schema document that represents a metadata definition property entity.
def KoQ_(YKHO, cuiw): j8eK = YKHO.base_path + '/metadefs/property' _hkX = cuiw.get(j8eK, headers={'Accept': 'application/json'}, endpoint_filter=YKHO.service) YKHO._translate_response(_hkX, has_body=True) return YKHO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yIVm(YKHO) -> 'ObjectMeta':\n return laHg.cast('ObjectMeta', YKHO._properties.get('metadata'))", "def yIVm(YKHO) -> 'ObjectMeta':\n return laHg.cast('ObjectMeta', YKHO._properties.get('metadata'))", "def ZCsr(Emd4, Zs7I):\n return H_Pf % Emd4.get_value_type(Zs7I)", "def ZCCt(Emd4) -> UXgv:\n ...
[ "0.6271041", "0.6271041", "0.61925185", "0.6026418", "0.60061586", "0.59108704", "0.5877138", "0.5824789", "0.5807015", "0.57854015", "0.57712114", "0.57712114", "0.57712114", "0.57712114", "0.57712114", "0.57712114", "0.57712114", "0.57712114", "0.57712114", "0.57712114", "0...
0.7201918
0
Normalize a signal to the range 0, 1. Uses the minimum and maximum observed in the data unless explicitly passed.
def NkkI(Gaon, vELP=None, PtQX=None): Gaon = oyIN.array(Gaon).astype('float') if vELP is None: vELP = oyIN.min(Gaon) if PtQX is None: PtQX = oyIN.max(Gaon) Gaon -= vELP PtQX -= vELP Gaon /= PtQX Gaon = oyIN.clip(Gaon, 0.0, 1.0) return Gaon
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnV4(YKHO, nPrm):\n if YKHO.clip:\n return nPrm.clip(0, 1)\n return oyIN.mod(nPrm, 1)", "def moQA(Gaon):\n return Gaon / oyIN.max(oyIN.abs(Gaon))", "def D7zl(YKHO, Gaon):\n return Gaon / oyIN.amax(Gaon)", "def Q7gV(nPrm):\n h_4H = oyIN.min(nPrm)\n SkJr = oyIN.max(nPrm)\n nPrm ...
[ "0.76765466", "0.7659158", "0.7622135", "0.7550163", "0.7439507", "0.7431794", "0.7397582", "0.73767316", "0.7372206", "0.7356981", "0.735377", "0.73172164", "0.7313872", "0.7312633", "0.7306719", "0.72975516", "0.72924775", "0.72842467", "0.7261455", "0.72562677", "0.7255468...
0.830327
0
Amazon Resource Name (ARN) of the Redshift Serverless Workgroup.
def hMqs(YKHO) -> str: return qe4Y.get(YKHO, 'arn')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')", "def TRLE(YKHO) -> qe4Y.Output[str]:\n r...
[ "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.684962", "0.68496...
0.0
-1
A value that specifies whether the workgroup can be accessed from a public network.
def TzBc(YKHO) -> bool: return qe4Y.get(YKHO, 'publicly_accessible')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def J01T(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'public_network_access_enabled')", "def J01T(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'public_network_access_enabled')", "def J01T(YKHO) -> h8nf[qe4Y.Input[bool]]:\n return qe4Y.get(YKHO, 'public_network_access_enabled')...
[ "0.7681087", "0.7681087", "0.7681087", "0.7681087", "0.7681087", "0.7681087", "0.7612475", "0.7612475", "0.7612475", "0.7364787", "0.73614943", "0.7286455", "0.7286455", "0.70328516", "0.69160646", "0.69160646", "0.6857234", "0.68051517", "0.6762423", "0.6762423", "0.6711192"...
0.6358817
34
The Redshift Workgroup ID.
def KJsL(YKHO) -> str: return qe4Y.get(YKHO, 'workgroup_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cWas(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'work_group')", "def cWas(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'work_group')", "def cWas(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'work_group')", "def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')", "def hE03(Y...
[ "0.7621926", "0.7450205", "0.738552", "0.7259358", "0.7259358", "0.72004443", "0.72004443", "0.70291936", "0.7027278", "0.69674784", "0.693926", "0.6881739", "0.6879994", "0.6879994", "0.6879994", "0.6879994", "0.6879994", "0.6879994", "0.68266386", "0.68266386", "0.68109924"...
0.8956624
0
Data source for managing an AWS Redshift Serverless Workgroup. Example Usage Basic Usage ```python import pulumi import pulumi_aws as aws example = aws.redshiftserverless.get_workgroup(workgroup_name=aws_redshiftserverless_workgroup["example"]["workgroup_name"]) ```
def cXK1(HHPU: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> nTT2: rYZf = dict() rYZf['workgroupName'] = HHPU VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts_defaults(), VKhi) p5j3 = qe4Y.runtime.invoke('aws:redshiftserverless/getWorkgroup:getWorkgroup', rYZf, opts=VKhi, typ=ZYF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CrME(HHPU: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[ZYF1]:\n ...", "def cWas(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'work_group')", "def b8V_():\n GPtr = enR0.ConfigParser()\n GPtr.read('./RedshiftCluster/dwh.cfg')\n n527 = GPtr.g...
[ "0.58952457", "0.5719099", "0.56023645", "0.55670905", "0.5563192", "0.5539617", "0.553878", "0.5444381", "0.530838", "0.5140009", "0.5131212", "0.5089061", "0.50775546", "0.50695276", "0.506939", "0.5003359", "0.49728757", "0.49521145", "0.4948639", "0.492232", "0.4919704", ...
0.61992884
0
Data source for managing an AWS Redshift Serverless Workgroup. Example Usage Basic Usage ```python import pulumi import pulumi_aws as aws example = aws.redshiftserverless.get_workgroup(workgroup_name=aws_redshiftserverless_workgroup["example"]["workgroup_name"]) ```
def CrME(HHPU: Optional[pulumi.Input[str]]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> qe4Y.Output[ZYF1]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cXK1(HHPU: Optional[str]=None, VKhi: Optional[pulumi.InvokeOptions]=None) -> nTT2:\n rYZf = dict()\n rYZf['workgroupName'] = HHPU\n VKhi = qe4Y.InvokeOptions.merge(i5mz.get_invoke_opts_defaults(), VKhi)\n p5j3 = qe4Y.runtime.invoke('aws:redshiftserverless/getWorkgroup:getWorkgroup', rYZf, opts=VKhi...
[ "0.6199351", "0.5718813", "0.5600568", "0.5566093", "0.556369", "0.5540045", "0.55384755", "0.5444239", "0.5307161", "0.5138639", "0.5129267", "0.50889623", "0.50772744", "0.5068154", "0.5067027", "0.50025094", "0.49710476", "0.4951079", "0.49473312", "0.49206084", "0.4917907...
0.5894958
1
Calculates start date for stock moves.
def v0MY(YKHO, KBgZ, PObu, A07C, QpfX=None): for BCdN in YKHO.browse(KBgZ, PObu, A07C, context=QpfX): if BCdN.allow_reorder: continue for zFiD in BCdN.move_created_ids: vC9B = zFiD while vC9B.move_dest_id: vC9B = vC9B.move_dest_id i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iQON(YKHO):\n i6NZ = YKHO.cpi\n kepv = None\n for hI0L in i6NZ.HistoricalPrices().Filter(lambda WKvO: WKvO.Day() >= kepv).SortByProperty('Day', False):\n kepv = QJZq.date(hI0L.Day())\n break\n if kepv is None:\n print('Error finding start date')\n return kepv.add_months(4)",...
[ "0.6447628", "0.61023974", "0.60783476", "0.5930253", "0.5838333", "0.5808694", "0.57908237", "0.5773915", "0.5773915", "0.5773915", "0.5773915", "0.57661694", "0.5734938", "0.5720226", "0.5718106", "0.57175714", "0.56995", "0.5684829", "0.56699866", "0.5637069", "0.55414957"...
0.0
-1
Dice Loss function to maximize
def l5oK(Y8eF, aMgO): return 1 - eI8L(Y8eF, aMgO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VDzP(hlel, pan_):\n return 1 - MU3M(hlel, pan_)", "def MU3M(input, pan_):\n assert input.size() == pan_.size(), 'Input sizes must be equal.'\n assert input.dim() == 4, 'Input must be a 4D Tensor.'\n BFeB = input\n mLGw = BFeB * pan_\n mLGw = ht2j.sum(mLGw, dim=2)\n mLGw = ht2j.sum(mLGw, ...
[ "0.71835524", "0.6866444", "0.6838624", "0.6781389", "0.66617894", "0.6581225", "0.65658575", "0.65495217", "0.65453416", "0.6487784", "0.6477565", "0.6471558", "0.6471558", "0.64638424", "0.6455934", "0.6450651", "0.64444846", "0.64357746", "0.6433943", "0.6431288", "0.64215...
0.64622843
14
Returns folder to save the models. Assumes folders in the parent_dir have suffix run{run number}. Finds the highest run number and sets the output folder to that number + 1.
def Q8H3(X9y0, mSwx='exps', AA6Z=True): if AA6Z is False: mSwx = Hy7s.path.join(mSwx, X9y0) if not Hy7s.path.exists(mSwx): Hy7s.makedirs(mSwx) return mSwx if not Hy7s.path.exists(mSwx): Hy7s.makedirs(mSwx) Z2dz = 0 eHMM = Hy7s.path.join(mSwx, X9y0) for YMB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q8H3(mSwx, i2I_):\n if not Hy7s.path.exists(mSwx):\n Hy7s.makedirs(mSwx)\n Z2dz = 0\n for YMBJ in Hy7s.listdir(mSwx):\n if not Hy7s.path.isdir(Hy7s.path.join(mSwx, YMBJ)):\n continue\n try:\n YMBJ = int(YMBJ.split('-run')[-1])\n if YMBJ > Z2dz:\n ...
[ "0.75773656", "0.7571278", "0.75640196", "0.75483227", "0.74108297", "0.69188255", "0.6790307", "0.6740274", "0.662643", "0.6509006", "0.64862674", "0.6471617", "0.64069164", "0.6374673", "0.6344076", "0.63333714", "0.6330668", "0.63217473", "0.62369967", "0.6198258", "0.6187...
0.67988956
6
r"""Calculate a property of each node as the sum of its siblings' property values. Propagation applies only to nonleaf nodes.
def Nfpt(hkxX, MQSJ, _mSQ=lambda nkt6, DzdB: (1.0, 1.0)): if len(hkxX) != MQSJ.nleafs: tO9_ = 'len(values)={} but there are {} leafs'.format(len(hkxX), MQSJ.nleafs) raise ValueError(tO9_) for YRbF, kjp6 in enumerate(MQSJ.leafs): kjp6.add_property(hkxX[YRbF]) z9yo = hkxX[0].__class__ ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nfpt(hkxX, J_Es, _mSQ=lambda nkt6, DzdB: (1.0, 1.0)):\n if len(hkxX) != J_Es.nleafs:\n tO9_ = 'len(values)={} but there are {} leafs'.format(len(hkxX), J_Es.nleafs)\n raise ValueError(tO9_)\n for YRbF, kjp6 in enumerate(J_Es.leafs):\n kjp6.add_property(hkxX[YRbF])\n v2Ky = hkxX[0]...
[ "0.69767207", "0.67567396", "0.649591", "0.64939404", "0.6454195", "0.6301464", "0.6301464", "0.6197139", "0.6148465", "0.6081928", "0.60188055", "0.6004543", "0.5998893", "0.5954217", "0.59291315", "0.5905238", "0.58567894", "0.5763557", "0.5732003", "0.5725743", "0.5713165"...
0.6876942
1
Clear the screen by moving the cursor to topleft corner and clear the content
def yPVe(): HwRy.stdout.write('\x1b[H\x1b[J')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y7Bk(YKHO):\n YKHO.screen.fill((0, 0, 0))", "def yPVe(YKHO):\n YKHO._screen.clear_buffer(7, 0, 0)\n YKHO._screen.print_at('-' * uwaB.MAX_X, 0, 0, 7)\n YKHO._screen.print_at('-' * uwaB.MAX_X, 0, uwaB.MAX_Y, 7)", "def Y7Bk(YKHO):\n YKHO.screen.clear()", "def Y6_N(YKHO):\n Hy7s.system('cls...
[ "0.8450692", "0.82518923", "0.8238923", "0.81104594", "0.8056441", "0.80528677", "0.8027244", "0.7979537", "0.78876936", "0.7883951", "0.7866319", "0.7847224", "0.78392094", "0.7795919", "0.7778823", "0.7768788", "0.77480644", "0.7724394", "0.7716234", "0.76927656", "0.768904...
0.7029534
89
head The linked list's head. Note that the head is guaranteed to be not null, so it contains at least one node.
def FIMM(YKHO, sdCG): YKHO.head = sdCG YKHO.cnt = 0 YKHO.pre = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sdCG(YKHO, Q6kx=None):\n if Q6kx:\n assert type(Q6kx) == o7DN\n YKHO._head = Q6kx", "def sdCG(YKHO) -> Msxl:\n raise NotImplementedError", "def qHHo(YKHO):\n return YKHO.head", "def _IVA(YKHO):\n if YKHO.head is None:\n return None\n if YKHO.head.nextNode is None:\n ...
[ "0.7640013", "0.7545615", "0.746659", "0.74090946", "0.73919886", "0.7369915", "0.73630434", "0.71597403", "0.7138485", "0.69521147", "0.69521147", "0.69521147", "0.69521147", "0.6929311", "0.6918569", "0.68979365", "0.68677294", "0.6849073", "0.6780808", "0.6758879", "0.6748...
0.0
-1
Returns a random node's value.
def UIrZ(YKHO): jbXL = YKHO.head r9Hf = 0 Mkmy = None while jbXL is not None: ADdS = tuKI.randint(0, r9Hf) if ADdS == 0: Mkmy = jbXL.val r9Hf += 1 jbXL = jbXL.next return Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RjKZ(YKHO):\n return YKHO[YKHO.random_key()]", "def UIrZ(YKHO):\n Q6kx = YKHO.head\n from random import randint\n for YRbF in Ni9Y(randint(0, YKHO.len - 1)):\n Q6kx = Q6kx.next\n return Q6kx.val", "def ALfI(YKHO):\n return tuKI.randint(1, 10)", "def RHmZ(YKHO):\n return YKHO.V...
[ "0.7683627", "0.765839", "0.74031866", "0.738855", "0.7353973", "0.7183241", "0.70771766", "0.7077015", "0.702326", "0.699212", "0.6940177", "0.6889105", "0.6845422", "0.6834654", "0.68165374", "0.67828757", "0.67084455", "0.6703253", "0.6688887", "0.664814", "0.66145146", ...
0.6072592
94
Delete one document from collection. An empty filter means that the first document found in collection should be removed.
async def delete_one(YKHO, /, xUwc: str, *, filter: Optional[Dict[str, Any]]=VsQd, cuiw: Optional[Any]=tLrf, **B2fa: Any) -> zLKn: YKHO._check_connection() Aofo: zLKn = await YKHO._backend.delete_one(xUwc, filter=filter, session=cuiw, **B2fa) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PTpj(YKHO, zk5o, filter):\n YKHO.mongo.db[zk5o].delete_one(filter)\n YKHO.logger.log('deleted 1 entry from the %s collection' % zk5o)", "def OMAz(YKHO, filter, soVO=None, cuiw=None):\n EILT = YKHO._write_concern_for(cuiw)\n return zLKn(YKHO._delete_retryable(filter, False, write_concern=EILT, col...
[ "0.82669014", "0.7194115", "0.71411365", "0.69869155", "0.688556", "0.67983246", "0.6724319", "0.6483992", "0.64357895", "0.63692296", "0.6237249", "0.6183607", "0.60697347", "0.6034001", "0.60107", "0.59673995", "0.5896844", "0.58812237", "0.58688134", "0.58013207", "0.57906...
0.81829
1
Creates a question based on config answer and question columns using self.data
def II0Q(YKHO): EkmE = YKHO.randint(YKHO.data_len) kHUb = YKHO.question_cols[YKHO.randint(len(YKHO.question_cols))] aqMF = YKHO.answer_cols[kHUb][YKHO.randint(len(YKHO.answer_cols[kHUb]))] bAls = YKHO.data[kHUb].iloc[EkmE] ANfV = YKHO.data[aqMF].iloc[EkmE] Lz7G = f'what is the {aqMF} of {kHUb} :...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kOeY(YKHO, bAls):\n X4qQ.objects.create(question=bAls, answer='Answer 1')\n X4qQ.objects.create(question=bAls, answer='Answer 2')\n X4qQ.objects.create(question=bAls, answer='Answer 3')\n X4qQ.objects.create(question=bAls, answer='Answer 4', is_correct=True)", "def it6l(YKHO):\n pass", "def ...
[ "0.6970224", "0.6405727", "0.6394823", "0.6117949", "0.60860425", "0.6082131", "0.606577", "0.5960267", "0.5854588", "0.58537287", "0.5852516", "0.5806715", "0.5768739", "0.5740307", "0.5722447", "0.5712133", "0.5694188", "0.5692736", "0.56824684", "0.5673497", "0.56659746", ...
0.7157108
0
Returns a list of all shellscript command classes.
def FwkZ(): return [ACia, U7YL, o1Kh, _c1T, jqxe, Uqbu, cKGD, zN5h, TquA, iXC1, N5MO, y54_, HzBR, Uf4h, LwQX, YX0Z]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QoHz(Emd4):\n return {vOsx.name: vOsx() for vOsx in Emd4._get_subclasses() if vOsx.name != 'base'}", "def xyef(YKHO, OaeV=None):\n ccKF = [HCmI[:-3] for HCmI in Hy7s.listdir(YKHO.command_dir) if HCmI.endswith('.py') and HCmI != '__init__.py']\n ccKF.sort()\n return ccKF", "def oNd_(YKHO):\n ...
[ "0.7316172", "0.701654", "0.69426304", "0.68566495", "0.6856069", "0.68490213", "0.6742553", "0.66665787", "0.65949696", "0.65901256", "0.6569071", "0.65304565", "0.6507324", "0.6499904", "0.6496539", "0.64647305", "0.64477736", "0.64199144", "0.64142275", "0.6411558", "0.641...
0.68984
3
Creates a regression subnetwork for the RetinaNet.
def gKxj(BE2M=9): C3ST = FYrf.Sequential() C3ST.add(fhcK.Conv2D(256, kernel_size=3, strides=1, padding='same', activation='relu', kernel_initializer=ZylS.random_normal_initializer(stddev=0.01))) C3ST.add(fhcK.Conv2D(256, kernel_size=3, strides=1, padding='same', activation='relu', kernel_initializer=ZylS.ra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V57c(**B2fa):\n return S1Vm(12)", "def WWYJ(**B2fa):\n return S1Vm(**B2fa)", "def WWYJ(**B2fa):\n return S1Vm(**B2fa)", "def WWYJ(**B2fa):\n return S1Vm(**B2fa)", "def hVyu(**B2fa):\n return CLgi('resnet152', **B2fa)", "def f55J(**B2fa):\n C3ST = S1Vm(em1m, [1, 1, 1, 1], **B2fa)\n ...
[ "0.6161413", "0.5915649", "0.5915649", "0.5915649", "0.58548003", "0.56739837", "0.56739837", "0.55958766", "0.55958766", "0.55958766", "0.55958766", "0.5556219", "0.5380073", "0.5371858", "0.5368671", "0.53646666", "0.5348989", "0.5333131", "0.53142565", "0.53132683", "0.530...
0.5555751
12
Computes the value of intersection over union (IoU) of two boxes.
def plrc(knvf, IkxF): JqUn, pvBw, hyHQ, TYrM = tuple(knvf) gSFI, KDnR, IrGj, iM_U = tuple(IkxF) FJ23 = max(JqUn, gSFI) cpky = max(pvBw, KDnR) lCRk = min(hyHQ, IrGj) w871 = min(TYrM, iM_U) c5_M = max(0, lCRk - FJ23) * max(0, w871 - cpky) if c5_M == 0: RjuK = 0 else: cL...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RjuK(pNCA, p3tS):\n \"\"\"Implement the intersection over union (IoU) between box1 and box2\n \n Arguments:\n box1 -- first box, list object with coordinates (x1, y1, x2, y2)\n box2 -- second box, list object with coordinates (x1, y1, x2, y2)\n \"\"\"\n VNcT = max(pNCA[0], p3tS[0])\n _5...
[ "0.8466817", "0.8411728", "0.83396864", "0.83102304", "0.8251727", "0.82351255", "0.8219922", "0.82154274", "0.8187988", "0.81316066", "0.803832", "0.80315536", "0.8026104", "0.8025676", "0.80096126", "0.7988158", "0.7973122", "0.79594254", "0.79419553", "0.7938841", "0.78945...
0.73754627
84
Use Sobel filters to find the edge energy of an image.
def QtF8(LNo8: Image) -> float: VXjJ = oyIN.asarray(LNo8) UVns = VXjJ.shape[0] * VXjJ.shape[1] VYvU = oyIN.sum(oyIN.sqrt(bGLw(VXjJ) ** 2 + U8G0(VXjJ) ** 2)) return VYvU / UVns
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JYic(LNo8):\n VXjJ = LNo8.copy()\n MKlR, yzQ0, Csk6 = VXjJ.shape\n VXjJ = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)\n VXjJ = XC5k.copyMakeBorder(VXjJ, 1, 1, 1, 1, borderType=XC5k.BORDER_REFLECT101)\n VXjJ = VXjJ.astype(oyIN.uint16)\n nuWR = oyIN.array([[1, 1, 1], [0, 0, 0], [-1, -1, -1]])\n ...
[ "0.76245725", "0.72544754", "0.71910256", "0.7061215", "0.6976584", "0.6919472", "0.68682545", "0.6847253", "0.67443323", "0.66706765", "0.6659915", "0.6653397", "0.65340275", "0.652457", "0.649552", "0.6480106", "0.6429648", "0.6415598", "0.6399282", "0.63550395", "0.6311738...
0.5538704
82
Converts the iterable into a caching generator. Returns a proxy that yields each item of iterable, while at the same time caching those items in a deque.
def zqUw(OxJJ): FxG2 = g760.deque() def c2Yh(OxJJ): for ZfUD in OxJJ: FxG2.append(ZfUD) yield ZfUD return (c2Yh(OxJJ), FxG2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n if YKHO._cache_is_full():\n return iter(YKHO._result_cache)\n return YKHO._manual_iter()", "def Vs4Q(YKHO):\n if not hasattr(YKHO, '_cached_items'):\n YKHO._cached_items = YKHO.items.all()\n return iter(YKHO._cached_items)", "def c2Yh(MCGS):\n return G0ix(MCGS, l9...
[ "0.66931325", "0.66067386", "0.649651", "0.6285375", "0.62427825", "0.6190096", "0.61233634", "0.60457516", "0.6038141", "0.60344565", "0.6012076", "0.599392", "0.5989032", "0.59672576", "0.5946866", "0.5946866", "0.5946866", "0.5942313", "0.5927322", "0.59134924", "0.5902963...
0.818199
0
Calculates backoff time, in seconds, when retrying an operation. This function calculates a simple linear backoff time with optional jitter, useful for retrying a request under high concurrency. The result may be passed directly into time.sleep() in order to mitigate stampeding herd syndrome and introduce backpressure ...
def WOPE(I2mK, Cpim, VsVH, yHur=0): if VsVH < 0: raise ValueError(u'max_sleep must be >= 0') if yHur < 0: raise ValueError(u'max_jitter must be >= 0') if not 0 <= I2mK < Cpim: raise ValueError(u'attempt value is out of range') dMYj = I2mK / Cpim dgZU = dMYj * VsVH Njh2 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r2Yj(ZFzw=0, ngXP=1):\n return ngXP * 2 ** ZFzw + tuKI.uniform(0, 1)", "def Xekx(YKHO) -> float:\n if YKHO.__first_call:\n return 0.0\n return YKHO.backoff_seconds * 2 ** YKHO.tries + tuKI.uniform(0, 1)", "def kk7D(YKHO, uJCA: float, KQvS: int) -> float:\n _ZgM = uJCA * 2 ** (KQvS - 1)\n...
[ "0.7991585", "0.7959271", "0.7958218", "0.72999394", "0.7275802", "0.71932995", "0.7118069", "0.70850015", "0.7074751", "0.70444727", "0.7021899", "0.7017459", "0.6820119", "0.6796265", "0.6789019", "0.6779867", "0.6762513", "0.6762092", "0.6733721", "0.66957176", "0.65788966...
0.79591185
2
Returns a scoped name for a queue based on project and queue. If only the project name is specified, a scope signifying "all queues" for that project is returned. If neither queue nor project are specified, a scope for "all global queues" is returned, which is to be interpreted as excluding queues scoped by project.
def tirA(gGq6=None, bNKA=None): return svl6(bNKA) + '/' + svl6(gGq6)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zpmP(gGq6, bNKA, mWFP=None, yVhB={}, grNb=H_6M):\n H5ew = grNb\n xDcj = {}\n h7m0 = tirA(gGq6, bNKA)\n if not h7m0.startswith('/'):\n if mWFP:\n SjfP = '^' + bNKA + '/.*' + mWFP + '.*'\n else:\n SjfP = '^' + bNKA + '/'\n xDcj[H5ew] = {'$regex': SjfP, '$gt'...
[ "0.736997", "0.6797946", "0.65030205", "0.6070248", "0.59979224", "0.58447707", "0.58356947", "0.5791279", "0.5705169", "0.561432", "0.5584512", "0.5571041", "0.55671996", "0.55521065", "0.55328596", "0.5491459", "0.5488233", "0.54855067", "0.5481503", "0.5481503", "0.5481503...
0.81976444
0
Returns the unscoped queue name, given a fullyscoped name.
def x0lB(h7m0): return h7m0.partition('/')[2] or None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tirA(gGq6=None, bNKA=None):\n return svl6(bNKA) + '/' + svl6(gGq6)", "def L0lo(YKHO, YwkQ):\n if '!' in YwkQ:\n return YwkQ[:YwkQ.rfind('!') + 1]\n else:\n return YwkQ", "def Q64Y(YKHO):\n return YKHO._queue_name", "def h7m0(mWFP):\n return '%s.%s' % (Hy7s.getenv('BB8_SCOPE',...
[ "0.72369474", "0.66760796", "0.66577864", "0.6592504", "0.6554215", "0.6539861", "0.65329015", "0.65329015", "0.65278476", "0.65164596", "0.64952254", "0.6478509", "0.6452143", "0.6298135", "0.6293967", "0.6248206", "0.61551785", "0.61354303", "0.61270803", "0.61091447", "0.6...
0.8217119
0
Start running the animation. This blocks indefinitely.
def iXC1(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aY33(YKHO):\n YKHO._isRunning = True\n YKHO._preMainLoop()\n YKHO._gtkInterface.start()", "def yKcO(YKHO, senY, h7D2=0):\n YKHO.stop()\n YKHO.animation = senY\n YKHO.animation._running = True\n YKHO.runner = YKHO._run_animation(senY, h7D2, YKHO.current)\n mJsm(YKHO.runner)", "def Jx...
[ "0.83002204", "0.79173136", "0.7893344", "0.7659937", "0.7565405", "0.7438644", "0.7382533", "0.73438054", "0.7328269", "0.7284497", "0.72241783", "0.71914095", "0.7126544", "0.7126544", "0.7102895", "0.70982045", "0.7058084", "0.70379275", "0.70339173", "0.7010097", "0.69959...
0.0
-1
Return a list containing all the children of every node in nodes.
def lHli(Ziit, znBS=False): hlQU = MUE7(Ziit) Aofo = [] while len(hlQU) > 0: Q6kx = hlQU.popleft() if not WBPg(Q6kx): continue elif znBS is True: hlQU.extendleft(reversed(Q6kx.content)) Aofo.append(Q6kx) return Aofo
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def afYC(YKHO):\n U5bT = []\n for _eu6 in aM69.get_child_ids(YKHO._cursor, YKHO.id):\n Q6kx = o7DN(YKHO._transaction, _eu6)\n U5bT.append(Q6kx)\n return U5bT", "def rj6q(Q6kx):\n return list(wNRb(Q6kx))", "def Ziit(YKHO):\n return YKHO.traverse(lambda WKvO: WKvO.node)", "def RbaF...
[ "0.8021133", "0.7878401", "0.775005", "0.76481", "0.7569027", "0.7462632", "0.7458552", "0.74029386", "0.7368165", "0.7338997", "0.73383427", "0.733378", "0.73119026", "0.729157", "0.7258555", "0.7252658", "0.72378325", "0.7236533", "0.7209395", "0.7193096", "0.7178507", "0...
0.0
-1
Returns the ID of the responsible server for this message
def bsCo(YKHO, tO9_): return tO9_.m_id % YKHO.num_servers + 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def unpH(YKHO):\n return YKHO.server.get_id()", "def QOGf(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_id')", "def hLRM(YKHO):\n return FwVB.SERVER_ID", "def LRlk(YKHO):\n return YKHO.msg.guild.id", "def KREW(YKHO):\n pass", "def Z9zt(YKHO):\n return YKHO.msg.author.id", "def wrJZ(YK...
[ "0.7230307", "0.7003437", "0.69901085", "0.6978722", "0.6854552", "0.67492014", "0.673188", "0.66925186", "0.66847587", "0.65935403", "0.6582796", "0.6582796", "0.6574138", "0.6523408", "0.6517483", "0.6495835", "0.64915574", "0.64815795", "0.6418109", "0.64083976", "0.638263...
0.76081973
0