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
Creates a new Point.
def FIMM(YKHO, D3vS, dJ1p, V_D6, G91o): YKHO.measurement = D3vS YKHO.tags = dJ1p YKHO.fields = V_D6 YKHO.time = G91o
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e9z1(Emd4, AU8u, **B2fa):\n return Emd4(AU8u.x, AU8u.y, **B2fa)", "def gd_v(ZsiB, XC_d):\n kErx = lLK2('com.sun.star.awt.Point')\n kErx.X = ZsiB\n kErx.Y = XC_d\n return kErx", "def gd_v(ZsiB, XC_d):\n kErx = lLK2('com.sun.star.awt.Point')\n kErx.X = ZsiB\n kErx.Y = XC_d\n return...
[ "0.76999646", "0.76265323", "0.76265323", "0.7439702", "0.7264961", "0.72064894", "0.71525073", "0.70361614", "0.70158654", "0.68029964", "0.6796616", "0.6775431", "0.6693558", "0.66233635", "0.66092485", "0.65570605", "0.65377355", "0.65286654", "0.6472205", "0.6437618", "0....
0.0
-1
This is an arbitrary cut of the whole Age feature range
def GPUV(rdlD): wEf2 = 0 if rdlD.Age <= 10: wEf2 = 0 elif 10 < rdlD.Age <= 15: wEf2 = 1 elif 15 < rdlD.Age <= 25: wEf2 = 2 elif 25 < rdlD.Age <= 40: wEf2 = 3 elif 40 < rdlD.Age <= 60: wEf2 = 4 elif 60 < rdlD.Age <= 70: wEf2 = 5 elif 70 < rd...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EXmg(YKHO):\n jyUS = YKHO.dismod_file.age\n return (jyUS.age.min(), jyUS.age.max())", "def ZRWA(YKHO):\n YKHO.adjust_age()\n if YKHO.age_units == 'day':\n if YKHO.age <= 2:\n return 159\n elif YKHO.age <= 6:\n return 166\n elif YKHO.age_units == 'week':\n ...
[ "0.7009701", "0.6644977", "0.64925724", "0.64132875", "0.6301958", "0.6268441", "0.6253615", "0.62327", "0.62137556", "0.6176642", "0.61684674", "0.6010145", "0.6006865", "0.59897786", "0.594702", "0.59454995", "0.5927686", "0.58634543", "0.5848656", "0.58344054", "0.5815267"...
0.6804948
1
Get the controller listener.
def IjLL(mWFP=None): if mWFP == None: D4PA = None elif mWFP == 'keyboard': D4PA = Fke4() else: raise ValueError('Unrecognized controller listener type {}.'.format(mWFP)) return D4PA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xyhh(YKHO):\n return YKHO.__controller", "def Z7L0(YKHO):\n return YKHO._controller", "def jJLZ(YKHO):\n return YKHO.__controller", "def Z7L0(YKHO):\n try:\n return YKHO._controller\n except Exception as e:\n YKHO.logToConsole('controller: %s' % str(tTpl))", "def Gn5K(Emd4)...
[ "0.7112546", "0.69246894", "0.68649477", "0.65980697", "0.6478356", "0.6177869", "0.5950903", "0.58867276", "0.58606994", "0.5798346", "0.5798346", "0.5798346", "0.5786203", "0.5721135", "0.5712241", "0.5690139", "0.56821615", "0.565802", "0.565802", "0.5601729", "0.5601729",...
0.7545985
0
Calculate the steadystate entropy production of a row normalized stochastic transition matrix
def iiu_(ST4D): KG9w = zOPU(ST4D) ShoO = 0.0 for QTBn, JxU2 in enumerate(KG9w): dMYj = ST4D[QTBn, :] / ST4D[:, QTBn] dMYj[L_aS(dMYj)] = 1.0 ShoO += JxU2 * ST4D[QTBn, :].dot(RKD7(dMYj)) return ShoO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dIpk(Y9ns):\n ROpF = Y9ns.shape[1]\n tTpl = oyIN.zeros((ROpF, ROpF))\n for YRbF, r845 in Lx3t(*map(range, (ROpF, ROpF))):\n jzdc = Y9ns[:, [YRbF, r845]]\n tTpl[YRbF, r845] = xWEW(jzdc)\n return tTpl", "def eNry(YKHO):\n return uzJx.entropy_measure(YKHO.ensemble_transition_matrix)...
[ "0.61540824", "0.59085083", "0.5867261", "0.58616656", "0.58535415", "0.58028114", "0.5773103", "0.5757553", "0.5752487", "0.57118", "0.5695979", "0.568907", "0.56812966", "0.5664729", "0.5658963", "0.563711", "0.5630302", "0.5626151", "0.5606227", "0.56060314", "0.5588733", ...
0.63712335
0
Return a list of list of indexes corresponding to context windows surrounding each word in the sentence
def Wp2R(vC9B, ufJO): assert ufJO % 2 == 1 assert ufJO >= 1 vC9B = list(vC9B) QCfv = ufJO // 2 * [-1] + vC9B + +ufJO // 2 * [-1] yvT9 = [QCfv[YRbF:YRbF + ufJO] for YRbF in range(len(vC9B))] assert len(yvT9) == len(vC9B) return yvT9
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G_wZ(V22M, dQgj, yMhW=2):\n yKcO = max(0, dQgj - yMhW)\n JCyR = min(dQgj + yMhW, len(V22M))\n SYQa = V22M[yKcO:dQgj] + V22M[dQgj + 1:JCyR + 1]\n return list(SYQa)", "def ZEg7(V22M, mC8x, KnxT):\n RV39 = len(V22M)\n gAm3 = int(KnxT / 2)\n assert 0 <= mC8x < RV39\n return V22M[max(0, mC...
[ "0.69948196", "0.6875678", "0.6871552", "0.6455821", "0.63622624", "0.6237589", "0.61836", "0.6174571", "0.6174254", "0.61661047", "0.6155005", "0.612393", "0.606832", "0.60450363", "0.60336167", "0.60253006", "0.6023137", "0.60178965", "0.6011207", "0.60107607", "0.60081273"...
0.5648834
48
Returns the desired the base path for current model.
def GsT0(YKHO): _AKB = getattr(YKHO, YKHO.get_parent()) y5Cv = YKHO._meta.get_field(YKHO.get_parent()).remote_field.name return '%s/%s' % (YKHO.parent_base_upload_to(_AKB), y5Cv)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XSj5(YKHO):\n return YKHO._base_path", "def XSj5(YKHO):\n return YKHO.setup.base_path", "def PB4K(YKHO) -> str:\n raise NotImplementedError()", "def oEge():\n return Hy7s.path.join(qCfz.base_dir(), 'model')", "def XSj5(YKHO):\n return GkAb(YKHO.path)", "def P8oC(YKHO):\n return Hy7s...
[ "0.8196501", "0.81495774", "0.80238044", "0.7781426", "0.7762492", "0.7529852", "0.7433327", "0.7298709", "0.7170621", "0.7158846", "0.71554106", "0.7079184", "0.7060315", "0.70507205", "0.69751954", "0.69701403", "0.6937927", "0.6904316", "0.68710077", "0.68371767", "0.67874...
0.0
-1
Check subset_timesteps are within timesteps and return the matching indices.
def OEgV(L4bz, sh6i, Xbtt=True): sh6i = MPgr(sh6i) L4bz = MPgr(L4bz) sh6i = sh6i.astype(L4bz.dtype) YXZg = oyIN.array([or8S for or8S, Ty9i in enumerate(L4bz) if Ty9i in set(sh6i)]) if YXZg.size == 0: raise ValueError("All 'forecast_reference_times' are not within the time period covered by '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uZzA():\n import MDAnalysis.coordinates\n from torch.utils.data import DataLoader\n v_XF = Hy7s.path.join(Hy7s.path.dirname(xAKo), 'data', 'chloro-fluoromethane.pdb')\n with _l8f.coordinates.PDB.PDBReader(v_XF) as Hydg:\n __n6 = qG_A(Hydg, return_batch_index=True)\n toWh = zv3t(__n6, ...
[ "0.65873384", "0.6348583", "0.6150101", "0.5920785", "0.5851562", "0.58184654", "0.5783689", "0.5779125", "0.57199997", "0.5710229", "0.5670154", "0.5607461", "0.5595074", "0.55182093", "0.55174416", "0.55094063", "0.54846525", "0.5484273", "0.54372245", "0.54266435", "0.5406...
0.82982326
0
Return the next available identifier/sequence for a job.
def Gvq8(YKHO): YKHO.__sequence = YKHO.__sequence + 1 return YKHO.__sequence - 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lnAX(YKHO):\n DpUl = YKHO._next_sequence_number\n YKHO._next_sequence_number += 1\n return DpUl", "def eHjt(YKHO):\n return YKHO._next_jid", "def unpH(YKHO):\n YKHO.redis.setnx('job_id', '-1')\n return YKHO.redis.incr('job_id')", "def UIQn(YKHO) -> int:\n if YKHO.items:\n retu...
[ "0.68406105", "0.6782614", "0.65857005", "0.65596986", "0.652274", "0.643459", "0.6384779", "0.6378936", "0.63675517", "0.63397074", "0.62978864", "0.6288522", "0.62754005", "0.6256476", "0.6253577", "0.6224356", "0.6215352", "0.6205352", "0.6194486", "0.6172089", "0.6170341"...
0.5997307
27
Return the job's uuid.
def qxeD(YKHO): return YKHO.__uuid
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l_ss(YKHO):\n return qxeD.uuid4().hex", "def rjee(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'job_id')", "def zYHx(C5qt: str) -> str:\n return C5qt if '.' in C5qt else f'{C5qt}.0'", "def l_ss(YKHO) -> str:\n return YKHO.split_name[2][3:]", "def SLLa() -> str:\n return str(qxeD.uu...
[ "0.86546224", "0.78402054", "0.77013296", "0.76090837", "0.74697393", "0.7312589", "0.7276957", "0.71953255", "0.71432364", "0.713256", "0.713256", "0.71263796", "0.71238863", "0.71216196", "0.7107298", "0.70966035", "0.70952666", "0.70894897", "0.70843774", "0.70843774", "0....
0.7151712
9
Return whether the job is recoverable or not.
def MwHl(YKHO): return YKHO.__is_recoverable
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ytd1(YKHO):\n Dagl = eVGA()\n YKHO._client.execute('recover', eh=Dagl)\n return bool(Dagl)", "def tSnY(YKHO) -> h8nf[bool]:\n return qe4Y.get(YKHO, 'is_retryable')", "def RDWI(YKHO):\n pass", "def V6XP(YKHO):\n return YKHO._can_failover", "def vbCp(YKHO) -> h8nf[qe4Y.Input[bool]]:\n ...
[ "0.69704545", "0.67285067", "0.635075", "0.6180352", "0.60683817", "0.6048156", "0.6022064", "0.60043204", "0.5844405", "0.57800615", "0.574852", "0.5740432", "0.5737682", "0.569681", "0.5680629", "0.56616783", "0.56609786", "0.5644535", "0.5628481", "0.5617091", "0.56136096"...
0.7188076
0
Return a reference to the current job.
def kVWM(YKHO): assert Oafp.executor_object is not None return YKHO.__job
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oCfW(YKHO):\n return YKHO.batch[YKHO.job_id]", "def UIzg(YKHO) -> W7aK:\n return YKHO.jobs_list[YKHO.sel_idx]", "def aC0l(YKHO) -> qe4Y.Output['outputs.JobReference']:\n return qe4Y.get(YKHO, 'reference')", "def oCfW(YKHO) -> str:\n return YKHO._job", "def oCfW(YKHO) -> str:\n return YKH...
[ "0.79037386", "0.75921166", "0.75559855", "0.7450324", "0.7450324", "0.7389321", "0.7362385", "0.7249424", "0.7177245", "0.71029806", "0.70070744", "0.69591767", "0.6869568", "0.6856284", "0.6851716", "0.67642903", "0.674771", "0.673208", "0.67094916", "0.67041266", "0.666569...
0.8657935
0
Calculates number of workdays between two given dates, subtracting weekends.
def MiJS(YKHO, kepv, KhBf, rhBO=[], l_9u=[5, 6]): Bmup = (KhBf - kepv).days + 1 Q1vT, J38G = divmod(Bmup, 7) dXhe = (Q1vT + 1) * (7 - len(l_9u)) for Csk6 in range(1, 8 - J38G): if (KhBf + fCoM(Csk6)).weekday() not in l_9u: dXhe -= 1 rhBO = [WKvO for WKvO in rhBO if WKvO.weekday()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usV8(yKcO, Os4s):\n return owAp(yKcO, Os4s) - ljVX(yKcO, Os4s)['total holidays:']", "def owAp(yKcO, Os4s):\n return JdFb(yKcO, Os4s) - _Kf9(yKcO, Os4s)", "def Klka(yKcO: date, Os4s: date) -> int:\n RA_F = Os4s - yKcO\n return RA_F.days + 1", "def _Kf9(yKcO, Os4s):\n w54l = 0\n while Tru...
[ "0.82260215", "0.76884717", "0.7357405", "0.73224247", "0.7148693", "0.71188164", "0.69908917", "0.69651407", "0.6855857", "0.67219967", "0.6661408", "0.66076756", "0.6565678", "0.6479123", "0.6442236", "0.6421704", "0.64207226", "0.63230395", "0.63177633", "0.62915725", "0.6...
0.78390884
1
Load JSON file, return content.
def KrsJ(YKHO, nUeQ, nSsf=None): if Hy7s.path.isfile(nUeQ) and Hy7s.path.getsize(nUeQ): with open(nUeQ, 'r', encoding='utf-8') as eHNT: return qQXR.load(eHNT) return nSsf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KrsJ(RsFk):\n with open(RsFk, 'r') as wM3v:\n kGys = tyeH(wM3v)\n return kGys", "def PSj2(wM3v):\n with open(wM3v) as eHNT:\n hGN5 = qQXR.load(eHNT)\n return hGN5", "def tyeH(YKHO, pmON):\n with open(pmON, 'rt') as Ki2L:\n nPrm = qQXR.load(Ki2L)\n return nPrm", "def...
[ "0.82497865", "0.79960185", "0.7876934", "0.78544617", "0.7830257", "0.78212225", "0.7788578", "0.7781436", "0.77589846", "0.7758597", "0.7723787", "0.7681781", "0.76791245", "0.76791245", "0.7672178", "0.7659784", "0.76580524", "0.7657986", "0.7617429", "0.7595525", "0.75920...
0.76328456
18
Compute the pairwise Euclidean similarity between x and y. This function computes the following similarity value between each pair of x_i
def H2Lc(WKvO, LVAh): KCHu = 2 * ht2j.mm(WKvO, ht2j.transpose(LVAh, 1, 0)) ipKR = ht2j.sum(WKvO * WKvO, dim=-1) ipKR = ht2j.unsqueeze(ipKR, 0) PHAj = ht2j.reshape(ht2j.sum(LVAh * LVAh, dim=-1), (1, -1)) return KCHu - ipKR - PHAj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ScbS(WKvO, LVAh):\n WzsH = (WKvO ** 2).sum(1).view(-1, 1)\n if LVAh is not None:\n v173 = ht2j.transpose(LVAh, 0, 1)\n CERb = (LVAh ** 2).sum(1).view(1, -1)\n else:\n v173 = ht2j.transpose(WKvO, 0, 1)\n CERb = WzsH.view(1, -1)\n pImw = WzsH + CERb - 2.0 * ht2j.mm(WKvO, v...
[ "0.738357", "0.7380053", "0.73787063", "0.73718506", "0.7349075", "0.73226875", "0.72762585", "0.72503066", "0.7161958", "0.7151918", "0.7014116", "0.6968597", "0.6913705", "0.6870345", "0.6869797", "0.6763049", "0.67404854", "0.6728395", "0.6713584", "0.67111254", "0.6706049...
0.82490224
0
Compute the dot product similarity between x and y. This function computes the following similarity value between each pair of x_i
def _Yr3(WKvO, LVAh): return ht2j.mm(WKvO, ht2j.transpose(LVAh, 1, 0))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yYJc(WKvO, LVAh):\n return sum((jzdc * Fg_i for jzdc, Fg_i in zip(WKvO, LVAh)))", "def pxL1(WKvO, LVAh):\n return sum(JaxB(seET.mul, WKvO, LVAh))", "def BJ1H(WKvO, LVAh):\n return sum([Y7fn * O5iP for Y7fn, O5iP in zip(WKvO, LVAh)])", "def H2Lc(WKvO, LVAh):\n KCHu = 2 * ht2j.mm(WKvO, ht2j.tra...
[ "0.7166723", "0.7099518", "0.7010887", "0.69136864", "0.6815375", "0.67372715", "0.6728668", "0.669478", "0.6512557", "0.64949995", "0.6462717", "0.6383443", "0.6357349", "0.6354375", "0.634099", "0.63111836", "0.63083726", "0.6292651", "0.6290416", "0.6290416", "0.6277317", ...
0.8126946
0
Getter for this policy's minimum TLS version.
def Tuqy(YKHO): return YKHO._data.get('mode', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s69z(YKHO):\n return YKHO._data.get('min-tls-version', None)", "def Y5Rp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'tls_min_version')", "def Y5Rp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'tls_min_version')", "def Y5Rp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(Y...
[ "0.88268405", "0.83500886", "0.83500886", "0.8272157", "0.77342093", "0.77342093", "0.7507708", "0.74329704", "0.72299093", "0.68167055", "0.6603571", "0.63064027", "0.62191206", "0.61907357", "0.6169785", "0.61624134", "0.6144028", "0.6090609", "0.6068551", "0.60074264", "0....
0.0
-1
Getter for this policy's minimum TLS version.
def s69z(YKHO): return YKHO._data.get('min-tls-version', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y5Rp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'tls_min_version')", "def Y5Rp(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'tls_min_version')", "def Y5Rp(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'tls_min_version')", "def dIr1(YKHO) -> h8nf[qe4Y.Input[str]]:\n ...
[ "0.83500886", "0.83500886", "0.8272157", "0.77342093", "0.77342093", "0.7507708", "0.74329704", "0.72299093", "0.68167055", "0.6603571", "0.63064027", "0.62191206", "0.61907357", "0.6169785", "0.61624134", "0.6144028", "0.6090609", "0.6068551", "0.60074264", "0.5996794", "0.5...
0.88268405
0
Setter for the mx hosts that this domain's certs can be valid for.
def RyGy(YKHO, BWXx): YKHO._set_attr('mxs', BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Of0F(YKHO, Of0F):\n YKHO._hosts = Of0F", "def cCu1(YKHO, DLB7: t.List[str]) -> None:\n if isinstance(DLB7, str):\n DLB7 = [DLB7.strip()]\n if not isinstance(DLB7, list):\n raise TypeError('host_list argument must be a list of strings')\n if not all((isinstance(KcEq, str) for KcEq in...
[ "0.66594523", "0.62303126", "0.61410034", "0.60394865", "0.5943786", "0.5919907", "0.5905216", "0.58935386", "0.5861023", "0.5801098", "0.57297915", "0.56756735", "0.56741655", "0.5644177", "0.56378186", "0.56277186", "0.5555581", "0.5550633", "0.5550633", "0.5545153", "0.554...
0.0
-1
Flushes configuration to a file as JSONified string. If a new filename is not given, uses `filename` property.
def RFOL(YKHO, Ux0P=None): if Ux0P is None: Ux0P = YKHO.filename with open(Ux0P, 'w') as eHNT: eHNT.write(YKHO.dump())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyD2(GPtr: dict, Ux0P: str):\n with open(Ux0P, 'w', encoding='utf-8') as eHNT:\n THWE.dump(GPtr, eHNT, file_format='json')", "def YRUn(GPtr, Ux0P):\n with open(Ux0P, 'w+') as eHNT:\n qQXR.dump(vars(GPtr), eHNT)", "def LHWC(YKHO, Ux0P: str=None):\n if not Ux0P:\n Ux0P = YKHO.co...
[ "0.7051634", "0.6968615", "0.6865831", "0.67977846", "0.65548044", "0.65458256", "0.6461248", "0.6459402", "0.64368117", "0.64325255", "0.63536674", "0.6334606", "0.63211185", "0.62924033", "0.6287353", "0.62850744", "0.62815297", "0.6277847", "0.6236087", "0.61888987", "0.61...
0.0
-1
Getter for TLS policies in this configuration file.
def som_(YKHO): return YKHO._data.get('policies')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BUmX(YKHO) -> bdIy[ImMB]:\n return qe4Y.get(YKHO, 'policy_rules')", "def som_(YKHO):\n return YKHO._policies", "def MImZ():\n Qabx = som_.values()\n return Qabx", "def c3du(YKHO):\n Qabx = {}\n if qQXR is None:\n G9jH.error('No JSON module, cannot parse policy information')\n ...
[ "0.62467045", "0.60867196", "0.6082778", "0.6034959", "0.59870845", "0.59870845", "0.59201676", "0.5845755", "0.5785512", "0.5633026", "0.56324357", "0.5614157", "0.5575458", "0.55583334", "0.5530851", "0.5530851", "0.552006", "0.5461094", "0.5461094", "0.54478496", "0.542930...
0.6233299
1
Find maximum of LCurve curvature.
def wVHB(YKHO, IZ6Q, GN0K, Rjb4): oZuG = oyIN.log(GN0K) Y7fn = oyIN.log(Rjb4) vFQ2 = oyIN.gradient(oZuG) AOWs = oyIN.gradient(vFQ2) WEcJ = oyIN.gradient(Y7fn) vivv = oyIN.gradient(WEcJ) vU7K = 2 * (vFQ2 * vivv - AOWs * WEcJ) / (vFQ2 ** 2 + WEcJ ** 2) ** (3 / 2) cxFb = oyIN.where(vU7K == ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rLoS(YKHO):\n return 1.0 / YKHO.radius_min", "def YVFQ(YKHO, NFIp):\n y6Wx = xQN8(YKHO.surface(), NFIp[0], NFIp[1], 2, 1e-09).MaxCurvature()\n if YKHO.reversed():\n y6Wx *= -1\n return y6Wx", "def YiAX(YKHO):\n LVAh = oyIN.linspace(0, 719, 10)\n WKvO = YKHO.center_poly(LVAh)\n Q...
[ "0.8062958", "0.75860894", "0.6589427", "0.6373266", "0.6339498", "0.6208771", "0.6165077", "0.600116", "0.6000239", "0.59949034", "0.59914637", "0.5955797", "0.59465796", "0.589547", "0.58683926", "0.58191746", "0.57832944", "0.5777425", "0.57619905", "0.57436806", "0.572652...
0.625251
5
normalize a vector to have norm = 1
def NkkI(Ty9i): return Ty9i / oyIN.linalg.norm(Ty9i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(iArr):\n return iArr / oyIN.linalg.norm(iArr)", "def NkkI(Ty9i):\n return oyIN.array(Ty9i) / oyIN.linalg.norm(Ty9i)", "def JGX3(*iArr):\n iArr = oyIN.array(iArr).flatten()\n CkYf = oyIN.linalg.norm(iArr)\n if CkYf == 0:\n return iArr\n return iArr / CkYf", "def NkkI(YKHO):\n...
[ "0.8746538", "0.84981257", "0.8360617", "0.8298223", "0.8282614", "0.8234107", "0.8215352", "0.81593287", "0.81533724", "0.81196946", "0.8094739", "0.8092246", "0.80322766", "0.8016517", "0.800429", "0.8003724", "0.7972604", "0.7943567", "0.7935485", "0.781471", "0.7795828", ...
0.8574032
1
find vector perpenticular with given vector
def kNcR(iSzZ): WKvO, LVAh = iSzZ return oyIN.array([LVAh, -WKvO])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zsHX(XP5J, vexM, Mkmy):\n Ty9i = WHx2(vexM - Mkmy, vexM - XP5J)\n return Ty9i / VlDb(Ty9i) + vexM", "def D74Q(he6J):\n return HBfW(oyIN.dot(kaum, he6J))", "def hFff(Ty9i):\n assert len(Ty9i) == 2\n WKvO, LVAh = Ty9i\n return lNLu(-LVAh, WKvO)", "def QXcr(iArr):\n iArr = [geyT for gey...
[ "0.7070827", "0.6774848", "0.6715309", "0.6387233", "0.6200855", "0.6109683", "0.6108494", "0.60990584", "0.5985426", "0.5945798", "0.5942709", "0.5935143", "0.5935143", "0.5935143", "0.59223044", "0.5867384", "0.5867384", "0.5867384", "0.5867384", "0.5867384", "0.5867384", ...
0.57323617
37
Randomizes the order of data samples and their corresponding labels
def rJrZ(WKvO, LVAh): cZDQ = oyIN.random.permutation(LVAh.shape[0]) roYN = WKvO[cZDQ, :] Z3m2 = LVAh[cZDQ] return (roYN, Z3m2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rw6h(YKHO):\n tuKI.shuffle(YKHO.y_train)\n tuKI.shuffle(YKHO.y_test)", "def YJ7r(nPrm):\n UZ9m = oyIN.sum(nPrm[:, -1] == 0)\n JkOS = nPrm[:UZ9m, :]\n gAbH = nPrm[UZ9m:, :]\n oyIN.random.shuffle(JkOS)\n oyIN.random.shuffle(gAbH)\n return nPrm", "def BkuM(nPrm, Crrw):\n or8S = oyIN...
[ "0.7610801", "0.72624075", "0.71498376", "0.71094793", "0.7101863", "0.70504063", "0.6969117", "0.6969117", "0.6969117", "0.69373816", "0.69088066", "0.6856464", "0.6789744", "0.6737744", "0.6674642", "0.6634555", "0.6630403", "0.6464263", "0.6435945", "0.6421794", "0.6305728...
0.0
-1
Simple path formatter. Adds "\\" to the path
def gkup(id0V, AesY): return id0V + '\\' + AesY
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b4EW(KCHu):\n return KCHu.replace(Hy7s.sep, '')", "def wfqK(pmON):\n if not pmON:\n return pmON\n pmON = ZbWC.sub('/+', '/', pmON)\n if pmON == '/':\n return u'' if isinstance(pmON, QMSQ) else ''\n else:\n return '/' + pmON.strip('/')", "def wfqK(pmON):\n return pmON ...
[ "0.7076021", "0.69011325", "0.6809344", "0.67313296", "0.6703751", "0.66492784", "0.6604016", "0.65762943", "0.65511465", "0.65220314", "0.6512196", "0.64905304", "0.6474801", "0.6461339", "0.6369531", "0.6331675", "0.6301687", "0.62589455", "0.6231303", "0.6217088", "0.62048...
0.6674891
5
Fixture to remove the tmp/backups directory when complete.
def P3pP(): try: yield finally: RDuA.rmtree('tmp/backups')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tBIc(YKHO):\n YKHO.tempdir.cleanup()", "def tBIc(YKHO):\n RDuA.rmtree(YKHO.tempdir)", "def tBIc(YKHO):\n if 'turbinia-test-tmp' in YKHO.tmp_dir:\n RDuA.rmtree(YKHO.tmp_dir)", "def tBIc(YKHO):\n if Hy7s.path.exists(YKHO.temp):\n RDuA.rmtree(YKHO.temp)", "def tBIc(YKHO):\n pr...
[ "0.7652624", "0.7603511", "0.7543852", "0.75340176", "0.7451659", "0.74468315", "0.7431121", "0.7373532", "0.7364512", "0.73501295", "0.73501295", "0.7349859", "0.7301561", "0.7287947", "0.72825235", "0.7265863", "0.72474694", "0.7246766", "0.72339755", "0.7223153", "0.721172...
0.767783
0
Check whether the enum is valid and return the values of the enum.
def BAr1(Emd4, qQ1Y: Type): if isinstance(qQ1Y, gyVE): x7oU = [str(MTKo.value) for MTKo in qQ1Y] elif isinstance(qQ1Y, iu5r): x7oU = list(qQ1Y) else: tO9_ = 'enum must be a subclass of Enum or an iterable.' raise LxX6(message=tO9_, no_personal_data_message=tO9_, error_categor...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iLX_(YKHO):\n return [WKvO.name for WKvO in YKHO._field.enum_type.values]", "def BAr1(Emd4, qQ1Y):\n if isinstance(qQ1Y, gyVE):\n x7oU = [str(MTKo.value) for MTKo in qQ1Y]\n elif isinstance(qQ1Y, iu5r):\n x7oU = list(qQ1Y)\n else:\n tO9_ = 'enum must be a subclass of Enum or ...
[ "0.7362553", "0.6854786", "0.6562943", "0.65465194", "0.63105285", "0.62630725", "0.6243644", "0.62355715", "0.62194747", "0.6213934", "0.62135684", "0.60678273", "0.6064533", "0.60520905", "0.6037465", "0.60322773", "0.6014105", "0.599411", "0.59464246", "0.5918026", "0.5783...
0.6797397
2
Test graphs with no edge weight data raises `KeyError`
def JB2d(YKHO): Oa1e = jHsn.complete_graph(3).to_directed() with trZe.raises(KeyError, match='does not contain weight data'): L4JO(Oa1e)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z2NL():\n Oa1e = rHkU([('A', 2), (2, 'B'), ('B', 'C')])\n MKlR = rHkU([('A', 2), ('B', 'C'), (2, 'B')])\n assert Oa1e == MKlR\n with trZe.raises(ValueError):\n Oa1e = rHkU([('A', 2), (2, 'B'), ('B', 'C')], [1, 2])\n Oa1e = rHkU([('A', 2), ('B', 'C'), ('B', 'C')], [1, 2, 2])\n assert Oa...
[ "0.72734416", "0.6972526", "0.6802868", "0.67649627", "0.66926366", "0.66779673", "0.65623194", "0.6505124", "0.6503687", "0.6414738", "0.6413256", "0.6316475", "0.6282279", "0.62596464", "0.6235064", "0.6222054", "0.6200128", "0.61971813", "0.6173143", "0.61671", "0.6159127"...
0.82826227
0
Compare warpExposure to swarp for given warping kernel. Note that swarp only warps the image plane, so only test that plane.
def h1Fk(YKHO, ve2T, XkD8=True, IVR6=False, vrjq=False, bE00=10, TiR9=100000, LL2J=4e-05, rU28=0.01): CSWp = MuOW.WarpingControl(ve2T, '', TiR9, bE00) if IVR6: Vk_f = JNOt.ExposureF(W_5H) cviu = B1jb.geom.Box2I(B1jb.geom.Point2I(40, 150), B1jb.geom.Extent2I(145, 200)) awmT = JNOt.Exposur...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def U08W(YKHO):\n YKHO.compareToSwarp('lanczos2', useWarpExposure=True)", "def Qqib(YKHO):\n YKHO.compareToSwarp('nearest', useWarpExposure=True, atol=60)", "def HrHG(YKHO):\n YKHO.compareToSwarp('bilinear', useWarpExposure=True, useSubregion=False, useDeepCopy=True)", "def W4SE(YKHO):\n for bE00...
[ "0.64770603", "0.6440578", "0.64122427", "0.6396634", "0.6329896", "0.587488", "0.5531313", "0.54937637", "0.54928577", "0.54863787", "0.5368766", "0.5365246", "0.52809274", "0.52763057", "0.5259263", "0.5255423", "0.514235", "0.5132371", "0.5123436", "0.5108016", "0.5075532"...
0.714955
0
Function for creating JWT for Authentication Purpose
def hqaf(XnWo): return DvJO.encode(GRF5.GetUserInfoSerializer(XnWo).data, gCuF.SECRET_KEY, algorithm='HS256').decode('utf-8')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cWAO(YKHO):\n pB3N = yX69(YKHO)\n eOtH = rJp2(pB3N)\n return eOtH", "def cWAO(YKHO):\n import jwt\n from datetime import datetime, timedelta\n from django.conf import settings\n JRYC = datetime.now() + timedelta(days=60)\n eOtH = jwt.encode({'id': YKHO.pk, 'username': YKHO.username, '...
[ "0.78900695", "0.78387576", "0.76606333", "0.76533544", "0.7530544", "0.74550074", "0.7441873", "0.7429062", "0.7413366", "0.7406035", "0.73776555", "0.7372965", "0.73044765", "0.71948004", "0.71718085", "0.71688247", "0.7117753", "0.7117288", "0.71123064", "0.7097365", "0.70...
0.7626761
4
Return a Flavor instance or raise ItemNotFound.
def LIzI(jDnk, M953=False): try: jDnk = int(jDnk) if M953: return i7lT.objects.get(id=jDnk) else: return i7lT.objects.get(id=jDnk, deleted=M953) except (ValueError, TypeError): raise N8gC.BadRequest("Invalid flavor ID '%s'" % jDnk) except i7lT.DoesNotE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LIzI(mWFP):\n return KVlU.flavors.find(name=mWFP)", "def k3Zu(YKHO, mWFP=None):\n return YKHO.find(YKHO.flavors(), name=mWFP)", "def jJKq(YKHO, Gjbv, aBzZ=True):\n return YKHO._find(s6KR.Flavor, Gjbv, ignore_missing=aBzZ)", "def jJKq(YKHO, Gjbv, aBzZ=False):\n return YKHO._find(s6KR.Flavor, G...
[ "0.6734274", "0.66894305", "0.66251403", "0.6595879", "0.65231955", "0.64819133", "0.61645335", "0.6058981", "0.6058981", "0.59495175", "0.58669734", "0.5849747", "0.5845765", "0.5731084", "0.57228667", "0.57207537", "0.5711365", "0.55633694", "0.5540136", "0.54709226", "0.54...
0.6445534
6
Extract the URL from a metadata object. Returns None if the URL is invalid or the metadata does not contain an URL.
def qHhB(YKHO, yIVm): if yIVm != None: nzy7 = yIVm.lookup_value('xesam:url') if nzy7 != None: bD7m = nzy7.get_string() if bD7m != '': return bD7m return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z9JC(YKHO) -> h8nf[mYLh]:\n try:\n hGN5 = YKHO.read_text(CNs3)\n except FileNotFoundError:\n return None\n try:\n return mYLh.from_json(hGN5)\n except (UnicodeDecodeError, qQXR.JSONDecodeError, bGUN) as e:\n bo34.warning('Error parsing %s for %s: %s', CNs3, YKHO.canonica...
[ "0.70464224", "0.6766931", "0.61524594", "0.6151016", "0.61417866", "0.6129782", "0.6055454", "0.60285854", "0.59879005", "0.58797365", "0.5843219", "0.5820332", "0.58135706", "0.5808752", "0.5771527", "0.56971586", "0.56964463", "0.568717", "0.56862396", "0.56862396", "0.568...
0.8732619
0
Resets the default fields values and creates the temporary directory.
def FIMM(YKHO, AGPF): YKHO.baseUrl = 'http://www.televideo.rai.it/televideo/pub/tt4web/Nazionale' YKHO.mapUrl = 'http://www.televideo.rai.it/televideo/pub/pagina.jsp?p=PAGE&s=PART&r=Nazionale&idmenumain=2&pagetocall=pagina.jsp' YKHO.directory = AGPF YKHO.default = AGPF + '/not-found.png' YKHO.loadin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LESf(YKHO):\n if not YKHO._is_temp_dir:\n YKHO._orig_base_data_dir = YKHO._base_data_dir\n YKHO._orig_base_logs_dir = YKHO._base_logs_dir\n nzu_ = GkAb(gbPf.mkdtemp())\n YKHO._base_data_dir = nzu_ / 'data'\n YKHO._base_logs_dir = nzu_ / 'logs'\n YKHO.db.change_path(':memory:')\n ...
[ "0.6702049", "0.6620325", "0.65989345", "0.6576133", "0.6560937", "0.6450358", "0.64152473", "0.63893086", "0.63178295", "0.63178295", "0.63107365", "0.6245028", "0.62278986", "0.6205534", "0.6180942", "0.6150329", "0.6143466", "0.61324763", "0.6119405", "0.60965574", "0.6063...
0.0
-1
Register and my custom Altair theme.
def FBYa(): Zc6P.themes.register('my_theme', Ju70) Zc6P.themes.enable('my_theme')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Btqw(OaeV, **muwo):\n from .quickstart import theme_quickstart\n bNKA = OaeV.get_project(silent=True)\n theme_quickstart(muwo, project=bNKA)", "def q05W():\n Hy7s.system('sudo apt install arc-theme')\n hlel = '{padding}{mark} Installing theme...'\n print(hlel.format(padding=jEjm, mark=CT68)...
[ "0.65362704", "0.6533907", "0.65302336", "0.64712983", "0.6326045", "0.6273264", "0.6266784", "0.610829", "0.59554917", "0.59432256", "0.5875423", "0.5858105", "0.5656011", "0.56324315", "0.5631634", "0.54914767", "0.5470845", "0.5362045", "0.53561074", "0.53477967", "0.52695...
0.7663698
1
Returns True if the coefficients of the two polynomials have the following a. they are the same number b. they are close enough pointwise.
def FKu1(_g9D, Wma7, SGf8=0.01): if type(Wma7) != type(_g9D): Wma7 = list(Wma7) if len(_g9D) != len(Wma7): raise Exception('Incorrect number of terms') for OXAZ, YOs9 in zip(_g9D, Wma7): if abs(OXAZ - YOs9) > SGf8: print('At least one of the terms is not close enough') ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lYwR(jzdc, Fg_i):\n for SPRI, ybzy in zip(jzdc.holes, Fg_i.holes):\n if not oyIN.array_equal(SPRI, ybzy):\n return False\n for U146, q1I8 in zip(jzdc.parts, Fg_i.parts):\n if not oyIN.array_equal(U146, q1I8):\n return False\n return True", "def TT3J(jzdc, Fg_i):\n...
[ "0.75495493", "0.7335283", "0.7044036", "0.7025358", "0.6952558", "0.68725693", "0.6750162", "0.6706163", "0.6680784", "0.66692114", "0.6664742", "0.66516376", "0.6607871", "0.6606549", "0.65600824", "0.65223604", "0.6481739", "0.6467734", "0.64365476", "0.64043504", "0.64041...
0.5933131
57
Return a friendly HTTP greeting.
def Wzeq(): return 'Hello World hahaha !!!!!!'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Tz38(mWFP):\n BYLU = f\"Hello, {mWFP.title()}. It's nice to meet you!\"\n return BYLU", "def uthR():\n return 'Welcome to Flask!'", "def Y7u5(mWFP):\n print('My name is ' + mWFP)", "def qjYe():\n return f\"Welcome to the Surf's Up API!Available Routes:<br/>/api/v1.0/surfs-up\"", "def Wze...
[ "0.67860854", "0.6719625", "0.67095745", "0.6680697", "0.6663219", "0.6638394", "0.6633062", "0.6628187", "0.6556032", "0.6536937", "0.64776874", "0.6477268", "0.64715713", "0.64644194", "0.6443056", "0.6435385", "0.6400719", "0.6400167", "0.637615", "0.637615", "0.6367243", ...
0.0
-1
Return name of the worksheet.
def Y4Pf(YKHO): return YKHO.worksheet
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r8zc(YKHO, hFFO: Workbook) -> str:\n return hFFO.title", "def Hml4():\n C13M = cFqH.getDocument()\n eUFr = C13M.getCurrentController().getActiveSheet()\n return eUFr.getName()", "def RpS8(YKHO):\n pMBr = rLdf.ExcelFile(YKHO.excel_file)\n CZFg = pMBr.sheet_names\n for ZfUD in CZFg:\n ...
[ "0.7039318", "0.6969674", "0.68402946", "0.6323195", "0.62958205", "0.6191118", "0.6117964", "0.6034934", "0.5937051", "0.5933627", "0.5933627", "0.5919367", "0.59043777", "0.59030783", "0.5863491", "0.58568406", "0.5847715", "0.5840714", "0.5830654", "0.5830654", "0.5830654"...
0.6774123
3
Return name of the workbook.
def _Un7(YKHO): return YKHO.workbook
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def r8zc(YKHO, hFFO: Workbook) -> str:\n return hFFO.title", "def W0tD(YKHO):\n return YKHO._file.name", "def W0tD(YKHO) -> str:\n return Hy7s.path.split(Hy7s.getcwd())[-1]", "def mWFP(YKHO):\n return YKHO._filename", "def RpS8(Ux0P):\n Ux0P = Hy7s.path.basename(Ux0P)\n Ux0P = Hy7s.path.s...
[ "0.8340437", "0.6342669", "0.61625004", "0.6157091", "0.61231226", "0.6090624", "0.6081371", "0.604609", "0.59801394", "0.5974948", "0.5929345", "0.59051883", "0.5847362", "0.5847362", "0.5840521", "0.5838494", "0.58332425", "0.5831625", "0.5823304", "0.58182245", "0.5795293"...
0.0
-1
Return name of the document.
def WjZY(YKHO): return YKHO.document
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mWFP(YKHO):\n return YKHO._document['name']", "def mWFP(YKHO) -> str:\n return YKHO.doc.get('name', YKHO.identifier())", "def mWFP(YKHO):\n if not hasattr(YKHO, '_name'):\n mWFP = VBgC.get_text(YKHO.doc.find('PreferredName', ''))\n YKHO._name = mWFP.strip()\n return YKHO._name", ...
[ "0.8442852", "0.8306342", "0.7380376", "0.736301", "0.72964364", "0.7114619", "0.7058983", "0.7028049", "0.7004435", "0.7004435", "0.69935924", "0.69935924", "0.69935924", "0.69935924", "0.69935924", "0.69935924", "0.69935924", "0.69935924", "0.69935924", "0.69935924", "0.697...
0.0
-1
Convert class labels from scalars to onehot vectors
def kPpE(yAkj, jTqs=2): svPB = yAkj.shape[0] whV7 = oyIN.arange(svPB) * jTqs xZkh = oyIN.zeros((svPB, jTqs)) xZkh.flat[whV7 + yAkj.ravel()] = 1 return xZkh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(Crrw, KndY=None):\n return nMvt.utils.to_categorical(Crrw, KndY)", "def KLLm(Crrw, KndY=None):\n PnsN = nMvt.utils.to_categorical(Crrw, KndY)\n return PnsN", "def pTWU(UXqs, nZt5):\n aFAW = oyIN.zeros(nZt5)\n aFAW[UXqs] = 1\n return aFAW", "def LQDo(Crrw: torch.Tensor, jTqs: int) -...
[ "0.8369099", "0.8184567", "0.81024134", "0.8077252", "0.807633", "0.8050328", "0.80436194", "0.80269533", "0.80269533", "0.79798156", "0.79729146", "0.79695207", "0.79407936", "0.79191554", "0.79048985", "0.7895879", "0.7849574", "0.7844943", "0.7837363", "0.78372246", "0.783...
0.7219783
92
Construct a DataSet. one_hot arg is used only if fake_data is true. `dtype` can be either `uint8` to leave the input as `[0, 255]`, or `float32` to rescale into `[0, 1]`.
def FIMM(YKHO, Yw_3, Crrw, I9qO=False, KLLm=False, yDqo=ZylS.float32): yDqo = ZylS.as_dtype(yDqo).base_dtype if yDqo not in (ZylS.uint8, ZylS.float32): raise TypeError('Invalid image dtype %r, expected uint8 or float32' % yDqo) if I9qO: YKHO._num_examples = 10000 YKHO.one_hot = KLLm ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KLLm(WKvO, jTqs, yDqo=oLG2.float32):\n return yOcR.nn.one_hot(WKvO, jTqs).astype(yDqo)", "def OVnz(Crrw: np.ndarray, LeZt: int, jDK_: int=0, JsoO=False, yDqo=bool):\n if JsoO:\n assert Crrw.shape[jDK_] == 1\n nbIQ = Crrw.ndim\n else:\n nbIQ = Crrw.ndim + 1\n if jDK_ < 0:\n ...
[ "0.6929286", "0.6369948", "0.63244903", "0.63239926", "0.6284337", "0.62314653", "0.62222224", "0.61985177", "0.61884886", "0.61752594", "0.6170024", "0.61685055", "0.61614555", "0.61585116", "0.61585116", "0.6153418", "0.61488473", "0.61419", "0.61160076", "0.61143345", "0.6...
0.0
-1
Returns all topics from black mage.
def T5SE(YKHO, U34r, **B2fa): return oosv.objects.all()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def niz3(YKHO):\n return [WKvO[0] for WKvO in xLHS()]", "def AdpB(YKHO):\n return kGys.Topics(YKHO)", "def AdpB(YKHO):\n return AdpB.Topics(YKHO)", "def AdpB(YKHO):\n return AdpB.Topics(YKHO)", "def niz3(YKHO):\n return YKHO.client.cluster.topics()", "def niz3(YKHO):\n try:\n wit...
[ "0.7876192", "0.7469221", "0.7463177", "0.731952", "0.7270489", "0.7253152", "0.7085382", "0.7079373", "0.7021672", "0.70174825", "0.6914631", "0.6785149", "0.6778883", "0.67697227", "0.67567474", "0.6644736", "0.6630566", "0.66033", "0.6587081", "0.6583617", "0.65086585", ...
0.65285903
20
Return the same value within `seconds` time period
def yyoW(C6wh=3600): return round(ITS7.time() / C6wh)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OQVD(z0YJ):\n qXdP = z0YJ % 60", "def PfxT(C6wh):\n O66n = C6wh / 60\n K0A_ = C6wh % 60\n if K0A_ >= 30:\n O66n += 1\n return O66n * 60", "def R4jF(C6wh):\n return C6wh * 10 ** 3", "def fsjN(kRsb):\n return int(kRsb - rbGV(kRsb) * 3600 - bG7X(kRsb) * 60)", "def wktM(Emd4, GM...
[ "0.61171687", "0.5976896", "0.5888562", "0.5886468", "0.5863752", "0.5855601", "0.5782485", "0.57756007", "0.5713206", "0.5713206", "0.5676949", "0.5647429", "0.56461763", "0.56433237", "0.5612715", "0.5611092", "0.5597019", "0.556223", "0.5555322", "0.5518646", "0.5513411", ...
0.0
-1
Multiplies vector3 vec by unit quaternion quat and returns the resulting rotated vector
def mzWC(he6J, _Jov): AnfQ = oyIN.concatenate((0, he6J), axis=None) ecEB = oyIN.array([_Jov[0], -_Jov[1], -_Jov[2], -_Jov[3]]) c6Ki = W9ym(W9ym(_Jov, AnfQ), ecEB) return c6Ki[1:4]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aOlF(vexM, Ty9i):\n kpUu = oyIN.zeros((4, 1))\n kpUu[1:] = Ty9i\n OZpx = LM8i(vexM).T @ YSKd(vexM) @ kpUu\n return OZpx[1:]", "def v91k(YKHO):\n _Jov = iCFA.from_axis_angle_deg(SoA4(-1, -1, -1), 180.0)\n he6J = SoA4(1, 0, 0)\n EGgP = _Jov.rotate_vec(he6J)\n YKHO.assertAlmostEqual(-1 /...
[ "0.770387", "0.7546813", "0.7482931", "0.7405268", "0.73668677", "0.7271283", "0.72085196", "0.7105764", "0.70878017", "0.7008738", "0.69095737", "0.6866999", "0.68538564", "0.68275446", "0.68275446", "0.67850894", "0.67218274", "0.66523397", "0.6531478", "0.64471996", "0.643...
0.76233983
1
Get the nearest neighbour words
def BLGP(tyNF, C4bq, xDcj, G1Hx=10): sjXb = tyNF.keys() HaYv = tyNF[xDcj] cCrA = XTiz.dot(HaYv, C4bq.T).flatten() TlB9 = XTiz.argsort(cCrA)[::-1] V22M = [sjXb[jzdc] for jzdc in TlB9[:G1Hx]] print('QUERY: ' + xDcj) print('NEAREST: ') for YRbF, yzQ0 in enumerate(V22M): print(yzQ0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VNoj(YKHO, GIN8, exwG):\n iArr = YKHO.get_vector(GIN8)\n if iArr is None:\n return None\n TaUL = [(yzQ0, ht2j.dist(iArr, YKHO.get_vector(yzQ0)).item()) for yzQ0 in YKHO.glove.itos]\n return [yzQ0 for yzQ0, Ty9i in sorted(TaUL, key=lambda yzQ0: yzQ0[1])[:exwG]]", "def CLQW(YKHO, GIN8, cmPJ)...
[ "0.7328914", "0.71997714", "0.7109158", "0.70136714", "0.6881527", "0.6856135", "0.6846056", "0.67294353", "0.67229235", "0.67113394", "0.663129", "0.6483845", "0.63731456", "0.63354486", "0.63354486", "0.63354486", "0.63039273", "0.6289074", "0.6258887", "0.62265164", "0.612...
0.668223
10
Forward pass through GRU layer
def Ghnh(_2q5, t6sO, xAU6, y0cW='gru', ZHfW=None, **B2fa): Xlun = t6sO.shape[0] if t6sO.ndim == 3: cDK5 = t6sO.shape[1] else: cDK5 = 1 tpio = _2q5[CvxM(y0cW, 'Ux')].shape[1] if ZHfW == None: ZHfW = vhpA.alloc(1.0, t6sO.shape[0], 1) def O_KB(eeYG, exwG, tpio): if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zSjz(i4mZ, WKvO):\n Mkmy = ZylS.sigmoid(ZylS.matmul(WKvO, eSrz) + ZylS.matmul(i4mZ, N708) + Rzz_)\n P6bq = ZylS.sigmoid(ZylS.matmul(WKvO, Ulql) + ZylS.matmul(i4mZ, fa6X) + C4ft)\n Z9rn = ZylS.tanh(ZylS.matmul(WKvO, mH3V) + ZylS.matmul(ZylS.multiply(Mkmy, i4mZ), Nl1R) + xCu3)\n NKrA = ZylS.multiply(...
[ "0.69769704", "0.69294876", "0.6818954", "0.679522", "0.6615893", "0.6545958", "0.65410095", "0.6538721", "0.65336585", "0.6498751", "0.6459099", "0.6454158", "0.63321877", "0.63270444", "0.63208324", "0.6287723", "0.6279007", "0.62770253", "0.6275967", "0.6260427", "0.623505...
0.71091443
0
Update or edit category
def qenw(QePW, VMw8): try: Ghho = qZuN.objects.get(id=VMw8) print('id', Ghho) except qZuN.DoesNotExist: return oGir({'message': 'requested category does not exist'}, status=jGRS.HTTP_404_NOT_FOUND) if QePW.method == 'GET': ZMzz = jd0z(Ghho) return oGir({'data': ZMzz.d...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, QePW, *qIxc, **B2fa):\n geh0 = super(iGcA).update(YKHO, QePW, *qIxc, *B2fa)\n geh0.data['message'] = 'Categoria ha sido editada'", "def Icd6(VMw8):\n UsRV = cuiw.query(qZuN).filter_by(id=VMw8).one()\n if UsRV.user_id != sGQh['user_id']:\n Dwep('You are not authorized to edit thi...
[ "0.7671197", "0.76485246", "0.7480355", "0.74739754", "0.74328667", "0.7319179", "0.7312993", "0.7269082", "0.72075963", "0.71546555", "0.7112014", "0.7063623", "0.70480263", "0.6980938", "0.69538695", "0.6924649", "0.69143075", "0.6906742", "0.6785965", "0.6713326", "0.67053...
0.7045605
13
Update or edit category
def be2U(QePW, VMw8): try: Ghho = qZuN.objects.get(id=VMw8) print('id', Ghho) except qZuN.DoesNotExist: return oGir({'message': 'requested category does not exist', 'status': jGRS.HTTP_404_NOT_FOUND}) if QePW.method == 'GET': ZMzz = jd0z(Ghho) return oGir({'data': ZMz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, QePW, *qIxc, **B2fa):\n geh0 = super(iGcA).update(YKHO, QePW, *qIxc, *B2fa)\n geh0.data['message'] = 'Categoria ha sido editada'", "def Icd6(VMw8):\n UsRV = cuiw.query(qZuN).filter_by(id=VMw8).one()\n if UsRV.user_id != sGQh['user_id']:\n Dwep('You are not authorized to edit thi...
[ "0.7671197", "0.76485246", "0.7480355", "0.74739754", "0.74328667", "0.7319179", "0.7312993", "0.7269082", "0.72075963", "0.71546555", "0.7112014", "0.7063623", "0.70480263", "0.7045605", "0.6980938", "0.69538695", "0.6924649", "0.69143075", "0.6906742", "0.6785965", "0.67133...
0.0
-1
Sets the job_flow_id of this JobFlow.
def KeEp(YKHO, KeEp): YKHO._job_flow_id = KeEp
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rjee(YKHO, rjee):\n YKHO._job_id = rjee", "def rjee(YKHO, rjee):\n YKHO._job_id = rjee", "def rjee(YKHO, rjee):\n YKHO._job_id = rjee", "def rjee(YKHO, rjee: JobId):\n YKHO._job_id = rjee", "def Rf2w(YKHO, OEYZ):\n YKHO._ShREEKConfig.setJobId(OEYZ)", "def _uqo(YKHO, _uqo):\n YKHO._f...
[ "0.6441779", "0.6441779", "0.6441779", "0.6380962", "0.5943968", "0.5826679", "0.5772291", "0.57185155", "0.5481224", "0.54755044", "0.5443353", "0.543557", "0.5412495", "0.54072183", "0.54053146", "0.5328769", "0.5328769", "0.53165245", "0.529883", "0.5298529", "0.5259993", ...
0.8996603
0
Sets the subscription_id of this JobFlow.
def JuHa(YKHO, JuHa): YKHO._subscription_id = JuHa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mouR(YKHO, mouR):\n if mouR is None:\n raise ValueError('Invalid value for `subscription`, must not be `None`')\n YKHO._subscription = mouR", "def mouR(YKHO, mouR):\n YKHO._subscription = mouR", "def a7w5(*, _ZMm: LoginManager, _R4q: str, JuHa: Optional[str]) -> None:\n Gtbd = _ZMm.get_t...
[ "0.69916046", "0.69174916", "0.67454904", "0.6105906", "0.604121", "0.5903538", "0.58498675", "0.58498675", "0.58498675", "0.5804755", "0.57953686", "0.5751992", "0.5751992", "0.57029617", "0.5691048", "0.56691235", "0.5614546", "0.5576805", "0.54943603", "0.54219455", "0.536...
0.8238573
2
Sets the name of this JobFlow.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP", "def WZrJ(YKHO, mWFP: str):\n YKHO._name = mWFP", "def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO,...
[ "0.7690387", "0.7690079", "0.7669687", "0.7637739", "0.7637739", "0.7637739", "0.7637739", "0.7637739", "0.76286083", "0.76286083", "0.7604411", "0.7604411", "0.7576435", "0.7565597", "0.75361377", "0.7484264", "0.74761957", "0.74760354", "0.7465989", "0.7465989", "0.7465989"...
0.0
-1
Sets the action_flow of this JobFlow.
def hyxK(YKHO, hyxK): YKHO._action_flow = hyxK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _uqo(YKHO, _uqo):\n YKHO._flow = _uqo", "def Ddsp(YKHO, XeOP):\n YKHO._action = XeOP\n return YKHO", "def Ddsp(YKHO, XeOP):\n YKHO.action = XeOP", "def Ddsp(YKHO, XeOP):\n YKHO.action = XeOP", "def FGnS(YKHO, XeOP):\n YKHO.action = XeOP\n return YKHO", "def Ddsp(YKHO, XeOP):\n ...
[ "0.6697477", "0.6605106", "0.6572391", "0.6572391", "0.65584624", "0.65481216", "0.65435165", "0.6204514", "0.6125053", "0.61220413", "0.60994005", "0.60994005", "0.60994005", "0.60994005", "0.60994005", "0.60994005", "0.6096965", "0.6006232", "0.5993321", "0.59661347", "0.58...
0.8506048
0
Sets the job_flow_plans of this JobFlow.
def ZU8L(YKHO, ZU8L): YKHO._job_flow_plans = ZU8L
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bJnU(YKHO, bJnU):\n YKHO._plans = bJnU", "def yUv9(YKHO, yUv9):\n YKHO._supp_plans = yUv9", "def qUyJ(YKHO, qUyJ):\n YKHO._plan = qUyJ", "def KeEp(YKHO, KeEp):\n YKHO._job_flow_id = KeEp", "def iKVz(YKHO, iKVz):\n YKHO._scheduled_plan = iKVz", "def ILhW(YKHO, ILhW):\n YKHO._plan_all...
[ "0.651165", "0.59491223", "0.57776326", "0.56348467", "0.54054314", "0.5352163", "0.53507125", "0.5101109", "0.5089099", "0.47738126", "0.47630695", "0.47478443", "0.46569446", "0.46268952", "0.46123677", "0.46094048", "0.4609186", "0.46035862", "0.45684758", "0.45664078", "0...
0.86924565
0
Sets the creation_name of this JobFlow.
def shql(YKHO, shql): YKHO._creation_name = shql
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe", "def WZrJ(YKHO, XWXe):\n YKHO.name = XWXe\n return YKHO.name", "def svau(YKHO):\n return YKHO.create_topic().create_name('Name')", "def wxIh(YKHO, wxIh):\n YKHO._job_name = wxIh", "def CXv8(YKHO) -> str:\n pass", "def WZrJ(YKHO, mWFP):\n YKH...
[ "0.6261876", "0.6150714", "0.6131463", "0.6106729", "0.6098038", "0.60866755", "0.608278", "0.6082664", "0.6082664", "0.60284775", "0.6012197", "0.6012197", "0.6012197", "0.6012197", "0.6012197", "0.59981453", "0.5983301", "0.5983301", "0.5977474", "0.59725994", "0.5952066", ...
0.84072924
0
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, upyE): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Returns the mean geometric chord of the wing (S/b).
def H9Du(YKHO) -> float: return YKHO.area() / YKHO.span()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vBtO(YKHO):\n YWSx = YKHO['annual_gross_energy'] - YKHO['annual_thermal_consumption']\n i790 = YKHO['q_pb_design'] * 8760 * 1000\n return YWSx / i790", "def vBtO(YKHO):\n YWSx = YKHO['annual_field_energy'] - YKHO['annual_thermal_consumption']\n i790 = YKHO['q_pb_des'] * 8760 * 1000\n return...
[ "0.6242437", "0.60839003", "0.6067497", "0.6013805", "0.5957862", "0.5931541", "0.58810556", "0.58113635", "0.57946396", "0.5716967", "0.567145", "0.56415355", "0.5621868", "0.5609336", "0.56035614", "0.56033283", "0.55870014", "0.556996", "0.55433065", "0.5532752", "0.552707...
0.7377378
0
Returns whether or not the user can view this monitor.
def KKMP(YKHO, CBIr): return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y44_(YKHO):\n CBIr = YKHO.REQUEST.AUTHENTICATED_USER\n return bool(CBIr.has_permission(VgcY, YKHO))", "def TZtb(YKHO):\n return YKHO.can_show", "def eTnD(YKHO, CBIr):\n return True", "def rVDy(Emd4, QePW):\n if Emd4.permission_required:\n return QePW.user.has_perm(Emd4.permission_ur...
[ "0.72141016", "0.7082938", "0.6964027", "0.6945758", "0.68961805", "0.6861698", "0.6835311", "0.67899245", "0.66705745", "0.66488165", "0.6610142", "0.660011", "0.660011", "0.660011", "0.6587095", "0.65833217", "0.6508811", "0.64967203", "0.64819425", "0.64551294", "0.6432972...
0.7221826
0
Initialise the weights of the ESIM model.
def FEKy(yR_P): if isinstance(yR_P, U78l.Linear): U78l.init.xavier_uniform_(yR_P.weight.data) U78l.init.constant_(yR_P.bias.data, 0.0) elif isinstance(yR_P, U78l.LSTM): U78l.init.xavier_uniform_(yR_P.weight_ih_l0.data) U78l.init.orthogonal_(yR_P.weight_hh_l0.data) U78l.in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def C0Lv(YKHO):\n pass", "def vB93(C3ST):\n ...", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)\n YKHO.tie_weights()", "def vB93(YKHO):\n YKHO.apply(YKHO._init_weights)", "def vB93(YKHO):\n YKHO._q_neuron.h(YKHO._weights)\n YKHO._q_neuron.x(YKHO._weights)", "def vB93(YKHO):\n ...
[ "0.7948795", "0.791889", "0.7916553", "0.79133403", "0.7717142", "0.76740867", "0.7670459", "0.7665397", "0.7627345", "0.7601293", "0.75917876", "0.730495", "0.7301711", "0.7301711", "0.7301711", "0.7273246", "0.724169", "0.7238179", "0.7222038", "0.7220882", "0.7216713", "...
0.6846368
65
loads a numpy .npy array from file and transforms it into a symmetric array
def u_kO(Ul_A='symsave.npy'): sAYn = oyIN.load(Ul_A) exwG = -1 / 2.0 + oyIN.sqrt(1 / 4.0 + 2 * sAYn.size) qw7D = oyIN.zeros([exwG, exwG]) _0VL = oyIN.triu_indices(exwG) qw7D[_0VL] = sAYn return qw7D + oyIN.transpose(qw7D) - oyIN.diag(oyIN.diag(qw7D))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def okDS(qaEx):\n return oyIN.load(qaEx.decode()).astype(oyIN.float32)", "def ESuR(Ux0P):\n return oyIN.load(Ux0P)", "def xB50(Ux0P):\n p891 = oyIN.load(Ux0P)\n return p891", "def tyeH(Ux0P):\n return oyIN.load(Ux0P)", "def E_eN(YKHO, Ux0P):\n Fst3 = Ux0P.split('.')[-1]\n if Fst3 == 'm...
[ "0.6977436", "0.6900838", "0.6504564", "0.6435888", "0.6384373", "0.6379861", "0.6334662", "0.6327956", "0.6262082", "0.62526375", "0.6193084", "0.6189153", "0.613422", "0.6123099", "0.6086385", "0.6024466", "0.601707", "0.59880936", "0.5978878", "0.5957565", "0.5915432", "...
0.6669528
2
Initialize a new ConsoleController self.
def FIMM(YKHO, nPbU, gGbt): YKHO.number_of_cheeses = nPbU YKHO.number_of_stools = gGbt
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, BH3N):\n YKHO.game = BH3N\n XuVZ.__init__(YKHO, None)", "def FCbF(YKHO):\n YKHO.console = PSdN()\n YKHO.text_edit = YKHO.console._control", "def CZzI(YKHO):\n return", "def FIMM(YKHO, qIxc):\n super().__init__()\n YKHO.args = qIxc\n YKHO.get_controller(qIxc)", "def jw...
[ "0.6878187", "0.6425806", "0.64223385", "0.63462037", "0.6332916", "0.6221512", "0.61765397", "0.61424834", "0.6123856", "0.60340816", "0.6028922", "0.5927555", "0.5853501", "0.5844645", "0.5807799", "0.57861006", "0.5784058", "0.5724852", "0.5724138", "0.56988347", "0.564804...
0.0
-1
Generate a new sitemap filename based on count.
def uBQj(ewCu): mWFP = '%s/sitemap-%s.xml.gz' % (gCuF.SITEMAPS_DIR, ewCu) ytgA = lGU7.open(mWFP, 'wb') ytgA.write('<?xml version="1.0" encoding="UTF-8"?>\n<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">\n') return ytgA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NE6_(ewCu):\n return '%s/sitemap-%s.xml.gz' % (gCuF.SITEMAPS_BASE_URL, ewCu)", "def jUBZ():\n nAnY = open('static/sitemaps/sitemap.xml', 'w')\n nAnY.write('<?xml version=\"1.0\" encoding=\"UTF-8\"?>\\n<sitemapindex xmlns=\"http://www.sitemaps.org/schemas/sitemap/0.9\">\\n')\n Fhg_ = 50000\n IF...
[ "0.7264054", "0.6227657", "0.6097597", "0.5960428", "0.5937562", "0.58240074", "0.5783639", "0.57822263", "0.573668", "0.57359517", "0.5726482", "0.5720662", "0.56979996", "0.56799036", "0.565552", "0.5585595", "0.55738306", "0.5567021", "0.5521101", "0.5515651", "0.5514743",...
0.6769124
1
Order queryset by annotation values. The format of the ordering field is annotations__field_id, possibly prefixed by a minus sign. The minus sign indicates descending order.
def ER0B(YKHO, SR0I): if (mJZc := YKHO.request.query_params.get('ordering')): DeLa = [] njyT = ZbWC.compile('-?annotations__(?P<field_id>\\d+)') V_D6 = [Jyyj.strip() for Jyyj in mJZc.split(',')] for kUBT in filter(None, map(njyT.match, V_D6)): ZVtQ = kUBT.group('field_id'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DeLa(YKHO, *V_D6):\n A97Q = []\n for Jyyj in V_D6:\n if Jyyj.startswith('-'):\n A97Q.append((Jyyj.strip('-'), DpgL.DESCENDING))\n else:\n A97Q.append((Jyyj, DpgL.ASCENDING))\n return YKHO.sort(A97Q)", "def DeLa(YKHO, tSzU, T4Wy=None):\n raise NotImplementedErro...
[ "0.6110459", "0.60601103", "0.58421963", "0.57634676", "0.56661314", "0.5527909", "0.5513533", "0.55091345", "0.5437888", "0.540819", "0.54006535", "0.53413165", "0.5323872", "0.5321573", "0.5297688", "0.525465", "0.5236016", "0.52188337", "0.5209658", "0.51942223", "0.516283...
0.8023197
0
Move samples from source to destination collection. The request accepts argument 'handle_missing_annotations'.The possible values for it are 'ADD' and 'REMOVE'. When 'REMOVE' is set without arguments the 'confirm_annotations_delete' argument must be set to True.
def SGNn(YKHO, QePW, *qIxc, **B2fa): A07C = YKHO.get_ids(QePW.data) SYih = YKHO.get_id(QePW.data, 'destination_collection') T6UH = Fbru(SYih, QePW.user) iAGU = YKHO._get_entities(QePW.user, A07C) Z8UZ = {LEXu: OUO3.objects.filter(collection=LEXu.collection).exclude(collection=T6UH).distinct() for LE...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nm11(YKHO, gshJ):\n bslP = {'allocations': {}}\n Oeov = TMAJ.Mock()\n Oeov.json.return_value = bslP\n YKHO.mock_get.side_effect = [Oeov, YKHO.target_rsp]\n _hkX = YKHO.client.move_allocations(YKHO.context, YKHO.source_consumer_uuid, YKHO.target_consumer_uuid)\n YKHO.assertTrue(_hkX)\n YKHO...
[ "0.5602858", "0.5356931", "0.51003027", "0.50642705", "0.4770782", "0.47355297", "0.4683761", "0.46703807", "0.46632388", "0.46476516", "0.4641159", "0.46215132", "0.45906737", "0.45707744", "0.45690298", "0.45258832", "0.45139736", "0.45118746", "0.44913766", "0.4481148", "0...
0.6794272
0
Get the annotations on this sample.
def nkyg(YKHO): LEXu = YKHO.get_object() ZMzz = JDEj(LEXu.annotations.all(), many=True) return oGir(ZMzz.data)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XgyP(YKHO):\n return YKHO._annotations", "def XgyP(YKHO):\n return YKHO._annotations", "def XgyP(YKHO) -> qe4Y.Output[GySg[str, ImMB]]:\n return qe4Y.get(YKHO, 'annotations')", "def XgyP(YKHO) -> GySg[str, str]:\n return qe4Y.get(YKHO, 'annotations')", "def XgyP(YKHO) -> GySg[str, str]:\n ...
[ "0.82852864", "0.82130015", "0.7955252", "0.7897015", "0.7897015", "0.7691412", "0.74950594", "0.7343457", "0.7343457", "0.7288582", "0.7096112", "0.7033083", "0.6869257", "0.67692256", "0.66795343", "0.66695225", "0.6660288", "0.6541105", "0.6517347", "0.6506238", "0.6480126...
0.73477864
7
Checks if the given image is of supported type.
def ENiv(Ux0P: str) -> bool: r4tT = ('png', 'jpg', 'jpeg') return Ux0P not in (None, '') and oIn5(Ux0P) in r4tT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TSw_(Ux0P):\n try:\n Xn71 = hnIv.read(Ux0P)\n except IYeI:\n return False\n else:\n return Xn71.original_format in [b'JPEG', b'PNG', b'GIF']", "def Xd6m(YKHO):\n _bVD = {}\n _bVD['RECORD_TYPE'] = ('FIXED_LENGTH',)\n _bVD['SAMPLE_BITS'] = (8, 16)\n _bVD['SAMPLE_TYPE']...
[ "0.7959575", "0.77283853", "0.7631249", "0.71965295", "0.7109659", "0.7044094", "0.6983421", "0.6947739", "0.6901157", "0.68962884", "0.6860417", "0.6825139", "0.6693099", "0.6690817", "0.6669964", "0.65231454", "0.6522318", "0.6504293", "0.6495985", "0.64689946", "0.6465042"...
0.77737397
1
Wraps hidden states in new Tensors, to detach them from their history.
def IOWm(MKlR): if isinstance(MKlR, ht2j.Tensor): return MKlR.detach() else: return tuple((IOWm(Ty9i) for Ty9i in MKlR))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xFx6(Zode: Any) -> ImMB:\n return JkHx(Zode, llWB.detach)", "def It5M(YKHO, Zode, qxoj):\n if YKHO.rnn_type in ['lstm', 'mylstm']:\n MKlR = iQnE(Zode[0].data)\n Z9rn = iQnE(Zode[1].data)\n Zode = (MKlR, Z9rn)\n for Fg_i, I1mm in enumerate(qxoj):\n if I1mm.data[0] ...
[ "0.6897401", "0.656451", "0.644081", "0.6318728", "0.6296365", "0.6182935", "0.61435914", "0.6126952", "0.6126952", "0.61207926", "0.6028801", "0.60258055", "0.60202205", "0.59870327", "0.5969085", "0.5969085", "0.59322524", "0.59322524", "0.5919225", "0.5889256", "0.58735996...
0.5654297
27
Returns the instance of the PersistenceManager
def iSDi(): if CqrC._instance is None: CqrC._instance = CqrC() return CqrC._instance
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xP7V(YKHO):\n if not hasattr(YKHO, '_instance'):\n YKHO._instance = CqrC()\n return YKHO._instance", "def HDdB(YKHO):\n return YKHO._manager", "def DjJx(YKHO):\n return YKHO.manager", "def PX4_(YKHO):\n return YKHO.persistence", "def bfMs():\n return J33P", "def Sk6B(YKHO):\n...
[ "0.8831981", "0.70946217", "0.70936316", "0.70914304", "0.6594804", "0.65939456", "0.6508369", "0.6459507", "0.64588106", "0.6402856", "0.6056207", "0.60556406", "0.6042333", "0.6017835", "0.60154915", "0.5996921", "0.59719694", "0.59528816", "0.59403986", "0.58729494", "0.58...
0.9267288
0
This method sets the activation functions.
def a8Qr(YKHO, NKcE, wEsz=None, zvlJ=None, MT8u=None, blnl=None): NKcE = NKcE.lower() if NKcE == 'logistic': YKHO.sig = lambda epBp: dqdL(1 / (1 + oyIN.exp(-epBp))) YKHO.d_sig = lambda epBp: dqdL(oyIN.multiply(YKHO.sig(epBp), 1 - YKHO.sig(epBp))) YKHO.sig_0 = YKHO.sig YKHO.d_sig_...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aPri(YKHO):\n if YKHO._outputActivationFunctions == None or YKHO._outputActivationDerivatives == None:\n YKHO._outputActivationFunctions = []\n YKHO._outputActivationDerivatives = []\n UWJ3 = lambda WKvO: WKvO\n MDNf = lambda WKvO: 1.0\n for YRbF in range(YKHO.nOutputs):\n...
[ "0.7149997", "0.6836559", "0.67072904", "0.66936004", "0.65057546", "0.62645847", "0.62319726", "0.61494285", "0.61046493", "0.6033056", "0.59909195", "0.59692806", "0.59556955", "0.5932327", "0.5928175", "0.59252304", "0.5907595", "0.59056467", "0.5880977", "0.58801496", "0....
0.64503163
5
Set weights of the classifier.
def sNuA(YKHO, LEyJ): YKHO.wts = LEyJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sNuA(YKHO, _mSQ):\n YKHO.weights = _mSQ", "def pOke(YKHO, yzQ0):\n raise NotImplementedError", "def sNuA(YKHO, _mSQ):\n YKHO._weights = _mSQ\n YKHO.normalize_weights()", "def sNuA(YKHO, _mSQ):\n YKHO.model.set_weights(_mSQ)", "def pOke(YKHO, _mSQ):\n YKHO._call_java('setWeights', _mSQ...
[ "0.8336834", "0.81745493", "0.8036256", "0.79957646", "0.79326403", "0.78144443", "0.77861327", "0.7707767", "0.7583068", "0.74949944", "0.74890727", "0.74890727", "0.74572176", "0.74309945", "0.73803174", "0.7362213", "0.7277161", "0.7219205", "0.721557", "0.71476513", "0.71...
0.7036269
24
Removes probabilities of the transition to the same state
def jvlo(YKHO): YKHO.transition_matrix = YKHO.markovModel._get_transmat()[:] for YRbF in range(len(YKHO.transition_matrix)): d6pt = oyIN.argmax(YKHO.transition_matrix[YRbF, :]) if d6pt == YRbF: YKHO.transition_matrix[YRbF, d6pt] = 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _J5N(QTBn: PushState) -> b3TU:\n if QTBn and (not QTBn[-1]):\n return qdv2.prune_states(QTBn[:-1])\n else:\n return QTBn", "def GIlo(YKHO):\n UlCL = YKHO.transition_map[YKHO.current_state]\n YKHO.current_state = RZ5a(tuKI(), UlCL)", "def BAML(YKHO):\n YKHO.visitedStates.clear()...
[ "0.6404007", "0.619103", "0.6151447", "0.61319476", "0.60930943", "0.6027078", "0.6027078", "0.6027078", "0.6027078", "0.6027078", "0.6027078", "0.6027078", "0.6027078", "0.6027078", "0.6027078", "0.6027078", "0.60149777", "0.598207", "0.58333635", "0.5816282", "0.5785089", ...
0.5308184
81
Integration test with a default neo4j instance. Should be executed by Travis after setting up neo4j in docker.
def as4H(YKHO): UTX6 = Hy7s.environ.get('NEO4J_ADDRESS', 'bolt://localhost:7687') CBIr = Hy7s.environ.get('NEO4J_USERNAME', 'neo4j') zOso = Hy7s.environ.get('NEO4J_PASSWORD', 'neo42j') hFJD = 'scientio/examples/example_ontology.yaml' z1Rg = ZJcB(path_to_yaml=str(hFJD)) KCHu = DMju(ontology=z1Rg,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wz9N():\n from cwf2neo.neo4j import Neo4j\n NCls = Neo4j()\n assert NCls.graph.database.name", "def nWCp():\n try:\n P4t4.neo4j_driver = C5Vr.driver(P4t4.config['NEO4J_URI'], auth=(P4t4.config['NEO4J_USER'], P4t4.config['NEO4J_PWD']))\n except yHM3:\n P4t4.neo4j_driver = None\n ...
[ "0.6870226", "0.6318031", "0.60555273", "0.59611243", "0.5933263", "0.59210235", "0.58759856", "0.583238", "0.5797669", "0.5789919", "0.5756901", "0.57314175", "0.57208085", "0.5701184", "0.56891775", "0.56769663", "0.5672596", "0.56328666", "0.56218374", "0.56114644", "0.560...
0.6991862
0
A bullet fired at asteroids by the player's ship
def FIMM(YKHO, dQgj, XSoh): super().__init__() YKHO.position = list(dQgj) YKHO.images = [a9eO.image.load('images/bullets/0.png').convert_alpha(), a9eO.image.load('images/bullets/1.png').convert_alpha(), a9eO.image.load('images/bullets/2.png').convert_alpha()] YKHO.image_counter = 0 YKHO.image = YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hy9P(tJm0, Vjhr, C7MP, WFC2):\n jbub = GBVa(tJm0, Vjhr, C7MP)\n WFC2.add(jbub)", "def Hy9P(IPsP, Vjhr, C7MP, WFC2):\n if len(WFC2) < IPsP.bullets_allowed:\n jbub = GBVa(IPsP, Vjhr, C7MP)\n WFC2.add(jbub)", "def Hy9P(gCuF, Vjhr, C7MP, WFC2):\n if len(WFC2) < gCuF.bullets_allowed:\n...
[ "0.7970675", "0.7635095", "0.75735414", "0.7546383", "0.7519869", "0.7512564", "0.72985286", "0.7175615", "0.7158266", "0.7126401", "0.7082839", "0.7053322", "0.6837131", "0.68251425", "0.6814673", "0.6807269", "0.67777765", "0.67516774", "0.67516774", "0.6721613", "0.6702805...
0.0
-1
Initialize a bullet in the correct place and direction
def ZSQN(YKHO): if YKHO.direction == 'left': YKHO.__temp_bullet = GBVa(YKHO.position, 60) elif YKHO.direction == 'forward': YKHO.__temp_bullet = GBVa(YKHO.position, 90) else: YKHO.__temp_bullet = GBVa(YKHO.position, 120) global game BH3N.sprites.add(YKHO.__temp_bullet) BH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, BAMb, uznx, pKPE, GGUR):\n super().__init__()\n YKHO.image = a9eO.Surface([4, 10])\n YKHO.image.fill(XDQs)\n YKHO.rect = YKHO.image.get_rect()\n YKHO.rect.x = BAMb\n YKHO.rect.y = uznx\n YKHO.floating_point_x = BAMb\n YKHO.floating_point_y = uznx\n H0sX = pKPE - BAMb\n ...
[ "0.7660517", "0.7281839", "0.7259123", "0.7196976", "0.70620996", "0.6956014", "0.6912989", "0.68725806", "0.6837206", "0.6831253", "0.67853045", "0.67775095", "0.6743614", "0.67379355", "0.6696253", "0.6695931", "0.66193455", "0.6586116", "0.652206", "0.6477041", "0.6439046"...
0.64504766
20
Returns the Todo collection from the database name
def xUwc(Emd4, NCls): return NCls[Emd4._collection_name]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dVja(NCls, mWFP):\n if NCls.hasCollection(mWFP) is False:\n return NCls.createCollection(name=mWFP)\n return NCls[mWFP]", "def dVja(YKHO, wnys, Rr59):\n return YKHO._client[wnys][Rr59]", "def g8zZ(YKHO):\n NCls = YKHO._get_db()\n return getattr(NCls, Miap.MONGODB_COLLECTION)", "def ...
[ "0.75178367", "0.7019389", "0.6961613", "0.6945066", "0.69228756", "0.68842953", "0.68054384", "0.6777322", "0.6762051", "0.6751696", "0.6725501", "0.6637227", "0.6562498", "0.63872415", "0.6258051", "0.6248418", "0.6171125", "0.61325145", "0.6119849", "0.6117652", "0.6077261...
0.749158
1
Returns all Todos from database
def d6pt(Emd4, NCls): return (gx9E(**A97Q) for A97Q in Emd4.collection(NCls).find())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u_Nx(YKHO):\n return cV6I(YKHO)", "def RrtN():\n with Pe9W.connect('todos.db') as hAVj:\n N1p7 = hAVj.cursor()\n N1p7.execute('SELECT * from todos')\n u_Nx = N1p7.fetchall()\n N1p7.close()\n return (pz3A(u_Nx), 200)", "def u_Nx(YKHO):\n UxKt = cuiw.query(Qvel).all()\...
[ "0.72763526", "0.69864017", "0.6939543", "0.68065625", "0.6759967", "0.65298516", "0.63737416", "0.6324294", "0.6228168", "0.6147736", "0.61296636", "0.6114062", "0.6081039", "0.59922886", "0.59572005", "0.5927529", "0.5897877", "0.58868027", "0.5858164", "0.5852649", "0.5760...
0.63684165
7
This is used to compare 2 objects
def xa14(YKHO, Elif): return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qk7K(pcdu, cJB0):\n return ZsIw(pcdu) == ZsIw(cJB0)", "def eHkp(YKHO, F5TF, BPWI):\n return eHkp(YKHO.get_raw_value(F5TF), YKHO.get_raw_value(BPWI))", "def t87K() -> None:\n YEnM = yhi1()\n RL4V = yhi1()\n assert YEnM != RL4V\n YEnM._id = RL4V.id\n assert YEnM == RL4V", "def xa14(YKH...
[ "0.768704", "0.75287986", "0.7502687", "0.74012315", "0.73266083", "0.7315071", "0.730467", "0.72950774", "0.72916", "0.7233773", "0.7187291", "0.71354896", "0.71354896", "0.7133146", "0.71203434", "0.7096868", "0.7096868", "0.7077981", "0.7014047", "0.7014047", "0.7014047", ...
0.733177
33
Write image (numpy array) to filename
def u4eU(Xn71, Ux0P, **B2fa): U5bT = jbYn.imwrite(Ux0P, Xn71, **B2fa) if U5bT is False: print('Warning: image failed to write to filename') print('Image =', Xn71) print('Filename =', Ux0P) return U5bT
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NhPs(LNo8, pmON):\n if LNo8.ndim == 3 and LNo8.shape[2] == 1:\n LNo8 = oyIN.array(LNo8, copy=True)\n LNo8.shape = LNo8.shape[0:2]\n Zm68 = ((LNo8 + 1.0) * 127.5).astype(oyIN.uint8)\n VXjJ = hnIv.fromarray(Zm68)\n VXjJ.save(pmON)", "def t7Mi(LNo8, gIsw):\n xDSY.imsave(gIsw, LNo8)"...
[ "0.77573204", "0.7610638", "0.7599373", "0.7531891", "0.75274044", "0.72986335", "0.7259946", "0.7180678", "0.71756893", "0.71720535", "0.71709555", "0.71597785", "0.7157825", "0.7141185", "0.7140283", "0.7125746", "0.71178085", "0.7110519", "0.70775425", "0.7075237", "0.7014...
0.72239596
7
Symmetric key used to produce signed cookies. If deploying on multiple replicas, this should be set to the same value across all replicas to ensure they all share the same secret.
def LmzA() -> str: return FXSn.token_hex()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pPnj():\n return jbpC.generate_key()", "def N8q7(YKHO):\n return YKHO._get_shared_secret(YKHO.public_key)", "def QDug(YKHO):\n return YKHO._secret_key", "def e9r0(YKHO):\n return YKHO.__shared_secret", "def PFib():\n return Hy7s.urandom(32)", "def QDug(YKHO):\n return None", "def ...
[ "0.6843532", "0.66070616", "0.6488235", "0.64860755", "0.64590937", "0.6387863", "0.63022816", "0.6287843", "0.6275759", "0.6197298", "0.61395967", "0.61033815", "0.6074002", "0.603065", "0.6004424", "0.59876615", "0.59875613", "0.59667724", "0.5964372", "0.5942358", "0.59301...
0.6436826
5
update the bullet(per frame)
def QdZT(YKHO, BH3N): YKHO.moving = YKHO.moving + BH3N.deltaT if YKHO.moving <= YKHO.attack_range * 1000.0: YKHO.x_real += -(YKHO.x_movement * BH3N.deltaT / 1000.0) YKHO.y_real += -(YKHO.y_movement * BH3N.deltaT / 1000.0) YKHO.rect.move_ip(int(YKHO.x_real) - YKHO.x, int(YKHO.y_real) - YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO):\n YKHO.y -= YKHO.speed_factor\n YKHO.rect.y = YKHO.y", "def hZuk(YKHO):\n YKHO.bullets.update()\n for YBnT in YKHO.bullets.copy():\n if YBnT.rect.left >= YKHO.screen_width:\n YKHO.bullets.remove(YBnT)\n YKHO._check_bullet_collisions()", "def QdZT(YKHO):\n YKH...
[ "0.785518", "0.77965", "0.7735301", "0.7699103", "0.7499398", "0.7491995", "0.74260056", "0.73959744", "0.73681337", "0.73681337", "0.7340684", "0.72539043", "0.7239085", "0.71356463", "0.7132375", "0.7132375", "0.7132375", "0.7108712", "0.71061456", "0.71061456", "0.7082746"...
0.0
-1
Return the score of the last game.
def fsbt(cCrA): return cCrA[-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hckV(YKHO):\n return oyIN.max(YKHO._scores) if YKHO._scores is not None else YKHO._score_history[-1]", "def G6L_(YKHO):\n if not YKHO.child_history:\n return None\n return YKHO.score_for_attempt(-1)", "def G6L_(YKHO):\n if not YKHO.child_history:\n return None\n return YKHO.chi...
[ "0.79713035", "0.77741975", "0.77566767", "0.72432387", "0.7235617", "0.71855366", "0.7176506", "0.71573997", "0.71300536", "0.7090592", "0.7090592", "0.7090592", "0.70904565", "0.7077915", "0.70046514", "0.70046514", "0.70046514", "0.69844407", "0.6983077", "0.69551617", "0....
0.6763456
38
Add new vocaburary of list of word
def hPvf(YKHO, V22M): for GIN8 in V22M: GIN8 = GIN8.strip() if GIN8: YKHO.add_vocab_word(GIN8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h9DM(YKHO, GIN8):\n if GIN8 in Nd03:\n return\n for hcXw in GIN8:\n if Neoe.is_none_char(hcXw):\n return\n if not GIN8 in YKHO.words_ext and (not GIN8 in YKHO.words_new):\n YKHO.words_new.append(GIN8)", "def jnwn(YKHO, Mbk4):\n with open(Mbk4, 'r') as AsxV:\n ...
[ "0.7100722", "0.7011703", "0.6828554", "0.67654085", "0.66928184", "0.6681542", "0.6639657", "0.6639657", "0.6560879", "0.65191865", "0.65015227", "0.6491513", "0.6454286", "0.64350694", "0.64322484", "0.6412685", "0.6384731", "0.63524365", "0.63103646", "0.62997055", "0.6273...
0.75470304
0
Add new vocaburary of single word. If the word contains nonecharctor code it won't be added.
def h9DM(YKHO, GIN8): if GIN8 in Nd03: return for hcXw in GIN8: if Neoe.is_none_char(hcXw): return if not GIN8 in YKHO.words_ext and (not GIN8 in YKHO.words_new): YKHO.words_new.append(GIN8)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e0k0(YKHO, GIN8):\n if GIN8:\n YKHO.word_dict[len(GIN8)].append(GIN8)", "def NrOU(YKHO, GIN8):\n GIN8 = GIN8.strip().lower()\n if GIN8 in YKHO.builtin_words:\n return\n if GIN8 not in YKHO.word_count:\n YKHO.word_count[GIN8] = 1\n else:\n YKHO.word_count[GIN8] += 1"...
[ "0.7187799", "0.7125923", "0.7117727", "0.70981", "0.70694226", "0.70515966", "0.70297855", "0.7028809", "0.69383836", "0.68906635", "0.6798285", "0.67736614", "0.67667323", "0.67629194", "0.67540944", "0.6750989", "0.6707737", "0.6701871", "0.6694156", "0.66806084", "0.66607...
0.8439421
0
Pad given arrays to make a matrix.
def gc7n(fUYa, u54L=None, dvgN=0): return nahp(u54L, dvgN).apply(fUYa)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVLt(YKHO, INK1, KHPh):\n N8OZ = [r8hN.shape for r8hN in INK1]\n E3D9, ywwl = (sum([KCHu[0] for KCHu in N8OZ]), sum([KCHu[1] for KCHu in N8OZ]))\n VNqG = ht2j.FloatTensor(oyIN.zeros((E3D9, ywwl))).to(begE)\n p3At = KHPh + VNqG\n YRbF, r845 = (0, 0)\n for G1Hx, SppC in enumerate(INK1):\n ...
[ "0.74011046", "0.69070196", "0.6891135", "0.63259584", "0.6299927", "0.62858576", "0.6252854", "0.6237991", "0.61054367", "0.6063243", "0.60472333", "0.6041576", "0.6038859", "0.6027965", "0.5972429", "0.59311354", "0.5871436", "0.58661133", "0.5832211", "0.58308405", "0.5828...
0.5375745
70
Transform a paper dictionary to its string representation, following the ArnetMiner V8 format.
def Klyk(rt_r): UY6f = '' if 'title' in rt_r: UY6f += '#*' + rt_r['title'] + '\n' if 'authors' in rt_r: UY6f += '#@' + ', '.join(rt_r['authors']) + '\n' if 'year' in rt_r: UY6f += '#t' + str(rt_r['year']) + '\n' if 'venue' in rt_r: UY6f += '#c' + rt_r['venue'] + '\n' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kjxD(Csk6):\n yxzR = xDSY.StringIO()\n KFPx(Csk6, output=yxzR)\n return yxzR.getvalue()", "def O_Cu(YKHO, cmPJ):\n aevO = ''\n for YRbF in range(len(cmPJ)):\n aevO = aevO + cmPJ[YRbF]\n return aevO", "def Rekt(YKHO) -> str:\n kcsq = []\n for H5ew, BWXx in YKHO.__dict__.items(...
[ "0.5836646", "0.5793684", "0.572276", "0.5594937", "0.55521554", "0.55323184", "0.5516697", "0.5492731", "0.5472213", "0.54526013", "0.54526013", "0.54512227", "0.54493475", "0.54230607", "0.54210913", "0.53997415", "0.5375539", "0.5375539", "0.5375539", "0.5375539", "0.53755...
0.71196246
0
A class based view for home page.
def Ivo5(QePW): return _1tc(QePW, 'calls/dial_screen.html', {})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n return TvZl('home_page.html')", "def kZiy(QePW):\n return _1tc(QePW, 'compta/home.html')", "def kZiy():\n return TvZl('index.html', title='Home Page', year=qcWV.now().year)", "def kZiy():\n return TvZl('home.html', title='Home Page', year=qcWV.now().year)", "def kZiy():\n retur...
[ "0.7957105", "0.79327995", "0.79057616", "0.7861989", "0.78191036", "0.77962", "0.77875817", "0.77696264", "0.7765028", "0.77555066", "0.7748772", "0.7746853", "0.7746853", "0.7746853", "0.7746853", "0.7746853", "0.7746853", "0.7746853", "0.7746853", "0.7746853", "0.7746853",...
0.0
-1
Returns a Twilio Client token. Create a TwilioCapability object with our Twilio API credentials.
def gNTt(QePW): vFzy = LaAO(gCuF.TWILIO_ACCOUNT_SID, gCuF.TWILIO_AUTH_TOKEN) 'Allow our users to make outgoing calls with Twilio Client' vFzy.allow_client_outgoing(gCuF.TWIML_APPLICATION_SID) 'Allow our users to accept incoming calls from pyphon' vFzy.allow_client_incoming('caller') 'Generate th...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gNTt(QePW):\n vFzy = GKCF(gCuF.TWILIO_ACCOUNT_SID, gCuF.TWILIO_AUTH_TOKEN)\n vFzy.allow_client_outgoing(gCuF.TWILIO_ACCOUNT_SID)\n vFzy.allow_client_incoming('support_agent')\n eOtH = vFzy.to_jwt()\n return jnRN({'token': eOtH.decode('utf-8')})", "def cGrn(YKHO, QePW, QpfX):\n QpfX.set_code...
[ "0.7517461", "0.55318433", "0.5446775", "0.5343524", "0.53153723", "0.5191174", "0.51755804", "0.51548344", "0.5122021", "0.5122021", "0.5090577", "0.5080828", "0.5076209", "0.5074888", "0.5074888", "0.5055256", "0.50080496", "0.5006763", "0.49628928", "0.49568442", "0.495156...
0.7282685
1
Density parameter of ultrarelativistic species at a given redshift.
def s_gW(YKHO, epBp): FrYA = 15.0 / oyIN.pi ** 4.0 vuvg = YKHO.FermiDirac_integral(0.0) RD5O = YKHO.Gamma_nu_inst ** 4 L6Uy = FrYA * RD5O * YKHO.Omega_gamma * vuvg * (1 + epBp) ** 4 * (YKHO.H0 / YKHO.H(epBp)) ** 2 * YKHO.massless_nu return L6Uy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pKNL(MKlR, NDLm, _plO):\n A3Vt = oyIN.sqrt(NDLm ** 2 + MKlR ** 2)\n Mkmy = A3Vt / _plO\n jzdc = 77.1\n Fg_i = 31.4\n Z9rn = 0.954\n Csk6 = 8.3\n tTpl = 0.55\n eHNT = 4.63\n return (jzdc * Mkmy ** (-Fg_i) + Z9rn * Mkmy ** (-Csk6) + tTpl * Mkmy ** (-eHNT)) * 10 ** 8", "def InLe(WKvO,...
[ "0.62256503", "0.61620927", "0.5873424", "0.5868262", "0.5865576", "0.5852844", "0.5823442", "0.57586694", "0.57586694", "0.57177067", "0.570516", "0.5657935", "0.563403", "0.5631013", "0.5631013", "0.5631013", "0.56187314", "0.5606973", "0.5598327", "0.5598045", "0.5580763",...
0.0
-1
Photon density parameter at a given redshift.
def xYw8(YKHO, epBp): return YKHO.Omega_gamma * (1.0 + epBp) ** 4.0 * (YKHO.H0 / YKHO.H(epBp)) ** 2.0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SwVM(gZ09, r1VO):\n lWPh = (gZ09 + 1.0) / (4.0 / 3 * oyIN.pi * pow(r1VO, 3))\n return lWPh", "def Mncx(Mkmy):\n return oyIN.exp(dnoB(Mkmy))", "def Stgl(XP5J: tf.Tensor, Mkmy: tf.Tensor, a1PO: tf.Tensor) -> ZylS.Tensor:\n return XP5J / Mkmy / a1PO", "def InLe(ycBG, By5j):\n FxxR = mV9l(0, 1...
[ "0.57514596", "0.56553835", "0.5647372", "0.5645357", "0.562136", "0.56183624", "0.56013864", "0.55564827", "0.5485939", "0.5448282", "0.5427796", "0.5409707", "0.54076976", "0.5388588", "0.53784984", "0.536299", "0.534592", "0.53130656", "0.53130656", "0.53130656", "0.530578...
0.0
-1
Radiation (photons and ultrarelativistic species) density parameter at a given redshift.
def yy8T(YKHO, epBp): return YKHO.Omega_gamma_z(epBp) + YKHO.Omega_ur_z(epBp)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def InLe(A3Vt, an6U, MRrp, Bp6J, dYCZ):\n WKvO = A3Vt / an6U\n sKpO = (dYCZ - Bp6J) / 2\n return MRrp / (WKvO ** Bp6J * (1 + WKvO ** 2) ** sKpO)", "def pKNL(MKlR, NDLm, _plO):\n A3Vt = oyIN.sqrt(NDLm ** 2 + MKlR ** 2)\n Mkmy = A3Vt / _plO\n jzdc = 77.1\n Fg_i = 31.4\n Z9rn = 0.954\n Cs...
[ "0.6126698", "0.60065585", "0.5798869", "0.5796106", "0.5755804", "0.56965536", "0.5674885", "0.56346494", "0.5633367", "0.55818737", "0.5579029", "0.5572337", "0.55625594", "0.5537787", "0.5496676", "0.5479252", "0.5475977", "0.54667497", "0.5458098", "0.5457645", "0.5457493...
0.0
-1
Dark energy density evolution as function of redshift.
def RcjA(YKHO, epBp): return (1.0 + epBp) ** (3.0 * (1.0 + YKHO.w0 + YKHO.wa)) * oyIN.exp(-3.0 * YKHO.wa * (epBp / (1.0 + epBp)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ARgv(WhQ6, oVJE, miE1):\n global r, c, h\n return float('%.2E' % ZjSO(str(Mkmy * (WhQ6 ** 2 / oVJE ** 2 - WhQ6 ** 2 / miE1 ** 2))))", "def LhG6(lfmz, tRQc):\n return sXuj(lfmz, tRQc, w4h8[0], w4h8[1], w4h8[2])", "def hmRs(AU9z, MRrp, YFZq, OwND, WCCm, JRYC, Jqps, sEAN):\n a1PO = 0.0\n print(...
[ "0.604257", "0.60318714", "0.60257363", "0.60132575", "0.60025567", "0.6002432", "0.5927095", "0.5845874", "0.58156395", "0.5813257", "0.577581", "0.5761021", "0.57592326", "0.57536393", "0.5708376", "0.56448245", "0.56020665", "0.5592319", "0.5573531", "0.5559011", "0.555248...
0.0
-1
Thermal velocity in km/s of each neutrino species at a given redshift.
def Rfdz(YKHO, epBp): rZpw = 5.0 / 3.0 * 5.0 * KG9w.zeta(5.0) / KG9w.zeta(3.0) y917 = oyIN.zeros(YKHO.N_nu) y917 = rZpw ** 0.5 * (PtXs.kB * YKHO.T_nu / YKHO.M_nu) * (1.0 + epBp) * PtXs.c return y917
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Penn(WJkG, ovGo, bMbF):\n return oyIN.sqrt(2 * abs(WJkG) * ovGo / bMbF)", "def p8Jz(YKHO, ABDL='cell'):\n PTpl = []\n iaSE = YKHO.last_sim_step_volume()\n if ABDL == 'cell':\n qjHC = iaSE[0]\n Z47_ = YKHO.flows[0]\n if qjHC == 0:\n PTpl.append(0)\n else:\n ...
[ "0.63195765", "0.6299258", "0.61607003", "0.60907865", "0.60434467", "0.5991612", "0.59753996", "0.5974196", "0.5960642", "0.5942102", "0.5926313", "0.5916545", "0.5840134", "0.58151364", "0.5805877", "0.57542396", "0.57530046", "0.5742614", "0.5738102", "0.57253337", "0.5710...
0.64933246
0
Mass variance in spheres as a function of mass.
def QFyK(YKHO, dLhF, G1Hx=[], _sei=[], SRYB='cb', KnxT='th', **B2fa): return YKHO.mass_variance_multipoles(logM=dLhF, k=G1Hx, pk=_sei, var=SRYB, window=KnxT, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bMbF(YKHO):\n return YKHO.volume * YKHO.density", "def f_4S(YKHO):\n return YKHO.params['particleMass']", "def I8JS(YKHO):\n return 1 / YKHO.count() * sum(((FGW3 - YKHO.average()) ** 2 for FGW3 in YKHO.numbers))", "def nu1Q(KAtR, FvHQ):\n sSk1 = FvHQ['individuals']['standard_volume']\n if ...
[ "0.7020908", "0.6720049", "0.6626578", "0.65401584", "0.6525435", "0.6516823", "0.63889617", "0.6373961", "0.6329182", "0.6318994", "0.63164437", "0.6301457", "0.6293322", "0.627911", "0.62584674", "0.62497646", "0.62430245", "0.6211593", "0.6201464", "0.61729527", "0.6162649...
0.6821766
1
It returns the nowiggle linear power spectrum in the Eisenstein & Hu approximation.
def tF9A(YKHO, epBp=0.0, G1Hx=oyIN.logspace(-4.0, 2.0, 1001), cNpl=0.83): rcSE = YKHO.omega_cdm + YKHO.omega_b EPBR = YKHO.omega_b PCpl = YKHO.ns MKlR = YKHO.h q7In = YKHO.T_cmb / 2.7 if YKHO.Omega_K != 0.0: rcSE -= YKHO.Omega_K gNxB = G1Hx * MKlR KCHu = 44.5 * oyIN.log(9.83 / rc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MBld(YKHO):\n YKHO.strehl = oyIN.exp(-1 * (2 * oyIN.pi / YKHO.science_wavelength * YKHO.high_order_wfe) ** 2)", "def M16D(YKHO, VYvU):\n return YKHO.pref * VYvU ** 2 * YKHO.occupation_number(VYvU / YKHO.kT)", "def ndZ8(input, Lgxx):\n Aofo = MRlR(input, Lgxx)\n Aofo = oyIN.power(oyIN.absolute(A...
[ "0.6442251", "0.63549614", "0.61639607", "0.6117033", "0.6110234", "0.6087136", "0.60539514", "0.60324204", "0.5990941", "0.59798294", "0.5951483", "0.5948886", "0.59340197", "0.5920154", "0.59193414", "0.5890483", "0.58862925", "0.5877945", "0.5871378", "0.58371544", "0.5816...
0.0
-1
Get path where trader is running in.
def fdQj(D1P9: str): sWmO = GkAb.cwd() FHki = sWmO.joinpath(D1P9) if FHki.exists(): return (sWmO, FHki) H7E4 = GkAb.home() FHki = H7E4.joinpath(D1P9) if not FHki.exists(): FHki.mkdir() return (H7E4, FHki)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OyQC() -> str:\n return Hy7s.path.dirname(Hy7s.path.realpath(xAKo))", "def GFRE(YKHO):\n GFrS = GkAb('espn/trades')\n if not GFrS.exists() or not GFrS.is_dir():\n S0MI.info('directory for trades does not exist, creating it now')\n GFrS.mkdir()\n return GFrS / f'trades-{YKHO.league_i...
[ "0.74595207", "0.71973884", "0.7193988", "0.71872944", "0.69951946", "0.6970462", "0.6934165", "0.6924591", "0.69177747", "0.69177747", "0.6914863", "0.6837173", "0.68297523", "0.680496", "0.6730785", "0.67026556", "0.6699885", "0.66974795", "0.66706717", "0.66706717", "0.666...
0.0
-1
Save data into json file in temp path.
def Khmu(Ux0P: str, nPrm: dict): VqRE = MTmQ.joinpath(Ux0P) with open(VqRE, mode='w+') as eHNT: qQXR.dump(nPrm, eHNT, indent=4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nVOF(YKHO, Ux0P, nPrm):\n GSwS = Hy7s.path.join(YKHO._tempdir, Ux0P)\n with open(GSwS, 'w') as JyrN:\n qQXR.dump(nPrm, JyrN)\n return GSwS", "def U1ai():\n with open(Hy7s.path.join(sWmO, 'data.json'), 'w') as eHNT:\n qQXR.dump(nPrm, eHNT)", "def U1ai(YKHO, nPrm, RsFk=None):\n i...
[ "0.7984496", "0.78909826", "0.7799274", "0.77699864", "0.7734938", "0.7716659", "0.7681191", "0.75846934", "0.7529496", "0.7481133", "0.7467559", "0.7459418", "0.74591017", "0.73854935", "0.7375848", "0.7343941", "0.73193693", "0.72733265", "0.7148962", "0.71251637", "0.71242...
0.7334746
16
Predict a label for each example in x. Find the get the cluster assignment for each x, then use self.cluster_label_map to map to the corresponding digit.
def Fv9G(YKHO, WKvO): OIiH = YKHO.get_posterior(WKvO) Qi_3 = oyIN.argmax(OIiH, axis=1) uN02 = [YKHO.cluster_label_map[or8S] for or8S in Qi_3] return oyIN.array(uN02)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YEmv(YKHO, WKvO):\n S7xM = oyIN.zeros((WKvO.shape[0], 10))\n ywwl = len(YKHO.NET)\n for YRbF in range(ywwl):\n g4y1 = YKHO.apply_dct_permutation(WKvO.copy(), YKHO.permutation[YRbF])\n S7xM += YKHO.NET[YRbF].model.predict(g4y1)\n return S7xM", "def LEI_(YKHO, EcVT):\n N6Z1 = oyIN....
[ "0.75602126", "0.74025404", "0.7111853", "0.70548564", "0.7051129", "0.7027832", "0.7020951", "0.69805986", "0.69508827", "0.68679196", "0.6822792", "0.67326117", "0.6685441", "0.66654724", "0.6665243", "0.66498363", "0.6642688", "0.66195977", "0.6619266", "0.66072106", "0.66...
0.7022593
6
Return the first_name plus the last_name, with a space in between.
def xpqj(YKHO): eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name) return eHMM.strip()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f", "def eHMM(c9ua, zp3f):\n return c9ua + ' ' + zp3f", "def kaIN(c9ua, zp3f):\n eHMM = c9ua + '' + zp3f\n return eHMM.title()", "def xpqj(YKHO):\n return YKHO.first_name + ' ' + YKHO.last_name", "def xpqj(YKHO):\n return YKHO.first_name + ' ...
[ "0.8342851", "0.82280374", "0.81001484", "0.8068425", "0.80536336", "0.80451626", "0.7994962", "0.79940844", "0.79940844", "0.79940844", "0.7979702", "0.7963534", "0.7957951", "0.79411453", "0.79378146", "0.79343975", "0.7917004", "0.7902344", "0.78937757", "0.7870946", "0.78...
0.78360254
25
Reply to a Tweet using either it's ID or it's link.
async def reply_tweet(Amyp: str, HpBT: str=_aLO(None, alias='link of tweet', regex='https://twitter.com/([\\w_]+)/status/([\\d]+)'), mJH4: int=_aLO(None, alias='id of tweet'), CBIr: User=JHvC(W84Y), cuiw: Session=JHvC(GGod)) -> X4uq: if not CBIr.active: raise pgG1(401, detail='Your account seems to be inact...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cljD():\n print('retrieving and replying to tweets...')\n zgub = nNXP.mentions_timeline()\n eCyY = ' yo yo yo yo'\n for P3DA in reversed(zgub):\n if 'rap for me' in P3DA.text.lower():\n print('received a request')\n print('dropping a new single...')\n if P3DA...
[ "0.67275465", "0.6495334", "0.6470644", "0.62004757", "0.61928546", "0.61790854", "0.6174662", "0.61714834", "0.6132037", "0.612587", "0.6120367", "0.6113957", "0.5969409", "0.5957614", "0.59038496", "0.5896435", "0.5894628", "0.58797956", "0.5860841", "0.5847755", "0.5806339...
0.70360327
0
Unstack input tensor along 0th dimension
def F6vE(x0Ih): for H5ew in x0Ih.keys(): if H5ew == 'gt_boxes': x0Ih['gt_boxes'] = x0Ih['gt_boxes'][0] pnyJ = {H5ew: ZylS.unstack(vhpA) for H5ew, vhpA in x0Ih.items()} IQRT = pnyJ['num_gt_boxes'] Ai8p = {} for H5ew in pnyJ: if H5ew == 'num_gt_boxes': continue ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def faIA():\n WKvO = oyIN.arange(1, 25).reshape((4, 2, 3)).astype(oyIN.float32)\n jDK_ = -1\n k3l6 = CbyH.to_tensor(WKvO)\n uED7 = CbyH.unstack(k3l6, axis=jDK_)\n u54L = len(uED7)\n for YRbF in range(u54L):\n zVBB = WKvO[:, :, YRbF]\n eQHC.assert_allclose(uED7[YRbF].numpy(), zVBB)",...
[ "0.74479556", "0.7431098", "0.7425012", "0.71386355", "0.7128114", "0.69700605", "0.69700605", "0.69650245", "0.6950998", "0.6823663", "0.68219626", "0.6805298", "0.67483246", "0.67483246", "0.67008394", "0.66980016", "0.6672495", "0.6668245", "0.66277343", "0.6616315", "0.65...
0.6462905
30