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
Populate the two lists above in value, letter format for the whole list of codes.
def Mm__(): q2tk = 'JZIHGFEDCBA' RntF = 'XWUTRQPNMLK' for oeNL in range(len(q2tk)): RJgD.append(oeNL) RJgD.append(q2tk[oeNL]) for oeNL in range(len(RntF)): WiZU.append(oeNL) WiZU.append(RntF[oeNL])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HRYz(hkxX, Hmkb):\n return [Hmkb % Ty9i for Ty9i in hkxX]", "def EkNG(TVTK, hkxX):\n hkxX = list(hkxX)\n usx6 = len(hkxX) // (TVTK + 1)\n for LVAh in range(usx6):\n yield ''.join(map(lambda WKvO: ZmRO[str(WKvO)], hkxX[(LVAh + 1) * (TVTK + 1):(LVAh + 2) * (TVTK + 1) - 1]))", "def qyZ8(YKH...
[ "0.56369257", "0.5561758", "0.5529543", "0.5446699", "0.5427835", "0.53386146", "0.53382003", "0.5309835", "0.526821", "0.5245705", "0.5214192", "0.52099526", "0.5179691", "0.51711977", "0.51261926", "0.512507", "0.5123931", "0.5101935", "0.50593543", "0.5057705", "0.5041399"...
0.7094265
0
Returns value of last letter of NRIC, if either `letter` or `IC_type` is invalid, returns None.
def Zmkp(sZqf, nyIC): try: if nyIC == 'S' or nyIC == 'T': IplP = RJgD.index(sZqf) return RJgD[IplP - 1] elif nyIC == 'F' or nyIC == 'G': IplP = WiZU.index(sZqf) return WiZU[IplP - 1] else: return None except ValueError: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iXT9(BWXx, nyIC):\n if BWXx > 10 or BWXx < 0:\n return None\n elif nyIC == 'S' or nyIC == 'T':\n uG5P = RJgD.index(BWXx)\n return RJgD[uG5P + 1]\n elif nyIC == 'F' or nyIC == 'G':\n uG5P = WiZU.index(BWXx)\n return WiZU[uG5P + 1]\n else:\n return None", "...
[ "0.6910916", "0.5806234", "0.5544281", "0.5487317", "0.5336157", "0.5307867", "0.5201448", "0.51994157", "0.5013348", "0.49621174", "0.49422172", "0.49378374", "0.4921364", "0.48458573", "0.48280564", "0.48193341", "0.47375146", "0.47258356", "0.4724195", "0.47147396", "0.470...
0.7461332
0
Get last letter of NRIC from value and IC_type. If any of the arguments are invalid, returns None.
def iXT9(BWXx, nyIC): if BWXx > 10 or BWXx < 0: return None elif nyIC == 'S' or nyIC == 'T': uG5P = RJgD.index(BWXx) return RJgD[uG5P + 1] elif nyIC == 'F' or nyIC == 'G': uG5P = WiZU.index(BWXx) return WiZU[uG5P + 1] else: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qIYg(type):\n for mWFP, tXJK in SxKK.items():\n if tXJK == type:\n return mWFP\n return 'Unknown'", "def Zmkp(sZqf, nyIC):\n try:\n if nyIC == 'S' or nyIC == 'T':\n IplP = RJgD.index(sZqf)\n return RJgD[IplP - 1]\n elif nyIC == 'F' or nyIC == 'G'...
[ "0.66916966", "0.64896417", "0.5522553", "0.54715574", "0.5308737", "0.52842236", "0.52788615", "0.5277958", "0.52117705", "0.51529765", "0.5133456", "0.5104493", "0.505939", "0.5058794", "0.5033227", "0.5032145", "0.50259393", "0.501808", "0.4996973", "0.49798307", "0.496448...
0.66925097
0
Get a random element from the set.
def UIrZ(YKHO) -> int: return tuKI.choice(list(YKHO.set))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UIrZ(YKHO):\n return YKHO.nums[tuKI.randint(0, len(YKHO.nums) - 1)]", "def UIrZ(YKHO):\n exwG = len(YKHO.keys)\n while exwG > 0:\n d6pt = tuKI.randint(0, exwG - 1)\n Ufrw = YKHO.keys[d6pt]\n if Ufrw in YKHO.ds:\n return Ufrw\n else:\n YKHO.keys[d6pt]...
[ "0.77060276", "0.738916", "0.72187954", "0.6871744", "0.68453854", "0.68330806", "0.67740154", "0.67226046", "0.6703282", "0.6665089", "0.66356236", "0.66217655", "0.6612035", "0.66000897", "0.6567767", "0.6477719", "0.6462421", "0.64428514", "0.64162946", "0.6400411", "0.639...
0.7296881
2
Computes a safe divide which returns 0 if the denominator is zero. This can be used for calculating ndcg with corner case of all candidate documents having ratings 0.
def pN7q(M6pt, UUZ1, mWFP='safe_div'): return _WqI.where(qkSJ.equal(UUZ1, 0), _WqI.zeros_like(M6pt), qkSJ.div(M6pt, UUZ1), name=mWFP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wrH4(mLGw, ciZM, bKMT=0.0):\n return bKMT if ciZM == 0 else mLGw / ciZM", "def SckV(WKvO, LVAh):\n KCHu = 0.0\n if LVAh != 0.0:\n KCHu = WKvO / LVAh\n return KCHu", "def rAjW(jzdc, Fg_i):\n if Fg_i != 0:\n return jzdc // Fg_i", "def cF9X(jzdc, Fg_i):\n with oyIN.errstate(d...
[ "0.70859694", "0.6955716", "0.6930073", "0.6828075", "0.6775757", "0.67565835", "0.66287583", "0.6628523", "0.6614808", "0.6586934", "0.6567077", "0.6540245", "0.64443797", "0.64379555", "0.6232448", "0.61908776", "0.6108881", "0.6107484", "0.60677236", "0.6043705", "0.601999...
0.674868
6
Variables to keep track in the learning phase It may seem a little bit redundant but to have a "settings" and a "vars" dictionary has its reasons. The settings are reference values, which cannot be updated or modified while training. Vars stores the traces, constantly changing in the training loop. These are reset to t...
def YS9t(YKHO): YKHO.vars = dict() YKHO.vars['TInit'] = -1 YKHO.vars['TDecayRate'] = 0.05 YKHO.vars['q_init'] = 16.58 YKHO.vars['q_max'] = 150.0 YKHO.vars['bowl_center'] = 0.4 YKHO.vars['bowl_strength'] = None YKHO.vars['beta_min_offset'] = 2 YKHO.vars['max_dt'] = 0.01 YKHO.vars[...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yqcx(YKHO, cb_Q):\n YKHO.sess = cb_Q\n for a2Zk in sorted(YKHO.config_recognition_networks.keys()):\n hBV7 = YKHO.config_recognition_networks[a2Zk]['fn_ckpt']\n ieBq = YKHO.config_recognition_networks[a2Zk]['saver0']\n v6TI = YKHO.config_recognition_networks[a2Zk]['saver1']\n ...
[ "0.61225253", "0.59717095", "0.5915758", "0.59061307", "0.58728355", "0.5870918", "0.57286114", "0.5706334", "0.56688154", "0.5616392", "0.55609936", "0.5555865", "0.5553166", "0.5549184", "0.55336905", "0.55241793", "0.5514752", "0.55072284", "0.5495789", "0.5485493", "0.548...
0.73735076
0
Add bowl biases and weights to the Harmony biases and weights.
def NCIo(YKHO): YKHO.B += YKHO.Bowl_bS YKHO.Bc += YKHO.Bowl_bC YKHO.W += YKHO.Bowl_WS YKHO.Wc += YKHO.Bowl_WS
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def txyX(YKHO):\n YKHO.bowls = [{} for WKvO in Ni9Y(YKHO.p_constants['NPHILOSOPHERS'])]\n for YRbF in Ni9Y(YKHO.p_constants['NPHILOSOPHERS']):\n WKvO, LVAh, YylR = YKHO._get_chair_coord(YRbF, 3.6)\n YKHO.bowls[YRbF]['bowl'] = YKHO._load_model('bowl', scale=[2, 2, 2], pos=[100, 100, 100], H=h728...
[ "0.60047424", "0.5679274", "0.5678474", "0.5663176", "0.5640449", "0.56149936", "0.5598284", "0.5574415", "0.5569075", "0.5556507", "0.5548192", "0.5522798", "0.5507675", "0.5492043", "0.54881877", "0.54854", "0.54817307", "0.5461625", "0.5434703", "0.54307497", "0.54294014",...
0.7259449
0
Calculate the maximum Harmony state for the actual state.
def LLAI(YKHO): QTBn = ht2j.linalg.pinv(YKHO.W).matmul(-YKHO.B - YKHO.inpS) uCSV = YKHO.toConceptual(QTBn) GjNY = YKHO.calc_harmony(state=QTBn) return (GjNY, QTBn, uCSV)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uaDj(YKHO) -> float:\n raise NotImplementedError", "def bQ6z(Ov5A):\n if gVdZ(Ov5A):\n return -1", "def bQ6z(YKHO, QTBn, unOp, hRsd, qi10):\n if QTBn.terminal_test():\n return QTBn.utility(0)\n if qi10 <= 0:\n return YKHO.score(QTBn)\n Ty9i = float('-inf')\n for jzdc ...
[ "0.75400776", "0.72597986", "0.654422", "0.6471142", "0.643735", "0.64132464", "0.634019", "0.63382226", "0.6273009", "0.62630934", "0.62291306", "0.6176525", "0.61650676", "0.6153123", "0.61459583", "0.6080426", "0.6074553", "0.60652167", "0.60488844", "0.5992164", "0.599041...
0.79855025
0
Converts the given string to a tf.train.BytesList feature.
def ViHJ(s_ww): return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=[s_ww]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uvxA(hkxX):\n\n def SWqg(BWXx):\n return BWXx.encode() if isinstance(BWXx, str) and jKi7.PY3 else BWXx\n return ZylS.train.Feature(bytes_list=ZylS.train.BytesList(value=[SWqg(hkxX)]))", "def uvxA(hkxX):\n\n def SWqg(BWXx):\n return BWXx.encode() if isinstance(BWXx, str) and jKi7.PY3 el...
[ "0.7926125", "0.7925323", "0.7857217", "0.7850749", "0.7850749", "0.76871824", "0.76760155", "0.7616749", "0.75978374", "0.759032", "0.759032", "0.75807464", "0.7580718", "0.7580718", "0.7580718", "0.7580718", "0.7580718", "0.7580718", "0.7580718", "0.7580718", "0.7569789", ...
0.84144086
0
Normalize a vector `v`.
def NkkI(Ty9i): return oyIN.array(Ty9i) / oyIN.linalg.norm(Ty9i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(Ty9i):\n return Ty9i / oyIN.linalg.norm(Ty9i)", "def HBfW(Ty9i):\n CkYf = oyIN.linalg.norm(Ty9i)\n if CkYf:\n return oyIN.array(Ty9i) / CkYf\n else:\n return Ty9i", "def Z7xS(Ty9i):\n WuUW = 1.0 / sum(Ty9i)\n HBfW = [YRbF * WuUW for YRbF in Ty9i]\n return HBfW", "d...
[ "0.88866264", "0.8511819", "0.83909476", "0.8157001", "0.80623", "0.80017537", "0.7774141", "0.76479834", "0.7607122", "0.75504184", "0.75440395", "0.74560946", "0.7427551", "0.7378063", "0.73304725", "0.730142", "0.72609097", "0.7246319", "0.722799", "0.7224301", "0.7224149"...
0.88153535
1
Given the normal vectors of the mirrors stored as row vectors in `M` and a tuple of nonnegative floats `d`, compute the vector `v` whose distance vector to the mirrors is `d` and return its normalized version.
def Y0D7(E3D9, Csk6): return NkkI(oyIN.linalg.solve(E3D9, Csk6))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AnuZ(YKHO, cAlv, aPd6):\n ywwl, E3D9 = cAlv.shape\n exlG = oyIN.zeros(cAlv.shape, dtype=float)\n for YRbF in range(E3D9):\n exlG[:, YRbF] = cAlv[:, YRbF] / epAf.sqrt(abs(aPd6[YRbF]))\n return exlG", "def ykdI(YKHO, Ty9i):\n FF9_ = ht2j.sum(Ty9i * Ty9i, dim=2, keepdim=True)\n return h...
[ "0.6118353", "0.602269", "0.6018978", "0.59968084", "0.5942168", "0.59200644", "0.59058774", "0.58908683", "0.58846945", "0.5868598", "0.58448213", "0.58239037", "0.58164924", "0.5813734", "0.581062", "0.5804792", "0.57815164", "0.5773375", "0.5772721", "0.5754829", "0.572649...
0.54321986
65
Check if a face `f` is already in the list `l`. We need this function here because when some rotation r fixes a face f = (v1, v2, ..., v_k), r maps f as an ordered tuple to (v_k, v_1, ..., v_{k1}) or (v_2, ..., v_k, v_1) where they all represent the same face.
def oE9z(eHNT, vC9B): for bGrB in range(len(eHNT)): if eHNT in vC9B or eHNT[::-1] in vC9B: return True eHNT = eHNT[-1:] + eHNT[:-1] return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sko_(LNo8, V3IH, RpU_):\n o4D3, si3g, s1k6, zhMh = RpU_\n i8hL = oyIN.zeros_like(LNo8)\n i8hL[si3g:si3g + zhMh, o4D3:o4D3 + s1k6] = 1\n for a1PO in V3IH:\n try:\n WKvO, LVAh, yzQ0, MKlR = a1PO.bounding_box\n Sjp1 = oyIN.zeros_like(LNo8)\n Sjp1[LVAh:LVAh + MKl...
[ "0.55698216", "0.5440201", "0.5388621", "0.53773355", "0.5264561", "0.5242273", "0.52185625", "0.5108922", "0.5103948", "0.5092447", "0.50796866", "0.5067916", "0.50605226", "0.5036693", "0.50260484", "0.49998", "0.49984178", "0.48652002", "0.48626113", "0.4856504", "0.484967...
0.78313446
0
Convert an array to POVRay format, e.g. (0, 1, 2, 3) > array[4] {0, 1, 2, 3}
def UGlz(ezWE): return 'array[{}] {{{}}}'.format(len(ezWE), ', '.join((str(WKvO) for WKvO in ezWE)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xqmD():\n ezWE: Xugt.Array = Xugt.array([1, 2, 3, 4, 5], type=Xugt.int8())\n IWsN: rLdf.Series = ezWE.to_pandas()\n UUhx: oyIN.ndarray = ezWE.to_numpy()\n bCES: x1iM[dict] = ezWE.to_pylist()\n Jkv0: str = ezWE.to_string()\n dixj = {'to_pandas > to_list': IWsN.to_list(), 'to_numpy > tolist': U...
[ "0.6364142", "0.6320654", "0.6277752", "0.6118535", "0.60715115", "0.60633266", "0.60359716", "0.598602", "0.5947269", "0.59098965", "0.59077847", "0.59044456", "0.58666337", "0.5854632", "0.5827846", "0.5802326", "0.58022517", "0.57964075", "0.5779424", "0.57464546", "0.5734...
0.668896
0
Get the user's requested location of a study space
def zADr(hksT): if not hksT: return {'lat': 37.8715926, 'lng': -122.272747} iUZv = th58.geocode(hksT) if not iUZv: Rci7 = {'lat': 37.8715926, 'lng': -122.272747} else: Rci7 = iUZv[0]['geometry']['location'] return Rci7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hbd3(YKHO):\n return YKHO.location", "def Rci7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'location')", "def Rci7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'location')", "def Rci7(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'location')", "def Y45c(YKHO):\n return YKH...
[ "0.640531", "0.6348701", "0.6348701", "0.6348701", "0.61895525", "0.6187939", "0.61768484", "0.6128948", "0.6128948", "0.6128948", "0.6128948", "0.6128948", "0.6128948", "0.6128948", "0.6128948", "0.6128948", "0.6128948", "0.6128948", "0.6128948", "0.6128948", "0.6128948", ...
0.0
-1
Finds the distance between the user location and a given space using Google Maps API
def oysP(_Azk, n294): iUZv = th58.geocode(n294['_location']) FzyY = iUZv[0]['geometry']['location'] XSoh = th58.distance_matrix(_Azk, FzyY, mode='walking') Ayfi = XSoh['rows'][0]['elements'][0]['distance']['value'] Ayfi = Ayfi * 0.000621371 return Ayfi
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s7yO(YKHO, Rci7):\n return d8UF.getDistance((YKHO.latitude, YKHO.longitude), Rci7)", "def AUp_(fZEQ, sgoH):\n SppC = o8hB.distance_matrix.distance_matrix(client=yvTX, origins=sgoH, destinations=fZEQ)\n return SppC['rows'][0]['elements'][0]['distance']['value']", "def FoD6(Bz2B, WDnu):\n n_9K = ...
[ "0.71179086", "0.6902482", "0.6823635", "0.6771833", "0.6749005", "0.6746466", "0.67224365", "0.6674674", "0.65882707", "0.65789706", "0.656021", "0.65578306", "0.6541417", "0.65371376", "0.6479973", "0.6479973", "0.6479973", "0.6479973", "0.6479973", "0.6461009", "0.6450305"...
0.7759494
0
Returns a random string of length=
def LecC(u54L=16): SIyd = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ' wPtc = len(SIyd) return ''.join([SIyd[jxbx().randint(0, wPtc - 1)] for bGrB in range(0, u54L)])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YzjY(u54L: int):\n FLLz = vIwR.ascii_letters + vIwR.digits\n return ''.join(tuKI.choices(FLLz, k=u54L))", "def d4SM(len):\n return WR89.urlsafe_b64encode(Hy7s.urandom(len))[0:len]", "def GLL2(u54L: int) -> str:\n return ''.join(tuKI.choices(vIwR.ascii_letters + vIwR.digits, k=u54L))", "def GL...
[ "0.86591905", "0.8635846", "0.8622473", "0.86133057", "0.85840774", "0.8572303", "0.85663974", "0.8555373", "0.8554227", "0.8521527", "0.8496463", "0.8486532", "0.84807545", "0.84555703", "0.84307486", "0.8415538", "0.84123003", "0.84000725", "0.83998704", "0.8393584", "0.838...
0.0
-1
Returns the UTC timestamp (seconds passed since epoch)
def ItX3(): return int(ITS7.time())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E3oo(YKHO):\n qtWj = qcWV.datetime(1970, 1, 1)\n return (YKHO - qtWj).total_seconds()", "def ZP0Q():\n return GRk0.timegm(qcWV.utcnow().utctimetuple())", "def mqoM():\n wzkt = qcWV.datetime.utcnow()\n qtWj = qcWV.datetime(1970, 1, 1)\n return (wzkt - qtWj).total_seconds()", "def zVfW(h5...
[ "0.7936531", "0.7898519", "0.7814208", "0.7791603", "0.7756655", "0.77407104", "0.77133244", "0.76633453", "0.7637644", "0.7446242", "0.74193436", "0.7388329", "0.7388329", "0.73861676", "0.7332608", "0.7312794", "0.7295566", "0.728356", "0.72696847", "0.7249653", "0.7219464"...
0.6781564
43
Available platforms to run OpenMM integratos List of available platforms to run an OpenMM MD integrators.
def QwNr(PJWX=True): import simtk.openmm as cpvk M3UK = [] for P2GO in range(cpvk.Platform.getNumPlatforms()): UeG4 = cpvk.Platform.getPlatform(P2GO).getName() a9EH = cpvk.Platform.getPlatformByName(UeG4) B0p_ = a9EH.getSpeed() M3UK.append(UeG4) if PJWX: p...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kNho():\n return i3kb", "def i3kb(YKHO):\n return YKHO.rpc.call(OMwV.ModulePlatforms)", "def pHhO(YKHO):\n if YKHO.platform == 'All':\n return aprE\n else:\n return YKHO.platform.split(':')", "def i3kb(YKHO):\n bo34.debug('Get platforms')\n return YKHO._raw_api.platforms.g...
[ "0.7646808", "0.7549929", "0.7539592", "0.74577063", "0.74328923", "0.73269373", "0.7041166", "0.6884026", "0.6793907", "0.6685119", "0.6598012", "0.65335494", "0.64757353", "0.63878375", "0.63565713", "0.63317806", "0.62993985", "0.6297716", "0.6287083", "0.61901385", "0.617...
0.7323758
6
Returns the type (lead or opportunity) from the type context key. Returns None if it cannot be resolved.
def G7V7(YKHO, KBgZ, PObu, QpfX=None): if QpfX is None: QpfX = {} return QpfX.get('default_type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zcg8(YKHO, OaeV):\n if OaeV is None:\n return None\n return YKHO.visit(OaeV)", "def FRul(YKHO, H5ew):\n d6pt = YKHO.get_index(H5ew)\n return YKHO.types[d6pt]", "def FRul(YKHO, mWFP):\n ntq8 = mWFP.split('.')[0]\n l87X = mWFP.split('.')[1]\n for a1PO in YKHO.types:\n if a1...
[ "0.6757136", "0.6706491", "0.65554976", "0.6554644", "0.6529281", "0.6468766", "0.6422609", "0.6422609", "0.6422609", "0.6422609", "0.6422609", "0.6422609", "0.6422609", "0.62511736", "0.6245892", "0.622516", "0.6224198", "0.6211225", "0.6200925", "0.6138933", "0.61105657", ...
0.70583355
0
Overrides case_reset from base_stage to set probability
def KIk1(YKHO, KBgZ, PObu, A07C, QpfX=None): Ylbp = super(XmoQ, YKHO).case_reset(KBgZ, PObu, A07C, context=QpfX) YKHO.write(KBgZ, PObu, A07C, {'probability': 0.0}, context=QpfX) return Ylbp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO, SRYB=0.1):\n YKHO.P = 1 / (YKHO.nx * YKHO.ny)\n if SRYB != 0:\n YKHO.P *= 1 + SRYB * BfDw.rand_mat(YKHO.ny, YKHO.nx, 2)\n YKHO.P = YKHO.P / YKHO.P.sum()", "def SiRx(YKHO):\n YKHO._cur_state = YKHO._sample_state(YKHO._mdp.I)\n YKHO._prev_state = YKHO._cur_state", "def tn...
[ "0.6310039", "0.6226406", "0.6101777", "0.60591745", "0.6032534", "0.60075146", "0.59950566", "0.59734696", "0.59534734", "0.5868997", "0.5854682", "0.58497643", "0.581375", "0.5803138", "0.5791991", "0.576477", "0.5739797", "0.57222563", "0.5715996", "0.5654095", "0.5648659"...
0.6390232
0
Overrides mail_thread message_update that is called by the mailgateway through message_process. This method updates the document according to the email.
def m3Na(YKHO, KBgZ, PObu, A07C, tO9_, EjtC=None, QpfX=None): if isinstance(A07C, (str, int, Swre)): A07C = [A07C] if EjtC is None: EjtC = {} if tO9_.get('priority') in dict(j03Z.AVAILABLE_PRIORITIES): EjtC['priority'] = tO9_.get('priority') RVMj = {'cost': 'planned_cost', 'reven...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, Ol8d):\n return YKHO.request().update(Ol8d)", "def oCIq(YKHO):\n pass", "def QdZT(YKHO, tO9_):\n pass", "def QdZT(YKHO, Ol8d):\n try:\n if Ol8d['type'] == 'l2update':\n if YKHO.snapshot_received:\n YKHO.l2update(Ol8d)\n else:\n ...
[ "0.6317671", "0.61888725", "0.61003745", "0.58473474", "0.57929367", "0.57609904", "0.5661817", "0.56516045", "0.5644521", "0.56359607", "0.5608263", "0.55657", "0.55611473", "0.5529815", "0.5526934", "0.5526934", "0.5526934", "0.5526934", "0.5526934", "0.5526934", "0.5526934...
0.5480555
34
Takes in filepath for the Spotify data.csv file. Returns a clean dataframe of song features to fit model.
def XG6x(VqRE): jQ3Z = rLdf.read_csv(VqRE, parse_dates=['release_date']) jQ3Z = jQ3Z.drop(['name', 'artists'], axis=1) jQ3Z.set_index('id', inplace=True) jQ3Z = jQ3Z[['valence', 'acousticness', 'danceability', 'energy', 'instrumentalness', 'liveness', 'loudness', 'speechiness', 'tempo']] jQ3Z['loudn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dA3g(pmON):\n bySB = ZrYU(pmON, debug=True)\n jQ3Z = rLdf.DataFrame(bySB)\n jQ3Z.to_csv('./Features/single_song_features/song_features.csv', index=False)", "def kt2i(YKHO) -> hxoQ:\n return HND1(YKHO._csv_path, converters={'Embedding size': lambda Ty9i: int(float(Ty9i)) if len(Ty9i) > 0 else JNix...
[ "0.69362956", "0.63597655", "0.6331217", "0.6297758", "0.62829244", "0.62829244", "0.62829244", "0.6275574", "0.6233734", "0.61915153", "0.6122192", "0.6077448", "0.60757774", "0.6049861", "0.60401785", "0.60341305", "0.59958243", "0.5992287", "0.5986672", "0.59618044", "0.59...
0.6344901
2
Takes in filepath for the Spotify data.csv file. Returns a onecolumn dataframe that combines song track and artist and retains id as index.
def XKWD(VqRE): jQ3Z = rLdf.read_csv(VqRE, parse_dates=['release_date']) jQ3Z['artists'] = jQ3Z['artists'].str.strip('[]') jQ3Z['artists'] = jQ3Z['artists'].str.strip("'") jQ3Z['artists'] = jQ3Z['artists'].str.strip('"') jQ3Z['artists'] = jQ3Z['artists'].str.lower() jQ3Z['name'] = jQ3Z['name'].s...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KmHP():\n jQ3Z = rLdf.read_csv('_data\\\\fma_metadata\\\\tracks.csv', header=1, index_col=0, low_memory=False)\n jQ3Z = jQ3Z.drop('track_id', axis=0)\n jQ3Z.index.rename('track_id', inplace=True)\n return jQ3Z", "def CgzE(NvAR):\n CS8v = [id for id in Ddor(f'playlist_{NvAR}.json') if id is not...
[ "0.6758468", "0.6724776", "0.6704046", "0.6641698", "0.6571647", "0.6557118", "0.6533165", "0.64078945", "0.6371436", "0.6369313", "0.6328281", "0.62949115", "0.623732", "0.62297624", "0.6190664", "0.61502844", "0.61421573", "0.61320996", "0.6131832", "0.6122996", "0.6052281"...
0.6035717
21
Takes in a user_input (song/artist). Returns the 'name_artist' column from recom_songs dataframe.
def ovsB(fZOT, ocWp, YajJ, VqRE): fZOT = fZOT.lower() H5ew = XKWD(VqRE) U4CC = H5ew.loc[H5ew.str.contains(fZOT)] tXZk = U4CC.index.tolist() E30Y = ocWp.loc[tXZk, :] LiM2, U9qc = YajJ.kneighbors(E30Y) d6pt = U9qc.flat[0:10].tolist() uGSg = H5ew.iloc[d6pt].to_frame() M0hd = uGSg['name_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FlBy(H4yH, tsYX):\n dixj = H4yH.search(q=tsYX, type='artist', limit=20, offset=0, market='DE')\n Fjb8 = dixj['artists']['items'][0]['name']\n b4aR = dixj['artists']['items'][0]['uri']\n return (Fjb8, b4aR)", "def E8vn():\n Ga6V = open('data.csv')\n U34r = m6_J.DictReader(Ga6V)\n fZOT = i...
[ "0.60988337", "0.5961441", "0.5884529", "0.57266366", "0.5686379", "0.56074363", "0.56065184", "0.5573404", "0.5529175", "0.5502673", "0.5474266", "0.5456593", "0.5453423", "0.5294767", "0.5244903", "0.5232788", "0.5225777", "0.5216651", "0.5175045", "0.5171443", "0.51703477"...
0.57970524
3
Plot the actual vs prediction
def cueb(aTLP): tPg9 = rLdf.DataFrame(columns=['Cost', 'prediction']) tPg9['Cost'] = koNC['2020':].iloc[:, -1][1:len(aTLP) + 1] tPg9['prediction'] = aTLP[:, -1] from keras.metrics import MeanSquaredError r8hN = MeanSquaredError() r8hN.update_state(oyIN.array(tPg9['Cost']), oyIN.array(tPg9['predi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xymb(YKHO):\n QrM1.title('Targets vs. Predictions')\n QrM1.plot(YKHO.T, label='Targets')\n QrM1.plot(YKHO.Y, label='Predictions')\n QrM1.xlabel('Sample number')\n QrM1.legend()\n QrM1.show()", "def K7tx(YKHO):\n PjQx = [YKHO.f(WKvO, YKHO.coefficients) for WKvO in YKHO.x_values]\n QrM1...
[ "0.8016363", "0.7812984", "0.7511848", "0.7478569", "0.7478569", "0.73420775", "0.7329184", "0.7304897", "0.7298501", "0.72744495", "0.7248611", "0.7196231", "0.7184339", "0.7168592", "0.7128529", "0.70985746", "0.70667577", "0.70377576", "0.700117", "0.6997515", "0.69759053"...
0.7273787
10
Returns the Significance of Correlation Difference between two targets.
def NjAo(dVPk, __n6, IlWN, xDBN, o8f_): y8ay = __n6[~__n6.index.isin(IlWN.index)] if dVPk == dVPk.PhiCoefficient: aL5O = rcLm(IlWN, xDBN, o8f_) wxlt = rcLm(y8ay, xDBN, o8f_) else: aL5O = 0 wxlt = 0 epBp = elYe(aL5O) JcGw = elYe(wxlt) exwG = len(IlWN) RoW0 = le...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FFkp(YKHO):\n ZBpW, TDPn = YKHO.to_cat(YKHO.origdst, YKHO.synthdst)\n v71H = YKHO.get_demographics(ZBpW)\n Msrc = YKHO.get_demographics(TDPn)\n I_7r = rTTp(v71H, theil_u=True, bias_correction=False, plot=False)\n s2W0 = rTTp(Msrc, theil_u=True, bias_correction=False, plot=False)\n oaLL = I_7r...
[ "0.60125244", "0.57761127", "0.577126", "0.577126", "0.57657313", "0.5726438", "0.56251526", "0.5592713", "0.55920583", "0.5577291", "0.5565306", "0.55225384", "0.5462655", "0.54496014", "0.54294765", "0.54237884", "0.53734756", "0.5338461", "0.53347975", "0.53312147", "0.532...
0.0
-1
returns True if 'value' (integer) is a prime number
def T1qg(BWXx): if BWXx < 4: return True IDsK = 2 A2Fp = BWXx - 1 ffYW = True Z7tR = IDsK while Z7tR < A2Fp: if BWXx % Z7tR == 0: ffYW = False Z7tR += 1 return ffYW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T1qg(BWXx: int) -> bool:\n if BWXx == 1:\n return False\n if BWXx <= 0:\n raise ValueError('Value must be greater than zero')\n for YRbF in range(2, int(BWXx ** (1 / 2)) + 1):\n if BWXx % YRbF == 0:\n return False\n return True", "def T1qg(BWXx):\n if BWXx < 2:\...
[ "0.86636627", "0.85487485", "0.78635824", "0.7715309", "0.76515335", "0.76185423", "0.75159156", "0.75149083", "0.7505286", "0.7480962", "0.7471573", "0.74652374", "0.74637496", "0.7446017", "0.73746896", "0.73026043", "0.7255695", "0.7242692", "0.72397643", "0.7232214", "0.7...
0.8067463
2
return a json list of stations from the dataset.
def Oj45(): niR4 = cuiw.query(njvh.station).all() sFlg = list(oyIN.ravel(niR4)) return pz3A(sFlg)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _TQ3():\n cuiw = DMju(eHpk)\n dixj = cuiw.query(njvh.name).all()\n cuiw.close()\n Oj45 = list(oyIN.ravel(dixj))\n return pz3A(Oj45)", "def Oj45():\n IeOM = cuiw.query(Ny6I.station).distinct().all()\n E1r2 = list(oyIN.ravel(IeOM))\n return pz3A(E1r2)", "def Oj45():\n cuiw = DMju(e...
[ "0.86685455", "0.86644834", "0.8661863", "0.8359953", "0.83221376", "0.83035815", "0.8287723", "0.8283134", "0.8267008", "0.8264919", "0.8253602", "0.8252809", "0.82200897", "0.82093203", "0.81995565", "0.81934214", "0.8187993", "0.81121486", "0.808024", "0.80782557", "0.8037...
0.82648444
10
Return a json list of Temperature Observations (tobs) for the previous year
def E5G1(): QqSd = JRYC.date.today() - JRYC.timedelta(days=365) fOmc = cuiw.query(Ny6I.tobs).filter(Ny6I.date >= QqSd).all() yEAp = list(oyIN.ravel(fOmc)) return pz3A(yEAp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LurG():\n glEG = cuiw.query(uxYy.tobs).all()\n return pz3A(glEG)", "def ydEi():\n cuiw = DMju(eHpk)\n dixj = cuiw.query(Ny6I.tobs).filter(Ny6I.date >= '2016-08-23').all()\n cuiw.close()\n xYVR = list(oyIN.ravel(dixj))\n return pz3A(xYVR)", "def E5G1():\n GnQ4 = cuiw.query(Ny6I.date)...
[ "0.8164726", "0.7804016", "0.77074", "0.76585793", "0.7623904", "0.73627263", "0.73342705", "0.7327496", "0.72380286", "0.71261024", "0.70932883", "0.705637", "0.7048202", "0.69966257", "0.6834264", "0.6800696", "0.6793342", "0.671503", "0.66767067", "0.665408", "0.6603448", ...
0.74057007
5
getelem(a) Get base parameter of lattice element.
def APlU(YKHO, mLGw): return YKHO.lat[mLGw]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _9uU(YKHO, qt2O, f6vU=None):\n if f6vU is not None:\n if not QGpr.iselement(f6vU):\n return None\n else:\n f6vU = YKHO.xml_root\n U6D_ = f6vU.find(qt2O)\n if U6D_ == 'None':\n return None\n return U6D_", "def XU85(k0lF, YRbF, r845):\n return k0lF[r845][YRbF]"...
[ "0.5991845", "0.5860682", "0.5698688", "0.5530531", "0.5530531", "0.5467117", "0.54570043", "0.54439616", "0.5406109", "0.5341983", "0.5339352", "0.52983683", "0.52809846", "0.5248648", "0.5230902", "0.51805675", "0.51779306", "0.5158748", "0.5099375", "0.5090803", "0.5086505...
0.6401
0
This just tests to make sure no errors are thrown on the HTML representation method for Common datasets
def yI95(): s7Dm = Cs6h._repr_html_() assert s7Dm is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNIa(YKHO):\n pass", "def GA8h(YKHO):\n pass", "def tO53(YKHO):\n _R2e = YKHO.E.html()", "def waBl(YKHO):\n qG74, Fmjt, xtFL, AF4A, Z5Q9, q0NK = n5vW(YKHO.counts1, 5, 10, 'pie')\n ThLH = qJuZ('Phylum', q0NK, 10, Z5Q9, AF4A, qG74, Fmjt, YKHO.dir_path, xtFL, 1, YKHO.prefs, YKHO.color_prefs, ...
[ "0.7282864", "0.67490876", "0.6688977", "0.6507584", "0.6369928", "0.6338411", "0.63325006", "0.62288535", "0.62077993", "0.6192887", "0.617277", "0.61692536", "0.6164598", "0.61624587", "0.61612856", "0.6114783", "0.6099281", "0.6083697", "0.60777336", "0.60775816", "0.60674...
0.64409775
4
Get str of date searched
def vn7D(YKHO, QePW): ULUV = '{} 00:00:00'.format(dict(QePW.query_params)['day'][0]) return ULUV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kXCV(YKHO):\n return ''", "def HK6U(YKHO, l5Ny='date'):\n _c1T = input(f'\\nEnter a {l5Ny} (MM-DD-YYYY): ')\n doIl = qcWV.strptime(_c1T, '%m-%d-%Y')\n try:\n _c1T = qcWV.strftime(doIl, '%m-%d-%Y')\n return _c1T\n except ValueError:\n input('\\nFormat of date must be MM-DD-...
[ "0.69267786", "0.680074", "0.6627418", "0.64060193", "0.6172169", "0.6167138", "0.6152603", "0.60899776", "0.6073025", "0.59811574", "0.59228396", "0.5922739", "0.59016067", "0.58822554", "0.58786404", "0.5805891", "0.5795461", "0.57821083", "0.5780801", "0.57745636", "0.5766...
0.6268092
4
Get str of last date month
def g6Qx(YKHO, ULUV): CjKC = qcWV.strptime(ULUV, gCuF.TIME_FORMAT) yHf1 = GRk0.monthrange(CjKC.year, CjKC.month)[1] gLAx = '{}-{}-{} 00:00:00'.format(CjKC.year, CjKC.month, yHf1) return gLAx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def un_K() -> str:\n JUFO = WPt4()\n return f'{JUFO.tm_year}-{JUFO.tm_mon - 1:02d}' if JUFO.tm_mon > 1 else f'{JUFO.tm_year - 1}-12'", "def vKLp():\n return (qcWV.now().replace(day=1) + enlf(months=1) + fCoM(days=-1)).strftime('%d-%m-%Y')", "def JtWs():\n return qcWV.now() + enlf(months=-1)", "de...
[ "0.854076", "0.8333281", "0.79105157", "0.7598895", "0.75700057", "0.7267156", "0.72514427", "0.7145211", "0.6900546", "0.6900546", "0.6884762", "0.6882453", "0.68651193", "0.6840585", "0.6794807", "0.6721219", "0.66455907", "0.6614086", "0.65608084", "0.6512545", "0.64799213...
0.733387
5
constructs a new polynomial instance based on the properties of an input polynomial useful for copying polynomials of other types
def AFDZ(Emd4, Wbaq: 'MultivariatePolynomialSingleABC', A9zy: Optional[ARRAY]=None) -> 'MultivariatePolynomialSingleABC': XP5J = Wbaq if A9zy is None: A9zy = XP5J.coeffs return Emd4(A9zy, XP5J.multi_index, XP5J.internal_domain, XP5J.user_domain, XP5J.grid)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GpmM(B2fa):\n from sklearn.preprocessing import PolynomialFeatures\n return PolynomialFeatures(**B2fa)", "def FIMM(YKHO, *qIxc, **B2fa):\n YKHO.polynomials = {}\n if len(qIxc) == 1 and isinstance(qIxc[0], list):\n d6pt = 0\n for Wbaq in qIxc[0]:\n YKHO.polynomials[d6pt] =...
[ "0.6568247", "0.64295983", "0.6386891", "0.63809913", "0.6318159", "0.6318154", "0.6301703", "0.61820567", "0.6155465", "0.6088631", "0.6083284", "0.6061221", "0.60523856", "0.6051641", "0.60095537", "0.60087276", "0.5999626", "0.59994143", "0.59961444", "0.59960514", "0.5917...
0.7281376
0
returns a possibly new polynomial instance with a complete multi index set
def ItBX(YKHO) -> 'MultivariatePolynomialSingleABC': kmX7 = YKHO.grid.make_complete() return YKHO._new_instance_if_necessary(kmX7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AFDZ(Emd4, Wbaq: 'MultivariatePolynomialSingleABC', A9zy: Optional[ARRAY]=None) -> 'MultivariatePolynomialSingleABC':\n XP5J = Wbaq\n if A9zy is None:\n A9zy = XP5J.coeffs\n return Emd4(A9zy, XP5J.multi_index, XP5J.internal_domain, XP5J.user_domain, XP5J.grid)", "def ne_c(YKHO, P5uO, c6ZQ: Op...
[ "0.6445853", "0.6440095", "0.6105801", "0.59238476", "0.59224", "0.5767178", "0.56442356", "0.55652624", "0.5477217", "0.54606646", "0.54151535", "0.5412537", "0.5401765", "0.5386115", "0.53524613", "0.53157145", "0.53133", "0.53120846", "0.5300932", "0.5290385", "0.5270622",...
0.54306006
10
helper to pretty format a number
def PeSQ(FGW3): try: FGW3 = int(FGW3) if FGW3 < 0: return '-' + PeSQ(-FGW3) Aofo = '' while FGW3 >= 1000: FGW3, DWMs = divmod(FGW3, 1000) Aofo = ',%03d%s' % (DWMs, Aofo) return '%d%s' % (FGW3, Aofo) except Exception: return ''
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r7XA(YKHO):\n return '(%s) %s-%s' % (YKHO.number[:3], YKHO.number[3:6], YKHO.number[6:])", "def r7XA(wEf2, rhd_=2):\n if wEf2 == 0:\n return '0'\n if wEf2 == _nfm:\n return 'T'\n return ('%.' + str(rhd_) + 'f') % (wEf2,)", "def UWvi(FGW3, oeNL=None):\n YXbZ = 0\n while abs(F...
[ "0.7286883", "0.7274925", "0.7108423", "0.6958404", "0.69194293", "0.6917193", "0.6893202", "0.6875911", "0.6856405", "0.68074435", "0.6792742", "0.6784017", "0.6757867", "0.67547905", "0.6744348", "0.6718731", "0.6682275", "0.6641084", "0.6636814", "0.66163814", "0.657756", ...
0.58519626
77
helper to convert internal utc time (used in pvr) to local timezone
def Y0Wo(cTyu): ZCQF = LgWF.get(cTyu) Elpc = ZCQF.to('local') return Elpc.format('YYYY-MM-DD HH:mm:ss')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JT1u():\n return GRk0.timegm(ITS7.gmtime())", "def yYe4(a1PO):\n a1PO = a1PO.replace(tzinfo=yl4j.tzutc())\n return a1PO.astimezone(yl4j.tzlocal())", "def biyN(rDtf):\n return FXGE.utc.localize(rDtf)", "def biyN(rDtf):\n return FXGE.utc.localize(rDtf)", "def QkJD(_c1T):\n return _c1T +...
[ "0.73778236", "0.7363043", "0.7347032", "0.7347032", "0.7282719", "0.727166", "0.722594", "0.71217173", "0.7119671", "0.7103872", "0.7093175", "0.7019702", "0.7018241", "0.69947916", "0.6982052", "0.69743246", "0.69650817", "0.69650817", "0.69650817", "0.6952742", "0.694198",...
0.6395096
51
returns localized version of the timestring (used in pvr)
def T6aj(cTyu): ppPa = LgWF.get(cTyu) ygE6 = ppPa.strftime(h0vI.getRegion('dateshort')) oMjx = ppPa.strftime(h0vI.getRegion('time').replace(':%S', '')) return (ygE6, oMjx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Bc_l():\n return ITS7.strftime(ix3z)", "def RW01():\n from time import strftime\n return strftime('%d-%m-%Y__%H-%M-%S')", "def m7L9() -> str:\n return ITS7.strftime(mxlI)", "def m7L9() -> str:\n return F803('%H:%M:%S')", "def EgnU():\n return ITS7.strftime('%A, %H:%M')", "def Px7F(Y...
[ "0.7170488", "0.71332073", "0.7044098", "0.69458014", "0.68391025", "0.6812707", "0.6692055", "0.6601628", "0.6581258", "0.65720856", "0.65688366", "0.65408266", "0.65278417", "0.6516151", "0.6498708", "0.64851916", "0.64040303", "0.6385953", "0.63613594", "0.6349379", "0.634...
0.694301
4
strip any newlines from a string
def xThC(l5Ny): return l5Ny.replace('\n', ' ').replace('\r', '').rstrip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n4ME(CBIr, str):\n return '\\n'.join([KCHu.rstrip() for KCHu in str.splitlines()])", "def deKr(vIwR):\n return '\\n'.join(map(str.lstrip, vIwR.split('\\n')))", "def QTbA(vIwR):\n return vIwR.replace('\\r\\n', '\\r').replace('\\n', '\\r')", "def iqVR(YKHO, vIwR):\n return vIwR.rstrip()", "de...
[ "0.7724323", "0.7688195", "0.7556427", "0.75498444", "0.7421198", "0.7318667", "0.7060322", "0.6971319", "0.69640416", "0.69640416", "0.69326794", "0.6895737", "0.6879088", "0.68717164", "0.68453085", "0.6803091", "0.6800217", "0.67892915", "0.6787174", "0.6770464", "0.675047...
0.7785894
0
Compute next action(s) given the observation(s)
def YPaw(YKHO, YPaw, rNYq, **EuTj): EuTj['act_step'] = YPaw jzdc, Ty9i, QTBn, Wteo = YKHO._evaluate([YKHO.act_action, YKHO.vf, YKHO.state, YKHO.act_neglogp], rNYq, **EuTj) if QTBn.size == 0: QTBn = None return (jzdc, Ty9i, QTBn, Wteo)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N2uJ(YKHO, XeOP):\n UlCL = YKHO.query_model(YKHO.s, XeOP)\n JxU2, LJUK, Mkmy, m1ww = UlCL[d_r6((a1PO[0] for a1PO in UlCL), YKHO.rng)]\n LJUK = oyIN.asarray(LJUK)\n for YRbF in range(len(YKHO.s) - 1):\n if LJUK[YRbF + 1] < YKHO.observation_space.high[YRbF + 1]:\n XP5J = YKHO.p_add[...
[ "0.751726", "0.7189361", "0.7164387", "0.67716944", "0.6678073", "0.6625705", "0.65701383", "0.6570136", "0.6534015", "0.6496407", "0.6493432", "0.64862645", "0.6484863", "0.6459856", "0.6455071", "0.6447397", "0.6432757", "0.6432757", "0.64319026", "0.643132", "0.643132", ...
0.0
-1
Onehot encode an integer series.
def _arT(KCHu, eWuJ=None): WmQN = KCHu.astype(str) ZrDu = rLdf.get_dummies(WmQN) WfCS = sorted(list(ZrDu.columns), key=float) ZrDu = ZrDu[WfCS] ZrDu.columns = ['relative_idx' + '[' + YRbF + ']' for YRbF in ZrDu.columns] if eWuJ is None: iN7h = 'relative_idx' + '[' + str(KCHu.min()) + ']'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zGX0(WKvO):\n hlel = oyIN.zeros((len(WKvO), 10))\n for YRbF, r845 in enumerate(WKvO):\n hlel[YRbF, r845] = 1\n return hlel", "def zGX0(WKvO):\n SxSJ = list(WKvO)\n for d6pt in oyIN.arange(len(SxSJ)):\n SxSJ[d6pt] = dmUM(WKvO[d6pt])[WKvO[d6pt]]\n return oyIN.array(SxSJ)", "de...
[ "0.8112516", "0.78948283", "0.7856221", "0.7837259", "0.7820989", "0.78016", "0.77620375", "0.7691719", "0.76888496", "0.7619088", "0.7613614", "0.76076925", "0.7599257", "0.7555001", "0.7548924", "0.7543132", "0.75408345", "0.7537357", "0.75200623", "0.7504133", "0.7484111",...
0.70329475
59
Returns a context manager/decorator that guarantee atomic execution of a given block or function across all configured and initialized SQLAlchemy instances.
def z1KK(YKHO, D6M9=True): return sjQm(*YKHO.values(), savepoint=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nx2i(JfyU):\n\n def h3Xc(*qIxc, **B2fa):\n YKHO = qIxc[0]\n with YKHO._create_db_session() as NCls:\n YKHO.db = NCls\n return JfyU(*qIxc, **B2fa)\n return h3Xc", "def z54K(FYKK):\n\n @zaGL(FYKK)\n def h3Xc(*qIxc, **B2fa):\n with Kh6j() as w2B8:\n ...
[ "0.6314164", "0.627175", "0.6228322", "0.6158349", "0.6077604", "0.59779936", "0.59688634", "0.5954343", "0.5901813", "0.58817196", "0.58795583", "0.58755004", "0.58521223", "0.58434993", "0.58433545", "0.5842696", "0.5821285", "0.5816716", "0.58128816", "0.5800979", "0.57541...
0.5486719
48
Sends email to santa on behalf of the person. Giving santa their name and information
def LMBG(z26C, a70H, Jtpl=None): if Jtpl: tO9_ = f'Your secret Santa for {a70H.name} with a budget of {Jtpl}' else: tO9_ = f'Your secret Santa for {a70H.name}' U4ZT = 'Your Foggy Secret Santa' MUz4 = 'punnyfoggersanta@gmail.com' jTXt = 'doubledragon1986' Ol8d = f'From: {MUz4}\nTo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g5dJ(Hlmj, hERe, d1WG, ClgV=False):\n bo34 = G9jH.getLogger('send_santa')\n bo34.debug('{} ({} will be notified that his/her lucky one is {}'.format(hERe['name'], hERe['email'], d1WG['name']))\n tO9_ = EESo('Ho ho ho!\\nThis is a Secret (Soup) Santa announcement!\\n\\n{friend}, your lucky one is {luck...
[ "0.713851", "0.65961343", "0.65635556", "0.64579463", "0.64423394", "0.63757616", "0.62781334", "0.62663877", "0.6189054", "0.6182647", "0.6182647", "0.6182647", "0.6182647", "0.6182647", "0.6182647", "0.6182647", "0.6182647", "0.61812836", "0.6178782", "0.6155948", "0.612116...
0.68543386
1
Returns a set of all keys that appear in wb but not wl.
def wncN(YPa5, lNm8): return set(YPa5) - set(lNm8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a_mA(vC9B):\n return {yzQ0 for yzQ0 in MJy5 if dwcn(yzQ0, vC9B)}", "def xzdj(sjXb):\n sjXb = frozenset(sjXb)\n return fDnw(GavU(YLnl(seET.contains, sjXb)))", "def VrKt(YKHO):\n return filter(lambda KCHu: KCHu[:1] != '~', YKHO.keys())", "def Umud(KoG3):\n return {yzQ0 for yzQ0 in MJy5 if A8...
[ "0.65524375", "0.63359576", "0.61149055", "0.5940325", "0.5868004", "0.5740896", "0.5734251", "0.57142144", "0.5685049", "0.56526905", "0.5638166", "0.55314076", "0.55303687", "0.5529077", "0.55194294", "0.55177146", "0.55043423", "0.5486384", "0.54800874", "0.54019105", "0.5...
0.6615817
0
If any two nodes in the nodelist are neighbors in graph G, it outputs TRUE, otherwise FALSE.
def Ub0l(Qubi, yvY1): gBjs = False for YRbF in range(len(Qubi)): for r845 in range(YRbF + 1, len(Qubi)): if yvY1.has_edge(Qubi[YRbF], Qubi[r845]) or yvY1.has_edge(Qubi[r845], Qubi[YRbF]): gBjs = True return gBjs return gBjs
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tHw0(Oa1e):\n if type(Oa1e) is not list:\n return False\n exwG = len(Oa1e)\n for ITiw in Oa1e:\n if type(ITiw) is not list:\n return False\n for Ty9i in ITiw:\n if type(Ty9i) is not int:\n return False\n if Ty9i < 0 or Ty9i >= exwG:\...
[ "0.71341264", "0.70365304", "0.6972505", "0.68687797", "0.68168116", "0.6760885", "0.67534477", "0.6735668", "0.6724635", "0.6702493", "0.6682289", "0.666764", "0.66403246", "0.6626178", "0.66110617", "0.66071963", "0.6589299", "0.65367943", "0.652308", "0.6504352", "0.650014...
0.8484914
0
Restore the model from a saved checkpoint.
def hLQf(YKHO, vbit): ZylS.reset_default_graph() YKHO.init_session() aqBD = ZylS.train.get_checkpoint_state(vbit) YKHO.saver = ZylS.train.import_meta_graph('{}.meta'.format(aqBD.model_checkpoint_path)) YKHO.saver.restore(YKHO.sess, aqBD.model_checkpoint_path) print('Model restored from {}'.forma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLQf(YKHO, vauY):\n V1C0 = Hy7s.path.join(vauY, 'model_weights')\n YKHO.model.load_weights(V1C0)", "def wBIE(YKHO, vauY):\n raise NotImplementedError", "def wBIE(YKHO):\n if YKHO._restored_model:\n return\n with YKHO.eval_graph.graph.as_default():\n x8fl = YKHO._find_last_check...
[ "0.8344333", "0.8252216", "0.8184343", "0.80984694", "0.8080369", "0.8038346", "0.7839738", "0.7704049", "0.7701672", "0.7567944", "0.75634336", "0.75435215", "0.7514873", "0.749713", "0.7457411", "0.7426517", "0.731789", "0.72922343", "0.72922343", "0.72723144", "0.7207922",...
0.79543144
6
Construct the DiscoGAN operations.
def DszH(YKHO): if YKHO.attn: YKHO.Attn = oLrq(YKHO.dim_b1, channels=YKHO.channels, name='Attn') YKHO.predsb1 = YKHO.Attn(YKHO.xb1, is_training=YKHO.is_training) YKHO.predsb2 = YKHO.Attn(YKHO.xb2, is_training=YKHO.is_training, reuse=True) YKHO.loss_attn = ZylS.reduce_mean(ZylS.nn.sig...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lXDR(YKHO):\n YKHO.d_model.trainable = False\n Mrvv, ODDr = YKHO.g_model.input\n EO7_ = YKHO.g_model.output\n YfIz = YKHO.d_model([EO7_, ODDr])\n YKHO.gan_model = wOed([Mrvv, ODDr], YfIz)\n y7GR = qhl4(lr=0.0002, beta_1=0.5)\n YKHO.gan_model.compile(loss='binary_crossentropy', optimizer=y7...
[ "0.7037307", "0.6773145", "0.6642887", "0.6610782", "0.64606017", "0.64562225", "0.6410779", "0.633772", "0.62687176", "0.61853826", "0.6172082", "0.6135871", "0.61321867", "0.6119659", "0.61158615", "0.61078185", "0.6082727", "0.60760665", "0.6072108", "0.60670644", "0.60578...
0.58925456
31
Fetches the DataLoader object for each type in types from task. In super resolution tasks there is no such thing like task. So it is replaced with totally Random datasets. TODO for MAML
def Lv_X(SnBA, J67H, YMBJ): n4gt = 2 mnQt = '_test' aPSI = '_val' hxDW = {} for lpha in ['train', 'test', 'val']: if lpha in SnBA: if lpha == 'train': gzVs = pVAc(cmHf(vVCL + '/' + YMBJ + '/LR', vVCL + '/' + YMBJ + '/HR', n4gt), batch_size=n4gt, shuffle=True, num_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BHQB(SnBA, tETI, NArs):\n hxDW = {}\n J0EE = {}\n for lpha in ['train', 'val', 'test']:\n if lpha in SnBA:\n pmON = Hy7s.path.join(tETI, '{}'.format(lpha))\n if lpha == 'train':\n XxFT = x_b5(pmON, UmpV)\n RFg8 = None\n if NArs....
[ "0.72427875", "0.72416854", "0.7105497", "0.7013546", "0.6925535", "0.6925535", "0.6925535", "0.6925535", "0.6925535", "0.6925535", "0.6925535", "0.6925535", "0.6925535", "0.69101447", "0.69042706", "0.68658936", "0.6864223", "0.6858604", "0.6823818", "0.67694664", "0.6760154...
0.72576153
0
Returns the name of the class
def oWZ3(YKHO): return YKHO.__class__.__name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _2sc(Emd4):\n return Emd4.__name__", "def _2sc(Emd4):\n return Emd4.__name__", "def Um9M(YKHO):\n CtJU = YKHO.__class__.__name__\n return str(CtJU)", "def vrep(YKHO):\n return YKHO.__class__.__name__", "def pnQ7(YKHO):\n exwG = type(YKHO).__name__\n return exwG", "def _2sc(YKHO) ...
[ "0.8928834", "0.8928834", "0.8915145", "0.8912482", "0.88998675", "0.883571", "0.8759982", "0.87531096", "0.8733105", "0.862729", "0.8447899", "0.83121455", "0.82482237", "0.8237201", "0.8175965", "0.8171621", "0.8104922", "0.808653", "0.808653", "0.808653", "0.808653", "0....
0.7973398
27
Get incremental update for Min aggregate.
def vTK5(YKHO, KAOR, Tuqy, AOBR): Qj8D = YKHO._get_value_from_instance(KAOR) if Tuqy == FSIO: return YKHO._get_full_aggregate(KAOR, exclude=True) if Tuqy == B6kB: return jltT(CBDP(vuvg(YKHO.field), Qj8D), Qj8D) GJB6 = YKHO._get_value_from_instance(AOBR) if GJB6 > Qj8D: return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L7gf(YKHO):\n return YKHO._lift(lambda Z9rn: Z9rn.cummin)", "def a_DU(YKHO):\n return YKHO.min_increments", "def min(YKHO):\n return YKHO._reduce_for_stat_function(vuvg.min, only_numeric=False)", "def min(YKHO):\n return YKHO.__min", "def min(YKHO):\n return min(YKHO)", "def min(YKHO) ...
[ "0.6708575", "0.65667766", "0.65467554", "0.6482662", "0.6477188", "0.6454097", "0.6454097", "0.64439785", "0.6440469", "0.6390353", "0.6390353", "0.6377975", "0.6377975", "0.63663465", "0.6247068", "0.6229548", "0.61922675", "0.61847126", "0.61845815", "0.6175511", "0.611623...
0.62039864
16
Get aggregate subquery for full recompute of min/max aggregates.
def YFoh(YKHO, KAOR: models.Model, DNHh: bool=False) -> h8nf[ypAs.Subquery]: m0le = YKHO._get_foreign_object(KAOR) if m0le is None: return None qvfp = T8ck((YKHO.foreign_key, ypAs.OuterRef('pk'))) HdUp = type(KAOR).objects.filter(qvfp & YKHO.query).values(YKHO.foreign_key) if DNHh: H...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e88K():\n return Fk_g(agg_col='col_a', values_col='col_b', aggregates=['min', 'max', 'avg', 'sum'])", "def Gqro(YKHO, __n6):\n if not YKHO.needs_aggregate:\n sCgM('no aggregate calculation needed', level='warning')\n bo34.warning('no aggregate calculation needed')\n return\n if ...
[ "0.6670844", "0.56717455", "0.56564933", "0.56390107", "0.56003207", "0.55667055", "0.55291814", "0.5474393", "0.5456852", "0.5408077", "0.5386999", "0.5335678", "0.530763", "0.5297721", "0.5293099", "0.5288855", "0.52514994", "0.5250286", "0.52284753", "0.5212568", "0.519593...
0.60166913
1
Compute softmax values for each sets of scores in x.
def N93T(WKvO): uw5A = oyIN.exp(WKvO - oyIN.max(WKvO)) return uw5A / uw5A.sum()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7796294", "0.7760558", "0.7759004", "0.77567077", "0.76577055", "0.76577055", "0.76577055", "0.76577055", "0.7585655", "0.743143", "0.7407772", "0.73941606", "0.7358175", "0.73174125", "0.72689486", "0.72623265", "0.72614294", "0.7256868", "0.723019", "0.7214918", "0.72017...
0.70900273
51
Returns the number of particles, if available.
def sKNI(YKHO) -> h8nf[AzJI[int, int]]: return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sKNI(YKHO) -> int:\n return len(YKHO.particles)", "def szAg(YKHO):\n return YKHO.nparticles", "def szAg(YKHO):\n return len(YKHO.particles.position[:, 0])", "def sKNI(YKHO) -> AzJI[int, int]:\n return (YKHO.num_alpha, YKHO.num_beta)", "def ccuJ(YKHO):\n return len(YKHO._particles_activat...
[ "0.8590967", "0.79944277", "0.75770855", "0.7312709", "0.72170895", "0.6770507", "0.65453345", "0.6338748", "0.6315498", "0.6279628", "0.6253482", "0.6234182", "0.62217486", "0.61973864", "0.61826366", "0.6174397", "0.6140656", "0.6120221", "0.6075899", "0.6072864", "0.607286...
0.85676587
1
Calculate the approximate distance between two points, given their Lat/Lon values
def pa6_(GgQG, igSk, tk0B, TGuP): import math from shapely.geometry import Point if igSk == TGuP and GgQG == tk0B: return 0.0 lCHq = Point(GgQG, igSk) ANJu = Point(tk0B, TGuP) return math.acos(math.sin(math.radians(lCHq.y)) * math.sin(math.radians(ANJu.y)) + math.cos(math.radians(lCHq.y)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eve5(igSk, GgQG, TGuP, tk0B):\n return PZ77.WGS84.Inverse(igSk, GgQG, TGuP, tk0B)['s12']", "def bT6T(igSk: Decimal, GgQG: Decimal, TGuP: Decimal, tk0B: Decimal) -> ZjSO:\n igSk = epAf.radians(igSk)\n GgQG = epAf.radians(GgQG)\n TGuP = epAf.radians(TGuP)\n tk0B = epAf.radians(tk0B)\n H91H = ...
[ "0.8199098", "0.7822446", "0.78014714", "0.7679517", "0.7670383", "0.76700294", "0.764351", "0.7591339", "0.757111", "0.7564444", "0.75632316", "0.7553037", "0.7544618", "0.7542004", "0.7538206", "0.7536084", "0.75343615", "0.752787", "0.75252414", "0.7522725", "0.75122535", ...
0.7367009
37
Calculate the average rating of a user
def e4Sn(resj): d0Qf = resj[0] GNPv = 0.0 CIk0 = len(resj[1]) if CIk0 == 0: return (d0Qf, 0.0) for ZfUD in resj[1]: GNPv += ZfUD[1] return (d0Qf, 1.0 * GNPv / CIk0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ooAw(e4x7):\n Mxe4 = {}\n for CBIr, BWXx in e4x7.items():\n sum = 0\n MUAM = 0\n for NSCJ, RrWF in BWXx.items():\n sum += float(RrWF)\n MUAM += 1\n S8vG = sum / MUAM\n Mxe4[CBIr] = S8vG\n return Mxe4", "def Xv2L(YKHO, CBIr):\n return i05Q(Y...
[ "0.80205566", "0.7939321", "0.7926681", "0.7753855", "0.76854134", "0.76696795", "0.7651114", "0.7589814", "0.7562439", "0.7513138", "0.74459785", "0.7426623", "0.74214137", "0.7368612", "0.73571825", "0.7303121", "0.71451694", "0.7126474", "0.708925", "0.7052273", "0.6982415...
0.7985902
1
Parse an unsigned 8bit integer from the bytes.
def etTt(nPrm): BWXx = MZ6z(vqOS.UINT8_BYTE_FORMAT, nPrm[:1])[0] return (BWXx, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zM92(D92J: typing.List[int]) -> int:\n return sqoO(D92J, False)", "def eCLU(YKHO):\n bytes = YKHO.data[:1]\n BWXx = BlNT.unpack('!B', bytes)[0]\n YKHO.data = YKHO.data[1:]\n return BWXx", "def XgwF(BWXx: bytes, dmhX: str='little', Zihr: bool=False) -> int:\n return MZ6z(BWXx, 8, dmhX, Zih...
[ "0.73713845", "0.69921416", "0.67187464", "0.6702818", "0.66954696", "0.6689113", "0.6662149", "0.66144216", "0.66144216", "0.6565723", "0.64349794", "0.6393906", "0.6361286", "0.63568467", "0.63192356", "0.6304266", "0.62671477", "0.619058", "0.61608195", "0.6131338", "0.611...
0.7273293
1
Parse a signed 8bit integer from the bytes.
def ZdU2(nPrm): BWXx = MZ6z(vqOS.INT8_BYTE_FORMAT, nPrm[:1])[0] return (BWXx, 1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x3tI(odS9):\n hkxX = [ord(Fg_i) for Fg_i in odS9]\n if len(hkxX) > 1 and (hkxX[0] == 255 and hkxX[1] & 128 or (hkxX[0] == 0 and (not hkxX[1] & 128))):\n raise A28M('ASN1 syntax error')\n tbib = hkxX[0] & 128\n if tbib:\n for YRbF in range(len(hkxX)):\n hkxX[YRbF] = 255 - hk...
[ "0.6990185", "0.6858169", "0.6797516", "0.6487372", "0.6438777", "0.6365395", "0.6346872", "0.6334926", "0.632714", "0.6302889", "0.6258864", "0.62514436", "0.62475884", "0.6219506", "0.6163626", "0.61533463", "0.613502", "0.61292875", "0.6127012", "0.6121435", "0.61190104", ...
0.69142514
1
Send an email to a user notifying them that their account has been created.
def wALM(CBIr): if 'research' in CBIr.get_domains(): zrIJ = 'research' else: zrIJ = 'academic' U4ZT = 'ECE/CIS Account Created' BGli = 'https://www.eecis.udel.edu/service' Ol8d = 'Your ECE/CIS %s account has been created with the username: %s\n\n' % (zrIJ, CBIr.username) Ol8d += ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V2pi(YKHO):\n if gCuF.NOTIFY_NEW_REG:\n Br5Q = gCuF.NOTIFY_NEW_REG\n Ol8d = 'Greetings,<br><br>\\n\\nA new vehicle registration has been submitted by %s.<br><br>\\n\\nGo here to view or edit the request: <br>\\n<a href=\"%s\">%s</a>\\n<br><br>\\nSincerely,<br><br>\\nThe Janelia Parking Permit ...
[ "0.7724701", "0.73471016", "0.72438747", "0.72387886", "0.7115087", "0.70752954", "0.7019787", "0.69922435", "0.69350284", "0.69245523", "0.6917842", "0.6917842", "0.6917842", "0.6917842", "0.6917842", "0.6917842", "0.6917842", "0.6917842", "0.689684", "0.6867531", "0.6866085...
0.747938
1
get the "kind" attribute for a parse node
def pynm(tTpl, L03z): TScW = Kvk0.spell_sc(tTpl.sc) if TScW == 'QuoteBlk': return RcRn.quote if TScW == 'ParenBlk': return RcRn.paren if tTpl.check_sc(C3L7): return RcRn.punct if L03z == lY3E.queryclause or L03z == lY3E.queryphrase or L03z == lY3E.queryword: return Rc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eJTR(YKHO):\n return YKHO.get_data('kind')", "def A3bn(YKHO):\n return YKHO.get_parameter('kind')", "def eJTR(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'kind')", "def eJTR(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'kind')", "def eJTR(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'kind'...
[ "0.6558836", "0.6395545", "0.6094172", "0.6094172", "0.6094172", "0.6094172", "0.6061718", "0.6061718", "0.60044855", "0.60044855", "0.60044855", "0.60044855", "0.60044855", "0.60044855", "0.60044855", "0.60044855", "0.60044855", "0.60044855", "0.60044855", "0.60044855", "0.6...
0.53693974
63
This method accepts a list of graph nodes, and returns a corresponding list of parse nodes.
def eBbV(yv6U, _AKB, JvR2): HvfY = [] for tTpl in yv6U: if tTpl.msnode is not None: HvfY.append(tTpl.msnode) continue l5Ny = _d3B.src[tTpl.S:tTpl.E + 1] if tTpl.is_verb() else Kvk0.spell(tTpl.wrds) L03z = uOlo(tTpl, l5Ny) if JvR2 != -1: assert ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SZFh(YKHO, d7X3: List[ast.ASTNode]) -> x1iM[jZ4I.ASTNode]:\n pass", "def ax3Q(Qubi):\n EgY3 = Qubi.split(',')\n GmCl = []\n for Q6kx in EgY3:\n if '[' in Q6kx and ']' in Q6kx:\n Q6kx = ZTyZ(Q6kx)\n if type(Q6kx) is list:\n GmCl = GmCl + Q6kx\n else:\n ...
[ "0.6344931", "0.62818646", "0.62697077", "0.6229976", "0.62220335", "0.6070117", "0.6014768", "0.59697944", "0.5886597", "0.5886088", "0.58427227", "0.58322626", "0.5814805", "0.5812239", "0.5750342", "0.57266974", "0.5721351", "0.5695989", "0.5678007", "0.5670684", "0.565537...
0.5231977
86
Create a view that returns a single Product object based on the product ID (pk) and render it to the 'productdetail.html' template. Or return a 404 error if the post is not found. User can add a review too
def mbwC(QePW, _sei): Lx3t = Iofl(msfn, pk=_sei) if QePW.method == 'POST': if not QePW.user.is_authenticated: return vKnz('login') else: L03z = oiyK(QePW.POST) if L03z.is_valid(): Slbv = L03z.save(commit=False) Slbv.user = QePW....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ocFo(QePW, _sei=None, *qIxc, **B2fa):\n KAOR = msfn.objects.get_by_id(id=_sei)\n if not KAOR:\n raise uhgT(\"The get by id returned a None. Product doesn't exist\")\n QpfX = {'object': KAOR}\n return _1tc(QePW, 'products/detail.html', QpfX)", "def mbwC(QePW, Mc9N):\n Lx3t = Iofl(msfn, p...
[ "0.77373123", "0.755058", "0.74416995", "0.7310316", "0.7305183", "0.7245424", "0.7184846", "0.7181551", "0.69021404", "0.68619937", "0.678674", "0.6697914", "0.6680278", "0.6665663", "0.66148835", "0.6566058", "0.6562269", "0.64760804", "0.6450543", "0.63844514", "0.6343725"...
0.661468
15
Constructor. Build point from x and y and z
def FIMM(YKHO, WKvO=oyIN.float32(0.0), LVAh=oyIN.float32(0.0), epBp=oyIN.float32(0.0)): YKHO._x = oyIN.float32(WKvO) YKHO._y = oyIN.float32(LVAh) YKHO._z = oyIN.float32(epBp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, WKvO, LVAh, epBp):\n YKHO.x = WKvO\n YKHO.y = LVAh\n YKHO.z = epBp", "def JWId(Emd4, WKvO, LVAh, epBp):\n YEnM = Emd4()\n YEnM._x = WKvO\n YEnM._y = LVAh\n YEnM._z = epBp\n return YEnM", "def b4Nj(YKHO, wF0t, raMf, t6zY):\n YKHO.x = wF0t\n YKHO.y = raMf\n YKHO.z ...
[ "0.78146017", "0.7782909", "0.77533406", "0.774728", "0.76041216", "0.7596423", "0.73721755", "0.72505987", "0.7228292", "0.711185", "0.7062159", "0.69915956", "0.69110364", "0.6847511", "0.6774434", "0.66863275", "0.6660342", "0.66444695", "0.66075885", "0.65997636", "0.6552...
0.71242756
9
Given the index i, returns the proper item
def OP2O(YKHO, YRbF): if YRbF < EcVT: raise IndexError('point3d::__getitem__: negative index {0}'.format(YRbF)) if YRbF == EcVT: return YKHO._x if YRbF == fuBA: return YKHO._y if YRbF == Nk6w: return YKHO._z raise IndexError('point3d::__getitem__: index too large {0}'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OP2O(YKHO, YRbF):\n return YKHO._items[YRbF]", "def OP2O(YKHO, YRbF):\n return YKHO.get(YRbF, YRbF + 1)", "def kTCt(YKHO, d6pt: int) -> sb5H:\n return YKHO.index_to_item[d6pt]", "def OP2O(YKHO, YRbF):\n return YKHO._ar[YRbF]", "def OP2O(YKHO, YRbF):\n if YRbF < YKHO.n:\n return YK...
[ "0.8097822", "0.78811437", "0.7584663", "0.7531509", "0.7465457", "0.7418461", "0.7394784", "0.73842716", "0.7314473", "0.72610945", "0.7236078", "0.723439", "0.72247165", "0.72010475", "0.7185192", "0.71575785", "0.71551096", "0.70876527", "0.70601946", "0.70598936", "0.7042...
0.0
-1
Canny edge detector instead of a Laplacian kernel is that the edges are all single pixel edges in the resulting image
def u9sK(LNo8): hlel = oyIN.array(LNo8) aQsQ = XC5k.medianBlur(hlel, 5) p8gj = 100 mC4V = XC5k.Canny(aQsQ, p8gj, p8gj * 2) WZcn = oyIN.ones((1, 1), oyIN.uint8) SnPE = XC5k.dilate(mC4V, WZcn) TGlH = XC5k.bitwise_not(SnPE) U5bT, knl1 = XC5k.threshold(TGlH, 127, 255, 0) Iowl, gEYm = XC5...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xD4o(UFp3):\n mC4V = XC5k.Canny(UFp3, 100, 200)\n return mC4V", "def u9sK():\n _z_f = XC5k.imread('images\\\\OC14.tiff')\n mC4V = XC5k.Canny(_z_f, 100, 200)\n _z_f = XC5k.resize(_z_f, (612, 512))\n mC4V = XC5k.resize(mC4V, (612, 512))\n XC5k.imshow('Original', _z_f)\n XC5k.imshow('Edg...
[ "0.7614531", "0.75476444", "0.75039446", "0.7399708", "0.73855066", "0.73777705", "0.734354", "0.73343897", "0.7332954", "0.7253346", "0.7253346", "0.7253346", "0.7253346", "0.7253346", "0.7253346", "0.7253346", "0.7253346", "0.7253346", "0.7253346", "0.7253346", "0.7253346",...
0.76259655
0
Function goes through a text and uses NLTK to tokenize it, grabbing all parts of speech contained in the types_to_remove list. Returns a List of lists of a part of speech (string) and a list of those words.
def HKpl(l5Ny, qhun): SnBA = kdPk(l5Ny) f1BO = [] for d6pt in range(len(qhun)): f1BO.append([qhun[d6pt], []]) for b7m5 in SnBA: GIN8, oeNL = b7m5 if oeNL in qhun: GfdN = qhun.index(oeNL) f1BO[GfdN][1].append(GIN8) return f1BO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bPC0(l5Ny, qhun):\n s2mk = dFss(l5Ny)\n s2mk = yLef(s2mk)\n pKol = kdPk(s2mk)\n f1BO = []\n acax = 0\n bRsY = tuKI.randint(1, 5)\n while acax < len(pKol):\n GIN8, oeNL = pKol[acax]\n kSdD = False\n if oeNL in qhun:\n wYEv = True\n else:\n w...
[ "0.7889726", "0.6906226", "0.6835494", "0.66882706", "0.66818017", "0.66793203", "0.6669046", "0.6599055", "0.6575317", "0.6519294", "0.6505143", "0.6498522", "0.6491718", "0.64866424", "0.64862865", "0.6466624", "0.645005", "0.6441251", "0.6433838", "0.6429249", "0.6428838",...
0.8367128
0
Function takes a text (List of strings) and removes a random amount of words that are parts of speech specified in types_to_remove_list Returns a new list of strings with some words removed and replaced by a string denoting thier parts of speech
def bPC0(l5Ny, qhun): s2mk = dFss(l5Ny) s2mk = yLef(s2mk) pKol = kdPk(s2mk) f1BO = [] acax = 0 bRsY = tuKI.randint(1, 5) while acax < len(pKol): GIN8, oeNL = pKol[acax] kSdD = False if oeNL in qhun: wYEv = True else: wYEv = False ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HKpl(l5Ny, qhun):\n SnBA = kdPk(l5Ny)\n f1BO = []\n for d6pt in range(len(qhun)):\n f1BO.append([qhun[d6pt], []])\n for b7m5 in SnBA:\n GIN8, oeNL = b7m5\n if oeNL in qhun:\n GfdN = qhun.index(oeNL)\n f1BO[GfdN][1].append(GIN8)\n return f1BO", "def tF...
[ "0.7764373", "0.70716745", "0.67324823", "0.6561459", "0.6539524", "0.6475677", "0.6463758", "0.6456611", "0.64456904", "0.6440487", "0.6422589", "0.6383632", "0.6383245", "0.63535583", "0.6319063", "0.62903494", "0.61995286", "0.6164367", "0.6120431", "0.6088785", "0.60762",...
0.8275887
0
Shorten a list computing the average over subsets of entries
def KNnl(eJh7: np.ndarray, zNig: int) -> oyIN.ndarray: yMhW = epAf.ceil(len(eJh7) / zNig) buFC = yMhW * epAf.floor(len(eJh7) / yMhW) return oyIN.mean(eJh7[:buFC].reshape(-1, yMhW), axis=1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qqgr(list):\n return sum(list) / len(list)", "def S8vG(yv6U):\n return sum(yv6U) / len(yv6U)", "def qqgr(vC9B):\n return sum(vC9B) / float(len(vC9B))", "def qqgr(yv6U: list):\n return sum(yv6U) / len(yv6U)", "def qqgr():\n JBMS = sum(uBiB) / len(uBiB)\n return JBMS", "def S8vG(vC9B)...
[ "0.7302903", "0.7191029", "0.71259147", "0.70965517", "0.700189", "0.6935504", "0.6935186", "0.6891205", "0.68835086", "0.6861036", "0.68507874", "0.6789785", "0.6750113", "0.67335176", "0.6702216", "0.66694134", "0.65973353", "0.6574791", "0.6488216", "0.6488024", "0.6486529...
0.6638508
16
Update this config manager with values from the config dict. All values will be given the priority and source if they have higher priority than the current values.
def YYiC(YKHO, GPtr, Ey19, JZXy): for H5ew, BWXx in GPtr.items(): YKHO._config[H5ew].add(BWXx, Ey19, JZXy)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YYiC(YKHO, LpmY):\n YKHO.config = E7Fg(YKHO.config, LpmY)", "def fOck(YKHO):\n super().init_config()\n for xqoZ in YKHO.parameters():\n if xqoZ.name == 'source':\n continue\n YKHO.add_config_item(xqoZ.name, saver=lambda XP5J=xqoZ: getattr(XP5J, 'value'), loader=lambda WKvO, ...
[ "0.6581132", "0.6492026", "0.6486105", "0.6463663", "0.64563775", "0.6453161", "0.639583", "0.6379144", "0.63316506", "0.63113517", "0.6304261", "0.62811786", "0.62701225", "0.62667394", "0.6224454", "0.62000585", "0.61864936", "0.6138734", "0.6127429", "0.61130834", "0.61056...
0.79682726
0
Expand the value by recursively expanding all the references in the value. This only works on string or multiple strings values and if a non string value is referenced it will be converted to string.
def kwmy(YKHO, BWXx, ounV=False): if ounV: return tuple((YKHO._expand_value(ZfUD) for ZfUD in BWXx)) elif isinstance(BWXx, str): ZoV0 = BWXx for kUBT in ZbWC.finditer('\\${([\\w\\d.]+)}', BWXx): H5ew = kUBT.group(1) Npeo = '${{{key}}}'.format(key=H5ew) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PWgb(YKHO):\n if len(YKHO.children) == 0:\n return YKHO.val\n NArs = ','.join([aUGN.flatten() for aUGN in YKHO.children])\n return '%s(%s)' % (YKHO.val, NArs)", "def lHli(YKHO, KCHu, fvyW):\n if PP69(KCHu):\n try:\n Esro, j93S = KCHu[:2]\n except (IndexError, Value...
[ "0.57368153", "0.5705461", "0.5512213", "0.53706056", "0.5309204", "0.52790105", "0.52620554", "0.51775265", "0.5127051", "0.4995942", "0.49663898", "0.48598605", "0.4855586", "0.4831368", "0.48134065", "0.48129892", "0.48128045", "0.4805924", "0.48058614", "0.4788923", "0.47...
0.7185337
0
Returns a numpy array of register bytes to ping DAC register
def DRSi(Emd4): WpwY = oyIN.zeros(Emd4.REG_PACKET_LEN, dtype='<u1') WpwY[0] = 0 WpwY[1] = 1 return WpwY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DRSi(Emd4):\n WpwY = oyIN.zeros(Emd4.REG_PACKET_LEN, dtype='<u1')\n WpwY[0] = 1\n WpwY[1] = 1\n WpwY[51] = Emd4.MONITOR_0\n WpwY[52] = Emd4.MONITOR_1\n return WpwY", "def fNOC(Emd4):\n WpwY = oyIN.zeros(Emd4.REG_PACKET_LEN, dtype='<u1')\n WpwY[0] = 0\n WpwY[1] = 1\n return WpwY"...
[ "0.67478544", "0.6577787", "0.6003289", "0.5949199", "0.5781544", "0.5698234", "0.56073993", "0.55969465", "0.55628383", "0.5540556", "0.55306125", "0.5519226", "0.55055386", "0.54764205", "0.5466178", "0.54622555", "0.5440598", "0.54204446", "0.5419586", "0.54119444", "0.541...
0.72466743
0
Get a runner for this board
def ISKL(YKHO, ZgWB, U34r): poLx = U34r.get('mem', None) Cm3M = U34r.get('startDelay', 0) IqiL = U34r.get('sram', None) WL52 = YKHO.RUNNER_CLASS(YKHO, ZgWB, Cm3M, poLx, IqiL) return WL52
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c1qO(YKHO, DDAX: int=0) -> VnWP:\n return YKHO.runners[DDAX]", "def c1qO(D5gV, w2IS, XQUU):\n return ZAow._get_cls(XQUU)(D5gV, w2IS)", "def WL52(YKHO) -> h8nf[qe4Y.Input['ElastigroupIntegrationGitlabRunnerArgs']]:\n return qe4Y.get(YKHO, 'runner')", "def qI4E(YKHO, _eu6):\n return nNTj.deseri...
[ "0.78009766", "0.6505204", "0.64436895", "0.6112908", "0.6088012", "0.60428387", "0.59508646", "0.59508646", "0.5945104", "0.58690155", "0.58620715", "0.58474237", "0.5767974", "0.56976616", "0.5669445", "0.56272554", "0.561763", "0.55884075", "0.550557", "0.549982", "0.54984...
0.5115727
52
Returns a numpy array of register bytes to ping DAC register
def DRSi(Emd4): WpwY = oyIN.zeros(Emd4.REG_PACKET_LEN, dtype='<u1') WpwY[0] = 1 WpwY[1] = 1 WpwY[51] = Emd4.MONITOR_0 WpwY[52] = Emd4.MONITOR_1 return WpwY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DRSi(Emd4):\n WpwY = oyIN.zeros(Emd4.REG_PACKET_LEN, dtype='<u1')\n WpwY[0] = 0\n WpwY[1] = 1\n return WpwY", "def fNOC(Emd4):\n WpwY = oyIN.zeros(Emd4.REG_PACKET_LEN, dtype='<u1')\n WpwY[0] = 0\n WpwY[1] = 1\n return WpwY", "def i9DH():\n xi8C.setup(KgSr, xi8C.IN)\n xi8C.outp...
[ "0.72464156", "0.6576534", "0.6002863", "0.59489465", "0.57810265", "0.5698021", "0.56062615", "0.55950886", "0.5561551", "0.5539806", "0.55303484", "0.55187076", "0.550427", "0.54749215", "0.54661095", "0.5462384", "0.5440117", "0.54201937", "0.5419437", "0.541004", "0.54092...
0.67472947
1
Conservative estimate of the length of a sequence in seconds.
def JBMY(ccKF): L2MH = sum((LsEx.cmdTime_cycles(Z9rn) for Z9rn in ccKF)) return L2MH * 4e-08
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n if YKHO.running:\n return QcTV\n else:\n return YKHO.end - YKHO.start", "def kNTG(YKHO):\n return YKHO.bpm / 60.0 / YKHO.period", "def sQPi(YKHO):\n return YKHO._time_length", "def rgZA(YKHO):\n return YKHO.lc.time[-1] - YKHO.lc.time[0]", "def yall(YKHO) -> in...
[ "0.6998882", "0.68524516", "0.6797562", "0.6761214", "0.67362887", "0.6660412", "0.64433813", "0.6378702", "0.63394797", "0.6308439", "0.6295415", "0.6287739", "0.627436", "0.6274238", "0.6220752", "0.6211181", "0.61874086", "0.6177266", "0.6162294", "0.6150027", "0.6148058",...
0.0
-1
Update eines bestimmten chatmessageObjekts.
def NpNj(YKHO, id): Drhh = hJd7() Bcwd = KINM.from_dict(nNXP.payload) if Bcwd is not None: Bcwd.set_id(id) Drhh.save_chatmessage(Bcwd) return ('', 200) else: return ('', 500)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, hxLO):\n N1p7 = YKHO._cnx.cursor()\n oUZx = 'UPDATE chatmessage ' + ' SET text=%s,chat_id=%s WHERE id=%s'\n nPrm = (hxLO.get_text(), hxLO.get_chat_id(), hxLO.get_id())\n N1p7.execute(oUZx, nPrm)\n YKHO._cnx.commit()\n N1p7.close()", "def nVaV(YKHO, nPrm):\n return YKHO.__json_...
[ "0.7388177", "0.71790093", "0.69108164", "0.6665034", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6545039", "0.6486534", ...
0.57174474
84
Selects best half of each population and saves n individuals from this selection for migration. Creates a new dictionary for index, fit values and weights.
def oKCU(mFTL, fZsl): Jjfu = {} Gu2M = {} dq_T = {} for YRbF in range(bdTR): Jjfu[YRbF] = _eVy.nlargest(int(tV6i / 2), range(tV6i), key=lambda WKvO: fZsl[YRbF][WKvO]) Jjfu[YRbF] = tuKI.sample(Jjfu[YRbF], GpeF) Gu2M[YRbF] = list(map(lambda LVAh: fZsl[YRbF][LVAh], Jjfu[YRbF])) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KTip(YKHO, rx1V):\n for eK5b in range(rx1V):\n print(' Generation: %s' % eK5b)\n YKHO._pop_f1 = 0\n YKHO._queue_search(YKHO.population)\n YKHO._queue.join()\n YKHO._scores = {}\n while not YKHO._results.empty():\n d6pt, Dyub = YKHO._results.get()\n ...
[ "0.6018473", "0.58698547", "0.5855939", "0.5824104", "0.5815992", "0.57884735", "0.57478344", "0.56325215", "0.5613777", "0.5593953", "0.55751854", "0.5485434", "0.5467187", "0.5451086", "0.5425107", "0.5421535", "0.54184806", "0.5416091", "0.54080534", "0.5386495", "0.538569...
0.69576675
0
Selects best n individuals from the population and saves it to a new dictionary, one for index, fit values and indivual weights.
def OMpq(mFTL, fZsl): I1Ri = {} U6ON = {} n6EJ = {} for YRbF in range(bdTR): U6ON[YRbF] = _eVy.nlargest(GpeF, fZsl[YRbF]) I1Ri[YRbF] = _eVy.nlargest(GpeF, range(tV6i), key=lambda WKvO: fZsl[YRbF][WKvO]) n6EJ[YRbF] = list(map(lambda LVAh: mFTL[YRbF][LVAh], I1Ri[YRbF])) return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EfUA(xRqF, exwG):\n return xRqF[:exwG]", "def dsCP(YKHO, exwG):\n tlxW = {}\n for Wxnj, FVsJ in YKHO.iteritems():\n SqIz = sorted(FVsJ.items(), reverse=True, key=TU9R(1))\n P6Dd = {_x49 for _x49, bGrB in SqIz[:exwG]}\n tlxW[Wxnj] = P6Dd\n return tlxW", "def oKCU(mFTL, fZsl)...
[ "0.64846075", "0.6284101", "0.6260117", "0.61807966", "0.6101424", "0.6093527", "0.6085642", "0.6077123", "0.6068297", "0.5980875", "0.59738123", "0.58168894", "0.581556", "0.56334335", "0.56281275", "0.56201684", "0.5574899", "0.5555969", "0.5535717", "0.5535717", "0.5535717...
0.60210127
9
Convolve a batch of nodes and children. Lots of high dimensional tensors in this function. Intuitively it makes more sense if we did this work with while loops, but computationally this is more efficient. Don't try to wrap your head around all the tensor dot products, just follow the trail of dimensions.
def KYy_(YKHO, ZqO6, GK51, y3yC, WI5g, Achr, oe9Q, zwfh, m5aE): with ZylS.compat.v1.name_scope('conv_step'): with ZylS.compat.v1.name_scope('trees'): ZqO6 = ZylS.expand_dims(ZqO6, axis=2) NdkX = ZylS.concat([ZqO6, GK51], axis=2, name='trees') with ZylS.compat.v1.name_scope('c...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xlax(YKHO, JRBb, naXJ, CzR_, WI5g, gEmA):\n with ZylS.compat.v1.name_scope('conv_node'):\n Achr, zwfh, oe9Q = (YKHO.weights['w_t_' + str(gEmA)], YKHO.weights['w_l_' + str(gEmA)], YKHO.weights['w_r_' + str(gEmA)])\n m5aE = YKHO.weights['b_conv_' + str(gEmA)]\n return YKHO.conv_step(JRBb,...
[ "0.5940407", "0.54227793", "0.5352251", "0.5349569", "0.5199552", "0.51420975", "0.50914097", "0.5035469", "0.5019315", "0.49476445", "0.49455276", "0.49445716", "0.4913043", "0.48972735", "0.4874584", "0.48715165", "0.4864481", "0.48490533", "0.48468614", "0.48410136", "0.48...
0.6305923
0
Reset all the statistics and metrics fields.
def SiRx(YKHO) -> None: YKHO.statistics = oRi_(float)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.sum_metric = 0.0\n YKHO.num_inst = 0.0\n YKHO.metrics.reset_stats()", "def mzqt(YKHO):\n YKHO.__stats_table = {}", "def Tf3z(YKHO):\n YKHO.stats.reset()", "def Tf3z(YKHO):\n YKHO.stats.reset()", "def mzqt(YKHO):\n YKHO.__stats_table = {}", "def SiRx(YKHO) -> No...
[ "0.8472925", "0.832886", "0.82712287", "0.82712287", "0.82181585", "0.8127687", "0.81063384", "0.7841572", "0.7768799", "0.7764818", "0.77358586", "0.768062", "0.76459306", "0.7632498", "0.7632498", "0.7632498", "0.75435334", "0.7526935", "0.74830943", "0.7433618", "0.7430342...
0.8191474
5
Create subset of dataset and properly handle kernels. Slice X, y according to indices for crossvalidation, but take care of precomputed kernelmatrices or pairwise affinities / distances. If ``estimator._pairwise is True``, X needs to be square and we slice rows and columns. If ``train_indices`` is not None, we slice ro...
def VBSe(BHCt, EcVT, LVAh, _0VL, PqZA=None): if XQvn(BHCt, key='pairwise'): if not hasattr(EcVT, 'shape'): raise ValueError('Precomputed kernels or affinity matrices have to be passed as arrays or sparse matrices.') if EcVT.shape[0] != EcVT.shape[1]: raise ValueError('X shoul...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def id2y(EcVT, LVAh, bHtP, kPGE, Q5iS, Etel):\n import numpy as oyIN\n from sklearn.pipeline import Pipeline\n\n def zNqp(Q5iS):\n VlDb = __import__(Q5iS[0], fromlist=[Q5iS[1]])\n NArs = {}\n if len(Q5iS) > 2:\n NArs = Q5iS[2]\n M_NZ = getattr(VlDb, Q5iS[1])(**NArs)\...
[ "0.5633974", "0.5441278", "0.54332125", "0.54044044", "0.5276328", "0.52614975", "0.5258819", "0.52243674", "0.52212816", "0.52212816", "0.5191108", "0.5188722", "0.5167675", "0.5150642", "0.5143706", "0.51176107", "0.5111362", "0.5111362", "0.507479", "0.50455844", "0.503007...
0.75309926
0
Get all nodes that are connected to current_node
def lIZK(kMLo, ckRy): k_NQ = list() for pmON in ckRy: if kMLo.id == pmON.source.id: Q6kx = pmON.destination.copy() Q6kx.setParent(kMLo) Q6kx.f = pmON.cost + Q6kx.heuristic k_NQ.append(Q6kx) return k_NQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CDNe(YKHO):\n return YKHO.__allNodes", "def Ziit(YKHO):\n return YKHO.graph.nodes", "def Ziit(YKHO):\n return list(set(YKHO._graph.keys() + [WKvO for WKvO in Hs6x.chain.from_iterable(YKHO._graph.values())]))", "def qmh8(YKHO):\n return YKHO.nodes", "def Ziit(YKHO):\n return list(YKHO.__g...
[ "0.72011834", "0.6996537", "0.6976682", "0.6942847", "0.68924725", "0.68712366", "0.6846873", "0.6806145", "0.67980975", "0.67691165", "0.6764509", "0.67623854", "0.67623854", "0.67623854", "0.6755477", "0.67500514", "0.6748937", "0.6717678", "0.6708518", "0.6706472", "0.6694...
0.7208526
0
Goes through all visited nodes via their parents, returns a list of the correct order in which we traversed the graph
def fMMg(pFG5): GERS = list() Q6kx = pFG5 while True: GERS.append(Q6kx.id) if Q6kx.parent == None: GERS.reverse() return GERS Q6kx = Q6kx.parent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HqGg(pNZh, Q6kx):\n return list(pNZh.pred[Q6kx].keys())", "def rKzm(YKHO):\n ACnF = []\n _AKB = YKHO.parent\n while _AKB:\n ACnF.append(_AKB)\n _AKB = _AKB.parent\n ACnF.reverse()\n return ACnF", "def DZKU(YKHO):\n for YRbF in range(len(YKHO.vertices)):\n YKHO.vert...
[ "0.711731", "0.7075661", "0.70328367", "0.6830098", "0.6797029", "0.6780164", "0.6730721", "0.67158437", "0.66968924", "0.6696468", "0.6664417", "0.66362536", "0.65828097", "0.6570099", "0.6570099", "0.65653294", "0.65133226", "0.6512602", "0.65038615", "0.65032846", "0.64982...
0.0
-1
Called when the screen manager wants to remove this screen from the display. We have no choice but to obey when this method is called. So hide our background. Our models will be hidden automatically as the 3d nodes are removed from the render tree
def Afoa(YKHO): super(W9ie, YKHO).hide() if YKHO.cube != None: YKHO.cube.clearLight(YKHO.dlnp) if YKHO.cubeMovement: YKHO.cubeMovement.finish() if YKHO.cubeRotation: YKHO.cubeRotation.finish() if YKHO.awardMovement: YKHO.awardMovement.finish() P8oC.taskMgr.remove(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xSHO(YKHO):\n YKHO.visible = False", "def b5XK(YKHO):\n wBIE = YKHO.__grid_visibility\n if wBIE:\n YKHO.__graphics_grid.set_visibility(False)\n for YEnM in YKHO.scene.objects:\n YEnM.visible = False\n if wBIE:\n YKHO.__graphics_grid.set_visibility(True)", "def Afoa(YKHO)...
[ "0.7087873", "0.6615855", "0.6585287", "0.6578363", "0.6513618", "0.6479681", "0.6463028", "0.6380824", "0.63767445", "0.6369106", "0.6278177", "0.6263273", "0.6244399", "0.6243241", "0.6241614", "0.6213222", "0.62098575", "0.6191652", "0.61867195", "0.6179239", "0.61784524",...
0.6034707
39
return the index of an array ordered as [l=0 m=0, l=1 m=1, l=1 m=0, l=1 m=1, ....]
def XHHE(vC9B, r8hN): return (vC9B + 1) ** 2 - 1 - vC9B + r8hN
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G6fA(qw7D, BWXx, T4Wy='low'):\n if not T4Wy in ['low', 'high']:\n raise ValueError('`order` should only be low or high.')\n yk4i = qw7D - BWXx\n if T4Wy == 'low':\n if not oyIN.any(qw7D <= BWXx):\n return 0\n else:\n return oyIN.argwhere(yk4i == yk4i[yk4i <= ...
[ "0.6531746", "0.6453401", "0.6421848", "0.63176495", "0.6227621", "0.621238", "0.6172804", "0.6162753", "0.6133431", "0.61009794", "0.6072919", "0.60638434", "0.6062158", "0.605947", "0.60340124", "0.60298973", "0.60279", "0.6009752", "0.59955", "0.5995266", "0.5982176", "0...
0.6199376
6
Converts a quaterion in the form of a pose orientation into a heading.
def JyIa(C3ap): Ylbp = [0, 0, 0, 0] Ylbp[0] = C3ap.x Ylbp[1] = C3ap.y Ylbp[2] = C3ap.z Ylbp[3] = C3ap.w return ZylS.transformations.euler_from_quaternion(Ylbp)[2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cEyu(xTkQ):\n vexM = DDQT(0.0, 0.0, xTkQ)\n _Jov = R5H8()\n _Jov.w = vexM[0]\n _Jov.x = vexM[1]\n _Jov.y = vexM[2]\n _Jov.z = vexM[3]\n return _Jov", "def Yh_5(vexM):\n xTkQ = epAf.atan2(2 * (vexM.x * vexM.y + vexM.w * vexM.z), vexM.w * vexM.w + vexM.x * vexM.x - vexM.y * vexM.y - vex...
[ "0.71091366", "0.69794357", "0.65639895", "0.64986974", "0.64956474", "0.644483", "0.627264", "0.62332237", "0.6218608", "0.6203297", "0.61656183", "0.6164748", "0.5980168", "0.5963536", "0.5926954", "0.59136003", "0.5868614", "0.58648425", "0.5786832", "0.5776677", "0.577667...
0.70309937
1
Name assignment through testdata(name) allows dict caching.
def j4x4(YKHO): YKHO.assertNotIn('aldous', YKHO.__dict__) YKHO.aldous YKHO.assertIn('aldous', YKHO.__dict__) YKHO.assertIs(YKHO.__dict__['aldous'], YKHO.aldous)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MpXb(YKHO, nPrm, fcCO, VNXe):\n gEmA = EKFh(nPrm)\n assert gEmA.name == 'Points'\n gEmA = EKFh(nPrm, name=fcCO)\n assert gEmA.name == fcCO\n gEmA.name = VNXe\n assert gEmA.name == VNXe", "def yLtf(mWFP):\n nPrm = g760.OrderedDict()\n TLI7 = Hy7s.path.join(l_jd, *mWFP.split('_'))\n ...
[ "0.6393306", "0.63249505", "0.6240958", "0.61811626", "0.61345464", "0.6052474", "0.6006592", "0.58476937", "0.5842565", "0.5804274", "0.5802099", "0.5758022", "0.57148683", "0.5709355", "0.5707304", "0.5688314", "0.56758815", "0.5643899", "0.5604059", "0.5603624", "0.5593508...
0.62305164
3
test 404 error page
def IvCS(YKHO): RBVb = YKHO.app.get('/this_should_not_exist', follow_redirects=True) assert b'404 error :(' in RBVb.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r2Q6(YKHO):\n geh0 = YKHO.testapp.get('/notexistentpage/', expect_errors=True)\n YKHO.assertEqual(404, geh0.status_int)\n YKHO.assertIn('Page Not Found', geh0.normal_body)\n YKHO.assertEqual('application/json', geh0.content_type)", "def mQ_b(YKHO):\n geh0 = YKHO.client.get('/testPage404')\n ...
[ "0.84182584", "0.8350967", "0.83365065", "0.8007176", "0.7965419", "0.7895687", "0.7892552", "0.7884124", "0.78334194", "0.7809191", "0.7809191", "0.7809191", "0.7809191", "0.7809191", "0.7809191", "0.7809191", "0.780419", "0.780419", "0.7801295", "0.7791209", "0.77885836", ...
0.8265105
3
Set up an 'Indirect' instance. 'key' must provide 'IComponentKey'
def FIMM(YKHO, H5ew, WmM4=Xelj): YKHO.key = jbpc(H5ew, V4W6) YKHO.default = WmM4
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, H5ew):\n i_Aq.__init__(YKHO, H5ew)", "def FIMM(YKHO, H5ew):\n i_Aq.__init__(YKHO, H5ew)", "def FIMM(YKHO, H5ew):\n YKHO.key = H5ew", "def FIMM(YKHO, H5ew=None):\n YKHO.key = H5ew", "def FIMM(YKHO, H5ew, BWXx, DCgT, gJdh, sjXf):\n YKHO._key = H5ew\n YKHO._mapping = {}\n Y...
[ "0.557358", "0.557358", "0.5496867", "0.54355437", "0.53505135", "0.5193574", "0.5193574", "0.5193574", "0.5193574", "0.5193574", "0.5193574", "0.5193574", "0.5193574", "0.5193574", "0.519097", "0.5190053", "0.51432544", "0.51284206", "0.511327", "0.51044554", "0.5099638", ...
0.6466041
0
Get a 'CompositeName' subclass using this as firstelement parser
def Sr6M(rV9y): class _CompositeName(MW_e): def CRix(dmFp, mstk): mWFP = MW_e.parse(mstk, rV9y) if isinstance(mWFP, rV9y): return MW_e([mWFP]) return mWFP CRix = classmethod(CRix) def VRLB(dmFp, BWXx): if isinstance(BWXx, rV9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vd4R(YKHO):\n try:\n uCmi = YKHO.name\n except AttributeError:\n if 0:\n vC9B = []\n for exwG in YKHO.fgraph.toposort():\n if hasattr(exwG.op, 'name') and exwG.op.name is not None:\n Ty9i = exwG.op.name\n if Ty9i.sta...
[ "0.65961456", "0.5611216", "0.5585384", "0.55432624", "0.54376084", "0.53885263", "0.53805673", "0.5279403", "0.527698", "0.52212536", "0.52027935", "0.51842034", "0.51246816", "0.5122781", "0.5122286", "0.5076838", "0.5076838", "0.5076838", "0.5076838", "0.5076838", "0.50768...
0.664904
0
Creates a training dataset from existing dataset
def EKAA(YKHO): return ZSJs(YKHO.ds, YKHO.train_ids)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EPL3():\n return gRuP.from_path('tests/data/dummy_tabular/train.csv', sep=',')", "def bdJp() -> dhSy:\n TN1E()\n return bPNP", "def ZRjb(xAU6, LT6S, DGXn=None):\n __n6 = ZylS.data.Dataset.list_files(xAU6.input_pattern[:], shuffle=LT6S)\n Ep8u = xAU6.batch_size\n if DGXn:\n if DGXn....
[ "0.74760675", "0.71444046", "0.7076663", "0.70763874", "0.70619285", "0.69907266", "0.69406134", "0.6907871", "0.6907742", "0.6907623", "0.6875715", "0.68477553", "0.6843984", "0.6842714", "0.6807683", "0.6797751", "0.6783228", "0.67748934", "0.67617935", "0.6747691", "0.6741...
0.65615904
40
Sets the text cursor to the end of the document, then to the given lineno.
def HSiK(bx_5, QP4x, uHtW=False): UHFx = bx_5.blockCount() if QP4x > UHFx: QP4x = UHFx QP4x = QP4x - 1 oeNL = bx_5.document().findBlockByNumber(QP4x).position() FGnj(bx_5, oeNL) if uHtW: S6Fl = bx_5.verticalScrollBar() S6Fl.setValue(max(0, S6Fl.value() - 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjkg():\n if hLRM:\n AIu6.origin.line_end = QP4x", "def Yxzb(YKHO, Q82t):\n YKHO.set_attribute('endline', Q82t)", "def ouoe(YKHO, HlT_):\n YKHO._line_end = HlT_", "def BsTy(YKHO) -> None:\n YKHO.index = YKHO.buffer.get_line_end(YKHO.index)", "def Os4s(YKHO):\n while YKHO.position ...
[ "0.62187815", "0.6209572", "0.61946297", "0.61119956", "0.5768381", "0.57579494", "0.5736042", "0.57065177", "0.56861925", "0.5576839", "0.5506485", "0.5463629", "0.5330148", "0.52994525", "0.5288886", "0.5237982", "0.523665", "0.51582116", "0.51582116", "0.5156547", "0.51282...
0.58540535
4
Delete a group. The default groups cannot be deleted.
def y0XA(YKHO, IXKo): NArs = {'name': IXKo} YKHO.sonarqube._make_call('post', t6hE, **NArs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y0XA(YKHO, uOe2):\n raise NotImplementedError('delete_group')", "def rOFc(u0KH):\n cQ68.deleteGroup(u0KH)", "def y0XA(YKHO, IXKo):\n NArs = {'GroupName': IXKo}\n return YKHO.get_response('DeleteGroup', NArs)", "def y0XA(N0q9, hE03):\n uOe2 = FYrf.UserGroup.get_by_id(int(hE03))\n uOe2.de...
[ "0.85996777", "0.8159453", "0.8094092", "0.8003237", "0.7968093", "0.79495174", "0.7904916", "0.78762573", "0.78659636", "0.7856635", "0.7844608", "0.7742248", "0.7673185", "0.76722735", "0.7644875", "0.75909734", "0.75873613", "0.7488563", "0.7455524", "0.7440715", "0.740857...
0.7453251
19
Test the email for a new user is normalized
def saHt(YKHO): D3lj = 'test@GMAIL.COM' CBIr = egNl().objects.create_user(D3lj, 'test123') YKHO.assertEqual(CBIr.email, D3lj.lower())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def saHt(YKHO):\n D3lj = 'test@GOOGLE.COM'\n CBIr = egNl().objects.create_user(D3lj, '212ds')\n YKHO.assertEqual(CBIr.email, D3lj.lower())", "def H6gL(YKHO):\n D3lj = 'test@RANDOMEMAIL.org'\n CBIr = egNl().objects.create_user(D3lj, password='password')\n YKHO.assertEqual(CBIr.email, D3lj.lower(...
[ "0.79984254", "0.7997281", "0.79201037", "0.7871696", "0.78619236", "0.785927", "0.7858499", "0.7853585", "0.7844939", "0.7773778", "0.7771046", "0.7745209", "0.7744957", "0.7702127", "0.75698525", "0.75344014", "0.74174696", "0.7257744", "0.7147643", "0.7080147", "0.70342535...
0.78920823
5
Test creating user with no email raises error
def V97d(YKHO): with YKHO.assertRaises(ValueError): egNl().objects.create_user(None, 'test123')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q5xs(YKHO):\n with trZe.raises(ValueError) as wrFM:\n biYH.objects._create_user(None, None, False, False)\n YKHO.assertIn('email must be set', str(wrFM.value))", "def hhyC(YKHO):\n with YKHO.assertRaises(ValueError):\n egNl().objects.create_user(None, 'Test1234')", "def FfRJ(YKHO):\n...
[ "0.90313256", "0.8963383", "0.8736711", "0.8736247", "0.87256855", "0.8717645", "0.87053293", "0.87032956", "0.8700956", "0.869592", "0.86902976", "0.8681168", "0.86709315", "0.8597593", "0.85930586", "0.85868686", "0.8557775", "0.85267687", "0.8396068", "0.83576405", "0.8287...
0.87146974
8
Test the tag string representation
def Yhvr(YKHO): TZ9E = FYrf.Tag.objects.create(user=nIoS(), name='Internal') YKHO.assertEqual(str(TZ9E), TZ9E.name)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Yhvr(YKHO):\n TZ9E = FYrf.Tag.objects.create(user=nIoS(), name='Docker')\n YKHO.assertEqual(str(TZ9E), TZ9E.name)", "def Yhvr(YKHO):\n TZ9E = FYrf.Tag.objects.create(user=nIoS(), name='Vegan')\n YKHO.assertEqual(str(TZ9E), TZ9E.name)", "def Yhvr(YKHO):\n TZ9E = FYrf.Tag.objects.create(user=n...
[ "0.70703965", "0.6938718", "0.6938718", "0.6922232", "0.69209194", "0.6899433", "0.6885665", "0.6861665", "0.66865885", "0.64923304", "0.637821", "0.6311385", "0.63077676", "0.62146807", "0.616337", "0.61539763", "0.60839355", "0.60640544", "0.6059385", "0.5983592", "0.594861...
0.7170174
0
return the suffix dict
def lhhp(YKHO): return YKHO.suffix_dict
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BkrJ():\n return {'trpk': 'tpke', 'forges': 'frgs', 'bypas': 'byp', 'mnr': 'mnr', 'viaduct': 'via', 'mnt': 'mt', 'lndng': 'lndg', 'vill': 'vlg', 'aly': 'aly', 'mill': 'ml', 'pts': 'pts', 'centers': 'ctrs', 'row': 'row', 'cnter': 'ctr', 'hrbor': 'hbr', 'tr': 'trl', 'lndg': 'lndg', 'passage': 'psge', 'walks':...
[ "0.77540374", "0.69547606", "0.6939465", "0.6939465", "0.6837411", "0.6637627", "0.65001506", "0.65001506", "0.645571", "0.6359308", "0.63367945", "0.6318509", "0.63104326", "0.62708914", "0.62708914", "0.62708914", "0.61772746", "0.61356014", "0.60788155", "0.6076232", "0.60...
0.86243165
0
Associates the specified promotion asset with the specified campaigns.
def MKlr(x0hE, di0Y, ZBTP, s2UL): if len(s2UL) == 0: print(f'Asset was not associated with any campaigns.') return ZHi5 = x0hE.get_service('CampaignService') _pBr = x0hE.get_service('CampaignAssetService') ql7k = [] for _j1c in s2UL: oPhP = x0hE.get_type('CampaignAssetOperati...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UbE2(x0hE, di0Y, ZBTP, ycXM):\n if len(ycXM) == 0:\n print(f'Asset was not associated with any ad groups.')\n return\n siQc = x0hE.get_service('AdGroupService')\n TKFX = x0hE.get_service('AdGroupAssetService')\n ql7k = []\n for FYBc in ycXM:\n oPhP = x0hE.get_type('AdGroupAs...
[ "0.68118477", "0.5458652", "0.5197358", "0.518365", "0.5102761", "0.4989788", "0.47916248", "0.47841915", "0.47830895", "0.47233653", "0.47026694", "0.46705714", "0.45984635", "0.4594442", "0.45530567", "0.44720846", "0.44709775", "0.4398728", "0.43637556", "0.436068", "0.433...
0.7919765
0
Associates the specified promotion asset with the specified campaigns.
def UbE2(x0hE, di0Y, ZBTP, ycXM): if len(ycXM) == 0: print(f'Asset was not associated with any ad groups.') return siQc = x0hE.get_service('AdGroupService') TKFX = x0hE.get_service('AdGroupAssetService') ql7k = [] for FYBc in ycXM: oPhP = x0hE.get_type('AdGroupAssetOperation'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MKlr(x0hE, di0Y, ZBTP, s2UL):\n if len(s2UL) == 0:\n print(f'Asset was not associated with any campaigns.')\n return\n ZHi5 = x0hE.get_service('CampaignService')\n _pBr = x0hE.get_service('CampaignAssetService')\n ql7k = []\n for _j1c in s2UL:\n oPhP = x0hE.get_type('Campaig...
[ "0.791878", "0.5457961", "0.5195292", "0.5182085", "0.510101", "0.4988737", "0.4790867", "0.47820067", "0.47816998", "0.4722624", "0.4701914", "0.46689376", "0.45965028", "0.45924795", "0.45532042", "0.4473407", "0.4470588", "0.44008443", "0.4362075", "0.43594718", "0.4331378...
0.68108475
1
Retrieves the message string for a specific Windows Event Log source.
def uFId(YKHO, gx5A, w5jd): LDZH = YKHO._GetWinevtRcDatabaseReader() if not LDZH: return None if YKHO._lcid != YKHO.DEFAULT_LCID: ulOp = LDZH.GetMessage(gx5A, YKHO.lcid, w5jd) if ulOp: return ulOp return LDZH.GetMessage(gx5A, YKHO.DEFAULT_LCID, w5jd)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JLRo(tvqc):\n return tvqc.message.annotations['iothub-message-source'.encode()].decode()", "def jVwn(YKHO) -> str:\n return qe4Y.get(YKHO, 'event_source')", "def jVwn(YKHO) -> str:\n return qe4Y.get(YKHO, 'event_source')", "def LXDB(YKHO):\n return YKHO._event_message", "def AfJR(tvqc):\n ...
[ "0.703995", "0.64170665", "0.64170665", "0.5495709", "0.54918444", "0.5480781", "0.5419732", "0.5411037", "0.53605455", "0.53066844", "0.5278774", "0.5271213", "0.52499604", "0.5234725", "0.5170608", "0.5145364", "0.51453567", "0.51346934", "0.51346093", "0.5111521", "0.51115...
0.7678674
0
Compute softmax values for each sets of scores in x.
def N93T(WKvO): pass O48W = oyIN.exp(WKvO) T63k = oyIN.sum(O48W, axis=0) N93T = O48W / T63k return N93T
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N93T(YKHO, cCrA):\n MvhI = oyIN.sum(oyIN.exp(cCrA), axis=1, keepdims=True)\n N93T = oyIN.exp(cCrA) / MvhI\n return N93T", "def N93T(WKvO):\n j1LR = oyIN.exp(oyIN.asarray(WKvO))\n return j1LR / j1LR.sum(0)", "def N93T(cCrA):\n XeFQ = oyIN.exp(cCrA)\n return XeFQ / oyIN.sum(XeFQ)", "de...
[ "0.7797116", "0.77627903", "0.7760451", "0.7757387", "0.7658399", "0.7658399", "0.7658399", "0.7658399", "0.7587644", "0.7433347", "0.7409716", "0.73956805", "0.73604953", "0.7319298", "0.72706646", "0.72645944", "0.7263417", "0.72585905", "0.7231768", "0.7216702", "0.7203891...
0.71583205
24
Given the id of an image, return the image and the corresponding confidence maps and the parts affinity fields.
def OP2O(YKHO, or8S): Doz7 = YKHO.img_indices[or8S] rTBW = Hy7s.path.join(YKHO.img_dir, sKOH(Doz7)) VXjJ = XC5k.imread(rTBW).transpose(1, 0, 2) / 255 Wve5 = VXjJ.shape[:2] VXjJ = XC5k.resize(NkkI(VXjJ), (Ylkb, Ylkb)) vGq7 = YKHO.coco.getAnnIds(Doz7) XgyP = YKHO.coco.loadAnns(vGq7) BR8K =...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XDp7(YKHO, r8m5):\n xcKT = YKHO.image_sets_dir / f'{r8m5}.xml'\n ei4T = GXnK.parse(xcKT).findall('object')\n oUSw = []\n Crrw = []\n bsEF = []\n for YEnM in ei4T:\n _2sc = YEnM.find('name').text.lower().strip()\n if _2sc in YKHO.class_dict:\n cviu = YEnM.find('bndbox'...
[ "0.6299146", "0.6093956", "0.60191196", "0.60121113", "0.59690326", "0.5941114", "0.58664304", "0.58652186", "0.5772321", "0.5732799", "0.5696221", "0.56892323", "0.5653866", "0.5650987", "0.56138176", "0.5601995", "0.5597743", "0.5572222", "0.5568251", "0.5546608", "0.552037...
0.0
-1