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 |
|---|---|---|---|---|---|---|
Returns the value associated with the field for the currently focused step. | def JnF9(YKHO, Jyyj):
if YKHO.has_step_field(Jyyj):
return YKHO._step[Jyyj]
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UnfG(YKHO):\n return YKHO.field.currentText()",
"def UnfG(YKHO):\n return YKHO.field.text()",
"def UnfG(YKHO):\n return YKHO.field.value()",
"def UnfG(YKHO):\n return YKHO.field.value()",
"def Jyyj(YKHO):\n return YKHO.value",
"def Zmkp(YKHO):\n if YKHO.notebook:\n return YKH... | [
"0.77168536",
"0.7346782",
"0.7289523",
"0.7289523",
"0.7219875",
"0.67124605",
"0.67105424",
"0.6613293",
"0.65951777",
"0.6558827",
"0.65448",
"0.65448",
"0.65448",
"0.653574",
"0.653574",
"0.6495681",
"0.64810866",
"0.6475203",
"0.6474982",
"0.6473029",
"0.6473029",
"0.6... | 0.7076527 | 5 |
Tests if the currently focused dag has a configuration value for the field. | def h6Eb(YKHO, Jyyj) -> bool:
if not YKHO._dag:
return False
return Jyyj in YKHO._dag | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nwWZ(YKHO, Jyyj) -> bool:\n if not YKHO.app_config():\n return False\n return Jyyj in YKHO.app_config()",
"def tWmy(YKHO):\n return hasattr(YKHO, '_value')",
"def RQqg(YKHO, Jyyj) -> bool:\n if not YKHO._step:\n return False\n return Jyyj in YKHO._step",
"def FkE9(YKHO) -> bo... | [
"0.633657",
"0.5884592",
"0.5875328",
"0.58658224",
"0.5738727",
"0.57200885",
"0.5664927",
"0.5644",
"0.5631143",
"0.55797493",
"0.5547941",
"0.553927",
"0.5534899",
"0.55345285",
"0.55145824",
"0.54523396",
"0.5362169",
"0.5359732",
"0.5330674",
"0.5312119",
"0.5292291",
... | 0.7044528 | 0 |
Returns the name of the currently focused dag | def tfMp(YKHO):
return YKHO._dag_name | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SzxC(YKHO):\n return YKHO.name_stack[-1]",
"def eTwU(YKHO) -> str:\n return 'airflow_' + YKHO.dag_name().replace('.', '_')",
"def fGsp(YKHO):\n KnxT = YKHO.getFocusedWindow()\n if KnxT:\n return KnxT.activity\n return None",
"def jvSB(YKHO):\n return YKHO.name",
"def smSl(YKHO)... | [
"0.6573771",
"0.6545596",
"0.6349406",
"0.62389857",
"0.61083335",
"0.606388",
"0.6044449",
"0.60174674",
"0.59485626",
"0.5923473",
"0.59231025",
"0.5902407",
"0.58860207",
"0.58673334",
"0.58648527",
"0.5863148",
"0.5854715",
"0.58341604",
"0.58251375",
"0.57939565",
"0.576... | 0.79782134 | 0 |
Read data as pandas and return a dictionary of time series data Returns | def yLtf(YKHO):
koNC = U8Lr()
llaM = [GkAb(IDBL) for IDBL in SC2F(str(YKHO.data_path.joinpath('*'))) if GkAb(IDBL).is_dir()]
for bNKA in llaM:
RRlC = []
for fUpG in SC2F(str(bNKA.joinpath('*.csv'))):
RRlC.extend(rLdf.read_csv(fUpG, usecols=['time', 'buggy']).values.tolist())
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return YKHO.time_series_data[:]",
"def _k2O():\n nPrm = wIX3()\n return LnPY.process_pandas(nPrm, endog_idx=0)",
"def _k2O():\n nPrm = wIX3()\n return LnPY.process_pandas(nPrm, endog_idx=0)",
"def nV4R(Ux0P: str) -> cuzp[str, cuzp[str, YXTX]]:\n Gmep = 0\n with open(Ux0... | [
"0.6656976",
"0.6585921",
"0.6585921",
"0.6430523",
"0.64139915",
"0.6304706",
"0.6289664",
"0.6285732",
"0.6272197",
"0.6197879",
"0.6196443",
"0.61629874",
"0.6136104",
"0.60826707",
"0.60605145",
"0.6034377",
"0.60306877",
"0.60089225",
"0.59919506",
"0.59754366",
"0.59554... | 0.0 | -1 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, HasU, aF2y):
tspZ = aF2y * 0.01 ** (HasU // 5)
print('Learning Rate decreased to {}'.format(tspZ))
for Lwm5 in K0do.state_dict()['param_groups']:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(DJmW, K0do, qtWj, exwG=100):\n DJmW = DJmW * 0.1 ** (qtWj // exwG)\n print('learning rate : ', DJmW)\n for Lwm5 in K0do.param_groups:\n Lwm5['lr'] = DJmW",
"def e_63(ouZy, K0do, qtWj, dLlC):\n tspZ = ouZy * 0.3 ** (qtWj // 5)\n if qtWj == dLlC:\n tspZ = tspZ * 0.3\n for L... | [
"0.7913536",
"0.7906521",
"0.7849834",
"0.777524",
"0.77338326",
"0.77306354",
"0.7722718",
"0.77224237",
"0.771982",
"0.77092624",
"0.7693604",
"0.76742035",
"0.7665748",
"0.7665748",
"0.7665748",
"0.7655329",
"0.76419765",
"0.76399755",
"0.7637868",
"0.7626077",
"0.76247585... | 0.0 | -1 |
Validate that the requesting user owns the given device. | def xzCw(YKHO, nPrm):
QePW = YKHO.context['request']
nPrm.setdefault('user', QePW.user)
nPrm.setdefault('device_user_token', None)
if not QePW.user.is_authenticated():
raise IyFz.ValidationError('user is not logged in.')
try:
YKHO.instance = OTP1.objects.get(**nPrm)
except OTP1.D... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ox_o(C3ST, QePW):\n rxBR = QePW.headers.get('Authentication-Token')\n CBIr = DtX2(rxBR)\n if C3ST.owner != CBIr:\n eTsH(401)",
"def YfUz(nPrm=None, **YSA3):\n if nPrm and 'owner_id' in nPrm and (not nPrm['owner_id'] == c5ow.id):\n raise MWG8(description='No write privileges', code=4... | [
"0.659432",
"0.623764",
"0.6065538",
"0.59675324",
"0.59260863",
"0.5800791",
"0.5775725",
"0.57568",
"0.56459993",
"0.5626685",
"0.5557078",
"0.5549214",
"0.55457175",
"0.5507297",
"0.549282",
"0.54610646",
"0.5445591",
"0.542236",
"0.5390482",
"0.53854966",
"0.537791",
"0... | 0.58596563 | 5 |
Return the name of the sensor. | def mWFP(YKHO):
if YKHO._typeSensor == ft7U:
mWFP = 'myEnedis.%s.production' % YKHO._myDataSensorEnedis.get_PDL_ID()
else:
mWFP = 'myEnedis.%s' % YKHO._myDataSensorEnedis.get_PDL_ID()
return mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mWFP(YKHO):\n return YKHO._sensor.name",
"def _lKy(YKHO):\n return YKHO.data[1]",
"def mWFP(YKHO):\n return YKHO.device.device_data[YKHO.device_id]['name'] + f' {YKHO._sensor_type}'",
"def mWFP(YKHO):\n return f'{YKHO._name} {lc9R[YKHO.sensor][0]}'",
"def mWFP(YKHO):\n return f'{YKHO._na... | [
"0.91896784",
"0.9168378",
"0.890185",
"0.8770976",
"0.8511273",
"0.8479953",
"0.844435",
"0.8299758",
"0.8186503",
"0.8105667",
"0.8079737",
"0.8066149",
"0.8049647",
"0.7700968",
"0.7612295",
"0.7611456",
"0.7600605",
"0.7600605",
"0.7600605",
"0.75392073",
"0.75166553",
... | 0.71017295 | 28 |
Return the unit of measurement of this entity, if any. | def b82i(YKHO):
return YKHO._unit | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def b82i(YKHO):\n return YKHO._metadata[1]",
"def b82i(YKHO):\n if YKHO._coordinator.data:\n return YKHO._coordinator.data['unit']\n return None",
"def b82i(YKHO):\n return YKHO._unit_of_measurement",
"def b82i(YKHO):\n return YKHO._unit_of_measurement",
"def b82i(YKHO):\n return Y... | [
"0.8565862",
"0.8473674",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.845385",
"0.843327",
"0.83701795",
"0.8368336",
"0.8334028",
"0.82777756",
"0.8239642",
... | 0.8477338 | 6 |
Return the state attributes. | def R1i3(YKHO):
return YKHO._attributes | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def upgy(YKHO):\n return YKHO._attributes",
"def upgy(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._state_attrs",
"def R1i3(YKHO):\n return YKHO._attributes",
"def upgy(YKHO)... | [
"0.8953404",
"0.8953404",
"0.85239846",
"0.8366765",
"0.8366765",
"0.8363429",
"0.83362615",
"0.8334551",
"0.8310377",
"0.8292682",
"0.8289349",
"0.8289349",
"0.8273077",
"0.82236886",
"0.8223562",
"0.8205066",
"0.8184393",
"0.81659013",
"0.8102565",
"0.8064994",
"0.8064994",... | 0.82871646 | 15 |
Return True if we have the necessary metadata about the table and its columns needed for fetching and plotting data for the given sensor type, otherwise False. | def BE9z(TrvM):
return FQJN(TrvM) is not None and yF1h(TrvM) is not None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YL41(YKHO):\n Pe9W = f'SELECT COUNT(*) FROM {uwaB.TABLES}'\n if YKHO.dbcnx.execute(Pe9W).fetchone()[0] == 0:\n return False\n Pe9W = f'SELECT name FROM {uwaB.TABLES}'\n z0GT = [Mkmy[0] for Mkmy in YKHO.dbcnx.execute(Pe9W)]\n Pe9W = 'SELECT name FROM sqlite_master WHERE type=?'\n Zkmd =... | [
"0.6601616",
"0.6300214",
"0.61152565",
"0.6111068",
"0.60540915",
"0.6046029",
"0.6040615",
"0.6003534",
"0.59972876",
"0.59852564",
"0.5952623",
"0.59405315",
"0.59124994",
"0.58496916",
"0.5806248",
"0.58007795",
"0.57875365",
"0.5784923",
"0.57731324",
"0.57640713",
"0.57... | 0.62254745 | 2 |
transform_ngrams method performs a ngram tokenization based on the self.ngrams defined, if self.ngrams is equal to 1 it'll return the word list as is since there's nothing to do to it. | def pEDw(YKHO, V22M):
return V22M if YKHO.n_grams == 1 else [YKHO.connector.join(V22M[YRbF:YRbF + YKHO.n_grams]) for YRbF in range(len(V22M) - YKHO.n_grams + 1)] | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xg2I(_dZy, exwG):\n yCs1 = wr3U(_dZy)\n if exwG != 1:\n yCs1.insert(0, '<s>')\n yCs1.append('</s>')\n return [tuple(yCs1[YRbF:YRbF + exwG]) for YRbF in range(0, len(yCs1) - exwG + 1)]",
"def Qceb(YKHO, cufJ: list, qEMD: int, exwG: int, RiIF=False):\n pCSA = []\n _KoX = 0 if RiIF ... | [
"0.7315621",
"0.72339004",
"0.72071725",
"0.7127765",
"0.71184033",
"0.7086975",
"0.70695",
"0.70262855",
"0.6993649",
"0.6977622",
"0.6850255",
"0.6833432",
"0.6814614",
"0.6802238",
"0.67310554",
"0.67102724",
"0.67041683",
"0.6689319",
"0.6653465",
"0.66430074",
"0.6640510... | 0.800618 | 0 |
Return sample of transitions uniformly from the buffer if buffer is large enough for the given batch size. Sample is a named tuple of transition where the elements are torch tensor. | def mvm2(YKHO, f65o):
LYYN = rTuS(YKHO.queue, f65o)
z1E8 = [ht2j.from_numpy(oyIN.asarray(ezWE).astype(oyIN.float32)).float() for ezWE in zip(*LYYN)]
mvm2 = j7A7(z1E8[0], z1E8[1].unsqueeze_(-1).long(), z1E8[2].unsqueeze_(-1), z1E8[3], z1E8[4].unsqueeze_(-1).byte())
return mvm2 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mvm2(YKHO, Ep8u):\n q47_ = YKHO.sum_tree.get_sum_priority()\n ilXW = oyIN.random.uniform(0, q47_, Ep8u)\n IAux = [YKHO.sum_tree.get(WKvO) for WKvO in ilXW]\n LYYN = [YKHO.queue[WKvO] for WKvO in IAux]\n z1E8 = [ht2j.from_numpy(oyIN.asarray(ezWE).astype(oyIN.float32)).float() for ezWE in zip(*LYY... | [
"0.75186974",
"0.72215515",
"0.72215515",
"0.6890673",
"0.6853146",
"0.6834639",
"0.68141925",
"0.6780606",
"0.66818506",
"0.6676063",
"0.66648406",
"0.6664166",
"0.66348034",
"0.65925187",
"0.65837175",
"0.65837175",
"0.6573256",
"0.65675837",
"0.6496065",
"0.6482939",
"0.64... | 0.7828738 | 0 |
Return true if the tableau card is face up. Face up cards on the tableau are the cards that haven't been removed yet and aren't covered from below by other cards. They can be moved to the waste pile if they are one rank above or below the waste card. | def bxXr(YKHO, U330):
if YKHO.tableau[U330] is None:
return False
pone = wHLO.CHILD_INDEXES[U330]
return all((YKHO.tableau[YRbF] is None for YRbF in pone)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xf49(YKHO):\n for YRbF in range(YKHO.rows):\n for r845 in range(YKHO.columns):\n if YKHO.grid[YRbF][r845].face == 'down':\n return False\n return True",
"def f4x0(YKHO, fvDH):\n P3Vz = True\n for dxhl in YKHO.solitaire[fvDH]:\n if dxhl == 0:\n br... | [
"0.68464917",
"0.6571055",
"0.61815757",
"0.6041941",
"0.5931337",
"0.58817625",
"0.5849747",
"0.5807592",
"0.5725518",
"0.5654216",
"0.55885166",
"0.5561696",
"0.553718",
"0.55167353",
"0.5487364",
"0.54541904",
"0.5437851",
"0.540566",
"0.5404966",
"0.5392615",
"0.53780425"... | 0.6942468 | 0 |
Return true if there are no more tableau cards remaining. | def K0zu(YKHO):
return all((YKHO.tableau[YRbF] is None for YRbF in range(28))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gU2k(YKHO):\n return YKHO.hand.len() > 0",
"def ylph(YKHO) -> bool:\n return YKHO.on_hand <= YKHO.warn_limit",
"def EjBq(YKHO):\n return len(YKHO.hand.cards) != 0",
"def Yykn(YKHO) -> bool:\n return YKHO.count == YKHO.capacity",
"def Yykn(YKHO) -> bool:\n return YKHO.count == YKHO.capaci... | [
"0.69879216",
"0.6961193",
"0.6927591",
"0.6920883",
"0.6920883",
"0.6919638",
"0.6879705",
"0.68379253",
"0.68319124",
"0.68288004",
"0.68288004",
"0.67916346",
"0.6747794",
"0.66916144",
"0.6649566",
"0.66407216",
"0.65979266",
"0.65090024",
"0.64314383",
"0.6396719",
"0.63... | 0.6210364 | 35 |
Method to standardize a name. Standardize takes a string name representation and sequentially enforces rules (using rules.py utility functions). | def hWT_(YKHO, mWFP: str) -> str:
SREd = mWFP
for eD8c in c_NS.RULES:
SREd = eD8c(SREd)
return SREd | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J0iZ(Emd4, mWFP):\n mWFP = mWFP.replace('_', '-').lower()\n mWFP = mWFP[:Emd4.NAME_LENGTH_LIMIT]\n if mWFP[-1] == '-':\n mWFP = mWFP[:-1] + Emd4.REPLACER\n return mWFP",
"def uD9m(Emd4, mWFP):\n return ' '.join(mWFP.lower().strip().split())",
"def uD9m(Emd4, mWFP):\n return ' '.joi... | [
"0.6997477",
"0.69225377",
"0.69225377",
"0.69225377",
"0.6884975",
"0.68363",
"0.68205446",
"0.655233",
"0.6526048",
"0.65222824",
"0.6458359",
"0.6422997",
"0.64148015",
"0.6409994",
"0.6405911",
"0.63721883",
"0.635065",
"0.634594",
"0.63453424",
"0.6330475",
"0.63251185",... | 0.8185549 | 0 |
r""" Generate a Latex string for this polynomial. | def N9mF(YKHO):
G1Hx = e_2d(YKHO.vertices)
try:
len(YKHO.coeff[0])
ecqq = [oCV2(Z9rn, latex=True) for Z9rn in YKHO.coeff]
UiSo = yvpH(YKHO.r, G1Hx)
return wFvM(ecqq, UiSo)
except TypeError:
ecqq = [nhGt(Z9rn, latex_fraction=True) for Z9rn in YKHO.coeff]
UiSo =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n Wbaq = ''\n for YRbF in range(YKHO.degree, -1, -1):\n if YKHO.coefficients[YRbF] == 0:\n continue\n elif YKHO.coefficients[YRbF] > 0:\n if Wbaq:\n Wbaq += ' + '\n else:\n Wbaq += ' - '\n if YRbF == 0:\n ... | [
"0.7531606",
"0.74144715",
"0.7197297",
"0.717149",
"0.69959235",
"0.69943374",
"0.6988189",
"0.6907715",
"0.6880895",
"0.6773107",
"0.6731237",
"0.67160827",
"0.66875154",
"0.6657712",
"0.665531",
"0.6582512",
"0.6463456",
"0.646276",
"0.6421205",
"0.6421205",
"0.6405542",
... | 0.74596596 | 1 |
r""" Generate a Latex string for this polynomial, where each basis function has been expanded in the monomial basis. | def dy6W(YKHO):
try:
len(YKHO.coeff[0])
ecqq = [oCV2(Z9rn, latex=True) for Z9rn in YKHO.coeff]
UiSo = d84G(YKHO.r, YKHO.vertices)
for YRbF in range(len(UiSo)):
if len(UiSo[YRbF]) > 3:
UiSo[YRbF] = '(' + UiSo[YRbF] + ')'
return wFvM(ecqq, UiSo)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO) -> str:\n Wbaq = ''\n for YRbF in range(YKHO.degree, -1, -1):\n if YKHO.coefficients[YRbF] == 0:\n continue\n elif YKHO.coefficients[YRbF] > 0:\n if Wbaq:\n Wbaq += ' + '\n else:\n Wbaq += ' - '\n if YRbF == 0:\n ... | [
"0.7111181",
"0.6992302",
"0.6929129",
"0.6854676",
"0.6705311",
"0.6557352",
"0.65218335",
"0.65011555",
"0.64985365",
"0.64926213",
"0.6481688",
"0.64638996",
"0.6462432",
"0.6389068",
"0.63285744",
"0.63215214",
"0.6314778",
"0.62807596",
"0.624424",
"0.624424",
"0.6227594... | 0.7399 | 0 |
r""" Generate Latex string for a Bernstein basis polynomial on an ndimensional simplex T, where n is equal to the length of nu. | def pvZe(kTwQ, Mkmy, iXlf):
return fiND(kTwQ, Mkmy, iXlf).to_monomial_basis().latex_str() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def J8sz(exwG):\n return ' '.join(('e{}'.format(YRbF) for YRbF in range(exwG)))",
"def BklM(iXlf):\n from polynomials_on_simplices.generic_tools.code_generation_utils import CodeWriter\n Ilxn = CodeWriter()\n Ilxn.wl('Bernstein(')\n Ilxn.inc_indent()\n Ilxn.wc(str(iXlf))\n Ilxn.dec_indent()\... | [
"0.6881511",
"0.6783569",
"0.6775094",
"0.6775094",
"0.6598179",
"0.6362153",
"0.6275768",
"0.6222643",
"0.60899323",
"0.60557127",
"0.58976865",
"0.58730906",
"0.5832814",
"0.58267266",
"0.57783717",
"0.5705496",
"0.56766385",
"0.5655232",
"0.5592996",
"0.55916816",
"0.55674... | 0.73876697 | 0 |
Renders the home page. | def kZiy(QePW):
xryH = mukb(QePW)
Ldyl = msfn.objects.order_by('-created')[:3]
XVAW = xwcw.objects.order_by('-posted')[:3]
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/index.html', {'title': 'СТО', 'cart': xryH, 'last': XVAW, 'products': Ldyl, 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bVaH():\n return TvZl('index.html')",
"def kZiy():\n return TvZl('home_page.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZl('home.html')",
"def kZiy():\n return TvZ... | [
"0.85574406",
"0.853399",
"0.8351404",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.82762724",
"0.827363",
"... | 0.0 | -1 |
Renders the about page. | def vsuQ(QePW):
xryH = mukb(QePW)
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/about.html', {'cart': xryH, 'title': 'Автосервис Локнянский район', 'message': 'Вас приветствует компания «СТО»!', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def q2H0(QePW):
xryH = mukb(QePW)
assert isinstance(QePW, eu5F)
return _1tc(QePW, 'app/videopost.html', {'title': 'Видео', 'cart': xryH, 'message': 'Приятного просмотра!', 'year': qcWV.now().year}) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def QOe9():
return TvZl('test.html', title='Test', time=qcWV.now(), message='test your model') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def SYsl():
return TvZl('browser.html', title='Browser', time=qcWV.now(), message='search for knowladge') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def iYE2():
return TvZl('signin.html', title='Signin', time=qcWV.now(), message='only for administrator') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def kI0b():
return TvZl('signup.html', title='Signup', time=qcWV.now(), message='not aviliable') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.0 | -1 |
Renders the about page. | def vsuQ():
return TvZl('about.html', title='About', time=qcWV.now(), message='about me') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vsuQ():\n return TvZl('about.html', title='About')",
"def vsuQ():\n return TvZl('about_page.html', title='About')",
"def vsuQ():\n return TvZl('about.html')",
"def wZMb(YKHO):\n LgJI()",
"def vsuQ():\n return TvZl('about.html', title='About', year=qcWV.now().year, message='about page.')"... | [
"0.85650355",
"0.85034525",
"0.84489655",
"0.84044397",
"0.8394454",
"0.82935613",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82709616",
"0.82680845",... | 0.8239194 | 21 |
Loads and reads a yaml configuration file | def Dodi(lqQH):
with open(lqQH, 'r') as ATLl:
return eJb6.load(ATLl) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BLx6(VqRE='./config.yaml'):\n with open(VqRE, 'r') as eHNT:\n return eJb6.load(eHNT, Loader=eJb6.FullLoader)",
"def LgIG(pmON):\n return eJb6.load(open('config.yaml', 'r'), Loader=eJb6.SafeLoader)",
"def LgIG():\n t7Ny = Hy7s.path.dirname(Hy7s.path.abspath(xAKo))\n lqQH = Hy7s.path.join(... | [
"0.8253691",
"0.8227152",
"0.8189073",
"0.81550354",
"0.8107381",
"0.8095432",
"0.8077228",
"0.8075745",
"0.8044924",
"0.80416363",
"0.7991479",
"0.7972011",
"0.79596174",
"0.7934281",
"0.7908818",
"0.7891146",
"0.78899914",
"0.7869296",
"0.7855025",
"0.7845873",
"0.7839812",... | 0.790493 | 15 |
__init__ method instantiation of size | def FIMM(YKHO, zNig=0):
YKHO.__size = zNig | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, zNig):\n YKHO.size = zNig",
"def FIMM(YKHO, zNig):\n YKHO.size = zNig",
"def FIMM(YKHO, zNig):\n YKHO.__size = zNig",
"def FIMM(YKHO, zNig):\n YKHO.__size = zNig",
"def FIMM(YKHO, zNig):\n YKHO.__size = zNig",
"def FIMM(YKHO, zNig: Size) -> None:\n YKHO.size = zNig",
"d... | [
"0.8872378",
"0.8872378",
"0.88716817",
"0.88716817",
"0.88716817",
"0.868926",
"0.85915357",
"0.8540644",
"0.847417",
"0.84606385",
"0.8458912",
"0.83769894",
"0.83666134",
"0.8359665",
"0.83457243",
"0.8252775",
"0.8000456",
"0.7993251",
"0.7911812",
"0.77864283",
"0.777426... | 0.8926031 | 0 |
The set of arguments for constructing a ProfileHttp resource. | def FIMM(Ro_8, *, mWFP: pulumi.Input[str], D0JC: Optional[pulumi.Input[str]]=None, qXNQ: Optional[pulumi.Input[str]]=None, T2qH: Optional[pulumi.Input[str]]=None, q5j8: Optional[pulumi.Input[str]]=None, JBZA: Optional[pulumi.Input[str]]=None, Hvg_: Optional[pulumi.Input[str]]=None, MeYe: Optional[pulumi.Input[Sequence[... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(Ro_8, kFeU: str, qIxc: ProfileHttpArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def FIMM(Ro_8, kFeU: str, qIxc: OAuthArgs, VKhi: Optional[pulumi.ResourceOptions]=None):\n ...",
"def H2v5(Emd4, x0hE, Eorv):\n try:\n if type(Eorv) is not list:\n Ug4Q = _Oaf()\n ... | [
"0.76145476",
"0.5805028",
"0.566194",
"0.5653855",
"0.5653855",
"0.5638899",
"0.56004924",
"0.5568422",
"0.5568422",
"0.556269",
"0.55502343",
"0.5498857",
"0.54807425",
"0.54516083",
"0.54516083",
"0.5431023",
"0.5424911",
"0.54103386",
"0.5408017",
"0.53971875",
"0.5394972... | 0.0 | -1 |
Utility to deserialize a ParamSchema from JSON. Currently, we only JSONserialize when the module specification has an explicit `param_schema`. This is rare, and [20210412] we want to remove this feature entirely. TODO when `param_schema` is gone, nix this class. This feature is for compatibility with old modules; and s... | def hfK9(NUPx: Dict[str, Jsonish]) -> IJhe:
return kCVy(**NUPx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ukzC(RjIW, tBOI='DEVICE_RESOURCE', Xbam=True):\n tBOI = getattr(vk_W.JsonFormat, tBOI)\n if isinstance(RjIW, uPxI.Trait):\n YGFP = vk_W.trait_as_json(RjIW, tBOI)\n else:\n raise Exception('Invalid object passed to json_schema: %s' % RjIW)\n return E8fF(YGFP, Xbam)",
"def CS_V(YKHO, ... | [
"0.5757803",
"0.55419505",
"0.55040157",
"0.548355",
"0.5440311",
"0.5424075",
"0.53926855",
"0.5376262",
"0.5331298",
"0.5321268",
"0.5286813",
"0.5277585",
"0.52547145",
"0.5252292",
"0.51834023",
"0.5164146",
"0.5155698",
"0.50901926",
"0.5050827",
"0.5043471",
"0.5043451"... | 0.63841665 | 0 |
Loads all the activities from the file into the list of activities. Returns the list of activities. | def zn9O(YKHO):
YKHO.__load_activities_from_file_into_memory()
return YKHO._activities_list | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FnFi(YKHO):\n YKHO.__load_activities_from_file_into_memory()\n return super().get_all_activities_list()",
"def mSAC() -> x1iM[BMor]:\n dCYV = []\n dCYV.extend(ixDx('chaosgcp.gke.nodepool.actions'))\n dCYV.extend(v0IS('chaosgcp.gke.nodepool.probes'))\n dCYV.extend(ixDx('chaosgcp.sql.actions'... | [
"0.79852253",
"0.6559405",
"0.6496666",
"0.6353258",
"0.6102368",
"0.5991136",
"0.5942763",
"0.5929151",
"0.58657825",
"0.580026",
"0.57811517",
"0.57716656",
"0.56928277",
"0.5680871",
"0.5629954",
"0.5613225",
"0.5603758",
"0.56012964",
"0.56006277",
"0.557708",
"0.55625767... | 0.8247419 | 0 |
Loads all the activities from the file into the list of activities. Returns the complete list of activities. | def FnFi(YKHO):
YKHO.__load_activities_from_file_into_memory()
return super().get_all_activities_list() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zn9O(YKHO):\n YKHO.__load_activities_from_file_into_memory()\n return YKHO._activities_list",
"def mSAC() -> x1iM[BMor]:\n dCYV = []\n dCYV.extend(ixDx('chaosgcp.gke.nodepool.actions'))\n dCYV.extend(v0IS('chaosgcp.gke.nodepool.probes'))\n dCYV.extend(ixDx('chaosgcp.sql.actions'))\n dCYV... | [
"0.8267145",
"0.6617499",
"0.6548952",
"0.6380001",
"0.6094993",
"0.60769653",
"0.6066585",
"0.6002582",
"0.59016114",
"0.5855836",
"0.5802925",
"0.5746933",
"0.57140315",
"0.571402",
"0.5648419",
"0.5644593",
"0.5631852",
"0.5625704",
"0.55841",
"0.5580204",
"0.5568014",
"... | 0.80676174 | 1 |
Setter for the list of persons. Raises PersonRepositoryError if the new value of the list of persons is actually not a list or if the list does not contain objects of type Person. | def azSe(YKHO, uP4h):
YKHO._person_list = uP4h
YKHO.__save_persons_from_memory_to_file() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RxPw(YKHO, X259: List[Person]):\n YKHO.person_list.model().set_person_list(X259)",
"def RyAa(YKHO, Br4M: list):\n YKHO._people = Br4M",
"def u7wh(YKHO, t7v3):\n for a70H in t7v3:\n YKHO.add_person(a70H)",
"def bO8r(YKHO):\n return YKHO.person_list.model().get_person_list()",
"def wkZ... | [
"0.7826249",
"0.65931576",
"0.5316461",
"0.5237074",
"0.50628424",
"0.50080156",
"0.49597588",
"0.49585736",
"0.4921812",
"0.48459816",
"0.48397595",
"0.48379147",
"0.47306326",
"0.47130105",
"0.47052866",
"0.47015065",
"0.46710578",
"0.46566114",
"0.46376997",
"0.46320295",
... | 0.64686096 | 2 |
returns the birthdate as a datetime.date() object if possible this expects a specific format for the birthday ex '09 apr 1999' so may not be robust, could use dateutil.parser instead but slower and would introduce another dependency | def ge71(YKHO):
iuVk = YKHO.birthdate
if iuVk:
JRYC = qcWV.datetime.strptime(iuVk, '%d %b %Y')
return JRYC.date()
else:
return iuVk | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Yviw(FGW3):\n FGW3 = Xbam(FGW3)\n lO87 = int(FGW3[0:2]) + 1900\n x0eS = int(FGW3[2:4])\n CjKC = int(FGW3[4:6])\n if x0eS > 40:\n lO87 += 100\n x0eS -= 40\n elif x0eS > 20:\n lO87 -= 100\n x0eS -= 20\n try:\n return qcWV.date(lO87, x0eS, CjKC)\n except ... | [
"0.81020385",
"0.7319195",
"0.71593773",
"0.7023016",
"0.70085293",
"0.68448037",
"0.65789187",
"0.6516955",
"0.6509355",
"0.65059084",
"0.64694095",
"0.6439416",
"0.6386427",
"0.6352316",
"0.63108397",
"0.6302468",
"0.62832075",
"0.6279401",
"0.62697566",
"0.6230386",
"0.621... | 0.82082915 | 0 |
Hash password on the fly. | def TDEB(jTXt, NTfD=None):
if NTfD is None:
NTfD = Hy7s.urandom(8)
assert 8 == len(NTfD)
assert isinstance(NTfD, str)
if isinstance(jTXt, QMSQ):
jTXt = jTXt.encode('UTF-8')
assert isinstance(jTXt, str)
Aofo = jTXt
for YRbF in Ni9Y(10):
Aofo = iqPu(Aofo, NTfD, hqsM).di... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = vT87(jTXt)",
"def qzFd(YKHO):\n YKHO.__password = YKHO.str_to_hash(YKHO.__password)",
"def qzFd(YKHO, jTXt):\n YKHO.password = jf1V.encrypt(jTXt)",
"def wnut(jTXt, NTzC='sha256'):\n return vT87(jTXt, NTzC)",
"def jTXt(YKHO, jTXt):\n YKHO.password_... | [
"0.8297606",
"0.82832325",
"0.82337004",
"0.81127435",
"0.79989094",
"0.7891337",
"0.7885906",
"0.7885229",
"0.77582955",
"0.77339685",
"0.7717322",
"0.7690775",
"0.7681501",
"0.76435494",
"0.7574917",
"0.7568411",
"0.7549169",
"0.75351477",
"0.75259656",
"0.75126886",
"0.748... | 0.0 | -1 |
Test if other is a ``Nothing`` | def xa14(YKHO, Elif: Any) -> bool:
return isinstance(Elif, povx) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pfad(YEnM):\n return YEnM is None",
"def fGwc(YKHO, YEnM):\n if YEnM is None:\n raise AssertionError('unexpectedly None')",
"def XWxo(Emd4, yLHq, RKYb):\n if RKYb:\n return yLHq is None\n else:\n return yLHq is not None",
"def ZPS9(YKHO, YEnM):\n if YEnM is not None:\n... | [
"0.6790961",
"0.6775323",
"0.67354625",
"0.66912407",
"0.66064835",
"0.66064835",
"0.6525707",
"0.6316487",
"0.62589484",
"0.6171513",
"0.61665356",
"0.61387193",
"0.6116199",
"0.60748184",
"0.60035574",
"0.5997523",
"0.597476",
"0.5972445",
"0.5958383",
"0.5921005",
"0.59158... | 0.750822 | 0 |
Map each in element in ``iterable`` to an `Maybe` by applying ``f``, combine the elements by ``and_then`` from left to right and collect the results | def gY_a(eHNT: Callable[[A], Maybe[B]], OxJJ: Iterable[A]) -> at0J[iu5r[tjUW]]:
return YWvJ(at0J[iu5r[tjUW]], Kq4j(ki9h, eHNT, OxJJ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UU6M(eHNT: Callable[[A], Maybe[bool]], OxJJ: Iterable[A]) -> at0J[iu5r[k0lF]]:\n return YWvJ(at0J[iu5r[k0lF]], WX1Q(ki9h, eHNT, OxJJ))",
"def A84o(JfyU, *ix7N):\n return tuple(zip(*tuple((YRbF for YRbF in zip(*ix7N) if JfyU(*YRbF))))) or ((),) * len(ix7N)",
"def MvPh(JfyU, OxJJ):\n for bGrB in map... | [
"0.683531",
"0.6570869",
"0.6216111",
"0.6079412",
"0.60599786",
"0.6024615",
"0.58602774",
"0.5830167",
"0.5804551",
"0.57812166",
"0.5747188",
"0.5741817",
"0.56621706",
"0.5630761",
"0.5627643",
"0.559376",
"0.55421543",
"0.5523191",
"0.5519378",
"0.55009633",
"0.5491813",... | 0.7214548 | 0 |
Evaluate each `Maybe` in `iterable` from left to right and collect the results | def v6ln(OxJJ: Iterable[Maybe[A]]) -> at0J[iu5r[k0lF]]:
return YWvJ(at0J[iu5r[k0lF]], RtnJ(ki9h, OxJJ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gY_a(eHNT: Callable[[A], Maybe[B]], OxJJ: Iterable[A]) -> at0J[iu5r[tjUW]]:\n return YWvJ(at0J[iu5r[tjUW]], Kq4j(ki9h, eHNT, OxJJ))",
"def LeXe(*ix7N) -> bDy6[AzJI[ImMB, ...]]:\n for hkxX in Hs6x.zip_longest(*ix7N, fillvalue=U9ih):\n if any((BWXx is U9ih for BWXx in hkxX)):\n tO9_ = f... | [
"0.62100303",
"0.61878884",
"0.60121775",
"0.5865769",
"0.57884717",
"0.564262",
"0.5507848",
"0.5414224",
"0.5388569",
"0.53844273",
"0.53824294",
"0.5363936",
"0.53018177",
"0.5269423",
"0.52642286",
"0.5236355",
"0.52169913",
"0.52123004",
"0.521062",
"0.52056295",
"0.5187... | 0.6700187 | 0 |
Map each element in ``iterable`` by applying ``f``, filter the results by the value returned by ``f`` and combine from left to right. | def UU6M(eHNT: Callable[[A], Maybe[bool]], OxJJ: Iterable[A]) -> at0J[iu5r[k0lF]]:
return YWvJ(at0J[iu5r[k0lF]], WX1Q(ki9h, eHNT, OxJJ)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def map(OxJJ, m2Zb):\n for WKvO in OxJJ:\n yield m2Zb(WKvO)",
"def map(m2Zb, OxJJ):\n return [m2Zb(WKvO) for WKvO in OxJJ]",
"def MvPh(JfyU, OxJJ):\n for bGrB in map(JfyU, OxJJ):\n continue",
"def sE9r(m2Zb, OxJJ):\n M10L = []\n for YRbF in OxJJ:\n if m2Zb(YRbF):\n ... | [
"0.7251455",
"0.7175117",
"0.7020224",
"0.6756686",
"0.6678618",
"0.6609626",
"0.65993476",
"0.64596534",
"0.6458392",
"0.6432338",
"0.6424503",
"0.6323302",
"0.63195395",
"0.628959",
"0.62732714",
"0.62570184",
"0.62494874",
"0.6245453",
"0.6239287",
"0.62167114",
"0.6206598... | 0.6460645 | 7 |
Returns the area of the intersection of rect1 and rect2. | def BtGh(VRm2, elcS):
dg4K, MbkH = (VRm2[0], VRm2[1])
r4d7, VGAG = (VRm2[0] + VRm2[2], VRm2[1] + VRm2[3])
wAcR, MrJ1 = (elcS[0], elcS[1])
b_Xn, GxZf = (elcS[0] + elcS[2], elcS[1] + elcS[3])
ZFgS = max(0, min(r4d7, b_Xn) - max(dg4K, wAcR))
rfRS = max(0, min(VGAG, GxZf) - max(MbkH, MrJ1))
retu... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def iQin(YKHO, VRm2, elcS):\n ZFgS = max(0, min(VRm2[2], elcS[2]) - max(VRm2[0], elcS[0]))\n rfRS = max(0, min(VRm2[3], elcS[3]) - max(VRm2[1], elcS[1]))\n C9cE = ZFgS * rfRS\n return C9cE",
"def Rqyz(zPAF, BsXG):\n return float(zPAF) * float(BsXG)",
"def YwQh(EBgd, HpuQ, zNig):\n o4D3, si3g ... | [
"0.87367576",
"0.7633097",
"0.73273516",
"0.7185483",
"0.71412265",
"0.7139906",
"0.7107129",
"0.708203",
"0.69787174",
"0.6974816",
"0.68132764",
"0.6762367",
"0.67407554",
"0.67233235",
"0.6720328",
"0.6706742",
"0.66955537",
"0.66910744",
"0.6682125",
"0.66679966",
"0.6600... | 0.71903694 | 3 |
Count the street segments in a graph. | def cf2N(alwC):
if jHsn.is_directed(alwC):
tO9_ = '`Gu` must be undirected'
raise ValueError(tO9_)
return len(alwC.edges) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JeH7(YKHO) -> int:\n ...",
"def PtlQ(yvY1):\n dsvf = dict(jHsn.get_node_attributes(yvY1, 'street_count'))\n if set(dsvf) != set(yvY1.nodes):\n BfDw.log('Graph nodes changed since `street_count`s were calculated', level=ESjr.WARN)\n return dsvf",
"def VCxu(yvY1=None, IwdH=2):\n dsvf = ... | [
"0.71917665",
"0.6890167",
"0.67987233",
"0.67634314",
"0.6593176",
"0.6588408",
"0.6393734",
"0.6276597",
"0.62207896",
"0.61719656",
"0.6150089",
"0.61224663",
"0.61148417",
"0.6110462",
"0.60974544",
"0.60961956",
"0.60575265",
"0.603176",
"0.60223925",
"0.5987696",
"0.596... | 0.816311 | 0 |
Calculate graph's total edge length. | def oRpX(yvY1):
return sum((Csk6['length'] for P6bq, Ty9i, Csk6 in yvY1.edges(data=True))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def HtWw(TP50, fHZS):\n return dghU(TP50) + dghU(fHZS)",
"def L1_y(YKHO):\n return int(sum((YKHO.degree(Q6kx) for Q6kx in range(YKHO.size))) / 2)",
"def qx2R(YKHO):\n if YKHO.edge_length_l is not None:\n return YKHO.edge_length_l\n else:\n YKHO.edge_length_l = 2 * YKHO.radius * epAf.s... | [
"0.80897945",
"0.7964335",
"0.7924461",
"0.77279925",
"0.7690008",
"0.7684863",
"0.7575776",
"0.7561272",
"0.7500546",
"0.74950117",
"0.7481418",
"0.7456864",
"0.7322643",
"0.7253831",
"0.72487533",
"0.7241834",
"0.7218384",
"0.71834904",
"0.7152275",
"0.71451384",
"0.7084773... | 0.8605104 | 0 |
Count how many physical street segments connect to each node in a graph. This function uses an undirected representation of the graph and special handling of selfloops to accurately count physical streets rather than | def UVOt(yvY1, Ziit=None):
if Ziit is None:
Ziit = yvY1.nodes
alwC = yvY1.to_undirected(reciprocal=False, as_view=True)
ij6N = set(jHsn.selfloop_edges(alwC))
ogQA = [tTpl for tTpl in alwC.edges(keys=False) if tTpl not in ij6N]
FB91 = ogQA + list(ij6N)
y2oh = Hs6x.chain.from_iterable(FB91... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cf2N(alwC):\n if jHsn.is_directed(alwC):\n tO9_ = '`Gu` must be undirected'\n raise ValueError(tO9_)\n return len(alwC.edges)",
"def PtlQ(yvY1):\n dsvf = dict(jHsn.get_node_attributes(yvY1, 'street_count'))\n if set(dsvf) != set(yvY1.nodes):\n BfDw.log('Graph nodes changed si... | [
"0.7726195",
"0.72637564",
"0.653957",
"0.648862",
"0.6440568",
"0.62407386",
"0.62299365",
"0.6229824",
"0.6099914",
"0.607879",
"0.59639335",
"0.59526366",
"0.59492844",
"0.59490424",
"0.5944075",
"0.5924882",
"0.58913624",
"0.5878114",
"0.5855811",
"0.58346117",
"0.5823304... | 0.77666306 | 0 |
Set a log level on multiple loggers. | def H6Rf(ZWCE, ABDL=G9jH.CRITICAL):
for ZfUD in ZWCE:
G9jH.getLogger(ZfUD).setLevel(ABDL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def aQ22(Ry7x=['vaex'], ABDL=G9jH.DEBUG):\n for bo34 in Ry7x:\n G9jH.getLogger(bo34).setLevel(ABDL)",
"def wgh3(ABDL: int) -> None:\n for bo34 in Ry7x:\n bo34.setLevel(ABDL)",
"def fTst(GJcf, ABDL):\n if isinstance(GJcf, str):\n RKD7 = fZx2(GJcf)\n else:\n RKD7 = GJcf\n ... | [
"0.7988111",
"0.7885556",
"0.7546036",
"0.7409401",
"0.73701704",
"0.727431",
"0.7135809",
"0.7076048",
"0.702882",
"0.70092934",
"0.70003825",
"0.6798814",
"0.6768105",
"0.67616075",
"0.674776",
"0.67422724",
"0.6732747",
"0.6716366",
"0.66200304",
"0.6588882",
"0.65873796",... | 0.72892696 | 5 |
Whether the member has paid within 12 months of start_date anniversary | def yJhk(YKHO):
try:
kepv = YKHO.member_membership.start_date
except AttributeError:
kepv = None
try:
UAyy = YKHO.member_membership.membership_paid
except AttributeError:
UAyy = None
if kepv:
Kt_s = jvSB.T
yVpw = Kt_s('paid')
qStE = Kt_s('overd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qx0R(YKHO):\n yo7_ = _c1T.today()\n if YKHO.dues_paid is None:\n return False\n X_bn = 12 if YKHO.dues_paid_year else 6\n n7AF = qcWV.combine(YKHO.dues_paid, qcWV.min.time()) + enlf(months=+X_bn)\n n7AF = n7AF.date()\n return n7AF > yo7_",
"def gYJk(YKHO, yKcO=TOXJ):\n return 0.01... | [
"0.6783928",
"0.58685315",
"0.5664983",
"0.5652392",
"0.5620663",
"0.5554445",
"0.54436195",
"0.54180926",
"0.5393099",
"0.5381219",
"0.53556484",
"0.5354",
"0.52991396",
"0.5234744",
"0.5201317",
"0.5196411",
"0.5190209",
"0.5185595",
"0.51814294",
"0.5179355",
"0.5177061",
... | 0.6628632 | 1 |
Creates color object from hex value | def PMaA(YKHO, hex):
hex = hex.lower().lstrip('#')
if len(hex) < 2:
hex = hex[0] * 6
if len(hex) < 6:
hex = hex[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]
d7Eb = []
for YRbF in range(0, 6, 2):
d7Eb.append(int(hex[YRbF:YRbF + 2], 16) / 255.0)
YKHO.hex = hex
YKHO.r... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MKEY(wEf2):\n if isinstance(wEf2, str):\n wEf2 = int(wEf2, 16)\n aM8h = 1.0 / 255\n return HRmL(aM8h * (wEf2 >> 16 & 255), aM8h * (wEf2 >> 8 & 255), aM8h * (wEf2 & 255))",
"def KJYm(KCHu):\n if type(KCHu) is not str:\n raise TypeError('s must be a string')\n if not (KCHu.startswi... | [
"0.74645686",
"0.68058974",
"0.6786588",
"0.6782743",
"0.67674017",
"0.6748794",
"0.67076916",
"0.670755",
"0.6706262",
"0.6690976",
"0.6681837",
"0.6665455",
"0.6657626",
"0.6605599",
"0.6584813",
"0.65503466",
"0.6514325",
"0.6509743",
"0.6492112",
"0.64762527",
"0.64592874... | 0.6095297 | 63 |
Modifies alpha value of Colz object | def mzpp(YKHO, uJRO):
if isinstance(uJRO, int):
raise ValueError('Expects a float value in the [ 0.0 - 1.0 ] range!')
if uJRO > 1.0:
uJRO = 1.0
if uJRO < 0.0:
uJRO = 0.0
YKHO.a = uJRO
YKHO.hsla[3] = uJRO
YKHO.rgba[3] = uJRO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _9aG(YKHO, Cwt5=1.0):\n YKHO.unif[17] = Cwt5",
"def Cwt5(YKHO):\n return YKHO._alpha",
"def Cwt5(YKHO):\n return YKHO._alpha",
"def Cwt5(YKHO):\n return YKHO._alpha",
"def fr9B(YKHO, epBp):\n return YKHO.alphaMe(3.8, YKHO.r_vect[0], YKHO.alpha0_vect[0]) - 0.018 * (epBp - 3.8)",
"def Cw... | [
"0.7291084",
"0.64543456",
"0.64543456",
"0.64543456",
"0.64412254",
"0.62790895",
"0.6227887",
"0.6217996",
"0.6191732",
"0.6156093",
"0.6145445",
"0.61348635",
"0.6122557",
"0.61162037",
"0.61106855",
"0.6092518",
"0.60706127",
"0.60697395",
"0.6041988",
"0.60338587",
"0.60... | 0.6459709 | 1 |
The current state of the test. | def QTBn(YKHO):
Aofo = YKHO.getResult()
return Aofo.state | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def OEQv(YKHO):\n return ybiG.FromDictOrObject(YKHO.root.state_instance.GetTestState(YKHO.path))",
"def ja6o(YKHO):\n pass",
"def QTBn(YKHO):\n return YKHO.get_state()",
"def OEQv(YKHO):\n return YKHO.state",
"def ja6o(YKHO):\n return YKHO.env.sim.get_state()",
"def QTBn(YKHO):\n print(... | [
"0.7699328",
"0.76760226",
"0.75339425",
"0.7441948",
"0.7411168",
"0.7388862",
"0.7386131",
"0.7382336",
"0.7382336",
"0.7382336",
"0.73766387",
"0.73599607",
"0.7358034",
"0.73565334",
"0.73565334",
"0.7342765",
"0.7342765",
"0.73110044",
"0.7284771",
"0.7284771",
"0.728131... | 0.77714115 | 0 |
YAML constructor to parse CloudFormation intrinsics. This will return a dictionary with key being the intrinsic name | def _MzP(DWkG, HHC5, Q6kx):
TZ9E = Q6kx.tag[1:]
y0cW = 'Fn::'
if TZ9E in ['Ref', 'Condition']:
y0cW = ''
sxYH = y0cW + TZ9E
if TZ9E == 'GetAtt' and isinstance(Q6kx.value, jKi7.string_types):
BWXx = Q6kx.value.split('.', 1)
elif isinstance(Q6kx, fnUS):
BWXx = DWkG.construc... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vknv(YKHO):\n nPrm = YKHO.um.read_json('intrinsics.json')\n nMvt = oyIN.asarray(nPrm['K'])\n Csk6 = oyIN.asarray(nPrm['dist'])\n return (nMvt, Csk6)",
"def SSb0(YKHO):\n return YKHO.um.read_json('extrinsics.json')",
"def SCWy(YKHO) -> 'Intrinsics':\n return YKHO._intrinsics",
"def twa4(... | [
"0.6100075",
"0.58797526",
"0.558503",
"0.55827683",
"0.5291809",
"0.5234966",
"0.5163385",
"0.5068605",
"0.5064009",
"0.50320727",
"0.50291413",
"0.5002577",
"0.49949342",
"0.49707824",
"0.49578145",
"0.49450013",
"0.48564067",
"0.48346075",
"0.4826982",
"0.47801146",
"0.475... | 0.6330519 | 0 |
get a img and fix it to be white shape on black background. For cv2.findcontoure | def Qr1w(VXjJ, dfHy):
M5A1, RDIL = MDK7(dfHy)
MOUG = XC5k.cvtColor(VXjJ, XC5k.COLOR_BGR2GRAY)
X61X, ED9w = XC5k.threshold(MOUG, 50, 255, XC5k.THRESH_BINARY)
WZcn = oyIN.ones((M5A1, M5A1), oyIN.uint8)
JR9_ = XC5k.dilate(ED9w, WZcn, iterations=2)
Iowl = []
if dfHy == 2:
Iowl, gEYm = XC... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YAJ0(VXjJ):\n ZHfW = oyIN.zeros(VXjJ.shape[:2], oyIN.uint8)\n sKn6 = oyIN.zeros((1, 65), oyIN.float64)\n TpZi = oyIN.zeros((1, 65), oyIN.float64)\n mawX = (50, 50, 450, 290)\n jbYn.grabCut(VXjJ, ZHfW, mawX, sKn6, TpZi, 5, jbYn.GC_INIT_WITH_RECT)\n ORtl = oyIN.where((ZHfW == 2) | (ZHfW == 0), ... | [
"0.74553186",
"0.7216853",
"0.7153314",
"0.712384",
"0.6948857",
"0.6876768",
"0.6781909",
"0.6754013",
"0.6670795",
"0.66672087",
"0.65554315",
"0.6553039",
"0.65137583",
"0.6509963",
"0.6495197",
"0.6473887",
"0.6427652",
"0.6419565",
"0.6404641",
"0.63927",
"0.63850754",
... | 0.0 | -1 |
Computes a random string to be used as state or secret key. | def AJEJ():
return ''.join((tuKI.choice(vIwR.ascii_uppercase + vIwR.digits) for WKvO in range(32))) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KpEQ():\n return ''.join(QMfv(rU7A(32)).decode('utf-8'))",
"def eCI7():\n return MRxC.b2a_hex(Hy7s.urandom(15))",
"def szjw():\n return ''.join((tuKI.SystemRandom().choice(vIwR.ascii_lowercase) for bGrB in range(123)))",
"def Vhex():\n return ''.join((jxbx().choice(vIwR.ascii_letters + vIwR.d... | [
"0.8043993",
"0.7775811",
"0.77545613",
"0.770755",
"0.76712376",
"0.7539378",
"0.7502678",
"0.7500874",
"0.74869955",
"0.7471307",
"0.74634933",
"0.74394155",
"0.7387825",
"0.7370941",
"0.7322273",
"0.7304592",
"0.7223968",
"0.7206033",
"0.717198",
"0.7170669",
"0.7165698",
... | 0.7284571 | 16 |
autocomplete the Combobox, delta may be 0/1/1 to cycle through possible hits | def Wm2z(YKHO, RA_F=0):
if RA_F:
YKHO.delete(YKHO.position, XW6u.END)
else:
YKHO.position = len(YKHO.get())
FKH2 = []
for U6D_ in YKHO._completion_list:
if U6D_.lower().startswith(YKHO.get().lower()):
FKH2.append(U6D_)
if FKH2 != YKHO._hits:
YKHO._hit_inde... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Wm2z(YKHO, RA_F=0):\n if RA_F:\n YKHO.delete(YKHO.position, XW6u.END)\n else:\n YKHO.position = len(YKHO.get())\n FKH2 = []\n for U6D_ in YKHO._completion_list:\n if U6D_.lower().startswith(YKHO.get().lower()):\n FKH2.append(U6D_)\n if FKH2 != YKHO._hits:\n ... | [
"0.77164525",
"0.754218",
"0.6385934",
"0.60792255",
"0.60147494",
"0.59124506",
"0.5826263",
"0.5823474",
"0.58233815",
"0.5812261",
"0.5788605",
"0.575753",
"0.57353824",
"0.5664817",
"0.55787563",
"0.55611646",
"0.5520945",
"0.55146486",
"0.5480999",
"0.54611045",
"0.54479... | 0.77404076 | 0 |
Return the device state attributes. | def TzCU(YKHO):
o8Kj = {'device_id': YKHO._device_id, 'is_smart_program': YKHO._program.get('is_smart_program', False), 'frequency': YKHO._program.get('frequency'), 'start_times': YKHO._program.get('start_times'), 'budget': YKHO._program.get('budget'), 'program': YKHO._program.get('program'), 'run_times': YKHO._pro... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def R1i3(YKHO):\n return YKHO.attributes",
"def R1i3(YKHO):\n return YKHO._attributes",
"def R1i3(YKHO):\n return YKHO._attrs",
"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._... | [
"0.93173087",
"0.9245708",
"0.92207897",
"0.92147964",
"0.92147964",
"0.9210798",
"0.9210798",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
"0.91909975",
... | 0.7659658 | 84 |
Turn the switch off. | async def async_turn_off(YKHO, **B2fa: Any) -> None:
await YKHO._set_state(False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO, **B2fa):\n YKHO.smartplug.turn_off()",
"def dNOs(YKHO):\n YKHO._switch_callback = None",
"def Z_rv(YKHO):\n YKHO.handleCommand(1)\n YKHO._state = iKVK",
"def Z_rv(YKHO, **B2fa):\n hodN(YKHO._host, 'off')\n YKHO._state = False",
"def Z_rv(YKHO):\n print('Turning the light... | [
"0.870139",
"0.867637",
"0.85906535",
"0.8523712",
"0.84588856",
"0.84180963",
"0.8404447",
"0.8398465",
"0.8375364",
"0.83491224",
"0.83192796",
"0.82949907",
"0.8277566",
"0.81680954",
"0.8155346",
"0.8112255",
"0.8091075",
"0.8072859",
"0.8058921",
"0.8058517",
"0.8041678"... | 0.73486954 | 69 |
Turns off the switch and stops watering. | async def stop_watering(YKHO):
KIn3 = []
YKHO._is_on = False
await YKHO._send_station_message(KIn3) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO):\n YKHO._interrupt_flash()\n if YKHO.on:\n xi8C.output(YKHO.pin, xi8C.LOW)\n YKHO.on = False",
"def Z_rv(YKHO):\n xi8C.output(YKHO.gpio, False)",
"def y_Rs(YKHO):\n if T6FA.current_thread() != YKHO._blinking_thread:\n YKHO._blinking_thread.unregister(YKHO)\n x... | [
"0.803842",
"0.7973545",
"0.79087275",
"0.78886795",
"0.78565776",
"0.7816946",
"0.78160167",
"0.7814353",
"0.770318",
"0.7674458",
"0.7651748",
"0.76347125",
"0.7630959",
"0.7621588",
"0.7567996",
"0.75316113",
"0.75139046",
"0.74987125",
"0.74708235",
"0.746868",
"0.7452892... | 0.7483791 | 18 |
Turn the switch off. | async def async_turn_off(YKHO, **B2fa: Any) -> None:
await YKHO.stop_watering() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO, **B2fa):\n YKHO.smartplug.turn_off()",
"def dNOs(YKHO):\n YKHO._switch_callback = None",
"def Z_rv(YKHO):\n YKHO.handleCommand(1)\n YKHO._state = iKVK",
"def Z_rv(YKHO, **B2fa):\n hodN(YKHO._host, 'off')\n YKHO._state = False",
"def Z_rv(YKHO):\n print('Turning the light... | [
"0.870139",
"0.867637",
"0.85906535",
"0.8523712",
"0.84588856",
"0.84180963",
"0.8404447",
"0.8398465",
"0.8375364",
"0.83491224",
"0.83192796",
"0.82949907",
"0.8277566",
"0.81680954",
"0.8155346",
"0.8112255",
"0.8091075",
"0.8072859",
"0.8058921",
"0.8058517",
"0.8041678"... | 0.0 | -1 |
Turn the switch off. | async def async_turn_off(YKHO, **B2fa: Any) -> None:
YKHO._is_on = False
await YKHO.disable_rain_delay() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Z_rv(YKHO, **B2fa):\n YKHO.smartplug.turn_off()",
"def dNOs(YKHO):\n YKHO._switch_callback = None",
"def Z_rv(YKHO):\n YKHO.handleCommand(1)\n YKHO._state = iKVK",
"def Z_rv(YKHO, **B2fa):\n hodN(YKHO._host, 'off')\n YKHO._state = False",
"def Z_rv(YKHO):\n print('Turning the light... | [
"0.870139",
"0.867637",
"0.85906535",
"0.8523712",
"0.84588856",
"0.84180963",
"0.8404447",
"0.8398465",
"0.8375364",
"0.83491224",
"0.83192796",
"0.82949907",
"0.8277566",
"0.81680954",
"0.8155346",
"0.8112255",
"0.8091075",
"0.8072859",
"0.8058921",
"0.8058517",
"0.8041678"... | 0.71220154 | 97 |
Shift `bits` in direction `dir_` `times` times. | def DkWr(UOVU: int, Kwmb: str, WXkz: int=1) -> int:
Kwmb = Kwmb.lower()
Ylbp = UOVU
if 'n' in Kwmb:
Ylbp <<= 8 * WXkz
if 'e' in Kwmb:
httR = KebS(Pusg(khtY.or_, (OwzK >> m1cS for m1cS in range(WXkz)), 0))
Ylbp >>= 1 * WXkz
Ylbp &= httR
if 's' in Kwmb:
Ylbp >>=... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def T4EJ(UOVU: int, Kwmb: str, WXkz: int=1) -> int:\n for bGrB in range(WXkz):\n UOVU |= DkWr(UOVU, Kwmb)\n return UOVU",
"def DkWr(YKHO, XSoh):\n Cuyv, oeNL = tuple(XSoh)\n iBIi = {'L': YKHO.rows, 'R': YKHO.rows, 'D': YKHO.cols, 'U': YKHO.cols}[Cuyv]\n iBIi[int(oeNL)].shift(direction=YKHO.... | [
"0.78796357",
"0.5864915",
"0.5784788",
"0.5684395",
"0.5665376",
"0.5651093",
"0.5631796",
"0.56232446",
"0.55871636",
"0.5498323",
"0.5447118",
"0.5446885",
"0.5436304",
"0.54155725",
"0.5392669",
"0.5372359",
"0.533412",
"0.53151447",
"0.53129715",
"0.52641565",
"0.5210433... | 0.77216744 | 1 |
Testing function for get_valid_pagination_args with different possible arguments | def DZ7h():
assert BfDw.get_valid_pagination_args({'pageIndex': 0, 'pageSize': 10}) == (0, 10, 0, 10)
assert BfDw.get_valid_pagination_args({'pageIndex': 5, 'pageSize': 15}) == (5, 15, 75, 90)
assert BfDw.get_valid_pagination_args({'pageIndex': -5, 'pageSize': -15}) == (5, 15, 75, 90)
assert BfDw.get_va... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JlEo(YKHO):\n YKHO.check_pagination()",
"def GgAt(qIxc: Dict) -> dict:\n B2Dn = LEeV(qIxc.get('page', 0))\n if B2Dn is None or B2Dn < 0:\n raise ValueError(R7gx['PAGE'])\n qIxc['page'] = B2Dn\n qoqK = LEeV(qIxc.get('limit', 50))\n if qoqK is None or qoqK < 1:\n raise ValueErro... | [
"0.7295281",
"0.6634801",
"0.66194624",
"0.6559157",
"0.6533973",
"0.6460649",
"0.64065206",
"0.63259715",
"0.61040294",
"0.6054383",
"0.6054383",
"0.6054383",
"0.6054383",
"0.6054383",
"0.6054383",
"0.6054383",
"0.6054383",
"0.6054383",
"0.6054383",
"0.6054383",
"0.6054383",... | 0.8751833 | 0 |
Convert sparse matrix to tuple representation. | def nPep(On0F):
def EV8W(RsfQ):
if not H4yH.isspmatrix_coo(RsfQ):
RsfQ = RsfQ.tocoo()
jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()
hkxX = RsfQ.data
ROpF = RsfQ.shape
return (jNOo, hkxX, ROpF)
if isinstance(On0F, list):
for YRbF in range(len(On... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def nPep(On0F):\n\n def EV8W(RsfQ):\n if not H4yH.isspmatrix_coo(RsfQ):\n RsfQ = RsfQ.tocoo()\n jNOo = oyIN.vstack((RsfQ.row, RsfQ.col)).transpose()\n hkxX = RsfQ.data\n ROpF = RsfQ.shape\n return (jNOo, hkxX, ROpF)",
"def nPep(On0F):\n\n def EV8W(RsfQ):\n ... | [
"0.85870504",
"0.82527",
"0.82527",
"0.8091624",
"0.7986327",
"0.602773",
"0.59843755",
"0.5971062",
"0.59706587",
"0.59447116",
"0.59443593",
"0.5910293",
"0.5910293",
"0.5910293",
"0.5910293",
"0.5910293",
"0.58940256",
"0.58499134",
"0.5845008",
"0.577404",
"0.5689886",
... | 0.82655305 | 5 |
Symmetrically normalize adjacency matrix. | def ujN0(eQUr):
eQUr = H4yH.coo_matrix(eQUr)
mJjf = oyIN.array(eQUr.sum(1))
tvzN = oyIN.power(mJjf, -0.5).flatten()
tvzN[oyIN.isinf(tvzN)] = 0.0
hEeC = H4yH.diags(tvzN)
return eQUr.dot(hEeC).transpose().dot(hEeC).tocoo() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ujN0(eQUr):\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN.power(mJjf, -0.5).flatten()\n tvzN[oyIN.isinf(tvzN)] = 0.0\n hEeC = oyIN.diag(tvzN)\n return eQUr.dot(hEeC).transpose().dot(hEeC)",
"def ujN0(eQUr):\n eQUr = H4yH.coo_matrix(eQUr)\n mJjf = oyIN.array(eQUr.sum(1))\n tvzN = oyIN... | [
"0.788518",
"0.7691616",
"0.759434",
"0.7566608",
"0.7335597",
"0.730491",
"0.72684425",
"0.688461",
"0.68616927",
"0.686005",
"0.6832041",
"0.682895",
"0.6750887",
"0.6750057",
"0.67278",
"0.66282207",
"0.6616473",
"0.64879745",
"0.6486613",
"0.63610464",
"0.63610464",
"0.... | 0.7698141 | 6 |
Adds a Button called 'Next' to the layout. When pressed, sends the current results and fetches another task. | def DI0A(YKHO):
vXOX = D04X(text='Next', font_size='20sp', background_color=(1, 1, 1, 1), color=(1, 1, 1, 1), size=(32, 32), size_hint=(0.3, 0.3))
vXOX.bind(on_release=lambda jzdc: YKHO.next_button_handler())
YKHO.layout.add_widget(vXOX) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lN_b(YKHO):\n YKHO.signal_step.emit()",
"def tN9J(YKHO, TEdI, nPrm=None):\n YKHO.page += 1\n YKHO.part = 1\n YKHO.refresh()",
"async def next(YKHO, oD_N: discord.ui.Button, rLs8: discord.Interaction) -> None:\n if YKHO.cursor >= len(YKHO.images) - 1:\n return await rLs8.response.defer... | [
"0.6829444",
"0.6791629",
"0.6732026",
"0.66747457",
"0.6666796",
"0.6624469",
"0.6510423",
"0.6506904",
"0.6459566",
"0.6439079",
"0.62949294",
"0.62445337",
"0.6235646",
"0.6193814",
"0.6193635",
"0.61923295",
"0.6184566",
"0.61814576",
"0.61694854",
"0.6146451",
"0.6116720... | 0.6563806 | 6 |
Return dictionary of args serializers to models field. | def V_D6(YKHO):
acO1 = {YRbF: GMHI(YRbF) for YRbF in ('pf_type', 'label')}
acO1['host'] = YKHO.get_safely_instance_partial(NPYu, 'host')
return acO1 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l8Z8(YKHO, *qIxc, **xAU6):\n Csk6 = {}\n for vXX7, Jyyj in YKHO.schema.normal_fields.items():\n rHQ0 = getattr(YKHO, vXX7, None)\n rHQ0 = Jyyj.jsonable(YKHO, rHQ0)\n if rHQ0 is not None:\n Csk6[vXX7] = rHQ0\n return Csk6",
"def Napc(YKHO) -> dict:\n return {'type':... | [
"0.6769626",
"0.6739905",
"0.62569773",
"0.6239226",
"0.6220744",
"0.6170683",
"0.6151614",
"0.61083317",
"0.6080227",
"0.60666424",
"0.6013546",
"0.59526306",
"0.5924315",
"0.5895032",
"0.58899844",
"0.5860346",
"0.58501863",
"0.5846399",
"0.581099",
"0.58000547",
"0.5775692... | 0.0 | -1 |
Get full name (concatenation of first and last names). | def mWFP(YKHO):
return '%s %s' % (YKHO.first_name, YKHO.last_name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xpqj(YKHO):\n return YKHO.name + YKHO.last_name",
"def xpqj(YKHO):\n return YKHO.last_name + YKHO.first_name",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHMM.strip()",
"def xpqj(YKHO):\n eHMM = '%s %s' % (YKHO.first_name, YKHO.last_name)\n return eHM... | [
"0.9061696",
"0.90596145",
"0.90218693",
"0.8951538",
"0.8951538",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
"0.8942685",
... | 0.8038327 | 100 |
Returns a schedule for day. | def dYq7(YKHO, CjKC):
b6Gq = []
for IblJ in CjKC:
while len(b6Gq) + 1 < IblJ.order:
b6Gq.append(None)
if not len(b6Gq) == IblJ.order:
b6Gq.append([])
b6Gq[-1].append(IblJ)
return b6Gq | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pXBk(YKHO, CjKC, Vzk6):\n return YKHO.schedule['schedule'][CjKC][Vzk6]",
"def HPtm(YKHO, CjKC, W5nB=None):\n vexM = ZIu2.query_current(W5nB)\n vexM = vexM.filter(ZIu2.day == CjKC).filter(ZIu2.group_id == YKHO.id)\n return YKHO._process_schedule(vexM.all())",
"def HPtm(YKHO, CjKC, W5nB=None):\n ... | [
"0.7715069",
"0.75153375",
"0.7382073",
"0.7046179",
"0.70079297",
"0.6951373",
"0.67109233",
"0.66361743",
"0.66265196",
"0.6553121",
"0.64756924",
"0.6443371",
"0.63792485",
"0.6359789",
"0.63507396",
"0.6341506",
"0.6289653",
"0.6287913",
"0.6257238",
"0.62227875",
"0.6222... | 0.55925107 | 58 |
Get educator's schedule for given day. | def HPtm(YKHO, CjKC, W5nB=None):
Al0Q = YKHO.lessons_for_day(CjKC, W5nB, eager=True)
return YKHO._process_schedule(Al0Q) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pXBk(YKHO, CjKC, Vzk6):\n return YKHO.schedule['schedule'][CjKC][Vzk6]",
"def HPtm(YKHO, CjKC, W5nB=None):\n vexM = ZIu2.query_current(W5nB)\n vexM = vexM.filter(ZIu2.day == CjKC).filter(ZIu2.group_id == YKHO.id)\n return YKHO._process_schedule(vexM.all())",
"def CjKC(YKHO):\n try:\n ... | [
"0.7642473",
"0.7551102",
"0.7041133",
"0.64226025",
"0.6293076",
"0.6278404",
"0.6174834",
"0.6054983",
"0.59705925",
"0.5970406",
"0.5914594",
"0.5848147",
"0.5843318",
"0.57548594",
"0.5743789",
"0.5734476",
"0.56963277",
"0.56947154",
"0.5678987",
"0.5664778",
"0.5623758"... | 0.7577669 | 1 |
Return full group name (with index). | def eHMM(YKHO, lO87=None):
return '%d%s' % (YKHO.index(lO87), YKHO.name) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def XZ_F(YKHO):\n return YKHO.groupname",
"def IXKo(YKHO) -> str:\n return qe4Y.get(YKHO, 'group_name')",
"def IXKo(YKHO):\n return YKHO._group_name",
"def mWFP(YKHO):\n return f'{YKHO._group.friendly_name} {VCI3}'",
"def nWJQ(uOe2):\n _0VL = [jzdc.index for jzdc in uOe2.atoms]\n ZWCE = [... | [
"0.76945674",
"0.7601838",
"0.7388015",
"0.73792833",
"0.73335826",
"0.725512",
"0.7232735",
"0.7181677",
"0.7125148",
"0.7116798",
"0.6987131",
"0.69694066",
"0.6933606",
"0.69314396",
"0.69141597",
"0.6901219",
"0.68615675",
"0.68615675",
"0.6859057",
"0.6858987",
"0.684188... | 0.59435165 | 92 |
Get schedule for specific day. | def HPtm(YKHO, CjKC, W5nB=None):
vexM = ZIu2.query_current(W5nB)
vexM = vexM.filter(ZIu2.day == CjKC).filter(ZIu2.group_id == YKHO.id)
return YKHO._process_schedule(vexM.all()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def pXBk(YKHO, CjKC, Vzk6):\n return YKHO.schedule['schedule'][CjKC][Vzk6]",
"def HPtm(YKHO, CjKC, W5nB=None):\n Al0Q = YKHO.lessons_for_day(CjKC, W5nB, eager=True)\n return YKHO._process_schedule(Al0Q)",
"def CjKC(YKHO):\n try:\n return YKHO.schedule.day\n except HwIj.DoesNotExist:\n ... | [
"0.83514565",
"0.78399163",
"0.7238279",
"0.69318163",
"0.66742676",
"0.654242",
"0.64926195",
"0.64662904",
"0.6449742",
"0.6438249",
"0.63102865",
"0.62651086",
"0.6123177",
"0.6025575",
"0.60232943",
"0.6014741",
"0.59642124",
"0.594865",
"0.59472585",
"0.5910248",
"0.5898... | 0.7957521 | 1 |
Get the part of the group. | def Q7me(YKHO):
if YKHO.first_part and YKHO.second_part:
return None
elif YKHO.first_part:
return 1
elif YKHO.second_part:
return 2
else:
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Cnxh(YKHO):\n return YKHO.Group",
"def aiHR(YKHO):\n return YKHO.variables.get('group')",
"def aiHR(YKHO, uOe2, DhMt):\n return YKHO.data[DhMt, uOe2, :, :]",
"def aiHR(YKHO):\n return YKHO._group",
"def aiHR(YKHO) -> h8nf[str]:\n return YKHO.group",
"def uOe2(YKHO):\n return YKHO._g... | [
"0.69818497",
"0.6804674",
"0.67759013",
"0.6689713",
"0.6687045",
"0.6659735",
"0.6659735",
"0.6659735",
"0.65363485",
"0.64723027",
"0.63504833",
"0.63306534",
"0.62337816",
"0.62337816",
"0.62337816",
"0.62274945",
"0.62102747",
"0.61907065",
"0.61804974",
"0.61763936",
"0... | 0.0 | -1 |
check different columns of the 2 dataframes | def jEz_(_lYe: pd.DataFrame, qaAi: pd.DataFrame) -> list:
NxYI = list(set(_lYe.columns) - set(qaAi.columns))
WwOL = list(set(qaAi.columns) - set(_lYe.columns))
print(NxYI, '\nTotal: ', len(NxYI), 'columns\n')
print(WwOL, '\nTotal: ', len(WwOL), 'columns\n')
return (NxYI, WwOL) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vA80(KYM1, wEHg):\n if not all([ZfUD in KYM1 for ZfUD in wEHg.columns]):\n raise ValueError('Columns do not match')",
"def NEUP(WKvO: DataFrame, LVAh: DataFrame) -> None:\n if WKvO.shape[1] != LVAh.shape[1]:\n raise ValueError(f'not compatible:\\n- different number of columns: {WKvO.shape... | [
"0.68894875",
"0.6848513",
"0.68411577",
"0.6791011",
"0.6705647",
"0.6620264",
"0.6579515",
"0.6568998",
"0.6493299",
"0.64753973",
"0.6438232",
"0.63630307",
"0.6354558",
"0.629007",
"0.62693506",
"0.61886144",
"0.61874616",
"0.61739635",
"0.61648905",
"0.61572355",
"0.6132... | 0.69747686 | 0 |
Create dataframe that has only quantitative data | def fCSh(jQ3Z: pd.DataFrame) -> rLdf.DataFrame:
DPqw = dict(jQ3Z.dtypes)
ubgm = [H5ew for H5ew, BWXx in DPqw.items() if BWXx == 'float64' or BWXx == 'int64' or BWXx == 'uint8']
jQ3Z = jQ3Z[ubgm]
return jQ3Z | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yuYU(jQ3Z: pd.DataFrame) -> rLdf.DataFrame:\n DPqw = dict(jQ3Z.dtypes)\n _CRd = [H5ew for H5ew, BWXx in DPqw.items() if BWXx == 'object']\n jQ3Z = jQ3Z[_CRd]\n return jQ3Z",
"def pCNl(Emd4) -> rLdf.DataFrame:\n Cqok = list(zip(Emd4._required_columns, Emd4._required_dtypes))\n try:\n ... | [
"0.6787713",
"0.670307",
"0.6138079",
"0.6002758",
"0.60014874",
"0.5995199",
"0.59887767",
"0.59843624",
"0.59818614",
"0.5977802",
"0.5968149",
"0.59641045",
"0.59383124",
"0.58882725",
"0.586543",
"0.5846243",
"0.58450353",
"0.58431244",
"0.58418024",
"0.58363",
"0.5819183... | 0.75262725 | 0 |
Print out number of unique values for each column of a dataframe | def RGTD(jQ3Z):
print('Number of unique values for each column')
print('=======================================')
for fvDH in jQ3Z.columns:
print(f'{fvDH}: {jQ3Z[fvDH].nunique()}') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def AtJO(jQ3Z):\n WfCS = list(jQ3Z.columns)\n for fvDH in WfCS:\n SUko = jQ3Z[fvDH].unique()\n print(f'{len(SUko)} unique items in {fvDH}: {jQ3Z[fvDH].loc[0]},{jQ3Z[fvDH].loc[1]}, {jQ3Z[fvDH].loc[2]}...')",
"def zydT(jQ3Z):\n w73T = dict()\n for fvDH in jQ3Z.columns:\n w73T[fvDH]... | [
"0.83644676",
"0.771267",
"0.7696803",
"0.76832294",
"0.7631341",
"0.74646574",
"0.73702365",
"0.73239774",
"0.7048549",
"0.70347005",
"0.7018269",
"0.700703",
"0.6939346",
"0.6928336",
"0.67912245",
"0.6770684",
"0.6726835",
"0.671193",
"0.6696467",
"0.6551561",
"0.6540874",... | 0.88164943 | 0 |
Plot boxplot of a dataframe | def zJ4B(jQ3Z: pd.DataFrame, VwMS: list=None, a15K=3, wytA: tuple=(18, 26)):
if VwMS:
jQ3Z = jQ3Z.drop(VwMS, axis=1)
jQ3Z = fCSh(jQ3Z)
print(f'Number of quantitaive columns: {jQ3Z.shape[1]}')
LZpg, MPlV = QrM1.subplots(lO1m(len(jQ3Z.columns) / a15K), a15K, figsize=wytA)
LVAh = 0
for fvDH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mbKp(jQ3Z, z0q4):\n jQ3Z.boxplot(column=z0q4)\n QrM1.show()",
"def L7RL(jQ3Z):\n QrM1.style.use('seaborn-darkgrid')\n wLS1 = jQ3Z.boxplot(column='Infant mortality (per 1000 births)', vert=False, rot=90)\n wLS1.set_title('Infant Mortality')\n QrM1.axis([0, 200, None, None])\n QrM1.show()"... | [
"0.8140125",
"0.78918487",
"0.7698957",
"0.7368724",
"0.73659617",
"0.72590137",
"0.7157707",
"0.7069666",
"0.70694333",
"0.6834175",
"0.6801373",
"0.67951524",
"0.67751324",
"0.6738054",
"0.67107713",
"0.6677679",
"0.66530263",
"0.664959",
"0.6582403",
"0.6581334",
"0.654197... | 0.7279647 | 5 |
Count and rank the frequency of each value of a categorical variable. Then plot it with barplot | def NJSF(jQ3Z: pd.DataFrame, RDhP: str, u54L: int=None, tAX0: float=None, wytA: tuple=(5, 10), nrCV: int=15) -> rLdf.DataFrame:
UHFx = jQ3Z.groupby(f'{RDhP}')[f'{RDhP}'].count().sort_values(ascending=False)
WPhc = rLdf.DataFrame(columns=['counts'])
WPhc.counts = UHFx
QrM1.figure(figsize=wytA)
WKvO =... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EHUJ(jQ3Z):\n jQ3Z.value_counts()[:100].plot(kind='bar')\n QrM1.show()",
"def ojfg(jDK_, dy_H, leAC):\n jDK_.set_title(leAC)\n j4iC = dy_H.value_counts().sort_index()\n j4iC /= float(j4iC.sum())\n j4iC.plot(kind='bar', ax=jDK_)",
"def NQmZ(jQ3Z):\n QrM1.figure(figsize=(15, 10))\n re... | [
"0.73600036",
"0.71333355",
"0.71076524",
"0.67058563",
"0.66754234",
"0.6530218",
"0.6474065",
"0.64172834",
"0.641179",
"0.6382746",
"0.63466567",
"0.6336603",
"0.6300422",
"0.6279303",
"0.62791264",
"0.627515",
"0.6264902",
"0.6231516",
"0.6223711",
"0.62204754",
"0.616661... | 0.5689102 | 47 |
Plot boxplots against categories on the yaxis | def ERWs(jQ3Z: pd.DataFrame, wytA: tuple, u54L: int=None, NKcE: str=None) -> uuEx.boxplot:
if NKcE not in ['median', 'mean', 'quantile75', None]:
print('Not a valid method.')
print("Valid methods are 'median', 'mean' and 'quantile75'.\n")
return
RSUt, I8FR = iz4b(jQ3Z)
LZpg, MPlV = Q... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def bvoa(PYiU, xiDN):\n uuEx.boxplot(x=PYiU, y=xiDN, palette='Set2')\n QrM1.show()",
"def sREx(jQ3Z, fvDH, ACia):\n if len(ACia) == 0:\n wLS1 = jQ3Z.boxplot(column=[fvDH], rot=90)\n else:\n for Z9rn in ACia:\n wLS1 = jQ3Z.boxplot(column=[fvDH], by=[Z9rn], rot=90)",
"def I_R... | [
"0.7198301",
"0.6912547",
"0.68759024",
"0.67865825",
"0.6695712",
"0.66458017",
"0.6633652",
"0.66281545",
"0.6624742",
"0.65165323",
"0.65058464",
"0.64393204",
"0.64198315",
"0.6378181",
"0.63450295",
"0.63449323",
"0.62835264",
"0.62769586",
"0.62718046",
"0.62319934",
"0... | 0.62814236 | 17 |
Returns a tuple of datetime objects (month_start,month_end) given a year and month. Both params are strings because we want month to be a two digit month representation and python doesn't handle leading zeros in integers as we want. | def FOK2(lO87, x0eS):
lO87 = int(lO87)
x0eS = int(x0eS)
hEAY = qcWV.strptime('%s,%s,1' % (lO87, x0eS), '%Y,%m,%d')
vhrV = GRk0.monthrange(lO87, x0eS)
vEOB = hEAY + fCoM(days=vhrV[1] - 1)
return (hEAY, vEOB) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NQCc(lO87, x0eS):\n yKcO = qcWV.datetime(lO87, x0eS, 1)\n if x0eS == 12:\n Os4s = qcWV.datetime(lO87 + 1, 1, 1)\n else:\n Os4s = qcWV.datetime(lO87, x0eS + 1, 1)\n print(yKcO)\n print(Os4s)\n return (yKcO, Os4s)",
"def fjgq(lO87, x0eS):\n wEtp = qcWV.date(lO87, x0eS, 1)\n ... | [
"0.7634696",
"0.76304144",
"0.71417826",
"0.67175126",
"0.67165595",
"0.65233415",
"0.65025055",
"0.638896",
"0.6304235",
"0.63005614",
"0.622599",
"0.61403906",
"0.6123548",
"0.6087696",
"0.60673636",
"0.6021755",
"0.60140574",
"0.6009565",
"0.5971921",
"0.59598935",
"0.5876... | 0.73562527 | 2 |
Formats and returns val using the unit of the range. | def xjn6(YKHO, wEf2: float) -> str:
YA9v = wEf2 / sWIo[YKHO._unit]
return f'{YA9v:.3f} {YKHO._unit}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Gf53(wEf2, S1sJ, SaZ8):\n aDxC = {'b': 0, 'k': 1, 'm': 2, 'g': 3, 't': 4}\n if aDxC[S1sJ] < aDxC[SaZ8]:\n wEf2 = float(wEf2)\n for bGrB in range(aDxC[SaZ8] - aDxC[S1sJ]):\n wEf2 = wEf2 / 1024\n else:\n for bGrB in range(aDxC[S1sJ] - aDxC[SaZ8]):\n wEf2 = wEf2... | [
"0.6347474",
"0.6329657",
"0.6279132",
"0.6279132",
"0.6131024",
"0.5957639",
"0.59384274",
"0.59254414",
"0.59254414",
"0.5923719",
"0.5890728",
"0.5881954",
"0.5875318",
"0.5855457",
"0.5846786",
"0.58400136",
"0.58085686",
"0.577812",
"0.57773274",
"0.5772047",
"0.57489",
... | 0.7421121 | 0 |
Delete an analysis category. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def Ggu1(YKHO, tYeM, **B2fa):
B2fa['_return_http_data_only'] = True
if B2fa.get('callback'):
return YKHO.analysis_category_delete_with_http_info(tYeM, **B2fa)
else:
nPrm = YKHO.analysis_category_delete_with_http_info(tYeM, **B2fa)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SdkC(YKHO, tYeM, **B2fa):\n HhGF = ['web_id']\n HhGF.append('callback')\n HhGF.append('_return_http_data_only')\n HhGF.append('_preload_content')\n HhGF.append('_request_timeout')\n NArs = locals()\n for H5ew, wEf2 in BVGD(NArs['kwargs']):\n if H5ew not in HhGF:\n raise T... | [
"0.66588604",
"0.6596033",
"0.6303246",
"0.622409",
"0.61126953",
"0.6066363",
"0.60534406",
"0.60407317",
"0.59831995",
"0.5978769",
"0.5977984",
"0.5889893",
"0.5785629",
"0.57368094",
"0.5686076",
"0.556693",
"0.5533083",
"0.55276155",
"0.5519127",
"0.55131334",
"0.5498202... | 0.71706176 | 0 |
Delete an analysis category. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def SdkC(YKHO, tYeM, **B2fa):
HhGF = ['web_id']
HhGF.append('callback')
HhGF.append('_return_http_data_only')
HhGF.append('_preload_content')
HhGF.append('_request_timeout')
NArs = locals()
for H5ew, wEf2 in BVGD(NArs['kwargs']):
if H5ew not in HhGF:
raise TypeError("Got ... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ggu1(YKHO, tYeM, **B2fa):\n B2fa['_return_http_data_only'] = True\n if B2fa.get('callback'):\n return YKHO.analysis_category_delete_with_http_info(tYeM, **B2fa)\n else:\n nPrm = YKHO.analysis_category_delete_with_http_info(tYeM, **B2fa)\n return nPrm",
"def lPfJ(YKHO, Ghho):\n ... | [
"0.7169129",
"0.65942246",
"0.63024086",
"0.6227023",
"0.61102283",
"0.6068499",
"0.6051406",
"0.604271",
"0.59854287",
"0.59798014",
"0.59790194",
"0.58880204",
"0.5786963",
"0.5738996",
"0.5688634",
"0.556628",
"0.55339193",
"0.5528064",
"0.5521257",
"0.55161417",
"0.549800... | 0.6660367 | 1 |
Update an analysis category by replacing items in its definition. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def obze(YKHO, tYeM, Ghho, **B2fa):
B2fa['_return_http_data_only'] = True
if B2fa.get('callback'):
return YKHO.analysis_category_update_with_http_info(tYeM, Ghho, **B2fa)
else:
nPrm = YKHO.analysis_category_update_with_http_info(tYeM, Ghho, **B2fa)
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rJwn(YKHO, tYeM, Ghho, **B2fa):\n HhGF = ['web_id', 'category']\n HhGF.append('callback')\n HhGF.append('_return_http_data_only')\n HhGF.append('_preload_content')\n HhGF.append('_request_timeout')\n NArs = locals()\n for H5ew, wEf2 in BVGD(NArs['kwargs']):\n if H5ew not in HhGF:\n ... | [
"0.664882",
"0.5906659",
"0.5740694",
"0.55674475",
"0.55484873",
"0.5530745",
"0.5528104",
"0.5436587",
"0.5375652",
"0.5364754",
"0.5359994",
"0.53377837",
"0.53377837",
"0.53377837",
"0.53377837",
"0.53377837",
"0.5329789",
"0.5254712",
"0.52500826",
"0.5221348",
"0.517735... | 0.6526883 | 1 |
Update an analysis category by replacing items in its definition. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. | def rJwn(YKHO, tYeM, Ghho, **B2fa):
HhGF = ['web_id', 'category']
HhGF.append('callback')
HhGF.append('_return_http_data_only')
HhGF.append('_preload_content')
HhGF.append('_request_timeout')
NArs = locals()
for H5ew, wEf2 in BVGD(NArs['kwargs']):
if H5ew not in HhGF:
rai... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def obze(YKHO, tYeM, Ghho, **B2fa):\n B2fa['_return_http_data_only'] = True\n if B2fa.get('callback'):\n return YKHO.analysis_category_update_with_http_info(tYeM, Ghho, **B2fa)\n else:\n nPrm = YKHO.analysis_category_update_with_http_info(tYeM, Ghho, **B2fa)\n return nPrm",
"def QdZ... | [
"0.6526883",
"0.5906659",
"0.5740694",
"0.55674475",
"0.55484873",
"0.5530745",
"0.5528104",
"0.5436587",
"0.5375652",
"0.5364754",
"0.5359994",
"0.53377837",
"0.53377837",
"0.53377837",
"0.53377837",
"0.53377837",
"0.5329789",
"0.5254712",
"0.52500826",
"0.5221348",
"0.51773... | 0.664882 | 0 |
Initialize vocabulary from file. | def pGdo(GEQi):
if qJi5.Exists(GEQi):
VboW = []
with qJi5.GFile(GEQi, mode='rb') as eHNT:
VboW.extend(eHNT.readlines())
VboW = [zFiD.strip() for zFiD in VboW]
CtWL = dict([(WKvO, LVAh) for LVAh, WKvO in enumerate(VboW)])
return (CtWL, VboW)
else:
raise... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def t2__():\n global vocabulary_list, vocabulary_dict\n bb8G = []\n mX4d = {}\n with open(Ow9R, 'r') as eHNT:\n for d6pt, zFiD in enumerate(eHNT):\n zFiD = zFiD.strip()\n mX4d[zFiD] = d6pt\n bb8G.append(zFiD)",
"def FIMM(YKHO, nUeQ):\n with open(nUeQ, 'r') a... | [
"0.77525496",
"0.76920307",
"0.76315725",
"0.7592861",
"0.75801814",
"0.75644326",
"0.744741",
"0.7426106",
"0.7416072",
"0.71661425",
"0.71474075",
"0.7117412",
"0.70894724",
"0.7076142",
"0.7025968",
"0.6955337",
"0.69535863",
"0.6949669",
"0.69139093",
"0.69139093",
"0.690... | 0.7466838 | 7 |
Tokenize data file and turn into tokenids using given vocabulary file. This function loads data linebyline from data_path, calls the above sentence_to_token_ids, and saves the result to target_path. See comment for sentence_to_token_ids on the details of tokenids format. | def luxy(i0XC, lQDD, GEQi):
if not qJi5.Exists(lQDD):
print('Tokenizing data in %s' % i0XC)
CtWL, bGrB = pGdo(GEQi)
with qJi5.GFile(i0XC, mode='rb') as KAfx:
with qJi5.GFile(lQDD, mode='w') as lSVr:
ewCu = 0
for zFiD in KAfx:
ew... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def luxy(i0XC, lQDD, GEQi, b0j5=None, ocBH=True):\n if not qJi5.Exists(lQDD):\n print('Tokenizing data in %s' % i0XC)\n CtWL, bGrB = Nhuv.initialize_vocabulary(GEQi)\n with qJi5.GFile(i0XC, mode='rb') as KAfx:\n with qJi5.GFile(lQDD, mode='w') as lSVr:\n ewCu = 0\n... | [
"0.8453559",
"0.8449823",
"0.83864534",
"0.8367132",
"0.8280898",
"0.8103142",
"0.73657805",
"0.72659",
"0.7235941",
"0.7133287",
"0.7092234",
"0.7088257",
"0.7088257",
"0.70580244",
"0.70380616",
"0.6946874",
"0.6746566",
"0.6729334",
"0.6647847",
"0.65564847",
"0.6436242",
... | 0.8816068 | 0 |
Returns the name of the class only, not the package + name | def qpoq() -> str:
return 'NewsItemEntity' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _2sc(Emd4):\n return Emd4.__name__",
"def _2sc(Emd4):\n return Emd4.__name__",
"def s5_U(Emd4: type) -> str:\n return SsJC.full_classname(Emd4)",
"def vrep(YKHO):\n return YKHO.__class__.__name__",
"def Um9M(YKHO):\n CtJU = YKHO.__class__.__name__\n return str(CtJU)",
"def pnQ7(YKHO... | [
"0.83586776",
"0.83586776",
"0.82367796",
"0.82359266",
"0.8226964",
"0.8163673",
"0.8158031",
"0.8149154",
"0.81412977",
"0.8083111",
"0.8068616",
"0.79109645",
"0.7784179",
"0.77207184",
"0.77097476",
"0.77014583",
"0.7693734",
"0.7689245",
"0.76702446",
"0.7644121",
"0.754... | 0.0 | -1 |
Get the dataset type. | def VN6w(__n6):
GOAn = None
if isinstance(__n6, MDzo.ShuffleDataset):
GOAn = GA_A.SHUFFLE
elif isinstance(__n6, MDzo.MindDataset):
GOAn = GA_A.MINDRECORD
elif isinstance(__n6, MDzo.BatchDataset):
GOAn = GA_A.BATCH
elif isinstance(__n6, MDzo.SyncWaitDataset):
GOAn = GA... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SARb(YKHO):\n return YKHO.__data_set_type__",
"def sB1G():\n return euVB.getDTypeForName(euVB.getDtypeFromContext())",
"def type(YKHO) -> TlLn:\n return YKHO._type",
"def SLLj(YKHO):\n return YKHO[YKHO.dataargs()[0]].typename",
"def C5SU(AgwO):\n return DsfS[str(AgwO.GetType())]",
"def... | [
"0.8655763",
"0.7992788",
"0.7770117",
"0.77262974",
"0.7708873",
"0.76988584",
"0.76988584",
"0.76988584",
"0.7662641",
"0.76333755",
"0.7611371",
"0.74511653",
"0.7382031",
"0.7368521",
"0.72974986",
"0.7233958",
"0.718911",
"0.7168877",
"0.7162799",
"0.70589256",
"0.703210... | 0.7647859 | 9 |
convert size int into readable string (Bytes) | def FMLJ(mLGw):
for PXGI in ['', 'Ki', 'Mi', 'Gi', 'Ti', 'Pi', 'Ei', 'Zi']:
if abs(mLGw) < 1024.0:
return '{0:7.2f} {1}B'.format(mLGw, PXGI)
mLGw /= 1024.0
return '{0:.2f}YiB'.format(mLGw) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def gl70(zNig):\n if not zNig:\n return ''\n naF9 = 2 ** 10\n jEZx = 0\n L2pL = {0: '', 1: 'Ki', 2: 'Mi', 3: 'Gi', 4: 'Ti'}\n while zNig > naF9:\n zNig /= naF9\n jEZx += 1\n return str(round(zNig, 2)) + ' ' + L2pL[jEZx] + 'B'",
"def CeKW(mLGw, zNig):\n return mLGw.to_byt... | [
"0.80423987",
"0.7956511",
"0.76628673",
"0.7594332",
"0.75543565",
"0.75409937",
"0.75152415",
"0.74774325",
"0.74344766",
"0.73909307",
"0.73641306",
"0.73598915",
"0.73509854",
"0.73184323",
"0.73033726",
"0.7301947",
"0.72792214",
"0.72565633",
"0.71801907",
"0.7141067",
... | 0.0 | -1 |
Transform some img representation into a numpy array | def wfX0(VXjJ):
if isinstance(VXjJ, oyIN.ndarray):
pass
elif isinstance(VXjJ, hnIv.Image):
VXjJ = oyIN.array(VXjJ)
else:
VXjJ = XC5k.imread(str(VXjJ))
VXjJ[..., :3] = VXjJ[..., :3][..., ::-1]
VXjJ = VXjJ.astype(oyIN.float32)
if VXjJ.ndim == 2:
VXjJ = VXjJ[...,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cunl(LNo8):\n return oyIN.array(LNo8)",
"def mCo1(VXjJ, pmON=True):\n global width, height\n if pmON:\n VXjJ = hnIv.open(VXjJ)\n Uw2I = oyIN.array(VXjJ) / 255.0\n Uw2I = Uw2I.reshape(TVTK, H2v2, xMux)\n return Uw2I",
"def Vw7d(YKHO, VXjJ):\n WKvO = oyIN.asarray(VXjJ, dtype=YKHO.... | [
"0.79193175",
"0.77199835",
"0.76690245",
"0.7631758",
"0.74856997",
"0.73657405",
"0.715153",
"0.7106477",
"0.7100685",
"0.7084136",
"0.70418984",
"0.70070887",
"0.70030445",
"0.69930863",
"0.6964962",
"0.6933764",
"0.6918962",
"0.68880767",
"0.68838996",
"0.68570954",
"0.68... | 0.0 | -1 |
Apply activation on current layer | def utyH(YKHO, YuSI):
if YKHO.activation == 'ReLU':
return ZylS.nn.relu(YuSI)
elif YKHO.activation == 'Leaky_ReLU':
return ZylS.nn.leaky_relu(YuSI)
elif YKHO.activation == 'Tanh':
return ZylS.nn.tanh(YuSI)
elif YKHO.activation == 'Sigmoid':
return ZylS.nn.sigmoid(YuSI)
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Kmxe(WKvO):\n return WKvO",
"def b27A(YKHO, vHnr, sIts=None):\n if isinstance(sIts, tuple):\n sIts = sIts[0]\n NArs = sIts[1:]\n if sIts is None:\n sIts = YKHO.activation_func\n if sIts == 'LINEAR':\n return vHnr\n ZHlr = {'RELU': ZylS.nn.relu, 'RELU6': ZylS.nn.relu... | [
"0.7669725",
"0.7291756",
"0.6783112",
"0.6765618",
"0.6649252",
"0.66390026",
"0.6635049",
"0.6628963",
"0.6602787",
"0.66017324",
"0.6559534",
"0.6517468",
"0.6509912",
"0.6475084",
"0.6475084",
"0.64560694",
"0.64264786",
"0.63983756",
"0.6392709",
"0.6392709",
"0.63841766... | 0.6855014 | 2 |
Get average of each element in a vector list. | def GdCg(F_On):
exwG = len(F_On)
return i6vy(1 / exwG, _WnJ(F_On)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_SC(vHnn):\n return oyIN.sum(vHnn, axis=0) / len(vHnn)",
"def OxH8(Kgc6):\n return oyIN.mean(Kgc6, axis=0)",
"def qqgr(list):\n return sum(list) / len(list)",
"def qqgr(yv6U: list):\n return sum(yv6U) / len(yv6U)",
"def S8vG(yv6U):\n return sum(yv6U) / len(yv6U)",
"def qqgr(vC9B):\n ... | [
"0.8778111",
"0.82573926",
"0.7977214",
"0.7940798",
"0.7934565",
"0.7916716",
"0.7879446",
"0.78209776",
"0.7801524",
"0.7800641",
"0.776494",
"0.7746185",
"0.7652803",
"0.76178604",
"0.7566096",
"0.7544931",
"0.75303566",
"0.7527679",
"0.7527679",
"0.751511",
"0.748485",
... | 0.72147834 | 36 |
Dot product of a vector. | def uYbU(Ty9i, yzQ0):
return sum((nFf2 * eeAb for nFf2, eeAb in zip(Ty9i, yzQ0))) | {
"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(YKHO, he6J):\n if not isinstance(he6J, YKHO.__class__):\n raise TypeError('Dot product operand must be a vector')\n return oyIN.dot(YKHO, he6J)",
"def yYJc(hQHm, jlSq):\n return oyIN.dot(hQHm, jlSq... | [
"0.83529234",
"0.82917535",
"0.8287802",
"0.8178226",
"0.8165758",
"0.81551445",
"0.81111765",
"0.8100678",
"0.8088475",
"0.80638814",
"0.8026452",
"0.8015521",
"0.7995084",
"0.7990663",
"0.798664",
"0.79550636",
"0.7948448",
"0.79011446",
"0.78758484",
"0.7856333",
"0.783196... | 0.7217665 | 61 |
Translates the MongoDB dictionary format into the format that's expected by the application. | def WqhB(nPrm):
if not nPrm:
return None
nPrm['id'] = str(nPrm['_id'])
return nPrm | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def QbhQ(YKHO, BWXx):\n return YKHO.to_python(BWXx)",
"def _3Ag(YKHO, BWXx):\n return BWXx",
"def qMq4():\n C13M = yQaM(M1ov)\n fgcx = C13M.to_dict()\n C13M = yQaM(fgcx)\n VEvy = [[yAmx.split('\\t') for yAmx in A97Q.split('\\n')] for A97Q in '{:c}'.format(C13M).split('\\n\\n')]\n assert VE... | [
"0.57829136",
"0.5649236",
"0.5603873",
"0.5455426",
"0.5447861",
"0.53788936",
"0.5354751",
"0.53406113",
"0.53303427",
"0.5301875",
"0.5271327",
"0.52547693",
"0.52531767",
"0.5241927",
"0.5230358",
"0.5217875",
"0.52107805",
"0.5175416",
"0.51635545",
"0.5108134",
"0.51069... | 0.52079165 | 17 |
Sets the id of this Service. | def id(YKHO, id):
YKHO._id = id | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def V_9M(YKHO, id):\n YKHO.__id = id",
"def psjw(YKHO, id):\n YKHO.id = int(id)",
"def V_9M(YKHO, hbFX):\n YKHO.id_ = hbFX",
"def V_9M(YKHO, id):\n YKHO.data['id'] = id",
"def ekm0(YKHO, id):\n YKHO._id = id\n return YKHO.callRemote('setID', id)",
"def id(YKHO, id: str):\n YKHO._id =... | [
"0.790679",
"0.7877304",
"0.78467727",
"0.77119493",
"0.75807077",
"0.75544685",
"0.7527379",
"0.7527379",
"0.7527379",
"0.7520122",
"0.748693",
"0.748693",
"0.748693",
"0.748693",
"0.748693",
"0.748693",
"0.748693",
"0.748693",
"0.748693",
"0.748693",
"0.7466564",
"0.74665... | 0.73835045 | 83 |
Sets the type of this Service. | def type(YKHO, type):
BbPm = ['service', 'pickup', 'delivery']
if type not in BbPm:
raise ValueError('Invalid value for `type` ({0}), must be one of {1}'.format(type, BbPm))
YKHO._type = type | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO.type = type",
"def TG_K(YKHO, type):\n YKHO._type = type",
"def type(YKHO, type: str):\n YKHO._type = type",
"def type(YKHO, type):\n YKHO._type = type",
"def type(YKHO, type):\n YKHO._type = type",
"def type(YKH... | [
"0.79738075",
"0.79738075",
"0.7915099",
"0.7595325",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
"0.73748773",
... | 0.7493142 | 4 |
Sets the name of this Service. | def mWFP(YKHO, mWFP):
YKHO._name = mWFP | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WZrJ(YKHO, mWFP: str):\n YKHO._name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO._name = mWFP",
"def zPdd(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO, mWFP):\n YKHO.name = mWFP",
"def WZrJ(YKHO,... | [
"0.8186699",
"0.8147029",
"0.8138115",
"0.8091112",
"0.8091112",
"0.8091112",
"0.8091112",
"0.8091112",
"0.80555105",
"0.80555105",
"0.8021498",
"0.7997871",
"0.7972443",
"0.79695237",
"0.7922265",
"0.7910269",
"0.77766925",
"0.77766925",
"0.77733123",
"0.77733123",
"0.773850... | 0.0 | -1 |
Sets the preparation_time of this Service. | def ZPRU(YKHO, ZPRU):
YKHO._preparation_time = ZPRU | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cOuk(YKHO, rvsq):\n YKHO.startTime = iVVu(rvsq)",
"def SWox(YKHO, SWox):\n YKHO._start_time = SWox",
"def SWox(YKHO, SWox):\n YKHO._start_time = SWox",
"def SWox(YKHO, SWox):\n YKHO._start_time = SWox",
"def SWox(YKHO, SWox):\n YKHO._start_time = SWox",
"def SWox(YKHO, SWox):\n YKHO... | [
"0.59095925",
"0.58044386",
"0.58044386",
"0.58044386",
"0.58044386",
"0.58044386",
"0.5801364",
"0.5801364",
"0.5711525",
"0.57006353",
"0.5567384",
"0.55437523",
"0.5486357",
"0.54310644",
"0.5398722",
"0.53580236",
"0.53157383",
"0.52742666",
"0.51947594",
"0.5186621",
"0.... | 0.88701296 | 0 |
Sets the time_windows of this Service. | def sFCx(YKHO, sFCx):
YKHO._time_windows = sFCx | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def wHKa(YKHO, wHKa):\n YKHO._date_windows = wHKa",
"def w_5H(YKHO, w_5H):\n YKHO._windows = w_5H",
"def iYZG(YKHO, *qIxc):\n return _VfD.KineticLaw_setTimeUnits(YKHO, *qIxc)",
"def iYZG(YKHO, *qIxc):\n return _VfD.Event_setTimeUnits(YKHO, *qIxc)",
"def iYZG(YKHO, *qIxc):\n return _VfD.Model... | [
"0.6362365",
"0.581707",
"0.5633491",
"0.5571724",
"0.5543102",
"0.55132043",
"0.54960006",
"0.5169062",
"0.5161619",
"0.5109396",
"0.5088747",
"0.508181",
"0.5035249",
"0.5023071",
"0.50040764",
"0.49979436",
"0.4928521",
"0.49122813",
"0.48907137",
"0.48781702",
"0.48757547... | 0.7998597 | 0 |
Sets the allowed_vehicles of this Service. | def ZykO(YKHO, ZykO):
YKHO._allowed_vehicles = ZykO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def M0hg(YKHO, M0hg):\n YKHO._disallowed_vehicles = M0hg",
"def M0hg(YKHO, M0hg):\n YKHO._disallowed_vehicles = M0hg",
"def FMwV(YKHO, FMwV: Vehicle) -> None:\n YKHO.controlled_vehicles = [FMwV]",
"def M2wn(YKHO, Pwyd: fixture) -> None:\n zVa7: M87a = Pwyd\n assert zVa7.vehicles == J2iN()",
... | [
"0.8086139",
"0.8086139",
"0.630401",
"0.56023186",
"0.55442107",
"0.5479765",
"0.54399025",
"0.52993906",
"0.52801025",
"0.5153166",
"0.50900704",
"0.5084263",
"0.5084263",
"0.50435716",
"0.5019797",
"0.50028473",
"0.49678433",
"0.49333933",
"0.49119717",
"0.48445362",
"0.47... | 0.8965602 | 0 |
Returns true if both objects are equal | def xa14(YKHO, Elif):
if not isinstance(Elif, M87a):
return False
return YKHO.__dict__ == Elif.__dict__ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n return p6XU(YKHO, Elif)",
"def xa14(YKHO, Elif):\n try:\n return YKHO.object == Elif.object and isinstance(YKHO, type(Elif))\n except:\n return False",
"def xa14(YKHO, Elif):\n if isinstance(YKHO, Elif.__c... | [
"0.8088132",
"0.8088132",
"0.8054589",
"0.7982687",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
"0.79670393",
... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif) -> bool:\n return not YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return not YKHO.__ne__(Elif)",
... | [
"0.845611",
"0.8391477",
"0.8144138",
"0.81410587",
"0.8132492",
"0.8093973",
"0.80920255",
"0.80920255",
"0.80920255",
"0.8085325",
"0.8085325",
"0.8076365",
"0.8076365",
"0.8065748"
] | 0.0 | -1 |
Generates an nbit prime. | def KKLz(YKHO, Fo59):
exwG = XD3u.mpz(HTbS.getrandbits(Fo59))
return XD3u.next_prime(exwG) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def a4QL(Fo59: int=128) -> int:\n ttqZ = PWzx()\n fuim = ttqZ.getrandbits(Fo59)\n fuim |= 1 << Fo59 - 1\n fuim |= 1\n return fuim",
"def slx7():\n exwG = 1\n while True:\n while not _f0Y(exwG):\n exwG += 1\n yield exwG\n exwG += 1",
"def T1qg(exwG):\n ass... | [
"0.76496625",
"0.70351064",
"0.69764924",
"0.6935976",
"0.6927509",
"0.69273657",
"0.6900431",
"0.6892048",
"0.6869236",
"0.68594325",
"0.6854441",
"0.68279946",
"0.6823428",
"0.68212724",
"0.67940694",
"0.67818284",
"0.67702633",
"0.6769174",
"0.67597044",
"0.67560023",
"0.6... | 0.7981432 | 0 |