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
Return the display name of this switch.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y0hN(YKHO) -> str:\n return YKHO.get_hardware_state()['display_name']", "def y0hN(YKHO):\n return YKHO.display_name", "def y0hN(YKHO):\n return YKHO.__display_name", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display_name')", "def qQNS(YKHO) -> str:\n return qe4Y.get(YKHO, 'display...
[ "0.87815934", "0.8300513", "0.82593143", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", "0.8166229", ...
0.0
-1
Fetch the min,max,and avg temperature whose date matches the path variable supplied by the user, or a 404 if not.
def JWob(yKcO): cuiw = DMju(eHpk) WQwL = cuiw.query(Ny6I.date, JfyU.max(Ny6I.tobs), JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs)).filter(Ny6I.date >= yKcO).group_by(Ny6I.date).all() cuiw.close sBkO = [] for _c1T, TWl1, eCok, CEj2 in WQwL: gGiJ = {} gGiJ['date'] = _c1T gGiJ['max_t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qbzZ(yKcO):\n try:\n yKcO = JRYC.datetime.strptime(yKcO, '%Y-%m-%d').date()\n ZlgM = [JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs), JfyU.max(Ny6I.tobs)]\n dixj = cuiw.query(*ZlgM).filter(Ny6I.date == yKcO).all()\n HR9t = {}\n AJlf, zcWz, YP4o = zip(*dixj)\n HR9t['Min Te...
[ "0.599551", "0.5822722", "0.57642055", "0.5692335", "0.5675931", "0.56336296", "0.5612023", "0.55869097", "0.5563521", "0.55606514", "0.5534764", "0.5529807", "0.55139613", "0.55057836", "0.5502955", "0.55014277", "0.55012006", "0.5446343", "0.5441171", "0.5438673", "0.543465...
0.57655346
2
Fetch the min,max,and avg temperature whose start and end date matches the path variable supplied by the user, or a 404 if not.
def Ri7N(yKcO, Os4s): cuiw = DMju(eHpk) VFAj = cuiw.query(Ny6I.date, JfyU.max(Ny6I.tobs), JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs)).filter(Ny6I.date >= yKcO).filter(Ny6I.date <= Os4s).group_by(Ny6I.date).all() cuiw.close lkbv = [] for _c1T, TWl1, eCok, CEj2 in VFAj: c_PO = {} c_PO['d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _utX(yKcO, Os4s):\n dixj = cuiw.query(JfyU.min(Ny6I.tobs), JfyU.avg(Ny6I.tobs), JfyU.max(Ny6I.tobs)).filter(Ny6I.date >= yKcO, Ny6I.date <= Os4s).order_by(Ny6I.date.desc()).all()\n print(f'Temperature Analysis for the dates greater than or equal to the start date and lesser than or equal to the end date'...
[ "0.6422439", "0.6421042", "0.6299726", "0.62143433", "0.6151655", "0.60496026", "0.60279566", "0.601815", "0.60060585", "0.59992003", "0.59658325", "0.5937621", "0.5926715", "0.58773106", "0.5863122", "0.58596724", "0.5848767", "0.58389497", "0.583616", "0.583616", "0.582591"...
0.6404719
2
Reset states of all the Keras metrics
def V3xb(YKHO, __n6): for bGrB, AcYW in YKHO.batch_metrics[__n6].items(): AcYW.reset_states() for bGrB, AcYW in YKHO.per_class_metrics[__n6].items(): AcYW.reset_states() if __n6 == 'training': YKHO.loss_total.reset_states() YKHO.loss_task.reset_states() YKHO.loss_doma...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n for AcYW in YKHO.metrics:\n AcYW.reset_states()", "def s0Da(YKHO):\n bGrB = [r8hN.reset_states() for r8hN in YKHO.metrics.values()]", "def SiRx(YKHO):\n YKHO.train_loss.reset_states()\n YKHO.train_accuracy.reset_states()\n YKHO.test_loss.reset_states()\n YKHO.test_acc...
[ "0.8219588", "0.8136184", "0.79164153", "0.751646", "0.74656385", "0.74425256", "0.7422276", "0.7397306", "0.73646504", "0.73532563", "0.7259122", "0.72494555", "0.72382843", "0.7149127", "0.7143975", "0.7119061", "0.71113616", "0.70998657", "0.708238", "0.7073939", "0.706478...
0.7645509
3
either saves a new term with the given year and term or just returns an existing term that matches that given year and term Keyword Arguments year the year in YYYY format term the season that the term takes place in, e.g. Spring, Summer or Fall Return term_obj the term object that corresponds to given year and term or ...
def hb6h(lO87, tsNZ): YbI5 = nUoc(lO87, tsNZ) if YbI5 is None: return None Gewe, _EYN = aw0m.objects.get_or_create(term=tsNZ, term_number=YbI5, year=int(lO87)) return Gewe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUoc(lO87, tsNZ):\n return None if not f'{lO87}'.isdigit() or tsNZ not in eoOh else int(lO87) * 10 + jSja(tsNZ)", "def CSbp(lO87, tMZy):\n r8Ii = 'get_term_by_year_and_quarter ' + str(lO87) + ',' + tMZy\n FusX = gZbH()\n try:\n return M0Y4.get_term_by_year_and_quarter(lO87, tMZy)\n exce...
[ "0.59505147", "0.56687355", "0.56085414", "0.560552", "0.5372431", "0.53313994", "0.517366", "0.5159168", "0.5150407", "0.5144723", "0.5112592", "0.5070143", "0.50595117", "0.50549537", "0.5027334", "0.50238776", "0.50224024", "0.50160795", "0.50118065", "0.50089943", "0.4999...
0.8182665
0
Convert an untrusted path to a relative path. Defaults to using os.path to manipulate (native) paths, but you can pass path_lib=posixpath to always use Unix paths, for example. If `join=False', return a list of path components. Default (True) is to path_lib.join() them.
def beR0(pmON, RvxL=Hy7s.path, gzes=True): pmON = RvxL.normpath(pmON) pmON = pmON.lstrip(RvxL.sep) AdfU = pmON.split(RvxL.sep) while AdfU and (AdfU[0] == '..' or (len(AdfU[0]) == 2 and AdfU[0][1] == ':')): AdfU = AdfU[1:] if gzes: return RvxL.join(*AdfU) else: return AdfU
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Aoy6(pmON, u9Rr):\n pmON = XMbN(pmON, as_string=False)\n AsiM = XMbN(u9Rr, as_string=False)\n return pmON.relative_to(AsiM).as_posix()", "def KsiN(pmON, *ckRy):\n return Hy7s.path.join(pmON, ckRy[0].lstrip(Hy7s.sep), *ckRy[1:])", "def HNwx(*ckRy) -> str:\n return Hy7s.path.abspath(Hy7s.path....
[ "0.63963383", "0.6347107", "0.6231684", "0.61459607", "0.61459607", "0.6111709", "0.6089383", "0.6006789", "0.5998093", "0.5950273", "0.5937252", "0.59246176", "0.5868493", "0.58677936", "0.58635056", "0.58555377", "0.5852776", "0.5848886", "0.584733", "0.58443636", "0.583905...
0.7229636
0
Convert a humanreadable date/time string (in the format used by Canvas and in submission metadata files) to a datetime instance.
def HJff(mbyn): return LgWF.get(mbyn).to('utc').datetime
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jPZT(KCHu: str) -> qcWV:\n return qcWV.strptime(KCHu, '%Y-%m-%d %H:%M:%S')", "def lPV9(uted):\n T0rB = xN_c._get_time_obj(uted)\n JRYC = qcWV.datetime.fromtimestamp(ITS7.mktime(T0rB))\n return JRYC", "def LnML(_c1T, ITS7):\n LVAh, r8hN, Csk6 = map(int, _c1T.split('/'))\n C7Ls, E3D9, o4sw ...
[ "0.72978586", "0.71702397", "0.7140036", "0.7140036", "0.70804584", "0.7048027", "0.7022672", "0.7017977", "0.70179594", "0.70153916", "0.6996373", "0.6970509", "0.69657016", "0.6957859", "0.69481486", "0.6947905", "0.69410694", "0.69205916", "0.6914629", "0.69112295", "0.690...
0.0
-1
Get name of this shader file with full modules path.
def W0tD(): return __name__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IMu3(YKHO):\n MJH2 = zIwI.Dir('.').srcnode().path\n return Hy7s.path.basename(Hy7s.path.normpath(MJH2))", "def GTiV(YKHO, mWFP):\n return Hy7s.path.join(YKHO.module_dir(), f'{mWFP}_modulefile')", "def t2ew(YKHO):\n return '%s/%s/%s_module.h' % (YKHO.__type, YKHO.__name, YKHO.id_name())", "def...
[ "0.7023889", "0.6978504", "0.6957397", "0.6930365", "0.6794243", "0.6746848", "0.6728618", "0.6687196", "0.66870165", "0.66827637", "0.66812164", "0.66790974", "0.66268444", "0.6568379", "0.6565109", "0.65613204", "0.6550164", "0.6525089", "0.6525089", "0.6525089", "0.6525089...
0.0
-1
This method returns a file its index in files list and offset of start of ith piece in file.
def F6hS(YKHO, d6pt): d6pt *= YKHO.piece_length for YRbF, jQJk in enumerate(YKHO.files): if d6pt < jQJk.length: return (YRbF, jQJk, d6pt) else: d6pt -= jQJk.length raise ValueError('Too high index')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vlwY(WpAY: int) -> int:\n pass", "def EhJs(YKHO, nUeQ):\n d6pt = 0\n for rdlD in YKHO:\n if rdlD[1] and Hy7s.path.basename(rdlD[1]) == Hy7s.path.basename(nUeQ):\n return d6pt\n d6pt += 1\n return None", "def J3Ut(IznC):\n with open(IznC) as eHNT:\n for YRbF, v...
[ "0.68100536", "0.6689227", "0.6517899", "0.65139264", "0.6511256", "0.64230055", "0.6411887", "0.6405056", "0.6385922", "0.6378972", "0.6365072", "0.6310393", "0.6287236", "0.6247753", "0.62449884", "0.6244393", "0.6230249", "0.62043905", "0.6176307", "0.6140229", "0.6119127"...
0.64803386
5
Sets the created_date_utc of this FileObject.
def X65X(YKHO, X65X): YKHO._created_date_utc = X65X
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NqtR(YKHO, a0GP=None):\n pass", "def Cbz6(YKHO, Cbz6):\n YKHO._updated_date_utc = Cbz6", "def Cbz6(YKHO, Cbz6):\n YKHO._updated_date_utc = Cbz6", "def Cbz6(YKHO, Cbz6):\n YKHO._updated_date_utc = Cbz6", "def Cbz6(YKHO, Cbz6):\n YKHO._updated_date_utc = Cbz6", "def Cbz6(YKHO, Cbz6):\n ...
[ "0.7016881", "0.6927518", "0.6927518", "0.6927518", "0.6927518", "0.6927518", "0.6927518", "0.6927518", "0.6685098", "0.66708916", "0.65487087", "0.65283716", "0.65167445", "0.6460383", "0.6460383", "0.6460383", "0.6460383", "0.6460383", "0.6460383", "0.64383525", "0.64134073...
0.836039
0
Sets the updated_date_utc of this FileObject.
def Cbz6(YKHO, Cbz6): YKHO._updated_date_utc = Cbz6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HHc1(YKHO, HHc1):\n YKHO._updated_utc = HHc1", "def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG", "def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG", "def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG", "def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG", "def s4tG(YKHO, s4tG):\n ...
[ "0.8038192", "0.68883574", "0.68883574", "0.68883574", "0.68883574", "0.68883574", "0.67346406", "0.66778713", "0.66778713", "0.66778713", "0.66778713", "0.6615832", "0.661477", "0.65353304", "0.65353304", "0.6498011", "0.6472537", "0.64704466", "0.6392622", "0.6392622", "0.6...
0.85236996
1
Creates a random point with coordinates(x,y) Random values will be bounded by xlim and ylim
def qRtf(jk7u=[-1, 1], rTQi=[-1, 1]): WKvO = tuKI.uniform(jk7u[0], jk7u[1]) LVAh = tuKI.uniform(rTQi[0], rTQi[1]) return (WKvO, LVAh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qRtf(YKHO):\n WKvO = LVAh = 0.0\n return oyIN.array([WKvO, LVAh])", "def qRtf(YKHO, cDK5=1, mmRm=1.0):\n zNig = YKHO.shape\n if cDK5 != 1:\n zNig = (cDK5,) + YKHO.shape\n AU8u = mmRm * (i912.random.rand(*zNig) - 0.5) * 2\n return AU8u", "def DG8r(YKHO):\n WKvO = tuKI.randint(0, ...
[ "0.7613227", "0.75117123", "0.74068356", "0.7364493", "0.7354111", "0.73471826", "0.73471826", "0.733899", "0.733247", "0.7288138", "0.7269796", "0.7216725", "0.7159394", "0.7154965", "0.7148261", "0.7105584", "0.7095859", "0.6984669", "0.6909186", "0.6909186", "0.6909186", ...
0.86597055
0
Tests the learning algorithm on the test set defined by x_test and y_test Returns the numerical value of the error probability in the test set
def kmV8(YKHO, sAoX, H96n): _7X3 = YKHO.h_func(sAoX) bJAV = len(sAoX) ldtb = 0 for YRbF in range(0, bJAV): if _7X3[YRbF] != H96n[YRbF]: ldtb += 1 UzMV = ldtb / bJAV return UzMV
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Q1_z(EcVT, fuBA, s9Ci, TLPi):\n ijwF = 5\n Aofo = oyIN.zeros(ijwF)\n hkxX = oyIN.arange(0, ijwF)\n It4x = len(EcVT)\n NI2E = len(s9Ci)\n sum = 0\n for YRbF in range(0, ijwF):\n C3ST = Xugt.getBestModel(EcVT, fuBA, It4x)\n dYlE = R1kC(C3ST, s9Ci, TLPi, NI2E)\n Aofo[YRbF...
[ "0.74215007", "0.73282427", "0.7249483", "0.72151184", "0.71959746", "0.7073593", "0.70577425", "0.7055908", "0.7050817", "0.70184976", "0.7017681", "0.7006723", "0.7001385", "0.69986504", "0.69986504", "0.6984105", "0.69801605", "0.6975992", "0.69665134", "0.6965112", "0.696...
0.8608715
0
Function to calculate age at the time of a h2h match. Used when generating features.
def PQNy(_c1T, iuVk): RocC = _c1T - iuVk ZJe_ = float(RocC.days) / 365.25 return ZJe_
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZJe_(YKHO):\n return (YKHO.time - YKHO.middle) / 52", "def ZJe_(YKHO) -> float:\n return ITS7.time() - YKHO.determination_time", "def liRe(YKHO, YWSi):\n return (YKHO.time - YWSi.born) / 52", "def ZJe_(i_8Y):\n IQ5G = Es1w(i_8Y)\n KSG9 = LgWF.get() - IQ5G\n return pBSp(KSG9.days / 365.2...
[ "0.7381703", "0.71983075", "0.71782583", "0.6996951", "0.6899488", "0.68594104", "0.6825948", "0.6773239", "0.6722017", "0.6690599", "0.6682296", "0.6659266", "0.66489094", "0.66048646", "0.6592885", "0.65896505", "0.6585769", "0.6560394", "0.6550969", "0.65422356", "0.653606...
0.62587863
58
Create a new web driver instance.
def zCHb(bbbM: str): if bbbM.lower() == 'chrome': bPTo = yRcM() return cSpz.Chrome(executable_path=He_t, chrome_options=bPTo) elif bbbM.lower() == 'firefox': CCS3 = cSpz.Firefox(executable_path=SEAu) CCS3.maximize_window() return CCS3 elif bbbM.lower() == 'chrome-remo...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rCzY(YKHO):\n if YKHO.__config.getBrowser() == 'firefox':\n sPym = cSpz.FirefoxProfile()\n uwVP = cSpz.FirefoxOptions()\n sPym.set_preference('browser.privatebrowsing.autostart', YKHO.__config.getIncognitoMode())\n uwVP.headless = YKHO.__config.getHeadlessMode()\n YKHO.__d...
[ "0.7575421", "0.71219885", "0.7078582", "0.70342755", "0.6937682", "0.68410367", "0.68203616", "0.68027127", "0.6795631", "0.6759248", "0.67591095", "0.6757729", "0.675048", "0.6719654", "0.6710385", "0.6634096", "0.66083044", "0.6599452", "0.6583955", "0.65750307", "0.655966...
0.67492574
13
Normalise a word for frequency lookups.
def kwsU(GIN8): GIN8 = ZbWC.sub('&', 'and', GIN8) GIN8 = ZbWC.sub('/', 'or', GIN8) GIN8 = ZbWC.sub('[^\\w]', '', GIN8) return GIN8.lower()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(GIN8):\n GIN8 = GIN8.lower()\n GIN8 = v_nw(GIN8)\n return GIN8", "def kwsU(GIN8):\n GIN8 = GIN8.lower()\n GIN8 = mkhU.stem_word(GIN8)\n GIN8 = LkXt.lemmatize(GIN8)\n return GIN8", "def kwsU(GIN8):\n GIN8 = GIN8.lower()\n GIN8 = mkhU.stem_word(GIN8)\n GIN8 = LkXt.lemmatize...
[ "0.79697657", "0.7740924", "0.7734502", "0.7734502", "0.77189255", "0.77189255", "0.7573634", "0.74321276", "0.7389957", "0.73588604", "0.7334333", "0.7273245", "0.72321856", "0.71827275", "0.71587837", "0.7133143", "0.7126586", "0.7120725", "0.71128184", "0.7092149", "0.7087...
0.66481835
29
Returns name of the current method.
def Saof(): return tq_1.stack()[1][3]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UnkX():\n return tq_1.stack()[1][3]", "def MFgD(YKHO):\n print(YKHO._method)", "def MFgD(YKHO):\n print(YKHO._method)", "def Si4S(YKHO):\n return YKHO.__class__.__name__", "def Si4S(YKHO):\n if hasattr(YKHO, '_m_method_name'):\n return YKHO._m_method_name\n YKHO._m_method_name ...
[ "0.8794309", "0.82803965", "0.82803965", "0.8247602", "0.7807749", "0.7700005", "0.7678732", "0.76420504", "0.76420504", "0.75422966", "0.75395405", "0.75149494", "0.7439044", "0.7364392", "0.7220004", "0.7213314", "0.71978587", "0.7189152", "0.7165706", "0.7159843", "0.71488...
0.7900668
4
Attaches emptyDir volumes to container operations.
def lrpt(khtY): khtY.output_artifact_paths['mlpipeline-ui-metadata'] = '/tmp/outputs/mlpipeline-ui-metadata.json' khtY.output_artifact_paths['mlpipeline-metrics'] = '/tmp/outputs/mlpipeline-metrics.json' khtY.add_volume(yzEL.V1Volume(name='volume', empty_dir=yzEL.V1EmptyDirVolumeSource())) khtY.containe...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNiv(YKHO):\n YKHO.scratch_disks = Q5CM.CreateDisks(YKHO.disk_specs, YKHO.name)", "def YEQ7(YKHO, YEQ7):\n YKHO._empty_dir = YEQ7", "def FGnD(YKHO, rI3a, Vavl):\n qiBh = []\n if YKHO.docker_version == 1:\n KTvJ = rI3a.volumes\n if KTvJ:\n for v2CM, S8SU in KTvJ.items():...
[ "0.6120974", "0.60797113", "0.60149693", "0.5954281", "0.5945243", "0.5778783", "0.57057834", "0.56834984", "0.56567156", "0.5631018", "0.5625641", "0.5614005", "0.56117254", "0.5562993", "0.5557987", "0.5511229", "0.5487037", "0.547676", "0.5448434", "0.54434943", "0.5443494...
0.51243246
61
Get the dict representation of the instance.
def MNRr(YKHO): return YKHO.content.copy()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n return dict(YKHO.__dict__)", "def _fYl(YKHO):\n return YKHO.__dict__", "def _fYl(YKHO):\n return YKHO.__dict__", "def _fYl(YKHO):\n return YKHO.__dict__", "def _fYl(YKHO):\n return dict(YKHO)", "def dict(YKHO):\n return YKHO.__dict__", "def dict(YKHO):\n return YK...
[ "0.85455143", "0.8430785", "0.8430785", "0.8430785", "0.83587337", "0.8358163", "0.8358163", "0.8358163", "0.8358163", "0.8358163", "0.8358163", "0.8358163", "0.8358163", "0.8358163", "0.8358163", "0.8348052", "0.83086246", "0.8299364", "0.8295419", "0.8295419", "0.82648176",...
0.0
-1
Get and set the parent ID.
def H7rZ(YKHO): return YKHO.content['parent_id']
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DtVU(YKHO):\n return YKHO.parent_id", "def DtVU(YKHO):\n return YKHO.__parent_id", "def H7rZ(YKHO):\n return YKHO._parent_id", "def H7rZ(YKHO):\n return YKHO._parent_id", "def H7rZ(YKHO) -> str:\n return qe4Y.get(YKHO, 'parent_id')", "def H7rZ(YKHO) -> str:\n return qe4Y.get(YKHO, '...
[ "0.8183763", "0.8160287", "0.8120191", "0.8120191", "0.8103553", "0.8103553", "0.77477586", "0.7741316", "0.770715", "0.770669", "0.770669", "0.770669", "0.770669", "0.770669", "0.770669", "0.770669", "0.76767755", "0.7607446", "0.75616086", "0.7523889", "0.7458661", "0.745...
0.792004
6
Get a list of the most recent trades for the given symbol
def WZsM(YKHO, o61b='btcusd'): return YKHO.call('get', YKHO.generate_url('trades', None, o61b))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZsM(YKHO, o61b):\n return YKHO.market.get_trades(o61b)", "def ooeb(YKHO, o61b, Kt_s=15):\n RA_F = JRYC.datetime.now() - JRYC.timedelta(minutes=15)\n sQg9 = []\n for IYUG in YKHO.trades.keys():\n if YKHO.trades[IYUG]['symbol'] != o61b:\n continue\n if IYUG < RA_F:\n ...
[ "0.7238299", "0.7199467", "0.7162669", "0.6751599", "0.6722462", "0.6713045", "0.6610677", "0.6596674", "0.65771055", "0.6550166", "0.6543477", "0.6543477", "0.6543477", "0.6528199", "0.64561486", "0.6438798", "0.6371342", "0.6352519", "0.6352519", "0.6352519", "0.6302135", ...
0.6959419
3
Find if there exists any pair of numbers which sum is equal to the value.
def neBz(YKHO, BWXx: int) -> bool: for tTpl in YKHO.mp: if tTpl == BWXx - tTpl: if YKHO.mp[tTpl] == 1: continue else: return True elif BWXx - tTpl in YKHO.mp: return True else: continue return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JQW5(mSrU, WjrA):\n for MxXY in mSrU:\n for cWFu in mSrU:\n if MxXY + cWFu == WjrA:\n return True\n return False", "def fDqS(ezWE, sum):\n for YRbF in range(0, len(ezWE) - 1):\n for r845 in range(len(ezWE)):\n if ezWE[YRbF] + ezWE[r845] == sum:\n ...
[ "0.774484", "0.7621819", "0.7415405", "0.73612404", "0.7282441", "0.71791124", "0.7029028", "0.70258266", "0.70061916", "0.6897048", "0.685282", "0.6812223", "0.68063575", "0.67995155", "0.6668594", "0.66488236", "0.6629558", "0.66047686", "0.6539927", "0.64839804", "0.648162...
0.68377805
11
returns the same vars between term1 and term2.
def hhrX(OpKk, itg4): Y_vS = len(OpKk.vars) d8y8 = len(itg4.vars) k77i = [] for n2Q1 in range(Y_vS): for SpII in range(d8y8): if OpKk.vars[n2Q1] == itg4.vars[SpII]: k77i.append(OpKk.vars[n2Q1]) return k77i
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O0Ic(o4D3, ajwV, rDMz, K5w7):\n if _Cgu(o4D3, ajwV) == 0:\n return o4D3\n else:\n guMW = YxaJ(rDMz)\n if o4D3 in K5w7 and ajwV in K5w7:\n return K5w7[o4D3]\n rDMz.add(guMW)\n K5w7[o4D3] = guMW\n K5w7[ajwV] = guMW\n return guMW", "def dRO0(YKHO...
[ "0.6567125", "0.6481382", "0.59954864", "0.59811234", "0.5599382", "0.55388623", "0.54502326", "0.54390424", "0.53842974", "0.5383966", "0.535107", "0.5330277", "0.53275245", "0.5281115", "0.52807754", "0.5255705", "0.5250974", "0.5244635", "0.52412176", "0.5234187", "0.51806...
0.8812757
0
Gets the mapping of sha to tag name for the input repository.
def Ohd8(boHx) -> 'Dict[int, str]': return {TZ9E.commit.sha: TZ9E.name for TZ9E in boHx.get_tags() if zKu6.match(TZ9E.name)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xv1b() -> cuzp[str, str]:\n c40a = n9ps()\n wg_p = {Ty9i: G1Hx for G1Hx, Ty9i in c40a.items()}\n return wg_p", "def PxCU(iz6W='base'):\n pSPJ = {}\n Rr9Z = ip9L(iz6W).get('name_map', {})\n return Rr9Z", "def g_Y1():\n dJ1p = sEAN.repo.tags\n return dJ1p", "def oECf(YKHO, qsJ6, boH...
[ "0.62975496", "0.6208506", "0.6203326", "0.61952865", "0.61804444", "0.6163773", "0.6124747", "0.609619", "0.60420805", "0.60330164", "0.5987711", "0.594647", "0.592643", "0.592643", "0.592643", "0.592643", "0.592643", "0.592643", "0.592643", "0.592643", "0.592643", "0.5926...
0.763386
0
Converts a tagname ("w.YYYY.WWx") into a key for sorting.
def sASP(Tj3G: str) -> AzJI[int, ...]: return tuple(Tj3G[2:].split('.'))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cpKX(mWFP):\n DpZH = str(BtDU).replace('.', '')\n mWFP = HBct.md5(str(mWFP).encode('utf-8')).hexdigest()\n return 'tag_{0}_{1}'.format(DpZH, mWFP)", "def D6Jz(TZ9E):\n TZ9E = TZ9E.split('.')[:4]\n TZ9E[-1] = TZ9E[-1].split('__')[0]\n return TZ9E", "def n8G4(TZ9E):\n return TZ9E.split('...
[ "0.6406087", "0.6349051", "0.6140388", "0.6127366", "0.60483265", "0.59399647", "0.59252554", "0.5915964", "0.5869187", "0.58673704", "0.5866617", "0.58340377", "0.57899547", "0.57789195", "0.57494235", "0.5710664", "0.5701795", "0.56441414", "0.5643859", "0.5640124", "0.5633...
0.6381623
1
Return the list of raw data waves in the current experiment
def c_Av(YKHO): return YKHO._get_waves_names('CombRaw', good_ids=YKHO.keep_ids)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZS6E(YKHO):\n return YKHO.song.song_data.wave_frames[YKHO.index]", "def Zog8(YKHO):\n return [YKHO.buffer[YRbF] for YRbF in range(YKHO.waveform_size)]", "def ZW7Z(YKHO, IXKo):\n iQ7e = YKHO._get_wavelane_group(IXKo)\n tGEg = [jgOL['wave'] for jgOL in iQ7e]\n return tGEg", "def HYQV(YKHO):\...
[ "0.764385", "0.7577766", "0.73093057", "0.7233364", "0.7220563", "0.71353334", "0.7003094", "0.69554937", "0.69206685", "0.684321", "0.6708756", "0.66811484", "0.6611369", "0.66034824", "0.65934956", "0.656788", "0.6538805", "0.64864373", "0.64864373", "0.6472781", "0.6455769...
0.58331394
94
averaged 2 halves of baseline
def oRfO(YKHO, qJa9): return nj5j.cut_and_avg_halves(YKHO.extract_bsl(qJa9))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nXjB(RhGk):\n zNig = RhGk.shape\n wncN = Zxt2.transpose(Zxt2.resize(Zxt2.transpose((RhGk[:, 0] + RhGk[:zNig[1] - 1]) / 2), (zNig[1], zNig[0])))\n return RhGk - wncN", "def quNM(YKHO):\n for YRbF in range(len(YKHO.raw_clipped_baselined)):\n AYii = YKHO.extract_bsl(YKHO.raw_clipped_baselined...
[ "0.69254076", "0.6761363", "0.64580506", "0.6427127", "0.64174896", "0.62560934", "0.6249587", "0.6181855", "0.61660135", "0.6072745", "0.60494053", "0.60274935", "0.5925", "0.59067667", "0.5788285", "0.57781637", "0.5775885", "0.57752216", "0.57596225", "0.57571936", "0.5734...
0.0
-1
Returns the index of the fist non 0 point
def jFef(YKHO): for YRbF in range(len(YKHO.cmd)): if YKHO.cmd[YRbF] != 0: return YRbF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zSy9(OxJJ):\n for G1Hx, ZfUD in enumerate(OxJJ):\n if not Ilch(ZfUD).is_near_zero():\n return G1Hx\n raise gysR(NTRO.NO_NONZERO_ELTS_FOUND_MSG)", "def Ljsy(nPrm):\n epBp = nPrm[:, -1]\n or8S = oyIN.argmin(epBp)\n return or8S", "def bfyn(LNo8):\n waS5 = oyIN.nonzero(LNo8)...
[ "0.76435983", "0.7314241", "0.72491515", "0.7236388", "0.7181971", "0.7121408", "0.7065734", "0.7023724", "0.69931203", "0.6989113", "0.6957722", "0.6931793", "0.6925126", "0.68467516", "0.68088424", "0.68027914", "0.6801049", "0.672727", "0.67115265", "0.670753", "0.667698",...
0.0
-1
Given a list of iterables, each of which is sorted in descending order, return a generator that yields the merged values in correct order.
def sZmT(l6fp): return vGZu(*l6fp, reverse=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X8fE(*ix7N, **B2fa):\n H5ew = B2fa.pop('key', lambda jzdc: jzdc)\n gxEw = B2fa.pop('reverse', False)\n qMlH = max if gxEw else min\n HjD5 = [bXfk(WhY1) for WhY1 in ix7N]\n HjD5 = [XP5J for XP5J in HjD5 if XP5J]\n while HjD5:\n bGrB, XP5J = qMlH(((H5ew(XP5J.peek()), XP5J) for XP5J in Hj...
[ "0.69747597", "0.66376066", "0.6485318", "0.6465441", "0.6418843", "0.63360137", "0.63285446", "0.6279879", "0.6238762", "0.6238321", "0.6222473", "0.61771137", "0.6136266", "0.6030153", "0.5956064", "0.59330755", "0.5926777", "0.5912444", "0.5905798", "0.5891543", "0.5889303...
0.0
-1
Return full name of the service (useful if different from service type)
def xpqj(YKHO): return YKHO.svc_type
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> str:\n return qe4Y.get(YKHO, 'service_name')", "def bSEa(YKHO) -> qe4Y.Output[s...
[ "0.86842436", "0.86842436", "0.86842436", "0.86842436", "0.85816646", "0.85816646", "0.85816646", "0.85816646", "0.85179853", "0.85179853", "0.8422209", "0.8335469", "0.8335469", "0.826572", "0.8243567", "0.82090974", "0.82090974", "0.82090974", "0.82090974", "0.8115544", "0....
0.80772084
26
constructs the neural network model
def yRcF(YKHO): C3ST = ileL() C3ST.add(Ofph(64, 1, 3, 3, border_mode='full')) C3ST.add(MroH('relu')) C3ST.add(Ofph(64, 64, 3, 3)) C3ST.add(MroH('relu')) C3ST.add(BzBX(poolsize=(2, 2))) C3ST.add(lARV(0.25)) C3ST.add(Ofph(128, 64, 3, 3, border_mode='full')) C3ST.add(MroH('relu')) C...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def n8cN(YKHO):\n YKHO.num_labels = len(YKHO.labels_info.label_names)\n YKHO.neural_model = YKHO.neural_model_class(YKHO.config, YKHO.get_embedding_info(), output_dim=YKHO.get_output_dim(), working_folder=YKHO.config.folders.results, model_name=YKHO.get_model_filename())", "def Cc7Y(YKHO):\n C3ST = ileL...
[ "0.79667103", "0.77996504", "0.7757177", "0.75597745", "0.7439321", "0.73824805", "0.735829", "0.7356713", "0.7352826", "0.7348703", "0.733567", "0.73197865", "0.73075795", "0.7301575", "0.7300553", "0.7292034", "0.7282308", "0.7271144", "0.72670275", "0.72656703", "0.7260179...
0.0
-1
Load sentences. A line must contain at least a word and its tag. Sentences are separated by empty lines.
def PjKH(pmON, LSh8, VNqG): Rhv4 = [] yAmx = [] for zFiD in T_Uj.open(pmON, 'r', 'utf8'): if not zFiD.rstrip(): if len(yAmx) > 0: if 'DOCSTART' not in yAmx[0][0]: Rhv4.append(yAmx) yAmx = [] else: GIN8 = k1ZV(zFiD.rs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PjKH(pmON, LSh8, VNqG):\n Rhv4 = []\n yAmx = []\n mLGw = 0\n for zFiD in open(pmON, 'r', encoding='utf8'):\n mLGw += 1\n zFiD = k1ZV(zFiD.rstrip()) if VNqG else zFiD.rstrip()\n if not zFiD:\n if len(yAmx) > 0:\n Rhv4.append(yAmx)\n yAmx = []...
[ "0.74672353", "0.7432416", "0.734904", "0.7323798", "0.7323798", "0.69815844", "0.69660515", "0.69541955", "0.6656203", "0.6635001", "0.66070306", "0.65774554", "0.65230995", "0.65135026", "0.6510153", "0.6470751", "0.6468566", "0.644387", "0.64363664", "0.6417458", "0.641731...
0.735754
2
Convert the magnitude values for a given magnitude column into units of f_lambda.
def Bj6_(YKiD, cAx9, etQF, t42P, T4Mj): VolL, mSc6, k3AV, csQL = t42P if T4Mj in ['stmag', 'vegamag']: d5l2 = JSJf(YKiD, cAx9, T4Mj, etQF, photfnu=mSc6, photflam=VolL, vegamag_zeropoint=k3AV) DCsS = d5l2 * VolL if T4Mj == 'abmag': DCsS = 1.0 / (33400.0 * csQL.to(P6bq.AA).value ** 2) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z5mS(Hluf=None, u1S9=None, WAb8=None, DXYc='micros'):\n xn_d = []\n for _2rl in Hluf:\n XEZU = _2rl * (WAb8 * 100) / XCsk - u1S9\n if DXYc == 's':\n XEZU *= 1e-06\n xn_d.append(XEZU)\n return xn_d", "def NobI(qJa9, p1uM, Vd8L=1e-17):\n RICm = [qJa9] if isinstance(q...
[ "0.61481446", "0.61248577", "0.5933959", "0.57898474", "0.57671076", "0.576121", "0.5733309", "0.57025385", "0.5683637", "0.5671259", "0.56668615", "0.56503683", "0.5638808", "0.56345546", "0.56290454", "0.5570432", "0.5567673", "0.55654705", "0.55615443", "0.55481344", "0.55...
0.5696353
8
Rescale any input spectra that are normalized
def D_zg(_nn5, phc1, T4Mj, l_33, yWmh): bo34 = G9jH.getLogger('mirage.catalogs.spectra_from_catalog.rescale_normalized_spectra') bo34.info('Using {} for the Vega spectrum used to renormalize input spectra to input vegamag values.'.format(RYVV)) with yNMN.set_temp('vega_file', RYVV): NvKN = qEyc.from...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NXpY(V_SG):\n WxTu = []\n for UH90 in V_SG:\n for YRbF in range(UH90.shape[2]):\n AoMj = UH90[:, :, YRbF].max()\n iIQi = UH90[:, :, YRbF].min()\n if AoMj == iIQi:\n UH90[:, :, YRbF] = 1\n else:\n UH90[:, :, YRbF] = (UH90[:, ...
[ "0.66709167", "0.6654189", "0.65865546", "0.65437365", "0.6506144", "0.6496412", "0.648775", "0.64866924", "0.64716274", "0.6440275", "0.64331967", "0.6409641", "0.6395863", "0.6393106", "0.6390622", "0.6387278", "0.6381205", "0.63808167", "0.63750273", "0.63735545", "0.63727...
0.69894695
0
Render the home page for the website and if the user is signed in then display any upcoming shows that they may have
def d6pt(QePW): vfsE = [] if QePW.user.is_authenticated: for xAWg in QePW.user.favorites.filter(is_favorite=True).all(): if xAWg.moviedb.upcoming_data is not None and xAWg.moviedb.upcoming_data != '': p3Qv = qQXR.loads(xAWg.moviedb.upcoming_data) if 'air_date'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C_QL():\n if c5ow.is_authenticated:\n TTUj = c5ow.discs\n vXOI = c5ow.wish_discs\n e6YJ = DlQp(TTUj)\n TFcC = c5ow.broken_in_discs\n return TvZl('home.html', user=c5ow, users_discs=TTUj, user_wishlist=vXOI, bag_stats=e6YJ, broken_in_discs=TFcC)\n else:\n return T...
[ "0.7822313", "0.764548", "0.7511427", "0.7511188", "0.74695575", "0.7447699", "0.7374872", "0.73741555", "0.73329633", "0.73214316", "0.729811", "0.72887886", "0.7271318", "0.7234778", "0.7201271", "0.7187268", "0.71505904", "0.71462196", "0.71431047", "0.7133746", "0.7109676...
0.0
-1
Initialize Deque using DoublyLinkedList methods.
def FIMM(YKHO): YKHO._doubly_linked_list = LpwA()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.dq = MUE7()", "def FIMM(YKHO):\n YKHO.storage = LpwA()", "def FIMM(YKHO):\n YKHO.storage = mydc()", "def FIMM(YKHO, FjhH):\n YKHO.dq = g760.deque(FjhH)", "def FIMM(YKHO):\n YKHO.stack = LpwA.DoublyLinkedList()", "def FIMM(YKHO):\n YKHO.d = MUE7()", "def MUE7():\...
[ "0.7068187", "0.70581216", "0.70441836", "0.692858", "0.68755233", "0.6865948", "0.6809", "0.6794656", "0.66455215", "0.661919", "0.6526185", "0.6512507", "0.6495728", "0.64943576", "0.64816135", "0.64605314", "0.6460481", "0.6460481", "0.6451618", "0.6380388", "0.63369334", ...
0.7307212
0
Add a node to back Deque.
def SStx(YKHO, wEf2): YKHO._doubly_linked_list.append(wEf2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F1bx(YKHO, ZfUD):\n Q6kx = o7DN(ZfUD)\n if not YKHO.front:\n YKHO.front = Q6kx\n else:\n YKHO.rear.next = Q6kx\n YKHO.rear = Q6kx\n Q6kx.next = YKHO.front", "def Rb2A(YKHO, tTpl):\n Esd_ = o7DN(tTpl)\n if YKHO.size == 0:\n YKHO.head = Esd_\n YKHO.tail = Esd_\n...
[ "0.71116984", "0.7022764", "0.6926879", "0.6910645", "0.68309194", "0.6814954", "0.6814954", "0.6805387", "0.67811435", "0.67261636", "0.67222667", "0.67147124", "0.66630495", "0.66571134", "0.66377467", "0.6617346", "0.659981", "0.6595737", "0.65548575", "0.6539598", "0.6516...
0.0
-1
Remove node at the front.
def ITjG(YKHO): try: return YKHO._doubly_linked_list.pop() except IndexError: raise IndexError('Nothing to pop from front')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WvVJ(YKHO):\n tlxW = YKHO.head\n YKHO.head = YKHO.head.next\n return tlxW.data", "def k_ru(YKHO):\n BWXx = YKHO.head.data\n YKHO.head = YKHO.head.next\n if YKHO.head != None:\n YKHO.head.prev = None\n YKHO.size -= 1\n return BWXx", "def WvVJ(YKHO):\n assert YKHO._front is ...
[ "0.7950171", "0.79184663", "0.7845887", "0.7692994", "0.76897967", "0.7688744", "0.7650619", "0.7444899", "0.7441695", "0.7375001", "0.73259133", "0.73045015", "0.72888076", "0.71521264", "0.714338", "0.71429294", "0.7132225", "0.712692", "0.7112938", "0.7106357", "0.70820117...
0.64759934
87
Get value of next node to be popped left.
def T7C_(YKHO): if YKHO._doubly_linked_list.size() == 0: return None return YKHO._doubly_linked_list.tail.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next(YKHO) -> int:\n Q6kx = YKHO.stack.pop()\n JCkH = Q6kx.right\n while JCkH:\n YKHO.stack.append(JCkH)\n JCkH = JCkH.left\n return Q6kx.val", "def next(YKHO) -> int:\n WKvO = YKHO.nodes.pop(0)\n if WKvO.right:\n YKHO.goLeft(WKvO.right)\n return WKvO.val", "def BE...
[ "0.7953112", "0.7951124", "0.7932817", "0.78841245", "0.78803825", "0.7853281", "0.7848811", "0.7844238", "0.7830562", "0.7781868", "0.77761525", "0.77466214", "0.7665822", "0.76383454", "0.76298445", "0.7626375", "0.7616478", "0.756793", "0.75660396", "0.7559922", "0.7551033...
0.0
-1
Get value of next node to be popped.
def J1pb(YKHO): if YKHO._doubly_linked_list.size() == 0: return None return YKHO._doubly_linked_list.head.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BEuN(YKHO):\n if YKHO.top == None:\n return None\n else:\n Q6kx = YKHO.top\n YKHO.top = YKHO.top.nxt\n return Q6kx.value", "def BEuN(YKHO):\n if YKHO.head is None:\n return None\n Q6kx = YKHO.head\n YKHO.head = YKHO.head.next\n return Q6kx.value", "def B...
[ "0.81419563", "0.791922", "0.79024476", "0.78376305", "0.77975106", "0.77892154", "0.77813137", "0.7737422", "0.7728239", "0.7638441", "0.7569781", "0.7538144", "0.7538141", "0.75266993", "0.75135934", "0.7493317", "0.7468836", "0.74682575", "0.7459559", "0.7453056", "0.74508...
0.0
-1
Get the size of the Deque.
def zNig(YKHO): return YKHO._doubly_linked_list.size()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return YKHO.size", "def zNig(YKHO):\n return len(YKHO._queue)", "def zNig(YKHO):\n return len(YKHO.queue)", "def jBJp(YKHO) -> int:\n return len(YKHO.__queue)", "def UrdD(YKHO):\n return len(YKHO.queue)", "def nWMf(YKHO):\n return len(YKHO.queue)", "def zNig(YKHO):\n...
[ "0.8181356", "0.80461144", "0.8032658", "0.80093896", "0.7991531", "0.79717463", "0.7966188", "0.7965209", "0.7937725", "0.79162616", "0.79049563", "0.7882756", "0.7882756", "0.78717774", "0.78214306", "0.7813335", "0.7803834", "0.7791475", "0.77475816", "0.7720819", "0.76661...
0.7250581
66
When a request fails with a 404, redirect to a (potential) draft version of the resource if the user is a staff member permitted to view drafts.
def qdNG(QePW, geh0): if geh0.status_code == 404 and (not j7xV.is_draft_request(QePW)) and (not j7xV.is_admin_request(QePW)) and (not j7xV.is_api_request(QePW)) and j7xV.is_staff_user(QePW): return Yd7Q(xmgj(QePW.get_full_path())) return geh0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jkLb(YKHO):\n with Po4F('tekblog.views.get_object_or_404') as gJdh:\n gJdh.return_value = YKHO.entry\n YKHO.entry.draft = True\n YKHO.request.user.is_staff = False\n YKHO.assertRaises(uhgT, aeup, YKHO.request, YKHO.slug)", "def uS5G(x0hE, CBIr):\n x0hE.force_login(CBIr)\n ...
[ "0.6741004", "0.6540825", "0.62503386", "0.6176755", "0.6102816", "0.6010788", "0.59134215", "0.5852898", "0.5847792", "0.5847651", "0.58276284", "0.5813656", "0.581359", "0.5804709", "0.579259", "0.57781655", "0.5776662", "0.57705736", "0.5766996", "0.5766771", "0.5760753", ...
0.8977926
0
Given an RGB input of dimensions (C, H, W), return the luminance corrected greyscale version as (H, W)
def mIDD(WKvO): return 0.2126 * WKvO[0] + 0.7152 * WKvO[1] + 0.0722 * WKvO[2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HBfW(d7Eb):\n CkYf = oyIN.zeros((480, 270, 3), oyIN.float32)\n jKTO = oyIN.zeros((480, 270, 3), oyIN.uint8)\n Fg_i = d7Eb[:, :, 0]\n Oa1e = d7Eb[:, :, 1]\n Mkmy = d7Eb[:, :, 2]\n sum = Fg_i + Oa1e + Mkmy\n CkYf[:, :, 0] = Fg_i / sum * 255.0\n CkYf[:, :, 1] = Oa1e / sum * 255.0\n CkYf...
[ "0.6903364", "0.6873855", "0.6839952", "0.6818752", "0.6672223", "0.6667243", "0.65286106", "0.6516169", "0.6486275", "0.6455616", "0.64196867", "0.6395203", "0.6387728", "0.6385948", "0.6378508", "0.6368699", "0.63686806", "0.63083965", "0.6297638", "0.62799853", "0.6276845"...
0.59095186
87
Expand the (H, W) shaped image to have 'num_channels' before the HW dimensions, i.e. (C, H, W)
def jseR(WKvO, Qi3c): return oyIN.stack((WKvO,) * Qi3c, axis=0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dO8p(VXjJ, Nq1b):\n VXjJ = VXjJ[:, :, (2, 1, 0)]\n VXjJ = VXjJ.astype(oyIN.float32)\n VXjJ[:, :, 0] -= Nq1b.img_channel_mean[0]\n VXjJ[:, :, 1] -= Nq1b.img_channel_mean[1]\n VXjJ[:, :, 2] -= Nq1b.img_channel_mean[2]\n VXjJ /= Nq1b.img_scaling_factor\n VXjJ = oyIN.transpose(VXjJ, (2, 0, 1))...
[ "0.64656216", "0.64656216", "0.64656216", "0.6422593", "0.6418271", "0.6414788", "0.6392647", "0.6392647", "0.637663", "0.63748616", "0.63732684", "0.63432825", "0.6301215", "0.6248393", "0.6183168", "0.6178586", "0.61228365", "0.60870427", "0.6025462", "0.6022874", "0.601997...
0.6718508
0
Encode either padded or nonpadded sequences. Can choose to either handle or ignore variable length sequences. Always handle padding in eval.
def KVH6(YKHO, nPrm, ZHfW): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oB8c(sk8K, jWe2, **NArs):\n PCnA = [[sk8K.get(jzdc, sk8K['__ETC__']) for jzdc in YRbF] for YRbF in jWe2]\n NArs['value'] = sk8K['__PAD__']\n return aWuw.pad_sequences(PCnA, **NArs)", "def nnZu(_NR1=None, WKvO=[], LVAh=[], WMKK=None, wPFE=True, ui13=True, dKqF=False):\n\n def jQqR(jWe2, KLk8=None,...
[ "0.6346998", "0.6335622", "0.62737566", "0.621992", "0.6013709", "0.5981611", "0.5946367", "0.59280604", "0.588334", "0.584325", "0.58111733", "0.5808094", "0.58077115", "0.5794326", "0.5792963", "0.5788464", "0.57861733", "0.5777146", "0.57715905", "0.57582545", "0.5752248",...
0.0
-1
Finds the max of a list of numbers and returns the value (not the index). If int_list is empty, returns None. If list is None, raises ValueError.
def IU_G(PVOR): if PVOR is None: raise ValueError if PVOR == []: return None PtQX = PVOR[0] for YRbF in PVOR: if YRbF > PtQX: PtQX = YRbF return PtQX
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qOmX(list=[]):\n if len(list) == 0:\n return None\n Aofo = list[0]\n YRbF = 1\n while YRbF < len(list):\n if list[YRbF] > Aofo:\n Aofo = list[YRbF]\n YRbF += 1\n return Aofo", "def IU_G(PVOR):\n if PVOR == None:\n raise ValueError('Value Error')\n e...
[ "0.8307314", "0.8292384", "0.81261903", "0.80407387", "0.8024423", "0.7872013", "0.78702027", "0.77853715", "0.76215595", "0.75915444", "0.7558919", "0.75176275", "0.7509656", "0.74910176", "0.74162894", "0.7384793", "0.7336062", "0.72940457", "0.7280688", "0.727072", "0.7215...
0.8072169
3
Convert dict representation of Place to GeoJSON feature object.
def WXU9(C6id: Dict) -> cuzp: return {'type': 'Feature', 'geometry': {'type': 'Point', 'coordinates': [C6id['lon'], C6id['lat']]}, 'properties': {'title': C6id['title'], 'placeId': eIIt(C6id['title']), 'detailsUrl': gxEw('places:place-details-json', kwargs={'place_id': C6id['id']})}}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o0yR(NZQz):\n J8oL = NZQz.__geo_interface__\n if J8oL['type'] == 'Feature':\n return J8oL\n else:\n return {'type': 'Feature', 'geometry': J8oL}", "def r2za(nvWN: QuerySet[Place]) -> cuzp:\n nvWN = nvWN.values()\n bySB = [WXU9(C6id) for C6id in nvWN]\n return {'type': 'Feature...
[ "0.65504855", "0.6503734", "0.5917787", "0.58504474", "0.56809187", "0.55370694", "0.55260336", "0.5493908", "0.546153", "0.54390293", "0.5434907", "0.5413513", "0.5377909", "0.5359532", "0.533361", "0.52891695", "0.52583843", "0.52555513", "0.5225016", "0.52177155", "0.51581...
0.82450855
0
Tests the Heisenberg representation of the Squeezing gate.
def XlmD(YKHO): YKHO.logTestName() for Mkmy in wc8c: for rVnq in fujv: SppC = jbYn.Squeezing._heisenberg_rep([Mkmy, rVnq]) zlOQ = oyIN.array([[1, 0, 0], [0, oyIN.cosh(Mkmy) - oyIN.cos(rVnq) * oyIN.sinh(Mkmy), -oyIN.sin(rVnq) * oyIN.sinh(Mkmy)], [0, -oyIN.sin(rVnq) * oyIN.sinh(Mkm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nIi2(YKHO):\n YKHO.logTestName()\n for Mkmy in wc8c:\n for rVnq in fujv:\n SppC = jbYn.TwoModeSqueezing._heisenberg_rep([Mkmy, rVnq])\n zlOQ = oyIN.array([[1, 0, 0, 0, 0], [0, oyIN.cosh(Mkmy), 0, oyIN.cos(rVnq) * oyIN.sinh(Mkmy), oyIN.sin(rVnq) * oyIN.sinh(Mkmy)], [0, 0, oyIN...
[ "0.7137868", "0.6960385", "0.6818266", "0.67565626", "0.6752823", "0.67509204", "0.6730418", "0.6505935", "0.64640266", "0.63445616", "0.6316", "0.6239378", "0.6215404", "0.6161688", "0.60922116", "0.59857076", "0.59759957", "0.5941123", "0.59243333", "0.5920012", "0.59136367...
0.80091035
0
Tests the Heisenberg representation of the QuadraticPhase gate.
def eQg9(YKHO): YKHO.logTestName() for KCHu in xY24: SppC = jbYn.QuadraticPhase._heisenberg_rep([KCHu]) zlOQ = oyIN.array([[1, 0, 0], [0, 1, 0], [0, KCHu, 1]]) YKHO.assertAllAlmostEqual(SppC, zlOQ, delta=YKHO.tol)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cD7z(YKHO):\n YKHO.logTestName()\n for KCHu in xY24:\n SppC = jbYn.ControlledPhase._heisenberg_rep([KCHu])\n zlOQ = oyIN.array([[1, 0, 0, 0, 0], [0, 1, 0, 0, 0], [0, 0, 1, KCHu, 0], [0, 0, 0, 1, 0], [0, KCHu, 0, 0, 1]])\n YKHO.assertAllAlmostEqual(SppC, zlOQ, delta=YKHO.tol)", "def...
[ "0.669251", "0.6603485", "0.660042", "0.6564768", "0.65619135", "0.6545328", "0.65142244", "0.64675975", "0.6345382", "0.6262872", "0.607754", "0.6046308", "0.6004229", "0.59985524", "0.5932034", "0.5913413", "0.588177", "0.58609813", "0.583754", "0.58343667", "0.5821885", ...
0.7819608
0
Tests the Heisenberg representation of the ControlledAddition gate.
def vr8K(YKHO): YKHO.logTestName() for KCHu in xY24: SppC = jbYn.ControlledAddition._heisenberg_rep([KCHu]) zlOQ = oyIN.array([[1, 0, 0, 0, 0], [0, 1, 0, 0, 0], [0, 0, 1, 0, -KCHu], [0, KCHu, 0, 1, 0], [0, 0, 0, 0, 1]]) YKHO.assertAllAlmostEqual(SppC, zlOQ, delta=YKHO.tol)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wRtw(YKHO):\n C7Ls, a1PO = gbuq(YKHO.r)\n q7D6, iV2t = YKHO.H_circuit(C7Ls, a1PO)\n ewpR = SZw3(YKHO.r)\n PyJi, YTAG = YKHO.ref_circuit(ewpR)\n assert oyIN.allclose(iV2t, YTAG)\n assert oyIN.allclose(q7D6, PyJi)", "def cD7z(YKHO):\n YKHO.logTestName()\n for KCHu in xY24:\n SppC...
[ "0.6799539", "0.60876584", "0.6034315", "0.600321", "0.5870515", "0.57860374", "0.5778581", "0.57202065", "0.56971425", "0.5626572", "0.5604159", "0.5595296", "0.5551914", "0.55384487", "0.5526318", "0.55020577", "0.54860467", "0.54766107", "0.545885", "0.54427975", "0.543716...
0.7342829
0
Tests that proper exceptions are raised if we try to call the Heisenberg transformation of nonGaussian gates.
def Tfya(YKHO): YKHO.logTestName() with YKHO.assertRaisesRegex(RuntimeError, 'is not a Gaussian operation'): for khtY in gXVr: D9fn = khtY(*[0.1] * khtY.num_params, [0] * khtY.num_wires, do_queue=False) D9fn.heisenberg_tr(khtY.num_wires)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d6WZ(YKHO):\n with trZe.raises(ValueError):\n C7Ls = w5RD('q0', 1 + 2j)\n mX1R(C7Ls)", "def bncA(YKHO):\n for khtY in gXVr:\n YKHO.assertTrue(khtY._heisenberg_rep(*[0.1] * khtY.num_params) is None)", "def xXUF(YKHO):\n ORsB = oyIN.array([[1, 1], [1, -1]]) / oyIN.sqrt(2)\n w...
[ "0.702758", "0.70016044", "0.66032684", "0.6599621", "0.64724904", "0.64602226", "0.63979495", "0.6347149", "0.62796825", "0.62613976", "0.6246701", "0.6204486", "0.61837906", "0.61529046", "0.61470294", "0.60976225", "0.60895514", "0.60848993", "0.6047498", "0.6044794", "0.6...
0.77017456
0
Number of data in the receiver.
def atCF(YKHO): if YKHO.times is not None: return YKHO.locations.shape[0] * len(YKHO.times)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def len(YKHO):\n return YKHO.ndata", "def u54L(YKHO):\n UHFx = 0\n for bGrB in YKHO.data:\n UHFx += 1\n return UHFx", "def r_JG(YKHO):\n return len(YKHO.data)", "def s1oX(YKHO):\n return len(YKHO.data)", "def gRvK(YKHO):\n if YKHO._buf is None:\n return 0\n return RlGO...
[ "0.82093835", "0.8160318", "0.795705", "0.79283774", "0.79025036", "0.7898157", "0.78475994", "0.78031725", "0.78026754", "0.7788786", "0.7788786", "0.7775343", "0.7775343", "0.7775343", "0.77685875", "0.7737105", "0.7734665", "0.77084637", "0.7689323", "0.7676749", "0.767674...
0.0
-1
Add a memory to the list of memories.\n
def GPY5(YKHO, HCmI, hksT): YKHO.memories['type'].append(HCmI[0]) YKHO.memories['name'].append(HCmI[1]) JgcI = eval(HCmI[2]) if not aTkg(JgcI): raise TjRR('Memory length must be a power of 2, not "%s", at %s' % (HCmI[2], hksT)) YKHO.memories['maxLength'].append(eval(HCmI[2]))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jvqY(YKHO, wspz):\n YKHO.mem.append(wspz)", "def TSWd(Emd4, _p7a: str, _EVc: Dict[str, int]) -> cuzp[str, int]:\n if not _p7a:\n return _EVc\n assert _p7a not in _EVc\n _EVc[_p7a] = 0\n return _EVc", "def H2v5(YKHO, *qIxc):\n YKHO.memory.append([*qIxc])", "def H2v5(YKHO, poLx: di...
[ "0.76741505", "0.7364977", "0.7345237", "0.73000276", "0.72841954", "0.7253785", "0.7251687", "0.72050977", "0.7090974", "0.70419604", "0.69408536", "0.6856702", "0.6748936", "0.6658795", "0.642733", "0.6423748", "0.63552946", "0.6265955", "0.61963016", "0.61708057", "0.61703...
0.7491619
1
Indicate whether or not the specified symbol is a recognized constant.
def feog(YKHO, mWFP): if ZbWC.match('C_\\w+$', mWFP) and mWFP in YKHO.constants: return True else: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mGC4(YKHO, o61b):\n return YKHO.lookupSymbol(o61b) is not None", "def My_c(YKHO, mWFP):\n return mWFP in YKHO.symbols", "def bNaA(aDi_):\n return not (hxIL(aDi_) or JfjM(aDi_))", "def sjXf(YKHO, o61b) -> bool:\n return True if o61b in YKHO.symtable.keys() else False", "def vqxg(Emd4, o61b):...
[ "0.7202451", "0.71773654", "0.71752596", "0.71063066", "0.70987535", "0.6973804", "0.69312316", "0.686966", "0.6836729", "0.68268114", "0.6775502", "0.67454875", "0.67252654", "0.6719401", "0.6668428", "0.66377604", "0.6637569", "0.66075844", "0.66025037", "0.6598816", "0.655...
0.73533547
0
Return the number of OUTPORTS.
def ubgL(YKHO): return len(YKHO.outports)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xALV(YKHO):\n return len(YKHO.inports)", "def AFcx(YKHO):\n return YKHO._output_port_count", "def BX9b(YKHO):\n return WQRu(YKHO.plugin)", "def IUAI(YKHO):\n return YKHO._public_output_port_count", "def jPyt(YKHO):\n return YKHO._local_output_port_count", "def InLP(YKHO):\n if YKHO....
[ "0.78461474", "0.77552456", "0.7258388", "0.7109376", "0.71063787", "0.7083663", "0.7008547", "0.6959355", "0.69302225", "0.6903068", "0.66665494", "0.6664261", "0.6619248", "0.65889996", "0.6537909", "0.6454778", "0.6369477", "0.6263077", "0.6214856", "0.61526716", "0.614208...
0.83282727
0
Check if the tree element is root.
def IWmZ(YKHO, HDT0=None, ZfUD=None): if HDT0 is None: CnkA.warning(u'Not define wx.TreeCtrl object') return False assert issubclass(HDT0.__class__, lnPd.TreeCtrl), u'TreeCtrl manager type error' return HDT0.GetRootItem() == ZfUD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kFcs(YKHO):\n return YKHO.root is True", "def Swep(YKHO):\n return YKHO.parent_node is None", "def K5QN(YKHO, Q6kx):\n return Q6kx.parent is YKHO.NIL", "def kFcs(YKHO):\n return False", "def kFcs(YKHO):\n return YKHO is YKHO.root", "def zEXx(U6D_: etree._Element) -> bool:\n return U...
[ "0.85213614", "0.8415977", "0.83663213", "0.83245295", "0.8287828", "0.8282746", "0.8233541", "0.8232604", "0.8217465", "0.81988424", "0.81927335", "0.8171831", "0.8136382", "0.81282675", "0.81282675", "0.8077001", "0.8061826", "0.80498105", "0.80250436", "0.8020485", "0.8016...
0.67406166
99
Return the groupmembership vectors for documentnodes, p_td_d, array with shape Bd x D wordnodes, p_tw_w, array with shape Bw x V It gives the probability of a nodes belonging to one of the groups.
def MWy2(YKHO, vC9B=0): nevh = YKHO.get_groups(l=vC9B) gSNZ = nevh['p_tw_w'] AgAr = nevh['p_td_d'] return (AgAr, gSNZ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mtFr(YKHO):\n rnv5 = YKHO.mask.affine\n JxpP = oyIN.vstack(oyIN.where(YKHO.mask.get_fdata())).T\n oQTT = j4hm.affines.apply_affine(rnv5, JxpP)\n W21q = oyIN.zeros((oQTT.shape[0], YKHO.params['n_topics']), float)\n for kJr5 in range(YKHO.params['n_topics']):\n for BupS in range(YKHO.params...
[ "0.6225577", "0.53808826", "0.53514594", "0.5305417", "0.52923846", "0.5259573", "0.5223804", "0.5220938", "0.52180755", "0.51721823", "0.5124093", "0.5086127", "0.5077868", "0.50639635", "0.4998096", "0.49929264", "0.49703023", "0.49647462", "0.49643", "0.4953513", "0.495244...
0.4997266
15
return number of docnodes == number of documents
def Oueu(YKHO): return int(oyIN.sum(YKHO.g.vp['kind'].a == 0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G7LZ(YKHO):\n return len(YKHO.doc)", "def FxC3(YKHO):\n return YKHO.__length_documents", "def Rtxw(YKHO):\n return YKHO._ndocuments", "def szAg(YKHO):\n return YKHO.col.count_documents({})", "def uMKX(YKHO):\n return len(YKHO.raw_text)", "def UHFx(YKHO):\n return len(YKHO.document_i...
[ "0.76730734", "0.67678624", "0.6713994", "0.6691407", "0.66341215", "0.6632974", "0.66235745", "0.6516885", "0.6418051", "0.6410832", "0.6378559", "0.6375187", "0.63511455", "0.6323295", "0.63131076", "0.6305616", "0.6291311", "0.6275789", "0.62720335", "0.62230945", "0.62166...
0.0
-1
Test uploading an invalid image
def xzQ7(YKHO): bD7m = xx5i(YKHO.portfolio.id) Ylbp = YKHO.client.post(bD7m, {'avatar': 'notimage'}, format='multipart') YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_404_NOT_FOUND)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zwC5(YKHO):\n bD7m = xx5i(YKHO.recipe.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'notimage'}, format='multipart')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def Vt_3(YKHO):\n bD7m = nXsP(YKHO.recipe.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'not image'}, format='...
[ "0.8583424", "0.8558244", "0.85374063", "0.8413656", "0.8373553", "0.83652174", "0.8360783", "0.8360783", "0.8359964", "0.83317864", "0.8331326", "0.8331326", "0.83073425", "0.8296584", "0.8270422", "0.8270132", "0.82606834", "0.8249335", "0.820451", "0.78633493", "0.7782769"...
0.80751884
19
Computes discrete L2error norm for the facecentered fluxes
def PHKu(Oa1e, E8R7, zx9B): k0lF = Oa1e.face_areas P1dF = (k0lF * (zx9B - E8R7) ** 2).sum() ** 0.5 / (k0lF * zx9B ** 2).sum() ** 0.5 return P1dF
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i2QM(RG8W, MKlR):\n cbY4 = oyIN.sqrt(oyIN.sum(RG8W) * MKlR ** 2)\n wTln = oyIN.sqrt(oyIN.max(RG8W) * MKlR ** 2)\n return (cbY4, wTln)", "def zn0E(YKHO):\n if hasattr(YKHO, 'H') and hasattr(YKHO, 'W'):\n P1dF = XVcZ.norm(YKHO.X - oyIN.dot(YKHO.W, YKHO.H))\n else:\n P1dF = None\n ...
[ "0.6485011", "0.64783746", "0.64428204", "0.6440583", "0.6437462", "0.6427476", "0.6414154", "0.64123994", "0.6395013", "0.6381794", "0.6342674", "0.6314834", "0.62873423", "0.62689173", "0.62603104", "0.62310255", "0.6210813", "0.61987966", "0.61974704", "0.6174643", "0.6168...
0.0
-1
Return True if the atom matches the F6 (subtle chemical environment) entry, False otherwise
def nCa_(bTKY, Zc90): N9D1, rO_4 = Zc90 iiMj = [] HAlT(bTKY[1:-1], iiMj, []) iiMj.sort(key=len) iiMj.reverse() ie7L = set([len(WKvO) for WKvO in iiMj]) kEZR = [] def K2kF(d6pt, aYym, zNig): zdB2 = aYym[:] zdB2.append(d6pt) if len(zdB2) < zNig: for AAb...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hHld(Emd4, AZhO):\n return PUGk in AZhO.elements", "def eSJe(N9D1):\n GfdN = False\n for WhQ6 in N9D1.GetAtoms():\n if WhQ6.GetSymbol() == 'S':\n GfdN = True\n return GfdN", "def yoFG(N9D1):\n GfdN = False\n mmzE = ['F', 'Cl', 'Br', 'I']\n for WhQ6 in N9D1.GetAtoms():...
[ "0.5965156", "0.5855834", "0.579792", "0.5718225", "0.5697754", "0.5593817", "0.5523925", "0.5518418", "0.5486161", "0.5486161", "0.5470112", "0.5453801", "0.54517996", "0.54509133", "0.54443395", "0.54360074", "0.54208314", "0.5417873", "0.5405698", "0.5400035", "0.5393727",...
0.0
-1
Creates the placeholders for the tensorflow session.
def ajAQ(ZuM2, eV2A): EcVT = ZylS.placeholder(shape=(ZuM2, None), dtype=ZylS.float32) fuBA = ZylS.placeholder(shape=(eV2A, None), dtype=ZylS.float32) return (EcVT, fuBA)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ajAQ(YKHO):\n YKHO.user_list = ZylS.placeholder(ZylS.int32, [None], name='user_list_placeholder')\n YKHO.prod_list = ZylS.placeholder(ZylS.int32, [None], name='product_list_placeholder')\n YKHO.label_list = ZylS.placeholder(ZylS.float32, [None, 1], name='label_list_placeholder')\n YKHO.treatment_pr...
[ "0.79145455", "0.75703603", "0.7540133", "0.7536851", "0.75282514", "0.7514956", "0.7510082", "0.744688", "0.73839796", "0.7383423", "0.73751175", "0.7333883", "0.7266349", "0.72619635", "0.7257719", "0.7253984", "0.72466063", "0.7227498", "0.7208974", "0.71921724", "0.718629...
0.6563019
60
Generates a random string of a certain specified size.
def BWvy(zNig): return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(zNig)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDq5(zNig):\n return ''.join((tuKI.choice(vIwR.ascii_lowercase + vIwR.ascii_uppercase + vIwR.digits) for bGrB in range(zNig)))", "def yMb3():\n return BWvy(tuKI.randint(1, P6m3))", "def Kq2p(zNig=16):\n UbQY = vIwR.ascii_letters + vIwR.digits\n return ''.join([tuKI.choice(UbQY) for bGrB in rang...
[ "0.87245715", "0.86450744", "0.8544643", "0.8531501", "0.8476549", "0.84455365", "0.8439906", "0.8438113", "0.83645314", "0.83326405", "0.8322913", "0.8294711", "0.8276663", "0.8225981", "0.8215365", "0.8209574", "0.820362", "0.818238", "0.8069774", "0.7950213", "0.7842944", ...
0.85836095
2
Generates a random string between 1 and MAX_RANDOM_STRING_SIZE characters
def yMb3(): return BWvy(tuKI.randint(1, P6m3))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Njgc(qonS, E0wO, jkLJ):\n \"\"\" https://www.journaldev.com/23782/python-generate-random-string -- \"\"\"\n return ''.join((tuKI.choice(jkLJ) for WKvO in range(ajWY(qonS, E0wO))))", "def BWvy(wzH_=16):\n KCHu = ''\n tSyp = tuKI.randint(0, wzH_)\n while tSyp > 0:\n KCHu += R71E()\n ...
[ "0.8624515", "0.8577353", "0.8449655", "0.84448", "0.83669144", "0.8359887", "0.8348037", "0.8346026", "0.8312852", "0.8289166", "0.8278626", "0.82731533", "0.82495", "0.82464206", "0.8243555", "0.82307386", "0.82136416", "0.8211816", "0.8209599", "0.8201717", "0.81939644", ...
0.8757598
0
Sets the aws_secret_access_key of this CredTemporaryToken.
def ti1k(YKHO, ti1k): YKHO._aws_secret_access_key = ti1k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xL6j(YKHO, xL6j):\n YKHO._secret_access_key = xL6j", "def IS8w(YKHO, RYBV=None, ti1k=None):\n YKHO.aws_access_key_id = RYBV\n YKHO.aws_secret_access_key = RYBV", "def RYBV(YKHO, RYBV):\n YKHO._aws_access_key_id = RYBV", "def ti1k(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'aws_secre...
[ "0.69095814", "0.6533174", "0.63363767", "0.6157689", "0.59453636", "0.59184104", "0.58847874", "0.5884389", "0.5785775", "0.5769122", "0.5721752", "0.55768293", "0.55747414", "0.55513734", "0.55319107", "0.5531767", "0.54893976", "0.5486854", "0.54785585", "0.54785585", "0.5...
0.76624846
0
Sets the token of this CredTemporaryToken.
def eOtH(YKHO, eOtH): YKHO._token = eOtH
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SQxU(YKHO, eOtH):\n YKHO.__token = eOtH", "def SQxU(YKHO, eOtH):\n YKHO.__token = eOtH", "def SQxU(YKHO, eOtH):\n YKHO.__token = eOtH\n return None", "def SQxU(YKHO, eOtH):\n YKHO.validateToken()\n YKHO.token = eOtH", "def mDCx(YKHO, eOtH):\n YKHO._token = k5QJ(eOtH)", "def mDCx(...
[ "0.7145027", "0.7145027", "0.7057094", "0.69352156", "0.6803292", "0.67200464", "0.6717845", "0.67107487", "0.67049146", "0.66898286", "0.6635801", "0.6635801", "0.6635801", "0.6532558", "0.6521866", "0.63830745", "0.6353698", "0.63201034", "0.6292244", "0.6292244", "0.616515...
0.67455983
5
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): if not isinstance(Elif, ef56): return True return YKHO.to_dict() != Elif.to_dict()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.0
-1
Get the camera part number Returns int part number
def s93r(YKHO): koa4 = 327684 Ylbp = YKHO._send_packet(koa4, receive_size=20) Ylbp = YKHO._decode_packet(Ylbp, receive_size=20) return Ylbp.decode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s93r(YKHO):\n return YKHO.eeprom.part_number_str()", "def iDoh(YKHO):\n return int(YKHO._partID, 16)", "def oalz(YKHO) -> str:\n return YKHO._part_number", "def DHlW(kUBT: re.Match, r05e: VersionPart) -> int:\n BWXx = kUBT.group(r05e.value)\n return int(BWXx) if BWXx else 0", "def q2Ap(Y...
[ "0.68578976", "0.66504043", "0.6443614", "0.62729555", "0.6233372", "0.62083256", "0.61668706", "0.6135239", "0.60529566", "0.5976693", "0.5910133", "0.5902162", "0.5854457", "0.5835914", "0.5830883", "0.582234", "0.58124566", "0.5811818", "0.57563984", "0.5719385", "0.563057...
0.6283129
3
Get the change in camera temperature before an FFC is requested Returns float temperature change in Celsius
def M04D(YKHO): koa4 = 327689 Ylbp = YKHO._send_packet(koa4, receive_size=2) Ylbp = YKHO._decode_packet(Ylbp, receive_size=2) return BlNT.unpack('>H', Ylbp)[0] / 10.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ovGo(YKHO) -> float:\n YKHO.measurement(Np2f)\n YKHO._measurement = 0\n ITS7.sleep(0.05)\n return YKHO._data() * 175.72 / 65536.0 - 46.85", "def ovGo(YKHO) -> float:\n YKHO._perform_reading()\n z1yX = (YKHO._t_fine * 5 + 128) / 256\n return z1yX / 100", "def auVL(YKHO):\n koa4 = 327...
[ "0.76856786", "0.7628238", "0.76033133", "0.75467455", "0.74587435", "0.74215513", "0.73710626", "0.73418164", "0.73186463", "0.7313726", "0.7307225", "0.7238054", "0.7231419", "0.7209825", "0.7186223", "0.7150818", "0.7147569", "0.71473044", "0.7070031", "0.7063992", "0.7061...
0.7006665
23
Get the temperature (in Kelvin) that the last FFC occured
def auVL(YKHO): koa4 = 327774 Ylbp = YKHO._send_packet(koa4, receive_size=2) Ylbp = YKHO._decode_packet(Ylbp, receive_size=2) return BlNT.unpack('>H', Ylbp)[0] / 10.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rcrL() -> float:\n H3EF = O0k5.sensors_temperatures(fahrenheit=True)\n zGGw = next(iter(H3EF.values()))[0].current\n return zGGw", "def ovGo(YKHO) -> float:\n return YKHO._device_information['telemetry']['current']['tempF']", "def Pmey(YKHO):\n return YKHO.__dht22Temp.getTemperatureInFahrenh...
[ "0.7632335", "0.7532891", "0.74614805", "0.7460587", "0.7394704", "0.7353723", "0.73279136", "0.7283824", "0.7278435", "0.72766954", "0.72753376", "0.726357", "0.7245279", "0.72241414", "0.72115093", "0.7202101", "0.71923906", "0.7181137", "0.7167988", "0.7159679", "0.715499"...
0.8193659
0
Get the current focal plane array (FPA) temperature in Celsius. Returns float FPA temperature in Celsius
def JkkK(YKHO): koa4 = 327728 Ylbp = YKHO._send_packet(koa4, receive_size=2) Ylbp = YKHO._decode_packet(Ylbp, receive_size=2) return BlNT.unpack('>H', Ylbp)[0] / 10.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ovGo(YKHO) -> float:\n YKHO._perform_reading()\n z1yX = (YKHO._t_fine * 5 + 128) / 256\n return z1yX / 100", "def ovGo(YKHO) -> float:\n YKHO.measurement(Np2f)\n YKHO._measurement = 0\n ITS7.sleep(0.05)\n return YKHO._data() * 175.72 / 65536.0 - 46.85", "def CMHP(YKHO):\n if YKHO._t...
[ "0.6896676", "0.6846423", "0.6761444", "0.6758628", "0.6684703", "0.6675426", "0.6671082", "0.66585445", "0.66554874", "0.66515297", "0.66069186", "0.65841126", "0.6564983", "0.65561855", "0.6535426", "0.6504131", "0.6498341", "0.64951694", "0.64629", "0.6459548", "0.6448425"...
0.783489
0
Independently and identically distributed spin magnitudes.
def uu1U(__n6, hMQs=1, yXgK=1, BiJX=1): return mz8Q(__n6, yXgK, yXgK, BiJX, BiJX, hMQs, hMQs)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rGtV(YKHO):\n KPt4 = 0.0\n FOSW = YKHO.spin_mag()\n for YRbF in range(YKHO.size()):\n KPt4 += YKHO.spin(YRbF)\n KPt4 *= FOSW\n return KPt4", "def rGtV(XU7Z):\n return float(sum(XU7Z)) / len(XU7Z)", "def fusv(YKHO, qA8Y):\n J4gL = 0.0\n J4gL = -2.0 * YKHO.spin(qA8Y) * YKHO.spi...
[ "0.67106867", "0.6553711", "0.6416897", "0.63116735", "0.6234909", "0.6195261", "0.6083196", "0.6076813", "0.5933452", "0.58882695", "0.5881506", "0.5850254", "0.58443403", "0.58273256", "0.57964206", "0.57698625", "0.5767439", "0.57656944", "0.57541525", "0.5707729", "0.5696...
0.0
-1
Independent beta distributions for both spin magnitudes.
def mz8Q(__n6, sABK, _2lZ, qE4w, AgdQ, NjNW, _0h1): if sABK < 0 or qE4w < 0 or _2lZ < 0 or (AgdQ < 0): return 0 f2rf = gnXN(__n6['a_1'], sABK, qE4w, scale=NjNW) * gnXN(__n6['a_2'], _2lZ, AgdQ, scale=_0h1) return f2rf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UqYS(YKHO, *qIxc):\n return gQS9.EAngles_beta(YKHO, *qIxc)", "def UCqT(YKHO):\n pass", "def UqYS(YKHO):\n return YKHO._angles[1]", "def Whkx(**NArs):\n return oyIN.sqrt(NArs['alpha'] ** 2 + 2 * NArs['sigma'] ** 2)", "def UqYS(YKHO):\n return gQS9.quatern_beta(YKHO)", "def UqYS(YKHO):\n...
[ "0.71695244", "0.7151771", "0.6946221", "0.6813225", "0.68069166", "0.6782552", "0.6745713", "0.6709721", "0.6695443", "0.6692799", "0.6684938", "0.667098", "0.6670699", "0.66597426", "0.659826", "0.6561091", "0.65499675", "0.65309876", "0.65035516", "0.64968234", "0.64944816...
0.6893208
3
Should raise an error on invalid resampling method name.
def zBxw(): X7zS = [-6574807.42497772, 12210356.646387195, -6261721.357121638, 12523442.714243278] with trZe.raises(KeyError): with B9Vf.open(QwNi) as fY90: N5Pj.part(fY90, X7zS, 16, 16, resampling_method='jacques')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def thuN(YKHO):\n SnBA = {'UpsampleToMax', 'ResampleToMean', 'UpsampleToMean', 'Bagging', 'BaggingToMax', 'BaggingToMean', 'NoResampling'}\n YKHO.assertSetEqual(SnBA, set(g1CO.values()))\n for a1PO in SnBA:\n z1Rg = MGWq(resampling_strategy=a1PO)\n YKHO.assertEqual(z1Rg.resampling_strategy, ...
[ "0.68182325", "0.6549845", "0.65120924", "0.6474911", "0.6343593", "0.6283932", "0.6111244", "0.59978956", "0.59393615", "0.5896507", "0.58831996", "0.5880702", "0.5880241", "0.5876544", "0.5864322", "0.5845642", "0.58337617", "0.583226", "0.5831859", "0.58191", "0.58033323",...
0.5294473
64
Detect whether this is a k8s or openshift cluster based on existence of projects.
def kKjj(): S3TC = [Mkmy for Mkmy in o_EY() if Mkmy['name'] == 'project'] if S3TC: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vVph():\n try:\n fupw(['oc', 'cluster', 'status'])\n return True\n except Yn3K.CalledProcessError:\n return False", "def tn8E(YKHO):\n HCmI = YKHO.DataprocGcloudCommand('clusters', 'describe', YKHO.cluster_id)\n HCmI.flags['zone'] = []\n bGrB, bGrB, CgsD = HCmI.Issue(raise...
[ "0.6227012", "0.618702", "0.61316526", "0.6024754", "0.58847064", "0.58381915", "0.58115965", "0.57317376", "0.5651695", "0.5631163", "0.5602688", "0.5587027", "0.5547054", "0.547634", "0.545197", "0.54510504", "0.5446537", "0.54347396", "0.5434291", "0.54126763", "0.5406974"...
0.6682826
0
Draws window components on screen.
def JmFt(YKHO): YKHO.container = Wi4c.widgets.Box(373, 372) YKHO.__paintBackground() YKHO.__paintContactList() YKHO.__paintDeleteButton() YKHO.__paintChat() YKHO.__paintChatArea()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dHqP(YKHO):\n YKHO.game_display.fill(AX3l)\n YKHO.draw_board()\n a9eO.display.update()", "def JmFt(YKHO, KnxT):\n pass", "def JmFt(YKHO, KnxT):\n YKHO.box.draw(KnxT)", "def JmFt(YKHO):\n YKHO.window = YKHO.parent.subwin(YKHO.height, YKHO.width, YKHO.y, YKHO.x)\n YKHO.window.border('#...
[ "0.8358328", "0.8143761", "0.79128", "0.7880911", "0.78194606", "0.76672906", "0.7641837", "0.75807846", "0.75601095", "0.75456405", "0.75104153", "0.7461354", "0.7453258", "0.74247146", "0.74034446", "0.7380305", "0.7351696", "0.7325426", "0.72947526", "0.7275404", "0.725142...
0.72027844
23
Paints the chat window on screen.
def WHs3(YKHO): YKHO.contactsArea = jcz9.OcempImageContactList(130, 270, YKHO.player.getAgenda()) YKHO.contactsArea.topleft = (20, 40) YKHO.contactsArea.connect_signal(Wi4c.widgets.Constants.SIG_SELECTCHANGED, YKHO.__selectionChange) YKHO.container.add_child(YKHO.contactsArea)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JmFt(YKHO):\n YKHO.window = YKHO.parent.subwin(YKHO.height, YKHO.width, YKHO.y, YKHO.x)\n YKHO.window.border('#', '#', '#', '#', '#', '#', '#', '#')\n YKHO.set_message()", "def dHqP(YKHO):\n YKHO.game_display.fill(AX3l)\n YKHO.draw_board()\n a9eO.display.update()", "def JmFt(YKHO):\n Y...
[ "0.76611", "0.712112", "0.69094473", "0.6875383", "0.6725085", "0.6702915", "0.6628945", "0.66263884", "0.6620497", "0.65899086", "0.65719986", "0.6569953", "0.6526315", "0.65250814", "0.65044665", "0.6491505", "0.6472778", "0.64714795", "0.64711475", "0.6453035", "0.641948",...
0.0
-1
Check if the string is a valid UUID.
def EoeC(qxeD: Optional[str]) -> bool: if not qxeD: return False deVW = False try: deVW = bool(ZbWC.fullmatch('[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}', qxeD, ZbWC.I)) except Exception: pass return deVW
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Xs_K(vIwR):\n try:\n wEf2 = S7kj(vIwR, version=4)\n except ValueError:\n return False\n return wEf2.hex == vIwR.replace('-', '')", "def Xs_K(wEf2: str):\n try:\n S7kj(wEf2)\n return True\n except ValueError:\n return False", "def ztHz(hUOr):\n try:\n ...
[ "0.8558932", "0.8476638", "0.83816934", "0.8369259", "0.83436733", "0.8282317", "0.8282317", "0.82558393", "0.82370126", "0.8205477", "0.80894184", "0.7949828", "0.78849095", "0.78386897", "0.78063864", "0.7781927", "0.77371514", "0.76786435", "0.7673204", "0.76664686", "0.76...
0.82275707
9
Return the first start address of the CodeBlock. Depending on the model used to generate the CodeBlock, there may be multiple entry points to the block. This will return the first start address for the block. It should always return the same address for a given block if there is more than one entry point. the first sta...
def heBg(YKHO) -> RnTg.program.model.address.Address: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def arVP(YKHO):\n return J8uC.SBLineEntry_GetStartAddress(YKHO)", "def arVP(YKHO):\n return J8uC.SBSymbol_GetStartAddress(YKHO)", "def bhgr(YKHO):\n return YKHO._start_address", "def arVP(YKHO):\n return J8uC.SBFunction_GetStartAddress(YKHO)", "def joqQ(YKHO):\n if not YKHO._list:\n r...
[ "0.7288072", "0.72794753", "0.7197183", "0.70990443", "0.66130316", "0.6571489", "0.6571489", "0.6519269", "0.6409164", "0.6402249", "0.6384568", "0.62458915", "0.6240166", "0.6240165", "0.6232003", "0.6144743", "0.6136614", "0.6117485", "0.6040106", "0.6018602", "0.6018602",...
0.7391471
0
Get all the entry points to this block. Depending on the model, there may be more than one entry point. Entry points will be returned in natural sorted order. an array of entry points to this block. a zero length array if there are no entry points.
def gaHb(YKHO) -> x1iM[RnTg.program.model.address.Address]: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ldV7(YKHO) -> h8nf[qe4Y.Input[bdIy[qe4Y.Input[str]]]]:\n return qe4Y.get(YKHO, 'entry_points')", "def M40C(YKHO):\n return YKHO.points", "def bZr7(Emd4, T8uQ):\n if not T8uQ:\n return []\n iHqy = list(T8uQ.entrypoints)\n if len(iHqy) < 2:\n return iHqy\n if Qady not in iHqy:...
[ "0.6073889", "0.59597445", "0.5817765", "0.575404", "0.56538427", "0.5614998", "0.5614998", "0.56112564", "0.5606892", "0.5606892", "0.5606892", "0.5606892", "0.5606892", "0.5606892", "0.5574909", "0.55570453", "0.55568755", "0.5550196", "0.5549135", "0.55116355", "0.55116355...
0.0
-1
Return filepath2 relative to filepath1. Both names are normalised first. ================ ================ ================ filepath1 filepath2 result ================ ================ ================
def IBYl(pHGo, G_GJ): return BfDw.relative_to(pHGo, G_GJ.rstrip(dyte) + VWe_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HATD(YKHO, k0lF, tjUW):\n RI88 = ''\n k0lF = Hy7s.path.abspath(k0lF)\n tjUW = Hy7s.path.abspath(tjUW)\n U7YL = Hy7s.path.split(Hy7s.path.commonprefix([k0lF, tjUW]))[0]\n if U7YL == '':\n return 'file:' + Mbjs(tjUW)\n jzdc = Hy7s.path.dirname(k0lF)\n while jzdc != U7YL:\n RI88...
[ "0.73803014", "0.705621", "0.7033461", "0.6850943", "0.68362105", "0.6765516", "0.6570096", "0.655795", "0.655795", "0.65083617", "0.64463556", "0.64203393", "0.638546", "0.6355889", "0.6348369", "0.63426715", "0.6333927", "0.6331098", "0.63080734", "0.63016367", "0.62819254"...
0.8092813
0
A filepath is relative if it has no root or if its root is a drive letter only (without a directory backslash).
def wrVH(YKHO): return not YKHO.root.endswith(VWe_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g9hV(pmON, tk5Y):\n if Hy7s.path.normcase(pmON).startswith(tk5Y):\n return pmON[len(tk5Y):]\n return pmON", "def t_yv(pmON, mSqg):\n pmON = Hy7s.path.normpath(pmON)\n mSqg = Hy7s.path.normpath(mSqg)\n PsRC = Hy7s.path.relpath(pmON, mSqg)\n WQbV = Hy7s.path.normpath(Hy7s.path.join(mSq...
[ "0.7494783", "0.74489635", "0.7394479", "0.72372615", "0.72265506", "0.7159633", "0.7142455", "0.71361333", "0.70609266", "0.70568794", "0.70415205", "0.70337975", "0.70274305", "0.6975345", "0.692828", "0.690807", "0.6907185", "0.6894555", "0.6887626", "0.68817", "0.68770206...
0.0
-1
Return an iterator which returns a file change on every iteration.
def s54N(tk5Y, eQqJ=False, pNX6=yurd.WATCH_FOR, klGB=yurd.BUFFER_SIZE, vWB_=None): return yurd(QMSQ(tk5Y), eQqJ, pNX6, klGB, vWB_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n for eHNT in YKHO._files:\n yield eHNT", "def Vs4Q(YKHO):\n for _bsB in YKHO.__file_list:\n if YKHO.__flags & 2:\n return\n if _bsB == '-':\n U0IZ = HwRy.stdin\n else:\n U0IZ = open(_bsB, 'r')\n YKHO.__relative_cnt = 0\n ...
[ "0.73396665", "0.7278355", "0.6880167", "0.6847384", "0.68219256", "0.677529", "0.67482287", "0.66109955", "0.6544087", "0.65371335", "0.64964116", "0.64556426", "0.63814354", "0.63337165", "0.62962025", "0.62915456", "0.6283949", "0.62284315", "0.6216168", "0.61607295", "0.6...
0.0
-1
Orders the corners in clockwise order beginning at the top right
def BvRo(HjHK): HjHK = [(oM1k[0][0], oM1k[0][1]) for oM1k in HjHK] return (HjHK[1], HjHK[0], HjHK[3], HjHK[2])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def E4mu(HjHK):\n Zs9x = oyIN.array(HjHK)\n JBMS = oyIN.mean(HjHK, axis=0)\n for oM1k in HjHK:\n if oM1k[0] < JBMS[0] and oM1k[1] < JBMS[1]:\n Zs9x[0] = oM1k\n if oM1k[0] > JBMS[0] and oM1k[1] < JBMS[1]:\n Zs9x[1] = oM1k\n if oM1k[0] > JBMS[0] and oM1k[1] > JBMS[...
[ "0.7149621", "0.70633024", "0.69898015", "0.6811931", "0.6720232", "0.6677957", "0.66284114", "0.65668964", "0.65536135", "0.6543605", "0.65403354", "0.63949484", "0.63652414", "0.6346115", "0.63166744", "0.63103616", "0.62758106", "0.62569046", "0.62540185", "0.61971027", "0...
0.74744767
0
Uses the standard Hough transform + filtering to detect the grid lines of the puzzle
def bO1S(I2jS): ITiw = XC5k.cvtColor(I2jS, XC5k.COLOR_BGR2GRAY) mC4V = XC5k.Canny(ITiw, 50, 150, apertureSize=3) Nqlg = XC5k.HoughLines(mC4V, 1, oyIN.pi / 180, 125) for zFiD in Nqlg: oZuG, q7In = zFiD[0] MKlR, Ty9i = (oyIN.cos(q7In), oyIN.sin(q7In)) msH0, IAPc = (MKlR * oZuG, Ty9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NBjn(YKHO, mNgJ=True):\n URfH = (200, 128, 0)\n Qn6o = (255, 255, 150)\n QuAX = (224, 224, 224)\n jAMT = (255, 255, 255)\n OdtK = 105\n s10_ = 210\n WZcn = oyIN.ones((3, 3), oyIN.uint8)\n oZuG = 2\n q7In = 2 * oyIN.pi / 180\n gwAu = 10\n vkba = 40\n y7AI = 80\n xXAL = 0.4...
[ "0.6995167", "0.6988858", "0.6933192", "0.6782577", "0.67440224", "0.6642901", "0.66212314", "0.6586117", "0.64986485", "0.6452872", "0.642764", "0.63835466", "0.63409853", "0.6312081", "0.63021725", "0.6280478", "0.62168777", "0.6209598", "0.61971456", "0.6193521", "0.618871...
0.6089967
26
Return the image indices for the next minibatch.
def cMOK(YKHO): if _Fei.TRAIN.USE_PREFETCH: assert YKHO.error is None, YKHO.error.message vJ4g = YKHO._data_queue.get() return vJ4g else: eBPN = YKHO._get_next_minibatch_inds() return YKHO._get_minibatch(eBPN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oNr8(YKHO):\n if YKHO.cur + YKHO.batch_size >= YKHO.num_images:\n YKHO._shuffle_roidb_inds()\n sAne = YKHO.perm[YKHO.cur:YKHO.cur + YKHO.batch_size]\n YKHO.cur += YKHO.batch_size\n return sAne", "def oNr8(YKHO):\n sAne = {}\n for mWFP in YKHO.imagedb:\n if YKHO._cur[mWFP] + _F...
[ "0.7904979", "0.7731425", "0.7474078", "0.741428", "0.73611444", "0.7216523", "0.720498", "0.7140137", "0.7000087", "0.69581157", "0.69396883", "0.6832077", "0.68101704", "0.664988", "0.65235555", "0.6476966", "0.6452114", "0.643406", "0.6432858", "0.6421857", "0.6390837", ...
0.64152956
20
Accepts prediction Tensors from the output of `model`. Returns a single Tensor representing the total loss of the model.
def N77f(YKHO, **B2fa): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def N77f(YKHO):\n o3Uj = YKHO.output_node\n rblr = YKHO.label_placeholder\n N77f = ZylS.subtract(o3Uj, rblr, name='Total_Loss')\n return YKHO.loss_op", "def N77f(YKHO, N6Z1, GigO):\n with ZylS.variable_scope('loss'):\n hkHB = ZylS.div(ZylS.reduce_mean(ZylS.square(ZylS.subtract(N6Z1, GigO)))...
[ "0.6819376", "0.6802988", "0.6735581", "0.6678595", "0.65126806", "0.6492712", "0.6477453", "0.6473893", "0.64601314", "0.6439327", "0.6433559", "0.6417711", "0.6411483", "0.63476485", "0.63137925", "0.6285996", "0.6284635", "0.6282437", "0.6282437", "0.6282437", "0.6261748",...
0.0
-1
Deep merge the config with updates, using current as defaults.
def vGZu(YKHO, Vhxs: Union[Dict[str, Any], 'Config'], WqpQ: bool=False) -> 'Config': muwo = YKHO.copy() Vhxs = PSrQ(Vhxs).copy() XIcQ = nG07(Vhxs, muwo, remove_extra=WqpQ) return PSrQ(XIcQ, is_interpolated=muwo.is_interpolated and Vhxs.is_interpolated, section_order=muwo.section_order)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j03A(GPtr):\n for H5ew, BWXx in GPtr.items():\n if '.' not in H5ew:\n if isinstance(BWXx, dict) and H5ew in ePNl:\n ePNl[H5ew].update(BWXx)\n else:\n ePNl[H5ew] = BWXx\n else:\n zrAV = H5ew.split('.')\n assert zrAV[0] in...
[ "0.71277463", "0.7039025", "0.6986958", "0.6968928", "0.6963233", "0.69256604", "0.68489057", "0.683495", "0.67761356", "0.6698018", "0.66591525", "0.665366", "0.6601534", "0.6599115", "0.6597775", "0.6567812", "0.65381455", "0.65145594", "0.65091765", "0.650363", "0.64960873...
0.7592277
0
Load a JSON string if possible, otherwise default to original value.
def kWgh(BWXx: str) -> ImMB: try: return i4XR.json_loads(BWXx) except Exception: return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qcAG(ZfUD):\n if isinstance(ZfUD, str):\n return qQXR.loads(ZfUD)\n elif isinstance(ZfUD, dict):\n return ZfUD\n else:\n raise ValueError('Got {}, expected Json string or dict', type(ZfUD))", "def _1kr(BWXx: str) -> ImMB:\n if BWXx == '':\n return None\n else:\n ...
[ "0.74383026", "0.74180245", "0.7296928", "0.7161323", "0.709839", "0.7087676", "0.70609844", "0.68819773", "0.68819773", "0.68230575", "0.67362183", "0.67149144", "0.6713947", "0.67098033", "0.67083186", "0.6707555", "0.66936177", "0.66936177", "0.66936177", "0.66924775", "0....
0.7194883
3
Deep merge two configs.
def nG07(GPtr: Union[Dict[str, Any], Config], muwo: Union[Dict[str, Any], Config], *, WqpQ: bool=False) -> uLKX[cuzp[str, ImMB], PSrQ]: if WqpQ: sjXb = list(GPtr.keys()) for H5ew in sjXb: if H5ew not in muwo: del GPtr[H5ew] for H5ew, BWXx in muwo.items(): if i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nSnN(B6HM, gP54):\n Aofo = {}\n sjXb = set(B6HM.keys()) | set(gP54.keys())\n for H5ew in sjXb:\n if H5ew not in gP54:\n Aofo[H5ew] = B6HM[H5ew]\n elif H5ew in B6HM and isinstance(B6HM[H5ew], dict) and isinstance(gP54[H5ew], dict):\n Aofo[H5ew] = PSrQ._merge(B6HM[H5e...
[ "0.77975374", "0.7626355", "0.7615053", "0.72658706", "0.71213174", "0.7091398", "0.7090688", "0.708704", "0.70806074", "0.70148695", "0.70141536", "0.69745886", "0.6944467", "0.6908147", "0.68939054", "0.68500787", "0.67442036", "0.67341685", "0.6718776", "0.6701839", "0.670...
0.66831577
21
Format the error message.
def VPot(YKHO) -> str: q7dx = '->' nPrm = [] for P1dF in YKHO.errors: xEns = f' {q7dx} '.join([str(XP5J) for XP5J in P1dF.get('loc', [])]) if YKHO.parent: xEns = f'{YKHO.parent} {q7dx} {xEns}' nPrm.append((xEns, P1dF.get('msg'))) Aofo = [] if YKHO.title: A...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0YL(YKHO, tTpl):\n return f'{kQI7} ... {repr(tTpl)}'", "def HbrT(YKHO, P1dF):\n if isinstance(P1dF, Exception):\n return '{}: {}'.format(type(P1dF).__name__, P1dF)\n else:\n return '{}'.format(P1dF)", "def iIHI(Ol8d: str) -> str:\n return '{} {}'.format(m7nX.Fore.RED + 'Error:' +...
[ "0.8257498", "0.7797256", "0.76983243", "0.7682443", "0.75269073", "0.74038017", "0.73983085", "0.73805225", "0.73390514", "0.72236335", "0.71399534", "0.7121056", "0.7105958", "0.7034738", "0.702433", "0.7000348", "0.69694805", "0.69400394", "0.69182634", "0.6911826", "0.690...
0.6827931
28
To setup as many loggers as you want
def WWrj(YKHO, mWFP, R5Jy, LFqA, ABDL=G9jH.INFO): DCgT = G9jH.FileHandler(R5Jy) DCgT.setFormatter(LFqA) bo34 = G9jH.getLogger(mWFP) bo34.setLevel(ABDL) bo34.addHandler(DCgT) return bo34
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yb66(YKHO):\n YKHO.root_logger = tqPq(None)", "def fQIj(YKHO):\n pass", "def fQIj(YKHO):\n pass", "def FUyv(bo34, *qIxc, **B2fa):\n try:\n import graypy\n from csh_fantasy_bot.config import GELF_URL\n RKD7.info(f'Gelf url: {GELF_URL}')\n if GELF_URL:\n D...
[ "0.8494706", "0.8033953", "0.8033953", "0.8017025", "0.7911851", "0.77226996", "0.75291085", "0.7509775", "0.74223995", "0.7217236", "0.72021025", "0.7142494", "0.7129303", "0.7085226", "0.70793825", "0.70716596", "0.70505065", "0.7045933", "0.7027461", "0.70022357", "0.69970...
0.0
-1
Disonnect two Cells in the Population This removes the edge in the topology between the corresponding nodes. These Cells are then no longer considered neighbors and will not interact with one another.
def RtU9(YKHO, zZcM, e1vZ): try: YKHO.topology.remove_edge(zZcM.id, e1vZ.id) except QxlY as err: print('Error disconnecting Cells: {e}'.format(e=XObx))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e8Xk(YKHO, d6pt, mC4V):\n UGqn, JcfP, Mf7r = mC4V[d6pt]\n EBgd = YKHO.get_protein(UGqn)\n HpuQ = YKHO.get_protein(JcfP)\n AjzU, _sQW = Mf7r['domains']\n if not EBgd.is_interacting(HpuQ.name, AjzU) or not HpuQ.is_interacting(EBgd.name, _sQW):\n _sQW, AjzU = Mf7r['domains']\n if not ...
[ "0.62526333", "0.6096765", "0.6044807", "0.6040001", "0.5959904", "0.5915429", "0.58694667", "0.58567685", "0.576023", "0.5759116", "0.5706836", "0.5679753", "0.5679145", "0.56780785", "0.56585556", "0.564831", "0.56255466", "0.56047136", "0.55846524", "0.55823714", "0.558227...
0.7177737
0
Create a CurvatureMatrixVectorProductComputer object.
def FIMM(YKHO, N8L0, bUnz): YKHO._losses = N8L0 YKHO._inputs_to_losses = list((N77f.inputs for N77f in N8L0)) YKHO._inputs_to_losses_flat = pf_1.flatten(YKHO._inputs_to_losses) YKHO._wrt_tensors = bUnz
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uYAe(YKHO, Ibb5):\n\n def iHht(epBp):\n return BJ1H(BJ1H(epBp, Ibb5), epBp.T)\n return iHht", "def FIMM(YKHO, nPrm, X74i=None, epAf=None):\n if isinstance(nPrm, y1o7):\n KCHu = nPrm.home\n epAf = KCHu.math\n YKHO.curvature = KCHu.curvature\n if YKHO.curvature == 0:...
[ "0.5652154", "0.5439481", "0.53366464", "0.5218818", "0.5211293", "0.5174072", "0.5154385", "0.51437014", "0.5109184", "0.5089788", "0.50664645", "0.5049877", "0.5006784", "0.49756545", "0.4946889", "0.49458396", "0.4941603", "0.49405238", "0.49074382", "0.4898287", "0.489783...
0.0
-1
Multiply loss_vecs by transpose factor of Fisher of total loss.
def GnTQ(YKHO, bP3k): return tuple((N77f.multiply_fisher_factor_transpose(Zeq8) for N77f, Zeq8 in zip(YKHO._losses, bP3k)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tTmf(YKHO, bP3k):\n return tuple((N77f.multiply_fisher(Zeq8) for N77f, Zeq8 in zip(YKHO._losses, bP3k)))", "def mNRv(YKHO, M8d_):\n soQm = YKHO._multiply_jacobian(M8d_)\n return YKHO._multiply_loss_fisher_factor_transpose(soQm)", "def Xzwh(YKHO, _Q25):\n return tuple((N77f.multiply_fisher_facto...
[ "0.78620046", "0.76310545", "0.7598211", "0.74512994", "0.74422884", "0.7305257", "0.72227615", "0.6437582", "0.6423072", "0.6336744", "0.61541975", "0.61260915", "0.5975625", "0.53317094", "0.52183783", "0.5194095", "0.5128796", "0.51139015", "0.50986975", "0.5062337", "0.50...
0.851282
0
Multiply loss_inner_vecs by factor of Hessian of total loss.
def O8XI(YKHO, _Q25): return tuple((N77f.multiply_hessian_factor(Zeq8) for N77f, Zeq8 in zip(YKHO._losses, _Q25)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RRRi(YKHO, bP3k):\n return tuple((N77f.multiply_hessian(Zeq8) for N77f, Zeq8 in zip(YKHO._losses, bP3k)))", "def iWei(YKHO, bP3k):\n return tuple((N77f.multiply_hessian_factor_transpose(Zeq8) for N77f, Zeq8 in zip(YKHO._losses, bP3k)))", "def F0qG(YKHO, M8d_):\n return y9uG.gradients(y9uG.gradient...
[ "0.759164", "0.7052821", "0.70385265", "0.7034382", "0.68168527", "0.65820414", "0.6581197", "0.6503639", "0.648553", "0.6095872", "0.60019726", "0.60016716", "0.5954228", "0.5846311", "0.58307", "0.58072066", "0.57710683", "0.5767298", "0.57469875", "0.571838", "0.5688729", ...
0.84363496
0
Multiply loss_vecs by transpose factor of Hessian of total loss.
def iWei(YKHO, bP3k): return tuple((N77f.multiply_hessian_factor_transpose(Zeq8) for N77f, Zeq8 in zip(YKHO._losses, bP3k)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RRRi(YKHO, bP3k):\n return tuple((N77f.multiply_hessian(Zeq8) for N77f, Zeq8 in zip(YKHO._losses, bP3k)))", "def O8XI(YKHO, _Q25):\n return tuple((N77f.multiply_hessian_factor(Zeq8) for N77f, Zeq8 in zip(YKHO._losses, _Q25)))", "def Bsa6(YKHO, iArr):\n pass", "def F0qG(YKHO, M8d_):\n return y...
[ "0.81428677", "0.7898494", "0.71963185", "0.71530575", "0.6710238", "0.6524008", "0.64844793", "0.64842856", "0.63637614", "0.60479945", "0.5944482", "0.5938778", "0.5886649", "0.5783808", "0.5717732", "0.56992716", "0.5684402", "0.56698656", "0.5656181", "0.560181", "0.55524...
0.84715885
0
Multiply vecs by transpose of factor of Fisher of total loss.
def mNRv(YKHO, M8d_): soQm = YKHO._multiply_jacobian(M8d_) return YKHO._multiply_loss_fisher_factor_transpose(soQm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mNRv(YKHO, iArr):\n pass", "def GnTQ(YKHO, bP3k):\n return tuple((N77f.multiply_fisher_factor_transpose(Zeq8) for N77f, Zeq8 in zip(YKHO._losses, bP3k)))", "def LRj7(YKHO, M8d_):\n soQm = YKHO._multiply_jacobian(M8d_)\n GO6d = YKHO._multiply_loss_fisher(soQm)\n return YKHO._multiply_jacobian...
[ "0.84264034", "0.8230862", "0.7674094", "0.7598152", "0.7442816", "0.738599", "0.73210937", "0.71848935", "0.7046455", "0.698288", "0.61020505", "0.6040815", "0.60150003", "0.58884406", "0.58479434", "0.58263415", "0.5650127", "0.55555516", "0.5548922", "0.5534062", "0.553170...
0.8220586
2
Multiply vecs by Hessian of total loss.
def F0qG(YKHO, M8d_): return y9uG.gradients(y9uG.gradients(YKHO._total_loss, YKHO._wrt_tensors), YKHO._wrt_tensors, grad_ys=M8d_)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RRRi(YKHO, bP3k):\n return tuple((N77f.multiply_hessian(Zeq8) for N77f, Zeq8 in zip(YKHO._losses, bP3k)))", "def F0qG(YKHO, iArr):\n pass", "def q06J(YKHO, iArr):\n pass", "def O8XI(YKHO, _Q25):\n return tuple((N77f.multiply_hessian_factor(Zeq8) for N77f, Zeq8 in zip(YKHO._losses, _Q25)))", ...
[ "0.8007321", "0.77627796", "0.77257675", "0.76379937", "0.69074565", "0.6888464", "0.64840513", "0.64536977", "0.6332411", "0.6314475", "0.62371385", "0.6208537", "0.61669976", "0.61167395", "0.6064773", "0.5998054", "0.59879637", "0.59879637", "0.59445703", "0.59297633", "0....
0.82066625
0