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
Returns a number between 0 and 100, representing the percent match (Levenshtein Distance) between name1 and name2, after each has been normalized.
def sMj_(S1R7, zuPL, kgRb=True): if kgRb: S1R7 = S0Mm(S1R7) zuPL = S0Mm(zuPL) uL5G = IYPf.ratio(S1R7, zuPL) return uL5G
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uB0Y(qoGC, VyPo):\n return luid(isjunk=None, a=qoGC, b=VyPo).ratio()", "def ZxWl(kaO7, F1fc):\n y8ay = set(kaO7) ^ set(F1fc)\n iQin = set(kaO7) & set(F1fc)\n p1kx = float(len(iQin)) / (len(iQin) + len(y8ay))\n return p1kx", "def KX6q(Y0Fj: str, Pb4f: str) -> float:\n PWHU = phGw(Y0Fj, Pb4...
[ "0.72620136", "0.6933563", "0.6871236", "0.674828", "0.6741278", "0.6725772", "0.67120093", "0.6633749", "0.6616652", "0.6611815", "0.6539377", "0.650754", "0.6485628", "0.6474072", "0.64559555", "0.64245456", "0.64219695", "0.63824534", "0.63686526", "0.6362297", "0.6354941"...
0.69251627
2
Initialise Motion Decoder network Parameters. seq_len (int) Prediction length of trajectory input_dim (int) input / output dimensionality of spatial coordinates decoder_h_dim (int) hidden state dimenstion of decoder LSTM embedding_dim (int) dimensionality spatial embedding dropout (float) dropout final_embedding_dim (i...
def FIMM(YKHO, tsWk=12, Gzv5=2, kaNG=128, lhva=64, hr1G=0.0, idFg=False, xVQV=32, yVia=0.25, cU0k=4, CrI_='attention', KXND=8, Y8Bu=0.0, pj_P=3, nRVF='relu', NU7T=True, zenk=1, xnm0=False, Sw7E=True, dxYM=False, AVLg=4, BYvc='goal'): super(iP4r, YKHO).__init__() YKHO.__dict__.update(locals()) if YKHO.rm_vis...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Agjb, C4d9, wjbX, jXxl, FcfH=1024, AXFq=40):\n super(K01m, YKHO).__init__()\n YKHO.attention = eQfQ(encoder_size=FcfH, hidden_size=wjbX, attention_size=C4d9)\n YKHO.embed = U78l.Embedding(jXxl, Agjb)\n YKHO.lstmcell = U78l.LSTMCell(Agjb + FcfH, wjbX, bias=True)\n YKHO.init_hidden = U7...
[ "0.6974232", "0.6961566", "0.6942928", "0.692518", "0.6903445", "0.68393934", "0.6771762", "0.67436886", "0.674249", "0.6682748", "0.66502696", "0.66400063", "0.6635528", "0.6635381", "0.66297084", "0.6627109", "0.6614827", "0.661168", "0.65727043", "0.65650296", "0.6556159",...
0.6381402
32
Inserts a word into the trie.
def JPHp(YKHO, GIN8: str) -> None: Q6kx = YKHO for Npgh in GIN8: d6pt = ord(Npgh) - ord('a') if not Q6kx.next[d6pt]: Q6kx.next[d6pt] = etby() Q6kx = Q6kx.next[d6pt] Q6kx.is_end = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True", "def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y...
[ "0.89354694", "0.8876187", "0.88760144", "0.8867064", "0.8846206", "0.8835824", "0.88300204", "0.88247544", "0.8822012", "0.88030744", "0.8797663", "0.8792274", "0.87875485", "0.8786605", "0.8786306", "0.8780714", "0.87802637", "0.87769246", "0.87714195", "0.87679803", "0.875...
0.8551232
56
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8: str) -> bool: Q6kx = YKHO for Npgh in GIN8: d6pt = ord(Npgh) - ord('a') if not Q6kx.next[d6pt]: return False Q6kx = Q6kx.next[d6pt] return Q6kx.is_end
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word", "def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')...
[ "0.82730556", "0.8268669", "0.8264989", "0.821454", "0.8189983", "0.81762034", "0.81695247", "0.81329536", "0.7981468", "0.7973667", "0.7966321", "0.79540753", "0.7881218", "0.7876813", "0.78663623", "0.7835046", "0.7819606", "0.7812851", "0.7811768", "0.7795306", "0.77902055...
0.0
-1
Returns if there is any word in the trie that starts with the given prefix.
def BYxH(YKHO, y0cW: str) -> bool: Q6kx = YKHO for Npgh in y0cW: d6pt = ord(Npgh) - ord('a') if not Q6kx.next[d6pt]: return False Q6kx = Q6kx.next[d6pt] return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals...
[ "0.8642051", "0.8456507", "0.8440079", "0.84156233", "0.8415468", "0.84068686", "0.8381364", "0.83699554", "0.833582", "0.83274645", "0.8327155", "0.8239405", "0.8229211", "0.8172568", "0.81602865", "0.81528133", "0.81471884", "0.8115353", "0.80118334", "0.7983716", "0.798371...
0.7599018
87
Inserts a word into the trie.
def JPHp(YKHO, GIN8: str) -> None: Q6kx = YKHO for Npgh in GIN8: if Npgh not in Q6kx.lookup: Q6kx.lookup[Npgh] = etby() Q6kx = Q6kx.lookup[Npgh] Q6kx.lookup['#'] = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True", "def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y...
[ "0.89354694", "0.8876187", "0.88760144", "0.8867064", "0.8846206", "0.8835824", "0.88300204", "0.88247544", "0.8822012", "0.88030744", "0.8797663", "0.8792274", "0.87875485", "0.8786605", "0.8786306", "0.8780714", "0.87802637", "0.87769246", "0.87714195", "0.87679803", "0.875...
0.8694879
32
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8: str) -> bool: Q6kx = YKHO for Npgh in GIN8: if Npgh not in Q6kx.lookup: return False Q6kx = Q6kx.lookup[Npgh] return Q6kx.lookup['#']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word", "def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')...
[ "0.82730556", "0.8268669", "0.8264989", "0.821454", "0.8189983", "0.81762034", "0.81695247", "0.81329536", "0.7981468", "0.7973667", "0.7966321", "0.79540753", "0.7881218", "0.7876813", "0.78663623", "0.7835046", "0.7819606", "0.7812851", "0.7811768", "0.7795306", "0.77902055...
0.0
-1
Returns if there is any word in the trie that starts with the given prefix.
def BYxH(YKHO, y0cW: str) -> bool: Q6kx = YKHO for Npgh in y0cW: if Npgh not in Q6kx.lookup: return False Q6kx = Q6kx.lookup[Npgh] return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals...
[ "0.8642051", "0.8456507", "0.8440079", "0.84156233", "0.8415468", "0.84068686", "0.8381364", "0.83699554", "0.833582", "0.83274645", "0.8327155", "0.8239405", "0.8229211", "0.8172568", "0.81602865", "0.81528133", "0.81471884", "0.8115353", "0.80118334", "0.7983716", "0.798371...
0.78515315
39
Inserts a word into the trie.
def JPHp(YKHO, GIN8: str) -> None: ZOCz = YKHO.lookup for Npgh in GIN8: if Npgh not in ZOCz: ZOCz[Npgh] = {} ZOCz = ZOCz[Npgh] ZOCz['#'] = '#'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, GIN8: str) -> None:\n jvSB = YKHO.node\n for YRbF in GIN8:\n if YRbF not in jvSB.char:\n jvSB.char[YRbF] = ep_x()\n jvSB = jvSB.char[YRbF]\n if jvSB.isword is False:\n jvSB.isword = True", "def JPHp(YKHO, GIN8: str) -> None:\n XP5J = YKHO.root\n for Y...
[ "0.89354694", "0.8876187", "0.88760144", "0.8867064", "0.8846206", "0.8835824", "0.88300204", "0.88247544", "0.8822012", "0.88030744", "0.8797663", "0.8792274", "0.87875485", "0.8786605", "0.8786306", "0.8780714", "0.87802637", "0.87769246", "0.87714195", "0.87679803", "0.875...
0.83606505
80
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8: str) -> bool: ZOCz = YKHO.lookup for Npgh in GIN8: if Npgh not in ZOCz: return False ZOCz = ZOCz[Npgh] return '#' in ZOCz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FYXB(YKHO, GIN8):\n GIN8 = GIN8.strip()\n tk5Y = YKHO.root\n for Z9rn in GIN8:\n if Z9rn not in tk5Y:\n return False\n tk5Y = tk5Y[Z9rn]\n return tk5Y.end_of_word", "def DUe0(YKHO, ZOCz, GIN8):\n if type(GIN8) != str:\n raise TypeError('Trie only works on str!')...
[ "0.82730556", "0.8268669", "0.8264989", "0.821454", "0.8189983", "0.81762034", "0.81695247", "0.81329536", "0.7981468", "0.7973667", "0.7966321", "0.79540753", "0.7881218", "0.7876813", "0.78663623", "0.7819606", "0.7812851", "0.7811768", "0.7795306", "0.77902055", "0.7787897...
0.7835046
15
Returns if there is any word in the trie that starts with the given prefix.
def BYxH(YKHO, y0cW: str) -> bool: ZOCz = YKHO.lookup for Npgh in y0cW: if Npgh not in ZOCz: return False ZOCz = ZOCz[Npgh] return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BYxH(YKHO, y0cW):\n GIN8 = y0cW\n if not GIN8:\n return True\n nsYX = GIN8[0]\n if nsYX not in YKHO.trie_map:\n return False\n Tifd = YKHO.trie_map[nsYX]\n for YRbF in range(1, len(GIN8)):\n LihS = GIN8[YRbF]\n if LihS not in Tifd.childMap:\n return Fals...
[ "0.8642051", "0.8456507", "0.8440079", "0.84156233", "0.84068686", "0.8381364", "0.83699554", "0.833582", "0.83274645", "0.8327155", "0.8239405", "0.8229211", "0.8172568", "0.81602865", "0.81528133", "0.81471884", "0.8115353", "0.80118334", "0.7983716", "0.7983716", "0.795509...
0.8415468
4
View for the home page.
def nspo(QePW, FGW3=None): return _1tc(QePW, 'imagersite/home.html')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'welcome.html')", "def kZiy():\n nPrm = UPcG().get_home()\n RKD7.info(nPrm)\n tTee = CWuy().get_home(nPrm)\n RKD7.info(tTee)\n return tTee", "def C_...
[ "0.8383552", "0.83502966", "0.83096015", "0.8305142", "0.82973063", "0.8276424", "0.8251982", "0.8205415", "0.8204928", "0.8195161", "0.8183432", "0.8175902", "0.8171761", "0.8170614", "0.8170614", "0.8163787", "0.8158007", "0.8158007", "0.8157787", "0.81440496", "0.8141882",...
0.0
-1
Takes in a date time string and returns the number of seconds since the epoch (Unix timestamp).
def YXmH(ppPa): WgTK = JRYC.strptime(ppPa, dDFw) return float((WgTK - JRYC(YsOM, Q_nT, s7vp)).total_seconds())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SWek(_c1T):\n qtWj = qcWV.utcfromtimestamp(0)\n return int((_c1T - qtWj).total_seconds())", "def _JMg(uted):\n T0rB = xN_c._get_time_obj(uted)\n Yice = qcWV.datetime(*T0rB[:6])\n N8Qk = qcWV.datetime(1970, 1, 1)\n IMJE = (Yice - N8Qk).total_seconds()\n return IMJE", "def HNXu(X20W):\n ...
[ "0.7882795", "0.77785563", "0.7758956", "0.77026844", "0.7697745", "0.76619035", "0.75301975", "0.74680233", "0.74680233", "0.72365147", "0.719833", "0.719833", "0.71582", "0.71430826", "0.713348", "0.71203476", "0.7100658", "0.70717895", "0.70700556", "0.6999153", "0.6962608...
0.6708175
36
Normalizes a list of nums to its sum + 1
def NkkI(xYvp): pnKM = sum(xYvp) + 1 HVM5 = [] for mLGw in xYvp: HVM5.append(mLGw / pnKM) return HVM5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(ezWE: list) -> list:\n wjRY = sum(ezWE)\n return list(map(lambda WKvO: WKvO / wjRY, ezWE))", "def CNxc(vC9B):\n return vC9B / vC9B.sum()", "def XAwH(yv6U):\n KCHu = sum(yv6U)\n return [YRbF / float(KCHu) for YRbF in yv6U]", "def NkkI(jzdc):\n return jzdc * 1 / jzdc.sum()", "def K...
[ "0.72244745", "0.71980524", "0.7190178", "0.7128511", "0.69878805", "0.69087565", "0.68862176", "0.6844215", "0.6760527", "0.67432356", "0.6732099", "0.6731084", "0.6698224", "0.665536", "0.6643946", "0.65182626", "0.651821", "0.6517887", "0.6508274", "0.6479709", "0.64435536...
0.8186854
0
This is a custom ECSClientException class to handle API error responses
def FIMM(YKHO, Ol8d, sMcu=None, cAf4=None, HHLU='', VBcT='', jPfo='', oAsq='', njoD='', ITcn='', H3Rq='', E4zG=None, SwAw='', pJyq='', U7Wg=None): super(LQV4, YKHO).__init__(Ol8d) YKHO.message = Ol8d YKHO.ecs_code = sMcu YKHO.ecs_retryable = cAf4 YKHO.ecs_description = HHLU YKHO.ecs_details = VB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wo3K(YKHO, geh0: requests.Response):\n JBvl = geh0.status_code\n try:\n U34r = geh0.json()\n AJ5d = GCmr(http_status_code=JBvl, code=U34r.get('code', 'unknown'), message=U34r.get('message', 'unknown error'), id=U34r.get('id'), url=U34r.get('url'))\n except Exception:\n l5Ny = geh0...
[ "0.7576925", "0.72544396", "0.72544396", "0.71173203", "0.71173203", "0.7108745", "0.70454144", "0.6977409", "0.69662416", "0.696501", "0.6943285", "0.69329756", "0.6901484", "0.68961126", "0.6853543", "0.68434846", "0.68409246", "0.6836088", "0.6827576", "0.68180597", "0.679...
0.64532864
61
Sets the random seed separately for each thread (to avoid getting the same results in each thread)
def PVng(YKHO, MgeT): if YKHO.random_state is None: YKHO.random_state = oyIN.random.randint(0, high=2 ** 32 - 2) tuKI.seed(YKHO.random_state + MgeT) oyIN.random.seed(YKHO.random_state + MgeT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nMpp(YKHO, MgeT=0):\n if YKHO.n_jobs > 1 and (not YKHO.random_state):\n ADdS = oyIN.random.randint(0, high=2 ** 32 - 2)\n tuKI.seed(ADdS + MgeT)\n oyIN.random.seed(ADdS + MgeT)\n elif YKHO.random_state:\n ADdS = int(YKHO.random_state)\n tuKI.seed(ADdS + MgeT)\n o...
[ "0.81583035", "0.7893643", "0.7845246", "0.7751232", "0.7714577", "0.76573217", "0.76527125", "0.7628917", "0.76216245", "0.75936913", "0.759346", "0.75862926", "0.7576724", "0.7558528", "0.7556084", "0.75498945", "0.75390667", "0.75014365", "0.7498769", "0.74806297", "0.7458...
0.810874
1
Creates and saves a User with the given email and password.
def xWi2(YKHO, D3lj, jTXt, **wdCM): if not D3lj: raise ValueError('Users must have an email address') CBIr = YKHO.model(email=YKHO.normalize_email(D3lj), **wdCM) CBIr.set_password(jTXt) CBIr.save(using=YKHO._db) return CBIr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xWi2(YKHO, D3lj, jTXt, **wdCM):\n if not D3lj:\n raise ValueError('The email must be set')\n D3lj = YKHO.normalize_email(D3lj)\n CBIr = YKHO.model(email=D3lj, **wdCM)\n CBIr.set_password(jTXt)\n CBIr.save()", "def lYUQ(YKHO, D3lj: str, jTXt: str, **wdCM: dict):\n if not D3lj:\n ...
[ "0.87203795", "0.8471124", "0.8462932", "0.84520763", "0.84274495", "0.84224284", "0.84208685", "0.84165066", "0.8410754", "0.8409538", "0.8409538", "0.8401648", "0.84014827", "0.8391565", "0.83900344", "0.83900344", "0.83900344", "0.83900344", "0.83900344", "0.83900344", "0....
0.8317372
81
Return the first_name plus the last_name, with a space in between.
def xpqj(YKHO): eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name) return eHMM.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e1yb(c9ua, zp3f):\n eHMM = c9ua + ' ' + zp3f\n return eHMM", "def xpqj(YKHO):\n return (YKHO.first_name + ' ' + YKHO.last_name).strip()", "def zFMy(YKHO):\n return (YKHO.first_name or '') + (YKHO.first_name and ' ' or '') + (YKHO.last_name or '')", "def e1yb(c9ua, zp3f):\n eHMM = c9ua.titl...
[ "0.8330303", "0.822846", "0.8182122", "0.8121462", "0.8081904", "0.8067005", "0.80602366", "0.8053645", "0.80440646", "0.8034965", "0.8031099", "0.8029305", "0.8015697", "0.79999375", "0.7997769", "0.7996719", "0.7996719", "0.7996097", "0.7994737", "0.79941976", "0.79941976",...
0.77856344
59
Get the class config settings. Returns dict
def tgzD(YKHO): return {'initial_learning_rate': 0, 'warmup_steps': YKHO.warmup_steps, 'decay_rate': YKHO.decay_rate, 'name': 'ramp-up-decay-lr'}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO) -> dict:\n return YKHO.config", "def tgzD(YKHO):\n return dict(replace_rate=YKHO.replace_rate, caps_change=YKHO.caps_change, max_length=YKHO.max_length, remove_duplicates=YKHO.remove_duplicates, seed=YKHO.seed, class_name=str(YKHO))", "def O2aX(YKHO):\n return YKHO.config", "def O2aX(...
[ "0.7606925", "0.7450158", "0.74336755", "0.74336755", "0.7406069", "0.7394361", "0.7336148", "0.73358697", "0.7273711", "0.72711796", "0.7266396", "0.72407883", "0.71911985", "0.71911985", "0.7186553", "0.7186553", "0.7186553", "0.7131543", "0.7131543", "0.7131543", "0.713154...
0.0
-1
This produces a preprocessing layer for an incoming NLP column using TextVectorization from keras. You need to just send in a tf.data.DataSet from the training portion of your dataset and an nlp_column name. It will return a fullmodelready layer that you can add to your Keras Functional model as an NLP_layer! max_token...
def VqGL(D0Gl, Ef34, MbPE, b860, N5Vd, PJWX=0): OtGR = [] zvSB = [] vyQG = [] guEJ = [] PI0j = MbPE['nlp_vars'] PI0j = list(set(PI0j)) wuUE = ['fast'] cgwT = ['deep_and_wide', 'deep_wide', 'wide_deep', 'wide_and_deep', 'deep wide', 'wide deep', 'fast1', 'deep_and_cross', 'deep_cross', 'd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lRu7(l5Ny, lFl6):\n l5Ny = ZylS.expand_dims(l5Ny, -1)\n YkkV = lFl6(l5Ny)\n WKvO = YkkV[:, :-1]\n LVAh = YkkV[:, 1:]\n return (WKvO, LVAh)", "def MwHR(YKHO, n6fj: List[str]):\n return YKHO.__model(n6fj, truncation=True, padding=True, return_tensors='pt')", "def _Eet(fvDH, jXxl, BcCR):\n ...
[ "0.6048139", "0.5916431", "0.5915154", "0.58885336", "0.58625984", "0.58002985", "0.5787698", "0.57606024", "0.5728388", "0.5704619", "0.56882054", "0.55808276", "0.5552127", "0.5508649", "0.5500104", "0.54988253", "0.5469093", "0.5423678", "0.5422992", "0.54115283", "0.54089...
0.60024464
1
Returns a onehot encoded tensor representing categorical values.
def xtyE(bySB, Crrw, LeZt): Crrw = ZylS.cast(ZylS.equal(LeZt, ZylS.reshape(Crrw, [-1, 1])), ZylS.int32) return (bySB, Crrw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zfhM(LVAh, LeZt):\n assert oyIN.amax(LVAh) < LeZt, 'Label exceeds the number of categories'\n usx6 = len(LVAh)\n j6Rw = oyIN.zeros((usx6, LeZt))\n j6Rw[oyIN.arange(usx6), LVAh] = 1\n return j6Rw", "def KLLm(WKvO, LeZt):\n Aofo = ht2j.zeros((len(WKvO), LeZt), dtype=WKvO.dtype)\n for YRbF ...
[ "0.8129931", "0.80316836", "0.78841877", "0.78770626", "0.78069645", "0.77920353", "0.7740033", "0.7736799", "0.7696798", "0.76601493", "0.76502746", "0.7634838", "0.7630995", "0.7616511", "0.7592555", "0.7591914", "0.7590034", "0.75878054", "0.7580906", "0.75728023", "0.7568...
0.7390112
43
Persist changes to datasource
def RFOL(YKHO, Rci7=None): raise NotImplementedError('Please implement')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FAgT(YKHO):\n YKHO.shelf[nPUF.DATA] = YKHO.data\n YKHO.dirty = True", "def FAgT(YKHO):\n raise NotImplementedError", "def FAgT(YKHO):\n YKHO._session.commit()", "def eGRE(YKHO):\n NCls.session.add(YKHO)\n NCls.session.commit()", "def ymCW(YKHO):\n YKHO.conn.commit()", "def xkzz(Y...
[ "0.70558184", "0.6861566", "0.6801421", "0.6664533", "0.6656063", "0.663732", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "0.6594114", "...
0.0
-1
Plot the error ellipse at a point given it's covariance matrix.
def ulFP(yGTL, PFC2, aNZO=None, aM8h=1.0, **B2fa): c9P6 = B2fa.pop('facecolor', 'none') YY_u = B2fa.pop('edgecolor', 'k') WKvO, LVAh = yGTL KkY2, o4sw, cAlv = oyIN.linalg.svd(PFC2) q7In = oyIN.degrees(oyIN.arctan2(KkY2[1, 0], KkY2[0, 0])) ZhuL = PQpQ(xy=[WKvO, LVAh], width=2 * oyIN.sqrt(o4sw[0])...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ulFP(yGTL, PFC2, aNZO=None, aM8h=1.0, **B2fa):\n c9P6 = B2fa.pop('facecolor', 'none')\n YY_u = B2fa.pop('edgecolor', 'k')\n WKvO, LVAh = yGTL\n KkY2, o4sw, cAlv = oyIN.linalg.svd(PFC2)\n q7In = oyIN.degrees(oyIN.arctan2(KkY2[1, 0], KkY2[0, 0]))\n ZhuL = PQpQ(xy=[WKvO, LVAh], width=2 * oyIN.sq...
[ "0.74240357", "0.69085413", "0.6879683", "0.6879683", "0.6863557", "0.6810087", "0.6789777", "0.67885846", "0.6762398", "0.6728942", "0.6715359", "0.67086434", "0.66781574", "0.66739583", "0.66674066", "0.6653794", "0.6652096", "0.66466624", "0.66252446", "0.6541797", "0.6531...
0.7452545
0
Get Redis view of IP states.
def h78U(x0hE, H5ew): jlnj = YfeS(x0hE, Pqdn.format(H5ew), qp0K.serialize_ip_desc, qp0K.deserialize_ip_desc) return jlnj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H_zB():\n return [KAOR['PublicIpAddress'] for KAOR in ja6o('running')]", "def M6_7():\n wspz = S8SU.all('State')\n return pz3A([QTBn.to_dict() for QTBn in wspz.values()])", "def ja6o():\n Znd1 = []\n for H5ew, BWXx in S8SU.all('State').items():\n Znd1.append(BWXx.to_json())\n retur...
[ "0.65786195", "0.63205796", "0.62726676", "0.6190982", "0.6155064", "0.6155064", "0.6091938", "0.60663855", "0.6065491", "0.60609245", "0.60460126", "0.6000904", "0.6000904", "0.59407794", "0.59363246", "0.5923541", "0.5921983", "0.5899828", "0.5882063", "0.5882063", "0.58820...
0.7483422
0
Loads model proto file.
def JRJB(Ux0P): K2yM = mmI0.MLPModel() with open(Ux0P, 'r') as ytgA: C5Bg.Merge(ytgA.read(), K2yM) return K2yM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(Ux0P):\n pass", "def uyMl():\n NtnT = cvxQ.DeviceOption()\n NtnT.device_type = cvxQ.CPU\n RzlV = 'out/model_init.pb'\n U94V = 'out/model.pb'\n U6S5 = cvxQ.NetDef()\n with open(RzlV, 'rb') as eHNT:\n U6S5.ParseFromString(eHNT.read())\n U6S5.device_option.CopyFrom(NtnT)\...
[ "0.7636175", "0.7346995", "0.72989035", "0.7272214", "0.72603565", "0.7164612", "0.7133061", "0.7133061", "0.712087", "0.71054566", "0.7092228", "0.70740455", "0.7059241", "0.7059241", "0.7059241", "0.7059241", "0.7054639", "0.7051752", "0.70106304", "0.70026064", "0.70009565...
0.84190077
0
Inverse and determinant of the covariance matrix are passed seperately since they can be precomputed
def RvTp(M_DK, yGTL, dsAx, zqZv): q1Gy = M_DK - yGTL d7pR = -oyIN.dot(q1Gy, oyIN.dot(dsAx, q1Gy)) / 2 return oyIN.exp(d7pR) / oyIN.sqrt(2 * oyIN.pi * zqZv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Fr7K(YKHO):\n return oyIN.linalg.inv(YKHO.cov)", "def wJ2d(YKHO) -> oyIN.ndarray:\n GvHN = YKHO.covariance_matrix()\n return Zxt2.linalg.inv(GvHN + 1e-06 * oyIN.eye(GvHN.shape[0]))", "def TFGU(YKHO):\n if oyIN.linalg.det(YKHO.matrix) == 0:\n raise ValueError('Fisher Matrix is singular, c...
[ "0.7691478", "0.74110305", "0.7394422", "0.72906405", "0.702747", "0.7019662", "0.70179975", "0.70079505", "0.694609", "0.69404554", "0.6874225", "0.68684816", "0.6819847", "0.6813974", "0.6812205", "0.67732906", "0.6772633", "0.6749132", "0.67447555", "0.67138755", "0.666155...
0.0
-1
Serializes this instance to a Python dictionary.
def MNRr(YKHO): hlel = jth9.deepcopy(YKHO.__dict__) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO) -> dict:\n pass", "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def sS6L(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO) -> dict:\n return YKHO.__data__", "def _fYl(YKHO) -> cuzp[str, ImMB]:\n return B4us(YKHO)", "def dict(YKHO):\n return YKHO.to_dict()", "def dict(Y...
[ "0.88688505", "0.88608456", "0.83247256", "0.8322198", "0.8311614", "0.82882816", "0.82882816", "0.82812274", "0.82812274", "0.82812274", "0.82812274", "0.82812274", "0.82812274", "0.82812274", "0.82812274", "0.82812274", "0.82812274", "0.8251961", "0.82326114", "0.82326114", ...
0.0
-1
Instantiate a PreTrainedBertModel from a pretrained model file or a pytorch state dict. Download and cache the pretrained model file if needed.
def NZUw(Emd4, F091, xA7f=None, BXLT=None, Abzm=False, B18p=False, HrBO=1e-12, AXpz=False, *g4y1, **B2fa): if F091 in pYbf: KfwB = pYbf[F091] else: KfwB = F091 try: U025 = m3Zr(KfwB, cache_dir=BXLT) except FileNotFoundError: bo34.error("Model name '{}' was not found in mo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y4QU(Emd4, *qIxc, **YSA3):\n try:\n return Emd4.from_pretrained(*qIxc, **YSA3)\n except OSError as e:\n G9jH.warning('Caught OSError loading model: %s', tTpl)\n G9jH.warning('Re-trying to convert from PyTorch checkpoint (from_pt=True)')\n return Emd4.from_pretrained(*qIxc, fro...
[ "0.79522216", "0.77722615", "0.7734682", "0.7726705", "0.7684049", "0.7675092", "0.7647618", "0.76362455", "0.75556767", "0.75058645", "0.7501941", "0.74771565", "0.72768426", "0.72241306", "0.7188053", "0.7107789", "0.70988923", "0.70819235", "0.7051796", "0.70315045", "0.70...
0.78870404
1
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
def g4Yp(SRYB): with ZylS.name_scope('summaries'): JBMS = ZylS.reduce_mean(SRYB) ZylS.summary.scalar('mean', JBMS) with ZylS.name_scope('stddev'): z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS))) ZylS.summary.scalar('stddev', z2bo) ZylS.summary.scalar(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()", "def oxpy(YK...
[ "0.77372825", "0.76371294", "0.71553725", "0.70677304", "0.7010343", "0.70051324", "0.686583", "0.6790819", "0.6712101", "0.67020524", "0.6698547", "0.6653406", "0.6651963", "0.6647064", "0.66240656", "0.6604837", "0.6597623", "0.6582092", "0.6571837", "0.6538044", "0.6537941...
0.0
-1
Verify if the view is accessible for the current user.
def HsJG(YKHO): if not c5ow.is_active or not c5ow.is_authenticated: return False if c5ow.has_role(YKHO.roles_required): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h8ch(YKHO, QePW):\n return QePW.user.is_authenticated and QePW.user.is_active or True", "def lqRC(YKHO, CBIr):\n if YKHO.public:\n return True\n if not CBIr or not CBIr.is_authenticated():\n return False\n if CBIr.is_staff or CBIr.check_permstring('builders'):\n return True\n...
[ "0.81078666", "0.7808214", "0.7682237", "0.76563394", "0.7635051", "0.75101995", "0.7489287", "0.7460514", "0.7440343", "0.7427617", "0.7426182", "0.7407255", "0.7405099", "0.73965466", "0.7387988", "0.7387393", "0.73754156", "0.7365617", "0.73649997", "0.73649997", "0.736499...
0.0
-1
Verify if the view is accessible for the current user.
def HsJG(YKHO): if not super().is_accessible(): Dwep('Access denied! You cannot access this record.', 'danger') return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h8ch(YKHO, QePW):\n return QePW.user.is_authenticated and QePW.user.is_active or True", "def lqRC(YKHO, CBIr):\n if YKHO.public:\n return True\n if not CBIr or not CBIr.is_authenticated():\n return False\n if CBIr.is_staff or CBIr.check_permstring('builders'):\n return True\n...
[ "0.81078666", "0.7808214", "0.7682237", "0.76563394", "0.7635051", "0.75101995", "0.7489287", "0.7460514", "0.7440343", "0.7427617", "0.7426182", "0.7407255", "0.7405099", "0.73965466", "0.7387988", "0.7387393", "0.73754156", "0.7365617", "0.73649997", "0.73649997", "0.736499...
0.0
-1
Get quiery for the user belonging to the organistation of the current user.
def OPRw(YKHO): return c5ow.organisation.users
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AO1V(YKHO):\n return YKHO.get_user(YKHO.owner_id)", "def t1hT(YKHO, CBIr):\n return YKHO.filter(user=CBIr)", "def l6jL(YKHO, CBIr):\n return", "def CBIr(YKHO):\n return YKHO.data.user", "def TKWP(YKHO):\n raise NotImplementedError", "def Vq6L(YKHO, CBIr):\n DW23 = YKHO.df_train.grou...
[ "0.6275769", "0.62289166", "0.6205686", "0.61707765", "0.60907185", "0.608706", "0.6085701", "0.606015", "0.6046296", "0.602511", "0.602511", "0.6024762", "0.6024762", "0.6024762", "0.6024762", "0.60063815", "0.600549", "0.59632885", "0.59483635", "0.5939649", "0.5939649", ...
0.61330277
4
Get a single job.
def GgQQ(YKHO, rjee): try: IesV = Zvjk.get_scheduler() return IesV.job_class.fetch(rjee, connection=IesV.connection) except Exception as ex: Dwep(f"The jeb with given ID: {rjee} doesn't exist or it was deleted: {aTqo}.", 'danger') eTsH(404)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UIzg(YKHO, rjee):\n return YKHO._action(['jobs', 'read'], params={'id': rjee})", "def UIzg(YKHO, kVad):\n bD7m = 'jobs/%s' % str(kVad)\n Aofo = YKHO.get(bD7m)\n return Aofo['job']", "def Co5F(YKHO, QpfX, oCfW):\n return YKHO._manager.job_get(QpfX, vDgp(oCfW))", "def UIzg(YKHO, rjee):\n ...
[ "0.8350996", "0.82727766", "0.8268619", "0.8258968", "0.82075137", "0.8149335", "0.8112476", "0.80963063", "0.80827713", "0.80667704", "0.80202246", "0.7937905", "0.7937905", "0.79215467", "0.7902568", "0.7855391", "0.7853852", "0.7823625", "0.7779845", "0.77764565", "0.77704...
0.8439775
0
Verify if the view is accessible for the current user.
def HsJG(YKHO): if not c5ow.is_active or not c5ow.is_authenticated: return False if c5ow.has_role(FxgQ.SUPERUSER): return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h8ch(YKHO, QePW):\n return QePW.user.is_authenticated and QePW.user.is_active or True", "def lqRC(YKHO, CBIr):\n if YKHO.public:\n return True\n if not CBIr or not CBIr.is_authenticated():\n return False\n if CBIr.is_staff or CBIr.check_permstring('builders'):\n return True\n...
[ "0.81078076", "0.7807498", "0.7682845", "0.7656112", "0.7634672", "0.75094795", "0.7490102", "0.7459238", "0.7440959", "0.7426914", "0.742603", "0.7406873", "0.74047244", "0.73962736", "0.73874027", "0.73862624", "0.73751545", "0.7365661", "0.7365661", "0.7365661", "0.7365661...
0.0
-1
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nThe Most Popular Times of Bike Travel...\n') SWox = ITS7.time() jQ3Z['Start Time'] = rLdf.to_datetime(jQ3Z['Start Time']) jQ3Z['month'] = jQ3Z['Start Time'].dt.month sve5 = jQ3Z['month'].mode()[0] if sve5 == 1: sve5 = 'January' elif sve5 == 2: sve5 = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.80009365", "0.7922222", "0.7892432", "0.7862624", "0.7860068", "0.7840171", "0.7801189", "0.77862436", "0.7736829", "0.7724367", "0.7715222", "0.7710214", "0.77057385", "0.77033144", "0.76910996", "0.76871526", "0.76816297", "0.76799464", "0.7673811", "0.7663257", "0.76612...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nThe Most Popular Stations and Trip in Bikeshare...\n') SWox = ITS7.time() _8rG = jQ3Z['Start Station'].mode()[0] print('Most Common Start Station: \n', _8rG) oFx8 = jQ3Z['End Station'].mode()[0] print('Most Common End Station: \n', oFx8) s4s6 = jQ3Z['Start Station'] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665365", "0.76264536", "0.7610902", "0.75852126", "0.7576492", "0.7567089", "0.75577486", "0.7538181", "0.75294757", "0.7502035", "0.74997437", "0.7496321", "0.74872565", "0.74840283", "0.7475714", "0.7472988", "0.7437631", "0.74366206", "0.7433223", "0.7428372", "0.74269...
0.7296639
54
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nTrip Duration...\n') SWox = ITS7.time() qZ1g = jQ3Z['Trip Duration'].sum() yVtz, CsFy = divmod(qZ1g, 60) ROt1, yVtz = divmod(yVtz, 60) print('The Total Travel Time is {} Hours, {} Minutes, and {} Seconds.'.format(ROt1, yVtz, CsFy)) R7Ig = round(jQ3Z['Trip Duration']....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8252774", "0.8147427", "0.80973256", "0.80133396", "0.79883313", "0.79839474", "0.7978846", "0.79713607", "0.79661196", "0.79641503", "0.79623246", "0.79622024", "0.7952834", "0.7949547", "0.79453033", "0.79382944", "0.79244065", "0.7921011", "0.7920532", "0.79192924", "0....
0.0
-1
Migrate `invoiced` bool field into `invoice_status` text field.
def CUJF(XLL2, aCqy): QRWf = XLL2.get_model('workshops', 'Event') QRWf.objects.filter(invoiced__isnull=True).update(invoice_status='unknown') QRWf.objects.filter(invoiced=True).update(invoice_status='invoiced') QRWf.objects.filter(invoiced=False).update(invoice_status='not-invoiced')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PfjC(d_Cv):\n IgS6 = cuiw.query(FYrf.Invoice).get(d_Cv)\n IgS6.voided = True\n cuiw.commit()", "def NSqi(wEf2: bool):\n return _rDc if wEf2 else iKVK", "def QT3i(YKHO):\n for nPrm in YKHO:\n if nPrm.invc_id and nPrm.invc_id.state == 'paid':\n nPrm.paid = True", "def gstE(...
[ "0.5591067", "0.5331081", "0.52805686", "0.52442265", "0.51789653", "0.51543576", "0.5146382", "0.5110662", "0.5071724", "0.50555456", "0.5053931", "0.5029313", "0.4977669", "0.4957083", "0.4941722", "0.49401718", "0.4923401", "0.49117756", "0.4905801", "0.4897294", "0.488463...
0.7386497
0
test exception if H is not hermitian
def d6WZ(YKHO): with trZe.raises(ValueError): C7Ls = w5RD('q0', 1 + 2j) mX1R(C7Ls)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xXUF(YKHO):\n ORsB = oyIN.array([[1, 1], [1, -1]]) / oyIN.sqrt(2)\n with trZe.raises(ValueError, match='must be a square matrix'):\n B2Ja.Hermitian(ORsB[1:], wires=0).matrix()\n o6bB = ORsB.copy()\n o6bB[0, 1] = 2\n with trZe.raises(ValueError, match='must be Hermitian'):\n B2Ja.He...
[ "0.71966726", "0.7097503", "0.68249255", "0.6683178", "0.6407871", "0.6267148", "0.61798394", "0.61158663", "0.5979002", "0.5961867", "0.5958708", "0.59542394", "0.5951867", "0.5951438", "0.5948233", "0.589536", "0.5859694", "0.58448684", "0.58085895", "0.57747626", "0.576874...
0.58625036
16
Retrieves a named polygon registered on the Agro API.
def fuE2(YKHO, AoXO): jGRS, nPrm = YKHO.http_client.get_json(aYXi % str(AoXO), params={'appid': YKHO.API_key}, headers={'Content-Type': 'application/json'}) return rSWe.from_dict(nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h1_p(YKHO, ydOR, mWFP=None):\n assert ydOR is not None\n assert isinstance(ydOR, q7xk)\n nPrm = {'geo_json': {'type': 'Feature', 'properties': {}, 'geometry': ydOR.to_dict()}}\n if mWFP is not None:\n nPrm['name'] = mWFP\n jGRS, pB3N = YKHO.http_client.post(uTk6, params={'appid': YKHO.API...
[ "0.67278254", "0.6668409", "0.6640551", "0.64940876", "0.6463909", "0.6421171", "0.6403189", "0.6383935", "0.6357604", "0.63306797", "0.63040054", "0.6295496", "0.6279602", "0.62413967", "0.62236786", "0.62109286", "0.6164506", "0.61136144", "0.60467625", "0.6040698", "0.6001...
0.74088967
0
Returns the best move for player
def tgs3(iBIi, oyg0, beOw): cCrA = sT_7(iBIi) for bGrB in range(beOw): i3ak = iBIi.clone() fNai(i3ak, oyg0) UEm4(cCrA, i3ak, oyg0) VmPb = Jwcz(iBIi, cCrA) return VmPb
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xup_(YKHO, oyg0):\n IayW = YKHO._get_valid_moves(oyg0)\n ITS7.sleep(0.25 * (len(IayW) + 1))\n hXNa(IayW)\n av4A = None\n jB5X = 0\n au45 = list(filter(lambda BZN_: BZN_ not in wgbj, IayW))\n if au45:\n IayW = au45\n for BZN_ in IayW:\n if BZN_ in hW_s:\n return ...
[ "0.83274007", "0.83274007", "0.82682437", "0.82279783", "0.8182756", "0.8007192", "0.7983932", "0.7961001", "0.7942146", "0.79368573", "0.79113686", "0.78593034", "0.78588396", "0.7849728", "0.7735819", "0.77134645", "0.76262337", "0.76165557", "0.7615934", "0.7538318", "0.75...
0.0
-1
Estimate Causal Functional Connectivity (CFC) between nodes from time series. This is a wrapper for functions cfc_tpc, cfc_pc, cfc_gc in tpc.py. Refer to the individual functions for their details.
def m7uV(nPrm, Si4S, Cwt5=0.05, DlWa=1, JEq5=50, knl1=0.25, ZMay=False): if Si4S == 'TPC': fyP7, _mSQ = WbTc(nPrm, maxdelay=DlWa, alpha=Cwt5, niter=JEq5, thresh=knl1, isgauss=ZMay) elif Si4S == 'PC': fyP7, _mSQ = kOcz(nPrm, Cwt5, isgauss=ZMay) elif Si4S == 'GC': from timeawarepc.gc i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cIMH(nPrm, WXkz=None, Zmw9=None, HBfW=True, bmJ5=1, wL5o=True, z862=None, PJWX=None, **Cmeh):\n Cmeh.update({'directed': False, 'net': False})\n nPrm, _Fei = PDLJ(nPrm, times=WXkz, roi=Zmw9, agg_ch=False, win_sample=None, name='CCF', verbose=PJWX, kw_links=Cmeh)\n WKvO, beOw, o8Kj = (nPrm.data, nPrm['...
[ "0.6687881", "0.65094376", "0.63400894", "0.62432986", "0.61416364", "0.60675913", "0.6059884", "0.6014312", "0.60090995", "0.59970987", "0.59843403", "0.5969497", "0.5885015", "0.587824", "0.5878212", "0.5855566", "0.5854206", "0.5850959", "0.5845667", "0.58376324", "0.58314...
0.63974625
2
Returns list of current user's orders.
def NMoC(YKHO): qIxc = Cfj4.parse_args(QePW) x0hE = bjc6() CBIr = x0hE.check_token(qIxc.get('Authorization')) if not CBIr: return (None, 401) return L9Jq.query.filter_by(owner_id=CBIr['id']).all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n4Xj(CBIr):\n return NrZU.Order.objects.filter(_complete=True, user=CBIr.id)", "def awPf(CBIr):\n pass", "def f0Uf():\n return pz3A(ayx7)", "def QNpq(YKHO, **NArs):\n pmON = '/account/order/list'\n return YKHO.get(pmON, params=NArs)", "def NMoC(YKHO):\n return A1Jz.get_orders(secret=Q...
[ "0.78802127", "0.7849704", "0.7829108", "0.74070853", "0.73901623", "0.7340411", "0.7174941", "0.7099156", "0.70585346", "0.70245945", "0.6991253", "0.6961361", "0.693197", "0.6916947", "0.6910384", "0.6875588", "0.68254304", "0.68254304", "0.6803501", "0.67968726", "0.675735...
0.62120533
45
Sets the active of this ReposGpgKeys. If selected this is the active key for this repository.
def WZHJ(YKHO, WZHJ): YKHO._active = WZHJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZHJ(YKHO, WZHJ):\n YKHO._active = WZHJ", "def WZHJ(YKHO, WZHJ):\n YKHO._active = WZHJ", "def eLjN(YKHO, ksfB):\n dict.__setitem__(YKHO, bHSV, ksfB)", "def eLjN(YKHO, WZHJ):\n YKHO.active = WZHJ", "def eLjN(YKHO, WZHJ):\n YKHO.active = WZHJ", "def eLjN(YKHO, WZHJ):\n YKHO.active = W...
[ "0.68926245", "0.6856569", "0.6807812", "0.6797921", "0.6797921", "0.6751666", "0.67296773", "0.66874284", "0.66852707", "0.66444784", "0.66371924", "0.6627878", "0.6615031", "0.65303475", "0.6498744", "0.6489449", "0.6399632", "0.6375341", "0.63582176", "0.63443893", "0.6307...
0.6834457
4
Sets the comment of this ReposGpgKeys.
def aM_I(YKHO, aM_I): YKHO._comment = aM_I
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDCb(YKHO, aM_I):\n YKHO.options['comment'] = aM_I", "def aM_I(YKHO, aM_I):\n YKHO._comment = aM_I", "def TDCb(YKHO, rRzo, aM_I):\n aM69.BNSetCommentForAddress(YKHO.handle, rRzo, aM_I)", "def aM_I(YKHO, aM_I):\n try:\n YKHO._comment = aM_I\n except Exception as e:\n raise tTp...
[ "0.71649057", "0.70830387", "0.6893195", "0.68561935", "0.68561935", "0.6781289", "0.6693168", "0.66539794", "0.66433185", "0.6638204", "0.65891886", "0.6487327", "0.6474052", "0.6375148", "0.63734984", "0.6368606", "0.6324057", "0.6266638", "0.62488556", "0.6209396", "0.6103...
0.700528
3
Gets the fingerprint of this ReposGpgKeys. The long identifier used by GPG for this key.
def s7Zb(YKHO): return YKHO._fingerprint
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s7Zb(YKHO) -> str:\n return qe4Y.get(YKHO, 'fingerprint')", "def s7Zb(YKHO) -> str:\n return qe4Y.get(YKHO, 'fingerprint')", "def s7Zb(YKHO) -> str:\n return qe4Y.get(YKHO, 'fingerprint')", "def s7Zb(YKHO) -> str:\n return qe4Y.get(YKHO, 'fingerprint')", "def s7Zb(YKHO) -> str:\n return ...
[ "0.72302026", "0.72302026", "0.72302026", "0.72302026", "0.72302026", "0.72302026", "0.71112686", "0.699489", "0.6863336", "0.68517417", "0.67222315", "0.67065537", "0.67018443", "0.67018443", "0.67018443", "0.6675024", "0.6617214", "0.65407467", "0.65224874", "0.64937913", "...
0.69241834
8
Returns the string representation of the model
def gTzM(YKHO): return EyO9(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.83939064", "0.83558416", "0.8296191", "0.8133439", "0.81156427", "0.810097", "0.81001526", "0.8099001", "0.8099001", "0.80936444", "0.80936444", "0.80936444", "0.80936444", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80862904", "0.80677134", "0.80598736", "0...
0.0
-1
Return the address object that has the control interface
def kiDP(YKHO): for wohN in YKHO.get_interfaces(): if wohN.is_control(): return wohN return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nn1n(YKHO):\n return YKHO.__address", "def UTX6(YKHO):\n return YKHO.__address", "def UTX6(YKHO):\n return YKHO.__address", "def UTX6(YKHO):\n pass", "def UTX6(YKHO):\n return YKHO._ref_address", "def ceuN(YKHO):\n return YKHO.address", "def Nn1n():\n if bT5T.AF_INET not in bT5...
[ "0.69229645", "0.68624777", "0.68624777", "0.67399", "0.6682642", "0.66640466", "0.666135", "0.66164875", "0.6599048", "0.6577187", "0.6574477", "0.6558579", "0.6558579", "0.6558579", "0.65062326", "0.6496495", "0.6491018", "0.6485863", "0.6485863", "0.6485863", "0.6485863", ...
0.0
-1
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() if x0eS == 'all': sve5 = jQ3Z['month'].mode()[0] print(f'the most popular month is ---> {sve5}') if CjKC == 'all': StUT = jQ3Z['day'].mode()[0] print(f'the most popular day is...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.79996175", "0.7920857", "0.7891767", "0.78612196", "0.785926", "0.7838814", "0.779974", "0.77848285", "0.7735119", "0.7723049", "0.771342", "0.7708436", "0.770453", "0.77017164", "0.7689714", "0.7685842", "0.7680146", "0.76788265", "0.76721054", "0.7661351", "0.7660023", ...
0.75031
68
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() C5i8 = jQ3Z['Start Station'].mode()[0] print(f'the most commonly used start station is ---> {C5i8}') u9u5 = jQ3Z['End Station'].mode()[0] print(f'the most commonly used end station is ---> {u9u5}') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665293", "0.76262546", "0.76101285", "0.7584847", "0.75762314", "0.7566649", "0.755761", "0.75378233", "0.7529349", "0.7501873", "0.7499639", "0.7496067", "0.74869275", "0.7483704", "0.7475383", "0.74727637", "0.7437347", "0.74363554", "0.74328583", "0.7427906", "0.742675...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() RGHr = sum(jQ3Z['Trip Duration']) print(f'total time travelled is ---> {EDSZ(RGHr)[0]} days and {EDSZ(RGHr)[1]} hours and {EDSZ(RGHr)[2]} minutes and {EDSZ(RGHr)[3]} seconds') XVYG = jQ3Z['Trip Duration'].mean() print(f...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8252774", "0.8147427", "0.80973256", "0.80133396", "0.79883313", "0.79839474", "0.7978846", "0.79713607", "0.79661196", "0.79641503", "0.79623246", "0.79622024", "0.7952834", "0.7949547", "0.79453033", "0.79382944", "0.79244065", "0.7921011", "0.7920532", "0.79192924", "0....
0.0
-1
Updates any spritesheet animation on the prefab.
def H5Hr(YKHO, RA_F): if hasattr(YKHO, 'anim_source'): YKHO.anim_change_time -= RA_F if YKHO.anim_change_time < 0: YKHO.anim_change_time += YKHO.anim_rate YKHO.anim_index += 1 if YKHO.anim_index == len(YKHO.anim_source): YKHO.anim_index = 0 ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H5Hr(YKHO):\n for Jqc7 in YKHO.sprite_list:\n Jqc7.update_animation()", "def QdZT(YKHO):\n YKHO.all_sprites.update()", "def QdZT(YKHO):\n for Jqc7 in YKHO.sprite_list:\n Jqc7.update()", "def QdZT(YKHO):\n for Jqc7 in YKHO.sprite_list:\n Jqc7.update()", "def QdZT(YKHO):\...
[ "0.72957844", "0.7052043", "0.6763226", "0.6720687", "0.6661953", "0.6636735", "0.641202", "0.6384679", "0.6375527", "0.6346213", "0.62698513", "0.61900467", "0.60990256", "0.60982174", "0.608806", "0.6084559", "0.60520256", "0.60403126", "0.603463", "0.6031571", "0.60130614"...
0.0
-1
Show videos that the current user has voted for.
def D5t8(QePW): SFIC = QePW.user.voted_videos.order_by('-vote__id') return JZ0s(QePW, SFIC, {'hide_gallery_header': True})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wyiq(QePW, DYeJ):\n if QePW.user.is_authenticated():\n f6W2 = Iofl(YM9Z, id=DYeJ)\n lFQG.objects.get_or_create(user=QePW.user, video=f6W2)\n else:\n QePW.session['vote_video'] = DYeJ\n return igJ6()", "def SFIC(QePW):\n return _1tc(QePW, 'users/videos.html')", "def MEPe(uJj...
[ "0.6483693", "0.6085414", "0.6011155", "0.5977391", "0.5951092", "0.5927084", "0.58220476", "0.575418", "0.57517236", "0.5693046", "0.56779224", "0.5659224", "0.56388044", "0.5572846", "0.5531811", "0.55303663", "0.5528722", "0.5528317", "0.55042434", "0.54753566", "0.5471796...
0.80847263
0
{get} /p/getAverageNumberOfSpeechesPerSession/{id}/{?date} MP's average number of speeches per session getAverageNumberOfSpeechesPerSession MPs This function returns an object with the MPs calculated average number of speeches per session. The function returns the score as it was calculated for a given date, if no date...
def zT9a(QePW, Aujj, _c1T=None): dxhl = mbW2(cCKJ, Aujj, _c1T) yvT9 = {'person': dGb4(Aujj, _c1T), 'created_at': dxhl.created_at.strftime(j34H), 'created_for': dxhl.created_for.strftime(j34H), 'results': {'max': {'score': dxhl.maximum, 'mps': [dGb4(dxhl.maxMP.id_parladata, _c1T)]}, 'average': dxhl.average, 'sco...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jdIL(QePW, Aujj, _c1T=None):\n cacn = mbW2(KgST, Aujj, _c1T)\n yvT9 = {'person': dGb4(Aujj, _c1T), 'created_at': cacn.created_at.strftime(j34H), 'created_for': cacn.created_for.strftime(j34H), 'results': {'sessions': {'score': cacn.person_value_sessions, 'average': cacn.average_sessions, 'max': {'mps': [...
[ "0.6219846", "0.56166387", "0.54769033", "0.51290095", "0.51052773", "0.50192153", "0.50156426", "0.49206197", "0.48975587", "0.4877247", "0.47761354", "0.46831945", "0.4665508", "0.46487114", "0.46000573", "0.45735943", "0.45676014", "0.45604712", "0.45596892", "0.45590666", ...
0.81630963
0
Remove unwanted characters from string. 'char_to_remove' is a str of unwanted char
def HHA1(Q6uT, _KiG): YAg3 = dict.fromkeys((YRbF for YRbF in range(HwRy.maxunicode) if chr(YRbF) in _KiG)) return Q6uT.translate(YAg3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XJr6(nPrm, hcXw):\n return nPrm.replace(hcXw, '')", "def OrnU(eOtH, N5BV):\n hlel = filter(lambda Z9rn: Z9rn not in N5BV, eOtH)\n return ''.join(hlel)", "def nqAZ(vIwR, gLiZ):\n return ''.join([WKvO for WKvO in vIwR if WKvO not in gLiZ])", "def XJr6(KCHu, Z9rn):\n oHAI = list(KCHu)\n oH...
[ "0.8119233", "0.8093524", "0.8011346", "0.7743718", "0.77029943", "0.7699876", "0.76289475", "0.761085", "0.74994826", "0.74848586", "0.74721867", "0.74604726", "0.73883027", "0.73746294", "0.73103327", "0.7273607", "0.72711194", "0.72280097", "0.72121936", "0.72062", "0.7143...
0.7208839
19
Derives a ranking object.
def XR72(z3LN, d93I, RMXW): i0gQ, X4iw = vhJQ(z3LN, d93I) BCk_ = YOLE(authors=i0gQ, blocks=X4iw, rank_function=RMXW) return BCk_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AMX5(YKHO):\n BCk_ = eHNT.get_ranking(YKHO.kwargs['uuid'])\n YKHO.check_object_permissions(YKHO.request, BCk_)\n return BCk_", "def AMX5(YKHO):\n BCk_ = eHNT.get_ranking(YKHO.kwargs['uuid'])\n YKHO.check_object_permissions(YKHO.request, BCk_)\n return BCk_", "def AMX5(YKHO):\n BCk_ = e...
[ "0.6763934", "0.6763934", "0.6763934", "0.644541", "0.6415689", "0.63525885", "0.625329", "0.61610115", "0.6152546", "0.6134205", "0.6042274", "0.6013061", "0.6003546", "0.59171474", "0.5914641", "0.58764803", "0.58741224", "0.585693", "0.58275694", "0.5809083", "0.57505524",...
0.65957284
3
Normalizes uncertainties in a discrete range from 0 to 10.
def JG7C(tIRN): wi08 = len(tIRN) - 1 bpSP = [] for PSPb in tIRN: bpSP.append(int(round(PSPb / wi08 * 10))) return bpSP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(T6S7):\n kpLf = oyIN.min(T6S7)\n JCoA = oyIN.max(T6S7)\n return (T6S7 - kpLf) / (JCoA - kpLf)", "def NkkI(YKHO, hkxX):\n kpLf = YKHO.expected_range[0]\n JCoA = YKHO.expected_range[1]\n SnCn = JCoA - kpLf\n D4B9 = kpLf\n return (hkxX - D4B9) / SnCn - 0.5", "def NkkI(WKvO):\n ...
[ "0.7177055", "0.70076555", "0.6983485", "0.6913686", "0.6889426", "0.68741345", "0.6842343", "0.6820014", "0.6756946", "0.6752044", "0.67397964", "0.67255646", "0.67226404", "0.67176604", "0.67087615", "0.6707032", "0.6693537", "0.6686876", "0.6676329", "0.66717243", "0.66716...
0.0
-1
Convert results to a dictionary using date as the key and precipitation as the value.
def cBYs(): cuiw = DMju(eHpk) dRUG = cuiw.query(Ny6I.date).order_by(Ny6I.date.desc()).first() print(dRUG) FtNH = JRYC.date(2017, 8, 23) - JRYC.timedelta(days=365) tArK = cuiw.query(Ny6I.date, Ny6I.prcp).filter(Ny6I.date >= FtNH).order_by(Ny6I.date).all() dErb = dict(tArK) return pz3A(dErb)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aj9W():\n _uOj = NCls.session.query(Ny6I.date, Ny6I.prcp).all()\n ashp = []\n for Aofo in _uOj:\n _gmo = {}\n _gmo['Date'] = Aofo.date\n _gmo['Precipitation'] = Aofo.prcp\n ashp.append(_gmo)\n return pz3A(ashp)", "def cBYs():\n O99P = cuiw.query(Ny6I.date, Ny6I.prcp...
[ "0.71627814", "0.7115166", "0.6959575", "0.6948382", "0.6937644", "0.6908189", "0.6865641", "0.6823116", "0.6819028", "0.6817304", "0.68163747", "0.68101025", "0.67937917", "0.67859876", "0.6759929", "0.6748925", "0.67222756", "0.67146647", "0.67069185", "0.6682362", "0.66666...
0.6426665
46
Decodes a record to a TensorFlow example.
def F8vC(AIu6): Q3__ = {'document': ZylS.io.FixedLenFeature([], ZylS.string), 'summary': ZylS.io.FixedLenFeature([], ZylS.string)} PU1l = ZylS.io.parse_single_example(AIu6, Q3__) return (PU1l['document'], PU1l['summary'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F8vC(AIu6, Q3__=Q3__):\n print('record', AIu6)\n PU1l = ZylS.parse_single_example(AIu6, Q3__)\n for mWFP in list(PU1l.keys()):\n a1PO = PU1l[mWFP]\n if a1PO.dtype == ZylS.int64:\n a1PO = ZylS.to_int32(a1PO)\n PU1l[mWFP] = a1PO\n return PU1l", "def F8vC(AIu6, Q3__):...
[ "0.84476423", "0.8302177", "0.82800674", "0.82766104", "0.82766104", "0.82766104", "0.8276019", "0.8274276", "0.8274276", "0.8269405", "0.82662725", "0.8248779", "0.82339126", "0.8223867", "0.8213503", "0.8213503", "0.8200598", "0.81516314", "0.8129979", "0.81267464", "0.8103...
0.78493905
23
Returns `model_fn` closure for TPUEstimator.
def VPYM(xezQ): def JnVv(bySB, Crrw, Tuqy, NArs): """The `model_fn` for TPUEstimator.""" if isinstance(bySB, dict): if not Crrw and 'target_ids' in bySB: Crrw = bySB['target_ids'] bySB = bySB['input_ids'] LT6S = Tuqy == ZylS.estimator.ModeKeys.TRAIN ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rNzv(QjBU):\n\n def Csmj(bySB, Crrw, Tuqy, NArs):\n \"\"\"Model function.\"\"\"\n del Crrw, NArs\n qqWV = C3ST.BaseModel(QjBU, mode=Tuqy, features=bySB)\n if Tuqy == QUnY.ModeKeys.INFER:\n xnXT = qqWV.predicted_ids\n xnXT = ZylS.transpose(xnXT, [2, 1, 0])\n ...
[ "0.6787779", "0.67103624", "0.67103624", "0.6704895", "0.6642295", "0.66198206", "0.66082895", "0.64999914", "0.6486195", "0.64842176", "0.6469084", "0.6448022", "0.63862765", "0.6345052", "0.63420516", "0.6321679", "0.62892616", "0.62591857", "0.6228306", "0.6225306", "0.620...
0.67229205
1
The `model_fn` for TPUEstimator.
def JnVv(bySB, Crrw, Tuqy, NArs): if isinstance(bySB, dict): if not Crrw and 'target_ids' in bySB: Crrw = bySB['target_ids'] bySB = bySB['input_ids'] LT6S = Tuqy == ZylS.estimator.ModeKeys.TRAIN C3ST = bgFP.TransformerModel(xezQ) (fbkD, KeL5, QMMx), bGrB = C3ST(bySB, target_i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZPn8(YKHO, bySB, Crrw, ND3i):\n oYbx = gnPz.fn_args(YKHO._model_fn)\n B2fa = {}\n GPtr = jth9.deepcopy(YKHO._config)\n NArs = jth9.deepcopy(YKHO._params)\n if 'labels' in oYbx:\n B2fa['labels'] = Crrw\n elif Crrw is not None:\n raise ValueError('model_fn does not take labels, bu...
[ "0.72362834", "0.7198053", "0.71058893", "0.70971304", "0.7038464", "0.7038464", "0.697475", "0.69312525", "0.6887504", "0.67796916", "0.66569746", "0.6626366", "0.66256857", "0.6591902", "0.65852433", "0.65476555", "0.6534668", "0.6486356", "0.6484161", "0.64805233", "0.6425...
0.62227875
29
Assert that the path is invalid in 'dictionary'
def fieA(cmPJ, pmON): try: Aofo = RSVC(cmPJ, pmON) except AssertionError: return raise hDRJ('path "%s" has value "%s"' % (pmON, str(Aofo)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cmTi(C9U5):\n with trZe.raises(ValueError) as aOtT:\n Sb1x(C9U5)\n assert aOtT.value.args[0] == \"Can't create dictionary from properties\", 'Wrong error message'", "def hyRW(YKHO):\n with YKHO.assertRaises(IOError):\n OuEF('invalid_path/test.csv', ';', [{'t1': 'test1'}], ['t1'])", "...
[ "0.6926132", "0.6769658", "0.66747236", "0.6668886", "0.66386485", "0.6504521", "0.64631283", "0.64415884", "0.643561", "0.64307785", "0.6411099", "0.6398501", "0.63875055", "0.63866514", "0.6381517", "0.63431484", "0.6301179", "0.6270506", "0.6236302", "0.6193157", "0.619012...
0.65900916
5
Calculate the bleu score for hypotheses and references using the MOSES ultibleu.perl script.
def BMyt(eV_O, z3LN, cKm3=False, F0g6='SEQUENCE_END'): if oyIN.size(eV_O) == 0: return oyIN.float32(0.0) z9rG, bGrB = uRlK.request.urlretrieve('https://raw.githubusercontent.com/moses-smt/mosesdecoder/master/scripts/generic/multi-bleu.perl') Hy7s.chmod(z9rG, 493) if eV_O.dtype.kind == oyIN.dtype...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hpnh(aTLP, x6A0):\n BHED = Dhdw.translate.bleu_score.corpus_bleu(x6A0, aTLP, emulate_multibleu=True)\n return BHED", "def BMyt(eV_O, z3LN, cKm3=True):\n if oyIN.size(eV_O) == 0:\n return oyIN.float32(0.0)\n z9rG = './multi-bleu.perl'\n Hy7s.chmod(z9rG, 493)\n DYc2 = gbPf.NamedTempora...
[ "0.7723249", "0.7625894", "0.7405006", "0.73888105", "0.72647583", "0.7210087", "0.7210087", "0.72033167", "0.7195428", "0.7165119", "0.7117844", "0.70679986", "0.7056315", "0.69510245", "0.67956597", "0.65990734", "0.6533906", "0.6504987", "0.64690137", "0.6459331", "0.64086...
0.6317208
22
Reverse the linked list Nonrecursive method Move the following nodes to the head
def zNK9(YKHO, sdCG=None): if not sdCG: sdCG = YKHO.head if not sdCG.next: return sdCG XP5J = sdCG vexM = sdCG.next sdCG.next = None while vexM: Mkmy = vexM.next vexM.next = XP5J XP5J = vexM vexM = Mkmy YKHO.head = XP5J return YKHO.head
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gxEw(YKHO):\n DpUl = YKHO.head\n zAcD = None\n uxLh = None\n while DpUl:\n zAcD = DpUl.next\n DpUl.next = uxLh\n uxLh = DpUl\n DpUl = zAcD\n YKHO.head = uxLh", "def i04L(YKHO, sdCG):\n THkp = Msxl(-1)\n WL52 = sdCG\n while WL52:\n jbXL = WL52.next\n ...
[ "0.8243295", "0.8092305", "0.80346185", "0.80133545", "0.7954866", "0.79090285", "0.7901013", "0.7894894", "0.7813632", "0.77961075", "0.7787475", "0.7754919", "0.77252233", "0.7722127", "0.7703731", "0.76873803", "0.76862884", "0.76780325", "0.76771706", "0.7667554", "0.7667...
0.7777539
11
Function generates a webdriver instance and then returns this instance to be passed to other functions
def FYgX(Emd4): VKhi = lE6K() SYsl = RpLl(options=VKhi) return SYsl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pQYT(YKHO):\n knUS = tF99('{}.webdriver'.format(YKHO.webdriver_base_path))\n kbVW = getattr(knUS, 'WebDriver')\n JVht = tF99('{}.options'.format(YKHO.webdriver_base_path))\n jIgT = getattr(JVht, 'Options')\n DVsV = jIgT()\n for wAVY in YKHO.driver_arguments:\n DVsV.add_argument(wAVY)\n...
[ "0.7939149", "0.7364162", "0.73368025", "0.7258435", "0.70526314", "0.7028252", "0.6959659", "0.6955615", "0.69459397", "0.69258606", "0.68851584", "0.6872336", "0.6843708", "0.6838447", "0.68288594", "0.6798617", "0.6760397", "0.67593527", "0.6751745", "0.67235434", "0.67157...
0.75129324
1
To make the code reproducable, set the seeds manually. this has to be changed to random if you want more efficiency. numpy seeds will be used during shuffling of data rows. pytorch seeds are used during the random seed initializations for embeddings
def jImU(yokr): tuKI.seed(yokr) oyIN.random.seed(yokr) ht2j.manual_seed(yokr) ht2j.cuda.manual_seed(yokr) ht2j.cuda.manual_seed_all(yokr) ht2j.backends.cudnn.deterministic = True ht2j.backends.cudnn.benchmark = False Hy7s.environ['PYTHONHASHSEED'] = str(yokr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def igb0():\n oyIN.random.seed(8)\n ht2j.manual_seed(8)\n tuKI.seed(8)", "def t2vv(QTBn):\n tuKI.seed(QTBn)\n oyIN.random.seed(QTBn)\n ht2j.manual_seed(QTBn)", "def BpNF():\n ht2j.manual_seed(0)\n ht2j.backends.cudnn.deterministic = True\n ht2j.backends.cudnn.benchmark = False\n o...
[ "0.7798042", "0.77198267", "0.7700215", "0.76597", "0.7631694", "0.75938725", "0.75860935", "0.7504143", "0.74442977", "0.74322283", "0.7427576", "0.74108654", "0.73974514", "0.7378971", "0.7369038", "0.7355024", "0.73298484", "0.73242605", "0.73241913", "0.73241913", "0.7324...
0.70878667
48
Return bootrom as a list of operation, value tuples from input file.
def DbxN() -> list: with open('input/day_08_input.txt') as GXko: return [(khtY, int(wEf2)) for khtY, wEf2 in (zFiD.split() for zFiD in GXko)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b3zy(eZ_W):\n Ar5K = []\n with open(eZ_W, 'r') as eHNT:\n for zFiD in eHNT:\n Ar5K += [zFiD.strip()]\n fZDm = tuple(Ar5K)\n return fZDm", "def xyRW(eZ_W: str) -> []:\n return HTzx(eZ_W)", "def bPwz():\n Ar5K = []\n with open('input.txt', 'r') as eZ_W:\n for zFi...
[ "0.6034157", "0.60284567", "0.5970105", "0.5751754", "0.57026786", "0.5702053", "0.5683412", "0.5665386", "0.55401605", "0.55385256", "0.5499175", "0.54878396", "0.5447701", "0.54091173", "0.5406211", "0.5406211", "0.5406211", "0.5402957", "0.54028195", "0.5379961", "0.537987...
0.7090372
0
given a sqlite cursor, yields results as a dictionary mapping column names to column values probably slightly overengineered
def PKBI(N1p7): dixj = [] AlVb = [Csk6[0] for Csk6 in N1p7.description] while True: usx6 = N1p7.fetchmany() if not usx6: break for rdlD in usx6: dixj.append(dict(Hs6x.izip(AlVb, rdlD))) return dixj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wMQ8(N1p7):\n ZLJ_ = [fvDH[0] for fvDH in N1p7.description]\n return [dict(zip(ZLJ_, rdlD)) for rdlD in N1p7.fetchall()]", "def wMQ8(N1p7):\n ZLJ_ = [fvDH[0] for fvDH in N1p7.description]\n return [dict(zip(ZLJ_, rdlD)) for rdlD in N1p7.fetchall()]", "def wMQ8(N1p7):\n ZLJ_ = [fvDH[0] for fv...
[ "0.8380158", "0.8380158", "0.8293481", "0.8023989", "0.8023989", "0.7971352", "0.79399323", "0.7939223", "0.78932905", "0.7828967", "0.7722983", "0.7638166", "0.75759155", "0.7557945", "0.7553066", "0.75160575", "0.7472307", "0.7395605", "0.73454577", "0.7342741", "0.7309253"...
0.8182816
3
get a logger object with reasonable defaults for formatting name used to identify the logger (though not currently useful for anything)
def fZx2(mWFP): global loggers if mWFP in Ry7x: return Ry7x[mWFP] bo34 = G9jH.getLogger(mWFP) bo34.setLevel(G9jH.DEBUG) lWrn = G9jH.StreamHandler() lWrn.setFormatter(G9jH.Formatter('%(asctime)s [%(levelname)s:%(processName)s] %(message)s', '%m-%d %H:%M:%S')) bo34.addHandler(lWrn) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fZx2(sI3h=None):\n if sI3h is None:\n sI3h = u'[{record.time:%Y-%m-%d %H:%M:%S.%f} pid({record.process})] ' + u'{record.level_name}: {record.module}::{record.func_name}:{record.lineno} {record.message}'\n zUYj = aYqa(HwRy.stdout, format_string=sI3h)\n zUYj.push_application()\n return rzye(__...
[ "0.7438691", "0.72809225", "0.7266511", "0.71644676", "0.7124179", "0.7115172", "0.7112182", "0.7104717", "0.70972675", "0.7038181", "0.7036821", "0.6992655", "0.69888246", "0.6980801", "0.69790787", "0.69226754", "0.6907527", "0.6899112", "0.6898647", "0.68864626", "0.687835...
0.6532317
84
Weighted random chance check based on pet's discipline level. The higher the level of pet discipline, the greater chance of returning True value.
def fNqy(YKHO): jzdc = [1 - YKHO.pet.discipline / 100, YKHO.pet.discipline / 100] Mkmy = tuKI.random() XP5J = 0 for YRbF, Ty9i in enumerate(jzdc): XP5J += Ty9i if Mkmy < XP5J: return YRbF return fNqy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OiKl(XP5J):\n if tuKI.random() < XP5J:\n return 1\n else:\n return 0", "def shMU(YKHO):\n return YKHO.roll() / 400.0 + 0.875", "def OiKl(Q7Be):\n return tuKI.random() < Q7Be", "def OiKl(Q7Be):\n return tuKI.random() < Q7Be", "def mPD9(YKHO):\n hxx9 = tuKI.randint(0, 100)...
[ "0.7079303", "0.7023206", "0.69553834", "0.69553834", "0.69326746", "0.67598456", "0.67292523", "0.67011726", "0.67010343", "0.6670318", "0.6670318", "0.6670318", "0.6670318", "0.6670318", "0.6540353", "0.6533257", "0.6524576", "0.6511356", "0.65112484", "0.64737105", "0.6451...
0.70562685
1
Prints out all of the numbers that divide `n` evenly. >>> factors(20) 20 10 5 4 2 1
def Llmz(exwG): """*** YOUR CODE HERE ***""" WKvO = exwG while WKvO > 0: if exwG % WKvO == 0: print(WKvO) WKvO -= 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Llmz(exwG):\n YRbF = exwG\n while YRbF > 0:\n if exwG % YRbF == 0:\n print(YRbF)\n YRbF -= 1", "def Llmz(exwG):\n return sorted((WKvO for SjLr in ([YRbF, exwG // YRbF] for YRbF in range(1, int(exwG ** 0.5) + 1) if exwG % YRbF == 0) for WKvO in SjLr))", "def Llmz(exwG):\n ...
[ "0.8555042", "0.826017", "0.8192951", "0.8184886", "0.81706065", "0.81350917", "0.8028605", "0.8028605", "0.8024406", "0.79517025", "0.7936796", "0.7897798", "0.7879444", "0.78648746", "0.7857897", "0.78306", "0.78077143", "0.78006065", "0.7794346", "0.7785475", "0.77834994",...
0.8066052
6
Compute the falling factorial of n to depth k. >>> falling(6, 3) 6 5 4 120 >>> falling(4, 0) 1 >>> falling(4, 3) 4 3 2 24 >>> falling(4, 1) 4 4
def tt8p(exwG, G1Hx): """ Recursive approach if k > n: return None elif n == 1 or k == 1: return n elif k == 0: return 1 else: return n*falling(n-1, k-1) """ Aofo, WKvO = (1, exwG - G1Hx) while exwG > WKvO: Aofo, exwG = (Aofo * exwG, exwG - 1) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tt8p(exwG, G1Hx):\n Aofo = 1\n while G1Hx != 0:\n Aofo *= exwG\n exwG -= 1\n G1Hx -= 1\n return Aofo", "def tt8p(exwG, G1Hx):\n if exwG > G1Hx:\n wjRY, JCyR = (1, exwG - G1Hx)\n while exwG > JCyR:\n wjRY, exwG = (wjRY * exwG, exwG - 1)\n else:\n ...
[ "0.816873", "0.79086924", "0.7274109", "0.6443036", "0.6210391", "0.61805195", "0.6082568", "0.6031643", "0.59894294", "0.59894294", "0.59798586", "0.5921373", "0.5874175", "0.58338654", "0.5812298", "0.5799772", "0.576751", "0.57446504", "0.5742692", "0.5741632", "0.5739556"...
0.8379411
0
Respond to any request with a basic 'OK' status, for uptime monitoring.
def Wp7P(YKHO): YKHO.send_response(200, 'OK') YKHO.send_header('Content-type', 'text/html') YKHO.end_headers()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LeQ0():\n jGRS = 200\n return oGir(response='Hey this is working', status=jGRS, mimetype='application/json')", "def yy8x():\n return pz3A({'status': 'success'})", "def LeQ0():\n return SmhL(status=200)", "def DCor(YKHO, QePW, QpfX):\n QpfX.code(uZGC.StatusCode.UNIMPLEMENTED)", "def KvvM(...
[ "0.70163995", "0.69010884", "0.68928456", "0.67974865", "0.6775754", "0.67756295", "0.67574203", "0.6742855", "0.66789675", "0.6623228", "0.66097754", "0.66009855", "0.66009855", "0.6598124", "0.654368", "0.6536016", "0.6509991", "0.65007395", "0.64971054", "0.6492892", "0.64...
0.0
-1
Type is `list` or `List[T]`
def Lm1b(YKHO) -> bool: if YKHO._hint is list or Wkq0(YKHO._hint) is list: return True elif Wkq0(YKHO._hint) is uLKX: for jx9w in rwTO(YKHO._hint): if jx9w is list or Wkq0(jx9w) is list: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lm1b(vGaq):\n return type(vGaq) is SnBA.ListType", "def Lm1b(a1PO, qIxc=None):\n return cb_p(laHg.List, a1PO, qIxc)", "def Lm1b(vGaq):\n return isinstance(vGaq, SnBA.ListType)", "def Lm1b(input):\n return type(input) == jbQU", "def Lm1b(vC9B):\n return type(vC9B) in [list, tuple, oyIN.nd...
[ "0.7838676", "0.7797208", "0.7777775", "0.7754752", "0.77153873", "0.7705644", "0.7624229", "0.7508607", "0.75009483", "0.7357827", "0.7357827", "0.7284279", "0.728006", "0.72315556", "0.7169579", "0.71647424", "0.7146516", "0.7140076", "0.706935", "0.70406824", "0.7011473", ...
0.7028541
20
Convert an angle in radians into a quaternion _message_.
def c0Qx(YylR): return R5H8(*ZylS.transformations.quaternion_from_euler(0, 0, YylR))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0Qx(YylR):\n return R5H8(*ZylS.transformations.quaternion_from_euler(0, 0, YylR))", "def tguD(YylR, jDK_):\n slpS = oyIN.zeros((4,), dtype=oyIN.float64)\n slpS[:3] = jDK_[:3]\n t2JV = u5Ow(slpS)\n if t2JV > BuE3:\n slpS *= epAf.sin(YylR / 2.0) / t2JV\n slpS[3] = epAf.cos(YylR / 2.0)...
[ "0.7138181", "0.665116", "0.6637239", "0.6614729", "0.65672547", "0.6533414", "0.64876205", "0.6469057", "0.6448456", "0.6366277", "0.63223994", "0.6279582", "0.62578243", "0.6245924", "0.6225703", "0.6223511", "0.6219438", "0.61922276", "0.61775625", "0.61731964", "0.6159743...
0.70809126
1
Property to get SQLAlchemy model for account of this cryptoasset.
def tEqW(YKHO): return YKHO.coin_description.Account
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tHSi(YKHO):\n return YKHO._lazy_initialize_class_ref('_Account', YKHO.account_model_name)", "def vpGZ(YKHO):\n if YKHO.model.used_datastore != 'database':\n UzPC = YKHO.registry[AGdu]\n return UzPC.storage.write.get_by_uuid(str(YKHO.uuid))\n return YKHO.model", "def iut1(YKHO):\n ...
[ "0.6773617", "0.6768652", "0.6669541", "0.6572802", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6527488", "0.6512259", "...
0.75556546
0
Property to get SQLAlchemy model for account of this cryptoasset.
def Ob5P(YKHO): return YKHO.coin_description.Wallet
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tEqW(YKHO):\n return YKHO.coin_description.Account", "def tHSi(YKHO):\n return YKHO._lazy_initialize_class_ref('_Account', YKHO.account_model_name)", "def vpGZ(YKHO):\n if YKHO.model.used_datastore != 'database':\n UzPC = YKHO.registry[AGdu]\n return UzPC.storage.write.get_by_uuid(st...
[ "0.7557884", "0.67743695", "0.6768652", "0.6669473", "0.65725124", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", ...
0.6074524
59
Property to get SQLAlchemy model for account of this cryptoasset.
def xI5d(YKHO): return YKHO.coin_description.NetworkTransaction
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tEqW(YKHO):\n return YKHO.coin_description.Account", "def tHSi(YKHO):\n return YKHO._lazy_initialize_class_ref('_Account', YKHO.account_model_name)", "def vpGZ(YKHO):\n if YKHO.model.used_datastore != 'database':\n UzPC = YKHO.registry[AGdu]\n return UzPC.storage.write.get_by_uuid(st...
[ "0.7557884", "0.67743695", "0.6768652", "0.6669473", "0.65725124", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", "0.65270233", ...
0.0
-1
Sets the workspace_id of this DocumentsShareDocumentBody.
def NPt0(YKHO, NPt0): YKHO._workspace_id = NPt0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mu9H(YKHO, mu9H):\n YKHO._workspace_user_id = mu9H", "def HUs2(YKHO, HUs2):\n YKHO._workspace = HUs2", "def CyZZ(YKHO, sI9s):\n YKHO.current_workspace = sI9s\n YKHO.current_remote_workspaces = set()\n YKHO.workspaces[sI9s].make_writeable()", "def vSUp(YKHO, vSUp):\n YKHO._workspace_name...
[ "0.64550674", "0.6128187", "0.5981407", "0.59678537", "0.5948834", "0.56521755", "0.5651557", "0.5651557", "0.5651557", "0.5651557", "0.5651557", "0.56347305", "0.54166156", "0.54166156", "0.54166156", "0.54166156", "0.54166156", "0.5338201", "0.5236613", "0.5230608", "0.5216...
0.7375985
0
Sets the document_id of this DocumentsShareDocumentBody.
def yZn6(YKHO, yZn6): YKHO._document_id = yZn6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZn6(YKHO, yZn6: str):\n if yZn6 is None:\n raise ValueError('Invalid value for `document_id`, must not be `None`')\n YKHO._document_id = yZn6", "def yZn6(YKHO, yZn6):\n if YKHO.local_vars_configuration.client_side_validation and yZn6 is None:\n raise ValueError('Invalid value for `doc...
[ "0.736528", "0.72352964", "0.7195195", "0.70976025", "0.6701309", "0.65158916", "0.64403224", "0.6427851", "0.626891", "0.6213512", "0.6162354", "0.6162354", "0.59945065", "0.5928776", "0.58975005", "0.58102185", "0.5769226", "0.57502675", "0.57255125", "0.5685198", "0.565392...
0.7925757
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Given the cdb path to a file located in a cdb, returns the path to a file with the cdb alias replaced by the cdb location. If `cdb_filepath` does not use cdb notation, returns the full filepath (convertes a relative filepath to a full filepath). Note `cdb_filepath` is not case sensitive.
def NVxF(jMAm): kUBT = ZbWC.search('^<.+>', jMAm) if kUBT is None: zY6y = jMAm else: TF2D = kUBT.group(0).replace('<', '').replace('>', '') ODKN = AQQD(Hy7s.environ['ADRILL_USER_CFG'], Hy7s.environ['ADRILL_SHARED_CFG']) hIJp = None for mWFP, hksT in ODKN.items(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oNhS(zY6y):\n zY6y = fiSO.utilities.convert_path(zY6y)\n kUBT = ZbWC.search('^<.+>', zY6y)\n if kUBT is not None:\n jMAm = zY6y\n else:\n ODKN = AQQD(Hy7s.environ['ADRILL_USER_CFG'], Hy7s.environ['ADRILL_SHARED_CFG'])\n hIJp = None\n for mWFP, hksT in ODKN.items():\n ...
[ "0.7881529", "0.59691364", "0.5802042", "0.5634147", "0.56190526", "0.5592047", "0.5536049", "0.54810435", "0.53841347", "0.53486705", "0.5202396", "0.5189438", "0.5145372", "0.5006648", "0.5002392", "0.5002392", "0.49815226", "0.49520454", "0.49391586", "0.4931725", "0.49242...
0.7971207
0
Checks if a filepath is absolute. Note
def juj8(Ux0P): if not isinstance(Ux0P, str): kmFp = False elif Ux0P != NVxF(Ux0P): kmFp = True elif Hy7s.path.isabs(Ux0P): kmFp = True else: kmFp = False return kmFp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def t_gb(pmON: str) -> bool:\n pass", "def Esl9(Sd0C):\n return Hy7s.path.isabs(Sd0C) and Hy7s.path.isfile(Sd0C)", "def oIrI(YKHO, pmON):\n return Hy7s.path.isabs(pmON)", "def OI4z(YKHO):\n return Hy7s.path.isabs(YKHO.path)", "def j5yz(Emd4, uRP3: String) -> xpzE:\n l7bS.trace('>>')\n Aof...
[ "0.8483583", "0.8336801", "0.8026682", "0.79322463", "0.76963043", "0.75590295", "0.7528206", "0.7480093", "0.7465026", "0.7419305", "0.7367883", "0.73331034", "0.7268526", "0.7260098", "0.7242066", "0.7213949", "0.719954", "0.70696515", "0.706562", "0.7062518", "0.7012141", ...
0.83237785
2
Gets the motor output torque given a motor rpm and flow rate.
def WsEX(YKHO, uZQJ, _uqo, UJFh=1): N_pa = YKHO.nor_min_rpm_a * UJFh MjLo = YKHO.nor_min_rpm_b * UJFh DMKE = YKHO.nor_max_rpm_a * UJFh YLQZ = YKHO.nor_max_rpm_b * UJFh bchO = YKHO.max_torque * UJFh rC9g = YKHO.stall_torque * UJFh blJo = oyIN.polyval([N_pa, MjLo], _uqo) * UJFh Qzmw = oyIN...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _eR5(YKHO, _uqo):\n blJo = oyIN.polyval([YKHO.nor_min_rpm_a, YKHO.nor_min_rpm_b], _uqo)\n Qzmw = oyIN.polyval([YKHO.nor_max_rpm_a, YKHO.nor_max_rpm_b], _uqo)\n Da6y, Amyc, RXNi, TPQi = _eR5(YKHO.stall_torque, YKHO.max_torque, Qzmw, blJo)\n return (blJo, Qzmw, Da6y, Amyc, RXNi, TPQi)", "def WsEX(Y...
[ "0.639112", "0.63471526", "0.5702778", "0.5698947", "0.56834805", "0.5626742", "0.55874664", "0.55199677", "0.5489682", "0.5446154", "0.54014623", "0.53505677", "0.533161", "0.5328487", "0.5301449", "0.5294405", "0.5275156", "0.52663296", "0.51976955", "0.51881665", "0.515487...
0.67787987
0
Ensure we can create a new question object.
def RwUd(YKHO): qZuN.objects.create(category=bvme.NAME) bD7m = gxEw('question-list') nPrm = {'question': bvme.NAME, 'reference_answer': bvme.NAME, 'categories': [{'category': bvme.NAME}]} geh0 = YKHO.client.post(bD7m, nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def it6l(YKHO):\n pass", "def WULY(YKHO):\n YKHO.load_fixture('tests/fixtures/questions.json', Y4Gy)\n _jzK = {'question': '', 'answer': 'Marie Curie', 'category': 1, 'difficulty': 1}\n Ylbp = YKHO.client().post('/questions', json=_jzK)\n nPrm = qQXR.loads(Ylbp.get_data(as_text=True))\n YKHO.as...
[ "0.72716886", "0.7027025", "0.69399995", "0.6802021", "0.67693114", "0.6746379", "0.67116773", "0.6708238", "0.6687372", "0.66457355", "0.6632355", "0.66070247", "0.6605918", "0.6590037", "0.6585039", "0.6473572", "0.6425662", "0.64207155", "0.639286", "0.63766307", "0.637277...
0.63815904
19
Ensure we can create a new category.
def XnPT(YKHO): bD7m = gxEw('category-list') nPrm = {'category': fZL_.NAME} geh0 = YKHO.client.post(bD7m, nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_201_CREATED) YKHO.assertEqual(qZuN.objects.count(), 17) YKHO.assertEqual(qZuN.objects.get(category=fZL_.NAME).category, fZL_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def onDm(YKHO):\n Ylbp = YKHO.client().post('/categories/', headers={'x-access-token': YKHO.access_token}, data=YKHO.categories)\n YKHO.assertEqual(Ylbp.status_code, 409)\n YKHO.assertIn('Category exists!', str(Ylbp.data))", "def XnPT(YKHO):\n pass", "def xaeo(YKHO):\n NT__ = YKHO.authenticateAd...
[ "0.8019704", "0.79125595", "0.7696181", "0.7687288", "0.76684487", "0.7656093", "0.7521517", "0.75051445", "0.7491358", "0.73795855", "0.7269626", "0.72441757", "0.7240821", "0.72253424", "0.71919805", "0.7184729", "0.71358603", "0.7126935", "0.71092224", "0.71021545", "0.709...
0.7239764
13
Ensure we can not create a new category object without authentication.
def cyr9(YKHO): bD7m = gxEw('category-list') nPrm = {'category': fZL_.NAME} YKHO.client.logout() geh0 = YKHO.client.post(bD7m, nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_403_FORBIDDEN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uP0H(YKHO, x0hE, JawI, pocn):\n VKpQ = qQXR.dumps(F7Pg)\n geh0 = x0hE.post(f'{_RsZ}/categories', data=VKpQ, headers=pocn)\n Ol8d = 'Permission denied. You are not authorized to perform this action'\n assert geh0.status_code == 403\n assert geh0.json['status'] == 'error'\n assert geh0.json['me...
[ "0.7815552", "0.7692021", "0.75346833", "0.74347264", "0.74291515", "0.73235285", "0.73123384", "0.73105055", "0.71312153", "0.711436", "0.70972985", "0.7030277", "0.7029435", "0.7016377", "0.68374544", "0.6816759", "0.67679477", "0.66926885", "0.6689231", "0.6655175", "0.664...
0.7981544
0
Ensure we can not create a new category object with required data missing.
def Uqo6(YKHO): bD7m = gxEw('category-list') nPrm = {} geh0 = YKHO.client.post(bD7m, nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yNWV(YKHO):\n pB3N = {'name': ''}\n Ylbp = YKHO.client.post(AQX_, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def xaeo(YKHO):\n NT__ = YKHO.authenticateAdmin()\n geh0 = YKHO.client.post('/api/v2/category', data=qQXR.dumps(aJA7), headers={'Content-Type': 'applicatio...
[ "0.77243036", "0.7659693", "0.74701715", "0.7424145", "0.73997295", "0.72090167", "0.7151396", "0.7149664", "0.7133005", "0.70642376", "0.7044609", "0.69273454", "0.6896674", "0.68695927", "0.6869417", "0.686476", "0.68552834", "0.6829034", "0.68246585", "0.68131787", "0.6798...
0.7795576
0
Ensure we can not create a new screen object with required data missing.
def bmpP(YKHO): bD7m = gxEw('screen-list') nPrm = {} geh0 = YKHO.client.post(bD7m, nPrm, format='json') YKHO.assertEqual(geh0.status_code, jGRS.HTTP_400_BAD_REQUEST) YKHO.assertEqual(lXK9.objects.count(), 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lVdv(J20S):\n DQlA = btGw(J20S)\n with cR0t(AttributeError) as tTpl:\n DQlA.create_screen({})", "def lWat(YKHO):\n bD7m = gxEw('screen-list')\n nPrm = {'name': PskL.NAME}\n YKHO.client.logout()\n geh0 = YKHO.client.post(bD7m, nPrm, format='json')\n YKHO.assertEqual(geh0.status_cod...
[ "0.7407583", "0.7010027", "0.6731104", "0.66236204", "0.6108426", "0.58485115", "0.58401114", "0.5832771", "0.5815313", "0.5794919", "0.5787907", "0.5780494", "0.57771236", "0.57676953", "0.57610613", "0.5758137", "0.5758137", "0.5758137", "0.57247907", "0.5697775", "0.568991...
0.74993855
0
Return the state of the agent.
def QTBn(YKHO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c0mt(YKHO):\n return YKHO.agent.get_state()", "def OCvi(YKHO, d6pt):\n return YKHO.data.agent_states[d6pt]", "def OCvi(YKHO, PcW4=''):\n return YKHO._fsm.get_current_state()", "def Dw4s(YKHO):\n return YKHO.data.agent_states[0].copy()", "def QTBn(YKHO):\n return YKHO.proc.driver_get_stat...
[ "0.7885827", "0.7636647", "0.76017123", "0.7398831", "0.7370988", "0.73679113", "0.7339292", "0.73307097", "0.73307097", "0.73307097", "0.73307097", "0.73307097", "0.73307097", "0.73307097", "0.7289589", "0.7285011", "0.72597575", "0.72597575", "0.7258634", "0.725402", "0.725...
0.0
-1
Repackage the hidden state of the LSTM.
def IOWm(YKHO, jaHd=False): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YmeV(YKHO):\n YKHO.hidden = (ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size), ht2j.zeros(1, YKHO.batch_size, YKHO.hidden_size))", "def IOWm(MKlR):\n if qIxc.algo == 'lstm':\n if isinstance(MKlR, ht2j.Tensor):\n return MKlR.detach()\n else:\n return tuple((IOWm(Ty9i)...
[ "0.67356634", "0.66068363", "0.640197", "0.640197", "0.61569995", "0.6140642", "0.6102323", "0.61010385", "0.60854053", "0.6016043", "0.596244", "0.59249526", "0.58455014", "0.58393216", "0.5832203", "0.5812844", "0.5807105", "0.58058816", "0.57891035", "0.5771511", "0.576109...
0.5605732
58
Reset the episode so that it is identical.
def Egem(YKHO): return YKHO._episode.reset()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO, xgXB):\n raise NotImplementedError", "def Egem(YKHO, QTBn):\n YKHO.buff.reset_episode(QTBn)", "def SiRx(YKHO):\n if YKHO._seed is None:\n t3eI = YKHO.state.np_random\n YKHO.state = wHLO(items=YKHO.items)\n YKHO.state.np_random = t3eI\n else:\n YKHO._seed +...
[ "0.8664308", "0.8336871", "0.74983203", "0.7421048", "0.73779786", "0.7365295", "0.73619604", "0.7345868", "0.7334704", "0.7319353", "0.73136663", "0.730555", "0.72910494", "0.7288038", "0.7247624", "0.7244679", "0.72368866", "0.7220099", "0.72189164", "0.7166773", "0.7100444...
0.8612726
1
Returns a copy of weights of selected atoms.
def js1f(YKHO, se2i=True): if YKHO._weights is None: return None if YKHO._indices is None or not se2i: return YKHO._weights.copy() if YKHO._weights.ndim == 2: return YKHO._weights[YKHO._indices].copy() else: return YKHO._weights[:, YKHO._indices].copy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _mSQ(YKHO):\n return oyIN.copy(YKHO._weights)", "def wT46(YKHO):\n return [YRbF.get_weight() for YRbF in YKHO.synapses]", "def js1f(YKHO):\n return YKHO.weights", "def wT46(YKHO):\n return oyIN.concatenate([VTcd.flatten() for VTcd in YKHO.weights])", "def _mSQ(YKHO):\n return YKHO._weigh...
[ "0.6989561", "0.6702505", "0.6657015", "0.664647", "0.6606057", "0.6606057", "0.6586295", "0.6586295", "0.6568874", "0.6568874", "0.6559435", "0.65564346", "0.6520689", "0.6520112", "0.64848006", "0.64823014", "0.646457", "0.6457228", "0.645286", "0.64487463", "0.6441306", ...
0.74207294
0
Returns a copy of coordinate set(s) at given indices, which may be an integer, a list of integers or None. None returns all
def _JIU(YKHO, _0VL=None, se2i=True): jNOo = YKHO._getCoordsets(_0VL, se2i) return jth9(jNOo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xvIg(YKHO, _0VL):\n BdN0 = YKHO.empty_copy()\n if YKHO.coordinates is None:\n return BdN0\n if YKHO.singular:\n raise KeyError('Cannot retrieve indices for singular coordinates.')\n if isinstance(_0VL, oyIN.ndarray) and _0VL.shape == ():\n _0VL = int(_0VL)\n W0Eb = YKHO.coor...
[ "0.65869486", "0.6315304", "0.62675095", "0.61878216", "0.611397", "0.60391945", "0.60079587", "0.60075474", "0.6005223", "0.59854984", "0.59714717", "0.593615", "0.59303224", "0.58922124", "0.5840306", "0.5824419", "0.5815281", "0.5805917", "0.5789664", "0.57831943", "0.5780...
0.7551147
0
Returns root mean square deviations (RMSDs) for selected atoms.
def qZFB(YKHO, Zu14=False): if YKHO._confs is None or YKHO._coords is None: return None _0VL = YKHO._indices if _0VL is None: _0VL = HfiF(YKHO._confs.shape[1]) _mSQ = YKHO._weights[_0VL] if YKHO._weights is not None else None if Zu14: GkxN = YKHO.numConfs() gkmH = VNq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fHjV(e3AR):\n Aofo = 0.0\n exwG = 0\n for XUbj in e3AR:\n if XUbj.mean:\n Aofo += XUbj.mean.variance\n exwG += 1\n return (epAf.sqrt(Aofo / exwG), exwG)", "def H1gf(qfvQ):\n ObrY = len(qfvQ)\n tKhq = []\n for YRbF in range(ObrY):\n v2qy = []\n f...
[ "0.73117715", "0.6542192", "0.65409786", "0.62546414", "0.62473613", "0.6198056", "0.61569864", "0.6149759", "0.61138487", "0.6094184", "0.6089777", "0.60519135", "0.6051402", "0.60320157", "0.6017115", "0.6007265", "0.59667337", "0.59421504", "0.59418446", "0.5929287", "0.59...
0.0
-1
Returns data labels. For ``which='user'``, return only labels of user provided data.
def YCJb(YKHO, Nygx=None): if str(Nygx).startswith('u'): Crrw = [H5ew for H5ew in YKHO._data or {}] else: Crrw = list(YKHO._data or []) Crrw.sort() return Crrw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O2YR(YKHO) -> qe4Y.Output[h8nf[GySg[str, str]]]:\n return qe4Y.get(YKHO, 'user_labels')", "def O2YR(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'user_labels')", "def O2YR(YKHO) -> h8nf[qe4Y.Input[GySg[str, qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'user_labels'...
[ "0.6286809", "0.6195047", "0.6195047", "0.6195047", "0.6117351", "0.590819", "0.5897175", "0.5700251", "0.5574108", "0.5326465", "0.52519655", "0.52519655", "0.52102345", "0.5198287", "0.5194199", "0.5186876", "0.51772684", "0.5140687", "0.5140687", "0.5133101", "0.51179844",...
0.7952698
0
Returns type of the data (i.e. ``data.dtype``) associated with label, or None label is not used.
def AGOU(YKHO, UXqs): try: return YKHO._data[UXqs].dtype except KeyError: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _xWl(Emd4, UXqs):\n yRnw, bGrB, bGrB = UXqs.partition(Emd4._LABEL_SEPARATOR)\n if not grVw.validate(yRnw):\n return None\n return yRnw", "def u_my(YKHO):\n return YKHO.__label_type", "def qcTt(YKHO):\n return None", "def qh2M(YKHO):\n if YKHO.input_binding_info[0][1].GetDataType(...
[ "0.6747017", "0.6613532", "0.6475119", "0.64746743", "0.6371723", "0.63406116", "0.63249993", "0.6309891", "0.6276231", "0.6257581", "0.6255662", "0.62398934", "0.61694515", "0.60980326", "0.60911167", "0.6090299", "0.60763824", "0.6076166", "0.60375816", "0.6033955", "0.6032...
0.88030416
0
If we're snoozing a set number of hours, this method will calculate that and update the `deliver_on` field appropriately. Returns True if the field was updated.
def pO_q(YKHO, Wave): llHi = False if Wave is not None and isinstance(Wave, list) and (len(Wave) > 0): Wave = Wave[0] if Wave is not None and isinstance(Wave, str): try: Wave = int(Wave) except ValueError: Wave = None if Wave: YKHO.deliver_on = rIA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A4vm(YKHO, JRYC):\n if rIAI.is_naive(JRYC):\n if YKHO.user and hasattr(YKHO.user, 'userprofile'):\n yl4j = FXGE.timezone(YKHO.user.userprofile.timezone)\n JRYC = rIAI.make_aware(JRYC, timezone=yl4j)\n JRYC = JRYC.astimezone(rIAI.utc)\n YKHO.deliver_on = JRYC\n retur...
[ "0.6753397", "0.6241585", "0.60833883", "0.59107816", "0.57538295", "0.5706939", "0.56918335", "0.56057525", "0.5601542", "0.5538094", "0.55224353", "0.54945624", "0.5485331", "0.5484627", "0.54666567", "0.5464211", "0.5434044", "0.5432456", "0.5423059", "0.5410179", "0.54013...
0.72477746
0