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 a string representing the type of vehicle this is.
def gKPu(): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gKPu(YKHO):\n pass", "def gKPu(YKHO):\n pass", "def gKPu(YKHO):\n pass", "def gKPu(YKHO):\n pass", "def YwLH(YKHO):\n return YKHO.vehicleType", "def gKPu(YKHO):\n pass", "def gKPu(YKHO):\n return 'car'", "def gKPu(YKHO):\n print('Car')", "def gKPu(YKHO):\n return 'car...
[ "0.8169845", "0.8169845", "0.8169845", "0.8169845", "0.81475943", "0.8072806", "0.80342656", "0.79988605", "0.79964757", "0.7908261", "0.7839858", "0.77898294", "0.7680002", "0.7667593", "0.73899275", "0.73899275", "0.73899275", "0.73899275", "0.73899275", "0.73899275", "0.73...
0.8264556
0
Convert the 2D np array `gray` into a 8bit QImage with a gray colormap. The first dimension represents the vertical image axis.
def jnWs(ITiw, tAX0=0.05): if len(ITiw.shape) != 2: raise ValueError('gray2QImage can only convert 2D arrays') ITiw = MpdQ(ITiw, tAX0) MKlR, yzQ0 = ITiw.shape oyIN.set_printoptions(threshold='nan') Aofo = lQaV(ITiw.data, yzQ0, MKlR, lQaV.Format_Indexed8) Aofo.ndarray = ITiw for YRbF ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnWs(ITiw):\n if len(ITiw.shape) != 2:\n raise ValueError('gray2QImage can only convert 2D arrays')\n ITiw = XTiz.require(ITiw, XTiz.uint8, 'C')\n MKlR, yzQ0 = ITiw.shape\n Aofo = CsJA.QImage(ITiw.data, yzQ0, MKlR, CsJA.QImage.Format_Indexed8)\n Aofo.ndarray = ITiw\n for YRbF in range(...
[ "0.7996468", "0.71649396", "0.64146477", "0.6410522", "0.6323181", "0.61597925", "0.6115469", "0.6100001", "0.60394734", "0.59992933", "0.59915566", "0.5946639", "0.59364223", "0.59280246", "0.5923169", "0.5876301", "0.5875265", "0.5856824", "0.58177406", "0.5812271", "0.5781...
0.76355475
1
Convert the 3D np array `rgb` into a 32bit QImage. `rgb` must have three dimensions with the vertical, horizontal and RGB image axes.
def IOci(d7Eb): if len(d7Eb.shape) != 3: raise ValueError('rgb2QImage can only convert 3D arrays') if d7Eb.shape[2] not in (3, 4): raise ValueError('rgb2QImage can expects the last dimension to contain exactly three (R,G,B) or four (R,G,B,A) channels') MKlR, yzQ0, xMux = d7Eb.shape HRTW ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tQj5(LNo8):\n H2v2, TVTK, YwkQ = LNo8.shape\n EkKT = 3 * TVTK\n LWgM = XC5k.cvtColor(LNo8, XC5k.COLOR_BGR2RGB)\n cHfk = lQaV(LWgM.data, TVTK, H2v2, EkKT, lQaV.Format_RGB888)\n return Qu9P.fromImage(cHfk)", "def Vhh0(Xn71: np.ndarray):\n if Xn71.dtype == oyIN.uint8:\n if len(Xn71.shap...
[ "0.57987565", "0.5670521", "0.5658109", "0.5643517", "0.5640526", "0.55956167", "0.5565135", "0.5536596", "0.5527992", "0.54776996", "0.54506665", "0.54229724", "0.5417985", "0.53817964", "0.53527296", "0.53401244", "0.5333592", "0.5315264", "0.53132784", "0.53105855", "0.531...
0.7943329
0
Blacklists a user from the bot.
async def blacklist(OaeV, CBIr: str): try: if CBIr == '<@151461608118419461>': await JyK9.say("You can't blacklist the owner!") elif CBIr in open('mods/utils/txt/blacklist.txt').read(): await JyK9.say('That user is already blacklisted!') else: with open('m...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def blacklist(YKHO, OaeV, *, CBIr: discord.User):\n if CBIr.id in YKHO.client.config['managers']:\n return await OaeV.reply('This user is a bot manager, and cannot be blacklisted.')\n elif CBIr.bot:\n return await OaeV.reply('You cannot blacklist a bot user.')\n _eu6 = str(CBIr.id)\n ...
[ "0.82867175", "0.8047274", "0.7984372", "0.7947472", "0.7765107", "0.7730391", "0.7542089", "0.75357527", "0.7489852", "0.7454842", "0.73120296", "0.7270261", "0.72485644", "0.72297555", "0.7228722", "0.71935636", "0.717507", "0.717021", "0.7141463", "0.70876676", "0.70630306...
0.74449134
10
Returns the result from adding this ClampedInt's value to the other ClampedInt's value. this + other
def FOdN(YKHO, Elif: ClampedInt) -> a3Pr: Qj8D = YKHO.value + Elif.value return a3Pr(Qj8D)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FOdN(YKHO, Elif: 'IntP') -> 'IntP':\n if not isinstance(Elif, type(YKHO)):\n return NotImplemented\n U5bT = YKHO.__class__()\n U5bT.extend(YKHO)\n U5bT.extend(Elif)\n return U5bT._compact()", "def FOdN(YKHO, Elif):\n pass", "def FOdN(YKHO, Elif):\n return zDdG(YKHO.value + Elif....
[ "0.76656675", "0.75779235", "0.7540507", "0.74638045", "0.746338", "0.7445554", "0.7425864", "0.74185586", "0.7399619", "0.7306895", "0.72882557", "0.72882557", "0.728619", "0.72842133", "0.72679836", "0.72679836", "0.724434", "0.72412765", "0.7205698", "0.7182236", "0.711208...
0.8995907
0
Returns the whole number value when dividing this ClampedInt's value by the other ClampedInt's value. Remainder is ignored. this // other.
def f3NA(YKHO, Elif: ClampedInt) -> a3Pr: if Elif.value == 0: raise MdFj() Qj8D = YKHO.value // Elif.value return a3Pr(Qj8D)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HVh8(YKHO, Elif: ClampedInt) -> a3Pr:\n return YKHO.__floordiv__(Elif)", "def L3gF(YKHO, Elif: ClampedInt) -> a3Pr:\n if Elif.value == 0:\n raise Ljel()\n Qj8D = YKHO.value % Elif.value\n return a3Pr(Qj8D)", "def f3NA(YKHO, Elif):\n return YKHO.value // Elif", "def E_tF(YKHO, Elif: ...
[ "0.75727534", "0.7346427", "0.6936716", "0.69064385", "0.6903822", "0.67505944", "0.672608", "0.67007464", "0.6694051", "0.6680698", "0.6601052", "0.65939426", "0.6586606", "0.6564722", "0.65338624", "0.6528965", "0.6524833", "0.6524833", "0.6490023", "0.6488907", "0.6414032"...
0.74364674
1
make a directory to store all caches
def gLDJ(YKHO): gLDJ = Hy7s.path.join(Hy7s.path.dirname(xAKo), '..', 'cache') if not Hy7s.path.exists(gLDJ): Hy7s.mkdir(gLDJ) return gLDJ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NFUx(YKHO):\n try:\n vBWh = Hy7s.path.join(Hy7s.path.expanduser('~'), YMBJ)\n YKHO.directory = vBWh\n Hy7s.makedirs(vBWh)\n except FileExistsError as ee:\n pass", "def uALZ(YKHO) -> None:\n YKHO.cache_dir.mkdir(exist_ok=True, parents=True)", "def HPNc(YKHO, Q6kx):\n ...
[ "0.7982583", "0.77572626", "0.77017385", "0.7483746", "0.7457427", "0.73154336", "0.7255578", "0.7229409", "0.7198061", "0.7159495", "0.71571976", "0.711342", "0.70508647", "0.7040164", "0.6928414", "0.68833834", "0.6858144", "0.68027055", "0.67867666", "0.6775621", "0.677480...
0.6649348
25
Forward pass for generic feedforward DNNs. Assumes activation names are valid pytorch activation names.
def KVH6(YKHO, input: torch.Tensor) -> ht2j.Tensor: return YKHO.dnn(input)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zze1():\n for Emd4 in [ht2j.nn.RNN, ht2j.nn.RNNCell, ht2j.nn.LSTM, ht2j.nn.LSTMCell, ht2j.nn.GRU, ht2j.nn.GRUCell]:\n if VXdC(Emd4, 'forward'):\n PxLU(Emd4, 'forward')", "def KVH6(EcVT, NArs, mWFP='', YDYE=m1Hg):\n NOp8, cr6J = (None, None)\n XcU5 = NArs['W' + mWFP]\n Fg_i = NAr...
[ "0.6322019", "0.6225183", "0.61508244", "0.6024224", "0.5943641", "0.59236264", "0.591254", "0.5897572", "0.5887716", "0.58811265", "0.58222234", "0.58074105", "0.57861996", "0.57802904", "0.57788324", "0.5757661", "0.5750529", "0.57448334", "0.5744441", "0.5732096", "0.57167...
0.6140155
3
We first make our own 2d array based on the new size of the vertex count after adding a vertex. Once we do that, we copy the original adj_matrix to our new and bigger adj_matrix which leaves the newly added vertex at zero weight.
def ohmD(YKHO) -> int: YKHO.v_count += 1 usx6, WfCS = (YKHO.v_count, YKHO.v_count) ezWE = [[0 for YRbF in range(WfCS)] for r845 in range(usx6)] if not YKHO.adj_matrix: YKHO.adj_matrix = ezWE else: for YRbF in range(usx6 - 1): for r845 in range(WfCS - 1): e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ohmD(YKHO) -> int:\n YKHO.adj_matrix.append([])\n YKHO.v_count += 1\n for YRbF in range(YKHO.v_count):\n YKHO.adj_matrix[YKHO.v_count - 1].append(0)\n for YRbF in range(YKHO.v_count - 1):\n YKHO.adj_matrix[YRbF].append(0)\n return YKHO.v_count", "def ohmD(YKHO) -> int:\n YKHO....
[ "0.68822616", "0.6855949", "0.6806468", "0.67711157", "0.6708548", "0.6660002", "0.6497509", "0.64925116", "0.64154595", "0.6402328", "0.62623954", "0.6163289", "0.6039421", "0.60342324", "0.601097", "0.5971959", "0.59618396", "0.5958862", "0.59586376", "0.59451395", "0.59298...
0.72202677
0
Return the number of elements in the sketch. See also the property 'nvisited'.
def szAg(YKHO): return len(YKHO._heap)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO):\n return YKHO.numer_of_elements", "def HXjU(YKHO):\n return YKHO._element_count", "def zNig(YKHO) -> int:\n return len(YKHO.nodes)", "def zNig(YKHO):\n return len(YKHO.nodes)", "def OtzW(YKHO):\n return YKHO.nnodes", "def CYQC(YKHO):\n ewCu = 0\n for bGrB in YKHO:\n ...
[ "0.81402826", "0.74042964", "0.7345662", "0.7343602", "0.7340944", "0.73344696", "0.7302877", "0.7270322", "0.7254351", "0.724007", "0.7234691", "0.7208569", "0.7207927", "0.72007066", "0.7197269", "0.718988", "0.7178564", "0.7160322", "0.71536577", "0.71531767", "0.71286047"...
0.0
-1
Add all subsequences of length `self.nsize` found in the sequence "seq".
def H2v5(YKHO, Q6uT, oAqJ=qw7D.array('Q', [0] * 250)): BMhL = YKHO._hashfun yokr = YKHO._seed gGCN = YKHO._heap ANdr = YKHO._maxsize rmYs = YKHO._nsize g_mo = len(Q6uT) yzQ0 = len(oAqJ) assert rmYs <= yzQ0 ILRq = YKHO._anynew Z3qd = YKHO._make_elt tVFg = YKHO._extracthash ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def siTU(KCHu):\n if len(KCHu) == 0:\n return [[]]\n else:\n all = siTU(KCHu[1:])\n return mtRj(KCHu[0], all) + all", "def Q6uT(YKHO, aAh7):\n pass", "def FJj_(YKHO, Ky8E):\n YKHO.insert(len(YKHO), Ky8E)", "def eZzO(YKHO, Q6uT, zNig):\n return [Q6uT[YRbF:YRbF + zNig] for Y...
[ "0.61216086", "0.6113547", "0.60621786", "0.59481055", "0.5915863", "0.5915863", "0.58819354", "0.58478135", "0.57281494", "0.5719818", "0.5703527", "0.5671267", "0.5653618", "0.558937", "0.5578841", "0.5578565", "0.5546357", "0.5540255", "0.552753", "0.55072546", "0.5490522"...
0.4947904
81
Return the BrayCurtis dissimilarity between this and an other FrozenCountSketch.
def QdwY(YKHO, YEnM): LKLT = sum((YKHO._count[MKlR] for MKlR in YKHO._sketch.intersection(YEnM._sketch))) jVhJ = sum(YKHO._count) An5M = sum(YEnM._count) return 1 - 2 * LKLT / (jVhJ + An5M)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LN0Y(YKHO, Elif):\n w_Eq = set(YKHO.edges)\n yvp2 = set(Elif.edges)\n return len(w_Eq.intersection(yvp2)) / len(w_Eq)", "def zKI2(YKHO, Rtnc, mPai):\n sY0i = 0.0\n if YKHO.image_set == 'MNIST':\n sY0i += ht2j.sum(-(Rtnc.fc1.weight - mPai.fc1.weight) ** 2 / (2 * YKHO.rbf_sigma ** 2))\n ...
[ "0.6055489", "0.56816554", "0.56225497", "0.56201327", "0.55865157", "0.5544164", "0.554336", "0.55419195", "0.550316", "0.548501", "0.5451342", "0.54464287", "0.5392219", "0.53557163", "0.53354234", "0.5331704", "0.5316904", "0.5313594", "0.5292396", "0.5285465", "0.5279949"...
0.6738236
0
Retreive contours and return a list of lists, each area of the box, and coordinates of the box.
def bNaE(el6q, QhLG, KkmU=XC5k.CHAIN_APPROX_SIMPLE): Iowl = XC5k.findContours(el6q, QhLG, XC5k.CHAIN_APPROX_SIMPLE)[0] ILBk = [] AI_Z = [] for iLki in Iowl: WKvO, LVAh, yzQ0, MKlR = XC5k.boundingRect(iLki) f0tD = yzQ0 * MKlR ILBk.append(f0tD) AI_Z.append([WKvO, LVAh, yzQ0...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xsU0(YKHO):\n VXjJ = V2fX.imread(PSrQ.MASK_PATH)\n Iowl = XC5k.findContours(VXjJ, XC5k.RETR_LIST, XC5k.CHAIN_APPROX_SIMPLE)\n jzdc = oyIN.array([XC5k.contourArea(YRbF) for YRbF in Iowl[1]])\n Fg_i = oyIN.array(Iowl[1])\n T4Wy = jzdc.argsort()[::-1]\n jzdc, Fg_i = (jzdc[T4Wy], Fg_i[T4Wy])\n ...
[ "0.744747", "0.73767996", "0.7149856", "0.70494604", "0.70489347", "0.6987775", "0.6968852", "0.69312245", "0.6913102", "0.6740544", "0.6740544", "0.6740544", "0.6740544", "0.6740544", "0.6700272", "0.6680145", "0.6680145", "0.6679263", "0.6646891", "0.6622052", "0.65945596",...
0.7197022
2
Returns a string of random ascii characters or digits
def Kq2p(zNig=16, gZgb=''): xlLU = tuKI.SystemRandom() if not gZgb: gZgb = vIwR.ascii_letters[0:52] + vIwR.digits return type(gZgb)().join((xlLU.choice(gZgb) for bGrB in range(zNig)))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vt_K():\n\n def R71E():\n if tuKI.random() < 0.9:\n return mYtf(tuKI.randrange(32, 127))\n else:\n return mYtf(tuKI.choice(cBub))\n return ''.join((R71E() for YRbF in range(tuKI.randint(1, 4))))", "def BWvy() -> str:\n return ''.join((Acvy(tcl1 + BHGE) for bGrB in...
[ "0.8029329", "0.80107886", "0.79714954", "0.79635453", "0.79589546", "0.7913604", "0.78952587", "0.78431547", "0.7818316", "0.7804021", "0.77907467", "0.774792", "0.77304554", "0.7724167", "0.76975137", "0.76796687", "0.76738733", "0.76610327", "0.7635531", "0.76076657", "0.7...
0.7441684
39
uniform cumulative distribution function
def js4S(WKvO): if WKvO < 0: return 0 if WKvO > 1: return 1 return WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kz4l(WKvO):\n if WKvO < 0:\n return 0\n elif WKvO < 1:\n return WKvO\n else:\n return 1", "def kz4l(WKvO: float) -> float:\n if WKvO < 0:\n return 0\n elif WKvO < 1:\n return WKvO\n else:\n return 1", "def kz4l(WKvO):\n if WKvO > 0 and WKvO < 1...
[ "0.73281276", "0.7268288", "0.7143887", "0.7058465", "0.7026391", "0.7017301", "0.6982104", "0.6937203", "0.6935175", "0.6849694", "0.67347497", "0.66701055", "0.663434", "0.6627541", "0.6592791", "0.6591889", "0.652778", "0.6522077", "0.6485632", "0.6468628", "0.6467271", ...
0.0
-1
generate limit numbers and compare their distribution to uniform
def mvm2(c2Yh, qoqK): mSrU = [] for YRbF in range(qoqK): mSrU.append(c2Yh.random()) WKvO = [] LVAh = {} LVAh['observed'] = [] LVAh['expected'] = [] for YRbF in range(100): YRbF = YRbF / 100 WKvO.append(YRbF) tTpl = qVRM(YRbF, mSrU) P6bq = js4S(YRbF) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kSbv(xlLU, p_dg) -> bool:\n wEf2 = xlLU.randrange(1, 100000001) / 100000000\n if wEf2 <= p_dg:\n return True\n return False", "def sQtD(ywwl, tpio, yew8, Ae2G, oVTz):\n JrBO = imWt(ywwl, tpio, yew8)\n Ylbp = Ae2G + (oVTz - Ae2G) * JrBO\n return Ylbp", "def XPy9(qoqK=1.0):\n P8oC...
[ "0.72742164", "0.67661405", "0.6757692", "0.6738548", "0.67298687", "0.6691069", "0.6671093", "0.65990174", "0.6587742", "0.6526924", "0.64853674", "0.6452613", "0.6440847", "0.6411183", "0.6388003", "0.63862294", "0.63710403", "0.63552654", "0.63542026", "0.63362396", "0.632...
0.6393033
14
Log Errors caused by Updates.
def P1dF(JyK9, QdZT, P1dF): bo34.warning('Update "%s" caused error "%s"', QdZT, P1dF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P1dF(JyK9, QdZT, P1dF):\n bo34.warning('Error: \"%s\" caused error \"%s\"', QdZT, P1dF)\n bo34.setLevel(G9jH.DEBUG)", "def rP1w(QdZT, QpfX):\n bo34.warning(f'Update \"{QdZT}\" caused error {QpfX.error}\"')", "def P1dF(QdZT, QpfX):\n G9jH.error('Update \"%s\" caused error \"%s\"', QdZT, QpfX.err...
[ "0.7895395", "0.788395", "0.78750193", "0.7873498", "0.78300834", "0.7790406", "0.7785151", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.77837753", "0.7781314", "0.77660847", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.7746185", "0.774618...
0.75354177
77
Compute Average Precision according to the definition in VOCdevkit. Precision is modified to ensure that it does not decrease as recall decrease.
def rY83(rhd_, AOzf): if rhd_ is None: if AOzf is not None: raise ValueError('If precision is None, recall must also be None') return oyIN.NAN if not isinstance(rhd_, oyIN.ndarray) or not isinstance(AOzf, oyIN.ndarray): raise ValueError('precision and recall must be numpy arr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zpVS(rhd_, AOzf):\n VqfF = 0.0\n for a1PO in oyIN.arange(0.0, 1.1, 0.1):\n if oyIN.sum(AOzf >= a1PO) == 0:\n XP5J = 0\n else:\n XP5J = oyIN.max(rhd_[AOzf >= a1PO])\n VqfF += XP5J / 11.0\n return VqfF", "def H6dO(YKHO, AOzf, rhd_):\n AOzf = oyIN.insert(AO...
[ "0.7862528", "0.76550955", "0.76418376", "0.74221516", "0.7399301", "0.7380267", "0.7348827", "0.7337614", "0.7297574", "0.72929686", "0.7290081", "0.7290081", "0.7290081", "0.7290081", "0.7290081", "0.7290081", "0.72826093", "0.72765726", "0.72765726", "0.72765726", "0.72765...
0.72406167
28
Remove LRU node and return the reference to it. Assume nonempty queue, since pop is only called when capacity is reached, where capacity >= 1.
def BEuN(YKHO) -> o7DN: Q6kx = YKHO.sentinel.p Q6kx.p.n = Q6kx.n YKHO.sentinel.p = Q6kx.p return Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def he0F(YKHO):\n if YKHO.head is None:\n raise IndexError('remove from empty queue')\n O4US = YKHO.head\n YKHO.head = YKHO.head.next\n O4US.next = None\n YKHO._len -= 1\n return O4US.value", "def DOk3(YKHO, ZFbY):\n if YKHO.current_size == 0:\n return ZFbY\n if ZFbY.prev is...
[ "0.71581894", "0.71248364", "0.70153797", "0.7000709", "0.69958496", "0.6990951", "0.69219315", "0.6914964", "0.6843859", "0.68359023", "0.6784482", "0.67816824", "0.6779844", "0.6738389", "0.6738389", "0.67310256", "0.6728182", "0.67263997", "0.67263997", "0.6722014", "0.670...
0.0
-1
Given three lists of integers, return True or False based on firstinfirstserve principle, including repeating order. If there's order not served, also return false.
def Oxw_(N5Ci, pKUE, Gxm1): FTbW = 0 tq1V = 0 aXOf = len(N5Ci) - 1 Sl6P = len(pKUE) - 1 for mLGw in Gxm1: if FTbW <= aXOf and mLGw == N5Ci[FTbW]: FTbW += 1 elif tq1V <= Sl6P and mLGw == pKUE[tq1V]: tq1V += 1 else: return False if tq1V <...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ka2U(tRHf, OzLk, ssKh):\n if tRHf <= OzLk and OzLk <= ssKh:\n return True\n else:\n return False", "def WDZr(yv6U):\n yv6U = list(set(yv6U))\n yv6U = sorted(yv6U)\n if len(yv6U) < 3:\n return False\n for YRbF in range(2, len(yv6U)):\n if t9q1(yv6U[YRbF - 2], yv6U...
[ "0.68982327", "0.6518246", "0.6420606", "0.6360575", "0.6315638", "0.6298131", "0.6287958", "0.61906034", "0.61902785", "0.61625665", "0.61372447", "0.6123105", "0.6086581", "0.607095", "0.60488945", "0.60476625", "0.60284775", "0.60060215", "0.59997296", "0.59743494", "0.597...
0.65740854
1
A function that truncates the input phrase at the input number of char (n). If the user tries to truncate below three chars, throws an error. If the phrase to truncate is less than the num, returns the phrase.
def G34s(A0cm, exwG): hlel = '' if exwG < 3: return 'Truncation must be at least 3 characters.' else: t51H = exwG - 3 if len(A0cm) < t51H: return A0cm YRbF = 0 while YRbF < t51H: hlel = hlel + A0cm[YRbF] YRbF += 1 print(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G34s(A0cm, exwG):\n if exwG < 3:\n return 'Truncation must be at least 3 characters.'\n if exwG > len(A0cm) + 2:\n return A0cm\n return A0cm[:exwG - 3] + '...'", "def G34s(A0cm, exwG):\n if exwG < 3:\n Mkmy = 'Truncation must be at least 3 characters.'\n else:\n oyI...
[ "0.8724088", "0.86699194", "0.73096704", "0.7082525", "0.7079805", "0.7008673", "0.7008673", "0.6947159", "0.6871425", "0.6848406", "0.68425775", "0.6824862", "0.67664033", "0.6690861", "0.6625154", "0.6605148", "0.65903884", "0.65756845", "0.65686077", "0.6561102", "0.653513...
0.82940817
2
Reset the flux bounds to original values, using a dictionary created in prepModelConstraints(). Resetting values saves time over rereading the model object between each sample.
def KFm8(_RJI, kIvD): iJHr = len(set([lt_I.upper_bound for lt_I in _RJI.reactions])) ewCu = 0 for lt_I in _RJI.reactions: if lt_I.id in kIvD: MyGI = kIvD[lt_I.id]['Lower bound'] Swzq = kIvD[lt_I.id]['Upper bound'] _RJI.reactions.get_by_id(lt_I.id).lower_bound = My...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ITPh(YKHO):\n YKHO.lower_bound = None\n YKHO.upper_bound = None", "def tpQC(_RJI, NCJH, prGP):\n iJHr = len(set([lt_I.upper_bound for lt_I in _RJI.reactions]))\n XP8S = max([lt_I.upper_bound for lt_I in _RJI.reactions])\n KAJ_ = abs(prGP / XP8S)\n SxmY = min([lt_I.lower_bound for lt_I in _R...
[ "0.6816353", "0.646441", "0.6448174", "0.6420727", "0.63038087", "0.6291381", "0.6264038", "0.6222741", "0.62118125", "0.6196511", "0.6196294", "0.6190113", "0.6126817", "0.6092137", "0.6089851", "0.60861796", "0.6066339", "0.6066339", "0.6066339", "0.6066339", "0.6066339", ...
0.76119065
0
From (but excluding) current_player, all players who are left to act, including those players before current_player, after the others. E.g. if the players are 1,2,3,4,5 and 3 is current, and only 4 and 2 have left_to_act=True, then this function returns [4, 2].
def PiGr(YKHO): Iy_q = YKHO.players[YKHO.current_player + 1:] + YKHO.players[:YKHO.current_player] return [XP5J for XP5J in Iy_q if XP5J.left_to_act]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def mw5L(YKHO, OPcR):\n tRnr = YKHO.players[OPcR]\n jmyZ = int((OPcR + 1) % YKHO.n_players)\n Ifxg = [oyg0.value for oyg0 in YKHO.players if oyg0.id != OPcR and oyg0.id != jmyZ]\n em9o = []\n for Ty9i in tRnr.candidate:\n oxMB = [YRbF in Ifxg or YRbF == Ty9i for YRbF in YKHO.value_list]\n ...
[ "0.6584488", "0.6108458", "0.6017999", "0.59042645", "0.58309263", "0.57475203", "0.57067263", "0.57028776", "0.56566447", "0.5650181", "0.5624623", "0.5608331", "0.55343854", "0.5513183", "0.5507303", "0.5471451", "0.54457307", "0.5415324", "0.5405586", "0.54003143", "0.5388...
0.8324139
0
Enumerate a set of anchors for each scale wrt an anchor.
def _Y91(DNwW, m_03): yzQ0, MKlR, cBvt, KEUX = cb7b(DNwW) VTcd = yzQ0 * m_03 ObL9 = MKlR * m_03 qvIa = AiAU(VTcd, ObL9, cBvt, KEUX) return qvIa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Y91(DNwW, m_03):\n yzQ0, MKlR, cBvt, KEUX = cb7b(DNwW)\n VTcd = yzQ0 * m_03\n ObL9 = MKlR * m_03\n qvIa = AiAU(VTcd, ObL9, cBvt, KEUX)\n return qvIa", "def _Y91(DNwW, m_03):\n yzQ0, MKlR, cBvt, KEUX = cb7b(DNwW)\n VTcd = yzQ0 * m_03\n ObL9 = MKlR * m_03\n qvIa = AiAU(VTcd, ObL9, c...
[ "0.7314597", "0.7314597", "0.7314597", "0.72907984", "0.72364897", "0.72318107", "0.6789154", "0.67825603", "0.6611962", "0.6576924", "0.65554905", "0.65540844", "0.6551622", "0.65409565", "0.6529002", "0.65203613", "0.65140885", "0.6499063", "0.64734226", "0.64666754", "0.64...
0.73347354
0
Helper function returning the multiprocessing module or the threading version of it.
def ucp1(): if Soym(): tO9_ = "NumPy linked against 'Accelerate.framework'. Multiprocessing will be disabled. See https://github.com/obspy/obspy/wiki/Notes-on-Parallel-Processing-with-Python-and-ObsPy for more information." qmLP.warn(tO9_) import multiprocessing as g2zq from multipro...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zo_V(fHUa: int | None, x7gM: bool) -> soiN:\n return szdr(workers=fHUa, multiprocess=x7gM)", "def RiM7():\n return mQwg(arch=None, current_machine=True)", "def p2kF(hDAv, lGbz):\n if hDAv:\n if lGbz.processpool:\n dBuj = lGbz.processpool\n else:\n dBuj = lGbz.pr...
[ "0.6292838", "0.6114302", "0.6110088", "0.5983746", "0.5967441", "0.59625024", "0.5915774", "0.5899324", "0.58917934", "0.58213735", "0.57098526", "0.5675305", "0.5670906", "0.563631", "0.56073296", "0.5607257", "0.5603097", "0.5598625", "0.5568857", "0.5568857", "0.5568857",...
0.7267129
0
Get a job for a worker.
def jCOQ(YKHO, jF58): oCfW = YKHO._in_queue.pop(0) YKHO._workers[jF58].active_jobs.append(oCfW) return oCfW.arguments
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MtOf(YKHO, i4ai):\n return YKHO.__task_by_worker.get(i4ai)", "def Ay_J(Emd4, U3lI):\n if U3lI not in Emd4.workers:\n Emd4.workers[U3lI] = Emd4(U3lI)\n return Emd4.workers[U3lI]", "def YcZo(QpfX, **KUnM):\n xDcj = rI9e(QpfX, **KUnM)\n i4ai = xDcj.first() if xDcj else None\n if not i...
[ "0.7432595", "0.7268677", "0.72572017", "0.7201409", "0.71852475", "0.71852475", "0.71738917", "0.7118183", "0.7102625", "0.7079073", "0.7034352", "0.7019164", "0.69673765", "0.6959671", "0.69563055", "0.6954777", "0.69483864", "0.69437456", "0.69238424", "0.69035476", "0.688...
0.72817546
1
List of labels to a commasaperated string.
def Cg4U(Crrw): if Crrw is not None: for WFmf in Crrw: if ',' in WFmf: raise ValueError('The labels must not contain a comma as it is used as the separator for the different values.') Crrw = u','.join([WFmf.strip() for WFmf in Crrw]) return Crrw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fydJ(yqD4):\n Aofo = []\n for WKvO in yqD4:\n Aofo.append(format(int(WKvO), ','))\n return Aofo", "def fydJ(yqD4):\n Aofo = []\n for WKvO in yqD4:\n Aofo.append(format(int(WKvO), ','))\n return Aofo", "def IZyS(VWe_, list):\n return VWe_.join([WKvO for WKvO in list if WKv...
[ "0.77467746", "0.77467746", "0.7501767", "0.7440127", "0.7309553", "0.6711913", "0.6595794", "0.6458864", "0.64411354", "0.639351", "0.63780946", "0.62872124", "0.6270337", "0.625957", "0.61756194", "0.6175164", "0.61304295", "0.6126074", "0.6126074", "0.60834646", "0.6079444...
0.72235984
5
True if the returned object is an iterable but not a string.
def Lm1b(YEnM): return isinstance(YEnM, g760.Iterable) and (not isinstance(YEnM, jUrF))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ztQD(YEnM):\n return isinstance(YEnM, iu5r) and (not isinstance(YEnM, str))", "def XNOR(YEnM):\n return not (isinstance(YEnM, str) or isinstance(YEnM, bytes)) and isinstance(YEnM, iu5r)", "def taYM(YEnM):\n if SytQ(YEnM):\n return Jnu0(YEnM) is False\n else:\n return False", "de...
[ "0.89118785", "0.86686045", "0.8630425", "0.85755646", "0.84520185", "0.83821416", "0.8337295", "0.8146865", "0.8140552", "0.81367725", "0.8094188", "0.8048982", "0.804007", "0.80344915", "0.8005569", "0.7933644", "0.7929945", "0.78096664", "0.7804341", "0.7789617", "0.776050...
0.6959079
72
Returns the string representation of the model
def gTzM(YKHO): import simplejson as qQXR if jKi7.PY2: import sys U3hF(sys) sys.setdefaultencoding('utf-8') return qQXR.dumps(yInN(YKHO), ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.86418265", "0.85103965", "0.7853324", "0.77442306", "0.7712258", "0.76979405", "0.765959", "0.7637644", "0.76218504", "0.7607561", "0.7606604", "0.7606604", "0.7606604", "0.75990754", "0.7585653", "0.758149", "0.7570811", "0.7567585", "0.75392604", "0.75392604", "0.7527967...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif", "def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif", "def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(...
[ "0.8392633", "0.8354901", "0.82950056", "0.8132309", "0.81149805", "0.8099986", "0.809911", "0.8097883", "0.8097883", "0.8092252", "0.8092252", "0.8092252", "0.8092252", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8085141", "0.8066694", "0.80594814", "0.805757", ...
0.8043786
62
Returs True if any candidate is left, otherwise False
def mdNd(YKHO) -> bool: return YKHO.__entry.bottom is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rC1D(YKHO, SkC9):\n return SkC9 in YKHO.history", "def jZwA(YKHO):\n if YKHO.candidates.count() == 1:\n return True\n else:\n return False", "def Fd4y(YKHO):\n if None not in [Ty9i for Ty9i in YKHO.squares]:\n return True\n if YKHO.winner() != None:\n return True\...
[ "0.7136806", "0.7091717", "0.7037512", "0.70310324", "0.69383025", "0.6812248", "0.6802043", "0.66881", "0.6615631", "0.6552776", "0.6534044", "0.65325034", "0.6453157", "0.6446016", "0.64398503", "0.6405896", "0.6405354", "0.6399419", "0.6374739", "0.63619095", "0.6351249", ...
0.6544071
10
Returns the MatrixHeadReferenceNode. Can be used to iterate through the RowReferenceNodes and ColumnReferenceNodes
def XaiI(YKHO) -> KnYg: return YKHO.__entry
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qHHo(YKHO):\n return YKHO.head", "def tmL8(YKHO):\n return YKHO.head_node", "def tmL8(YKHO) -> None:\n return YKHO._head", "def sdCG(YKHO):\n return YKHO.__head", "def tmL8(YKHO):\n return YKHO.head", "def tmL8(YKHO):\n return YKHO.head", "def sdCG(YKHO):\n if YKHO.is_empty():\...
[ "0.6741763", "0.6697844", "0.60828686", "0.6059584", "0.60512817", "0.60512817", "0.6034531", "0.6030408", "0.6030408", "0.6030408", "0.6030408", "0.5995971", "0.59866583", "0.59407514", "0.59402126", "0.59159225", "0.5904372", "0.58971137", "0.5895389", "0.5858014", "0.58293...
0.83798987
0
Make a grid of images.
def R0O3(vhpA, aUKP=8, dvgN=2, NkkI=False, range=None, X2Rs=False, KHPh=0): if not (ht2j.is_tensor(vhpA) or (isinstance(vhpA, list) and all((ht2j.is_tensor(a1PO) for a1PO in vhpA)))): raise TypeError('tensor or list of tensors expected, got {}'.format(type(vhpA))) if isinstance(vhpA, list): vhpA...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ry8O(Yw_3):\n JI1i = QrM1.figure(figsize=(10, 10))\n for YRbF in range(25):\n QrM1.subplot(5, 5, YRbF + 1, title='name')\n QrM1.xticks([])\n QrM1.yticks([])\n QrM1.grid(False)\n QrM1.imshow(Yw_3[YRbF], cmap=QrM1.cm.binary)\n return JI1i", "def e9s6(Yw_3, aUKP=10):\...
[ "0.78698134", "0.7849756", "0.76389235", "0.763619", "0.7454014", "0.737946", "0.7248002", "0.72153574", "0.7183387", "0.7167475", "0.7042519", "0.69932187", "0.69910866", "0.6985145", "0.6950002", "0.6947613", "0.69283676", "0.6914624", "0.68839025", "0.6881402", "0.6869505"...
0.6407474
79
Test the api can update a given event.
def dQzI(YKHO): tvqc = QRWf.objects.get() qiPo = {'eventName': 'Mudei este campo', 'ownerName': 'Fulano', 'eventDate': '2099-12-13', 'eventHour': '03:03:00', 'organizer': 'Fulano', 'address': 'Here', 'eventDescription': 'Chato', 'foods': 'Comidas', 'drinks': 'Bebidas', 'photo': 'https://www.google.com/'} ge...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IWPy(YKHO):\n tvqc = YKHO.create_event()\n sl_K = {'title': 'New music concert', 'price': '63.72', 'currency_code': 'GBP', 'time': '2021-03-29T00:00:00', 'number_of_tickets': 20}\n YKHO.update_event(sl_K, tvqc['id'])\n sl_K = {'resellers': [{'seller_id': oRNa.res_1['id'], 'number_of_tickets': 30}]}...
[ "0.7810569", "0.7671216", "0.75569195", "0.736643", "0.73495543", "0.7284948", "0.7189879", "0.71065044", "0.7087512", "0.70823056", "0.705936", "0.7039561", "0.7023807", "0.7012875", "0.6965924", "0.6965924", "0.6870619", "0.68157256", "0.6787286", "0.6755035", "0.6742835", ...
0.7254592
6
A server MUST return 404 Not Found when processing a request to modify a resource that does not exist.
def C6tx(YKHO): hbFX = YKHO.get_first_post_id() + '_' YKHO.app.patch('/api/posts/' + hbFX, qQXR.dumps({'data': {'id': hbFX, 'type': 'post', 'attributes': {'text': YKHO.generate_text()}}}), {'Content-Type': YKHO.content_type()}, status=jGRS.HTTP_404_NOT_FOUND)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3cf(YKHO):\n raise lW34()", "def U2dK(YKHO):\n geh0 = YKHO.client.put(f'{zDeW}/foo', json={})\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_404_NOT_FOUND)", "def y9Lt(YKHO):\n _hkX = YKHO.app.put('/users/baduser', content_type='application/json', data=qQXR.dumps(dict(first_name='first', last_...
[ "0.73488075", "0.72547203", "0.7143428", "0.7131368", "0.70199746", "0.6954154", "0.6950543", "0.6942399", "0.6929804", "0.6909326", "0.68822515", "0.6880081", "0.68002063", "0.6800166", "0.67911917", "0.67866385", "0.6727482", "0.6721656", "0.671879", "0.6717878", "0.6713187...
0.0
-1
Removes unwanted characters from dictionary, see decompress
def MzNo(DHzj): BdN0 = {} for H5ew in DHzj: wEf2 = DHzj[H5ew] H5ew = YZTo(H5ew) BdN0[H5ew] = wEf2 return BdN0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EjXM(iNRS):\n for ACia, Csk6 in iNRS.items():\n for PAnk, x1pE in Csk6.items():\n Csk6[PAnk] = [KCHu.replace(u'️', '') for KCHu in x1pE]", "def XJr6(gtJw):\n for YRbF in gtJw.keys():\n gtJw[YRbF] = gtJw[YRbF].lstrip('>')\n return gtJw", "def c1oL(MwXv):\n if jKi7.PY3:\n...
[ "0.69086015", "0.68763685", "0.65404767", "0.65078765", "0.6507805", "0.64167684", "0.6361632", "0.6247754", "0.62002677", "0.6193019", "0.61718166", "0.6163228", "0.6156166", "0.6150897", "0.6067806", "0.6054665", "0.6051994", "0.6046525", "0.600085", "0.5983351", "0.594199"...
0.0
-1
Test that the landing url is the API url when GitLab cannot be reached.
async def test_file_landing_url_on_failure(YKHO): geh0 = await YKHO.collect(get_request_json_side_effect=[ConnectionError]) YKHO.assert_measurement(geh0, landing_url='https://gitlab', connection_error='Traceback')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_pipeline_landing_url_on_failure(YKHO):\n YKHO.set_source_parameter('file_path', '')\n geh0 = await YKHO.collect(get_request_json_side_effect=[ConnectionError])\n YKHO.assert_measurement(geh0, landing_url='https://gitlab', parse_error='Traceback')", "def B50P(YKHO):\n _hkX = YKHO.client...
[ "0.7177155", "0.70685405", "0.7033809", "0.7033809", "0.70177174", "0.6951605", "0.6907972", "0.68977755", "0.68724924", "0.6783731", "0.67159903", "0.6640496", "0.6609955", "0.6580382", "0.65479964", "0.6534232", "0.651259", "0.6492499", "0.6492087", "0.64894724", "0.6480988...
0.713445
1
Test that the landing url is the API url when GitLab cannot be reached.
async def test_pipeline_landing_url_on_failure(YKHO): YKHO.set_source_parameter('file_path', '') geh0 = await YKHO.collect(get_request_json_side_effect=[ConnectionError]) YKHO.assert_measurement(geh0, landing_url='https://gitlab', parse_error='Traceback')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def test_file_landing_url_on_failure(YKHO):\n geh0 = await YKHO.collect(get_request_json_side_effect=[ConnectionError])\n YKHO.assert_measurement(geh0, landing_url='https://gitlab', connection_error='Traceback')", "def B50P(YKHO):\n _hkX = YKHO.client.get(YKHO.url_wrong)\n YKHO.assertEqual(_hkX...
[ "0.713445", "0.70685405", "0.7033809", "0.7033809", "0.70177174", "0.6951605", "0.6907972", "0.68977755", "0.68724924", "0.6783731", "0.67159903", "0.6640496", "0.6609955", "0.6580382", "0.65479964", "0.6534232", "0.651259", "0.6492499", "0.6492087", "0.64894724", "0.6480988"...
0.7177155
0
Returns a row for each distinct rate and notification_type from ft_billing over the specified financial year e.g. ( rate=0.0165, notification_type=sms, notifications_sent=123, ... ) The "query_service_..." subqueries for each notification_type all return the same columns but differ internally e.g. SMS has to incorporat...
def srnK(liCf, lO87): return NCls.session.query(b65I(*[NCls.session.query(xDcj.c.notification_type.label('notification_type'), xDcj.c.rate.label('rate'), JfyU.sum(xDcj.c.notifications_sent).label('notifications_sent'), JfyU.sum(xDcj.c.chargeable_units).label('chargeable_units'), JfyU.sum(xDcj.c.cost).label('cost'),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def L1vi(lO87, PnyW=None):\n pa0H, EvtD = erwH(lO87)\n yio1 = JfyU.coalesce(w1uF.billable_units * w1uF.rate_multiplier, 0)\n Dbwi = JfyU.coalesce(JfyU.sum(yio1).over(order_by=[w1uF.bst_date], partition_by=w1uF.service_id, rows=(None, -1)).cast(zllO), 0)\n dmYe = JfyU.greatest(wgN_.free_sms_fragment_lim...
[ "0.6157474", "0.56931233", "0.5451465", "0.5282838", "0.5217343", "0.513748", "0.50891006", "0.50390166", "0.50268507", "0.5022909", "0.50172216", "0.5011511", "0.5010077", "0.49504215", "0.49394378", "0.4930479", "0.49247527", "0.49230772", "0.48838887", "0.48766452", "0.486...
0.5261685
4
>>> is_nonincreasing([3, 2, 1]) True >>> is_nonincreasing([3, 2, 2]) repeated value is fine True >>> is_nonincreasing([3, 2, 3]) False
def _H6l(mSrU): XVAW = float('inf') for exwG in mSrU: if exwG > XVAW: return False XVAW = exwG return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _H6l(T6S7):\n if len(T6S7) <= 1:\n return True\n WhY1 = iter(T6S7)\n dlDK(WhY1)\n khtY = seET.le\n return all(Hs6x.starmap(khtY, zip(WhY1, T6S7)))", "def DhTS(T6S7):\n for YRbF in range(len(T6S7) - 1):\n if T6S7[YRbF] > T6S7[YRbF + 1]:\n return False\n return Tru...
[ "0.757849", "0.7510323", "0.74664766", "0.7369668", "0.7203908", "0.70220065", "0.69908434", "0.6965127", "0.6900267", "0.6880212", "0.68801516", "0.6862005", "0.6862005", "0.683429", "0.6828818", "0.68232477", "0.68123364", "0.6756835", "0.66656387", "0.663818", "0.6598556",...
0.7621983
0
Normalizes string, converts to lowercase, removes nonalpha characters, and converts spaces to hyphens.
def eIIt(BWXx): import unicodedata, re BWXx = unicodedata.normalize('NFKD', BWXx).encode('ascii', 'ignore') BWXx = QMSQ(re.sub('[^\\w\\s-]', '', BWXx.decode()).strip().lower()) BWXx = re.sub('[-\\s]+', '-', BWXx) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I3lj(vIwR):\n return vIwR.lower().replace(' ', '')", "def nJdR(YKHO, KCHu: str) -> str:\n return ''.join([Z9rn.lower() for Z9rn in KCHu if Z9rn.isalnum()])", "def NkkI(vIwR: str) -> str:\n return Zf5h.only_word_characters(vIwR.replace(' ', '_')).lower()", "def I3lj(YKHO, KCHu):\n KCHu = KCHu....
[ "0.8029263", "0.7946907", "0.7903052", "0.79003364", "0.78422433", "0.77492774", "0.7704149", "0.7699901", "0.7697111", "0.767485", "0.76038194", "0.76035225", "0.75735325", "0.7489399", "0.73445415", "0.7329183", "0.73274094", "0.7327333", "0.73241955", "0.7292033", "0.72801...
0.702394
60
Check whether the points are in the given range.
def X5u4(YKHO, pmp7): L2xC = (YKHO.tensor[:, 0] > pmp7[0]) & (YKHO.tensor[:, 1] > pmp7[1]) & (YKHO.tensor[:, 2] > pmp7[2]) & (YKHO.tensor[:, 0] < pmp7[3]) & (YKHO.tensor[:, 1] < pmp7[4]) & (YKHO.tensor[:, 2] < pmp7[5]) return L2xC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sk_I(YKHO, pmp7):\n pass", "def rWtJ(YKHO, LTIa):\n if isinstance(LTIa, (list, tuple)):\n for AU8u in LTIa:\n if YKHO.pointTest(AU8u):\n return True\n return False\n return LTIa[0] >= YKHO.x and LTIa[0] <= YKHO.x2 and (LTIa[1] >= YKHO.y) and (LTIa[1] <= YKHO.y...
[ "0.78345674", "0.75603604", "0.74915993", "0.7489485", "0.7489485", "0.74836856", "0.748092", "0.74627113", "0.74595165", "0.7436232", "0.7432904", "0.74100125", "0.7400721", "0.73801184", "0.736399", "0.7320546", "0.73178536", "0.72776204", "0.72523636", "0.7235232", "0.7202...
0.6666523
85
Check whether the points are in the given range.
def Sk_I(YKHO, pmp7): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rWtJ(YKHO, LTIa):\n if isinstance(LTIa, (list, tuple)):\n for AU8u in LTIa:\n if YKHO.pointTest(AU8u):\n return True\n return False\n return LTIa[0] >= YKHO.x and LTIa[0] <= YKHO.x2 and (LTIa[1] >= YKHO.y) and (LTIa[1] <= YKHO.y2)", "def Sk_I(YKHO, pmp7):\n L2...
[ "0.75603604", "0.74915993", "0.7489485", "0.7489485", "0.74836856", "0.748092", "0.74627113", "0.74595165", "0.7436232", "0.7432904", "0.74100125", "0.7400721", "0.73801184", "0.736399", "0.7320546", "0.73178536", "0.72776204", "0.72523636", "0.7235232", "0.7202566", "0.71446...
0.78345674
0
Create a new point object with data. The new point and its tensor has the similar properties as self and self.tensor, respectively.
def eybD(YKHO, nPrm): z5Zm = YKHO.tensor.new_tensor(nPrm) if not isinstance(nPrm, ht2j.Tensor) else nPrm mS8V = type(YKHO) return mS8V(z5Zm, points_dim=YKHO.points_dim, attribute_dims=YKHO.attribute_dims)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def afhe(YKHO, **B2fa):\n return YKHO._newfeature(PvyL, **B2fa)", "def afhe(YKHO, **B2fa):\n return YKHO._newfeature(PvyL, **B2fa)", "def FIMM(YKHO, wdYk: PointData, yDqo: DType=None) -> None:\n if isinstance(wdYk, PvyL):\n wdYk = wdYk.data\n if yDqo is None:\n yDqo = H0NM\n if not...
[ "0.6755926", "0.6755926", "0.6609753", "0.6586939", "0.6432256", "0.6404015", "0.6305503", "0.62823784", "0.62533104", "0.6247647", "0.6067485", "0.6058083", "0.60562414", "0.6049677", "0.6044214", "0.60369456", "0.5987518", "0.5972532", "0.5970808", "0.5956057", "0.59509623"...
0.85007715
0
Check whether the points are in the given range.
def Sk_I(YKHO, pmp7): L2xC = (YKHO.tensor[:, 0] > pmp7[0]) & (YKHO.tensor[:, 2] > pmp7[1]) & (YKHO.tensor[:, 0] < pmp7[2]) & (YKHO.tensor[:, 2] < pmp7[3]) return L2xC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sk_I(YKHO, pmp7):\n pass", "def rWtJ(YKHO, LTIa):\n if isinstance(LTIa, (list, tuple)):\n for AU8u in LTIa:\n if YKHO.pointTest(AU8u):\n return True\n return False\n return LTIa[0] >= YKHO.x and LTIa[0] <= YKHO.x2 and (LTIa[1] >= YKHO.y) and (LTIa[1] <= YKHO.y...
[ "0.78345674", "0.75603604", "0.7489485", "0.7489485", "0.74836856", "0.748092", "0.74627113", "0.74595165", "0.7436232", "0.7432904", "0.74100125", "0.7400721", "0.73801184", "0.736399", "0.7320546", "0.73178536", "0.72776204", "0.72523636", "0.7235232", "0.7202566", "0.71446...
0.74915993
2
Check whether the points are in the given range.
def Sk_I(YKHO, pmp7): L2xC = (YKHO.tensor[:, 0] > pmp7[0]) & (YKHO.tensor[:, 1] > pmp7[1]) & (YKHO.tensor[:, 0] < pmp7[2]) & (YKHO.tensor[:, 1] < pmp7[3]) return L2xC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sk_I(YKHO, pmp7):\n pass", "def rWtJ(YKHO, LTIa):\n if isinstance(LTIa, (list, tuple)):\n for AU8u in LTIa:\n if YKHO.pointTest(AU8u):\n return True\n return False\n return LTIa[0] >= YKHO.x and LTIa[0] <= YKHO.x2 and (LTIa[1] >= YKHO.y) and (LTIa[1] <= YKHO.y...
[ "0.78345674", "0.75603604", "0.74915993", "0.74836856", "0.748092", "0.74627113", "0.74595165", "0.7436232", "0.7432904", "0.74100125", "0.7400721", "0.73801184", "0.736399", "0.7320546", "0.73178536", "0.72776204", "0.72523636", "0.7235232", "0.7202566", "0.7144617", "0.7123...
0.7489485
3
Check whether the points are in the given range.
def Sk_I(YKHO, pmp7): L2xC = (YKHO.tensor[:, 0] > pmp7[0]) & (YKHO.tensor[:, 1] > pmp7[1]) & (YKHO.tensor[:, 0] < pmp7[2]) & (YKHO.tensor[:, 1] < pmp7[3]) return L2xC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sk_I(YKHO, pmp7):\n pass", "def rWtJ(YKHO, LTIa):\n if isinstance(LTIa, (list, tuple)):\n for AU8u in LTIa:\n if YKHO.pointTest(AU8u):\n return True\n return False\n return LTIa[0] >= YKHO.x and LTIa[0] <= YKHO.x2 and (LTIa[1] >= YKHO.y) and (LTIa[1] <= YKHO.y...
[ "0.78345674", "0.75603604", "0.74915993", "0.74836856", "0.748092", "0.74627113", "0.74595165", "0.7436232", "0.7432904", "0.74100125", "0.7400721", "0.73801184", "0.736399", "0.7320546", "0.73178536", "0.72776204", "0.72523636", "0.7235232", "0.7202566", "0.7144617", "0.7123...
0.7489485
4
Calculate IoU between 2D bboxes.
def nrOS(YKHO, Bsc6, IUcw, Tuqy='iou', Y1UO=False): assert Bsc6.size(-1) == IUcw.size(-1) == 6 return OVzl(Bsc6, IUcw, Tuqy, Y1UO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cxP1(knvf, IkxF):\n Y6kN, V_d_, JqUn, pvBw = knvf\n a4gF, GLKs, gSFI, KDnR = IkxF\n itnF = max(Y6kN, a4gF)\n BKCx = max(V_d_, GLKs)\n g_l3 = min(JqUn, gSFI)\n _H1C = min(pvBw, KDnR)\n a98E = max(g_l3 - itnF, 0) * max(_H1C - BKCx, 0)\n HwPD = (JqUn - Y6kN) * (pvBw - V_d_)\n POev = (gS...
[ "0.7999603", "0.7978169", "0.79512906", "0.79381335", "0.7928349", "0.7922802", "0.79153204", "0.7905594", "0.78893274", "0.7887288", "0.78800404", "0.7790897", "0.77587837", "0.7746522", "0.77007407", "0.7677415", "0.76726156", "0.76464057", "0.7644245", "0.7636042", "0.7630...
0.0
-1
convert box coordinate to corners
def blrr(FlUN: torch.Tensor) -> ht2j.Tensor: tjUW = FlUN.size()[0] WKvO = FlUN[..., 0:1] LVAh = FlUN[..., 1:2] yzQ0 = FlUN[..., 2:3] MKlR = FlUN[..., 3:4] Cwt5 = FlUN[..., 4:5] SzKB = ht2j.FloatTensor([0.5, -0.5, -0.5, 0.5]).unsqueeze(0).unsqueeze(0) SzKB = SzKB * yzQ0 INzm = ht2j.Fl...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def udjS(cviu):\n return (cviu[0], cviu[1], cviu[0] + cviu[2], cviu[1] + cviu[3])", "def iO1a(c8oy: torch.Tensor) -> ht2j.Tensor:\n o4D3, si3g, ajwV, skBL = ht2j.split(c8oy, 1, dim=1)\n return ht2j.cat([o4D3, si3g, ajwV, si3g, o4D3, skBL, ajwV, skBL], dim=1).reshape(-1, 2)", "def epBW(oUSw):\n ycBG...
[ "0.76034266", "0.7522411", "0.72525877", "0.71490693", "0.7139798", "0.7116947", "0.7075085", "0.7013472", "0.6983943", "0.6983943", "0.6983943", "0.6983943", "0.6922267", "0.6922267", "0.6922267", "0.6903884", "0.68955815", "0.68686926", "0.678937", "0.6747699", "0.6747193",...
0.7133939
5
calculate area of intersection
def GagE(atZ9: torch.Tensor, iXlf: torch.Tensor): aRCp = atZ9.unsqueeze(-1).repeat([1, 1, 1, 2]) se2i = ht2j.gather(iXlf, 2, aRCp) wjRY = se2i[:, :, 0:-1, 0] * se2i[:, :, 1:, 1] - se2i[:, :, 0:-1, 1] * se2i[:, :, 1:, 0] wjRY = ht2j.sum(wjRY, dim=2) f0tD = ht2j.abs(wjRY) / 2 return (f0tD, se2i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0tD(YKHO):\n k0lF, tjUW, Nq1b = YKHO.vertices\n return epAf.fabs((k0lF[0] - Nq1b[0]) * (tjUW[1] - k0lF[1]) - (k0lF[0] - tjUW[0]) * (Nq1b[1] - k0lF[1])) / 2", "def zRv5(jzdc, Fg_i):\n BQGg = max(jzdc[0], Fg_i[0])\n h3cg = max(jzdc[1], Fg_i[1])\n bYzl = min(jzdc[2], Fg_i[2])\n Z3uP = min(jzd...
[ "0.76138973", "0.75311255", "0.75156575", "0.7431996", "0.7367429", "0.7305787", "0.726982", "0.7213531", "0.71808887", "0.7141783", "0.7137519", "0.7121894", "0.71089166", "0.7093111", "0.70834345", "0.70720935", "0.70635766", "0.7062291", "0.7042111", "0.70384246", "0.70265...
0.0
-1
calculated 3d GIoU loss. assume the 3d bounding boxes are only rotated around z axis
def IJbv(WKdd: torch.Tensor, yxXC: torch.Tensor, Kc0k: str='smallest'): YEqQ, LLSR, O66f, kDcG, YW2A = eQWy(WKdd, yxXC, verbose=True) yzQ0, MKlR = FZqb(LLSR, O66f, Kc0k) lnXf = kDcG * yzQ0 * MKlR A6ch = 1.0 - YEqQ + (lnXf - YW2A) / lnXf return (A6ch, YEqQ)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eQWy(WKdd: torch.Tensor, yxXC: torch.Tensor, PJWX=False):\n knvf = WKdd[..., [0, 1, 3, 4, 6]]\n IkxF = yxXC[..., [0, 1, 3, 4, 6]]\n j5RK = WKdd[..., 2] + WKdd[..., 5] * 0.5\n jqIj = WKdd[..., 2] - WKdd[..., 5] * 0.5\n By6e = yxXC[..., 2] + yxXC[..., 5] * 0.5\n jfs9 = yxXC[..., 2] - yxXC[..., ...
[ "0.6178679", "0.60957336", "0.60666823", "0.5996215", "0.58940995", "0.586648", "0.5841899", "0.58143175", "0.58047104", "0.57690954", "0.57544655", "0.57505167", "0.57084596", "0.5674179", "0.56441736", "0.5632535", "0.5621907", "0.56095177", "0.5608316", "0.56011176", "0.55...
0.6865947
0
pytorch edition of tensorflow scatter_nd. this function don't contain except handle code. so use this carefully when indice repeats, don't support repeat add which is supported in tensorflow.
def xl7E(_0VL, Vhxs, ROpF): U5bT = ht2j.zeros(*ROpF, dtype=Vhxs.dtype, device=Vhxs.device) qC1Y = _0VL.shape[-1] oLRV = list(_0VL.shape[:-1]) + ROpF[_0VL.shape[-1]:] pmM4 = _0VL.view(-1, qC1Y) SuPp = [pmM4[:, YRbF] for YRbF in range(qC1Y)] SuPp += [Ellipsis] U5bT[SuPp] = Vhxs.view(*oLRV) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Z3zE(d6pt, QdZT, ROpF):\n return g9WI(ROpF)(d6pt, QdZT)", "def LuyN(YKHO, input, tpio, d6pt, zZcM):\n pass", "def wR4G(YKHO, g4y1, B2fa, vqnT, tpio):\n if len(g4y1) == 1:\n g4y1 = g4y1[0]\n qqgr = int(epAf.ceil(len(g4y1) * 1.0 / len(vqnT)))\n g4y1 = [[g4y1[YRbF:YRbF + qqgr]] for YRbF ...
[ "0.71381027", "0.70660245", "0.68830806", "0.6767841", "0.64564246", "0.6430529", "0.6312783", "0.6304013", "0.6230545", "0.6218434", "0.6142077", "0.61301625", "0.6117533", "0.60943884", "0.60930943", "0.60928154", "0.60612434", "0.60463655", "0.60455", "0.6028117", "0.60004...
0.64684904
4
Create Bounds Object from Dictionary
def pktP(Emd4, nPrm): return Emd4(nPrm['x0'], nPrm['y0'], nPrm['x1'], nPrm['y1'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, X7zS: BoundsItemsDictType):\n YKHO.bounds = X7zS", "def eSc6(YDX_):\n f1MF = -90\n VrYd = 90\n lVg_ = -180\n ZarI = 180\n for fGC9 in YDX_:\n if fGC9['lat'] > f1MF:\n f1MF = fGC9['lat']\n elif fGC9['lat'] < VrYd:\n VrYd = fGC9['lat']\n i...
[ "0.7221714", "0.6703894", "0.6540699", "0.6464769", "0.64547616", "0.64355403", "0.6386296", "0.631264", "0.6254632", "0.6245169", "0.6180031", "0.6163009", "0.6126791", "0.6125733", "0.61080945", "0.60555875", "0.5975096", "0.5974456", "0.59715235", "0.5958133", "0.5949107",...
0.698287
1
Whether 'other' Bounds is subset of 'this' Bounds
def NXBu(YKHO, Elif): return YKHO.x0 >= Elif.x0 and YKHO.y0 >= Elif.y0 and (YKHO.x1 <= Elif.x1) and (YKHO.y1 <= Elif.y1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cNf9(YKHO, Elif):\n return YKHO.x0 <= Elif.x0 and YKHO.y0 <= Elif.y0 and (YKHO.x1 >= Elif.x1) and (YKHO.y1 >= Elif.y1)", "def cNf9(YKHO, Elif):\n return YKHO.x0 <= Elif.x0 and YKHO.y0 <= Elif.y0 and (YKHO.x1 >= Elif.x1) and (YKHO.y1 >= Elif.y1)", "def PZIW(YKHO, x9TJ):\n if not isinstance(x9TJ, P9...
[ "0.8056177", "0.8056177", "0.7866803", "0.78152287", "0.7462867", "0.742469", "0.742469", "0.72253406", "0.7195538", "0.7174862", "0.714669", "0.704792", "0.7026491", "0.7026491", "0.6988914", "0.69776857", "0.6961932", "0.6954738", "0.6948596", "0.69446564", "0.69318354", ...
0.87011415
0
Whether 'other' Bounds is superset of 'this' Bounds
def cNf9(YKHO, Elif): return YKHO.x0 <= Elif.x0 and YKHO.y0 <= Elif.y0 and (YKHO.x1 >= Elif.x1) and (YKHO.y1 >= Elif.y1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NXBu(YKHO, Elif):\n return YKHO.x0 >= Elif.x0 and YKHO.y0 >= Elif.y0 and (YKHO.x1 <= Elif.x1) and (YKHO.y1 <= Elif.y1)", "def NXBu(YKHO, Elif):\n return YKHO.x0 >= Elif.x0 and YKHO.y0 >= Elif.y0 and (YKHO.x1 <= Elif.x1) and (YKHO.y1 <= Elif.y1)", "def PZIW(YKHO, x9TJ):\n if not isinstance(x9TJ, P9...
[ "0.8017775", "0.8017775", "0.75642896", "0.74294454", "0.73253816", "0.70941436", "0.70631075", "0.70631075", "0.70631075", "0.70503634", "0.69881153", "0.69852114", "0.6979228", "0.6955427", "0.6954523", "0.6954523", "0.6951911", "0.69362843", "0.6927677", "0.68953085", "0.6...
0.8527508
0
Whether 'other' bounds equals 'this' bounds
def aPi6(YKHO, Elif): return YKHO.x0 == Elif.x0 and YKHO.y0 == Elif.y0 and (YKHO.x1 == Elif.x1) and (YKHO.y1 == Elif.y1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ufiu(YKHO, Elif):\n return YKHO.left <= Elif.left and YKHO.right >= Elif.right and (YKHO.top >= Elif.top) and (YKHO.bottom <= Elif.bottom)", "def NXBu(YKHO, Elif):\n return YKHO.x0 >= Elif.x0 and YKHO.y0 >= Elif.y0 and (YKHO.x1 <= Elif.x1) and (YKHO.y1 <= Elif.y1)", "def NXBu(YKHO, Elif):\n return...
[ "0.8012173", "0.78033257", "0.78033257", "0.7587375", "0.74656737", "0.74553686", "0.7397303", "0.7396646", "0.7396646", "0.7328481", "0.7328481", "0.73154026", "0.7312965", "0.7302327", "0.72660923", "0.72396445", "0.72240156", "0.7217382", "0.7217382", "0.72125727", "0.7179...
0.80570936
0
Export Bounds as Dict Returns
def dict(YKHO): return {'x0': YKHO.x0, 'y0': YKHO.y0, 'x1': YKHO.x1, 'y1': YKHO.y1}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def X7zS(YKHO):\n return YKHO['bounds']", "def X7zS(X94B):\n nalj = fiFY(X94B).get('L1_METADATA_FILE')\n U34r = {'sceneid': X94B}\n U34r['bounds'] = vq6n._get_bounds_from_metadata(nalj['PRODUCT_METADATA'])\n return U34r", "def zycp(Ux0P, Sr1k):\n raise NotImplementedError", "def UMN4(YKHO):...
[ "0.71554804", "0.66678774", "0.66601366", "0.66232526", "0.6546622", "0.6536512", "0.6536512", "0.6536512", "0.6536512", "0.6536512", "0.6536512", "0.6536512", "0.64346147", "0.64319426", "0.6427427", "0.6392605", "0.63676685", "0.63639176", "0.6339601", "0.6339601", "0.63224...
0.5973862
49
Initialize the API and store the auth so we can make requests.
def FIMM(YKHO, Jpbe: Request): YKHO.auth = Jpbe
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.key = nNXP['key']\n YKHO.secret = nNXP['secret']\n YKHO._host = nNXP['host']\n YKHO._auth = YKHO._authenticate()", "def FIMM(YKHO, NtEF, jTXt):\n YKHO.api = fyIx(NtEF, jTXt)", "def DbxN(qFr9):\n nNXP = ExMO()\n return R3LI.wrap(nNXP, qFr9)", "def DbxN(qFr9):\n n...
[ "0.7918946", "0.73649186", "0.7272313", "0.7272313", "0.7272313", "0.7217282", "0.7194392", "0.7188218", "0.71661973", "0.7155031", "0.71420354", "0.71241003", "0.70917696", "0.7062944", "0.7050521", "0.7023457", "0.70058775", "0.6990646", "0.6982363", "0.6982363", "0.6980214...
0.0
-1
Create a BlobClient for the given path. First see if a ``blob_url`` was configured. Otherwise fall back to ``container_url`` or credentials.
def nM9f(YKHO, pmON: str) -> fChR: if YKHO.blob_url: s2Oj = fChR.from_blob_url(YKHO.blob_url) if s2Oj.blob_name != pmON: raise ValueError('Invalid path for the configured SAS blob URL') return s2Oj wDee = YKHO._create_container_client() return wDee.get_blob_client(pmON)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yFA2(YKHO, G1wx: str, zvSV: str) -> fChR:\n return YKHO.blob_service_client.get_blob_client(container=G1wx, blob=zvSV)", "def yFA2(YKHO, G1wx: str, zvSV: str) -> JCma:\n return YKHO.blob_service_client.get_blob_client(container=G1wx, blob=zvSV)", "def rLz5(YKHO) -> Z5Gx:\n if YKHO.container_url:\n...
[ "0.6664336", "0.6553526", "0.6531411", "0.6149875", "0.60988235", "0.58965075", "0.5755103", "0.5661156", "0.56183434", "0.5467109", "0.5439795", "0.5417114", "0.54169244", "0.53207713", "0.52731323", "0.52622944", "0.5191366", "0.5188347", "0.5167468", "0.5117642", "0.509939...
0.8418134
0
Feature exctraction VGG16 model.
def EkVO(fhcK, _mSQ='imagenet'): assert isinstance(fhcK, list), "First argument 'layers' must be a list" assert len(fhcK) > 1, "Length of 'layers' must be > 1." rvDU = HxRh(include_top=False, weights=_mSQ) aRW5 = [rvDU.get_layer(gEmA).output for gEmA in fhcK] m6Jf = wOed(inputs=[rvDU.input], outputs...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a7Lb(jTqs=10):\n C3ST = s3br(_Fei['vgg16'], jTqs)\n return C3ST", "def ZsU2(jTqs=10):\n C3ST = s3br(_Fei['vgg13'], jTqs)\n return C3ST", "def a7Lb(**B2fa):\n C3ST = s3br(AaDq(_Fei['D']), **B2fa)\n return C3ST", "def a7Lb():\n return s3br(AaDq(_Fei['D']))", "def ZsU2():\n return ...
[ "0.78551537", "0.78129417", "0.77380073", "0.7712233", "0.77063894", "0.7669565", "0.76620597", "0.75709593", "0.75438803", "0.74198264", "0.7377566", "0.73745155", "0.7368403", "0.73538035", "0.7345822", "0.73352903", "0.73099256", "0.72946084", "0.7288438", "0.72832596", "0...
0.75573367
8
Calculate gram matrix used in style loss
def Bg4l(WKvO): assert nMvt.ndim(WKvO) == 4, 'Input tensor should be a 4d (B, H, W, C) tensor' assert nMvt.image_data_format() == 'channels_last', 'Please use channels-last format' WKvO = nMvt.permute_dimensions(WKvO, (0, 3, 1, 2)) ROpF = nMvt.shape(WKvO) tjUW, Nq1b, C7Ls, XcU5 = (ROpF[0], ROpF[1], ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WrBd(YKHO, YoQM: torch.Tensor) -> ht2j.Tensor:\n Bg4l = ht2j.einsum('nchw,ndhw->ncd', YoQM, YoQM)\n return Bg4l", "def Bg4l(LVAh):\n Fg_i, Npgh, MKlR, yzQ0 = LVAh.size()\n bySB = LVAh.view(Fg_i, Npgh, yzQ0 * MKlR)\n DfI5 = bySB.transpose(1, 2)\n CG35 = bySB.bmm(DfI5) / (Npgh * MKlR * yzQ0)\...
[ "0.6919008", "0.68663883", "0.6844549", "0.6835758", "0.6831353", "0.6830533", "0.6696093", "0.6685673", "0.6661188", "0.6632113", "0.6622442", "0.6591349", "0.6557669", "0.654529", "0.6540242", "0.6483965", "0.6416165", "0.64118665", "0.6381871", "0.6350728", "0.6348301", ...
0.60919434
35
True si l'utilisateur peut administrer ce groupe
def jR05(YKHO, HqGU): if YKHO.is_staff: return True if HqGU.administrateur == YKHO: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hGmy(CBIr, eULy):\n if not CBIr.is_authenticated():\n return False\n if CBIr.is_superuser:\n return True\n if CBIr.groups.filter(name=eULy).exists():\n return True\n return False", "def LLkR(YKHO):\n if hasattr(YKHO, 'user'):\n if YKHO.user.groups.filter(name='Admin...
[ "0.75136006", "0.7117969", "0.7116446", "0.7086864", "0.70444053", "0.7033918", "0.6990206", "0.68130493", "0.67908716", "0.67477524", "0.67430377", "0.67188925", "0.67110515", "0.6701001", "0.6698815", "0.66546744", "0.6617885", "0.6615269", "0.656962", "0.65239394", "0.6517...
0.810503
0
Build MAC ACL mask data with hexstring format
def hv_p(ASLW='', jBcY='', gKKg=''): return '{:0>12}{:0>12}{:0>4}'.format(ASLW, jBcY, gKKg).rstrip('0')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Pp4r(m6Me: str) -> str:\n if m6Me.endswith(':'):\n wZd5 = m6Me.replace(':', '')\n m6Me = '{flat_raw}{zeros_stuffed}'.format(flat_raw=wZd5, zeros_stuffed='0' * (12 - len(wZd5)))\n return str(rRqV(m6Me, dialect=SwT4))", "def rMgE(Emd4, HXjy: str) -> bytes:\n fkkR = hy4R.parse_mac_address...
[ "0.68584365", "0.65307057", "0.6475913", "0.63909405", "0.63325787", "0.6318961", "0.6273743", "0.626484", "0.6243389", "0.6243389", "0.6206189", "0.6142185", "0.6117573", "0.6103242", "0.6090281", "0.6083187", "0.6075727", "0.6075599", "0.6048075", "0.60434", "0.60434", "0...
0.7205727
0
Calculate the Intersection over Union (IoU) of two bounding boxes.
def plrc(HIlM, c8bw): assert HIlM['x1'] < HIlM['x2'] assert HIlM['y1'] < HIlM['y2'] assert c8bw['x1'] < c8bw['x2'] assert c8bw['y1'] < c8bw['y2'] sA0R = max(HIlM['x1'], c8bw['x1']) YijY = max(HIlM['y1'], c8bw['y1']) Kphd = min(HIlM['x2'], c8bw['x2']) sIW6 = min(HIlM['y2'], c8bw['y2']) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m8gd(MErA, ZnGJ):\n ZFgS = max(0, min(MErA.right, ZnGJ.right) - max(MErA.left, ZnGJ.left))\n rfRS = max(0, min(MErA.bottom, ZnGJ.bottom) - max(MErA.top, ZnGJ.top))\n iQin = ZFgS * rfRS\n bzU2 = (MErA.right - MErA.left) * (MErA.bottom - MErA.top)\n Eq1k = (ZnGJ.right - ZnGJ.left) * (ZnGJ.bottom -...
[ "0.8567377", "0.84458977", "0.84361875", "0.8373177", "0.8345505", "0.825502", "0.8207689", "0.8161866", "0.8150562", "0.81355745", "0.8126437", "0.81243724", "0.8106401", "0.80822796", "0.8045387", "0.80350775", "0.8025099", "0.8010856", "0.800743", "0.7993788", "0.7983865",...
0.8118916
12
View function for home page of site.
def d6pt(QePW): z3Eu = dl5x.objects.all().count() Ep5Y = dfSM.objects.all().count() M58r = dfSM.objects.filter(status__exact='a').count() nM65 = o763.objects.count() RTwz = QePW.session.get('num_visits', 0) QePW.session['num_visits'] = RTwz + 1 VjQf = ['Kothe', 'magically', 'trebon', 'Wind',...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy(QePW):\n return _1tc(QePW, 'base/home.html')", "def C_QL():\n return TvZl('home.html')", "def kZiy(QePW):\n return _1tc(QePW, 'core/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def nspo(QePW):\n return _1tc(QePW, 'generic/home.html')", "def kZiy():\n ...
[ "0.8521128", "0.8379754", "0.8353459", "0.83415544", "0.83415544", "0.83171177", "0.830583", "0.8298624", "0.8296122", "0.8263442", "0.8224959", "0.8217078", "0.8206788", "0.81901366", "0.81901366", "0.8182092", "0.8176577", "0.81756383", "0.8147583", "0.81347877", "0.8134787...
0.0
-1
Attempt to automatically figure out the distribution if it's not specified. 1) If the values are set, assume categorical. 2) If the min and max are floats, assume uniform. 3) If the min and max are ints, assume int_uniform.
def YWrD(YKHO, GPtr, _N6A): if 'values' in GPtr: YKHO.type = bAse.CATEGORICAL YKHO.values = GPtr['values'] elif 'min' in GPtr: if not 'max' in GPtr: raise ValueError('Need to have a max with a min or specify the distribution for parameter {}'.format(_N6A)) YKHO.min = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OSdm(ONUA: int, **B2fa) -> uLKX[float, gyIm]:\n if B2fa['distribution_type'] == 'bolstered':\n return dpPz(B2fa['min_value'], B2fa['max_value'], ONUA, B2fa['bolster_fraction'], B2fa['bolster_width'])\n elif B2fa['distribution_type'] == 'uniform':\n return oyIN.random.uniform(B2fa['min_value...
[ "0.69145495", "0.64872324", "0.61907935", "0.61401194", "0.5966836", "0.5965953", "0.58256", "0.58002144", "0.57801837", "0.5753963", "0.57514954", "0.5734694", "0.57280254", "0.57181", "0.56954926", "0.5681717", "0.5676899", "0.5669686", "0.5664481", "0.5659041", "0.5627372"...
0.6893064
1
Gets the power_capacity_kw of this StorageUnit.
def hLSq(YKHO) -> float: return YKHO._power_capacity_kw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hLSq(YKHO, hLSq: float):\n YKHO._power_capacity_kw = hLSq", "def MLIQ(YKHO) -> float:\n return YKHO._energy_capacity_k_wh", "def PcaU(YKHO):\n return SAs9.allocated_capacity_weight_multiplier", "def PcaU(YKHO):\n return SAs9.capacity_weight_multiplier", "def BSas(YKHO) -> h8nf[qe4Y.Input[st...
[ "0.7490282", "0.7379608", "0.7057378", "0.6947906", "0.6864151", "0.68563265", "0.67288136", "0.6657925", "0.6654858", "0.66471064", "0.66009915", "0.6542061", "0.6542061", "0.64735216", "0.6444971", "0.6439443", "0.6415691", "0.64143664", "0.63976854", "0.634816", "0.634816"...
0.88632977
0
Gets the energy_capacity_k_wh of this StorageUnit.
def MLIQ(YKHO) -> float: return YKHO._energy_capacity_k_wh
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JMJl(YKHO):\n return YKHO._energy_kwh", "def MLIQ(YKHO, MLIQ: float):\n YKHO._energy_capacity_k_wh = MLIQ", "def hLSq(YKHO) -> float:\n return YKHO._power_capacity_kw", "def VYvU(YKHO) -> int:\n return YWvJ(int, YKHO.get_value('kwh'))", "def UML0(YKHO) -> f9X8:\n return YKHO._heat_capaci...
[ "0.78060967", "0.7561899", "0.7164061", "0.69990754", "0.6943489", "0.66401696", "0.6610497", "0.6603869", "0.6601592", "0.65147835", "0.64923817", "0.6491625", "0.64734817", "0.6412643", "0.6355048", "0.6355048", "0.63446224", "0.6274287", "0.62147236", "0.62147236", "0.6214...
0.89147806
0
Sets the energy_capacity_k_wh of this StorageUnit.
def MLIQ(YKHO, MLIQ: float): YKHO._energy_capacity_k_wh = MLIQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MLIQ(YKHO) -> float:\n return YKHO._energy_capacity_k_wh", "def hLSq(YKHO, hLSq: float):\n YKHO._power_capacity_kw = hLSq", "def JMJl(YKHO):\n return YKHO._energy_kwh", "def hLSq(YKHO) -> float:\n return YKHO._power_capacity_kw", "def V8m2(YKHO):\n YKHO.heat_capacity = None", "def UML0...
[ "0.7501581", "0.65803385", "0.6358084", "0.6055518", "0.59716046", "0.5937028", "0.588298", "0.58387053", "0.5829974", "0.5796287", "0.56896776", "0.5678245", "0.5675355", "0.5538268", "0.55325705", "0.5488274", "0.5437821", "0.54366976", "0.5421006", "0.54193234", "0.5418492...
0.89024574
0
Gets the inefficiency_rate_per_cent of this StorageUnit.
def yGZr(YKHO) -> float: return YKHO._inefficiency_rate_per_cent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yGZr(YKHO, yGZr: float):\n YKHO._inefficiency_rate_per_cent = yGZr", "def Mo1Z(YKHO) -> float:\n return YKHO._per_unit", "def EMM6(YKHO):\n return qdHh.load(YKHO.get('PerUnitPrice'))", "def CAsP(YKHO) -> int:\n return qe4Y.get(YKHO, 'rate_in_mbps')", "def BvHE(YKHO):\n return float(YKHO....
[ "0.7376336", "0.66733", "0.6578307", "0.64751613", "0.6473599", "0.6394175", "0.63222766", "0.63079035", "0.61849844", "0.6155363", "0.61351645", "0.61351645", "0.6125028", "0.6120943", "0.6120943", "0.60805786", "0.6044146", "0.6040317", "0.6040317", "0.60254526", "0.6013157...
0.8957331
0
Gets the initial_so_c_per_cent of this StorageUnit.
def MmFT(YKHO) -> float: return YKHO._initial_so_c_per_cent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HI8G(YKHO) -> float:\n return YKHO._final_so_c_per_cent", "def MmFT(YKHO, MmFT: float):\n YKHO._initial_so_c_per_cent = MmFT", "def yGZr(YKHO) -> float:\n return YKHO._inefficiency_rate_per_cent", "def Mo1Z(YKHO) -> float:\n return YKHO._per_unit", "def VILg(YKHO):\n return YKHO.metric_b...
[ "0.7758605", "0.77235085", "0.62836254", "0.62086946", "0.6195571", "0.61932564", "0.61782557", "0.61759025", "0.6131424", "0.6024866", "0.6007752", "0.6007752", "0.6007752", "0.6007752", "0.6007752", "0.6007752", "0.5998376", "0.59710145", "0.59499663", "0.59197223", "0.5906...
0.889008
0
Gets the final_so_c_per_cent of this StorageUnit.
def HI8G(YKHO) -> float: return YKHO._final_so_c_per_cent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MmFT(YKHO) -> float:\n return YKHO._initial_so_c_per_cent", "def HI8G(YKHO, HI8G: float):\n YKHO._final_so_c_per_cent = HI8G", "def yGZr(YKHO) -> float:\n return YKHO._inefficiency_rate_per_cent", "def wjRY(YKHO):\n return 10.0", "def Mo1Z(YKHO) -> float:\n return YKHO._per_unit", "def...
[ "0.8031364", "0.7736081", "0.6725983", "0.6458372", "0.6457282", "0.64207685", "0.6298959", "0.62515014", "0.6248196", "0.62424964", "0.6219054", "0.62114275", "0.61613333", "0.6161065", "0.61583734", "0.6148457", "0.6148457", "0.61444867", "0.6140025", "0.61387604", "0.61290...
0.9002118
0
Sets the final_so_c_per_cent of this StorageUnit.
def HI8G(YKHO, HI8G: float): YKHO._final_so_c_per_cent = HI8G
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HI8G(YKHO) -> float:\n return YKHO._final_so_c_per_cent", "def MmFT(YKHO, MmFT: float):\n YKHO._initial_so_c_per_cent = MmFT", "def MmFT(YKHO) -> float:\n return YKHO._initial_so_c_per_cent", "def wzhh(YKHO, BWXx):\n YKHO._cent = BWXx", "def yGZr(YKHO, yGZr: float):\n YKHO._inefficiency_...
[ "0.75512946", "0.73119825", "0.6940214", "0.5849191", "0.57257223", "0.5594835", "0.54829586", "0.5455041", "0.54361725", "0.5381043", "0.52804816", "0.52694565", "0.5253122", "0.52461296", "0.51861244", "0.5145029", "0.51399004", "0.51362705", "0.51362705", "0.51362705", "0....
0.87763697
0
Gets the location of this StorageUnit.
def Rci7(YKHO) -> _JMH: return YKHO._location
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d_NA(YKHO):\n return YKHO._storage_location", "def tUHy(YKHO):\n return YKHO.bucket", "def d_NA(YKHO):\n return YKHO.file.uri", "def hbd3(YKHO):\n return YKHO.__location", "def hbd3(YKHO):\n return YKHO._location", "def hbd3(YKHO):\n return YKHO.location", "def d_NA(YKHO) -> qe4Y....
[ "0.7972597", "0.7660972", "0.7572246", "0.7333292", "0.73139274", "0.72305197", "0.71937364", "0.71819824", "0.7167322", "0.71445435", "0.71445435", "0.71445435", "0.7121676", "0.7121676", "0.7121676", "0.7121676", "0.7121676", "0.71141505", "0.7100658", "0.7100658", "0.71006...
0.6993495
70
Sets the location of this StorageUnit.
def Rci7(YKHO, Rci7: Location): if Rci7 is None: raise ValueError('Invalid value for `location`, must not be `None`') YKHO._location = Rci7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YK7p(YKHO, Rci7):\n YKHO._location = Rci7", "def Rci7(YKHO, Rci7: str):\n YKHO._location = Rci7", "def Rci7(YKHO, Rci7: str):\n YKHO._location = Rci7", "def Rci7(YKHO, Rci7):\n YKHO._location = Rci7", "def MtGr(YKHO, Rci7):\n YKHO._location = Rci7", "def Rci7(YKHO, Rci7: str):\n YKH...
[ "0.7410566", "0.7304558", "0.7304558", "0.72945505", "0.72808355", "0.7266465", "0.72577214", "0.7212898", "0.7212898", "0.7212898", "0.7212898", "0.7212898", "0.7210858", "0.7210858", "0.7210858", "0.7210858", "0.7210858", "0.7210858", "0.7210858", "0.7210858", "0.7210858", ...
0.650967
34
Displays statistics on the most frequent times of travel.
def dWJR(jQ3Z, x0eS, CjKC): print('\nCalculating The Most Frequent Times of Travel...\n') SWox = ITS7.time() tySu = {1: 'January', 2: 'Ferbruary', 3: 'March', 4: 'April', 5: 'May', 6: 'June'} rlNI = {0: '12 am', 1: '1 am', 2: '2 am', 3: '3 am', 4: '4 am', 5: '5 am', 6: '6 am', 7: '7 am', 8: '8 am', 9: '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dWJR(jQ3Z):\n print('\\nCalculating The Most Frequent Times of Travel...\\n')\n SWox = ITS7.time()\n print('The most common month of travel is: {} '.format(jQ3Z.Month.mode()[0]))\n print('The most common day of travel is: {} '.format(jQ3Z.Day.mode()[0]))\n print('The most common hour of travel i...
[ "0.79996175", "0.7920857", "0.7891767", "0.78612196", "0.785926", "0.7838814", "0.779974", "0.77848285", "0.7735119", "0.7723049", "0.771342", "0.7708436", "0.770453", "0.77017164", "0.7689714", "0.7685842", "0.7680146", "0.76788265", "0.76721054", "0.7661351", "0.7660023", ...
0.0
-1
Displays statistics on the most popular stations and trip.
def Huc_(jQ3Z): print('\nCalculating The Most Popular Stations and Trip...\n') SWox = ITS7.time() fXxm = jQ3Z['Start Station'].mode()[0] print('The most common starting station was:\n{}.\n'.format(fXxm)) _ifG = jQ3Z['End Station'].mode()[0] print('The most common station of arrival was:\n{}.\n'....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations and Trip...\\n')\n SWox = ITS7.time()\n v6Be(jQ3Z)\n BeYU(jQ3Z)\n O6Ct(jQ3Z)\n print('\\nThis took %s seconds.' % (ITS7.time() - SWox))\n print('-' * 40)", "def Huc_(jQ3Z):\n print('\\nCalculating The Most Popular Stations ...
[ "0.7665365", "0.76264536", "0.7610902", "0.75852126", "0.7576492", "0.7567089", "0.75577486", "0.7538181", "0.75294757", "0.7502035", "0.74997437", "0.7496321", "0.74872565", "0.74840283", "0.7475714", "0.7472988", "0.7437631", "0.74366206", "0.7433223", "0.7428372", "0.74269...
0.0
-1
Displays statistics on the total and average trip duration.
def kDMA(jQ3Z): print('\nCalculating Trip Duration...\n') SWox = ITS7.time() _9QD = jQ3Z['Trip Duration'].sum() SNCL = 31536000 V17V = 86400 dHNC = 3600 LNbv = 60 COJc = _9QD // SNCL eF2d = _9QD % SNCL NPEH = eF2d // V17V _EL1 = eF2d % V17V kEAJ = _EL1 // dHNC JoRy = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kDMA(dMlt):\n print('\\nCalculating Trip Duration...\\n')\n SWox = ITS7.time()\n qZ1g = dMlt['Trip Duration'].sum()\n print('The total travel time is ', qZ1g, ' seconds.')\n NPSF = dMlt['Trip Duration'].mean()\n print('The average travel time is ', NPSF, ' seconds.')\n print('\\nThis took ...
[ "0.8251978", "0.81471264", "0.80965656", "0.80127156", "0.7987783", "0.79834235", "0.7978646", "0.79705906", "0.7965226", "0.79636025", "0.79616374", "0.79614663", "0.79523134", "0.7948989", "0.79445267", "0.7937707", "0.7923821", "0.792045", "0.79198813", "0.7918623", "0.791...
0.0
-1
Converts a dict with phone numbers as keys and inbound messages as arrays for values into an array with just scores from 010, including any scores with decimal places.
def Eg6l(YPtW): cCrA = [] for DjQk in YPtW.values(): for Ol8d in DjQk: p1kx = ZbWC.match('\\d+(\\.\\d{1,2})?', Ol8d) if p1kx: cCrA.append(round(float(p1kx.group()))) break return cCrA
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Hu4v(cCrA: np.ndarray) -> oyIN.ndarray:\n return cCrA", "def cGFz(Emd4, cCrA):\n for bGrB, kMJ5 in cCrA.items():\n kMJ5['confidence'] = int(round(kMJ5['scores']['final']))\n kMJ5['scores']['lexer'] = round(kMJ5['scores']['lexer'], 3)\n kMJ5['scores']['bayes'] = round(kMJ5['scores']...
[ "0.6073913", "0.58398825", "0.5611886", "0.5586418", "0.55178297", "0.5457158", "0.544816", "0.5432871", "0.54205644", "0.5396718", "0.5380346", "0.536263", "0.53552", "0.5353236", "0.53393364", "0.5338607", "0.53330463", "0.5329545", "0.5307397", "0.52379155", "0.52298135", ...
0.65702397
0
Show the homepage for the app. Users who are not logged in see login/Signup version, logged in users see their username on navbar
def IC8O(B2Dn): z2kz = [i34x.post_id for i34x in jwfB.query.all()] if B2Dn % 5 == 0 or (B2Dn == 1 and len(jwfB.query.all()) < B2Dn * 20): try: FvVY = SLSd.subreddit('ListenToThis').hot(limit=B2Dn * 25) except GX9K: return TvZl('reddit_error.html') for m8z6 in FvVY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kZiy():\n NtEF = QePW.cookies.get('username')\n if NtEF:\n return TvZl('home.html', username=NtEF)\n return TvZl('home.html')", "def _NDK():\n if 'username' in cuiw:\n return vKnz('/top-melons')\n else:\n return TvZl('homepage.html')", "def IC8O():\n if cuiw.get('user...
[ "0.78925633", "0.785091", "0.77984005", "0.7680599", "0.7538349", "0.753747", "0.74928105", "0.7487609", "0.74449116", "0.7441396", "0.74347836", "0.739459", "0.73657763", "0.73600185", "0.73314434", "0.73284847", "0.7307192", "0.73061097", "0.7276955", "0.7253285", "0.723864...
0.0
-1
Add song with given ID to playlist with given ID
def pVNq(pUWl, Ns3P): if not Oa1e.user: Dwep('Log in to add songs', 'warning') return vKnz('/login') de_U = QePW.referrer NvAR = gfdD.query.get_or_404(pUWl) if NvAR.user != Oa1e.user: Dwep('Using the url to try to change other users playlists?? How rude', 'danger') return...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QVyL(aw0L):\n H4yH.user_playlist_add_tracks('legosail2424', DVw8, [aw0L])", "def H2v5(NvAR, i34x):\n pass", "def duLI(YKHO, RJf3, DYeJ):\n print('add_to_playlist needs implementation')", "def kt8Q(YKHO, tXZk, lHob=None):\n if lHob == None:\n YKHO.songs_list.append(tXZk)\n else:\n ...
[ "0.8407005", "0.81771433", "0.8006248", "0.7964654", "0.7823708", "0.7638868", "0.75250566", "0.7409208", "0.7364802", "0.73383087", "0.7333629", "0.7328164", "0.73263353", "0.73215866", "0.7270019", "0.7260924", "0.72260725", "0.7218911", "0.7193381", "0.71931696", "0.719058...
0.7443037
7
Function to check the status of the current user's access token
def HL13(): w2IS = 'https://api.spotify.com/v1/me' MOPg = {'Authorization': 'Bearer' + Oa1e.user.spotify_token} geh0 = G4JS.get(w2IS, headers=MOPg) nPrm = qQXR.loads(geh0.text) if 'error' in nPrm: GQl3() else: return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def clNo():\n if not 'accessToken' in QePW.json.keys():\n return False\n hAVj = p9bx.connect()\n Z9rn = hAVj.cursor()\n Z9rn.execute('SELECT COUNT(*) FROM activeAccessTokens WHERE accessToken=:accessToken', {'accessToken': QePW.json['accessToken']})\n Mkmy = Z9rn.fetchone()\n if Mkmy[0] ==...
[ "0.7335381", "0.7115682", "0.7002917", "0.69802177", "0.6909315", "0.6862493", "0.676524", "0.6762271", "0.6744081", "0.6741229", "0.6721494", "0.67013425", "0.6677643", "0.66627645", "0.66192555", "0.6597794", "0.656041", "0.6493189", "0.6477937", "0.6471146", "0.6438774", ...
0.65289617
17
Test the HarmonicOscillator.get_enthalpy() method using a set of quantum oscillators.
def kLaf(YKHO): YKHO.mode.quantum = True Wqkv = oyIN.array([300, 500, 1000, 1500, 2000]) LlGO = oyIN.array([0.280395, 0.63731, 1.30209, 1.70542, 1.96142]) * uwaB.R * Wqkv for ovGo, Yt9O in zip(Wqkv, LlGO): bxDg = YKHO.mode.get_enthalpy(ovGo) YKHO.assertAlmostEqual(Yt9O, bxDg, delta=0.000...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cvCG(YKHO):\n YKHO.mode.quantum = False\n Wqkv = oyIN.array([300, 500, 1000, 1500, 2000])\n LlGO = oyIN.array([3, 3, 3, 3, 3]) * uwaB.R * Wqkv\n for ovGo, Yt9O in zip(Wqkv, LlGO):\n bxDg = YKHO.mode.get_enthalpy(ovGo)\n YKHO.assertAlmostEqual(Yt9O, bxDg, delta=0.0001 * Yt9O)", "def ...
[ "0.7726975", "0.6646764", "0.648558", "0.6266244", "0.6094109", "0.5970699", "0.5967667", "0.5888977", "0.5883332", "0.58539534", "0.57581896", "0.57329977", "0.56981033", "0.5681655", "0.5591345", "0.5552362", "0.5550302", "0.5537873", "0.5457873", "0.54429215", "0.54126614"...
0.81222934
0
Test that a HarmonicOscillator object can be reconstructed from its repr() output with no loss of information.
def H4zp(YKHO): _63S = {} exec('mode = {0!r}'.format(YKHO.mode), globals(), _63S) YKHO.assertIn('mode', _63S) Tuqy = _63S['mode'] YKHO.assertEqual(YKHO.mode.frequencies.value.shape, Tuqy.frequencies.value.shape) for mOc_, QTg7 in zip(YKHO.mode.frequencies.value, Tuqy.frequencies.value): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H4zp(YKHO):\n VXAY = Gkmu(duration=25, amp=0.7, sigma=4, angle=0.3)\n YKHO.assertEqual(repr(VXAY), 'Gaussian(duration=25, sigma=4, amp=0.7, angle=0.3)')\n S7ph = rwFe(duration=20, sigma=30, amp=1.0, width=3)\n YKHO.assertEqual(repr(S7ph), 'GaussianSquare(duration=20, sigma=30, width=3, amp=1.0, ang...
[ "0.64328635", "0.6385257", "0.62376046", "0.618997", "0.61720157", "0.58921653", "0.58790046", "0.5858273", "0.58360463", "0.5832614", "0.58299136", "0.582146", "0.58175856", "0.57932496", "0.57904303", "0.5764235", "0.5707748", "0.56924367", "0.56785095", "0.56734306", "0.56...
0.53051865
65
Calculate r^2 value. Calculates r^2 between predicted and measured data values. Measured value must be second argument.
def EfjU(nvEb, oy3e): JBMS = sum(oy3e) / len(oy3e) X8Kx = sum([(oy3e[YRbF] - JBMS) ** 2 for YRbF in range(len(nvEb))]) RxmN = sum([(nvEb[YRbF] - oy3e[YRbF]) ** 2 for YRbF in range(len(nvEb))]) return 1 - RxmN / X8Kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yjZz(YKHO, aMgO):\n aMgO = aMgO.apply(lambda WKvO: round(WKvO))\n CYjz = round(1 - ((YKHO.y_test - aMgO) ** 2).sum() / ((YKHO.y_test - YKHO.y_test.mean()) ** 2).sum(), 3)\n return CYjz", "def yjZz(Y8eF, gjpc):\n return 1 - SDab(Y8eF, gjpc) / oyIN.var(Y8eF)", "def nEsq(Y8eF, bdkc):\n Y8eF = Y...
[ "0.7049852", "0.69639605", "0.6947151", "0.68962234", "0.6839936", "0.6826956", "0.6762442", "0.6746911", "0.6719531", "0.6676779", "0.6542984", "0.6530848", "0.6527012", "0.65068686", "0.64830285", "0.6467677", "0.64650714", "0.64650714", "0.63856876", "0.6330744", "0.632361...
0.616829
26
Get the version of this app.
def kaPv(Emd4): return Emd4.__VERSION
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DpZH(YKHO):\n if YKHO.version is None:\n fUpG = GPtr.applicationSettings(YKHO.app, YKHO.environment.SHOW)['version']\n if fUpG:\n YKHO.version = fUpG\n return fUpG\n return YKHO.version", "def kaPv(YKHO):\n return YKHO.get_single('/package/version')", "def kaPv(...
[ "0.8692349", "0.8529483", "0.84174144", "0.83682096", "0.8361006", "0.8361006", "0.835473", "0.835222", "0.83078694", "0.8292695", "0.82255375", "0.8223884", "0.82185477", "0.81776744", "0.8169225", "0.8156893", "0.8154544", "0.8154402", "0.8144507", "0.81425965", "0.8142034"...
0.0
-1
Test DELETE request basket url
def janw(YKHO): YKHO.client.login(username=YKHO.username, password=YKHO.password) CBIr = mv1M.objects.get(username=YKHO.username) YKHO.assertEqual(NS5h.objects.filter(user=CBIr).count(), 0, 'Basket not empty') ZfUD = NS5h.objects.create(user=CBIr, count=1, product=msfn.objects.all()[0]) bD7m = f'{gx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SxKC(YKHO):\n geh0 = YKHO.client.post(path=gxEw('basket:basket_delete'), data={'productID': 2, 'action': 'delete'}, xhr=True)\n nPrm = geh0.json()\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_200_OK)\n YKHO.assertEqual(nPrm['basket_qty'], 1)\n YKHO.assertEqual(nPrm['basket_price'], '20.00')", ...
[ "0.80438715", "0.77576625", "0.76374686", "0.73423064", "0.72923994", "0.7292071", "0.7213512", "0.71966165", "0.7168734", "0.7108607", "0.7075592", "0.70743656", "0.7061276", "0.70323575", "0.70283365", "0.7017039", "0.7012176", "0.69987696", "0.6990858", "0.6976685", "0.694...
0.7826452
1
Test that a cphase circuit is equivalent to the matrix version
def h9x3(sg14, qIxc, JT9N): gr_i, dWRx = qIxc OCB2 = DPNn.c_phase(*dWRx, phase=JT9N) uWU_ = oyIN.array([[1.0 + 0j, 0.0 + 0j, 0.0 + 0j, 0.0 + 0j], [0.0 + 0j, 1.0 + 0j, 0.0 + 0j, 0.0 + 0j], [0.0 + 0j, 0.0 + 0j, 1.0 + 0j, 0.0 + 0j], [0.0 + 0j, 0.0 + 0j, 0.0 + 0j, UPbS.exp(JT9N * 2j * UPbS.pi)]]) bUIJ(sg14,...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dMKZ(YKHO):\n C7Ls, a1PO = FqVA(YKHO.r)\n q7D6, iV2t = YKHO.H_circuit(C7Ls, a1PO)\n ewpR = Xssf(YKHO.r)\n PyJi, YTAG = YKHO.ref_circuit(ewpR)\n assert oyIN.allclose(iV2t, YTAG)\n assert oyIN.allclose(q7D6, PyJi)", "def lliH():\n assert oyIN.all(TSLW.operation_to_channel_matrix(TSLW.phase...
[ "0.71858346", "0.7179025", "0.6925317", "0.68843895", "0.67727625", "0.67250323", "0.6633128", "0.66328806", "0.65251964", "0.6524976", "0.64871854", "0.6473184", "0.6458699", "0.64302343", "0.6420461", "0.63858044", "0.6358192", "0.63495547", "0.6347527", "0.6347002", "0.632...
0.69969857
2
Test create a recipe with tags
def xsEp(YKHO): R9U6 = eo18(user=YKHO.user, name='Vegan') GTT9 = eo18(user=YKHO.user, name='Meal') pB3N = {'title': 'Awesome avocado salad', 'tags': [R9U6.id, GTT9.id], 'time_minutes': 15, 'price': 10.0} Ylbp = YKHO.client.post(tQ6t, pB3N) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_201_CREATED) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xsEp(YKHO):\n R9U6 = eo18(user=YKHO.user, name='Tag 1')\n GTT9 = eo18(user=YKHO.user, name='Tag 2')\n pB3N = {'title': 'Test recipe with two tags', 'tags': [R9U6.id, GTT9.id], 'time_minutes': 30, 'price': 10.0}\n Ylbp = YKHO.client.post(tQ6t, pB3N)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_...
[ "0.8467651", "0.8423058", "0.8414481", "0.84137005", "0.8412131", "0.84047484", "0.8376607", "0.837022", "0.83637595", "0.8359679", "0.8358424", "0.8354541", "0.835232", "0.83247733", "0.83150053", "0.8261559", "0.80152446", "0.7968887", "0.7590312", "0.75356305", "0.75257087...
0.8365015
8
Test uploading invalid image
def zwC5(YKHO): bD7m = xx5i(YKHO.recipe.id) Ylbp = YKHO.client.post(bD7m, {'image': 'notimage'}, format='multipart') YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vt_3(YKHO):\n bD7m = nXsP(YKHO.recipe.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'not image'}, format='multipart')\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_400_BAD_REQUEST)", "def n2vP(YKHO):\n bD7m = xx5i(YKHO.recipe.id)\n Ylbp = YKHO.client.post(bD7m, {'image': 'notimage'}, format='...
[ "0.85087746", "0.84725595", "0.8400613", "0.83431107", "0.832726", "0.83257467", "0.83257467", "0.83252734", "0.82917863", "0.82917863", "0.82634234", "0.8255459", "0.82421154", "0.82321554", "0.82265306", "0.82250893", "0.82134044", "0.8189744", "0.80572677", "0.7927771", "0...
0.8542341
0
Compute the Gaussian kernel matrix between spots.
def DJeX(jQ3Z, lUK_, hmE9='cluster', Zz2i=False, O4gB='row', WGaO='col', oWao=None): if oWao is None: jNOo = oyIN.array(jQ3Z[[O4gB, WGaO]]) oWao = AifU(jNOo) if not Zz2i: RHJb = oyIN.full(oWao.shape, 1) else: RHJb = [] for yov1 in jQ3Z[hmE9]: Mkmy = [] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ix2y(mSn1, IP77, WTkW=1):\n TaUL = AifU(mSn1.T, IP77.T, squared=True)\n return oyIN.exp(-TaUL / (2 * WTkW ** 2))", "def jD02(WKvO, LVAh, WTkW=1.0):\n UqYS = ZylS.expand_dims(oyIN.array([WTkW], dtype=oyIN.float32), 1)\n pImw = QMWw(WKvO, LVAh)\n KCHu = ZylS.matmul(UqYS, ZylS.reshape(pImw, (1, -...
[ "0.693598", "0.69344443", "0.6882258", "0.6863287", "0.68091714", "0.67808974", "0.67265534", "0.6710252", "0.67018336", "0.6700799", "0.6700499", "0.66802883", "0.6655456", "0.664605", "0.6616156", "0.6609223", "0.6598774", "0.6578308", "0.65765196", "0.6554338", "0.653155",...
0.0
-1
Compute approximate confidence intervals around the kernel estimates of spot wise correlation.
def Bz5F(amsI, WAXV, ZxDP, aXvG, lUK_, oNu7=None, q3j1='row', AnTN='col', mjJ1=0.95, yOUo=None, wQSk=10, iDPy=100): XEri = aXvG is not None if oNu7 is None: MjnR = DJeX(amsI.obs, bandwidth=lUK_, region_key=aXvG, condition_on_region=XEri, y_col=q3j1, x_col=AnTN) else: MjnR = oNu7 NAO2 = a...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jRyx(YKHO, EcVT=[]):\n if isinstance(EcVT, rLdf.core.frame.DataFrame):\n EcVT = EcVT[YKHO.independent_]\n SBLE = rLdf.DataFrame({'y_hat': XTiz.zeros(EcVT.shape[0])})\n uN02 = YKHO.predict(EcVT)\n yzQ0 = XTiz.matrix(EcVT)\n Y0vg = XTiz.array(yzQ0 * XTiz.power(YKHO.s_y, 2) * dKc3(YKHO.X_das...
[ "0.64894474", "0.6355393", "0.634623", "0.62419635", "0.62001693", "0.61892784", "0.61309844", "0.6123543", "0.6118944", "0.60554427", "0.5963446", "0.5936252", "0.5892123", "0.58906406", "0.5890301", "0.58889365", "0.5869502", "0.58428264", "0.5822774", "0.5821425", "0.58135...
0.6224485
4
Predict class probabilities for X. If base estimators do not implement a ``predict_proba`` method, then the onehot encoding of the predicted class is returned.
def KR85(YKHO, EcVT): mrZR(YKHO, attributes='_models') EcVT = SOCJ(EcVT, accept_sparse=False, dtype=None, force_all_finite=False) YKHO._check_n_features(EcVT, reset=False) nvEb = oyIN.zeros((EcVT.shape[0], len(YKHO.classes_))) if hasattr(YKHO.base_estimator, 'predict_proba'): for Fg_i in YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KR85(YKHO, EcVT):\n if not YKHO.is_fitted_:\n raise WkL7('Estimator needs to be fit before `predict` can be called')\n EcVT = YKHO._validate_data(X=EcVT, y=None, reset=False)\n EcVT, bGrB = YKHO.preprocess_X(EcVT)\n kG3P = autz(YKHO.get_params(), destination='predict', pass_filter=YKHO._pred...
[ "0.83637846", "0.83094734", "0.8230322", "0.8189581", "0.8189581", "0.8167276", "0.81552005", "0.81488246", "0.8148705", "0.8143299", "0.8121709", "0.81098187", "0.81066704", "0.8104945", "0.8103844", "0.80633354", "0.8035878", "0.80266464", "0.79990506", "0.7986409", "0.7962...
0.8196069
3
`cooling_device` net electricity consumption in meeting domestic hot water and `cooling_stoage` energy demand time series, in [kWh]. Positive values indicate `cooling_device` electricity consumption to charge `cooling_storage` and/or meet `cooling_demand` while negative values indicate avoided `cooling_device` electric...
def _R_J(YKHO) -> x1iM[float]: return YKHO.__cooling_electricity_consumption
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x5IO(YKHO) -> oyIN.ndarray:\n return YKHO.cooling_demand - YKHO.energy_from_cooling_storage", "def prBZ(YKHO) -> str:\n if YKHO.inside_temperature > (YKHO.controller.get_setting('cooling_target_temperature') + YKHO.controller.get_setting('heating_target_temperature')) / 2:\n return 'cool'\n r...
[ "0.660917", "0.6446492", "0.58814126", "0.581783", "0.5733808", "0.5671849", "0.5601507", "0.5588267", "0.5571044", "0.5566049", "0.5542407", "0.55053854", "0.5481917", "0.5468881", "0.5452021", "0.5433394", "0.54274946", "0.54230565", "0.5396623", "0.5386966", "0.5385647", ...
0.5690955
5
`dhw_storage` net electricity consumption time series, in [kWh]. Positive values indicate `dhw_device` electricity consumption to charge `dhw_storage` while negative values indicate avoided `dhw_device` electricity consumption by discharging `dhw_storage` to meet `dhw_demand`.
def zQir(YKHO) -> oyIN.ndarray: if isinstance(YKHO.dhw_device, LNkZ): URW2 = YKHO.dhw_device.get_input_power(YKHO.dhw_storage.energy_balance, YKHO.weather.outdoor_dry_bulb_temperature[:YKHO.time_step + 1], True) else: URW2 = YKHO.dhw_device.get_input_power(YKHO.dhw_storage.energy_balance) re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KbY3(YKHO) -> oyIN.ndarray:\n return YKHO.dhw_demand - YKHO.energy_from_dhw_storage", "def dk9n(YKHO) -> oyIN.ndarray:\n return oyIN.array(YKHO.dhw_storage.energy_balance, dtype=float).clip(max=0) * -1", "def rXI2(YKHO):\n if YKHO._update_on_read:\n YKHO.update()\n return YKHO.get_conv_v...
[ "0.679033", "0.67036027", "0.64387006", "0.6402068", "0.62670374", "0.6182786", "0.6150503", "0.60807276", "0.6015953", "0.60141516", "0.60133624", "0.5991497", "0.5943103", "0.5908136", "0.5906481", "0.5899408", "0.570799", "0.57030547", "0.56483275", "0.5628586", "0.5608535...
0.6896534
0
Specifies the name of the service that this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
def bSEa(YKHO) -> str: return qe4Y.get(YKHO, 'service_name')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bSEa(YKHO, BWXx: str):\n YKHO._properties['serviceName'] = BWXx", "def bSEa(YKHO, BWXx: str):\n YKHO._properties['serviceName'] = BWXx", "def zVa7(YKHO, mWFP, **B2fa):\n YKHO.add(ISu2('service', mWFP, **B2fa))", "def bSEa(Emd4):\n raise NotImplementedError", "def bSEa(YKHO) -> str:\n ret...
[ "0.772327", "0.772327", "0.76454437", "0.73106384", "0.7056749", "0.7056749", "0.6938901", "0.69039786", "0.69039786", "0.67588323", "0.673351", "0.672914", "0.672299", "0.672299", "0.672299", "0.672299", "0.6666709", "0.6512038", "0.6512038", "0.6501342", "0.6501342", "0.6...
0.67047673
16
Return domain part of FQDN.
def zrIJ(lLIo): return lLIo.partition('.')[2]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vk56(YKHO) -> str:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')", "def vk56(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'fully_qualified_domain_name')", "def KBy_(lLIo):\n if '.' in lLIo:\n lpha = lLIo.split('.')\n del lpha[0]\n return '.'.join(lpha)\n else...
[ "0.78539026", "0.7787493", "0.7778338", "0.76710194", "0.7572138", "0.75707084", "0.7546973", "0.75248826", "0.74555326", "0.74509764", "0.7402222", "0.73672885", "0.73631823", "0.73040515", "0.7254646", "0.7254646", "0.7254646", "0.7254646", "0.7254646", "0.7254646", "0.7254...
0.86577785
0
Return extension of filename.
def kdT2(Ux0P): return Hy7s.path.splitext(Ux0P)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oIn5(Ux0P):\n return Hy7s.path.splitext(Ux0P)", "def Fst3(Ux0P):\n return oAb3.Path(Ux0P).suffix", "def oEsG(YKHO, Ux0P):\n return Hy7s.path.splitext(Ux0P)[1][1:]", "def u_Gy(Ux0P):\n return Ux0P.lower().split('.')[-1]", "def HIHh(YKHO, gIsw):\n return YKHO.__dot_split(gIsw)[1]", "def ...
[ "0.9040785", "0.9017023", "0.90005994", "0.89415264", "0.8694271", "0.86942697", "0.8683193", "0.86452055", "0.8632785", "0.86141104", "0.8598117", "0.8531572", "0.85213464", "0.85175", "0.8490592", "0.84642714", "0.84609807", "0.84609807", "0.8458929", "0.8432946", "0.841474...
0.0
-1
Return filename without extension.
def efWQ(Ux0P): return Hy7s.path.splitext(Ux0P)[1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AjhE(YKHO):\n return Hy7s.path.basename(YKHO.file.name).split('.')[0]", "def t5OZ(qaEx):\n return gLx5(aPr_(qaEx))[0]", "def icfS(pmON):\n return Hy7s.path.splitext(Hy7s.path.basename(pmON))[0]", "def AjhE(qaEx):\n return Hy7s.path.basename(qaEx).split('.')[0]", "def LnvH(nUeQ):\n return...
[ "0.8935418", "0.88371724", "0.871802", "0.85688055", "0.8498532", "0.8398793", "0.8396742", "0.8390054", "0.8341586", "0.8338969", "0.8278815", "0.8245902", "0.81709063", "0.81407535", "0.7907655", "0.7890555", "0.78898704", "0.7851533", "0.78384566", "0.7827578", "0.7798358"...
0.0
-1
Strip given substring from the end of name.
def CG2W(mWFP, Npeo): if mWFP.endswith(Npeo): return mWFP[:-len(Npeo)] return mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _4R2(vIwR: str, ZI14: str) -> str:\n if ZI14 and vIwR.endswith(ZI14):\n return vIwR[:-len(ZI14)]\n return vIwR", "def uBDG(vIwR, ZI14):\n assert vIwR.endswith(ZI14)\n return vIwR[:-len(ZI14)]", "def Lg0T(mWFP, y0cW=None, ZI14=None):\n if y0cW and mWFP.startswith(y0cW):\n mWFP =...
[ "0.73537505", "0.73445714", "0.71534723", "0.7150609", "0.7125181", "0.7080618", "0.70378953", "0.69900787", "0.689692", "0.68871343", "0.6773522", "0.6759871", "0.67208093", "0.6698727", "0.6668515", "0.6662251", "0.6590653", "0.6583581", "0.6574386", "0.6565102", "0.6532959...
0.88372386
0