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
Converts post markup (ie. bbcode) to XHTML. This method is threadsafe, buy virtue that the state is entirely stored on the stack. post_markup String containing bbcode. encoding Encoding of string, defaults to "ascii" if the string is not already unicode. exclude_tags A collection of tag names to ignore. auto_urls If Tr...
def ho_7(YKHO, yv1F, tZ2K='utf-8', vIsK=None, XMd5=True, pZ8o=False, x0SS=True, b93c=None, IguF=True): yv1F = yv1F.replace('\r\n', '\n').replace('\r', '\n') if not isinstance(yv1F, QMSQ): yv1F = QMSQ(yv1F, tZ2K, 'replace') if XMd5: yv1F = YKHO.tagify_urls(yv1F) if pZ8o: yv1F = YK...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ho_7(YKHO, yv1F, tZ2K='ascii', vIsK=None, XMd5=True, pZ8o=False, x0SS=True, b93c=None):\n if not isinstance(yv1F, QMSQ):\n yv1F = QMSQ(yv1F, tZ2K, 'replace')\n if XMd5:\n yv1F = YKHO.tagify_urls(yv1F)\n if pZ8o:\n yv1F = YKHO.insert_paragraphs(yv1F)\n wvEv = UTYM(YKHO, tag_data...
[ "0.7786386", "0.6514989", "0.64653635", "0.5964338", "0.56026024", "0.5550301", "0.5522071", "0.5506657", "0.5352133", "0.52775556", "0.51337206", "0.50824416", "0.5081143", "0.5073814", "0.5045335", "0.49296844", "0.4927697", "0.49225137", "0.49138322", "0.49023753", "0.4850...
0.76248145
1
Plot FROC graphs in log scale.
def l9E2(bW5R, yv8o, G8ou, _j11, uWtK, RKWv, yc5J, Ntso, m9N2, ercK): Yoms = oyIN.linspace(mpUn, CDc8, num=10001) TeKD = oyIN.interp(Yoms, bW5R, yv8o) if len(yc5J): QrM1.figure() aNZO = QrM1.gca() R0zR = 'b' QrM1.plot(Yoms, TeKD, color=R0zR, label='{}'.format(ercK), lw=2) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GCIR(RuMz, AT1P, auo4, fQBa, r5Mo, vX67, rftL, UNkI, UuJg, kW8x, bDS3, zMlS, TCjj, iOrz, ei4E, acpS, s9Q4, OsCr, OsBv, XgHQ, fLfx):\n JI1i(figsize=(10, 10))\n MGRM = '#a21d21'\n aocZ = '#185aa9'\n hekn = '#fdff00'\n IZLL = '#008c48'\n AYrC = '#e74c3c'\n zlWC = '#fd85ec'\n jlH3 = '#40e0d...
[ "0.6557488", "0.6499136", "0.6465511", "0.64480287", "0.6413954", "0.64137316", "0.6390426", "0.6385201", "0.6348836", "0.62632495", "0.6258749", "0.62366766", "0.62341714", "0.6229609", "0.6196756", "0.6179442", "0.61706984", "0.6164726", "0.6162596", "0.6155409", "0.6114701...
0.64224756
4
Return a circle crop of the image at given center with given radius
def XSWS(LNo8: numpy.ndarray, hgjH: Sequence, r1VO: int) -> XTiz.ndarray: ZHfW = XTiz.zeros(LNo8.shape[:2], dtype='uint8') XC5k.circle(ZHfW, hgjH, r1VO, 255, -1) _9tk = XC5k.bitwise_and(LNo8, LNo8, mask=ZHfW) N2Dn = _9tk[hgjH[1] - r1VO:hgjH[1] + r1VO + 1, hgjH[0] - r1VO:hgjH[0] + r1VO + 1] return N2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qUK6(LNo8, ZHfW, hgjH, oNIa=0):\n print(ZHfW)\n qJWj = oyIN.array(oyIN.where(ZHfW))\n print(qJWj)\n o4D3, si3g = oyIN.amin(qJWj, axis=1)\n ajwV, skBL = oyIN.amax(qJWj, axis=1)\n return LNo8[si3g:skBL - oNIa, o4D3:ajwV - oNIa]", "def EScF(H8ai: Image.Image) -> hnIv.Image:\n ZHfW = hnIv.ne...
[ "0.7749032", "0.75165766", "0.7480552", "0.74431884", "0.7327792", "0.7268317", "0.72589964", "0.7198583", "0.7104311", "0.7014765", "0.70091766", "0.69743586", "0.6947474", "0.6907085", "0.6892145", "0.68729496", "0.68049556", "0.677832", "0.677086", "0.677086", "0.6759809",...
0.88753873
0
Extracts the parent molecule this atom is from. Returns
def FEKT(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PAwq(YKHO):\n return Hy7s.path.split(YKHO.get_absolute())[0]", "def PAwq(YKHO, nJDj):\n CXI6 = YKHO.execute('SELECT MOLREGNO, PARENT_MOLREGNO FROM MOLECULE_HIERARCHY WHERE MOLREGNO=%s', (nJDj,))\n if not CXI6:\n return nJDj\n assert len(CXI6) == 1\n return CXI6[0][1]", "def ByGo(YKHO)...
[ "0.7133137", "0.7107603", "0.70166016", "0.7007729", "0.69493717", "0.6929083", "0.6876215", "0.6849358", "0.6849358", "0.6849358", "0.6849358", "0.6842511", "0.68220115", "0.68042904", "0.67843056", "0.67722005", "0.67722005", "0.67653316", "0.67610514", "0.6758275", "0.6718...
0.0
-1
Update an existing profile in the profiles collection by id.
def _KOf(YKHO, z39Z, id): z39Z['_id'] = id return YKHO.profiles.update_one(z39Z)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QdZT(YKHO, qv1X, O4Fb, TBsA):\n nPrm = xL1u(TBsA)\n YKHO.rpc_client.update_profile(qv1X.context, O4Fb, nPrm.name(), nPrm.spec(), nPrm.permission(), nPrm.tags())\n raise BQDi.HTTPAccepted()", "def QdZT(YKHO, uJjO: str, z39Z: Profile) -> mv1M:\n pass", "def grRz(O4Fb=None):\n GaDw = S8SU.get('...
[ "0.76519233", "0.74263495", "0.7389407", "0.7280989", "0.7205258", "0.6935682", "0.68803287", "0.6712154", "0.669531", "0.665244", "0.6625468", "0.65949124", "0.65811706", "0.6555807", "0.654806", "0.65168744", "0.6463421", "0.64577484", "0.6424246", "0.642199", "0.6364788", ...
0.83056134
0
Init creates an object whose attributes are similar to the structure returned by the create_bspline function.
def FIMM(YKHO, WKvO, kZLs=None, SA6K=4, kdgP=1, XhTj=None, I5jY=1.0, PJWX=False, jG8h=None, **B2fa): Z599.DataContainer.__init__(YKHO) yLFp = jth9.copy(kZLs) w1sK = jth9.copy(XhTj) if jG8h is not None: YKHO.nord = jG8h['nord'] YKHO.npoly = jG8h['npoly'] YKHO.breakpoints = oyIN.ar...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(ZH81, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.action is None:\n YKHO.action = 0\n if YKHO.order is None:\n YKHO.order = 0\n if YKHO.traj_id is None:\n YKHO.traj_id = 0\n if YKHO.knots is...
[ "0.7643623", "0.7618954", "0.7242167", "0.70116115", "0.6776494", "0.6727358", "0.6724492", "0.6666845", "0.66598815", "0.6522297", "0.6487837", "0.64547294", "0.64507645", "0.6441379", "0.63965636", "0.6378233", "0.636036", "0.6343914", "0.6341853", "0.6341853", "0.6341853",...
0.6385698
15
Return a copied instance of the object.
def jth9(YKHO): pF1t = QPEJ(None) pF1t.nord = YKHO.nord pF1t.npoly = YKHO.npoly pF1t.breakpoints = oyIN.copy(YKHO.breakpoints) pF1t.mask = oyIN.copy(YKHO.mask) pF1t.coeff = oyIN.copy(YKHO.coeff) pF1t.icoeff = oyIN.copy(YKHO.icoeff) pF1t.xmin = YKHO.xmin pF1t.xmax = YKHO.xmax pF1t...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return YKHO.__class__.new_from_obj(YKHO, copy=True)", "def jth9(YKHO):\n return YKHO.__class__(YKHO, copy=True)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(YKHO):\n return YKHO.__class__(YKHO)", "def jth9(Y...
[ "0.90662986", "0.8833143", "0.87887174", "0.87887174", "0.87887174", "0.87887174", "0.87887174", "0.8706549", "0.8706549", "0.8632663", "0.8630836", "0.8564376", "0.85047984", "0.8479107", "0.8423879", "0.8418831", "0.84181505", "0.84162575", "0.84012616", "0.83937186", "0.83...
0.0
-1
Construct banded bspline matrix, with dimensions [ndata, bandwidth].
def XeOP(YKHO, WKvO, ajwV=None): rKAc = YKHO.mask.sum() if rKAc < 2 * YKHO.nord: qmLP.warn('Order ({0}) too low for {1} breakpoints.'.format(YKHO.nord, rKAc)) return (-2, 0, 0) jHsn = WKvO.size exwG = rKAc - YKHO.nord LSh8 = oyIN.zeros((exwG - YKHO.nord + 1,), dtype=int) CN9P = o...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HKzN():\n return oyIN.array([[-1 / 6, 1 / 2, -1 / 2, 1 / 6], [1 / 2, -1, 1 / 2, 0], [-1 / 2, 0, 1 / 2, 0], [1 / 6, 2 / 3, 1 / 6, 0]])", "def QPEJ(YKHO):\n Un7w = YKHO.numbp\n if Un7w < 4:\n owq2 = 3\n else:\n owq2 = 4\n SZxx = 0.0\n PyeS = YKHO.thickness\n FF7h = 2.0\n X...
[ "0.76035357", "0.69803274", "0.6872364", "0.62261945", "0.60505503", "0.5945777", "0.58797914", "0.57757705", "0.57592094", "0.5706106", "0.566499", "0.56615657", "0.56543434", "0.5640414", "0.56227183", "0.5596634", "0.55715907", "0.550345", "0.5478167", "0.54453915", "0.542...
0.0
-1
Return the indices of the last occurrence of the unique elements in a sorted array. The input vector must be sorted before being passed to this function. This can be done by sorting ``x`` directly or by passing the array that sorts ``x`` (``index``). Replicates the IDL ``UNIQ()`` function.
def a4ZY(WKvO, d6pt=None): if len(WKvO) == 0: raise ValueError('No unique elements in an empty array!') if d6pt is None: return oyIN.flatnonzero(oyIN.concatenate(([True], WKvO[1:] != WKvO[:-1], [True])))[1:] - 1 eeYG = WKvO[d6pt] return oyIN.flatnonzero(oyIN.concatenate(([True], eeYG[1:]...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a4ZY(WKvO, d6pt=None):\n from numpy import array, roll\n if d6pt is None:\n rpxG = (WKvO != roll(WKvO, -1)).nonzero()[0]\n if rpxG.size > 0:\n return rpxG\n else:\n return array([WKvO.size - 1])\n else:\n vexM = WKvO[d6pt]\n rpxG = (vexM != roll...
[ "0.74344057", "0.62806726", "0.6270055", "0.6223791", "0.61870164", "0.6152039", "0.59426767", "0.58979654", "0.5896855", "0.587776", "0.58510685", "0.5734653", "0.5734144", "0.571988", "0.57001853", "0.56744766", "0.5644337", "0.5613893", "0.5559144", "0.5558274", "0.5482394...
0.75282055
0
Returns an array filled with moving averages The returned array will be the same length as a. thererefore you don't need to do anything weird to the x values. moving average is calculated by taking n points and averaging them then replace those n points by the average. continue for all points. If the array doesn't nice...
def ZCKv(jzdc, exwG=10): JVUv = len(jzdc) cH34 = Einh(jzdc, epAf.ceil(float(len(jzdc)) / exwG) * exwG) bZGC = len(cH34) VkQK = bZGC - JVUv FHeM = jzdc[-1] for YRbF in reversed(Ni9Y(VkQK)): cH34[-1 * YRbF - 1] = FHeM wgPg = q3V_(cH34, (-1, exwG)) for YRbF, Fg_i in enumerate(wgPg):...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZCKv(jzdc, exwG=2):\n U5bT = oyIN.cumsum(jzdc, dtype=float)\n U5bT[exwG:] = U5bT[exwG:] - U5bT[:-exwG]\n return U5bT[exwG - 1:] / exwG", "def ZCKv(jzdc, exwG=5):\n U5bT = oyIN.cumsum(jzdc, dtype=float)\n U5bT[exwG:] = U5bT[exwG:] - U5bT[:-exwG]\n return U5bT[exwG - 1:] / exwG", "def ZCKv(...
[ "0.7979673", "0.78866506", "0.7870954", "0.77742", "0.7682025", "0.7640211", "0.7579385", "0.75567627", "0.7506767", "0.7478875", "0.7452427", "0.74039227", "0.7402978", "0.73880714", "0.73819345", "0.73585415", "0.7342875", "0.7333642", "0.73102856", "0.71966505", "0.7164839...
0.85341203
0
Register `inject` for each target operation.
def gr_i(YKHO, qEiy): USrK = 'calling-command.ec2.%s' for oPhP in YKHO.TARGET_OPERATIONS: tvqc = USrK % oPhP qEiy.register_last(tvqc, YKHO.inject)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oTSH(Emd4, *lOND, **mC5V):\n\n def mrMx(JfyU):\n \"\"\"The actual decorator\"\"\"\n\n @zaGL(JfyU)\n def h3Xc(*qIxc, **B2fa):\n \"\"\"Wrapper for actual function\"\"\"\n OTw7 = [Emd4.config[mWFP] for mWFP in lOND]\n YPr7 = list(qIxc) + list(OTw7)\n ...
[ "0.634433", "0.57416844", "0.5500228", "0.5453253", "0.5448186", "0.5383748", "0.5354376", "0.5342913", "0.53039455", "0.52948916", "0.5239099", "0.5204498", "0.5195232", "0.51674986", "0.5100224", "0.50850457", "0.5079578", "0.5062328", "0.5058654", "0.5052319", "0.50427705"...
0.56088704
2
Test register call with valid endpoint.
def orIG(YKHO): mWFP = 'label_endpoint' nNXP.register(mWFP, YKHO.label_endpoint, h2IT.LabelResponse) YKHO.assertEqual(list(nNXP._CODE_ENDPOINT_MAP.values()), list(nNXP._NAME_ENDPOINT_MAP.values())) YKHO.assertEqual(len(nNXP._CODE_ENDPOINT_MAP.values()), 1) w2IS = next(iter(nNXP._CODE_ENDPOINT_MAP.va...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dc0C(YKHO):\n pass", "def vo9u(YKHO):\n pass", "def vo9u(YKHO):\n pass", "def dc0C(YKHO):\n YKHO.ezDiscovery.register_endpoint('foo', 'bar', 'localhost', 8080)\n wnQ_ = YKHO.ezDiscovery.get_endpoints('foo', 'bar')\n YKHO.assertEqual(wnQ_[0], 'localhost:8080')", "def vo9u(YKHO):\n g...
[ "0.86207706", "0.7701285", "0.7701285", "0.7679572", "0.75926125", "0.74589896", "0.7385142", "0.7374249", "0.7367521", "0.7343603", "0.731067", "0.7285081", "0.7284051", "0.72360635", "0.72274584", "0.72268015", "0.7192808", "0.71735126", "0.7152653", "0.70751566", "0.706026...
0.76179534
4
Test register call with valid endpoint and permission function.
def ERDf(YKHO): mWFP = 'label_endpoint' nNXP.register(mWFP, YKHO.label_endpoint, h2IT.LabelResponse, permission_func=YKHO.always_true) w2IS = next(iter(nNXP._CODE_ENDPOINT_MAP.values())) YKHO.assertEqual(w2IS.name, mWFP) YKHO.assertEqual(w2IS.func, YKHO.label_endpoint) YKHO.assertEqual(w2IS.perm...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dc0C(YKHO):\n pass", "def vJyi(YKHO):\n mWFP = 'label_endpoint'\n nNXP.register(mWFP, YKHO.label_endpoint, h2IT.LabelResponse, permission_func=YKHO.always_true)\n nNXP.register(mWFP, YKHO.number_endpoint, h2IT.LabelResponse)\n w2IS = next(iter(nNXP._CODE_ENDPOINT_MAP.values()))\n YKHO.asser...
[ "0.7778256", "0.75216186", "0.7491993", "0.7491993", "0.71431696", "0.69722754", "0.69681776", "0.69356066", "0.69339895", "0.6921035", "0.69080776", "0.69009817", "0.6863689", "0.686161", "0.68581915", "0.6844413", "0.6791678", "0.6760261", "0.6752406", "0.6752187", "0.67056...
0.74936134
2
Test register call with valid endpoint and permission function. This time endpoint will be registered twice and it will be with different permission function. In that case, we will use the first one registered.
def vJyi(YKHO): mWFP = 'label_endpoint' nNXP.register(mWFP, YKHO.label_endpoint, h2IT.LabelResponse, permission_func=YKHO.always_true) nNXP.register(mWFP, YKHO.number_endpoint, h2IT.LabelResponse) w2IS = next(iter(nNXP._CODE_ENDPOINT_MAP.values())) YKHO.assertEqual(w2IS.name, mWFP) YKHO.assertEq...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ERDf(YKHO):\n mWFP = 'label_endpoint'\n nNXP.register(mWFP, YKHO.label_endpoint, h2IT.LabelResponse, permission_func=YKHO.always_true)\n w2IS = next(iter(nNXP._CODE_ENDPOINT_MAP.values()))\n YKHO.assertEqual(w2IS.name, mWFP)\n YKHO.assertEqual(w2IS.func, YKHO.label_endpoint)\n YKHO.assertEqua...
[ "0.7576692", "0.72591347", "0.6688162", "0.66558635", "0.6556774", "0.6556774", "0.6534638", "0.6513998", "0.64733183", "0.64523447", "0.64202106", "0.6234047", "0.6197978", "0.6183458", "0.61763346", "0.6132349", "0.609024", "0.6083544", "0.60440534", "0.6032181", "0.5997590...
0.8423676
0
Test endpoints with denied access.
def Agt0(YKHO): CBIr = YKHO.create_user() nNXP.register('label_endpoint', YKHO.label_endpoint, h2IT.LabelResponse, permission_func=YKHO.always_false) nNXP.register('number_endpoint', YKHO.number_endpoint, h2IT.NumberResponse, permission_func=YKHO.always_false) wnQ_ = nNXP.get_endpoints(CBIr) B5MO = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VleG(YKHO):\n YKHO.client.logout()\n im04 = YKHO.client.get(YKHO.url)\n YKHO.assertEqual(im04.status_code, 401)", "def bwe5(YKHO):\n eOtH = YKHO._create_token(scope='forbidden:read')\n uDyx = YKHO.api_get('/api/forbidden/', HTTP_AUTHORIZATION='Bearer %s' % eOtH.token, expected_status=403)\n ...
[ "0.7734251", "0.76564705", "0.75985765", "0.74870086", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", "0.7445348", ...
0.73004985
35
Return the fraction of french street names
def ec5c(YKHO, DuqQ): if DuqQ.lower() in ('fr', 'french'): return YKHO.street_fr if DuqQ.lower() in ('en', 'english'): return YKHO.street_en raise ValueError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x3DL(rdlD):\n l5Ny = rdlD['text']\n Wrzu = l5Ny.split(' ')\n Wrzu = [''.join((Z9rn for Z9rn in KCHu if Z9rn not in vIwR.punctuation)) for KCHu in Wrzu]\n Wrzu = [KCHu for KCHu in Wrzu if KCHu]\n t7hl = Wrzu.__len__()\n Hn_9 = Dhdw.pos_tag(Wrzu)\n xxiS = Dhdw.ne_chunk(Hn_9, binary=False)\n ...
[ "0.58413893", "0.5741842", "0.56407595", "0.5587302", "0.55822766", "0.5573811", "0.552287", "0.5493725", "0.5492797", "0.5485082", "0.5435148", "0.5428064", "0.54227304", "0.5412683", "0.54105794", "0.53824013", "0.53817755", "0.536608", "0.53595555", "0.5356763", "0.535113"...
0.6318816
0
This function tests that the user registration fails and an error message is returned if the user entered already exists (email is already stored in the database)
def pxvO(YKHO, *bGrB): YKHO.open(NKRf + '/logout') YKHO.open(NKRf + '/register') YKHO.type('#email', b5K5.email) YKHO.type('#name', b5K5.name) YKHO.type('#password', b5K5.password) YKHO.type('#password2', b5K5.password) YKHO.click('input[type="submit"]') YKHO.assert_element('h1') YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uXbo(YKHO):\n XKMW = 'auth.login'\n YKHO.make_user(pwd=True, confirm=True)\n with YKHO.client as x0hE:\n _hkX = x0hE.post(nKyW('auth.register'), data={'fullname': 'New User', 'username': 'newuser', 'email': OetC['email'], 'password': 'newpass', 'confirm': 'newpass'})\n YKHO.assert_redirects(...
[ "0.8384437", "0.8241941", "0.8239207", "0.8188722", "0.81835765", "0.8183338", "0.817268", "0.8137815", "0.8115947", "0.802479", "0.8023449", "0.8018596", "0.7993419", "0.7957818", "0.795302", "0.7942472", "0.79417324", "0.79409754", "0.7911481", "0.790872", "0.78992975", "...
0.0
-1
String representation for the client.
def zAg0(YKHO): vIwR = '<== Hi-net web service client ==>\n' vIwR += f'{'url':22s}: {YKHO._HINET}\n' for H5ew in ('user', 'password', 'timeout', 'retries', 'debug', 'max_sleep_count', 'sleep_time_in_seconds'): try: BWXx = getattr(YKHO, H5ew) if H5ew == 'password': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return repr([YKHO._client])", "def zAg0(YKHO):\n return YKHO.client.__str__()", "def wHJl(YKHO):\n return f'<Client client_id={YKHO.client_id} email={YKHO.email}>'", "def SnzW(x0hE):\n vIwR = x0hE.id + ' ; ' + x0hE.name + ' ; ' + str(x0hE.worthy) + '\\n'\n return vIwR", "de...
[ "0.8255178", "0.82417476", "0.7832978", "0.77369744", "0.77032816", "0.7592007", "0.74922365", "0.7484125", "0.7445135", "0.72390354", "0.72378623", "0.7232583", "0.72167915", "0.7205971", "0.7195297", "0.7184672", "0.71835774", "0.71798897", "0.70334065", "0.7014538", "0.701...
0.7787638
3
The current state the machine is in (or none if not initialized).
def DghZ(YKHO): if YKHO._current is not None: return YKHO._current.name return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO):\n return YKHO.current_state or BfDw.get_state(YKHO)", "def ja6o(YKHO):\n return YKHO._current_state", "def DghZ(YKHO):\n return YKHO._current_state", "def vHkF(YKHO):\n return YKHO.current_state", "def ja6o(YKHO):\n with YKHO.__state_lock:\n return YKHO.sys_state", "...
[ "0.788624", "0.77971405", "0.7759664", "0.7719387", "0.7705016", "0.76924974", "0.769004", "0.769004", "0.76866233", "0.7669037", "0.7658839", "0.7653351", "0.7652202", "0.7645923", "0.76412034", "0.7621832", "0.7593985", "0.7578223", "0.757006", "0.7566141", "0.7566141", "...
0.0
-1
Run one timestep of the environment's dynamics. When end of episode is reached, you are responsible for calling `reset()` to reset this environment's state. Accepts an action and returns a tuple (observation, reward, done, info).
def YPaw(YKHO, XeOP): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YPaw(YKHO, XeOP):\n XeOP = oyIN.asarray(XeOP)\n YKHO.timestep += 1\n vwlo = YKHO.financial_graph.take_action(XeOP, reward_mode=YKHO.args.reward_type, disable_default_actions=YKHO.args.disable_default_actions)\n _ins = YKHO._determine_if_episode_is_done()\n U34r = {'net_position': YKHO.financial_...
[ "0.8019773", "0.77830505", "0.7754381", "0.7724948", "0.7649851", "0.7634814", "0.76263666", "0.7621674", "0.76023114", "0.7525375", "0.752515", "0.7450588", "0.74455315", "0.7443615", "0.7438856", "0.7409869", "0.7373431", "0.7349998", "0.73417187", "0.7330675", "0.7325866",...
0.0
-1
Resets the environment to an initial state and returns an initial observation. Note that this function should not reset the environment's random number generator(s); random variables in the environment's state should be sampled independently between multiple calls to `reset()`. In other words, each call of `reset()` sh...
def SiRx(YKHO): raise NotImplementedError
{ "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.7616858", "0.75848776", "0.7565512", "0.7562692", "0.743159", "0.7316348", "0.70718795", "0.70339197", "0.70202124", "0.69442016", "0.68865424", "0.68744177", "0.687198", "0.6869009", "0.68682873", "0.6859283", "0.68377745", "0.68377745", "0.68157226", "0.6800571", "0.6771...
0.0
-1
Sets the seed for this env's random number generator(s).
def yokr(YKHO, yokr=None): return
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BpNF(YKHO, yokr):\n YKHO.env.seed(yokr)\n oyIN.random.seed(yokr)\n tuKI.seed(yokr)", "def e3of(YKHO, yokr):\n YKHO.seed = yokr\n YKHO._random = VDG3(seed=YKHO.seed)", "def fwb1(YKHO, yokr: int):\n tuKI.seed(yokr)\n oyIN.random.seed(yokr)\n PVng(yokr)", "def Z9de(YKHO, yokr):\n ...
[ "0.84100103", "0.83901256", "0.8382196", "0.8266713", "0.82129055", "0.81906366", "0.81476814", "0.8128302", "0.8088149", "0.8085925", "0.8084438", "0.80748516", "0.8054235", "0.80437106", "0.804322", "0.802574", "0.79456854", "0.7945236", "0.7936863", "0.79223806", "0.791500...
0.0
-1
Returns a randomly selected board coordinate, so long as that choice would not end the game.
def dFMK(la2L): l1V2 = la2L.current_board ekD4 = l1V2.get_available() ee8c = l1V2.get_dead() mrPm = [Z9rn for Z9rn in ekD4 if Z9rn not in ee8c] if mrPm != []: return ADdS.choice(mrPm) else: return ADdS.choice(ekD4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FUGi(YKHO, eL5z, iBIi):\n tuKI.choice([True, False])", "def j5P4(iBIi):\n import random\n oLdq = [BZN_ for BZN_, q9ES in RkGy(iBIi)]\n return oLdq[random.randint(0, len(oLdq) - 1)]", "def nXyM(YKHO):\n or8S = YKHO.find_pos(YKHO.board)\n if len(or8S):\n oeNL = or8S[oyIN.random.randi...
[ "0.7600007", "0.75160223", "0.74424225", "0.74152046", "0.73884314", "0.73639125", "0.73218757", "0.7299123", "0.72667706", "0.72453064", "0.7234208", "0.7214314", "0.7211972", "0.72033906", "0.7199417", "0.71681947", "0.71595603", "0.7152641", "0.7109476", "0.7089178", "0.70...
0.0
-1
Tests the confirm_migration method on vmops.
def tIXf(YKHO, vrMt, Uk8h, bLa6, nqaV): EVcG = R5u4.Datastore(ref='fake-ref', name='fake') begE = A0Wq.DataObject() WLVH = A0Wq.DataObject() WLVH.datastore = EVcG.ref begE.backing = WLVH uUld = eLzR.VmdkInfo('[fake] uuid/root.vmdk', 'fake-adapter', 'fake-disk', 'fake-capacity', begE) EQNp = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XryU(YKHO):\n P0YW.step('Migrate the VM %s', Fv2L.VM_NAME[1])\n assert or69.migrateVm(positive=True, vm=Fv2L.VM_NAME[1])\n assert u6kT.is_balancing_happen(host_name=Fv2L.HOSTS[2], expected_num_of_vms=Fv2L.NUM_OF_VMS_ON_HOST - 1, sampler_timeout=Fv2L.SHORT_BALANCE_TIMEOUT)", "def EXTH(YKHO, H7lc, KAO...
[ "0.7052652", "0.7034179", "0.69486964", "0.6502995", "0.64554256", "0.6356047", "0.6314777", "0.626433", "0.6188372", "0.6186404", "0.6182141", "0.6036002", "0.6016852", "0.59887", "0.5964231", "0.5919844", "0.58831185", "0.58413124", "0.5816919", "0.575012", "0.5741022", "...
0.73554295
0
make sure a query with customer name shorter than MIN_NAME_ACTUAL chars doesn't proceed
def CnYm(YKHO): Ol8d = zXUJ('94770000000', gnPz.current_time(), 'reg cust n:%s' % ('a' * (ptN0 - 1))) YKHO.assertRaises(ENAT, _8oH.parse, Ol8d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c8ST(_Ziq, Lx0h):\n if all([len(_Ziq) > Lx0h, _Ziq.isalpha()]):\n return True\n else:\n return False", "def wlq_(YKHO):\n YKHO.subject.name = R2wi(length=dwb6(1, 10).fuzz()).fuzz()\n YKHO.subject.full_clean()", "def H8fq(YKHO):\n Ol8d = zXUJ('94770000000', gnPz.current_time(), ...
[ "0.6583502", "0.64589465", "0.6412219", "0.6286858", "0.61723256", "0.60860074", "0.607542", "0.6042478", "0.6016061", "0.60085034", "0.600364", "0.6002699", "0.59752977", "0.592335", "0.59049255", "0.58905697", "0.5878786", "0.5870493", "0.5864497", "0.5863876", "0.58505577"...
0.68804467
0
make sure a query with customer name longer than MAX_NAME_ACTUAL chars doesn't proceed
def oWwl(YKHO): Ol8d = zXUJ('94770000000', gnPz.current_time(), 'reg cust n:%s' % ('a' * (ntRi + 1))) YKHO.assertRaises(TSGJ, _8oH.parse, Ol8d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wlq_(YKHO):\n YKHO.subject.name = R2wi(length=dwb6(1, 10).fuzz()).fuzz()\n YKHO.subject.full_clean()", "def QNqz(YKHO, mWFP: str) -> bool:\n return len(mWFP) <= 30 and len(mWFP) != 0", "def AJ5b(YKHO):\n GRk0 = ADGs.objects.get(id=YKHO.test_calendar.pk)\n BcCR = GRk0._meta.get_field('name')....
[ "0.70248604", "0.68951476", "0.6867454", "0.684304", "0.66721594", "0.66721594", "0.6528116", "0.6528116", "0.6526528", "0.64874136", "0.6469273", "0.6443664", "0.64390415", "0.6377569", "0.6357863", "0.635464", "0.6352648", "0.63501656", "0.6344567", "0.6340812", "0.6333581"...
0.68116885
4
make sure a query with shop name longer than MAX_NAME_ACTUAL chars doesn't proceed
def EF1c(YKHO): Ol8d = zXUJ('94770000000', gnPz.current_time(), 'reg shop n:%s' % ('a' * (ntRi + 1))) YKHO.assertRaises(TSGJ, _8oH.parse, Ol8d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QNqz(YKHO, mWFP: str) -> bool:\n return len(mWFP) <= 30 and len(mWFP) != 0", "def AJ5b(YKHO):\n GRk0 = ADGs.objects.get(id=YKHO.test_calendar.pk)\n BcCR = GRk0._meta.get_field('name').max_length\n YKHO.assertEqual(BcCR, 50)", "def wlq_(YKHO):\n YKHO.subject.name = R2wi(length=dwb6(1, 10).fuz...
[ "0.68937904", "0.6578155", "0.64708495", "0.64455795", "0.63520753", "0.63427657", "0.63381714", "0.63381714", "0.63109994", "0.6298922", "0.6298922", "0.6278667", "0.62703055", "0.6249304", "0.62298715", "0.6224128", "0.62212473", "0.62209487", "0.61994964", "0.6191779", "0....
0.6703777
1
make sure a query with shop category longer than MAX_CATEGORY_ACTUAL chars doesn't proceed
def CV6E(YKHO): Ol8d = zXUJ('94770000000', gnPz.current_time(), 'reg shop n:shop1 c:%s' % ('a' * (CNMz + 1))) YKHO.assertRaises(yWyH, _8oH.parse, Ol8d)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQU5(YKHO):\n chHa = qQXR.loads(YKHO.client.get('%s?lat=44.609079&lng=-124.052538&limit=10' % gxEw('pois-categories', kwargs={'id': '1'})).content)\n BpDp = qQXR.loads(YKHO.expected_cat1)\n YKHO.assertEqual(chHa, BpDp)", "def ckZY(YKHO):\n Ol8d = zXUJ('94770000000', gnPz.current_time(), 'reg shop...
[ "0.64222926", "0.6201913", "0.5953983", "0.59129596", "0.58585435", "0.5809407", "0.5793223", "0.5773697", "0.57016337", "0.5693081", "0.56730556", "0.56705004", "0.56181103", "0.56181103", "0.55972606", "0.5584037", "0.5583469", "0.55824", "0.55730295", "0.55726045", "0.5569...
0.6695388
0
Returns a list of valid neighbors of a given coordinate.
def A_IW(BHsk, Htse): if len(BHsk) == 1: return [WKvO for WKvO in range(BHsk[0] - 1, BHsk[0] + 2) if 0 <= WKvO < Htse[0]] iol4 = [] for tpio in A_IW(BHsk[:-1], Htse[:-1]): for WKvO in range(BHsk[-1] - 1, BHsk[-1] + 2): if 0 <= WKvO < Htse[-1]: if type(tpio) == int...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def A_IW(BHsk):\n WKvO, LVAh = BHsk\n ta05 = [(0, 1), (1, 0), (0, -1), (-1, 0)]\n return [(WKvO + Jw7X, LVAh + eUWA) for Jw7X, eUWA in ta05]", "def qIRx(W0Eb, tpio=Fbck):\n OMVh = [WKvO for WKvO in M7sd(W0Eb) if all((YRbF >= 0 for YRbF in WKvO)) and all((YRbF < tpio[r845] for YRbF in WKvO for r845 in...
[ "0.78147376", "0.7604692", "0.7562433", "0.7553292", "0.75455725", "0.7533134", "0.74853504", "0.7312966", "0.731101", "0.7291403", "0.7189871", "0.7188927", "0.714644", "0.7110538", "0.70964134", "0.70911175", "0.7070382", "0.70551854", "0.7054574", "0.7051586", "0.7050796",...
0.73780936
7
Gets the next node from the queue.
def zAcD(YKHO): return YKHO._open.popleft()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def next(YKHO):\n if len(YKHO.queue) == 0:\n return None\n Q6kx = YKHO.queue[0]\n YKHO.current = Q6kx\n YKHO.queue = YKHO.queue[1:]\n return YKHO.current", "def FDlC(YKHO):\n return YKHO.nextNode", "def ZfQb(YKHO):\n return YKHO.nextNode", "def V14U(YKHO):\n try:\n retur...
[ "0.8513532", "0.7599239", "0.7510356", "0.74642956", "0.7364812", "0.73324543", "0.7323796", "0.7323796", "0.7323796", "0.7323796", "0.72995293", "0.72806346", "0.7245214", "0.72387457", "0.72359115", "0.72312456", "0.70510924", "0.70445186", "0.7012263", "0.69905484", "0.698...
0.6811178
30
Returns a removed node to the queue. Necessary if expansion fails and needs to be retried later.
def i8P1(YKHO, Zxma, Q6kx): Zxma.node[Q6kx]['_expanded'] = 0 YKHO._open.appendleft(Q6kx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def a_J5(YKHO):\n try:\n return YKHO._list_node.pop()\n except IndexError:\n YKHO._list_node = YKHO._hard_list_node[:]\n return YKHO._get_node()", "def he0F(YKHO):\n Q6kx = YKHO.storage[0]\n if Q6kx is not None:\n del YKHO.storage[0]\n return Q6kx\n else:\n ...
[ "0.69808346", "0.69420457", "0.6775772", "0.67247885", "0.6640974", "0.66399044", "0.6595107", "0.6397403", "0.6394813", "0.6353657", "0.6328326", "0.6317574", "0.6316866", "0.6314562", "0.62928367", "0.62861645", "0.6274743", "0.62497914", "0.6232234", "0.6214432", "0.620399...
0.0
-1
Get object primary key name. e.g. `id`
def vBmB(Emd4): if Emd4.__mapper__.primary_key: return Emd4.__mapper__.primary_key[0].name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TDCx(YKHO):\n if getattr(YKHO, 'pk', None):\n return str(YKHO.pk)\n if getattr(YKHO, 'id', None):\n return str(YKHO.id)\n if YKHO.__unique_args__:\n return '.'.join([getattr(YKHO, PtXs) for PtXs in YKHO.__unique_args__])", "def NHoH(YKHO):\n return YKHO.__primary_key__", "d...
[ "0.82126415", "0.81459457", "0.81056726", "0.7998836", "0.7975566", "0.792557", "0.7734634", "0.7734634", "0.77102965", "0.7685533", "0.7678472", "0.76416516", "0.76069826", "0.7579752", "0.7559401", "0.7479627", "0.7479229", "0.74766976", "0.7447477", "0.7427622", "0.7417782...
0.8367536
0
Get object primary key.
def _sei(YKHO): return getattr(YKHO, YKHO.pk_name())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ikEn(YKHO):\n return YKHO.get(YKHO.__primary_key__)", "def ycai(YKHO):\n return YKHO.primary_key", "def mexE(YKHO):\n return YKHO.primary_key", "def _sei(YKHO):\n vBmB = tq_1(YKHO.__class__).primary_key[0].name\n return getattr(YKHO, vBmB)", "def xAfl(YKHO):\n return YKHO.application[...
[ "0.84268105", "0.8362561", "0.8313821", "0.82959586", "0.8272657", "0.81922567", "0.8181863", "0.8178265", "0.8166935", "0.8072264", "0.8072264", "0.80045205", "0.7988926", "0.78436476", "0.78176755", "0.7770514", "0.7761073", "0.7647062", "0.7629386", "0.7621496", "0.7619086...
0.78284425
14
Mean distance of each joints.
def bKPj(yLHq, RKYb): pImw = oyIN.sqrt(oyIN.sum(oyIN.square(yLHq - RKYb), axis=-1)) return oyIN.mean(pImw)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zG70(YKHO):\n hjOh = 0\n try:\n for r8hN in YKHO.state['int']['motors']:\n hjOh += YKHO.state['int']['jpos'][str(YKHO.state['int']['motors'][r8hN] + '_dist')]\n return round(hjOh / 2, 2)\n except KeyError:\n return 0", "def vV0L(YKHO, pu_z: int) -> float:\n KlJr = ...
[ "0.70572066", "0.6417342", "0.6355012", "0.63309425", "0.63236266", "0.63140327", "0.62862724", "0.6251738", "0.6195388", "0.61388147", "0.6119045", "0.61163723", "0.61036557", "0.610344", "0.60938215", "0.6076802", "0.6046908", "0.6045988", "0.6039569", "0.6034506", "0.60302...
0.0
-1
easier y_axis_setup ax = set to ax to use min_ = yaxis minimum max_ = yaxis maximum interval = interval for the axis Returns set yaxis
def QPNc(YKHO, aNZO, T8H5, Np5D, VOlW=1): hut6 = aNZO.yaxis.set_major_locator(x5MY.ticker.MultipleLocator(VOlW)) rTQi = aNZO.set_ylim(T8H5, Np5D) return (hut6, rTQi)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NK3Y(YKHO):\n YKHO.yMinSpinBox.setEnabled(False)\n YKHO.yMaxSpinBox.setEnabled(False)\n _k5s = YKHO.yMinSpinBox.value()\n U3WM = YKHO.yMaxSpinBox.value()\n YKHO.myAxis.set_ylim(_k5s, U3WM)\n YKHO.scaleBars.setPos(yPos=U3WM, fromMax=True)\n YKHO.yMinSpinBox.setEnabled(True)\n YKHO.yMaxSp...
[ "0.74411803", "0.7228734", "0.7166241", "0.7130819", "0.7120157", "0.70012575", "0.6905243", "0.68764436", "0.6862096", "0.6851058", "0.68284845", "0.6787897", "0.67824864", "0.67597234", "0.67554796", "0.6742511", "0.67386013", "0.67334807", "0.67052484", "0.66968596", "0.66...
0.90187454
0
Returns the average win, loss and null ratio of the network playing against random player
def Ic6g(YKHO, Zxma, N7mY, nbgF=200): sRdU = 0 rCx7 = 0 Qbmz = 0 for WhY1 in range(nbgF): Aofo = YKHO.net_VS_random(Zxma, True, N7mY) if Aofo == 1: sRdU += 1 elif Aofo == 0: rCx7 += 1 else: Qbmz += 1 for WhY1 in range(nbgF): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IQIB(YKHO, Bwa6):\n if not len(Bwa6):\n return 0\n sum = 0\n for oyg0 in Bwa6:\n sum += eQSh(oyg0)['percent_win']\n return float(sum) / len(Bwa6)", "def sbJ4(YKHO, cpSQ=[0, 1, 2], Acvy='win'):\n if YKHO.games_played(cpSQ) - YKHO.default_val <= 0:\n return 0\n return (YK...
[ "0.7354688", "0.6725163", "0.67250806", "0.66675544", "0.6599519", "0.6595214", "0.6595214", "0.6595214", "0.65870583", "0.6584274", "0.6543615", "0.653582", "0.6525474", "0.6520998", "0.65042144", "0.64389706", "0.6318799", "0.6305539", "0.62783283", "0.62698627", "0.6255716...
0.5927218
55
Equivalent of `list(map(fn, iterables))` driven by `concurrent.futures.ThreadPoolExecutor`.
def ynUU(FYKK, *ix7N, **QWjP): from concurrent.futures import ThreadPoolExecutor return N_Pq(ThreadPoolExecutor, FYKK, *ix7N, **QWjP)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def map(YKHO, JfyU, *ix7N):\n L4cE = map(YKHO.submit, Hs6x.repeat(JfyU), *ix7N)\n return [KS9L.result() for KS9L in L4cE]", "def x7BB(FYKK, fUYa, *qIxc):\n if len(fUYa) == 1:\n return [FYKK(fUYa[0], *qIxc)]\n l54n = len(fUYa)\n ZaUd = zKwq.futures.ProcessPoolExecutor(l54n)\n L4cE = [ZaUd...
[ "0.8633669", "0.827464", "0.7971069", "0.794977", "0.7944696", "0.78652084", "0.78080356", "0.76585615", "0.7467123", "0.74663377", "0.73653454", "0.73653454", "0.7347565", "0.7327183", "0.7276387", "0.72689414", "0.7227719", "0.7216826", "0.71412903", "0.7133787", "0.7125959...
0.7639313
8
Equivalent of `list(map(fn, iterables))` driven by `concurrent.futures.ProcessPoolExecutor`.
def RdC7(FYKK, *ix7N, **QWjP): from concurrent.futures import ProcessPoolExecutor if ix7N and 'chunksize' not in QWjP: NhzD = max(map(QRTS, ix7N)) if NhzD > 1000: from warnings import warn warn('Iterable length %d > 1000 but `chunksize` is not set. This may seriously degr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def map(YKHO, JfyU, *ix7N):\n L4cE = map(YKHO.submit, Hs6x.repeat(JfyU), *ix7N)\n return [KS9L.result() for KS9L in L4cE]", "def x7BB(FYKK, fUYa, *qIxc):\n if len(fUYa) == 1:\n return [FYKK(fUYa[0], *qIxc)]\n l54n = len(fUYa)\n ZaUd = zKwq.futures.ProcessPoolExecutor(l54n)\n L4cE = [ZaUd...
[ "0.84190226", "0.8409675", "0.8187761", "0.80510986", "0.7949528", "0.7870394", "0.7664148", "0.76579565", "0.75724703", "0.756381", "0.75227916", "0.74004483", "0.7357099", "0.7357099", "0.73414326", "0.72919977", "0.7268922", "0.72556937", "0.7255313", "0.72445416", "0.7222...
0.7236615
20
Calculate the speed of the motor at max torque
def qBtR(**B2fa): wJb3 = oyIN.pi * B2fa['step_angle'] / 180 JRYC = 2 * B2fa['max_motor_current'] * B2fa['motor_inductance'] / B2fa['motor_voltage'] return wJb3 / JRYC
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vk76(YKHO):\n return YKHO.__drone_max_speed", "def W_k7(YKHO, v_h6):\n if YKHO._fixed_speed or v_h6 < 3.0:\n return 0.01\n else:\n return v_h6 / YKHO._max_range * 0.5", "def eOts(YKHO):\n return GYhQ.b2RevoluteJoint_GetMaxMotorTorque(YKHO)", "def HWhh(YKHO):\n return 2 * epAf...
[ "0.74495006", "0.7242876", "0.7194715", "0.7172927", "0.71280086", "0.7105787", "0.7103597", "0.70951945", "0.7091012", "0.7026888", "0.6974173", "0.69535", "0.6949842", "0.6933492", "0.68148696", "0.67572415", "0.6701167", "0.66679436", "0.6662604", "0.66421396", "0.6620401"...
0.6622444
20
cast(itkLightObject obj) > itkPolygonGroupSpatialObject2
def YWvJ(*qIxc): return dX84.itkPolygonGroupSpatialObject2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xgA7(*qIxc):\n return dX84.itkPolygonGroupSpatialObject2_cast(*qIxc)", "def G7Bf(YEnM: 'itkLightObject') -> 'itkContourSpatialObject2 *':\n return o_6U.itkContourSpatialObject2_cast(YEnM)", "def g7gC(*qIxc):\n return dX84.itkPolygonGroupSpatialObject3_cast(*qIxc)", "def YWvJ(YEnM: 'itkLightObjec...
[ "0.81593394", "0.76778114", "0.75899076", "0.7526104", "0.7508779", "0.7415544", "0.7326522", "0.7323675", "0.73211664", "0.71813685", "0.71463066", "0.70359844", "0.703155", "0.7006512", "0.6960443", "0.6958982", "0.6928592", "0.68470085", "0.681568", "0.664998", "0.66167253...
0.7572562
3
New() > itkPolygonGroupSpatialObject2 Create a new object of the class itkPolygonGroupSpatialObject2 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the...
def oW_4(*qIxc, **PECO): YEnM = eSzs.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = _2ft.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def FIMM(YKHO, *qIxc):\n kXWm.itkSpatialObjectPoint2_swiginit(YKHO, kXWm.new_itkSpatialObjectPoint2(*qIxc))", "def FIMM(YKHO, *qIxc):\n kXWm.vectoritkSpatialObjec...
[ "0.7592247", "0.69575524", "0.6752048", "0.6712652", "0.66719615", "0.65962005", "0.6592105", "0.65611047", "0.65072304", "0.6480743", "0.6419556", "0.6418579", "0.63072306", "0.63016695", "0.6274397", "0.6274015", "0.6273617", "0.6272413", "0.6263828", "0.6257423", "0.625371...
0.8066121
0
itkPolygonGroupSpatialObject2_cast(itkLightObject obj) > itkPolygonGroupSpatialObject2
def xgA7(*qIxc): return dX84.itkPolygonGroupSpatialObject2_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g7gC(*qIxc):\n return dX84.itkPolygonGroupSpatialObject3_cast(*qIxc)", "def YWvJ(*qIxc):\n return dX84.itkPolygonGroupSpatialObject2_cast(*qIxc)", "def G7Bf(YEnM: 'itkLightObject') -> 'itkContourSpatialObject2 *':\n return o_6U.itkContourSpatialObject2_cast(YEnM)", "def YWvJ(*qIxc):\n return ...
[ "0.7852623", "0.78319603", "0.7569754", "0.75445515", "0.74496067", "0.7362054", "0.72751117", "0.7151856", "0.71171165", "0.6994602", "0.69322175", "0.68949145", "0.683966", "0.6748817", "0.6721081", "0.67067575", "0.66369164", "0.66363513", "0.65527034", "0.65432477", "0.65...
0.85187256
0
cast(itkLightObject obj) > itkPolygonGroupSpatialObject3
def YWvJ(*qIxc): return dX84.itkPolygonGroupSpatialObject3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def g7gC(*qIxc):\n return dX84.itkPolygonGroupSpatialObject3_cast(*qIxc)", "def xgA7(*qIxc):\n return dX84.itkPolygonGroupSpatialObject2_cast(*qIxc)", "def P9I_(YEnM: 'itkLightObject') -> 'itkContourSpatialObject3 *':\n return o_6U.itkContourSpatialObject3_cast(YEnM)", "def YWvJ(YEnM: 'itkLightObjec...
[ "0.8075755", "0.7893464", "0.7772149", "0.76841974", "0.7579523", "0.75605917", "0.73590684", "0.7356195", "0.7350994", "0.7299612", "0.72132784", "0.71859103", "0.71778053", "0.7177608", "0.71300644", "0.6867598", "0.6840572", "0.6834749", "0.6821835", "0.679325", "0.6771564...
0.76495725
4
New() > itkPolygonGroupSpatialObject3 Create a new object of the class itkPolygonGroupSpatialObject3 and set the input and the parameters if some named or nonnamed arguments are passed to that method. New() tries to assign all the non named parameters to the input of the new objects the first non named parameter in the...
def oW_4(*qIxc, **PECO): YEnM = _2ft.__New_orig__() import itkTemplate itkTemplate.New(YEnM, *qIxc, **PECO) return YEnM
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oW_4(*qIxc, **PECO):\n YEnM = eSzs.__New_orig__()\n import itkTemplate\n itkTemplate.New(YEnM, *qIxc, **PECO)\n return YEnM", "def FIMM(YKHO, *qIxc):\n kXWm.itkSpatialObjectPoint3_swiginit(YKHO, kXWm.new_itkSpatialObjectPoint3(*qIxc))", "def FIMM(YKHO, *qIxc):\n kXWm.vectoritkSpatialObjec...
[ "0.7423011", "0.7162384", "0.6970422", "0.6937036", "0.6835068", "0.6802069", "0.67817646", "0.6702078", "0.6661635", "0.6621075", "0.6620086", "0.6617115", "0.6601617", "0.65696365", "0.6560805", "0.6526312", "0.6525091", "0.646304", "0.646029", "0.64241934", "0.6412065", ...
0.80974907
0
itkPolygonGroupSpatialObject3_cast(itkLightObject obj) > itkPolygonGroupSpatialObject3
def g7gC(*qIxc): return dX84.itkPolygonGroupSpatialObject3_cast(*qIxc)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YWvJ(*qIxc):\n return dX84.itkPolygonGroupSpatialObject3_cast(*qIxc)", "def xgA7(*qIxc):\n return dX84.itkPolygonGroupSpatialObject2_cast(*qIxc)", "def P9I_(YEnM: 'itkLightObject') -> 'itkContourSpatialObject3 *':\n return o_6U.itkContourSpatialObject3_cast(YEnM)", "def F7zh(YEnM: 'itkLightObjec...
[ "0.80500805", "0.8006947", "0.7856641", "0.7725938", "0.765963", "0.7597763", "0.74221396", "0.72707665", "0.7152839", "0.7035378", "0.7009282", "0.69669116", "0.6912192", "0.6896242", "0.6862305", "0.6823842", "0.68170804", "0.6811049", "0.6800062", "0.6796515", "0.67884254"...
0.86212355
0
Root Mean Squared Error
def iAxY(KCHu, z1Rg): KCHu, z1Rg = BKGP(KCHu, z1Rg) return oyIN.sqrt(oyIN.mean((KCHu - z1Rg) ** 2))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DF3U(YKHO):\n return oyIN.sqrt(YKHO.mean_squared_error())", "def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))", "def DF3U(Y8eF, aMgO):\n return oyIN.sqrt(SDab(Y8eF, aMgO))", "def DF3U(Y8eF, gjpc):\n return PZyS(SDab(Y8eF, gjpc))", "def _td_(YKHO) -> float:\n return YKHO._call_j...
[ "0.83095527", "0.7836191", "0.7805593", "0.7744131", "0.77289146", "0.7613092", "0.7613092", "0.75883543", "0.74986464", "0.74450946", "0.7413678", "0.73911506", "0.7370713", "0.73681945", "0.7365267", "0.72942317", "0.728435", "0.7116391", "0.70879394", "0.7071619", "0.70421...
0.0
-1
This method is called when a class is subclassed. The default implementation does nothing. It may be overridden to extend subclasses.
def kblH(YKHO, *qIxc, **B2fa): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b8V_(YKHO):\n print('Subclass and over-ride this method.')", "def FIMM(YKHO):\n super().__init__(None)", "def FIMM(YKHO):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2fa):\n pass", "def hQ7u(YKHO, *qIxc, **B2...
[ "0.7979876", "0.712065", "0.7114772", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", "0.70907503", ...
0.0
-1
Compute Quadratic form distance of given vector and patterns specified in the configuration.
def zG70(iArr, wOGa): TaUL = {} for mXDZ in wOGa['distance']['patterns']: d2LN = sum([((Ty9i - XP5J) / XP5J) ** 2 for Ty9i, XP5J in zip(iArr['vector']['request'], mXDZ['request'])]) uxk5 = sum([((Ty9i - XP5J) / XP5J) ** 2 for Ty9i, XP5J in zip(iArr['vector']['response'], mXDZ['response'])]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PnVw(nG35, WMAM, a7Rh):\n nG35, WMAM = U9bk(nG35, WMAM)\n HIsl = kMAK(nG35)\n uPJe = kMAK(WMAM)\n by6d = oyIN.subtract(HIsl, uPJe)\n s91d = oyIN.transpose(by6d)\n JpOK = oyIN.multiply(by6d, s91d)\n Lx3t = oyIN.multiply(JpOK, a7Rh)\n h3NN = oyIN.sqrt(oyIN.sum(Lx3t))\n return h3NN", ...
[ "0.6395067", "0.5911743", "0.57088244", "0.5662555", "0.5572511", "0.55204195", "0.551809", "0.5485105", "0.5483693", "0.54736865", "0.5444528", "0.54433686", "0.5396743", "0.53953904", "0.53531617", "0.5352603", "0.53423613", "0.5328883", "0.5324631", "0.53234684", "0.531163...
0.5482419
9
Get a string representation of the set. Provide a helpful way of recreating the set.
def wHJl(YKHO) -> str: return '<{0}{1} at {2:x}>'.format(type(YKHO).__name__, tuple(YKHO._values.values()), id(YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n w6rL = ''\n if YKHO._length == 0:\n w6rL = 'set([])'\n else:\n w6rL = 'set(['\n for YRbF in range(YKHO._length):\n if YRbF != YKHO._length - 1:\n w6rL = w6rL + repr(YKHO._array[YRbF]) + ','\n else:\n w6rL = w6rL + r...
[ "0.8639632", "0.8316349", "0.77491444", "0.7710569", "0.77061844", "0.7565124", "0.75302786", "0.7481458", "0.7431889", "0.736195", "0.7360081", "0.7308485", "0.7151674", "0.71090776", "0.7047502", "0.7030923", "0.6886192", "0.6785267", "0.67631495", "0.67127776", "0.6640446"...
0.0
-1
Get the length of this set.
def szAg(YKHO) -> int: return len(YKHO._values)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def u54L(YKHO):\n return YKHO._set.__len__()", "def u54L(YKHO):\n return YKHO.impl['length'](YKHO)", "def szAg(YKHO):\n if YKHO.__set is not None:\n return len(YKHO.__set)\n else:\n return 0", "def u54L(YKHO) -> int:\n return YKHO._length", "def yall(YKHO):\n return YKHO._le...
[ "0.90309525", "0.8307653", "0.8165713", "0.81486493", "0.81480837", "0.813053", "0.813053", "0.813053", "0.813053", "0.813053", "0.813053", "0.813053", "0.81241673", "0.8116678", "0.81128377", "0.8112043", "0.81117046", "0.81117046", "0.81117046", "0.8084794", "0.80651635", ...
0.76007485
94
Get the length of this dict.
def szAg(YKHO) -> int: return len(YKHO._values)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO) -> int:\n return YKHO._dict.__len__()", "def y1y4(YKHO):\n return len(YKHO._dict.values())", "def szAg(YKHO):\n with YKHO._lock:\n return len(YKHO._dict)", "def luey(YKHO, **B2fa):\n return len(YKHO.keys())", "def szAg(YKHO) -> int:\n return len(YKHO.keys())", "def sz...
[ "0.8626775", "0.84717196", "0.8429612", "0.82844585", "0.82069814", "0.8184372", "0.8184372", "0.815877", "0.8141242", "0.80553013", "0.80467826", "0.79966927", "0.7982047", "0.7977178", "0.79714674", "0.79339457", "0.7925149", "0.78391534", "0.7828334", "0.78203833", "0.7814...
0.75597054
81
Create a copy of this dict.
def jth9(YKHO) -> 'CaseInsensitiveDict': return QVHy({Ty9i[0]: Ty9i[1] for Ty9i in YKHO._values.values()})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jth9(YKHO):\n return YKHO._from_map(YKHO._dict)", "def FzJk(YKHO):\n return dict(YKHO)", "def jth9(YKHO):\n return YKHO.fromDict(YKHO.__dict__)", "def jth9(YKHO):\n return dict(YKHO)", "def jth9(YKHO):\n BdN0 = bsRt()\n return YKHO._fillcopy(BdN0)", "def FzJk(YKHO):\n return YKHO...
[ "0.8518944", "0.8490047", "0.83855087", "0.8335926", "0.8269088", "0.82679373", "0.82642215", "0.825905", "0.82588816", "0.8192598", "0.81815815", "0.81610286", "0.814128", "0.81243443", "0.8033444", "0.796645", "0.7891152", "0.7865432", "0.78600925", "0.78477824", "0.784289"...
0.73601955
41
Get a string representation of the dict. Provide a helpful way of recreating the dict.
def wHJl(YKHO) -> str: return '<{0}{1} at {2:x}>'.format(type(YKHO).__name__, dict(YKHO.items()), id(YKHO))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n return CgYo.pformat(dict(YKHO._asdict()))", "def wHJl(YKHO) -> str:\n return str({'key': YKHO.key, 'value': YKHO.value, 'language': YKHO.language, 'table': YKHO.table, 'comment': YKHO.comment, 'bundle': YKHO.bundle, 'key_extension': YKHO.key_extension})", "def gTzM(YKHO) -> str:\n re...
[ "0.7902442", "0.788945", "0.7844296", "0.7844296", "0.78279907", "0.78122336", "0.7771762", "0.77449495", "0.76627535", "0.76566184", "0.76561725", "0.7630814", "0.7630814", "0.7630814", "0.7630814", "0.76114094", "0.7598747", "0.7598747", "0.7575443", "0.7575443", "0.7575443...
0.0
-1
Shows a users profile. If no user is specified, your profile will be showed instead.
async def profile(YKHO, OaeV, CBIr: discord.Member=None): if CBIr is None: CBIr = OaeV.author NCls = __n6.connect('sqlite:///servers/{}.db'.format(OaeV.guild.id)) tyNF = NCls['profiles'] if tyNF.find_one(user=CBIr.id) is not None: if 'color' in tyNF.find_one(user=CBIr.id): b9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uC3Z(NtEF=None):\n if NtEF and (c5ow.is_anonymous or NtEF != c5ow.name):\n CBIr = mv1M.query.filter_by(name=NtEF).first()\n if CBIr is None:\n eTsH(404)\n else:\n CBIr = c5ow\n if NtEF:\n rPXJ = 'profile.html'\n return TvZl(rPXJ, user=CBIr, sns=CBIr.sns, succe...
[ "0.8149606", "0.8055456", "0.7983305", "0.7956166", "0.79322535", "0.75939363", "0.759179", "0.7587616", "0.75820124", "0.75641835", "0.7537839", "0.7534314", "0.7532792", "0.75318325", "0.7515732", "0.75097966", "0.7500941", "0.7493408", "0.7488994", "0.7475758", "0.7457514"...
0.0
-1
Sets the learning rate to the initial LR decayed by 10 every 30 epochs
def e_63(K0do, qtWj): tspZ = qIxc.lr * 0.1 ** (qtWj // 30) for Lwm5 in K0do.param_groups: Lwm5['lr'] = tspZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)", "def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ", "def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm...
[ "0.7991837", "0.7940576", "0.78895533", "0.78278863", "0.7822731", "0.78170556", "0.7810941", "0.78027624", "0.77914375", "0.7788607", "0.7782131", "0.7765793", "0.77645", "0.77609223", "0.7749379", "0.7739108", "0.7731853", "0.77242327", "0.77121335", "0.7708826", "0.7704794...
0.0
-1
Computes the precision for the specified values of k
def vjyh(hlel, pan_, hz5a=(1,), GbcQ=46): Gq8e = max(hz5a) Ep8u = pan_.size(0) bGrB, nvEb = hlel.topk(Gq8e, 1, True, True) nvEb = nvEb.t() gXXc = nvEb.eq(pan_.view(1, -1).expand_as(nvEb)) Ylbp = [] for G1Hx in hz5a: R2Dg = gXXc[:G1Hx] Ylbp.append(R2Dg.view(-1).float().sum(0, ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rhd_(u5Ef, G1Hx):\n return len(u5Ef) / G1Hx", "def sEak(Mkmy, G1Hx):\n assert G1Hx >= 1\n Mkmy = oyIN.asarray(Mkmy)[:G1Hx]\n return oyIN.mean(Mkmy)", "def sEak(YKHO, G1Hx):\n fdMZ = YKHO.pred_rankings.rdd.map(lambda SjLr: (SjLr[2], SjLr[1]))\n Wbxz = rRQi(fdMZ)\n return Wbxz.precisionA...
[ "0.8003211", "0.79748034", "0.79735845", "0.7941222", "0.78642285", "0.7803938", "0.7707779", "0.7621563", "0.7593218", "0.75612706", "0.752028", "0.7430132", "0.74122673", "0.7375894", "0.7374447", "0.7321427", "0.7254542", "0.7236769", "0.72279894", "0.7204469", "0.7137302"...
0.0
-1
Tests whether ``EmbedFieldBase.iter_contents`` works as intended.
def pBDH(): for Jyyj, sGEu in ((Vcvy(), set()),): Qg87.assert_eq({*Jyyj.iter_contents()}, sGEu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def m_wu():\n for Jyyj, sGEu in ((Vcvy(), set()),):\n hlel = Jyyj.contents\n Qg87.assert_instance(hlel, list)\n Qg87.assert_eq({*hlel}, sGEu)", "def PQjC():\n Q1PJ = tNAa()\n Qg87.assert_eq({*Q1PJ.iter_contents()}, set())", "def qWye():\n SchR = 'attachment://orin.png'\n mWF...
[ "0.7586388", "0.7481701", "0.73948157", "0.7122655", "0.6747507", "0.66930073", "0.6555637", "0.6262513", "0.62020904", "0.5990054", "0.5979708", "0.5979708", "0.59472007", "0.57388127", "0.55526793", "0.5543847", "0.55197984", "0.5513807", "0.5469278", "0.54554516", "0.54263...
0.8060241
0
The python type used for type annotation
def xOjg(YKHO) -> str: return f'Dict[str, {YKHO.element_type.type_annotation}]'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xOjg(YKHO) -> str:\n ...", "def uIxh(*qIxc, **B2fa):\n return type(*qIxc, **B2fa)", "def Hghu(YKHO):\n return type(YKHO)._type", "def type(YKHO):\n return YKHO.__type", "def YwLH(YKHO):\n pass", "def qhcZ(YKHO) -> str:\n SnBA = []\n if YKHO._lexeridref:\n SnBA.append('str'...
[ "0.7615792", "0.75450593", "0.74399376", "0.74326336", "0.7423364", "0.7408992", "0.73246866", "0.7313508", "0.7313508", "0.7283058", "0.7283058", "0.7283058", "0.7283058", "0.7283058", "0.7283058", "0.7283058", "0.7283058", "0.7283058", "0.7283058", "0.7283058", "0.7283058",...
0.0
-1
Postprocess Image and use total tvnorm to denoise postprocessed image 1. postprocess Image 2. use total tvnorm to denoise postprocessed image
def iASz(VXjJ, qIxc, qtWj): yvT9 = MV6i(VXjJ) yvT9 = hU19(yvT9, weight=qIxc.remove_noise, multichannel=True) if qIxc.mod_type == 'purposeful': lR77 = Hy7s.path.join(qIxc.output, '{}_{}_{}_{}_{}.jpg'.format(qIxc.layer_name, qIxc.mod_type, Hy7s.path.basename(qIxc.content_image)[:-4], Hy7s.path.basenam...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _ApB(YKHO, LNo8, k8_E=1):\n WKvO, LVAh = YKHO.pt1\n yzQ0, MKlR = YKHO.size\n WZcn = oyIN.ones((3, 3), oyIN.uint8)\n lJ9m = oyIN.float32([[WKvO, LVAh], [WKvO + yzQ0, LVAh], [WKvO, LVAh + MKlR], [WKvO + yzQ0, LVAh + MKlR]])\n wruc = oyIN.float32([[0, 0], [0 + yzQ0 * k8_E, 0], [0, 0 + MKlR * k8_E],...
[ "0.6981953", "0.6813088", "0.6656048", "0.66349787", "0.6542356", "0.6506223", "0.64878327", "0.64834", "0.64782435", "0.64781654", "0.6446528", "0.64441425", "0.64362985", "0.64107776", "0.6368242", "0.6361961", "0.6361193", "0.6359956", "0.6351664", "0.63344496", "0.6332522...
0.0
-1
Apply preprocess to input img
def biH0(VXjJ): B9EC = oyIN.asarray([0.485, 0.456, 0.406]) NdnM = oyIN.asarray([0.229, 0.224, 0.225]) ZXjL = VXjJ.copy()[:, :, ::-1] ZXjL -= B9EC ZXjL /= NdnM ZXjL = oyIN.transpose(ZXjL, (2, 0, 1)) ZXjL = oyIN.ascontiguousarray(ZXjL) j3sf = ht2j.from_numpy(ZXjL) j3sf.unsqueeze_(0) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G2mu(VXjJ: np.ndarray) -> oyIN.ndarray:\n return VXjJ", "def biH0(YKHO, LNo8):\n raise NotImplementedError", "def VwsG(YKHO, VXjJ):\n if YKHO.architecture == 'VGG':\n print('Now doing VGG Preprocessing.')\n VXjJ = ZylS.keras.applications.vgg16.preprocess_input(VXjJ)\n else:\n ...
[ "0.85726345", "0.84716207", "0.8203564", "0.81316376", "0.8126014", "0.80999935", "0.8061745", "0.8019209", "0.8011602", "0.7989417", "0.7898463", "0.7875243", "0.78566056", "0.784469", "0.7842003", "0.78389806", "0.78356355", "0.7749907", "0.7748309", "0.7723964", "0.7683251...
0.74304146
56
Moving window sum along the specified axis using the filter method.
def m2KE(ezWE, KnxT, jDK_=-1): ezWE = oyIN.array(ezWE, copy=False) global convolve1d if SnXG is None: try: from scipy.ndimage import SnXG except ImportError: raise ValueError("'filter' method requires SciPy.") if jDK_ == None: raise ValueError('An `axis` v...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TGs0(YKHO, KnxT, EdbX=0, jDK_=-1, CkYf=False):\n LVAh = YKHO.copy()\n LVAh.x = TGs0(LVAh.x, KnxT, skip=EdbX, axis=jDK_, norm=CkYf)\n return LVAh", "def UiW0(YKHO, KnxT, jDK_=-1):\n WKvO = tF9S.move_sum(YKHO.x, KnxT, axis=jDK_, min_count=1)\n or8S = [slice(None)] * WKvO.ndim\n or8S[jDK_] = s...
[ "0.7653832", "0.7560569", "0.74407834", "0.6585116", "0.63000035", "0.6219984", "0.61502767", "0.6030627", "0.5906979", "0.590331", "0.5877886", "0.5810392", "0.57973516", "0.57726985", "0.57463926", "0.5722341", "0.57014686", "0.56947285", "0.56841207", "0.56821424", "0.5638...
0.781106
0
Moving window standard deviation along the specified axis.
def yiAI(ezWE, KnxT, jDK_=-1, NKcE='filter', P_MT=0): ezWE = oyIN.array(ezWE, copy=False) if P_MT != 0: raise ValueError('`ddof` must be zero for unaccelerated input.') if NKcE == 'filter': LVAh = OuW6(ezWE, KnxT, axis=jDK_) elif NKcE == 'strides': LVAh = a4av(oyIN.std, ezWE, Knx...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yiAI(YKHO, KnxT, jDK_=-1):\n WKvO = tF9S.move_std(YKHO.x, KnxT, axis=jDK_, min_count=1)\n or8S = [slice(None)] * WKvO.ndim\n or8S[jDK_] = slice(0, KnxT - 1)\n WKvO[or8S] = oyIN.nan\n return eXg7(WKvO, YKHO.copylabel(), validate=False)", "def Zaah(LVAh, zNig=5):\n zNig = 2 * (zNig - 1) // 2 ...
[ "0.7662489", "0.67628086", "0.65625054", "0.6544098", "0.6448486", "0.6381292", "0.62306964", "0.6208272", "0.61045235", "0.6042165", "0.6042105", "0.60270387", "0.60266405", "0.59697807", "0.5939468", "0.59069496", "0.5904213", "0.58644843", "0.5857041", "0.5856784", "0.5852...
0.6566455
2
Moving window standard deviation along the specified axis, ignoring NaNs.
def Wdrb(ezWE, KnxT, jDK_=-1, NKcE='filter', P_MT=0): ezWE = oyIN.array(ezWE, copy=False) if P_MT != 0: raise ValueError('`ddof` must be zero for unaccelerated input.') if NKcE == 'filter': LVAh = UDrj(ezWE, KnxT, axis=jDK_) elif NKcE == 'strides': LVAh = a4av(tF9S.slow.nanstd, e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yiAI(YKHO, KnxT, jDK_=-1):\n WKvO = tF9S.move_std(YKHO.x, KnxT, axis=jDK_, min_count=1)\n or8S = [slice(None)] * WKvO.ndim\n or8S[jDK_] = slice(0, KnxT - 1)\n WKvO[or8S] = oyIN.nan\n return eXg7(WKvO, YKHO.copylabel(), validate=False)", "def G99f(qw7D, jDK_=None):\n return vLNW(qw7D, axis=j...
[ "0.7976867", "0.6944964", "0.664978", "0.6647075", "0.662504", "0.6585109", "0.6482534", "0.64755183", "0.64713544", "0.6466767", "0.6450624", "0.6416813", "0.6318371", "0.6302276", "0.61422545", "0.6122915", "0.6091906", "0.60644394", "0.6043744", "0.6032158", "0.6023475", ...
0.71921295
1
Slow move_min for unaccelerated ndim/dtype combinations.
def H_FC(ezWE, KnxT, jDK_=-1, NKcE='filter'): if NKcE == 'filter': LVAh = tX4G(ezWE, KnxT, axis=jDK_) elif NKcE == 'strides': LVAh = a4av(oyIN.min, ezWE, KnxT, axis=jDK_) elif NKcE == 'loop': LVAh = P7T1(oyIN.min, ezWE, KnxT, axis=jDK_) else: raise ValueError("`method` mu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H_FC(YKHO, KnxT, jDK_=-1):\n WKvO = tF9S.move_min(YKHO.x, KnxT, axis=jDK_, min_count=1)\n or8S = [slice(None)] * WKvO.ndim\n or8S[jDK_] = slice(0, KnxT - 1)\n WKvO[or8S] = oyIN.nan\n return eXg7(WKvO, YKHO.copylabel(), validate=False)", "def jo8o(ezWE, KnxT, jDK_=-1, NKcE='filter'):\n if NK...
[ "0.64179087", "0.6289419", "0.61244863", "0.5962234", "0.59494364", "0.5885592", "0.58523625", "0.5822959", "0.5822041", "0.57695466", "0.5765522", "0.5763193", "0.5721886", "0.563159", "0.56271255", "0.56178486", "0.56002605", "0.55910695", "0.55750924", "0.55577564", "0.555...
0.6475903
0
Slow move_nanmin for unaccelerated ndim/dtype combinations.
def jo8o(ezWE, KnxT, jDK_=-1, NKcE='filter'): if NKcE == 'filter': LVAh = vRfu(ezWE, KnxT, axis=jDK_) elif NKcE == 'strides': LVAh = g8FP(ezWE, KnxT, axis=jDK_) elif NKcE == 'loop': LVAh = NXhJ(ezWE, KnxT, axis=jDK_) else: raise ValueError("`method` must be 'filter', 'str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def H_FC(YKHO, KnxT, jDK_=-1):\n WKvO = tF9S.move_min(YKHO.x, KnxT, axis=jDK_, min_count=1)\n or8S = [slice(None)] * WKvO.ndim\n or8S[jDK_] = slice(0, KnxT - 1)\n WKvO[or8S] = oyIN.nan\n return eXg7(WKvO, YKHO.copylabel(), validate=False)", "def QK6_(ezWE, KnxT, jDK_=-1, NKcE='filter', P_MT=0):\n ...
[ "0.6313154", "0.61387604", "0.6058875", "0.6023669", "0.58133197", "0.57939416", "0.5710726", "0.5679062", "0.5561852", "0.55028796", "0.543123", "0.54161656", "0.54003286", "0.5329877", "0.53176767", "0.5306088", "0.5292928", "0.52632934", "0.52501976", "0.52274835", "0.5225...
0.71833795
0
Slow move_nanmax for unaccelerated ndim/dtype combinations, ignoring NaNs.
def Ann3(ezWE, KnxT, jDK_=-1, NKcE='filter'): if NKcE == 'filter': LVAh = rDEL(ezWE, KnxT, axis=jDK_) elif NKcE == 'strides': LVAh = v6qw(ezWE, KnxT, axis=jDK_) elif NKcE == 'loop': LVAh = HhhB(ezWE, KnxT, axis=jDK_) else: raise ValueError("`method` must be 'filter', 'str...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jusx(YKHO):\n return abs(YKHO)._apply_reduction(oyIN.nanmax)", "def DXm7(YKHO, KnxT, jDK_=-1):\n WKvO = tF9S.move_max(YKHO.x, KnxT, axis=jDK_, min_count=1)\n or8S = [slice(None)] * WKvO.ndim\n or8S[jDK_] = slice(0, KnxT - 1)\n WKvO[or8S] = oyIN.nan\n return eXg7(WKvO, YKHO.copylabel(), vali...
[ "0.6410332", "0.6205613", "0.61515284", "0.6150106", "0.6009374", "0.5977075", "0.59301555", "0.58681387", "0.5786183", "0.55808926", "0.5562402", "0.5508168", "0.54255676", "0.53960913", "0.5371689", "0.5352409", "0.5344229", "0.5342118", "0.53400266", "0.5332637", "0.531484...
0.71714306
0
If the encoder is bidirectional, do the following transformation. (directions layers, batch, hidden_size) > (layers, batch, directions hidden_size)
def S7uz(YKHO, MKlR): if YKHO.bidirectional_encoder: MKlR = ht2j.cat([MKlR[0:MKlR.size(0):2], MKlR[1:MKlR.size(0):2]], 2) return MKlR
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, CK9p, Zode, F1y4):\n pass", "def kNM6(YKHO):\n m013 = ZylS.nn.embedding_lookup(YKHO.embeddings, YKHO.encoder_inputs)\n if YKHO.enc_layers == 1:\n RmE0 = YKHO._single_rnn_(YKHO.num_units)\n LyWp = YKHO._single_rnn_(YKHO.num_units)\n o4Jx, (sQNG, FASL) = ZylS.nn.bidirec...
[ "0.643419", "0.6403098", "0.63960433", "0.6392408", "0.62921137", "0.6281829", "0.6279394", "0.6242865", "0.6109053", "0.6097857", "0.60924596", "0.608359", "0.6063162", "0.6060455", "0.60381365", "0.6024118", "0.5994838", "0.59938455", "0.59907037", "0.598927", "0.5967533", ...
0.0
-1
Create an Nbin discrete colormap from the specified input map
def HX90(ywwl, j9kp=None): P8oC = QrM1.cm.get_cmap(j9kp) F4JO = P8oC(oyIN.linspace(0, 1, ywwl)) em8M = P8oC.name + str(ywwl) return P8oC.from_list(em8M, F4JO, ywwl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmzj(exwG, iMGt):\n RFG3 = [iMGt(YRbF) for YRbF in range(iMGt.N)]\n RFG3[0] = (0, 0, 0, 1.0)\n iMGt = iMGt.from_list('discrete-cmap', RFG3, exwG)\n iMGt = [iMGt(YRbF) for YRbF in range(iMGt.N)]\n return iMGt", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN...
[ "0.7464505", "0.7196634", "0.71263444", "0.71145487", "0.7083137", "0.7082049", "0.6999638", "0.6942232", "0.6903232", "0.68827033", "0.686803", "0.68601567", "0.68601567", "0.68601567", "0.68601567", "0.68601567", "0.68601567", "0.68590087", "0.68590087", "0.68443197", "0.68...
0.68993443
9
Return a set of all the Teams that are in the middle of the board.
def EbBi(YKHO) -> fHNa[aVkO.Team]: rJco = set() for Rci7 in Hs6x.product(range(YKHO.MAX_ROW), range(YKHO.MAX_COL)): if BfDw.in_middle(Rci7): mrj1 = YKHO[Rci7] if mrj1: rJco.add(mrj1.team) return rJco
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nUNx(YKHO):\n dZPi, bGrB = YKHO.get_turn()\n nl0a = []\n for YRbF in range(8):\n for r845 in range(8):\n if YKHO.Board.board[YRbF, r845].team == dZPi:\n nl0a += YKHO.get_moves((YRbF, r845))\n return nl0a", "def X22G(YKHO):\n dZPi = YKHO.turn\n nl0a = []\n ...
[ "0.6330564", "0.6321328", "0.62210995", "0.6070794", "0.60697055", "0.60666305", "0.60663825", "0.6041994", "0.5906827", "0.5866206", "0.569437", "0.56931823", "0.56908625", "0.5686002", "0.5622", "0.5547278", "0.5507873", "0.5506653", "0.5500761", "0.5488863", "0.5485904", ...
0.80287534
0
Return a deep copy of this board.
def jth9(YKHO) -> 'Board': return jth9.deepcopy(YKHO)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def i3ak(YKHO):\n iBIi = jth9.deepcopy(YKHO)\n return iBIi", "def jth9(YKHO):\n q9ES = jth9.deepcopy(YKHO)\n return q9ES", "def jth9(YKHO):\n bGVo = yELo(YKHO.row_num, YKHO.col_num)\n bGVo.board = YKHO.all_rows()\n return bGVo", "def VrB7(YKHO):\n return _qLf(YKHO.board)", "def jth9...
[ "0.9205855", "0.90388834", "0.8680673", "0.854981", "0.8545804", "0.8509959", "0.83899873", "0.83202356", "0.8275327", "0.8273253", "0.8257857", "0.8197193", "0.81945693", "0.8090986", "0.8063073", "0.8063073", "0.8010594", "0.7979238", "0.7958691", "0.7947507", "0.7944262", ...
0.9138908
1
Indicates if the encoder has been fit.
def Vpuo(YKHO) -> bool: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vpuo(YKHO) -> bool:\n return YKHO._is_fit", "def Vpuo(YKHO) -> bool:\n return YKHO._is_fit", "def Vpuo(YKHO) -> bool:\n return YKHO._is_fit", "def Vpuo(YKHO) -> bool:\n return YKHO._is_fit", "def w3d4(YKHO):\n return YKHO._has_setup_fit", "def VZZT(YKHO):\n return YKHO.fit_parameter...
[ "0.77550846", "0.77550846", "0.77550846", "0.77550846", "0.77173996", "0.7664399", "0.7617107", "0.7588045", "0.7568582", "0.7549173", "0.7255199", "0.7244625", "0.7244625", "0.71809345", "0.7143231", "0.7143231", "0.71253383", "0.71253383", "0.71253383", "0.6885144", "0.6687...
0.7537343
10
Indicates if the encoder has been fit.
def Vpuo(YKHO) -> bool: return YKHO._is_fit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w3d4(YKHO):\n return YKHO._has_setup_fit", "def VZZT(YKHO):\n return YKHO.fit_parameters is not None", "def c1o7(YKHO):\n if YKHO.is_fit == False:\n return False\n if YKHO.is_fit == True:\n return True", "def Vpuo(YKHO) -> bool:\n return False", "def Vpuo(YKHO):\n return...
[ "0.77173996", "0.7664399", "0.7617107", "0.7588045", "0.7568582", "0.7549173", "0.7537343", "0.7255199", "0.7244625", "0.7244625", "0.71809345", "0.7143231", "0.7143231", "0.71253383", "0.71253383", "0.71253383", "0.6885144", "0.6687757", "0.6634457", "0.6528281", "0.65162313...
0.77550846
0
Indicates if the encoder has been fit.
def Vpuo(YKHO) -> bool: return YKHO._is_fit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w3d4(YKHO):\n return YKHO._has_setup_fit", "def VZZT(YKHO):\n return YKHO.fit_parameters is not None", "def c1o7(YKHO):\n if YKHO.is_fit == False:\n return False\n if YKHO.is_fit == True:\n return True", "def Vpuo(YKHO) -> bool:\n return False", "def Vpuo(YKHO):\n return...
[ "0.77173996", "0.7664399", "0.7617107", "0.7588045", "0.7568582", "0.7549173", "0.7537343", "0.7255199", "0.7244625", "0.7244625", "0.71809345", "0.7143231", "0.7143231", "0.71253383", "0.71253383", "0.71253383", "0.6885144", "0.6687757", "0.6634457", "0.6528281", "0.65162313...
0.77550846
1
Indicates if the encoder has been fit.
def Vpuo(YKHO) -> bool: return YKHO._is_fit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w3d4(YKHO):\n return YKHO._has_setup_fit", "def VZZT(YKHO):\n return YKHO.fit_parameters is not None", "def c1o7(YKHO):\n if YKHO.is_fit == False:\n return False\n if YKHO.is_fit == True:\n return True", "def Vpuo(YKHO) -> bool:\n return False", "def Vpuo(YKHO):\n return...
[ "0.77173996", "0.7664399", "0.7617107", "0.7588045", "0.7568582", "0.7549173", "0.7537343", "0.7255199", "0.7244625", "0.7244625", "0.71809345", "0.7143231", "0.7143231", "0.71253383", "0.71253383", "0.71253383", "0.6885144", "0.6687757", "0.6634457", "0.6528281", "0.65162313...
0.77550846
3
Encode the given value as a sequence of 0's and 1's.
def kLcZ(YKHO, hkxX: Sequence[Any]) -> bdIy[AzJI[int, ...]]: if not YKHO.is_fit: raise Exception('This encoder must be fit before it can be used.') try: return [YKHO._onehots[BWXx] for BWXx in hkxX] except KeyError as e: raise Exception(f'We were unable to find {tTpl} in {YKHO._oneho...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLcZ(YKHO, BWXx):\n u54L = x1iM._int.encode(len(BWXx))\n U5bT = u54L\n for Ty9i in BWXx:\n ycBG = YKHO.encoder.encode(Ty9i)\n UOVU = epAf.log(ycBG, 2)\n reta = int(epAf.ceil(UOVU / 8) * 8)\n U5bT = U5bT << reta | ycBG\n return U5bT", "def A__k(BWXx):\n if BWXx > 0:\...
[ "0.7293155", "0.6831467", "0.6734853", "0.6734853", "0.66946", "0.66350377", "0.64862204", "0.6439401", "0.6372007", "0.6345212", "0.6344672", "0.63253963", "0.63075674", "0.6285603", "0.62842464", "0.6279976", "0.6268517", "0.6237658", "0.6185041", "0.61462826", "0.61220455"...
0.0
-1
Indicates if the encoder has been fit.
def Vpuo(YKHO) -> bool: return YKHO._is_fit
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def w3d4(YKHO):\n return YKHO._has_setup_fit", "def VZZT(YKHO):\n return YKHO.fit_parameters is not None", "def c1o7(YKHO):\n if YKHO.is_fit == False:\n return False\n if YKHO.is_fit == True:\n return True", "def Vpuo(YKHO) -> bool:\n return False", "def Vpuo(YKHO):\n return...
[ "0.77173996", "0.7664399", "0.7617107", "0.7588045", "0.7568582", "0.7549173", "0.7537343", "0.7255199", "0.7244625", "0.7244625", "0.71809345", "0.7143231", "0.7143231", "0.71253383", "0.71253383", "0.71253383", "0.6885144", "0.6687757", "0.6634457", "0.6528281", "0.65162313...
0.77550846
2
Indicates if the encoder has been fit.
def Vpuo(YKHO) -> bool: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vpuo(YKHO) -> bool:\n return YKHO._is_fit", "def Vpuo(YKHO) -> bool:\n return YKHO._is_fit", "def Vpuo(YKHO) -> bool:\n return YKHO._is_fit", "def Vpuo(YKHO) -> bool:\n return YKHO._is_fit", "def w3d4(YKHO):\n return YKHO._has_setup_fit", "def VZZT(YKHO):\n return YKHO.fit_parameter...
[ "0.77550846", "0.77550846", "0.77550846", "0.77550846", "0.77173996", "0.7664399", "0.7617107", "0.7568582", "0.7549173", "0.7537343", "0.7255199", "0.7244625", "0.7244625", "0.71809345", "0.7143231", "0.7143231", "0.71253383", "0.71253383", "0.71253383", "0.6885144", "0.6687...
0.7588045
7
Apply by overriding DefiniteMeta properties with not none PartialMeta properties.
def jRxN(YKHO, jRxN: 'Metadata') -> 'Metadata[T_ignore, T_label, T_encoder]': PrmE = jRxN.ignore if jRxN.ignore is not None else YKHO.ignore UXqs = jRxN.label if jRxN.label is not None else YKHO.label MnDN = jRxN.encoder if jRxN.encoder is not None else YKHO.encoder return H1ja(PrmE, UXqs, MnDN)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BASd(Emd4):\n Emd4._meta = jth9.deepcopy(Emd4._default_meta[1])", "def bvhI(YKHO, e5kH):\n return YKHO.normalise_filled(e5kH, {})", "def hdo4(Emd4, nGP8=True):\n if nGP8:\n Emd4._default_meta = (Emd4, jth9.deepcopy(Emd4._default_meta[1]))\n else:\n Emd4._default_meta = (Emd4, {})"...
[ "0.5428319", "0.54005885", "0.5193362", "0.51803267", "0.5132695", "0.5075783", "0.49845493", "0.49669898", "0.4953883", "0.49329928", "0.49196857", "0.491008", "0.49048826", "0.49009153", "0.48987338", "0.4855378", "0.48512626", "0.48454446", "0.4824009", "0.48177075", "0.48...
0.44728598
79
Return JSON of a list of instances.
def o5N2(bUWH, kBCW=False, GZHh=None): if not kBCW: if GZHh is not None: return qQXR.dumps({tq_1(KAOR).identity[0]: qQXR.loads(KAOR.get_attributes(GZHh)) for KAOR in bUWH}) return qQXR.dumps({tq_1(KAOR).identity[0]: qQXR.loads(KAOR.get_attributes()) for KAOR in bUWH}) else: i...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nrEz():\n bD7m = '%s/instances' % w148()\n return TqC2(bD7m)", "def y5NJ(YKHO):\n raise NotImplementedError()", "def y5NJ(YKHO):\n return []", "def tb0U(YKHO):\n YKHO.resource['metadata']['Instances'] = YKHO.response['Instances']", "def ixHX(YKHO):\n return qQXR.dumps(YKHO.gen_instmgr...
[ "0.7014325", "0.69335437", "0.68834335", "0.6857697", "0.67967176", "0.6772873", "0.6723552", "0.67191267", "0.66966826", "0.66451025", "0.65715075", "0.6557485", "0.65087783", "0.6507078", "0.6471216", "0.6468704", "0.64273727", "0.63822424", "0.6369246", "0.63665277", "0.63...
0.6243392
33
Nice representation of Project.
def wHJl(YKHO): return '<Project id={id} title={title}>'.format(id=YKHO.id, title=YKHO.title)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bNKA():\n return {'type': 'class', 'base': 'activity.activity', 'is_abstract': False, 'properties': [('homepage', 'shared.online_resource', '0.1', 'Project homepage.'), ('objectives', 'linked_to(designing.objective)', '0.N', 'Project objectives.'), ('previous_projects', 'linked_to(designing.project)', '0.N'...
[ "0.7387482", "0.7376376", "0.7376376", "0.73338133", "0.7158657", "0.71027464", "0.6999397", "0.6980691", "0.6980691", "0.6980691", "0.6980691", "0.6980691", "0.6980691", "0.69679564", "0.6953492", "0.69530153", "0.6927727", "0.6860216", "0.68423414", "0.68345374", "0.6834537...
0.79073703
0
Nice representation of a TagProject.
def wHJl(YKHO): return ('<TagProject id={id} project_id={project_id} ' + 'tag_code={tag_code}>').format(id=YKHO.id, project_id=YKHO.project_id, tag_code=YKHO.tag_code)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHJl(YKHO):\n return '<Project id={id} title={title}>'.format(id=YKHO.id, title=YKHO.title)", "def zzPo():\n qKcR.set_tag_value('projects', 'test_project', 'Test Project')\n bNKA = oPx1.from_tag('test_project')\n assert isinstance(repr(bNKA), str)\n assert isinstance(str(bNKA), str)\n asser...
[ "0.70646006", "0.6926567", "0.68602747", "0.6607771", "0.6607771", "0.6559437", "0.6555323", "0.6389176", "0.63888025", "0.6362331", "0.6362331", "0.6362331", "0.6362331", "0.6362331", "0.6362331", "0.6362331", "0.6362331", "0.6362331", "0.6362331", "0.6362331", "0.6362331", ...
0.8038937
0
Normalizes numpy arrays into scale 0.0 1.0
def NkkI(qw7D): nGW3, UJrs = (qw7D.min(), qw7D.max()) return (qw7D - nGW3) / (UJrs - nGW3)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jnV4(ezWE, JBMS, M1Jx, NXpY):\n return (oyIN.float32(NXpY) * ezWE.astype(oyIN.float32) - JBMS.flatten()) / M1Jx.flatten()", "def NkkI(ezWE, JBMS, M1Jx, NXpY):\n return (oyIN.float32(NXpY) * ezWE.astype(oyIN.float32) - JBMS.flatten()) / M1Jx.flatten()", "def NkkI(ezWE, JBMS, M1Jx, NXpY):\n return (...
[ "0.7992383", "0.7983955", "0.7983955", "0.78484476", "0.78103584", "0.77213776", "0.7719983", "0.770961", "0.7644227", "0.7641892", "0.7608117", "0.7604651", "0.7579394", "0.75590694", "0.751642", "0.74802005", "0.7474883", "0.7463146", "0.7455739", "0.74448436", "0.7435342",...
0.7189315
33
Create an Nbin discrete colormap from the specified input map
def HX90(ywwl, j9kp=None): P8oC = QrM1.cm.get_cmap(j9kp) F4JO = P8oC(oyIN.linspace(0, 1, ywwl)) em8M = P8oC.name + str(ywwl) return P8oC.from_list(em8M, F4JO, ywwl)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jmzj(exwG, iMGt):\n RFG3 = [iMGt(YRbF) for YRbF in range(iMGt.N)]\n RFG3[0] = (0, 0, 0, 1.0)\n iMGt = iMGt.from_list('discrete-cmap', RFG3, exwG)\n iMGt = [iMGt(YRbF) for YRbF in range(iMGt.N)]\n return iMGt", "def HX90(ywwl, j9kp=None):\n P8oC = QrM1.cm.get_cmap(j9kp)\n F4JO = P8oC(oyIN...
[ "0.7464505", "0.7196634", "0.71263444", "0.71145487", "0.7083137", "0.7082049", "0.6999638", "0.6942232", "0.6903232", "0.68993443", "0.68993443", "0.68993443", "0.68827033", "0.686803", "0.68590087", "0.68590087", "0.68443197", "0.6822784", "0.67541206", "0.67261493", "0.672...
0.68601567
15
Split network parameters into weightdecay dependent groups for the optimizer.
def _sN_(Zxma: torch.nn.Module, oNEO: float=0.0, QYbT: Iterable=('norm',)) -> list: if oNEO is None: oNEO = 0.0 nmya = [ht2j.nn.BatchNorm1d, ht2j.nn.BatchNorm2d, ht2j.nn.BatchNorm3d, ht2j.nn.InstanceNorm1d, ht2j.nn.InstanceNorm2d, ht2j.nn.InstanceNorm3d, ht2j.nn.LayerNorm, ht2j.nn.GroupNorm, ht2j.nn.Syn...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QULU(YKHO):\n if YKHO.cfg.get('do_layer_norm_weight_decay', False):\n if isinstance(YKHO.model, list):\n YKHO._optimizer_param_groups = GyHK(YKHO.model)\n else:\n YKHO._optimizer_param_groups = GyHK([YKHO.model])\n else:\n YKHO._optimizer_param_groups = qyXl(YKH...
[ "0.7379986", "0.72211826", "0.7214389", "0.71294665", "0.6563368", "0.65397096", "0.64191115", "0.64191115", "0.6281931", "0.62676007", "0.61547434", "0.6025916", "0.59958416", "0.5995334", "0.59874326", "0.59776527", "0.596853", "0.5939804", "0.5912334", "0.5903557", "0.5903...
0.7053619
4
Return the JSON representation of a policy with this ID.
def qFaa(YKHO, ulWc): geh0 = G4JS.get(YKHO._policy_url + ulWc) if geh0.status_code == 404: return None return geh0.json()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0Wd(YKHO):\n ncBK = {'policy': {'policyType': 1, 'agentType': {'appTypeId': 137}, 'detail': {'emailPolicy': {'emailPolicyType': 3, 'retentionPolicy': {'numOfDaysForMediaPruning': YKHO.days_for_media_pruning, 'type': YKHO.retention_type, 'advanceRetentionOption': {'bExchangeFoldersRetention': YKHO.exchange_...
[ "0.7323898", "0.71461755", "0.7080608", "0.7080608", "0.7080608", "0.7080608", "0.6991953", "0.69128174", "0.69128174", "0.6908422", "0.6878898", "0.68350923", "0.68213", "0.68159735", "0.68159735", "0.6777805", "0.67539006", "0.67517465", "0.6683872", "0.6634443", "0.6630256...
0.66317093
20
Create an instance of LFilterPyTorch.
def FIMM(YKHO, x3J0: np.ndarray=oyIN.array([1.0]), efky: np.ndarray=oyIN.array([1.0]), H1Ro: Optional['CLIP_VALUES_TYPE']=None, x7OL: bool=False, MokR: bool=True, PJWX: bool=False, DS1x: str='gpu') -> None: import torch super().__init__(is_fitted=True, apply_fit=x7OL, apply_predict=MokR) YKHO.numerator_coef...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, qIxc):\n super(Hrxz, YKHO).__init__()\n YKHO.config = qIxc\n YKHO.conv1d = U78l.Conv1d(YKHO.config.max_doc_length, YKHO.config.nfilters, YKHO.config.local_filter_size)\n YKHO.drop = U78l.Dropout(YKHO.config.dropout)\n YKHO.fc1 = U78l.Linear(YKHO.config.max_query_length, 1)\n YKHO.f...
[ "0.65085125", "0.60914385", "0.6057762", "0.5995265", "0.59819263", "0.595283", "0.5920373", "0.59170663", "0.5878969", "0.58296037", "0.58224773", "0.578391", "0.5774054", "0.57665914", "0.57662773", "0.5755459", "0.5750899", "0.5743581", "0.5741139", "0.5740782", "0.5740782...
0.0
-1
Apply filter to a single sample `x`.
def KVH6(YKHO, WKvO: 'torch.Tensor', LVAh: Optional['torch.Tensor']=None) -> AzJI['torch.Tensor', h8nf['torch.Tensor']]: import torch from torchaudio.functional import lfilter if int(torch.__version__.split('.')[1]) > 5: bjQr = lfilter(b_coeffs=torch.tensor(YKHO.numerator_coef, device=YKHO._device),...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(YKHO, WKvO):\n return YKHO.slice(YKHO.blur(YKHO.splat(WKvO))) / YKHO.slice(YKHO.blur(YKHO.splat(oyIN.ones_like(WKvO))))", "def rvE2(WKvO, filter=None, jDK_=None):\n if isinstance(WKvO, list):\n WKvO = oyIN.asarray(WKvO)\n if WKvO.shape[jDK_] == 0:\n return WKvO\n Fg_i, jzdc =...
[ "0.74615836", "0.72535944", "0.70781094", "0.6702736", "0.6655447", "0.65023726", "0.64324844", "0.6417836", "0.6361018", "0.62568927", "0.6219692", "0.6207896", "0.61752087", "0.610804", "0.6097803", "0.60412884", "0.6021751", "0.6017943", "0.5990362", "0.59876806", "0.59876...
0.0
-1
Apply filter to sample `x`.
def nrOS(YKHO, WKvO: np.ndarray, LVAh: Optional[np.ndarray]=None) -> AzJI[oyIN.ndarray, h8nf[oyIN.ndarray]]: import torch bjQr = WKvO.copy() for YRbF, zBJ4 in enumerate(PRqg(bjQr, desc='Apply audio filter', disable=not YKHO.verbose)): if oyIN.min(zBJ4) < -1.0 or oyIN.max(zBJ4) > 1.0: rai...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def filter(YKHO, WKvO):\n return YKHO.slice(YKHO.blur(YKHO.splat(WKvO))) / YKHO.slice(YKHO.blur(YKHO.splat(oyIN.ones_like(WKvO))))", "def rvE2(WKvO, filter=None, jDK_=None):\n if isinstance(WKvO, list):\n WKvO = oyIN.asarray(WKvO)\n if WKvO.shape[jDK_] == 0:\n return WKvO\n Fg_i, jzdc =...
[ "0.7318903", "0.70480835", "0.6928506", "0.6716218", "0.66311", "0.6571846", "0.64812267", "0.63084275", "0.62664986", "0.6207941", "0.61893106", "0.61893106", "0.6160592", "0.61573803", "0.6154155", "0.61125565", "0.6109754", "0.60828847", "0.60522354", "0.60187024", "0.6009...
0.5656072
39
Return a JSON string of the graph of enrollment.
def BteX(): return jHsn.node_link_data(NIc0.graph())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO):\n AwpB = []\n for rhDa in YKHO.graph_elements:\n AwpB.append(rhDa.content)\n nPrm = {'@context': YKHO.context, '@graph_elements': AwpB}\n return qQXR.dumps(nPrm)", "def pNZh():\n return pz3A(x0hE.make_graph())", "def c3ht(YKHO):\n im04 = {'class': 'ChainGraph'}\n im0...
[ "0.69241095", "0.6785328", "0.6714972", "0.6693705", "0.6680451", "0.6667021", "0.6554235", "0.6527989", "0.64985985", "0.6482679", "0.6460172", "0.6448905", "0.64395255", "0.64395255", "0.64395255", "0.64361095", "0.6420915", "0.6420915", "0.6420915", "0.6420915", "0.6420915...
0.78261256
0
Computes the average over data points metrics.
def Qiyo(YKHO, m5Tx, **B2fa): DxpD() bo34.info('Evaluation data source: %s' % m5Tx) vfoy = U8Lr() n9tM = 0 ZMOB = 0 cj8f = 0 yKcO = ITS7() for Wc9F in YKHO.val_data_pipeline.iter(**m5Tx): kG81 = YKHO.imodel.eval(batch=Wc9F, **B2fa) cj8f += len(Wc9F[EhjZ.REV]) for ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nC2r(nPrm):\n raise NotImplementedError", "def nC2r(YKHO):\n return oyIN.mean(YKHO.data)", "def Dmjw(YKHO):\n return sum(YKHO.data, 0.0) / len(YKHO.data)", "def S8vG(BkYD):\n return qw7D.mean(BkYD)", "def S8vG(LTIa):\n return oyIN.average(LTIa, axis=0)", "def MjC9(VXjJ):\n qqgr = VX...
[ "0.7631445", "0.75197715", "0.7372813", "0.7288915", "0.7247698", "0.7240679", "0.7162006", "0.7150342", "0.7142949", "0.71313775", "0.7109724", "0.7098638", "0.7078482", "0.7059833", "0.7057597", "0.70537347", "0.70457214", "0.7013519", "0.7006235", "0.69869566", "0.69494486...
0.0
-1
Returns a set containing all values seen by the chain starting at n
def Njmp(exwG): eNCK = set() Q6kx = exwG while Q6kx not in eNCK: eNCK.add(Q6kx) KCHu = str(Q6kx) Q6kx = 0 for sZqf in KCHu: Q6kx += TFEx[int(sZqf)] return eNCK
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R0Xi(exwG):\n KCHu = range(1, exwG + 1)\n return eNCK.from_iterable((E6VQ(KCHu, Mkmy) for Mkmy in range(1, len(KCHu) + 1)))", "def bzfn(rrLg, exwG):\n return set(rrLg[exwG])", "def Puuz(Q6uT, exwG):\n aWuw = iter(Q6uT)\n FLXQ = []\n while exwG > 1:\n try:\n rKoN = next(a...
[ "0.7273419", "0.7057426", "0.66777873", "0.66452444", "0.6503278", "0.6467735", "0.6401539", "0.63822836", "0.636133", "0.6301692", "0.62944543", "0.6241532", "0.6228423", "0.62123865", "0.6166298", "0.6159279", "0.61519116", "0.61466545", "0.6137685", "0.6112217", "0.6099302...
0.6942504
2
Finds the centroid coordinates of a yield sign in the provided image.
def eUY2(D1Lj): gwAu = 4 zn0c = 15 Bboe = [40] AuR4 = oyIN.median(D1Lj) otdG = XC5k.Canny(D1Lj, int(max(0, 0.66 * AuR4)), int(min(255, 1.33 * AuR4))) MKlR, yzQ0 = otdG.shape k0lF = oyIN.zeros((len(Bboe), MKlR, yzQ0)) tjUW = oyIN.zeros((MKlR, yzQ0)) bLm4 = oyIN.arange(360) * oyIN.pi /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G0Yq(YKHO, LNo8):\n S3Cm = 0.0\n YmfI = 0.0\n ywwl, E3D9 = YKHO.inputImage.shape\n for WKvO in range(E3D9):\n S3Cm = S3Cm + WKvO\n S3Cm = S3Cm / E3D9\n for LVAh in range(ywwl):\n YmfI = YmfI + LVAh\n YmfI = YmfI / ywwl\n return (S3Cm, YmfI)", "def e6ux(Xn71):\n return...
[ "0.71978784", "0.6943481", "0.68988645", "0.6829135", "0.6735263", "0.67065215", "0.6500455", "0.643643", "0.6434671", "0.6424917", "0.6412731", "0.63460344", "0.63127804", "0.6301825", "0.6293179", "0.6261203", "0.6254205", "0.6217958", "0.62077117", "0.62077117", "0.6148522...
0.55099356
94
Finds the centroid coordinates of a stop sign in the provided image.
def rNgv(D1Lj): gwAu = 8.1 zn0c = 15 Bboe = [15] AuR4 = oyIN.median(D1Lj) otdG = XC5k.Canny(D1Lj, int(max(0, 0.66 * AuR4)), int(min(255, 1.33 * AuR4))) MKlR, yzQ0 = otdG.shape k0lF = oyIN.zeros((len(Bboe), MKlR, yzQ0)) tjUW = oyIN.zeros((MKlR, yzQ0)) bLm4 = oyIN.arange(360) * oyIN.pi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def e6ux(Xn71):\n return Bcwd(oyIN.asarray(Xn71))", "def IBzD(YKHO, Xn71):\n e6ux = VGm8(UXqs(Xn71), properties=['centroid'])\n rdlD = e6ux['centroid-0'][0]\n fvDH = e6ux['centroid-1'][0]\n return (int(rdlD), int(fvDH))", "def G0Yq(YKHO, LNo8):\n S3Cm = 0.0\n YmfI = 0.0\n ywwl, E3D9 = Y...
[ "0.7140963", "0.69672555", "0.6942457", "0.68799525", "0.6826302", "0.67384213", "0.6694401", "0.6569594", "0.6500284", "0.64953053", "0.64371645", "0.6382827", "0.62825733", "0.62750053", "0.62622744", "0.6246343", "0.6163903", "0.6159389", "0.61497545", "0.61472327", "0.612...
0.0
-1
Finds the centroid coordinates of a warning sign in the provided image.
def T99W(D1Lj): gwAu = 4 zn0c = 15 Bboe = [40] AuR4 = oyIN.median(D1Lj) otdG = XC5k.Canny(D1Lj, int(max(0, 0.66 * AuR4)), int(min(255, 1.33 * AuR4))) MKlR, yzQ0 = otdG.shape k0lF = oyIN.zeros((len(Bboe), MKlR, yzQ0)) tjUW = oyIN.zeros((MKlR, yzQ0)) bLm4 = oyIN.arange(360) * oyIN.pi /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def itJ5(LNo8, **B2fa):\n WA2M, Z57y = dtX1(LNo8, proper_coords=B2fa.get('proper_coords'), c_factor=(0, 0), floor=False)\n TLa8, v8y8 = LJ7k(LNo8['data'], marker=(WA2M, Z57y))\n return (v8y8, TLa8)", "def e6ux(Xn71):\n return Bcwd(oyIN.asarray(Xn71))", "def __fe(sS0h):\n e6ux = oyIN.mean(sS0h, a...
[ "0.708414", "0.7070958", "0.70271534", "0.696748", "0.6879238", "0.68636286", "0.68035245", "0.6771346", "0.67630064", "0.6657325", "0.64460486", "0.6368712", "0.63577664", "0.634907", "0.63338447", "0.6311054", "0.6298567", "0.6289472", "0.628304", "0.628304", "0.6275704", ...
0.6250339
22
Finds the centroid coordinates of a construction sign in the provided image.
def BexL(D1Lj): gwAu = 4 zn0c = 15 Bboe = [40] AuR4 = oyIN.median(D1Lj) otdG = XC5k.Canny(D1Lj, int(max(0, 0.66 * AuR4)), int(min(255, 1.33 * AuR4))) MKlR, yzQ0 = otdG.shape k0lF = oyIN.zeros((len(Bboe), MKlR, yzQ0)) tjUW = oyIN.zeros((MKlR, yzQ0)) bLm4 = oyIN.arange(360) * oyIN.pi /...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G0Yq(YKHO, LNo8):\n S3Cm = 0.0\n YmfI = 0.0\n ywwl, E3D9 = YKHO.inputImage.shape\n for WKvO in range(E3D9):\n S3Cm = S3Cm + WKvO\n S3Cm = S3Cm / E3D9\n for LVAh in range(ywwl):\n YmfI = YmfI + LVAh\n YmfI = YmfI / ywwl\n return (S3Cm, YmfI)", "def e6ux(Xn71):\n return...
[ "0.78321165", "0.7713287", "0.72720724", "0.7208932", "0.71993035", "0.7091922", "0.70360243", "0.6988783", "0.690652", "0.6862907", "0.6860113", "0.67812175", "0.6715208", "0.6705577", "0.66050184", "0.658961", "0.6569614", "0.65089774", "0.6476482", "0.6463992", "0.64519775...
0.0
-1
Find the centroid coordinates of a do not enter sign in the provided image.
def TplV(D1Lj): gwAu = 8.1 zn0c = 15 Bboe = [15] AuR4 = oyIN.median(D1Lj) otdG = XC5k.Canny(D1Lj, int(max(0, 0.66 * AuR4)), int(min(255, 1.33 * AuR4))) MKlR, yzQ0 = otdG.shape k0lF = oyIN.zeros((len(Bboe), MKlR, yzQ0)) tjUW = oyIN.zeros((MKlR, yzQ0)) bLm4 = oyIN.arange(360) * oyIN.pi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def G0Yq(YKHO, LNo8):\n S3Cm = 0.0\n YmfI = 0.0\n ywwl, E3D9 = YKHO.inputImage.shape\n for WKvO in range(E3D9):\n S3Cm = S3Cm + WKvO\n S3Cm = S3Cm / E3D9\n for LVAh in range(ywwl):\n YmfI = YmfI + LVAh\n YmfI = YmfI / ywwl\n return (S3Cm, YmfI)", "def IBzD(YKHO, Xn71):\n ...
[ "0.73924255", "0.70891476", "0.6985801", "0.6932218", "0.6756697", "0.6699537", "0.6590192", "0.6561354", "0.64523906", "0.6409274", "0.6319153", "0.6268956", "0.6245225", "0.62361175", "0.61967754", "0.6170931", "0.61191547", "0.610025", "0.6065682", "0.60578036", "0.6046862...
0.571183
55
Creating JSON save to file class method.
def AHFl(Emd4, Nkld): aqea = [] if Nkld is not None: for p9NO in Nkld: aqea.append(p9NO.to_dictionary()) with open('{}.json'.format(Emd4.__name__), 'w') as o1P6: o1P6.write(Emd4.to_json_string(aqea))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M8gv(YKHO, Ux0P):\n with open(Ux0P, 'w') as eHNT:\n qQXR.dump(YKHO.__dict__, eHNT)", "def M8gv(YKHO, Ux0P):\n\n def mivr(KAOR):\n if not isinstance(KAOR, kKe7.InvModelTS):\n return getattr(KAOR, '__dict__', str(KAOR))\n try:\n eHNT = open(Ux0P, mode='w')\n eHNT...
[ "0.80466515", "0.8025732", "0.7858557", "0.78115857", "0.7791062", "0.7707564", "0.7614746", "0.756413", "0.756413", "0.7517047", "0.75071824", "0.74769413", "0.74419284", "0.74418336", "0.7418639", "0.74182856", "0.7417627", "0.7386", "0.7371255", "0.73616624", "0.73448634",...
0.0
-1
Get the minitaur's motor torques.
def IQFE(YKHO): return YKHO.robot.GetMotorTorques()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IQFE(YKHO):\n return oyIN.array(YKHO._observation[Gt87:Gt87 + GTkK])", "def ZDdl(YKHO):\n if YKHO._accurate_motor_model_enabled or YKHO._pd_control_enabled:\n return YKHO._observed_motor_torques\n else:\n VP6S = [YKHO._pybullet_client.getJointState(YKHO.quadruped, vw6h)[3] for vw6h in ...
[ "0.7425399", "0.71219987", "0.7066386", "0.6967907", "0.68549204", "0.6772033", "0.670286", "0.6645539", "0.6583275", "0.6490704", "0.639946", "0.63630927", "0.6320912", "0.6265999", "0.6256976", "0.625574", "0.6254951", "0.62391573", "0.6233661", "0.60760325", "0.60678715", ...
0.8390439
0
Get the minitaur's base orientation, represented by a quaternion.
def nXTh(YKHO): return YKHO.robot.GetBaseOrientation()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def d9Vs(YKHO):\n return YKHO._pybullet_client.getQuaternionFromEuler(YKHO.GetBaseRollPitchYaw())", "def MC9L(YKHO):\n [rKSe, H2HG, xTkQ] = YKHO.get_orientation_rpy()\n _Jov = BmLB.quaternion_from_euler(xTkQ, H2HG, rKSe, 'rzyx')\n return _Jov", "def C3ap(YKHO) -> N230:\n return YKHO.pose.orienta...
[ "0.7638056", "0.72807586", "0.7024622", "0.692031", "0.6872031", "0.68305975", "0.6757457", "0.6732073", "0.6720263", "0.6718255", "0.6718255", "0.6718255", "0.6718255", "0.6663829", "0.66539836", "0.66364557", "0.662677", "0.66187537", "0.6548595", "0.6544286", "0.65361536",...
0.7252772
2
Total number of samples.
def zNig(YKHO) -> int: return YKHO.images.shape[0]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO):\n return len(YKHO.samples)", "def eAYh(YKHO):\n return sum((1 for bGrB in YKHO.sample_names))", "def pUuX(YKHO) -> int:\n return YKHO._nsamples", "def eAYh(YKHO):\n return len(YKHO._samples)", "def yU06(YKHO):\n return YKHO._num_samples", "def _PBJ(YKHO):\n return YKHO.n...
[ "0.8707499", "0.8644937", "0.85816234", "0.8574378", "0.85405064", "0.8522788", "0.84913707", "0.8486123", "0.8480694", "0.8473277", "0.8438165", "0.84359324", "0.840817", "0.83252186", "0.83252186", "0.83119434", "0.82901466", "0.82119495", "0.81411034", "0.8093389", "0.8033...
0.0
-1