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
Initializes a Map with the given number of buckets.
def BdN0(UWeM=256): CRjn = [] for YRbF in range(0, UWeM): CRjn.append([]) return CRjn
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BdN0(UWeM=256):\n CRjn = []\n for YRbF in range(0, UWeM):\n CRjn.append([])\n return CRjn", "def BdN0(UWeM=256):\n CRjn = []\n for YRbF in range(0, UWeM):\n CRjn.append([])\n return CRjn", "def BdN0(UWeM=256):\n CRjn = []\n for YRbF in range(0, UWeM):\n CRjn.app...
[ "0.8123902", "0.8037134", "0.7948647", "0.77377707", "0.75861984", "0.7540692", "0.73276454", "0.7285955", "0.7254819", "0.7193163", "0.7114558", "0.70457286", "0.70296127", "0.70252514", "0.6904887", "0.68928665", "0.6885416", "0.6830667", "0.6786545", "0.6768877", "0.676780...
0.8036097
2
Return the text contained in the file filename as a string.
def gFHi(Ux0P): l5Ny = open(Ux0P, encoding='utf8').read() return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WA56(Ux0P):\n try:\n nUeQ = open(Ux0P, 'r')\n yKwe = nUeQ.read()\n nUeQ.close()\n return yKwe\n except IOError:\n (print >> HwRy.stderr, 'The file ' + Ux0P + ' does not exist, an empty string will be returned.')\n return ''", "def gFHi(Ux0P: Path) -> str:\n ...
[ "0.8451624", "0.842946", "0.82447755", "0.8219253", "0.8116726", "0.80830926", "0.8019316", "0.78965586", "0.7879648", "0.7733265", "0.7691334", "0.76360893", "0.7611345", "0.7589496", "0.7586893", "0.7511192", "0.750905", "0.7484085", "0.7474244", "0.747098", "0.746922", "...
0.8117552
4
Given a list of list of strings representing sentences, return a dictionary with semantic descriptors of each word. The semantic descriptor represents how many times the subject word and the other word appear in the same sentence as each other.
def u9Zq(Rhv4): BOxA = {} Rhv4 = [set(KCHu) for KCHu in Rhv4] for yAmx in Rhv4: for GIN8 in yAmx: if GIN8 not in BOxA: BOxA[GIN8] = {} for GIN8 in BOxA: for yAmx in Rhv4: if GIN8 in yAmx: for zmME in yAmx: if zmM...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S21x(jWe2):\n Csk6 = oRi_(int)\n for aWuw in jWe2:\n for GIN8 in aWuw:\n Csk6[GIN8] += 1\n return Csk6", "def tp1m(KCHu, IChv):\n IChv = [yzQ0.lower() for yzQ0 in IChv]\n BWz1 = oRi_(int)\n for GIN8 in IChv:\n YauW = KCHu.get_cats(GIN8)\n for ACia in YauW:\n ...
[ "0.6756731", "0.6504351", "0.6410662", "0.6399182", "0.637365", "0.6364855", "0.627801", "0.6271309", "0.62239873", "0.6203432", "0.62022895", "0.6200935", "0.61781996", "0.6177893", "0.61750984", "0.615764", "0.6154703", "0.61507875", "0.6128642", "0.6114907", "0.6114907", ...
0.8172929
0
Return the percentage that most_similar_word guessed the most similar word correctly, based on the semantic descriptors
def Vph2(Ux0P, Mt13): vqOM = 0 gXXc = 0 l5Ny = open(Ux0P, encoding='utf8') for zFiD in l5Ny: cntZ, CsFy, pGCm, UJP8 = zFiD.split() mrPm = [pGCm, UJP8] if Y40o(cntZ, mrPm, Mt13) == CsFy: vqOM += 1 gXXc += 1 else: vqOM += 1 return gXX...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y40o(GIN8, MJy5):\n qHX0 = -1.0\n gs5V = ''\n for zo26 in MJy5:\n sg14 = oIwh.normalizeCosineSim(oIwh.cn_word2vec_model.similarity(GIN8, zo26))\n if sg14 > qHX0:\n qHX0 = sg14\n gs5V = zo26\n return (gs5V, qHX0)", "def Y40o(GIN8, MJy5):\n qHX0 = -1.0\n gs...
[ "0.68306184", "0.67801803", "0.66922355", "0.6673209", "0.66183776", "0.6586106", "0.646429", "0.64306587", "0.6402418", "0.6316347", "0.6294037", "0.624738", "0.6244407", "0.6238228", "0.62324226", "0.6223358", "0.6222237", "0.62198496", "0.6189114", "0.61888903", "0.6182120...
0.6930628
0
Inserts a word into the trie.
def JPHp(YKHO, GIN8): Q6kx = YKHO.__root for d6pt, hcXw in enumerate(GIN8): if hcXw not in Q6kx.sons: Q6kx.sons[hcXw] = ep_x.init_with_val(hcXw) Q6kx = Q6kx.sons[hcXw] Q6kx.has_word_finished = 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.893544", "0.8875985", "0.8875024", "0.8866519", "0.8845773", "0.8835247", "0.882958", "0.88241297", "0.8821241", "0.8802611", "0.87971294", "0.87918365", "0.87863857", "0.8786124", "0.8785566", "0.8780501", "0.87798244", "0.87761164", "0.8767289", "0.8757252", "0.87569755"...
0.8771126
18
Returns if the word is in the trie.
def TgwQ(YKHO, GIN8): Q6kx = YKHO.__root for hcXw in GIN8: if hcXw not in Q6kx.sons: return False Q6kx = Q6kx.sons[hcXw] return Q6kx.has_word_finished
{ "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.82730263", "0.8269949", "0.8265362", "0.8215955", "0.8191048", "0.81751376", "0.8170583", "0.8132793", "0.7982098", "0.7974155", "0.7966748", "0.79547614", "0.7881724", "0.78772503", "0.78665155", "0.7835434", "0.7820085", "0.7813922", "0.78119844", "0.7795143", "0.7790677...
0.7617031
38
Returns if there is any word in the trie that starts with the given prefix.
def BYxH(YKHO, y0cW): Q6kx = YKHO.__root for hcXw in y0cW: if hcXw not in Q6kx.sons: return False Q6kx = Q6kx.sons[hcXw] 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.864258", "0.84560806", "0.8440592", "0.8416151", "0.8415877", "0.8407696", "0.8382329", "0.8370536", "0.8336619", "0.8327907", "0.83272654", "0.82404006", "0.822987", "0.81734085", "0.81607133", "0.8151848", "0.81477106", "0.8115942", "0.8011951", "0.79841673", "0.79841673...
0.78549224
38
This functin applies the forward pass of the network, it starts with the input X, and pass it the the first layer. Then, each layer calculates its output and passes it as input to the next layer. At the end we have the last layer followed by softmax function.
def Yorg(EcVT, Zxma, N93T): yvT9 = EcVT for gEmA in Zxma: yvT9 = gEmA.forward(yvT9) DsfD = N93T.forward(yvT9) return DsfD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, WKvO):\n bVvo = WKvO\n for YRbF in range(YKHO.n_h_layers):\n z8o0 = YKHO.linear_layers[YRbF]\n nIRg = z8o0.forward(bVvo)\n QZir = YKHO.relu_layers[YRbF]\n VGzn = QZir.forward(nIRg)\n bVvo = VGzn\n z8o0 = YKHO.linear_layers[YKHO.n_h_layers]\n nIRg = z8o0...
[ "0.79912424", "0.78727734", "0.7869081", "0.7859433", "0.78534025", "0.7836301", "0.7830188", "0.7808601", "0.77804387", "0.7777735", "0.77628005", "0.7752474", "0.7717277", "0.7714606", "0.7700294", "0.7699151", "0.7698924", "0.7688195", "0.7673977", "0.7666656", "0.76654476...
0.82364935
0
This function computed the Backward pass and updates weights, biases, etc.
def fIbT(HeEO, Zxma, sqQC, LiJn, N93T, Tuqy='train'): RUID, A4K_ = N93T.backward_w(LiJn, HeEO) mnCT = N93T.backward_x(LiJn, HeEO) sqQC.step(N93T, RUID, A4K_) sqQC.init_V(mnCT) if Tuqy == 'grad_ver': vtNT = [(RUID, A4K_)] else: vtNT = None for p5QO in Zxma[::-1]: ElTK,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO):\n YKHO.aanpassingWeights = []\n YKHO.calculate_deltaWeights()\n for YRbF in range(len(YKHO.aanpassingWeights)):\n YKHO.weights[YRbF] -= YKHO.aanpassingWeights[YRbF]\n YKHO.bias -= YKHO.calculate_deltaBias()", "def OV4I(YKHO):\n LVtU = YKHO.ao - YKHO.y\n BGrb = LVtU.reshap...
[ "0.73674923", "0.7243954", "0.71617866", "0.7141321", "0.7070205", "0.70660543", "0.7029137", "0.70271957", "0.6949668", "0.69200397", "0.685919", "0.68076426", "0.6798617", "0.6795244", "0.6770567", "0.67405665", "0.669307", "0.66824365", "0.6677295", "0.6670274", "0.6660358...
0.0
-1
Returns longitude of nodes in radians
def EhIg(YKHO, r845, YRbF): return YKHO.res_rad * oyIN.array(YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def az78(YKHO):\n return float(YKHO.line2[17:25]) * YKHO._rad_deg", "def fopC(YKHO):\n return YKHO['lon']", "def fopC(YKHO) -> float:\n return float(YKHO._mp_dict['lon'])", "def fopC(YKHO):\n FDPT = YKHO._lat_lon[1]\n return FDPT", "def fopC(YKHO):\n return YKHO.excl_h5['longitude']", "...
[ "0.796355", "0.75176233", "0.748078", "0.7437142", "0.7431801", "0.73624694", "0.73602486", "0.7351412", "0.73349583", "0.73349583", "0.73349583", "0.73349583", "0.73349583", "0.7302329", "0.72836006", "0.72739196", "0.7265741", "0.72467095", "0.72456497", "0.72456497", "0.72...
0.0
-1
Returns latitude of nodes in radians
def rVnq(YKHO, r845, YRbF): return YKHO.res_rad * (oyIN.array(r845) - k0_b * [(r845 - 1) / 2.0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _UuI(YKHO):\n QnmL = YKHO._lat_lon[0]\n return QnmL", "def HwpI(YKHO, QnmL):\n if gyro(QnmL):\n QnmL = oyIN.array(QnmL, dtype=oyIN.float64)\n return oyIN.rad2deg(oyIN.arctan(oyIN.tan(oyIN.deg2rad(QnmL)) / (1 - YKHO.geod.e ** 2)))", "def _UuI(YKHO):\n return YKHO['lat']", "def QnmL(Y...
[ "0.719345", "0.70885384", "0.7014846", "0.6988907", "0.6933011", "0.69040513", "0.6903071", "0.68820095", "0.68738765", "0.68510646", "0.6829998", "0.6829998", "0.682928", "0.6822203", "0.6813244", "0.68085307", "0.6793293", "0.6792837", "0.67771953", "0.6760431", "0.6737982"...
0.0
-1
Returns longitude of nodes in degrees
def FDPT(YKHO, r845, YRbF): return h728 * YKHO.lam(r845, YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def az78(YKHO):\n return float(YKHO.line2[17:25]) * YKHO._rad_deg", "def fopC(YKHO):\n return YKHO.excl_h5['longitude']", "def fopC(YKHO) -> float:\n return float(YKHO._mp_dict['lon'])", "def fopC(YKHO):\n return YKHO['lon']", "def fopC(YKHO):\n FDPT = YKHO._lat_lon[1]\n return FDPT", "...
[ "0.80455667", "0.74089396", "0.7358055", "0.73245955", "0.72861415", "0.7245408", "0.7226545", "0.7215897", "0.72053164", "0.72053164", "0.72053164", "0.72053164", "0.72053164", "0.7173724", "0.7168093", "0.7167433", "0.71178997", "0.71178997", "0.71178997", "0.7098927", "0.7...
0.62967044
76
Returns latitude of nodes in degrees
def QnmL(YKHO, r845, YRbF): return h728 * YKHO.phi(r845, YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _UuI(YKHO):\n QnmL = YKHO._lat_lon[0]\n return QnmL", "def HwpI(YKHO, QnmL):\n if gyro(QnmL):\n QnmL = oyIN.array(QnmL, dtype=oyIN.float64)\n return oyIN.rad2deg(oyIN.arctan(oyIN.tan(oyIN.deg2rad(QnmL)) / (1 - YKHO.geod.e ** 2)))", "def _UuI(dQgj):\n return dQgj[0]", "def _UuI(YKHO)...
[ "0.70817554", "0.6924783", "0.6905816", "0.6898283", "0.6868402", "0.6858139", "0.68390214", "0.68118334", "0.67966914", "0.67880976", "0.678396", "0.6777337", "0.6768186", "0.6752759", "0.67413586", "0.6737137", "0.67369777", "0.6733984", "0.6728957", "0.6728957", "0.6728957...
0.6298928
65
Change npc back to string for json serialization.
def xskn(YKHO): for YRbF in range(0, len(YKHO.npc)): YKHO.npc[YRbF] = YKHO.npc[YRbF].name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sayk(YKHO):\n return str(YKHO)", "def zAg0(YKHO):\n return YKHO.AsJsonString()", "def zAg0(YKHO):\n return YKHO.AsJsonString()", "def zAg0(YKHO):\n return qQXR.dumps(YKHO.jsonData)", "def zAg0(YKHO) -> str:\n return YKHO.to_json()", "def zAg0(YKHO):\n return qQXR.dumps(YKHO.as_dict(...
[ "0.63472867", "0.63137376", "0.63137376", "0.6179331", "0.6143871", "0.6124123", "0.6124123", "0.60905474", "0.60656834", "0.6023514", "0.601638", "0.6007051", "0.5974524", "0.5961895", "0.59617746", "0.59387934", "0.5928109", "0.5923952", "0.59056056", "0.58964777", "0.58964...
0.76892775
0
Get the start time in isoformat
def IYOR(): return (qcWV.datetime.utcnow() - qcWV.timedelta(seconds=15)).isoformat() + 'Z'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VUww(YKHO) -> str:\n return YKHO.start_time().replace(microsecond=0).isoformat(' ')", "def OG5f(YKHO):\n return YKHO.start_datetime.get_data_file_time_value_isostr()", "def cKAQ(YKHO):\n if YKHO.__start_time == 0:\n return None\n return qcWV.fromtimestamp(float(YKHO.__start_time) / 1000)...
[ "0.87520397", "0.81751", "0.81027454", "0.7565162", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", "0.74461687", ...
0.0
-1
Convert from scaled surf xyz (in km) to lat lon
def JTWe(WKvO, LVAh): y5bX = zip(WKvO, LVAh) ntEX = (239200, 5117300) uVtf = PkKV.Proj(init='EPSG:32610') xhtt = [(ntEX[0] + Xf84[0] * 1000, ntEX[1] + Xf84[1] * 1000) for Xf84 in y5bX] IJ9x, tj50 = zip(*xhtt) FDPT, QnmL = uVtf(IJ9x, tj50, inverse=True) return (FDPT, QnmL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iqLY(WKvO, LVAh):\n WKvO *= 10\n LVAh *= 10\n y5bX = zip(WKvO, LVAh)\n ntEX = (598420.3842806489, 4912272.275375654)\n uVtf = PkKV.Proj(init='EPSG:26713')\n xhtt = [(ntEX[0] + Xf84[0], ntEX[1] + Xf84[1]) for Xf84 in y5bX]\n IJ9x, tj50 = zip(*xhtt)\n FDPT, QnmL = uVtf(IJ9x, tj50, inverse...
[ "0.7143045", "0.6951077", "0.68446237", "0.6734445", "0.6662677", "0.66602737", "0.6582133", "0.65797096", "0.6555034", "0.65470946", "0.65385264", "0.6532744", "0.652934", "0.6506242", "0.6446525", "0.64444506", "0.6433932", "0.64219165", "0.64219165", "0.63972044", "0.63600...
0.6467502
14
Convert from scaled surf xyz (in km) to lat lon
def iqLY(WKvO, LVAh): WKvO *= 10 LVAh *= 10 y5bX = zip(WKvO, LVAh) ntEX = (598420.3842806489, 4912272.275375654) uVtf = PkKV.Proj(init='EPSG:26713') xhtt = [(ntEX[0] + Xf84[0], ntEX[1] + Xf84[1]) for Xf84 in y5bX] IJ9x, tj50 = zip(*xhtt) FDPT, QnmL = uVtf(IJ9x, tj50, inverse=True) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z7cw(WKvO, LVAh, epBp):\n r1VO = oyIN.sqrt(WKvO * WKvO + LVAh * LVAh + epBp * epBp)\n QnmL = oyIN.degrees(oyIN.arcsin(epBp / r1VO))\n FDPT = oyIN.degrees(oyIN.arctan2(LVAh, WKvO))\n return (QnmL, FDPT)", "def TssP(FDPT, QnmL, aNZO):\n return aNZO.projection.transform_point(FDPT, QnmL, XEzR)", ...
[ "0.695287", "0.68461233", "0.6735906", "0.66623193", "0.6661346", "0.6582655", "0.6581688", "0.6554504", "0.6546259", "0.65392405", "0.6533354", "0.6530952", "0.650708", "0.64684194", "0.6446391", "0.64462775", "0.64337164", "0.64214426", "0.64214426", "0.6398405", "0.6360637...
0.71448606
0
Convert from scaled surf xyz (in km) to lat lon
def B_PH(WKvO, LVAh): WKvO *= 10 LVAh *= 10 y5bX = zip(WKvO, LVAh) ntEX = (2579255.0, 1247501.0) uVtf = PkKV.Proj(init='EPSG:2056') xhtt = [(ntEX[0] + Xf84[0], ntEX[1] + Xf84[1]) for Xf84 in y5bX] IJ9x, tj50 = zip(*xhtt) FDPT, QnmL = uVtf(IJ9x, tj50, inverse=True) return (FDPT, QnmL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iqLY(WKvO, LVAh):\n WKvO *= 10\n LVAh *= 10\n y5bX = zip(WKvO, LVAh)\n ntEX = (598420.3842806489, 4912272.275375654)\n uVtf = PkKV.Proj(init='EPSG:26713')\n xhtt = [(ntEX[0] + Xf84[0], ntEX[1] + Xf84[1]) for Xf84 in y5bX]\n IJ9x, tj50 = zip(*xhtt)\n FDPT, QnmL = uVtf(IJ9x, tj50, inverse...
[ "0.7142558", "0.6949172", "0.6843507", "0.6661769", "0.66607374", "0.6581035", "0.6579007", "0.65545946", "0.6546102", "0.6535981", "0.65326166", "0.65279895", "0.6504227", "0.6466528", "0.6446242", "0.6442967", "0.6432513", "0.6421417", "0.6421417", "0.63957524", "0.635878",...
0.6733498
3
Convert from fsb xyz to lat lon
def PuE1(WKvO, LVAh): uVtf = PkKV.Proj(init='EPSG:2056') FDPT, QnmL = uVtf(WKvO, LVAh, inverse=True) return (FDPT, QnmL)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B_PH(WKvO, LVAh):\n WKvO *= 10\n LVAh *= 10\n y5bX = zip(WKvO, LVAh)\n ntEX = (2579255.0, 1247501.0)\n uVtf = PkKV.Proj(init='EPSG:2056')\n xhtt = [(ntEX[0] + Xf84[0], ntEX[1] + Xf84[1]) for Xf84 in y5bX]\n IJ9x, tj50 = zip(*xhtt)\n FDPT, QnmL = uVtf(IJ9x, tj50, inverse=True)\n retur...
[ "0.7511017", "0.6951967", "0.6810882", "0.6679177", "0.6587354", "0.65549237", "0.65372586", "0.65074116", "0.6501097", "0.6492483", "0.647946", "0.6476212", "0.6451285", "0.6449434", "0.6433445", "0.6417467", "0.6407235", "0.63597286", "0.63352466", "0.6334119", "0.62972265"...
0.695909
1
This method converts the location error of NLLoc given as the 3D error ellipsoid (two azimuths, two dips and three axis lengths) to a cartesian representation. We calculate the cartesian representation of each of the ellipsoids three eigenvectors and use the maximum of these vectors components on every axis.
def YViO(KmZ0, nDR6, SGl7, LFkc, LGkI, sHY4, vpUJ): epBp = SGl7 * oyIN.sin(oyIN.radians(nDR6)) M_DK = SGl7 * oyIN.cos(oyIN.radians(nDR6)) WKvO = M_DK * oyIN.sin(oyIN.radians(KmZ0)) LVAh = M_DK * oyIN.cos(oyIN.radians(KmZ0)) hQHm = oyIN.array([WKvO, LVAh, epBp]) epBp = sHY4 * oyIN.sin(oyIN.radian...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o7ZF(PrNh, fntl=KOKf, NkkI=False, TEPG=True):\n from numpy import sqrt, cos, sin, pi, arctan2 as vwZf\n jzdc = fntl['a']\n zlsc = fntl['invf']\n eHNT = 1.0 / zlsc\n Fg_i = jzdc * (1.0 - eHNT)\n tTpl = sqrt((jzdc ** 2.0 - Fg_i ** 2.0) / jzdc ** 2.0)\n cfQG = sqrt((jzdc ** 2.0 - Fg_i ** 2.0)...
[ "0.60326505", "0.5922986", "0.58706164", "0.5760195", "0.5665399", "0.56490487", "0.564421", "0.56384635", "0.5540578", "0.5525948", "0.55221695", "0.552103", "0.5519783", "0.5498803", "0.5491891", "0.54507965", "0.5445688", "0.54275215", "0.5414407", "0.54063296", "0.537959"...
0.6398722
0
Unload a LiteJet config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: yT1k = await ajET.config_entries.async_unload_platforms(bTKY, aprE) if yT1k: await ajET.data[Sugg].close() ajET.data.pop(Sugg) return yT1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n ajET.data[Sugg].pop(ExMO, None)\n return True", "async def async_unload_entry(ajET: HomeAssistantType, bTKY: ConfigEntry):\n nNXP = ajET.data[Sugg][bTKY.unique_id]\n await nNXP.async_unload()\n return await ajET.config_ent...
[ "0.6783501", "0.6779923", "0.6716855", "0.6701056", "0.6673198", "0.6668483", "0.6634419", "0.6586139", "0.65707", "0.65674585", "0.65650207", "0.6553129", "0.6532448", "0.65270126", "0.6503356", "0.6496488", "0.6495063", "0.64720607", "0.64352137", "0.6429297", "0.6401755", ...
0.0
-1
Form is invalid when duration and/or distance are negative.
def TFGF(YKHO): nPrm = {'date': qcWV.datetime.now(), 'duration': -1, 'distance': -1} L03z = ETrZ(data=nPrm) YKHO.assertFalse(L03z.is_valid())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YR1S(YKHO):\n if YKHO.treatment and YKHO.treatment.min_duration:\n if not YKHO.duration or YKHO.treatment.min_duration > YKHO.duration_delta():\n raise sUXu('Duration must be at least the minimum treament time.')", "def uGzM(KAOR, xC3W, BWXx):\n if type(BWXx) not in {int, float}:\n ...
[ "0.6789628", "0.651076", "0.6496597", "0.64346194", "0.640421", "0.6116119", "0.61003643", "0.60709065", "0.6040185", "0.600332", "0.6002862", "0.59345543", "0.5882046", "0.5881904", "0.58731014", "0.5857875", "0.58473605", "0.57722783", "0.5738605", "0.573395", "0.57085407",...
0.68966454
0
Ask the currently set bot a question.
def Hwdv(YKHO, x0hE, xDcj): return str(x0hE.bot.get_response(xDcj))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QgNj(YKHO):\n YKHO.broadcast(YKHO['current_question']['text'])\n return", "def QYWI(YKHO):\n l5Ny = YKHO.question if YKHO.question else None\n if l5Ny:\n l5Ny += '\\n'\n for d6pt, MTKo in enumerate(YKHO.options):\n l5Ny += u'{}. {}\\n'.format(d6pt + 1, MTKo)\n YKHO.bot...
[ "0.76675975", "0.7169676", "0.6916986", "0.6827771", "0.67582047", "0.6703608", "0.6640878", "0.6626277", "0.654734", "0.6453171", "0.6429984", "0.64252", "0.64252", "0.6338148", "0.633049", "0.63033396", "0.626921", "0.62353516", "0.62295604", "0.62208396", "0.6212312", "0...
0.0
-1
Generate a string based on a random number.
def BWvy(YKHO, yKcO=0, Os4s=9000): return str(ajWY(yKcO, Os4s))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BWvy() -> str:\n return ''.join((Acvy(tcl1 + BHGE) for bGrB in range(ajWY(0, 1000))))", "def eTqN():\n return str(qxeD.uuid4())[:10]", "def bcVV(YKHO):\n gLiZ = vIwR.ascii_uppercase + vIwR.digits\n return ''.join((tuKI.choice(gLiZ) for WKvO in range(20)))", "def zJoO(YKHO) -> str:\n return...
[ "0.82645714", "0.8075794", "0.8011046", "0.79469365", "0.792345", "0.7865616", "0.78573745", "0.78107655", "0.7803616", "0.77800906", "0.773988", "0.77365565", "0.76969355", "0.7678022", "0.7675432", "0.76585364", "0.7655734", "0.7631689", "0.7626361", "0.7613047", "0.7596422...
0.74748653
31
Get a valid condor path from the factory config dom. Can raise KeyError if the dom has a bad configuration or was incorrectly parsed from the config file.
def ho7H(j50H): x8Rh = j50H.getElementsByTagName('condor_tarball')[0] pWx7 = x8Rh.attributes['base_dir'].value.encode('utf-8') return pWx7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oeGZ(RKD7, KcEq, SiT6):\n oUZx = \"grep -v ^\\\\# %s | grep ^%s: | awk '{print $2}'\" % (SiT6, U6Xh.CSTR_ISO_PATH)\n RI88 = KcEq.sh_run(RKD7, oUZx)\n if RI88.cr_exit_status:\n RKD7.cl_error('failed to run command [%s] on localhost, ret = [%d], stdout = [%s], stderr = [%s]', oUZx, RI88.cr_exit_s...
[ "0.5898574", "0.5568448", "0.55450696", "0.54319584", "0.5379138", "0.53719", "0.5305747", "0.53047943", "0.5296676", "0.5268039", "0.52537906", "0.52528566", "0.52528566", "0.5233175", "0.5229574", "0.51173496", "0.51011175", "0.5098248", "0.50858307", "0.5077522", "0.507710...
0.6269083
0
Convert any integer to a BaseN string representation.
def D19e(mLGw, Fg_i, a3CF='0123456789abcdefghijklmnopqrstuvwxyz'): V3hn = mLGw < 0 mLGw = abs(mLGw) wEf2 = mLGw == 0 and a3CF[0] or D19e(mLGw // Fg_i, Fg_i, a3CF).lstrip(a3CF[0]) + a3CF[mLGw % Fg_i] return '-' + wEf2 if V3hn else wEf2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r6I9(exwG, P8oC):\n i8_y = '0123456789ABCDEF'\n if exwG < P8oC:\n return i8_y[exwG]\n else:\n return r6I9(exwG // P8oC, P8oC) + i8_y[exwG % P8oC]", "def s3rX(YRbF, exwG):\n KCHu = bin(YRbF)[2:]\n KCHu = '0' * (exwG - len(KCHu)) + KCHu\n return KCHu", "def aHw9(BWXx):\n re...
[ "0.7752718", "0.73981047", "0.7380132", "0.72382057", "0.72347057", "0.72232854", "0.72163486", "0.7200822", "0.71665525", "0.7164547", "0.71490914", "0.7144311", "0.711119", "0.7102545", "0.7079844", "0.707601", "0.70008135", "0.69784856", "0.6977782", "0.6970091", "0.696414...
0.0
-1
Compute the reward signal for the (PPO) actor update
def oHI6(YKHO, QTBn, XeOP): O4JO = ht2j.FloatTensor(oyIN.hstack([QTBn, XeOP])) with ht2j.no_grad(): return -epAf.log(1 - ht2j.sigmoid(YKHO.discriminator(O4JO)[0]) + 1e-08)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vOGg(YKHO):\n pass", "def vOGg(YKHO, vOGg):\n return vOGg + 0.01", "def nnTj(YKHO, vOGg: np.ndarray) -> None:\n YKHO.ret = YKHO.ret * YKHO.gamma + vOGg\n YKHO.ret_rms.update(YKHO.ret)", "def vOGg(YKHO, rNYq, XeOP, vOGg):\n pass", "def vOGg(YKHO, rNYq, XeOP, vOGg):\n pass", "def vOGg...
[ "0.73824704", "0.7072126", "0.7053024", "0.7037611", "0.7037611", "0.7037611", "0.70257413", "0.70201176", "0.70191026", "0.6997772", "0.69685334", "0.69496924", "0.6939488", "0.69165725", "0.69074225", "0.6897746", "0.6881028", "0.6869637", "0.68539214", "0.6843038", "0.6827...
0.0
-1
Return a dict of the classifiers we currently support
def haER(): return {'MultinomialNB': mc7B(), 'LogisticRegression': T8WO(), 'RandomForest': v9Rb()}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DFHl(YKHO):\n return YKHO._classifiers", "def haER():\n DFHl = [{'name': 'Linear SVM', 'id': 'LinearSVM'}, {'name': 'Gaussian Naive Bayes', 'id': 'GaussianNB'}, {'name': 'Decision Tree', 'id': 'DecisionTree'}, {'name': 'Random Forest', 'id': 'RandomForest'}]\n return DFHl", "def MytK(YKHO):\n r...
[ "0.75669336", "0.75219953", "0.7349768", "0.7349768", "0.7349768", "0.7281165", "0.71214724", "0.70578724", "0.69165397", "0.69165397", "0.6894903", "0.68616205", "0.67070985", "0.6691293", "0.65540475", "0.6527324", "0.6527324", "0.6517027", "0.65040076", "0.6470965", "0.636...
0.7740836
0
Generate an authenticate response for HTTP Basic Auth
def FJNd(e_b4=False): MOPg = {'WWW-Authenticate': 'Basic realm="{}"'.format(CyNT)} return (CLL9, 403 if e_b4 else 401, MOPg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NLCy():\n return oGir('Not Authorized', 401, {'WWW-Authenticate': 'Basic realm=\"api\"'})", "def NLCy(YKHO):\n return oGir('Please provide proper credentials', 401, {'WWW-Authenticate': 'Basic realm:\"%s\"' % __package__})", "def NLCy(YKHO):\n return oGir('Please provide proper credentials', 401, ...
[ "0.82404286", "0.79953253", "0.79953253", "0.78856367", "0.78681344", "0.7815411", "0.7808664", "0.77722716", "0.77636135", "0.77607083", "0.77607083", "0.77607083", "0.77607083", "0.77607083", "0.77607083", "0.77607083", "0.77607083", "0.77607083", "0.77607083", "0.77607083", ...
0.7196264
63
Capture and return one frame from the camera as a numpy ndarray, or None if an error occurred.
def eeAL(YKHO): YKHO.camera.capture(YKHO.array, format='rgb', use_video_port=True) f4IJ = YKHO.array.array YKHO.array.truncate(0) return f4IJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wxv7():\n return W5_v()", "def blBY(YKHO):\n VIPT = []\n for YRbF, WpIo in enumerate(YKHO.cameras):\n try:\n UIV2 = WpIo.RetrieveResult(YKHO.camera_config['timeout'])\n except Exception as e:\n raise ValueError('Grab failed for camera: {} with exception: {}'.form...
[ "0.77680427", "0.7640583", "0.7460079", "0.738873", "0.73867875", "0.7363666", "0.7290462", "0.72793436", "0.72349674", "0.7224571", "0.71496314", "0.7140217", "0.7126961", "0.7089402", "0.70749253", "0.7059185", "0.70505655", "0.7030184", "0.7017968", "0.7001844", "0.7001844...
0.7772531
0
Python destructor which calls `close()` on this object.
def fFx9(YKHO): YKHO.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fFx9(YKHO) -> None:\n YKHO.close()", "def fFx9(YKHO):\n YKHO.close()", "def fFx9(YKHO):\n YKHO.close()", "def fFx9(YKHO):\n YKHO.close()", "def fFx9(YKHO):\n YKHO.close()", "def fFx9(YKHO):\n YKHO.close()", "def fFx9(YKHO):\n YKHO.close()", "def fFx9(YKHO):\n YKHO.close()"...
[ "0.8512218", "0.84344107", "0.84344107", "0.84344107", "0.84249526", "0.84249526", "0.84249526", "0.84249526", "0.84249526", "0.8381202", "0.8374841", "0.8374841", "0.8360833", "0.83242655", "0.8268607", "0.81720394", "0.8154606", "0.80822635", "0.8070462", "0.8070462", "0.80...
0.83830416
14
Tell if token is floating point number.
def P4cL(khtY): return isinstance(khtY, GYYJ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ye72(YKHO, eOtH):\n return eOtH.type == Bl5U or eOtH.type == T9R9", "def ye72(eOtH):\n try:\n float(eOtH)\n return True\n except ValueError:\n return False", "def QpCZ(wbrg):\n try:\n float(wbrg)\n return True\n except:\n return False", "def QpCZ(Y...
[ "0.7993859", "0.7910949", "0.7499362", "0.743365", "0.7337281", "0.7314515", "0.73121667", "0.73038125", "0.7271026", "0.7269374", "0.72346616", "0.72329044", "0.7231432", "0.72267956", "0.72267956", "0.72267956", "0.72267956", "0.72176516", "0.7197417", "0.71965355", "0.7190...
0.0
-1
Generate a single sample of audio from an encoding.
def Iahx(cb_Q, Zxma, D8Si, tZ2K): vH3j = cb_Q.run([Zxma['predictions'], Zxma['push_ops']], feed_dict={Zxma['X']: D8Si, Zxma['encoding']: tZ2K})[0] Kvwv = M4HK(vH3j) bzLG = BfDw.inv_mu_law_numpy(Kvwv - 128) return bzLG
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nf95():\n shms = Hy7s.path.join('data/stood_mono.wav')\n D8Si, JvR2 = UH90.read(shms)\n if D8Si.dtype == 'int16':\n D8Si = D8Si / 2 ** 15\n D8Si = D8Si[:int(JvR2 / 2)]\n return (D8Si, JvR2)", "def f0tb(YKHO, m6Me=False):\n if m6Me:\n return YKHO._raw_audio_sample\n return Y...
[ "0.6748888", "0.6437762", "0.6403428", "0.6347665", "0.62992555", "0.62672204", "0.61932474", "0.615217", "0.6139749", "0.613813", "0.61129636", "0.6104725", "0.6090547", "0.60527706", "0.6043061", "0.5987891", "0.5981652", "0.59790295", "0.5958149", "0.5954067", "0.59470785"...
0.7497744
0
Return a time object of the games start time.
def OTp6(Emd4, BH3N): ejIZ = BH3N['STATUS'].text.strip().upper() if ZbWC.search('[a-zA-Z]{3,}', ejIZ): ejIZ = '12:00 AM' return E13Q(ejIZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jSV8(YKHO):\n return ITS7(YKHO.start_datetime.hour, YKHO.start_datetime.minute, YKHO.start_datetime.second)", "def SWox(YKHO):\n return YKHO.time_list[0]", "def SWox(YKHO):\n return YKHO.time_range()[0]", "def SWox(YKHO) -> ITS7:\n return YKHO._starttime", "def SWox() -> int:\n from cale...
[ "0.850572", "0.8076604", "0.7935659", "0.7927841", "0.78557414", "0.783265", "0.7817654", "0.7780483", "0.7780483", "0.77503073", "0.77503073", "0.77466476", "0.7694105", "0.7684776", "0.7669954", "0.76657295", "0.76657295", "0.7655923", "0.76323885", "0.7626835", "0.76222265...
0.0
-1
Converts the specified dataset split to TFRecord format.
def _qCn(kMA8): __n6 = Hy7s.path.basename(kMA8)[:-4] HwRy.stdout.write('Processing ' + __n6) iumf = [WKvO.strip('\n') for WKvO in open(kMA8, 'r')] OQe7 = len(iumf) iUZQ = int(epAf.ceil(OQe7 / float(j80k))) HvOG = rzlF('jpeg', channels=3) A3MA = rzlF('png', channels=1) for vVrl in range(j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ip8Y(tETI, QWQX, SAR5, QXaO):\n ETiR = t9Xg(SAR5)\n Crrw = tLRR(QXaO)\n OQe7 = len(ETiR)\n assert len(Crrw) == OQe7\n frCB = int(epAf.floor(float(OQe7) / WUc3))\n for YRbF in range(frCB + 1):\n g2Pr = YRbF * WUc3\n uKgg = min(g2Pr + WUc3, OQe7)\n cRRG = MFx9(tETI, QWQX, Y...
[ "0.6978493", "0.6871545", "0.6826953", "0.6616055", "0.6433849", "0.6355726", "0.61950827", "0.61459464", "0.61253494", "0.60985404", "0.6068359", "0.6006962", "0.59946346", "0.5931084", "0.5921571", "0.5905677", "0.5868043", "0.585196", "0.5815432", "0.57920134", "0.5775101"...
0.58233863
18
Returns a TFFeature of int64_list.
def ZjqL(hkxX): if not isinstance(hkxX, g760.Iterable): hkxX = [hkxX] return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=hkxX))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OohW(BWXx):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=rjpT.listify(BWXx)))", "def ZjqL(BWXx: List[int]):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=BWXx))", "def q79v(ACYT):\n return ZylS.train.Feature(int64_list=ZylS.train.Int64List(value=ACYT))", ...
[ "0.77033466", "0.76600325", "0.7639382", "0.75822836", "0.75783205", "0.7549128", "0.7544657", "0.75246716", "0.747568", "0.7465006", "0.7465006", "0.7456967", "0.74541193", "0.74541193", "0.7447924", "0.74386024", "0.7415813", "0.74156004", "0.74114144", "0.74102753", "0.740...
0.74003905
21
Returns a TFFeature of bytes.
def uvxA(hkxX): def SWqg(BWXx): return BWXx.encode() if isinstance(BWXx, str) and jKi7.PY3 else BWXx return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=[SWqg(hkxX)]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XE7d(eHNT):\n return BlNT.pack('f', eHNT)", "def bytes(BWXx):\n return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=rjpT.listify(BWXx)))", "def NhGy(vhpA) -> ZylS.train.Feature:\n return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=[vhpA.numpy()]))", "def NhGy(BWXx):\n ...
[ "0.6626078", "0.6542266", "0.63718194", "0.6336037", "0.6330923", "0.6315992", "0.6296196", "0.6253901", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", "0.6244213", ...
0.0
-1
Converts one image/segmentation pair to tf example.
def U5Cy(UiEM, Ux0P, H2v2, TVTK, GH4R): return ZylS.train.Example(features=ZylS.train.Features(feature={'image/encoded': uvxA(UiEM), 'image/filename': uvxA(Ux0P), 'image/format': uvxA(d2XK[vPBo.image_format]), 'image/height': ZjqL(H2v2), 'image/width': ZjqL(TVTK), 'image/channels': ZjqL(3), 'image/segmentation/clas...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LvEM(UiEM, Yp6v, aGOS, ROpF):\n if len(Yp6v) < 5:\n NzvN = [-2] * 56\n dvgN = 5 - len(Yp6v)\n for YRbF in range(dvgN):\n Yp6v.append(NzvN)\n iIhk = b'JPG'\n PU1l = ZylS.train.Example(features=ZylS.train.Features(feature={'image/height': xJYY(ROpF[0]), 'image/width': xJY...
[ "0.7163605", "0.67664355", "0.67321473", "0.67070013", "0.6626889", "0.66143835", "0.6523359", "0.6510645", "0.64424795", "0.6435263", "0.6416938", "0.6412947", "0.63356346", "0.6330688", "0.63014334", "0.62965375", "0.62918675", "0.62778527", "0.6254287", "0.62532353", "0.62...
0.7078087
1
Returns a list of consoles for this instance.
def d6pt(YKHO, qv1X, QOGf): QpfX = qv1X.environ['nova.context'] QpfX.can(IqPc.POLICY_ROOT % 'index') zj6k = YKHO.console_api.get_consoles(qv1X.environ['nova.context'], QOGf) return dict(consoles=[fzpD(eJmI) for eJmI in zj6k])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Kf6Y(Emd4) -> x1iM[xBeT]:\n return Kf6Y()", "def list(YKHO):\n return YKHO.rpc.call(OMwV.ConsoleList)['consoles']", "def kx3Y():\n JZ78 = cuiw.query(_apf.console).distinct()\n qgft = list()\n for YRbF in JZ78:\n yv6U = list(YRbF)\n jfrd = ' '.join(yv6U)\n qgft.append(jfr...
[ "0.8867977", "0.85073406", "0.6978", "0.68151194", "0.66942465", "0.6582343", "0.64523876", "0.63184154", "0.62796414", "0.6265212", "0.6189934", "0.61656773", "0.6107054", "0.6105527", "0.60969895", "0.60926557", "0.60879874", "0.6067006", "0.6055053", "0.6030237", "0.602927...
0.5812112
41
Loads a controller module and returns its loaded devices. A Mobly controller module is a Python lib that can be used to control a device, service, or equipment. To be Mobly compatible, a controller
def WxIw(YKHO, yR_P, jeGQ=True, pJqc=1): return YKHO._controller_manager.register_controller(yR_P, jeGQ, pJqc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lci5():\n bfMs().references.controller = z5su.Controller()", "def pjwc():\n Thr7 = hqcQ()\n return jnN0(Thr7)", "def HboO(YKHO):\n for VlDb in fuKu(YKHO.appname + '.controllers'):\n YKHO.controllers[VlDb.split('.')[-1]] = __import__(VlDb, None, None, ['']).controller\n YKHO.loaded_con...
[ "0.65243685", "0.6056777", "0.59449786", "0.5819802", "0.57946926", "0.57543737", "0.5736418", "0.56916714", "0.5635146", "0.56130886", "0.5592763", "0.5576698", "0.5575213", "0.5570166", "0.5541218", "0.5536311", "0.5531008", "0.54742646", "0.5450318", "0.5433682", "0.539581...
0.0
-1
test that posts appears on index
def hDnz(YKHO) -> None: geh0 = YKHO.client.get(gxEw('index')) YKHO.assertEqual(geh0.status_code, 200) YKHO.assertEqual(isinstance(geh0.context['page_obj'][1], T97t), True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gDP5(YKHO):\n E92T('Test post', 'Test description', True, 'Test content')\n E92T('Test post1', 'Test description1', False, 'Test content1')\n geh0 = YKHO.client.get(gxEw('blog:index'))\n YKHO.assertEqual(geh0.status_code, 200)\n YKHO.assertEqual(len(geh0.context['posts']), 1)\n YKHO.assertQue...
[ "0.7143219", "0.7111221", "0.7028836", "0.6995435", "0.6843647", "0.6814095", "0.67601204", "0.6754239", "0.66846997", "0.66615367", "0.6656676", "0.6645361", "0.6634324", "0.6627068", "0.6618893", "0.6615098", "0.6582262", "0.6553159", "0.65334857", "0.64918053", "0.64564824...
0.7374342
0
Constructor for lunar scenario environment
def FIMM(YKHO): Nu1S = './RL/inputs/lunar_scenario_JAIS2021.yaml' GPtr = MV43(Nu1S) YKHO.config = Mtg2(GPtr) YKHO.env = DGfj(YKHO.config) YKHO.env.initialize() YKHO.simulation_time = 45 * 60 YKHO.time_step = 30 YKHO.neighbor_nodes = ['Mission26', 'Mission27', 'Mission28', 'Mission29', 'M...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, sEAN):\n YKHO.trajectories = []\n YKHO.max_len = sEAN.max_len\n YKHO.goal_left = sEAN.goal_left\n YKHO.goal_top = sEAN.goal_top\n YKHO.goal_right = sEAN.goal_right\n YKHO.goal_bottom = sEAN.goal_bottom\n YKHO.max_top = sEAN.max_top\n YKHO.max_left = sEAN.max_left\n YKHO.ma...
[ "0.7264774", "0.7225429", "0.72152823", "0.71825635", "0.70129", "0.7012849", "0.6979989", "0.68683463", "0.677019", "0.6761202", "0.67203206", "0.67140657", "0.6708668", "0.66999966", "0.66829914", "0.66709274", "0.6653101", "0.6644043", "0.6639071", "0.6605782", "0.6602711"...
0.626234
87
Return a random tips message.
def Eair(YKHO): if len(YKHO._tips) == 1: YKHO._current = 0 return YKHO._tips[0] if len(YKHO._tips) == 2: YKHO._current = (YKHO._current + 1) % 2 return YKHO._tips[YKHO._current] _OMo = 0 BdN0 = YKHO._current while BdN0 == YKHO._current and _OMo < 3: BdN0 = tuK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VlJo():\n return tuKI.choice(['Thinking', 'Considering', 'Weighing options', 'Consulting with a religious leader', 'Rolling some dice', 'Rolling the bones', 'Shaking Magic Eight Ball', 'Phoning a friend', 'Reading daily horoscope', 'Basing decision on your social media interests'])", "def VlJo():\n Vir...
[ "0.7628197", "0.74360996", "0.68599564", "0.6793254", "0.67404884", "0.6732821", "0.6646507", "0.6643881", "0.65623677", "0.6473674", "0.64712", "0.63980556", "0.63648945", "0.63569784", "0.6313417", "0.629834", "0.6276765", "0.6253296", "0.6237931", "0.61994535", "0.6173355"...
0.7760517
0
Get the profile state
def QTBn(YKHO) -> h8nf[bool]: if YKHO.reviewed_at is None: return None return YKHO.reason is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z39Z(YKHO):\n ZbVW = 'profile'\n return YKHO._get_return_value(ZbVW, YKHO._state_hue)", "def z39Z(YKHO):\n return YKHO._profile", "def z39Z(YKHO):\n return YKHO._profile", "def kB6n(YKHO, a1PO):\n return YKHO.profile.state_at(a1PO)", "def z39Z(YKHO):\n return YKHO._profile", "def z3...
[ "0.8080418", "0.75436324", "0.75436324", "0.74853885", "0.7402507", "0.7402507", "0.7402507", "0.7370988", "0.72728735", "0.7241329", "0.7136205", "0.6918392", "0.6918392", "0.69056267", "0.69048345", "0.68977046", "0.68761414", "0.6863408", "0.68419826", "0.68412656", "0.684...
0.0
-1
Return string representation of the Features object.
def wHJl(YKHO): return f'Features({YKHO.data.__repr__()})'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yLCI(YKHO):\n return VQ0N.to_string(YKHO).format(name=YKHO.Name)", "def zAg0(YKHO):\n return qQXR.dumps(YKHO.feature, indent=4)", "def zAg0(YKHO):\n return '{features} → ∅ / {context}'.format(features=Bheu(YKHO.features), context=uSui(YKHO.context))", "def wHJl(YKHO):\n return qQXR.dumps(YKHO...
[ "0.80586016", "0.794801", "0.77761364", "0.7724141", "0.76238954", "0.7536212", "0.73799586", "0.722745", "0.7202246", "0.70826316", "0.7071033", "0.70669335", "0.69565177", "0.69368064", "0.6930805", "0.69286484", "0.6920109", "0.6880961", "0.6844187", "0.6813707", "0.679890...
0.808609
0
Return a shallow (or deep if deep=True) copy of the features. The result is another instance of Features which is detached from the owner and which does not log the changes. However, if the copy is shallow and feature values are references to mutable objects, they can still get modified in the original set (without any...
def jth9(YKHO, y4ha=False): U5bT = eiqf() if y4ha: U5bT.data = y4ha(YKHO.data) else: U5bT.data = YKHO.data.copy() U5bT._logger = None return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n U5bT = CJPr(YKHO._xml_class, YKHO._merge_op, YKHO._featname2merge_op)\n U5bT.merge_from(YKHO)\n return U5bT", "def jth9(YKHO):\n KCHu = rCgx('copy_' + YKHO._name, YKHO._learning_rate, YKHO._useSavedParameters, *YKHO._add_features.copy())\n return KCHu", "def d9kX(YKHO, i_PE=Non...
[ "0.71682495", "0.66709685", "0.6649554", "0.657431", "0.6556273", "0.6535356", "0.65289956", "0.64827263", "0.6440241", "0.64326584", "0.63921654", "0.63208044", "0.6299869", "0.62950236", "0.62950236", "0.62950236", "0.62950236", "0.62950236", "0.62950236", "0.62950236", "0....
0.7866741
0
Calculate the mean and standard deviation for each attribute
def AK6W(yv6U): WJlW = [(xVds(xC3W), EXgn(xC3W)) for xC3W in zip(*yv6U)] del WJlW[-1] return WJlW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NU5x(YKHO):\n RKD7('Calculating mean and std')\n XCTC, teIL = (YKHO._data_train['2d'], YKHO._data_train['3d'])\n YKHO.means['2d'], YKHO.stds['2d'] = (oyIN.mean(XCTC, axis=0), oyIN.std(XCTC, axis=0))\n YKHO.means['3d'], YKHO.stds['3d'] = (oyIN.mean(teIL, axis=0), oyIN.std(teIL, axis=0))", "def X0Y...
[ "0.74754775", "0.7373805", "0.73035604", "0.7279013", "0.7255737", "0.72258747", "0.71703786", "0.7165691", "0.71413404", "0.71082515", "0.70688504", "0.70299816", "0.7021757", "0.6973377", "0.69585234", "0.694069", "0.68921643", "0.6880376", "0.6855136", "0.68449557", "0.684...
0.6782262
26
Return size of items
def zNig(YKHO): return len(YKHO._items)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n return YKHO.num_items", "def SG_M(YKHO):\n return YKHO.item_list.getSize()", "def SG_M(YKHO):\n return YKHO.item_list.getSize()", "def zNig(YKHO):\n return YKHO.items.get_size()", "def zNig(YKHO):\n return YKHO.num_items", "def zNig(YKHO):\n return len(YKHO.items)", ...
[ "0.87829244", "0.87149787", "0.87149787", "0.87093776", "0.86993", "0.86950856", "0.86950856", "0.86950856", "0.8637796", "0.8602357", "0.8528324", "0.851012", "0.851012", "0.8441627", "0.8441627", "0.8441627", "0.8441627", "0.8441627", "0.8441627", "0.8441627", "0.8441627", ...
0.8378742
31
Test the Queue class
def TzPs(): gGq6 = g5js() gGq6.push(1) gGq6.push('str') if not gGq6.size() == 2: return False if not gGq6.pop() == 1: return False if not gGq6.peek() == 'str': return False if not gGq6.pop() == 'str': return False if not gGq6.is_empty(): return Fal...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nPXw(YKHO):\n pass", "def nPXw(YKHO):\n gGq6 = g5js(*range(0, 10))\n YKHO.assertEqual(0, gGq6.dequeue())\n YKHO.assertEqual(list(range(1, 10)), gGq6.queue)", "def LvB2():\n assert g5js", "def cpOx():\n pvZU = g5js()\n pvZU.enqueue('bacon')\n aEqx = 'bacon'\n assert aEqx == pvZU...
[ "0.80992216", "0.79349", "0.78777564", "0.7860574", "0.7860192", "0.7841003", "0.7824088", "0.7790381", "0.7786121", "0.7782505", "0.7780233", "0.77731895", "0.7771004", "0.76995194", "0.7694758", "0.769311", "0.76871115", "0.76761174", "0.76623255", "0.7566538", "0.7565493",...
0.75841904
19
Rotate vector(s) v about the rotation described by quaternion(s) q. Expects a tensor of shape (, 4) for q and a tensor of shape (, 3) for v, where denotes any number of dimensions. Returns a tensor of shape (, 3).+
def nTr0(vexM, Ty9i): assert vexM.shape[-1] == 4 assert Ty9i.shape[-1] == 3 if not vexM.shape[0] == Ty9i.shape[0]: Ty9i = oyIN.tile(Ty9i, [vexM.shape[0], 1]) Wve5 = Ty9i.shape vexM = oyIN.reshape(vexM, [-1, 4]) Ty9i = oyIN.reshape(Ty9i, [-1, 3]) V2Fb = vexM[:, 1:] NFIp = oyIN.cro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XGig(vexM, Ty9i, hXMK=None, MK04=None):\n Ty9i = ZylS.convert_to_tensor(Ty9i)\n vexM = vexM.normalized()\n yzQ0 = vexM.value()[..., 0]\n ejFr = vexM.value()[..., 1:]\n if ejFr.shape.ndims is not None:\n hXMK = ejFr.shape.ndims\n if Ty9i.shape.ndims is not None:\n MK04 = Ty9i.sha...
[ "0.859754", "0.8555746", "0.85466284", "0.8543527", "0.85118973", "0.84115195", "0.812523", "0.81195045", "0.77875894", "0.74851656", "0.7397944", "0.73420453", "0.7251231", "0.72436225", "0.7166129", "0.7159002", "0.7114471", "0.71085757", "0.7037107", "0.69437975", "0.68663...
0.8169689
6
Pick the dataset to be used given the name.
def OnsZ(GPtr, __n6: EasyDict, Y9ns: bool): ANWz.invalidate_caches() GEud = getattr(tF99('datasets.{}'.format(__n6.name[0])), '{}'.format(__n6.name[1])) return GEud(GPtr, __n6, Y9ns)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dD7q(mWFP):\n if mWFP not in Z355:\n raise KeyError('Unknown dataset: {}'.format(mWFP))\n return Z355[mWFP]()", "def dD7q(mWFP, QWQX, **B2fa):\n if mWFP not in skJy:\n raise ValueError('Name of dataset unknown %s' % mWFP)\n __n6 = skJy[mWFP].get_split(QWQX, **B2fa)\n __n6.name = ...
[ "0.8311265", "0.80057377", "0.79763764", "0.7844165", "0.77095425", "0.769311", "0.7659523", "0.76373345", "0.7600196", "0.75630766", "0.7525118", "0.73954874", "0.7324864", "0.73216236", "0.72857964", "0.72719705", "0.7247244", "0.7232378", "0.72206855", "0.7211327", "0.7210...
0.7281376
15
As described in Section 1, p. 10, in [CvL]. The input n must have the property that there is a Hadamard matrix of order `n+1` (and that a construction of that Hadamard matrix has been implemented...).
def z7aC(exwG): from sage.combinat.matrices.hadamard_matrix import hadamard_matrix from sage.matrix.constructor import matrix C7Ls = hadamard_matrix(exwG + 1) Sedy = C7Ls.matrix_from_columns(range(1, exwG + 1)) o6bB = Sedy.matrix_from_rows(range(1, exwG + 1)) Oa10 = matrix(rIJu, exwG, exwG, [1] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nmwj(exwG):\n CYjz = epAf.sqrt(2.0)\n Sedy = oyIN.array([[1 / CYjz, 1 / CYjz], [1 / CYjz, -1 / CYjz]])\n if exwG == 1:\n C7Ls = Sedy\n else:\n C7Ls = 1\n for YRbF in range(1, exwG + 1):\n C7Ls = oyIN.kron(C7Ls, Sedy)\n return C7Ls", "def a7mf(exwG: int, yDqo: jn...
[ "0.7776382", "0.73217523", "0.7083683", "0.7027487", "0.6844636", "0.67973584", "0.679383", "0.66502786", "0.6589325", "0.6438813", "0.64113647", "0.6383796", "0.6375036", "0.6339706", "0.6299349", "0.628566", "0.62822556", "0.62659675", "0.62659675", "0.6242282", "0.6240486"...
0.68577945
4
accepts a dataframe prepared by the `prepare_data` function, and a dict with the onehot encoders returns a formatted dataframe suitable for predicting with the linear regr
def F8jY(BYOc, qwVy): BYOc.dropna(inplace=True) NKcn = BYOc.columns oxr0 = ['discount', 'purchase_price', 'prev_day_purchases'] if 'on_discount' in NKcn: oxr0.append('on_discount') if 'sales' in NKcn: oxr0.append('sales') KbRe = 'count' I53s = rLdf.DataFrame(qwVy['weekday_enc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ruz7(jQ3Z, WfCS):\n he6J = OA4i()\n JDt4 = rLdf.DataFrame(he6J.fit_transform(jQ3Z[WfCS].to_dict(outtype='records')).toarray())\n JDt4.columns = he6J.get_feature_names()\n JDt4.index = jQ3Z.index\n jQ3Z = jQ3Z.drop(WfCS, axis=1)\n jQ3Z = jQ3Z.join(JDt4)\n return jQ3Z", "def fWEw(jQ3Z, m_q...
[ "0.686374", "0.6825145", "0.6800687", "0.6759184", "0.67443687", "0.674175", "0.67023003", "0.66978586", "0.66226125", "0.65994495", "0.6568457", "0.6567406", "0.65227294", "0.6467505", "0.6439248", "0.6426335", "0.6421713", "0.63805014", "0.6379716", "0.6379716", "0.6368493"...
0.67204905
6
Applies gaussian function elementwise from a 'mu' and 'sigma' matrix; given a variable 'x'
def QzIO(WKvO: Variable, yGTL: Matrix, WTkW: Matrix) -> aLMY: if yGTL.shape != WTkW.shape: raise ValueError("Shape mismatch between 'mu' and 'sigma'") vAdD = VNqG(*yGTL.shape) for YRbF, r845 in oyIN.ndindex(yGTL.shape): vAdD[YRbF, r845] = SBAC(WKvO, yGTL[YRbF, r845], WTkW[YRbF, r845]) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IAWS(yGTL, WTkW, WKvO):\n return oyIN.exp(-(WKvO - yGTL) ** 2 / (2 * WTkW ** 2))", "def IAWS(WKvO, yGTL, WTkW):\n if isinstance(WKvO, oyIN.ndarray) and isinstance(WTkW, oyIN.ndarray):\n try:\n assert len(WKvO) == len(WTkW)\n except AssertionError:\n bo34.error('gauss...
[ "0.8318311", "0.8162859", "0.81570816", "0.81514394", "0.813899", "0.8135258", "0.8052689", "0.7976503", "0.7878706", "0.7877466", "0.78730106", "0.78167087", "0.781609", "0.77847457", "0.76604456", "0.7659224", "0.76514703", "0.7591021", "0.7577288", "0.75082296", "0.7481012...
0.737995
25
normalize data with stats from training set
def Q7gV(WbAn, eQSh): return (WbAn - JBMS) / (M1Jx + 1e-07)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m1oj(EcVT):\n mRjC = []\n for YRbF in range(EcVT.shape[1] - 2):\n JBMS = EcVT[:, YRbF + 2].mean()\n ifkm = EcVT[:, YRbF + 2].std()\n mRjC.append([JBMS, ifkm])\n EcVT[:, YRbF + 2] = eQSh.zscore(EcVT[:, YRbF + 2])\n return (EcVT, mRjC)", "def Q7gV(YKHO):\n YKHO.test_x = ...
[ "0.7780676", "0.7578396", "0.7455063", "0.7294359", "0.7289002", "0.72742724", "0.7230063", "0.7208383", "0.7202213", "0.71659595", "0.7118674", "0.71067", "0.7102154", "0.7098291", "0.708915", "0.7080734", "0.7055442", "0.70519215", "0.70313305", "0.7006054", "0.6971652", ...
0.7233503
6
Recursively replaces the keys in data from a dictionary `replacement`.
def E3bW(nPrm, m1Oc): if isinstance(nPrm, dict): U5bT = {} for G1Hx, Ty9i in nPrm.items(): if G1Hx in m1Oc: G1Hx = m1Oc[G1Hx] _6_j = Ty9i if isinstance(Ty9i, dict): _6_j = E3bW(Ty9i, m1Oc) elif isinstance(Ty9i, (list, tu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNRP(Jdxe, *qIxc):\n Aofo = {}\n for G1Hx, Ty9i in Jdxe.iteritems():\n Ty9i = jth9.deepcopy(Ty9i)\n for neBz, qx_G in qIxc:\n G1Hx = ZbWC.sub(neBz, qx_G, G1Hx)\n if Ty9i['parent']:\n Ty9i['parent'] = ZbWC.sub(neBz, qx_G, Ty9i['parent'])\n Aofo[G1H...
[ "0.7059327", "0.6985932", "0.6973633", "0.67722017", "0.6556657", "0.6438929", "0.63389856", "0.63001853", "0.6240812", "0.6232636", "0.6215911", "0.61914957", "0.6181756", "0.61761314", "0.60500747", "0.6042693", "0.59890836", "0.5963172", "0.5961403", "0.59284896", "0.59267...
0.79598004
0
Initializes the multigrid solver for 2D grids of size 'size'.
def FIMM(YKHO, zNig: int, MKlR: float, g3eu: int=50, _hZ2: float=0.01, gpRq: int=3, E43s: int=1, FQNo: int=2, NmYP: int=5, gL_5: int=20): YKHO._size = YKHO.__next_power_of_two(zNig - 1) + 1 YKHO._h = MKlR YKHO._m0 = g3eu YKHO._epsilon = _hZ2 YKHO._m1 = gpRq YKHO._m2 = E43s YKHO._mc = FQNo ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pzDV(YKHO, zNig: int) -> None:\n qJvq, btha = R0O3(YKHO.score_size, YKHO.total_stride, YKHO.instance_size)\n YKHO.grid_x, YKHO.grid_y = (qJvq.unsqueeze(0).repeat(zNig, 1, 1, 1), btha.unsqueeze(0).repeat(zNig, 1, 1, 1))", "def FIMM(YKHO, zNig):\n super(rApN, YKHO).__init__()\n YKHO.new_size = (zNi...
[ "0.7092264", "0.6648668", "0.6625108", "0.659356", "0.6543867", "0.64137304", "0.63689184", "0.6205477", "0.6141826", "0.6082956", "0.60819787", "0.6039291", "0.60207635", "0.60059536", "0.6000298", "0.5970044", "0.5917258", "0.585611", "0.585611", "0.58414716", "0.58042276",...
0.0
-1
Returns matrix row by index
def rdlD(YKHO, d6pt): return YKHO.matrix[d6pt - 1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gXxG(jzdc: Matrix, YRbF: int) -> lNLu:\n return jzdc[YRbF]", "def rdlD(YKHO, d6pt):\n return YKHO.matrix[d6pt - 1].copy()", "def gXxG(k0lF: Matrix, YRbF: int) -> lNLu:\n return k0lF[YRbF]", "def rdlD(YKHO, d6pt):\n return YKHO.matrix_array[d6pt - 1]", "def OQ5O(d6pt: int) -> oyIN.ndarray:\n...
[ "0.8023095", "0.7807808", "0.780462", "0.7796042", "0.7784809", "0.75597507", "0.7553495", "0.7312268", "0.7312268", "0.72661406", "0.7233461", "0.69283044", "0.68712854", "0.68284327", "0.671648", "0.66900843", "0.668275", "0.66449344", "0.6618754", "0.6593435", "0.65834403"...
0.7939637
1
Create a base class with a metaclass.
def rSS7(e5kH, P8oC=object): return e5kH('%sBase' % e5kH.__name__, (P8oC,), {})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})", "def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})", "def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})", "def rSS7(e5kH, P8oC=object):\n return e5kH('NewBase', (P8oC,), {})", "def rSS7(e5kH, ...
[ "0.8296986", "0.8296986", "0.8296986", "0.8296986", "0.8296986", "0.8296986", "0.8231078", "0.8231078", "0.8231078", "0.8231078", "0.82030517", "0.80378795", "0.80378795", "0.80378795", "0.80158603", "0.80158603", "0.7821864", "0.7550536", "0.75471765", "0.7474178", "0.744473...
0.77482784
17
A simple way to create a CatchAll function which serves every URL including / is to chain two route filters. One for the root path '/' and one including a path placeholder for the rest. We can't just use one route filter including a path placeholder because each placeholder must at least catch one character.
def d6pt(pmON): Z4dK = G4JS.get('http://fence-service/user', cookies=QePW.cookies) return pz3A({'path': pmON, 'headers': dict(**QePW.headers), 'cookies': dict(**QePW.cookies), 'fence': Z4dK.json()})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DfGg(pmON):\n return vKnz('/')", "def yDWM(YKHO):\n YKHO.route('/')(YKHO.__index)\n YKHO.route('/dashboard')(YKHO.__index)\n YKHO.route('/settings')(YKHO.__index)\n YKHO.route('/autoqueue')(YKHO.__index)\n YKHO.route('/<file_path:path>')(YKHO.__static)", "def MIGv(YKHO):\n if YKHO.app....
[ "0.69102126", "0.5887507", "0.5458071", "0.539352", "0.5325311", "0.53114325", "0.5298187", "0.52526015", "0.5250037", "0.5211283", "0.51914364", "0.5175719", "0.51235026", "0.5115584", "0.51070523", "0.51007444", "0.5094933", "0.5086378", "0.50856876", "0.5051254", "0.503234...
0.0
-1
Initialize based on an underlying native class. Note that the shapetype is obtained and casted to the appropriate subclass. This ensures relevant methods can be called also when generic shapes are returned, for example by TopExp_Explorer
def FIMM(YKHO, nOmy): YKHO.occ_data = nYQW[nOmy.ShapeType()](nOmy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uIcm(YKHO, ROpF):\n raise NotImplementedError", "def uIcm(YKHO, ROpF):\n raise NotImplementedError", "def FIMM(YKHO):\n raise NotImplementedError('class %s must implement __init__,\\nwhich defines self.shapes as a dict (or list) of Shape objects\\nDo not call Shape.__init__!' % YKHO.__class__.__na...
[ "0.6524316", "0.6524316", "0.6418232", "0.62828356", "0.62192214", "0.6138679", "0.61348957", "0.6048394", "0.6036079", "0.59928614", "0.59928614", "0.5941975", "0.5930267", "0.5897673", "0.58937246", "0.5870083", "0.58332765", "0.58273876", "0.5826679", "0.5822581", "0.58207...
0.0
-1
Returns cos(alpha) where alpha is the angle of m with the positive zaxis.
def eMJs(r8hN: np.ndarray) -> float: return oyIN.inner(G0G1.z_axis, r8hN) / oyIN.linalg.norm(r8hN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YhSR(r8hN):\n return r8hN._ufunc_cos()", "def Dmt6(YKHO):\n return YKHO.z() / YKHO.mag()", "def fH9s(YKHO, WKvO):\n epAf = YKHO.math\n wWvP = epAf.real\n WKvO = JKQb(wWvP, WKvO)\n return epAf.acosh(WKvO)", "def fH9s(YKHO, WKvO):\n epAf = YKHO.math\n wWvP = epAf.real\n WKvO = JK...
[ "0.82018566", "0.72024727", "0.7190861", "0.70065224", "0.7004551", "0.69568646", "0.694939", "0.69486034", "0.69366467", "0.6906215", "0.68898", "0.6884234", "0.68068075", "0.6746852", "0.6740912", "0.673913", "0.6712851", "0.67044026", "0.6704074", "0.66906756", "0.668672",...
0.8439395
0
Returns Response containing a json string
def GtGV(nPrm, **YSA3): return oGir(qQXR.dumps(nPrm, use_decimal=True), content_type='application/json', **YSA3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qQXR(YKHO):\n return geh0", "def qQXR(YKHO):\n return geh0", "def qQXR(YKHO):\n return geh0", "def qQXR(YKHO):\n return YKHO.response.json()", "def NULH(YKHO):\n return oGir(response=YKHO.serialize(), status=200, mimetype='application/json')", "def GtGV(nPrm):\n _hkX = oGir(nPrm, st...
[ "0.82427025", "0.82427025", "0.82427025", "0.79370123", "0.78688926", "0.78592265", "0.7857686", "0.7780629", "0.7760338", "0.7728567", "0.77235085", "0.7634712", "0.76004225", "0.7570256", "0.7518359", "0.74817526", "0.7398851", "0.7392581", "0.7388964", "0.7382853", "0.7372...
0.7491974
15
Returns the given iterable split into batches, of size.
def Wc9F(OxJJ, zNig=100): ewCu = Hs6x.count() def SYlA(H5ew): return next(ewCu) // zNig for H5ew, uOe2 in Hs6x.groupby(iter(OxJJ), SYlA): yield uOe2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nJ0e(WhY1: Iterable, ztRo: int) -> bDy6[x1iM]:\n WhY1 = iter(WhY1)\n return iter(lambda: list(uOgj(WhY1, ztRo)), [])", "def DEZQ(OxJJ: Iterable[T], Ep8u: int) -> iu5r[x1iM[Kt_s]]:\n oHE7 = iter(OxJJ)\n return iter(lambda: list(WhY1.islice(oHE7, Ep8u)), [])", "def nJ0e(WhY1: Iterable[T], ztRo: i...
[ "0.82648873", "0.82307845", "0.82124555", "0.8105142", "0.8105142", "0.8043116", "0.80153084", "0.79894596", "0.79871935", "0.7985902", "0.7952147", "0.79217", "0.7889052", "0.78884214", "0.78797716", "0.7865608", "0.77991235", "0.77626145", "0.7760311", "0.7748544", "0.77411...
0.7688286
28
Permanently redirect to the home list page
def SBIY(QePW): return vKnz('catalog:list', letter='a', permanent=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return vKnz(nKyW('all'))", "def kZiy():\n return vKnz(nKyW('public.home'))", "def H7e3():\n return vKnz(nKyW('show_all_books'))", "def kZiy():\n return vKnz(nKyW('index'))", "def kZiy():\n CBIr = DW23.get_current_user()\n if CBIr:\n return vKnz(nKyW('list_questions_fo...
[ "0.7720668", "0.74783546", "0.73091865", "0.7205618", "0.70459616", "0.7040675", "0.70042866", "0.69724166", "0.6939621", "0.69275415", "0.6850666", "0.68409073", "0.6789781", "0.67812884", "0.6760414", "0.67313415", "0.6722049", "0.6721068", "0.67154706", "0.6712832", "0.669...
0.7352139
2
get global logging object with multiprocessingsafe.
def fZx2(Emd4, r8Yn=None, ABDL=G9jH.DEBUG, format=format, Bjmr=Bjmr, qbID=False, x7gM=False): with stkY: if Emd4.__log and Emd4.__log.hasHandlers() and (Emd4.__log.level == ABDL): HwRy.stderr.write('reuse old logger (id:%s, log_path:%s), level:%s\n' % (id(Emd4.__log), Emd4.source_filepath, Emd4....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxRD(ABDL=30):\n bo34 = tqPq(name=laXl.get_logger(), level=ABDL)\n return bo34", "def fZx2():\n global LOG\n if na1r is not None:\n return na1r\n from dq2.common.DQLog import DQLog\n return DQLog('dq2.common')", "def bo34():\n return I45O", "def wnlF(YKHO):\n return YKHO._l...
[ "0.77391636", "0.70416886", "0.700864", "0.6950957", "0.69365966", "0.69365966", "0.6880756", "0.6861368", "0.68562484", "0.68562275", "0.6840266", "0.68328065", "0.6827881", "0.6820264", "0.68195146", "0.68098176", "0.68006027", "0.6737853", "0.6736539", "0.6728508", "0.6719...
0.0
-1
Parse commandline arguments to train and evaluate a multimodal network for activity recognition on MMFit.
def dCXb(): wvEv = j1Jz.ArgumentParser(description='MM-Fit Demo') wvEv.add_argument('--data', type=str, default='mm-fit/', help='location of the dataset') wvEv.add_argument('--unseen_test_set', default=False, action='store_true', help='if set to true the unseen test set is used for evaluation') wvEv.add...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RQDI():\n wvEv = j1Jz.ArgumentParser()\n wvEv = j1Jz.ArgumentParser()\n wvEv.add_argument('--model_file', type=str, required=True, help='mobilenet MNN model file')\n wvEv.add_argument('--train_image_folder', type=str, required=True, help='path to your train images')\n wvEv.add_argument('--train_...
[ "0.7090086", "0.6916676", "0.68993235", "0.67872566", "0.670973", "0.6699358", "0.6675829", "0.6648249", "0.6608973", "0.6572783", "0.65686405", "0.65662444", "0.6564167", "0.65615505", "0.6556677", "0.6529394", "0.65126556", "0.65107065", "0.6506244", "0.6465505", "0.6448405...
0.6575302
9
Get only unprocessed posts.
def LWJF(YKHO, FvVY: list): Ylbp = [] for m8z6 in FvVY: if m8z6['num'] not in YKHO.last_posts: YKHO.last_posts.add(m8z6['num']) Ylbp.append(m8z6) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HCK3(YKHO) -> FYrf.QuerySet:\n return YKHO.filter(status=ODhz.NOT_PROCESSED, direction=LgK1.RECEIVED).distinct('customer_id').order_by('customer_id')", "def GBx4(YKHO):\n return EozB([XP5J for XP5J in YKHO if XP5J.is_pending is True])", "def Y3xg(YKHO):\n return YKHO.filter(dispatched_at__isnull=T...
[ "0.6908505", "0.6689352", "0.6485071", "0.63854694", "0.6378873", "0.63071156", "0.6183826", "0.6168897", "0.61451054", "0.60580295", "0.6004519", "0.5998096", "0.59200776", "0.58985823", "0.58656734", "0.58402246", "0.58297443", "0.58261234", "0.5804396", "0.57896507", "0.57...
0.0
-1
Returns normalized difference between self and other in (pi, pi]
def yk4i(Emd4, cntZ, CsFy): yk4i = cntZ - CsFy while yk4i > mM0K: yk4i -= 2 * mM0K while yk4i <= -mM0K: yk4i += 2 * mM0K return yk4i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yk4i(jzdc, Fg_i):\n QR9_ = epAf.pi * 2\n Csk6 = NkkI(jzdc) - NkkI(Fg_i)\n if Csk6 < -epAf.pi:\n return Csk6 + QR9_\n if Csk6 > epAf.pi:\n return Csk6 - QR9_\n return Csk6", "def HVh8(YKHO, Elif):\n return YKHO.value / Elif", "def HVh8(YKHO, Elif):\n return YKHO.__div__(El...
[ "0.6961907", "0.6894554", "0.68625546", "0.6855434", "0.6793512", "0.6686325", "0.6683115", "0.66820276", "0.66740143", "0.66556877", "0.66456896", "0.65913653", "0.65902007", "0.6562056", "0.65217274", "0.65206605", "0.65171754", "0.6513941", "0.64994997", "0.6493815", "0.64...
0.69036984
1
Calculate the probability density function of uniform distribution (PDF) at the input value
def BLDH(WKvO, LSh8=0, CN9P=1): return 1.0 / (CN9P - LSh8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kzAT(WKvO):\n return (mhAC(-1, 1)(WKvO) + mhAC(1, 0.5)(WKvO)) / 2.0", "def kzAT(YKHO, WKvO):\n return YKHO.distr.pdf(WKvO)", "def i9c5(WKvO):\n if WKvO > 0 and WKvO < 1:\n return 1\n else:\n return 0", "def _hIh(WKvO, yGTL, M1Jx):\n return eQSh.norm.pdf(WKvO, yGTL, M1Jx)", ...
[ "0.79036105", "0.7903146", "0.77884084", "0.7775667", "0.76545817", "0.76252204", "0.75039923", "0.7499631", "0.7483561", "0.74418926", "0.7423883", "0.74229", "0.7361226", "0.73521876", "0.7335011", "0.7333609", "0.7319998", "0.7311972", "0.72968704", "0.7286006", "0.7283857...
0.7794442
2
Initializes the priority queue.
def FIMM(YKHO, MQRi: List['Priority']) -> None: YKHO._speakers = MUE7() YKHO._priorityData = MUE7() YKHO._priorities = MQRi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n super(sijU, YKHO).__init__()", "def FIMM(YKHO):\n YKHO.capacity = sijU.INITIAL_CAPACITY\n YKHO.array = [None] * YKHO.capacity\n YKHO.count = 0\n YKHO.timestamp = 0", "def FIMM(YKHO):\n YKHO.__data = []\n YKHO.__locator = {}\n YKHO.__counter = Hs6x.count()", "def FIMM...
[ "0.7962369", "0.7783034", "0.7571847", "0.7527698", "0.74021775", "0.7399321", "0.73896897", "0.7327617", "0.73032665", "0.72539204", "0.72007114", "0.71471334", "0.7126309", "0.69038373", "0.689008", "0.6882171", "0.68413633", "0.6837457", "0.68261826", "0.6785648", "0.67840...
0.66917306
25
Pops the next speaker from the queue.
def BEuN(YKHO, d6pt=0) -> str: dvBM = YKHO._speakers.popleft() YKHO._priorityData.popleft() return dvBM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jTBM(YKHO):\n try:\n YKHO.running = YKHO.queued.popleft()\n YKHO.issue(YKHO.running.payload)\n except IndexError:\n YKHO.running = None", "def BEuN(YKHO):\n lMD3 = YKHO.queue[0]\n del YKHO.queue[0]\n YKHO.index -= 1\n return lMD3", "def BEuN(YKHO):\n YKHO.queue_len...
[ "0.70076275", "0.6634727", "0.6623299", "0.66146487", "0.6587359", "0.6554503", "0.651123", "0.6442878", "0.6440261", "0.641174", "0.6348982", "0.63443804", "0.6341412", "0.6341412", "0.6295636", "0.6268117", "0.62600595", "0.62329173", "0.62257624", "0.62162626", "0.62162626...
0.67931145
1
Returns the type for the priority data of this priority.
def AiW5(YKHO) -> type: raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sU9K(YKHO):\n return YKHO._priority_type", "def type(YKHO):\n return YKHO.__data__.get('type')", "def FRul(YKHO):\n return YKHO.data_type", "def type(YKHO):\n return YKHO.data['type'] if 'type' in YKHO.data else None", "def FRul(YKHO):\n return YKHO.p_type", "def type(YKHO):\n retur...
[ "0.8114768", "0.73303694", "0.72980064", "0.7279471", "0.72133905", "0.70764333", "0.7053974", "0.69603324", "0.6948319", "0.69090235", "0.69090235", "0.69090235", "0.6908945", "0.6896814", "0.68773216", "0.68694514", "0.68645996", "0.68645996", "0.68615663", "0.6858107", "0....
0.0
-1
Plot the loss and accuracy of the model during training process.
def qSo0(FLXQ, leAC=None): LZpg = QrM1.figure(figsize=(16, 10)) WKvO = FLXQ.epoch YbcW = FLXQ.history['loss'] AIKr = FLXQ.history['val_loss'] IEpi = FLXQ.history['accuracy'] PaWE = FLXQ.history['val_accuracy'] MVVT = LZpg.add_subplot(1, 2, 1) utGA = MVVT.plot(WKvO, YbcW, '--', label='Tra...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mBbd(YKHO):\n QrM1.plot(YKHO.model.history.history['loss'])\n QrM1.plot(YKHO.model.history.history['val_loss'])\n QrM1.title('Model loss')\n QrM1.ylabel('Loss')\n QrM1.xlabel('Epoch')\n QrM1.legend(['Train', 'Test'], loc='upper right')\n return QrM1.show()", "def PsiR(YKHO):\n QrM1.pl...
[ "0.8176398", "0.81383675", "0.80797315", "0.8071098", "0.8010852", "0.80063087", "0.7997015", "0.7988228", "0.79803896", "0.7952478", "0.7930314", "0.7865458", "0.78635025", "0.7807733", "0.77861583", "0.77706265", "0.7764939", "0.775517", "0.77499706", "0.76934576", "0.76813...
0.0
-1
Take list of dictonaries and turn it into dictionary of lists.
def SzcT(aPd6): if len(aPd6) == 1: return aPd6[0] LTX_ = {} for H5ew in aPd6[0].keys(): hkxX = [aPd6[YRbF][H5ew] for YRbF in range(len(aPd6))] LTX_[H5ew] = hkxX return LTX_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zo1C(yv6U):\n if len(yv6U) == 0:\n return {}\n sjXb = yv6U[0].keys()\n m4Nl = oRi_(list)\n for Csk6 in yv6U:\n assert set(Csk6.keys()) == set(sjXb)\n for G1Hx in sjXb:\n m4Nl[G1Hx].append(Csk6[G1Hx])\n return m4Nl", "def Zo1C(yv6U):\n if len(yv6U) == 0:\n ...
[ "0.7856641", "0.7839473", "0.76363695", "0.7465653", "0.73588806", "0.72476697", "0.71511376", "0.70119", "0.69221556", "0.6898275", "0.6870052", "0.6862711", "0.68470645", "0.68392664", "0.6709788", "0.6651467", "0.664655", "0.6640156", "0.6630766", "0.662857", "0.66229635",...
0.75787884
3
uses pygame to display the image
def nUHY(YKHO): if not YKHO.img: return Vjhr = a9eO.display.set_mode((800, 600)) Vjhr.blit(YKHO.makePygameSurface(), (0, 0)) a9eO.display.flip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO):\n YKHO.screen.blit(YKHO.image, YKHO.image_rect)", "def JmFt(YKHO):\n YKHO.screen.blit(YKHO.image, YKHO.image_rect)", "def JmFt(YKHO):\n YKHO.game.display_surface.blit(YKHO.image, (YKHO.x, YKHO.y))", "def JmFt(YKHO):\n YKHO.game.display.blit(YKHO.image, (YKHO.x, YKHO.y))", "def J...
[ "0.80702895", "0.80702895", "0.8036999", "0.8034768", "0.80334485", "0.7948586", "0.79309595", "0.7902565", "0.788936", "0.7886793", "0.7857237", "0.7843814", "0.7818679", "0.7818679", "0.7797045", "0.7797045", "0.7774725", "0.777376", "0.777376", "0.777376", "0.777376", "0...
0.8028837
5
Creates and returns a new game
def kR1s(Emd4, CBIr, pdjQ): if pdjQ < 10: raise ValueError('Maximum must be greater than 10') YRbF = tuKI.choice(range(0, len(yDpa) - 1)) BH3N = _apf(user=CBIr, target_word=yDpa[YRbF], partial_word_guessed='.' * len(yDpa[YRbF]), letters_guessed='', attempts_allowed=pdjQ, attempts_remaining=pdjQ, gam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eLpg(mWFP):\n if mWFP in _apf.GAMES:\n BH3N = _apf.GAMES[mWFP]\n else:\n _apf.GAMES[mWFP] = BH3N = _apf(mWFP)\n return BH3N", "def joMS(YKHO, QO8w):\n YKHO.games[QO8w] = KndY.Game(QO8w)\n return YKHO.games[QO8w]", "def joMS():\n BH3N = _apf()\n mVZ4(BH3N, name='Red', stra...
[ "0.83072346", "0.81604636", "0.8097658", "0.80132496", "0.79703784", "0.7866733", "0.778417", "0.77696383", "0.7736263", "0.77230537", "0.76152617", "0.75405085", "0.7509215", "0.7461363", "0.7413064", "0.7360586", "0.7340618", "0.73377514", "0.7269975", "0.72344345", "0.7209...
0.64893174
95
Get token embeddings of x.
def pOv4(YKHO, g4y1): ZHfW = ZylS.to_float(ZylS.not_equal(g4y1, YKHO.pad_id)) KTQ3 = ZylS.gather(YKHO.shared_weights, g4y1) KTQ3 *= ZylS.expand_dims(ZHfW, -1) KTQ3 *= YKHO.hidden_size ** 0.5 return KTQ3
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nmay(YKHO, eOtH):\n return [tTpl[eOtH] for tTpl in YKHO.embeds]", "def nhS3(WKvO):\n WKvO = WKvO.lower()\n if WKvO in CtWL:\n or8S = CtWL[WKvO]\n return [float(tTpl) for tTpl in d6pt.get_item_vector(or8S)]\n else:\n return rsTB", "def pOv4(YKHO, WKvO):\n ZHfW = YKHO.comp...
[ "0.7699652", "0.7102136", "0.705351", "0.675645", "0.6722946", "0.6652719", "0.6564437", "0.65515304", "0.6529146", "0.64632857", "0.6448611", "0.6431049", "0.6416792", "0.63704133", "0.6363261", "0.63444686", "0.6339455", "0.6312715", "0.6304796", "0.6282875", "0.627749", ...
0.0
-1
Create a stacked column chart.
def pwEZ(s5ru): XGQB(s5ru, 'stacked_column_chart')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOy5():\n rJco = I1iR(int)\n for rdlD in r8hN:\n if rdlD['season'] not in rJco:\n rJco[rdlD['season']] = I1iR(int)\n rJco[rdlD['season']][rdlD['team1']] = 1\n rJco[rdlD['season']][rdlD['team2']] = 1\n else:\n rJco[rdlD['season']][rdlD['team1']] +=...
[ "0.64935", "0.6342272", "0.6340854", "0.62797624", "0.6247093", "0.6247093", "0.6247093", "0.6116792", "0.6113814", "0.59575784", "0.58928245", "0.5890555", "0.58167017", "0.5701136", "0.5690186", "0.56836635", "0.56781405", "0.55505306", "0.5549669", "0.54903436", "0.5457746...
0.7618883
0
Returns the next item in the deque. Override this method to change from the default queue behavior to stack behavior by changing popleft() to pop(). This will raise an IndexError if the deque is empty. Any exceptions should be handled by the code that calls this method, not inside this method.
def a3Tc(YKHO): return YKHO.popleft()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def he0F(YKHO):\n if YKHO.isEmpty():\n raise IndexError('Queue underflow')\n ycBG = YKHO.head\n YKHO.head = YKHO.head.next\n YKHO._size -= 1\n return ycBG.item", "def he0F(YKHO):\n assert not YKHO.is_empty()\n ZfUD = YKHO.front()\n YKHO._first = YKHO._first[smaC]\n if YKHO._firs...
[ "0.75178945", "0.7495235", "0.74842924", "0.7406655", "0.7388799", "0.73755354", "0.7366066", "0.7339059", "0.7304739", "0.73031837", "0.7285139", "0.72820336", "0.7274947", "0.7241018", "0.72374797", "0.7229832", "0.72278774", "0.7204983", "0.71873707", "0.71600765", "0.7142...
0.73815817
5
transform str like '10102' into tuple like (1,1)
def Qdjg(IblJ: str) -> AzJI[int, int]: CjKC = int(IblJ[0]) ITS7 = int((int(IblJ[2]) + 1) / 2) return (CjKC, ITS7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bexe(KCHu):\n return tuple((oeNL for oeNL, hcXw in enumerate(KCHu) if hcXw == '1'))", "def jcYS(vIwR):\n return ZbWC.findall('\\\\d+', vIwR)", "def jcYS(vIwR):\n return ZbWC.findall('\\\\d+', vIwR)", "def PiME(BWXx):\n BWXx = BWXx.strip().replace(',', ' ').replace('x', ' ')\n return tuple(...
[ "0.83661145", "0.8224685", "0.8224685", "0.7905102", "0.784181", "0.736734", "0.7300765", "0.72022873", "0.70600027", "0.69899", "0.6941576", "0.68882245", "0.6875428", "0.68579435", "0.6824444", "0.67965925", "0.6735051", "0.6609857", "0.6580555", "0.65775174", "0.6555296", ...
0.68591285
13
r"""Dilated_ResNet V1 model from `"Deep Residual Learning for Image Recognition"
def Prmc(DpZH, CLda, mL4f=False, OaeV=VGCm(), tk5Y='~/.mxnet/models', **B2fa): bgCG, fhcK, xMux = Im9v[CLda] rqNv = __oA[bgCG] Zxma = mTB4(rqNv, fhcK, xMux, **B2fa) if mL4f: from .model_store import get_model_file Zxma.load_params(get_model_file('resnet%d_v%d' % (CLda, DpZH), root=tk5Y),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gcaA(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)\n return C3ST", "def Zs5t(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 4, 23, 3], **B2fa)\n return C3ST", "def r2p1(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n return C3ST", "def ppbq():\n C3ST =...
[ "0.66593677", "0.6602925", "0.6532623", "0.6527461", "0.6472197", "0.6446207", "0.6434259", "0.63978", "0.63507956", "0.63459516", "0.6300562", "0.6243504", "0.6234608", "0.6205428", "0.61955863", "0.6188598", "0.6181218", "0.6168506", "0.6167035", "0.6137779", "0.613393", ...
0.0
-1
r"""Dilated_ResNet18 V2 model from `"Identity Mappings in Deep Residual Networks"
def d1me(**B2fa): return Prmc(2, 18, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r2p1(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [2, 2, 2, 2], **B2fa)\n return C3ST", "def w2By(mL4f=False, **B2fa):\n C3ST = s9pf(em1m, [2, 2, 2, 2], **B2fa)\n if mL4f:\n C3ST.base_model.load_state_dict(uqvc['resnet18'])\n return C3ST", "def wLPl(mL4f=False, **B2fa):\n C3ST = s9pf(e...
[ "0.62561446", "0.6227793", "0.6199317", "0.6133642", "0.6057463", "0.6042049", "0.602743", "0.59987575", "0.5983577", "0.58803797", "0.58776796", "0.5788769", "0.57753474", "0.57505774", "0.5721872", "0.5705973", "0.5682651", "0.56826025", "0.56668806", "0.5663022", "0.565388...
0.6065036
4
r"""Dilated_ResNet34 V2 model from `"Identity Mappings in Deep Residual Networks"
def n7J0(**B2fa): return Prmc(2, 34, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wLPl(mL4f=False, **B2fa):\n C3ST = s9pf(em1m, [3, 4, 6, 3], **B2fa)\n if mL4f:\n C3ST.base_model.load_state_dict(uqvc['resnet34'])\n return C3ST", "def gcaA(mL4f=False, **B2fa):\n C3ST = S1Vm(em1m, [3, 4, 6, 3], **B2fa)\n return C3ST", "def Rql2(mL4f=False, **B2fa):\n C3ST = S1Vm(e...
[ "0.6381692", "0.62779164", "0.6097897", "0.60975415", "0.59316826", "0.59025276", "0.583686", "0.583686", "0.5833397", "0.5793383", "0.57813716", "0.576664", "0.57438767", "0.5727605", "0.5727605", "0.5727605", "0.5727605", "0.5727605", "0.5727605", "0.5727605", "0.5727605", ...
0.61825997
2
r"""Dilated_ResNet152 V2 model from `"Identity Mappings in Deep Residual Networks"
def oz8J(**B2fa): return Prmc(2, 152, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _f88(mL4f=False, **B2fa):\n C3ST = s9pf(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.base_model.load_state_dict(uqvc['resnet152'])\n return C3ST", "def ppbq():\n C3ST = ileL()\n C3ST.add(Zlsf(lambda WKvO: WKvO / 255.0 - 0.5, input_shape=(160, 320, 3)))\n C3ST.add(Ym4f(cropping=((50...
[ "0.5993634", "0.593736", "0.58682466", "0.58575094", "0.5854653", "0.5844504", "0.5834935", "0.5809397", "0.5768733", "0.57375157", "0.57371616", "0.57073706", "0.5707338", "0.56970423", "0.5667111", "0.5665674", "0.565765", "0.56327015", "0.56199634", "0.5614367", "0.5585052...
0.6482788
0
Compute the entropy of a distribution.
def FIMM(YKHO, gH2v: str='mean', tpio: Optional[int]=-1, _hZ2: float=wRZ2, P8oC: Optional[float]=None, uhia: bool=False): super().__init__() YKHO.reduce_fn = NvKC(gH2v) YKHO.dim = tpio YKHO.epsilon = _hZ2 YKHO.log_input = uhia if P8oC is None: YKHO.log_func = ht2j.log else: r...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oqGu(IZxK):\n return -1 * sum([JxU2 * RKD7(JxU2, 2) if JxU2 != 0 else 0 for JxU2 in IZxK])", "def oqGu(VE0R):\n TK2h = 0.0\n for yzQ0 in VE0R:\n TK2h -= VE0R[yzQ0] * oyIN.log(VE0R[yzQ0])\n return TK2h", "def oqGu(YKHO):\n try:\n return YKHO._entropy()\n except AttributeError...
[ "0.84807295", "0.8279429", "0.80605114", "0.79916704", "0.7948325", "0.79365975", "0.7893978", "0.7869888", "0.78331393", "0.780733", "0.7805292", "0.78002566", "0.77955085", "0.77528775", "0.7706426", "0.7705054", "0.76973045", "0.7694308", "0.7692221", "0.7669573", "0.76507...
0.0
-1
Returns the number of dimensions in this model.
def Z2Yp(YKHO): return YKHO.data.shape[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lkaz(YKHO):\n return YKHO.__num_dimensions", "def Htse(YKHO) -> int:\n return len(YKHO.shape)", "def kuoY(YKHO):\n return YKHO._get_model().vector_size", "def DbyF(YKHO):\n return YKHO._shape.size", "def e_2d(YKHO):\n return YKHO.n", "def WZoW(YKHO):\n return YKHO.n_dim", "def qC1...
[ "0.89439124", "0.85797423", "0.8463621", "0.844548", "0.84101474", "0.83884394", "0.83838093", "0.83475983", "0.83475983", "0.83421695", "0.82967067", "0.82895774", "0.8270348", "0.82687736", "0.82687736", "0.82671976", "0.8252814", "0.8202621", "0.8157682", "0.815338", "0.80...
0.0
-1
Returns a copy of this model.
def jth9(YKHO): bo34.debug('Copying model..') U7YL = ngyg(YKHO.data.copy(), list(YKHO.vocab)) bo34.debug('Done copying model..') return U7YL
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3ak(YKHO):\n return YKHO.copy(YKHO.model, None)", "def jth9(YKHO) -> 'Model':\n BdN0 = YKHO.__class__()\n BdN0._db = YKHO._db\n BdN0._values_fixed = YKHO._values_fixed.copy()\n BdN0._values_flex = YKHO._values_flex.copy()\n BdN0._dirty = YKHO._dirty.copy()\n return BdN0", "def jth9(YK...
[ "0.897101", "0.8682248", "0.83488107", "0.83384347", "0.8301458", "0.826615", "0.82361853", "0.8176224", "0.8176224", "0.8176224", "0.8176224", "0.81513685", "0.8137658", "0.8123413", "0.81230754", "0.81230754", "0.81230754", "0.81230754", "0.81230754", "0.81230754", "0.81216...
0.7886791
99
Clips feature values more than [sds] standard deviations away from the mean to that value. Another method for dealing with outliers.
def vJPk(YKHO, bbms): bo34.debug('Truncating features to %d SDs..' % bbms) h_sC = YKHO.data.std(1) nfe_ = YKHO.data.mean(1) Zoiw = oyIN.zeros(YKHO.data.shape) for o36Q in range(YKHO.data.shape[0]): Zoiw[o36Q] = oyIN.clip(YKHO.data[o36Q], nfe_[o36Q] - bbms * h_sC[o36Q], nfe_[o36Q] + bbms * h_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LoVQ(hkxX, JBMS=None, ifkm=None, AeHh=4):\n Dbmo = oyIN.array(hkxX, dtype=oyIN.float)\n if not JBMS:\n JBMS = Dbmo.mean()\n if not ifkm:\n ifkm = Dbmo.std()\n pBSp = JBMS - AeHh * ifkm\n br9u = JBMS + AeHh * ifkm\n Dbmo[Dbmo > br9u] = br9u\n Dbmo[Dbmo < pBSp] = pBSp\n retu...
[ "0.7169368", "0.70713514", "0.682636", "0.68058276", "0.6793524", "0.67577237", "0.6752992", "0.67164534", "0.67164534", "0.6706715", "0.6691797", "0.6690341", "0.66740954", "0.66502184", "0.6650183", "0.6641786", "0.6631418", "0.6607801", "0.66009796", "0.65913534", "0.65835...
0.76223046
0
Gaussianizes each column of [mat].
def _Fid(vb7U): Y0NN = oyIN.empty(vb7U.shape) for lRYc in range(vb7U.shape[1]): Y0NN[:, lRYc] = uNJe(vb7U[:, lRYc]) return Y0NN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZIa9(YKHO, hee7):\n Gyhe = hee7.shape[0]\n bo34.info(f'MLE with Multivariate Gaussian')\n bo34.info(f'Number of samples {Gyhe}')\n yGTL = oyIN.average(hee7, axis=0)\n SP13 = hee7 - yGTL\n xDMs = oyIN.dot(oyIN.transpose(SP13), SP13) / Gyhe\n YKHO.gaussian_model = nSzW(mean=yGTL, cov=xDMs)\n...
[ "0.65110743", "0.6463635", "0.6418328", "0.6399683", "0.63803804", "0.63611543", "0.6289293", "0.6178402", "0.6158819", "0.61426085", "0.61097145", "0.6065403", "0.6056346", "0.60469586", "0.6034717", "0.5977759", "0.5971394", "0.59696335", "0.59668064", "0.59654063", "0.5921...
0.81563663
0
The Relative Strength Index (RSI) is a momentum oscillator. It oscillates between 0 and 100. It is considered overbought/oversold when it's over 70/below 30. Some traders use 80/20 to be on the safe side. RSI becomes more accurate as the calculation period (min_periods) increases. This can be lowered to increase sensit...
def gi43(ap96, X7cV=70, F2dS=30, yKcO='2015-Jan-01', Os4s='2016-Jan-01', XfQO=14): FMLJ = '%Y-%b-%d' yKcO = qcWV.datetime.strptime(yKcO, FMLJ) Os4s = qcWV.datetime.strptime(Os4s, FMLJ) FvPK = Bqga(ap96, start_date=yKcO, end_date=Os4s, frequency='daily') UxB8 = FvPK['close_price'] PNdY = len(UxB8...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gi43(nPrm, pQ4c):\n X_7r = sorted(nPrm.keys())\n Wfw0, VGhm = (1e-11, 1e-12)\n for G1Hx in range(1, pQ4c + 1):\n DDI8 = float(nPrm[X_7r[G1Hx]]['4. close'])\n pZ_F = float(nPrm[X_7r[G1Hx - 1]]['4. close'])\n if DDI8 > pZ_F:\n Wfw0 += DDI8 - pZ_F\n else:\n ...
[ "0.7145786", "0.6927341", "0.68761486", "0.6821897", "0.6798546", "0.6703897", "0.66592026", "0.6512797", "0.6473041", "0.6406828", "0.63864714", "0.6285087", "0.62047464", "0.60780555", "0.60553265", "0.5962021", "0.5962021", "0.5950425", "0.59426594", "0.59424925", "0.59247...
0.655157
7
Update single bar data.
def woC2(YKHO, S6Fl: BarData) -> None: YKHO._manager.update_bar(S6Fl) for ZfUD in YKHO._items.values(): ZfUD.update_bar(S6Fl) YKHO._update_plot_limits() if YKHO._right_ix >= YKHO._manager.get_count() - YKHO._bar_count / 2: YKHO.move_to_right() YKHO.update_last_price_line(S6Fl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO):\n raise NotImplementedError('DataHandler.update_bars()')", "def woC2(YKHO, S6Fl):\n YKHO.count += 1\n if not YKHO.inited and YKHO.count >= YKHO.size:\n YKHO.inited = True\n YKHO.open_array[:-1] = YKHO.open_array[1:]\n YKHO.high_array[:-1] = YKHO.high_array[1:]\n YKHO.low_...
[ "0.7976972", "0.7819646", "0.75701416", "0.755878", "0.737254", "0.7194397", "0.71892965", "0.71892965", "0.7181649", "0.70441306", "0.70441306", "0.6999787", "0.69203967", "0.6687968", "0.6687968", "0.6661164", "0.66372174", "0.66342324", "0.66332865", "0.66163474", "0.65958...
0.7443913
4
Split the data set into a train and a test set. The last 7 days are used for testing. Returns two pandas data frames, input should usually be the output of `loadDataset`.
def T8RM(jQ3Z): MsqQ = jQ3Z['date'].max() EvQg = jQ3Z[jQ3Z['date'] <= MsqQ - 7] QOe9 = jQ3Z[jQ3Z['date'] > MsqQ - 7] return (EvQg, QOe9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Qb89(NI2E, jQ3Z):\n NI2E = NI2E\n jcFe = 1 - NI2E\n QEHH = int(NI2E * len(jQ3Z))\n d1qL = int(jcFe * len(jQ3Z))\n EvQg = jQ3Z[:d1qL][['Date', 'Close']]\n QOe9 = jQ3Z[d1qL:][['Date', 'Close']]\n return (EvQg, QOe9)", "def hhTY(jQ3Z):\n WKvO = jQ3Z.drop(columns=['obs', 'station_names'])...
[ "0.766461", "0.7548248", "0.75325733", "0.7512579", "0.7391731", "0.73350585", "0.7201207", "0.7187745", "0.71876067", "0.7179969", "0.7153434", "0.7151551", "0.71376544", "0.7121026", "0.7119209", "0.70921713", "0.70921713", "0.7055509", "0.7027323", "0.7027323", "0.7027323"...
0.77636313
0
The logistic softmax function
def N93T(WKvO, tpio=-1): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO, axis=tpio, keepdims=True)) return uw5A / uw5A.sum(axis=tpio, keepdims=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(KeL5):\n nwEM = oyIN.exp(KeL5)\n return nwEM / oyIN.sum(nwEM, axis=1, keepdims=True)", "def cKa6(FRUf):\n return FRUf - a4Lo(FRUf, reduction_indices=0, keep_dims=True)", "def h_oU(WKvO):\n Cyn0 = WKvO - WKvO.max(1, keepdims=True)\n return Cyn0 - Kt_s.log(Kt_s.sum(Kt_s.exp(Cyn0), axis=1,...
[ "0.83356565", "0.82661265", "0.812674", "0.8119315", "0.8112868", "0.8037805", "0.8020189", "0.8019807", "0.80102944", "0.7984047", "0.79609936", "0.7952439", "0.7952306", "0.79503286", "0.79503286", "0.79503286", "0.79503286", "0.79503286", "0.794008", "0.793938", "0.7936922...
0.0
-1
Create an authenticated session.
def FCbF(YKHO): yKcO = qcWV.now(tz=rIAI('US/Eastern')) Os4s = yKcO + fCoM(seconds=36000) YKHO.session = zrIJ.Session(session_id='123-session-abc', start_time=yKcO, end_time=Os4s, user=zrIJ.User(user_id='235678', email='foo@foo.com', username='foouser', name=zrIJ.UserFullName('Jane', 'Bloggs', 'III'), profil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gte4(YKHO):\n NArs = {'identifier': YKHO.IG_USERNAME, 'password': YKHO.IG_PASSWORD}\n geh0 = G4JS.post(YKHO.BASE_URL + '/session', data=qQXR.dumps(NArs), headers=YKHO.BASIC_HEADERS)\n YKHO._set_headers(geh0.headers, True)\n nPrm = YKHO.parse_response(geh0.text)\n return nPrm", "def gte4():\n ...
[ "0.7544196", "0.7515063", "0.7397908", "0.73425716", "0.7325631", "0.72769046", "0.7208431", "0.71575415", "0.71257156", "0.71257156", "0.70850456", "0.7004044", "0.6989887", "0.6891393", "0.68675184", "0.6795969", "0.67664385", "0.67639554", "0.67540497", "0.673732", "0.6735...
0.0
-1
Create an authenticated session.
def FCbF(YKHO): yKcO = qcWV.now(tz=rIAI('US/Eastern')) Os4s = yKcO + fCoM(seconds=36000) YKHO.session = zrIJ.Session(session_id='123-session-abc', start_time=yKcO, end_time=Os4s, user=zrIJ.User(user_id='235678', email='foo@foo.com', username='foouser', name=zrIJ.UserFullName('Jane', 'Bloggs', 'III'), profil...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gte4(YKHO):\n NArs = {'identifier': YKHO.IG_USERNAME, 'password': YKHO.IG_PASSWORD}\n geh0 = G4JS.post(YKHO.BASE_URL + '/session', data=qQXR.dumps(NArs), headers=YKHO.BASIC_HEADERS)\n YKHO._set_headers(geh0.headers, True)\n nPrm = YKHO.parse_response(geh0.text)\n return nPrm", "def gte4():\n ...
[ "0.7544196", "0.7515063", "0.7397908", "0.73425716", "0.7325631", "0.72769046", "0.7208431", "0.71575415", "0.71257156", "0.71257156", "0.70850456", "0.7004044", "0.6989887", "0.6891393", "0.68675184", "0.6795969", "0.67664385", "0.67639554", "0.67540497", "0.673732", "0.6735...
0.0
-1
Converts a sequence of tokens (strings for subwords) in a single string.
def kUqv(YKHO, s2mk): ifZj = ''.join(s2mk).replace(A0QF, ' ').strip() return ifZj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PXQo(YKHO, s2mk):\n V22M = [YKHO.index_to_word[eOtH] for eOtH in s2mk if eOtH != 0]\n l5Ny = ' '.join(V22M)\n return l5Ny", "def yLCI(YKHO, JPBs, WrFl):\n YKHO.to_string_rec(JPBs, WrFl)\n WrFl = sorted(WrFl, key=lambda WKvO: WKvO[1])\n V22M = [WKvO[0] for WKvO in WrFl]\n TtOm = ' '.join(...
[ "0.7228641", "0.71895146", "0.7168259", "0.71064687", "0.6960805", "0.67992544", "0.676491", "0.6759434", "0.67344826", "0.67225844", "0.6567961", "0.65312105", "0.65052843", "0.65052843", "0.6427369", "0.6413112", "0.6316223", "0.62932444", "0.6272929", "0.6256518", "0.62273...
0.6324282
16
Retrieves sequence ids from a token list that has no special tokens added. This method is called when adding special tokens using the tokenizer ``prepare_for_model`` or ``encode_plus`` methods.
def Ie0o(YKHO, cvHm, SfZa=None, PBiG=False): if PBiG: if SfZa is not None: raise ValueError('You should not supply a second sequence if the provided sequence of ids is already formated with special tokens for the model.') return list(map(lambda WKvO: 1 if WKvO in [YKHO.sep_token_id, YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pD6a(s2mk, b0j5, G8d9):\n juz4 = b0j5.convert_tokens_to_ids(s2mk)\n Pha6 = juz4 + [0] * (G8d9 - len(juz4))\n return Pha6", "def pD6a(s2mk, b0j5, G8d9):\n juz4 = b0j5.convert_tokens_to_ids(s2mk)\n Pha6 = juz4 + [0] * (G8d9 - len(juz4))\n return Pha6", "def pD6a(s2mk, b0j5, G8d9):\n juz4...
[ "0.72815514", "0.7240826", "0.7227739", "0.7148289", "0.7128739", "0.6872708", "0.6783346", "0.6783346", "0.6606318", "0.65963334", "0.6475357", "0.6455399", "0.64435226", "0.64435226", "0.6377735", "0.63533765", "0.6327573", "0.62946427", "0.6270693", "0.6269018", "0.6257301...
0.63038915
17
Initialize an instance of the GameController
def FIMM(YKHO, tTee, tk32): YKHO.view = tTee YKHO.cube = tk32 YKHO.display = Nb5m(YKHO.cube) YKHO.solution_provider = oTyV(YKHO.cube) YKHO.solution_provider.add_observer(YKHO) YKHO.cube.add_observer(YKHO.display) YKHO.record_keeper = fiQe() YKHO.dimensions = 3 YKHO.control_state = XA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.model = tS6V(640, 480)\n YKHO.view = yfzS(YKHO.model, 640, 480)\n YKHO.controller = G7G9(YKHO.model)", "def DbxN(YKHO):\n a9eO.init()\n a9eO.joystick.init()\n YKHO.controller = a9eO.joystick.Joystick(0)\n YKHO.controller.init()", "def DbxN(YKHO):\n a9eO.init()\n ...
[ "0.7539872", "0.70597285", "0.70597285", "0.70597285", "0.70032", "0.69605684", "0.695227", "0.6908288", "0.69005364", "0.68324304", "0.6801586", "0.6798408", "0.6751409", "0.6746425", "0.6697583", "0.66793454", "0.66759837", "0.66710216", "0.6662173", "0.66193885", "0.661497...
0.0
-1
Compute the SmithWaterman alignment score for two strings.
def q2sh(jzdc: str, Fg_i: str): iNjl = 1 hiO2 = (-1,) uVkX = -1 C7Ls = oyIN.zeros((len(jzdc) + 1, len(Fg_i) + 1)) for YRbF in range(1, len(jzdc) + 1): for r845 in range(1, len(Fg_i) + 1): kUBT = C7Ls[YRbF - 1, r845 - 1] + (iNjl if jzdc[YRbF - 1] == Fg_i[r845 - 1] else uVkX) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrGB(GVdR, SVV7, kUBT=VlWo, YGrE=E0hH, vIPU=iW3V):\n if len(GVdR) == QVgI:\n return (vIPU * len(SVV7), imTw * len(SVV7), SVV7)\n if len(SVV7) == QVgI:\n return (vIPU * len(GVdR), GVdR, imTw * len(GVdR))\n if GVdR[ZbYZ] == SVV7[ZbYZ]:\n M1hk = kUBT\n elif GVdR[ZbYZ] == imTw or S...
[ "0.7651285", "0.75558317", "0.7499775", "0.74288267", "0.7161334", "0.7095241", "0.705219", "0.7039595", "0.6945578", "0.69029194", "0.6871456", "0.68530273", "0.68242526", "0.6802444", "0.68011785", "0.67706424", "0.6764744", "0.6762365", "0.67297685", "0.67219305", "0.67219...
0.8315443
0