query
stringlengths
10
3.6k
document
stringlengths
19
61.4k
metadata
dict
negatives
listlengths
0
101
negative_scores
listlengths
0
101
document_score
stringlengths
3
10
document_rank
stringclasses
102 values
Return the indices for the lowertriangle of an (n,n) array. See tril_indices() for full details.
def ESKN(ezWE, G1Hx=0): if not ezWE.ndim == 2 and ezWE.shape[0] == ezWE.shape[1]: raise ValueError('input array must be 2-d and square') return bJLh(ezWE.shape[0], G1Hx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0jc(jOFs):\n for fvDH in range(jOFs):\n for rdlD in range(fvDH, jOFs):\n yield (rdlD, fvDH)", "def ESKN(ezWE, G1Hx=0):\n if not ezWE.ndim == 2 and ezWE.shape[0] == ezWE.shape[1]:\n raise ValueError('input array must be 2-d and square')\n return bJLh(ezWE.shape[0], G1Hx)", ...
[ "0.6915391", "0.67987496", "0.65410584", "0.6302033", "0.623863", "0.6140856", "0.60972863", "0.6071643", "0.60648185", "0.6039057", "0.5880452", "0.5821349", "0.5819102", "0.5784379", "0.5778272", "0.5654866", "0.56012547", "0.5582346", "0.5513181", "0.54886335", "0.5440669"...
0.67954814
2
Return the indices for the lowertriangle of an (n,n) array. See triu_indices() for full details.
def GU2Y(ezWE, G1Hx=0): if not ezWE.ndim == 2 and ezWE.shape[0] == ezWE.shape[1]: raise ValueError('input array must be 2-d and square') return os4U(ezWE.shape[0], G1Hx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0jc(jOFs):\n for fvDH in range(jOFs):\n for rdlD in range(fvDH, jOFs):\n yield (rdlD, fvDH)", "def os4U(exwG, G1Hx=0):\n return DYy4(exwG, oyIN.triu, G1Hx)", "def GU2Y(ezWE, G1Hx=0):\n if not ezWE.ndim == 2 and ezWE.shape[0] == ezWE.shape[1]:\n raise ValueError('input arr...
[ "0.6920195", "0.6518244", "0.64286083", "0.6375073", "0.6312076", "0.6288035", "0.6110235", "0.6106193", "0.6007436", "0.59465086", "0.5918727", "0.584876", "0.5715867", "0.5681119", "0.5523499", "0.54965115", "0.5461257", "0.5448224", "0.5402353", "0.5378034", "0.53777033", ...
0.63998467
3
Minmax_norm an array to [0,1] range. By default, this simply rescales the input array to [0,1]. But it has a special 'folding' mode that allows for the normalization of an array with negative and positive values by mapping the negative values to their flipped sign
def WSuX(ezWE, Tuqy='direct', wwIp=None): if Tuqy == 'direct': return hhV4(ezWE, 0, 1) else: Xvb7, fcLg = wwIp mCUX, hMQs = (ezWE.min(), ezWE.max()) XdG6, FohR = (float(Xvb7 - mCUX), float(hMQs - fcLg)) if XdG6 < 0 or FohR < 0: raise ValueError('folding edges ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WSuX(EcVT):\n return (EcVT - ZylS.reduce_min(EcVT)) / (ZylS.reduce_max(EcVT) - ZylS.reduce_min(EcVT))", "def pmQu(EcVT):\n EcVT = (EcVT - EcVT.min()) / (EcVT.max() - EcVT.min())\n return EcVT", "def gpzU(jzdc, M6b5=255):\n Z9rn = jzdc - oyIN.min(jzdc.flatten())\n Z9rn = Z9rn / oyIN.max(Z9rn)...
[ "0.7284555", "0.7233537", "0.70358807", "0.7013145", "0.6896299", "0.6878173", "0.68367726", "0.68146795", "0.680843", "0.6792714", "0.67869765", "0.6782714", "0.6733006", "0.6628921", "0.6627763", "0.6594137", "0.6551671", "0.6543267", "0.65072", "0.64708847", "0.6451225", ...
0.76883554
0
Gets or sets the LCID of the default working language.
def l7Eu(YKHO): return YKHO.properties.get('defaultLanguageTag', None)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def P0Rq(YKHO):\n _AKB = YKHO.getFolderWhenPortalFactory()\n if hasattr(_AKB, 'getRawLanguage') and _AKB.getRawLanguage():\n return _AKB.getRawLanguage()\n Wt9E = OZpC(YKHO, 'portal_languages', None)\n if Wt9E is not None:\n return Wt9E.getDefaultLanguage()\n return GPtr.LANGUAGE_DEFAU...
[ "0.67252374", "0.67132485", "0.6583152", "0.65031195", "0.6388692", "0.6318578", "0.62904686", "0.62530136", "0.61738086", "0.60826886", "0.6066076", "0.5921665", "0.59073246", "0.58792377", "0.587187", "0.58673817", "0.58673817", "0.5858344", "0.5839509", "0.58070004", "0.58...
0.6382949
5
Take iteratively a list of lists (at any depth level) and replace strings with the corresponding values in the ``replacements`` dictionary, leaving other types of values (floats, ints, ...) untouched.
def A1su(nwEZ, ZxtR): if isinstance(nwEZ, str): try: return ZxtR[nwEZ] except KeyError: raise ValueError("Unknown replacement '{}'".format(nwEZ)) elif isinstance(nwEZ, iu5r): return [A1su(LihS, replacements=ZxtR) for LihS in nwEZ] else: return nwEZ
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LIH2(IKl7):\n for ZfUD in IKl7:\n if isinstance(ZfUD, exCv):\n d6pt = IKl7.index(ZfUD)\n sWfS, bKCn = QzZI(replace_value=ZfUD)\n if bKCn is True:\n IKl7[d6pt] = sWfS\n elif isinstance(ZfUD, list):\n LIH2(list_value=ZfUD)\n elif ...
[ "0.7328084", "0.65288645", "0.63042635", "0.61600924", "0.6150874", "0.6146234", "0.61287457", "0.6100591", "0.60866344", "0.59514093", "0.5926102", "0.5923358", "0.58994913", "0.5883214", "0.57942194", "0.57649446", "0.57306576", "0.57287914", "0.567047", "0.5664356", "0.566...
0.787785
0
Return True if this configuration is more promising than the other configuration. Return False, otherwise. other [Configuration] A configuration to be compared against.
def JWbp(YKHO, Elif): return YKHO._lower_bound / len(YKHO._path) < Elif._lower_bound / len(Elif._path)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QUue(YKHO, Elif):\n return hqz9(YKHO, Elif) is YKHO", "def TPjt(YKHO, Elif):\n if YKHO.assumptions >= Elif.assumptions and YKHO.guarantees <= Elif.guarantees:\n return True\n else:\n return False", "def _WdZ(YKHO, Elif: 'EvalItem') -> bool:\n return YKHO.size <= Elif.size and Elif...
[ "0.64952344", "0.6361276", "0.6331951", "0.63219094", "0.62310445", "0.6206093", "0.6198686", "0.61745304", "0.61286753", "0.6126356", "0.6107015", "0.6063182", "0.6052645", "0.6046647", "0.6046409", "0.6041691", "0.60402006", "0.6039535", "0.6031541", "0.60158926", "0.600875...
0.0
-1
================================= PolyArea(Coords) ================================= PolyArea method calculates the the area between given coordinates
def VVvR(kmiI): f0tD = 0.0 for YRbF in range(oyIN.shape(kmiI)[0] - 1): f0tD = f0tD + kmiI[YRbF, 0] * kmiI[YRbF + 1, 1] - kmiI[YRbF + 1, 0] * kmiI[YRbF, 1] f0tD = f0tD + kmiI[oyIN.shape(kmiI)[0] - 1, 0] * kmiI[0, 1] - kmiI[0, 0] * kmiI[oyIN.shape(kmiI)[0] - 1, 1] f0tD = f0tD * 0.5 return f0tD
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZc2(YKHO):\n pfB4, TWPo = ([0, 1, 1, 0, 0], [0, 0, 1, 1, 0])\n qM5L = oyIN.stack((pfB4, TWPo), axis=1)\n YKHO.assertEqual(BCdN.polyarea(x=pfB4, y=TWPo), 1.0)\n YKHO.assertEqual(BCdN.polyarea(coords=qM5L), 1.0)", "def j8fb(kmiI):\n f0tD = 0.0\n DmbE = 0.0\n for YRbF in range(oyIN.shape(k...
[ "0.7660596", "0.6941791", "0.691497", "0.69061804", "0.6866345", "0.68043923", "0.6796453", "0.66859275", "0.6653946", "0.65201116", "0.65052724", "0.6473968", "0.6422775", "0.6399194", "0.63607675", "0.63464886", "0.6317268", "0.63078225", "0.62860596", "0.6282358", "0.62781...
0.88923025
0
Whether to use L2 weight decay for `param_name`.
def yKA8(YKHO, _N6A): if not YKHO.weight_decay_rate: return False if YKHO.exclude_from_weight_decay: for Mkmy in YKHO.exclude_from_weight_decay: if ZbWC.search(Mkmy, _N6A) is not None: return False return True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yKA8(YKHO, _N6A):\n if not YKHO.weight_decay_rate:\n return False\n if YKHO.exclude_from_weight_decay:\n for Mkmy in YKHO.exclude_from_weight_decay:\n if ZbWC.search(Mkmy, _N6A) is not None:\n return False\n return True", "def yKA8(YKHO, _N6A):\n if not YKH...
[ "0.70576096", "0.70576096", "0.70576096", "0.70576096", "0.70576096", "0.70423925", "0.70372206", "0.61478865", "0.61143965", "0.60728186", "0.5874968", "0.57316977", "0.5686603", "0.5607701", "0.5540735", "0.5532297", "0.5527218", "0.5491086", "0.5461098", "0.5446388", "0.54...
0.6972458
10
Find unique elements with no sorting `np.unique` automatically sorts the elements. This function performs unique without sorting.
def ESsB(jzdc): bS0K = oyIN.unique(jzdc, return_index=True)[1] mTwa = oyIN.array(jzdc)[sorted(bS0K)] return mTwa
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kcwm(WKvO):\n try:\n jbXL = WKvO.flatten()\n if jbXL.size == 0:\n return jbXL\n jbXL.sort()\n or8S = MPiJ(([True], jbXL[1:] != jbXL[:-1]))\n return jbXL[or8S]\n except AttributeError:\n DumB = list(set(WKvO))\n DumB.sort()\n return MF4b(D...
[ "0.7478786", "0.74142015", "0.73412406", "0.7268737", "0.70536083", "0.70365417", "0.69937575", "0.6883788", "0.68330574", "0.68282515", "0.6805953", "0.679551", "0.6792309", "0.67606246", "0.6749091", "0.67360646", "0.6685073", "0.66730833", "0.6657492", "0.6640093", "0.6629...
0.799677
0
Yield successive nsized chunks from l.
def eHxA(vC9B, exwG): for YRbF in range(0, len(vC9B), exwG): yield vC9B[YRbF:YRbF + exwG]
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xJ0H(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B) + 1, exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def eHxA(YKHO, vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield vC9B[YRbF:YRbF + exwG]", "def I7IE(vC9B, exwG):\n for YRbF in range(0, len(vC9B), exwG):\n yield ...
[ "0.8038813", "0.79248375", "0.7923423", "0.7885103", "0.78773195", "0.7815877", "0.77655786", "0.77556044", "0.77441615", "0.7731815", "0.77288336", "0.772473", "0.77028215", "0.76889825", "0.76889825", "0.7664208", "0.76570904", "0.7655856", "0.7655856", "0.76458347", "0.764...
0.7448925
81
Converts 24hour to 12hour
def JeXA(ROt1): if int(ROt1) == 0: return 12 elif int(ROt1) > 12: return int(ROt1) - 12 else: return ROt1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JhJa(v1VR):\n if v1VR == 0:\n nRaM = '12am'\n elif v1VR == 12:\n nRaM = '12pm'\n elif v1VR > 12:\n nRaM = str(v1VR - 12) + 'pm'\n else:\n nRaM = str(v1VR) + 'am'\n return nRaM", "def Elw4(ITS7, VqfF):\n if VqfF.lower() == 'p' and ITS7 <= 12:\n ITS7 += 12\n...
[ "0.7625113", "0.7294379", "0.7241502", "0.71635115", "0.66807926", "0.63957155", "0.62780315", "0.6178499", "0.6173807", "0.60119456", "0.6006579", "0.59903944", "0.5978709", "0.59654665", "0.5895357", "0.58833545", "0.5771594", "0.5713515", "0.56888896", "0.5683352", "0.5646...
0.6504288
5
Returns True if the given program is currently running.
def WTIh(YPqY): HCmI = ['xdotool', 'search', '--name', '--class', '--classname', YPqY] try: Yn3K.check_output(HCmI) return True except: return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WTIh(YPqY):\n return YPqY in mVoI()", "def dSZH(YKHO, sJDd=False):\n return YKHO._dict['RobotModeData']['isProgramRunning']", "def WTIh(YKHO):\n if YKHO._process:\n return YKHO._process.poll() is None\n else:\n return False", "def WTIh(YKHO):\n TF1W = YKHO._grep_qstat('runnin...
[ "0.8601203", "0.7513488", "0.7414403", "0.73770154", "0.7352604", "0.73463315", "0.703847", "0.70161116", "0.7002891", "0.7002866", "0.70019954", "0.6966748", "0.6958656", "0.69293535", "0.68999815", "0.68864244", "0.68839884", "0.6853673", "0.681213", "0.67967826", "0.676754...
0.7487789
2
Populate the field choices from the facets returned by solr.
def _iEB(YKHO, Segv): YKHO.choices = ((wEf2, BY_x(f'<span>{UXqs}</span><span class="count">{UHFx:,}</span>')) for wEf2, (UXqs, UHFx) in Segv.items()) YKHO.widget.facet_counts = Segv
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dCzT(YKHO, E3Ky):\n for H5ew, Segv in E3Ky.items():\n if H5ew == 'type':\n Segv = {UXqs: (lJse.objects_by_label.get(UXqs, bGrB('Unknown type')), UHFx) for UXqs, UHFx in Segv.items()}\n else:\n Segv = {UXqs: (UXqs, UHFx) for UXqs, UHFx in Segv.items()}\n GJ92 = YKHO...
[ "0.80590487", "0.7063723", "0.60578656", "0.6040489", "0.5894335", "0.57969373", "0.5786153", "0.56324756", "0.56004053", "0.55998075", "0.55789626", "0.55137926", "0.54421455", "0.54349613", "0.5418743", "0.54002786", "0.53556687", "0.53157043", "0.53111494", "0.53085494", "...
0.7238788
1
Override to set choices dynamically based on form kwargs.
def FIMM(YKHO, nPrm=None, *qIxc, **B2fa): super().__init__(*qIxc, data=nPrm, **B2fa) if not nPrm or not nPrm.get('q', None): YKHO.fields['sort'].widget.choices[0] = (YKHO.SORT_CHOICES[0][0], {'label': YKHO.SORT_CHOICES[0][1], 'disabled': True})
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO, *qIxc, **B2fa):\n super(ZEyT, YKHO).__init__(*qIxc, **B2fa)\n YKHO.choices = YKHO.get_field_info_key('choices')", "def FIMM(YKHO, mrPm, *qIxc, **B2fa):\n super(fMRO, YKHO).__init__(*qIxc, **B2fa)\n d5et = [(YRbF, '%d' % YRbF) for YRbF in range(0, mrPm.count() + 1)]\n for Acvy in mrP...
[ "0.7119993", "0.6567286", "0.6486634", "0.6474941", "0.63352865", "0.6249103", "0.62429094", "0.6121085", "0.6090814", "0.6076994", "0.6058891", "0.6036008", "0.59917676", "0.5949317", "0.5949317", "0.5927481", "0.58945143", "0.5876327", "0.5872306", "0.58716255", "0.58630127...
0.0
-1
Check if any filters are active; returns true if form fields other than sort or q are set
def ECT6(YKHO): if YKHO.is_valid(): return bool({G1Hx: Ty9i for G1Hx, Ty9i in YKHO.cleaned_data.items() if G1Hx not in ['q', 'sort'] and bool(Ty9i)}) return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QB0y(YKHO) -> bool:\n return YKHO.filter_client_reference_id or YKHO.filter_mhr_number or YKHO.filter_registration_type or YKHO.filter_reg_start_date or YKHO.filter_status_type or YKHO.filter_submitting_name or YKHO.filter_username", "def qLjc(YKHO):\n return YKHO.query.has_filters()", "def rOxy(YKHO...
[ "0.7080668", "0.6836207", "0.64199954", "0.6332674", "0.62339914", "0.61433935", "0.60258555", "0.59678966", "0.59262854", "0.5903156", "0.5870578", "0.58646816", "0.58277124", "0.5797073", "0.5791555", "0.5785562", "0.57828933", "0.57690144", "0.56758165", "0.5664973", "0.56...
0.8471296
0
Set choices on field from a dictionary of facets
def dCzT(YKHO, E3Ky): for H5ew, Segv in E3Ky.items(): if H5ew == 'type': Segv = {UXqs: (lJse.objects_by_label.get(UXqs, bGrB('Unknown type')), UHFx) for UXqs, UHFx in Segv.items()} else: Segv = {UXqs: (UXqs, UHFx) for UXqs, UHFx in Segv.items()} GJ92 = YKHO.solr_facet...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def _iEB(YKHO, Segv):\n YKHO.choices = ((wEf2, BY_x(f'<span>{UXqs}</span><span class=\"count\">{UHFx:,}</span>')) for wEf2, (UXqs, UHFx) in Segv.items())\n YKHO.widget.facet_counts = Segv", "def nAcA(YKHO):\n oR0G = {'doctype': {'foo': 1, 'bar': 2, 'baz': 3}, 'has_transcription': {'true': 3, 'false': 3}...
[ "0.7637493", "0.71201366", "0.6388311", "0.60933596", "0.608541", "0.57787716", "0.5755802", "0.55631715", "0.54339904", "0.53833526", "0.53487647", "0.5343062", "0.53065604", "0.5274133", "0.5268373", "0.5259151", "0.52481985", "0.52074957", "0.5202937", "0.51360047", "0.511...
0.7996882
0
Convert search terms to a list (or a list of lists for OR searches).
def EI87(YKHO, HnhU): YKHO.search_terms, Fg_i = ([], []) for d6pt, aevO in enumerate(HnhU): if aevO == 'OR': YKHO.search_terms.append(Fg_i) Fg_i = [] else: Fg_i.append(aevO) if d6pt + 1 == len(HnhU): YKHO.search_terms.append(Fg_i)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pqix(YKHO):\n NArs = YKHO.request.QUERY_PARAMS.get('search', '')\n return NArs.replace(',', ' ').split()", "def Jdod(A0cm):\n return A0cm.split()", "def HFyz(YKHO, viB_):\n return [eLty.get_order_term() for eLty in viB_]", "def z9Ed(OXAZ):\n return h8nf(OXAZ + CcJS(kDme(GVaG(',')) + OXAZ) ...
[ "0.7051989", "0.63229024", "0.619517", "0.6166594", "0.6073278", "0.6048257", "0.6040583", "0.6035922", "0.6019714", "0.5997594", "0.59335583", "0.5927805", "0.5913225", "0.5887079", "0.5871488", "0.5871488", "0.5871488", "0.5871488", "0.5871488", "0.5871488", "0.5871488", ...
0.7518105
0
save transition(state, action, state_next, reward) on memory
def _jXH(YKHO, QTBn, XeOP, erLw, vOGg): if len(YKHO.memory) < YKHO.capacity: YKHO.memory.append(None) YKHO.memory[YKHO.index] = j7A7(QTBn, XeOP, erLw, vOGg) YKHO.index = (YKHO.index + 1) % YKHO.capacity
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lVty(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.memory.store_transition(QTBn, XeOP, vOGg, rxHc, _ins)", "def VUF1(YKHO, QTBn, XeOP, vOGg, rxHc, _ins):\n YKHO.replay_memory.append((QTBn, XeOP, vOGg, rxHc, _ins))", "def GwRw(YKHO, QTBn, XeOP, vOGg, AJEJ):\n d6pt = YKHO.memory_counter % YKHO.max_mem...
[ "0.81000483", "0.8027368", "0.78706765", "0.76570886", "0.75655365", "0.7512147", "0.7491534", "0.73119557", "0.71542925", "0.71443164", "0.71415216", "0.7053323", "0.70417786", "0.7034522", "0.7028102", "0.7010787", "0.6998984", "0.6982629", "0.6809534", "0.6782573", "0.6759...
0.6870067
19
declaring the ball bouncing sideways
def PoVS(YKHO): YKHO.dx = -YKHO.dx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def riZZ(YKHO):\n YKHO.y_dir *= -1", "def p3Lt(YKHO):\n WKvO = tuKI.randint(-250, 250)\n A2Jf = -850\n tJWT = 850\n sqlD = tuKI.randint(-350, 350)\n pBSp = -350\n if YKHO.xcor() > 300:\n YKHO.goto(WKvO, pBSp)\n YKHO.goto(A2Jf, sqlD)\n elif YKHO.xcor() < -300:\n YKHO.g...
[ "0.7574964", "0.7515203", "0.7491813", "0.74432164", "0.71614474", "0.7153035", "0.7122904", "0.71047884", "0.7007704", "0.6916456", "0.69102883", "0.6866098", "0.6783909", "0.67050475", "0.6702499", "0.66933817", "0.66898984", "0.6663798", "0.6630958", "0.6604508", "0.659512...
0.7086912
8
declaring the ball bouncing up and down
def VAu5(YKHO): YKHO.dy = -YKHO.dy
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def riZZ(YKHO):\n YKHO.y_dir *= -1", "def p3Lt(YKHO):\n WKvO = tuKI.randint(-250, 250)\n A2Jf = -850\n tJWT = 850\n sqlD = tuKI.randint(-350, 350)\n pBSp = -350\n if YKHO.xcor() > 300:\n YKHO.goto(WKvO, pBSp)\n YKHO.goto(A2Jf, sqlD)\n elif YKHO.xcor() < -300:\n YKHO.g...
[ "0.7443454", "0.7435364", "0.7231348", "0.71967846", "0.71241635", "0.70315075", "0.69760346", "0.69474584", "0.68942976", "0.6885569", "0.6880939", "0.68434185", "0.68222255", "0.6810306", "0.67980486", "0.67504054", "0.6747686", "0.66573983", "0.66539973", "0.66507787", "0....
0.63047105
45
Returns the default collector settings
def yDgW(YKHO): GPtr = super(jsUx, YKHO).get_default_config() GPtr.update({'path': 'interrupts'}) return GPtr
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yDgW(YKHO):\n GPtr = super(leyK, YKHO).get_default_config()\n GPtr.update({'enabled': 'True', 'fs': ',', 'timeout': 300})\n return GPtr", "def qimH():\n return {}", "def yDgW(YKHO):\n GPtr = super(iwOa, YKHO).get_default_config()\n GPtr.update({'url': lMln, 'path': 'dropwizard'})\n ret...
[ "0.70514023", "0.7008024", "0.69490683", "0.6713433", "0.65743333", "0.65309024", "0.6521635", "0.6515402", "0.6466526", "0.6447688", "0.641337", "0.6397818", "0.6380512", "0.63683224", "0.6357208", "0.63517016", "0.6331759", "0.63120294", "0.62353724", "0.6231899", "0.620749...
0.60192394
34
Tokenize a URL. Tokens are split by slash, hyphen, and dot. Redundant tokens are removed. The token "com" is removed from the list since it is a common TLD that should not be used for our purposes. Mostly taken from the website linked above.
def sxVV(input): xhPV = str(input).split('/') bV8N = [] for YRbF in xhPV: kuy0 = str(YRbF).split('-') for r845 in kuy0: yqbx = str(r845).split('.') bV8N += yqbx bV8N = list(set(bV8N)) if 'com' in bV8N: bV8N.remove('com') return bV8N
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def b0j5(bD7m):\n s2mk = ZbWC.split('[/-]', bD7m)\n for YRbF in s2mk:\n if YRbF.find('.') >= 0:\n hqZV = YRbF.split('.')\n if 'com' in hqZV:\n hqZV.remove('com')\n if 'www' in hqZV:\n hqZV.remove('www')\n s2mk += hqZV\n retur...
[ "0.82837254", "0.6683614", "0.65632266", "0.65571535", "0.6469438", "0.63540983", "0.632796", "0.6115311", "0.610945", "0.6071607", "0.60541517", "0.6024393", "0.602004", "0.6001426", "0.5957862", "0.59482783", "0.59318495", "0.5814034", "0.5753137", "0.57478493", "0.5671944"...
0.6450165
5
If this request connected to the database, close the connection.
def ssTe(tTpl=None): NCls = Oa1e.pop('db', None) if NCls is not None: NCls.close()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ngVb(YKHO):\n if YKHO.cursor is None and YKHO.database is None:\n return\n YKHO.cursor.close()\n YKHO.database.close()", "def ngVb(YKHO):\n if YKHO.conn:\n YKHO.conn.close()", "def ngVb(YKHO):\n if YKHO.connection is not None:\n YKHO.connection.close()", "def DDI8(YKHO...
[ "0.791105", "0.78456587", "0.7779806", "0.7770918", "0.77147144", "0.7697585", "0.7648415", "0.76399857", "0.7614764", "0.76102906", "0.76046777", "0.7591181", "0.7585446", "0.7566851", "0.75368667", "0.7525689", "0.7525689", "0.7523575", "0.75219256", "0.75145125", "0.751207...
0.0
-1
Unload a config entry.
async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool: if bTKY.data.get(vLVn): tLl1 = BZ64.async_get(ajET) tLl1.async_unregister_callback(bTKY.data[vLVn]) uIeR = ajET.data[Sugg][zBk5] if bTKY.entry_id not in uIeR: return True FZeL = uIeR[bTKY.entry_id] ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def async_unload_entry(ajET, PhL6):\n yT1k = await ajET.config_entries.async_forward_entry_unload(PhL6, 'climate')\n return yT1k", "async def async_unload_entry(ajET: HomeAssistant, bTKY: ConfigEntry) -> bool:\n ajET.data.pop(Sugg)\n return True", "async def async_unload_entry(ajET: HomeAssis...
[ "0.697284", "0.6888074", "0.6779855", "0.6747459", "0.6689002", "0.6657831", "0.66162205", "0.6603433", "0.65925974", "0.65595686", "0.65411645", "0.6507643", "0.6507643", "0.6507643", "0.6507643", "0.64977276", "0.64931643", "0.6486601", "0.6486601", "0.6486601", "0.6486601"...
0.5683943
87
Return the name of the device if any.
def mWFP(YKHO): return YKHO._name
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')", "def yxaP(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'device_name')", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def mWFP(YKHO):\n return YKHO._device.name", "def ueYb(Y...
[ "0.89734465", "0.89734465", "0.8584627", "0.8584627", "0.8584627", "0.8502048", "0.84944665", "0.84194607", "0.83955586", "0.83955586", "0.8379756", "0.83165", "0.8306566", "0.8161454", "0.81564134", "0.8090303", "0.8087526", "0.8073198", "0.8006941", "0.7999654", "0.79544145...
0.0
-1
Return configured/autodetected device model.
def C3ST(YKHO): return YKHO._bulb_device.model or YKHO.capabilities.get('model')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Lgha(Emd4, begE):\n return None", "def C3ST(YKHO):\n return YKHO.device.settings['device']['type']", "def C3ST(YKHO):\n return YKHO.device.settings['device']['type']", "def C3ST(YKHO):\n return YKHO._device.device_data[YKHO._uuid]['model']", "def Vua_(YKHO):\n AKPZ = str(YKHO.ui.comboBox...
[ "0.7814992", "0.7760358", "0.7760358", "0.7719326", "0.76947623", "0.75276107", "0.745283", "0.73386544", "0.72140396", "0.71829504", "0.7153023", "0.7002003", "0.6883547", "0.6857624", "0.6803161", "0.6788081", "0.6788081", "0.677621", "0.67729807", "0.6772032", "0.67400897"...
0.7694132
5
Return the firmware version.
def w5lf(YKHO): return YKHO.capabilities.get('fw_ver')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def uCIf(YKHO):\n return YKHO._get_system_status()['firmware']", "def uCIf(YKHO):\n return YKHO.data.get('fw_ver')", "def uCIf(YKHO):\n return YKHO._read(kw_2)", "def uCIf(YKHO) -> str:\n return YKHO._firmware_version", "def uCIf(YKHO):\n LaVg = (gk2W.c_char * YKHO.MAX_BUF_SIZE)()\n YKHO....
[ "0.91053015", "0.90760416", "0.88984925", "0.87939864", "0.85300636", "0.8452078", "0.8353373", "0.8342278", "0.82618773", "0.8160373", "0.8121713", "0.80289775", "0.785214", "0.7839132", "0.78162473", "0.779018", "0.7787568", "0.7752623", "0.7739528", "0.77232605", "0.764563...
0.82181937
9
Get state of a run.
def x6dN(hbFX, **B2fa): iXC1 = vBgA(hbFX) IVhL(iXC1, B2fa['token_info']) CppO = oSCe() QTBn = CppO.State(NjWn.ID(id=hbFX)) return gnPz.deserialize_protobuf(QTBn)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ja6o(YKHO, ByBU):\n raise NotImplementedError()", "def nMbt(YKHO):\n if not YKHO._run_state:\n QTBn = YKHO.lookup_enum(['State', 'state'])\n if not QTBn:\n YKHO._run_state = vUxq\n else:\n YKHO._run_state = QTBn\n return YKHO._run_state", "async def read_...
[ "0.8303289", "0.7580644", "0.72310287", "0.7101051", "0.70998746", "0.70603585", "0.6967478", "0.6943568", "0.6943568", "0.69122666", "0.69095355", "0.6900038", "0.67927146", "0.67927146", "0.67927146", "0.67927146", "0.67927146", "0.67927146", "0.67927146", "0.67927146", "0....
0.70548785
6
Encode float x between 1 and 1 as two bytes.
def kLcZ(WKvO): YRbF = int(16384 * WKvO) return lndC('h').pack(YRbF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VmgT(WKvO):\n assert type(WKvO) is float\n dVuD = float.hex(WKvO)\n RaZj = tnwh.match(dVuD)\n assert RaZj\n KCHu = RaZj.group('sign')\n r8hN = RaZj.group('mantissa')\n nESp = RaZj.group('signexp')\n tTpl = RaZj.group('exp')\n iEeM = '['\n if KCHu:\n iEeM += KCHu\n if int...
[ "0.6785549", "0.6759016", "0.6680987", "0.66505665", "0.662883", "0.64889437", "0.63726604", "0.630351", "0.6209765", "0.62045646", "0.6081865", "0.60710794", "0.6036422", "0.5979504", "0.5974094", "0.59223753", "0.59071773", "0.5883423", "0.5873075", "0.5860104", "0.58443576...
0.6047133
12
This implements the transition rule for `DiscreteOperator`s that are implemented in Numba, relying on the `_get_conn_flattened_closure` hack to make it work in numba.
def OZkM(eD8c, RFg8, fwgd, SGPK, QTBn, H5ew, ihqD): zWej = eD8c.operator._get_conn_flattened_closure() qh77 = eD8c.operator._n_conn_from_sections @XRyX((yOcR.core.ShapedArray(ihqD.shape, ihqD.dtype), yOcR.core.ShapedArray((ihqD.shape[0],), ihqD.dtype))) def caoy(qIxc): LYRO, B0xU, Ty9i, wXnH = ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def ZEzT():\n ROpF = (4, 5)\n jzdc = Zr0g.CudaNdarray(e89i._asarray(XTiz.random.rand(*ROpF), dtype='float32'))\n jzdc = e89i._asarray(XTiz.random.rand(*ROpF), dtype='float32')\n pHXX = R_ZN.shared_constructor(jzdc, 'a')\n MgfK = pHXX.dimshuffle('x', 'x', 0, 1)\n Fg_i = R_ZN.CudaNdarrayType((True,...
[ "0.51484096", "0.51231897", "0.51228565", "0.51168275", "0.51148343", "0.5103216", "0.5087262", "0.50657254", "0.5040118", "0.5037648", "0.503456", "0.49885952", "0.49673176", "0.49512547", "0.49469128", "0.49255267", "0.49127", "0.49111798", "0.4894093", "0.4880861", "0.4880...
0.5040553
8
This method returns an C{L{Association }} object from storage that matches the server URL and, if specified, handle. It returns C{None} if no such association is found or if the matching association is expired. If no handle is specified, the store may return any association which matches the server URL. If multiple ass...
def kkPC(YKHO, QaO6, nVrR=None): xDcj = FYrf.Association.all().filter('url', QaO6) if nVrR: xDcj.filter('handle', nVrR) dixj = xDcj.fetch(1) if len(dixj) > 0: aq_w = ppjr.deserialize(dixj[0].association) if aq_w.getExpiresIn() > 0: return aq_w return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def kkPC(YKHO, QaO6, nVrR=None):\n xDcj = EVcG.Query('Association', {'url =': QaO6})\n if nVrR:\n xDcj['handle ='] = nVrR\n dixj = xDcj.Get(1)\n if dixj:\n jE7E = dSu_.deserialize(dixj[0]['association'])\n if jE7E.getExpiresIn() > 0:\n return jE7E\n return None", "d...
[ "0.8252874", "0.7968647", "0.64924496", "0.56788737", "0.5608735", "0.54203457", "0.5216578", "0.5071828", "0.5055335", "0.5009243", "0.47736675", "0.47469217", "0.46448871", "0.46135944", "0.455419", "0.44928598", "0.4466715", "0.4424121", "0.4370101", "0.43319282", "0.43189...
0.82745373
0
Try to read JSON in from a given filename in a predefined folder
def KxAT(gIsw: str) -> h8nf[cuzp]: RsFk = Hy7s.path.join(PjxR, gIsw) try: with open(RsFk, 'r') as LwUv: return qQXR.load(LwUv) except IOError: RKD7.notice(f'Could not read JSON from {RsFk}') return None
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def lc9H(Ux0P, xtX7):\n with open(Hy7s.path.join(xtX7, Ux0P), 'r') as eHNT:\n return qQXR.load(eHNT)", "def Ueki(YKHO, VqRE, pGQh=None):\n try:\n with open(VqRE) as U50w:\n try:\n YKHO.json_dict = qQXR.load(U50w)\n YKHO.filepath = VqRE\n ...
[ "0.78811336", "0.7738723", "0.75594205", "0.7472893", "0.73200166", "0.7311021", "0.72802764", "0.72781163", "0.72756505", "0.7247823", "0.7241469", "0.7240698", "0.7236071", "0.72337574", "0.722172", "0.72010195", "0.71961516", "0.7191366", "0.71849084", "0.7180382", "0.7170...
0.0
-1
Write some JSON to disk in a predefined folder
def WLNl(V8Mb: Dict, gIsw: str) -> None: RsFk = Hy7s.path.join(PjxR, gIsw) _31J(RsFk) with open(RsFk, 'w') as _RR0: qQXR.dump(V8Mb, _RR0, ensure_ascii=False)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def f0cv(nPrm, pmON, **B2fa):\n with open(VaVH(pmON), 'wt') as nUeQ:\n hpFW(nPrm, nUeQ, **B2fa)", "def JrK_(WjUO, oDPw):\n with open(WjUO, 'w') as nUeQ:\n qQXR.dump(oDPw, nUeQ, default=vhLX, indent=4)\n nUeQ.close()", "def nVOF(YKHO, Ux0P, nPrm):\n GSwS = Hy7s.path.join(YKHO._temp...
[ "0.74848944", "0.7479136", "0.74114686", "0.7384584", "0.73417526", "0.7338813", "0.7332835", "0.7332598", "0.7312433", "0.7296761", "0.72937536", "0.7285341", "0.7274363", "0.72626615", "0.72577494", "0.72566205", "0.72413695", "0.71605885", "0.713893", "0.70802534", "0.7065...
0.0
-1
Get the child groups for a set of flashes.
def MvIi(YKHO, F9M9, T7MU=False, YTVa=False): F9M9 = oyIN.atleast_1d(F9M9) YCmv = list() aGII = list() for _eu6 in F9M9: sIyQ = YKHO.groups[YKHO.groups.parent_id == _eu6] YCmv.append(sIyQ) if YTVa: aGII.append(YKHO.get_events(sIyQ.id, combine=True)) if T7MU: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def moMn(YKHO):\n return YKHO.get('{}/groups'.format(gsRm.CM1.value))", "def gkd6(YKHO):\n zJAj = YKHO.__DELIMITER.join(YKHO.__currentGroupNames)\n if zJAj:\n zJAj += YKHO.__DELIMITER\n I3zX = len(zJAj)\n K2O6 = set()\n for n4sh in YKHO.__settings.keys():\n if n4sh.startswith(zJAj...
[ "0.61722964", "0.6113781", "0.6082348", "0.604792", "0.598803", "0.58479667", "0.58220893", "0.58102953", "0.5765848", "0.5728987", "0.5690098", "0.5671721", "0.5670547", "0.5670547", "0.5670547", "0.5628724", "0.5626731", "0.5606168", "0.56034815", "0.5591773", "0.55861884",...
0.6229909
0
Tells if the local data has been modified since it was last refreshed
def VDT2(YKHO): return bool(YKHO._dirty or YKHO.ui.channelEditor.getQModel().isDataChanged() or YKHO._dirtyMntGrps)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tMYZ(YKHO):\n return YKHO._has_been_modified", "def hfbc(YKHO) -> bool:\n return bool(YKHO._modified)", "def wxxj(YKHO):\n return YKHO.timestamp > 0", "def w3PF(YKHO):\n return len(YKHO.modified_fields) > 0", "def C4fU(YKHO):\n return YKHO.last_modified > YKHO.last_processed", "def C4f...
[ "0.77544016", "0.75397485", "0.7535442", "0.7460288", "0.7453128", "0.74410504", "0.73521644", "0.7275266", "0.72691524", "0.7264193", "0.7252178", "0.7241687", "0.7185961", "0.7168969", "0.70613486", "0.7055726", "0.7055726", "0.69904816", "0.6983502", "0.6983502", "0.698188...
0.68099415
28
>>> v = vector(4,0,0) >>> normalize(v) array([1., 0., 0., 0.]) >>> v = vector(1,2,3) >>> sq = np.sqrt(1+4+9) >>> normalize(v) array([0.26726124, 0.53452248, 0.80178373, 0. ])
def NkkI(Ty9i): return Ty9i * (1.0 / YXbZ(Ty9i))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def NkkI(Ty9i):\n return Ty9i / oyIN.linalg.norm(Ty9i)", "def NkkI(Ty9i):\n return oyIN.array(Ty9i) / oyIN.linalg.norm(Ty9i)", "def Z7xS(Ty9i):\n WuUW = 1.0 / sum(Ty9i)\n HBfW = [YRbF * WuUW for YRbF in Ty9i]\n return HBfW", "def NkkI(Ty9i):\n nUPH = epAf.sqrt(Ty9i[0] * Ty9i[0] + Ty9i[1] * ...
[ "0.84684175", "0.83600307", "0.7966934", "0.7961107", "0.79584414", "0.79327613", "0.7847324", "0.77168113", "0.77132595", "0.76763064", "0.76481354", "0.75995773", "0.7579817", "0.73899406", "0.73883694", "0.7385038", "0.73823106", "0.7381569", "0.7349965", "0.7343471", "0.7...
0.7832228
7
>>> v1 = vector(3, 6, 9) >>> v2 = vector(2, 3, 4) >>> dot(v1, v2) == 3 2 + 6 3 + 9 4 True
def BJ1H(jzdc, Fg_i): return oyIN.vdot(jzdc.arr, Fg_i.arr)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QLUs(hQHm, jlSq):\n return hQHm.x * jlSq.x + hQHm.y * jlSq.y + hQHm.z * jlSq.z", "def BJ1H(ENWa, ZoT5):\n return sum((XOOk * pHXX for XOOk, pHXX in zip(ENWa, ZoT5)))", "def yYJc(hQHm, jlSq):\n return oyIN.dot(hQHm, jlSq)", "def BJ1H(BZrQ: List, OhjO: List) -> float:\n if len(BZrQ) != len(OhjO...
[ "0.88122493", "0.86702555", "0.8504177", "0.82725835", "0.82243925", "0.8220707", "0.8164983", "0.81025153", "0.8096341", "0.8096223", "0.80932814", "0.8056855", "0.8050023", "0.80483824", "0.8041949", "0.800086", "0.7998581", "0.79893374", "0.79833156", "0.7967807", "0.79503...
0.7924043
22
>>> v1 = vector(1,2,3) >>> v2 = vector(2,3,4) >>> cross(v1, v2) == vector(1,2,1) True >>> v1 = vector(1,2,3) >>> v2 = vector(2,3,4) >>> cross(v2, v1) == vector(1,2,1) True
def WHx2(jzdc, Fg_i): return iArr(jzdc[1] * Fg_i[2] - jzdc[2] * Fg_i[1], jzdc[2] * Fg_i[0] - jzdc[0] * Fg_i[2], jzdc[0] * Fg_i[1] - jzdc[1] * Fg_i[0])
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DzDY():\n SjMt(WHx2(lNLu(1, 0, 0), lNLu(0, 1, 0)), lNLu(0, 0, 1))\n SjMt(WHx2(lNLu(1, 3, 2), lNLu(-1, 1, 0)), lNLu(-2, -2, 4))", "def WHx2(lSjb, v8Fa):\n Aofo = oyIN.zeros(3)\n return hmBT(lSjb, v8Fa, Aofo)", "def WHx2(hQHm, jlSq):\n return oyIN.cross(hQHm, jlSq)", "def WHx2(hQHm: Vector, ...
[ "0.8349134", "0.8341183", "0.8287545", "0.8215939", "0.80601215", "0.7885663", "0.77149785", "0.7711978", "0.7614333", "0.7572743", "0.72729856", "0.72538966", "0.7241052", "0.7236763", "0.7164063", "0.71631855", "0.70576525", "0.70266217", "0.70214224", "0.70137423", "0.7005...
0.7871695
6
Return device specific state attributes.
def TzCU(YKHO) -> dict[str, str]: if YKHO._cmode is None: return {} return {yboy: YKHO._cmode}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def R1i3(YKHO):\n return YKHO.attributes", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO.attr", "def R1i3(YKHO):\n return YKHO._attr", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO._state_attrs", "def R1i3(YKHO):\n return YKHO.c...
[ "0.87326586", "0.87130606", "0.87130606", "0.8661474", "0.86244243", "0.86244243", "0.86156", "0.8589153", "0.85687816", "0.85626554", "0.85169643", "0.84891194", "0.84891194", "0.84891194", "0.84891194", "0.84891194", "0.84891194", "0.84891194", "0.84891194", "0.84891194", "...
0.0
-1
Schedule a new longpoll. The scheduling needs to be done through a separate task, and not from inside the task itself as the runonce lock is checked while scheduling rather then at execution time.
def KIoe(): CQ7Y.delay()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hO0P(YKHO):\n YKHO._handle = V7ok.get_event_loop().create_task(YKHO._poll())", "def uYDl(YKHO, D5gV: _Task) -> None:\n if isinstance(D5gV.interval, (int, float)):\n D5gV.next = YKHO.sys_loop.call_later(D5gV.interval, YKHO._run_task, D5gV)\n elif isinstance(D5gV.interval, ITS7):\n yo7_ ...
[ "0.57867044", "0.57693607", "0.55074", "0.54848945", "0.5457017", "0.5455233", "0.544854", "0.54484665", "0.543439", "0.5425115", "0.5410595", "0.53908753", "0.53766096", "0.535054", "0.53499234", "0.53159726", "0.5287135", "0.52547264", "0.5217428", "0.5204188", "0.5202774",...
0.5787216
0
This staticmethod takes a date (typestring) and returns the year and month in the format YYYYMM (typestring).
def Vp1u(_c1T): WEW5 = _c1T.split('-') CYBl = WEW5[0] + '-' + WEW5[1] return CYBl
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VIcm(YKHO, fa8K):\n return fa8K.strftime('%B') + '-' + fa8K.strftime('%Y')", "def KNRb(sd8v):\n _c1T = qcWV.strptime(sd8v, '%m%y')\n lO87 = int(_c1T.strftime('%Y'))\n x0eS = int(_c1T.strftime('%m'))\n return (lO87, x0eS)", "def Ts0o(_c1T):\n return _c1T.month", "def kpxX(Emd4, lO87: typ...
[ "0.72763634", "0.71627474", "0.713793", "0.7104471", "0.70486057", "0.6948336", "0.6842599", "0.6829574", "0.67639554", "0.675406", "0.66396785", "0.65600294", "0.64504504", "0.6430573", "0.64203453", "0.63437736", "0.63420486", "0.63378215", "0.6328506", "0.630834", "0.62672...
0.7839178
0
Creates an embed object that will contain the avatar of the user and will 'mention' the author of the original message. Paramters
def h7YS(Ol8d, CBIr): a98m = Ol8d.author mWFP = CBIr.name M2B7 = CBIr.avatar_url Hy7s.system(f'curl -o .img.png {M2B7}') WEkU = VQ_2('.img.png') nz6e = WEkU.get_color(quality=1) Hy7s.system('rm .img.png') R0zR = '0x' + '%02X%02X%02X' % nz6e R0zR = int(R0zR, base=16) Q1PJ = ZOrr.E...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def avatar(YKHO, OaeV: utils.Context, CBIr: discord.User=None):\n if CBIr is None:\n CBIr = OaeV.author\n with BfDw.Embed(use_random_colour=True) as Q1PJ:\n Q1PJ.set_image(url=CBIr.avatar_url)\n await OaeV.send(embed=Q1PJ)", "async def avatar(Ol8d, CBIr: ParamType.MIXER_USER):\n r...
[ "0.7220755", "0.7065981", "0.70005155", "0.69594747", "0.6944046", "0.68691355", "0.673433", "0.66941375", "0.65377176", "0.6522726", "0.6460572", "0.64155585", "0.6284056", "0.6251793", "0.62355644", "0.6174815", "0.6142006", "0.6090169", "0.6026782", "0.5900302", "0.5857412...
0.78866696
0
Makes a forward pass with the given input through the network.
def KVH6(YKHO, WKvO, ej8u, d_Ws): Ep8u = WKvO.shape[0] yvT9 = list() dKHv = YKHO.initial_coordinates.expand(Ep8u, -1, -1) yvT9.append(dKHv) yvT9.append(YKHO.gp(dKHv, ej8u, d_Ws)) yvT9.append(YKHO.gc1(yvT9[-1])) for YRbF in range(0, 12): wEf2 = YKHO.gc2[YRbF](yvT9[-1]) if YRbF...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def KVH6(YKHO, input):\n return YKHO.network(input)", "def KVH6(YKHO, input):\n return YKHO.network(input)", "def KVH6(YKHO, input):\n return YKHO.network(input)", "def KVH6(YKHO, input):\n raise NotImplementedError", "def KVH6(YKHO, input):\n raise NotImplementedError", "def KVH6(YKHO, in...
[ "0.8020131", "0.8020131", "0.8020131", "0.78395134", "0.78395134", "0.7701589", "0.730887", "0.7214494", "0.7199846", "0.7199846", "0.70900005", "0.7082617", "0.70466167", "0.7020421", "0.70115006", "0.6980422", "0.6966499", "0.69619286", "0.69295895", "0.69049865", "0.689067...
0.0
-1
Resolve quals definition (as dictionary coming from a to_json(quals) sql query.
def q9Wu(w2B8, GbOK, xC3W='quals'): r5cm = set() utnv = set() Maem = {} e70h = {} for rdlD in GbOK: hkxX = rdlD[xC3W] if not isinstance(hkxX, list): hkxX = [hkxX] for Ty9i in hkxX: r5cm.add(Ty9i['opno']) utnv.add((Ty9i['relid'], Ty9i['attnu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def aWP6(apum, F3p8=int):\n ApeH = dict([ETu_ for ETu_ in BDiv(apum, F3p8)])\n return ApeH", "def maul() -> cuzp[str, ImMB]:\n RstX = v8wI(many=True)\n RTQe = PXX_.query.all()\n return YWvJ(cuzp[str, ImMB], pz3A(RstX.dump(RTQe)))", "def kcah(YKHO, Cp1x: str) -> GySg[str, ImMB]:\n return YKHO....
[ "0.62183905", "0.5912396", "0.58376807", "0.53827244", "0.5360832", "0.52999234", "0.512226", "0.5072654", "0.4975721", "0.49573955", "0.4916347", "0.48792332", "0.4825397", "0.47340232", "0.4695924", "0.46713558", "0.46680146", "0.46460393", "0.46286368", "0.46098846", "0.46...
0.59821117
1
Returns list of InputExample objects.
def G_y_(YKHO, Nqlg, TG_K): YPaw = 18 exwG = len(Nqlg) def eHNT(YRbF, aWuw): Artt = '%s-%s' % (TG_K, YRbF) PKBr = YKHO.pad_to_max_length([2] + YKHO.mask_tokens(aWuw) + [3]) ZZRG = [0 if ZfUD == 0 else 1 for ZfUD in PKBr] UXqs = YKHO.pad_to_max_length([2] + aWuw + [3]) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def s3d8(YKHO, _2sc: str=None) -> x1iM[str]:\n _PLx = YKHO.input_directory\n if _PLx is None:\n return []\n TUQS = []\n for FMLJ in YKHO.input_formats:\n GJWl = f'*.{FMLJ}'\n if _2sc is not None:\n GJWl = f'{_2sc}-{GJWl}'\n CRt7 = SC2F.glob(Hy7s.path.join(str(_PLx...
[ "0.70495194", "0.7025524", "0.67530465", "0.6675962", "0.6613447", "0.6519134", "0.6478061", "0.64501965", "0.6400952", "0.6400952", "0.6400952", "0.63932276", "0.63917595", "0.6388947", "0.6388947", "0.6370418", "0.63460624", "0.6338409", "0.6298535", "0.62900734", "0.627240...
0.0
-1
Creates an instance of this model from a dictionary
def rQfz(Emd4, cmPJ): if cmPJ is None: return None wggr = jT7V.models.collection_summary.CollectionSummary.from_dictionary(cmPJ.get('CollectionSummary')) if cmPJ.get('CollectionSummary') else None qfNC = jT7V.models.collection_parent.CollectionParent.from_dictionary(cmPJ.get('CollectionParent')) if ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rQfz(Emd4, cmPJ):\n if cmPJ is None:\n return None\n id = cmPJ.get('id')\n mWFP = cmPJ.get('name')\n tDvy = cmPJ.get('type')\n fFb7 = cmPJ.get('usageBytes')\n return Emd4(id, mWFP, tDvy, fFb7)", "def eLpg(Emd4, cmPJ):\n return Emd4(**cmPJ)", "def eLpg(Emd4, cmPJ):\n return Em...
[ "0.83181584", "0.8168118", "0.8168118", "0.8118749", "0.8089047", "0.79787344", "0.7949278", "0.79231393", "0.7898951", "0.78923255", "0.788838", "0.7882321", "0.7882212", "0.7876749", "0.78585315", "0.7836853", "0.7801407", "0.7801407", "0.7801407", "0.7801407", "0.7801407",...
0.0
-1
Get my config. Returns a dict of the config for this task.
def GPtr(YKHO): if YKHO._config is None: try: GTNu = SAs9.workflow.tasks[YKHO.task_type] except KeyError: GTNu = {} YKHO._config = SAs9.workflow.task_defaults.overlay(GTNu) return YKHO._config
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tgzD(YKHO) -> cuzp[str, ImMB]:\n if YKHO.config is None:\n YKHO.config = YKHO.load_config()\n return YKHO.config", "def tgzD(YKHO) -> cuzp[str, ImMB]:\n if YKHO.config is None:\n YKHO.config = YKHO.load_config()\n return YKHO.config", "def tgzD(YKHO):\n return YKHO.config", "...
[ "0.81380033", "0.81380033", "0.7935481", "0.78627795", "0.7790323", "0.7757608", "0.7701663", "0.7701663", "0.7701663", "0.7701663", "0.7701663", "0.7701663", "0.7701663", "0.7701663", "0.7701663", "0.7701663", "0.7701663", "0.7701663", "0.7701663", "0.7701663", "0.7701663", ...
0.752085
80
Pad framewise_output to the same length as input frames.
def h5dP(MNYq, K3Do): hVLt = MNYq[:, -1:, :].repeat(1, K3Do - MNYq.shape[1], 1) 'tensor for padding' hlel = ht2j.cat((MNYq, hVLt), dim=1) '(batch_size, frames_num, classes_num)' return hlel
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def h5dP(MNYq, K3Do):\n hVLt = MNYq[:, -1:, :].repeat(1, K3Do - MNYq.shape[1], 1)\n 'tensor for padding'\n hlel = ht2j.cat((MNYq, hVLt), dim=1)\n '(batch_size, frames_num, classes_num)'\n return hlel", "def h5dP(MNYq: torch.Tensor, K3Do: int):\n hlel = vuvg.interpolate(MNYq.unsqueeze(1), size=(...
[ "0.8230455", "0.7931482", "0.7931482", "0.6540299", "0.6483363", "0.64246595", "0.6142677", "0.6035105", "0.5952847", "0.5763603", "0.5734788", "0.57071126", "0.56726646", "0.56666154", "0.5631334", "0.5616687", "0.56009144", "0.5595923", "0.5568799", "0.55595803", "0.5487239...
0.8198464
1
Create single input for OpenStack provisioner.
def tnSL(YKHO, KcEq): DB0c = KcEq.get('image') or YKHO._get_image(KcEq['os']) return {'name': KcEq['name'], 'flavor': YKHO._get_flavor(KcEq), 'image': DB0c, 'key_name': YKHO.config['keypair'], 'network': YKHO._get_network_type(KcEq)}
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(Ro_8, kFeU: str, VKhi: Optional[pulumi.ResourceOptions]=None, jcC6: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, DjF0: Optional[pulumi.Input[str]]=None, mWFP: Optional[pulumi.Input[str]]=None, qsJ6: Optional[pulumi.Input[str]]=None, PehW: Optional[pulumi.Input[pulumi.InputType...
[ "0.581116", "0.5809518", "0.5765543", "0.5744689", "0.5714009", "0.56461656", "0.56426877", "0.5639887", "0.5631351", "0.56305856", "0.5629538", "0.5622211", "0.5620859", "0.55720574", "0.5535291", "0.55337965", "0.55092263", "0.5500885", "0.54793775", "0.5470409", "0.5468908...
0.0
-1
Forces a Unicode string to become a bytestring.
def Fb0K(BWXx): if rIxU: if isinstance(BWXx, str): BWXx = BWXx.encode('utf-8', 'backslashreplace') elif isinstance(BWXx, QMSQ): BWXx = BWXx.encode('utf-8') return BWXx
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def PQSR(vIwR):\n return vIwR.encode('utf8') if isinstance(vIwR, str) else vIwR", "def Vl_n(l5Ny):\n if isinstance(l5Ny, iauG):\n return l5Ny\n else:\n return l5Ny.encode('utf-8')", "def VZEj(KCHu):\n if isinstance(KCHu, bytes):\n return KCHu\n return bytes(KCHu, encoding='l...
[ "0.7950604", "0.7494114", "0.74611163", "0.736526", "0.7343636", "0.7342057", "0.73255694", "0.72963053", "0.72921216", "0.7219616", "0.7215229", "0.71370375", "0.71224475", "0.7089445", "0.70876855", "0.7068403", "0.7035774", "0.69953173", "0.69935924", "0.6978708", "0.69658...
0.7462238
2
Cleans string from invalid xml chars
def l4W5(KCHu): return Ed4U.sub('', KCHu)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GEih(KCHu):\n if aGZf.search(KCHu):\n return ''.join((Z9rn for Z9rn in KCHu if Z9rn >= ' ' or Z9rn in '\\r\\n\\t'))\n else:\n return KCHu", "def GEih(KCHu):\n if aGZf.search(KCHu):\n return ''.join((Z9rn for Z9rn in KCHu if Z9rn >= ' ' or Z9rn in '\\r\\n\\t'))\n else:\n ...
[ "0.8395313", "0.8395313", "0.76325786", "0.72462225", "0.72400254", "0.7152788", "0.7002336", "0.69919145", "0.6916065", "0.687033", "0.686678", "0.6731521", "0.6655256", "0.66450983", "0.65548456", "0.6541501", "0.6381694", "0.6360468", "0.63296366", "0.63241875", "0.6314515...
0.8506191
0
Check if a given value is ``null``. Criteria for this is based on values that shouldn't be included in the Solr ``add`` request at all.
def j9S0(YKHO, BWXx): if BWXx is None: return True if rIxU: if isinstance(BWXx, str) and len(BWXx) == 0: return True elif isinstance(BWXx, exCv) and len(BWXx) == 0: return True return False
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def DqME(YKHO, wEf2):\n return wEf2 is None", "def uYVM(YKHO):\n return YKHO.value is None", "def uYVM(BWXx: Any) -> bool:\n return not BWXx", "def hkRi(YKHO) -> bool:\n return any([WKvO is T2Pq for WKvO in YKHO.values])", "def pbT6(YKHO, BWXx):\n return BWXx is None if YKHO._onlyNullAllowed...
[ "0.7966777", "0.7675414", "0.72924244", "0.71943104", "0.71919435", "0.71109146", "0.7044645", "0.7017645", "0.68474185", "0.67800164", "0.6740847", "0.6740847", "0.6740847", "0.6740847", "0.6740847", "0.66857105", "0.6675339", "0.660833", "0.65864235", "0.6569065", "0.655242...
0.77746046
1
Tells Solr to streamline the number of segments used, essentially a defragmentation operation. Optionally accepts ``maxSegments``. Default is ``None``. Optionally accepts ``waitFlush``. Default is ``None``. Optionally accepts ``waitSearcher``. Default is ``None``.
def WIl5(YKHO, jSYO=True, Zkpn=None, sxzh=None, x6_3=None, DCgT='update'): if x6_3: tO9_ = '<optimize maxSegments="%d" />' % x6_3 else: tO9_ = '<optimize />' return YKHO._update(tO9_, commit=jSYO, waitFlush=Zkpn, waitSearcher=sxzh, handler=DCgT)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pFAI(YKHO, PXIy):\n YKHO.send_command(TkY7.SET_SEGMENT_COUNT, [PXIy])", "def hTWD(qIxc):\n from jcvi.formats.base import SetFile\n XP5J = PDen(hTWD.__doc__)\n XP5J.add_option('--chain', default=1, type='int', help='Allow next N genes to be chained')\n VKhi, qIxc = XP5J.parse_args(qIxc)\n if...
[ "0.51909155", "0.4807662", "0.47312784", "0.47224554", "0.46188262", "0.4600607", "0.45097548", "0.43260217", "0.43097267", "0.42663458", "0.42496002", "0.42404923", "0.42117444", "0.4210985", "0.41996685", "0.41599086", "0.41341916", "0.4129727", "0.41070372", "0.40991002", ...
0.6767203
0
Finalize all values that are the only choice for a unit. Go through all the units, and whenever there is a unit with a value that only fits in one box, assign the value to this box.
def rIvV(hkxX): for PXGI in dzni: for Ko6S in '123456789': oUSw = [FlUN for FlUN in PXGI if Ko6S in hkxX[FlUN]] if len(oUSw) == 1: hkxX[oUSw[0]] = Ko6S
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def rIvV(hkxX):\n for PXGI in dzni:\n oaZA = list(PXGI)\n for FlUN in PXGI:\n oaZA.remove(FlUN)\n Bk8B = []\n for Fg_i in oaZA:\n Bk8B += hkxX[Fg_i]\n Bk8B = list(set(Bk8B))\n for BWXx in hkxX[FlUN]:\n if BWXx not...
[ "0.6149435", "0.5739129", "0.56110865", "0.5567466", "0.55310965", "0.5510611", "0.54592836", "0.5458928", "0.54497653", "0.54181445", "0.5418099", "0.53857076", "0.5360414", "0.53125787", "0.52772063", "0.52584416", "0.5257262", "0.5257262", "0.52474046", "0.5241555", "0.520...
0.5451368
8
r""" Preprocesses the ``input_id`` by first converting it to string using the ``generator_tokenizer`` and then tokenizing it using the ``question_encoder_tokenizer``.
def ufAf(YKHO, Pha6, y0cW): LfOK = YKHO.generator_tokenizer.batch_decode(Pha6, skip_special_tokens=False) if isinstance(YKHO.generator_tokenizer, agvI): for YRbF, KCHu in enumerate(LfOK): if not KCHu.startswith(y0cW): bo34.warning('T5 prefix mismatch in {}'.format(KCHu)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def x_Qq(YKHO, g4y1):\n AfpW = ndK1([g4y1], YKHO.tokenizer_ltp, YKHO.tokenizer_cn)\n s2mk = YKHO.tokenizer_cn.tokenize(g4y1)\n if len(s2mk) > YKHO.max_seq_length - 2:\n s2mk = s2mk[:YKHO.max_seq_length - 2]\n AfpW = AfpW[:YKHO.max_seq_length - 2]\n AfpW = tHxK(s2mk, AfpW[0])\n s2mk, Cr...
[ "0.6157253", "0.6011973", "0.59935665", "0.5959524", "0.5938408", "0.5830877", "0.575296", "0.56359935", "0.55681187", "0.55354303", "0.5528437", "0.5496703", "0.5476708", "0.5433145", "0.5431593", "0.54210657", "0.5416125", "0.5377173", "0.53737015", "0.5349505", "0.5338652"...
0.65319693
0
Turn supplied list of AllocationRequest objects into a list of allocations dicts keyed by resource provider uuid of resources involved in the allocation request. The returned results are intended to be used as the body of a PUT /allocations/{consumer_uuid} HTTP request at
def lze9(RM_7, q9Gu): dixj = [] for wc14 in RM_7: K8Ny = g760.defaultdict(lambda: dict(resources={})) for x6aZ in wc14.resource_requests: s_cZ = K8Ny[x6aZ.resource_provider.uuid]['resources'] s_cZ[x6aZ.resource_class] = x6aZ.amount Aofo = dict(allocations=K8Ny) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c3jO(RM_7):\n dixj = []\n for wc14 in RM_7:\n ZUJR = g760.defaultdict(dict)\n for x6aZ in wc14.resource_requests:\n s_cZ = ZUJR[x6aZ.resource_provider.uuid]\n s_cZ[x6aZ.resource_class] = x6aZ.amount\n gU_Q = [{'resource_provider': {'uuid': _TMJ}, 'resources': JK...
[ "0.8063298", "0.7020869", "0.68739104", "0.6017425", "0.58747315", "0.5671825", "0.5668013", "0.53047335", "0.5296503", "0.5240295", "0.508343", "0.50325537", "0.4964703", "0.49514338", "0.4944357", "0.49293068", "0.49243796", "0.47904134", "0.47739625", "0.47655866", "0.4726...
0.7216527
1
Turn supplied list of AllocationRequest objects into a list of dicts of resources involved in the allocation request. The returned results is intended to be able to be used as the body of a PUT /allocations/{consumer_uuid} HTTP request, prior to microversion 1.12, so therefore we return a list of JSON objects that look...
def c3jO(RM_7): dixj = [] for wc14 in RM_7: ZUJR = g760.defaultdict(dict) for x6aZ in wc14.resource_requests: s_cZ = ZUJR[x6aZ.resource_provider.uuid] s_cZ[x6aZ.resource_class] = x6aZ.amount gU_Q = [{'resource_provider': {'uuid': _TMJ}, 'resources': JKCy} for _TMJ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def dj3G(qv1X):\n QpfX = qv1X.environ['placement.context']\n QpfX.can(som_.LIST)\n q9Gu = qv1X.environ[OCbK.MICROVERSION_ENVIRON]\n ZCCt = PiT8(q9Gu)\n gnPz.validate_query_params(qv1X, ZCCt)\n N8SJ = _e0h.RequestWideParams.from_request(qv1X)\n moMn = _e0h.RequestGroup.dict_from_request(qv1X, N...
[ "0.7178691", "0.7162541", "0.6582189", "0.6107352", "0.5863697", "0.5587923", "0.53681725", "0.5314249", "0.5055799", "0.50106907", "0.49994317", "0.49690905", "0.487662", "0.48683962", "0.48598045", "0.4829101", "0.482535", "0.48045796", "0.478293", "0.4782239", "0.47727063"...
0.7994556
0
Checks if this object is equal to the given object.
def xa14(YKHO, Elif: Any) -> bool: if not isinstance(Elif, _Q8i): return False return YKHO.to_pb2().__eq__(Elif.to_pb2())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, YEnM):\n return QBs8(YKHO.obj == YEnM, '%r != %r' % (YKHO.obj, YEnM))", "def aPi6(YKHO, YEnM: object) -> bool:\n ...", "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, YEnM):\...
[ "0.84820056", "0.8479907", "0.7772451", "0.776262", "0.76864976", "0.76346", "0.7584103", "0.7563157", "0.7492194", "0.7382019", "0.7382019", "0.7377297", "0.73125404", "0.7282762", "0.72483206", "0.72483206", "0.7242191", "0.7229649", "0.721935", "0.72074294", "0.72034365", ...
0.0
-1
Load the pretrained ResNet152 and replace top fc layer.
def FIMM(YKHO, Agjb, wjbX, jXxl, CLda, G8d9=20): super(Bg8r, YKHO).__init__() WWYJ = FYrf.resnet18(pretrained=True) KZ52 = list(WWYJ.children())[:-1] YKHO.resnet = U78l.Sequential(*KZ52) YKHO.linear1 = U78l.Linear(WWYJ.fc.in_features, Agjb) YKHO.bn = U78l.BatchNorm1d(Agjb, momentum=0.01) YKH...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def hVyu(mL4f=False, **B2fa):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3], **B2fa)\n if mL4f:\n C3ST.load_state_dict(rA0C.load_url(mDCG['resnet152']))\n FBfN = JpOW(C3ST.fc)\n C3ST.fc = FBfN\n return C3ST", "def hVyu(mL4f=False):\n C3ST = S1Vm(MF6R, [3, 8, 36, 3])\n if mL4f:\n C3ST.load_...
[ "0.7173243", "0.68068516", "0.67977124", "0.6785029", "0.6749317", "0.6749317", "0.6749317", "0.6749317", "0.6732605", "0.65075487", "0.65075487", "0.6475581", "0.63911945", "0.6284571", "0.6225049", "0.6187277", "0.61413467", "0.6104824", "0.6085976", "0.6068629", "0.6041786...
0.0
-1
Eliminate the common words from a nltk Text list.
def yKEY(YKHO, l5Ny=None): if l5Ny is None: l5Ny = YKHO.nltk_text(YKHO.text) l5Ny = set((yzQ0 for yzQ0 in l5Ny if yzQ0 == yzQ0.lower() and yzQ0.lower() not in YKHO.common_words and (yzQ0.lower() not in di0c.words('english')))) return l5Ny
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RMQS(VOOV):\n kaX9 = set(['the', 'and', 'to', 'of', 'a', 'I', 'in', 'was', 'he', 'that', 'it', 'his', 'her', 'you', 'as', 'had', 'with', 'for', 'she', 'not', 'at', 'but', 'be', 'my', 'on', 'have', 'him', 'is', 'said', 'me', 'which', 'by', 'so', 'this', 'all', 'from', 'they', 'no', 'were', 'if', 'would', 'or...
[ "0.77453023", "0.7480703", "0.7304569", "0.7275693", "0.7273945", "0.6985139", "0.6854734", "0.67847115", "0.6756467", "0.6724188", "0.6668566", "0.6667598", "0.6655243", "0.6619594", "0.65618414", "0.6493549", "0.6491564", "0.6486325", "0.64815193", "0.6450531", "0.64440286"...
0.8407093
0
Replaces 970 due to more slots available. Note that 970999, roughly, are now free.
def fQqx(): WBPg(1950) yHSS, mNZz, sD5s, kfXH = Hk4k('iiii') NEyI(yHSS) bXSW(0, yHSS) JsQi(1, mNZz, 0) ZfUD.award_item_to_host_only(mNZz) eVVj.disable_sync() sJDd(5.0) JsQi(1, sD5s, 0) ZfUD.award_item_to_host_only(sD5s) JsQi(1, kfXH, 0) ZfUD.award_item_to_host_only(kfXH)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FcNP(YKHO):\n assert YKHO.is_available() is True, 'this slot is not available'", "def r4GX(YKHO):\n YKHO.capacity = round(YKHO.capacity / YKHO.factor)\n ycBG = [None] * YKHO.capacity\n for YRbF in range(YKHO.capacity):\n ycBG[YRbF] = YKHO.store[YRbF]\n YKHO.store = ycBG", "def KXR6(Vl...
[ "0.5705056", "0.5696263", "0.5676289", "0.5561961", "0.54798216", "0.5476498", "0.54707247", "0.5447159", "0.539114", "0.53601056", "0.53560024", "0.5354314", "0.53441006", "0.53286904", "0.53082025", "0.53022337", "0.52863425", "0.5269593", "0.52404076", "0.52227765", "0.522...
0.0
-1
returns true if all propositions that are preconditions of the action exist in this layer (i.e. the action can be applied)
def Zg2V(YKHO, XeOP): dALc = XeOP.getPre() for uv6v in dALc: if not uv6v in YKHO.propositions: return False for YRbF in range(len(dALc)): for r845 in range(YRbF + 1, len(dALc)): uN06 = dALc[YRbF] gJeK = dALc[r845] if Okue(uN06, gJeK) in YKHO.mu...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def JjsE(YKHO) -> bool:\n return YKHO._does_apply", "def SDCP(YKHO, sM89, qIxc):\n for woks in YKHO.precond_pos:\n if YKHO.substitute(woks, qIxc) not in sM89.clauses:\n return False\n for woks in YKHO.precond_neg:\n if YKHO.substitute(woks, qIxc) in sM89.clauses:\n re...
[ "0.6837118", "0.6504576", "0.6282832", "0.62549114", "0.6239424", "0.6229914", "0.6056336", "0.6050473", "0.6033958", "0.59764284", "0.59749675", "0.5962451", "0.59534854", "0.59442925", "0.59440273", "0.59414357", "0.5929586", "0.5905324", "0.5878416", "0.58706623", "0.58393...
0.7898416
0
Computes and saves L3 embedding for given inputs.
def iXC1(Pu1k, g4y1, kmfe=None, ZI14=None, AWMA='mel256', m5r4='music', U62O=6144, Imi3=True, WFVY=0.1, Wmr3=8192, PJWX=False): if isinstance(g4y1, jUrF): MVVZ = [g4y1] elif isinstance(g4y1, iu5r): MVVZ = IECG(g4y1) else: raise xAZe('Invalid input: {}'.format(str(g4y1))) if len(M...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def pOv4(YKHO, g4y1):\n ygzP = jPbk.unpack_inputs(g4y1)\n ZO3Q = ygzP[0]\n blF9 = ygzP[1]\n GhuM = jPbk.get_shape_list(ZO3Q, expected_rank=3)\n Ep8u = GhuM[0]\n q4aw = GhuM[1]\n TVTK = GhuM[2]\n hlel = ZO3Q\n if YKHO.use_type_embeddings:\n NcWx = ZylS.reshape(blF9, [-1])\n ...
[ "0.6141409", "0.6141409", "0.6002191", "0.5979608", "0.5843579", "0.5782888", "0.5766401", "0.5762665", "0.5728382", "0.56863475", "0.56177175", "0.5616622", "0.55811214", "0.5549932", "0.55291796", "0.5527123", "0.551758", "0.5499278", "0.54959416", "0.5482118", "0.5471783",...
0.634388
0
Return matrix of userspecified foreground and background objects.
def ytCQ(YKHO, *, n6yr=1, rt_r=0): return tuple((tuple((n6yr if u9Jc == YKHO._1 else rt_r for u9Jc in IqP_)) for IqP_ in YKHO._pixels))
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oDzt(YKHO, dHGi, l3R7):\n hlel = [[[], [], [], [], []] for bGrB in Ni9Y(zyl0.NUM_SUBSPECIES ** 2)]\n for SteT in l3R7:\n qLPo = YKHO.make_elementary_intervals([YKHO.sample_dict[gAeH][0] for gAeH in dHGi + [SteT]])\n ewy5 = oyIN.logical_not(YKHO.build_pairwise_matrix(dHGi, qLPo))\n ld...
[ "0.60915947", "0.5761049", "0.5655085", "0.553903", "0.55345774", "0.5534095", "0.5494117", "0.5262364", "0.5241943", "0.5238248", "0.5225351", "0.5199275", "0.51714575", "0.5154314", "0.5091412", "0.49896938", "0.49859098", "0.49712363", "0.496936", "0.49677444", "0.49491563...
0.0
-1
Convert glyph to a string of block characters.
def bXYs(YKHO, B1Wx=(2, 2)): if not YKHO.height: return '' SppC = YKHO.as_matrix() return TiXz(SppC, *B1Wx)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def stmq(WKvO):\n assert isinstance(WKvO, str)\n return [WKvO]", "def EpMK(WKvO):\n return [stmq(WKvO)]", "def D92J(YKHO):\n if not YKHO._rows:\n return b''\n TVTK = len(YKHO._rows[0])\n JQe4 = pqtO(TVTK, 8)\n usx6 = [IqP_ + (False,) * (JQe4 * 8 - TVTK) for IqP_ in YKHO._rows]\n ...
[ "0.6130963", "0.6007729", "0.5825784", "0.57893986", "0.57350844", "0.5699637", "0.56867427", "0.5586232", "0.5517764", "0.5516668", "0.55136853", "0.5436235", "0.54109365", "0.5395597", "0.5387504", "0.5377302", "0.5341501", "0.52806133", "0.5268265", "0.5263745", "0.5245249...
0.0
-1
Return a raster with a line added.
def apla(YKHO, jTh6: int=0, NVOX: int=0): OBm6, beF2 = ('0', '1') if NVOX > jTh6: return YKHO jTh6 = min(YKHO.height, max(0, jTh6)) NVOX = min(YKHO.height, max(0, NVOX)) lEHr = YKHO._outer((beF2 * YKHO.width if jTh6 >= YKHO.height - _6V1 - 1 >= NVOX else ''.join(IqP_) for _6V1, IqP_ in enume...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WyRr(BvpB, w8kx, swWp):\n m7pY, qw7D, tM4K = sh7Y(BvpB)\n QgCH = tM4K[1]\n aq_o = oyIN.ceil(oyIN.sqrt(2 * QgCH ** 2))\n Hydg = oyIN.where(qw7D == swWp)\n if oyIN.count_nonzero(Hydg) == 0:\n G9jH.error('! The defined pixel_value (%s) does not occur in the raster band.' % str(swWp))\n ...
[ "0.6763813", "0.6609446", "0.65756094", "0.65644616", "0.6388114", "0.62632", "0.62520975", "0.6189784", "0.61113816", "0.6033784", "0.60225767", "0.60225767", "0.60147315", "0.59972364", "0.59779096", "0.5970112", "0.5968529", "0.59594566", "0.5955867", "0.5953882", "0.59526...
0.0
-1
Make sure q1 and q2 are the same quantities to within the given precision.
def mqmN(YKHO, hbUd, BzON, tO9_=None, RA_F=None): RA_F = 1e-05 if RA_F is None else RA_F tO9_ = '' if tO9_ is None else ' (%s)' % tO9_ hbUd = f9X8(hbUd) BzON = f9X8(BzON) if hbUd.shape != BzON.shape: raise YKHO.failureException('Shape mismatch (%s vs %s)%s' % (hbUd.shape, BzON.shape, tO9_)) ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def cIT_(_lYe, qaAi, rhd_=0.5) -> bool:\n return ((_lYe - qaAi).abs() < rhd_).all()", "def WlB9(EBgd, HpuQ, eRdl=0.0001):\n n2Q1 = mLGw.fabs(EBgd[0] - HpuQ[0]) < eRdl\n SpII = mLGw.fabs(EBgd[1] - HpuQ[1]) < eRdl\n if n2Q1 and SpII:\n return True", "def oilP(YKHO, Elif, rhd_):\n if isinsta...
[ "0.7299522", "0.71662915", "0.6952921", "0.6850603", "0.6520175", "0.6467178", "0.6384543", "0.6374968", "0.6214496", "0.61555463", "0.60420364", "0.6026763", "0.60216063", "0.5971276", "0.5965232", "0.5963061", "0.5895836", "0.5877206", "0.5847391", "0.57889813", "0.57887864...
0.62212306
8
Main generator entrance. Both self.one() and self.all() will use this generator to obtain RecordThunkIter is a convoluted datatype. The easiest way to access it is to use map_thunk_iter() function in dataType.py which map a callback to the result of all thunks. thunks are evaluated asyncronously, which means good perfo...
def rZ13(YKHO, TTop) -> yAHE: def cG2v(H47v, eXkc) -> yAHE: """ Return a generator iter througth an effectful generator iter through data will cause a network connection. """ zNig = len(eXkc) EiPt = zip(H47v, eXkc) def Oa1e(): ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Vs4Q(YKHO):\n ewCu = 0\n while True:\n if ewCu < len(YKHO.all_records):\n yield YKHO.all_records[ewCu]\n else:\n yield YKHO.next()\n ewCu += 1", "def Vs4Q(YKHO):\n for Wc9F in YKHO.iterator:\n yield Qqmr.from_iterator_batch(Wc9F, YKHO.pad_index, YKHO...
[ "0.6397486", "0.6069301", "0.59929514", "0.5949399", "0.59484214", "0.5835066", "0.57487625", "0.5741638", "0.57186896", "0.5712092", "0.5705545", "0.5694224", "0.5684352", "0.56692845", "0.566284", "0.565444", "0.56475216", "0.5642295", "0.56172", "0.56119436", "0.5601721", ...
0.6224088
1
If the word is before a number, it is likely MODELNAME E.g. apple watch series 3
def B3CY(WKvO): V22M = WKvO.product_name.split() if WKvO.word_idx < len(V22M) - 1 and V22M[WKvO.word_idx + 1].isnumeric(): return Hwpu return -1
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def VU5Z(WKvO):\n V22M = WKvO.product_name.split()\n if V22M[WKvO.word_idx].isnumeric():\n return Hwpu\n return -1", "def yZN8(WKvO, ge_k):\n V22M = WKvO.product_name.split()\n if WKvO.word_idx > 0 and V22M[WKvO.word_idx - 1] in ge_k:\n if any((YRbF.isdigit() for YRbF in V22M[WKvO.wo...
[ "0.6609103", "0.6013188", "0.59997255", "0.5941132", "0.5870885", "0.586358", "0.57586086", "0.56449765", "0.56301737", "0.5628457", "0.56272924", "0.56195194", "0.56101805", "0.55771", "0.5539335", "0.54873604", "0.5481514", "0.5471274", "0.5457715", "0.54279166", "0.5397162...
0.753125
0
List of filenames which belong to the query set but are not selected.
def mS3T(YKHO): DHdA = YKHO._query_tag_bitmask - YKHO._preselected_tag_bitmask return DHdA.masked_select_from_list(YKHO.api_workflow_client.filenames_on_server)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RokB(YKHO):\n return YKHO._query_tag_bitmask.masked_select_from_list(YKHO.api_workflow_client.filenames_on_server)", "def sTwC(YKHO):\n xDcj = 'SELECT DISTINCT file_name FROM {0};'.format(YKHO.tables['measurements'])\n YKHO.cursor.execute(xDcj)\n Aofo = YKHO.cursor.fetchall()\n RRlC = [_pUq[0]...
[ "0.70955664", "0.69156736", "0.64828014", "0.64682966", "0.64663357", "0.6464316", "0.638844", "0.63697505", "0.634285", "0.63422686", "0.63214964", "0.62280995", "0.61715925", "0.61326146", "0.6128739", "0.60733914", "0.6065121", "0.604108", "0.6038031", "0.6025476", "0.6011...
0.59853363
23
List of filenames of newly added samples (in the last query).
def UUe0(YKHO): if YKHO._old_preselected_tag_bitmask is None: raise RuntimeError('Cannot compute "added set" before querying.') YpgO = YKHO._preselected_tag_bitmask - YKHO._old_preselected_tag_bitmask return YpgO.masked_select_from_list(YKHO.api_workflow_client.filenames_on_server)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I3lW():\n lCFC = './phase3_data/'\n gGnb = Hy7s.listdir(lCFC)\n cfbQ = []\n for YRbF in range(len(gGnb)):\n DTcD = []\n lCFC = './phase3_data/' + gGnb[YRbF]\n RRlC = Hy7s.listdir(lCFC)\n for nUeQ in RRlC:\n if nUeQ.endswith('.bin'):\n DTcD += [n...
[ "0.6810212", "0.6605287", "0.659618", "0.65632635", "0.6539105", "0.6459812", "0.6393692", "0.63551503", "0.6338973", "0.63389045", "0.6338571", "0.62988263", "0.629479", "0.6290969", "0.6242822", "0.6242377", "0.6242377", "0.6239383", "0.6234713", "0.6207206", "0.6206775", ...
0.0
-1
Considering the rows of X (and Y=X) as vectors, compute the distance matrix between each pair of vectors. This distance implementation is the distance between two points in a grid based on a strictly horizontal and/or vertical path (that is, along the grid lines as opposed to the diagonal or "as the crow flies" distanc...
def FDOI(EcVT, fuBA): if EcVT is fuBA: EcVT = fuBA = oyIN.asanyarray(EcVT) else: EcVT = oyIN.asanyarray(EcVT) fuBA = oyIN.asanyarray(fuBA) if EcVT.shape[1] != fuBA.shape[1]: raise ValueError('Incompatible dimension for X and Y matrices') qp3h = GC2M.cdist(EcVT, fuBA, 'cit...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FDOI(EcVT, fuBA):\n lWPh = oyIN.zeros((EcVT.shape[0], fuBA.shape[0]))\n for fRmk in range(EcVT.shape[0]):\n for Dlv2 in range(fuBA.shape[0]):\n lWPh[fRmk, Dlv2] = oyIN.sum(oyIN.abs(EcVT[fRmk, :] - fuBA[Dlv2, :]))\n return lWPh", "def AifU(EcVT, fuBA):\n lWPh = oyIN.zeros((EcVT.s...
[ "0.7770831", "0.74655795", "0.72221386", "0.70440143", "0.7003411", "0.69414055", "0.67667186", "0.6762181", "0.66671824", "0.66490585", "0.6621166", "0.6598885", "0.6588486", "0.65820444", "0.65458953", "0.653017", "0.6527672", "0.65168613", "0.6514407", "0.648362", "0.64624...
0.7285553
2
Considering the rows of X (and Y=X) as vectors, compute the distance matrix between each pair of vectors.
def TbyI(fcYF, EcVT, fuBA): def Clif(Csk6): if Csk6 <= 0.0: return 0.0 else: return oyIN.log(Csk6) def tLLm(XP5J, G1Hx, exwG): return G1Hx * Clif(XP5J) + (exwG - G1Hx) * Clif(1.0 - XP5J) def Kf5l(LEev, Xyq7, MxXY, cWFu): XP5J = (LEev + Xyq7) / (MxXY...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def AifU(EcVT, fuBA):\n lWPh = oyIN.zeros((EcVT.shape[0], fuBA.shape[0]))\n for fRmk in range(EcVT.shape[0]):\n for Dlv2 in range(fuBA.shape[0]):\n lWPh[fRmk, Dlv2] = oyIN.sqrt(oyIN.sum((EcVT[fRmk, :] - fuBA[Dlv2, :]) ** 2))\n return lWPh", "def NJNe(EcVT, fuBA):\n lWPh = oyIN.zeros...
[ "0.7947374", "0.732326", "0.7293282", "0.72234964", "0.70778155", "0.70235634", "0.6914544", "0.68702495", "0.6849722", "0.6842572", "0.6830514", "0.6816462", "0.68044674", "0.68018913", "0.67837113", "0.6748725", "0.6744572", "0.6694892", "0.6670698", "0.66436875", "0.659595...
0.0
-1
Coverts input tensors to numpy ndarrays
def HXuo(*g4y1): def vuQn(YRbF): assert isinstance(YRbF, ht2j.Tensor), 'Expected input to be torch.Tensor' return YRbF.detach().cpu().numpy() return (vuQn(YRbF) for YRbF in g4y1)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def RCjr(YuSI: torch.Tensor) -> oyIN.ndarray:\n return r3uf(YuSI).cpu().detach().numpy()", "def WTDd(vhpA):\n raise NotImplementedError", "def endw(WKvO):\n return WKvO.cpu().numpy()", "def knzr(g4y1: Union[float, Tuple[float], np.ndarray], tpio):\n o4Jx = None\n if isinstance(g4y1, (tuple, oy...
[ "0.75370157", "0.7528797", "0.7435802", "0.7149566", "0.7149566", "0.70594555", "0.7003697", "0.6941773", "0.6920963", "0.6834125", "0.6820987", "0.66868377", "0.66740686", "0.6655203", "0.66497886", "0.66426235", "0.66297895", "0.6574982", "0.6561449", "0.65392995", "0.65122...
0.75293213
2
Collect single artifact, be it in S3 or locally.
def DA5l(YKHO, pmON, qO8j=True): if pmON.startswith(YKHO.dlpath): xtX7 = Hy7s.path.basename(Hy7s.path.dirname(pmON[len(YKHO.dlpath):])) else: xtX7 = Hy7s.path.basename(Hy7s.path.dirname(pmON)) G_sa = ZbWC.findall('(?P<tag>[^-]+)-(?P<val>.*?)__', xtX7) if G_sa is None or len(G_sa) == 0: ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LAIy(j8eK, zBah='.'):\n WY3t('aws s3 cp {} {}'.format(j8eK, zBah))", "def PAYI(YKHO):\n print('Collecting artifacts matching %s from S3 bucket %s' % (YKHO.match, ABwj))\n YKHO.s3 = iVGz.resource('s3')\n YKHO.s3_bucket = YKHO.s3.Bucket(ABwj)\n YKHO.s3_client = iVGz.client('s3')\n for ZfUD in...
[ "0.70469123", "0.6940997", "0.590493", "0.5827899", "0.5826262", "0.57538307", "0.5706472", "0.567867", "0.5675168", "0.56425047", "0.56399673", "0.55415237", "0.55029", "0.5418003", "0.5350222", "0.5350222", "0.5350222", "0.5350222", "0.534246", "0.53306216", "0.53011525", ...
0.60430914
2
A callable fixture that creates a mock python package in tmp_path and returns the package directory
def X7Y1(ZqHk, g4fF): return AbIN(ZqHk, g4fF)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c9vk(YKHO):\n U9hK = gbPf.mkdtemp()\n Hy7s.rmdir(U9hK)\n gCuF = {'storage.dir': U9hK}\n BS3y.configure(gCuF)\n try:\n YKHO.assertTrue(Hy7s.path.exists(U9hK))\n finally:\n Hy7s.rmdir(U9hK)", "def cU3o(B5hb):\n return 'debian/' + B5hb", "def F2hO(HSm4) -> GkAb:\n Bm71 = ...
[ "0.71668464", "0.71648365", "0.707077", "0.7026178", "0.6944759", "0.6922835", "0.691878", "0.68817353", "0.66905147", "0.6656914", "0.6582454", "0.6579341", "0.6458405", "0.6415908", "0.6411599", "0.6388235", "0.6372629", "0.63337934", "0.6288598", "0.6239651", "0.6237766", ...
0.68435705
8
A callable fixture that creates a mock python package in tmp_path and returns the package directory
def WkyC(ZqHk, g4fF): return AbIN(ZqHk, g4fF, setup_func=DHTH, include_js=True)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def c9vk(YKHO):\n U9hK = gbPf.mkdtemp()\n Hy7s.rmdir(U9hK)\n gCuF = {'storage.dir': U9hK}\n BS3y.configure(gCuF)\n try:\n YKHO.assertTrue(Hy7s.path.exists(U9hK))\n finally:\n Hy7s.rmdir(U9hK)", "def cU3o(B5hb):\n return 'debian/' + B5hb", "def F2hO(HSm4) -> GkAb:\n Bm71 = ...
[ "0.7165992", "0.7164136", "0.7068451", "0.70272714", "0.694273", "0.6922184", "0.6918412", "0.6882918", "0.68453735", "0.66885906", "0.66582453", "0.65796816", "0.65783167", "0.64560145", "0.6414546", "0.6411239", "0.63871896", "0.6370322", "0.633216", "0.6286406", "0.6237794...
0.0
-1
Generate chars given a seed (it can be an empty string) Predicts next chars according to previous chars in a loop. Next chars are chosen using probabilities to create different names each time.
def FU0s(yokr='', nvPU=1): m1Py = ['<' + yokr for bGrB in range(nvPU)] o4Jx = m1Py.copy() OygL = ZylS.zeros(shape=(nvPU, lhva)) sKZ9 = ZylS.zeros(shape=(nvPU, lhva)) wspz = [OygL, sKZ9] for bGrB in range(17): Xtuq = oyIN.array([EVZ5(yokr) for yokr in m1Py]) BFeB, OygL, sKZ9 = ufR...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def QXOc(C3ST, FLXQ, ba83):\n FLXQ = FLXQ[-ba83:]\n VE0R = C3ST.get(FLXQ)\n fTff = tuKI()\n for hcXw, JxU2 in VE0R:\n fTff -= JxU2\n if fTff <= 0:\n return hcXw", "def FU0s(yokr='', nvPU=1):\n m1Py = ['<' + yokr for bGrB in range(nvPU)]\n o4Jx = m1Py.copy()\n OygL = ...
[ "0.7398955", "0.7125424", "0.6922391", "0.6891195", "0.6888011", "0.68504727", "0.6727158", "0.6575554", "0.64264905", "0.64211714", "0.6351087", "0.63389283", "0.63141525", "0.6214913", "0.6205305", "0.6200976", "0.6161466", "0.614708", "0.61282027", "0.61171216", "0.6113133...
0.70835567
2
Adds a list of blocks to the crumble, by setting their coordinates to True. Does not check if those values are already True. Format for block_list is [(x,y), (x,y), (x,y), ...]
def bKvW(YKHO, fQa0): rmyT = fQa0.copy() for XkN1 in fQa0: WKvO, LVAh = XkN1 YKHO[WKvO, LVAh] = True
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GFeb(YKHO, eutu, eFmq):\n for YRbF in range(len(eutu)):\n CnpF = YKHO.grid.get_cell_list_contents(eutu[YRbF])\n for YWSi in CnpF:\n if type(YWSi) is UFHe:\n YWSi.block = True\n for YRbF in eFmq:\n YWSi.locations[YRbF] = 10000", "def...
[ "0.66030365", "0.5905925", "0.58311963", "0.56495714", "0.5566724", "0.54912305", "0.54864836", "0.5409979", "0.54076195", "0.53946227", "0.5382518", "0.53746617", "0.5374538", "0.53295016", "0.5323942", "0.53013605", "0.5293454", "0.52375156", "0.52320075", "0.5231403", "0.5...
0.8670279
0
Creates the application factory.
def sbeN(gCuF): SCWY = L2w0(__name__) SCWY.config.from_object(gCuF) NCls.init_app(SCWY) SCWY.register_blueprint(Yi7w) SCWY.register_blueprint(U6Xs) S_7a = irvb('{0}/app.log'.format(gCuF.BASE_DIR), maxBytes=10000, backupCount=1) S_7a.setLevel(G9jH.INFO) SCWY.logger.addHandler(S_7a) wi...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def LUif():\n P4t4 = L2w0(__name__, instance_relative_config=False)\n P4t4.config.from_object('config.Config')\n NCls.init_app(P4t4)\n fHeP.init_app(P4t4)\n USZ9 = Lryc(P4t4, NCls)\n with P4t4.app_context():\n from . import routes\n NCls.create_all()\n P4t4.logger.info('appli...
[ "0.7649329", "0.75789386", "0.75749934", "0.7542789", "0.7530117", "0.75061387", "0.74708223", "0.74633205", "0.7353847", "0.73490655", "0.73206985", "0.72978747", "0.7289467", "0.7270252", "0.7250092", "0.72465104", "0.72350144", "0.72105706", "0.71943974", "0.7174563", "0.7...
0.661813
76
The total duration of all tasks that ran on the push.
def WbTE(YKHO): return int(sum((a1PO.duration for a1PO in YKHO.tasks)) / 3600)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UBxE(YKHO):\n PwWw = set()\n WbTE = 0\n for D5gV in YKHO.tasks:\n if D5gV.label not in YKHO.scheduled_task_labels:\n continue\n if D5gV.label in PwWw:\n continue\n PwWw.add(D5gV.label)\n WbTE += D5gV.duration\n return int(WbTE / 3600)", "def EdTY(...
[ "0.70750093", "0.6987875", "0.6809532", "0.6771156", "0.67008936", "0.6669308", "0.6648715", "0.6648715", "0.6642854", "0.66370416", "0.66048735", "0.65889806", "0.6564531", "0.65483934", "0.65483934", "0.6516426", "0.64809996", "0.64778584", "0.6477298", "0.6472821", "0.6461...
0.8103958
0
Get an artifact from Decision task of this push.
def seDv(YKHO, mWFP): bD7m = ZWpG.format(rev=YKHO.rev, artifact=mWFP) Mkmy = G4JS.get(bD7m) if Mkmy.status_code != 200: bo34.warning(f'No decision task with artifact {mWFP} on {YKHO.rev}.') raise M9sJ('No decision task on {self.rev}!') return Mkmy.json()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def I9zd(YKHO, qowK: str) -> object:\n return YKHO._artifacts[qowK]", "def WkDN(qIxc, cU8q, jUTK):\n if cU8q not in qIxc._artifacts:\n raise KeyError(f'Cannot find {cU8q} in _artifacts. The task either did not run, or it did not produce any artifacts.')\n for l34Y in qIxc._artifacts[cU8q]:\n ...
[ "0.6859929", "0.6714885", "0.6670622", "0.6609323", "0.6159352", "0.6114037", "0.583998", "0.583998", "0.583998", "0.583998", "0.58371663", "0.5768473", "0.5727282", "0.56864697", "0.56864697", "0.56864697", "0.56864697", "0.56864697", "0.56864697", "0.5556161", "0.5429708", ...
0.7670327
0
Get the tasks artifact from the shadow scheduler task called 'name'.
def WPsW(YKHO): G_if = {} for D5gV in YKHO._get_artifact_urls_from_label('shadow-scheduler'): if 'artifacts' not in D5gV: continue UXqs = D5gV['label'] RZgH = None for bD7m in D5gV['artifacts']: if bD7m.rsplit('/', 1)[1] == 'optimized_tasks.list': ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def TzqP(YKHO, mWFP):\n bD7m = FDdv.format(rev=YKHO.rev, name=mWFP)\n Mkmy = G4JS.get(bD7m)\n if Mkmy.status_code != 200:\n if mWFP not in YKHO._shadow_scheduler_artifacts:\n return None\n Mkmy = G4JS.get(YKHO._shadow_scheduler_artifacts[mWFP])\n xCjU = Mkmy.text\n return se...
[ "0.6976159", "0.6649033", "0.6550156", "0.65260506", "0.6450284", "0.6376226", "0.6327709", "0.6268586", "0.62382776", "0.62363726", "0.62322783", "0.62141657", "0.6191073", "0.6039212", "0.60315126", "0.5978834", "0.5871009", "0.58693504", "0.58417517", "0.57891047", "0.5761...
0.62753606
7
Get the name (title) of this player.
def W0tD(YKHO) -> str: def Kar5(): if YKHO.name: return YKHO.name else: try: return YKHO.player.title except AttributeError: return 'No title specified' try: if YKHO.player.title == 'translate_tts': return '...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def W0tD(YKHO):\n return YKHO._player_name", "def W0tD(YKHO):\n return YKHO._name", "def Q0HP(YKHO):\n return YKHO.player", "def mWFP(YKHO) -> str:\n try:\n return YKHO.stats['Player name']\n except KeyError as ke:\n bo34.debug(PYpn, exc_info=True)\n bo34.warn('unable to g...
[ "0.8749819", "0.87249106", "0.84593534", "0.835844", "0.8171182", "0.79883343", "0.7964863", "0.7610038", "0.7610038", "0.75440305", "0.7512455", "0.7495721", "0.747609", "0.747609", "0.747609", "0.7440677", "0.7440677", "0.7440677", "0.7440488", "0.7429516", "0.74171865", ...
0.7882872
7
Get the current player object.
def oyg0(YKHO): return YKHO.current.player
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def GFCh(YKHO):\n return YKHO.currentPlayer", "def mCd_(YKHO):\n return YKHO.current_player", "def mCd_(YKHO):\n return YKHO.current_player", "def mCd_(YKHO):\n return YKHO._current_player", "def nAM4(YKHO):\n return YKHO.player_control.get_player()", "def tRnr(YKHO) -> mVZ4:\n return Y...
[ "0.84492415", "0.8404701", "0.84017044", "0.8366663", "0.8340543", "0.83186185", "0.830703", "0.82954335", "0.8292107", "0.8292107", "0.82225496", "0.81515074", "0.7961868", "0.7912856", "0.78490186", "0.7842709", "0.774126", "0.7389038", "0.73329717", "0.72467643", "0.723842...
0.8258579
10
Create a new voice client on a specified channel.
async def create_voice_client(YKHO, YwkQ): l1d8 = await YKHO.bot.join_voice_channel(YwkQ) try: await l1d8.enable_voice_events() except AttributeError: pass QTBn = YKHO.get_voice_state(YwkQ.server) QTBn.voice = l1d8
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "async def connect_to_voice(YKHO, YwkQ: 'channel.Channel') -> 'voice_client.VoiceClient':\n if lHYE is None:\n raise RuntimeError('Cannot to voice - voice support is not installed')\n if YwkQ.guild != YKHO:\n raise a2Q3('Cannot use channel from a different guild')\n if YKHO.voice_client is no...
[ "0.75153977", "0.64948446", "0.6226884", "0.62048393", "0.5955242", "0.5952323", "0.5909976", "0.58932656", "0.58811396", "0.5865138", "0.5817678", "0.57376015", "0.57296306", "0.57007957", "0.56454456", "0.562534", "0.5585151", "0.55837035", "0.55059814", "0.548221", "0.5465...
0.8372212
0
Get the current song queue.
async def queue(YKHO, OaeV): QTBn = YKHO.get_voice_state(OaeV.message.server) if QTBn.voice is None: await YKHO.bot.say('**Not in a voice channel!**') return False if not QTBn.songs: await YKHO.bot.say('**Song queue is empty!**') return False if not QTBn.songs._queue and ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def CqEO(YKHO):\n if YKHO.queue is not None:\n return YKHO.queue\n QTBn = YKHO.get_state()\n YKHO.queue = QTBn.get_queue()\n return YKHO.queue", "def CqEO(YKHO):\n return YKHO.queue", "def CqEO(YKHO):\n return YKHO.queue", "async def get_queue(YKHO, OaeV: commands.Context) -> h8nf[WM...
[ "0.78662604", "0.78366894", "0.78366894", "0.7708885", "0.7659444", "0.76152694", "0.76152694", "0.76152694", "0.76152694", "0.76152694", "0.76152694", "0.76152694", "0.76152694", "0.76152694", "0.76152694", "0.76152694", "0.76152694", "0.76152694", "0.76152694", "0.76152694", ...
0.70736057
27
Check that all elements of x are positive
def eqcR(WKvO): assert all(WKvO) >= 0
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def tm4B(WKvO):\n if WKvO < 0:\n return True\n return False", "def MCGS(YKHO, WKvO):\n if oyIN.any(WKvO < 0):\n return oyIN.inf\n else:\n return 0", "def MCGS(YKHO, WKvO):\n if oyIN.any(WKvO > 0):\n return oyIN.inf\n else:\n return 0", "def hBSj(WKvO):\n ...
[ "0.7470719", "0.72296077", "0.72095966", "0.71475345", "0.7071342", "0.7052071", "0.70485884", "0.6956397", "0.68494105", "0.68389016", "0.6816652", "0.67916405", "0.678423", "0.67650664", "0.6763081", "0.6690795", "0.6648411", "0.66150427", "0.6606947", "0.6584103", "0.65714...
0.81701094
0
Returns the maximum payload size for this transport. Most transports have a maximum packet size that can be sent. For example, UDP has a 65507 bytes MTU. py_zipkin automatically batches collected spans for performance reasons. The batch size is going to be the minimum between `get_max_payload_bytes` and `max_span_batch...
def dsov(YKHO) -> h8nf[int]: raise NotImplementedError('get_max_payload_bytes is not implemented')
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def M44i(YKHO) -> h8nf[float]:\n return qe4Y.get(YKHO, 'max_size_bytes')", "def y_yk(YKHO):\n return YKHO._maximum_size", "def jLUQ(YKHO):\n return max(YKHO.fcip_doc['packet_lengths'])", "def gBIt(YKHO):\n wtCU = YKHO._unalignedMaxPartSize\n lxH3 = YKHO.format.maxSize\n KeV_ = min(lxH3, wtC...
[ "0.6907384", "0.68627983", "0.68541986", "0.674063", "0.67396945", "0.6734887", "0.6703293", "0.66842026", "0.6658214", "0.66325015", "0.662275", "0.6498451", "0.6498451", "0.6498451", "0.6498451", "0.6490904", "0.64568436", "0.64568436", "0.64568436", "0.6426417", "0.6406231...
0.7692433
0
Initialize a Linear or Convolutional layer.
def yYlq(gEmA): if gEmA.weight.ndimension() == 4: _LFN, Ya2q, H2v2, TVTK = gEmA.weight.size() exwG = Ya2q * H2v2 * TVTK elif gEmA.weight.ndimension() == 2: _LFN, exwG = gEmA.weight.size() M1Jx = epAf.sqrt(2.0 / exwG) NXpY = M1Jx * epAf.sqrt(3.0) gEmA.weight.data.uniform_(-NXp...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.weights = oyIN.zeros(shape=(input.shape[1], 10))\n oug5 = oyIN.zeros(shape=(10,))\n pass", "def FIMM(YKHO, DYuh, tYiq, **B2fa):\n mZQD.__init__(YKHO, U78l.Linear(DYuh, tYiq, bias=False), **B2fa)", "def rFSS(YKHO, gEmA):\n pass", "def J2K6(YKHO) -> None:\n super()._ini...
[ "0.6946551", "0.67547345", "0.6707431", "0.6665897", "0.6650076", "0.6640679", "0.6638478", "0.658717", "0.65688443", "0.65388083", "0.65354836", "0.6533983", "0.65278226", "0.64570576", "0.6450888", "0.6442372", "0.6424806", "0.6423904", "0.6369207", "0.63687015", "0.6366463...
0.71581787
0
Initialize a Batchnorm layer.
def uHk4(tF9S): tF9S.bias.data.fill_(0.0) tF9S.weight.data.fill_(1.0)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def oivd(r8hN, WYQd=3):\n exwG = WYQd ** 2 * r8hN.num_features\n r8hN.weight.data.normal_(0, epAf.sqrt(2.0 / exwG))\n r8hN.bias.data.zero_()", "def feYC(r8hN, WYQd=3, M1Zr=0.025):\n exwG = WYQd ** 2 * r8hN.num_features\n r8hN.weight.data.normal_(0, epAf.sqrt(2.0 / exwG))\n r8hN.weight.data[(r8h...
[ "0.73815334", "0.718199", "0.7180469", "0.6950543", "0.67427087", "0.67249286", "0.6696273", "0.6694279", "0.6601284", "0.6590197", "0.6518155", "0.6487386", "0.6469243", "0.6458911", "0.64279944", "0.6422253", "0.6387756", "0.6363538", "0.63560706", "0.6354041", "0.6325349",...
0.0
-1
Query for right halfopen interval [l, r).
def xDcj(YKHO, vC9B, Mkmy): RAXh = set() tMXx = set() vC9B += YKHO.N - 1 Mkmy += YKHO.N - 1 while vC9B < Mkmy: if vC9B & 1: RAXh = YKHO.func(RAXh, YKHO.node[vC9B]) vC9B += 1 if Mkmy & 1: Mkmy -= 1 tMXx = YKHO.func(YKHO.node[Mkmy], tMXx)...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def Ad9l(*qIxc, **B2fa):\n pass", "def n7i6(YKHO):\n WKvO = oyIN.array([-100, -2, -1, 0, 1, 1.1])\n YKHO.assertEqual(jKUf.half_sample_mode(WKvO), +1.05)", "def lHmx(ezWE, vC9B, Mkmy, WKvO):\n while vC9B <= Mkmy:\n x1fj = vC9B + (Mkmy - vC9B) // 2\n if ezWE[x1fj] == WKvO:\n ...
[ "0.6521237", "0.5962696", "0.57842106", "0.57473195", "0.56855434", "0.5648532", "0.5546847", "0.54653275", "0.5455308", "0.54372406", "0.54341334", "0.5306993", "0.5260719", "0.5248285", "0.52153814", "0.5181624", "0.51792085", "0.51779634", "0.51634777", "0.5159596", "0.512...
0.556072
6
Function counts md5 hash of file where input is file_path
def mmqK(qaEx): pFtS = HBct.md5() with open(qaEx, 'rb') as eHNT: for yOAJ in iter(lambda: eHNT.read(4096), b''): pFtS.update(yOAJ) return pFtS.hexdigest()
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def O4xT(VqRE):\n with open(VqRE, 'rb') as eHNT:\n return xORj(eHNT.read()).hexdigest()", "def Ebsq(qaEx):\n pFtS = str()\n NKcE = HBct.md5()\n if not Hy7s.path.exists(qaEx):\n bo34.error('File(%s) don not exist, can not calculation file hash' % qaEx)\n return pFtS\n with open...
[ "0.8018315", "0.7965841", "0.78639126", "0.7849782", "0.78127766", "0.76893175", "0.76651263", "0.76442546", "0.7612222", "0.76080316", "0.75821763", "0.7566572", "0.7555845", "0.7555322", "0.7548912", "0.75211287", "0.75041425", "0.7488032", "0.7476489", "0.7461284", "0.7431...
0.89501154
0
A helper function that extract any number from a text
def yzS4(YKHO, l5Ny): try: if 'studio' in l5Ny.lower(): return 0.0 l5Ny = l5Ny.replace(',', '') mXDZ = '[-+]?\\d*\\.\\d+|\\d+' Aofo = ZbWC.findall(mXDZ, l5Ny)[0] return float(Aofo) except: return oyIN.nan
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WyYT(l5Ny):\n tvw5 = ZbWC.sub('[^\\\\d]', '', l5Ny)\n if not tvw5:\n return None\n try:\n return int(tvw5)\n except ValueError:\n return None", "def GpXw(l5Ny):\n r8hN = ZbWC.search('\\\\d+', l5Ny)\n if r8hN is not None:\n return r8hN.group(0)", "def G7AI(l5Ny)...
[ "0.77314574", "0.76525503", "0.7563327", "0.7511921", "0.7286301", "0.72470134", "0.7160466", "0.7147661", "0.7134207", "0.70645535", "0.7005501", "0.6924376", "0.68755144", "0.6827881", "0.68087167", "0.6807239", "0.67846596", "0.6778888", "0.6707231", "0.6692991", "0.662859...
0.75585616
3
helper function to unzip the price dictionary in the json file
def N06X(YKHO, n2Ga): try: VEot = n2Ga['price']['formattedPrice'].replace('$', '').replace(',', '') hI0L = YKHO._extract_num(VEot) _c1T = n2Ga['formattedDate'] xeAq = qcWV.datetime.strptime(_c1T, '%m/%d/%Y').strftime('%Y-%m-%d') return (xeAq, hI0L) except: return ...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def UI1y(YKHO, wM3v: str):\n with open(wM3v) as zgjV:\n YKHO._product_prices = qQXR.load(zgjV)", "def qrbD() -> dict:\n with open('zip_coordinates.json', 'r') as DeWf:\n return qQXR.loads(DeWf.read())", "def tvJ7(YKHO) -> dict:\n yvT9 = dict()\n with open(YKHO.FILE_NAME) as wM3v:\n ...
[ "0.5901224", "0.5738345", "0.5391835", "0.5355367", "0.5310326", "0.5281283", "0.52176434", "0.5158073", "0.5115969", "0.51139545", "0.5042528", "0.50273865", "0.502126", "0.50147444", "0.4995763", "0.49642718", "0.49198455", "0.4915515", "0.49034166", "0.48837534", "0.488300...
0.62157315
0
get the normal price information, for example, sales price and asking price
def YPBi(YKHO, uMnn): n2Ga = uMnn['props']['homeDetails']['price'] try: SqFb = n2Ga['formattedPrice'].replace(',', '').replace('$', '') u68w = YKHO._extract_num(SqFb) D7mm = n2Ga['formattedSoldDate'] VUTE = qcWV.datetime.strptime(D7mm, '%b %d, %Y').strftime('%Y-%m-%d') tr...
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def BlKQ(YKHO):\n pass", "def N_Zi(YKHO):\n return YKHO.price", "def N_Zi(nPrm):\n return nPrm['summaryDetail']['regularMarketPreviousClose']['raw']", "def NXNA(YKHO):\n MOPg = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.113 Sa...
[ "0.68869174", "0.6840055", "0.68201876", "0.67868495", "0.6785083", "0.6763166", "0.6728498", "0.66985375", "0.65840966", "0.6576977", "0.6575487", "0.65702516", "0.6550844", "0.6550844", "0.6550844", "0.64999735", "0.64617074", "0.64586514", "0.6450088", "0.6441636", "0.6428...
0.70095503
0
Constructor for the Node class used to initialize all necessary fields of the Node object
def FIMM(YKHO, mWFP, azoT, nvJ7): YKHO.name = mWFP YKHO.attributes = azoT YKHO.incident_edges = nvJ7
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def FIMM(YKHO):\n YKHO.node = None\n YKHO.data = None", "def FIMM(YKHO, Ziit=None):\n YKHO.nodes = Ziit", "def FIMM(YKHO):\n YKHO.__root = o7DN()", "def FIMM(YKHO):\n YKHO.root = o7DN('')", "def FIMM(YKHO):\n YKHO.root = YKHO.Node(None)", "def FIMM(YKHO):\n YKHO.root = None\n YKHO...
[ "0.8270757", "0.810787", "0.8055466", "0.8014164", "0.80139387", "0.80025434", "0.7993454", "0.7988581", "0.79303205", "0.7930228", "0.79131424", "0.79131424", "0.7908181", "0.78736365", "0.78691214", "0.78691214", "0.78691214", "0.78486216", "0.7828795", "0.7802131", "0.7781...
0.0
-1
Given a Node object, checks whether this Node object is equal to the input Node object equality of two Node objects is defined in terms of equality of their names and not as identical objects in memory
def xa14(YKHO, Elif): return YKHO.name.__eq__(Elif.get_name())
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def xa14(YKHO, Elif):\n return type(YKHO) == type(Elif) and YKHO.node is Elif.node", "def xa14(YKHO, Elif):\n if not isinstance(Elif, o7DN):\n return False\n return YKHO.__dict__ == Elif.__dict__", "def xa14(YKHO, Elif):\n return type(Elif) is type(YKHO) and Elif._node is YKHO._node", "def...
[ "0.792303", "0.78229594", "0.7814766", "0.7814766", "0.7814766", "0.7814766", "0.7814766", "0.78003395", "0.7577308", "0.75687593", "0.74977714", "0.7460101", "0.744646", "0.74145496", "0.7351673", "0.73259854", "0.72849333", "0.7226516", "0.7210509", "0.71873105", "0.713696"...
0.7852472
2
Returns the set of incident edges of the node
def QyK1(YKHO): return set(YKHO.incident_edges)
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def zXh1(YKHO):\n return set({D70y for Q6kx in YKHO.nodeset for D70y in Q6kx.get_incident_edges()})", "def aFen(YKHO):\n return {YKHO.first_incident_node, YKHO.second_incident_node}", "def mC4V(YKHO):\n return YKHO.dovetails + YKHO.containments + YKHO.internals", "def mC4V(YKHO) -> fHNa[AzJI[int, in...
[ "0.8223696", "0.813222", "0.74701804", "0.7383972", "0.73327655", "0.73171103", "0.7244137", "0.7244137", "0.7244137", "0.7244137", "0.7244137", "0.7244137", "0.71860677", "0.7137152", "0.71370023", "0.71221834", "0.71221834", "0.71221834", "0.7115095", "0.71137273", "0.70989...
0.84987277
1
Given a name, sets the current name of the node as the input
def WZrJ(YKHO, mWFP): YKHO.name = mWFP
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "def WZrJ(YKHO, mWFP):\n YKHO.stream.set_node_name(YKHO.node, mWFP)", "def mWFP(YKHO, mWFP):\n JT5y = YKHO.name\n assert isinstance(mWFP, str)\n YKHO._name = mWFP\n if YKHO.has_parent():\n YKHO._parent_._name_changed(YKHO, JT5y)", "def WZrJ(YKHO, mWFP):\n YKHO.name_ = mWFP", "def Dokz...
[ "0.81654114", "0.74361104", "0.7267995", "0.7252928", "0.7209385", "0.71897745", "0.718783", "0.7121114", "0.7054372", "0.7054372", "0.7054372", "0.7054372", "0.7054372", "0.7054372", "0.7054372", "0.7054372", "0.7054372", "0.7054372", "0.7054372", "0.7054372", "0.70530665", ...
0.74752223
2