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
r""" from_torch(torch_tensor) > Tensor Create a oneflow tensor from torch tensor. The returned tensor and torch tensor share the same memory.
def cxmE(RqAr): try: import torch except: wZWm() assert isinstance(RqAr, torch.Tensor) return _uqo.from_dlpack(torch.to_dlpack(RqAr))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def y7gc(cgkB):\n try:\n import torch\n except:\n wZWm()\n assert isinstance(cgkB, _uqo.Tensor)\n if cgkB.is_global:\n print('WARNING: `to_torch` received a global tensor. A PyTorch CPU tensor which is a copy of its data will be returned.')\n return torch.from_numpy(cgkB.num...
[ "0.71977687", "0.6970115", "0.664394", "0.6397501", "0.6385698", "0.6343472", "0.6324938", "0.62874603", "0.6265439", "0.6264155", "0.6195293", "0.61601275", "0.6108969", "0.6103835", "0.60687476", "0.6050796", "0.59957224", "0.5983653", "0.5959911", "0.5878281", "0.5874732",...
0.8260456
0
Multiplies 3dimensional Vector with 3xn matrix
def iOG5(F6AI, Ty9i): return Xqhy(Ty9i.x * F6AI[0][0] + Ty9i.y * F6AI[1][0] + Ty9i.z * F6AI[2][0], Ty9i.x * F6AI[0][1] + Ty9i.y * F6AI[1][1] + Ty9i.z * F6AI[2][1], Ty9i.x * F6AI[0][2] + Ty9i.y * F6AI[1][2] + Ty9i.z * F6AI[2][2])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OMRO(he6J):\n if he6J.shape == (3,):\n WKvO, LVAh, epBp = he6J\n elif he6J.shape == (1, 3):\n WKvO, LVAh, epBp = oyIN.array(he6J)[0]\n elif he6J.shape == (3, 1):\n WKvO, LVAh, epBp = oyIN.array(he6J)[:, 0]\n else:\n print('Warning: wrong shape: {}'.format(he6J.shape))\n ...
[ "0.74074286", "0.7346128", "0.7186415", "0.7186415", "0.7166989", "0.7132625", "0.70552707", "0.7028783", "0.70269775", "0.702239", "0.69899905", "0.6972018", "0.6921464", "0.6841452", "0.6811345", "0.6802231", "0.6771924", "0.67574066", "0.67402893", "0.6725337", "0.6725337"...
0.7329332
2
Select a user row by user_id
def EfUA(YKHO, uJjO): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Y55N(cuiw, uJjO):\n return cuiw.query(mv1M).filter(mv1M.identifier == uJjO).first()", "def bt8D(uJjO):\n w2B8 = JfWB()\n DpUl = w2B8.cursor()\n DpUl.execute('SELECT first_name, last_name FROM users WHERE user_id=%(user_id)s', {'user_id': uJjO})\n usx6 = DpUl.fetchone()\n DpUl.close()\n w...
[ "0.77803063", "0.73908913", "0.7299343", "0.7252459", "0.7217992", "0.72117335", "0.7081414", "0.7081015", "0.7067073", "0.70503783", "0.7028805", "0.7012694", "0.70092994", "0.6986786", "0.6984551", "0.6976772", "0.6958078", "0.6906873", "0.6906873", "0.6906873", "0.6906873"...
0.7590329
2
Select a user row by email
def C3F7(YKHO, D3lj): raise NotImplementedError()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CYTf(D3lj):\n w2B8 = JfWB()\n DpUl = w2B8.cursor()\n DpUl.execute('SELECT user_id FROM users WHERE email=%(email)s', {'email': D3lj})\n usx6 = DpUl.fetchone()\n DpUl.close()\n w2B8.close()\n return usx6", "def lCqJ(D3lj):\n vexM = mv1M.all()\n vexM.filter('email = ', D3lj)\n ret...
[ "0.7563734", "0.75482786", "0.7438098", "0.74273896", "0.7424005", "0.73950344", "0.7370315", "0.7368187", "0.7309001", "0.73088515", "0.72954834", "0.72710747", "0.717508", "0.71647", "0.714531", "0.7126575", "0.7116933", "0.7088426", "0.7075721", "0.7054968", "0.7052114", ...
0.77281016
0
Sets the channel of this SignatureImplementationResponse.
def YwkQ(YKHO, YwkQ): YKHO._channel = YwkQ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LW3q(YKHO, YwkQ):\n pass", "def LW3q(YKHO, YwkQ):\n YKHO.kb.set_channel(YwkQ)", "def LW3q(YKHO, YwkQ):\n reov(Channel=YwkQ)", "def nrOS(YKHO, YwkQ):\n YKHO.set_channel(YwkQ)", "def OLwE(YKHO, YwkQ):\n YKHO.channel = YwkQ", "def MJ6J(YKHO, YwkQ: int) -> None:\n YKHO._channel = YwkQ\n...
[ "0.700222", "0.63991386", "0.6392292", "0.63232964", "0.62833834", "0.6257436", "0.61910653", "0.6118345", "0.6078475", "0.5948279", "0.59306794", "0.5924662", "0.57852185", "0.5779305", "0.5778746", "0.57614785", "0.57191056", "0.5711203", "0.5690335", "0.5671272", "0.557632...
0.67001665
1
Sets the group of this SignatureImplementationResponse.
def uOe2(YKHO, uOe2): YKHO._group = uOe2
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QYWb(YKHO, uOe2):\n YKHO._group = uOe2", "def scR9(YKHO, uOe2: Optional[Any]) -> None:\n YKHO.group = uOe2", "def uOe2(YKHO, uOe2):\n YKHO._group = uOe2", "def QYWb(YKHO):\n YKHO.AUX('set_group,group=' + YKHO.group)", "def scR9(YKHO, uOe2):\n YKHO.ipcon.send_request(YKHO, Xg1t.FUNCTION_S...
[ "0.76764756", "0.743394", "0.74144167", "0.71095866", "0.7056411", "0.7021644", "0.6784851", "0.66708744", "0.64057934", "0.63678324", "0.63599443", "0.6317638", "0.6317033", "0.6238653", "0.6226812", "0.61499053", "0.61481607", "0.61435556", "0.6125286", "0.6125286", "0.6125...
0.73785055
3
Sets the signature of this SignatureImplementationResponse.
def aadv(YKHO, aadv): YKHO._signature = aadv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Zihr(YKHO, aadv):\n YKHO.signature = aadv", "def xSAK(YKHO, aadv, hash, EL1Q):\n YKHO.sendUpdate('setSignature', [aadv, hash, EL1Q])", "def i1fZ(YKHO, aadv, dD1L):\n YKHO._signature = aadv\n YKHO._public_key = dD1L", "def WBh8(YKHO, WBh8):\n YKHO._transaction_signature = WBh8", "def hLmo...
[ "0.75854856", "0.7095409", "0.70115286", "0.65434504", "0.6427073", "0.6408598", "0.63019", "0.6228374", "0.62019646", "0.61911446", "0.6190887", "0.6176782", "0.61420596", "0.6090997", "0.60723907", "0.6063171", "0.6041673", "0.5997349", "0.5993796", "0.59456325", "0.5902543...
0.76161915
0
Returns the string representation of the model
def gTzM(YKHO): return CgYo.pformat(YKHO.to_dict())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return str(YKHO.__model)", "def zAg0(YKHO):\n return str(YKHO.model)", "def zAg0(YKHO):\n return YKHO.text", "def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\...
[ "0.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
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.0
-1
Attach a lot of summaries to a Tensor (for TensorBoard visualization).
def QS7_(SRYB): with ZylS.name_scope('summaries'): JBMS = ZylS.reduce_mean(SRYB) ZylS.summary.scalar('mean', JBMS) with ZylS.name_scope('stddev'): z2bo = ZylS.sqrt(ZylS.reduce_mean(ZylS.square(SRYB - JBMS))) ZylS.summary.scalar('stddev', z2bo) ZylS.summary.scalar(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oxpy(YKHO):\n with ZylS.name_scope('summaries'):\n ZylS.summary.scalar('loss', YKHO.loss)\n ZylS.summary.scalar('accuracy', YKHO.accuracy)\n ZylS.summary.histogram('W', YKHO.W)\n ZylS.summary.histogram('B', YKHO.B)\n YKHO.summary = ZylS.summary.merge_all()", "def oxpy(YK...
[ "0.77356154", "0.7635358", "0.71548295", "0.7066927", "0.7009784", "0.7003913", "0.68639636", "0.6790406", "0.6711659", "0.67008865", "0.6697479", "0.66519535", "0.6650793", "0.66454625", "0.66224337", "0.6604369", "0.65961903", "0.6580383", "0.6570011", "0.653722", "0.653611...
0.0
-1
post request method for new food item
def m8z6(YKHO): qIxc = YKHO.reqparse.parse_args() Y8Sy = Zul5() dp9S = YJv1.get_admin(Y8Sy) YWw8 = x30U.validate_food_input(qIxc['item']) if Y8Sy and dp9S: if YWw8 == True: ZfUD = qIxc['item'].lower() geh0 = x30U(ZfUD, qIxc['price']) Aofo = geh0.add_food()...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IesF(QePW):\n if QePW.method == 'POST':\n ZMzz = F1KV(data=QePW.data)\n if ZMzz.is_valid():\n ZMzz.save()\n return oGir(ZMzz.data, status=jGRS.HTTP_201_CREATED)\n return oGir(ZMzz.errors, status=jGRS.HTTP_400_BAD_REQUEST)", "def kr8D():\n if QePW.method == 'GE...
[ "0.79115003", "0.7247724", "0.70799506", "0.70605594", "0.7041484", "0.69909805", "0.6952922", "0.6904727", "0.68307996", "0.6811023", "0.6785256", "0.6785046", "0.6755726", "0.6746147", "0.674476", "0.67328614", "0.67220056", "0.6705358", "0.67024815", "0.6687807", "0.666505...
0.73210603
1
The main page, with links to everything else.
def d6pt(): return WsL5.render_template('index.jinja', app_config=GPtr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ozko():\n return B2Dn('main')", "def Ozko():\n return TvZl('index.html')", "def Ev1b():\n return TvZl('mainpage.html')", "def Ev1b():\n return TvZl('main.html')", "def kZiy():\n return TvZl('main.html')", "def b8V_():\n aevO.sidebar.title('Navigation')\n SuM2 = aevO.sidebar.radio...
[ "0.8085892", "0.7713373", "0.76699364", "0.7658247", "0.75999284", "0.7593764", "0.7542901", "0.7448066", "0.74389917", "0.7389969", "0.7348722", "0.7272418", "0.7256087", "0.72512335", "0.72214526", "0.71995175", "0.7196655", "0.7154459", "0.70821273", "0.70784384", "0.70784...
0.0
-1
Constructor for FastMTCNN class.
def FIMM(YKHO, _0fC, Einh=1, *qIxc, **B2fa): YKHO.stride = _0fC YKHO.resize = Einh YKHO.mtcnn = G3yI(*qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, Zxma, yGCl, cBXO):\n pass", "def FIMM(YKHO, VAwA=512):\n if not F6uC:\n return None\n YKHO.nthreads = int(VAwA)", "def FIMM(YKHO, Zxma, yGCl, cBXO):\n raise NotImplementedError", "def FIMM(YKHO, YDR7, HT4J, ik2X, xh0X, MnDN, ITJE, lDLs=1):\n super(boBz, YKHO).__init__()\n...
[ "0.6726894", "0.6660296", "0.66085494", "0.6585221", "0.65592563", "0.6534327", "0.6526717", "0.6524223", "0.65132016", "0.6499983", "0.6496723", "0.64456177", "0.64146733", "0.6326961", "0.6283304", "0.6240155", "0.62352085", "0.6232719", "0.6217403", "0.6206965", "0.6206468...
0.66142
2
Creates a Keras Embedding() layer and loads in pretrained GloVe 50dimensional vectors.
def Sapu(qbGl, _3lE): nmRd = len(_3lE) + 1 m_Zy = qbGl['cucumber'].shape[0] MJQx = oyIN.zeros((nmRd, m_Zy)) for GIN8, d6pt in _3lE.items(): MJQx[d6pt, :] = qbGl[GIN8] eFKZ = DilS(nmRd, m_Zy) eFKZ.build((None,)) eFKZ.set_weights([MJQx]) return eFKZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Sapu(qbGl, _3lE):\n nmRd = len(_3lE) + 1\n m_Zy = qbGl['cucumber'].shape[0]\n MJQx = oyIN.zeros((nmRd, m_Zy))\n for GIN8, d6pt in _3lE.items():\n MJQx[d6pt, :] = qbGl[GIN8]\n eFKZ = DilS(nmRd, m_Zy, trainable=False)\n eFKZ.build((None,))\n eFKZ.set_weights([MJQx])\n return eFKZ",...
[ "0.7791138", "0.745545", "0.74390197", "0.7360544", "0.7065828", "0.68795615", "0.6761074", "0.6732444", "0.663613", "0.66248614", "0.66053206", "0.6558947", "0.65570635", "0.6552581", "0.6481258", "0.6459912", "0.64447194", "0.6441908", "0.6440497", "0.6431507", "0.64302385"...
0.6952815
5
Return the angle corresponding to the incrementation index.
def Tbd6(d6pt, YgRY=None, mghH=False): J8dL = mM0K / YgRY YylR = J8dL * (d6pt + 1) if mghH: return YylR / (2 * mM0K) * 360 else: return YylR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YylR(YKHO) -> int:\n return YKHO._angle", "def YylR(YKHO):\n iArr = lNLu.createFromSegment(YKHO)\n return iArr.angle()", "def Tbd6(YKHO, jzdc, ywwl):\n KCHu = bin(int(jzdc))[2:].zfill(ywwl)\n YylR = 0\n for YRbF in range(0, ywwl):\n 'if the digit is 1, add the corresponding value t...
[ "0.692477", "0.68153644", "0.67839175", "0.674954", "0.6691256", "0.66905975", "0.6675032", "0.66667414", "0.66307646", "0.6618808", "0.66054726", "0.65928113", "0.6592083", "0.6592083", "0.65791714", "0.656066", "0.6553986", "0.65515006", "0.64886326", "0.64837795", "0.64805...
0.80986655
0
Compute a row restriction of a 2D kronecker product
def xZXf(k0lF, tjUW, Oxrr): A2lD = Ti47.lil_matrix((1, k0lF.shape[0])) A2lD[0, Oxrr] = 1.0 o4sw = Ti47.diags(A2lD.todense(), [0], shape=k0lF.shape) vb7U = Ti47.kron(o4sw * k0lF, tjUW) return vb7U
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lW4j(YRbF, r845):\n return 1 if YRbF == r845 else 0", "def Fwgt():\n WKvO = oyIN.ones(3)\n WKvO = oyIN.kron(oyIN.eye(3), WKvO)\n return WKvO", "def tdut(k0lF, tjUW, Oxrr):\n A2lD = oyIN.zeros((1, k0lF.shape[0]))\n A2lD[0, Oxrr] = 1.0\n o4sw = Ti47.diags(A2lD, [0], shape=k0lF.shape)\n ...
[ "0.7225418", "0.66476285", "0.66026706", "0.6600839", "0.6413221", "0.63274497", "0.62580293", "0.61778075", "0.6174338", "0.611426", "0.6045788", "0.60228074", "0.60160327", "0.5955651", "0.5945952", "0.5902402", "0.5802216", "0.57863593", "0.57764703", "0.5763318", "0.57180...
0.68128675
1
Create a sparse identity from indexes for 1D matrix
def g708(or8S, exwG): Csk6 = oyIN.zeros((1, exwG)) if or8S.size > 0: Csk6[0, or8S] = 1.0 return Ti47.diags(Csk6, [0], 2 * (exwG,))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _E99(zNig):\n return BsUr(_E99(zNig, dtype=oyIN.double, format='csr'))", "def _jBf(ZoZh, ulBT, yDqo=ZylS.float32, mWFP='sparse_one_hot'):\n with ZylS.name_scope(name=mWFP):\n ZoZh = wVie(ZoZh, ZylS.int64)\n _0VL = zCS5(ZoZh, dtype=ZylS.int64)\n thZl = ZylS.cast([ZylS.shape(ZoZh)[0]...
[ "0.6849322", "0.68479556", "0.6839947", "0.6783436", "0.678085", "0.6747382", "0.6726741", "0.6704118", "0.6670533", "0.666132", "0.6641807", "0.6635394", "0.66225696", "0.6545934", "0.6532759", "0.6521875", "0.6509329", "0.6509329", "0.6509166", "0.6508186", "0.6508186", "...
0.6064357
67
Create a sparse identity from zero indexes indexes
def Fpr2(or8S, exwG): Csk6 = oyIN.ones((1, exwG)) if or8S.size > 0: Csk6[0, or8S] = 0.0 return Ti47.diags(Csk6, [0], 2 * (exwG,))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def v2g3(YKHO, _0VL: 'np.ndarray', hkxX: 'np.ndarray', ROpF: List[int]) -> 'np.ndarray':\n wEf2 = oyIN.zeros(ROpF)\n wEf2[tuple(_0VL.T)] = hkxX\n return wEf2", "def zXM_(WKvO):\n zHeZ = ht2j.typename(WKvO).split('.')[-1]\n UX5J = getattr(ht2j.sparse, zHeZ)\n _0VL = ht2j.nonzero(WKvO)\n if le...
[ "0.6786814", "0.67309666", "0.6730294", "0.6690006", "0.6690006", "0.6690006", "0.6690006", "0.6690006", "0.6690006", "0.66057014", "0.65721756", "0.6563474", "0.65115684", "0.65029186", "0.6441918", "0.6381852", "0.6334442", "0.6321621", "0.62782747", "0.62694395", "0.625181...
0.0
-1
Get the index of the key to insert before or after.
def qfYp(YKHO, H5ew, KAOR: int=0) -> int: if H5ew not in YKHO: raise KeyError(str(H5ew)) DNs0 = list() for or8S, G1Hx in enumerate(YKHO.keys()): if H5ew == G1Hx: DNs0.append(or8S) try: return DNs0[KAOR] except IndexError: raise IndexError(f'There are only ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZhvB(YKHO, H5ew):\n return Ce1H.bisect_right(YKHO.keys, H5ew)", "def d6pt(YKHO, H5ew):\n THkp, ZbOB, YRbF = YKHO._linear_search(H5ew)\n return YRbF", "def d6pt(YKHO, WKvO, H5ew=None, nEeK=0, ekgN=None):\n if H5ew is None:\n H5ew = YKHO.key\n YRbF = SPuy(YKHO, WKvO, key=H5ew, lo=nEeK, ...
[ "0.78631824", "0.6859724", "0.6813218", "0.6747646", "0.6747646", "0.6739007", "0.67373806", "0.6595616", "0.65945774", "0.6555243", "0.65110946", "0.6440976", "0.64160633", "0.6413286", "0.63692176", "0.63604015", "0.6283116", "0.62822247", "0.6269594", "0.6247472", "0.62344...
0.62767726
18
Returns the index of the item in the underlying list implementation that is the ith value of that key. Effectively creates a list of all indexes that match key, and then returns the original index of the ith element of that list. The ith integer can be any positive or negative integer and follows the rules for list ind...
def qfYp(YKHO, H5ew, dGDf: int=0) -> int: if H5ew not in YKHO: raise KeyError(str(H5ew)) DNs0 = list() for or8S, (G1Hx, Ty9i) in enumerate(YKHO.items()): if H5ew == G1Hx: DNs0.append(or8S) try: return DNs0[dGDf] except IndexError: raise IndexError(f'There ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TrX4(list, H5ew):\n for YRbF, ZfUD in enumerate(list):\n if ZfUD == H5ew:\n return YRbF\n return -1", "def d6pt(YKHO, H5ew):\n THkp, ZbOB, YRbF = YKHO._linear_search(H5ew)\n return YRbF", "def d6pt(YKHO, H5ew):\n bGrB, bGrB, YRbF = YKHO._linear_search(H5ew)\n return YRbF...
[ "0.7555752", "0.75509775", "0.7542161", "0.74825394", "0.71942616", "0.7193105", "0.71814394", "0.7107531", "0.70623875", "0.69757324", "0.69512147", "0.69316304", "0.6918658", "0.69003755", "0.68502223", "0.68450886", "0.6805342", "0.68014634", "0.6785065", "0.67636377", "0....
0.7828113
0
Target for password reset links. The token ensures that this view is only accessible from a password reset email.
def rjh8(): eOtH = QePW.args.get('token') try: FRYW, yzq9, DkIV, NArs = yXnH(eOtH, 'account.reset_password') L03z = VVDG() D3lj = NArs.get('email') if QePW.method == 'POST': if L03z.validate(): jTXt = L03z.password.data g10W = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wcVJ(YKHO):\n YKHO.mail_subject = 'Set password'\n YKHO.template_name = 'email/email_password_recovery'\n YKHO.context['password_url'] = 'password-recovery-redirect'\n YKHO.send_email()", "def rjh8(QePW, rBAO):\n j4jS = rktP()\n mS46 = j4jS.retrieve_reset_token(rBAO)\n if not mS46:\n ...
[ "0.7092505", "0.70596695", "0.6966795", "0.6805708", "0.67951846", "0.6781715", "0.6738173", "0.67007923", "0.6642024", "0.66183627", "0.6594175", "0.6583167", "0.6545197", "0.6514586", "0.6503334", "0.6485245", "0.64614767", "0.64579356", "0.6445227", "0.64450556", "0.643423...
0.65487033
12
Return the current value of the moving average
def BWXx(YKHO): return YKHO._numerator / YKHO._denominator
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCKv(gdeS, Qj8D, CCcy=10):\n BEhj = oyIN.sum(gdeS[-(CCcy - 1):]) + Qj8D\n BEhj = BEhj / (len(gdeS[-(CCcy - 1):]) + 1)\n return BEhj", "def dBGK(YKHO, dy_H):\n return dy_H.ix[-YKHO.window:].mean()", "def ZCKv(hkxX: List[float]) -> float:\n qqgr = hkxX[0]\n for wEf2 in hkxX:\n qqgr =...
[ "0.79672366", "0.79234517", "0.76982033", "0.763994", "0.74817926", "0.7468866", "0.74510354", "0.7431836", "0.73668885", "0.73668885", "0.73668885", "0.73668885", "0.73239803", "0.73147404", "0.7296093", "0.7284344", "0.72642475", "0.72435564", "0.7183932", "0.71373516", "0....
0.0
-1
The P, I and Dterms from the last computation as separate components as a tuple. Useful for visualizing what the controller is doing or when tuning hardtotune systems.
def vlHx(YKHO): return (YKHO._proportional, YKHO._integral, YKHO._derivative)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tuple(YKHO):\n return (YKHO.numerator, YKHO.denominator)", "def tBwn(YKHO) -> tuple[llWB, llWB]:\n eRdl: llWB\n ETu_: llWB\n eRdl, ETu_, bGrB = super().compute()\n return (eRdl, ETu_)", "def coXB(YKHO) -> AzJI[int, x1iM[gyIm], complex]:\n cVyJ = YKHO._step\n N4m4 = cVyJ + 1\n mCmI =...
[ "0.6406835", "0.63220084", "0.61511964", "0.5932977", "0.59276056", "0.5919354", "0.591148", "0.5910328", "0.58857936", "0.5837025", "0.5836181", "0.5835652", "0.5822099", "0.58107436", "0.5801311", "0.5792161", "0.577624", "0.5761174", "0.57283944", "0.5722056", "0.5722056",...
0.5423396
55
Returns the n largest indices from a numpy array.
def rxW9(YKHO, FUTK, exwG): TLbF = FUTK.flatten() _0VL = oyIN.argpartition(TLbF, -exwG)[-exwG:] return oyIN.unravel_index(_0VL, FUTK.shape)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rxW9(ezWE, exwG):\n return oyIN.fliplr(ezWE.argsort()[:, -exwG:])", "def rxW9(FUTK, exwG):\n TLbF = FUTK.flatten()\n _0VL = oyIN.argpartition(TLbF, -exwG)[-exwG:]\n _0VL = _0VL[oyIN.argsort(-TLbF[_0VL])]\n return oyIN.unravel_index(_0VL, FUTK.shape)", "def rxW9(FUTK, exwG):\n TLbF = FUTK....
[ "0.90601194", "0.8567364", "0.85596955", "0.85596955", "0.85596955", "0.85596955", "0.83150786", "0.8031119", "0.7843372", "0.77895576", "0.7581061", "0.75141084", "0.72986776", "0.7280369", "0.7004635", "0.6978475", "0.68236953", "0.67607653", "0.6719858", "0.65668225", "0.6...
0.8583243
1
Returns the n largest indices from a numpy array.
def SMmx(YKHO, FUTK, exwG): TLbF = FUTK.flatten() _0VL = oyIN.argpartition(TLbF, exwG)[:exwG] return oyIN.unravel_index(_0VL, FUTK.shape)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rxW9(ezWE, exwG):\n return oyIN.fliplr(ezWE.argsort()[:, -exwG:])", "def rxW9(YKHO, FUTK, exwG):\n TLbF = FUTK.flatten()\n _0VL = oyIN.argpartition(TLbF, -exwG)[-exwG:]\n return oyIN.unravel_index(_0VL, FUTK.shape)", "def rxW9(FUTK, exwG):\n TLbF = FUTK.flatten()\n _0VL = oyIN.argpartitio...
[ "0.90606236", "0.8583831", "0.85673624", "0.85597223", "0.85597223", "0.85597223", "0.85597223", "0.83151364", "0.8032678", "0.7843633", "0.77898335", "0.75814205", "0.751236", "0.7298185", "0.7281386", "0.7004382", "0.69804895", "0.6824746", "0.6760552", "0.671953", "0.65663...
0.6430831
28
cpu/gpu to int, return np array of shape (len(D), 1)
def Te1x(lWPh): return oyIN.vstack([oyIN.expand_dims(WKvO, axis=0) for WKvO in lWPh['oracle_enc']])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iJBN(pUKU):\n import cupy as U7YL\n ezWE = U7YL.ravel(pUKU)\n eLty = U7YL.argsort(ezWE)\n dKc3 = U7YL.empty(eLty.size, dtype=U7YL.intp)\n dKc3[eLty] = U7YL.arange(eLty.size, dtype=U7YL.intp)\n ezWE = ezWE[eLty]\n W061 = U7YL.r_[True, ezWE[1:] != ezWE[:-1]]\n A0RF = W061.cumsum()[dKc3]\n...
[ "0.59380513", "0.57544583", "0.5678052", "0.544642", "0.5426674", "0.54178303", "0.5393729", "0.53844994", "0.5376583", "0.5370488", "0.534524", "0.5327643", "0.5327643", "0.53088814", "0.5307923", "0.52917546", "0.52774906", "0.5273207", "0.52587897", "0.5243211", "0.5243211...
0.0
-1
Create and configure instance of the Flask application.
def LUif(): P4t4 = L2w0(__name__) P4t4.config.from_object(PSrQ) @P4t4.route('/') def kZiy(): return TvZl('index.html') @P4t4.route('/gold') def T4t1(): return TvZl('gold.html') @P4t4.route('/sp500') def d8P4(): return TvZl('sp500.html') @P4t4.route('/inter...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z_uJ():\n P4t4 = L2w0(__name__)\n P4t4.config.from_object(PSrQ)\n P4t4.config.from_object(Hy7s.environ.get('APP_SETTINGS'))\n return P4t4", "def LUif() -> L2w0:\n GPtr = R4f_()\n HEBM = L2w0(__name__)\n if 'secret_key' in GPtr:\n HEBM.secret_key = GPtr['secret_key']\n else:\n ...
[ "0.8471571", "0.84116954", "0.82854456", "0.8238497", "0.8195875", "0.81536967", "0.813377", "0.8129535", "0.8115675", "0.8108226", "0.8107029", "0.8090596", "0.8083853", "0.80690503", "0.8068437", "0.80653346", "0.8057004", "0.80497897", "0.8041879", "0.80394053", "0.8036796...
0.0
-1
Getter method for the name instance attribute.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F0up(YKHO):\n return YKHO._name", "def W0tD(YKHO):\n return YKHO._get_attr('name', None)", "def W0tD(YKHO):\n YKHO.set_obj()\n try:\n mWFP = YKHO.obj['name']\n except TypeError:\n mWFP = None\n return mWFP", "def wGWt(YKHO):\n return YKHO._name", "def W0tD(YKHO):\n ...
[ "0.86790276", "0.8392613", "0.8356878", "0.8334863", "0.82922506", "0.8290808", "0.8290808", "0.8290808", "0.8290808", "0.8290808", "0.82907385", "0.82770264", "0.82770264", "0.82770264", "0.827243", "0.827243", "0.827243", "0.827243", "0.827243", "0.8263396", "0.8263396", ...
0.0
-1
Setter method for the health instance attribute.
def Ehpv(YKHO, a033): YKHO._health += a033
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dPDD(YKHO, ZnpV):\n YKHO.health = ZnpV", "def ZnpV(YKHO, ZnpV):\n YKHO._health = ZnpV", "def DQpF(YKHO, ZnpV):\n if ZnpV == 0:\n YKHO.__del__()\n else:\n YKHO.health = ZnpV", "def esPE(YNKq=None, wHoJ=None, FFcK=None):\n pass", "def Ehpv(YKHO, wEf2: int) -> None:\n if wE...
[ "0.7827502", "0.76902115", "0.72842205", "0.7124905", "0.691372", "0.6640382", "0.65620226", "0.6528932", "0.6460573", "0.64118195", "0.6349148", "0.63233346", "0.62977886", "0.6147438", "0.6111961", "0.60883796", "0.6025156", "0.5988389", "0.59622884", "0.5960634", "0.593581...
0.65681386
6
Constructor that calls the parent constructor and initializes a Werewolve object.
def FIMM(YKHO, mWFP='Werewolve', ZnpV=60, ZW1v=-12): super().__init__(mWFP, ZnpV, ZW1v) YKHO.add_monster()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, XcU5):\n YKHO._W = XcU5", "def FIMM(YKHO):\n YKHO.w_xyz = None\n YKHO.w_grad = None\n YKHO.w_hess = None\n YKHO.repo = None", "def FIMM(YKHO, *qIxc, **B2fa):\n VQ6Z = H1Lj.new_gsl_eigen_hermv_workspace(*qIxc, **B2fa)\n try:\n YKHO.this.append(VQ6Z)\n except:\n ...
[ "0.6869774", "0.6360792", "0.62760925", "0.62337303", "0.62242043", "0.61951196", "0.6176404", "0.61494327", "0.61048216", "0.60916424", "0.6071802", "0.60697573", "0.60541767", "0.6029342", "0.6029335", "0.60073704", "0.5989637", "0.5989637", "0.5982759", "0.5977441", "0.597...
0.0
-1
Add a node of value val before the first element of the linked list. After the insertion, the new node will be the first node of the linked list.
def PgMl(YKHO, wEf2: int) -> None: ycBG = _sfu(wEf2) ycBG.next = YKHO.dummy.next YKHO.dummy.next = ycBG YKHO.length += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yMiq(YKHO, wEf2, Z6gX):\n if YKHO.includes(wEf2):\n if YKHO.head.value == wEf2:\n YKHO.insert(Z6gX)\n else:\n Q6kx = o7DN(Z6gX)\n jvSB = YKHO.head\n while jvSB.nxt.value != wEf2:\n jvSB = jvSB.nxt\n Q6kx.nxt = jvSB.nxt\n ...
[ "0.8459422", "0.8395139", "0.83872116", "0.81370336", "0.8074744", "0.8035253", "0.7994835", "0.79612565", "0.7943125", "0.79212797", "0.7894975", "0.7870135", "0.7838791", "0.78325796", "0.77838993", "0.77624804", "0.77023226", "0.767418", "0.767273", "0.76698345", "0.766402...
0.6899216
98
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.864179", "0.85105866", "0.7853924", "0.77452", "0.7712474", "0.76976854", "0.76601666", "0.7638181", "0.7621996", "0.76074743", "0.76074743", "0.76074743", "0.7607432", "0.7599404", "0.75858897", "0.7582702", "0.75715727", "0.75683635", "0.7539386", "0.7539386", "0.7528709...
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.8393829", "0.83557564", "0.8296152", "0.8133522", "0.81153053", "0.8100911", "0.8100133", "0.8098902", "0.8098902", "0.80937666", "0.80937666", "0.80937666", "0.80937666", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8086338", "0.8067774", "0.80598664", "0.805856...
0.0
-1
Converts any token like ${VAR} and $VAR to shell specific form. Uses the ENV_VAR_REGEX to correctly parse tokens.
def b5Xr(Emd4, BWXx): return Emd4.ENV_VAR_REGEX.sub(lambda r8hN: ''.join((Emd4.get_key_token(Oa1e) for Oa1e in r8hN.groups() if Oa1e)), BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def j3mc(YkhO):\n xfkT = {}\n lQ3t = ZbWC.compile('^(?P<var_name>[A-Z0-9_\\\\-]+)=(?P<var_value>.+)$')\n MLJE = YkhO.split(' ')\n for tTpl in MLJE:\n if tTpl == '':\n continue\n kUBT = lQ3t.match(tTpl.lstrip())\n if not kUBT:\n raise ValueError('Invalid Enviro...
[ "0.6524811", "0.6434829", "0.6383133", "0.6287553", "0.6157384", "0.6104695", "0.58858013", "0.5865892", "0.5860936", "0.58321744", "0.5730586", "0.57269543", "0.570637", "0.57010305", "0.5673176", "0.5672899", "0.5661934", "0.5639696", "0.56223875", "0.5616201", "0.5582646",...
0.7448222
0
Build a Keras network for policy. Policy network maps inputs (observations) to probabilities of taking each action.
def es6m(YKHO, GhuM, Mbpf, BFPn): C3ST = bdPE.models.Sequential([bdPE.layers.Dense(64, input_shape=GhuM, activation='tanh'), bdPE.layers.Dense(64, activation='tanh'), bdPE.layers.Dense(Mbpf * BFPn, activation=None), bdPE.layers.Reshape(target_shape=[Mbpf, BFPn]), bdPE.layers.Softmax(axis=2)]) return C3ST
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D576(vHPW: types.NestedSpec, Yv2t: Sequence[int]=(512, 256), FB66: Sequence[int]=(512, 256)) -> cuzp[str, NXYx.Module]:\n ymBG = oyIN.prod(vHPW.shape, dtype=int)\n Yv2t = list(Yv2t)\n FB66 = list(FB66) + [1]\n Tlei = NXYx.Sequential([UziS.LayerNormMLP(Yv2t), UziS.MultivariateNormalDiagHead(ymBG), U...
[ "0.6810179", "0.6767193", "0.67652434", "0.6761384", "0.6733095", "0.67329377", "0.66575545", "0.6646191", "0.66343147", "0.6592606", "0.65597624", "0.652856", "0.6516587", "0.64952606", "0.6477133", "0.64583004", "0.64526296", "0.6436721", "0.6424116", "0.642337", "0.6415857...
0.62711096
37
Returns a set of serializer classes for a provided list of APIs If a request class is provided, use it, otherwise default back to serializer class. Don't modify serializer class because DRF depends on it. If a response class is provided, use it, otherwise default back to serializer class. Don't modify serializer class ...
def O2WX(YKHO, NYXC): IyFz = set() for nNXP in NYXC: pmON = nNXP['path'] mXDZ = nNXP['pattern'] db6b = nNXP['callback'] db6b.request = eu5F() ZMzz = YKHO._get_serializer_class(db6b) if ZMzz: IyFz.add(ZMzz) if issubclass(db6b, _p1v.ViewSetMixin)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def EjJY(YKHO, db6b):\n SGPK = YKHO.object.get('parameters', [])\n IyFz = []\n for k78t in SGPK:\n ZMzz = k78t.get('pytype', None)\n if ZMzz is not None:\n try:\n ZMzz = YKHO._load_class(ZMzz, db6b)\n IyFz.append(ZMzz)\n except (ImportError...
[ "0.6495628", "0.6011198", "0.5797157", "0.57900923", "0.5754088", "0.5747629", "0.57062924", "0.56551427", "0.56485814", "0.5623894", "0.5614819", "0.55951005", "0.5590397", "0.5588857", "0.558014", "0.55393285", "0.55393285", "0.5526185", "0.55145967", "0.55097544", "0.54992...
0.7015876
0
Returns serializer fields in the Swagger MODEL format
def TEG3(YKHO, ZMzz): if not ZMzz: return V_D6 = ZMzz().get_fields() nPrm = {} for mWFP, Jyyj in V_D6.items(): nPrm[mWFP] = {'type': Jyyj.type_label, 'required': getattr(Jyyj, 'required', None), 'allowableValues': {'min': getattr(Jyyj, 'min_length', None), 'max': getattr(Jyyj, 'max_lengt...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iJbd(YKHO):\n return list(YKHO.get_raw_field_map().keys())", "def V_D6(YKHO):\n return RCT5._fields(getattr(YKHO, 'model'))", "def p0Py(Emd4):\n Vtzr = {'ShortestPathModel': 'sssp', 'GraphColoringModel': 'graph_coloring', 'PagerankModel': 'pagerank', 'ConnectedComponentsModel': 'connected_componen...
[ "0.7006082", "0.6912694", "0.688629", "0.67491907", "0.657895", "0.65603507", "0.6554104", "0.65459615", "0.65459484", "0.6539514", "0.6507241", "0.64969057", "0.64969057", "0.64842194", "0.64824605", "0.6452636", "0.6446723", "0.64420015", "0.64380497", "0.643741", "0.643741...
0.68204355
3
Loads the trained model from file location for use in generating predictions
def sNAk(VqRE): with open(VqRE, 'rb') as eHNT: Z_lw = t2lc.load(eHNT) return Z_lw
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uyMl(Ux0P):\n pass", "def uyMl(YKHO, pmON='./nnmodel.tflearn'):\n YKHO.model.load(pmON)", "def uyMl(YKHO, VqRE: str):\n bo34.info('Load the model for path: \"%s\"', VqRE)\n YKHO.tokenizer.from_pretrained(VqRE)\n YKHO.model.from_pretrained(VqRE)", "def uyMl(YKHO, pmON):\n YKHO.model = Zy...
[ "0.817228", "0.80632454", "0.80492556", "0.79418796", "0.78832257", "0.78738505", "0.7868206", "0.7862116", "0.7834818", "0.783372", "0.77961576", "0.77961576", "0.77961576", "0.77948534", "0.7784003", "0.77529055", "0.7752633", "0.77180636", "0.7716421", "0.77022535", "0.769...
0.0
-1
Adds a directed edge from u to v with the specified weight.
def rz7z(YKHO, P6bq, Ty9i, upAO): YKHO._W[P6bq][Ty9i] = upAO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YnzR(eQUr, _mSQ, P6bq, Ty9i, yzQ0):\n eQUr[P6bq].add(Ty9i)\n _mSQ[P6bq, Ty9i] = yzQ0", "def WYRu(YKHO, P6bq, Ty9i, upAO=0):\n if P6bq not in YKHO._node_neighbors:\n raise ValueError('Node %s not in the graph.' % P6bq)\n if Ty9i not in YKHO._node_neighbors:\n raise ValueError('Node %...
[ "0.88291234", "0.87460816", "0.86592376", "0.86007136", "0.8550298", "0.8151677", "0.81404996", "0.8006217", "0.79843295", "0.797806", "0.79499465", "0.7936603", "0.78591233", "0.7812324", "0.77977514", "0.7793553", "0.7739214", "0.7731552", "0.7714857", "0.7682216", "0.76614...
0.90031177
0
Computes haversine distance between two points in latitude, longitude.
def vQK9(igSk, iT5T, TGuP, JSDM): A3Vt = 6371000 KNSV = Y_1E(igSk) WOAf = Y_1E(TGuP) QnmL = Y_1E(TGuP - igSk) Swre = Y_1E(JSDM - iT5T) jzdc = YUNn(QnmL / 2) ** 2 + YhSR(KNSV) * YhSR(WOAf) * YUNn(Swre / 2) ** 2 Z9rn = 2 * vwZf(PZyS(jzdc), PZyS(1 - jzdc)) Csk6 = A3Vt * Z9rn return Csk6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vQK9(igSk, GgQG, TGuP, tk0B):\n igSk, GgQG, TGuP, tk0B = map(epAf.radians, [igSk, GgQG, TGuP, tk0B])\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n jzdc = epAf.sin(n_9K / 2) ** 2 + epAf.cos(igSk) * epAf.cos(TGuP) * epAf.sin(H91H / 2) ** 2\n Z9rn = 2 * epAf.asin(epAf.sqrt(jzdc))\n Mkmy = 6371.0\n...
[ "0.82774854", "0.82760745", "0.8265776", "0.8265776", "0.82402813", "0.8223442", "0.8207755", "0.8207378", "0.81378657", "0.8131069", "0.8125456", "0.81153595", "0.809314", "0.8086046", "0.8072485", "0.80656016", "0.806479", "0.8043291", "0.8016657", "0.80127466", "0.80001605...
0.8062076
17
Test that only ingredient for the authenticated user is returned
def aUaa(YKHO): uDCI = egNl().objects.create_user('test2@gmail.com', 'passtest') _baS.objects.create(user=uDCI, name='other ingredient') uBMr = _baS.objects.create(user=YKHO.user, name='test ingredient') Ylbp = YKHO.client.get(zAZy) YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK) YKHO.asser...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _Jlt(YKHO):\n I3Vl = egNl().objects.create_user('dummy2@blainesmith.me', 'testingpassword')\n _baS.objects.create(user=I3Vl, name='Flour')\n uBMr = _baS.objects.create(user=YKHO.user, name='Paprika')\n Ylbp = YKHO.client.get(ZrLe)\n YKHO.assertEqual(Ylbp.status_code, jGRS.HTTP_200_OK)\n YKHO....
[ "0.81022805", "0.8049186", "0.78400755", "0.7756551", "0.77552825", "0.77443045", "0.77207565", "0.7716371", "0.77070045", "0.77035934", "0.76716834", "0.7661245", "0.7654743", "0.75697255", "0.7555691", "0.7534306", "0.75028664", "0.74094003", "0.7398938", "0.7296683", "0.72...
0.79293454
2
Return A of size n
def ucyW(exwG): return oyIN.matrix([[ebxZ(Mkmy, Z9rn, exwG) for Z9rn in range(exwG)] for Mkmy in range(exwG)], dtype=oyIN.float64)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GllP(exwG):\n k0lF = []\n for YRbF in range(1, exwG + 1):\n k0lF.append(YRbF)\n return k0lF", "def jzdc(jzdc, ywwl):\n import numpy as oyIN\n jzdc = oyIN.ravel(jzdc, order='F')\n return jzdc", "def S3W7(exwG):\n Ylbp = []\n YRbF = 1\n while YRbF <= exwG:\n Ylbp.appe...
[ "0.74076945", "0.688286", "0.68190235", "0.6711246", "0.65279424", "0.6462217", "0.6442585", "0.6296611", "0.6289436", "0.62691635", "0.62561756", "0.6226324", "0.622316", "0.6221294", "0.6201564", "0.6128804", "0.609995", "0.6093002", "0.60712254", "0.60638326", "0.60638326"...
0.7545076
0
Linfinity norm of v
def WsG1(Ty9i): max = -epAf.inf for YRbF in Ty9i: if abs(YRbF) > max: max = abs(YRbF) return max
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CkYf(Ty9i):\n return epAf.sqrt(uYbU(Ty9i, Ty9i))", "def CkYf(Ty9i):\n return ywwl.sqrt(ywwl.sum(Ty9i ** 2, axis=-1))", "def CkYf(Ty9i):\n raise NotImplementedError", "def C1nn(XP5J: 'double const *', exwG: 'unsigned int') -> 'double':\n return QZnQ.vnl_c_vectorD_inf_norm(XP5J, exwG)", "def ...
[ "0.7361569", "0.73038024", "0.7122159", "0.70409846", "0.70222104", "0.7016277", "0.7008482", "0.6956224", "0.69535357", "0.69531083", "0.6950477", "0.69488806", "0.69384426", "0.6920383", "0.6900642", "0.6886482", "0.68785876", "0.68714243", "0.6840109", "0.6824942", "0.6820...
0.6916651
14
Convert any kind of image to cv2.
def Nm3T(YKHO, LNo8, Kqxq='bgr8'): ZQ_v = None if type(LNo8) == oyIN.ndarray: ZQ_v = LNo8 elif type(LNo8) == hnIv: ZQ_v = YKHO.convert_ros_msg_to_cv2(LNo8, image_encoding=Kqxq) elif type(LNo8) == PKKP: ZQ_v = YKHO.convert_ros_compressed_to_cv2(LNo8) else: raise TypeEr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LOPW(VXjJ):\n Ll8m = XTiz.array(VXjJ.convert('RGB'))\n Ll8m = Ll8m[:, :, ::-1].copy()\n return Ll8m", "def vqUV(YKHO, LNo8=None):\n if not LNo8:\n LNo8 = YKHO.image\n sUYm = YKHO.imageToNumpy(LNo8)\n hvPQ = XC5k.cvtColor(sUYm, XC5k.COLOR_BGR2GRAY)\n return hvPQ", "def qRFQ(*qIxc...
[ "0.75101626", "0.73975176", "0.71059936", "0.70979947", "0.7081573", "0.70744264", "0.69366086", "0.68399376", "0.67892706", "0.6780178", "0.6780107", "0.6765361", "0.6677978", "0.66701645", "0.66095227", "0.6608555", "0.65939665", "0.6586701", "0.6582313", "0.6565705", "0.65...
0.7001031
6
Calculate rmse of modeled y
def WlDv(LVAh, amiz): r2ut = ~oyIN.isnan(LVAh) try: TLV4 = LVAh[r2ut].shape[0] except: TLV4 = len(LVAh[r2ut]) return oyIN.sqrt(oyIN.nansum((LVAh - amiz) ** 2.0) / TLV4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def iAxY(LVAh, amiz):\n return ((LVAh - amiz) ** 2).mean() ** 0.5", "def iAxY(LVAh, amiz):\n return ((LVAh - amiz) ** 2).mean() ** 0.5", "def iAxY(uN02, LVAh):\n assert uN02.size == LVAh.size, 'Size Mismatch'\n TK2h = 0\n for YRbF in range(LVAh.size):\n TK2h += (float(uN02[YRbF]) - float(...
[ "0.7947673", "0.7947673", "0.78861547", "0.78820515", "0.7839353", "0.7807202", "0.7791346", "0.773812", "0.77227473", "0.7719355", "0.77089375", "0.7700512", "0.7699427", "0.767078", "0.766706", "0.76593083", "0.76593083", "0.7644367", "0.76300037", "0.76268756", "0.7623832"...
0.7357525
33
Merges two dictionaries with the second overwriting the corresponding values of the first and returns the result.
def qo7O(aXHR, A91B): if not aXHR: return A91B if not A91B: return aXHR for G1Hx, bGrB in A91B.iteritems(): if G1Hx in aXHR and isinstance(aXHR[G1Hx], dict) and isinstance(A91B[G1Hx], dict): aXHR[G1Hx] = qo7O(aXHR[G1Hx], A91B[G1Hx]) else: aXHR[G1Hx] = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IYhE(jzdc, Fg_i):\n Aofo = jzdc.copy()\n Aofo.update(Fg_i)\n return Aofo", "def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(WKvO, LVAh):\n epBp = WKvO.copy()\n epBp.update(LVAh)\n return epBp", "def yQxF(WbPA, S69B):\n lXgg = WbPA.cop...
[ "0.87667936", "0.8718866", "0.86982155", "0.8683518", "0.86736786", "0.86420405", "0.86420405", "0.86420405", "0.86420405", "0.86420405", "0.86420405", "0.86420405", "0.86420405", "0.86420405", "0.86420405", "0.86420405", "0.86420405", "0.86420405", "0.86420405", "0.86420405", ...
0.0
-1
Returns a python string that evaluates to the object instance.
def wHJl(YKHO): return YKHO.__class__.__name__ + "('" + YKHO.domain.name + "', {" + "'htdocs' : " + str(YKHO.htdocs.get_atts()) + ", 'assets' : " + str(YKHO.assets.get_atts()) + ", 'log' : " + str(YKHO.log.get_atts()) + ", 'access_log' : " + str(YKHO.access_log.get_atts()) + ", 'error_log' : " + str(YKHO.error_log....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def l5Mr(YKHO, YEnM):\n WBAH = id(YEnM)\n i5jP, bGrB = YKHO._results.get(WBAH, (None, None))\n if i5jP is not None:\n if i5jP < 0:\n i5jP = YKHO._next_result_nr\n YKHO._next_result_nr += 1\n YKHO._results[WBAH] = (i5jP, YEnM)\n return 'r%d' % i5jP\n return...
[ "0.6945705", "0.6866814", "0.6802024", "0.6728775", "0.6714596", "0.6713295", "0.66965175", "0.6682122", "0.6654007", "0.66434824", "0.6643235", "0.6606349", "0.6604648", "0.66023785", "0.66003215", "0.65954953", "0.65823287", "0.6581158", "0.6578984", "0.6573605", "0.6560374...
0.0
-1
The ID of the application to which you want to bind an SLB instance.
def B7c0(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'app_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B7c0(YKHO):\n return YKHO._app.app_id", "def KQF8(YKHO):\n return YKHO._id_app", "def wacs(YKHO) -> str:\n return qe4Y.get(YKHO, 'binding_id')", "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def ...
[ "0.7060397", "0.696322", "0.6941702", "0.68611914", "0.68611914", "0.68611914", "0.6845543", "0.6795494", "0.6735865", "0.6676707", "0.667484", "0.66557544", "0.6606425", "0.6597749", "0.6562187", "0.6496004", "0.6496004", "0.6458254", "0.64261776", "0.64013475", "0.63941354"...
0.64439636
19
The ID of the SLB instance that is going to be bound.
def aFJ0(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'slb_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o_gm(YKHO) -> str:\n pass", "def aFJ0(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'slb_id')", "def wacs(YKHO) -> str:\n return qe4Y.get(YKHO, 'binding_id')", "def o_gm(YKHO):\n return YKHO.fetch('id')", "def unpH(YKHO):\n return YKHO.sid", "def o_gm(YKHO):\n return YKHO._inst...
[ "0.7621033", "0.74279624", "0.741535", "0.738623", "0.733579", "0.728968", "0.728968", "0.728968", "0.7285715", "0.7206334", "0.7177878", "0.714205", "0.714205", "0.714205", "0.714205", "0.714205", "0.714205", "0.714205", "0.7128703", "0.71284544", "0.7007911", "0.69935465"...
0.7466055
1
The type of the bound SLB instance.
def type(YKHO) -> qe4Y.Input[str]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def type(YKHO):\n if YKHO.bound and YKHO.__type is None:\n YKHO.pull()\n return YKHO.__type", "def c_QG(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_type')", "def c_QG(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_type')", "def type(YKHO):\n return YKHO.__type", "def ty...
[ "0.73731136", "0.690342", "0.690342", "0.68952966", "0.6825987", "0.68233216", "0.6822326", "0.6822326", "0.6822326", "0.6822326", "0.6817238", "0.6750074", "0.6701482", "0.6686384", "0.66843265", "0.66843265", "0.66843265", "0.66843265", "0.666316", "0.6658918", "0.6650751",...
0.0
-1
The ID of the virtual server (VServer) group associated with the intranet SLB instance.
def CmUz(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'vserver_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CmUz(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'vserver_group_id')", "def QOGf(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_id')", "def QOGf(YKHO):\n H5ew = 'server_id_{}'.format(YKHO.index)\n return YKHO._attributes[H5ew]", "def wrJZ(YKHO):\n try:\n Ylbp = YKHO.show...
[ "0.81747395", "0.6752501", "0.6728587", "0.6508334", "0.6433992", "0.6431054", "0.63760644", "0.63672113", "0.63501537", "0.63501537", "0.63393545", "0.63393545", "0.63393545", "0.63365644", "0.63299507", "0.63195246", "0.62750554", "0.62725836", "0.62725836", "0.62725836", "...
0.7932282
1
The ID of the application to which you want to bind an SLB instance.
def B7c0(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'app_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B7c0(YKHO):\n return YKHO._app.app_id", "def KQF8(YKHO):\n return YKHO._id_app", "def wacs(YKHO) -> str:\n return qe4Y.get(YKHO, 'binding_id')", "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def ...
[ "0.70631176", "0.69660455", "0.6941303", "0.6864002", "0.6864002", "0.6864002", "0.6847622", "0.67981184", "0.6738477", "0.6679737", "0.66774726", "0.6658511", "0.66081595", "0.66003263", "0.6565068", "0.64984435", "0.64984435", "0.6461038", "0.64466685", "0.64466685", "0.642...
0.6323459
37
The ID of the SLB instance that is going to be bound.
def aFJ0(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'slb_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o_gm(YKHO) -> str:\n pass", "def aFJ0(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'slb_id')", "def aFJ0(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'slb_id')", "def wacs(YKHO) -> str:\n return qe4Y.get(YKHO, 'binding_id')", "def o_gm(YKHO):\n return YKHO.fetch('id')", "def...
[ "0.76207197", "0.74653965", "0.7426984", "0.74140584", "0.7386461", "0.7334911", "0.728952", "0.728952", "0.728952", "0.7285105", "0.71781754", "0.71423185", "0.71423185", "0.71423185", "0.71423185", "0.71423185", "0.71423185", "0.71423185", "0.71291494", "0.7128246", "0.7008...
0.72057414
10
The type of the bound SLB instance.
def type(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def type(YKHO):\n if YKHO.bound and YKHO.__type is None:\n YKHO.pull()\n return YKHO.__type", "def c_QG(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_type')", "def c_QG(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_type')", "def type(YKHO):\n return YKHO.__type", "def ty...
[ "0.73731524", "0.6904957", "0.6904957", "0.689569", "0.6826507", "0.6824515", "0.6822999", "0.6822999", "0.6822999", "0.6822999", "0.68171626", "0.675062", "0.67025685", "0.66875416", "0.66842806", "0.66842806", "0.66842806", "0.66842806", "0.6663385", "0.66589326", "0.665036...
0.0
-1
The ID of the virtual server (VServer) group associated with the intranet SLB instance.
def CmUz(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'vserver_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CmUz(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'vserver_group_id')", "def QOGf(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_id')", "def QOGf(YKHO):\n H5ew = 'server_id_{}'.format(YKHO.index)\n return YKHO._attributes[H5ew]", "def wrJZ(YKHO):\n try:\n Ylbp = YKHO.show...
[ "0.8174724", "0.6752545", "0.67283773", "0.6508546", "0.6434515", "0.64340764", "0.6376045", "0.63678014", "0.63523465", "0.63523465", "0.6337821", "0.63374484", "0.63374484", "0.63374484", "0.63297886", "0.6320448", "0.6275833", "0.62721354", "0.62721354", "0.62721354", "0.6...
0.7932325
2
VPC related vswitch ID.
def D_IQ(YKHO) -> h8nf[qe4Y.Input[str]]: return qe4Y.get(YKHO, 'vswitch_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')", "def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')", "def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')", "def D_IQ(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'vswitch_id')", "def D_IQ(YKHO) -> qe4Y.Out...
[ "0.78520286", "0.78520286", "0.78520286", "0.7462417", "0.7462417", "0.7462417", "0.7462417", "0.74558693", "0.73977655", "0.73977655", "0.73977655", "0.73977655", "0.73977655", "0.73977655", "0.7371", "0.7324229", "0.7324229", "0.7324229", "0.726197", "0.707883", "0.707883",...
0.69964397
34
The ID of the application to which you want to bind an SLB instance.
def B7c0(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'app_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def B7c0(YKHO):\n return YKHO._app.app_id", "def KQF8(YKHO):\n return YKHO._id_app", "def wacs(YKHO) -> str:\n return qe4Y.get(YKHO, 'binding_id')", "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def K6wN(YKHO) -> str:\n return qe4Y.get(YKHO, 'application_id')", "def ...
[ "0.7060775", "0.6963985", "0.69425744", "0.68621165", "0.68621165", "0.68621165", "0.68462753", "0.6796949", "0.6736867", "0.66773665", "0.667595", "0.6656834", "0.660594", "0.65983313", "0.65632623", "0.6496905", "0.6496905", "0.64590174", "0.6444565", "0.6444565", "0.642548...
0.6315471
38
The ID of the SLB instance that is going to be bound.
def aFJ0(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'slb_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o_gm(YKHO) -> str:\n pass", "def aFJ0(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'slb_id')", "def wacs(YKHO) -> str:\n return qe4Y.get(YKHO, 'binding_id')", "def o_gm(YKHO):\n return YKHO.fetch('id')", "def unpH(YKHO):\n return YKHO.sid", "def o_gm(YKHO):\n return YKHO._insta...
[ "0.7621033", "0.7466055", "0.741535", "0.738623", "0.733579", "0.728968", "0.728968", "0.728968", "0.7285715", "0.7206334", "0.7177878", "0.714205", "0.714205", "0.714205", "0.714205", "0.714205", "0.714205", "0.714205", "0.7128703", "0.71284544", "0.7007911", "0.69935465",...
0.74279624
2
The type of the bound SLB instance.
def type(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'type')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def type(YKHO):\n if YKHO.bound and YKHO.__type is None:\n YKHO.pull()\n return YKHO.__type", "def c_QG(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_type')", "def c_QG(YKHO) -> str:\n return qe4Y.get(YKHO, 'load_balancer_type')", "def type(YKHO):\n return YKHO.__type", "def ty...
[ "0.73731136", "0.690342", "0.690342", "0.68952966", "0.6825987", "0.68233216", "0.6822326", "0.6822326", "0.6822326", "0.6822326", "0.6817238", "0.6750074", "0.6701482", "0.6686384", "0.66843265", "0.66843265", "0.66843265", "0.66843265", "0.666316", "0.6658918", "0.6650751",...
0.0
-1
The ID of the virtual server (VServer) group associated with the intranet SLB instance.
def CmUz(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'vserver_group_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CmUz(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'vserver_group_id')", "def CmUz(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'vserver_group_id')", "def QOGf(YKHO) -> str:\n return qe4Y.get(YKHO, 'server_id')", "def QOGf(YKHO):\n H5ew = 'server_id_{}'.format(YKHO.index)...
[ "0.79324746", "0.79324746", "0.6755125", "0.67306316", "0.6512341", "0.6433535", "0.64332056", "0.63779664", "0.6370696", "0.6352087", "0.6352087", "0.63408464", "0.63408464", "0.63408464", "0.6339163", "0.632922", "0.6324135", "0.6274382", "0.6274382", "0.6274382", "0.627424...
0.81753373
0
VPC related vswitch ID.
def D_IQ(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'vswitch_id')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')", "def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')", "def D_IQ(YKHO) -> str:\n return qe4Y.get(YKHO, 'vswitch_id')", "def xOeT(YKHO):\n return YKHO._vpc.id", "def xOeT(YKHO) -> str:\n return qe4Y.get(YKHO, 'vpc_id')", ...
[ "0.78520286", "0.78520286", "0.78520286", "0.74558693", "0.73977655", "0.73977655", "0.73977655", "0.73977655", "0.73977655", "0.73977655", "0.7371", "0.7324229", "0.7324229", "0.7324229", "0.726197", "0.707883", "0.707883", "0.707883", "0.707883", "0.707883", "0.707883", "...
0.7462417
3
Convert continuous variable to discrete variable.
def Pyrc(Nupb, DmGg, FGW3): return oyIN.linspace(Nupb, DmGg, FGW3 + 1)[1:-1]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oRbg(YKHO, CAzz):\n WKvO = float(CAzz)\n r845 = YKHO._rcovj(WKvO)\n return YKHO._ftSum(r845) / YKHO.mass()", "def yAqb(YKHO):\n if YKHO._c_discrete is None:\n if isinstance(YKHO._cmap, dict):\n YKHO._labels = oyIN.array([G1Hx for G1Hx in YKHO._cmap.keys() if G1Hx in YKHO.c_uniqu...
[ "0.58026344", "0.5774941", "0.5743845", "0.55919003", "0.5568756", "0.55360645", "0.5531803", "0.55259174", "0.54906774", "0.54742444", "0.54689586", "0.5351101", "0.5337105", "0.5331538", "0.5330169", "0.53048587", "0.53048587", "0.5297649", "0.5271932", "0.5258539", "0.5253...
0.0
-1
Convert the continuous variable of CartPole to 1296 discrete states.
def miw0(Olgd, ZAer): if ZAer == 'CartPole-v1': tKk9, ZzWs, sAmf, XvrT = Olgd pHJO = [oyIN.digitize(tKk9, bins=Pyrc(-2.4, 2.4, _LnS)), oyIN.digitize(ZzWs, bins=Pyrc(-3.0, 3.0, _LnS)), oyIN.digitize(sAmf, bins=Pyrc(-0.5, 0.5, _LnS)), oyIN.digitize(XvrT, bins=Pyrc(-2.0, 2.0, _LnS))] elif ZAer == '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rCGj(YKHO, QTBn):\n return [QTBn / YKHO.sim_width, QTBn % YKHO.sim_width]", "def aAwI(YKHO, QTBn):\n e_2d = YKHO.num_dimensions - 1\n rdlD = min(max(0, oyIN.int(oyIN.round(QTBn[0] * e_2d))), e_2d)\n fvDH = min(max(0, oyIN.int(oyIN.round(QTBn[1] * e_2d))), e_2d)\n eRKs = oyIN.zeros(YKHO.num_dim...
[ "0.60483336", "0.5920433", "0.5761543", "0.5509919", "0.54753995", "0.54688615", "0.5450813", "0.5412839", "0.540757", "0.53755945", "0.52695066", "0.5250246", "0.5231525", "0.5216525", "0.52148074", "0.5213156", "0.51923794", "0.51802564", "0.51718676", "0.51583564", "0.5138...
0.6245253
0
Parses a pip requirements file into a list.
def GCFf(Ux0P): with open(Ux0P, 'r') as Gcbu: return [zFiD.strip() for zFiD in Gcbu if zFiD.strip() and (not zFiD.strip().startswith('--'))]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def K73q() -> list:\n bTRL = Hy7s.path.join(L2rN, 'requirements.txt')\n with open(bTRL, 'rt') as eHNT:\n jeGQ = eHNT.read().splitlines()\n return jeGQ", "def VnMZ(ndwV='requirements.txt'):\n Nqlg = open(ndwV).readlines()\n SMAd = []\n for zFiD in Nqlg:\n BZRV = zFiD.strip()\n ...
[ "0.82725215", "0.7955249", "0.79488736", "0.7922373", "0.789846", "0.78829616", "0.7765195", "0.77371484", "0.77220815", "0.7685379", "0.76820743", "0.76767814", "0.762043", "0.7591979", "0.75882995", "0.7587334", "0.757229", "0.7569154", "0.7556538", "0.75387263", "0.7535262...
0.686156
91
Converts quaternions with components w, x, y, z into a tuple (roll, pitch, yaw)
def tv29(YKHO, yzQ0, WKvO, LVAh, epBp): UH4d = 2 * (yzQ0 * WKvO + LVAh * epBp) RqEy = 1 - 2 * (WKvO ** 2 + LVAh ** 2) rKSe = oyIN.arctan2(UH4d, RqEy) _mrX = 2 * (yzQ0 * LVAh - epBp * WKvO) H2HG = oyIN.where(oyIN.abs(_mrX) >= 1, oyIN.sign(_mrX) * oyIN.pi / 2, oyIN.arcsin(_mrX)) zEni = 2 * (yzQ0 *...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Omrx(rKSe=0.0, H2HG=0.0, xTkQ=0.0):\n lGE9 = epAf.cos(epAf.radians(xTkQ * 0.5))\n n2Q1 = epAf.sin(epAf.radians(xTkQ * 0.5))\n SpII = epAf.cos(epAf.radians(rKSe * 0.5))\n WotO = epAf.sin(epAf.radians(rKSe * 0.5))\n RtYL = epAf.cos(epAf.radians(H2HG * 0.5))\n WfMD = epAf.sin(epAf.radians(H2HG *...
[ "0.74808425", "0.744848", "0.7421942", "0.7419791", "0.7418272", "0.74085426", "0.74085426", "0.74085426", "0.7395485", "0.73733103", "0.72801197", "0.72685796", "0.72209305", "0.72186697", "0.72023726", "0.71587604", "0.7115857", "0.69842166", "0.6946365", "0.69307804", "0.6...
0.7048595
17
Finds matching parent of an element
def dmTF(I3uv, bctv, tk5Y, Qbpu): if len(bctv) > 0 and bctv[-1][2] == I3uv[1]: return (I3uv[0], I3uv) ICDs = 0 _AKB = tk5Y for mWFP, IaaG, d6pt in bctv: if isinstance(_AKB, list): _AKB = _AKB[-1] if mWFP not in _AKB: _AKB[mWFP] = Qbpu() _AKB = _AKB...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def fNfC(_R2e, hLhr, _AKB):\n return _R2e.find(lambda a1PO: a1PO.name == _AKB and a1PO.find(hLhr)).find(hLhr)", "def KViK(YKHO, U6D_):\n return None", "def KViK(YKHO, U6D_):\n return None", "def MRGL(YKHO, pmON):\n return None", "def neBz(YKHO, XP5J):\n if XP5J._parent != XP5J:\n XP5J...
[ "0.761308", "0.76028913", "0.76028913", "0.73346204", "0.7287729", "0.7268147", "0.72496766", "0.70896626", "0.7052998", "0.7052129", "0.70497805", "0.70341414", "0.69274193", "0.6912599", "0.69074607", "0.688156", "0.68751323", "0.6808558", "0.6774054", "0.6717863", "0.67130...
0.0
-1
Takes in a word list & converts it to a dictionary with the word being the key & its length being the value
def OBM8(VqRE): OJS7 = {} with open(VqRE, 'r') as eHNT: for zFiD in eHNT: zFiD = zFiD.strip() if len(zFiD) >= 3: OJS7[zFiD] = len(zFiD) return OJS7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def geA_(yv6U):\n wITS = oRi_(lambda: [])\n for LihS in yv6U:\n YWJT = LihS.split()\n wITS[len(YWJT)].append(LihS)\n return wITS", "def UmlP(yAmx):\n vwCE = yAmx.split()\n Aofo = {}\n for GIN8 in vwCE:\n u54L = len(GIN8)\n Aofo[u54L] = Aofo.get(u54L, set())\n ...
[ "0.7615113", "0.76050824", "0.75463295", "0.75309116", "0.74732625", "0.7447408", "0.73717016", "0.7313055", "0.7287716", "0.72500783", "0.72092956", "0.71467865", "0.71467865", "0.7135697", "0.7125658", "0.71185136", "0.7098187", "0.7094377", "0.708148", "0.708119", "0.70464...
0.0
-1
Returns the current version of the deployed bot. Useful to get debug information.
def xhfZ(YKHO): return 'Default py-player'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kaPv(YKHO):\n return YKHO.config.get('nick') + 'Bot version ' + YKHO.config.get('version') + ' by ' + YKHO.config.get('author')", "def kaPv(YKHO):\n return YKHO._env.get_version()", "def kaPv():\n if mulP:\n return '{}.dev{}'.format(wx3I, EP8c())\n else:\n return wx3I", "def DpZ...
[ "0.7563644", "0.74837804", "0.74363375", "0.7417702", "0.7363589", "0.7285007", "0.725336", "0.7242303", "0.7241451", "0.7237634", "0.7213254", "0.721206", "0.71899474", "0.7166791", "0.7155459", "0.7141174", "0.70817953", "0.70817953", "0.7078721", "0.7060936", "0.70501965",...
0.0
-1
Resets the state of the environment and returns an initial obseravtion
def ka5c(YKHO, CX0Z=100): for bGrB in Ni9Y(CX0Z): YKHO._env.reset() if YKHO._env.has_path_to(YKHO.target): break else: raise WjFX("Can't find path to the target after reset.") YKHO.done = False SqHK = YKHO._env.get_current_state() return YKHO._state2observation(Sq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def S4Vx(YKHO):\n YKHO._actions = []\n if not YKHO._fixed_init_state:\n YKHO._init_state = YKHO.observation_space.sample()\n YKHO._done = False\n YKHO._reward = 0.0\n YKHO._cum_reward = 0.0\n YKHO._info = {'actions': []}\n YKHO._action = YKHO.simulator.get_first_action()\n YKHO._acti...
[ "0.7826241", "0.7791876", "0.7757946", "0.7756026", "0.76931775", "0.76393706", "0.76393706", "0.76393706", "0.76393706", "0.76393706", "0.75458765", "0.75337154", "0.75018835", "0.74829173", "0.7414665", "0.73788494", "0.7353737", "0.7346614", "0.73254657", "0.73065954", "0....
0.0
-1
Convert numpy vector to dictionary where elements with same values are grouped together.
def Gzm9(he6J): T6S7 = oyIN.unique(he6J) Op6c = {} for Ty9i in T6S7: Op6c[Ty9i] = [YRbF for YRbF in range(len(he6J)) if he6J[YRbF] == Ty9i] return (Op6c, T6S7)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NwoQ(V6xz):\n R8cc = {}\n for YRbF, G1Hx in enumerate(V6xz):\n if G1Hx < 0:\n continue\n try:\n R8cc[G1Hx].append(YRbF)\n except KeyError:\n R8cc[G1Hx] = [YRbF]\n return R8cc", "def OtSJ(YKHO, iArr):\n pass", "def oXBw(Oa1e):\n LZKn = {}\...
[ "0.7161125", "0.70782465", "0.6955945", "0.6438481", "0.62939227", "0.61874074", "0.61386174", "0.61084193", "0.6083788", "0.6078298", "0.6078298", "0.60247517", "0.6004835", "0.59232104", "0.59064084", "0.5893931", "0.58736086", "0.58609813", "0.58293957", "0.58156824", "0.5...
0.7612691
0
Last.fm Used to get a list of a user's aliases in a guild. When no arguments are given, this will return the author's aliases. Otherwise, this accepts one argument (a target user's @, ID or alias) and will return a list of the target's alises.
def ZFko(YKHO, tvqc, pan_=None): if tvqc.channel.is_dm: H7ZC(tvqc.channel.send_message, 'Alias commands are guild specific.') else: if pan_ is None: pan_ = tvqc.author.id else: try: pan_ = tesm(pan_) except i15K as e: nP...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZFko(YKHO, tvqc, pan_=None):\n if tvqc.channel.is_dm:\n return H7ZC(tvqc.channel.send_message, 'Alias commands are guild specific.')\n pan_ = YKHO.get_user_info(pan_ or tvqc.author.id, tvqc.channel)\n nPrm = [vbQv for vbQv in pan_.aliases if vbQv.guild_id == tvqc.guild.id]\n if nPrm:\n ...
[ "0.77583534", "0.7265492", "0.65604866", "0.6501261", "0.6449425", "0.6398905", "0.63215154", "0.6298531", "0.6289034", "0.61381483", "0.61381483", "0.60948", "0.6092226", "0.6087123", "0.60495317", "0.60495317", "0.60495317", "0.59894663", "0.5986701", "0.5983729", "0.598182...
0.7786643
0
Outer mapping bounds of this projection, that the user sees.
def ZDNU(YKHO): _Q98 = NgpY.Pair(YKHO.FlatX(-KxVu.MAX_LONGITUDE), YKHO.FlatY(-KxVu.MAX_LATITUDE)) vge9 = NgpY.Pair(YKHO.FlatX(KxVu.MAX_LONGITUDE), YKHO.FlatY(KxVu.MAX_LATITUDE)) return NgpY.Rect(_Q98.x, _Q98.y, vge9.x, vge9.y)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vrOM(YKHO):\n return g6xn(YKHO.xmin - 0.5, YKHO.xmax + 0.5, YKHO.ymin - 0.5, YKHO.ymax + 0.5)", "def X7zS(YKHO):\n return ROpF(YKHO).bounds", "def X7zS(YKHO):\n return YKHO.GetMapper().GetInput().GetBounds()", "def X7zS(YKHO) -> AzJI[float, float, float, float]:\n return YKHO._map_polygon.bou...
[ "0.73232174", "0.72699195", "0.7250027", "0.7221888", "0.7123793", "0.71092075", "0.7099932", "0.7094384", "0.70842993", "0.70644146", "0.7055028", "0.70233035", "0.701619", "0.7005566", "0.7005566", "0.69865865", "0.69865865", "0.69865865", "0.69865865", "0.69865865", "0.698...
0.6725667
35
Given a class `cls`, this recursive function returns a list with all subclasses, subclasses of subclasses, and so on.
def Ty1Z(Emd4): Hh7E = Emd4.__subclasses__() return Hh7E + [Oa1e for KCHu in Hh7E for Oa1e in Ty1Z(KCHu)]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m7Nk(rV9y):\n return set(rV9y.__subclasses__()).union([finE for Emd4 in rV9y.__subclasses__() for finE in m7Nk(Emd4)])", "def sXxB(Emd4):\n Ty1Z = []\n for dm7U in Emd4.__subclasses__():\n Ty1Z.append(dm7U)\n Ty1Z.extend(sXxB(dm7U))\n return Ty1Z", "def TPXT(Emd4):\n Hh7E = []\...
[ "0.81943166", "0.8143563", "0.81376195", "0.81376195", "0.8133391", "0.8072838", "0.8033414", "0.8021786", "0.7987678", "0.79705805", "0.7913774", "0.7836049", "0.782151", "0.7772074", "0.7746047", "0.7728935", "0.7707241", "0.76807487", "0.76580834", "0.765162", "0.7640967",...
0.8186235
1
Set up logging to stderr.
def Xj8R(PJWX=False, LpOW=False, format=iSwn): ABDL = G9jH.INFO if PJWX or PNq_.get('MORPH_VERBOSE'): ABDL = G9jH.DEBUG elif LpOW: ABDL = G9jH.WARN G9jH.basicConfig(format=format, level=ABDL) if not PJWX: G9jH.getLogger('requests.packages.urllib3.connectionpool').setLevel(G9j...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def exRq(YKHO):\n G9jH.basicConfig(level=G9jH.DEBUG, format='%(asctime)s |%(name)-40s |%(message)s', datefmt='%H:%M:%S', stream=HwRy.stderr)", "def xBeL(ABDL='TIMING'):\n global root\n tk5Y.bumpLevel(ABDL)\n DCgT = pPSr()\n DCgT.setLevel(ABDL)\n uaPq = qfeu()\n DCgT.setFormatter(uaPq)\n t...
[ "0.79238147", "0.71333563", "0.6919691", "0.68898934", "0.6849528", "0.6773431", "0.6706109", "0.6692686", "0.6686489", "0.6680289", "0.6661767", "0.66524065", "0.6625159", "0.6556477", "0.6553256", "0.6550614", "0.654683", "0.6495444", "0.64938897", "0.6463367", "0.6421704",...
0.6220305
51
Returns the useragent string that the client is currently using.
def Lb1u(YKHO): return Byma.USER_AGENT_FORMAT.format(**{'app_version': YKHO.app_version, 'android_version': YKHO.android_version, 'android_release': YKHO.android_release, 'brand': YKHO.phone_manufacturer, 'device': YKHO.phone_device, 'model': YKHO.phone_model, 'dpi': YKHO.phone_dpi, 'resolution': YKHO.phone_resolut...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lb1u(YKHO) -> str:\n return YKHO.headers['User-Agent']", "def Lb1u(YKHO) -> str:\n return YKHO['requestContext']['http']['userAgent']", "def Lb1u(YKHO):\n return YKHO._user_agent", "def Lb1u(YKHO):\n return YKHO._user_agent", "def Lb1u(YKHO):\n return YKHO._user_agent", "def HZN0(YKHO)...
[ "0.87046987", "0.8596547", "0.846467", "0.846467", "0.846467", "0.8453121", "0.8426267", "0.8426267", "0.8426267", "0.8426267", "0.835033", "0.8312379", "0.8296704", "0.82071245", "0.81667805", "0.81521493", "0.79122555", "0.7909002", "0.78945166", "0.78463477", "0.78206825",...
0.82072335
13
The client's current csrf token
def f_WM(YKHO): return YKHO.get_cookie_value('csrftoken')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f_WM(YKHO):\n return YKHO.get_cookie_value('csrftoken') or YKHO.init_csrftoken", "def IpuJ(YKHO):\n eOtH = YKHO.__token\n if eOtH is None:\n return YKHO.new_csrf_token()\n return eOtH", "def v9f4(YKHO) -> str:\n geh0: cuzp[str, str] = YKHO.get_json('/csrfhandler')\n return geh0['to...
[ "0.8520416", "0.83068675", "0.82180953", "0.81327856", "0.8001637", "0.7949881", "0.7949881", "0.7750153", "0.77124834", "0.76290447", "0.7611072", "0.75764763", "0.75560546", "0.7547933", "0.7510337", "0.7396922", "0.736697", "0.7348554", "0.7319934", "0.72695637", "0.726511...
0.87261105
0
Generate an android device ID
def B5Hj(Emd4, yokr=None): return 'android-{0!s}'.format(Emd4.generate_uuid(True, yokr)[:16])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XSNx():\n jf3N = ''.join((tuKI.choice(vIwR.ascii_letters) for bGrB in range(NRFS)))\n return jf3N", "def Pld4(YKHO, yokr):\n fyOr = '12345'\n r8hN = HBct.md5()\n r8hN.update(yokr.encode('utf-8') + fyOr.encode('utf-8'))\n return 'android-{}'.format(r8hN.hexdigest()[:16])", "def DJw5() -> s...
[ "0.8340633", "0.81899834", "0.8000751", "0.7368817", "0.73483455", "0.7341442", "0.732592", "0.7243592", "0.7101856", "0.7101143", "0.7056293", "0.7054524", "0.70395607", "0.6938378", "0.6938378", "0.6915707", "0.6904785", "0.6897251", "0.6837354", "0.6833148", "0.68085176", ...
0.86661446
0
Find the index of the set that contains the given element.
def neBz(YKHO, WKvO): assert 0 <= WKvO < YKHO.__size _AKB = YKHO.__elements[WKvO].parent if _AKB != WKvO: _AKB = YKHO.__elements[WKvO].parent = YKHO.find(_AKB) return _AKB
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pE2c(YKHO, U6D_):\n d6pt = YKHO._binary_search(U6D_)\n ewCu = 0\n BWXx = -1\n for YRbF in range(YKHO._count):\n if U6D_ == YKHO._values[YRbF]:\n BWXx = ewCu\n ewCu += 1\n return BWXx", "def mnJr(bCES, U6D_):\n if U6D_ in bCES:\n return bCES.index(U6D_)", "d...
[ "0.75666076", "0.74513173", "0.7385756", "0.7273515", "0.7047411", "0.7011305", "0.69757754", "0.68981713", "0.6894271", "0.6824727", "0.6753865", "0.66921955", "0.6682028", "0.666886", "0.66682994", "0.659969", "0.65853286", "0.6551104", "0.6551104", "0.65502125", "0.6531093...
0.0
-1
Return the serializer instance that should be used for validating and deserializing input, and for serializing output.
def a9qP(YKHO, qIxc, **B2fa): if YKHO.is_update_model: cIuE = izt5 else: cIuE = xc46 return cIuE(qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZMzz(YKHO, **B2fa):\n if not YKHO._serializer:\n YKHO._serializer = YKHO.get_serializer()(**B2fa)\n return YKHO._serializer", "def ZMzz(YKHO):\n if not YKHO.__serializer:\n if isinstance(YKHO.nested, i3lu):\n YKHO.__serializer = YKHO.nested\n elif isinstance(YKHO.nest...
[ "0.75366306", "0.7347926", "0.7213767", "0.71591216", "0.71231586", "0.7115238", "0.7115238", "0.70919585", "0.6992111", "0.6929966", "0.69225675", "0.69225675", "0.6889102", "0.6768015", "0.67246383", "0.65747684", "0.6569853", "0.65308803", "0.6504042", "0.64795226", "0.646...
0.5984369
63
Return parsed CLI args.
def dCXb(): wvEv = j1Jz.ArgumentParser() wvEv.add_argument('--cache', dest='cache', type=str, default=None, help='Path to cache file.') wvEv.add_argument('--cache-expiration', dest='cache_expiration', type=int, default=t2Jq.EXPIRATION, help='Time, in seconds, for how long to keep items in cache.') wvEv....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dCXb():\n return wvEv.parse_args()", "def rwTO(YKHO, qIxc):\n return YKHO.parser.parse_args(qIxc)", "def TLzU(YKHO):\n pass", "def ZcJB():\n wvEv = j1Jz.ArgumentParser(description='Generate bindings from mojom parser output.')\n wvEv.add_argument('-f', '--file-graph', dest='file_graph', he...
[ "0.8022793", "0.79549766", "0.7947135", "0.7945673", "0.7936852", "0.79192156", "0.78953314", "0.7894193", "0.7857342", "0.7826418", "0.7802797", "0.7801646", "0.77188736", "0.768612", "0.764838", "0.76401955", "0.76211447", "0.7610373", "0.76040304", "0.76004744", "0.7598372...
0.0
-1
setup a the object that will be use to actually perform graphql queries to the server. The function will be called the first time we needed to contact the grpahql server. So you can use this function to setup the graphql client
def zY8J(YKHO, KwUn: str) -> any: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G1rS(YKHO, YEnM, cuiw):\n return", "def Baw8(YKHO):\n YKHO.base_url = 'http://127.0.0.1:5000/graphql'\n YKHO.headers = {'content-type': 'application/json'}", "def Baw8(YKHO):\n YKHO.base_url = 'http://127.0.0.1:5000/graphql'\n YKHO.headers = {'content-type': 'application/json'}", "def Baw8...
[ "0.671541", "0.6691235", "0.6691235", "0.6691235", "0.65648174", "0.64999074", "0.6462499", "0.6433173", "0.6323302", "0.6323302", "0.6300262", "0.6293454", "0.6240654", "0.61353403", "0.61336744", "0.6115577", "0.60543424", "0.6034376", "0.6033743", "0.6031343", "0.5994438",...
0.74310035
0
Fetch the graphql json response from the client. The default assume the usage of graphendjango.utils.testing.Client
def izrl(YKHO, geh0: any) -> cuzp[str, any]: pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jxrn(xDcj):\n nyyK = False\n GPtr = kuFB()\n Aofo = None\n bD7m = GPtr.web_api_server_url()\n try:\n geh0 = G4JS.get(bD7m, params={'query': xDcj})\n geh0.raise_for_status()\n nyyK = True\n except G4JS.exceptions.Timeout as err:\n FTK0 = 'Timeout when attempting to ...
[ "0.6461036", "0.61807317", "0.59999055", "0.59795475", "0.5930688", "0.5888791", "0.588149", "0.58529454", "0.5836329", "0.583154", "0.5798453", "0.576986", "0.5763506", "0.5755865", "0.57158655", "0.57158655", "0.57158655", "0.56945544", "0.5687399", "0.5677982", "0.5673211"...
0.0
-1
Returns the player on this tile, or None if no player
def oyg0(YKHO): XP5J = set(CTtz.PLAYERS) & set(YKHO.value) if not XP5J: return None return list(XP5J)[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nAM4(YKHO):\n return YKHO.player", "def nAM4(YKHO):\n return YKHO.player", "def nAM4(YKHO):\n return YKHO.players[YKHO.current_player]", "def nAM4(YKHO):\n return YKHO._player", "def nAM4(YKHO):\n return YKHO._player", "def nAM4(YKHO):\n return YKHO._player", "def nAM4(YKHO):\n ...
[ "0.8070576", "0.8070576", "0.8033008", "0.7996101", "0.7996101", "0.7996101", "0.7996101", "0.7996101", "0.7928788", "0.78071505", "0.78014296", "0.7754025", "0.7742348", "0.7725822", "0.76862514", "0.7677317", "0.76556754", "0.761827", "0.7606545", "0.7605478", "0.7549484", ...
0.8082096
0
Get all nonempty tiles within max_distance that contain tiles. >>> m = Map([['', '', '', '', ''], \ ['', '', '', '', ''], \ ['', '', '', '', ''], \ ['', '', '', 'W', ''], \ ['', '', 'B', 'W', '']]) >>> sorted(m.search((2, 3), 2)) [(2, 4), (3, 3), (3, 4)] >>> sorted(m.search((2, 3), 2, 'B')) [(2, 4)]
def TgwQ(YKHO, re34, aq_o=None, PttE=None): _itR, AFLh = re34 pPtT = max(0, _itR - aq_o) i4t3 = max(0, AFLh - aq_o) aNWe = min(YKHO.width, _itR + aq_o) G2kP = min(YKHO.height, AFLh + aq_o) dixj = [] for fvDH in range(pPtT, aNWe): for rdlD in range(i4t3, G2kP): eL5z = YKHO...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nm4D(BH3N, U4F5, xjH7, d6pt):\n gGq6 = [d6pt]\n DjXl = [d6pt]\n oWb2 = []\n if BH3N[d6pt] == giUo:\n return gGq6\n FGW3 = iJ6K(BH3N, xjH7, U4F5, d6pt)\n if FGW3 != 0:\n return gGq6\n while gGq6:\n Q6kx = gGq6.pop()\n for _Wdu in MwFH(Q6kx, U4F5):\n if...
[ "0.5710567", "0.5558803", "0.5542749", "0.5542749", "0.54996794", "0.5433726", "0.53827584", "0.53767157", "0.5352229", "0.5343099", "0.5287129", "0.5287129", "0.5287129", "0.5287129", "0.5287129", "0.5287129", "0.5287129", "0.5287129", "0.5287129", "0.5287129", "0.52829915",...
0.66426957
0
Override the default headers, setting the Server response header
def a1AC(YKHO) -> None: super().set_default_headers() YKHO.set_header('Server', YKHO.settings['server_header'])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a1AC(YKHO):\n for WBPg, BWXx in YKHO.application.settings['custom_response_headers'].items():\n YKHO.set_header(WBPg, BWXx)", "def a1AC(YKHO):\n YKHO.set_header('Server', my7k.options.options.SERVER)\n YKHO.set_header('Content-Type', 'application/json')\n bo34.debug('Default headers set')"...
[ "0.80002", "0.79233974", "0.7783154", "0.7677243", "0.7533644", "0.7433602", "0.74295884", "0.7347334", "0.7258533", "0.721986", "0.72122604", "0.7183637", "0.7166897", "0.7161563", "0.7160945", "0.71575564", "0.71575564", "0.7151974", "0.70882773", "0.70277", "0.7015252", ...
0.7695018
3
Returns True iff the file referenced by FILEPATH looks like a valid image.
def ETKF(VqRE): return H2Co.what(VqRE) is not None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RTvJ(pmON):\n npjt = ['image/' + a1PO for a1PO in ['png', 'gif', 'jpeg', 'jpeg', 'tiff']]\n if bmCH(pmON)[0] in npjt:\n return True", "def WhvJ(Sd0C):\n pmON, IznC = Hy7s.path.split(Sd0C)\n if IznC.endswith(('png', 'jpeg', 'gif', 'tiff', 'bmp')):\n return True\n else:\n re...
[ "0.75875866", "0.7444269", "0.73836315", "0.73751956", "0.7354505", "0.73134845", "0.73134845", "0.73128194", "0.7306139", "0.72709537", "0.7254382", "0.7232625", "0.72081393", "0.7199179", "0.7199127", "0.7132935", "0.7131257", "0.69959223", "0.6979328", "0.6979328", "0.6979...
0.75084704
1
Take movie list and split strings by commas and return it
def rlar(sV3k): for exwG in range(len(sV3k)): sV3k[exwG] = sV3k[exwG].split(',') return sV3k
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def D3h9() -> list:\n sV3k = []\n with open('../phase1/resources/final_movies.csv', newline='') as yXyL:\n N5Pj = m6_J.DictReader(yXyL)\n sV3k = [LHvA['Movie_Titles'].strip() for LHvA in N5Pj]\n yXyL.close()\n return sV3k", "def ZegI(IznC):\n eHNT = open(IznC)\n Yczf = []\n for...
[ "0.6617437", "0.64370906", "0.63723224", "0.6317555", "0.62068367", "0.6144963", "0.61398315", "0.61338", "0.6104621", "0.60149103", "0.60125154", "0.5976104", "0.59357214", "0.59357214", "0.5886329", "0.5883958", "0.58677775", "0.58583176", "0.584299", "0.5789658", "0.577486...
0.78550106
0
If the given token has a "current" service, returns that service else None
def DGs8(hKn5, _amA, q7tv): B373 = BFGC(hKn5, _amA) if B373 is not None: B373 = [KCHu for KCHu in B373 if iv5j(KCHu, q7tv, _amA)] return B373[0] if len(B373) > 0 else False else: c0yN = hKn5['name'] jCFN(f'Unable to retrieve services using token {_amA} in {c0yN}.') re...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAfO(YKHO):\n return YKHO.service is not None", "def zVa7(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'service')", "def zVa7(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service')", "def zVa7(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'service')", "def zVa7(YKHO) ->...
[ "0.68531954", "0.65890783", "0.6514782", "0.6514782", "0.6514782", "0.6514782", "0.6514782", "0.6514782", "0.6459743", "0.6417991", "0.62968767", "0.6290711", "0.62863284", "0.6232823", "0.61967254", "0.612014", "0.6107179", "0.60661376", "0.60399467", "0.59951603", "0.594563...
0.8175236
0
If the given service id is active, returns the service, else None
def GFGC(hKn5, liCf): zVa7 = rVwF(hKn5, liCf) return zVa7 if zVa7 and zVa7.get('status') != 'Inactive' else None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def liCf(YKHO, liCf: str) -> h8nf['UpnpService']:\n for zVa7 in YKHO.services.values():\n if zVa7.service_id == liCf:\n return zVa7\n return None", "def yzTR(YKHO, S1_y):\n try:\n Mkmy = YKHO._get(['services', S1_y])\n except G4JS.HTTPError:\n return None\n else:\n ...
[ "0.79459965", "0.7788214", "0.7541517", "0.7263268", "0.72281015", "0.7169502", "0.7063614", "0.70180804", "0.69894236", "0.6988776", "0.6983675", "0.6925788", "0.69012", "0.6864037", "0.68420565", "0.68306196", "0.6787598", "0.6706576", "0.6657278", "0.664496", "0.664306", ...
0.7936202
1
Register a module with the editor. The module will be registrered as an attribute in the editor, generally taking the name and removing "Module", so for example AssetModule becomes self.Asset. Also, some special callbacks will be looked for and registered
def XuTK(YKHO, yR_P): YKHO._modules[yR_P.getName()] = yR_P yR_P.register(YKHO) setattr(YKHO, yR_P.getName(), yR_P) for XLMv in ['check', 'draw', 'draw_object']: if hasattr(yR_P, XLMv): YKHO._module_cb[XLMv].append(getattr(yR_P, XLMv))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ofH(YKHO, yR_P):\n YKHO.ui.register_module(yR_P)", "def _ofH(YKHO, mWFP, yR_P):\n YKHO.modules_[mWFP] = yR_P", "def _ofH():\n\n def FIgb():\n dJ1p.Registry.remove_tag_binding(kyk_.binding_name)\n dJ1p.EditorBlacklists.unregister(kyk_.binding_name, dJ1p.EditorBlacklists.COURSE_SCOPE)...
[ "0.78390396", "0.7735533", "0.725838", "0.7148032", "0.67745465", "0.669461", "0.66274476", "0.6454776", "0.6411696", "0.6401187", "0.633537", "0.6328635", "0.626094", "0.62425727", "0.62425727", "0.6221544", "0.62116843", "0.6133649", "0.6126435", "0.61254996", "0.6104477", ...
0.7367331
2
Set the materials for a mesh from an idx, matId, asset_type list.
def F9H3(YKHO, rR8k, LSZ7): dSbJ = list(map(lambda KCHu: KCHu.opensim.uuid, rR8k.materials)) for or8S, vLNt, MayW in LSZ7: vb7U = YKHO.find_with_uuid(vLNt, kZw_.data.materials, 'materials') if vb7U and (not vLNt in dSbJ): rR8k.materials.append(vb7U)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QwkI(vb7U, ei4T, LpOW=True):\n RKD7 = JEgA.logger('set_material()')\n vb7U = eBKF.u_stringify(vb7U)\n ei4T = eBKF.u_enlist(ei4T)\n if not LpOW:\n RKD7.debug('set_material(): setting {} onto :\\n{}'.format(vb7U, ei4T))\n N8OZ = []\n for YEnM in ei4T:\n if ccKF.objectType(YEnM) no...
[ "0.68591845", "0.66838557", "0.6621023", "0.6608204", "0.64548385", "0.6421963", "0.64218104", "0.6394732", "0.6179324", "0.6131203", "0.6093891", "0.6004604", "0.5966245", "0.59535617", "0.5945666", "0.59227926", "0.5914878", "0.59014153", "0.5889833", "0.5869554", "0.580696...
0.8098174
0
Insert a score and return ``True`` if it was inserted or ``False`` if it wasn't because it's already there.
def MHMs(YKHO, KCHu): for YRbF, j93S in enumerate(YKHO.scores): if KCHu == j93S: return False if KCHu > j93S: YKHO.scores.insert(YRbF, KCHu) break else: YKHO.scores.append(KCHu) YKHO.saved = False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JPHp(YKHO, wEf2: int) -> bool:\n YKHO.q.append(wEf2)\n YKHO.d[wEf2].add(len(YKHO.q) - 1)\n return len(YKHO.d[wEf2]) == 1", "def JPHp(YKHO, wEf2: int) -> bool:\n YKHO.collection.append(wEf2)\n YKHO.validx[wEf2].add(len(YKHO.collection) - 1)\n return len(YKHO.validx[wEf2]) == 1", "def JPHp(...
[ "0.6747556", "0.6734051", "0.67273057", "0.6672519", "0.66481274", "0.663154", "0.66184455", "0.6601574", "0.6598422", "0.6572074", "0.656703", "0.653517", "0.65252244", "0.651783", "0.6477193", "0.6476735", "0.6476735", "0.6460901", "0.646061", "0.64563805", "0.6447366", "...
0.7711143
0
Answer whether this node is the root of a tree (i.e. it has no parent).
def kFcs(YKHO): return YKHO.parent is None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Swep(YKHO):\n return YKHO.parent_node is None", "def K5QN(YKHO, Q6kx):\n return Q6kx.parent is YKHO.NIL", "def kFcs(YKHO):\n if YKHO.parent == None:\n return True\n else:\n return False", "def kFcs(YKHO):\n return not YKHO.get_directed_branch_to_parent()", "def ruaK(YKHO):\...
[ "0.8851041", "0.86404127", "0.8567238", "0.8499957", "0.8421961", "0.83683515", "0.83337957", "0.83248776", "0.831546", "0.8306809", "0.8274343", "0.8274343", "0.8273505", "0.8101708", "0.8088797", "0.805495", "0.80376726", "0.79934347", "0.7981541", "0.7934469", "0.79247063"...
0.8236672
14
Answer whether this node is a leaf node (i.e. it has no children)
def loae(YKHO): return not YKHO.children
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_Yz(YKHO):\n if len(YKHO.children) > 0:\n return True\n return False", "def RoR6(YKHO):\n return not YKHO.get_descendant_count()", "def RoR6(YKHO):\n return not YKHO.get_descendant_count()", "def loae(YKHO):\n if len(YKHO.children) == 0:\n return True\n else:\n ret...
[ "0.8797012", "0.8781205", "0.8732101", "0.8687092", "0.862282", "0.85946685", "0.8578302", "0.8578302", "0.8578302", "0.85376316", "0.85040426", "0.84978014", "0.8490302", "0.8475631", "0.8462911", "0.8457134", "0.8417218", "0.8417218", "0.8408061", "0.83806205", "0.83795154"...
0.87450707
3
The number of nodes in this tree. This may be different from the number of objects contained in this tree in cases where two or more of these objects are considered equal by the distance function in use (i.e., for two objects ``p`` and ``q``, calling ``self._func(p, q)`` returns ``0`` and when the tree is empty, i.e. t...
def qpYm(YKHO): return YKHO._num_nodes
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def OtzW(YKHO):\n return len(YKHO._node)", "def dJ5n(YKHO):\n mrZR(YKHO)\n return YKHO.tree_.internal_count + YKHO.tree_.leaf_count", "def lU1W(YKHO):\n return len(YKHO.nodes)", "def lU1W(YKHO):\n return len(YKHO.area.nodes)", "def EKkU(YKHO):\n TK2h = 1\n for aUGN in YKHO._children:\n...
[ "0.78571814", "0.7854569", "0.7743886", "0.77198863", "0.7704597", "0.7696449", "0.7656622", "0.7654835", "0.7641721", "0.76330364", "0.7613737", "0.7605917", "0.75980115", "0.75672364", "0.7536982", "0.7535174", "0.7513656", "0.75013363", "0.7500019", "0.74996483", "0.749857...
0.733069
46
The height of this tree. Empty trees have a height of ``0``, trees containing one or more objects have a height ``>= 1``.
def oyMm(YKHO): return YKHO._height
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H2v2(YKHO):\n if YKHO.root is None:\n return -1\n return YKHO.root.height", "def H2v2(YKHO):\n if YKHO.is_leaf():\n return 1\n return 1 + max((aUGN.height() for aUGN in YKHO.children))", "def H2v2(YKHO: 'BST') -> int:\n return x8h4(YKHO._root)", "def H2v2(YKHO) -> int:\n r...
[ "0.87614906", "0.8291357", "0.82727236", "0.82710236", "0.8267625", "0.82496196", "0.8229222", "0.81997937", "0.81817544", "0.815669", "0.81527674", "0.81352144", "0.81124645", "0.8082839", "0.8077395", "0.80692685", "0.8011938", "0.80094266", "0.79509264", "0.7936708", "0.78...
0.0
-1
The parent of this node. `None` if this node is the root of a tree.
def NT9U(YKHO): return YKHO._parent
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _AKB(YKHO) -> h8nf[o7DN]:\n return YKHO._parent", "def temm(YKHO):\n return YKHO._parent_node", "def PAwq(YKHO):\n if YKHO.parent:\n return YKHO.parent\n else:\n raise AttributeError('No parent found. Is this the root node?')", "def _AKB(YKHO):\n if len(YKHO._parents) == 1:\n...
[ "0.85504794", "0.85400194", "0.8483283", "0.8441673", "0.82764465", "0.8248843", "0.8127647", "0.8031443", "0.8023012", "0.79595715", "0.78691876", "0.7750087", "0.7750087", "0.7750087", "0.7750087", "0.77191126", "0.76979053", "0.76979053", "0.76979053", "0.76629627", "0.765...
0.0
-1
A generator that yields all objects in this node and its children by doing recursive preorder traversal. Implementors might choose to use another traversal method which better suits their data structure. Note that objects are returned in no specific order. This implementation will always return objects in the same orde...
def Vs4Q(YKHO): for YEnM in YKHO._values: yield YEnM for aUGN in YKHO.children: for YEnM in aUGN: yield YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def eNvf(YKHO):\n if not YKHO.children:\n return\n for y0cW in sorted(YKHO.children):\n aUGN = YKHO.children[y0cW]\n yield aUGN\n for aUGN in aUGN.traverse():\n yield aUGN", "def Nl91(YKHO):\n if not YKHO.is_empty():\n for XP5J in YKHO._subtree_preorder(YKHO...
[ "0.71957755", "0.7038553", "0.69986975", "0.6961232", "0.6951219", "0.6921984", "0.6798056", "0.6713653", "0.66811514", "0.66811514", "0.66811514", "0.66515535", "0.664737", "0.65951896", "0.65921754", "0.6587959", "0.6553794", "0.65495765", "0.6539012", "0.6510904", "0.64803...
0.5955483
86
A generator that yields all nodes in this subtree by doing recursive preorder traversal. Implementors might choose to use another traversal method which better suits their data structure. Note that objects are returned unordered. This implementation will always return nodes in the same order as long as the tree's conte...
def VoWx(YKHO): yield YKHO for aUGN in YKHO.children: for Q6kx in aUGN.iternodes(): yield Q6kx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Nl91(YKHO):\n if not YKHO.is_empty():\n for XP5J in YKHO._subtree_preorder(YKHO.root()):\n yield XP5J", "def Nl91(YKHO):\n if not YKHO.is_empty():\n for XP5J in YKHO._subtree_preorder(YKHO.root()):\n yield XP5J", "def Nl91(YKHO):\n yield YKHO\n for Q6kx in YK...
[ "0.7239375", "0.7136817", "0.7015468", "0.6961852", "0.6833752", "0.68172777", "0.68158495", "0.68158495", "0.68158495", "0.6807026", "0.67850834", "0.67681086", "0.6716698", "0.66846454", "0.66797096", "0.66490865", "0.6647305", "0.66219723", "0.65944064", "0.65623873", "0.6...
0.0
-1
Return True if this node contains any objects.
def ebnO(YKHO): return len(YKHO._values) > 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIBx(YKHO):\n return bool(YKHO.objects)", "def rIBx(YKHO):\n return bool(YKHO.objects)", "def agtm(YKHO):\n return True if YKHO.childrenCount() > 0 else False", "def agtm(YKHO):\n if len(YKHO.children) == 0:\n return False\n else:\n return True", "def lsmZ(YKHO):\n retur...
[ "0.8131126", "0.8131126", "0.74815685", "0.7462049", "0.7412955", "0.74016386", "0.73870575", "0.738396", "0.7363216", "0.73532915", "0.7345052", "0.732843", "0.73112667", "0.7287015", "0.7286327", "0.72825843", "0.72778285", "0.7242592", "0.72370976", "0.72155946", "0.721331...
0.0
-1