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 |
|---|---|---|---|---|---|---|
Function for the modification of Quick Sort algorithm with Insertion Sort on short sub arrays. | def pIdp(ezWE, LFlW, _tIi, qonS):
if _tIi - LFlW + 1 <= qonS and LFlW < _tIi:
fKAR(ezWE, LFlW, _tIi)
elif LFlW < _tIi:
BBAP = Qrt_(ezWE, LFlW, _tIi)
pIdp(ezWE, LFlW, BBAP - 1, qonS)
pIdp(ezWE, BBAP + 1, _tIi, qonS) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vk7q(ezWE, gqRb, ODP9):\n if gqRb < ODP9:\n mM0K = Qrt_(ezWE, gqRb, ODP9)\n vk7q(ezWE, gqRb, mM0K - 1)\n vk7q(ezWE, mM0K + 1, ODP9)",
"def rNe0(ezWE, yKcO, Os4s):\n if yKcO >= Os4s:\n return\n DuWS = Qrt_(ezWE, yKcO, Os4s)\n rNe0(ezWE, yKcO, DuWS - 1)\n rNe0(ezWE, D... | [
"0.694111",
"0.6898944",
"0.68734044",
"0.6784269",
"0.6781732",
"0.6674123",
"0.6629892",
"0.6590765",
"0.658821",
"0.65667903",
"0.6566459",
"0.6562091",
"0.65099895",
"0.649578",
"0.64919114",
"0.6464568",
"0.64604425",
"0.64542687",
"0.64462435",
"0.6436099",
"0.64349055"... | 0.74155873 | 0 |
Function for the Quick Sort algorithm implementation. | def lguw(ezWE, LFlW, _tIi):
if LFlW < _tIi:
BBAP = Qrt_(ezWE, LFlW, _tIi)
lguw(ezWE, LFlW, BBAP - 1)
lguw(ezWE, BBAP + 1, _tIi) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vk7q(ezWE, gqRb, ODP9):\n if gqRb < ODP9:\n mM0K = Qrt_(ezWE, gqRb, ODP9)\n vk7q(ezWE, gqRb, mM0K - 1)\n vk7q(ezWE, mM0K + 1, ODP9)",
"def L8TF(ezWE, yKcO, Os4s):\n if yKcO < Os4s:\n mM0K = uXoo.partition(ezWE, yKcO, Os4s)\n uXoo.do_quick_sort(ezWE, yKcO, mM0K - 1)\n ... | [
"0.77260876",
"0.7656204",
"0.7615298",
"0.7602457",
"0.75267273",
"0.75031716",
"0.7498682",
"0.7497507",
"0.7428416",
"0.74134",
"0.7384572",
"0.7369385",
"0.73645455",
"0.7358816",
"0.7339506",
"0.732997",
"0.7268902",
"0.7259187",
"0.7254376",
"0.7243919",
"0.72246873",
... | 0.7151182 | 25 |
Count average value of list's elements. | def qK1X(yv6U):
yaaC = 0
for YRbF in yv6U:
yaaC += YRbF
return yaaC / len(yv6U) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NgYo(YKHO, aO51):\n return sum(aO51) / float(len(aO51))",
"def S8vG(list):\n Aofo = 0\n for aM8h in list:\n Aofo = aM8h + Aofo\n return Aofo / len(list)",
"def qqgr(yv6U):\n assert len(yv6U) > 0, 'List must contain something'\n return sum(yv6U) / len(yv6U)",
"def qqgr(BDwY):\n ... | [
"0.7967106",
"0.78633875",
"0.78460944",
"0.7836752",
"0.78359884",
"0.78294957",
"0.78207123",
"0.7804771",
"0.7671696",
"0.7635476",
"0.7598316",
"0.75911593",
"0.7584219",
"0.75621694",
"0.7556232",
"0.75495106",
"0.7541423",
"0.7536391",
"0.75338954",
"0.75338227",
"0.750... | 0.8445846 | 0 |
Initialize to zero cell states and hidden states | def SqHK(YKHO, g4y1):
Ep8u = g4y1.size(0)
OwND = ht2j.zeros(YKHO.num_layers * YKHO.num_directions, Ep8u, YKHO.hidden_size, device=YKHO.device)
Ngpo = ht2j.zeros(YKHO.num_layers * YKHO.num_directions, Ep8u, YKHO.hidden_size, device=YKHO.device)
return (OwND, Ngpo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MP8d(YKHO):\n Zode = iQnE(ht2j.zeros(YKHO.num_layers, YKHO.batch_size, YKHO.hidden_size))\n VmPb = iQnE(ht2j.zeros(YKHO.num_layers, YKHO.batch_size, YKHO.hidden_size))\n return (Zode, VmPb)",
"def mDs7(YKHO):\n YKHO.hidden = YKHO.model.get_initial_hidden(1)",
"def MAw8(YKHO):\n MuED = ZylS.k... | [
"0.7009574",
"0.6985362",
"0.6964679",
"0.693445",
"0.692825",
"0.69182056",
"0.68798983",
"0.6820259",
"0.67383647",
"0.6736086",
"0.67091256",
"0.67039937",
"0.66765696",
"0.66495085",
"0.66495085",
"0.66307795",
"0.6630438",
"0.6623346",
"0.66194266",
"0.6604907",
"0.65861... | 0.0 | -1 |
Construct a datetime object from a string. | def cUyl(CB8y: str) -> qcWV:
return qcWV.strptime(CB8y, '%b %d %Y %I:%M%p') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BovB(Emd4, KCHu):\n try:\n lO87 = int(KCHu[:4])\n x0eS = int(KCHu[4:6])\n CjKC = int(KCHu[6:8])\n KCHu = KCHu.split('T')[1]\n ROt1 = int(KCHu[:2])\n yVtz = int(KCHu[2:4])\n CsFy = int(KCHu[4:6])\n return Emd4(lO87, x0eS, CjKC, ROt1, yVtz, CsFy)\n ex... | [
"0.79477394",
"0.77942085",
"0.7641345",
"0.75385267",
"0.7468063",
"0.7397207",
"0.73438585",
"0.7311382",
"0.73099375",
"0.7306361",
"0.7290143",
"0.7287253",
"0.725955",
"0.72462523",
"0.7147022",
"0.7135954",
"0.7092625",
"0.70801747",
"0.70678324",
"0.7065852",
"0.702299... | 0.0 | -1 |
Convert datetime to str format. | def ZOUZ(VwNh: datetime.datetime) -> str:
return VwNh.strftime('%Y-%m-%d %H:%M:%S') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def _RwM(YKHO, qcWV):\n return qcWV.strftime('%m/%d/%Y')",
"def oKfy(JRYC: datetime) -> str:\n return str(JRYC)",
"def hLAQ(Emd4, pdbK, yAKl=rbmW.ISO):\n return pdbK.strftime(yAKl)",
"def pTGH(qSq0):\n return qSq0.strftime('%Y/%m/%d %H:%M')",
"def yLCI(JRYC):\n return JRYC.strftime(A19j)",
... | [
"0.82595974",
"0.81489223",
"0.8061611",
"0.8060324",
"0.785363",
"0.78505945",
"0.7824163",
"0.7782192",
"0.7759156",
"0.77172035",
"0.7697643",
"0.7534601",
"0.75160575",
"0.7513036",
"0.74538416",
"0.7428635",
"0.7406743",
"0.7401481",
"0.7398034",
"0.73909104",
"0.7373774... | 0.73498523 | 23 |
Get the current time. | def spFn() -> qcWV.datetime:
return qcWV.datetime.now() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def m7L9(YKHO):\n return YKHO._current_time",
"def m7L9(YKHO):\n return YKHO._current_time",
"def m7L9(YKHO):\n return YKHO._current_time",
"def m7L9(YKHO):\n return YKHO._current_time",
"def m7L9(YKHO):\n return YKHO._current_time",
"def ApjM():\n return qcWV.now().replace(microsecond=... | [
"0.86504936",
"0.86504936",
"0.86504936",
"0.86504936",
"0.86504936",
"0.86424214",
"0.86182797",
"0.86173385",
"0.8594742",
"0.85018784",
"0.847969",
"0.8441216",
"0.84286714",
"0.8403604",
"0.8403604",
"0.83800113",
"0.8376946",
"0.83668333",
"0.835497",
"0.8354114",
"0.834... | 0.76676327 | 82 |
Returns the command line flags for this compiler. | def F77I(PD5D, AVsq):
if not PD5D:
return []
try:
return AVsq[PD5D]
except KeyError:
gcep = ', '.join(AVsq.keys())
raise ValueError('Given compiler: %s. Valid compilers: %s' % (PD5D, gcep)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YvUC(YKHO) -> str:\n return YKHO.args + YKHO.flags",
"def lVp5(YKHO):\n pass",
"def Of2m():\n JbyC = ['-I' + OyQC('include'), '-I' + OyQC('platinclude')]\n JbyC.extend(dsLK('CFLAGS').split())\n for Q5IA in ('-fwrapv', '-Wall'):\n if Q5IA in JbyC:\n JbyC.remove(Q5IA)\n re... | [
"0.70424235",
"0.6932083",
"0.68119997",
"0.6786037",
"0.6762454",
"0.6654361",
"0.66061616",
"0.64686316",
"0.6456141",
"0.6424136",
"0.63568485",
"0.63280946",
"0.6304217",
"0.623802",
"0.623802",
"0.623802",
"0.623802",
"0.623802",
"0.62189114",
"0.6212622",
"0.62019104",
... | 0.0 | -1 |
The Amazon Resource Name (ARN) of the Replication Config | def KhIi(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'replication_config_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ttrv(YKHO) -> h8nf[str]:\n return qe4Y.get(YKHO, 'replication_config_identifier')",
"def lOOX(YKHO) -> str:\n return qe4Y.get(YKHO, 'replication_region_id')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) -> str:\n return qe4Y.get(YKHO, 'arn')",
"def hMqs(YKHO) ->... | [
"0.69686943",
"0.65367943",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.65036964",
"0.64833474"... | 0.8475572 | 0 |
The Amazon Resource Name (ARN) of the source endpoint for this AWS DMS Serverless replication configuration | def EMgc(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'source_endpoint_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hXUN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_arn')",
"def UX4A(YKHO):\n return YKHO._source_endpoint",
"def hXUN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'endpoint_arn')",
"def xF2O(YKHO):\n return YKHO.__source_endpoint",
"def oz5v(YKHO) -> h8nf[str]:\n ... | [
"0.7225393",
"0.704033",
"0.69108003",
"0.6857409",
"0.68555504",
"0.65245724",
"0.6434921",
"0.6403893",
"0.625071",
"0.6223449",
"0.6195915",
"0.6167636",
"0.61516833",
"0.6146648",
"0.6146648",
"0.6146648",
"0.6146648",
"0.61326134",
"0.61189735",
"0.6098268",
"0.6098268",... | 0.7973002 | 0 |
The Amazon Resource Name (ARN) of the target endpoint for this AWS DMS Serverless replication configuration | def oz5v(YKHO) -> h8nf[str]:
return qe4Y.get(YKHO, 'target_endpoint_arn') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hXUN(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'endpoint_arn')",
"def hXUN(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'endpoint_arn')",
"def InQF(YKHO):\n return YKHO._target_endpoint",
"def cumd(YKHO):\n return YKHO.get('endpoint_name')",
"def EMgc(YKHO) -> h8nf[str]:... | [
"0.76235217",
"0.70838255",
"0.6822149",
"0.6752574",
"0.65948796",
"0.65048945",
"0.64859694",
"0.6481148",
"0.6458249",
"0.6458249",
"0.6458249",
"0.6458249",
"0.64394265",
"0.64097524",
"0.6346665",
"0.6346665",
"0.6346665",
"0.6346665",
"0.6346665",
"0.6346665",
"0.634666... | 0.78436756 | 0 |
Return a driver for the rider, or None if no driver is available. Add the rider to the waiting list if there is no available driver. | def h2r2(YKHO, cgSI):
E_qD = None
if len(YKHO.drivers) == 0:
cgSI.status = cVRz
YKHO.wait_list.append(cgSI)
return None
else:
for YRbF in range(len(YKHO.drivers)):
if E_qD is None and YKHO.drivers[YRbF].is_idle:
E_qD = YKHO.drivers[YRbF]
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lTzm(YKHO, E_qD):\n cgSI = None\n EmMj = False\n if E_qD not in YKHO.drivers:\n YKHO.drivers.append(E_qD)\n if len(YKHO.wait_list) != 0:\n for YRbF in range(len(YKHO.wait_list)):\n if YKHO.wait_list[YRbF].status == cVRz and (not EmMj):\n cgSI = YKHO.wait_list... | [
"0.7788953",
"0.7440995",
"0.7314422",
"0.64842993",
"0.62970924",
"0.6288379",
"0.6161424",
"0.61460465",
"0.6066754",
"0.5976361",
"0.5976361",
"0.5908475",
"0.58956224",
"0.58872855",
"0.5746293",
"0.5742873",
"0.5732141",
"0.56884056",
"0.56533736",
"0.56485736",
"0.56185... | 0.84543234 | 0 |
Sets the contacts_mapped_using_zip_code of this TimeZoneMappingPreview. The number of contacts per time zone that mapped to only that time zone and were mapped using the zip code column | def s172(YKHO, s172):
YKHO._contacts_mapped_using_zip_code = s172 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def s172(YKHO):\n return YKHO._contacts_mapped_using_zip_code",
"def g3j7(YKHO, g3j7):\n YKHO._contacts_mapped_to_multiple_zones_using_zip_code = g3j7",
"def g3j7(YKHO):\n return YKHO._contacts_mapped_to_multiple_zones_using_zip_code",
"def ScYg(YKHO, ScYg):\n YKHO._contacts_mapped_to_a_single_zo... | [
"0.7638691",
"0.75546217",
"0.7262164",
"0.7186711",
"0.67453134",
"0.5895865",
"0.58740497",
"0.5626574",
"0.55332536",
"0.54390866",
"0.5436238",
"0.5323042",
"0.5323042",
"0.5323042",
"0.5323042",
"0.52047753",
"0.5065906",
"0.5028449",
"0.48757792",
"0.4823828",
"0.476553... | 0.82484555 | 0 |
Gets the contact_list_size of this TimeZoneMappingPreview. The total number of contacts in the contact list | def tAV0(YKHO):
return YKHO._contact_list_size | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dDh0(YKHO) -> int:\n return YKHO._number_of_pages(YKHO.app.op['get_characters_character_id_contacts'](character_id=YKHO.get_character_id))",
"def tAV0(YKHO, tAV0):\n YKHO._contact_list_size = tAV0",
"def ywwl(YKHO):\n if YKHO._N is None:\n YKHO._N = YKHO._contact_result.getNumContacts()\n ... | [
"0.67980975",
"0.6511168",
"0.6452072",
"0.6320162",
"0.619037",
"0.6168598",
"0.608323",
"0.6050069",
"0.60273194",
"0.60273194",
"0.60273194",
"0.5975784",
"0.58858454",
"0.5880079",
"0.5872756",
"0.5859714",
"0.5836679",
"0.58276653",
"0.5823104",
"0.58164525",
"0.58128226... | 0.8222717 | 0 |
Returns the string representation of the model | def gTzM(YKHO):
return EyO9(YKHO.to_dict()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n return str(YKHO.__model)",
"def zAg0(YKHO):\n return str(YKHO.model)",
"def zAg0(YKHO):\n return YKHO.text",
"def zAg0(YKHO):\n oOUF = '-----------------------------------------------------------------------------------\\n'\n _2sc = YKHO.__class__.__name__\n oOUF += '\\t\\... | [
"0.86418265",
"0.85103965",
"0.7853324",
"0.77442306",
"0.7712258",
"0.76979405",
"0.765959",
"0.7637644",
"0.76218504",
"0.7607561",
"0.7606604",
"0.7606604",
"0.7606604",
"0.75990754",
"0.7585653",
"0.758149",
"0.7570811",
"0.7567585",
"0.75392604",
"0.75392604",
"0.7527967... | 0.0 | -1 |
Returns true if both objects are not equal | def Vdqg(YKHO, Elif):
return not YKHO == Elif | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO.__eq__(Elif)",
"def Vdqg(YKHO, Elif: object) -> bool:\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif: object):\n return not YKHO == Elif",
"def Vdqg(YKHO, Elif):\n if YKHO.__eq__(Elif):\n return False\n return True",
"def Vdqg(... | [
"0.8392633",
"0.8354901",
"0.82950056",
"0.8132309",
"0.81149805",
"0.8099986",
"0.809911",
"0.8097883",
"0.8097883",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8092252",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8085141",
"0.8066694",
"0.80594814",
"0.805757",
... | 0.0 | -1 |
Execute forward computation of the Neural Network. | def KVH6(YKHO, QTBn, XeOP):
jzdc = vuvg.relu(YKHO.l1(ht2j.cat([QTBn, XeOP], 1)))
jzdc = vuvg.relu(YKHO.l2(jzdc))
jzdc = YKHO.phi * YKHO.max_action * ht2j.tanh(YKHO.l3(jzdc))
return (jzdc + XeOP).clamp(-YKHO.max_action, YKHO.max_action) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kibC(YKHO):\n YCHL, FYHN = YKHO.find_input()\n with ZylS.control_dependencies([YCHL, FYHN]):\n YKHO.calculate_output(YCHL, FYHN)",
"def KVH6(YKHO):\n EcVT = YKHO.inbound_nodes[0].value\n XcU5 = YKHO.inbound_nodes[1].value\n Fg_i = YKHO.inbound_nodes[2].value\n YKHO.value = oyIN.dot(E... | [
"0.6973054",
"0.69602996",
"0.6953337",
"0.69168097",
"0.68998384",
"0.68912995",
"0.6889722",
"0.68647873",
"0.6854001",
"0.6842711",
"0.6842711",
"0.6841159",
"0.6841159",
"0.683376",
"0.68000996",
"0.6786237",
"0.6774945",
"0.6774945",
"0.67492676",
"0.674634",
"0.67301476... | 0.0 | -1 |
Execute forward computation of the Neural Network. | def KVH6(YKHO, QTBn):
jzdc = vuvg.relu(YKHO.l1(QTBn))
jzdc = vuvg.relu(YKHO.l2(jzdc))
jzdc = YKHO.max_action * ht2j.tanh(YKHO.l3(jzdc))
return jzdc | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kibC(YKHO):\n YCHL, FYHN = YKHO.find_input()\n with ZylS.control_dependencies([YCHL, FYHN]):\n YKHO.calculate_output(YCHL, FYHN)",
"def KVH6(YKHO):\n EcVT = YKHO.inbound_nodes[0].value\n XcU5 = YKHO.inbound_nodes[1].value\n Fg_i = YKHO.inbound_nodes[2].value\n YKHO.value = oyIN.dot(E... | [
"0.69738275",
"0.6959707",
"0.6951904",
"0.69160736",
"0.6900114",
"0.68902135",
"0.68889767",
"0.68642044",
"0.68532395",
"0.6842339",
"0.6842339",
"0.68408173",
"0.68408173",
"0.6833184",
"0.6799741",
"0.67859566",
"0.67741466",
"0.67741466",
"0.67483294",
"0.6746085",
"0.6... | 0.0 | -1 |
Execute forward computation of the Neural Network. | def KVH6(YKHO, QTBn, Yk6s, XeOP=None):
duS3 = YKHO.fc_state(QTBn)
pQaK = YKHO.fc_action(XeOP)
mgVQ = YKHO.fc_state_action(ht2j.cat((duS3, pQaK), dim=-1))
if YKHO.tau_embed_dim > 1:
jzdc = ht2j.cos(ht2j.Tensor([epAf.pi]) * YKHO.i_ * Yk6s)
else:
jzdc = Yk6s
LJrl = YKHO.head_tau(jzd... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kibC(YKHO):\n YCHL, FYHN = YKHO.find_input()\n with ZylS.control_dependencies([YCHL, FYHN]):\n YKHO.calculate_output(YCHL, FYHN)",
"def KVH6(YKHO):\n EcVT = YKHO.inbound_nodes[0].value\n XcU5 = YKHO.inbound_nodes[1].value\n Fg_i = YKHO.inbound_nodes[2].value\n YKHO.value = oyIN.dot(E... | [
"0.6973054",
"0.69602996",
"0.6953337",
"0.69168097",
"0.68998384",
"0.68912995",
"0.6889722",
"0.68647873",
"0.6854001",
"0.6842711",
"0.6842711",
"0.6841159",
"0.6841159",
"0.683376",
"0.68000996",
"0.6786237",
"0.6774945",
"0.6774945",
"0.67492676",
"0.674634",
"0.67301476... | 0.0 | -1 |
A constructor for a Car object | def FIMM(YKHO, qfpW, u54L, Rci7, C3ap):
YKHO.color = qfpW
YKHO.length = u54L
YKHO.location = Rci7
YKHO.orientation = C3ap | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FIMM(YKHO, _6NH, tKrx):\n YKHO.car = _6NH\n YKHO.cdr = tKrx",
"def FIMM(YKHO, mWFP, u54L, Rci7, C3ap):\n YKHO.__length = u54L\n YKHO.__orientation = C3ap\n YKHO.__location = Rci7\n YKHO.__name = mWFP",
"def rbSE():\n LWQX = _6NH.Wheel(pwm_pin=33, dir_pin_1=35, dir_pin_2=37, pwm_freq=15... | [
"0.79368895",
"0.7589983",
"0.7163509",
"0.71316147",
"0.7090464",
"0.7025979",
"0.69858414",
"0.6959387",
"0.6809632",
"0.6777932",
"0.6765412",
"0.6744311",
"0.6744311",
"0.6739095",
"0.669848",
"0.6686019",
"0.66594136",
"0.66299975",
"0.66203266",
"0.66086644",
"0.656865"... | 0.693621 | 8 |
Compute the cumulative maximum of the tensor `x` along `axis`. This operation is similar to the more classic `cumsum`.Only support 1D tensor for now | def YKkK(WKvO, gxEw=False, mWFP=None):
with IPme.name_scope(mWFP, 'Cummax', [WKvO]) as mWFP:
WKvO = IPme.convert_to_tensor(WKvO, name='x')
if gxEw:
WKvO = ZylS.reverse(WKvO, axis=[0])
ZfiU = ZylS.scan(lambda jzdc, LVAh: ZylS.maximum(jzdc, LVAh), WKvO, initializer=None, parallel_i... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def YKkK(WKvO, gxEw=False, mWFP=None):\n with IPme.name_scope(mWFP, 'Cummax', [WKvO]) as mWFP:\n WKvO = IPme.convert_to_tensor(WKvO, name='x')\n if gxEw:\n WKvO = ZylS.reverse(WKvO, axis=[0])\n ZfiU = ZylS.scan(lambda jzdc, LVAh: ZylS.maximum(jzdc, LVAh), WKvO, initializer=None, ... | [
"0.77772194",
"0.7734483",
"0.72656953",
"0.7046164",
"0.6956611",
"0.6876465",
"0.68359435",
"0.683552",
"0.6806472",
"0.6802983",
"0.67534024",
"0.6738541",
"0.66764116",
"0.66625285",
"0.6643274",
"0.66346705",
"0.659753",
"0.659753",
"0.6552301",
"0.6549993",
"0.65465105"... | 0.779038 | 0 |
The value can get from `vpc.NatGateway` Attributes "snat_table_ids". | def imdE(YKHO) -> qe4Y.Input[str]:
return qe4Y.get(YKHO, 'snat_table_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imdE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'snat_table_id')",
"def imdE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'snat_table_id')",
"def Ni9x(YKHO):\n return {'RouteTableId': FL8s(YKHO.param_PublicRouteTableId()), 'SubnetId': FL8s(YKHO.subnet())}",
"def WaFK(YKHO) -> ... | [
"0.6676673",
"0.6512022",
"0.56564766",
"0.52428615",
"0.52385366",
"0.52155936",
"0.52080196",
"0.5124624",
"0.5122449",
"0.51045865",
"0.5100218",
"0.5095165",
"0.50943816",
"0.5092006",
"0.50844043",
"0.5078623",
"0.5055123",
"0.50284743",
"0.50284743",
"0.50284743",
"0.50... | 0.6530298 | 1 |
The private network segment of Ecs. This parameter and the `source_vswitch_id` parameter are mutually exclusive and cannot appear at the same time. | def QLPs(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'source_cidr') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P9xl(YKHO):\n return (YKHO.out_dcnm_net_dict.get('segmentation_id'), YKHO.out_dcnm_net_dict.get('vlan_id'))",
"def Tl6F(YKHO):\n return (YKHO.in_dcnm_net_dict.get('segmentation_id'), YKHO.in_dcnm_net_dict.get('vlan_id'))",
"def J1DQ(YKHO):\n return YKHO.addresses['private'][0]",
"def Hqfx(YKHO):... | [
"0.613178",
"0.5954325",
"0.58580554",
"0.58351827",
"0.5614026",
"0.55949706",
"0.5583326",
"0.55701727",
"0.55101365",
"0.5507532",
"0.5493592",
"0.5480201",
"0.5480201",
"0.5458386",
"0.53972685",
"0.53972685",
"0.53972685",
"0.53972685",
"0.53972685",
"0.53972685",
"0.539... | 0.5037476 | 82 |
The value can get from `vpc.NatGateway` Attributes "snat_table_ids". | def imdE(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'snat_table_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imdE(YKHO) -> qe4Y.Output[str]:\n return qe4Y.get(YKHO, 'snat_table_id')",
"def imdE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'snat_table_id')",
"def Ni9x(YKHO):\n return {'RouteTableId': FL8s(YKHO.param_PublicRouteTableId()), 'SubnetId': FL8s(YKHO.subnet())}",
"def WaFK(YKHO) -> qe4Y.O... | [
"0.66755223",
"0.6529566",
"0.5657545",
"0.5242701",
"0.52394694",
"0.521675",
"0.5208008",
"0.51257986",
"0.51223737",
"0.5105937",
"0.51004595",
"0.5096079",
"0.50938106",
"0.50919205",
"0.5085674",
"0.5078618",
"0.50555444",
"0.5028086",
"0.5028086",
"0.5028086",
"0.502808... | 0.65113413 | 2 |
The private network segment of Ecs. This parameter and the `source_vswitch_id` parameter are mutually exclusive and cannot appear at the same time. | def QLPs(YKHO) -> h8nf[qe4Y.Input[str]]:
return qe4Y.get(YKHO, 'source_cidr') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P9xl(YKHO):\n return (YKHO.out_dcnm_net_dict.get('segmentation_id'), YKHO.out_dcnm_net_dict.get('vlan_id'))",
"def Tl6F(YKHO):\n return (YKHO.in_dcnm_net_dict.get('segmentation_id'), YKHO.in_dcnm_net_dict.get('vlan_id'))",
"def J1DQ(YKHO):\n return YKHO.addresses['private'][0]",
"def Hqfx(YKHO):... | [
"0.6131064",
"0.5954765",
"0.58577806",
"0.58343244",
"0.5615311",
"0.5594266",
"0.5584069",
"0.5570057",
"0.55093807",
"0.5507683",
"0.5494545",
"0.5480445",
"0.5480445",
"0.5458112",
"0.539664",
"0.5396556",
"0.5396556",
"0.5396556",
"0.5396556",
"0.5396556",
"0.5396556",
... | 0.5040575 | 80 |
The value can get from `vpc.NatGateway` Attributes "snat_table_ids". | def imdE(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'snat_table_id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def imdE(YKHO) -> qe4Y.Input[str]:\n return qe4Y.get(YKHO, 'snat_table_id')",
"def imdE(YKHO) -> h8nf[qe4Y.Input[str]]:\n return qe4Y.get(YKHO, 'snat_table_id')",
"def Ni9x(YKHO):\n return {'RouteTableId': FL8s(YKHO.param_PublicRouteTableId()), 'SubnetId': FL8s(YKHO.subnet())}",
"def WaFK(YKHO) -> q... | [
"0.6530298",
"0.6512022",
"0.56564766",
"0.52428615",
"0.52385366",
"0.52155936",
"0.52080196",
"0.5124624",
"0.5122449",
"0.51045865",
"0.5100218",
"0.5095165",
"0.50943816",
"0.5092006",
"0.50844043",
"0.5078623",
"0.5055123",
"0.50284743",
"0.50284743",
"0.50284743",
"0.50... | 0.6676673 | 0 |
The private network segment of Ecs. This parameter and the `source_vswitch_id` parameter are mutually exclusive and cannot appear at the same time. | def QLPs(YKHO) -> qe4Y.Output[str]:
return qe4Y.get(YKHO, 'source_cidr') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def P9xl(YKHO):\n return (YKHO.out_dcnm_net_dict.get('segmentation_id'), YKHO.out_dcnm_net_dict.get('vlan_id'))",
"def Tl6F(YKHO):\n return (YKHO.in_dcnm_net_dict.get('segmentation_id'), YKHO.in_dcnm_net_dict.get('vlan_id'))",
"def J1DQ(YKHO):\n return YKHO.addresses['private'][0]",
"def Hqfx(YKHO):... | [
"0.61328804",
"0.59566325",
"0.58570755",
"0.58348304",
"0.5616871",
"0.5593289",
"0.5586577",
"0.5573421",
"0.55096287",
"0.55066913",
"0.5491983",
"0.54788554",
"0.54788554",
"0.5457355",
"0.5395919",
"0.5395919",
"0.5395919",
"0.5395919",
"0.5395919",
"0.5395919",
"0.53959... | 0.52135605 | 53 |
Return numeric answer in red, yellow or green. When certain conditions are met, return the typedin answer in red, yellow or green, depending how close the given answer was to the correct one. | def FpOT(YKHO, LaVg):
r8hN = ZbWC.search(YKHO.typeAnsPat, LaVg)
if not YKHO.typeCorrect:
return ZbWC.sub(YKHO.typeAnsPat, '', LaVg)
YKHO.web.eval('_getTypedText();')
YJko = YKHO.mw.col.media.strip(C5FA(YKHO.typeCorrect))
try:
pOqt = r8hN.group(1)
except AttributeError:
re... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def EEnb(FEJ3, CDe7):\n if FEJ3 < CDe7:\n return 'Too Low!'\n elif FEJ3 > CDe7:\n return 'Too High!'\n else:\n return 'Correct!'",
"def psF3(oV9N, lAxo):\n Aofo = bKNd()\n rLRl = Aofo[0]\n J6YE = Aofo[1]\n if rLRl == lAxo and str(J6YE) == str(oV9N):\n return 'Both... | [
"0.63495874",
"0.63044983",
"0.5739665",
"0.5698414",
"0.56400836",
"0.56256855",
"0.5574313",
"0.55728513",
"0.5568352",
"0.55672115",
"0.5546298",
"0.55344504",
"0.5533362",
"0.5531421",
"0.5519897",
"0.5505716",
"0.5496784",
"0.54896957",
"0.5471714",
"0.5468253",
"0.54682... | 0.0 | -1 |
Randomly initializes the normalizing flow. If rqs and lu_fact are provided, then they will be used to create the normalizing flow, instead of randomly initializing the bijectors. | def FIMM(YKHO, apZK, Bdz4, nSGI=None, f9WE=None, QuKp=None):
YKHO._n_dim = apZK
YKHO._n_units = Bdz4
YKHO.build(apZK, Bdz4, rqs=nSGI, lu_fact=f9WE, log_scale=QuKp) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def L_yU(YKHO, OuMq='rand_distributed'):\n\n def lKXT(wEf2, Ae2G, oVTz):\n return (Ae2G + oVTz) // 2\n\n def ADdS(wEf2, Ae2G, oVTz):\n return (oVTz - Ae2G) * tuKI.random() + Ae2G\n\n def uQiI(wEf2, Ae2G, oVTz):\n mmRm = oVTz if oVTz - wEf2 >= wEf2 - Ae2G else Ae2G\n return (mmR... | [
"0.62775856",
"0.59714663",
"0.5926437",
"0.59041786",
"0.5882081",
"0.5851127",
"0.5827085",
"0.5823291",
"0.5807843",
"0.57899904",
"0.57810843",
"0.5771307",
"0.5744508",
"0.57436544",
"0.56746346",
"0.56645375",
"0.56253004",
"0.56212425",
"0.5608823",
"0.55876356",
"0.55... | 0.5380472 | 50 |
Initialize a set of triggers for a device. | def FIMM(YKHO, ajET: HomeAssistant) -> None:
YKHO._hass = ajET
YKHO._triggers: dict[tuple[str, str], dict[str, ImMB]] = {}
YKHO._callbacks: dict[tuple[str, str], list[YrBT[[ImMB], None]]] = {}
YKHO._iid_trigger_keys: dict[int, set[tuple[str, str]]] = {} | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jsay(YKHO, jsay):\n YKHO._triggers = jsay",
"async def async_setup(YKHO, UzPC: HKDevice, aqYu: int, jsay: list[dict[str, Any]]) -> None:\n for HNvX in jsay:\n trJX = (HNvX[Cba0], HNvX[vKrk])\n YKHO._triggers[trJX] = HNvX\n YoW8 = HNvX['characteristic']\n YKHO._iid_trigger_ke... | [
"0.69501585",
"0.66882664",
"0.66166437",
"0.6484411",
"0.6370371",
"0.6342058",
"0.6175494",
"0.6100325",
"0.6061479",
"0.60556376",
"0.6030076",
"0.59459",
"0.59360373",
"0.5933277",
"0.59321374",
"0.58921564",
"0.5840217",
"0.5840217",
"0.5827161",
"0.5802494",
"0.57123864... | 0.5541129 | 29 |
Remove and return an element from the beginning of this queue. | def kSdD(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def WvVJ(YKHO):\n if not YKHO.isEmpty():\n ZfUD = YKHO.queue[0]\n YKHO.queue = YKHO.queue[1:]\n YKHO.rear -= 1\n YKHO._print()\n return ZfUD\n YKHO._print()\n return None",
"def Ksvm(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n ANfV = YKHO... | [
"0.823229",
"0.7895645",
"0.78566056",
"0.7768486",
"0.77280265",
"0.7725045",
"0.7680378",
"0.7661022",
"0.76347303",
"0.7626038",
"0.760948",
"0.760213",
"0.7591662",
"0.7563257",
"0.75628304",
"0.7546857",
"0.7529224",
"0.7515408",
"0.75124776",
"0.7510296",
"0.74966234",
... | 0.0 | -1 |
Remove and return an element on from the top of this stack. | def kSdD(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def BEuN(YKHO):\n if YKHO.topindex != -1:\n LihS = YKHO.element.pop()\n YKHO.topindex -= 1\n return LihS\n else:\n return None",
"def BEuN(YKHO):\n return YKHO.__get_top(True)",
"def BEuN(YKHO):\n if YKHO.is_empty():\n raise ValueError('stack is empty -- no items ... | [
"0.82986325",
"0.82501376",
"0.81797296",
"0.81180537",
"0.80276287",
"0.80264765",
"0.8011095",
"0.7970676",
"0.79438144",
"0.7926354",
"0.7900918",
"0.78828275",
"0.78783137",
"0.7858195",
"0.7855991",
"0.7843053",
"0.7826079",
"0.7825613",
"0.7818811",
"0.77943486",
"0.779... | 0.0 | -1 |
Returns a function that will turn a text minibatch into one_hot form. For use with iterate_function list_of_minibatch_functions argument. | def lsL7(mu85):
def dRO0(d7pR, yKcO, JCyR):
YGPk = d7pR[yKcO:JCyR]
Tdem = mQin(YGPk, mu85)
Fbjb = [len(KCHu) for KCHu in YGPk]
ZHfW = oyIN.zeros((max(Fbjb), len(YGPk)), dtype=e89i.config.floatX)
for exwG, vC9B in enumerate(Fbjb):
ZHfW[oyIN.arange(vC9B), exwG] = 1... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def w3US(A4Kf, jXxl):\n XD7S = oyIN.zeros((A4Kf.shape[0], A4Kf.shape[1], jXxl)).astype(oyIN.float32)\n for QyVM, yAmx in enumerate(A4Kf):\n for D1zF, GIN8 in enumerate(yAmx):\n XD7S[QyVM][D1zF][GIN8] = 1.0\n return iQnE(ht2j.from_numpy(XD7S)).cuda()",
"def T6s2(YKHO, *V22M):\n zNig ... | [
"0.68044066",
"0.61256754",
"0.60254693",
"0.60088617",
"0.5968918",
"0.5950242",
"0.5870329",
"0.58576536",
"0.58049095",
"0.5791314",
"0.57811284",
"0.5754552",
"0.57385087",
"0.57032865",
"0.56539196",
"0.56529015",
"0.56405514",
"0.56005806",
"0.55980766",
"0.55875367",
"... | 0.8001464 | 0 |
Return endpoints in a formatted way, depending on the client. 1) cURL will return a list of endpoints and method types 2) Every other client will return the Swagger docs | def wwZC(YKHO):
if 'curl' in VrxA.get_user_agent(QePW):
return YKHO.get_endpoints(wk5E)
else:
return oL39.generate_swagger_docs() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kE1D(YKHO):\n bD7m = '{}/metadata/resources/api-docs'.format(YKHO.baseurl)\n Ylbp = YKHO.get_serial(bD7m)\n if Ylbp:\n Ylbp = Ylbp[0]\n if Ylbp and 'apis' in Ylbp:\n return [WKvO['path'][1:] for WKvO in Ylbp['apis']]\n return []",
"def wnQ_(YKHO):\n return YKHO._get('/endpoint... | [
"0.69061625",
"0.68769807",
"0.6853904",
"0.67838514",
"0.67475",
"0.65432185",
"0.6514347",
"0.6513593",
"0.64381564",
"0.642014",
"0.6418568",
"0.6394629",
"0.63879293",
"0.63585794",
"0.6356012",
"0.63339806",
"0.6332271",
"0.6327645",
"0.6309476",
"0.6275799",
"0.6233438"... | 0.7701912 | 0 |
Is NotFound raised with share el API for nonactive replicas | def eG5_(YKHO):
weUZ = YKHO.create_share(share_type_id=YKHO.share_type['id'], availability_zone=YKHO.share_zone, share_network_id=YKHO.sn_id)
Ww2g = YKHO.create_share_replica(weUZ['id'], YKHO.replica_zone)
_M9H = YKHO.shares_v2_client.list_share_replica_export_locations(Ww2g['id'])['export_locations']
f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def o3cf(YKHO):\n raise lW34()",
"def QO4w():\n nNXP.abort(aazL.HTTP_404, 'Unable to locate tenant.')",
"def u8BF(YKHO):\n qRWY()\n QePW = X5Wl(YKHO.get_url('/1/servers/1'), method='GET', headers=kg68({'X-AUTH-TOKEN': FmkL}))\n YKHO.http_client.fetch(QePW, YKHO.stop)\n geh0 = YKHO.wait()\n ... | [
"0.6534929",
"0.6337893",
"0.6331438",
"0.62591004",
"0.6158433",
"0.6044326",
"0.60437864",
"0.6033531",
"0.60149497",
"0.59169483",
"0.591671",
"0.5912557",
"0.5905935",
"0.59059095",
"0.5883583",
"0.586177",
"0.586177",
"0.5843874",
"0.5787153",
"0.5784588",
"0.57831043",
... | 0.0 | -1 |
Is NotFound raised for invalid replica ID | def PZ8J(YKHO):
YKHO.assertRaises(xLBk.NotFound, YKHO.shares_v2_client.list_share_replica_export_locations, 'invalid-replica-id') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UTMY(YKHO):\n weUZ = YKHO.create_share(share_type_id=YKHO.share_type['id'], availability_zone=YKHO.share_zone, share_network_id=YKHO.sn_id)\n Ww2g = YKHO.create_share_replica(weUZ['id'], YKHO.replica_zone)\n YKHO.assertRaises(xLBk.NotFound, YKHO.shares_v2_client.get_share_replica_export_location, Ww2g... | [
"0.6419989",
"0.64192635",
"0.63206285",
"0.6066253",
"0.6060007",
"0.59936374",
"0.5948654",
"0.5938711",
"0.59154254",
"0.59046906",
"0.5844653",
"0.5843004",
"0.58258706",
"0.58213675",
"0.58197886",
"0.58197886",
"0.5815081",
"0.5799419",
"0.5781824",
"0.57747364",
"0.570... | 0.62471867 | 3 |
Create list of vectors with 1 values at index of action in list | def sAJt(YKHO, xASv):
veRW = oyIN.zeros((YKHO.params['batch_size'], 4))
for YRbF in range(len(xASv)):
veRW[YRbF][int(xASv[YRbF])] = 1
return veRW | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Q6sW():\n return [[0, 0], [0, 1], [0, 2], [1, 0], [1, 1], [1, 2], [2, 0], [2, 1], [2, 2]]",
"def JzU9(XeOP):\n if XeOP == 0:\n return (-1, 0)\n if XeOP == 1:\n return (1, 0)\n if XeOP == 2:\n return (0, 1)\n if XeOP == 3:\n return (0, -1)\n return None",
"def W... | [
"0.66930455",
"0.6666493",
"0.6554902",
"0.64750075",
"0.63917226",
"0.6391452",
"0.62536705",
"0.62535346",
"0.6130631",
"0.61250484",
"0.61074024",
"0.60881144",
"0.60351807",
"0.6015118",
"0.60046667",
"0.60041296",
"0.5995228",
"0.5986425",
"0.5963648",
"0.5952669",
"0.59... | 0.5495625 | 62 |
Return matrix with pacman coordinates set to 1 | def Em7K(QTBn):
TVTK, H2v2 = (QTBn.data.layout.width, QTBn.data.layout.height)
SppC = oyIN.zeros((H2v2, TVTK), dtype=oyIN.int8)
for tXMq in QTBn.data.agentStates:
if tXMq.isPacman:
oeNL = tXMq.configuration.getPosition()
VmPb = 1
SppC[-1 - int(oeNL[1])][int(oeNL[0... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def f1Y7(YKHO):\n Cs6h = oyIN.zeros((YKHO.height, YKHO.width))\n Cs6h[YKHO.current_location[0], YKHO.current_location[1]] = 1\n return Cs6h",
"def y2s_(SppC):\n\n def K2kF(cizC, Ydjp, dUe8):\n TUcM = [(-1, 0), (1, 0), (0, 1), (0, -1)]\n if dUe8 == 'P':\n vFBH, rFJx = (0, 0)\n... | [
"0.6501629",
"0.6222791",
"0.62033576",
"0.609786",
"0.6017635",
"0.58878404",
"0.58878404",
"0.58878404",
"0.58878404",
"0.58878404",
"0.5883324",
"0.58642215",
"0.58449346",
"0.5830598",
"0.5824353",
"0.580977",
"0.58040696",
"0.57446766",
"0.57321465",
"0.57169634",
"0.570... | 0.7302123 | 1 |
Returns first 3d view, Normally we get this from context need it for loopcut override | def jwoZ(AE9x=False):
for f0tD in kZw_.context.window.screen.areas:
if f0tD.type == 'VIEW_3D':
NNBi = f0tD.spaces[0]
mP5w = NNBi.region_3d
for zn0c in f0tD.regions:
if zn0c.type == 'WINDOW':
if AE9x:
return (zn0c... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ktfw(YKHO):\n BHv1 = next((f0tD for f0tD in kZw_.context.screen.areas if f0tD.type == 'VIEW_3D'))\n BHv1.spaces[0].region_3d.view_perspective = 'CAMERA'",
"def n5OU() -> None:\n pass",
"def F0ar(YKHO):\n yKIT = YKHO.__transform\n XP5J = YKHO\n while True:\n XP5J = XP5J.parentItem()... | [
"0.6455512",
"0.63245153",
"0.61014396",
"0.6086573",
"0.60737157",
"0.60329974",
"0.5975042",
"0.5967115",
"0.59604645",
"0.594612",
"0.5934788",
"0.5934788",
"0.59316695",
"0.5930328",
"0.5908222",
"0.5901588",
"0.58982265",
"0.588528",
"0.588528",
"0.58534646",
"0.58335584... | 0.63468194 | 1 |
Computes forward pass on the network (tensor flows forward through the NN) the forward method is the actual transformation. Always when building NN or layers, we must implement this forward method. The goal of the overall transformation is to transform or map the input to the correct prediction output class, and during... | def KVH6(YKHO, WKvO):
WKvO = YKHO.conv1(WKvO)
WKvO = YKHO.conv2(WKvO)
WKvO = YKHO.conv3(WKvO)
WKvO = YKHO.fc(WKvO)
return WKvO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def KVH6(YKHO):\n YKHO.fake, YKHO.latent_i, YKHO.latent_o = YKHO.netg(YKHO.input)\n YKHO.pred_real, YKHO.feat_real = YKHO.netd(YKHO.input)\n YKHO.pred_fake, YKHO.feat_fake = YKHO.netd(YKHO.fake.detach())",
"def pEZr(YKHO, g4y1, qqqI):\n pass",
"def KVH6(YKHO, WKvO):\n WKvO = YKHO.conv(WKvO)\n ... | [
"0.72365755",
"0.7189289",
"0.7184987",
"0.71778667",
"0.7167692",
"0.7142754",
"0.71256256",
"0.70981866",
"0.7095605",
"0.70937634",
"0.7088143",
"0.7062335",
"0.7049634",
"0.70486337",
"0.7044765",
"0.7041389",
"0.7035042",
"0.7012568",
"0.701247",
"0.69860613",
"0.6986061... | 0.0 | -1 |
Writes the contents of this object and returns the content as a dict object. | def Lsrz(YKHO):
return JSQx(YKHO._defaults, YKHO._values) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def MNRr(YKHO):\n return YKHO.content.copy()",
"def MNRr(YKHO):\n return dict(type=YKHO.type, content=YKHO.content)",
"def MNRr(YKHO):\n return {**{'uid': YKHO.uid, 'contents': YKHO.get_contents(), 'requirements': YKHO.get_requirements(), 'logs': YKHO.logs()}, **YKHO.dict}",
"def Napc(YKHO):\n re... | [
"0.73366743",
"0.73127836",
"0.73005664",
"0.7005812",
"0.6850403",
"0.68088645",
"0.6779483",
"0.67596954",
"0.67596954",
"0.67437774",
"0.6714296",
"0.6698667",
"0.66944593",
"0.66923064",
"0.66902626",
"0.6683496",
"0.66701704",
"0.6654793",
"0.6651844",
"0.66366434",
"0.6... | 0.0 | -1 |
Get the first value, where a pointer points to | def HGHJ(HrOk, nPrm):
def m5hN(QpfX, mBtZ, aadv, qIxc):
wEf2 = mBtZ.load(qIxc[0])
return wEf2
wEsz = nPrm.dtype(SnBA.CPointer(nPrm.dtype))
return (wEsz, m5hN) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def E_TU(YKHO):\n if YKHO.is_empty:\n return None\n return YKHO.data[YKHO.head]",
"def YrAL(YKHO):\n nIdV = YKHO._head.data\n YKHO._cur = YKHO._head\n return nIdV",
"def cntZ(YKHO):\n if YKHO.head == None:\n return None\n return YKHO.head.value",
"def cntZ(YKHO):\n if YK... | [
"0.76419777",
"0.74870497",
"0.71542895",
"0.7061462",
"0.7039737",
"0.6981778",
"0.6850917",
"0.6829817",
"0.6815048",
"0.6809598",
"0.67839026",
"0.67588633",
"0.67329466",
"0.67276603",
"0.67199206",
"0.66963553",
"0.6658552",
"0.6658552",
"0.66461056",
"0.66202885",
"0.66... | 0.0 | -1 |
Return a pretty string representation of the LppFrame instance | def zAg0(YKHO):
G9jH.debug('LppFrame.__str__')
yvT9 = 'LppFrame(data = ['
if YKHO.data:
yvT9 = yvT9 + '\n'
for Csk6 in YKHO.data:
yvT9 = yvT9 + ' ' + str(Csk6) + '\n'
yvT9 = yvT9 + '])'
return yvT9 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def zAg0(YKHO):\n FMLJ = ['\\n\\tFrame length:{}'.format(YKHO.frame_len), '\\n\\tSegmentation bit:{}'.format(YKHO.fragmention_bit), '\\n\\tFormat type:{}'.format(YKHO.format_type)]\n return ''.join(FMLJ)",
"def wHJl(YKHO):\n return str(YKHO.to_frame())",
"def wFiF(f4IJ):\n Y_sP = ''\n Y_sP += 'f... | [
"0.75745815",
"0.7091803",
"0.70774627",
"0.69486547",
"0.6788635",
"0.6754856",
"0.66641414",
"0.66195816",
"0.6604881",
"0.65167725",
"0.6472271",
"0.6448425",
"0.6409956",
"0.6380073",
"0.63696194",
"0.636557",
"0.634422",
"0.6331612",
"0.632792",
"0.6317355",
"0.62961817"... | 0.83844155 | 0 |
Return number of data elements in a LppFrame | def szAg(YKHO):
return len(YKHO.data) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def u54L(YKHO):\n YRbF = 0\n DpUl = YKHO.previousData()\n while DpUl is not None:\n YRbF += 1\n DpUl = DpUl.previousData()\n return YRbF",
"def z7W9(YKHO, f4IJ):\n return len(f4IJ.data)",
"def szAg(YKHO):\n return len(YKHO.to_frame())",
"def szAg(YKHO):\n return YKHO.frameC... | [
"0.7364892",
"0.7357414",
"0.7313022",
"0.72257465",
"0.7209076",
"0.7076948",
"0.7058237",
"0.70416486",
"0.70044166",
"0.699245",
"0.69704247",
"0.6964035",
"0.6912595",
"0.6903861",
"0.6900026",
"0.68980646",
"0.6870708",
"0.6866236",
"0.68566287",
"0.6852459",
"0.68071",
... | 0.0 | -1 |
Plots an interactive scatter plot of `x` vs `y` using bokeh, with automatic tooltips showing columns from `df`. | def Slar(jQ3Z, WKvO, LVAh, qfpW=None, _5yy=None, zNig=10, TbMz=None, WfCS=None, leAC=None, VoLU=None, IICq=None, Dy_V='top_right', LZpg=None, sbqU=600, Gxd2=600, bWeC='pan,wheel_zoom,box_zoom,save,reset', **B2fa):
TXOr = jQ3Z.copy()
TXOr.insert(0, '__index__', TXOr.index)
if WfCS is None:
gAfp = Rfh... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Slar(WKvO, LVAh, mDyP=True, AVZl=True, LZpg=None, mWFP=None, _5yy='o', Enm2=500, Focb=500, dCji=None, cHAw=None, leAC=None, qfpW='blue'):\n if mDyP:\n pqnU()\n gAfp = Rfhs(tooltips=[('entry#', '@label')])\n if LZpg is None:\n LZpg = JI1i(width=Enm2, height=Focb, tools=['box_zoom', 'reset... | [
"0.69937176",
"0.69642943",
"0.69461316",
"0.6664637",
"0.66239303",
"0.6555954",
"0.6555522",
"0.65314144",
"0.6452571",
"0.64198995",
"0.641968",
"0.6400365",
"0.6377009",
"0.63188887",
"0.62975353",
"0.62726337",
"0.61942893",
"0.61804914",
"0.61448526",
"0.6116026",
"0.61... | 0.69908345 | 1 |
Test post without auth | def oZVP(YKHO):
bD7m = '/api/comments/'
QePW = YKHO.factory.post(bD7m, {'comment_content': 'root', 'recipe_id': 1})
tTee = WGb6.as_view()
geh0 = tTee(QePW)
YKHO.assertEqual(geh0.status_code, 403) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def mIlK(YKHO):\n x0hE = i9zE()\n geh0 = x0hE.post(gxEw('api:new-post'), data=qQXR.dumps({}), content_type='application/json')\n YKHO.assertEqual(geh0.status_code, jGRS.HTTP_401_UNAUTHORIZED)",
"def wC_R(YKHO):\n geh0 = YKHO.client.post(YKHO.url)\n YKHO.assertEqual(geh0.status_code, 200)",
"def ... | [
"0.8039066",
"0.8023993",
"0.7991256",
"0.7923331",
"0.77375066",
"0.77375066",
"0.77375066",
"0.7639781",
"0.7631247",
"0.7605656",
"0.7594472",
"0.75400573",
"0.7529631",
"0.75176173",
"0.7515695",
"0.7515695",
"0.7515695",
"0.7515695",
"0.7515695",
"0.7515695",
"0.7515695"... | 0.0 | -1 |
Test post after logging in | def QAqd(YKHO):
XKMW = '/api/auth/'
FRYW = YKHO.factory.post(XKMW, {'username': 'root', 'password': 'root'})
zt0L = LQic.as_view()
V9Rh = zt0L(FRYW)
YKHO.token = V9Rh.data['data']['token']
CBIr = mv1M.objects.get(id=1)
aopr = '/api/comments/'
Qj8Z = YKHO.factory.post(aopr, {'comment_cont... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cq8w(YKHO):\n i8WE = wzkt()\n Mkmy = YKHO.client.post(gxEw('User:SignIn'), data={'username': 'testertestington', 'password': 'testertester'})\n YKHO.assertEqual(Mkmy.resolver_match.func.__name__, RCd1.SignIn.as_view().__name__)\n YKHO.assertTrue(YKHO.client.session['_auth_user_id'], YKHO.chester.pk... | [
"0.7816283",
"0.76985705",
"0.7556009",
"0.75501895",
"0.7528788",
"0.7522072",
"0.7522072",
"0.74299073",
"0.7406457",
"0.7348647",
"0.7332541",
"0.73228824",
"0.73228824",
"0.73228824",
"0.7218812",
"0.7216439",
"0.71907514",
"0.7189848",
"0.7177193",
"0.71771896",
"0.71609... | 0.0 | -1 |
Return the nodes that have linked to this node. | def KqH0(YKHO):
o7DN = XLL2.get_model('osf_models.Node')
return o7DN.objects.filter(linked_nodes=YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"... | [
"0.79543406",
"0.79543406",
"0.79543406",
"0.79543406",
"0.79543406",
"0.79543406",
"0.79543406",
"0.79543406",
"0.79526335",
"0.7913127",
"0.79113734",
"0.78235227",
"0.7791584",
"0.77534086",
"0.7729956",
"0.7717403",
"0.7699077",
"0.7697121",
"0.7690891",
"0.7690782",
"0.7... | 0.0 | -1 |
Return the nodes that have linked to this node. | def D6Y5(YKHO):
LRdN = XLL2.get_model('osf_models.Collection')
return LRdN.objects.filter(linked_nodes=YKHO) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"def Ziit(YKHO):\n return YKHO._nodes",
"... | [
"0.7956667",
"0.7956667",
"0.7956667",
"0.7956667",
"0.7956667",
"0.7956667",
"0.7956667",
"0.7956667",
"0.7955208",
"0.79157317",
"0.79133534",
"0.78255826",
"0.7793972",
"0.7754717",
"0.7732607",
"0.7719887",
"0.77017",
"0.76984674",
"0.76935405",
"0.76931983",
"0.7687378",... | 0.0 | -1 |
Returns True if there are any place bets, False otherwise. | def Pdan(YKHO):
if sum(YKHO.place_bets) > 0:
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Pdan(YKHO):\n for YRbF in YKHO.place_bets:\n if YRbF != 0:\n return True\n return False",
"def bg_U(YKHO):\n for XTKJ in YKHO.bets.iterkeys():\n if isinstance(YKHO.bets[XTKJ], dict):\n for AU8u in YKHO.bets[XTKJ].iterkeys():\n if len(YKHO.bets[XTKJ]... | [
"0.8164597",
"0.76836795",
"0.68824506",
"0.68434715",
"0.6781814",
"0.6747171",
"0.6719516",
"0.6707004",
"0.6699286",
"0.66615987",
"0.66502833",
"0.66376597",
"0.65992934",
"0.65987384",
"0.6552431",
"0.65287375",
"0.6515521",
"0.6507595",
"0.6494624",
"0.648683",
"0.64637... | 0.8277898 | 0 |
Places odds on come bet at number. Returns True if bet is placed, False otherwise. | def AYNu(YKHO, FGW3, hxx9):
if FGW3 > 3 and FGW3 != 7 and (FGW3 < 11) and (YKHO.come_bets[FGW3] != 0):
YKHO.come_bets_odds[FGW3] = hxx9
return True
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l2le(YKHO, FGW3, XTKJ):\n if not YKHO.point_on():\n return False\n else:\n if FGW3 != 7 and FGW3 < 11 and (FGW3 > 3):\n YKHO.place_bets[FGW3] = XTKJ\n return True",
"def ad5X(YKHO, FGW3, XTKJ):\n if YKHO.game.is_point_on() and FGW3 != 7 and (FGW3 < 11) and (FGW3 > 3):... | [
"0.7571292",
"0.73180914",
"0.69824076",
"0.6570555",
"0.65017474",
"0.62674385",
"0.6252444",
"0.6209081",
"0.6194606",
"0.6141043",
"0.5985962",
"0.5970842",
"0.5956148",
"0.59089476",
"0.58926547",
"0.58399624",
"0.5834745",
"0.58087575",
"0.5787484",
"0.5782177",
"0.57644... | 0.79024684 | 0 |
Truncates a pair of sequences to a maximum sequence length. | def Rryn(D56S, uFLt, S_fz, xlLU):
while True:
RV39 = len(D56S) + len(uFLt)
if RV39 <= S_fz:
break
sNLm = D56S if len(D56S) > len(uFLt) else uFLt
assert len(sNLm) >= 1
if xlLU.random() < 0.5:
del sNLm[0]
else:
sNLm.pop() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def n44Y(D56S, uFLt, BcCR):\n while True:\n RV39 = len(D56S) + len(uFLt)\n if RV39 <= BcCR:\n break\n if len(D56S) > len(uFLt):\n D56S.pop()\n else:\n uFLt.pop()",
"def n44Y(D56S, uFLt, BcCR):\n while True:\n RV39 = len(D56S) + len(uFLt)\n... | [
"0.7914859",
"0.79077154",
"0.79077154",
"0.78723884",
"0.7859574",
"0.7859574",
"0.785551",
"0.78526723",
"0.78526723",
"0.7851384",
"0.7848962",
"0.78365105",
"0.78365105",
"0.78365105",
"0.78365105",
"0.78365105",
"0.78365105",
"0.78365105",
"0.78365105",
"0.78365105",
"0.... | 0.6683308 | 80 |
Add StackFrame to frames list. | def j97b(YKHO, Hp_S):
if len(YKHO.stack_frames) >= XLpg:
YKHO.dropped_frames_count += 1
else:
YKHO.stack_frames.append(Hp_S.format_stack_frame_json()) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kyU_(YKHO, VIPT):\n for f4IJ in VIPT:\n YKHO.add_frame(f4IJ)",
"def yt7t(YKHO, f4IJ):\n if len(YKHO.frames) == ed_r - 1:\n raise ValueError(zyOV)\n YKHO.frames.append(f4IJ)",
"def yt7t(YKHO, f4IJ):\n assert isinstance(f4IJ, Ybws)\n YKHO.frames.append(f4IJ)",
"def kyU_(YKHO, V... | [
"0.7821917",
"0.77396953",
"0.75666356",
"0.75168574",
"0.71646434",
"0.69486475",
"0.6932193",
"0.6719079",
"0.66627944",
"0.6661637",
"0.6610256",
"0.65952575",
"0.65579224",
"0.6328399",
"0.6271237",
"0.61814284",
"0.617398",
"0.61179435",
"0.61080164",
"0.6068212",
"0.599... | 0.783828 | 0 |
returns new numpy.ndarray that is a transpose of a matrix | def ol8l(SppC):
return SppC.transpose() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ol8l(SppC):\n return SppC.T",
"def ol8l(SppC):\n return SppC.T",
"def ol8l(SppC):\n import numpy as oyIN\n return oyIN.transpose(SppC)",
"def l7uB(vb7U):\n return vb7U.T",
"def uquV(k0lF: np.ndarray) -> oyIN.ndarray:\n return k0lF.T @ k0lF",
"def __Sz(vb7U):\n return oyIN.transpo... | [
"0.8580151",
"0.8580151",
"0.8382443",
"0.83595484",
"0.8084392",
"0.8001319",
"0.7992367",
"0.7913015",
"0.78914195",
"0.78660035",
"0.78566617",
"0.7807963",
"0.77785873",
"0.77705413",
"0.7735289",
"0.77302206",
"0.77208143",
"0.7711629",
"0.7690487",
"0.76643974",
"0.7646... | 0.8578479 | 2 |
Creates an instance of this model from a dictionary | def rQfz(Emd4, cmPJ):
if cmPJ is None:
return None
ZXrC = None
if cmPJ.get('databaseCopyInfoList') != None:
ZXrC = list()
for g8x2 in cmPJ.get('databaseCopyInfoList'):
ZXrC.append(qRGs.models.exchange_database_copy_info.ExchangeDatabaseCopyInfo.from_dictionary(g8x2))
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rQfz(Emd4, cmPJ):\n if cmPJ == None:\n return None\n else:\n mWFP = cmPJ.get('name')\n l8cJ = cmPJ.get('generic_id')\n Gsi3 = cmPJ.get('therauptic_uses')\n PALZ = cmPJ.get('search_score')\n return Emd4(mWFP, l8cJ, Gsi3, PALZ)",
"def rQfz(Emd4, cmPJ):\n if cm... | [
"0.83722425",
"0.8335738",
"0.8215464",
"0.8167521",
"0.8167521",
"0.81483614",
"0.8051766",
"0.80300796",
"0.8013641",
"0.79792094",
"0.79221934",
"0.7919166",
"0.79183745",
"0.79125935",
"0.7906434",
"0.79004663",
"0.78967476",
"0.7886129",
"0.78760797",
"0.78543913",
"0.78... | 0.0 | -1 |
Returns the server current date and time. | def wzkt(YKHO):
return qcWV.datetime.now() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def vHj7():\n return qcWV.now().strftime('%Y-%m-%d %H:%M:%S')",
"def D6EG():\n return LgWF.now()",
"def hBa0():\n return qcWV.now()",
"def B72W():\n wzkt = JRYC.datetime.now()\n return wzkt.strftime('%Y-%m-%d %H:%M:%S')",
"def vHj7():\n return qcWV.now().strftime('%Y-%m-%d %H:%M')",
"de... | [
"0.819422",
"0.8161476",
"0.81232697",
"0.80665386",
"0.79452",
"0.7943802",
"0.78608346",
"0.7849459",
"0.7839387",
"0.7820083",
"0.78145677",
"0.7806795",
"0.7781872",
"0.7781404",
"0.7780105",
"0.7778951",
"0.77656937",
"0.7745622",
"0.7716875",
"0.7687307",
"0.76752883",
... | 0.74906665 | 51 |
Only activity stats are set. | def nqEi(YKHO):
wyyA.set(gCuF.CC_TWEET_ACTIVITY_CACHE_KEY, YKHO.json_data['activity'], gCuF.CC_STATS_CACHE_TIMEOUT)
Mkmy = YKHO.client.get(gxEw('customercare.landing'), follow=True)
NaW5(200, Mkmy.status_code) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def hiR5(YKHO, *qIxc, **B2fa):\n raise NotImplementedError()",
"def eQSh(YKHO, eQSh):\n YKHO._stats = eQSh",
"def Tg5s():\n YKHO.last_activity = ITS7.monotonic()",
"def B6vX(YKHO):\n pass",
"def beW8(YKHO):\n pass",
"def ZXZ0(YKHO):\n YKHO.last_activity = ITS7.time()",
"def bAmY(YKHO)... | [
"0.62539047",
"0.61487687",
"0.6116656",
"0.6113916",
"0.59911144",
"0.5991011",
"0.58921903",
"0.58188653",
"0.5812483",
"0.5812483",
"0.58113444",
"0.57625896",
"0.56716335",
"0.5656779",
"0.5641277",
"0.5606084",
"0.5595578",
"0.55861676",
"0.5582703",
"0.55704844",
"0.556... | 0.632013 | 0 |
Test get_pkg_version(), which extracts package version from the provided requirements file. | def gB1k(ndwV):
CQI2 = 'SQLAlchemy>=1.2.0, <2.0'
assert dq3Y(ndwV, 'SQLAlchemy') == CQI2
assert dq3Y(ndwV, 'pandas') == 'pandas==0.23.0'
assert dq3Y(ndwV, 'toposort') == 'toposort'
with cR0t(mD2r):
dq3Y(ndwV, 'nonexistent')
with cR0t(mD2r):
nNio = str(ndwV) + '-nonexistent'
... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def fWiL():\n DpZH: moxu = moxu.get_from_package_metadata()\n sKYw = RkCj.get_distribution('version_helper')\n FYx9: moxu = moxu.parse(sKYw.version, True)\n assert isinstance(DpZH, moxu)\n assert FYx9.core == DpZH.core\n assert FYx9.full == DpZH.full",
"def dq3Y():\n try:\n with open(... | [
"0.74931306",
"0.72437084",
"0.7100709",
"0.70764315",
"0.70262724",
"0.6801611",
"0.6778697",
"0.6773401",
"0.6763281",
"0.6757422",
"0.6754392",
"0.67494446",
"0.67302537",
"0.6726279",
"0.6723779",
"0.66914624",
"0.6687053",
"0.6664689",
"0.66008675",
"0.65628725",
"0.6559... | 0.7814408 | 0 |
Perform the reverse of normalize_name (this may lose information) | def ZXN5(mWFP):
mWFP = mWFP[0].lower() + mWFP[1:]
Aofo = []
YRbF = 0
yKcO = 0
while YRbF < len(mWFP):
if mWFP[YRbF].isupper():
Aofo.append(mWFP[yKcO:YRbF].lower())
yKcO = YRbF
YRbF += 1
Aofo.append(mWFP[yKcO:].lower())
return '_'.join(Aofo) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def W0vu(YKHO, mWFP: str) -> str:\n return mWFP",
"def uD9m(mWFP):\n return mWFP",
"def W0vu(Emd4, mWFP: str) -> str:\n return mWFP.lower().replace('_', '-')",
"def FF3s(YKHO):\n YKHO.assertEqual(uD9m('Caroline Lucas'), 'Caroline Lucas')\n YKHO.assertEqual(uD9m('Lucas, Caroline'), 'Caroline Lu... | [
"0.82967544",
"0.8250216",
"0.79714406",
"0.7773168",
"0.7698279",
"0.76863825",
"0.75738204",
"0.728134",
"0.7211063",
"0.72082263",
"0.71607417",
"0.7151165",
"0.7096856",
"0.70713466",
"0.70523834",
"0.6990173",
"0.6981615",
"0.69780874",
"0.6957145",
"0.6942066",
"0.69216... | 0.70466167 | 15 |
Return the device class of the device. | def rM2U(YKHO) -> str:
return Tyya | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._handle('device_class')",
"def rM2U(YKHO) -> str:\n return YKHO._dev_cls",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_cl... | [
"0.9197417",
"0.90805185",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9022176",
"0.90142787",
"0.8989628",
... | 0.7646023 | 75 |
Return the humidity we try to reach. | def jvDM(YKHO) -> h8nf[int]:
return YKHO.service.value(b8Vy.RELATIVE_HUMIDITY_HUMIDIFIER_THRESHOLD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dU0H(YKHO) -> int:\n return YKHO.data['humidity']",
"def dU0H(YKHO):\n dU0H = YKHO._dht22.humidity()\n bo34.info('humidity reading = {0:0.1f} %'.format(dU0H))\n return dU0H",
"def dU0H(YKHO):\n return YKHO._dht11.humidity()",
"def JxEH(YKHO):\n return YKHO.__dht22Hum.getHumidity()",
"... | [
"0.8497202",
"0.8496647",
"0.8484861",
"0.84337467",
"0.83737785",
"0.83737785",
"0.83683205",
"0.83360106",
"0.82489073",
"0.8211296",
"0.818027",
"0.81761885",
"0.81414235",
"0.8111808",
"0.8091746",
"0.8082481",
"0.80560374",
"0.8016157",
"0.8002068",
"0.7998847",
"0.79791... | 0.6786239 | 75 |
Return the minimum humidity. | def y2iu(YKHO) -> int:
return YKHO.service[b8Vy.RELATIVE_HUMIDITY_HUMIDIFIER_THRESHOLD].minValue | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y2iu(YKHO):\n return YKHO._HUMIDITY_LIMITS['min']",
"def y2iu(YKHO) -> int:\n dgIT = CGEi\n if YKHO._setpoint and YKHO._setpoint.metadata.min:\n dgIT = YKHO._setpoint.metadata.min\n return dgIT",
"def y2iu(YKHO) -> int:\n y2iu = YKHO.service[b8Vy.RELATIVE_HUMIDITY_TARGET].minValue\n ... | [
"0.85621536",
"0.8483831",
"0.814081",
"0.80336463",
"0.76883346",
"0.7617338",
"0.7605905",
"0.7544121",
"0.75005364",
"0.7423013",
"0.73872334",
"0.73715186",
"0.735851",
"0.73373437",
"0.7337258",
"0.73280376",
"0.7314859",
"0.7314859",
"0.72739106",
"0.7263249",
"0.726129... | 0.8070004 | 3 |
Return the maximum humidity. | def Ocqc(YKHO) -> int:
return YKHO.service[b8Vy.RELATIVE_HUMIDITY_HUMIDIFIER_THRESHOLD].maxValue | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ocqc(YKHO):\n return YKHO._HUMIDITY_LIMITS['max']",
"def Ocqc(YKHO) -> int:\n bQ6z = nQiK\n if YKHO._setpoint and YKHO._setpoint.metadata.max:\n bQ6z = YKHO._setpoint.metadata.max\n return bQ6z",
"def Ocqc(YKHO) -> int:\n return YKHO.service[b8Vy.RELATIVE_HUMIDITY_DEHUMIDIFIER_THRESHO... | [
"0.85571235",
"0.84191686",
"0.81148106",
"0.80536914",
"0.7597664",
"0.75142574",
"0.7495032",
"0.749242",
"0.7475597",
"0.74479926",
"0.742703",
"0.7375455",
"0.7358237",
"0.73409563",
"0.73185426",
"0.73046935",
"0.7284327",
"0.72739476",
"0.72639483",
"0.7258603",
"0.7252... | 0.8124227 | 2 |
Return the device class of the device. | def rM2U(YKHO) -> str:
return euRO | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def rM2U(YKHO):\n return YKHO._handle('device_class')",
"def rM2U(YKHO) -> str:\n return YKHO._dev_cls",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_class",
"def rM2U(YKHO):\n return YKHO._device_cl... | [
"0.9197417",
"0.90805185",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9030964",
"0.9022176",
"0.90142787",
"0.8989628",
... | 0.7785943 | 64 |
Return the humidity we try to reach. | def jvDM(YKHO) -> h8nf[int]:
return YKHO.service.value(b8Vy.RELATIVE_HUMIDITY_DEHUMIDIFIER_THRESHOLD) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def dU0H(YKHO) -> int:\n return YKHO.data['humidity']",
"def dU0H(YKHO):\n dU0H = YKHO._dht22.humidity()\n bo34.info('humidity reading = {0:0.1f} %'.format(dU0H))\n return dU0H",
"def dU0H(YKHO):\n return YKHO._dht11.humidity()",
"def JxEH(YKHO):\n return YKHO.__dht22Hum.getHumidity()",
"... | [
"0.8497202",
"0.8496647",
"0.8484861",
"0.84337467",
"0.83737785",
"0.83737785",
"0.83683205",
"0.83360106",
"0.82489073",
"0.8211296",
"0.818027",
"0.81761885",
"0.81414235",
"0.8111808",
"0.8091746",
"0.8082481",
"0.80560374",
"0.8016157",
"0.8002068",
"0.7998847",
"0.79791... | 0.6885006 | 68 |
Return the minimum humidity. | def y2iu(YKHO) -> int:
return YKHO.service[b8Vy.RELATIVE_HUMIDITY_DEHUMIDIFIER_THRESHOLD].minValue | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def y2iu(YKHO):\n return YKHO._HUMIDITY_LIMITS['min']",
"def y2iu(YKHO) -> int:\n dgIT = CGEi\n if YKHO._setpoint and YKHO._setpoint.metadata.min:\n dgIT = YKHO._setpoint.metadata.min\n return dgIT",
"def y2iu(YKHO) -> int:\n y2iu = YKHO.service[b8Vy.RELATIVE_HUMIDITY_TARGET].minValue\n ... | [
"0.85621536",
"0.8483831",
"0.814081",
"0.8070004",
"0.76883346",
"0.7617338",
"0.7605905",
"0.7544121",
"0.75005364",
"0.7423013",
"0.73872334",
"0.73715186",
"0.735851",
"0.73373437",
"0.7337258",
"0.73280376",
"0.7314859",
"0.7314859",
"0.72739106",
"0.7263249",
"0.726129"... | 0.80336463 | 4 |
Return the maximum humidity. | def Ocqc(YKHO) -> int:
return YKHO.service[b8Vy.RELATIVE_HUMIDITY_DEHUMIDIFIER_THRESHOLD].maxValue | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Ocqc(YKHO):\n return YKHO._HUMIDITY_LIMITS['max']",
"def Ocqc(YKHO) -> int:\n bQ6z = nQiK\n if YKHO._setpoint and YKHO._setpoint.metadata.max:\n bQ6z = YKHO._setpoint.metadata.max\n return bQ6z",
"def Ocqc(YKHO) -> int:\n return YKHO.service[b8Vy.RELATIVE_HUMIDITY_HUMIDIFIER_THRESHOLD... | [
"0.85571235",
"0.84191686",
"0.8124227",
"0.80536914",
"0.7597664",
"0.75142574",
"0.7495032",
"0.749242",
"0.7475597",
"0.74479926",
"0.742703",
"0.7375455",
"0.7358237",
"0.73409563",
"0.73185426",
"0.73046935",
"0.7284327",
"0.72739476",
"0.72639483",
"0.7258603",
"0.72528... | 0.81148106 | 3 |
Return the ID of this device. | def ShR8(YKHO) -> str:
Pt6R = YKHO.accessory_info.value(b8Vy.SERIAL_NUMBER)
return f'homekit-{Pt6R}-{YKHO._iid}-{YKHO.device_class}' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def jf3N(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_id')",
"def jf3N(YKHO) -> str:\n return qe4Y.get(YKHO, 'device_id')",
"def jf3N(YKHO):\n return YKHO.unique_id",
"def jf3N(YKHO) -> str:\n return YKHO._device.id",
"def jf3N(YKHO):\n return YKHO._device.id",
"def jf3N(YKHO):\n retur... | [
"0.8854001",
"0.8854001",
"0.8853738",
"0.8832947",
"0.87182677",
"0.87182677",
"0.8667435",
"0.86311346",
"0.86169136",
"0.86169136",
"0.8607072",
"0.8607072",
"0.8562497",
"0.8562497",
"0.8562497",
"0.8562497",
"0.8501243",
"0.8410237",
"0.8407646",
"0.83510786",
"0.8340155... | 0.0 | -1 |
Place a pawn on a given point. `point` is in the form (row, colum) `color` is BLACK or WHITE Return True if success, False else | def C6id(YKHO, qfpW, AU8u):
if YKHO.matrix[AU8u[0]][AU8u[1]] != llWo:
return False
YKHO.matrix[AU8u[0]][AU8u[1]] = qfpW
YKHO.placed_pawns += 1
return True | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def SKCf(YKHO, AU8u, qfpW):\n assert YKHO.minpoint <= AU8u <= YKHO.maxpoint\n assert qfpW in [XDQs, eJVO]\n dQgj = YKHO.point2position(AU8u)\n if not YKHO.isPositionValid(dQgj, qfpW):\n return False\n if YKHO.board[AU8u] == KAvf:\n ODSu = _qLf(YKHO.board)\n YKHO.boardHistory.app... | [
"0.70712197",
"0.68101275",
"0.64898366",
"0.636895",
"0.6339353",
"0.6330611",
"0.63226026",
"0.61536884",
"0.6130511",
"0.6097314",
"0.6094799",
"0.60773736",
"0.6065111",
"0.60501856",
"0.60468984",
"0.60011077",
"0.60011077",
"0.60011077",
"0.5972966",
"0.5968632",
"0.594... | 0.8293541 | 0 |
Determines the type of the comparison value and converts it to RFC3339 format if it is as date, as Weaviate requires dates to be in RFC3339 format including the time and timezone. | def QO7h(YKHO, BWXx: Optional[Union[str, int, float, bool]]=None) -> AzJI[str, uLKX[str, int, float, bool]]:
if BWXx is None:
assert not isinstance(YKHO.comparison_value, list)
BWXx = YKHO.comparison_value
if isinstance(BWXx, str):
try:
BWXx = FGZt(BWXx)
sB1G = 'v... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def TY75(YKHO, mNiU, TRCX):\n try:\n mNiU = hfK9(str(mNiU), fuzzy=False).date()\n except ValueError:\n raise Exception(f'{str(TRCX)} cannot be converted into datetime.')\n return mNiU",
"def Wa4o(BWXx):\n if type(BWXx) == qcWV:\n return BWXx.strftime(pRNM)\n elif type(BWXx) ==... | [
"0.5871054",
"0.58598405",
"0.57981133",
"0.57711023",
"0.57665473",
"0.57410854",
"0.57410854",
"0.57410854",
"0.5697446",
"0.56849235",
"0.56323326",
"0.562836",
"0.5625735",
"0.5616855",
"0.56002355",
"0.55946946",
"0.5589922",
"0.5539845",
"0.55209416",
"0.55175596",
"0.5... | 0.58231926 | 2 |
close storage when tear down occurs | def rKLZ(AJ5d):
S8SU.close() | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def kcUV(YKHO):\n S8SU.close()",
"def bQiF(YKHO):\n S8SU.close()",
"def bQiF(YKHO):\n S8SU.close()",
"def mTtn(YKHO):\n S8SU.close()",
"def mTtn(YKHO):\n S8SU.close()",
"def mTtn(YKHO):\n S8SU.close()",
"def mTtn(YKHO):\n S8SU.close()",
"def ugYo(AJ5d):\n S8SU.close()",
"def... | [
"0.89683974",
"0.8610736",
"0.8610736",
"0.8571124",
"0.8571124",
"0.8571124",
"0.8571124",
"0.83665377",
"0.836345",
"0.836345",
"0.836345",
"0.827198",
"0.82363135",
"0.82012784",
"0.82012784",
"0.8198297",
"0.8195641",
"0.8176902",
"0.8176902",
"0.808493",
"0.8067195",
"... | 0.0 | -1 |
Returns the first data in the queue | def T7C_(YKHO):
if YKHO.isEmpty():
print('Empty queue')
else:
return YKHO.head.data | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n return YKHO._data[0]",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise Exception('Queue is empty')\n return YKHO._data[YKHO._front]",
"def cntZ(YKHO):\n if YKHO.is_empty():\n raise rWmY('Queue is empty')\n... | [
"0.8588405",
"0.85514325",
"0.84489495",
"0.84128726",
"0.83727545",
"0.83100486",
"0.8280934",
"0.82649034",
"0.82649034",
"0.82649034",
"0.80136216",
"0.7993253",
"0.7968306",
"0.79301524",
"0.78891194",
"0.78366",
"0.78094566",
"0.77960914",
"0.77951735",
"0.77512825",
"0.... | 0.79048437 | 14 |
Make the cumulative distribution out of the pdf | def YzER(YKHO):
pass | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def D6Mp(YKHO, WKvO):\n return 1",
"def hv4q(YKHO, WKvO, XP5J, UEmU=1000):\n YKHO.x = WKvO\n YKHO.pdf = XP5J / XP5J.sum()\n YKHO.cdf = YKHO.pdf.cumsum()\n YKHO.inversecdfbins = UEmU\n YKHO.Nrl = UEmU\n LVAh = oyIN.arange(UEmU) / float(UEmU)\n RA_F = 1.0 / UEmU\n YKHO.inversecdf = oyIN.... | [
"0.73985636",
"0.72972435",
"0.7244293",
"0.69611996",
"0.68664235",
"0.67654234",
"0.6712573",
"0.66813177",
"0.6625478",
"0.65949464",
"0.6549753",
"0.65434176",
"0.65283585",
"0.6511147",
"0.63931715",
"0.63870084",
"0.638343",
"0.63831276",
"0.6378828",
"0.6364469",
"0.63... | 0.0 | -1 |
Error 401 authentication required. | def KOAP(YKHO, bD7m, ytgA, zQjS, jMN5, MOPg, nPrm=None):
if not 'www-authenticate' in MOPg:
uRlK.URLopener.http_error_default(YKHO, bD7m, ytgA, zQjS, jMN5, MOPg)
HH9L = MOPg['www-authenticate']
import re
for KCHu in HH9L.split(', '):
kUBT = re.match('[ \t]*([^ \t]+)[ \t]+realm="([^"]*)"'... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ylVm():\n return p_Hn('Invalid credentials')",
"def DHwi():\n return oGir('What the hell. .\\nYou have to login with proper credentials', 401, {'WWW-Authenticate': 'Basic realm=\"Login Required\"'})",
"def ylVm():\n return UAju.unauthorized('Invalid credentials')",
"def ENwJ():\n return oGir(... | [
"0.84717715",
"0.8365312",
"0.83539444",
"0.8143383",
"0.8143383",
"0.80375236",
"0.79974383",
"0.79573846",
"0.7839883",
"0.77297354",
"0.77297354",
"0.7689578",
"0.7635458",
"0.75430506",
"0.75430506",
"0.75413364",
"0.7529658",
"0.7506506",
"0.7470715",
"0.74532056",
"0.74... | 0.7089939 | 88 |
Converts arrays x to fortran order. Returns a tuple in the form (x, is_transposed). | def l1AA(WKvO):
if WKvO.flags.c_contiguous:
return (WKvO.T, True)
else:
return (WKvO, False) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def l1AA(WKvO):\n if WKvO.flags.c_contiguous:\n return (WKvO.T, True)\n else:\n return (WKvO, False)",
"def l7uB(WKvO: VariableLike, Htse: Optional[Union[List[str], Tuple[str]]]=None) -> Vsfn:\n return qjvj(hoL9.transpose, WKvO, Htse if Htse is not None else [])",
"def NUwR(YKHO):\n r... | [
"0.6511806",
"0.6221087",
"0.5993912",
"0.59854096",
"0.5798519",
"0.57845616",
"0.57785714",
"0.57481897",
"0.57481897",
"0.573006",
"0.5693387",
"0.56188023",
"0.56188023",
"0.5600883",
"0.5573976",
"0.557168",
"0.55348504",
"0.5529915",
"0.55288124",
"0.5520071",
"0.551959... | 0.65469927 | 0 |
Lists log entries. Use this method to retrieve log entries from Stackdriver Logging. For ways to export log entries, see [Exporting Logs](/logging/docs/export). | def ocuN(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def ocuN(YKHO, QePW, QpfX):\n QpfX.code(uZGC.StatusCode.UNIMPLEMENTED)",
"def naMj(YKHO):\n nPrm, bGrB = YKHO._make_request('GET', '/logs')\n YEnM = qQXR.loads(nPrm)\n return [Mc9f(WKvO['name']) for WKvO in YEnM['results']]",
"def list(YKHO):\n return YKHO._logmgr.list_logs_by_id()",
"def xawY... | [
"0.81280845",
"0.79984283",
"0.77468216",
"0.7657074",
"0.7452407",
"0.73687506",
"0.7232686",
"0.7225415",
"0.71213865",
"0.708577",
"0.70610225",
"0.7035368",
"0.70112234",
"0.69470006",
"0.69465154",
"0.6868129",
"0.6856897",
"0.6831343",
"0.6808965",
"0.68015647",
"0.6775... | 0.6936682 | 15 |
Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed. | def xawY(YKHO, QePW, QpfX):
QpfX.set_code(IYqO.StatusCode.UNIMPLEMENTED)
QpfX.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def naMj(YKHO):\n nPrm, bGrB = YKHO._make_request('GET', '/logs')\n YEnM = qQXR.loads(nPrm)\n return [Mc9f(WKvO['name']) for WKvO in YEnM['results']]",
"def xawY(YKHO, QePW, QpfX):\n QpfX.code(uZGC.StatusCode.UNIMPLEMENTED)",
"def list(YKHO):\n return YKHO._logmgr.list_logs_by_id()",
"def ocuN... | [
"0.7733531",
"0.76752883",
"0.7603543",
"0.7535021",
"0.7182631",
"0.71401364",
"0.70873255",
"0.7079282",
"0.7020574",
"0.69654816",
"0.6919312",
"0.68964475",
"0.6863702",
"0.68262756",
"0.67988634",
"0.67983",
"0.67802966",
"0.6742008",
"0.672458",
"0.672458",
"0.6696148",... | 0.63916737 | 39 |
Retuns a string which is the hour, minute, second(milli) representation of the intput `seconds` | def ykTR(C6wh):
A7un = C6wh - pBSp(C6wh)
O66n, C6wh = divmod(pBSp(C6wh), 60)
Wave, O66n = divmod(O66n, 60)
return '{}H{}M{}S.{}'.format(Wave, O66n, C6wh, A7un) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def RW01(C6wh):\n rYO3 = list()\n CPxp = C6wh % 1 * 1000\n if CPxp >= 1:\n rYO3.append('{0}ms'.format(int(CPxp % 60)))\n rYO3.append('{0}s'.format(int(C6wh % 60)))\n O66n = C6wh / 60\n if O66n >= 1:\n rYO3.append('{0}m'.format(int(O66n % 60)))\n Wave = O66n / 60\n if W... | [
"0.7844345",
"0.7802059",
"0.77554214",
"0.77192366",
"0.76371443",
"0.7529149",
"0.7519107",
"0.75112486",
"0.75096595",
"0.7496546",
"0.7455204",
"0.742106",
"0.7405646",
"0.73968846",
"0.7373434",
"0.7373434",
"0.73282343",
"0.72942287",
"0.7274347",
"0.7268088",
"0.725466... | 0.71570307 | 30 |
Partial sum needed to calculate the pressure. Takes positions. | def oYbr(FBNX: np.ndarray) -> oyIN.ndarray:
TaUL = yfx6(FBNX, FBNX)
ggic = iZ3f(TaUL[oyIN.triu_indices_from(TaUL, 1)])
return oyIN.sum(TaUL[oyIN.triu_indices_from(TaUL, 1)] * ggic) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def FYja(dQgj, ovGo, ywwl):\n MCOv = 0\n for YRbF in range(ywwl):\n for r845 in range(ywwl):\n if r845 != YRbF:\n Ayfi = oyIN.linalg.norm((dQgj[YRbF, :] - dQgj[r845, :] + zNig / 2) % zNig - zNig / 2)\n MCOv += Ayfi * (-12 * Ayfi ** (-13) + 6 * Ayfi ** (-7))\n ... | [
"0.6951646",
"0.6209201",
"0.6188015",
"0.61013174",
"0.6062035",
"0.6002114",
"0.6002114",
"0.59764653",
"0.5972334",
"0.59604836",
"0.59546465",
"0.59446555",
"0.59050274",
"0.5854392",
"0.58419794",
"0.5841231",
"0.5838275",
"0.5831166",
"0.58170354",
"0.58073115",
"0.5798... | 0.7353072 | 0 |
An array of keyvalue pairs to apply to this resource. | def dJ1p(YKHO) -> h8nf[bdIy['outputs.KeyTag']]:
return qe4Y.get(YKHO, 'tags') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lZBZ(YKHO):\n return Pbc4.keys(YKHO)",
"def azoT(YKHO):\n return {}",
"def o8Kj(YKHO):\n return dict(YKHO.__dict__)",
"def NURA(YKHO):\n return dict()",
"def hkxX(YKHO):\n return {d7pR.name: getattr(YKHO, d7pR.name) for d7pR in YKHO._args}",
"def A0zC(YKHO):\n return {'resource_buck... | [
"0.6213372",
"0.619283",
"0.61499715",
"0.61130214",
"0.6112137",
"0.61087734",
"0.6094525",
"0.6089277",
"0.60466576",
"0.60411227",
"0.6041009",
"0.6031294",
"0.60051346",
"0.5999933",
"0.59565485",
"0.59509844",
"0.5935814",
"0.59310645",
"0.5914738",
"0.59039974",
"0.5903... | 0.0 | -1 |
Number of normal form profiles that correspond to a rolesymmetric profile. | def Hfix(XP5J):
return QRFO([TFEx(sum(rdlD)) / QRFO(map(TFEx, rdlD)) for rdlD in XP5J]) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UHFx(YKHO):\n B6sC = YKHO.playbook\n sjXb = BfDw.all_keys(B6sC)\n return sum((1 for YRbF in sjXb if YRbF == 'include_role'))",
"def UHFx():\n return len(oziv)",
"def jM5F(YKHO):\n import surface_dynamics.interval_exchanges.rauzy_class_cardinality as MPOW\n z39Z = [WKvO + 1 for WKvO in YKH... | [
"0.6517623",
"0.6432179",
"0.61010575",
"0.60774136",
"0.6005788",
"0.59668046",
"0.5952",
"0.59244096",
"0.5924347",
"0.5881278",
"0.5841097",
"0.5836812",
"0.5828517",
"0.5796978",
"0.57928807",
"0.5787802",
"0.5780881",
"0.5747694",
"0.57349896",
"0.57342273",
"0.5728685",... | 0.0 | -1 |
Returns True if len(self) == 0. or False otherwise. | def A4KR(YKHO):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def lsmZ(YKHO):\n if len(YKHO) == 0:\n return True\n else:\n return False",
"def lsmZ(YKHO):\n return len(YKHO) == 0",
"def FBfn(YKHO):\n return len(YKHO) == 0",
"def lsmZ(YKHO):\n if YKHO.length == 0:\n return True\n else:\n return False",
"def FBfn(YKHO):\n ... | [
"0.9147918",
"0.90416306",
"0.9017155",
"0.8967738",
"0.8962929",
"0.8962929",
"0.8962929",
"0.8962929",
"0.8962929",
"0.8962929",
"0.8962929",
"0.8962929",
"0.8962929",
"0.8962929",
"0.8962929",
"0.8962929",
"0.89562744",
"0.8944159",
"0.89390695",
"0.8938694",
"0.8938694",
... | 0.0 | -1 |
Returns the number of items in self. | def szAg(YKHO):
return 0 | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Jm1s(YKHO):\n return len(YKHO.items)",
"def ogsx(YKHO):\n return len(YKHO.items)",
"def Jm1s(YKHO):\n return YKHO.items.count()",
"def OGwl(YKHO):\n return YKHO.num_items",
"def UHFx(YKHO):\n return len(YKHO.itemList)",
"def UHFx(YKHO):\n return len(YKHO._item_list)",
"def Jm1s(YK... | [
"0.9229059",
"0.9197359",
"0.9131672",
"0.9111741",
"0.8969764",
"0.88047165",
"0.8799925",
"0.8799925",
"0.8690524",
"0.8690524",
"0.8661647",
"0.8661151",
"0.86439055",
"0.8634464",
"0.8617326",
"0.86101764",
"0.8603524",
"0.8603524",
"0.8603524",
"0.85828435",
"0.8532372",... | 0.0 | -1 |
Returns te string representation of self. | def zAg0(YKHO):
return '' | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return YKHO.__str__()",
"def yLCI(YKHO):\n return YKHO.__str__()",
"def yLCI(YKHO) -> str:\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def yLCI(YKHO):\n return str(YKHO)",
"def zAg0(YKHO):\n return ... | [
"0.87182915",
"0.8686353",
"0.8672782",
"0.86713403",
"0.86482936",
"0.86482936",
"0.85964984",
"0.8596245",
"0.8553657",
"0.8551892",
"0.8510695",
"0.8495517",
"0.8495517",
"0.8495517",
"0.8487973",
"0.8486794",
"0.8486794",
"0.8486794",
"0.8486794",
"0.8486794",
"0.8486794"... | 0.0 | -1 |
Supports iteration over a view of self. | def Vs4Q(YKHO):
return None | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def Vs4Q(YKHO):\n return map(lambda exwG: exwG.view, zGKt.nodes)",
"def Vs4Q(YKHO):\n return map(lambda exwG: exwG.view, P8oC.nodes)",
"def Vs4Q(YKHO):\n YKHO.assert_data()\n Mmpr = lambda WKvO: WKvO\n tTee = lambda WKvO: YKHO.view(YKHO, WKvO)\n eJwp = tTee if YKHO.view else Mmpr\n for VQ6... | [
"0.7151593",
"0.710513",
"0.7038026",
"0.698756",
"0.6928019",
"0.68975025",
"0.6845411",
"0.68396735",
"0.6833738",
"0.6833738",
"0.6833738",
"0.6833738",
"0.6833738",
"0.6833738",
"0.6768385",
"0.67385346",
"0.6720983",
"0.6720983",
"0.6720983",
"0.6720983",
"0.6720983",
... | 0.0 | -1 |
Returns True if self equals other, or False otherwise. | def xa14(YKHO, Elif):
return False | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def InF8(YKHO, Elif):\n return YKHO.__eq__(Elif)",
"def xa14(YKHO, Elif):\n return YKHO._value == Elif._value",
"def xa14(YKHO, Elif):\n return YKHO.is_same(Elif)",
"def aPi6(YKHO, Elif):\n return bool(YKHO.impl['equals'](YKHO, Elif))",
"def xa14(YKHO, Elif):\n return YKHO is Elif",
"def x... | [
"0.90059245",
"0.87034225",
"0.8699104",
"0.8697118",
"0.86912733",
"0.8651699",
"0.8621409",
"0.8621409",
"0.85559833",
"0.85480946",
"0.8543053",
"0.8539724",
"0.8534438",
"0.8508668",
"0.85024905",
"0.85024905",
"0.85018593",
"0.85018593",
"0.85018593",
"0.8484361",
"0.848... | 0.85290104 | 13 |
Sets the learning rate to the initial LR decayed by 10 every 30 epochs | def e_63(K0do, qtWj):
tspZ = qIxc.lr * 0.1 ** (qtWj // 30)
for Lwm5 in K0do.param_groups:
Lwm5['lr'] = tspZ | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def e_63(K0do, qtWj):\n nIX4 = nIX4 * 0.1 ** ((qtWj - 117) // 30)",
"def e_63(K0do, qtWj, qIxc):\n tspZ = qIxc.lr * 0.1 ** (qtWj // 30)\n K0do.state_dict()['param_groups'][-1]['lr'] = tspZ",
"def e_63(ma4o, K0do, qtWj, ctbl):\n tspZ = ma4o * 0.1 ** (qtWj // int(epAf.ceil(30.0 / ctbl)))\n for Lwm... | [
"0.7991837",
"0.7940576",
"0.78895533",
"0.78278863",
"0.7822731",
"0.78170556",
"0.7810941",
"0.78027624",
"0.77914375",
"0.7788607",
"0.7782131",
"0.7765793",
"0.77645",
"0.77609223",
"0.7749379",
"0.7739108",
"0.7731853",
"0.77242327",
"0.77121335",
"0.7708826",
"0.7704794... | 0.75795555 | 67 |
Decorator to check if user is approved for a token. It approves them if they need to be approved. | def lxFb(NKcE):
def Ape5(YKHO, *qIxc):
eOtH = qIxc[0]
xpnx = YKHO.erc20_contract.get(eOtH, None)
Z5kt = int(qIxc[1] * 1e+18)
if xpnx:
BS0X = YKHO._is_approved(eOtH)
if not BS0X:
YKHO.approve_erc20_transfer(eOtH, Z5kt)
return NKcE(YKHO,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def chz6(eHNT):\n\n @zaGL(eHNT)\n def SzLu(*qIxc, **B2fa):\n if cuiw.get('approved') is None:\n return vKnz('/approve')\n return eHNT(*qIxc, **B2fa)\n return SzLu",
"def WQp_():\n eOtH = QePW.json.get('token')\n CBIr = QePW.json.get('user')\n dfOE = mv1M.query.filter_by... | [
"0.68856794",
"0.6742119",
"0.671118",
"0.67083657",
"0.66130763",
"0.6494521",
"0.6311376",
"0.6195575",
"0.6192144",
"0.61888635",
"0.6114965",
"0.6066961",
"0.60408336",
"0.60104936",
"0.5985878",
"0.59741884",
"0.59667236",
"0.5941179",
"0.59325254",
"0.5926793",
"0.59213... | 0.6471593 | 6 |
Return the status of the internet for this device. | def Debg(YKHO):
cLzB = int(ITS7.time()) - YKHO._last_change
if cLzB > g_S0:
try:
L1wu = False
HdGi = 'NA'
if YKHO.coordinator.data[YKHO._system_id]['groupSettings']['lanSettings'].get('prioritizedStation').get('stationId'):
if YKHO.coordinator.data[YKH... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def UkPn():\n return wk86.URI['GET_NETWORK_STATUS']",
"def IPlX(YKHO):\n return G4JS.get(mjrS.get('online_status'))",
"def kdth(YKHO):\n if YKHO._wifi_status is None:\n qv1X = YKHO._post('NMC.Wifi:get')\n YKHO._check_req(qv1X)\n YKHO._wifi_status = UG1y(qQXR.dumps(qv1X['status']))... | [
"0.7815427",
"0.7516197",
"0.73962796",
"0.72218305",
"0.7091606",
"0.70843935",
"0.7013216",
"0.69923514",
"0.68651754",
"0.6855687",
"0.68135595",
"0.6703214",
"0.66646224",
"0.6654539",
"0.66506153",
"0.6621014",
"0.66001475",
"0.65812993",
"0.6578932",
"0.65688765",
"0.65... | 0.0 | -1 |
Similar to str.format, but pass all arguments through conditional_escape(), and call mark_safe() on the result. This function should be used instead of str.format or % interpolation to build up small HTML fragments. | def obQw(sI3h, *qIxc, **B2fa):
PLbl = map(fmJe, qIxc)
_gyP = {G1Hx: fmJe(Ty9i) for G1Hx, Ty9i in B2fa.items()}
return BY_x(sI3h.format(*PLbl, **_gyP)) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def obQw(sI3h, *qIxc, **B2fa):\n PLbl = map(fmJe, qIxc)\n _gyP = dict([(G1Hx, fmJe(Ty9i)) for G1Hx, Ty9i in jKi7.iteritems(B2fa)])\n return BY_x(sI3h.format(*PLbl, **_gyP))",
"def obQw(rPXJ, **B2fa):\n return rPXJ.format(**{H5ew: _R2e.escape(str(BWXx)) for H5ew, BWXx in B2fa.items()})",
"def fmJe(_... | [
"0.8750215",
"0.74972695",
"0.67495483",
"0.6678553",
"0.6653322",
"0.6653322",
"0.6526143",
"0.63997215",
"0.6373747",
"0.63610923",
"0.6330611",
"0.6324029",
"0.63067603",
"0.62877446",
"0.6246892",
"0.6194709",
"0.61814433",
"0.61443156",
"0.61046743",
"0.60836893",
"0.606... | 0.8730299 | 1 |
Hash a password for storing. | def qzFd(jTXt):
NTfD = HBct.sha256(Hy7s.urandom(60)).hexdigest().encode('ascii')
mNdd = HBct.pbkdf2_hmac('sha512', jTXt.encode('utf-8'), NTfD, 100000)
mNdd = MRxC.hexlify(mNdd)
return (NTfD + mNdd).decode('ascii') | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def qzFd(YKHO, jTXt):\n YKHO.hash = jf1V.encrypt(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.hash(jTXt)",
"def qzFd(YKHO, jTXt):\n YKHO.password_hash = jf1V.encrypt(jTXt)",
"def qzFd(YKHO, jTXt):\n NTfD = B8ni.gen... | [
"0.84914315",
"0.8482577",
"0.8482577",
"0.84023434",
"0.82536817",
"0.82148904",
"0.8106015",
"0.8076616",
"0.80739087",
"0.8029491",
"0.79276323",
"0.79276323",
"0.7925622",
"0.79207146",
"0.79207146",
"0.79088366",
"0.7899531",
"0.7897493",
"0.7890519",
"0.78723425",
"0.78... | 0.75115097 | 59 |
Obtains the access token from the Authorization Header | def bIrX():
Jpbe = QePW.headers.get('Authorization', None)
if not Jpbe:
raise yHM3({'code': 'authorization_header_missing', 'description': 'Authorization header is expected'}, 401)
SQ3m = Jpbe.split()
if SQ3m[0].lower() != 'bearer':
raise yHM3({'code': 'invalid_header', 'description': 'A... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def O0Oo(Emd4, qv1X):\n WBPg = qv1X.META.get('HTTP_AUTHORIZATION').split()\n eOtH = WBPg[1]\n KkxT = IHrB(eOtH)\n return KkxT",
"def xMII(QePW):\n eOtH = None\n FM0n = QePW.getHeader(b'Authorization')\n if FM0n is not None and FM0n.startswith(b'Bearer '):\n eOtH = FM0n[7:]\n if b'a... | [
"0.7831967",
"0.76967037",
"0.7637602",
"0.76331687",
"0.76218593",
"0.75581455",
"0.75520545",
"0.75520545",
"0.75445867",
"0.75367945",
"0.7476041",
"0.7457787",
"0.74492973",
"0.74351245",
"0.7399498",
"0.739828",
"0.7393601",
"0.7391345",
"0.73884076",
"0.7385223",
"0.738... | 0.7465831 | 12 |
Determines if the access token is valid | def t3gg(eHNT):
@zaGL(eHNT)
def XIpm(*qIxc, **B2fa):
eOtH = bIrX()
iEWR = Kf9k(o2TV + '/.well-known/jwks.json')
CsQo = qQXR.loads(iEWR.read())
try:
YAyS = DvJO.get_unverified_header(eOtH)
except DvJO.JWTError:
print('exc 1')
raise yHM3... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def deVW(YKHO):\n if YKHO.access_token is None:\n return False\n if YKHO.expiry:\n return YKHO.expired\n else:\n return YKHO.check_token()",
"def nMpo(YKHO, MJ6X):\n YKHO.log_obj.info('Start check_valid_access_token...')\n bD7m = 'https://graph.facebook.com/debug_token'\n N... | [
"0.80344445",
"0.8030811",
"0.77925247",
"0.77609223",
"0.77439594",
"0.7606464",
"0.7594799",
"0.7575448",
"0.7573642",
"0.75220186",
"0.73965925",
"0.73940206",
"0.7382106",
"0.7344621",
"0.73036975",
"0.72984976",
"0.72919637",
"0.7285436",
"0.7207881",
"0.7150784",
"0.715... | 0.0 | -1 |
Update value of a nested dictionary of varying depth using recursion | def OUy6(YKHO, zIUT: Dict[str, Any], n8pc: Dict[str, Any], AwDt: str) -> cuzp[str, ImMB]:
for H5ew, BWXx in n8pc.items():
if isinstance(BWXx, g760.abc.Mapping):
zIUT[H5ew] = YKHO._edit_config(zIUT.get(H5ew, {}), BWXx, AwDt)
elif H5ew not in zIUT:
YKHO.logger.warning('Config f... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def cM0y():\n bJN7 = dict(subdict=dict(to_update=1))\n Dbmo = dict(subdict=dict(to_update=2))\n C09e(bJN7, Dbmo)\n assert bJN7 == dict(subdict=dict(to_update=2))",
"def Jc8_(Csk6: collections.abc.Mapping, P6bq: collections.abc.Mapping):\n for G1Hx, Ty9i in P6bq.items():\n if isinstance(Ty9i... | [
"0.76435167",
"0.75676155",
"0.7537887",
"0.74750715",
"0.7459712",
"0.7445653",
"0.74292755",
"0.7417733",
"0.74143624",
"0.7413953",
"0.73471415",
"0.73460585",
"0.73360634",
"0.7328542",
"0.72960395",
"0.72951216",
"0.7255263",
"0.7128402",
"0.7108822",
"0.70869166",
"0.70... | 0.0 | -1 |
Clears the cache without notifying listeners or cache writers. | def Y7Bk(YKHO, sjXb: Optional[list]=None):
if sjXb:
return PqIX(YKHO._client, YKHO._cache_id, sjXb)
else:
return sCEQ(YKHO._client, YKHO._cache_id) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def sCEQ():\n with EgZb() as Z9rn:\n Z9rn.clear()",
"def sCEQ():\n with EgZb() as Z9rn:\n Z9rn.clear()",
"def Y7Bk(YKHO) -> None:\n YKHO.cache.clear()",
"def dSBO(YKHO):\n wyyA.clear()\n hAVj = V5Lg('persistent')\n hAVj.flushall()",
"def dSBO(YKHO):\n YKHO.__caches.clear(... | [
"0.8401028",
"0.8401028",
"0.8295569",
"0.82834595",
"0.8279123",
"0.81980467",
"0.81680804",
"0.81547076",
"0.8035981",
"0.8035981",
"0.7996569",
"0.79386055",
"0.7910774",
"0.7905665",
"0.790216",
"0.7893641",
"0.780334",
"0.7790437",
"0.7767088",
"0.772309",
"0.76867694",
... | 0.0 | -1 |
Clears the cache key without notifying listeners or cache writers. | def fuAN(YKHO, H5ew, lF7T: object=None):
return OIRs(YKHO._client, YKHO._cache_id, H5ew, key_hint=lF7T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yIoH(H5ew):\n if H5ew in PFnd:\n del PFnd[H5ew]",
"def Y7Bk(YKHO, H5ew):\n raise NotImplementedError",
"async def clear_key(YKHO, H5ew, lF7T: object=None):\n if lF7T is None:\n lF7T = bCFk.map_python_type(H5ew)\n w2B8 = await YKHO._get_best_node(H5ew, lF7T)\n return await iAGV(... | [
"0.7966919",
"0.7570508",
"0.7375206",
"0.73602915",
"0.73602915",
"0.72586524",
"0.71665496",
"0.7117941",
"0.7117941",
"0.70603323",
"0.7032288",
"0.69987077",
"0.69811577",
"0.6973019",
"0.6971674",
"0.6971674",
"0.69430536",
"0.69351465",
"0.6914259",
"0.68727595",
"0.686... | 0.74474347 | 2 |
Puts a value with a given key to cache, and returns the previous value for that key, or null value if there was not such key. | def kB8C(YKHO, H5ew, BWXx, lF7T=None, uj3z=None) -> ImMB:
Aofo = z0hT(YKHO._client, YKHO._cache_id, H5ew, BWXx, lF7T, uj3z)
Aofo.value = YKHO._process_binary(Aofo.value)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NMoC(YKHO, H5ew):\n try:\n YKHO.cache.move_to_end(H5ew)\n return YKHO.cache[H5ew]\n except KeyError:\n return None",
"def NMoC(YKHO, H5ew):\n try:\n YKHO.cache.move_to_end(H5ew)\n return YKHO.cache[H5ew]\n except KeyError:\n return None",
"def set(YKHO,... | [
"0.72035253",
"0.72035253",
"0.707851",
"0.70620984",
"0.7061179",
"0.7053371",
"0.70531005",
"0.7036218",
"0.69954807",
"0.6933694",
"0.68623894",
"0.6847697",
"0.684551",
"0.68080497",
"0.6783777",
"0.6761762",
"0.6744643",
"0.67424464",
"0.67123747",
"0.67016876",
"0.67016... | 0.6928291 | 10 |
Puts a value with a given key to cache, returning previous value for that key, if and only if there is a value currently mapped for that key. | def s6vc(YKHO, H5ew, BWXx, lF7T=None, uj3z=None) -> ImMB:
Aofo = Va7f(YKHO._client, YKHO._cache_id, H5ew, BWXx, lF7T, uj3z)
Aofo.value = YKHO._process_binary(Aofo.value)
return Aofo | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def NpNj(YKHO, H5ew, BWXx):\n RI88 = None\n dQgj = YKHO.__search(H5ew)\n if dQgj is not None:\n YKHO.__pop(H5ew, dQgj)\n YKHO.__insert(H5ew, BWXx, dirty=True)\n RI88 = BWXx\n return RI88",
"def set(YKHO, H5ew, BWXx):\n with YKHO._cachelock:\n YKHO._cache[H5ew] = BWXx\n ... | [
"0.7231007",
"0.71773446",
"0.71033216",
"0.7047145",
"0.702676",
"0.7016869",
"0.7012044",
"0.7012044",
"0.6925549",
"0.68783796",
"0.68141335",
"0.68056995",
"0.67768496",
"0.67405987",
"0.67405987",
"0.6705187",
"0.66957724",
"0.66940147",
"0.6688063",
"0.6627502",
"0.6625... | 0.6973066 | 8 |
Clears the cache key without notifying listeners or cache writers. | def m2hp(YKHO, H5ew, lF7T=None):
return Nlpu(YKHO._client, YKHO._cache_id, H5ew, lF7T) | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def yIoH(H5ew):\n if H5ew in PFnd:\n del PFnd[H5ew]",
"def Y7Bk(YKHO, H5ew):\n raise NotImplementedError",
"def fuAN(YKHO, H5ew, lF7T: object=None):\n return OIRs(YKHO._client, YKHO._cache_id, H5ew, key_hint=lF7T)",
"async def clear_key(YKHO, H5ew, lF7T: object=None):\n if lF7T is None:\n ... | [
"0.7966919",
"0.7570508",
"0.74474347",
"0.7375206",
"0.73602915",
"0.73602915",
"0.72586524",
"0.71665496",
"0.7117941",
"0.7117941",
"0.70603323",
"0.7032288",
"0.69987077",
"0.69811577",
"0.6973019",
"0.6971674",
"0.6971674",
"0.69430536",
"0.69351465",
"0.6914259",
"0.687... | 0.0 | -1 |
Draws and updates the main surface. | def VVyi(Z5Q9: pygame.Rect, dfSN: pygame.Rect, k5Mo: list, nx5V: list, RlL_: int, xoaU: int):
DYWq.blit(hRvT, (0, 0))
a9eO.draw.rect(DYWq, XDQs, pqZk)
NZRq = g3ed.render('Health: ' + str(RlL_), 1, eJVO)
gigC = g3ed.render('Health: ' + str(xoaU), 1, eJVO)
DYWq.blit(NZRq, (10, 10))
DYWq.blit(gigC,... | {
"objective": {
"self": [],
"paired": [],
"triplet": [
[
"query",
"document",
"negatives"
]
]
}
} | [
"def JmFt(YKHO, J20S):\n WKvO, LVAh = YKHO.__pos\n a9eO.Surface.blit(J20S, YKHO.surface, (WKvO, LVAh))\n a9eO.display.update((WKvO, LVAh, YKHO.surface.get_width(), YKHO.surface.get_height()))",
"def JmFt(YKHO, J20S):\n pass",
"def JmFt(YKHO, J20S):\n pass",
"def JmFt(YKHO, J20S):\n pass",
... | [
"0.8151903",
"0.81201977",
"0.81201977",
"0.81201977",
"0.7981084",
"0.7936486",
"0.78537697",
"0.78303725",
"0.77888346",
"0.77748287",
"0.7762534",
"0.77488077",
"0.7735832",
"0.76758105",
"0.76253676",
"0.7625053",
"0.76033986",
"0.7601646",
"0.7601646",
"0.7601646",
"0.75... | 0.0 | -1 |