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
Compute the weights of labels as the weight when computing loss.
def AhA1(YKHO, nPrm, N0be=True): if not N0be: YKHO.info['label_weights'] = None return AGm6 = nPrm['train_label'].groupby('label').count() BtpH = AGm6.iloc[:, 0] if len(BtpH) < 10 or max(BtpH) < min(BtpH) * 10: YKHO.info['label_weights'] = None return BtpH = 1 / oyIN....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def q4aY(YKHO):\n YKHO.labeled_weight = ZylS.cast(ZylS.divide(YKHO.N, ZylS.multiply(YKHO.NUM_LABELED, YKHO.LABELED_BATCH_SIZE)), ZylS.float32)\n YKHO.unlabeled_weight = ZylS.cast(ZylS.divide(YKHO.N, ZylS.multiply(YKHO.NUM_UNLABELED, YKHO.UNLABELED_BATCH_SIZE)), ZylS.float32)", "def wT46(YKHO, Crrw):\n C...
[ "0.8097833", "0.7574107", "0.7393874", "0.7343796", "0.73287266", "0.73263425", "0.7259802", "0.72460467", "0.72010714", "0.7158699", "0.7078104", "0.7070849", "0.70433795", "0.70049095", "0.6939003", "0.6911169", "0.6907897", "0.6879424", "0.6877474", "0.683485", "0.68312144...
0.0
-1
Return true if the alien is at the edges of the screen
def BFll(YKHO): VXOZ = YKHO.screen.get_rect() if YKHO.rect.right >= VXOZ.right: return True elif YKHO.rect.left <= VXOZ.left: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BFll(YKHO):\n VXOZ = YKHO.screen.get_rect()\n if YKHO.rect.right >= VXOZ.right or YKHO.rect.left <= 0:\n return True", "def BFll(YKHO):\n VXOZ = YKHO.screen.get_rect()\n if YKHO.rect.right >= VXOZ.right:\n return True\n elif YKHO.rect.left <= 0:\n return True", "def BFll...
[ "0.8129214", "0.8116175", "0.8116175", "0.8111337", "0.8105686", "0.80939174", "0.8089738", "0.8076566", "0.8076566", "0.8076566", "0.8076566", "0.8052139", "0.8037432", "0.8025269", "0.7974517", "0.7958694", "0.7909072", "0.7897611", "0.7894291", "0.7824116", "0.7785767", ...
0.8112121
3
Returns a list of instances
def J2u4(Emd4): QU6O = [] Ux0P = '{}.json'.format(Emd4.__name__) if Hy7s.path.isfile(Ux0P): with open(Ux0P) as eHNT: fm20 = Emd4.from_json_string(eHNT.read()) for Snyy in fm20: QU6O.append(Emd4.create(**Snyy)) return QU6O else: return [...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lbzt(YKHO) -> x1iM[ec6H]:\n pass", "def y5NJ(YKHO):\n return []", "def y5NJ(YKHO):\n raise NotImplementedError()", "def lbzt(YKHO):\n return YKHO.instances", "def bUWH(YKHO) -> x1iM[Kt_s]:\n return YKHO._instances", "def list(YKHO, **YSA3):\n return YKHO.get_instances(YSA3)", "def...
[ "0.90422606", "0.87674624", "0.87344486", "0.8413226", "0.8401591", "0.8346991", "0.8340717", "0.8201198", "0.8156116", "0.8144369", "0.80579096", "0.80564964", "0.79390585", "0.79177594", "0.7874745", "0.7867798", "0.7861611", "0.78435546", "0.7832467", "0.7823814", "0.78215...
0.0
-1
Acquire the longer of the maximum sentence lengths of training data and test data.
def Pk9b(csIG, zAl7): if max([len(yAmx.split(' ')) for yAmx in csIG]) > max([len(yAmx.split(' ')) for yAmx in zAl7]): oc34 = max([len(yAmx.split(' ')) for yAmx in csIG]) else: oc34 = max([len(yAmx.split(' ')) for yAmx in zAl7]) return oc34
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fA7k(Rhv4, hsQo=None):\n if hsQo:\n return hsQo\n wzH_ = 0\n for _dZy in Rhv4:\n wzH_ = max(wzH_, len(_dZy.split(' ')))\n print('Max sentence length: ', wzH_)\n return wzH_", "def S29E(YKHO):\n BcCR = 0\n oyMA = YKHO.captions_dict\n for or8S, zHX_ in oyMA.items():\n ...
[ "0.7192286", "0.68413705", "0.6785072", "0.67273134", "0.6711904", "0.6683774", "0.6648752", "0.6615207", "0.65853095", "0.6569145", "0.65548176", "0.65335125", "0.6499907", "0.6467956", "0.64410955", "0.64241964", "0.64132327", "0.6400164", "0.6392547", "0.637613", "0.635857...
0.7854979
0
Check if the notebook contains invalid Python syntax in code cells.
def _Ari(K_hV: Notebook) -> bool: return K_hV.has_invalid_python_syntax
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vgSC(pVAQ: 'CaptureFixture') -> None:\n pmON = Hy7s.path.join('tests', 'invalid_data', 'invalid_syntax.ipynb')\n b8V_(['black', Hy7s.path.abspath(pmON), '--nbqa-dont-skip-bad-cells'])\n yvT9, XObx = pVAQ.readouterr()\n N2ZU = ''\n cLrJ = f'error: cannot format {pmON}: Cannot parse: cell_1:2:7: i...
[ "0.6842965", "0.6763063", "0.6742612", "0.668662", "0.6654602", "0.6568521", "0.64979994", "0.64888966", "0.6452309", "0.6378032", "0.63554513", "0.63454604", "0.62804586", "0.6235481", "0.62221885", "0.6178234", "0.61630523", "0.6151688", "0.6133688", "0.6127435", "0.6106534...
0.9127996
0
Return predecessors of depthfirstsearch with root at source.
def Jd0q(yvY1, JZXy=None, TwjO=False): if JZXy is None: uzQQ = yvY1.nodes() else: uzQQ = [JZXy] if TwjO == True: try: A_IW = yvY1.predecessors_iter except: A_IW = yvY1.neighbors_iter else: A_IW = yvY1.neighbors_iter PwWw = {} nvEb =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MN7N(yvY1, JZXy=None, TwjO=False):\n if JZXy is None:\n uzQQ = yvY1.nodes()\n else:\n uzQQ = [JZXy]\n if TwjO:\n try:\n A_IW = yvY1.predecessors_iter\n except:\n A_IW = yvY1.neighbors_iter\n else:\n A_IW = yvY1.neighbors_iter\n PwWw = {}\n...
[ "0.70089805", "0.6674645", "0.66732436", "0.6661046", "0.6650983", "0.65676594", "0.6556419", "0.65182465", "0.6420315", "0.64129037", "0.64062095", "0.63467205", "0.6332976", "0.63230306", "0.63148344", "0.6237121", "0.6237121", "0.6216265", "0.6193559", "0.6193491", "0.6171...
0.71017027
0
Input a user, return their score as an int
def hckV(CBIr): with open('data/scores.csv', 'r') as eHNT: for zFiD in eHNT: if zFiD.split(',')[0] == CBIr: return int(zFiD.split(',')[1][:-1]) return 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SrUS(p1kx):\n return p1kx", "def b8V_():\n p1kx = float(input('Enter score: '))\n Aofo = OH7E(p1kx)\n print(Aofo)", "def BTIF():\n JCyR = False\n p1kx = 0\n while not JCyR:\n try:\n p1kx = int(input('Please enter the score: '))\n if p1kx < 0 or p1kx > 10:\n...
[ "0.6993745", "0.6984286", "0.6821953", "0.6621185", "0.6620719", "0.6565948", "0.6517615", "0.6485781", "0.64747137", "0.64141357", "0.6412148", "0.6406333", "0.6405465", "0.63305306", "0.63305306", "0.63269943", "0.63119304", "0.63094103", "0.6280206", "0.62660617", "0.62656...
0.5990093
58
Return corresponding faulty signal name of the given signal. Assumes that generateMiter has been called before, otherwise this function is not useful
def bLUt(YKHO, aeTh): return aeTh + Iflf.FAULT_SUFFIX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lfu1(i5I4):\n for wEsz in dir(Gaon):\n if wEsz.startswith('SIG') and wEsz[3].isalnum():\n if getattr(Gaon, wEsz) == i5I4:\n return wEsz\n return 'unknown signal'", "def ZQZ1(Lxki):\n U3jQ = dict(((G1Hx, Ty9i) for Ty9i, G1Hx in Gaon.__dict__.items() if Ty9i.startswith...
[ "0.71369714", "0.6890603", "0.6630628", "0.6504814", "0.61335266", "0.5985038", "0.5848829", "0.57736427", "0.57383406", "0.57310086", "0.5723217", "0.5697115", "0.56502074", "0.56386274", "0.5616773", "0.5556591", "0.555308", "0.55024415", "0.54933834", "0.5481197", "0.54507...
0.7497848
0
Returns a build config.
def jPzl(TZ9E, Nlgd, yEHD, d24T, zRSP, FfZ3, onSd, JZXy, xHzW, Ijy8, iuBY, BAmj, F2ah): OXBm = C9U5.VALUES.builds.timeout.Get() if OXBm is not None: try: lpl_ = int(OXBm) except ValueError: pQdJ = WXkz.ParseDuration(OXBm) lpl_ = int(pQdJ.total_seconds) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JNZl(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'build_config')", "def B6u2(_SvI):\n pan_ = m9U2(_SvI, 'settings', 'build_config.json')\n if not Hy7s.path.exists(pan_):\n return {}\n else:\n with open(pan_) as hOYR:\n return qQXR.load(hOYR)", "def tgzD():\n fro...
[ "0.8242555", "0.75245684", "0.745919", "0.745184", "0.7318961", "0.7173018", "0.71619457", "0.71619457", "0.71619457", "0.71490574", "0.70669156", "0.7063028", "0.7027092", "0.7013872", "0.6984768", "0.6984768", "0.6984768", "0.6984768", "0.6978853", "0.6965497", "0.6954995",...
0.0
-1
Generates a random ASCIIencoded unsigned integral number in decimal representation. The nonce/timestamp pair should always be unique to prevent replay attacks.
def kBBd(Fo59=64): return BYRM(rarU(Fo59))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kBBd():\n return hex(SI9y(128))[2:-1]", "def EZJP():\n return tuKI.getrandbits(64)", "def sZqm(YKHO):\n return tuKI.randint(10000000, HwRy.maxint)", "def kBBd():\n return wCZ0(wCZ0(tuKI.getrandbits(64)) + hqie())", "def zvbt():\n hash = HBct.sha1()\n hash.update(str(ITS7.time()).encod...
[ "0.7751078", "0.7596962", "0.75940007", "0.75807136", "0.75262696", "0.7525031", "0.7292882", "0.7282066", "0.72253656", "0.71771413", "0.699219", "0.699219", "0.6919298", "0.6915295", "0.6914759", "0.68915457", "0.6850409", "0.679007", "0.66903615", "0.6667018", "0.666661", ...
0.77414674
1
Generates an OAuth timestamp. The nonce/timestamp pair should always be unique to prevent replay attacks.
def hqie(): return str(int(ITS7.time()))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hqie():\n return int(ITS7.time())", "def hqie():\n return int(ITS7.time())", "def hqie():\n return int(ITS7.time())", "def hqie():\n return int(ITS7.time())", "def DIhF():\n wzkt = str(qcWV.now())\n RKD7.debug('Generated a timestamp %s' % wzkt[:23])\n return wzkt[:23]", "def llJn...
[ "0.76524067", "0.76524067", "0.7568094", "0.7568094", "0.74333024", "0.7360132", "0.72651374", "0.7251608", "0.72251666", "0.70989966", "0.706615", "0.70232874", "0.6981209", "0.6926898", "0.6914222", "0.68320423", "0.6831381", "0.682858", "0.6814795", "0.67973274", "0.678697...
0.7466872
4
Builds the Authorization header value. Please note that the generated authorization header value will be on a single line.
def EPHA(SZIX, bkz0=None, TWsg=','): TWsg = BLl5(TWsg) if bkz0: BWXx = Fg_i('OAuth realm="') + BLl5(bkz0) + bwxw + TWsg else: BWXx = Fg_i('OAuth ') SZIX = gdYZ(SZIX) z5iF = yikd(SZIX) BWXx += TWsg.join([G1Hx + dAO2 + bwxw + Ty9i + bwxw for G1Hx, Ty9i in z5iF]) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UcK5(Emd4):\n return {'Authorization': 'ApiKey {user}:{secret}'.format(user=Emd4.user, secret=Emd4.api_secret)}", "def srwF(YKHO):\n WBPg = {'x-redlock-auth': YKHO.auth_token, 'Content-Type': 'application/json'}\n return WBPg", "def WynC():\n eOtH = GPtr.get_option('github_token')\n if eOtH ...
[ "0.75049406", "0.73435646", "0.7260535", "0.72441953", "0.719948", "0.71735203", "0.7022313", "0.69970506", "0.69970506", "0.69558084", "0.6875509", "0.6827975", "0.6818258", "0.68035376", "0.67947763", "0.6790558", "0.67872727", "0.6746335", "0.6729416", "0.6675231", "0.6621...
0.70422584
6
Parses the OAuth Authorization header.
def rQMc(dE2Z, TWsg=',', U3Fm=True): dE2Z = wS8w(dE2Z) bkz0 = None NArs = {} for mWFP, BWXx in c99r(dE2Z, param_delimiter=TWsg, strict=U3Fm): if not mWFP == ynN5: if mWFP in NArs: NArs[mWFP].append(BWXx) else: NArs[mWFP] = [BWXx] el...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQMc(H2rA):\n vyaw = 'OAuth '.lower()\n if H2rA[:len(vyaw)].lower().startswith(vyaw):\n DumB = YLu_(H2rA[len(vyaw):])\n try:\n return list(txUZ(DumB).items())\n except (IndexError, ValueError):\n pass\n raise ValueError('Malformed authorization header')", "...
[ "0.76145035", "0.7580721", "0.7527812", "0.73806536", "0.7239288", "0.70863736", "0.7029507", "0.69630075", "0.69508785", "0.6926326", "0.69034255", "0.6839168", "0.6799201", "0.6719075", "0.66933465", "0.66891557", "0.66736937", "0.6671166", "0.66406995", "0.663325", "0.6611...
0.6818378
12
Parses the OAuth Authorization header preserving the order of the parameters as in the header value.
def c99r(WBPg, TWsg=',', U3Fm=True): if U3Fm: if '\n' in WBPg: raise ValueError('Header value must be on a single line: got `%r`' % WBPg) if TWsg != ',': raise ValueError('The param delimiter must be a comma: got `%r`' % TWsg) WBPg = IhcY(WBPg.strip()) UcK3 = [] f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQMc(BWXx):\n if not BWXx:\n return\n BWXx = EFRn(BWXx)\n try:\n zkAN, rxPi = BWXx.split(None, 1)\n zkAN = zkAN.lower()\n except ValueError:\n return\n if zkAN == b'basic':\n try:\n NtEF, jTXt = WR89.b64decode(rxPi).split(b':', 1)\n except Exc...
[ "0.7663077", "0.7650514", "0.7540822", "0.750783", "0.74494046", "0.7371584", "0.7281293", "0.69545794", "0.6932155", "0.69024664", "0.6839787", "0.6809367", "0.67981994", "0.67535794", "0.67533135", "0.66706425", "0.6668146", "0.66434574", "0.64785385", "0.64289653", "0.6426...
0.69341767
8
Strips the authscheme component from an OAuth Authorization header.
def IhcY(WBPg, xXxc=esOs): if not WBPg.lower().startswith('oauth '): raise ValueError('Authorization scheme must be `OAuth`: got `%r`' % WBPg) return ZbWC.sub(xXxc, '', WBPg, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nmGD(QePW: Request) -> h8nf[str]:\n return QePW.headers['authorization'].split(' ')[-1].strip()", "def YL6w(bD7m: str) -> str:\n lSi7 = list(NoPH(bD7m))\n if '@' in lSi7[1]:\n lSi7[1] = lSi7[1].split('@')[1]\n return izOI(lSi7)", "def obLt(bD7m):\n U5Jc = NoPH(bD7m)\n if not U5Jc.q...
[ "0.72179604", "0.6584872", "0.65790975", "0.64640677", "0.645807", "0.6419579", "0.64145213", "0.63119465", "0.62911665", "0.6276649", "0.6207299", "0.6192791", "0.6185242", "0.6182972", "0.6159616", "0.6135767", "0.6071071", "0.6058564", "0.6015125", "0.5998483", "0.59845597...
0.8818047
0
Initializing our player with his initial stats These are what I feel players should start out with Hans' stats vary within the game
def FIMM(YKHO): YKHO.level = 1 YKHO.stats = {'str': 12, 'mag': 1, 'skill': 13, 'spd': 13, 'def': 15, 'lck': 12, 'res': 4} YKHO.growths = {'hp': 0.8, 'str': 0.6, 'mag': 0.2, 'skill': 0.7, 'spd': 0.7, 'def': 0.6, 'luk': 0.3, 'res': 0.3} YKHO.hp = 30 YKHO.max_hp = 30 YKHO.name = 'Hans' YKHO.inv...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TlZO():\n return {'position': (gOVk[0] / 2, gOVk[1] / 2), 'health': 100, 'speed': (0, 0), 'angle': 0, 'last_shot_time': 0}", "def FIMM(YKHO):\n YKHO.user_data = {}\n YKHO.player_1 = None\n YKHO.player_2 = None\n YKHO.game = UhfD()\n YKHO.state = gtI8.Startup()", "def mHhR(YKHO):\n YKHO...
[ "0.71529067", "0.68544734", "0.6812178", "0.662999", "0.6566655", "0.65582377", "0.6554544", "0.64883584", "0.6473217", "0.6473217", "0.64502025", "0.6438029", "0.64210457", "0.6415611", "0.6401551", "0.63979435", "0.63921255", "0.6377005", "0.6355157", "0.6318615", "0.630396...
0.0
-1
Equips an item. Has to be a weapon
def rRXv(YKHO, ZfUD): if isinstance(ZfUD, mJgt) and ZfUD.name in YKHO.inventory.get_items(): YKHO.equipped = ZfUD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z92W(YKHO, ZfUD: Equipment) -> None:\n YKHO.armor.equip(ZfUD)", "def Tbdf(YKHO, ZfUD):\n if isinstance(ZfUD, fabp):\n bo34.info('Unequip %s from inventory', ZfUD)\n ZfUD.unequip(YKHO)", "def rRXv(YKHO, ZfUD):\n if isinstance(ZfUD, fabp):\n bo34.info('Equip %s from inventory', ...
[ "0.75611037", "0.7494054", "0.7454381", "0.7188774", "0.7142501", "0.7109178", "0.71028674", "0.6987616", "0.68775535", "0.6845212", "0.67637324", "0.6705847", "0.6694405", "0.6671479", "0.66035414", "0.6575538", "0.65461534", "0.6542491", "0.65166837", "0.6475276", "0.640647...
0.76432294
0
Usage of an item, must not be a weapon
def Pk_D(YKHO, ZfUD): if ZfUD.name in YKHO.inventory.get_items(): if ZfUD.usage == 'HEALING': YKHO.hp = min(YKHO.max_hp, YKHO.hp + ZfUD.amount) if ZfUD.usage == 'SERAPH': YKHO.inc_max_hp(ZfUD.amount)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def use(YKHO, OaeV: commands.Context, ZfUD):\n YVL7 = None\n ZfUD = ZfUD.lower()\n try:\n ZfUD = int(ZfUD)\n if str(ZfUD) in YKHO.items_by_id:\n YVL7 = YKHO.items_by_id[str(ZfUD)]\n except Exception:\n if ZfUD in YKHO.id_by_name:\n YVL7 = YKHO.items_by_i...
[ "0.75837314", "0.7570655", "0.715503", "0.71006036", "0.7080177", "0.7059825", "0.7048854", "0.7011838", "0.6907216", "0.6904881", "0.68951935", "0.68588525", "0.68442976", "0.68103117", "0.67958313", "0.67717755", "0.6722437", "0.66333604", "0.65983176", "0.65645427", "0.655...
0.7698041
0
Get the file name and extension for a given filename or path.
def E3ni(pmON): cZ8_ = Hy7s.path.normpath(pmON) tk5Y, YBcr = Hy7s.path.splitext(cZ8_) mWFP = tk5Y.split(Hy7s.path.sep)[-1] YBcr = YBcr.lstrip('.') return (mWFP, YBcr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cH7W(Ux0P):\n mWFP, Fst3 = gLx5(Ux0P)\n Fst3 = Fst3[1:].lower()\n return (mWFP, Fst3)", "def Enu0(pmON: str) -> str:\n return Hy7s.path.splitext(Hy7s.path.basename(pmON))[1]", "def loi_(FYKK: str):\n return Hy7s.path.splitext(FYKK)[0]", "def OwI_(pmON):\n return Hy7s.path.splitext(pmON)...
[ "0.8283137", "0.82395816", "0.8213198", "0.8210252", "0.82062536", "0.82062536", "0.8170303", "0.8144482", "0.8072037", "0.8003478", "0.7902391", "0.7884583", "0.7874524", "0.7873722", "0.78578484", "0.7852964", "0.78405064", "0.7815853", "0.7811159", "0.78014976", "0.7776255...
0.7446656
60
Generate a boxplot for given dataframe to the path
def dpr1(iMCS, leAC, vLGY): ci4d = Hy7s.path.join(vLGY, leAC + '_boxplot.png') iMCS.boxplot(rot=90) QrM1.title('Boxplot for ' + leAC) QrM1.tight_layout() QrM1.savefig(ci4d) QrM1.clf() QrM1.close('all')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iSE4(Grvo, OKKO, dY74, LLwv):\n oGqY = Hy7s.path.split(Grvo)\n cJBT = Hy7s.path.split(OKKO)\n Ml_L = rLdf.read_csv(Hy7s.path.join(oGqY[0], oGqY[1]))\n imgJ = rLdf.read_csv(Hy7s.path.join(cJBT[0], cJBT[1]))\n rjCw = Ml_L[Ml_L['nombre_cie'] == dY74].copy()\n rjCw.loc[:, 'ambiente'] = oyIN.array...
[ "0.706104", "0.7016106", "0.69979763", "0.69394463", "0.6926648", "0.69108224", "0.6731154", "0.67104375", "0.67039126", "0.6703843", "0.66886276", "0.66559464", "0.66203415", "0.654334", "0.6488815", "0.64835846", "0.64731354", "0.6452975", "0.63879716", "0.6299348", "0.6291...
0.69849944
3
Convert this object into a dictionary.
def MNRr(YKHO) -> dict: return dict(predicate=YKHO.predicate.to_dict(), argument={RhGk: [wAVY.to_dict() for wAVY in eG4M if wAVY.to_dict()] for RhGk, eG4M in YKHO.arguments.items() if any((wAVY.to_dict() for wAVY in eG4M))})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO) -> cuzp:\n return SLdk.asdict(YKHO)", "def MNRr(YKHO) -> dict:\n return lKKu(YKHO)", "def MNRr(YKHO):\n fGC9 = lKKu(YKHO, dict_factory=Z0Ic)\n return fGC9", "def MNRr(YKHO):\n return lKKu(YKHO)", "def MNRr(YKHO):\n return dict(YKHO)", "def OL85(YKHO):\n return YKHO.to_...
[ "0.8692681", "0.863749", "0.86315626", "0.85907984", "0.8543826", "0.8536365", "0.8493997", "0.848123", "0.8480877", "0.8480877", "0.8465732", "0.8465732", "0.8465732", "0.8465732", "0.8465732", "0.8465732", "0.8465732", "0.8465732", "0.8465732", "0.8465732", "0.8465732", "...
0.0
-1
Convert this object into a string.
def yLCI(YKHO) -> str: lgNN = YKHO.predicate.standard_reps Ltpw = [] for RhGk, eG4M in YKHO.arguments.items(): for wAVY in eG4M: if wAVY.head_reps: Ltpw.append(f'{RhGk}: {wAVY.head_reps}') return f'<PAS, predicate: {lgNN}, arguments: {('{' + ', '.join(Ltpw) + '}' if L...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(YKHO):\n return str(YKHO)", "def yLCI(YKHO):\n return str(YKHO)", "def yLCI(YKHO):\n return YKHO.__str__()", "def yLCI(YKHO) -> str:\n return str(YKHO)", "def yLCI(YKHO):\n return YKHO.__str__()", "def gTzM(YKHO):\n return str(YKHO)", "def yLCI(YKHO) -> str:\n return YKHO....
[ "0.8684501", "0.8684501", "0.86733603", "0.8611642", "0.86022943", "0.8580467", "0.85667217", "0.8511359", "0.8454479", "0.8424682", "0.8424682", "0.8408384", "0.83502954", "0.83361715", "0.8283224", "0.82378423", "0.8230055", "0.82234985", "0.82232004", "0.8215937", "0.81921...
0.0
-1
Gets the email of the user whom the ticket is registered to. For backwards compatibility it returns the _email field if the user is not set.
def D3lj(YKHO): return YKHO.user.email if YKHO.user else YKHO._email
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RC0X(YKHO):\n CBIr = getattr(YKHO, YKHO.USER_FIELD)\n return CBIr.get_email()", "def RC0X(YKHO) -> uLKX[str, None]:\n try:\n return dqqV.user_getfield('email')\n except Exception:\n wk5E.logger.warning(\"Missing current user's email!\")\n return None", "def D3lj(YKHO):\n ...
[ "0.84584844", "0.7895982", "0.7870391", "0.7854524", "0.77802706", "0.7743871", "0.7735493", "0.7735493", "0.7711403", "0.77082694", "0.76350296", "0.7508952", "0.7508952", "0.7508952", "0.7498971", "0.7477595", "0.74412346", "0.7418139", "0.7418139", "0.7418139", "0.74061227...
0.8161195
1
The service address of project.
def w2IS(YKHO) -> str: return qe4Y.get(YKHO, 'endpoint')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cBgP(YKHO):\n return '127.0.0.1'", "def cLZ6(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_uri')", "def UTX6(YKHO) -> str:\n return qe4Y.get(YKHO, 'address')", "def UTX6(YKHO) -> str:\n return qe4Y.get(YKHO, 'address')", "def BfLc(YKHO):\n return YKHO._service_host", "def EGEq(YKHO) -...
[ "0.7788258", "0.6967837", "0.68942344", "0.68942344", "0.6822386", "0.68207926", "0.6819648", "0.6819648", "0.68087804", "0.68006104", "0.6728626", "0.6720683", "0.6720683", "0.6720683", "0.6720683", "0.6720683", "0.66874033", "0.6674938", "0.6621993", "0.6600935", "0.6595209...
0.0
-1
The type of project.
def type(YKHO) -> str: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wa6H(YKHO) -> str:\n raise NotImplementedError", "def bNKA(YKHO) -> os5Y:\n raise NotImplementedError", "def v3n2(YKHO):\n return YKHO._build_type", "def LJnO(YKHO):\n HeAU = YKHO.soup.find(string=ZbWC.compile('GitHub repository: '))\n bNKA = HeAU.next_sibling.text\n return bNKA", "de...
[ "0.87769467", "0.73082626", "0.7080753", "0.70124507", "0.6935762", "0.6915937", "0.68992925", "0.6805111", "0.679678", "0.6744463", "0.67396975", "0.67396975", "0.67396975", "0.67396975", "0.67396975", "0.67396975", "0.67396975", "0.67396975", "0.67396975", "0.67396975", "0....
0.66237676
95
Test case for update_flow_falcon_attachment_settings
def uztj(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I20a(YKHO):\n pass", "def bNKW(YKHO):\n pass", "def cUQt(YKHO):\n pass", "def rr5L(YKHO):\n pass", "def LYK7(YKHO):\n pass", "def enmH(YKHO):\n pass", "def q5CG(YKHO):\n pass", "def J7mX(YKHO):\n pass", "def Wz_p(YKHO):\n pass", "def UU3k(YKHO):\n pass", "def K...
[ "0.9312796", "0.92850375", "0.91700196", "0.8513391", "0.84849733", "0.84148383", "0.83797455", "0.8176408", "0.81264585", "0.8111467", "0.8055372", "0.8039812", "0.78561044", "0.78150064", "0.7681866", "0.7296683", "0.7214635", "0.71700484", "0.70557797", "0.7019949", "0.699...
0.9408645
0
Gets access token and refresh token
def thS1(Cotz, Xg86, Wxnj, WGqW): print('code:', Wxnj) bD7m = 'https://api.ciscospark.com/v1/access_token' MOPg = {'accept': 'application/json', 'content-type': 'application/x-www-form-urlencoded'} pB3N = 'grant_type=authorization_code&client_id={0}&client_secret={1}&code={2}&redirect_uri={3}'.format(Co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VgoY():\n pass", "def VgoY(YKHO):\n if YKHO.perform_auth():\n return YKHO.access_token", "def VgoY(YKHO):\n gAlZ = Plm4.getIntegrationContext()\n if gAlZ.get('access_token') and gAlZ.get('expiry_time') > _uaQ(qcWV.now()):\n NT__ = gAlZ.get('access_token')\n else:\n NArs ...
[ "0.79031676", "0.7688717", "0.7579009", "0.7578898", "0.75123876", "0.74096894", "0.7383871", "0.737725", "0.7343965", "0.7327277", "0.7316178", "0.73132217", "0.7299918", "0.72886926", "0.72612834", "0.7241442", "0.7238829", "0.7232708", "0.72046393", "0.71794105", "0.716509...
0.0
-1
Return list containing only even numbers of input list.
def gYEJ(WKvO: list[int]) -> list: YRbF: int = 0 vf3I: list[int] = list() while YRbF < len(WKvO): FGW3: int = WKvO[YRbF] K0A_: int = FGW3 % 2 if K0A_ == 0: vf3I.append(FGW3) YRbF = YRbF + 1 return vf3I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def isxb(IqQl):\n qFa0 = [WKvO for WKvO in IqQl if WKvO % 2 == 0]\n return qFa0", "def Pbi3(list):\n vf3I = []\n for FGW3 in list:\n if FGW3 % 2 == 0:\n vf3I.append(FGW3)\n return vf3I", "def Pbi3(ROk8):\n BdN0 = []\n for YRbF in ROk8:\n if YRbF % 2 == 0:\n ...
[ "0.88212", "0.87449425", "0.8653668", "0.8457479", "0.8189673", "0.81407756", "0.8093065", "0.7956566", "0.7861298", "0.78455955", "0.77683014", "0.7738988", "0.7722312", "0.77060765", "0.7701174", "0.76884586", "0.76767755", "0.7556543", "0.7506847", "0.74824256", "0.7474491...
0.7791112
10
Return list with all elements of given lists.
def ENFq(a0GJ: list[int], TLv5: list[int]) -> list: BdN0: list[int] = list() r845: int = 0 while r845 < len(a0GJ): H2v5: int = a0GJ[r845] BdN0.append(H2v5) r845 = r845 + 1 YRbF: int = 0 while YRbF < len(TLv5): fixk: int = TLv5[YRbF] BdN0.append(fixk) Y...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(UHhk):\n Aofo = []\n for WKvO in UHhk:\n for LihS in WKvO:\n Aofo.append(LihS)\n return Aofo", "def PWgb(UHhk):\n return [ZfUD for XuXy in UHhk for ZfUD in XuXy]", "def svc5(UHhk):\n return list(Hs6x.chain.from_iterable(UHhk))", "def PWgb(g7RK):\n epBp = [WKvO for...
[ "0.781334", "0.7712238", "0.76617134", "0.7570409", "0.75191736", "0.74500495", "0.74500495", "0.74078447", "0.7355708", "0.73440516", "0.7332782", "0.7298144", "0.7283888", "0.7283888", "0.7247848", "0.7243693", "0.72167426", "0.7204457", "0.7160404", "0.7135416", "0.7115923...
0.0
-1
Tests the API endpoint to get isolated margin account info
def w03_(): x0hE = i9zE(H5ew, DXni) geh0 = x0hE.isolated_margin_account(symbols='BTCUSDT,BNBUSDT') geh0.should.equal(eF9l)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VCgX(YKHO):\n pass", "def tfrK(YKHO):\n YKHO.client.force_authenticate(user=YKHO.user)\n geh0 = YKHO.client.get('/api/v1/accounts')\n nPrm = geh0.json()\n assert geh0.status_code == jGRS.HTTP_200_OK\n assert len(nPrm) == 1\n assert nPrm[0]['id'] == YKHO.account.id\n assert nPrm[0]['na...
[ "0.664563", "0.6400528", "0.6388754", "0.6337523", "0.63167346", "0.6272402", "0.62432", "0.6240748", "0.61693645", "0.61206347", "0.61179024", "0.60950345", "0.60543734", "0.6030014", "0.5980548", "0.5946328", "0.5923571", "0.58990115", "0.58823484", "0.5880935", "0.58607966...
0.6669194
0
Converts `TyDiExample`s into `InputFeatures` and sends them to `output_fn`. Each entry is split into multiple `InputFeatures`, which contains windows spans of the article text that contain no more than N wordpieces so as to fit within BERT's context window. This function assigns `unique_ids` to features, which allow us...
def E9Lq(c8Th, LT6S, b0j5: tydi_tokenization_interface.TokenizerWithOffsets, VP2k, G8d9, U4xQ, mL7D, LXkU): Qb3u = g760.defaultdict(list) paGB = 0 for lYDC in c8Th: nWi7 = lYDC.example_id UAju = [] bySB = Aaag(lYDC, tokenizer=b0j5, is_training=LT6S, max_question_length=VP2k, max_seq_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E9Lq(_73Q, b0j5, G8d9, JIw7, LXkU):\n ShR8 = 1000000000\n dg7v, iYf1 = (0, 0)\n for nWi7, PU1l in enumerate(_73Q):\n rcBr = b0j5.tokenize(PU1l.question_text)\n if len(rcBr) > JIw7:\n rcBr = rcBr[0:JIw7]\n dg7v += 1\n GipK = G8d9 - len(rcBr) - 3\n if nW...
[ "0.64429903", "0.6089453", "0.60110784", "0.6002054", "0.5976321", "0.590055", "0.58835363", "0.5855834", "0.58455074", "0.58408105", "0.5807915", "0.5792282", "0.5781504", "0.5765619", "0.57628846", "0.5704131", "0.5700908", "0.569544", "0.5688907", "0.5684676", "0.5680531",...
0.6884553
0
Converts a single `TyDiExample` into a list of InputFeatures.
def Aaag(lYDC: data.TyDiExample, b0j5: tydi_tokenization_interface.TokenizerWithOffsets, LT6S, VP2k, G8d9, U4xQ, mL7D, UAju, UrAk=None) -> x1iM[NMrr]: bySB = [] k7cl = b0j5.tokenize(lYDC.question) LX6F, ufcp, ZUca, TZSm = b0j5.tokenize_with_offsets(lYDC.contexts) for YRbF in ufcp: if YRbF > 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LoiG(YKHO, _73Q):\n bySB = []\n for ttfM, PU1l in enumerate(_73Q):\n D56S = YKHO.tokenizer.tokenize(PU1l.text)\n if len(D56S) > YKHO.max_seq_length - 2:\n D56S = D56S[0:YKHO.max_seq_length - 2]\n s2mk = []\n OIWs = []\n s2mk.append('[CLS]')\n OIWs.appe...
[ "0.7091665", "0.67579234", "0.6730766", "0.66903865", "0.6678237", "0.6466095", "0.6461112", "0.6382728", "0.6382292", "0.63531977", "0.62154853", "0.6194811", "0.6178935", "0.61632866", "0.61332744", "0.6085582", "0.6072497", "0.60604316", "0.6045542", "0.60331655", "0.60265...
0.6537303
5
Read a TyDi json file into a list of `TyDiExample`. Delegates to `preproc.create_entry_from_json` to add special tokens to input and handle character offset tracking.
def WlXx(eZ_W, b0j5: tydi_tokenization_interface.TokenizerWithOffsets, LT6S, bjSb, c3kq, cjVP, lY9n): YHp7 = SC2F.glob(eZ_W) if not YHp7: raise ValueError("No paths matching glob '{}'".format(eZ_W)) HuMa = 0 exwG = 0 for pmON in YHp7: G9jH.info('Reading: %s', pmON) with lY9n(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qlUy(eZ_W):\n with open(eZ_W, 'r', encoding='utf-8') as eHNT:\n WbAn = qQXR.load(eHNT)\n _73Q = []\n for bTKY in WbAn:\n or8S = bTKY['id']\n l5Ny = bTKY['context']\n sB5F = bTKY['type']\n ulfd = [[oeNL[0] for oeNL in LtGU] for LtGU in bTKY['entity']]\n xqlA = ...
[ "0.71093994", "0.68828285", "0.66500294", "0.66086596", "0.6354127", "0.62740505", "0.6269344", "0.620471", "0.61427665", "0.6123453", "0.61028594", "0.60880286", "0.6068445", "0.606566", "0.60390395", "0.602714", "0.6009023", "0.59740496", "0.5970924", "0.59538746", "0.59408...
0.6487849
4
Constructor for the Institution class
def FIMM(YKHO, id=None, mWFP=None, w4k2=None, Y1pu=None, zgHz=None, yCs4=None, VIXL=None, jGRS=None, bWtk=None, jE2F=None, qmkb=None, VIhv=None, HRkJ=None, mKSy=None, UTX6=None, D3lj=None, zuCW=None, sEMv=None, N_X7={}): YKHO.id = id YKHO.name = mWFP YKHO.account_type_description = w4k2 YKHO.phone = bWt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Pwhd, XZyy):\n YKHO.nom = Pwhd\n YKHO.prenom = XZyy\n YKHO.age = 33\n YKHO.lieu_residence = 'Paris'", "def FIMM(YKHO, ISgs):\n YKHO.injuries = [hhhn(WKvO) for WKvO in ISgs]", "def FIMM(YKHO, Y6WE, hoNm):\n UiAc.__init__(YKHO)\n YKHO.interne = Y6WE\n YKHO.suivant = hoNm", ...
[ "0.63450575", "0.6341943", "0.6307029", "0.6138303", "0.60876393", "0.60368264", "0.590904", "0.5907066", "0.5886716", "0.5879073", "0.5864455", "0.5854903", "0.5854903", "0.5838563", "0.5833661", "0.5826629", "0.5803655", "0.57996833", "0.579261", "0.578386", "0.57736516", ...
0.0
-1
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None id = cmPJ.get('id') mWFP = cmPJ.get('name') w4k2 = cmPJ.get('accountTypeDescription') Y1pu = cmPJ.get('urlHomeApp') zgHz = cmPJ.get('urlLogonApp') yCs4 = cmPJ.get('oauthEnabled') VIXL = cmPJ.get('currency') jGRS = cmPJ.get('s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)", "def rQfz(Emd4, cmPJ):\n if cm...
[ "0.83711994", "0.8334289", "0.8214526", "0.8168158", "0.8168158", "0.8147306", "0.8051307", "0.802901", "0.80125165", "0.79786205", "0.7920574", "0.79173696", "0.7916579", "0.79120845", "0.79055357", "0.789913", "0.78954095", "0.7884692", "0.78750896", "0.7853024", "0.7853024...
0.0
-1
Save checkpoint if a new best is achieved
def IRyE(QTBn, xWf0, Ux0P='/output/checkpoint.pth.tar'): if xWf0: print('=> Saving a new best') if not Hy7s.path.exists(Ux0P): with open(Ux0P, 'w'): pass ht2j.save(QTBn, Ux0P) else: print('=> Validation Accuracy did not improve')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IRyE(YKHO, xWf0, Ux0P=None):\n Ux0P = Hy7s.path.join(YKHO.args.checkpoint_dir, Ux0P)\n QTBn = {'epoch': YKHO.current_epoch + 1, 'iteration': YKHO.current_iter, 'state_dict': YKHO.model.state_dict(), 'optimizer': YKHO.optimizer.state_dict(), 'best_MIou': YKHO.best_MIou}\n if xWf0:\n bo34.info('=...
[ "0.8266038", "0.8223599", "0.809479", "0.800978", "0.784001", "0.78015846", "0.7800611", "0.7791193", "0.77430564", "0.7710844", "0.7689427", "0.76582354", "0.76438427", "0.76184404", "0.75749797", "0.7574096", "0.7565265", "0.755794", "0.75466865", "0.75466865", "0.75466865"...
0.82104695
2
Test the default postcode district for correct data
def Kj9P(YKHO): q1wP = cnId.objects.get(pk=1) YKHO.assertEqual(str(q1wP), 'AA01')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hvwV(YKHO):\n YKHO._test_get_value(FYrf.DataField.TYPE_DISTRICT, (('☃', '☃'), ('hello', 'hello'), ('2015-09-15T21:32:56.349186', '2015-09-15T21:32:56.349186'), ('2015-09-15T21:32:56.349186+00:00', '2015-09-15T21:32:56.349186+00:00'), ('1.1', '1.1'), ('1', '1')))", "def vacy(YKHO):\n pass", "def EFex(...
[ "0.6557896", "0.6305204", "0.6231304", "0.62181896", "0.6160521", "0.6048409", "0.6010117", "0.60036784", "0.6000279", "0.59452266", "0.59438425", "0.5917661", "0.5906367", "0.585083", "0.57596856", "0.5759488", "0.5735603", "0.57244337", "0.5709571", "0.570038", "0.5679591",...
0.7505455
0
Test that board root returns notice boards template
def p4Jo(YKHO): B2Dn = YKHO.client.get('/boards/') YKHO.assertEqual(B2Dn.status_code, 200) YKHO.assertTemplateUsed(B2Dn, 'notice_boards.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zvmc(YKHO):\n B2Dn = YKHO.client.get('/boards/1/')\n YKHO.assertEqual(B2Dn.status_code, 200)\n YKHO.assertTemplateUsed(B2Dn, 'single_notice_board.html')\n B2Dn = YKHO.client.get('/boards/2/')\n YKHO.assertEqual(B2Dn.status_code, 404)", "def cFFg(YKHO):\n L05b.objects.create_user('test', 'te...
[ "0.7784082", "0.6798245", "0.6415184", "0.6278161", "0.61994755", "0.61877906", "0.6177784", "0.61472183", "0.6120955", "0.61030555", "0.60816467", "0.5978241", "0.59730726", "0.59702855", "0.5959899", "0.59579235", "0.59516954", "0.5945086", "0.5902996", "0.58714575", "0.585...
0.7795545
0
Test getting a single notice board page works for our test board and raises 404 for no board
def Zvmc(YKHO): B2Dn = YKHO.client.get('/boards/1/') YKHO.assertEqual(B2Dn.status_code, 200) YKHO.assertTemplateUsed(B2Dn, 'single_notice_board.html') B2Dn = YKHO.client.get('/boards/2/') YKHO.assertEqual(B2Dn.status_code, 404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def p4Jo(YKHO):\n B2Dn = YKHO.client.get('/boards/')\n YKHO.assertEqual(B2Dn.status_code, 200)\n YKHO.assertTemplateUsed(B2Dn, 'notice_boards.html')", "def UDkP(YKHO):\n geh0 = YKHO.client.get('your_server_ip:8000')\n YKHO.assertEqual(geh0.status_code, 404)", "def r6eW(YKHO):\n with YKHO.clie...
[ "0.7767395", "0.7063127", "0.6999031", "0.6824313", "0.6763397", "0.66689605", "0.6608945", "0.6559194", "0.6548976", "0.6531847", "0.6503889", "0.6489293", "0.6488771", "0.6487441", "0.64774865", "0.64738846", "0.64699495", "0.64369136", "0.64239323", "0.6419185", "0.641836"...
0.8406603
0
Given two dicts, merge them into a new dict as a shallow copy.
def yQxF(WKvO, LVAh): epBp = WKvO.copy() epBp.update(LVAh) return epBp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IYhE(jzdc, Fg_i):\n Aofo = jzdc.copy()\n Aofo.update(Fg_i)\n return Aofo", "def ywpZ(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(WbPA, S69B):\n lXgg = WbPA.cop...
[ "0.86373323", "0.8522353", "0.8480119", "0.8461926", "0.84596014", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", "0.8382824", ...
0.84394103
5
Helper function to see if two appliances are similar, by comparing all power consumption states states.
def sSuK(XOOk, pHXX, a1PO): j93S = oyIN.copy(XOOk.signature) Nqp_ = oyIN.copy(pHXX.signature) if j93S.shape[0] != Nqp_.shape[0]: raise ValueError('Appliances must have the same number ofstates for full match') h7TM = oyIN.zeros((j93S.shape[0], 1), dtype=bool) Z5zr = oyIN.zeros((Nqp_.shape[0]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mFKJ(YKHO, lUtN, BmXa):\n gnPz.raiseNotDefined()", "def oGO9(lUtN, BmXa):\n if len(lUtN.doneProductList) != len(BmXa.doneProductList) or len(lUtN.undoneProductList) != len(BmXa.undoneProductList) or lUtN.numberFreeEmployer != BmXa.numberFreeEmployer:\n return False\n else:\n for EBgd i...
[ "0.68391913", "0.6693951", "0.6502456", "0.6459227", "0.639055", "0.63240075", "0.6283215", "0.6251165", "0.61481667", "0.6087506", "0.596985", "0.5967794", "0.5932341", "0.591527", "0.59077156", "0.5846994", "0.58180416", "0.58114886", "0.580488", "0.57892346", "0.5783678", ...
0.6638731
2
Helper function to see if the 'on' state of a twostate appliance is matched with some state of a multistate appliance
def W7F0(XOOk, pHXX, a1PO=None, hl9z=None, r8hN=None): j93S = oyIN.copy(XOOk.signature) Nqp_ = oyIN.copy(pHXX.signature) Dn78 = False Ayfi = 10000000000.0 d6pt = -1 for YRbF in range(Nqp_.shape[0]): try: kUBT, Csk6 = BfDw.match_power(j93S[0, :], Nqp_[YRbF, :], active_only=Fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MwSw(QTBn, Rd_7):\n return QTBn['state'] != iKVK and QTBn['state'] != Rd_7['state'] and ('brightness' not in Rd_7 or QTBn['brightness'] != Rd_7['brightness'])", "def Debg(YKHO):\n wEf2 = getattr(YKHO.vehicle, YKHO._attribute)\n if YKHO._attribute == 'bulb_failures':\n return bool(wEf2)\n i...
[ "0.67631966", "0.6473054", "0.6253587", "0.6132663", "0.6066024", "0.60567725", "0.60281205", "0.59773755", "0.5971658", "0.59662616", "0.59424794", "0.59408885", "0.59277457", "0.5912823", "0.59051865", "0.5895456", "0.5887072", "0.58684087", "0.5863048", "0.58572114", "0.58...
0.0
-1
Testing specto actor instantiation.
def b_A_(YKHO, Cqok: task.Spec): assert Cqok(b=3).get_params() == {**Cqok.kwargs, 'b': 3}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super(oO5P, YKHO).__init__()", "def nLZM(YKHO):\n XZVq.Omnilauncher(oEwC())", "def ukkC():\n rEPH = RUQe()\n c08m = zNq4(camera=rEPH)\n assert c08m.camera is rEPH", "def L0jR(YKHO, I8Yy, qIxc):\n try:\n jzdc = YKHO._new_actor(I8Yy)\n pig2 = qIxc.pop('name', '...
[ "0.6785868", "0.65083885", "0.635732", "0.63434774", "0.6265726", "0.62362504", "0.62362504", "0.6204392", "0.617484", "0.61719084", "0.61602706", "0.6142082", "0.61317253", "0.612044", "0.61154354", "0.61120224", "0.61094904", "0.60993373", "0.6088988", "0.6072982", "0.60637...
0.0
-1
Expect same results as pseudocircularize==False if sequences are not circular.
def nH6E(YKHO, kh2K, teqo, nzCe, Xtuq): assert len(kh2K) == 2 assert kh2K[0]['subject']['bases'].upper() == teqo.upper() assert kh2K[1]['subject']['bases'].upper() == nzCe.upper() yTZm, xDcj = Xtuq XCwg = [jzdc['meta']['alignment length'] for jzdc in kh2K] assert len(yTZm[0]['bases']) not in XCw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ggXm(YKHO, lXK0):\n if YKHO._nRanges == 1:\n return False\n for d6pt, (yKcO, JCyR, bGrB) in enumerate(YKHO.ranges):\n if JCyR == lXK0:\n return YKHO.ranges[(d6pt + 1) % YKHO._nRanges][0] == 0\n return False", "def JLJf(exwG):\n global primes\n DWJ0 = MUE7(str(exwG))\n ...
[ "0.6441063", "0.6305969", "0.6171991", "0.6166615", "0.61294436", "0.6065315", "0.5990978", "0.59428793", "0.5933312", "0.59035844", "0.58491653", "0.5834761", "0.5755916", "0.5706394", "0.57002395", "0.5694795", "0.5655062", "0.55734575", "0.5534507", "0.552359", "0.5493837"...
0.6618379
1
Expect same results as pseudocircularize==False if sequences are not circular.
def nH6E(YKHO, kh2K, teqo, nzCe, Xtuq): assert len(kh2K) == 2 assert kh2K[0]['subject']['bases'].upper() == teqo.upper() assert kh2K[1]['subject']['bases'].upper() == nzCe.upper() yTZm, xDcj = Xtuq XCwg = [jzdc['meta']['alignment length'] for jzdc in kh2K] assert len(yTZm[0]['bases']) not in XCw...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ggXm(YKHO, lXK0):\n if YKHO._nRanges == 1:\n return False\n for d6pt, (yKcO, JCyR, bGrB) in enumerate(YKHO.ranges):\n if JCyR == lXK0:\n return YKHO.ranges[(d6pt + 1) % YKHO._nRanges][0] == 0\n return False", "def JLJf(exwG):\n global primes\n DWJ0 = MUE7(str(exwG))\n ...
[ "0.64425457", "0.63056535", "0.61713433", "0.616556", "0.61277676", "0.6065704", "0.5990213", "0.59445393", "0.5931372", "0.59037876", "0.58486974", "0.58348906", "0.5754996", "0.5705965", "0.57003635", "0.5693987", "0.565294", "0.55747676", "0.5533898", "0.5522056", "0.54930...
0.66191584
0
Create the conditions string needed for `cmsDriver'. Just glueing the FrontierConditions bit in front of it really.
def l3ph(YKHO, _SIg): if _SIg.lower().find('conditions') > -1: oedU = _SIg else: oedU = 'FrontierConditions_GlobalTag,%s' % _SIg return oedU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yK9k(YKHO, Qioi, y0cW='', C2w8=True):\n PMLI = [' '.join([y0cW, 'Condition Object:', Qioi['id'], '\\tName:,', Qioi['name'], '\\tDescriptions:', Qioi['description']])]\n for XEri in Qioi['items']:\n if 'value' in XEri:\n PMLI.append(' '.join([y0cW + '\\t', 'Condition:', XEri['type'], XEr...
[ "0.6191412", "0.613308", "0.59271425", "0.5874369", "0.58320093", "0.5815639", "0.5810288", "0.5800188", "0.57435286", "0.5646716", "0.56328994", "0.56125236", "0.55919194", "0.5545117", "0.5495698", "0.5481809", "0.54768664", "0.545855", "0.5424201", "0.542127", "0.53950006"...
0.6858165
0
Parse the output from rfstat and return the 5digit permissions string.
def fGFd(FJnO): f4V_ = [YRbF for YRbF in hlel.split('\n') if YRbF.lower().find('protection') > -1] HlGW = ZbWC.compile('.*\\(([0123456789]{5})\\).*') kUBT = HlGW.search(FJnO) if not kUBT or len(kUBT.groups()) != 1: tO9_ = 'Could not extract permissions from output: %s' % FJnO YKHO.logger...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jqBr(fzB0: str) -> str:\n\n def UHFx(SOcs: str) -> str:\n BWXx = 0\n for G1Hx, Ty9i in enumerate(SOcs):\n if Ty9i == 'r':\n BWXx += 4\n if Ty9i == 'w':\n BWXx += 2\n if Ty9i == 'x':\n BWXx += 1\n return str(BW...
[ "0.63372314", "0.5881304", "0.57433623", "0.5727799", "0.5691385", "0.5606022", "0.5605155", "0.5605155", "0.5605155", "0.5605155", "0.5605155", "0.5605155", "0.5605155", "0.5605155", "0.5605155", "0.5605155", "0.5605155", "0.5605155", "0.5605155", "0.5605155", "0.5605155", ...
0.761094
0
Escape a DBS dataset name. Escape a DBS dataset name such that it does not cause trouble with the file system. This means turning each `/' into `__', except for the first one which is just removed.
def rJjV(YKHO, j3aw): rjUa = j3aw rjUa = rjUa.strip('/') rjUa = rjUa.replace('/', '__') return rjUa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdYS(c55i):\n c55i = c55i.replace('_', '__')\n c55i = Ox_P.sub(lambda r8hN: '_%X' % ord(r8hN.group(0)), c55i)\n return c55i", "def lonM(ABo7):\n oeNL = ABo7.find(':')\n if oeNL > -1:\n Aofo = ABo7[oeNL + 1:]\n else:\n Aofo = ABo7\n return Aofo", "def CGqe(_M9w):\n vOPP...
[ "0.6257752", "0.6248201", "0.59812057", "0.59508383", "0.5904595", "0.5849124", "0.58453554", "0.5779789", "0.5732582", "0.5599786", "0.5506238", "0.550568", "0.5476642", "0.54524624", "0.5446481", "0.54264635", "0.54221225", "0.53903425", "0.5380219", "0.5365051", "0.5363886...
0.84251386
0
Generate the name of the configuration file to be run by CRAB. Depending on the harvesting mode (singlestep or twostep) this is the name of the real harvesting configuration or the name of the firststep ME summary extraction configuration.
def ZYmK(YKHO, j3aw, sX1N): if YKHO.harvesting_mode == 'single-step': _NTK = YKHO.create_harvesting_config_file_name(j3aw) elif YKHO.harvesting_mode == 'single-step-allow-partial': _NTK = YKHO.create_harvesting_config_file_name(j3aw) elif YKHO.harvesting_mode == 'two-step': _NTK = YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FgkN(YKHO):\n E0cB = HwRy.argv\n Xf8z = 'dev'\n if None != E0cB and len(E0cB) > 1:\n Xf8z = E0cB[1]\n Nu1S = Xf8z + '.cfg'\n bo34.info('get_config_file_name() return : ' + Nu1S)\n return Nu1S", "def MeGT(Emd4) -> str:\n return 'config-shootout'", "def _NTK(YKHO):\n pass", "...
[ "0.7011514", "0.6949278", "0.69058454", "0.6569887", "0.65693104", "0.6532684", "0.65232515", "0.6499421", "0.6486976", "0.6442788", "0.641005", "0.63961375", "0.6378088", "0.6354327", "0.630416", "0.6285587", "0.6280463", "0.62599087", "0.6244907", "0.6226581", "0.6203901", ...
0.7552764
0
Check if globaltag exists. Check if globaltag exists as GlobalTag in the database given by self.frontier_connection_name['globaltag']. If globaltag is None, self.globaltag is used instead. If we're going to use reference histograms this method also checks for the existence of the required key in the GlobalTag.
def plkz(YKHO, _SIg=None): if _SIg is None: _SIg = YKHO.globaltag if _SIg.endswith('::All'): _SIg = _SIg[:-5] jCO1 = YKHO.frontier_connection_name['globaltag'] jCO1 = jCO1.replace('frontier://', 'frontier://cmsfrontier:8000/') jCO1 += YKHO.db_account_name_cms_cond_globaltag() DKo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _6bE(YKHO, _SIg, jCO1):\n YKHO.logger.info(\"Checking existence of GlobalTag `%s'\" % _SIg)\n YKHO.logger.debug(\" (Using database connection `%s')\" % jCO1)\n HCmI = 'cmscond_tagtree_list -c %s -T %s' % (jCO1, _SIg)\n jGRS, hlel = Yn3K.getstatusoutput(HCmI)\n if jGRS != 0 or hlel.find('error')...
[ "0.7690718", "0.7127327", "0.6066518", "0.60074705", "0.5899324", "0.5842414", "0.55045605", "0.5387949", "0.5387949", "0.52965176", "0.52965176", "0.5276571", "0.5272322", "0.5250705", "0.5245992", "0.52409214", "0.514927", "0.5146431", "0.5131386", "0.5122318", "0.5120598",...
0.85674524
0
Zero the gradient buffers.
def YP7j(YKHO): YKHO.unet.zero_grad()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RP8F(YKHO):\n assert YKHO._grad_buffers is not None, 'buffers are not initialized.'\n for bGrB, GsOy in YKHO._grad_buffers.items():\n GsOy.zero()", "def vaxF(YKHO):\n YKHO.dw.zero_()\n YKHO.db.zero_()", "def frhb(YKHO):\n YKHO.gradW = VNqG(YKHO.W.shape)\n YKHO.gradb = VNqG(YKHO.b.s...
[ "0.86332977", "0.7800649", "0.7567117", "0.7420076", "0.74056625", "0.7310003", "0.72885877", "0.72882223", "0.7280635", "0.7280635", "0.7271896", "0.72656256", "0.7254916", "0.7248324", "0.7241523", "0.72139937", "0.7205861", "0.7184464", "0.71841586", "0.71841586", "0.71841...
0.68454826
41
computes the gradient WRT the bias vector of layer i
def BFOq(YKHO, AF18): return AF18
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tbeP(LVAh, UShr, yzQ0):\n return oyIN.dot(UShr.T, m1Hg(oyIN.dot(UShr, yzQ0)) - LVAh)", "def ICX2(yzQ0, WKvO, a1PO):\n return 2 * oyIN.dot(WKvO.T, U78l(WKvO, yzQ0) - a1PO)", "def tbeP(LVAh, UShr, yzQ0):\n nvEb = m1Hg(UShr.dot(yzQ0))\n Ro40 = UShr.T.dot(nvEb - LVAh)\n return Ro40", "def iXEH...
[ "0.7279293", "0.7271481", "0.7247708", "0.7224798", "0.7152675", "0.7127519", "0.701613", "0.69565946", "0.69322735", "0.6894009", "0.686631", "0.6861563", "0.6855228", "0.6828981", "0.68073016", "0.67971057", "0.6787932", "0.677879", "0.6775863", "0.6773585", "0.67734927", ...
0.0
-1
evaluates the cost function, averaged over a batch. compares the current network output with the values in ybatch.
def RVpb(YKHO, cI_1): return YKHO.get_cost_function(cI_1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b7La(YKHO, EcVT=None, LVAh=None, Ep8u=32, PJWX=0):\n N8L0 = []\n Wbxz = []\n for hlel, pan_ in se9W(EcVT, LVAh, Ep8u):\n N77f, AcYW, hlel = YKHO.test_on_batch(hlel, pan_)\n N8L0.append(N77f)\n Wbxz.append(AcYW)\n if PJWX >= 1:\n print(f'-> {pan_} - raw{E3D9.round...
[ "0.70051867", "0.6901106", "0.68453866", "0.6821299", "0.6776784", "0.67464715", "0.6654467", "0.66228306", "0.66090137", "0.6564103", "0.6562455", "0.6545549", "0.6525615", "0.6507728", "0.65055144", "0.6503814", "0.6503459", "0.6483927", "0.64754003", "0.64693373", "0.64602...
0.7244031
0
performs a gradientdescent update of the weights with learning rate lr
def M1mE(YKHO, tspZ): for YRbF in range(1, YKHO.num_layers + 1): HFON, NCls = (YKHO.get_weights_grad(YRbF), YKHO.get_bias_grad(YRbF)) XcU5, Fg_i = (YKHO.get_weights(YRbF), YKHO.get_bias(YRbF)) XcU5 -= tspZ * oyIN.mean(HFON, axis=0) Fg_i -= tspZ * oyIN.mean(NCls, axis=0) YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EWqU(YKHO, b0Ix=1):\n for YRbF in range(len(YKHO.weights)):\n _mSQ = YKHO.weights[YRbF]\n Fi7w = YKHO.derivatives[YRbF]\n _mSQ += Fi7w * b0Ix", "def EWqU(YKHO, b0Ix):\n aPd6 = YKHO.num_layers\n for vC9B in range(1, aPd6):\n YKHO.params['W%d' % vC9B] -= b0Ix * YKHO.grads['...
[ "0.8360783", "0.82987934", "0.80185187", "0.79221076", "0.7801543", "0.77088183", "0.76512784", "0.7447706", "0.7430758", "0.74188066", "0.74033165", "0.7355969", "0.7318374", "0.7316398", "0.731365", "0.7300853", "0.7300097", "0.7287359", "0.72720623", "0.72659886", "0.72624...
0.76074445
7
Returns an integer representing the age of the building, provided its building id.
def jyo8(YKHO, jNJS: int) -> int: return _c1T.today().year - YKHO.get_record_by_building_id(jNJS)['yearbuilt']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZJe_(YKHO):\n yo7_ = qcWV.date(2021, 4, 6)\n d7_d = int(YKHO.birthday[0:4])\n cpvk = int(YKHO.birthday[4:6])\n I1iR = int(YKHO.birthday[6:8])\n i_8Y = qcWV.date(d7_d, cpvk, I1iR)\n Zw6u = (yo7_ - i_8Y).days\n dDEz = Zw6u / 365\n return int(dDEz)", "def lM4z(YKHO):\n if YKHO.birthda...
[ "0.7341108", "0.7298689", "0.7267334", "0.7198972", "0.71746594", "0.7159705", "0.7100469", "0.7091596", "0.70187587", "0.6986027", "0.6986027", "0.6978943", "0.6977516", "0.6972042", "0.6952177", "0.6934539", "0.69333875", "0.69279927", "0.6920396", "0.6913995", "0.6909204",...
0.88849014
0
Returns a folium map with information about all the buildings.
def fNRx(YKHO, M8PP: bool=False) -> lINC.Map: if YKHO._map: return YKHO._map ZGDq, hLOy = (40.68424658435642, -73.91630313916588) yuBp: lINC.Map = lINC.Map(location=[ZGDq, hLOy], tooltip='Click for building information', tiles='OpenStreetMap', zoom_start=12) ZLJ_ = ['buildingid', 'address', 'lat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def map():\n return lINC.Map()", "def EjP1():\n elv7 = lINC.Map(location=[46, 2.291705], zoom_start=7)\n return elv7", "def RVMj():\n _ngs = NCls(NCls.gis_location.id == NCls.flood_freport.location_id).select()\n pjMn = rOmR(r=QePW, f='freport', args='read.popup?freport.location_id=')\n map =...
[ "0.7330551", "0.6972652", "0.6820243", "0.678872", "0.671923", "0.6544513", "0.65149105", "0.64032894", "0.63296443", "0.626348", "0.62404954", "0.61792725", "0.6109149", "0.60999066", "0.60482013", "0.6037477", "0.602268", "0.5985902", "0.5981893", "0.59618574", "0.59576935"...
0.72171134
1
Returns a feature group with a heat map of the locations in the provided pandas DataFrame.
def cZ_o(YKHO, mWFP: str, elv7: folium.Map, exwG: int=None) -> lINC.FeatureGroup: nPrm = YKHO.data if exwG: QG0o = nPrm['statusdate'].dt.year == max(nPrm['statusdate'].dt.year) - exwG nPrm = nPrm[QG0o] LD1b = nPrm['latitude'].values k_Cy = nPrm['longitude'].values OWTK = nPrm['buildi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def stOF(bOBl: pd.DataFrame, **B2fa):\n return uuEx.heatmap(bOBl, annot=True, fmt='.1g', linecolor='w', linewidths=3, **B2fa)", "def stOF(bOBl):\n LZpg, aNZO = QrM1.subplots()\n dNGY = bOBl.corr()\n aNZO = uuEx.heatmap(dNGY, cmap='coolwarm')\n return LZpg", "def cI08(YKHO, jQ3Z: gpd.GeoDataFrame...
[ "0.74520016", "0.733744", "0.7181298", "0.7140069", "0.7032349", "0.70034164", "0.6991207", "0.69818574", "0.6731586", "0.67192614", "0.6604539", "0.656662", "0.6536004", "0.65315706", "0.632801", "0.63249886", "0.6297452", "0.6269621", "0.6167115", "0.61397207", "0.6136196",...
0.62376773
18
Accepts a Folium map in which custom leaflet marker cluster are added.
def Nwvq(YKHO, nPrm: pd.DataFrame, mWFP: str='name not specified') -> lINC.plugins.MarkerCluster: wB6q = 'N/A' jElY = '' with open('./static/js/iconCreateFunction.js', 'r') as eHNT: jElY = eHNT.read() qx65 = lINC.plugins.MarkerCluster(name=mWFP, icon_create_function=jElY) for jNJS, UTX6, _Uu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OR44(YKHO, WYYc):\n WYYc.add_layer(YKHO.get_layer())", "def GK7s(Z7L1, Cx9o, IERV):\n for C6id, nPrm in Cx9o.items():\n QnmL = float(nPrm['lat'])\n FDPT = float(nPrm['lon'])\n UXqs = str(C6id) + ': ' + str(nPrm['jobs']) + ' Stellen'\n r1VO = int(nPrm['jobs'])\n lINC.C...
[ "0.6439582", "0.62708163", "0.62403077", "0.62189347", "0.62116313", "0.61631715", "0.6133402", "0.60647166", "0.6051889", "0.60424286", "0.60365206", "0.602709", "0.60162675", "0.5946542", "0.5921309", "0.5907191", "0.5892648", "0.589221", "0.58921105", "0.5879309", "0.58788...
0.57585126
24
Creates a matrix with ij elements x_i x_j; ie a matrix of displacement vectors between particles i and j
def CQfL(YKHO): YKHO.r[...] = YKHO.x[:, XTiz.newaxis, :] - YKHO.x YKHO.r_norm2[...] = BJ1H(YKHO.r, YKHO.r)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _bix(YKHO) -> oyIN.ndarray:\n mvWd = YKHO.vect_X()\n Dt7y = 0\n for YRbF in range(YKHO.n):\n for r845 in range(YKHO.n):\n YKHO.X[r845, YRbF] = mvWd[Dt7y]\n Dt7y += 1\n return YKHO.X", "def oWao(YKHO, hu1e):\n ZIdc = hu1e.shape[0]\n Aofo = YKHO.xp.zeros((ZIdc, YK...
[ "0.6433633", "0.62603295", "0.6152117", "0.61028326", "0.6003887", "0.5903884", "0.5893", "0.58875567", "0.5868075", "0.5850177", "0.5805297", "0.57951576", "0.5794254", "0.57790893", "0.57541704", "0.5747933", "0.5715384", "0.5708579", "0.5706413", "0.5690552", "0.5685363", ...
0.0
-1
Row number of the cell.
def rdlD(YKHO): return YKHO._row
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zdHI(YKHO):\n return len(YKHO.cells)", "def RXWL(YKHO):\n return oyIN.shape(YKHO.data)[0]", "def D6OO(YKHO):\n return YKHO._row_no", "def vT7v(YKHO):\n return YKHO.shape[0] - 2", "def zdHI(YKHO):\n return YKHO.cell_number", "def PNHv(YKHO) -> int:\n ...", "def mPcM(YKHO):\n ret...
[ "0.81601125", "0.8084705", "0.8049141", "0.7762249", "0.77571183", "0.7682788", "0.76511997", "0.76240677", "0.74781567", "0.74512124", "0.74408257", "0.74300843", "0.7408148", "0.73598003", "0.73086697", "0.73083436", "0.725333", "0.725333", "0.725333", "0.725333", "0.720254...
0.0
-1
Return the current game state.
def lVlK(YKHO, QePW): BH3N = GB4p(QePW.urlsafe_game_key, _apf) if BH3N and (not BH3N.is_cancelled): return BH3N.to_form() else: raise wnQ_.NotFoundException('Game not found.')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n return YKHO.game.get_state()", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(YKHO):\n return YKHO._game_state", "def j3Sc(Y...
[ "0.8922343", "0.873454", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.86651415", "0.8323791", "0.82353854", "0.8165055", "0.8154852", "0.8044036", "0....
0.0
-1
Pad the instances to the max sequence length in batch, and generate the corresponding position data and attention bias.
def zPvE(FiTe, eR3Z='int64', CPLx=0, pjQN=False, ynhu=False, kmsW=False, Jlgx=False, WKJz=False): CIH_ = [] wzH_ = max((len(p4_k) for p4_k in FiTe)) JrWg = oyIN.array([p4_k + list([CPLx] * (wzH_ - len(p4_k))) for p4_k in FiTe]) CIH_ += [JrWg.astype(eR3Z).reshape([-1, wzH_, 1])] if pjQN: HrXc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nR8b(YKHO, bUWH: List[List[int]], BcCR: int, OS16: bool=True):\n IzpK = []\n for KAOR in bUWH:\n ZAy9 = YKHO.pad_instance(numericalized_text=KAOR, max_length=BcCR, add_start_end_token=OS16)\n IzpK.append(ZAy9)\n return IzpK", "def gc7n(Wc9F):\n Xtuq = [ht2j.squeeze(WKvO[0]) for WKvO...
[ "0.67932874", "0.65497434", "0.6527908", "0.6395693", "0.6374473", "0.6351981", "0.6306518", "0.6306153", "0.62779695", "0.6202228", "0.6182342", "0.61246824", "0.6108481", "0.61060417", "0.6093584", "0.6049944", "0.60457325", "0.60354286", "0.5947413", "0.5943574", "0.587833...
0.59750193
18
Pad the instances to the max sequence length in batch, and generate the corresponding position data and attention bias.
def kmin(FiTe, eR3Z='int64', CPLx=0, pjQN=False, ynhu=False, kmsW=False, Jlgx=False, WKJz=False, TSkv=1.6): CIH_ = [] wzH_ = max((len(p4_k) for p4_k in FiTe)) JrWg = oyIN.array([p4_k + list([CPLx] * (wzH_ - len(p4_k))) for p4_k in FiTe]) CIH_ += [JrWg.astype(eR3Z).reshape([-1, wzH_])] if pjQN: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nR8b(YKHO, bUWH: List[List[int]], BcCR: int, OS16: bool=True):\n IzpK = []\n for KAOR in bUWH:\n ZAy9 = YKHO.pad_instance(numericalized_text=KAOR, max_length=BcCR, add_start_end_token=OS16)\n IzpK.append(ZAy9)\n return IzpK", "def gc7n(Wc9F):\n Xtuq = [ht2j.squeeze(WKvO[0]) for WKvO...
[ "0.67950207", "0.6548235", "0.6526446", "0.6393668", "0.6373914", "0.6350741", "0.6305772", "0.6305609", "0.6200411", "0.61800873", "0.6123387", "0.61063176", "0.61034316", "0.6092512", "0.6048247", "0.60443246", "0.60339427", "0.5974698", "0.59464633", "0.5943103", "0.587589...
0.6277635
8
Create checkpoint file with provided model weights.
def eyjh(xEPo, Aak1, eG0V): _mSQ, HabP = zip(*xEPo) wdzC = {} for YRbF in range(0, len(_mSQ) - 1): wdzC[S1rN % YRbF] = _mSQ[YRbF] wdzC[sLtf % YRbF] = HabP[YRbF] wdzC[wPh2] = _mSQ[-1] wdzC[SUCO] = HabP[-1] with IPme.Graph().as_default(): for G1Hx, Ty9i in jKi7.iteritems(wd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a8LH(YKHO, cuiw):\n L_jN = YKHO.cp_save_dir + YKHO.model_name + '_v' + YKHO.version\n LyaQ = YKHO.full_saver.save(cuiw, save_path=L_jN + '_full', global_step=YKHO.global_step)\n G9jH.info('Full model saved in file %s' % LyaQ)\n aTBj = YKHO.weight_saver.save(cuiw, save_path=L_jN + '_weights', global...
[ "0.7200727", "0.69107723", "0.6869748", "0.676584", "0.6765715", "0.6765574", "0.67576075", "0.6692053", "0.66752154", "0.66730535", "0.65795344", "0.6574929", "0.65675753", "0.65540534", "0.65474296", "0.65285045", "0.65170354", "0.65017706", "0.6499076", "0.6499076", "0.647...
0.726645
0
Return 'yes' if number is even, else return 'no'.
def ubP8(FGW3): if FGW3 % 2 == 0: return 'yes' return 'no'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mXlz():\n return 'Answer \"yes\" if the number is even, otherwise answer \"no\".'", "def ubP8(FGW3):\n return FGW3 % 2 == 0", "def ubP8(FGW3):\n return FGW3 % 2 == 0", "def ubP8(FGW3):\n return FGW3 % 2 == 0", "def ubP8(FGW3):\n return FGW3 % 2 == 0", "def ubP8(FGW3):\n return FGW3 ...
[ "0.84555954", "0.81596756", "0.8151721", "0.81343824", "0.81343824", "0.81343824", "0.81343824", "0.8103448", "0.80914754", "0.80914754", "0.8078513", "0.8036937", "0.8002223", "0.7984161", "0.7971337", "0.7958016", "0.79333085", "0.789876", "0.7893332", "0.7890408", "0.78904...
0.8973597
0
Converts num (int or float expressed in base 10) to given base. Bases 236 work fine with standard digits. If supplied with longer set of digits, higher bases are also supported. Doesn't get scared of floats.
def GTKc(mLGw, P8oC, BHGE='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ', kYpI=-10): bD3d = '' try: kCBe = int(mLGw) f2eO = mLGw - kCBe while kCBe >= 1: VlDb = kCBe % P8oC kCBe = kCBe // P8oC bD3d = BHGE[VlDb] + bD3d if f2eO == 0: return bD...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _gLu(mLGw, P8oC):\n BHGE = '0123456789ABCDEF'\n if mLGw < P8oC:\n return BHGE[mLGw]\n else:\n return _gLu(mLGw // 2, P8oC) + BHGE[mLGw % P8oC]", "def npVH(mLGw, P8oC):\n if mLGw <= 0:\n return '0'\n BHGE = []\n for YRbF in range(13, -1, -1):\n naF9 = P8oC ** YRbF...
[ "0.7693507", "0.76483893", "0.7629656", "0.76022375", "0.7565624", "0.7553099", "0.7537322", "0.74660856", "0.74250567", "0.7392334", "0.7320034", "0.7320034", "0.7320034", "0.72988164", "0.7272235", "0.7240025", "0.7201309", "0.7175808", "0.7143644", "0.71364814", "0.7111651...
0.6958935
32
Converts numstring (must be string) expressed in base base to base 10. Bases 236 work fine with standard digits. If supplied with longer set of digits, higher bases are also supported. Doesn't get scared of floats.
def g3U2(qiwL, P8oC, BHGE='0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ'): MN3G = 0 AU8u = False R9Bw = -1 try: for Ko6S in qiwL: if Ko6S == '.': AU8u = True elif AU8u: MN3G += BHGE.index(Ko6S) * P8oC ** R9Bw R9Bw -= 1 e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GTKc(mLGw, P8oC):\n C9yt, sWcR = ('', '')\n rJrZ = mLGw\n if not 1 < P8oC < 37:\n raise ValueError('base must be between 2 and 36')\n if not mLGw:\n return '0'\n while rJrZ:\n VlDb = rJrZ % P8oC\n rJrZ = rJrZ // P8oC\n C9yt = chr(48 + VlDb + 7 * (VlDb > 10)) + ...
[ "0.77568346", "0.7704959", "0.76985073", "0.7678662", "0.76294327", "0.7604019", "0.7604019", "0.7604019", "0.75754434", "0.74718547", "0.73725176", "0.7350332", "0.7345038", "0.7334096", "0.7259124", "0.72526675", "0.7239", "0.7234622", "0.7213937", "0.71753156", "0.7077072"...
0.7750263
1
Calculates the mean based on the input array
def nC2r(nPrm: []) -> float: try: return round(sum(nPrm) / len(nPrm), 2) except ZeroDivisionError: return 0.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pueu(ezWE):\n return ezWE.mean()", "def YT4S(ezWE):\n sum = 0\n for YRbF in range(0, ezWE.shape[0]):\n for r845 in range(0, ezWE.shape[1]):\n sum = sum + ezWE[YRbF][r845]\n return sum / ezWE.size", "def JBMS(CK9p):\n return sum(CK9p) / len(CK9p)", "def nC2r(YKHO):\n re...
[ "0.83593154", "0.83496106", "0.796705", "0.79165846", "0.79050386", "0.77849615", "0.77678424", "0.7745188", "0.7708465", "0.76620805", "0.7632332", "0.7609102", "0.7598885", "0.75504166", "0.75481886", "0.75060433", "0.74720323", "0.74590397", "0.744792", "0.7442214", "0.742...
0.746337
17
Calculate mean and standard deviation across repeated measurements.
def Z2bX(Sxzb): return ([], [])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 d6pt in gU0L:\n JBMS.append(oyIN.mean(WNJo[d6pt], axis=0))\n for d6pt in gU0L:\n ifkm.append(oyIN.std(WNJo[d6pt], axis=0))\n ret...
[ "0.697304", "0.6900214", "0.6726824", "0.66636485", "0.666231", "0.663892", "0.66026396", "0.65997064", "0.6546435", "0.6535825", "0.65208", "0.650924", "0.6498284", "0.649596", "0.647386", "0.6463556", "0.6461091", "0.6458436", "0.64557445", "0.64436656", "0.64399403", "0....
0.0
-1
Get the position of the sensor. This represents the location of the sensor in [x, y] CM.
def Iuzb(YKHO): return YKHO.position
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xbmY(YKHO):\n n8hW = {'command': 'get_position_sensor'}\n Ljsp = YKHO.send_cmd(n8hW)\n return Ljsp['position']", "def Iuzb(YKHO):\n try:\n Aofo = YKHO.dev._get_position()\n except:\n YKHO.error = 'failed to get position'\n Aofo = JNix\n return Aofo", "def dQgj(YKHO):\...
[ "0.88894403", "0.82786363", "0.79282147", "0.78894955", "0.78589594", "0.7806731", "0.7802234", "0.7790811", "0.7762175", "0.7747172", "0.7703551", "0.7703551", "0.7703127", "0.7701612", "0.76799047", "0.7677674", "0.7669083", "0.76538837", "0.7648199", "0.7648199", "0.764537...
0.767766
16
Set the distance that the sensor is reading. You would not usually do this manually.
def YbHA(YKHO, Ayfi): YKHO.distance = Ayfi YKHO.reading = Ayfi / YKHO.max
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qj36(YKHO, BWXx):\n YKHO.distance = BWXx", "def qj36(YKHO, Ayfi):\n YKHO.distance = Ayfi", "def Uzsc(YKHO):\n YKHO.set_distance(YKHO.ultrasonic_sensor_component.reading())", "def qj36(YKHO, Ayfi):\n YKHO.distX, YKHO.distY = (Ayfi[0], Ayfi[1])\n YKHO.updateUi()", "def YbHA(YKHO):\n BWX...
[ "0.8080421", "0.7915418", "0.78408206", "0.7576436", "0.74465656", "0.7294044", "0.7270039", "0.71683824", "0.71275026", "0.7083821", "0.70555997", "0.70555997", "0.70555997", "0.6949147", "0.688927", "0.68505704", "0.6818062", "0.67881703", "0.6757936", "0.672447", "0.666431...
0.8569452
0
Test that changes to defaults.MISSING_TAGS take effect.
def E_tH(YKHO): rPXJ = u'{{foo}}' QpfX = {} n5sN = GEZT.render(rPXJ, QpfX) YKHO.assertString(n5sN, u'') GEZT.defaults.MISSING_TAGS = 'strict' YKHO.assertRaises(GEZT.context.KeyNotFoundError, GEZT.render, rPXJ, QpfX)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gH9K(YKHO):\n bKV4 = I8ZM('tags_empty')\n gZ75, hHqS, wzCW = nTdF(bKV4)\n YKHO.assertIsNone(gZ75)\n YKHO.assertIsNone(hHqS)\n YKHO.assertIsNone(wzCW)", "def hrVp(YKHO):\n pdAj = E3sf.create(annotate_links=False)\n lfdS = [('[REDACTED]', '[REDACTED]'), ('[REDACTED this]', '[REDACTED this]...
[ "0.6740187", "0.6517726", "0.64924896", "0.64771956", "0.6385723", "0.6382145", "0.6295469", "0.6273514", "0.6254627", "0.6231562", "0.62210983", "0.6201906", "0.617705", "0.6143741", "0.613028", "0.6108909", "0.6086924", "0.6075309", "0.60662097", "0.60603565", "0.6031596", ...
0.66083413
1
returns the area value of the Rectangle instance
def f0tD(YKHO): return YKHO.__width * YKHO.__height
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n f0tD = YKHO.__width * YKHO.__height\n return f0tD", "def f0tD(YKHO):\n f0tD = YKHO.length * YKHO.width\n return f0tD", "def f0tD(YKHO):\n return (YKHO.xmax - YKHO.xmin) * (YKHO.ymax - YKHO.ymin)", "def f0tD(YKHO):\n return rSWe(YKHO.dimensions).area()", "def f0tD(YKHO):\...
[ "0.832917", "0.8248067", "0.8197459", "0.81078285", "0.8089453", "0.8089453", "0.8086925", "0.80650216", "0.80514425", "0.80514425", "0.80514425", "0.804502", "0.8037266", "0.8037266", "0.80236596", "0.8005433", "0.8005433", "0.8005433", "0.8005433", "0.79891294", "0.79891294...
0.8118105
3
Converts points to contour.
def kb17(LTIa): return oyIN.asarray([[list(AU8u)] for AU8u in LTIa], dtype=oyIN.int32)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IHxj(LTIa):\n return oyIN.asarray([kb17(LTIa)])", "def cpyt(LTIa):\n fUYa, bEXe = zip(LTIa[-1], *LTIa)\n QrM1.plot(fUYa, bEXe, color='blue')", "def sYia(YKHO):\n q6sP = oyIN.transpose(YKHO.get_colorpoints(), (1, 0))\n b7Ss = L8G0(q6sP)\n return q6sP[b7Ss.vertices, :]", "def iLki(YKHO, e...
[ "0.758556", "0.6642306", "0.651653", "0.6241394", "0.6241394", "0.6215371", "0.6192036", "0.61665213", "0.6116355", "0.6109248", "0.6099391", "0.6099391", "0.6097876", "0.60896385", "0.6059897", "0.6037135", "0.6018868", "0.6000472", "0.5996937", "0.596237", "0.59526837", "...
0.734747
1
Converts points to contours.
def IHxj(LTIa): return oyIN.asarray([kb17(LTIa)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kb17(LTIa):\n return oyIN.asarray([[list(AU8u)] for AU8u in LTIa], dtype=oyIN.int32)", "def QG_z(YKHO):\n return XC5k.findContours(YKHO.input, XC5k.RETR_CCOMP, XC5k.CHAIN_APPROX_SIMPLE)", "def YRbb(ZomG):\n hlel = []\n for iLki in ZomG:\n hlel.append(XC5k.convexHull(iLki))\n return hl...
[ "0.69800144", "0.6587089", "0.65340096", "0.65340096", "0.6323378", "0.6309585", "0.62844175", "0.6277581", "0.6240948", "0.62038547", "0.61890274", "0.6185691", "0.61490214", "0.61179274", "0.6113718", "0.6110694", "0.6103694", "0.608106", "0.60796887", "0.60731524", "0.6069...
0.81349915
0
Return a mapping from filename to path rooted at directory, ignoring files that don't match suffix, and subtrees with names in exclude. Report when a filename appears in more than one subdir; the first path found is kept.
def Z5fs(AGPF, y0cW, ZI14, DNHh=None): Aofo = {} for TLI7, AQSv, RRlC in Hy7s.walk(AGPF, topdown=True): if DNHh: AQSv[:] = [Csk6 for Csk6 in AQSv if Csk6 not in DNHh] if AGPF != '.': TLI7 = pmON.join(AGPF, TLI7) for eHNT in RRlC: if not eHNT.endswith(Z...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pnxB(ZI14, NLQl=[]):\n yvT9 = []\n d7YE = Hy7s.walk('.')\n for pmON, AGPF, RRlC in d7YE:\n for HHWf, eWAE in enumerate(AGPF):\n if eWAE in NLQl:\n del AGPF[HHWf]\n kUBT = filter(lambda WKvO: WKvO.endswith(ZI14), RRlC)\n if kUBT:\n yvT9.append((...
[ "0.6885962", "0.6471217", "0.63962144", "0.6380683", "0.63267606", "0.62877345", "0.6281109", "0.62180454", "0.6201738", "0.6189513", "0.6171767", "0.61630964", "0.6097505", "0.6094219", "0.60859025", "0.60859025", "0.60751665", "0.6071176", "0.6068969", "0.60673296", "0.6065...
0.7299709
0
Route the incoming request based on type (LaunchRequest, IntentRequest, etc.) The JSON body of the request is provided in the event parameter.
def cfQO(tvqc, QpfX): print('event.session.application.applicationId=' + tvqc['session']['application']['applicationId']) "\n Uncomment this if statement and populate with your skill's application ID to\n prevent someone else from configuring a skill that sends requests to this\n function.\n " i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfQO(tvqc, QpfX):\n print('Incoming request...')\n if tvqc['session']['new']:\n pass\n if tvqc['request']['type'] == 'LaunchRequest':\n return sjFK(tvqc['request'], tvqc['session'])\n if tvqc['request']['type'] == 'IntentRequest':\n return E97p(tvqc['request'], tvqc['session'])...
[ "0.69191045", "0.6761577", "0.6582709", "0.6489553", "0.64564925", "0.63761616", "0.6285285", "0.62711346", "0.626935", "0.62445796", "0.6217598", "0.6214152", "0.619323", "0.6178254", "0.61518997", "0.6143791", "0.6132207", "0.61306834", "0.6051094", "0.60083073", "0.5981312...
0.5627289
69
Adjust color saturation of an RGB image.
def lszR(VXjJ, pJUE): if pJUE < 0: raise ValueError('saturation_factor ({}) is not non-negative.'.format(pJUE)) if not rTBB(VXjJ): raise TypeError('tensor is not a jittor image.') return QXzA(VXjJ, fppW(VXjJ), pJUE)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I8SA(VXjJ, pJUE):\n if not RDRa(VXjJ):\n raise TypeError(t_1q.format(type(VXjJ)))\n HPWO = eCWE.Color(VXjJ)\n VXjJ = HPWO.enhance(pJUE)\n return VXjJ", "def TDcz(VXjJ, aM8h=1.8):\n HPWO = eCWE.Color(VXjJ)\n return HPWO.enhance(aM8h)", "def Q3Ld(VXjJ, pJUE):\n if not Qfi2(VXjJ):\...
[ "0.7927694", "0.7900797", "0.77779126", "0.72839355", "0.72412026", "0.71563745", "0.6828463", "0.67601717", "0.6674114", "0.6670903", "0.6619086", "0.65774745", "0.6540389", "0.6537005", "0.64803725", "0.6474907", "0.64326036", "0.64188546", "0.6322179", "0.6318206", "0.6312...
0.6128861
32
Destroy all widgets currently on the Frame.
def Y7Bk(YKHO): for TEdI in YKHO.widgets: TEdI.destroy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zjR7(YKHO):\n for TEdI in YKHO.winfo_children():\n TEdI.destroy()", "def Y7Bk(YKHO):\n for TEdI in YKHO.winfo_children():\n TEdI.destroy()", "def zjR7(f4IJ: tkinter.Frame):\n for TEdI in f4IJ.winfo_children():\n TEdI.destroy()", "def fhHB(YKHO):\n for aUGN in YKHO.innerFr...
[ "0.8468083", "0.83859414", "0.81900793", "0.8183661", "0.79481447", "0.7937349", "0.78648084", "0.78648084", "0.77958864", "0.7650029", "0.76430076", "0.75871015", "0.75820756", "0.74601847", "0.7404084", "0.73720205", "0.73104435", "0.73104435", "0.72835743", "0.7187797", "0...
0.86463046
0
Creates a new Tkinter application.
def LUif(leAC, GPtr): tk5Y = xNQ_() tk5Y.title(leAC) P4t4 = Z33s(tk5Y, GPtr) P4t4.start_screen() tk5Y.mainloop() GPtr.save()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTdB(*qIxc, **B2fa):\n tk5Y = xNQ_()\n eFlV = lYML(*qIxc, frame=tk5Y, **B2fa)\n return tk5Y", "def kP8N(YKHO):\n m36K()", "def LUif():\n return eLpg(mode='app')", "def aPKU(YKHO):\n Ihsw = Esm4(target=YKHO._create_application)\n Ihsw.start()", "def NnQB(YKHO):\n KnxT = JX2A(YKHO...
[ "0.7232167", "0.7231302", "0.70078087", "0.6978629", "0.69736165", "0.68856925", "0.6814345", "0.67563283", "0.6665605", "0.66378695", "0.6621567", "0.66152406", "0.6604353", "0.6604353", "0.65796286", "0.65601194", "0.652623", "0.6497474", "0.64828086", "0.6476301", "0.64172...
0.79502964
0
Adds a particular state action reward tuple to the history list
def RKD7(YKHO, QTBn, XeOP, vOGg, lUtN): YKHO.history.append((QTBn, XeOP, vOGg, lUtN))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO, vOGg, AJEJ):\n YKHO.experience_store.append(YKHO.last_experience['state'], YKHO.last_experience['action'], vOGg, AJEJ)\n YKHO.last_experience = {}", "def vOGg(YKHO, Gi6Q):\n pass", "def vOGg(YKHO, QTBn, XeOP):\n pass", "def H2v5(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.buffer...
[ "0.7791931", "0.7597597", "0.75894517", "0.7586206", "0.7439978", "0.7414801", "0.7391747", "0.7385387", "0.7362154", "0.73076546", "0.727777", "0.7234034", "0.721572", "0.7204046", "0.71921563", "0.7191919", "0.7191204", "0.7191204", "0.71607494", "0.71559346", "0.7152812", ...
0.8170448
0
Given an image, return the 256dimension face encoding for each face in the image. Function redefined from face_recognition to add side/front classification and use large model for facial landmarks.
def Pbzh(YKHO, wYuP, T06C=None): if not T06C.size: return oyIN.array([]) y_PJ = YKHO.model.get_faces(YKHO.frame, T06C * YKHO.r) Md9K = YKHO.profileNet.normalize(y_PJ.copy()) pWQF = YKHO.profileNet.predict(Md9K, YKHO.cam.profile_thr) return oyIN.array([YKHO.model.get_embeddings(y_PJ[YRbF:YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EEPg(p4m8):\n VXjJ = vUb_.load_image_file(p4m8)\n oUSw = vUb_.face_locations(VXjJ, model='hog')\n if len(oUSw) == 0:\n print('WARNING:using CNN!')\n oUSw = vUb_.face_locations(VXjJ, model='cnn')\n xeAb = vUb_.face_encodings(VXjJ, oUSw)\n if len(xeAb) > 0:\n return xeAb[0]\n ...
[ "0.77318853", "0.75539863", "0.74275017", "0.7414104", "0.73870623", "0.7322758", "0.72400993", "0.7203012", "0.71240366", "0.7097334", "0.70821494", "0.7080776", "0.6978605", "0.69726115", "0.69528663", "0.6943531", "0.6912201", "0.68951476", "0.6866021", "0.68612415", "0.68...
0.6691008
34
The set of arguments for constructing a HostAccount resource.
def FIMM(Ro_8, *, p7Zo: pulumi.Input[str], XldB: pulumi.Input[str], o_gm: pulumi.Input[str], NovM: pulumi.Input[str], p6U8: Optional[pulumi.Input[str]]=None, jTXt: Optional[pulumi.Input[str]]=None, x03U: Optional[pulumi.Input[str]]=None): qe4Y.set(Ro_8, 'host_account_name', p7Zo) qe4Y.set(Ro_8, 'host_id', XldB)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, qIxc: HostAccountArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, qIxc: DedicatedHostAccountArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...", "def FIMM(Ro_8, kFeU: str, qIxc: AccountArgs, VKhi: Optional[pulumi.ResourceOptions]=None...
[ "0.7154134", "0.65362495", "0.5858724", "0.5858724", "0.57776994", "0.57776994", "0.57651496", "0.5678962", "0.5652108", "0.56485575", "0.5643404", "0.56355184", "0.5591496", "0.55664486", "0.5542446", "0.55378366", "0.5529484", "0.5506671", "0.5460675", "0.54316705", "0.5416...
0.540806
21
The password of the host account.
def jTXt(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO):\n return YKHO._get('password...
[ "0.82970005", "0.82970005", "0.82970005", "0.82970005", "0.8182633", "0.80309325", "0.80220294", "0.80220056", "0.80220056", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.80168...
0.0
-1
The password of the host account.
def jTXt(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO):\n return YKHO._get('password...
[ "0.8296832", "0.8296832", "0.8296832", "0.8296832", "0.8182307", "0.8030814", "0.8021626", "0.80215114", "0.80215114", "0.80167437", "0.80167437", "0.80167437", "0.80167437", "0.80167437", "0.80167437", "0.80167437", "0.80167437", "0.80167437", "0.80167437", "0.80167437", "0....
0.0
-1
The password of the host account.
def jTXt(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'password')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO) -> str:\n return qe4Y.get(YKHO, 'password')", "def jTXt(YKHO):\n return YKHO._get('password...
[ "0.82970005", "0.82970005", "0.82970005", "0.82970005", "0.8182633", "0.80309325", "0.80220294", "0.80220056", "0.80220056", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.8016862", "0.80168...
0.7591435
64
Return the state attributes of the device.
def TzCU(YKHO): return YKHO._state_attrs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._state_attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3(YKHO):\n return YKHO._attributes", "def R1i3...
[ "0.9249346", "0.9241166", "0.9204848", "0.9204848", "0.9204848", "0.9171354", "0.91509426", "0.91509426", "0.91509426", "0.91509426", "0.91509426", "0.91484094", "0.91484094", "0.91484094", "0.91484094", "0.9148287", "0.9148287", "0.9148287", "0.9148287", "0.9148287", "0.9148...
0.0
-1
Return the color temperature.
def ccCp(YKHO): return YKHO._color_temp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a20G(YKHO):\n return YKHO._color_temperature", "def a20G(YKHO):\n if YKHO._color is not None and YKHO._color[0] == YKHO.COLOR_TYPES['temperature']:\n return YKHO._color[1]\n return None", "def ccCp(YKHO):\n ccCp = int(YKHO._tuya.color_temp())\n if ccCp is None:\n return None\n ...
[ "0.88504124", "0.86292964", "0.85747784", "0.8559074", "0.8544925", "0.8544768", "0.8512568", "0.84000593", "0.8386063", "0.8367225", "0.8313059", "0.80364335", "0.7901388", "0.77596045", "0.77094126", "0.76655704", "0.76300865", "0.76278776", "0.7613502", "0.7610494", "0.760...
0.81760454
11
Return the coldest color_temp that this light supports.
def fuXM(YKHO): return 175
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ccCp(YKHO):\n return YKHO._color_temp", "def ccCp(YKHO):\n return YKHO._color_temp", "def ccCp(YKHO):\n return YKHO._color_temp", "def ccCp(YKHO):\n return YKHO._ct", "def ccCp(YKHO):\n return YKHO._sub_device.status['color_temp']", "def ccCp(YKHO):\n ZbVW = 'color_temp'\n return...
[ "0.8145284", "0.8145284", "0.8145284", "0.79892296", "0.798338", "0.79687434", "0.7946626", "0.7828589", "0.78263557", "0.77515084", "0.74769586", "0.74583983", "0.74516976", "0.7414952", "0.73247355", "0.7320699", "0.71985006", "0.6970323", "0.6600578", "0.64410424", "0.6374...
0.0
-1
Return the warmest color_temp that this light supports.
def VAAb(YKHO): return 333
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ccCp(YKHO):\n ZbVW = 'color_temp'\n return YKHO._get_return_value(ZbVW, YKHO._state_hue)", "def ccCp(YKHO):\n if YKHO.device.supports_color_temperature:\n yizX = YKHO.device.current_color_temperature\n if yizX is not None:\n return kS5r.color_temperature_kelvin_to_mired(yizX...
[ "0.8295862", "0.82688236", "0.82530844", "0.82530844", "0.82530844", "0.81415457", "0.8100507", "0.7927421", "0.78747153", "0.78373224", "0.77957046", "0.7780989", "0.77771163", "0.7773644", "0.77552277", "0.7701902", "0.72105074", "0.7173709", "0.71204245", "0.6937003", "0.6...
0.0
-1
Return the coldest color_temp that this light supports.
def fuXM(YKHO): return 175
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ccCp(YKHO):\n return YKHO._color_temp", "def ccCp(YKHO):\n return YKHO._color_temp", "def ccCp(YKHO):\n return YKHO._color_temp", "def ccCp(YKHO):\n return YKHO._ct", "def ccCp(YKHO):\n return YKHO._sub_device.status['color_temp']", "def ccCp(YKHO):\n ZbVW = 'color_temp'\n return...
[ "0.8145939", "0.8145939", "0.8145939", "0.79885924", "0.7984092", "0.796932", "0.7946672", "0.7829061", "0.78272444", "0.7750791", "0.7476328", "0.74581707", "0.74519336", "0.74148595", "0.732411", "0.7320445", "0.71982265", "0.6969492", "0.6600934", "0.6440716", "0.6374102",...
0.0
-1
Return the warmest color_temp that this light supports.
def VAAb(YKHO): return 370
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ccCp(YKHO):\n ZbVW = 'color_temp'\n return YKHO._get_return_value(ZbVW, YKHO._state_hue)", "def ccCp(YKHO):\n if YKHO.device.supports_color_temperature:\n yizX = YKHO.device.current_color_temperature\n if yizX is not None:\n return kS5r.color_temperature_kelvin_to_mired(yizX...
[ "0.829591", "0.82690907", "0.8252727", "0.8252727", "0.8252727", "0.8141426", "0.8100649", "0.79269594", "0.78737533", "0.7837964", "0.77956843", "0.7781678", "0.77769905", "0.7773247", "0.7754378", "0.7701935", "0.7211994", "0.7174842", "0.7121372", "0.69374806", "0.6825687"...
0.0
-1
Return the coldest color_temp that this light supports.
def fuXM(YKHO): return 153
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ccCp(YKHO):\n return YKHO._color_temp", "def ccCp(YKHO):\n return YKHO._color_temp", "def ccCp(YKHO):\n return YKHO._color_temp", "def ccCp(YKHO):\n return YKHO._ct", "def ccCp(YKHO):\n return YKHO._sub_device.status['color_temp']", "def ccCp(YKHO):\n ZbVW = 'color_temp'\n return...
[ "0.8145284", "0.8145284", "0.8145284", "0.79892296", "0.798338", "0.79687434", "0.7946626", "0.7828589", "0.78263557", "0.77515084", "0.74769586", "0.74583983", "0.74516976", "0.7414952", "0.73247355", "0.7320699", "0.71985006", "0.6970323", "0.6600578", "0.64410424", "0.6374...
0.0
-1
Return the warmest color_temp that this light supports.
def VAAb(YKHO): return 588
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ccCp(YKHO):\n ZbVW = 'color_temp'\n return YKHO._get_return_value(ZbVW, YKHO._state_hue)", "def ccCp(YKHO):\n if YKHO.device.supports_color_temperature:\n yizX = YKHO.device.current_color_temperature\n if yizX is not None:\n return kS5r.color_temperature_kelvin_to_mired(yizX...
[ "0.8295862", "0.82688236", "0.82530844", "0.82530844", "0.82530844", "0.81415457", "0.8100507", "0.7927421", "0.78747153", "0.78373224", "0.77957046", "0.7780989", "0.77771163", "0.7773644", "0.77552277", "0.7701902", "0.72105074", "0.7173709", "0.71204245", "0.6937003", "0.6...
0.0
-1
Return the device info of the gateway.
def GWuV(YKHO) -> cGD3: return cGD3(identifiers={(Sugg, YKHO._gateway_device_id)})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nqH9():\n return kWPK", "def GWuV(YKHO):\n return YKHO.thermostat_device.device_info", "def GWuV(YKHO):\n return YKHO._api.device_info", "def GWuV(YKHO):\n return YKHO._device.device_info", "def GWuV(YKHO):\n return YKHO._device.device_info()", "def GWuV(YKHO):\n return YKHO._device...
[ "0.7959572", "0.77484083", "0.7702016", "0.7609674", "0.7599849", "0.7599849", "0.7588027", "0.75058067", "0.74821", "0.74726915", "0.74457914", "0.7431868", "0.7431868", "0.7431868", "0.7431868", "0.7431868", "0.74119115", "0.73533344", "0.7313815", "0.7301769", "0.7283503",...
0.8130219
0
Return true if it is on.
def Debg(YKHO): return YKHO._is_on
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Debg(YKHO):\n return True", "def Debg(YKHO):\n return True", "def Debg(YKHO):\n return YKHO._client.data[YKHO._key] == 'true'", "def Debg(YKHO) -> bool:\n return YKHO.__is_on", "def Debg(YKHO) -> bool:\n return YKHO.__is_on", "def Debg(YKHO) -> bool:\n return YKHO._is_on", "def De...
[ "0.8985649", "0.8985649", "0.87600136", "0.87539935", "0.87539935", "0.87186265", "0.87186265", "0.87186265", "0.86959887", "0.86285615", "0.86285615", "0.8623797", "0.86121976", "0.85816413", "0.85763025", "0.8562558", "0.8550166", "0.8550166", "0.8550166", "0.8550166", "0.8...
0.8451799
30
Return current color temperature.
def ccCp(YKHO): return YKHO._sub_device.status['color_temp']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ccCp(YKHO):\n return YKHO.device['status'].get('color_temp')", "def a20G(YKHO):\n return YKHO._color_temperature", "def ccCp(YKHO):\n if YKHO.device.supports_color_temperature:\n yizX = YKHO.device.current_color_temperature\n if yizX is not None:\n return kS5r.color_temper...
[ "0.87663954", "0.87374175", "0.8715523", "0.8566424", "0.84911984", "0.84911984", "0.84911984", "0.848113", "0.8468272", "0.83553547", "0.8337207", "0.8301829", "0.82855684", "0.82713884", "0.7909442", "0.78024364", "0.77535695", "0.77366704", "0.77366704", "0.77190846", "0.7...
0.8658313
3
Parse the boolean formula represented as string into an AST
def hfK9(l9Ur): Ui4k = [] Ltd4 = [] vlrv = [] for _eJP, SZ0L in enumerate(l9Ur): if SZ0L == '(': Ltd4.append((len(Ui4k), _eJP)) elif SZ0L == ')': RATA, JJdC = Ltd4.pop() MuTp = Ui4k[RATA:] Ui4k = Ui4k[:RATA] if len(MuTp) > 1: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hfK9(VN2L: str) -> GDLO:\n return Vyf8.parse_string(VN2L)[0]", "def lIW9(_J6_: str) -> bool:\n if _J6_.lower() in ('0', 'false'):\n return False\n if _J6_.lower() in ('1', 'true'):\n return True\n raise SWMn(f'invalid boolean string: {_J6_!r}')", "def hYJ7(vIwR):\n lXXq = ZbWC....
[ "0.7397357", "0.6669853", "0.66384846", "0.6600316", "0.65174365", "0.64858717", "0.6456866", "0.64147776", "0.63436705", "0.63215107", "0.62974316", "0.6135622", "0.61340725", "0.6103157", "0.60864836", "0.6080931", "0.60481554", "0.6047801", "0.6042216", "0.6041571", "0.603...
0.5460203
88
Return list of family.query in the store. Returns Iterable[str] List of queries
def jc6n(YKHO) -> x1iM[str]: return list(YKHO._query_store.query_names)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jc6n():\n return zEdU()", "def x9my(YKHO):\n return YKHO.api_get('/api/querys')", "def xDcj(YKHO):\n ANfV = []\n for qNKh in YKHO._data_nodes:\n ANfV.append(qNKh.query())\n return ANfV", "def GPHi(YKHO, *qIxc, **B2fa):\n return list(YKHO.query_generator(*qIxc, **B2fa))", "def Q...
[ "0.710389", "0.6988953", "0.69546026", "0.68300426", "0.68293524", "0.66498965", "0.66492784", "0.6587809", "0.65652645", "0.6551852", "0.65218896", "0.6493348", "0.6480839", "0.6428286", "0.640534", "0.6400275", "0.6394752", "0.63464034", "0.6311043", "0.63097763", "0.630329...
0.736185
0
Get the encoding of the given chord in numpy onehot format
def QfNT(xJtk, u54L): tZ2K = oyIN.zeros((13, u54L)) tZ2K[12, :] = 1 if 'maj' in xJtk else 0 if 'N' not in xJtk: tZ2K[w_64[xJtk.split(':')[0]], :] = 1 return tZ2K
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(Q6uT):\n Q6uT = Q6uT.replace('A', '0')\n Q6uT = Q6uT.replace('C', '1')\n Q6uT = Q6uT.replace('G', '2')\n Q6uT = Q6uT.replace('T', '3')\n V0Th = oyIN.zeros((4, len(Q6uT)), dtype='float16')\n for YRbF in range(len(Q6uT)):\n if Q6uT[YRbF].isdigit():\n V0Th[int(Q6uT[YRbF]),...
[ "0.7231463", "0.70259184", "0.69761723", "0.68741107", "0.6762734", "0.67161673", "0.67129874", "0.66835475", "0.6656491", "0.65964913", "0.65567756", "0.6524876", "0.64886725", "0.64662313", "0.64662313", "0.64565593", "0.6438141", "0.64187706", "0.64099187", "0.6395039", "0...
0.7117808
1