query stringlengths 10 3.6k | document stringlengths 19 61.4k | metadata dict | negatives listlengths 0 101 | negative_scores listlengths 0 101 | document_score stringlengths 3 10 | document_rank stringclasses 102
values |
|---|---|---|---|---|---|---|
Return a queryset or yield a list of similar objects. If `limit` is specified, we never want to see more than `limit` duplicates. Note that an overridden version of this method might return a list or generator instead of a Django queryset. | def dEcF(YKHO, qoqK=None, **B2fa):
if YKHO.dupable_word_model is None:
return YKHO.__class__.objects.none()
umWR = YKHO.__class__.objects.filter(**B2fa)
if YKHO.pk is not None:
umWR = umWR.exclude(pk=YKHO.pk)
SQ3m = YKHO.get_dupable_words(getattr(YKHO, YKHO.dupable_words_field))
umWR... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gqqd(YKHO, qoqK=0):\n if qoqK > 0:\n YKHO.iterator.limit = qoqK\n return YKHO.iterator",
"def Gqqd(YKHO, qoqK=0):\n if qoqK > 0:\n YKHO.iterator.limit = qoqK\n return YKHO.iterator",
"def DumB(YKHO, qoqK=0):\n YRbF = c4g9(YKHO.iterator)\n YRbF.limit = qoqK\n return YRbF",... | [
"0.61422074",
"0.61422074",
"0.6134644",
"0.6134644",
"0.5955152",
"0.5945703",
"0.59284407",
"0.5925057",
"0.5925057",
"0.5880951",
"0.5860239",
"0.5830375",
"0.58235836",
"0.5758325",
"0.5728113",
"0.569437",
"0.5656122",
"0.562661",
"0.5600784",
"0.55708414",
"0.5569081",
... | 0.67347664 | 0 |
Read file name (without extension) to string. | def Nwr9(mWFP):
a_35 = Hy7s.path.dirname(xAKo)
sdA6 = ('txt', 'rst')
for YBcr in sdA6:
pmON = Hy7s.path.join(a_35, '.'.join((mWFP, YBcr)))
if Hy7s.path.exists(pmON):
with open(pmON, 'r') as o1P6:
return o1P6.read()
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Nwr9(Ux0P: str) -> str:\n if GkAb(Ux0P).is_file():\n with open(Ux0P, 'r', encoding='utf-8') as gM_W:\n return gM_W.read()\n return ''",
"def XREJ(gIsw):\n if not Hy7s.path.exists(gIsw):\n raise FileNotFoundError\n with open(gIsw, 'r') as eHNT:\n return eHNT.read()"... | [
"0.7531396",
"0.74809384",
"0.74478155",
"0.73753387",
"0.7340525",
"0.7278115",
"0.723547",
"0.7222747",
"0.72012234",
"0.718718",
"0.7173986",
"0.7075975",
"0.707326",
"0.69605964",
"0.692661",
"0.689945",
"0.6885892",
"0.6880128",
"0.6871987",
"0.6837282",
"0.682079",
"0... | 0.66283065 | 56 |
Creates np array full of 1 values representing the initial absence of pallets. | def _SaR(XP5J: SimulationParameters) -> oyIN.ndarray:
a1PO = oyIN.full((XP5J.n_rows, XP5J.n_columns, XP5J.n_levels), -1, dtype='float32')
return a1PO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NnC9(YKHO) -> oyIN.array:\n return oyIN.array([[1 / YKHO.n] for bGrB in range(YKHO.n)])",
"def u2f5(YKHO):\n return oyIN.array([])",
"def eZZg(EcVT):\n Gmep, bGrB = EcVT.shape\n jzdc = oyIN.empty((Gmep, 1))\n jzdc.fill(oyIN.nan)\n return jzdc",
"def B9iM():\n return oyIN.array([[int(... | [
"0.6284614",
"0.61362576",
"0.6018073",
"0.5960011",
"0.5923515",
"0.59077084",
"0.5891812",
"0.5888341",
"0.58771235",
"0.5843776",
"0.5836368",
"0.5821685",
"0.58157307",
"0.58099854",
"0.5809471",
"0.5800762",
"0.5758527",
"0.57533664",
"0.5706709",
"0.56974226",
"0.568749... | 0.5399159 | 55 |
Creates a serializable dictionary representation of the state matrices. | def MNRr(YKHO):
cmPJ = {}
Cb9n = YKHO.S.shape[2]
cmPJ['storage_matrix'] = wHLO.__fill_matrix_metadata(YKHO.S)
cmPJ['vehicle_matrix'] = wHLO.__fill_matrix_metadata(YKHO.V)
cmPJ['arrival_time_matrix'] = wHLO.__fill_matrix_metadata(YKHO.T)
ovgf = [list((int(r845) for r845 in pFHD(YRbF, YKHO.S.shape... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return {'operation_type_matrix': wh4J.__fill_matrix_metadata(YKHO.op_type), 'operation_duration_matrix': wh4J.__fill_matrix_metadata(YKHO.op_duration), 'operation_tooling_level_matrix': wh4J.__fill_matrix_metadata(YKHO.op_tooling_lvl), 'operation_perturbation_matrix': wh4J.__fill_matrix_metada... | [
"0.77857363",
"0.74711204",
"0.71351355",
"0.69985914",
"0.69962263",
"0.6984367",
"0.6878165",
"0.686987",
"0.6848297",
"0.6796101",
"0.6773134",
"0.6704674",
"0.6690224",
"0.66869205",
"0.66801405",
"0.66036284",
"0.6557132",
"0.6545788",
"0.6544434",
"0.65430987",
"0.65427... | 0.7000804 | 3 |
Updates the vehicle position running averages. | def TXIL(YKHO, xqlA: Tuple[int, int]):
fAma = YKHO.trackers.travel_event_statistics
qqgr = fAma.avg_dx
exwG = fAma.avg_count + 1
fAma.avg_dx = qqgr * (exwG - 1) / exwG + xqlA[0] / exwG
qqgr = fAma.avg_dy
fAma.avg_dy = qqgr * (exwG - 1) / exwG + xqlA[1] / exwG
fAma.avg_count += 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QdZT(YKHO, Ty9i):\n YKHO._avg = (YKHO._avg * YKHO._count + Ty9i) / (YKHO._count + 1)\n YKHO._sigma = (YKHO._sigma * YKHO._count + Ty9i ** 2) / (YKHO._count + 1)\n YKHO._count += 1\n YKHO._total += Ty9i",
"def A5vO(YKHO):\n LTIa = YKHO.thrower.get_points()\n YKHO.score += LTIa",
"def YUqk(... | [
"0.6475679",
"0.63552123",
"0.6261403",
"0.62264377",
"0.61795515",
"0.6164623",
"0.6161232",
"0.6137923",
"0.61265105",
"0.60565114",
"0.60562444",
"0.604295",
"0.5991905",
"0.5975317",
"0.59747416",
"0.59666985",
"0.59475505",
"0.594588",
"0.59139115",
"0.59030795",
"0.5897... | 0.60447127 | 11 |
Check if all enemies are dead. If so, summon new ones. | def u_ln(YKHO):
for Csk6 in YKHO.currentLevel.dudeLayer:
if not Csk6.isPlayer():
return GPtr.TURN_TICKS
XeOP.Summon(YKHO.currentLevel, YKHO.summons_so_far).do()
YKHO.summons_so_far += 1
return GPtr.TURN_TICKS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mJWe(A6hB: List[Enemy]) -> bool:\n bUbm = 0\n for Y8Tw in A6hB:\n if Y8Tw.health <= 0:\n bUbm += 1\n return bUbm == len(A6hB)",
"def vMY8(YKHO):\n for svzv, WWKP in YKHO.agents.items():\n if not YKHO.death_tracker_ally[svzv] and WWKP.health == 0:\n YKHO.death_t... | [
"0.72165895",
"0.69856954",
"0.66952777",
"0.65047646",
"0.6501507",
"0.649481",
"0.6473175",
"0.6453155",
"0.6401333",
"0.63216937",
"0.6292126",
"0.62731606",
"0.62365186",
"0.62145895",
"0.6179603",
"0.61622244",
"0.6160442",
"0.6158139",
"0.61421365",
"0.61269116",
"0.609... | 0.0 | -1 |
Gets list of currency codes with the given symbol | def McJC(YKHO, o61b):
for ZfUD in YKHO.currencies_symbols:
for G1Hx, Ty9i in ZfUD.items():
if G1Hx == o61b:
return Ty9i
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eiOs() -> x1iM[I2jr]:\n return ['inr', 'jpy', 'usd', 'nzd', 'cnh', 'cad', 'aud', 'eur', 'gbp', 'chf', 'cny', 'sgd', 'thb', 'mxn']",
"def mCEK(cwhV):\n uKZs = [(Wxnj, ppNb(Wxnj)) for Wxnj in cwhV]\n return uKZs",
"def TgwQ(Emd4, OXAZ):\n Aofo = []\n for hkS8 in ['code', 'name', 'currency_name... | [
"0.68473494",
"0.6656595",
"0.66032946",
"0.65261966",
"0.65027577",
"0.65027577",
"0.6463137",
"0.642231",
"0.640329",
"0.6401736",
"0.6377187",
"0.6370731",
"0.63497293",
"0.62106985",
"0.6202263",
"0.62017095",
"0.6192922",
"0.61713827",
"0.6170689",
"0.6161071",
"0.616086... | 0.81888634 | 0 |
Return the device class. | def rM2U(YKHO):
return YKHO._device_class | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._handle('device_class')",
"def rM2U(YKHO):\n return YKHO._class",
"def rM2U(YKHO) -> str:\n return YKHO._dev_cls",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return eeT9",
"def rM2U(YKH... | [
"0.93540233",
"0.9202765",
"0.9180319",
"0.91749567",
"0.91477996",
"0.91066945",
"0.91059643",
"0.9087445",
"0.90825945",
"0.90825945",
"0.90825945",
"0.9036352",
"0.9023282",
"0.90217507",
"0.89019793",
"0.8804712",
"0.87773633",
"0.87450665",
"0.87450665",
"0.87450665",
"0... | 0.9162649 | 10 |
Return the device state attributes. | def R1i3(YKHO):
return YKHO._attrs | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO._state_attributes",
"def R1i3(YKHO):\n return YKHO.attr\n 'Return the state attributes.'\n return YKHO.attr",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3... | [
"0.9288312",
"0.92827606",
"0.92461693",
"0.92461693",
"0.92461693",
"0.9215518",
"0.9215518",
"0.9215518",
"0.9215518",
"0.92101526",
"0.92101526",
"0.92101526",
"0.92101526",
"0.92101526",
"0.92046595",
"0.92007667",
"0.92007667",
"0.9191204",
"0.9191204",
"0.9191204",
"0.9... | 0.9220751 | 6 |
Performs a PATCH request | def os4k(pmON: Union[str, List[str]], TBsA=None, sB1G='default', cmtk=False, **B2fa):
WBPg = BlHz()
D3T3 = xXHI(pmON, cmtk)
_Iaz = PS2H(TBsA, sB1G)
geh0 = G4JS.patch(D3T3, headers=WBPg, data=_Iaz, params=B2fa)
geh0.raise_for_status()
return iUVh(geh0.text) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Po4F(YKHO, *qIxc, **B2fa):\n B2fa['method'] = LIz1\n return YKHO.request(*qIxc, **B2fa)",
"def Po4F(YKHO, QePW, id=None):\n return oGir({'message': 'PATCH REQUEST'})",
"def Po4F(YKHO, QePW, _sei=None):\n return oGir({'method': 'PATCH'})",
"def Po4F(YKHO, QePW, _sei=None):\n return oGir({'m... | [
"0.81472397",
"0.79359084",
"0.7882867",
"0.78260666",
"0.78260666",
"0.7803433",
"0.779311",
"0.779311",
"0.7788845",
"0.77844745",
"0.77844745",
"0.77844745",
"0.77844745",
"0.77844745",
"0.7764438",
"0.7709012",
"0.7702916",
"0.76870733",
"0.76803255",
"0.76716083",
"0.766... | 0.0 | -1 |
Quick and dirty smoothener on specified columns using pandas rolling_mean. Leaves input unchanged. | def Cojk(jQ3Z, ZLJ_, qIxc=[5]):
uUJ5 = [Z9rn for Z9rn in jQ3Z.columns if Z9rn not in ZLJ_]
qqXA = {fvDH: jQ3Z[fvDH] for fvDH in uUJ5}
if len(qIxc) < 1:
raise RuntimeError('Require at least one argument')
Aofo = jQ3Z.rolling(*qIxc).mean()
for fvDH in uUJ5:
Aofo[fvDH] = qqXA[fvDH]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def VBBt(jQ3Z, fvDH, KnxT=2, mWFP='moving avg'):\n ycBG = jQ3Z.rolling(min_periods=1, window=KnxT, center=False).mean()\n ycBG = ycBG.rename(columns={fvDH: mWFP})\n jQ3Z = jQ3Z.join(ycBG[mWFP])\n return jQ3Z",
"def dIlw(jQ3Z, WfCS, y0cW='m{window}wk_', KnxT=5, Encw=2):\n jQ3Z.sort(['Team', 'Season... | [
"0.7312515",
"0.7163842",
"0.7105111",
"0.71045274",
"0.6871093",
"0.68439746",
"0.68077815",
"0.674887",
"0.6727068",
"0.6721076",
"0.66889596",
"0.66691726",
"0.664102",
"0.664083",
"0.6636556",
"0.6636145",
"0.6583908",
"0.6537976",
"0.6527434",
"0.64889985",
"0.6465474",
... | 0.7690705 | 0 |
Returns list of strings for all temperature sensors. | def qv58(YKHO):
aevO = []
for XtFw in YKHO._sensorlist:
if XtFw.type == 'temperature':
aevO.append(XtFw.sensor)
return aevO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"async def _get_available_temperature_sensors(YKHO) -> list[str]:\n _Y0l = await YKHO._api.async_find_temperature_commands()\n return [G8Ab[YRbF] for YRbF in range(3) if _Y0l[YRbF]]",
"def GIBl():\n return O0k5.sensors_temperatures(fahrenheit=False)",
"def X0Wm(YKHO):\n return [Vq3K.temperature for ... | [
"0.78198284",
"0.77269274",
"0.7501196",
"0.72960496",
"0.72018605",
"0.703548",
"0.703102",
"0.7024601",
"0.6746934",
"0.67088145",
"0.6695728",
"0.66737914",
"0.66308",
"0.6630439",
"0.6562423",
"0.65572697",
"0.6494867",
"0.64647585",
"0.6452559",
"0.6425884",
"0.6425014",... | 0.86117786 | 0 |
Edits sensorconfig.xml to add a temperature sensor with the specified params. | def GcS6(YKHO, rzOI, nVrR, OMk3):
cGyw = GXnK.parse('sensorconfig.xml')
EnD6 = GXnK.SubElement(cGyw.getroot(), 'sensor')
Kj_J = GXnK.SubElement(EnD6, 'type')
Kj_J.text = 'temperature'
vhGv = GXnK.SubElement(EnD6, 'parameters')
vhGv.attrib = {'tempid': rzOI, 'handle': nVrR}
for YRbF in range(... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b7Sa(YKHO, nVrR):\n cGyw = GXnK.parse('sensorconfig.xml')\n for XtFw in cGyw.findall('sensor'):\n for finE in XtFw.findall('type'):\n if finE.text == 'temperature':\n for n24E in XtFw.findall('parameters'):\n if n24E.attrib['handle'] == nVrR:\n ... | [
"0.59646964",
"0.5940211",
"0.58617455",
"0.5791945",
"0.5769463",
"0.5744164",
"0.56755805",
"0.5671233",
"0.566474",
"0.5660744",
"0.5660744",
"0.5660744",
"0.5660744",
"0.5660744",
"0.5660744",
"0.5660744",
"0.5660744",
"0.56581575",
"0.5552977",
"0.555034",
"0.55315447",
... | 0.7340438 | 0 |
Clean version, leaving only numeric repr. | def us1O(YKHO, DpZH):
Ty9i = YKHO.cleanToString(DpZH)
return float(Ty9i.split('.')[0] + '.' + ''.join(Ty9i.split('.')[1:])) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def x0SS(YKHO):\n YKHO.number = ZbWC.sub('\\\\D', '', YKHO.number)",
"def x0SS(YKHO):\n wEf2 = str(YKHO.original)\n EUnh = '0123456789.'\n gXQy = ''\n A3fT = ''\n while len(wEf2) > 0 and wEf2[0] not in EUnh:\n gXQy = gXQy + wEf2[0]\n wEf2 = wEf2[1:]\n if wEf2 == '':\n YK... | [
"0.67516255",
"0.6680447",
"0.65765435",
"0.6316544",
"0.6316544",
"0.6316531",
"0.6293981",
"0.62508816",
"0.6171363",
"0.61660975",
"0.61570513",
"0.6146424",
"0.60728484",
"0.6053005",
"0.6024854",
"0.5964951",
"0.59122896",
"0.5895615",
"0.5891949",
"0.58478594",
"0.58478... | 0.6018439 | 15 |
Extracts [mod][n] from the version. | def sb8v(YKHO, DpZH):
VlDb = 'z'
if YKHO.cleanToString(DpZH) != DpZH:
VlDb = list(filter(None, YKHO._getModifier.split(DpZH)))[0]
fDLt = filter(None, YKHO._cleanModifiers.split(DpZH)[1:])
if fDLt:
VlDb += ''.join(fDLt)
return VlDb | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PxCj(SF2P):\n return tuple((int(Q7me) if Q7me.isdigit() else Q7me for Q7me in SF2P.split('.')))",
"def fTco(WBPg, cdJN, DpZH):\n DpUl = WBPg.tell()\n iw1d = MZ6z(f'<xx{cdJN}x36x5xh', WBPg)\n JKCy = MZ6z(f'<{iw1d + 1}xIx', WBPg)\n hkxX = MZ6z(f'<{JKCy}f', WBPg)\n WBPg.seek(DpUl)\n if DpZH... | [
"0.6689521",
"0.6411624",
"0.62143326",
"0.6210235",
"0.61808556",
"0.6165778",
"0.6122641",
"0.6071558",
"0.6071363",
"0.6071311",
"0.5990731",
"0.598208",
"0.5960479",
"0.58973277",
"0.5893703",
"0.5865386",
"0.58436275",
"0.5826066",
"0.5809445",
"0.5801957",
"0.5797692",
... | 0.62932336 | 2 |
Accepts a list of dictionaries and loops through the list adding each key value. | def Zonx(oHnD, zAat):
sum = 0
for Or37 in oHnD:
sum += Or37[zAat]
return sum | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MnEe(yv6U):\n \"\"\"*** YOUR CODE HERE ***\"\"\"\n nCZR = {}\n for YRbF in yv6U:\n for r845 in YRbF:\n if r845 not in nCZR:\n nCZR[r845] = YRbF[r845]\n else:\n nCZR[r845] += YRbF[r845]\n return nCZR",
"def MnEe(yv6U):\n \"\"\"*** YOUR ... | [
"0.7494154",
"0.6941515",
"0.674088",
"0.6739335",
"0.67178726",
"0.6681432",
"0.66302735",
"0.6490519",
"0.6411545",
"0.6355115",
"0.6350263",
"0.63155234",
"0.6244965",
"0.6190699",
"0.6188965",
"0.61757034",
"0.61659354",
"0.61441535",
"0.6104567",
"0.60907763",
"0.6081254... | 0.65965396 | 7 |
Return a proxy to the mock object. Proxies only have the mocked methods which may be useful if the mock's builder methods are in the way. | def kMyc(YKHO):
return YKHO._proxy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PMPu(kMyc):\n return kMyc._ProxyBase__proxied",
"def qNKK(YKHO):\n return YKHO.mock",
"def kMyc(YKHO):\n return YKHO.__class__._proxy",
"def t10G(*qIxc, **B2fa):\n return ErWn(*qIxc, **B2fa)",
"def t10G(*qIxc, **B2fa):\n return ErWn(*qIxc, **B2fa)",
"def t10G(*qIxc, **B2fa):\n retur... | [
"0.6974779",
"0.6792541",
"0.6611304",
"0.6349006",
"0.6349006",
"0.6349006",
"0.6349006",
"0.6349006",
"0.6349006",
"0.6349006",
"0.6283306",
"0.6243583",
"0.62010336",
"0.610888",
"0.60482347",
"0.6028824",
"0.6027782",
"0.5986884",
"0.5968293",
"0.5962396",
"0.596003",
"... | 0.6097634 | 14 |
Stub that returns the supplied value. Convenience function for creating a L{ReturnValueStub} instance. | def en4D(BWXx):
return BhDs(BWXx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlrc(YKHO, YEnM, BWXx):\n YEnM.return_value = BWXx\n return YEnM",
"def BEHm(YKHO, BWXx: Any) -> None:\n YKHO.last_return_value = BWXx",
"def flB9(BWXx):\n Q6kx = jZ4I.Return()\n Q6kx.value = BWXx\n return Q6kx",
"def f2aZ(YKHO):\n y00G = 'test'\n YKHO.expected_method.AndReturn(y0... | [
"0.61332357",
"0.5809628",
"0.58047247",
"0.57884496",
"0.57770234",
"0.5753697",
"0.5751872",
"0.5579484",
"0.55432147",
"0.5533882",
"0.5488908",
"0.5459381",
"0.54025614",
"0.5398828",
"0.5393718",
"0.538482",
"0.53771377",
"0.53283256",
"0.532051",
"0.53096247",
"0.525503... | 0.89777136 | 0 |
Method will not be called. Convenience function for getting a L{NotCalledInvocationMatcher} instance. | def RSmo():
return Q8G_ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YsBt(YKHO):\n YKHO._mocker.add_matcher(f_ls)\n return YKHO",
"def KebS(YKHO):\n return h2pB(seET.not_, YKHO)",
"def hL1D(YKHO):\n YKHO.mock.assert_not_called()",
"def lGOr(YKHO):\n YKHO._CreateTest('testExpectedNotCalled')\n YKHO.mox.StubOutWithMock(YKHO.test_mox, 'UnsetStubs')\n YKH... | [
"0.67311156",
"0.6468206",
"0.6441575",
"0.6227584",
"0.6142972",
"0.61261135",
"0.60803443",
"0.6042257",
"0.5912302",
"0.589925",
"0.5893163",
"0.58235556",
"0.5755588",
"0.57233787",
"0.57098705",
"0.56449026",
"0.5564034",
"0.5547282",
"0.5546381",
"0.55085427",
"0.547309... | 0.71555924 | 0 |
Supplied unary function evaluates to True when called with argument. Convenience function for creating a L{FunctorConstraint} instance. | def gTfn(RYn1):
return bJXt(RYn1) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fzyb(YKHO, m2Zb):\n return YKHO.__class__(YKHO.x, m2Zb(YKHO.y), YKHO._CU)",
"def A5Sf(YKHO, Q6kx, NI_z):\n if Q6kx not in YKHO.nodes:\n raise ValueError(Q6kx, 'was not added.')\n HXqR = YKHO.node_domains[Q6kx]\n GQfX = Q6kx[0]\n aM8h = {zrIJ: NI_z(zrIJ, GQfX) for zrIJ in HXqR}\n if Q... | [
"0.607696",
"0.59664714",
"0.5696114",
"0.5683401",
"0.55489665",
"0.549015",
"0.54867136",
"0.54776955",
"0.54245204",
"0.540906",
"0.53950655",
"0.53645873",
"0.5362504",
"0.5359932",
"0.53370315",
"0.5322059",
"0.53100085",
"0.5297068",
"0.52347153",
"0.5223017",
"0.522005... | 0.7701858 | 0 |
String representation for debugging. | def wHJl(YKHO):
return YKHO.name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHJl(YKHO) -> str:\n return YKHO.debug()",
"def dsE5(YKHO):\n return ''",
"def JWLH(YKHO) -> str:\n return '\\n'.join(YKHO._ToStrings())",
"def zAg0(YKHO):\n vIwR = ''\n kgDL = [('ID', YKHO.id), ('QR', YKHO.is_query), ('OPCODE', YKHO.opcode), ('AuthAns', YKHO.authorative), ('Trunc', YKHO.t... | [
"0.80575264",
"0.80177784",
"0.8000856",
"0.79189366",
"0.78466594",
"0.7784797",
"0.7784797",
"0.777281",
"0.774248",
"0.7671128",
"0.76655143",
"0.76512057",
"0.76512057",
"0.76512057",
"0.76481766",
"0.7634656",
"0.76262903",
"0.76233846",
"0.7614807",
"0.7612613",
"0.7609... | 0.0 | -1 |
Gets all associated properties including those of base class (sorted by name). | def eRRX(YKHO):
if YKHO.__all_properties is None:
YKHO.__all_properties = list(YKHO.properties)
if YKHO.base is not None:
YKHO.__all_properties += YKHO.base.all_properties
return YKHO.__all_properties | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JaaY(Emd4):\n eRRX = {}\n lhy8 = []\n for r8hN in dir(Emd4):\n XP5J = getattr(Emd4, r8hN)\n if isinstance(XP5J, KG2U):\n lhy8.append((r8hN, XP5J))\n lhy8 = sorted(lhy8, key=lambda XP5J: XP5J[1].instance_idx)\n for YWBp, XTr4 in lhy8:\n SQJw = XTr4.name\n if... | [
"0.7434012",
"0.7347468",
"0.7152891",
"0.69673955",
"0.69664246",
"0.6934562",
"0.6903995",
"0.6837637",
"0.6764223",
"0.67457515",
"0.6694425",
"0.66932166",
"0.66529924",
"0.658903",
"0.6523604",
"0.6418262",
"0.64152855",
"0.6400289",
"0.6298642",
"0.6275843",
"0.62598246... | 0.6865479 | 7 |
Name of an Azure resource group. | def TRLE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'resource_group_name') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'resource_group_name')",
"def TRLE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'reso... | [
"0.84671307",
"0.84671307",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757",
"0.81860757"... | 0.78239733 | 55 |
The location of the resource group to which the resource belongs. | def Rci7(YKHO) -> qe4Y.Output[h8nf[str]]:
return qe4Y.get(YKHO, 'location') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vBTQ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group')",
"def vBTQ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group')",
"def vBTQ(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'resource_group')",
"def vBTQ(YKHO) -> h8nf[qe4Y.Input[str]]:\n... | [
"0.67344934",
"0.67344934",
"0.67344934",
"0.67344934",
"0.67344934",
"0.6716592",
"0.6705839",
"0.6514229",
"0.6514229",
"0.6486082",
"0.64482415",
"0.64482415",
"0.64482415",
"0.64482415",
"0.64482415",
"0.64482415",
"0.64482415",
"0.64482415",
"0.64482415",
"0.64482415",
"... | 0.0 | -1 |
The type of Azure resource. | def type(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'type') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n return qe4Y.get(YKHO, 'resource_type')",
"def Qjbs(YKHO) -> str:\n ... | [
"0.78707385",
"0.78707385",
"0.78707385",
"0.78707385",
"0.78707385",
"0.78707385",
"0.78707385",
"0.78707385",
"0.78707385",
"0.78707385",
"0.78707385",
"0.78707385",
"0.78707385",
"0.78707385",
"0.77624637",
"0.7736984",
"0.7736984",
"0.7626633",
"0.760147",
"0.75725466",
"... | 0.0 | -1 |
Constructor for UsageVariable. Generally initialized for you. Warning For use by interface drivers only (and rarely at that). Do not use in a written usage example. | def FIMM(YKHO, mWFP: str, i_PC: Callable[[], Any], ZRB_: T_VAR_TYPES, e2h5: 'Usage'):
if not callable(i_PC):
raise TypeError('value for `factory` should be a `callable`, recieved %s' % (type(i_PC),))
if ZRB_ not in YKHO.VAR_TYPES:
raise ValueError('value for `var_type` should be one of %r, recei... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, *qIxc):\n VQ6Z = qG0X.new_UsageProperty(*qIxc)\n try:\n YKHO.this.append(VQ6Z)\n except ONrU.Exception:\n YKHO.this = VQ6Z",
"def FIMM(Ro_8, *, pan_: Optional[str]=None, RpV5: Optional[str]=None):\n if pan_ is not None:\n qe4Y.set(Ro_8, 'target', pan_)\n if RpV5... | [
"0.7059933",
"0.70481896",
"0.69864374",
"0.6916773",
"0.68812764",
"0.6615211",
"0.6609879",
"0.6570054",
"0.6566267",
"0.6566267",
"0.6566267",
"0.64917946",
"0.64222676",
"0.63875324",
"0.63803875",
"0.6324294",
"0.6312965",
"0.6299645",
"0.62909764",
"0.6289633",
"0.62791... | 0.62620336 | 22 |
Returns True iff the given ground atom or ground atom index is part of this partition. | def FYXB(YKHO, WhQ6):
if isinstance(WhQ6, d8lQ):
return WhQ6 in YKHO.gndatoms
elif type(WhQ6) is int:
return YKHO.mrf.gndatom(WhQ6) in YKHO
else:
raise Exception('Invalid type of atom: %s' % type(WhQ6)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HjS4(YKHO, SLBp: v.Vertex) -> bool:\n return SLBp is YKHO.vertex_a or SLBp is YKHO.vertex_b",
"def vfCm(YKHO, wHeb: CellIndex) -> bool:\n return 0 <= wHeb.x < YKHO.width and 0 <= wHeb.y < YKHO.height",
"def W32_(d6pt, jHsn, pvd3):\n return 0 <= d6pt[0] < jHsn and 0 <= d6pt[1] < pvd3",
"def sjXf(... | [
"0.64108926",
"0.6324369",
"0.6295398",
"0.6231279",
"0.62111044",
"0.615255",
"0.61038667",
"0.60973054",
"0.603938",
"0.6026314",
"0.60224175",
"0.60091674",
"0.60062605",
"0.5998302",
"0.59871435",
"0.5969792",
"0.5961914",
"0.5942714",
"0.5926079",
"0.5896798",
"0.5894104... | 0.6712866 | 0 |
Return the directory where env files are located. If none can be found , None is returned. The environment file ``SPARKS_ENV_DIR`` must be defined prior to running this function. It will be scanned and run through ``os.path.expand()`` functions if needed. | def Haea():
B2cM = Hy7s.environ.get('SPARKS_ENV_DIR', None)
if B2cM is None:
S0MI.warning('$SPARKS_ENV_DIR is not defined, will not push any environment file to any remote host.')
return
if u'~' in B2cM:
B2cM = Hy7s.path.expanduser(B2cM)
if u'$' in B2cM:
B2cM = Hy7s.path.... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o_jL(YKHO):\n return Hy7s.path.join(YKHO._dir, 'env')",
"def o_jL(YKHO):\n return YKHO._env_dir",
"def vj0M(pZU6):\n h1Ur = FanV()\n for GHK2 in ('{0}.env'.format(sEAN.host_string.lower()), '{0}_{0}.env'.format(h1Ur, sEAN.environment), '{0}.env'.format(sEAN.environment), 'default.env'):\n ... | [
"0.7357801",
"0.72817576",
"0.68237996",
"0.67792684",
"0.6728005",
"0.6707099",
"0.66062695",
"0.6606244",
"0.6582558",
"0.6576107",
"0.65739703",
"0.65039676",
"0.6470385",
"0.6468332",
"0.6467687",
"0.6423306",
"0.6400945",
"0.63826925",
"0.6377193",
"0.634025",
"0.6252219... | 0.81840366 | 0 |
Run the Django syncdb management command. | def TUhc():
with wuK1():
with o1Kh(sEAN.root):
iXC1('chmod 755 manage.py', quiet=ObjY)
bver('syncdb --noinput') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TUhc():\n iXC1('cd /home/dsadmin/MHADjango/datasite')\n iXC1('python manage.py syncdb')",
"def USZ9():\n iXC1('cd %s; python manage.py migrate --settings=%s' % (sEAN.code_root, sEAN.settings_file))",
"def USZ9():\n SwBK = Hy7s.path.join(sEAN.git_working_dir, 'project', 'manage.py')\n l3AA = ... | [
"0.8051587",
"0.7297092",
"0.7230785",
"0.7165943",
"0.7156959",
"0.71253717",
"0.6971249",
"0.69679517",
"0.6851603",
"0.68388766",
"0.6831734",
"0.6815097",
"0.6777328",
"0.6737363",
"0.67262924",
"0.6723215",
"0.6723215",
"0.6721556",
"0.67148465",
"0.6694253",
"0.6631263"... | 0.81914014 | 0 |
Test if wrong type raises Type error. | def Nahv(YKHO):
@Hhz4(a=int)
def eHNT(jzdc):
pass
with YKHO.assertRaises(TypeError):
eHNT(42.3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def odp5(kN9s):\n return isinstance(kN9s, YDvP)",
"def NNNi(YEnM, cpuL, NvjT):\n if not isinstance(YEnM, cpuL):\n raise TypeError(\"'{}' must be {}, not {}\".format(NvjT, cpuL.__name__, YEnM.__class__.__name__))",
"def bS9d(YKHO):\n raise TypeError('___Failure1')",
"def ZNxs(wGO4):\n roDp ... | [
"0.7654778",
"0.7515007",
"0.7323389",
"0.7272839",
"0.72727215",
"0.72608495",
"0.72208023",
"0.7147261",
"0.7119511",
"0.71021575",
"0.70923233",
"0.7084037",
"0.7078021",
"0.7061889",
"0.7053955",
"0.70492065",
"0.7006027",
"0.6968695",
"0.6949337",
"0.69290763",
"0.690940... | 0.0 | -1 |
Return a list of the files in dir that match pattern pat. If regexp is true, pat is assumed to be a regular expression, otherwise, it's assumed to be a shellstyle file matching pattern | def W2Kg(lvR3, dir='.', HlGW=False):
import fnmatch
if not HlGW:
lvR3 = fnmatch.translate(lvR3)
return [eHNT for eHNT in Hy7s.listdir(dir) if ZbWC.match(lvR3, eHNT)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsWh(eHKs, HlGW):\n iumf = []\n for IznC in U9eF(eHKs):\n VqRE = gzes(eHKs, IznC)\n if EFYe(VqRE) and HlGW.match(IznC) is not None:\n iumf.append(IznC)\n return iumf",
"def _9EY(ZQjS, HlGW='.*'):\n import os\n import re\n if not os.path.exists(ZQjS):\n return... | [
"0.7803386",
"0.7662734",
"0.74654967",
"0.7442055",
"0.7250113",
"0.7164501",
"0.7148596",
"0.70965654",
"0.6780903",
"0.67743915",
"0.67735755",
"0.6745028",
"0.6734602",
"0.6725678",
"0.67064595",
"0.66983587",
"0.668092",
"0.66717136",
"0.66664314",
"0.6665617",
"0.664284... | 0.8638049 | 0 |
Check to see if matches and returns the filename without the extension if so. | def JgkM(Ux0P: str, YBcr: str) -> str:
tk5Y, Va2z = Hy7s.path.splitext(Ux0P)
if Va2z != f'.{YBcr}':
return None
return tk5Y | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t5OZ(qaEx):\n return gLx5(aPr_(qaEx))[0]",
"def g_2H(YKHO, qIxc):\n lQ3t = ZbWC.compile('(\\\\w*\\\\.\\\\w*)')\n kUBT = lQ3t.match(qIxc)\n if kUBT:\n return kUBT.group()\n else:\n return None",
"def loi_(FYKK: str):\n return Hy7s.path.splitext(FYKK)[0]",
"def icfS(pmON):\n... | [
"0.73839474",
"0.73255",
"0.730605",
"0.7262292",
"0.7257294",
"0.718811",
"0.7143555",
"0.7107674",
"0.70971465",
"0.7083199",
"0.70736444",
"0.7042841",
"0.70259506",
"0.6997061",
"0.6983438",
"0.69812405",
"0.6973798",
"0.69630325",
"0.69602466",
"0.69508207",
"0.6946203",... | 0.696207 | 18 |
Checks if a list of points is nondecreasing | def ANNy(T6S7):
if len(T6S7) <= 1:
return True
WhY1 = iter(T6S7)
dlDK(WhY1)
khtY = seET.ge
return all(Hs6x.starmap(khtY, zip(WhY1, T6S7))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iIvP(aPd6):\n return oyIN.all([WKvO <= LVAh for WKvO, LVAh in zip(aPd6, aPd6[1:])])",
"def CRpE(OxJJ):\n return all((WKvO <= LVAh for WKvO, LVAh in Zu14(OxJJ)))",
"def F2aN(aPd6):\n return oyIN.all([WKvO >= LVAh for WKvO, LVAh in zip(aPd6, aPd6[1:])])",
"def _H6l(mSrU):\n XVAW = float('inf')\... | [
"0.7766865",
"0.75165814",
"0.7512689",
"0.7426046",
"0.7315453",
"0.71733326",
"0.7070817",
"0.7026513",
"0.7011382",
"0.69183624",
"0.690432",
"0.68039495",
"0.67366153",
"0.67366153",
"0.6684582",
"0.66631466",
"0.6622933",
"0.6584241",
"0.6577019",
"0.65765727",
"0.656862... | 0.7413563 | 4 |
View decorator that redirects anonymous users to the login page. | def uKii(tTee):
@xBlr.wraps(tTee)
def xatG(**B2fa):
if Oa1e.user is None:
return vKnz(nKyW('auth.login'))
return tTee(**B2fa)
return xatG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def uKii(tTee):\n\n @xBlr.wraps(tTee)\n def xatG(**B2fa):\n if Oa1e.user is None:\n return vKnz(nKyW('auth.login'))\n return tTee(**B2fa)\n return xatG",
"def uKii(tTee):\n\n @xBlr.wraps(tTee)\n def xatG(**B2fa):\n if Oa1e.user is None:\n return vKnz(nKyW... | [
"0.76959246",
"0.7691888",
"0.7691888",
"0.7691888",
"0.7691888",
"0.76489013",
"0.76430815",
"0.7473458",
"0.7434521",
"0.7413834",
"0.73996776",
"0.7338352",
"0.7324302",
"0.7322938",
"0.73178047",
"0.72500485",
"0.72279483",
"0.7197466",
"0.7194805",
"0.7155076",
"0.714789... | 0.7674149 | 5 |
If a user id is stored in the session, load the user object from the database into ``g.user``. This will be executed everytime a route (appinstance) is called upon! | def z2KV():
uJjO = cuiw.get('user_id')
if uJjO is None:
Oa1e.user = None
else:
Oa1e.user = GGod().execute('SELECT * FROM user WHERE id = ?', (uJjO,)).fetchone()
Oa1e.samples = GGod().execute('SELECT s.id, author_id, samplename, fabricated, location, previously, description FROM sampl... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lyxB():\n if cuiw.get('user_id'):\n Oa1e.user = cuiw.get('user_id')\n else:\n Oa1e.user = None",
"def z2KV():\n uJjO = cuiw.get('user_id')\n if uJjO is None:\n Oa1e.user = None\n else:\n Oa1e.user = GGod().execute('SELECT * FROM user WHERE id = ?', (uJjO,)).fetchone... | [
"0.83128947",
"0.8281402",
"0.8281402",
"0.82633865",
"0.8253016",
"0.82406205",
"0.81820387",
"0.80354255",
"0.79834515",
"0.77818865",
"0.7704456",
"0.7644592",
"0.7639431",
"0.7621135",
"0.75360805",
"0.7403978",
"0.74010694",
"0.7203901",
"0.7203901",
"0.7187286",
"0.7184... | 0.0 | -1 |
Builds the string pattern "{OUTFN}{PAGE_RANGE}.pdf". This is necessary if one wants to extract multiple page ranges and does not join the single results. | def VREH(tLDc):
if len(tLDc.split('.')) >= 2:
s2mk = tLDc.split('.')
_RR0 = ''.join(s2mk[0:len(s2mk) - 1])
return _RR0 + '-%s.pdf'
else:
return tLDc + '-%s.pdf' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def r6Fk(mRuT: PdfFileReader, XT48: list) -> DZGm:\n hlel = DZGm()\n for yKcO, Os4s in XT48:\n for YRbF in range(yKcO, Os4s + 1):\n hlel.addPage(mRuT.getPage(YRbF))\n return hlel",
"def oSL0(eZ_W, b5st, PcZo):\n hlel = DZGm()\n M3wn = dNqu(open(eZ_W, 'rb'))\n UXEK = open(PcZo,... | [
"0.6438688",
"0.6092205",
"0.548889",
"0.5483366",
"0.5422117",
"0.5303025",
"0.5252035",
"0.52056384",
"0.5071857",
"0.5065517",
"0.504115",
"0.49316642",
"0.4924149",
"0.48940915",
"0.48720556",
"0.48428357",
"0.48171723",
"0.47630736",
"0.47344983",
"0.472143",
"0.4712251"... | 0.67982596 | 0 |
Define a recurrent convolutional model in Keras 1.2.2 | def HPKz():
from keras.models import Sequential
from keras.layers import Dense, Dropout, Activation
from keras.layers import Embedding
from keras.layers import LSTM
from keras.layers import Convolution1D, MaxPooling1D
g2Ui = Sequential()
g2Ui.add(Embedding(20000, 128, input_length=100))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cc7Y(YKHO):\n if YKHO.n_channels == 0:\n WKvO = X6a0(shape=(YKHO.n_frames_cnn, YKHO.n_freq_cnn), dtype='float32', name='input')\n LVAh = Zlsf(lambda WKvO: nMvt.expand_dims(WKvO, -1), name='lambda')(WKvO)\n else:\n WKvO = X6a0(shape=(YKHO.n_frames_cnn, YKHO.n_freq_cnn, YKHO.n_channels... | [
"0.6926671",
"0.680299",
"0.6707002",
"0.66890013",
"0.6600529",
"0.65985847",
"0.6579889",
"0.6575086",
"0.6564013",
"0.6560308",
"0.65578645",
"0.65577763",
"0.6548082",
"0.65413",
"0.6533254",
"0.6526297",
"0.65175873",
"0.6508308",
"0.6506705",
"0.6467205",
"0.64659804",
... | 0.0 | -1 |
Gets the create_time of this NiaapiApicFieldNotice. The time when this managed object was created. | def x7vo(YKHO):
return YKHO._create_time | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IWVZ(YKHO):\n return YKHO._created",
"def IWVZ(YKHO):\n return YKHO.__created_time",
"def IWVZ(YKHO):\n return YKHO.__created_time",
"def x7vo(YKHO):\n return qcWV.fromisoformat(YKHO._gcp_instance.get('creationTimestamp'))",
"def x7vo(YKHO) -> str:\n return qe4Y.get(YKHO, 'create_time')"... | [
"0.8007817",
"0.7934804",
"0.7934804",
"0.78514135",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
"0.78104484",
... | 0.8014596 | 1 |
Gets the domain_group_moid of this NiaapiApicFieldNotice. The DomainGroup ID for this managed object. | def MGEG(YKHO):
return YKHO._domain_group_moid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def hE03(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_id')",
"def rfWX(YKHO):\n return YKHO.__group_id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._group_id",
"def hE03(YKHO):\n return YKHO._gr... | [
"0.6398054",
"0.6398054",
"0.63634956",
"0.6274227",
"0.6274227",
"0.6274227",
"0.6274227",
"0.6274227",
"0.6274227",
"0.6214519",
"0.6196236",
"0.6196236",
"0.6126506",
"0.60108656",
"0.6010311",
"0.6002273",
"0.5982761",
"0.596961",
"0.596961",
"0.596961",
"0.596961",
"0.... | 0.7726124 | 1 |
Sets the domain_group_moid of this NiaapiApicFieldNotice. The DomainGroup ID for this managed object. | def MGEG(YKHO, MGEG):
YKHO._domain_group_moid = MGEG | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MGEG(YKHO):\n return YKHO._domain_group_moid",
"def MGEG(YKHO):\n return YKHO._domain_group_moid",
"def MGEG(YKHO):\n return YKHO._domain_group_moid",
"def MGEG(YKHO):\n return YKHO._domain_group_moid",
"def MGEG(YKHO):\n return YKHO._domain_group_moid",
"def scR9(YKHO, uOe2):\n YKH... | [
"0.679806",
"0.679806",
"0.679806",
"0.679806",
"0.679806",
"0.60378015",
"0.580711",
"0.5651016",
"0.5651016",
"0.5651016",
"0.5651016",
"0.5651016",
"0.5651016",
"0.5651016",
"0.5633576",
"0.5596588",
"0.557722",
"0.55404335",
"0.5497073",
"0.53670424",
"0.5345095",
"0.53... | 0.8026125 | 1 |
Gets the moid of this NiaapiApicFieldNotice. The unique identifier of this Managed Object instance. | def JCpK(YKHO):
return YKHO._moid | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kq_D(YKHO):\n return YKHO._field_notice_id",
"def BXIp(YKHO):\n if YKHO._objectId is None:\n lhy8 = YKHO.getProperties()\n YKHO._objectId = Cl27(lhy8['cmis:objectId'])\n return YKHO._objectId",
"def MtnJ(YKHO):\n if 'omim_ids' in YKHO.record:\n return YKHO.record['omim_id']... | [
"0.72045004",
"0.68872046",
"0.67334825",
"0.6554102",
"0.6505788",
"0.65030074",
"0.63795936",
"0.63590217",
"0.6343129",
"0.6327328",
"0.6327328",
"0.6327328",
"0.6327328",
"0.63138294",
"0.6301495",
"0.62980855",
"0.62980855",
"0.62620395",
"0.62599576",
"0.62582827",
"0.6... | 0.0 | -1 |
Sets the object_type of this NiaapiApicFieldNotice. The fullyqualified type of this managed object, i.e. the class name. This property is optional. The ObjectType is implied from the URL path. If specified, the value of objectType must match the class name specified in the URL path. | def vcaS(YKHO, vcaS):
YKHO._object_type = vcaS | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vcaS(YKHO, vcaS):\n if vcaS is None:\n raise ValueError('Invalid value for `object_type`, must not be `None`')\n YKHO._object_type = vcaS",
"def vcaS(YKHO, vcaS):\n if vcaS is None:\n raise ValueError('Invalid value for `object_type`, must not be `None`')\n YKHO._object_type = vcaS"... | [
"0.7845143",
"0.7602731",
"0.602701",
"0.59420055",
"0.585627",
"0.5833992",
"0.58315235",
"0.58315235",
"0.58315235",
"0.58315235",
"0.581832",
"0.5805898",
"0.58040553",
"0.58040553",
"0.58040553",
"0.58040553",
"0.58040553",
"0.5776744",
"0.5771448",
"0.5771448",
"0.576689... | 0.77728057 | 3 |
Gets the shared_scope of this NiaapiApicFieldNotice. Intersight provides prebuilt workflows, tasks and policies to end users through global catalogs. Objects that are made available through global catalogs are said to have a 'shared' ownership. Shared objects are either made globally available to all end users or restr... | def BYXS(YKHO):
return YKHO._shared_scope | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BBxk(YKHO):\n return YKHO.scopes[0]",
"def gYei(YKHO):\n return YKHO.__class__._global_scopes.get(YKHO.__class__, {})",
"def uC2a(YKHO):\n if YKHO.__scopes is not None:\n return YKHO.__scopes\n return YKHO.__common_info.scopes",
"def nwSB(YKHO):\n if 'isShared' in YKHO._prop_dict:\n... | [
"0.5638813",
"0.5567607",
"0.55479455",
"0.5536611",
"0.5433775",
"0.54163194",
"0.54163194",
"0.54163194",
"0.54163194",
"0.54163194",
"0.53640443",
"0.53583163",
"0.53392947",
"0.5336535",
"0.52696824",
"0.521881",
"0.51823974",
"0.51668316",
"0.51668316",
"0.51668316",
"0.... | 0.6745754 | 0 |
Gets the tags of this NiaapiApicFieldNotice. The array of tags, which allow to add key, value metadata to managed objects. | def dJ1p(YKHO):
return YKHO._tags | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qvDz(YKHO):\n return YKHO.metadata['tags']",
"def Qwli(YKHO):\n uFSR = YKHO.get_annotations()\n return uFSR.get('tags', [])",
"def dJ1p(YKHO):\n return YKHO._get('tags')",
"def Qwli(YKHO):\n YKHO._refresh_cache()\n return YKHO._msg.tags",
"def Qwli(YKHO):\n YKHO._refresh_cache()\n ... | [
"0.685023",
"0.6674783",
"0.6653503",
"0.66158116",
"0.66158116",
"0.6570405",
"0.6570405",
"0.6570405",
"0.6543512",
"0.6485913",
"0.6482963",
"0.6465904",
"0.64648813",
"0.6455003",
"0.6443323",
"0.64098555",
"0.64098555",
"0.64098555",
"0.64098555",
"0.64098555",
"0.640985... | 0.6272826 | 43 |
Gets the version_context of this NiaapiApicFieldNotice. The versioning info for this managed object. | def jLsN(YKHO):
return YKHO._version_context | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bFMd(YKHO):\n return YKHO._version_info",
"def kKp6(YKHO):\n return YKHO._version_control_information",
"def fwvH(YKHO):\n return e0lz.checkResultString(YKHO._lib().indigoVersionInfo())",
"def WVFt(YKHO):\n A97Q = WX9n(YKHO)\n r9bb = MuCi(YKHO.__of__(A97Q), 'REQUEST', None) or _lv4()\n ... | [
"0.681297",
"0.64565045",
"0.6158555",
"0.61216795",
"0.59710336",
"0.59707093",
"0.5953221",
"0.59484637",
"0.59484637",
"0.5907004",
"0.5892562",
"0.5874649",
"0.5874649",
"0.5874649",
"0.5874649",
"0.5864771",
"0.5847492",
"0.5841251",
"0.58116126",
"0.5806347",
"0.5803733... | 0.7220607 | 0 |
Sets the version_context of this NiaapiApicFieldNotice. The versioning info for this managed object. | def jLsN(YKHO, jLsN):
YKHO._version_context = jLsN | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dPFR(YKHO, DpZH):\n YKHO.version = DpZH",
"def jLsN(YKHO):\n return YKHO._version_context",
"def jLsN(YKHO):\n return YKHO._version_context",
"def jLsN(YKHO):\n return YKHO._version_context",
"def jLsN(YKHO):\n return YKHO._version_context",
"def jLsN(YKHO):\n return YKHO._version_c... | [
"0.6202663",
"0.6201022",
"0.6201022",
"0.6201022",
"0.6201022",
"0.6201022",
"0.61623925",
"0.60788953",
"0.60506666",
"0.60506666",
"0.60484654",
"0.60472125",
"0.60415345",
"0.60415345",
"0.60415345",
"0.60415345",
"0.60415345",
"0.60415345",
"0.60415345",
"0.60415345",
"0... | 0.72299105 | 0 |
Gets the ancestors of this NiaapiApicFieldNotice. The array containing the MO references of the ancestors in the object containment hierarchy. | def JZlq(YKHO):
return YKHO._ancestors | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZlq(YKHO):\n JZlq = []\n Oa1e = YKHO.parent\n while Oa1e:\n JZlq.append(Oa1e)\n Oa1e = Oa1e.parent\n return JZlq",
"def JZlq(YKHO):\n YAiU = [YKHO]\n if YKHO.parent is not None:\n YAiU.extend(YKHO.parent.ancestors())\n return YAiU",
"def JZlq(YKHO):\n return YK... | [
"0.7246965",
"0.71850497",
"0.7072099",
"0.70567435",
"0.68692356",
"0.6803179",
"0.6798798",
"0.6692707",
"0.65677893",
"0.6491144",
"0.6346759",
"0.63272077",
"0.63086593",
"0.62757546",
"0.62106824",
"0.62057716",
"0.62009543",
"0.615035",
"0.6146546",
"0.6070165",
"0.6046... | 0.69105375 | 4 |
Sets the ancestors of this NiaapiApicFieldNotice. The array containing the MO references of the ancestors in the object containment hierarchy. | def JZlq(YKHO, JZlq):
YKHO._ancestors = JZlq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JZlq(YKHO):\n JZlq = []\n Oa1e = YKHO.parent\n while Oa1e:\n JZlq.append(Oa1e)\n Oa1e = Oa1e.parent\n return JZlq",
"def TMRN(YKHO, JZlq=None):\n if not JZlq:\n JZlq = []\n if not YKHO.parent:\n return JZlq\n JZlq.append(YKHO.parent)\n return YKHO.parent.ge... | [
"0.5917778",
"0.58998156",
"0.5803514",
"0.57792133",
"0.57792133",
"0.57792133",
"0.57792133",
"0.57792133",
"0.5755728",
"0.5737583",
"0.56847227",
"0.5671463",
"0.5655529",
"0.5620521",
"0.5588903",
"0.5551588",
"0.55368656",
"0.5457528",
"0.5402645",
"0.54021746",
"0.5332... | 0.66683656 | 0 |
Gets the parent of this NiaapiApicFieldNotice. The direct ancestor of this managed object in the containment hierarchy. | def _AKB(YKHO):
return YKHO._parent | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _AKB(YKHO):\n return YKHO._parent",
"def _AKB(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO._parent",
"def PAwq(YKHO):\n return YKHO._parent",
"def _AKB(YKHO):\n if YKHO._parent is... | [
"0.7341459",
"0.7257294",
"0.72518986",
"0.72518986",
"0.72518986",
"0.72518986",
"0.72133744",
"0.7206828",
"0.7184282",
"0.7184282",
"0.7184282",
"0.7182655",
"0.7182606",
"0.71548563",
"0.71403015",
"0.7138319",
"0.71312433",
"0.71310866",
"0.71310866",
"0.7112438",
"0.710... | 0.7212089 | 11 |
Gets the field_notice_desc of this NiaapiApicFieldNotice. Field notice Description. | def IauI(YKHO):
return YKHO._field_notice_desc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def IauI(YKHO, IauI):\n YKHO._field_notice_desc = IauI",
"def t5do(YKHO):\n return YKHO.msg",
"def PSTe(YKHO):\n return YKHO.broker.issue_desc(**{'IssueID': YKHO.IssueID})",
"def JBZA(YKHO):\n return YKHO._message.get('description', None)",
"def t5do(YKHO):\n YKHO._refresh_cache()\n retur... | [
"0.73198074",
"0.65015286",
"0.64092624",
"0.6346224",
"0.63068265",
"0.63068265",
"0.62791884",
"0.62608486",
"0.61566055",
"0.6111827",
"0.6111827",
"0.6111827",
"0.6111827",
"0.6111827",
"0.6111827",
"0.6111827",
"0.6111827",
"0.6111827",
"0.6111827",
"0.6111827",
"0.61118... | 0.8626091 | 0 |
Gets the field_notice_id of this NiaapiApicFieldNotice. Fieldnotice Id of this notice. | def Kq_D(YKHO):
return YKHO._field_notice_id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kq_D(YKHO, Kq_D):\n YKHO._field_notice_id = Kq_D",
"def ZVtQ(YKHO):\n return YKHO._field_id",
"def Kz48(YKHO):\n return YKHO._field_notice_url",
"def _xk9(YKHO):\n return YKHO._custom_field_id",
"def vrsU(YKHO):\n return 'id'",
"def BWFY(YKHO) -> int:\n return YKHO._i_invoice_id",
... | [
"0.6965752",
"0.64416826",
"0.57883406",
"0.578126",
"0.55308574",
"0.5449586",
"0.54473096",
"0.5352402",
"0.5352402",
"0.52278465",
"0.5217186",
"0.5205545",
"0.5200572",
"0.51352197",
"0.5119412",
"0.5104829",
"0.5104829",
"0.51040673",
"0.5052101",
"0.5041767",
"0.5026268... | 0.8710172 | 0 |
Gets the field_notice_url of this NiaapiApicFieldNotice. Field notice URL link to the notice webpage. | def Kz48(YKHO):
return YKHO._field_notice_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kz48(YKHO, Kz48):\n YKHO._field_notice_url = Kz48",
"def Kq_D(YKHO):\n return YKHO._field_notice_id",
"def bD7m(YKHO):\n return YKHO.config.fieldsUrl + '/' + YKHO.name",
"def IauI(YKHO):\n return YKHO._field_notice_desc",
"def Kq_D(YKHO, Kq_D):\n YKHO._field_notice_id = Kq_D",
"def tyU... | [
"0.74933416",
"0.6267163",
"0.56563807",
"0.55760854",
"0.5316632",
"0.53052574",
"0.5230126",
"0.5216073",
"0.51596403",
"0.5074427",
"0.5049993",
"0.5028456",
"0.50122917",
"0.49826542",
"0.49605215",
"0.49380758",
"0.4930014",
"0.49137652",
"0.48986834",
"0.48787314",
"0.4... | 0.87280464 | 0 |
Gets the headline of this NiaapiApicFieldNotice. The headline of this field notice. | def fdRN(YKHO):
return YKHO._headline | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fdRN(YKHO):\n return YKHO.title",
"def fdRN(YKHO):\n return YKHO.title_override or YKHO.obj.headline",
"def ZmFS():\n Mkmy = r_IK.Reddit(user_agent='jana_challenge')\n B2Dn = Mkmy.get_front_page(limit=1)\n m8z6 = next(B2Dn)\n return m8z6.title",
"def bV3u(YKHO, KAOR):\n CBIr = YKHO._... | [
"0.7348947",
"0.70745623",
"0.6397008",
"0.6386156",
"0.6252984",
"0.6134533",
"0.6090867",
"0.6090867",
"0.60804796",
"0.60781956",
"0.60429054",
"0.5881334",
"0.5826791",
"0.5730414",
"0.56934464",
"0.56679213",
"0.56385523",
"0.5594534",
"0.55903125",
"0.55903125",
"0.5590... | 0.77038634 | 0 |
Gets the sw_release of this NiaapiApicFieldNotice. Software Release number for affected versions. | def CQdg(YKHO):
return YKHO._sw_release | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Uz8_():\n return DpZH",
"def tJi2(YKHO) -> str:\n return YKHO.data.get(OVEI.SOFTWARE_VERSION)",
"def Tl0b(YKHO) -> AzJI[int, ...]:\n IksN: AzJI[int, ...] = YKHO._version.release\n return IksN",
"def CzuB(YKHO):\n return YKHO._current.software_rev",
"def OnaK(YKHO):\n if YKHO._productR... | [
"0.6418828",
"0.6193696",
"0.60792947",
"0.60522175",
"0.60347545",
"0.60270137",
"0.5985562",
"0.5901322",
"0.58843917",
"0.58831894",
"0.5795621",
"0.57738256",
"0.57470524",
"0.57072043",
"0.5705717",
"0.56954765",
"0.56909984",
"0.564729",
"0.56348366",
"0.5616859",
"0.55... | 0.66953975 | 0 |
Gets the workaround_url of this NiaapiApicFieldNotice. URL of workaround of this notice. | def ckKi(YKHO):
return YKHO._workaround_url | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kz48(YKHO):\n return YKHO._field_notice_url",
"def ckKi(YKHO, ckKi):\n YKHO._workaround_url = ckKi",
"def DRaH(YKHO):\n return YKHO._fix_issue_html_url",
"def aj64(YKHO):\n return YKHO._migration_issues_url",
"def NJM5(YKHO):\n return YKHO._url_notification",
"def XrM7(YKHO):\n VFBo... | [
"0.68053246",
"0.641292",
"0.5764984",
"0.55840105",
"0.5577789",
"0.5567717",
"0.5440227",
"0.52855337",
"0.5253921",
"0.5240308",
"0.50953096",
"0.5091743",
"0.5087739",
"0.5083605",
"0.50631607",
"0.50257576",
"0.5004896",
"0.5004895",
"0.5004338",
"0.4994898",
"0.49812025... | 0.7980981 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Return a Render Token for this operand. | def _1tc(YKHO, QpfX):
return (YKHO.name, 0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def eOtH(YKHO):\n return _J2v(YKHO)",
"def _1tc(YKHO, eOtH):\n return YKHO.render_map[eOtH.__class__.__name__](eOtH)",
"def eOtH(YKHO):\n return YKHO.lexer.token()",
"def eOtH(YKHO):\n U5bT = YKHO.lexer.token()\n return U5bT",
"def eOtH(YKHO):\n return YKHO.lexer.token",
"def eOtH(YKHO)... | [
"0.7077117",
"0.70293677",
"0.6923795",
"0.6879839",
"0.67468345",
"0.6532538",
"0.6532538",
"0.65001893",
"0.6470728",
"0.6417202",
"0.6417202",
"0.6417202",
"0.6417202",
"0.6373359",
"0.6373359",
"0.6373359",
"0.6373359",
"0.6346198",
"0.63089126",
"0.62848306",
"0.6264744"... | 0.0 | -1 |
return list of sublists by removing one item each time | def rkvB(yv6U):
Mkmy = []
for ZfUD in yv6U:
KCHu = list(yv6U)
KCHu.remove(ZfUD)
KCHu.sort()
Mkmy.append(tuple(KCHu))
return Mkmy | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kSdD(bCES, ZfUD):\n return [YRbF for YRbF in bCES if YRbF != ZfUD]",
"def wcBE(IqQl):\n FeAw = []\n for WKvO in IqQl:\n FeAw.append([LVAh for LVAh in IqQl if LVAh != WKvO])\n return FeAw",
"def M4p5(aPd6, em9o):\n return [ZfUD for YRbF, ZfUD in enumerate(aPd6) if YRbF not in em9o]",
... | [
"0.70396525",
"0.6806693",
"0.66624314",
"0.66409695",
"0.66316545",
"0.6616725",
"0.6526536",
"0.6519819",
"0.6511091",
"0.6510401",
"0.6504379",
"0.64455473",
"0.6442324",
"0.6387075",
"0.63804704",
"0.6366035",
"0.63374376",
"0.631978",
"0.6318209",
"0.62884843",
"0.627232... | 0.731765 | 0 |
Return the perfile header as a string. | def Fu0p(YKHO, KtbH=None):
JRYC = YKHO.date_time
ph5q = JRYC[0] - 1980 << 9 | JRYC[1] << 5 | JRYC[2]
PfE2 = JRYC[3] << 11 | JRYC[4] << 5 | JRYC[5] // 2
if YKHO.flag_bits & 8:
zXJc = UnsC = mfF2 = 0
else:
zXJc = YKHO.CRC
UnsC = YKHO.compress_size
mfF2 = YKHO.file_size
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TGp9(YKHO) -> str:\n o8Kj = ''\n bn1r = {'bgcolor': YKHO.HEADER_BGCOLOR, 'width': YKHO.HEADER_MIN_WIDTH, 'cellpadding': YKHO.HEADER_CELL_PADDING}\n for G1Hx, Ty9i in bn1r.items():\n o8Kj += f'{G1Hx}=\"{Ty9i}\" '\n return YKHO.HEADER_TPLT.format(attrs=o8Kj, field_name=YKHO.tablename.capitaliz... | [
"0.764471",
"0.7425864",
"0.73287463",
"0.7153699",
"0.713961",
"0.71252555",
"0.7045553",
"0.70419675",
"0.7041229",
"0.7037088",
"0.70349985",
"0.70115256",
"0.69831866",
"0.6937669",
"0.6929971",
"0.692848",
"0.6926452",
"0.6918801",
"0.6873425",
"0.6873425",
"0.6873425",
... | 0.0 | -1 |
Sets the password_strategy of this Plan. | def xoZv(YKHO, xoZv):
BbPm = ['custom', 'random_one', 'random_all']
if xoZv not in BbPm:
raise ValueError('Invalid value for `password_strategy` ({0}), must be one of {1}'.format(xoZv, BbPm))
YKHO._password_strategy = xoZv | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m_qJ(YKHO, jTXt):\n YKHO._password = jTXt",
"def PnS7(YKHO, jTXt):\n YKHO._password = jTXt",
"def PnS7(YKHO, jTXt):\n YKHO.password = jTXt",
"def m_qJ(YKHO, jTXt):\n uC8k = GPtr.get('bisque.login.password', 'freetext')\n nol3 = HWrK.get(uC8k, gicY)\n jTXt = nol3.create_password(jTXt)\n ... | [
"0.69786686",
"0.6950303",
"0.6929786",
"0.6919874",
"0.6882054",
"0.68816584",
"0.68684876",
"0.68655807",
"0.6846754",
"0.6812261",
"0.6770873",
"0.6770873",
"0.6770873",
"0.6770873",
"0.6770873",
"0.6770873",
"0.6770873",
"0.6770873",
"0.6770873",
"0.6770873",
"0.6770873",... | 0.80330765 | 0 |
Sets the password_rules of this Plan. | def NYLU(YKHO, NYLU):
if NYLU is not None and len(NYLU) > 2048:
raise ValueError('Invalid value for `password_rules`, length must be less than or equal to `2048`')
if NYLU is not None and len(NYLU) < 1:
raise ValueError('Invalid value for `password_rules`, length must be greater than or equal to... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zwfb(YKHO, CyXm):\n for jTXt in CyXm:\n with YKHO.subTest(password=jTXt):\n YKHO.user1.password = jTXt",
"def G3s8(YKHO, r8FF, Y4bG=12):\n vhgk = vT87(r8FF, Y4bG)\n if isinstance(vhgk, jKi7.binary_type):\n vhgk = T_Uj.decode(vhgk, 'utf-8')\n YKHO.password = vhgk",
"def ... | [
"0.62865627",
"0.6281363",
"0.6260912",
"0.6204497",
"0.61790884",
"0.6140556",
"0.60627574",
"0.60214084",
"0.60138613",
"0.60048413",
"0.594227",
"0.5939633",
"0.5853351",
"0.58444124",
"0.5840546",
"0.57759655",
"0.5702798",
"0.56972885",
"0.56724405",
"0.5667772",
"0.5662... | 0.7425983 | 0 |
Sets the comment of this Plan. | def aM_I(YKHO, aM_I):
YKHO._comment = aM_I | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TDCb(YKHO, aM_I):\n YKHO.options['comment'] = aM_I",
"def aM_I(YKHO, aM_I):\n YKHO._comment = aM_I",
"def TDCb(YKHO, aM_I):\n YKHO.assert_active()\n YKHO._state.comment = aM_I",
"def TDCb(YKHO, aM_I):\n YKHO._current_frame.comment = aM_I",
"def aM_I(YKHO, aM_I):\n try:\n YKHO._... | [
"0.83294684",
"0.81742936",
"0.80795383",
"0.80041367",
"0.7832248",
"0.7832248",
"0.77029",
"0.75983596",
"0.75665313",
"0.7476032",
"0.73548585",
"0.7319857",
"0.7252158",
"0.7214423",
"0.7199169",
"0.70681465",
"0.69796586",
"0.6967389",
"0.69466823",
"0.6906377",
"0.67115... | 0.8140792 | 6 |
Sets the date_updated of this Plan. | def M7nd(YKHO, M7nd):
YKHO._date_updated = M7nd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def s4tG(YKHO, s4tG):\n YKHO._updated_date = s4tG",
"def LSE9(YKHO, LSE9: date... | [
"0.79226476",
"0.79226476",
"0.79226476",
"0.79226476",
"0.79226476",
"0.7797903",
"0.717418",
"0.7165122",
"0.7165122",
"0.7165122",
"0.7165122",
"0.7165122",
"0.7165122",
"0.70399475",
"0.68381006",
"0.6799668",
"0.6799668",
"0.6799668",
"0.6799668",
"0.6799668",
"0.6799668... | 0.814492 | 1 |
Sets the created_by of this Plan. | def tC0c(YKHO, tC0c):
if tC0c is not None and len(tC0c) < 1:
raise ValueError('Invalid value for `created_by`, length must be greater than or equal to `1`')
YKHO._created_by = tC0c | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._created_by = tC0c",
"def tC0c(YKHO, tC0c):\n YKHO._cr... | [
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.85758084",
"0.84513766",
"0.84513766",
"0.79219097",
"0.7509713",... | 0.78824794 | 20 |
Sets the get_password_strategy_display of this Plan. | def vxtA(YKHO, vxtA):
YKHO._get_password_strategy_display = vxtA | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HXZH(YKHO):\n if YKHO.password_shower.isChecked():\n YKHO.password.setEchoMode(YKHO.password.Normal)\n else:\n YKHO.password.setEchoMode(YKHO.password.Password)",
"def xoZv(YKHO, xoZv):\n BbPm = ['custom', 'random_one', 'random_all']\n if xoZv not in BbPm:\n raise ValueError(... | [
"0.6029576",
"0.5559237",
"0.5515902",
"0.5354873",
"0.53189385",
"0.5317266",
"0.5217496",
"0.5181521",
"0.5148359",
"0.50872487",
"0.50574476",
"0.5050534",
"0.5010453",
"0.4984821",
"0.49738154",
"0.49677324",
"0.4944964",
"0.4943982",
"0.49431685",
"0.492055",
"0.49171677... | 0.8957804 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return CgYo.pformat(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.83920443",
"0.83544874",
"0.8294375",
"0.8131804",
"0.8114275",
"0.8099284",
"0.8098424",
"0.8097017",
"0.8097017",
"0.80916125",
"0.80916125",
"0.80916125",
"0.80916125",
"0.8084362",
"0.8084362",
"0.8084362",
"0.8084362",
"0.8084362",
"0.80659354",
"0.805918",
"0.8056744... | 0.0 | -1 |
Modify the PV output metadata and PV output power dataframes in place to only keep systems which are present in both data sources. | def DjJx(tM7I, aDQI):
YS8F = oyIN.setdiff1d(tM7I.index, aDQI.columns)
bkM6 = oyIN.setdiff1d(aDQI.columns, tM7I.index)
aDQI.drop(columns=bkM6, inplace=True)
tM7I.drop(index=YS8F, inplace=True)
return | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mmxv(YKHO, hHIu, klMZ):\n U3lI = laXl.current_process().name\n bo34.info(U3lI + ' Diffing volatility output')\n U5bT = {}\n for LYOs in hHIu:\n hlel = {}\n try:\n if LYOs not in klMZ:\n U5bT[LYOs] = 'Error: Dirty memory image did not have analysis for plugin ... | [
"0.5729145",
"0.56694794",
"0.5596898",
"0.5479846",
"0.5376153",
"0.5365348",
"0.53447807",
"0.5292232",
"0.52022046",
"0.51425475",
"0.5132265",
"0.51180905",
"0.5105098",
"0.5079343",
"0.50685287",
"0.5066045",
"0.5062386",
"0.5045737",
"0.50301963",
"0.5028168",
"0.497431... | 0.5831399 | 0 |
return the intersection of two list | def h8zF(f75j, gYXc):
JCgA = set(f75j).intersection(set(gYXc))
return list(JCgA) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RIsH(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))",
"def W9Po(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))",
"def zVQj(iHrl, X1zw):\n return list(set(iHrl) & set(X1zw))",
"def iov8(jzdc, Fg_i):\n return list(set(jzdc) & set(Fg_i))",
"def XMlP(Kt9y, I_KI):\n return [WKvO for WKv... | [
"0.8457749",
"0.84533596",
"0.8390947",
"0.8383602",
"0.8337438",
"0.8327012",
"0.83186483",
"0.8314506",
"0.82492834",
"0.8242739",
"0.8242739",
"0.8214169",
"0.821344",
"0.8180698",
"0.81771386",
"0.8123978",
"0.80756927",
"0.80305964",
"0.80305964",
"0.80305964",
"0.803059... | 0.7001624 | 91 |
Retrieves the shared connection. | def KAOR(Emd4):
if not Emd4._instance:
Emd4._instance = MAqI()
return Emd4._instance | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lxP0(YKHO):\n return YKHO._connection",
"def OKYa(YKHO):\n return YKHO.__connection",
"def lxP0(YKHO):\n return YKHO.resolve_connection(YKHO.__connection__)",
"def UzPC(YKHO):\n return YKHO.connection_cache[YKHO.active_connection_key]",
"def lxP0(YKHO):\n pass",
"def lxP0(YKHO):\n p... | [
"0.7612066",
"0.75181496",
"0.7436543",
"0.7429043",
"0.7367079",
"0.7367079",
"0.7341632",
"0.7326629",
"0.72908914",
"0.72722864",
"0.7246168",
"0.72234535",
"0.7212597",
"0.71575963",
"0.7134831",
"0.71335",
"0.7118553",
"0.70635456",
"0.70635456",
"0.70635456",
"0.7063545... | 0.0 | -1 |
Returns a session object to be used with the `with` statement. | def cuiw(p9bx, *qIxc, **B2fa):
return DMju(p9bx, *qIxc, **B2fa) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KfiN():\n return DMju()",
"def KfiN() -> DMju:\n return NGRy()",
"def KfiN(**B2fa):\n cuiw = B0ll.Session(**B2fa)\n yield cuiw\n cuiw.close()",
"def cuiw(KfiN):\n return KfiN()",
"def cuiw():\n DMju = FJ3D(bind=Ykhp(aL7g), autocommit=False, autoflush=False)\n return oCsa(DMju)",... | [
"0.7893266",
"0.7801013",
"0.76352453",
"0.76219153",
"0.76158154",
"0.7584581",
"0.7525721",
"0.74609524",
"0.74573064",
"0.7437875",
"0.7432228",
"0.74155384",
"0.7396231",
"0.7383854",
"0.73109376",
"0.7295781",
"0.7286123",
"0.72386926",
"0.7221402",
"0.7216312",
"0.71949... | 0.7338017 | 14 |
Tests proofvalidation for proofs provided by empty trees | def Tzid(J_Es):
syAk = J_Es.audit_proof(index=0)
EDSv = J_Es.consistency_proof(old_hash=J_Es.root_hash(), sublength=0)
assert mVY3(target_hash='anything...', proof=syAk) is False and mVY3(target_hash='anything...', proof=EDSv) is False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ZZji(YKHO):\n YKHO.assertIsNone(pcG9(YKHO.bst.root))\n YKHO.assertIsNone(pcG9(YKHO.bt.root))",
"def wSwd(YKHO):\n YKHO.assertTrue(fg9Z().empty())",
"def ZZji(seFO, qOyT):\n assert Wz6U(seFO, qOyT) is False",
"def MT0O():\n J_Es = CTBE.tree.CombinationTree()\n assert J_Es.root is None\n ... | [
"0.6383923",
"0.63732576",
"0.6371857",
"0.6291517",
"0.6117145",
"0.6110403",
"0.6028597",
"0.5976815",
"0.59626114",
"0.58906156",
"0.5844678",
"0.5822868",
"0.58213943",
"0.58175206",
"0.5812149",
"0.5785767",
"0.5761806",
"0.5752655",
"0.57476777",
"0.57376444",
"0.572367... | 0.7924542 | 0 |
Return a list of levels from (1, 1) that is centred around a slightly wider band at 0. Useful for `contourf` plots centred on zero. | def gCAm(d3XD=24):
return oyIN.concatenate([oyIN.linspace(-1, -0.05, d3XD // 2), oyIN.linspace(0.05, 1, d3XD // 2)]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bctv(YKHO):\n Yd35, ZfiU = YKHO.range.value\n return [vC9B for vC9B in range(Yd35, ZfiU + YKHO.step.value, YKHO.step.value)]",
"def STWr(YKHO):\n for YRbF, BWXx in enumerate(YKHO.window):\n if not BWXx:\n return float(YRbF) / len(YKHO.window)\n return float(1)",
"def Xe7E(qw7D... | [
"0.62237453",
"0.6132399",
"0.5976164",
"0.58793896",
"0.57674783",
"0.57593477",
"0.57166994",
"0.56381154",
"0.56377333",
"0.5607337",
"0.5556316",
"0.5537623",
"0.5528728",
"0.5468124",
"0.54593945",
"0.5421562",
"0.5402075",
"0.53928924",
"0.5357795",
"0.53443956",
"0.534... | 0.5716468 | 7 |
Predict Q values for all actions for given states. | def YEmv(YKHO, wspz):
wspz = iQnE(ht2j.from_numpy(wspz), volatile=True)
if YKHO.use_cuda:
wspz = wspz.cuda()
return YKHO.network(wspz).data.cpu().numpy() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ggU5(YKHO, wspz, C3ST):\n if wspz.ndim < 4:\n wspz = wspz[None, ...]\n gc9P = C3ST.predict_on_batch(wspz)\n assert gc9P.shape == (len(wspz), YKHO.nb_actions)\n return gc9P",
"def keCz(YKHO, QTBn):\n return YKHO.model.predict(QTBn)",
"def keCz(YKHO, QTBn):\n return YKHO.model.predic... | [
"0.7835532",
"0.74285",
"0.7419508",
"0.7290453",
"0.7289572",
"0.7125241",
"0.71114296",
"0.7103048",
"0.70994645",
"0.707594",
"0.7070692",
"0.70619416",
"0.70482695",
"0.6949528",
"0.6864885",
"0.68577963",
"0.68437046",
"0.680111",
"0.67832595",
"0.67709297",
"0.6762375",... | 0.0 | -1 |
Update model using estimating target from given experience. | def QdZT(YKHO, wspz, xASv, vwlo, BKVD, nQSc):
N6Z1 = YKHO.__calculate_predictions__(wspz, xASv)
x6A0 = YKHO.__calculate_targets__(vwlo, BKVD, nQSc)
N77f = vuvg.smooth_l1_loss(N6Z1, x6A0)
YKHO.optimizer.step(N77f, YKHO.parameters())
YKHO.updates += 1
if YKHO.target_sync and YKHO.updates % YKHO.ta... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hx0A(YKHO):\n raise NotImplementedError",
"def hx0A(YKHO) -> None:\n raise NotImplementedError",
"def QdZT(YKHO, GsKL):\n YKHO.learner.update(GsKL)",
"def jqwq(YKHO):\n pan_ = YKHO.objectEstimates.get(YKHO.targetName)\n p9NO = YKHO.objectEstimates.objects\n if pan_:\n XP5J, Ty9i ... | [
"0.7303643",
"0.7242428",
"0.6944582",
"0.6829075",
"0.6780564",
"0.66887754",
"0.6682272",
"0.66213655",
"0.6612661",
"0.65925586",
"0.65672374",
"0.6562094",
"0.65421325",
"0.6533474",
"0.6516236",
"0.6464931",
"0.6464931",
"0.6464931",
"0.6464931",
"0.64641476",
"0.6460085... | 0.56449497 | 93 |
Returns a list of counts. Index is the same as self.lengths | def BWz1(YKHO):
return YKHO._counts | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BWz1(YKHO):\n return YKHO._counts",
"def BWz1(YKHO):\n return YKHO._counts",
"def BWz1(YKHO) -> oyIN.ndarray:\n return YKHO._counts",
"def zYNC(YKHO):\n return YKHO.countList",
"def BWz1(YKHO) -> mBkc:\n return YKHO._counts",
"def BWz1(YKHO):\n YKHO._check_quantity('counts')\n re... | [
"0.81752264",
"0.81752264",
"0.8169444",
"0.79941034",
"0.7788387",
"0.7762358",
"0.76886076",
"0.76447237",
"0.7463282",
"0.7300542",
"0.7240335",
"0.72332186",
"0.7166703",
"0.70480394",
"0.7034942",
"0.7030852",
"0.6991517",
"0.6980374",
"0.6948792",
"0.69328284",
"0.69251... | 0.82178295 | 0 |
Joins multiple Pandas DataFrames into one. NaN values will be changed to 0. | def bxjp(K2kF):
jQ3Z = rLdf.concat(K2kF, axis=1)
return jQ3Z.fillna(value=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vGZu(K2kF, BA9O=True):\n bo34.info('Merging %d dataframes', len(K2kF))\n H902 = rLdf.concat(K2kF, sort=BA9O)\n H902 = H902.groupby(level=H902.index.names, sort=BA9O).sum()\n return H902",
"def YUAd(_lYe, qaAi):\n qaAi = BQ3z.load_hdf(qaAi)\n for f4IJ in _lYe:\n je8_ = BQ3z.load_hdf(f... | [
"0.680597",
"0.6716522",
"0.67080975",
"0.6567358",
"0.65536916",
"0.65281093",
"0.64951754",
"0.6436506",
"0.6389598",
"0.63774985",
"0.6373541",
"0.6341562",
"0.6314968",
"0.62957495",
"0.6274745",
"0.62160206",
"0.6162107",
"0.6105614",
"0.60803926",
"0.60803926",
"0.60754... | 0.7609744 | 0 |
Predict probabilities of Y=1. Only available if underlying model implements `predict_proba` method. | def KR85(YKHO, EcVT, qacS=None):
if hasattr(YKHO._model, 'predict_proba'):
return YKHO._model.predict_proba(EcVT, qacS)
raise ValueError("Current model doesn't predict probabilities") | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mEA7(YKHO, EcVT):\n return YKHO.model.predict_proba(EcVT)",
"def KR85(YKHO, EcVT):\n return YKHO._predict(EcVT, f_pred=YKHO._f_pred_prob)",
"def KR85(YKHO, EcVT):\n pass",
"def KR85(YKHO, EcVT):\n pass",
"def KR85(YKHO, EcVT):\n pass",
"def KR85(YKHO, EcVT):\n pass",
"def KR85(YKH... | [
"0.8431545",
"0.8225195",
"0.80919445",
"0.80919445",
"0.80919445",
"0.80919445",
"0.80919445",
"0.80817306",
"0.8053461",
"0.8053461",
"0.80498207",
"0.802993",
"0.8015875",
"0.80087614",
"0.7984996",
"0.7983923",
"0.79699093",
"0.79582083",
"0.7938023",
"0.7929406",
"0.7916... | 0.7736022 | 45 |
Delete a department with a given id. | def PTpj(YKHO, lNHy):
X5CZ = Mjcm.query.get_or_404(lNHy)
NCls.session.delete(X5CZ)
NCls.session.commit()
return CNrd.dump(X5CZ) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def PTpj(YKHO, lNHy):\n YKHO.curr.execute('DELETE FROM departments WHERE department_id={}'.format(lNHy))\n YKHO.conn.commit()\n YKHO.curr.close()",
"def DOHV(lNHy):\n qm8v.db.management.remove({'_id': aA6B(lNHy)})\n Dwep('Department removed', 'danger')\n return vKnz(nKyW('get_departments'))",
... | [
"0.84097815",
"0.8227088",
"0.74243283",
"0.6862887",
"0.6739352",
"0.65905297",
"0.6583122",
"0.6544332",
"0.6516171",
"0.65144867",
"0.6458849",
"0.64505213",
"0.6426164",
"0.6382165",
"0.6364947",
"0.63521755",
"0.6333691",
"0.6309799",
"0.63012695",
"0.62854224",
"0.62661... | 0.8112462 | 2 |
This property is used to give the title of the portlet in the "manage portlets" screen. Here, we use the title that the user gave. | def leAC(YKHO):
return YKHO.header | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def leAC(YKHO):\n return bGrB(u'Masters Portlet')",
"def leAC(YKHO):\n return 'Multilingual text portlet (%s)' % YKHO.lang",
"def leAC(YKHO):\n if YKHO.header:\n return YKHO.header\n else:\n return bGrB(u'Hot goods portlet')",
"def leAC(YKHO):\n return bGrB(u'Multimedia Portlet (... | [
"0.75718683",
"0.75257516",
"0.73169154",
"0.73123294",
"0.7271414",
"0.7175031",
"0.71311104",
"0.7113524",
"0.70120376",
"0.69910544",
"0.6941586",
"0.69276905",
"0.68857765",
"0.6878689",
"0.6878633",
"0.6873938",
"0.68739355",
"0.68641937",
"0.6860938",
"0.6850617",
"0.68... | 0.0 | -1 |
Assert that each value of the RGB pixel is equal for grey scale images | def HxuT():
dTTE = '%s/%s' % (Hy7s.getcwd(), 'valid_data.inp')
nlzh, InN6 = BbHL.read_and_shape_input_data(dTTE, 256, 256)
RsEO = oyIN.zeros((256, 256, 3), dtype=oyIN.uint8)
EUAM = BbHL.populate_grey_scale_matrix(nlzh, InN6, RsEO)
for YRbF, rdlD in enumerate(EUAM):
for r845, d7Eb in enumerat... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fm_s() -> None:\n obA2 = NkfZ(6, 1)\n rqSI(obA2, 0, 0, egIk(11, 22, 33))\n rqSI(obA2, 1, 0, egIk(55, 0, 133))\n rqSI(obA2, 2, 0, egIk(14, 72, 33))\n rqSI(obA2, 3, 0, egIk(78, 100, 2))\n rqSI(obA2, 4, 0, egIk(0, 0, 1))\n rqSI(obA2, 5, 0, egIk(44, 77, 66))\n xwsH = NkfZ(6, 1)\n rqSI(xw... | [
"0.7099193",
"0.7092151",
"0.7088602",
"0.6962571",
"0.68695754",
"0.68639606",
"0.6792083",
"0.67778075",
"0.6756207",
"0.67488337",
"0.67346793",
"0.67137235",
"0.6682215",
"0.6673234",
"0.6658576",
"0.6656714",
"0.66320187",
"0.66317505",
"0.66094977",
"0.6570658",
"0.6538... | 0.6882937 | 4 |
Assert the system fails when not using a valid image output type | def QL2L():
dTTE = '%s/%s' % (Hy7s.getcwd(), 'test_output.jpg')
BbHL.validate_input_arguments('not real', dTTE, dTTE) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ysZB(YKHO):\n YKHO.assertRaises(IOError, KdlT.pil_image, aKaX(b'not an image'))",
"def D63P(YKHO) -> None:\n YKHO._test_thumbnail('invalid', None, expected_found=False, unable_to_thumbnail=YKHO.test_image.unable_to_thumbnail)",
"def aO7N(qQaV):\n if qQaV not in GXJq:\n raise TypeError",
"... | [
"0.75763893",
"0.753686",
"0.75348425",
"0.7472383",
"0.7367757",
"0.7277804",
"0.7231758",
"0.7107067",
"0.706657",
"0.70542806",
"0.69514257",
"0.6863102",
"0.6852109",
"0.68513393",
"0.68464863",
"0.6833346",
"0.68270314",
"0.68186796",
"0.6811381",
"0.6808205",
"0.672424"... | 0.79330677 | 0 |
This method converts a 3 channel (colored) image to a single channel (gray)image and performs simple thresholding using OTSU binarization. Returns thresholded image | def dZyf(YKHO, r9zy):
T5yV = XC5k.imread(r9zy)
nJpj = XC5k.cvtColor(T5yV, XC5k.COLOR_BGR2GRAY)
bGrB, wFao = XC5k.threshold(nJpj, 0, 255, XC5k.THRESH_BINARY | XC5k.THRESH_OTSU)
return wFao | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gwAu(YKHO):\n jUwU = XC5k.GaussianBlur(YKHO.img, (5, 5), 0)\n QUcA = XC5k.equalizeHist(jUwU)\n U5bT, idx7 = XC5k.threshold(QUcA, 0, 255, XC5k.THRESH_BINARY + XC5k.THRESH_OTSU)\n return idx7",
"def mKvZ(YKHO, VXjJ, knl1=(100, 255)):\n qJtC = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2HLS)\n AX3l = (... | [
"0.75805825",
"0.7469688",
"0.74404055",
"0.73363906",
"0.72992843",
"0.72680455",
"0.7153507",
"0.713264",
"0.71064097",
"0.7057392",
"0.705413",
"0.7042568",
"0.70425296",
"0.7026991",
"0.70125496",
"0.70069665",
"0.7005025",
"0.7003707",
"0.6990421",
"0.6983629",
"0.698200... | 0.6843756 | 29 |
Runs up the stack to find the location of manage.py which will be considered a project base path. | def hCNX() -> str:
f4IJ = tq_1.currentframe()
while True:
f4IJ = f4IJ.f_back
Ux0P = f4IJ.f_globals['__file__']
if Hy7s.path.basename(Ux0P).startswith('manage.py'):
break
return Hy7s.path.dirname(Ux0P) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XyfA():\n return YsqY().joinpath('manage.py')",
"def USEx(oUZx):\n with o1Kh(pmON.join(sEAN.app, 'source/')):\n return NBAL('manage.py %s' % oUZx)",
"def CViJ(YKHO, oUZx):\n with YKHO.host.prefix(YKHO.activate_cmd):\n with YKHO.host.cd('~/git/django-project/'):\n YKHO.host... | [
"0.6975486",
"0.62098783",
"0.61862504",
"0.6147753",
"0.60989213",
"0.60919493",
"0.60613835",
"0.60277826",
"0.5964555",
"0.5932594",
"0.5905477",
"0.5885896",
"0.58412826",
"0.58317107",
"0.57830054",
"0.5775283",
"0.5751477",
"0.5737962",
"0.57095885",
"0.57095456",
"0.56... | 0.6350541 | 1 |
Return pidfile path for the given project. | def dZgh(YKHO) -> str:
return Hy7s.path.join(YKHO.runtime_dir, 'uwsgi.pid') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xGWW(YKHO):\n WmM4 = '/tmp/rpc/{0}:{1}.pid'.format(YKHO.host, YKHO.port)\n return YKHO.conf.get('rpctl', 'pidfile', WmM4)",
"def zAi0(iuWa):\n return gCuF.settings['pid_directory'] + QpfX.process_context[iuWa].pid_filename",
"def gxvj(YKHO):\n Hy1s = YKHO.__get_pid_dir() + Hy7s.sep + YKHO.__nam... | [
"0.7248273",
"0.7174515",
"0.7126684",
"0.712049",
"0.69718504",
"0.694652",
"0.6882195",
"0.68486017",
"0.6782777",
"0.66577375",
"0.66397643",
"0.65998477",
"0.65998477",
"0.65925044",
"0.65452003",
"0.65027344",
"0.6493435",
"0.6492795",
"0.64843404",
"0.6447259",
"0.64398... | 0.67537636 | 9 |
A new user gets an associated profile. | def euOS(vC92, KAOR, _EYN, **B2fa):
if _EYN:
SYRW.objects.create(user=KAOR) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def euOS(vC92, **B2fa):\n return BFpK.objects.get_or_create(user=B2fa['instance'])",
"def euOS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n z39Z, BdN0 = SYRW.objects.get_or_create(user=KAOR)",
"def sxXS(vC92, KAOR, _EYN, **B2fa):\n if _EYN:\n SYRW.objects.create(user=KAOR)",
"def sxXS(vC92,... | [
"0.7774968",
"0.77419573",
"0.7717963",
"0.7656822",
"0.7648732",
"0.75658935",
"0.7554479",
"0.7529484",
"0.7529484",
"0.7529484",
"0.7529484",
"0.7490899",
"0.7420172",
"0.74007386",
"0.73951614",
"0.73631847",
"0.73467165",
"0.7346091",
"0.73458105",
"0.733683",
"0.7332093... | 0.7559511 | 6 |
compose parameters from subsequent affine transformations given in list paramsList | def _TMn(UaJ_):
d31n = exwG.array([1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0])
for NArs in UaJ_:
NArs = exwG.array(NArs)
YJrM = exwG.dot(d31n[:9].reshape((3, 3)), NArs[:9].reshape((3, 3)))
KCUD = exwG.dot(d31n[:9].reshape((3, 3)), NArs[9:]) + d31n[9:]
d31n = exwG.concatenate([YJrM.flatt... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def LzJg(hSHI):\n mG1A = []\n for uPnQ in hSHI:\n (V20n, GVIr), = uPnQ.items()\n mG1A.append(CGsi(V20n, GVIr))\n mG1A.append(_J6p())\n return aLRo.Compose(mG1A)",
"def rnv5(NArs, WKvO):\n return oyIN.dot(NArs['wO'], WKvO) + NArs['bO']",
"def q2Ti(jNOo, rnv5):\n assert jNOo is no... | [
"0.629885",
"0.6204371",
"0.61863184",
"0.6063446",
"0.5947772",
"0.5876401",
"0.58179027",
"0.5778787",
"0.57735336",
"0.5729838",
"0.565166",
"0.56129414",
"0.55780053",
"0.55553174",
"0.55488086",
"0.55174035",
"0.5505117",
"0.5442294",
"0.54401636",
"0.5414002",
"0.540864... | 0.8324414 | 0 |
Get current time in a format. | def D9y6(YKHO, fE89: str='Start Time'):
ITS7 = Ifso().get_current_date().strftime(YKHO.time_format)
YKHO.logger.info(f'{fE89} {ITS7}')
return ITS7 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V2LE():\n return vHj7",
"def ApjM(YKHO, FMLJ: str='%Y-%m-%dT%H:%M:%S%z') -> str:\n return YKHO._get_current_time(fmt=FMLJ)",
"def vHj7():\n return ITS7.strftime('%Y-%m-%d %H:%M:%S')",
"def dni_():\n return qcWV.fromtimestamp(ITS7.time()).strftime('%Y-%m-%dT%H:%M:%S')",
"def ApjM():\n ret... | [
"0.8776026",
"0.81652087",
"0.8030088",
"0.8008594",
"0.798646",
"0.7976089",
"0.7945424",
"0.7926296",
"0.7890058",
"0.78743523",
"0.78648776",
"0.7853091",
"0.77981305",
"0.7793885",
"0.7786859",
"0.7774238",
"0.77340907",
"0.77123463",
"0.76730615",
"0.76713437",
"0.764823... | 0.73794323 | 45 |
Get start time in a format. | def jSV8(YKHO, sn5n: str=''):
return YKHO.get_time_now(f'Start Time {sn5n}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cKAQ(YKHO):\n if YKHO.__start_time == 0:\n return None\n return qcWV.fromtimestamp(float(YKHO.__start_time) / 1000).isoformat()",
"def SWox(YKHO):\n return YKHO._start.strftime('%H:%M:%S')",
"def SWox(YKHO):\n LKEa = YKHO._get_field('start datetime')\n return qcWV.strptime(LKEa, YKHO.... | [
"0.80790406",
"0.77828425",
"0.7641778",
"0.7641778",
"0.76199347",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
"0.76091826",
... | 0.6735636 | 89 |
Get end time in a format. | def wirM(YKHO, sn5n: str=''):
return YKHO.get_time_now(f'End Time {sn5n}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TxHy(YKHO):\n if YKHO.__end_time == 0:\n return None\n return qcWV.fromtimestamp(float(YKHO.__end_time) / 1000).isoformat()",
"def C7pn(YKHO):\n return YKHO._end.strftime('%H:%M:%S')",
"def wirM(YKHO) -> str:\n return YKHO.end_time",
"def C7pn(YKHO) -> str:\n return qe4Y.get(YKHO, '... | [
"0.8255517",
"0.8182029",
"0.81697845",
"0.7852982",
"0.7852982",
"0.7852982",
"0.7852982",
"0.7852982",
"0.7852982",
"0.7852982",
"0.7852982",
"0.77846754",
"0.7731322",
"0.77009624",
"0.76927125",
"0.769207",
"0.7656585",
"0.7651748",
"0.7624532",
"0.75969595",
"0.7524234",... | 0.70435923 | 57 |
Return a list of all of the direct children of this node | def OHca(YKHO):
raise NotImplementedError(b'method must be implemented by subclass') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def I1Xg(YKHO, tk5Y: CUNode) -> x1iM[wlML]:\n return [YKHO.node_at(a1PO) for KCHu, a1PO, Csk6 in YKHO.out_edges(tk5Y.id, kAWL.CHILD)]",
"def afYC(YKHO):\n afYC = []\n aUGN = YKHO.left_child\n while aUGN is not None:\n afYC.append(aUGN)\n aUGN = aUGN.sibling\n return afYC",
"def Rba... | [
"0.8316105",
"0.8243509",
"0.82025784",
"0.81016785",
"0.81000435",
"0.80264944",
"0.7984139",
"0.7958495",
"0.7916784",
"0.7889939",
"0.7886707",
"0.78727585",
"0.78590727",
"0.7845549",
"0.7845549",
"0.784496",
"0.78085476",
"0.77799946",
"0.777238",
"0.7686396",
"0.7668446... | 0.0 | -1 |
return a list of all of the direct children of this node | def OHca(YKHO):
return YKHO.hunks | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def afYC(YKHO):\n afYC = []\n aUGN = YKHO.left_child\n while aUGN is not None:\n afYC.append(aUGN)\n aUGN = aUGN.sibling\n return afYC",
"def I1Xg(YKHO, tk5Y: CUNode) -> x1iM[wlML]:\n return [YKHO.node_at(a1PO) for KCHu, a1PO, Csk6 in YKHO.out_edges(tk5Y.id, kAWL.CHILD)]",
"def Rba... | [
"0.82944673",
"0.8291885",
"0.81729805",
"0.8089029",
"0.8063498",
"0.80187523",
"0.8000207",
"0.7943042",
"0.7884698",
"0.7880645",
"0.7858096",
"0.78325796",
"0.78073955",
"0.78061277",
"0.7800937",
"0.77770317",
"0.77770317",
"0.7750285",
"0.7726588",
"0.7702235",
"0.76581... | 0.0 | -1 |
return a list of all of the direct children of this node | def OHca(YKHO):
return YKHO.changedlines | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def afYC(YKHO):\n afYC = []\n aUGN = YKHO.left_child\n while aUGN is not None:\n afYC.append(aUGN)\n aUGN = aUGN.sibling\n return afYC",
"def I1Xg(YKHO, tk5Y: CUNode) -> x1iM[wlML]:\n return [YKHO.node_at(a1PO) for KCHu, a1PO, Csk6 in YKHO.out_edges(tk5Y.id, kAWL.CHILD)]",
"def Rba... | [
"0.8294675",
"0.8291783",
"0.8172922",
"0.80892766",
"0.80632246",
"0.80194503",
"0.80003303",
"0.7942217",
"0.7884898",
"0.7880303",
"0.7857661",
"0.78318346",
"0.7807221",
"0.780591",
"0.7801579",
"0.777714",
"0.777714",
"0.77499783",
"0.77271885",
"0.77024704",
"0.7657924"... | 0.0 | -1 |
Returns element symbol of element with nuclear charge Z. PARAMETERS Z nuclear charge of element (e.g. 6 for carbon) RETURNS element symbol (e.g. "C" for carbon) Version 0.1 28 July 2009 Adam Foster | def MX7V(Nk6w):
unKT = ('H', 'He', 'Li', 'Be', 'B', 'C', 'N', 'O', 'F', 'Ne', 'Na', 'Mg', 'Al', 'Si', 'P', 'S', 'Cl', 'Ar', 'K', 'Ca', 'Sc', 'Ti', 'V', 'Cr', 'Mn', 'Fe', 'Co', 'Ni', 'Cu', 'Zn', 'Ga', 'Ge', 'As', 'Se', 'Br', 'Kr', 'Rb', 'Sr', 'Y', 'Zr', 'Nb', 'Mo', 'Tc', 'Ru', 'Rh', 'Pd', 'Ag', 'Cd', 'In', 'Sn', 'Sb... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pksv(Nk6w):\n for YRbF in Ch3y:\n if YRbF[0] == Nk6w:\n return YRbF[1]\n return None",
"def qvA0(epBp=None, mWFP=None):\n U6D_ = None\n if epBp:\n U6D_ = UqER.byZ[epBp]\n else:\n U6D_ = UqER.byName[mWFP.lower()]\n return U6D_.symbol",
"def MMz4(Nk6w=None, o... | [
"0.71612287",
"0.70654213",
"0.68597996",
"0.6456404",
"0.64272535",
"0.618733",
"0.6096877",
"0.6081381",
"0.59695125",
"0.58179444",
"0.5775489",
"0.5768408",
"0.57260555",
"0.56421036",
"0.5626912",
"0.5612079",
"0.5559576",
"0.5550947",
"0.5498709",
"0.5495365",
"0.547475... | 0.57701427 | 11 |
Function draws appropriate Mario sprite depending on the state | def JmFt(YKHO):
if YKHO.__states['toLeft'] == True:
fs6s.blt(YKHO.x, YKHO.y, 0, 6, 32, 12, 15, colkey=0)
if YKHO.__states['toRight'] == True:
fs6s.blt(YKHO.x, YKHO.y, 0, 6, 32, -12, 15, colkey=0)
if YKHO.__states['toBack']:
fs6s.blt(YKHO.x, YKHO.y, 0, 148, 33, 16, 15, colkey=0) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO):\n if YKHO.state != 'TRANSITION':\n YKHO.screen.blit(YKHO.background, (0, _Fei.GUI_HEIGHT))\n for Jqc7 in YKHO.all_sprites:\n if hasattr(Jqc7, 'draw_before'):\n Jqc7.draw_before()\n YKHO.all_sprites.draw(YKHO.screen)\n for Jqc7 in YKHO.all_spr... | [
"0.728915",
"0.7223114",
"0.6933304",
"0.6720309",
"0.6603758",
"0.6592725",
"0.64771533",
"0.6434049",
"0.6424407",
"0.64209384",
"0.64139247",
"0.63937813",
"0.6370246",
"0.6367892",
"0.63675636",
"0.6359272",
"0.63324803",
"0.6319619",
"0.63175327",
"0.63149536",
"0.630239... | 0.0 | -1 |
Function simulates Mario's fall movement Changes Mario's y position | def qlPN(YKHO):
YKHO.y = YKHO.y + 1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qlPN(YKHO, oHUr, _WN2):\n if oHUr != 0:\n YKHO.tile_position.x += oHUr / abs(oHUr) * YKHO.dt / 2\n if _WN2 != 0:\n YKHO.tile_position.y += _WN2 / abs(_WN2) * YKHO.dt / 2",
"def BZN_(YKHO):\n YKHO.t += 1\n YKHO.y -= max(YKHO.t * YKHO.args.v0 - 0.5 * YKHO.t ** 2 * YKHO.args.a0 + (YKHO... | [
"0.74370325",
"0.7291286",
"0.70519763",
"0.6993762",
"0.68815976",
"0.68233854",
"0.68201506",
"0.6667174",
"0.6624082",
"0.6571523",
"0.653669",
"0.6506326",
"0.648604",
"0.64750266",
"0.64625955",
"0.64386827",
"0.64354575",
"0.64325035",
"0.6407706",
"0.6379555",
"0.63752... | 0.7646902 | 1 |
Reduce n into its prime factors. Each factor is returned with the number of times it divides n | def Llmz(exwG):
if not isinstance(exwG, int):
raise ValueError('n must be an integer')
if exwG < 0:
raise ValueError('n must be non-negative')
uZlc = {}
Csk6 = 2
while exwG > 1 and (not T1qg(exwG)):
if exwG % Csk6 == 0:
uZlc[Csk6] = 0
while exwG % Csk6 == ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Llmz(exwG):\n return (G1Hx for G1Hx, Ty9i in S2wa(exwG))",
"def ZBvT(exwG):\n oCcr = oRi_(int)\n XP5J = 2\n while exwG != 1:\n while exwG % XP5J == 0:\n oCcr[XP5J] += 1\n exwG /= XP5J\n XP5J += 1\n return Zxt2.prod([geyT + 1 for geyT in oCcr.values()])",
"... | [
"0.8604742",
"0.8592652",
"0.85864294",
"0.85200334",
"0.8512904",
"0.84234095",
"0.8338933",
"0.83184445",
"0.83099383",
"0.82317924",
"0.81861436",
"0.8146712",
"0.8131946",
"0.8122369",
"0.81040436",
"0.8098909",
"0.8098909",
"0.8094774",
"0.8089221",
"0.8081039",
"0.80774... | 0.7722946 | 85 |
Yield all proper factors of n. >>> set(proper_factors(28)) == {1, 2, 4, 7, 14} True >>> set(proper_factors(4942052)) == {1, 2, 4, 19, 38, 76, 65027, 130054, 260108, 1235513, 2471026} True | def Yddz(exwG, R89g=False):
for Lx3t in jEwV(Llmz(exwG)):
if exwG != Lx3t or exwG == 1 or R89g:
yield Lx3t | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Llmz(exwG):\n return set(Pusg(list.__add__, ([YRbF, exwG // YRbF] for YRbF in range(1, int(oyIN.sqrt(exwG)) + 1) if exwG % YRbF == 0)))",
"def Llmz(exwG):\n return set(Pusg(list.__add__, ([YRbF, exwG // YRbF] for YRbF in range(1, int(oyIN.sqrt(exwG)) + 1) if exwG % YRbF == 0)))",
"def Llmz(exwG):\n ... | [
"0.80647695",
"0.80647695",
"0.7965723",
"0.7944145",
"0.7934051",
"0.7846312",
"0.7841607",
"0.783842",
"0.7834342",
"0.7833769",
"0.7829881",
"0.7815718",
"0.78110844",
"0.7808485",
"0.77959234",
"0.77901655",
"0.77796435",
"0.7760457",
"0.7749415",
"0.7749415",
"0.77291274... | 0.7844889 | 6 |
Return the number of proper factors of n, including 1 and itself. >>> num_factors(24) 8 | def ZBvT(exwG):
mLGw = 1
for BWXx, UHFx in Llmz(exwG).items():
mLGw *= UHFx + 1
return mLGw | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KZyX(exwG):\n if exwG == 1:\n return 1\n UHFx = 0\n qoqK = int(exwG ** 0.5) + 1\n for YRbF in range(1, qoqK):\n if exwG % YRbF == 0:\n UHFx += 2\n return UHFx",
"def ZBvT(exwG):\n Fv5F = uBVK(exwG)\n mLGw = 1\n for eHNT in list(set(Fv5F)):\n mLGw *= Fv5... | [
"0.87334585",
"0.8655385",
"0.85520905",
"0.8499529",
"0.7643768",
"0.7640808",
"0.75731885",
"0.7553966",
"0.75473607",
"0.7522465",
"0.7427411",
"0.741672",
"0.7408422",
"0.74016166",
"0.7383195",
"0.7382656",
"0.7372239",
"0.7371151",
"0.7351045",
"0.733603",
"0.7329733",
... | 0.8826365 | 0 |