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
Reshapes ``tensors`` (one or `tuple`, `list`) to to have ``lead_dim`` leading dimensions, which will become [], [B], or [T,B]. Assumes input tensors already have a leading Batch dimension, which might need to be removed. (Typically the last layer of model will compute with leading batch dimension.) For use in model ``f...
def waF6(cRc2, Wo6j, Kt_s=1, tjUW=1): Wlf6 = isinstance(cRc2, (tuple, list)) cRc2 = cRc2 if Wlf6 else (cRc2,) if Wo6j == 2: cRc2 = tuple((a1PO.view((Kt_s, tjUW) + a1PO.shape[1:]) for a1PO in cRc2)) if Wo6j == 0: assert tjUW == 1 cRc2 = tuple((a1PO.squeeze(0) for a1PO in cRc2)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GbUX(vhpA, tpio):\n Wo6j = vhpA.dim() - tpio\n assert Wo6j in (0, 1, 2)\n if Wo6j == 2:\n Kt_s, tjUW = vhpA.shape[:2]\n else:\n Kt_s = 1\n tjUW = 1 if Wo6j == 0 else vhpA.shape[0]\n ROpF = vhpA.shape[Wo6j:]\n return (Wo6j, Kt_s, tjUW, ROpF)", "def htaw(jzdc):\n U5bT ...
[ "0.59834355", "0.5854006", "0.58246666", "0.57571334", "0.55620784", "0.5543693", "0.5543693", "0.55036896", "0.54670763", "0.5463506", "0.5463506", "0.54592496", "0.54231507", "0.5417873", "0.53861934", "0.53786975", "0.5363996", "0.5361716", "0.5360054", "0.5354292", "0.534...
0.79533124
0
Mark this device token as inactive
def phKE(YKHO, Gpma): bD7m = n3oU + Gpma jGRS, geh0 = YKHO._request('DELETE', '', bD7m, None) if jGRS != 204: raise xDif(jGRS, geh0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W6jy(YKHO):\n YKHO.active = False", "def qEa8(YKHO, qEa8):\n YKHO._inactive = qEa8", "def iNWD(YKHO):\n YKHO.status = str(Fme5.Inactive.value)\n YKHO.commit()", "def axc3(YKHO):\n YKHO._is_active = False", "def W6jy(YKHO):\n if YKHO.active is False:\n return\n YKHO.active = ...
[ "0.738691", "0.70586723", "0.6603758", "0.652174", "0.6453767", "0.63452756", "0.6344401", "0.6344401", "0.62886935", "0.628517", "0.62510043", "0.61353964", "0.60926884", "0.60926884", "0.6013582", "0.6013582", "0.600347", "0.5989051", "0.59444267", "0.593443", "0.5927014", ...
0.545848
55
Slices a given sequence.
def je2O(*, BWXx: Any, slice: slice) -> ImMB: return BWXx[slice]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R6Bn(Q6uT, yKcO=None, JCyR=None, YPaw=None):\n return Q6uT[yKcO:JCyR:YPaw]", "def vfx8(aWuw, yKcO=None, JCyR=None, YPaw=1):\n yKcO, JCyR, YPaw = slice(yKcO, JCyR, YPaw).indices(len(aWuw))\n for YRbF in range(yKcO, JCyR, YPaw):\n yield aWuw[YRbF]", "def NOEQ(YKHO, YRbF, r845, aWuw):\n if ...
[ "0.7565839", "0.7000143", "0.6260772", "0.62014407", "0.61427855", "0.6135608", "0.6114228", "0.60215783", "0.60061896", "0.58757776", "0.5842776", "0.5790632", "0.57842124", "0.57186073", "0.5718141", "0.56927025", "0.5638814", "0.56345797", "0.5631927", "0.56202394", "0.557...
0.0
-1
Slices a given sequence.
def W_XM(*, BWXx: Any, JCyR: Optional[int]=None, yKcO: Optional[int]=None, YPaw: Optional[int]=None) -> ImMB: eOyW = slice(yKcO, JCyR, YPaw) return BWXx[eOyW]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R6Bn(Q6uT, yKcO=None, JCyR=None, YPaw=None):\n return Q6uT[yKcO:JCyR:YPaw]", "def vfx8(aWuw, yKcO=None, JCyR=None, YPaw=1):\n yKcO, JCyR, YPaw = slice(yKcO, JCyR, YPaw).indices(len(aWuw))\n for YRbF in range(yKcO, JCyR, YPaw):\n yield aWuw[YRbF]", "def NOEQ(YKHO, YRbF, r845, aWuw):\n if ...
[ "0.7565839", "0.7000143", "0.6260772", "0.62014407", "0.61427855", "0.6135608", "0.6114228", "0.60215783", "0.60061896", "0.58757776", "0.5842776", "0.5790632", "0.57842124", "0.57186073", "0.5718141", "0.56927025", "0.5638814", "0.56345797", "0.5631927", "0.56202394", "0.557...
0.0
-1
Get length of the object.
def u54L(*, BWXx: Any) -> ImMB: return len(BWXx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return YKHO._info['length']", "def szAg(YKHO):\n return YKHO.__length", "def szAg(YKHO):\n return YKHO._length", "def szAg(YKHO):\n return YKHO._length", "def szAg(YKHO):\n return YKHO._length", "def szAg(YKHO) -> int:\n return len(YKHO.getvalue())", "def u54L(YKHO):...
[ "0.8329417", "0.8290465", "0.82706577", "0.82706577", "0.82706577", "0.82453144", "0.82380617", "0.82380617", "0.82030606", "0.81846595", "0.8176546", "0.81458044", "0.8143594", "0.8143594", "0.8143594", "0.8143594", "0.8143594", "0.8143594", "0.81432724", "0.81408983", "0.81...
0.0
-1
creates a dataset in the selected project name.
def oUGu(bNKA, j3aw): __n6 = j3aw dD7q = bNKA.datasets.get(dataset_name=__n6) bNKA.datasets.create(dataset_name=j3aw) return dD7q
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oUGu(j3aw, bNKA=None):\n Vs2w = slhS.Client(project=bNKA)\n __n6 = Vs2w.dataset(j3aw)\n __n6.create()\n print('Created dataset {}.'.format(j3aw))", "def PK3w(j3aw):\n return {'duc': aIe8(), 'icsi-asr': dLPB(), 'icsi-ht': s0d3(), 'inspec-train': LmAJ(), 'inspec-val': ZHcw(), 'inspec-test': Yc8c...
[ "0.75255114", "0.7364713", "0.7167282", "0.7166049", "0.7128386", "0.69960713", "0.68857396", "0.68323624", "0.6823805", "0.6704574", "0.6698785", "0.6646213", "0.6638728", "0.66347", "0.6632622", "0.65881044", "0.6533653", "0.6507332", "0.65019923", "0.64525557", "0.6451693"...
0.839208
0
QDate.longMonthName(int) > QString QDate.longMonthName(int, QDate.MonthNameType) > QString
def nWr6(YKHO, C5WR, _M5h=None): return D2Rv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JqCL(YKHO, C5WR, _M5h=None):\n return D2Rv", "def VLpK(YKHO, C5WR, _M5h=None):\n return D2Rv", "def XMq6(YKHO):\n return YKHO.strftime('%B')", "def FnT7(X1Jo):\n return qcWV.date(1900, X1Jo, 1).strftime('%B')", "def N0EY(mLGw, u54L=99):\n if mLGw < 1 or mLGw > vGmq:\n raise ValueE...
[ "0.8119586", "0.7305312", "0.6805598", "0.6763028", "0.6714535", "0.6706246", "0.6659595", "0.6582731", "0.6529906", "0.64669055", "0.6414376", "0.63960433", "0.6355838", "0.63456184", "0.63108504", "0.6283241", "0.6197185", "0.61628836", "0.6145461", "0.6120725", "0.6110693"...
0.872299
0
QDate.shortMonthName(int) > QString QDate.shortMonthName(int, QDate.MonthNameType) > QString
def JqCL(YKHO, C5WR, _M5h=None): return D2Rv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def nWr6(YKHO, C5WR, _M5h=None):\n return D2Rv", "def cj_q(YKHO, C5WR, _M5h=None):\n return D2Rv", "def XMq6(YKHO):\n return YKHO.strftime('%B')", "def FnT7(X1Jo):\n return qcWV.date(1900, X1Jo, 1).strftime('%B')", "def VLpK(YKHO, C5WR, _M5h=None):\n return D2Rv", "def yZ3l(_c1T, b1Ep):\n ...
[ "0.8096401", "0.7479471", "0.6847974", "0.67790824", "0.67188096", "0.6677522", "0.66605014", "0.6650857", "0.663079", "0.6575811", "0.65327126", "0.6449423", "0.64425427", "0.6411958", "0.6409632", "0.6384981", "0.63693124", "0.62323594", "0.6216138", "0.6156598", "0.6133817...
0.8803248
0
x.__nonzero__() x != 0
def ebnO(YKHO): pass
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ebnO(YKHO):\n for tTpl in YKHO:\n if tTpl != 0:\n return True\n return False", "def ebnO(YKHO):\n return YKHO.value.__nonzero__()", "def ebnO(YKHO):\n return YKHO.__nonzero", "def ebnO(YKHO):\n return YKHO.__nonzero", "def ebnO(YKHO):\n return not YKHO.as_point == (0...
[ "0.77507436", "0.76362675", "0.74977964", "0.74977964", "0.749715", "0.7277969", "0.71057385", "0.70980686", "0.7076215", "0.7038673", "0.7013006", "0.69773006", "0.6971467", "0.69356734", "0.6927782", "0.6920768", "0.690163", "0.6892301", "0.6864851", "0.6852248", "0.6836008...
0.62630165
67
Queries the DB specified when instantiating the PostgresConnection class, and converts to a pandas dataframe.
def XyRL(YKHO, LNPZ): YtR6 = f"\n host='{YKHO.host}' \n dbname='{YKHO.db_name}' \n user='{YKHO.user}' \n password='{YKHO.password}' \n port='{YKHO.port}'\n " with ehoX.connect(YtR6) as UzPC: N1p7 = UzPC.cursor() N1p7.execute(LNPZ) bOBl = rLdf.Dat...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kTk2(NCls, Pe9W):\n Sk1l = mscD(NCls)\n with x91o.connect(Sk1l) as w2B8:\n return WLu7.read_sql(Pe9W, w2B8)", "def ymhD(YKHO, xDcj):\n N1p7 = YKHO.conn.cursor()\n N1p7.execute('set hive.execution.engine = tez')\n N1p7.execute('set tez.queue.name = sephora_internal')\n N1p7.execute(xD...
[ "0.78250766", "0.7680017", "0.7658916", "0.756852", "0.7562651", "0.75219756", "0.742555", "0.73704416", "0.7311497", "0.72347236", "0.7154484", "0.7026267", "0.7014643", "0.69704944", "0.69424963", "0.69386744", "0.6922062", "0.6856436", "0.6843526", "0.6806937", "0.6796212"...
0.7612127
3
Removes prefixes from test names.
def F4bZ(QOe9): PEo2 = max(QOe9.find('.'), 0) if PEo2 == 0: return QOe9 wa51 = QOe9[:PEo2] MpXb = QOe9[PEo2 + 1:] for y0cW in ZSED: while MpXb.startswith(y0cW): MpXb = MpXb[len(y0cW):] q6J5 = '%s.%s' % (wa51, MpXb) return q6J5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jImG(QOe9):\n PEo2 = max(QOe9.find('.'), 0)\n if PEo2 == 0:\n return QOe9\n wa51 = QOe9[:PEo2]\n MpXb = QOe9[PEo2 + 1:]\n ARWP = MpXb.find(DTWd)\n while ARWP == 0:\n MpXb = MpXb[len(DTWd):]\n ARWP = MpXb.find(DTWd)\n q6J5 = '%s.%s' % (wa51, MpXb)\n return q6J5", "...
[ "0.8227372", "0.69030935", "0.6859826", "0.68071437", "0.6736649", "0.6658638", "0.6626187", "0.6616739", "0.6531914", "0.6497006", "0.6382004", "0.63483375", "0.63406336", "0.63406336", "0.63406336", "0.6307576", "0.6233944", "0.61911243", "0.6154941", "0.61205137", "0.61137...
0.7828494
1
Returns the test suite name of the given test in the given test step.
def J16h(t0rn, fjjM): if 'webkit_layout_tests' in fjjM: d6pt = t0rn.rfind('/') if d6pt > 0: return t0rn[:d6pt] return None D9iz = xZpH.match(t0rn) if D9iz: return D9iz.group(1) Qq_u = hNih.match(t0rn) if Qq_u: return Qq_u.group(1) return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bAmk(YKHO) -> str:\n return qe4Y.get(YKHO, 'test_suite_name')", "def bAmk(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'test_suite_name')", "def MpXb(YKHO):\n SQ3m = []\n if YKHO.test.__module__ != '__main__':\n SQ3m.append(YKHO.test.__module__)\n if hasattr(YKHO.test, 'im_...
[ "0.7873189", "0.76935846", "0.6758782", "0.64228725", "0.6417142", "0.63702446", "0.63538593", "0.63142025", "0.618164", "0.61170906", "0.6090364", "0.60693425", "0.60507196", "0.6020569", "0.59852755", "0.5974127", "0.5967955", "0.5927294", "0.59228104", "0.5906943", "0.5859...
0.76409906
2
Wraps a message based on max length without breaking html tags
def be0y(Emd4, Ol8d, TVTK): SQ3m = [] TZ9E = None for Q7me in Emd4.tag_re.split(Ol8d): if not Q7me or Q7me == TZ9E: continue try: TZ9E = Emd4.tag_re.search(Q7me).group(2) SQ3m.append(Q7me) except AttributeError: TZ9E = None ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UBhm(Ol8d, TVTK=bKGt):\n Nqlg = Ol8d.split('\\n')\n DKMQ = [TI0e.fill(zFiD, TVTK, expand_tabs=False, replace_whitespace=False, drop_whitespace=False, break_on_hyphens=False) for zFiD in Nqlg]\n f5k0 = '\\n'.join(DKMQ)\n return f5k0", "def Ql1B(tO9_, E0wO, SQg1='...'):\n if len(tO9_) > E0wO:\n ...
[ "0.71610236", "0.7059762", "0.6873872", "0.68430346", "0.67660695", "0.67434514", "0.6636488", "0.6518014", "0.6289828", "0.62600785", "0.6258054", "0.62074363", "0.6202228", "0.6191224", "0.6170161", "0.6110801", "0.6087548", "0.6066549", "0.6032713", "0.5987324", "0.5973213...
0.6056112
18
Initalize the queue chain.
def FIMM(YKHO, hkxX=[]): YKHO.priority_queue = {} if isinstance(hkxX, list): try: for BWXx, Ey19 in hkxX: YKHO.insert(BWXx, Ey19) except ValueError: raise TypeError('You need to tuplize your priorities') else: raise TypeError('Put your items in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cfNL(YKHO):\n for YPaw in YKHO.get_children():\n if YPaw.kind == mvXt.queue:\n YPaw.init_object(YKHO.context, None)", "def nqzW(YKHO, gGq6=None, **B2fa):\n YKHO.queue = gGq6 if gGq6 else g5js()", "def FIMM(YKHO) -> None:\n YKHO._queue = []", "def FIMM(YKHO):\n YKHO.l_queue, ...
[ "0.77027583", "0.7436326", "0.71771425", "0.69117963", "0.68876004", "0.68876004", "0.68876004", "0.68876004", "0.68876004", "0.6874265", "0.68710995", "0.68520725", "0.6841972", "0.67942554", "0.6763624", "0.6763624", "0.6751312", "0.67453885", "0.6688666", "0.6583382", "0.6...
0.0
-1
Insert value into Priority Queue based on Priority.
def JPHp(YKHO, BWXx, Ey19=2): if not isinstance(Ey19, int): raise TypeError('Priority must be an integer') if Ey19 in YKHO.priority_queue: YKHO.priority_queue[Ey19].append(BWXx) else: YKHO.priority_queue[Ey19] = [BWXx] print(YKHO.priority_queue)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def jvNa(YKHO, Ey19, BWXx, H5ew=None):\n H5ew = H5ew if H5ew else BWXx\n if H5ew in YKHO._index:\n YKHO._update(Ey19, H5ew)\n return\n YKHO._heap.append(kLxY(Ey19, BWXx, H5ew))\n YKHO._size = len(YKHO._heap)\n YKHO._index[H5ew] = YKHO._size - 1\n YKHO._sift_up(YKHO._size - 1)", "d...
[ "0.77664816", "0.7650623", "0.75169355", "0.74929976", "0.7325537", "0.72414196", "0.7231142", "0.71178186", "0.70612884", "0.7009537", "0.6946739", "0.6926697", "0.67742336", "0.676792", "0.6760499", "0.67394555", "0.67261064", "0.6715826", "0.6684557", "0.6637918", "0.66347...
0.8411199
0
Get the bounding box coordinates of the route.
def cviu(YKHO): LSh8 = (YKHO.x.min(), YKHO.y.min()) CN9P = (YKHO.x.max(), YKHO.y.max()) return (LSh8, CN9P)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JcC1(YKHO):\n FDPT, QnmL = YKHO.coordinates\n CLNC = (oyIN.min(FDPT), oyIN.min(QnmL))\n d2DU = (oyIN.min(FDPT), oyIN.max(QnmL))\n r902 = (oyIN.max(FDPT), oyIN.max(QnmL))\n tspZ = (oyIN.max(FDPT), oyIN.min(QnmL))\n return (CLNC, d2DU, r902, tspZ)", "def C1GJ(YKHO):\n JQRm = YKHO.ij_to_lat...
[ "0.78813577", "0.75658303", "0.7505888", "0.7444925", "0.7432373", "0.7415383", "0.7312216", "0.7312216", "0.7267688", "0.72331226", "0.71832114", "0.7171054", "0.7171054", "0.71427965", "0.7141005", "0.71064836", "0.70815676", "0.707229", "0.7069887", "0.70391697", "0.702487...
0.6951756
24
Calulate the Euclidean distance between two (x, y) points.
def _JqR(EBgd, HpuQ): return epAf.sqrt((EBgd[0] - HpuQ[0]) ** 2 + (EBgd[1] - HpuQ[1]) ** 2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def usGr(WKvO, LVAh):\n return PZyS(sum((pow(jzdc - Fg_i, 2) for jzdc, Fg_i in zip(WKvO, LVAh))))", "def usGr(WKvO, LVAh):\n o4D3, si3g = WKvO\n ajwV, skBL = LVAh\n return PZyS((o4D3 - ajwV) ** 2 + (si3g - skBL) ** 2)", "def usGr(o4D3, si3g, ajwV, skBL):\n Ayfi = epAf.sqrt((ajwV - o4D3) ** 2 + (...
[ "0.8517095", "0.84594375", "0.838708", "0.8360094", "0.83576274", "0.83377624", "0.8269389", "0.8262849", "0.825804", "0.82316667", "0.82144594", "0.8151548", "0.81298333", "0.8097156", "0.8045504", "0.80287313", "0.8014617", "0.80068916", "0.798643", "0.7945548", "0.7933624"...
0.0
-1
Align a corner of Route extents to the origin.
def BdUd(YKHO, hLRM=(0, 0), rnuK='bottomleft'): if rnuK == 'bottomleft': oM1k = YKHO.bbox()[0] elif rnuK == 'topright': oM1k = YKHO.bbox()[1] elif rnuK == 'bottomright': oM1k = (YKHO.bbox()[1][0], YKHO.bbox()[0][1]) elif rnuK == 'topleft': oM1k = (YKHO.bbox()[0][0], YKHO....
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HjHK(YKHO):\n nJ9F, nxyw, TVTK, H2v2 = YKHO._rect_bbox\n g0Hx = (nJ9F, nJ9F + TVTK, nJ9F + TVTK, nJ9F)\n dlau = (nxyw, nxyw, nxyw + H2v2, nxyw + H2v2)\n SZFh = YKHO._get_rotation_transform()\n jNOo = SZFh.transform(oyIN.array([g0Hx, dlau]).T).T\n return (jNOo[0], jNOo[1])", "def gfHQ(YKHO, ...
[ "0.55878043", "0.55499834", "0.5539987", "0.54635084", "0.53804696", "0.53744626", "0.5358029", "0.52739376", "0.52736217", "0.5268263", "0.5205606", "0.51797235", "0.5171029", "0.5166876", "0.51094055", "0.5090577", "0.50369626", "0.5029089", "0.50289994", "0.5004285", "0.50...
0.7219897
0
Return the percept that the agent sees at this point. (Implement this.)
def JTet(YKHO, YWSi): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cI4J(YKHO):\n return YKHO.percept", "def vhdz(YKHO, YWSi):\n mSgp = [YKHO.time_step]\n for vGaq in YKHO.things_near(YWSi.location):\n if isinstance(vGaq, yQ6i):\n if YWSi.location == vGaq.location:\n mSgp.append('Gold')\n elif isinstance(vGaq, uhXc):\n ...
[ "0.68214196", "0.65139747", "0.6464292", "0.64046663", "0.6393646", "0.6323314", "0.63021415", "0.6169189", "0.6167573", "0.6146681", "0.6146681", "0.61011004", "0.6039692", "0.6024401", "0.60152596", "0.59965676", "0.5925975", "0.5896995", "0.5878816", "0.5835684", "0.583568...
0.6654491
2
A new chat has been created. Chat details in trigger_context param. Expects HTTP200 to acknowledge event received.
def DuFH(YKHO, QePW, ez1m): raise NotImplementedError
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NZxM(YKHO, QePW, ez1m):\n raise NotImplementedError", "def Q9m6(YKHO):\n uDyx = YKHO.client.post('/join/join-here', data={'name': 'bob'})\n Gcdn = qQXR.loads(uDyx.data)\n YKHO.assertEqual(200, uDyx.status_code)\n YKHO.assertTrue(Gcdn['success'])\n YKHO.assertEquals(Gcdn['error'], '')\n Y...
[ "0.72705764", "0.6338712", "0.6266178", "0.5909621", "0.5878425", "0.5859184", "0.58451647", "0.58202666", "0.58083785", "0.58035034", "0.57817173", "0.5744734", "0.573879", "0.57045364", "0.56933945", "0.56765413", "0.56672204", "0.56501293", "0.56338274", "0.5628506", "0.56...
0.71536446
1
Use 2 layers in the model.
def qY0D(jTqs, yLbG): def NAB2(bySB, pan_): pan_ = ZylS.one_hot(pan_, jTqs, 1, 0) YZmJ = ZylS.contrib.layers.embed_sequence(bySB, vocab_size=yLbG, embed_dim=Dhyo, scope='words') YZmJ = ZylS.expand_dims(YZmJ, 3) with ZylS.variable_scope('CNN_MODEL_layer1'): j2cC = ZylS.co...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bxFH(YKHO):\n if YKHO.args.model == 'exact':\n YKHO.layer = vQPV\n else:\n YKHO.layer = I0yh\n YKHO.setup_layer_structure()", "def af1r(YKHO):\n WKvO = bdPE.Input(shape=(960,), name='input')\n tgkZ = bdPE.layers.Dense(160, name='fc_2')(WKvO)\n IOrm = bdPE.layers.Activation('re...
[ "0.66570485", "0.6646728", "0.6495386", "0.6459275", "0.6446237", "0.64114165", "0.6406592", "0.63998836", "0.6260509", "0.624939", "0.6242556", "0.6210736", "0.6164048", "0.6156275", "0.612726", "0.60931474", "0.6083043", "0.6061994", "0.60524416", "0.60449994", "0.60273755"...
0.0
-1
returns the player of this node/board
def oyg0(YKHO): return YKHO._node._player
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Jrmm(YKHO) -> bhPX:\n return YKHO._player_node", "def oyg0(YKHO):\n return YKHO.players[YKHO.tictactoe.turn]", "def GFCh(YKHO):\n return YKHO.currentPlayer", "def vevC(YKHO):\n if YKHO.__currentnode__ is None:\n return None\n else:\n return YKHO.__currentnode__.getPlayer()", ...
[ "0.84974694", "0.80049855", "0.79447407", "0.7940067", "0.7929702", "0.7929702", "0.7923402", "0.78918636", "0.778249", "0.7725013", "0.77157575", "0.7715062", "0.7708579", "0.7669748", "0.763802", "0.7631774", "0.7610814", "0.7450632", "0.74350625", "0.7434214", "0.7427992",...
0.85981476
0
Return True if other is a Position representing the same location.
def xa14(YKHO, Elif): return type(Elif) is type(YKHO) and Elif._node is YKHO._node
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kJTp(YKHO, Elif):\n if not isinstance(Elif, PvyL):\n return False\n return YKHO.longitude == Elif.getLongitude() and YKHO.latitude == Elif.getLatitude()", "def rEwH(YKHO, Elif) -> bool:\n return YKHO.x == Elif.x and YKHO.y == Elif.y", "def xa14(YKHO, Elif):\n return YKHO._coords == Elif....
[ "0.83753794", "0.79628336", "0.76793855", "0.76793855", "0.76535684", "0.7578589", "0.74645853", "0.73438454", "0.7314408", "0.7313857", "0.72921956", "0.72802025", "0.7278196", "0.72429216", "0.7228173", "0.7227905", "0.71943545", "0.7183101", "0.7164673", "0.715504", "0.713...
0.0
-1
allows len() to give the total number of nodes in the tree
def szAg(YKHO): return YKHO._size
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def szAg(YKHO):\n return len(YKHO.subtrees())", "def szAg(YKHO):\n return YKHO.tree.filled_size()", "def szAg(YKHO) -> int:\n return len(YKHO.nodes)", "def szAg(YKHO):\n return len(YKHO.node)", "def szAg(YKHO) -> int:\n return len(YKHO._nodes)", "def szAg(YKHO):\n return len(YKHO.nodes)...
[ "0.81875", "0.7934719", "0.78868026", "0.7808678", "0.7803183", "0.77667797", "0.77379775", "0.7722224", "0.7664113", "0.76318455", "0.7583294", "0.7498763", "0.74767023", "0.7470636", "0.74250937", "0.7401783", "0.7390233", "0.7324213", "0.7316254", "0.7295157", "0.7289576",...
0.0
-1
Return a numpy array with the central values of all fit parameters.
def cL04(YKHO): return oyIN.asarray([YKHO.parameters_central[XP5J] for XP5J in YKHO.fit_parameters])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gM9H(YKHO):\n return oyIN.asarray([YKHO.parameters_central[XP5J] for XP5J in YKHO.nuisance_parameters])", "def DAn4(YKHO):\n ezWE = oyIN.zeros(YKHO.dimension)\n QIYS = len(YKHO.fit_parameters)\n cvTb = len(YKHO.nuisance_parameters)\n ezWE[:QIYS] = YKHO.get_random_fit_parameters\n ezWE[QIYS:...
[ "0.6811158", "0.629768", "0.5862129", "0.5841815", "0.58381426", "0.58371836", "0.5734695", "0.56314385", "0.5509437", "0.55020016", "0.54803395", "0.5404403", "0.5391076", "0.53788275", "0.53776425", "0.5371762", "0.5366532", "0.5366532", "0.53558236", "0.53553015", "0.53442...
0.80297726
0
Convert a 1D numpy array of floats to a dictionary of fit parameters, nuisance parameters, and Wilson coefficients.
def MA4h(YKHO, WKvO): Csk6 = {} QIYS = len(YKHO.fit_parameters) cvTb = len(YKHO.nuisance_parameters) EjL4 = len(YKHO.fit_wc_names) Csk6['fit_parameters'] = {XP5J: WKvO[YRbF] for YRbF, XP5J in enumerate(YKHO.fit_parameters)} Csk6['nuisance_parameters'] = {XP5J: WKvO[YRbF + QIYS] for YRbF, XP5J in...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def XQ32(YKHO, WKvO):\n Csk6 = {}\n QIYS = len(YKHO.fit_parameters)\n EjL4 = len(YKHO.fit_wc_names)\n Csk6['fit_parameters'] = {XP5J: WKvO[YRbF] for YRbF, XP5J in enumerate(YKHO.fit_parameters)}\n Csk6['fit_wc'] = {XP5J: WKvO[YRbF + QIYS] for YRbF, XP5J in enumerate(YKHO.fit_wc_names)}\n return C...
[ "0.6699103", "0.6092116", "0.58943063", "0.5734628", "0.5551426", "0.5487225", "0.5356745", "0.5352365", "0.5334167", "0.53135186", "0.5299158", "0.5269368", "0.52289736", "0.51430196", "0.51107275", "0.5056791", "0.50396186", "0.50333154", "0.503249", "0.5025911", "0.5006376...
0.7371965
0
Load the SM covariance from a pickle file.
def hHKK(YKHO, Ux0P): with open(Ux0P, 'rb') as eHNT: nPrm = t2lc.load(eHNT) YKHO.load_sm_covariance_dict(d=nPrm)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def YSRH(Ux0P):\n try:\n with open(Ux0P, 'rb') as nVrR:\n YEnM = k6eJ.load(nVrR)\n return YEnM\n except:\n print('File {} not found. This is ok if about to generate cov matrices'.format(Ux0P))\n return oyIN.nan", "def lO9t(YKHO, Ux0P):\n with open(Ux0P, 'rb') as eH...
[ "0.6869299", "0.6702878", "0.66240215", "0.6419365", "0.63671595", "0.6265688", "0.62655413", "0.6226587", "0.6139825", "0.6124369", "0.60798174", "0.5977576", "0.5908022", "0.5902734", "0.5883481", "0.58490777", "0.578287", "0.57825226", "0.5765771", "0.5728937", "0.5718042"...
0.8537413
0
Initialize the fit by producing a pseudomeasurement containing both experimental uncertainties as well as theory uncertainties stemming from nuisance parameters.
def xuYW(YKHO, ywwl=100, Mmro=5000, RcgH=1, DHvX=False, xMZb=False): gaiB, X1I_ = YKHO.get_exp_central_covariance(Mmro, force=xMZb) ITqo = YKHO.get_sm_covariance(ywwl, force=DHvX, threads=RcgH) _IBo = X1I_ + ITqo r8hN = cQYr.classes.Measurement('Pseudo-measurement for FastFit instance: ' + YKHO.name) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, yMLJ: dict=None):\n if yMLJ is not None:\n YKHO.fit_input = yMLJ\n YKHO.spatial_only = True", "def FIMM(YKHO):\n YKHO.configuration = None\n YKHO.initial_guess = YKHO.default_initial_guess.copy()\n YKHO.bounds = YKHO.default_bounds.copy()\n YKHO.fit_for = None\n YKHO.ha...
[ "0.60763663", "0.5942937", "0.586952", "0.58634394", "0.58315694", "0.57959574", "0.5767581", "0.5759208", "0.57584196", "0.57354707", "0.57218474", "0.57214063", "0.57097745", "0.57036626", "0.5670787", "0.5666616", "0.5653664", "0.5638877", "0.5634654", "0.5616419", "0.5614...
0.0
-1
Computer LN given an input tensor. We get in an input of shape [N X D] and with LN we compute the mean and var for each individual training point across all it's hidden dimensions rather than across the training batch as we do in BN. This gives us a mean and var of shape [N X 1].
def Q1bM(g4y1, _hZ2=1e-05, rrBf=None): JBMS, SRYB = ZylS.nn.moments(g4y1, [-1], keep_dims=True) with ZylS.variable_scope(rrBf + 'LN'): NXpY = ZylS.get_variable('alpha', shape=[g4y1.get_shape()[-1]], initializer=ZylS.constant_initializer(1)) DkWr = ZylS.get_variable('beta', shape=[g4y1.get_shape(...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def o3SZ(mvm2, NArs):\n yGTL = NArs[:, :, 0]\n ebcy = NArs[:, :, 1]\n Z9rn = OEry.to(yGTL.device)\n Ibb5 = ht2j.exp(-ebcy)\n jbXL = (mvm2 - yGTL) * Ibb5\n return ht2j.mean(0.5 * (jbXL * jbXL + 2 * ebcy + Z9rn))", "def kMxN(WKvO, JBMS, BReM):\n z6Q1 = ht2j.exp(-BReM)\n H0sX = WKvO - JBMS\n...
[ "0.6814969", "0.6087507", "0.60163474", "0.6015389", "0.59040576", "0.58562744", "0.58349335", "0.58075494", "0.5805271", "0.5801089", "0.579217", "0.5745171", "0.5718494", "0.57097584", "0.570159", "0.5698866", "0.56974626", "0.56872356", "0.5686488", "0.56854874", "0.567622...
0.62436026
1
Convert degrees to quaternions
def Omrx(YKHO, rKSe=0.0, H2HG=0.0, xTkQ=0.0): lGE9 = epAf.cos(epAf.radians(xTkQ * 0.5)) n2Q1 = epAf.sin(epAf.radians(xTkQ * 0.5)) SpII = epAf.cos(epAf.radians(rKSe * 0.5)) WotO = epAf.sin(epAf.radians(rKSe * 0.5)) RtYL = epAf.cos(epAf.radians(H2HG * 0.5)) WfMD = epAf.sin(epAf.radians(H2HG * 0.5)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b4BA(YKHO, vexM):\n YKHO._normalise()\n return YKHO * vexM * YKHO.conjugate", "def c0Qx(YylR):\n return R5H8(*ZylS.transformations.quaternion_from_euler(0, 0, YylR))", "def c0Qx(YylR):\n return R5H8(*ZylS.transformations.quaternion_from_euler(0, 0, YylR))", "def tzeJ(j6Vr):\n if j6Vr.ndim ...
[ "0.7152074", "0.7079169", "0.6979342", "0.68902564", "0.688503", "0.6838166", "0.68257564", "0.6786422", "0.6782196", "0.67521816", "0.6745304", "0.67351747", "0.6730065", "0.6655554", "0.6650059", "0.66377956", "0.66352797", "0.66168916", "0.6613836", "0.6551517", "0.6550865...
0.61208457
57
Sets the id of this Ifc.
def id(YKHO, id): YKHO._id = id
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def V_9M(YKHO, id):\n YKHO.__id = id", "def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX", "def psjw(YKHO, id):\n YKHO.id = int(id)", "def ekm0(YKHO, quXY):\n YKHO.id = quXY", "def ekm0(YKHO, id):\n YKHO._id = id\n return YKHO.callRemote('setID', id)", "def V_9M(YKHO, id):\n YKHO.data['id'] =...
[ "0.76008344", "0.7511835", "0.74858737", "0.74378175", "0.7314446", "0.72957957", "0.72513235", "0.72513235", "0.72513235", "0.72513235", "0.72513235", "0.7187202", "0.7187202", "0.7187202", "0.7187202", "0.7187202", "0.7187202", "0.7187202", "0.7187202", "0.7187202", "0.7187...
0.0
-1
Sets the name of this Ifc.
def mWFP(YKHO, mWFP): YKHO._name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zPdd(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP", "def WZrJ(YKHO, mWFP):...
[ "0.7725708", "0.7713939", "0.7713939", "0.7713939", "0.7713939", "0.7713939", "0.7670829", "0.76555294", "0.76546746", "0.76546746", "0.7631281", "0.7594796", "0.7575419", "0.75295275", "0.75295275", "0.7510359", "0.7463271", "0.7463271", "0.7420806", "0.7409372", "0.7387007"...
0.0
-1
Sets the creator of this Ifc.
def Wyuj(YKHO, Wyuj): YKHO._creator = Wyuj
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Wyuj(YKHO, Wyuj):\n YKHO._creator = Wyuj", "def zR8q(YKHO, BWXx):\n YKHO.PDFreactorConfiguration.in1['creator'] = BWXx", "def Wyuj(YKHO, Wyuj):\n if Wyuj is None:\n raise ValueError('Invalid value for `creator`, must not be `None`')\n if Wyuj is not None and len(Wyuj) > 36:\n rais...
[ "0.7606479", "0.735835", "0.6725008", "0.6552184", "0.6552184", "0.6474695", "0.6474695", "0.6261486", "0.6261486", "0.6261486", "0.6261486", "0.60966516", "0.5994482", "0.5994032", "0.5994032", "0.5994032", "0.5994032", "0.5994032", "0.5994032", "0.59151036", "0.58840555", ...
0.7554864
3
Sets the document_id of this Ifc.
def yZn6(YKHO, yZn6): if yZn6 is None: raise ValueError('Invalid value for `document_id`, must not be `None`') YKHO._document_id = yZn6
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yZn6(YKHO, yZn6):\n YKHO._document_id = yZn6", "def oBco(YKHO, BWXx):\n super(V4kV, YKHO)._set_input('DocumentId', BWXx)", "def C13M(YKHO, C13M):\n YKHO._document = C13M", "def C13M(YKHO, C13M):\n YKHO._document = C13M", "def _eu6(YKHO, C13M):\n pass", "def ZbPA(YKHO, A97Q):\n del Y...
[ "0.7987925", "0.68970627", "0.6335244", "0.6335244", "0.6158855", "0.60930973", "0.5961394", "0.5961394", "0.5961394", "0.58780915", "0.57487065", "0.5728034", "0.57201034", "0.5649035", "0.5642965", "0.5613018", "0.5599558", "0.55312896", "0.55197525", "0.54867023", "0.54698...
0.74769324
1
Sets the project_id of this Ifc.
def ekCf(YKHO, ekCf): if ekCf is None: raise ValueError('Invalid value for `project_id`, must not be `None`') YKHO._project_id = ekCf
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KAKp(YKHO, ekCf):\n YKHO._project_id = ekCf", "def ekCf(YKHO, ekCf):\n YKHO._project_id = ekCf", "def ekCf(YKHO, ekCf):\n YKHO._project_id = ekCf", "def e5y4(ekCf):\n return pcvq.set_project(ekCf)", "def vq4H(YKHO, vq4H):\n YKHO._project_task_id = vq4H", "def bNKA(YKHO, bNKA):\n YKH...
[ "0.80719465", "0.79470223", "0.79470223", "0.7137763", "0.64405227", "0.64154065", "0.64154065", "0.6399169", "0.6399169", "0.6399169", "0.6399169", "0.6292466", "0.6039423", "0.596651", "0.5870742", "0.5691129", "0.56828415", "0.5616093", "0.55805403", "0.55805403", "0.55299...
0.71029145
4
Sets the zones of this Ifc.
def _j99(YKHO, _j99): YKHO._zones = _j99
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RMmN(YKHO, **B2fa) -> None:\n YKHO._call_client_api(YKHO._device.set_config, **B2fa)", "def yYni(YKHO, J2us):\n YKHO._dump_data['zone'] = J2us", "def aNx8(YKHO, _j99):\n if isinstance(_j99, str) or isinstance(_j99, QMSQ):\n _j99 = [_j99]\n sfg1 = YKHO.connection.enable_availability_zones...
[ "0.5961863", "0.58072215", "0.57445395", "0.56828344", "0.5639419", "0.56248623", "0.53573406", "0.53573406", "0.53573406", "0.53573406", "0.53573406", "0.53293926", "0.5326192", "0.5322497", "0.5322497", "0.5251255", "0.51601774", "0.51601774", "0.51457953", "0.50787395", "0...
0.78344804
1
Returns true if both objects are equal
def xa14(YKHO, Elif): if not isinstance(Elif, VDin): return False return YKHO.__dict__ == Elif.__dict__
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)", "def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False", "def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c...
[ "0.8088132", "0.8088132", "0.8054589", "0.7982687", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", "0.79670393", ...
0.0
-1
Returns true if both objects are not equal
def Vdqg(YKHO, Elif): return not YKHO == Elif
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True", "def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)", "def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)", "def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)", ...
[ "0.845611", "0.8391477", "0.8144138", "0.81410587", "0.8132492", "0.8093973", "0.80920255", "0.80920255", "0.80920255", "0.8085325", "0.8085325", "0.8076365", "0.8076365", "0.8065748" ]
0.0
-1
Reset for floats/arrays. Should probably be NaN, but avoids having to check for min/max being set can optionally set the value
def SiRx(YKHO): if YKHO.allowable_max < YKHO.allowable_min: raise ValueError('{0} max less than min'.format(YKHO)) YKHO.min_found = YKHO.allowable_max * 1000000.0 YKHO.max_found = YKHO.allowable_min * 1e-06 YKHO.avg_found = YKHO.allowable_min * 0.0 YKHO.count = 0 YKHO.value = None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def SiRx(YKHO):\n YKHO.value = YKHO.min_value", "def SiRx(YKHO):\n if oyIN.any(YKHO.val != YKHO.valinit):\n YKHO.set_val(YKHO.valinit)", "def FH5A(YKHO):\n YKHO.max_amplitude = None\n YKHO.min_amplitude = None\n YKHO.max_wavenumber = None\n YKHO.min_wavenumber = None", "def SiRx(YKHO...
[ "0.7635695", "0.7409053", "0.7145911", "0.7055829", "0.69432485", "0.6926571", "0.6916363", "0.6910671", "0.68368423", "0.6725203", "0.67122966", "0.66524297", "0.66411924", "0.6640234", "0.66135174", "0.65856117", "0.6512947", "0.6490947", "0.6423494", "0.6412114", "0.638969...
0.76782066
0
Returns list of size `count` of integers >= 0, summing to `sum_`.
def wZ7Y(UHFx, MCOv): vsK8 = TNto(UHFx, MCOv + UHFx) return [YRbF - 1 for YRbF in vsK8]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TNto(UHFx, MCOv):\n assert MCOv >= 0\n if UHFx > MCOv:\n raise ValueError('Cannot find {} numbers >= 1 with sum {}'.format(UHFx, MCOv))\n if UHFx == 0:\n return []\n Kwd0 = tuKI.sample(list(range(1, MCOv)), UHFx - 1)\n Kwd0 = sorted(Kwd0)\n return [_tIi - LFlW for LFlW, _tIi in ...
[ "0.7122004", "0.58127195", "0.5766803", "0.5760794", "0.57237494", "0.57139254", "0.5681232", "0.5644841", "0.5587792", "0.5581283", "0.5526674", "0.5477838", "0.5465219", "0.54242647", "0.5357632", "0.532043", "0.53089404", "0.5290919", "0.5278949", "0.52256936", "0.52032185...
0.73194647
0
Test that the ``react_all`` function works in parallel using Python multiprocessing
def G7B6(YKHO): import rmgpy.rmg.main rvLd.rmg.main.maxproc = 2 nT1x = 2 RZLe = [O5cY().from_smiles('C=C'), O5cY().from_smiles('[CH3]'), O5cY().from_smiles('[OH]'), O5cY().from_smiles('CCCCCCCCCCC')] exwG = len(RZLe) AIxv, n7Y1 = ctf3(RZLe, exwG, oyIN.ones(exwG), oyIN.ones([exwG, exwG]), oyIN.on...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Cc4F(YKHO):\n import rmgpy.rmg.main\n rvLd.rmg.main.maxproc = 2\n nT1x = 2\n N5wa = O5cY().from_smiles('[OH]')\n RZLe = [O5cY().from_smiles('CC'), O5cY().from_smiles('[CH3]')]\n n7Y1 = [((N5wa, pa_B), ['H_Abstraction']) for pa_B in RZLe]\n AIxv = list(Hs6x.chain.from_iterable(Uw2J(n7Y1, nT...
[ "0.74236333", "0.64298403", "0.6035447", "0.5993434", "0.5977387", "0.5972954", "0.59582156", "0.5947237", "0.5939132", "0.59300476", "0.5864078", "0.5851499", "0.58441734", "0.5818219", "0.58164334", "0.58138275", "0.5751171", "0.57474524", "0.57349277", "0.57294875", "0.570...
0.77412826
0
Infinite generator of odd numbers
def C_CQ(): mLGw = 0 while True: yield (mLGw * (mLGw & 1)) mLGw += 1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dp6i():\n jvSB = 1\n while True:\n yield jvSB\n jvSB = jvSB + 2", "def MIep(qoqK):\n jvSB = 1\n while jvSB < qoqK:\n yield jvSB\n jvSB = jvSB + 2", "def YTqx(YKHO):\n for YRbF in range(0, 4):\n yield (YKHO.try_odd, YRbF)", "def vx39(ruNb):\n if ruNb % ...
[ "0.88493246", "0.81755483", "0.6933841", "0.691744", "0.68216807", "0.6724125", "0.6643856", "0.66391385", "0.65874535", "0.65512615", "0.65505296", "0.6539977", "0.65232295", "0.64730626", "0.63426095", "0.6312148", "0.62507874", "0.6227739", "0.6209182", "0.6192163", "0.616...
0.838798
1
`fixed_sequence_length` is important when training on TPU
def YeGO(O5nS, JVYD=None): if JVYD: bo34.info(f'Using fixed sequence lengths of {JVYD} tokens.') def QxcP(yHF5): yHF5.sort(key=lambda q2Xo: len(q2Xo[0]), reverse=True) j9VG, jPDJ = ([], []) for q2Xo in yHF5: j9VG.append(q2Xo[0]) jPDJ.append(q2Xo[1]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NXmX(YKHO, Y2uF):\n YKHO._sequence_length = Y2uF\n YKHO.tensors = [ht2j.tensor(QLxT(WKvO, YKHO._sequence_length, YKHO._sequence_stride)).float() for WKvO in [YKHO.inputs, YKHO.outputs]]", "def ViKf(Lcqa, Z5wO, _NR1=30):\n Lcqa = S5Za(Lcqa, _NR1, padding='post', truncating='post')\n Z5wO = S5Za(Z5...
[ "0.63949543", "0.61093545", "0.6096601", "0.60559607", "0.5999081", "0.596477", "0.5943129", "0.59129125", "0.5911029", "0.59061813", "0.5824285", "0.58112943", "0.58056337", "0.5795621", "0.5773663", "0.5757414", "0.5723625", "0.5685834", "0.5642662", "0.56293774", "0.562581...
0.0
-1
An optional textual description of the instance group manager.
def JBZA(YKHO) -> qe4Y.Output[h8nf[str]]: return qe4Y.get(YKHO, 'description')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TFMn(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'region_instance_group_manager')", "def iFm_(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'global_replication_group_description')", "def iFm_(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'global_replication_group_descrip...
[ "0.65178996", "0.6464517", "0.6464517", "0.6442011", "0.6410427", "0.6318157", "0.6292289", "0.62709075", "0.6173922", "0.6125568", "0.60044706", "0.5989081", "0.5984832", "0.591561", "0.59003466", "0.59003466", "0.58930343", "0.5857529", "0.58334965", "0.58273524", "0.581043...
0.0
-1
The distribution policy for this managed instance
def HEIG(YKHO) -> qe4Y.Output[x1iM[str]]: return qe4Y.get(YKHO, 'distribution_policy_zones')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qFaa(YKHO):\n return", "def qFaa(YKHO):\n return YKHO.agent.get_policy()", "def Qabx(YKHO) -> qlTl:\n return YKHO._policy", "def gb0O(YKHO) -> qe4Y.Output[h8nf[str]]:\n return qe4Y.get(YKHO, 'allocation_policy')", "def Qabx(YKHO) -> qe4Y.Output['outputs.ServicePolicy']:\n return qe4Y.get...
[ "0.7115384", "0.68115056", "0.6785003", "0.67210287", "0.6669487", "0.66248345", "0.65664035", "0.65664035", "0.65664035", "0.6464327", "0.64581394", "0.6453168", "0.6453168", "0.64279705", "0.64247775", "0.64247775", "0.6357863", "0.6357863", "0.6319181", "0.6309273", "0.630...
0.0
-1
The full URL of the instance group created by the manager.
def F0ay(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'instance_group')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def bD7m(YKHO):\n return nKyW('/admin/groups/{}'.format(YKHO.key))", "def hfrf(YKHO, *qIxc):\n return _VfD.GroupsExtension_getURI(YKHO, *qIxc)", "def hfrf(YKHO):\n return _VfD.GroupsPkgNamespaces_getURI(YKHO)", "def F0ay(YKHO):\n return YKHO._instance_group", "def LvtP(YKHO) -> qe4Y.Input[str]:...
[ "0.80278784", "0.687729", "0.63816345", "0.614715", "0.6109407", "0.6109407", "0.6109407", "0.6109407", "0.6109407", "0.6109407", "0.6109407", "0.6109407", "0.6107233", "0.6074248", "0.6037666", "0.6023866", "0.60043365", "0.5988312", "0.5968529", "0.5968529", "0.59629446", ...
0.65258294
2
The region where the managed instance group resides.
def zn0c(YKHO) -> qe4Y.Output[str]: return qe4Y.get(YKHO, 'region')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zn0c(YKHO) -> str:\n return YKHO.__region", "def zn0c(YKHO):\n return YKHO.config.region", "def zn0c(YKHO):\n return YKHO._get('region')", "def zn0c(YKHO):\n return YKHO._region", "def zn0c(YKHO):\n return YKHO._region", "def hp9V(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, '...
[ "0.8010288", "0.80065036", "0.7990133", "0.79279643", "0.79279643", "0.791069", "0.7864398", "0.7864398", "0.7864398", "0.7864398", "0.7864398", "0.7864398", "0.7843217", "0.7775644", "0.75909287", "0.7505919", "0.7472873", "0.7472873", "0.7472873", "0.7472873", "0.7452914", ...
0.74855524
21
haversine formula to get distance in meters
def GeVo(hLRM, yFgu): igSk, GgQG = hLRM TGuP, tk0B = yFgu r1VO = 6371000 n_9K = epAf.radians(TGuP - igSk) H91H = epAf.radians(tk0B - GgQG) jzdc = epAf.sin(n_9K / 2) * epAf.sin(n_9K / 2) + epAf.cos(epAf.radians(igSk)) * epAf.cos(epAf.radians(TGuP)) * epAf.sin(H91H / 2) * epAf.sin(H91H / 2) Z9...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UVU1(mAYH, pks6):\n igSk, GgQG = mAYH\n TGuP, tk0B = pks6\n A3Vt = 6373.0\n igSk = Y_1E(igSk)\n GgQG = Y_1E(GgQG)\n TGuP = Y_1E(TGuP)\n tk0B = Y_1E(tk0B)\n H91H = tk0B - GgQG\n n_9K = TGuP - igSk\n jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2\n Z9r...
[ "0.7616866", "0.7604827", "0.7284842", "0.72253686", "0.7183302", "0.71782696", "0.7176504", "0.7175498", "0.7149683", "0.7105009", "0.7102541", "0.7088861", "0.7067372", "0.7063075", "0.7056165", "0.7052046", "0.7029711", "0.7018232", "0.70083225", "0.6997249", "0.69937575",...
0.72226274
4
Evaluate (possibly unnormalized) pdf over a meshgrid.
def cBi8(EHIu, range, O9N6, cb_Q): HEZd = oyIN.linspace(range[0], range[1], O9N6) Rtnc, mPai = oyIN.meshgrid(HEZd, HEZd) epBp = oyIN.hstack([Rtnc.reshape(-1, 1), mPai.reshape(-1, 1)]) JxU2 = cb_Q.run(ZylS.exp(EHIu), feed_dict={Vnop: epBp}) return (Rtnc, mPai, JxU2)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kzAT(YKHO, Cs6h, u95t):\n ycBG = Cs6h[0][:]\n ycBG[ycBG > 1.0] = 0.0\n ycBG[ycBG < 0.0] = 0.0\n if u95t[0]:\n pass\n else:\n ycBG = 1.0 - ycBG\n return ycBG", "def kzAT(YKHO, Cs6h, u95t):\n yfqf = {H5ew: BWXx for H5ew, BWXx in zip(YKHO.freeParameters, Cs6h)}\n y8j2 = yfq...
[ "0.7058078", "0.69139713", "0.67356205", "0.6659197", "0.6632267", "0.65002656", "0.6487024", "0.6469658", "0.63438135", "0.6311072", "0.6195196", "0.6159534", "0.61580455", "0.61118317", "0.60907745", "0.59862655", "0.5977282", "0.59643334", "0.59522116", "0.59150136", "0.59...
0.64887494
6
Evaluate (possibly unnormalized) pdf over a meshgrid.
def ln_q(EHIu, sy4D, range, O9N6, cb_Q): HEZd = oyIN.linspace(range[0], range[1], O9N6) Rtnc, mPai = oyIN.meshgrid(HEZd, HEZd) epBp = oyIN.hstack([Rtnc.reshape(-1, 1), mPai.reshape(-1, 1)]) JxU2 = cb_Q.run(ZylS.exp(EHIu), feed_dict={Vnop: epBp}) sy4D = cb_Q.run(sy4D, feed_dict={Vnop: epBp}) Rtnc...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kzAT(YKHO, Cs6h, u95t):\n ycBG = Cs6h[0][:]\n ycBG[ycBG > 1.0] = 0.0\n ycBG[ycBG < 0.0] = 0.0\n if u95t[0]:\n pass\n else:\n ycBG = 1.0 - ycBG\n return ycBG", "def kzAT(YKHO, Cs6h, u95t):\n yfqf = {H5ew: BWXx for H5ew, BWXx in zip(YKHO.freeParameters, Cs6h)}\n y8j2 = yfq...
[ "0.7056964", "0.69126225", "0.67344403", "0.66581446", "0.6632508", "0.6498774", "0.6488121", "0.6485571", "0.6468177", "0.63422906", "0.631023", "0.6159422", "0.6156919", "0.6111721", "0.6088595", "0.59863585", "0.59757966", "0.59640026", "0.59523505", "0.59150285", "0.59100...
0.6195063
11
Deprecated since muzika supports ethereum and ontology protocol. This only checks the address is ethereum account format, so use `check_eth_address_format` if checking ethereum account or use `check_ont_address_format` to check ontology account format.
def Sc_d(UTX6): if len(UTX6) != 42 or UTX6[:2] != '0x': return False for Npgh in UTX6[2:]: if Npgh not in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890': return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def IfNa(UTX6):\n if len(UTX6) != 42 or UTX6[:2] != '0x':\n return False\n for Npgh in UTX6[2:]:\n if Npgh not in 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890':\n return False\n return True", "def jlJO(UTX6: str) -> bool:\n return True", "def BJhO(UTX6):\...
[ "0.70649725", "0.6952313", "0.66243076", "0.65986884", "0.6579121", "0.65078485", "0.6411364", "0.6313796", "0.62809724", "0.6163311", "0.6159437", "0.6132673", "0.5932768", "0.5889719", "0.58688897", "0.57983047", "0.5786431", "0.5784806", "0.5719249", "0.5712209", "0.565022...
0.6787064
2
ORG / Organization Registry
def QAIN(): ePsc = jvSB.session.s3.system_roles.ADMIN v45c = 'Clusters' if jvSB.deployment_settings.get_ui_label_cluster() else 'Sectors' return E3D9(c='org')(E3D9('Organizations', f='organisation')(E3D9('Create', m='create'), E3D9('Import', m='import')), E3D9('Facilities', f='facility', m='summary')(E3D9('...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wHOH():\n pass", "def QAIN():\n gCuF = jvSB.deployment_settings\n ePsc = jvSB.session.s3.system_roles.ADMIN\n v45c = 'Clusters' if gCuF.get_ui_label_cluster() else 'Sectors'\n eQSh = lambda YRbF: gCuF.has_module('stats')\n return E3D9(c='org')(E3D9('Organizations MSW', f='organisation')(E3D...
[ "0.6763007", "0.6492382", "0.6429063", "0.6282557", "0.6249889", "0.6188225", "0.61638963", "0.6094433", "0.6059302", "0.6025161", "0.59956837", "0.5980094", "0.59651905", "0.5891342", "0.58489025", "0.5847773", "0.58200425", "0.5746552", "0.573843", "0.573843", "0.573843", ...
0.6183897
6
Serializes this instance to a Python dictionary.
def MNRr(YKHO): hlel = jth9.deepcopy(YKHO.__dict__) return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MNRr(YKHO):\n return qyWT(YKHO)", "def MNRr(YKHO):\n oAiD = YKHO._serializer().dump(YKHO)\n return oAiD.data", "def MNRr(YKHO):\n return MNRr(YKHO.__dict__)", "def MNRr(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO):\n return YKHO.__dict__", "def MNRr(YKHO):\n return YKHO.__dict...
[ "0.8421195", "0.84043926", "0.8362277", "0.83090377", "0.82829785", "0.82829785", "0.82829785", "0.82829785", "0.82829785", "0.82829785", "0.8236021", "0.82179517", "0.82133806", "0.82032114", "0.8181652", "0.8179579", "0.81732064", "0.81534773", "0.8118078", "0.8090142", "0....
0.0
-1
Serializes this instance to a JSON string.
def IZ3T(YKHO): return qQXR.dumps(YKHO.to_dict(), indent=2, sort_keys=True) + '\n'
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Napc(YKHO) -> str:\n return qQXR.dumps(YKHO.__dict__)", "def Napc(YKHO):\n return qQXR.dumps(YKHO.as_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_dict())", "def oD7C(YKHO) -> str:\n return qQXR.dumps(YKHO.to_d...
[ "0.88999254", "0.8837045", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.8805053", "0.87147456", "0.8637419", "0.8619328", "0.8598524", "0.8572258", "0.8568808", "0.8568808", "0.8446259", "0.8446259", "0.8446259", ...
0.0
-1
Converts a raster to a line shapefile, where ``pixel_value`` determines line start and end points.
def WyRr(BvpB, w8kx, swWp): m7pY, qw7D, tM4K = sh7Y(BvpB) QgCH = tM4K[1] aq_o = oyIN.ceil(oyIN.sqrt(2 * QgCH ** 2)) Hydg = oyIN.where(qw7D == swWp) if oyIN.count_nonzero(Hydg) == 0: G9jH.error('! The defined pixel_value (%s) does not occur in the raster band.' % str(swWp)) return Non...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gxTQ(YKHO):\n return H5As(slpE.ST_CurveToLine, YKHO)", "def tLMP(YwkQ):\n kYXH = []\n _tIi = True\n for EcVT in range(YwkQ.shape[0]):\n WEql = None\n ztt8 = False\n if _tIi == True:\n fuBA = 0\n while fuBA < YwkQ.shape[1]:\n if ztt8:\n ...
[ "0.56106436", "0.5516042", "0.5451473", "0.5190002", "0.5074397", "0.5016553", "0.4998306", "0.49609667", "0.4947257", "0.4936952", "0.49210402", "0.49196485", "0.49100143", "0.486752", "0.4864957", "0.48588872", "0.48572835", "0.48303378", "0.48156807", "0.47999814", "0.4770...
0.7735919
0
Returns the default value for this field. The default implementation on models.Field calls force_str on the default, which means you can't set arbitrary Python objects as the default. To fix this, we just return the value without calling force_str on it. Note that if you set a callable as a default, the field will stil...
def yVun(YKHO): if YKHO.has_default(): if callable(YKHO.default): return YKHO.default() return YKHO.default return super().get_default()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def HyJ9(YKHO):\n if callable(YKHO._default):\n return YKHO._default()\n return YKHO._default", "def WmM4(YKHO):\n if callable(YKHO._default):\n return YKHO._default()\n return YKHO._default", "def WmM4(YKHO):\n if callable(YKHO._default):\n return YKHO._default()\n retur...
[ "0.7965407", "0.7419583", "0.7417374", "0.73321116", "0.7253449", "0.72530806", "0.7237861", "0.7228919", "0.7202137", "0.7202137", "0.70342", "0.70094585", "0.699183", "0.698915", "0.6929237", "0.6925097", "0.6892102", "0.68819267", "0.68565226", "0.68365496", "0.683512", ...
0.8100797
0
Pickle and b64encode the object, optionally compressing it. The pickling protocol is specified explicitly (by default 2), rather than as 1 or HIGHEST_PROTOCOL, because we don't want the protocol to change over time. If it did, ``exact`` and ``in`` lookups would likely fail, since pickle would now be generating a differ...
def RTSW(YKHO, BWXx, UzPC=None, LJT_=False): if BWXx is not None and (not isinstance(BWXx, miBu)): BWXx = e0D3(DeT_(BWXx, YKHO.compress, YKHO.protocol)) return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kLcZ(WnaT):\n return WR89.b64encode(g5Ba.compress(t2lc.dumps(WnaT), 9))", "def t2lc(YEnM):\n return J3AG.optimize(rIin.dumps(YEnM))", "def EC_r(BWXx):\n u2dO = D56B.dump(BWXx)\n return g5Ba.compress(u2dO)", "def pd10(YEnM):\n return QMfv(EC_r(rIin.dumps(YEnM))).decode('utf8')", "def d7rc...
[ "0.64942366", "0.63257295", "0.6108462", "0.60170376", "0.6001938", "0.5934139", "0.59209794", "0.5910281", "0.58863634", "0.5847116", "0.58158183", "0.58074975", "0.5764063", "0.576124", "0.57034963", "0.56393117", "0.5603462", "0.5589314", "0.55165863", "0.5498033", "0.5495...
0.0
-1
Calculate the great circle distance between two points on the earth (specified in decimal degrees)
def GeVo(GgQG, igSk, tk0B, TGuP): GgQG, igSk, tk0B, TGuP = map(Y_1E, [GgQG, igSk, tk0B, TGuP]) H91H = tk0B - GgQG n_9K = TGuP - igSk jzdc = YUNn(n_9K / 2) ** 2 + YhSR(igSk) * YhSR(TGuP) * YUNn(H91H / 2) ** 2 Z9rn = 2 * P099(PZyS(jzdc)) Mkmy = 3956 return Z9rn * Mkmy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KzuF(rCSf, hjIX, FNKk, T3JP):\n hjIX = r8hN.radians(hjIX)\n rCSf = r8hN.radians(rCSf)\n T3JP = r8hN.radians(T3JP)\n FNKk = r8hN.radians(FNKk)\n Csk6 = 2 * 6367.45 * r8hN.asin(r8hN.sqrt(GeVo(FNKk - rCSf) + r8hN.cos(rCSf) * r8hN.cos(FNKk) * GeVo(T3JP - hjIX)))\n return Csk6", "def T97B(GgQG, ...
[ "0.81450045", "0.7863265", "0.76322985", "0.76064754", "0.75978696", "0.75965863", "0.75944835", "0.75720793", "0.75630087", "0.7555095", "0.7528691", "0.7517629", "0.7492963", "0.7467739", "0.7452678", "0.7434477", "0.73914117", "0.7357736", "0.73484355", "0.73318124", "0.73...
0.0
-1
Returns True if lst contains elements in nondecreasing order as determined by the < operator. Returns False if the elements of lst are not in order. Throws an exception if lst is not a list or its elements are not compatible with the < operator.
def jSD_(yv6U): for YRbF in range(len(yv6U) - 1): for r845 in range(YRbF + 1, len(yv6U)): if yv6U[YRbF] > yv6U[r845]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NiAs(yv6U):\n if not type(yv6U) == list:\n return 'false'\n if len(yv6U) == 0:\n return 'false'\n for YRbF in range(1, len(yv6U), 1):\n if yv6U[YRbF] < yv6U[YRbF - 1]:\n return 'false'\n return 'true'", "def dJ3J(bCES):\n THkp = -1\n for ZfUD in bCES:\n ...
[ "0.7242137", "0.72214943", "0.71870613", "0.6505474", "0.64767545", "0.64602256", "0.62692374", "0.6202587", "0.6191283", "0.6131461", "0.609136", "0.6067486", "0.6058845", "0.604702", "0.60416913", "0.600323", "0.5940561", "0.5922674", "0.59025216", "0.5895114", "0.5876886",...
0.70731837
3
Returns True if lst contains elements in nondecreasing order as determined by the < operator. Returns False if the elements of lst are not in order. Throws an exception if lst is not a list or its elements are not compatible with the < operator.
def WalB(yv6U): for YRbF in range(len(yv6U) - 1): if yv6U[YRbF] > yv6U[YRbF + 1]: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NiAs(yv6U):\n if not type(yv6U) == list:\n return 'false'\n if len(yv6U) == 0:\n return 'false'\n for YRbF in range(1, len(yv6U), 1):\n if yv6U[YRbF] < yv6U[YRbF - 1]:\n return 'false'\n return 'true'", "def dJ3J(bCES):\n THkp = -1\n for ZfUD in bCES:\n ...
[ "0.7240756", "0.72196025", "0.7072868", "0.65040433", "0.6475344", "0.6459152", "0.6268099", "0.62014914", "0.6190897", "0.6130084", "0.60925406", "0.606699", "0.60579705", "0.6045748", "0.6041074", "0.60017866", "0.5939485", "0.5922428", "0.5901148", "0.58933014", "0.5875714...
0.7186721
2
Compares the performance of the is_ascending and is_ascending2 functions on lists of various sizes.
def b8V_(): BZgl, X9Rj = ([], []) E0wO = 40000 for zNig in (WKvO ** 2 for WKvO in range(0, round(PZyS(E0wO)) + 1, 20)): oQ9n(zNig, BZgl, X9Rj) QrM1 = VvZE(600, 600, 0, E0wO, 0, 120) QrM1.pen.width(4) QrM1.plot_data(BZgl, 'blue') QrM1.plot_data(X9Rj, 'red') QrM1.interact()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WalB(yv6U):\n for YRbF in range(len(yv6U) - 1):\n if yv6U[YRbF] > yv6U[YRbF + 1]:\n return False\n return True", "def oQ9n(zNig, BZgl, X9Rj):\n print('List size:', zNig)\n aqea = list(range(zNig))\n yKcO = DZsB()\n TK2h = jSD_(aqea)\n xWgU = DZsB() - yKcO\n print(' ...
[ "0.6841603", "0.6778285", "0.6720954", "0.6471349", "0.62942326", "0.62434614", "0.6209229", "0.6006006", "0.58396053", "0.57390577", "0.56763923", "0.56508017", "0.56479293", "0.5615024", "0.56118643", "0.55878514", "0.5576921", "0.5559624", "0.5528558", "0.5514989", "0.5506...
0.0
-1
Returns ``True`` if value is a builtin numeric object (e.g. ``int``, ``float``, ``long``, ``Decimal``, etc.).
def ye72(BWXx, K7_r=False): if isinstance(BWXx, bool): return K7_r return isinstance(BWXx, Tkz9)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dece(YEnM):\n return isinstance(YEnM, (int, float, complex))", "def cV7v(YEnM):\n return isinstance(YEnM, (int, float, bool))", "def cV7v(YEnM):\n return isinstance(YEnM, mSrU.Number)", "def dece(BWXx):\n return isinstance(BWXx, int) or isinstance(BWXx, float)", "def ye72(YKHO, BWXx):\n ...
[ "0.7451208", "0.7300595", "0.72985935", "0.7213701", "0.71166027", "0.7105885", "0.7054803", "0.70390123", "0.70143133", "0.7000625", "0.69475585", "0.6895886", "0.67697465", "0.6760952", "0.6737889", "0.6728114", "0.6724493", "0.67034614", "0.66412693", "0.66246176", "0.6542...
0.65920866
20
Returns ``True`` if value is an iterable container (e.g. ``list`` or ``tuple`` but not a generator).
def GfZ5(BWXx): return hasattr(BWXx, '__iter__') and hasattr(BWXx, '__getitem__')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TuHT(BWXx):\n return not isinstance(BWXx, str) and isinstance(BWXx, g760.Iterable)", "def rUFq(BWXx):\n try:\n iter(BWXx)\n return True\n except:\n return False", "def DDqk(BWXx):\n return isinstance(BWXx, list) or isinstance(BWXx, tuple)", "def DDqk(DumB):\n return is...
[ "0.88312304", "0.87683564", "0.8710786", "0.81222916", "0.7924384", "0.79081273", "0.7863658", "0.7796763", "0.7740734", "0.77300227", "0.7717659", "0.7715914", "0.7699153", "0.76303655", "0.75888765", "0.75461113", "0.7543443", "0.7426666", "0.740164", "0.73852044", "0.73464...
0.8564635
3
Returns the ground distance in metres between two LocationGlobal objects. This method is an approximation, and will not be accurate over large distances and close to the
def vjqF(O3Ka, qqsd): n_9K = qqsd.lat - O3Ka.lat fOkK = qqsd.lon - O3Ka.lon return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def vjqF(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5", "def vjqF(O3Ka, qqsd):\n n_9K = qqsd.lat - O3Ka.lat\n fOkK = qqsd.lon - O3Ka.lon\n return epAf.sqrt(n_9K * n_9K + fOkK * fOkK) * 111319.5", "def vjqF(O3Ka...
[ "0.66148055", "0.66148055", "0.66148055", "0.66148055", "0.66148055", "0.6583338", "0.6557492", "0.6514061", "0.6269064", "0.6211089", "0.6161022", "0.6104028", "0.60677063", "0.60477495", "0.5999031", "0.59411407", "0.58524305", "0.58501494", "0.5795043", "0.5736", "0.570463...
0.65862477
5
If the canvas has annotations, add them to the response. A call to check whether there are any annotations at all for this manifest is performed in the `Manifest` serializer, and the result is passed down here as an optimization, so that we don't have to check every canvas in Solr for annotations when the bulk of our m...
def Ct7h(YKHO, YEnM: SolrResult) -> h8nf[x1iM]: dNP6 = YKHO.context.get('has_annotations') if not dNP6 and (not YKHO.context.get('direct_request')): return None Wswm = YEnM['id'] qv1X = YKHO.context.get('request') _Fei = YKHO.context.get('config') PMEd = ['type:annotationpage', f'surface...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, QePW, *qIxc, **B2fa):\n HvoO = []\n if QePW.user.is_authenticated:\n HvoO.append(QePW.user)\n Brm0 = ', '.join([str(YRbF.name) for YRbF in HvoO])\n return jnRN(qQXR.loads(Napc('manifest', YKHO.get_queryset(), version=B2fa['version'], annotators=Brm0, exportdate=qcWV.utcnow(), curr...
[ "0.60319895", "0.5791774", "0.5398183", "0.53976905", "0.5371988", "0.53216404", "0.5279495", "0.52498215", "0.52149117", "0.5168656", "0.5050367", "0.49932328", "0.4982622", "0.49709442", "0.49023166", "0.49001253", "0.4881371", "0.48783773", "0.48612964", "0.4859963", "0.48...
0.5645073
2
Returns a url using the preferred domain name for this app instance.
def MNKb(bD7m, bNKA=None): SQ3m = list(KVWQ.urlsplit(bD7m)) KM4F = zRBD(project=bNKA, default_to_appid=False) if KM4F: SQ3m[1] = KM4F return KVWQ.urlunsplit(SQ3m)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lTr1(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'application_host_url')", "def iAU8(YKHO):\n return YKHO.request.host_url", "def NSiX(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'application_url')", "def bD7m(YKHO):\n return YKHO.hs.hostname if YKHO.active else None", "def VSpN(YKHO)...
[ "0.7205508", "0.71394145", "0.6919664", "0.67903703", "0.67515934", "0.66990566", "0.66172755", "0.6597922", "0.6586575", "0.6578005", "0.656904", "0.65622306", "0.65060335", "0.65028477", "0.64580435", "0.6456479", "0.6446549", "0.64229774", "0.64213884", "0.6419966", "0.641...
0.0
-1
This function instantiates the tool logic Turntable class with the values given by the user.
def pT6J(YKHO): vC92 = YKHO.sender() z_fA = YKHO.setting_dropdown.currentText() if vC92: oq1W = YKHO.rad_grp.checkedButton() YKHO.start_frm = YKHO.start_frm_le.text() YKHO.end_frm = YKHO.end_frm_le.text() qaEx = YKHO.save_loc.text() if YKHO.arg_check(): Le...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, rFop=None, Fst3=None):\n bo34.debug('Creating Table {}'.format(YKHO))\n super().__init__(flowchart=rFop, title='Table', extension=Fst3, logger=bo34)\n YKHO.parameters = OCRM.TableParameters()\n YKHO.calls = 0", "def FIMM(YKHO, RqgG, geGr, KzJa):\n YKHO.initial = RqgG\n YKHO.goals...
[ "0.5998906", "0.5993782", "0.59766316", "0.59378535", "0.58716434", "0.585806", "0.5857164", "0.58565325", "0.58433634", "0.58353734", "0.58146834", "0.5732648", "0.5724465", "0.5720131", "0.5706572", "0.56990594", "0.5698365", "0.5698007", "0.56845826", "0.5674405", "0.56584...
0.61193466
0
Get the value for a session variable.
def NMoC(YKHO, H5ew, WmM4=None): return YKHO.data.get(H5ew, WmM4)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dsLK(QePW, vXX7, fK9_=False):\n if QePW.method == 'GET':\n if vXX7 in QePW.GET:\n wEf2 = QePW.GET[vXX7]\n else:\n wEf2 = ''\n if QePW.method == 'POST':\n if vXX7 in QePW.POST:\n wEf2 = QePW.POST[vXX7]\n else:\n wEf2 = ''\n if fK9_...
[ "0.714", "0.67871875", "0.65893376", "0.6372777", "0.61924124", "0.6153164", "0.6137498", "0.61363316", "0.6080506", "0.6062471", "0.603673", "0.59926516", "0.5946611", "0.59447896", "0.59431493", "0.59375715", "0.5936777", "0.5929405", "0.59130853", "0.59109", "0.5869733", ...
0.0
-1
Testing the POST reviewrequests//reviews//replies//diffcomments/ API with a local site and Permission Denied error
def np8f(YKHO): YKHO.test_post_reply_with_diff_comment_and_local_site(True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TQPa(YKHO):\n x0hE = i9zE()\n x0hE.login(username='TEST_USER_1', email='TEST_EMAIL_1', password='TEST_PW_1')\n geh0 = x0hE.post('/api/review/1/')\n YKHO.assertEqual(geh0.status_code, 405)", "def sVrz(YKHO):\n x0hE = i9zE()\n x0hE.login(username='TEST_USER_1', email='TEST_EMAIL_1', password=...
[ "0.703492", "0.68783784", "0.68386877", "0.6725568", "0.67050797", "0.6553093", "0.6524634", "0.6513208", "0.6505711", "0.64795756", "0.64781076", "0.6427316", "0.64147395", "0.6345302", "0.6296733", "0.629124", "0.62561035", "0.6231691", "0.62144536", "0.61530113", "0.610549...
0.6985187
1
Testing the PUT reviewrequests//reviews//replies//diffcomments/ API with a local site
def mCvX(YKHO): KRPS = 'My new comment text' uDyx = YKHO.test_post_reply_with_diff_comment_and_local_site()[0] J27D = jY1u.objects.get(pk=uDyx['diff_comment']['id']) uDyx = YKHO.apiPut(uDyx['diff_comment']['links']['self']['href'], {'text': KRPS}, expected_mimetype=cSmZ) YKHO.assertEqual(uDyx['stat'...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kFYO(YKHO):\n KRPS = 'My new comment text'\n uDyx = YKHO.test_post_reply_with_diff_comment_and_local_site()[0]\n YKHO._login_user()\n uDyx = YKHO.apiPut(uDyx['diff_comment']['links']['self']['href'], {'text': KRPS}, expected_status=403)\n YKHO.assertEqual(uDyx['stat'], 'fail')\n YKHO.assertEq...
[ "0.65393895", "0.62735087", "0.62373966", "0.62256247", "0.622363", "0.6219342", "0.6142737", "0.6079739", "0.60715234", "0.6055641", "0.6004901", "0.5975592", "0.5970512", "0.5959325", "0.5943743", "0.5939068", "0.5916239", "0.5909859", "0.5894517", "0.5879853", "0.5844074",...
0.6731006
0
Testing the PUT reviewrequests//reviews//replies//diffcomments/ API with a local site and Permission Denied error
def kFYO(YKHO): KRPS = 'My new comment text' uDyx = YKHO.test_post_reply_with_diff_comment_and_local_site()[0] YKHO._login_user() uDyx = YKHO.apiPut(uDyx['diff_comment']['links']['self']['href'], {'text': KRPS}, expected_status=403) YKHO.assertEqual(uDyx['stat'], 'fail') YKHO.assertEqual(uDyx['e...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def sVrz(YKHO):\n x0hE = i9zE()\n x0hE.login(username='TEST_USER_1', email='TEST_EMAIL_1', password='TEST_PW_1')\n geh0 = x0hE.put('/api/review/')\n YKHO.assertEqual(geh0.status_code, 405)", "def dE6i(YKHO):\n x0hE = i9zE()\n buoz = SYRW.objects.get(nickname='user1').id\n wOcl = E1cg.objects...
[ "0.74524605", "0.7369447", "0.7042684", "0.68080676", "0.6805147", "0.67291796", "0.6693361", "0.66036", "0.65175873", "0.6505507", "0.64481777", "0.64085996", "0.636916", "0.636572", "0.6351788", "0.6256875", "0.6243114", "0.62029725", "0.6167138", "0.6135885", "0.6131305", ...
0.7121502
2
Testing the DELETE reviewrequests//reviews//replies//diffcomments// API with a local site
def Du4Y(YKHO): uDyx, aM_I, htsH = YKHO.test_post_reply_with_diff_comment_and_local_site() YKHO.apiDelete(uDyx['diff_comment']['links']['self']['href']) uDyx = YKHO.apiGet(htsH, expected_mimetype=jfwV) YKHO.assertEqual(uDyx['stat'], 'ok') YKHO.assertTrue('diff_comments' in uDyx) YKHO.assertEqual...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def gNuC(YKHO):\n uDyx, aM_I, htsH = YKHO.test_post_reply_with_diff_comment_and_local_site()\n RWYq = LaQc.objects.get(name=YKHO.local_site_name)\n RWYq.users.add(mv1M.objects.get(username='grumpy'))\n YKHO.client.login(username='grumpy', password='grumpy')\n YKHO.apiDelete(uDyx['diff_comment']['lin...
[ "0.7115937", "0.70493656", "0.65635026", "0.6481386", "0.6317205", "0.62271863", "0.61020267", "0.6066379", "0.60471386", "0.601186", "0.5999376", "0.5950964", "0.5926336", "0.59192765", "0.58725566", "0.587128", "0.58556515", "0.58488834", "0.58433807", "0.58416235", "0.5825...
0.7395336
0
Testing the DELETE reviewrequests//reviews//replies//diffcomments// API and Permission Denied
def aRo7(YKHO): uDyx, aM_I, htsH = YKHO.test_post_reply_with_diff_comment() YKHO.client.login(username='doc', password='doc') YKHO.apiDelete(uDyx['diff_comment']['links']['self']['href'], expected_status=403)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z_un(YKHO):\n x0hE = i9zE()\n geh0 = x0hE.delete('/api/review/1/')\n YKHO.assertEqual(geh0.status_code, 401)\n x0hE.login(username='TEST_USER_2', email='TEST_EMAIL_2', password='TEST_PW_2')\n wOcl = E1cg.objects.get(content='TEST_CONTENT').id\n sIdx = E1cg.objects.get(content='TEST_CONTENT2')...
[ "0.7722728", "0.68038464", "0.6767059", "0.674099", "0.67268115", "0.66270083", "0.6607972", "0.6509051", "0.6465626", "0.6410654", "0.6401929", "0.6329626", "0.6321542", "0.6282685", "0.6272163", "0.622151", "0.61871433", "0.6179466", "0.6174567", "0.6128577", "0.6122068", ...
0.74173397
1
Testing the DELETE reviewrequests//reviews//replies//diffcomments// API with a local site and Permission Denied
def gNuC(YKHO): uDyx, aM_I, htsH = YKHO.test_post_reply_with_diff_comment_and_local_site() RWYq = LaQc.objects.get(name=YKHO.local_site_name) RWYq.users.add(mv1M.objects.get(username='grumpy')) YKHO.client.login(username='grumpy', password='grumpy') YKHO.apiDelete(uDyx['diff_comment']['links']['self...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def z_un(YKHO):\n x0hE = i9zE()\n geh0 = x0hE.delete('/api/review/1/')\n YKHO.assertEqual(geh0.status_code, 401)\n x0hE.login(username='TEST_USER_2', email='TEST_EMAIL_2', password='TEST_PW_2')\n wOcl = E1cg.objects.get(content='TEST_CONTENT').id\n sIdx = E1cg.objects.get(content='TEST_CONTENT2')...
[ "0.7435997", "0.70852906", "0.68192095", "0.67302656", "0.6682973", "0.66386664", "0.6632861", "0.6543811", "0.64640075", "0.6424813", "0.6377879", "0.6350746", "0.6343499", "0.6323213", "0.62912786", "0.6283507", "0.62450844", "0.6236664", "0.62185425", "0.6218418", "0.62133...
0.735104
1
Creates one layer of blocks for the ResNet model.
def H4on(g4y1, KUnM, RzcG, YtEn, rmyT, FEri, Y9ns, mWFP, wH3T): M6Hj = KUnM * 4 if RzcG else KUnM def ktiQ(g4y1): return Dqnz(inputs=g4y1, filters=M6Hj, kernel_size=1, time_kernel_size=1, strides=FEri, data_format=wH3T, time_stride=FEri) g4y1 = YtEn(g4y1, KUnM, Y9ns, ktiQ, FEri, wH3T) for El1Z ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zU07(YKHO, Q7e3):\n lzjZ = Q7e3[0]\n if lzjZ == 'Conv2d':\n DYuh, tYiq, Ot1W = Q7e3[1:]\n return U78l.Conv2d(in_channels=DYuh, out_channels=tYiq, kernel_size=Ot1W)\n elif lzjZ == 'ReLU':\n return U78l.ReLU(inplace=True)\n elif lzjZ == 'MaxPool2d':\n Ot1W, _0fC = Q7e3[1:]...
[ "0.7114202", "0.6935391", "0.6902413", "0.6796541", "0.67576265", "0.66630286", "0.6659504", "0.6652309", "0.6605723", "0.65342194", "0.65328145", "0.6521818", "0.65129703", "0.65042573", "0.6484469", "0.64513564", "0.6448056", "0.64360905", "0.6433016", "0.6414449", "0.64110...
0.0
-1
Creates variables in fp32, then casts to fp16 if necessary. This function is a custom getter. A custom getter is a function with the same signature as tf.get_variable, except it has an additional getter parameter. Custom getters can be passed as the `custom_getter` parameter of tf.variable_scope. Then, tf.get_variable ...
def IaWP(YKHO, gJdh, mWFP, ROpF=None, yDqo=H0NM, *qIxc, **B2fa): if yDqo in zLAv: SRYB = gJdh(mWFP, ROpF, ZylS.float32, *qIxc, **B2fa) return ZylS.cast(SRYB, dtype=yDqo, name=mWFP + '_cast') else: return gJdh(mWFP, ROpF, yDqo, *qIxc, **B2fa)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hcmx(gJdh, mWFP, ROpF=None, yDqo=None, MuED=None, R5ZC=None, XJsN=True, *qIxc, **B2fa):\n rS67 = ZylS.float32 if XJsN else yDqo\n Es0b = gJdh(mWFP, ROpF, *qIxc, dtype=rS67, initializer=MuED, regularizer=R5ZC, trainable=XJsN, **B2fa)\n if XJsN and yDqo != ZylS.float32:\n Es0b = ZylS.cast(Es0b, y...
[ "0.77795357", "0.67645115", "0.6704484", "0.61997455", "0.60959065", "0.5969402", "0.5952168", "0.59272265", "0.5917217", "0.5720231", "0.5573573", "0.5573573", "0.5479989", "0.5459602", "0.54420453", "0.5352729", "0.5308366", "0.5292199", "0.52698094", "0.5214639", "0.519207...
0.67778546
2
Get a list of all argument parsers for different model architectures.
def fytZ(): return [aWFH.get_parser(K0do) for K0do in aWFH.optimizers]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rx9B(YKHO):\n return tuple([getattr(YKHO, '_{}'.format(YRbF)) for YRbF in YKHO.parsers_available])", "def ZZth(YKHO, *qIxc):\n print('==== Available parsing modules: ====\\n')\n for wvEv in sorted(YKHO.parse_modules):\n print(YKHO.parse_modules[wvEv].name.ljust(16) + ': ' + YKHO.parse_modules...
[ "0.64710873", "0.63360703", "0.61863166", "0.5759768", "0.5703689", "0.5690336", "0.5671616", "0.5653616", "0.56281376", "0.55892754", "0.5567633", "0.55602854", "0.5538482", "0.55301464", "0.5435778", "0.5428988", "0.5418918", "0.5381313", "0.5334482", "0.5308304", "0.529495...
0.6872784
0
Test Case if ISBN is more than 2018
def Iw6c(): P4t4 = x5x0.QApplication(HwRy.argv) UzPC = iHv3.connect('bookstore.db') InVr = x5x0.QMainWindow() GD_A = SeLF() GD_A.strID = '201732' GD_A.strName = 'sfsdfsdff' GD_A.strAuthor = 'sfsdssdfsdff' GD_A.setupUi(InVr) InVr.show() assert GD_A.Check() == True, 'Passed' Uz...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def F2Cg(YKHO):\n with YKHO.client:\n E4mv = {'title': 'Hello Books', 'isbn': '56987451'}\n JGsQ = YKHO.login_test_user()\n eOtH = JGsQ['auth_token']\n Ylbp = YKHO.client.post(f'{GWP3}', headers=dict(Authorization=f'Bearer {eOtH}'), content_type='application/json', data=qQXR.dumps(E4...
[ "0.6891028", "0.6798891", "0.66314703", "0.6473494", "0.6465209", "0.6461685", "0.6426222", "0.6417605", "0.6371115", "0.6362519", "0.6298861", "0.627626", "0.62513804", "0.6208889", "0.62032527", "0.61627626", "0.6139083", "0.60967565", "0.60695046", "0.60666174", "0.5915922...
0.0
-1
Test Case if ISBN is more than 2018 and ISBN is alphanumeric
def mnm2(): P4t4 = x5x0.QApplication(HwRy.argv) UzPC = iHv3.connect('bookstore.db') InVr = x5x0.QMainWindow() GD_A = SeLF() GD_A.strID = '2013323-3237' GD_A.strName = 'sfsdfsdff' GD_A.strAuthor = 'sfsdssdfsdff' GD_A.setupUi(InVr) InVr.show() assert GD_A.Check() == True, 'Passed' ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _9xF(Wxnj):\n if not (isinstance(Wxnj, str) and len(Wxnj) == 10 and Wxnj[:9].isdigit()):\n return False\n return bKao(Wxnj) == Wxnj[-1]", "def nCYJ(Z5r0):\n return len(Z5r0) == 10 and (Z5r0[-1] == 'X' or Z5r0[-1].isdigit()) and all((Ko6S.isdigit() for Ko6S in Z5r0[:-1]))", "def qutR(KCHu):\...
[ "0.7430671", "0.729918", "0.7227162", "0.71988314", "0.71624607", "0.7123375", "0.7045668", "0.69561946", "0.6954606", "0.694155", "0.6940872", "0.68667877", "0.6756499", "0.6752202", "0.66526", "0.6638115", "0.6578213", "0.65466887", "0.65393585", "0.65143967", "0.64424735",...
0.0
-1
Returns a list with unique elements. Element order is preserved.
def Yr2f(Q6uT): PwWw = set() return [YRbF for YRbF in Q6uT if YRbF not in PwWw and (not PwWw.add(YRbF))]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ONhe(BDwY):\n return list(set(BDwY))", "def kcwm(WKvO):\n return list(set(WKvO))", "def kcwm(YKHO) -> 'List':\n return x1iM(sorted(set(YKHO), key=YKHO.index))", "def a4ZY(UqER):\n bypm = set()\n U5bT = []\n for tTpl in UqER:\n if tTpl not in bypm:\n U5bT.append(tTpl)\n...
[ "0.82260644", "0.81040245", "0.80342937", "0.792012", "0.78931963", "0.78393555", "0.7805021", "0.75787956", "0.75278294", "0.74820083", "0.74297607", "0.72862655", "0.71654284", "0.7155846", "0.71120095", "0.710231", "0.7087201", "0.7076306", "0.70703614", "0.70582753", "0.7...
0.6857055
35
Return a string representation of this queue
def wHJl(YKHO): return 'Queue({})'.format(YKHO.length())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zAg0(YKHO):\n JcNi = [str(YRbF) for YRbF in YKHO._data]\n return 'QUEUE { ' + ', '.join(JcNi) + ' }'", "def zAg0(YKHO):\n JcNi = [str(YRbF) for YRbF in YKHO._data]\n return 'QUEUE { ' + ', '.join(JcNi) + ' }'", "def wHJl(YKHO):\n return str(YKHO._queue_items)", "def zAg0(YKHO) -> str:\n ...
[ "0.86297184", "0.86297184", "0.84890676", "0.84257925", "0.83468837", "0.82116026", "0.81604195", "0.79041636", "0.75660646", "0.7252216", "0.71169853", "0.71070284", "0.705042", "0.70462453", "0.70307136", "0.7029424", "0.692038", "0.6887717", "0.6789598", "0.6788302", "0.67...
0.8117447
7
Return True if this queue is empty, or False otherwise
def FBfn(YKHO): return YKHO.list.length == 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lsmZ(YKHO) -> bool:\n if YKHO.queue.empty():\n return True\n else:\n return False", "def FBfn(YKHO):\n return YKHO.queue == []", "def FBfn(YKHO):\n return len(YKHO.__queue) > 0", "def FBfn(YKHO):\n return len(YKHO.queue) == 0", "def FBfn(YKHO):\n return len(YKHO.queue) =...
[ "0.92782605", "0.9264186", "0.9250871", "0.9232645", "0.9232645", "0.9211169", "0.9152629", "0.91398877", "0.9106354", "0.90970117", "0.9096138", "0.90830916", "0.9038943", "0.9038943", "0.89983535", "0.8991305", "0.8975037", "0.89432716", "0.8929816", "0.8884646", "0.8839164...
0.0
-1
Return the number of items in this queue
def u54L(YKHO): return YKHO.list.length
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zNig(YKHO):\n return len(YKHO._queue_items)", "def zNig(YKHO):\n return len(YKHO.queue)", "def zNig(YKHO):\n return len(YKHO.queue)", "def zNig(YKHO):\n return len(YKHO.queue)", "def zNig(YKHO):\n return len(YKHO.queue)", "def zNig(YKHO):\n return len(YKHO.queue)", "def zNig(YKHO)...
[ "0.86521995", "0.84490716", "0.84490716", "0.84321076", "0.84321076", "0.84321076", "0.84321076", "0.84284943", "0.8319467", "0.81469434", "0.80077547", "0.79834735", "0.7970964", "0.7948229", "0.79026383", "0.7889641", "0.7852448", "0.7847581", "0.7840703", "0.78324467", "0....
0.0
-1
Return the next item in this queue without removing it, or None if this queue is empty
def T7C_(YKHO): return YKHO.list.head.data
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def T7C_(YKHO):\n if not YKHO.empty():\n return YKHO.queue[-1]\n return None", "def T7C_(YKHO):\n if YKHO.size():\n return YKHO.queue[0]\n else:\n return None", "def BEuN(YKHO):\n if not YKHO.queue:\n return None\n return YKHO.queue.popleft()", "def next(YKHO):\n...
[ "0.79958284", "0.7948415", "0.7715121", "0.7696945", "0.76208586", "0.7589365", "0.75859004", "0.7576772", "0.753899", "0.7526722", "0.74943453", "0.74383914", "0.74362516", "0.7435367", "0.7385404", "0.7370799", "0.7362173", "0.73245704", "0.73212403", "0.73144525", "0.72964...
0.0
-1
Dummy Player for testing purpose
def XeOP(YKHO, fkYZ: int, niv5: dict): wU_O = YKHO._getCurrentStack(niv5) if YKHO.position < 2: return ('CALL', fkYZ) elif fkYZ < wU_O: return ('CALL', fkYZ) else: YKHO.endGame() return ('FOLD', 0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TEzy(YKHO):\n pass", "def OOz7():\n pass", "def FIMM(YKHO, oyg0):\n YKHO.player = oyg0", "def FIMM(YKHO, oyg0):\n YKHO.player = oyg0", "def FCbF(YKHO):\n YKHO.player = mVZ4()", "def Klva(YKHO):\n YKHO.assertIsInstance(YKHO.player, C7MP.Ship)\n YKHO.assertEqual(YKHO.player.positio...
[ "0.800795", "0.77485996", "0.73499453", "0.73354167", "0.7334626", "0.7004354", "0.6837552", "0.68149734", "0.6814686", "0.6708004", "0.6582129", "0.65373075", "0.644043", "0.64336175", "0.6403548", "0.63949955", "0.6382478", "0.63695663", "0.636351", "0.63284665", "0.6294344...
0.0
-1
Adds the given file extension to all filenames.
def I70E(T442, XuRw, S65n=False): if S65n: for tk5Y, AQSv, RRlC in Hy7s.walk(T442): for Ux0P in RRlC: xqKM = Hy7s.path.join(tk5Y, Ux0P) Hy7s.rename(xqKM, xqKM + XuRw) else: RRlC = Hy7s.listdir(T442) for Ux0P in RRlC: Hy7s.rename(T44...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def MXX1(gIsw: str, Fst3: str) -> str:\n IznC = gIsw.strip()\n yGbY = -1 * (len(Fst3) + 1)\n if IznC[yGbY:] != f'.{Fst3}':\n IznC = IznC + f'.{Fst3}'\n return IznC", "def zYHE(YKHO, YBcr):\n YKHO.files[YBcr] = pufL(YKHO.path, YKHO.name + YBcr)", "def p77r(uRP3, YBcr):\n Uqbu = uRP3.spl...
[ "0.7885789", "0.740145", "0.7129056", "0.7041572", "0.6988067", "0.6948824", "0.6839631", "0.68263507", "0.6707717", "0.66177124", "0.66167444", "0.6549159", "0.65384877", "0.6509691", "0.6457053", "0.6391767", "0.63874304", "0.6323345", "0.6311844", "0.6286336", "0.6255184",...
0.72599715
2
Find whether a number x is even or odd.
def sTzf(WKvO=0): if WKvO % 2 == 0: return '%d is Even!' % WKvO return '%d is Odd!' % WKvO
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kYZq(WKvO):\n return WKvO % 2 != 0", "def kYZq(YKHO, WKvO):\n return WKvO % 2", "def kYZq(WKvO):\n if WKvO % 2 == 1:\n return True\n else:\n return False", "def ubP8(YKHO, WKvO):\n return WKvO % 2 == 0", "def kYZq(FGW3):\n return FGW3 % 2 != 0", "def ubP8(WKvO):\n r...
[ "0.86570466", "0.8609981", "0.85489213", "0.8304667", "0.8270656", "0.8255687", "0.8225956", "0.82019943", "0.8166767", "0.8161098", "0.80527854", "0.8014786", "0.7964804", "0.7961647", "0.79579276", "0.7927341", "0.7905143", "0.7856013", "0.783515", "0.7824759", "0.7797989",...
0.75661665
28
Find whether an integer is prime.
def T1qg(WKvO=70): for YRbF in range(2, WKvO): if WKvO % YRbF == 0: print('%d is not a prime: %d is a divisor' % (WKvO, YRbF)) return False print('%d is a prime!' % WKvO) return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FBNJ(exwG):\n return T1qg(exwG)", "def FBNJ(exwG):\n return T1qg(exwG)", "def GiUy(f813):\n I1mm = 0\n for hkxX in range(2, f813 // 2):\n if f813 % hkxX == 0:\n I1mm += 1\n if I1mm == 1:\n return True\n else:\n return False", "def T1qg(exwG):\n return ...
[ "0.7807052", "0.7804872", "0.77613205", "0.77219856", "0.7666641", "0.7658232", "0.7622274", "0.7619329", "0.760555", "0.7604763", "0.7597515", "0.7545018", "0.75210387", "0.7519876", "0.7502933", "0.74986833", "0.7483188", "0.7480578", "0.74703336", "0.7452868", "0.74477863"...
0.0
-1
Input text should have one sentence per line, where each word and every symbol is separated from the following by a space. No token should be included, as they are automatically integrated during tokenization.
def C6M2(YKHO, pmON, rQow, WU5D): YoQM = [] YKHO.model.eval() oHE7 = wr3U(pmON, rQow, path_like=True, train=False) if YKHO.generation == 'bucket': for zFiD in oHE7: zFiD = zFiD.strip() zFiD = '[CLS] ' + zFiD + ' [SEP]' PuKl = YKHO.tokenizer.wordpiece_tokenizer...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def wr3U(YKHO, l5Ny):\n l5Ny = eIAz(l5Ny)\n pRF9 = []\n for eOtH in R_0c(l5Ny):\n gLiZ = list(eOtH)\n if len(gLiZ) > YKHO.max_input_chars_per_word:\n pRF9.append(YKHO.unk_token)\n continue\n fyuJ = False\n yKcO = 0\n _XgW = []\n while yKcO < ...
[ "0.744548", "0.737341", "0.72835636", "0.7197461", "0.71374947", "0.713586", "0.7081092", "0.7068462", "0.7036946", "0.69594884", "0.6953292", "0.6952878", "0.69524664", "0.6938421", "0.6905543", "0.6895613", "0.6888006", "0.6871931", "0.68489134", "0.6838066", "0.6835906", ...
0.0
-1
Constructor. Any message fields that are implicitly/explicitly set to None will be assigned a default value. The recommend use is keyword arguments as this is more robust to future message changes. You cannot mix inorder arguments and keyword arguments.
def FIMM(YKHO, *qIxc, **c_sp): if qIxc or c_sp: super(rvtX, YKHO).__init__(*qIxc, **c_sp) if YKHO.id is None: YKHO.id = '' if YKHO.line is None: YKHO.line = [] if YKHO.circle is None: YKHO.circle = [] else: YKHO.id = '' YKHO.lin...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **c_sp):\n if qIxc or c_sp:\n super(JwGr, YKHO).__init__(*qIxc, **c_sp)\n if YKHO.header is None:\n YKHO.header = kKAJ.msg.Header()\n if YKHO.cmd is None:\n YKHO.cmd = ''\n if YKHO.cat is None:\n YKHO.cat = ''\n else:\n ...
[ "0.77949196", "0.77207184", "0.77207184", "0.7687274", "0.7626665", "0.75640404", "0.7440775", "0.7417612", "0.7351781", "0.7308563", "0.7280241", "0.7237561", "0.7227551", "0.72248346", "0.72248346", "0.7218737", "0.721217", "0.721217", "0.721217", "0.721217", "0.721217", ...
0.65939045
88
Get IMU quaternion data.
def x5qz(YKHO, tO9_): Cwt5, UqYS, KMvS = dCmC.get_euler_angle_from_quat(tO9_.quaternion.w, tO9_.quaternion.x, tO9_.quaternion.y, tO9_.quaternion.z) YKHO._actual_euler['alpha'], YKHO._actual_euler['beta'], YKHO._actual_euler['gamma'] = (Cwt5, UqYS, KMvS)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Omrx(YKHO, NKcE: str='chiaverini', **YSA3) -> oyIN.ndarray:\n vexM = oyIN.array([1.0, 0.0, 0.0, 0.0])\n if NKcE.lower() == 'hughes':\n vexM = TnG6(YKHO.A)\n if NKcE.lower() == 'chiaverini':\n vexM = O8qj(YKHO.A)\n if NKcE.lower() == 'shepperd':\n vexM = eZYo(YKHO.A)\n if NKc...
[ "0.6497413", "0.6465483", "0.64419043", "0.63285935", "0.6241631", "0.62351096", "0.6226867", "0.6223118", "0.60809404", "0.6079437", "0.607731", "0.6055358", "0.60515714", "0.60381126", "0.602743", "0.6004139", "0.5990623", "0.5957624", "0.5928451", "0.5921927", "0.590923", ...
0.73813695
0
Compute the forward movement error's magnitude and direction.
def RXcM(YKHO): if YKHO._actual_euler['gamma'] >= 0 and YKHO._target_euler['gamma'] >= 0 or (YKHO._actual_euler['gamma'] < 0 and YKHO._target_euler['gamma'] < 0): P1dF = epAf.fabs(YKHO._target_euler['gamma'] - YKHO._actual_euler['gamma']) if YKHO._target_euler['gamma'] > YKHO._actual_euler['gamma']:...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def qixE(YKHO):\n YKHO.e_of_e = YKHO.azimuth_error - YKHO.altitude_error\n return YKHO.e_of_e", "def i70d(YKHO):\n p8Jz = YKHO._vehicle.get_velocity()\n SZFh = YKHO._vehicle.get_transform()\n ca7o = oyIN.array([p8Jz.x, p8Jz.y, p8Jz.z])\n H2HG = oyIN.deg2rad(SZFh.rotation.pitch)\n xTkQ = oyIN...
[ "0.65332645", "0.63869256", "0.62648004", "0.6214192", "0.61566556", "0.61517024", "0.5919428", "0.59182143", "0.5898777", "0.58685994", "0.5810975", "0.57779574", "0.5679071", "0.56699055", "0.5627375", "0.56236976", "0.56115025", "0.55813056", "0.55461293", "0.55414844", "0...
0.7499794
0
Lightning DataModule function that will be used to load/download data, build inputs with padding and to store everything as TensorDatasets.
def EcIH(YKHO): nPrm = YKHO._get_dataset(YKHO.hparams.dataset_path) lfRF = nPrm['label_encoder'] del nPrm['label_encoder'] k8wH.secho('Building inputs and labels.', fg='yellow') gMbG = {'train': oRi_(list), 'valid': oRi_(list), 'test': oRi_(list)} for j3aw, __n6 in nPrm.items(): for mvm2...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JyoU(YKHO):\n ppBc = YKHO.data.get_train_data()\n if YKHO.args.use_dev:\n ppBc, sujI = YKHO.data.split_data(ppBc)\n Zwka = YKHO.data.get_test_data()\n EPL3 = YKHO.loader.build_dataset(ppBc, YKHO.args.train_max_seq_len)\n Pa1c = YKHO.loader.build_dataloader(EPL3, 'train')\n qby3 = YKHO....
[ "0.6873716", "0.6639242", "0.6520996", "0.65046436", "0.6444532", "0.6399065", "0.63780624", "0.6370381", "0.6295697", "0.6276135", "0.6267019", "0.6262347", "0.62592757", "0.6250741", "0.62428886", "0.6235736", "0.623328", "0.62176967", "0.6200053", "0.61929667", "0.617903",...
0.6330145
8
Gets an Item or an Asset count. If an Asset is supplied and the Item property exists on the Asset, returns the Asset's value. Otherwise returns the Item's value
def DUZc(YKHO, IbHI=None): if IbHI is None or 'pc:count' not in IbHI.properties: return YKHO.item.properties.get('pc:count') else: return IbHI.properties.get('pc:count')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UHFx(YKHO, ZfUD):\n if ZfUD in YKHO:\n return YKHO[ZfUD]\n else:\n return 0", "def rvxE(YKHO, u8b7):\n if not isinstance(u8b7, str):\n u8b7 = u8b7.value\n if u8b7 not in YKHO.__inventory__:\n return 0\n return len(YKHO.__inventory__[u8b7])", "def E8YN(ht7m, trnf) ...
[ "0.631754", "0.5968896", "0.58651865", "0.575089", "0.5655662", "0.5640428", "0.5639301", "0.5538555", "0.5538213", "0.55373865", "0.5444125", "0.5389861", "0.5355822", "0.5355822", "0.5322278", "0.53084165", "0.5305974", "0.52934504", "0.5244712", "0.52349585", "0.5234713", ...
0.65153563
0
Set an Item or an Asset type. If an Asset is supplied, sets the property on the Asset. Otherwise sets the Item's value.
def TG_K(YKHO, type, IbHI=None): YKHO._set_property('pc:type', type, IbHI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set(YKHO, ZfUD, **o8Kj):\n o8Kj[YKHO.type] = ZfUD\n YKHO.graph._setattrs(YKHO.parent.handle, **o8Kj)", "def r_KH(YKHO, ZfUD):\n YKHO._item = ZfUD", "def ydiX(YKHO, ZfUD):\n YKHO.item = ZfUD", "def ydiX(YKHO, ZfUD):\n YKHO.item = ZfUD", "def set(YKHO, ZfUD, BWXx):\n raise NotImplemente...
[ "0.6979795", "0.6473676", "0.6391404", "0.6391404", "0.63342154", "0.62450093", "0.6146867", "0.598644", "0.57871044", "0.57216907", "0.5686747", "0.5636702", "0.5589119", "0.55816865", "0.5494609", "0.54538804", "0.535442", "0.5332314", "0.5255934", "0.5238573", "0.5226765",...
0.6126265
7
Gets an Item or an Asset encoding. If an Asset is supplied and the Item property exists on the Asset, returns the Asset's value. Otherwise returns the Item's value
def aG9_(YKHO, IbHI=None): if IbHI is None or 'pc:encoding' not in IbHI.properties: return YKHO.item.properties.get('pc:encoding') else: return IbHI.properties.get('pc:encoding')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kTCt(YKHO, ZfUD: Inventory) -> h8nf[diXh]:\n return YKHO.orderitem_set.filter(item=ZfUD).first()", "def J5Dc(ZfUD, mWFP):\n if mWFP in ZfUD.assets:\n return ZfUD.assets[mWFP]\n elif mWFP.replace('B', 'B0') in ZfUD.assets:\n return ZfUD.assets[mWFP.replace('B', 'B0')]\n elif mWFP.rep...
[ "0.65281934", "0.6428244", "0.6140832", "0.6115069", "0.6096708", "0.6043309", "0.59257525", "0.5913768", "0.5816586", "0.58123714", "0.5811142", "0.5811142", "0.5794498", "0.57623315", "0.573949", "0.5733423", "0.5727326", "0.57111824", "0.5692701", "0.5674517", "0.567443", ...
0.5691916
19
Gets an Item or an Asset projection geometry. If an Asset is supplied and the Item property exists on the Asset, returns the Asset's value. Otherwise returns the Item's value
def O5ZV(YKHO, IbHI=None): if IbHI is None or 'pc:schemas' not in IbHI.properties: JIS1 = YKHO.item.properties.get('pc:schemas') return [N34u(KCHu) for KCHu in JIS1] else: return [N34u.create(KCHu) for KCHu in IbHI.properties.get('pc:schemas')]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kTCt(YKHO, ZfUD: Inventory) -> h8nf[diXh]:\n return YKHO.orderitem_set.filter(item=ZfUD).first()", "def NMoC(YKHO, ZfUD):\n return YKHO.graph._get(YKHO.parent.handle, **{YKHO.type: ZfUD})", "def Iov8(YKHO) -> h8nf[DumB.Item]:\n return None if YKHO.__itemRef is None else YKHO.__itemRef()", "def k...
[ "0.58524823", "0.5682184", "0.5660678", "0.55180055", "0.55180055", "0.5487199", "0.5476112", "0.54565114", "0.54291147", "0.5422782", "0.5374927", "0.5349047", "0.52836835", "0.5257133", "0.5222732", "0.5184037", "0.5168532", "0.51581115", "0.51377934", "0.5120273", "0.51082...
0.0
-1
Gets an Item or an Asset density. If an Asset is supplied and the Item property exists on the Asset, returns the Asset's value. Otherwise returns the Item's value
def MSMZ(YKHO, IbHI=None): if IbHI is None or 'pc:density' not in IbHI.properties: return YKHO.item.properties.get('pc:density') else: return IbHI.properties.get('pc:density')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kTCt(YKHO, ZfUD: Inventory) -> h8nf[diXh]:\n return YKHO.orderitem_set.filter(item=ZfUD).first()", "def J5Dc(ZfUD, mWFP):\n if mWFP in ZfUD.assets:\n return ZfUD.assets[mWFP]\n elif mWFP.replace('B', 'B0') in ZfUD.assets:\n return ZfUD.assets[mWFP.replace('B', 'B0')]\n elif mWFP.rep...
[ "0.62330085", "0.62283593", "0.60144854", "0.6013892", "0.5928274", "0.59101117", "0.588648", "0.5782146", "0.5762245", "0.5722571", "0.570541", "0.56849575", "0.5671143", "0.5641411", "0.5633211", "0.5612373", "0.5592273", "0.55438894", "0.5534137", "0.5533826", "0.5533826",...
0.6706623
0
Gets an Item or an Asset centroid. If an Asset is supplied and the Item property exists on the Asset, returns the Asset's value. Otherwise returns the Item's value
def XsFb(YKHO, IbHI=None): if IbHI is None or 'pc:statistics' not in IbHI.properties: eQSh = YKHO.item.properties.get('pc:statistics') if eQSh: return [x4WD(KCHu) for KCHu in eQSh] else: return None else: return [x4WD.create(KCHu) for KCHu in IbHI.properti...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NMoC(YKHO, ZfUD):\n return YKHO._attributes[ZfUD]", "def OP2O(YKHO, ZfUD):\n return YKHO._metadata[ZfUD]", "def NMoC(YKHO, ZfUD):\n return YKHO.graph._get(YKHO.parent.handle, **{YKHO.type: ZfUD})", "def Yiqn(DumB):\n Ghho = DumB[0].category\n ZcVd = DumB[0].oid\n pgq2 = 0\n PqhL = 0\...
[ "0.5885468", "0.5658157", "0.5630972", "0.5584024", "0.55645895", "0.5543892", "0.5482141", "0.548178", "0.5390869", "0.5349245", "0.5317511", "0.53054625", "0.53054625", "0.52887195", "0.5263388", "0.52405083", "0.5214525", "0.51991475", "0.5193334", "0.5189578", "0.517344",...
0.0
-1
Set an Item or an Asset centroid. If an Asset is supplied, sets the property on the Asset. Otherwise sets the Item's value.
def b_3Z(YKHO, Dz7Y, IbHI=None): if Dz7Y is not None: Dz7Y = [KCHu.to_dict() for KCHu in Dz7Y] YKHO._set_property('pc:statistics', Dz7Y, IbHI)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def set(YKHO, ZfUD, **o8Kj):\n o8Kj[YKHO.type] = ZfUD\n YKHO.graph._setattrs(YKHO.parent.handle, **o8Kj)", "def r_KH(YKHO, ZfUD):\n YKHO._item = ZfUD", "def set(YKHO, ZfUD, BWXx):\n raise NotImplementedError", "def riRn(YKHO, H5ew, ZfUD):\n getattr(YKHO._cpp_obj, YKHO._setter)(H5ew, ZfUD)", ...
[ "0.6098633", "0.58203405", "0.56901604", "0.5687995", "0.56144345", "0.56144345", "0.5491145", "0.53725964", "0.53577054", "0.5286343", "0.52831596", "0.5268976", "0.5209155", "0.51550984", "0.5145099", "0.50472564", "0.5047035", "0.50446934", "0.50345016", "0.50345016", "0.5...
0.0
-1